snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
7
zerver/webhooks/slack/fixtures/app_rate_limited.json
Normal file
7
zerver/webhooks/slack/fixtures/app_rate_limited.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
|
||||
"type": "app_rate_limited",
|
||||
"team_id": "T123ABC456",
|
||||
"minute_rate_limited": 1518467820,
|
||||
"api_app_id": "A123ABC456"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
|
||||
"challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P",
|
||||
"type": "url_verification"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"createdAt": 1780754580717,
|
||||
"id": "REDACTED",
|
||||
"payload": {
|
||||
"groupId": "REDACTED",
|
||||
"level": "critical",
|
||||
"project": {
|
||||
"id": "REDACTED"
|
||||
},
|
||||
"projectId": "REDACTED",
|
||||
"projectSlug": "REDACTED",
|
||||
"startedAt": 1780754580717,
|
||||
"team": {
|
||||
"id": "REDACTED"
|
||||
},
|
||||
"teamId": "REDACTED",
|
||||
"teamSlug": "REDACTED",
|
||||
"user": {
|
||||
"id": "REDACTED"
|
||||
}
|
||||
},
|
||||
"type": "observability.usage-anomaly"
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U074G5E1ANR",
|
||||
"type": "message",
|
||||
"ts": "1718856814.111759",
|
||||
"bot_id": "B074K2M1NF4",
|
||||
"app_id": "A0757RM31HN",
|
||||
"text": "<Desdemona> koo",
|
||||
"team": "T06NRA6HM3P",
|
||||
"bot_profile": {
|
||||
"id": "B074K2M1NF4",
|
||||
"deleted": false,
|
||||
"name": "export-bot",
|
||||
"updated": 1716360210,
|
||||
"app_id": "A0757RM31HN",
|
||||
"icons": {
|
||||
"image_36": "https://a.slack-edge.com/80588/img/plugins/app/bot_36.png",
|
||||
"image_48": "https://a.slack-edge.com/80588/img/plugins/app/bot_48.png",
|
||||
"image_72": "https://a.slack-edge.com/80588/img/plugins/app/service_72.png"
|
||||
},
|
||||
"team_id": "T06NRA6HM3P"
|
||||
},
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "a6Fvn",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "<Desdemona> koo"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1718856814.111759",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev078H33MYDV",
|
||||
"event_time": 1718856814,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"token": "x8GlZSSaBheFZWjZPbxPasEY",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A07A20JQSAG",
|
||||
"event": {
|
||||
"subtype": "bot_message",
|
||||
"text": "*Task status changed* from `complete` to `to do`",
|
||||
"username": "ClickUp",
|
||||
"attachments": [
|
||||
{
|
||||
"id": 1,
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"block_id": "bZ4XB",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*<https://app.clickup.com/t/25567147/86cw30wf2|asd>*",
|
||||
"verbatim": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "context",
|
||||
"block_id": "TEfLM",
|
||||
"elements": [
|
||||
{
|
||||
"type": "image",
|
||||
"image_url": "https://search.clickup-au.com/media/app-icons/clickup/logo_alpha.png",
|
||||
"alt_text": "Cookie / The Goodiest of Cstdddddsdd / dds"
|
||||
},
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": "in dds",
|
||||
"verbatim": false
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"image_url": "https://search.clickup-au.com/media/app-icons/clickup/status.png",
|
||||
"alt_text": "Status"
|
||||
},
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": "To Do",
|
||||
"verbatim": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "actions",
|
||||
"block_id": "cg8fg",
|
||||
"elements": [
|
||||
{
|
||||
"type": "button",
|
||||
"action_id": "NOOP",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "View task",
|
||||
"emoji": true
|
||||
},
|
||||
"url": "https://app.clickup.com/t/25567147/86cw30wf2"
|
||||
},
|
||||
{
|
||||
"type": "button",
|
||||
"action_id": "EDIT_TASK_ACTION",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "Edit task",
|
||||
"emoji": true
|
||||
},
|
||||
"value": "{\"taskID\":\"86cw30wf2\",\"teamID\":\"25567147\",\"taskUrl\":\"https://app.clickup.com/t/25567147/86cw30wf2\"}"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"color": "#656f7d",
|
||||
"fallback": "[no preview available]"
|
||||
}
|
||||
],
|
||||
"type": "message",
|
||||
"ts": "1723609070.703489",
|
||||
"bot_id": "B06NWMNUQ3W",
|
||||
"app_id": "A3G4A68V9",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"block_id": "X0xqC",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Task status changed* from `complete` to `to do`",
|
||||
"verbatim": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"channel": "C06P6T3QGD7",
|
||||
"event_ts": "1723609070.703489",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev07GMTJQFEJ",
|
||||
"event_time": 1723609070,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U07A1PEN4JW",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwN0EyMEpRU0FHIiwiY2lkIjoiQzA2UDZUM1FHRDcifQ"
|
||||
}
|
||||
1
zerver/webhooks/slack/fixtures/message_info.txt
Normal file
1
zerver/webhooks/slack/fixtures/message_info.txt
Normal file
@@ -0,0 +1 @@
|
||||
token=aotJImaVOVEVWssawxmegDWt&team_id=T3W8CTX0F&team_domain=gsoc2017&service_id=133126759712&channel_id=C3W8CTZFZ&channel_name=general×tamp=1485947263.000010&user_id=U3W8CTX2T&user_name=slack_user&text=test
|
||||
@@ -0,0 +1 @@
|
||||
token=aotJImaVOVEVWssawxmegDWt&team_id=T3W8CTX0F&team_domain=gsoc2017&service_id=133126759712&channel_id=C3W8CTZFZ×tamp=1485947263.000010&user_id=U3W8CTX2T&user_name=slack_user&text=test
|
||||
@@ -0,0 +1 @@
|
||||
token=aotJImaVOVEVWssawxmegDWt&team_id=T3W8CTX0F&team_domain=gsoc2017&service_id=133126759712&channel_id=C3W8CTZFZ&channel_name=general×tamp=1485947263.000010&user_name=slack_user&user_id=U3W8CTX2T
|
||||
@@ -0,0 +1 @@
|
||||
token=aotJImaVOVEVWssawxmegDWt&team_id=T3W8CTX0F&team_domain=gsoc2017&service_id=133126759712&channel_id=C3W8CTZFZ&channel_name=general×tamp=1485947263.000010&user_id=U3W8CTX2T&text=test
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211714.999529",
|
||||
"client_msg_id": "8908e456-1821-4316-875c-810019adf321",
|
||||
"text": "\u2022 list three\n\u2022 list two",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "Cua/K",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_list",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "list three"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "list two"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"style": "bullet",
|
||||
"indent": 0,
|
||||
"border": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211714.999529",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev07A31E3A2C",
|
||||
"event_time": 1719211714,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719210664.234089",
|
||||
"client_msg_id": "3e66cc71-119b-4576-b9b5-ec6000cd7dc8",
|
||||
"text": "<@U074VRHQ11T> <#C06P6T3QGD7|general> message with both channel and user mentions",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "jkPDh",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "user",
|
||||
"user_id": "U074VRHQ11T"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " "
|
||||
},
|
||||
{
|
||||
"type": "channel",
|
||||
"channel_id": "C06P6T3QGD7"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " message with both channel and user mentions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719210664.234089",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079B8H59UM",
|
||||
"event_time": 1719210664,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719210488.508969",
|
||||
"client_msg_id": "f90f528c-a4de-4ddf-8a6c-5315cc17c2d3",
|
||||
"text": "<#C06NRA6JLER|zulip-mirror> <#C06P6T3QGD7|general> message with channel mentions",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "bVBDn",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "channel",
|
||||
"channel_id": "C06NRA6JLER"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " "
|
||||
},
|
||||
{
|
||||
"type": "channel",
|
||||
"channel_id": "C06P6T3QGD7"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " message with channel mentions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719210488.508969",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079E1Z0DS7",
|
||||
"event_time": 1719210488,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
50
zerver/webhooks/slack/fixtures/message_with_code_block.json
Normal file
50
zerver/webhooks/slack/fixtures/message_with_code_block.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211888.680799",
|
||||
"client_msg_id": "452a95ae-9e35-4d84-a4c3-7012c6908f09",
|
||||
"text": "```def is_bot_message(payload: WildValue) -> bool:\n app_api_id = payload.get(\"api_app_id\").tame(check_none_or(check_string))\n bot_app_id = (\n payload.get(\"event\", {})\n .get(\"bot_profile\", {})\n .get(\"app_id\")\n .tame(check_none_or(check_string))\n )\n return bot_app_id is not None and app_api_id == bot_app_id```",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "293Eu",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_preformatted",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "def is_bot_message(payload: WildValue) -> bool:\n app_api_id = payload.get(\"api_app_id\").tame(check_none_or(check_string))\n bot_app_id = (\n payload.get(\"event\", {})\n .get(\"bot_profile\", {})\n .get(\"app_id\")\n .tame(check_none_or(check_string))\n )\n return bot_app_id is not None and app_api_id == bot_app_id"
|
||||
}
|
||||
],
|
||||
"border": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211888.680799",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev07A31RB0EL",
|
||||
"event_time": 1719211888,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211546.331399",
|
||||
"client_msg_id": "b763525d-9211-4333-936c-b1c02ff0105e",
|
||||
"text": "~_*<@U074VRHQ11T>*_~ ~_*<#C06P6T3QGD7|general>*_~ ~_*<!channel>*_~ ",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "yorkC",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "user",
|
||||
"user_id": "U074VRHQ11T",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " ",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "channel",
|
||||
"channel_id": "C06P6T3QGD7",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " ",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "broadcast",
|
||||
"range": "channel",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " ",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211546.331399",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079E3ZLGNP",
|
||||
"event_time": 1719211546,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211406.531029",
|
||||
"client_msg_id": "f9b21f6a-690b-4acb-b04d-d264cd7512a2",
|
||||
"text": "this is text messages with overlapping formatting\n_*bold with italic*_\n~*bold with strike through*~\n~_italic with strike through_~\n~_*all three*_~",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "Gx+b7",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "this is text messages with overlapping formatting\n"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "bold with italic",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "\n"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "bold with strike through",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "\n"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "italic with strike through",
|
||||
"style": {
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "\n"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "all three",
|
||||
"style": {
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"strike": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211406.531029",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev07A30U5YEL",
|
||||
"event_time": 1719211406,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719210450.946059",
|
||||
"client_msg_id": "266a366d-5e6d-4293-8e9d-1d3ada3a3c77",
|
||||
"text": "*Bold text* _italic text_ ~strikethrough~",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "pQxnY",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Bold text ",
|
||||
"style": {
|
||||
"bold": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "italic text ",
|
||||
"style": {
|
||||
"italic": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": "strikethrough",
|
||||
"style": {
|
||||
"strike": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719210450.946059",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev0797G216NS",
|
||||
"event_time": 1719210450,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
179
zerver/webhooks/slack/fixtures/message_with_image_files.json
Normal file
179
zerver/webhooks/slack/fixtures/message_with_image_files.json
Normal file
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"text": "",
|
||||
"files": [
|
||||
{
|
||||
"id": "F079E4173BL",
|
||||
"created": 1719209777,
|
||||
"timestamp": 1719209777,
|
||||
"name": "5e44bcbc-e43c-4a2e-85de-4be126f392f4.jpg",
|
||||
"title": "5e44bcbc-e43c-4a2e-85de-4be126f392f4.jpg",
|
||||
"mimetype": "image/jpeg",
|
||||
"filetype": "jpg",
|
||||
"pretty_type": "JPEG",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 3036645,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F079E4173BL/5e44bcbc-e43c-4a2e-85de-4be126f392f4.jpg",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F079E4173BL/download/5e44bcbc-e43c-4a2e-85de-4be126f392f4.jpg",
|
||||
"media_display_type": "unknown",
|
||||
"thumb_64": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_64.jpg",
|
||||
"thumb_80": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_80.jpg",
|
||||
"thumb_360": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_360.jpg",
|
||||
"thumb_360_w": 360,
|
||||
"thumb_360_h": 360,
|
||||
"thumb_480": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_480.jpg",
|
||||
"thumb_480_w": 480,
|
||||
"thumb_480_h": 480,
|
||||
"thumb_160": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_160.jpg",
|
||||
"thumb_720": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_720.jpg",
|
||||
"thumb_720_w": 720,
|
||||
"thumb_720_h": 720,
|
||||
"thumb_800": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_800.jpg",
|
||||
"thumb_800_w": 800,
|
||||
"thumb_800_h": 800,
|
||||
"thumb_960": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_960.jpg",
|
||||
"thumb_960_w": 960,
|
||||
"thumb_960_h": 960,
|
||||
"thumb_1024": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079E4173BL-6e091e0261/5e44bcbc-e43c-4a2e-85de-4be126f392f4_1024.jpg",
|
||||
"thumb_1024_w": 1024,
|
||||
"thumb_1024_h": 1024,
|
||||
"original_w": 3468,
|
||||
"original_h": 3468,
|
||||
"thumb_tiny": "AwAwADCzSHgZxmnUhqRkYcYyccnHFOIqIMMkqMYqUHIoAYRTTTzTTQBPUcg6MM5HpT80132igBgyfYd+MUwEqcADj0pcqM54JHIppfI9e3WmBLkdqaaSMnacjFBpAS5ozTc0ZoARk3HO7FN2gDHUfyp2aQmgAz2700mgmmk0Af/Z",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F079E4173BL/5e44bcbc-e43c-4a2e-85de-4be126f392f4.jpg",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F079E4173BL-b1d2ae27be",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F079GJ49X4L",
|
||||
"created": 1719209792,
|
||||
"timestamp": 1719209792,
|
||||
"name": "notif_bot.png",
|
||||
"title": "notif_bot.png",
|
||||
"mimetype": "image/png",
|
||||
"filetype": "png",
|
||||
"pretty_type": "PNG",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 45054,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F079GJ49X4L/notif_bot.png",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F079GJ49X4L/download/notif_bot.png",
|
||||
"media_display_type": "unknown",
|
||||
"thumb_64": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079GJ49X4L-5f45c24098/notif_bot_64.png",
|
||||
"thumb_80": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079GJ49X4L-5f45c24098/notif_bot_80.png",
|
||||
"thumb_360": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079GJ49X4L-5f45c24098/notif_bot_360.png",
|
||||
"thumb_360_w": 360,
|
||||
"thumb_360_h": 360,
|
||||
"thumb_480": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079GJ49X4L-5f45c24098/notif_bot_480.png",
|
||||
"thumb_480_w": 480,
|
||||
"thumb_480_h": 480,
|
||||
"thumb_160": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079GJ49X4L-5f45c24098/notif_bot_160.png",
|
||||
"original_w": 500,
|
||||
"original_h": 500,
|
||||
"thumb_tiny": "AwAwADBbKzia3V5F3M3PParH2O3/AOeS0WX/AB5xfSnC4Q3DQYO4DPtSEN+x2/8AzyWj7Hb/APPJanqOd/KhdxjIHGfWgBn2O3/55LVe9s4lt2eNdrLzx3q3AZDEpmAD9wKZe/8AHnL9KAEtGCWMbMcALkmmSs8wDRQSb1OVcgD/ACKZ/wAwlT6AH9auTb/JcxffxxQMi3XLdIUX/ef/AApssVxIo8ySJFBB4BP86fbb8vnzNnG3zOvvS3ELSMjKqPtyNr9Oe9ADJBPChlMokC8lSgGRReHNlIR0K091EVkUkbgIQSfpUU2f7MO7g+WM/pQIW1UPYIjdGXBpwW5UBRLGQOASpzVeyvIlt1SRtrLxz3qx9st/+eq0AMk85MbrhyWOAsaDJpERXfa73IYjIDnGfyoe6gNxCwkXC7sn8KJLqA3MTCVcBWyfyoGSrawqwbZkjuxJpL3/AI85fpR9st/+eq1XvbyJrdkjbczccdqBH//Z",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F079GJ49X4L/notif_bot.png",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F079GJ49X4L-b7e63652ec",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F07A2TA6PPS",
|
||||
"created": 1719209799,
|
||||
"timestamp": 1719209799,
|
||||
"name": "books.jpg",
|
||||
"title": "books.jpg",
|
||||
"mimetype": "image/jpeg",
|
||||
"filetype": "jpg",
|
||||
"pretty_type": "JPEG",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 1406170,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F07A2TA6PPS/books.jpg",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F07A2TA6PPS/download/books.jpg",
|
||||
"media_display_type": "unknown",
|
||||
"thumb_64": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_64.jpg",
|
||||
"thumb_80": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_80.jpg",
|
||||
"thumb_360": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_360.jpg",
|
||||
"thumb_360_w": 360,
|
||||
"thumb_360_h": 162,
|
||||
"thumb_480": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_480.jpg",
|
||||
"thumb_480_w": 480,
|
||||
"thumb_480_h": 216,
|
||||
"thumb_160": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_160.jpg",
|
||||
"thumb_720": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_720.jpg",
|
||||
"thumb_720_w": 720,
|
||||
"thumb_720_h": 324,
|
||||
"thumb_800": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_800.jpg",
|
||||
"thumb_800_w": 800,
|
||||
"thumb_800_h": 360,
|
||||
"thumb_960": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_960.jpg",
|
||||
"thumb_960_w": 960,
|
||||
"thumb_960_h": 432,
|
||||
"thumb_1024": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TA6PPS-b8f86f8918/books_1024.jpg",
|
||||
"thumb_1024_w": 1024,
|
||||
"thumb_1024_h": 461,
|
||||
"original_w": 4624,
|
||||
"original_h": 2080,
|
||||
"thumb_tiny": "AwAVADCikrg8HP1rVWBD16/WsuAFpkBHGa0w5z96kA2aCMnByMdCDzVaW2JJkeQuT0yKtSZZs55FROCsBBOeaBlRwwByRj2qvVmQnb9fSoIxk80IGhYpDE+4DNTi8P8Ac/WqtA60xFhrpy2RgUxriRlIJGD7VGetJQAu4+tKn3qbTk+9QB//2Q==",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F07A2TA6PPS/books.jpg",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F07A2TA6PPS-44b4516dd5",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
}
|
||||
],
|
||||
"upload": false,
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719209815.105159",
|
||||
"client_msg_id": "15117486-b4e1-42a9-a553-ca2886d94222",
|
||||
"channel": "C06NRA6JLER",
|
||||
"subtype": "file_share",
|
||||
"event_ts": "1719209815.105159",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079GJ5KG5A",
|
||||
"event_time": 1719209815,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"text": "Message with a file shared from a Slack Connect channel",
|
||||
"files": [
|
||||
{
|
||||
"id": "F12345678",
|
||||
"mode": "file_access",
|
||||
"file_access": "check_file_info",
|
||||
"created": 0,
|
||||
"timestamp": 0,
|
||||
"user": ""
|
||||
}
|
||||
],
|
||||
"upload": false,
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719209815.105159",
|
||||
"client_msg_id": "15117486-b4e1-42a9-a553-ca2886d94222",
|
||||
"channel": "C06NRA6JLER",
|
||||
"subtype": "file_share",
|
||||
"event_ts": "1719209815.105159",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079GJ5KG5A",
|
||||
"event_time": 1719209815,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": true,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
52
zerver/webhooks/slack/fixtures/message_with_inline_code.json
Normal file
52
zerver/webhooks/slack/fixtures/message_with_inline_code.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211825.087659",
|
||||
"client_msg_id": "ad34b81a-017a-4468-9dfe-6ec77aeb936b",
|
||||
"text": "`asdasda this is a code block`",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "DkA3r",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "asdasda this is a code block",
|
||||
"style": {
|
||||
"code": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211825.087659",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev078ZLS9GNT",
|
||||
"event_time": 1719211825,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
49
zerver/webhooks/slack/fixtures/message_with_normal_text.json
Normal file
49
zerver/webhooks/slack/fixtures/message_with_normal_text.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719209506.817929",
|
||||
"client_msg_id": "7cc3cc17-2fed-4356-b3c2-48106ab3a209",
|
||||
"text": "Hello, this is a normal text message",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "Xh7lJ",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "Hello, this is a normal text message"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719209506.817929",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079SP4TP1P",
|
||||
"event_time": 1719209506,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211791.356739",
|
||||
"client_msg_id": "a0d2e7ba-c057-45df-b59a-d4e38f4ac055",
|
||||
"text": "1. point one\n2. point two\n3. mix both\n4. pour water\n5. etc",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "G+/T6",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_list",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "point one"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "point two"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "mix both"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "pour water"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "etc"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"style": "ordered",
|
||||
"indent": 0,
|
||||
"border": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211791.356739",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079STB112M",
|
||||
"event_time": 1719211791,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
49
zerver/webhooks/slack/fixtures/message_with_quote_block.json
Normal file
49
zerver/webhooks/slack/fixtures/message_with_quote_block.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211959.210699",
|
||||
"client_msg_id": "116749a6-f2e2-4f99-96cb-fcef3300d1a1",
|
||||
"text": "> This is a quote",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "k3QzB",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_quote",
|
||||
"elements": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "This is a quote"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211959.210699",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079GN4DWNQ",
|
||||
"event_time": 1719211959,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719209649.631399",
|
||||
"client_msg_id": "ec2b7c8f-8530-43cc-9287-9f7617d5d335",
|
||||
"text": "<@U074VRHQ11T> <@U074G5E1ANR> <@U06NU4E26M9> hello, this is a message with mentions",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "UST8x",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "user",
|
||||
"user_id": "U074VRHQ11T"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " "
|
||||
},
|
||||
{
|
||||
"type": "user",
|
||||
"user_id": "U074G5E1ANR"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " "
|
||||
},
|
||||
{
|
||||
"type": "user",
|
||||
"user_id": "U06NU4E26M9"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " hello, this is a message with mentions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719209649.631399",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079B6N3H53",
|
||||
"event_time": 1719209649,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
222
zerver/webhooks/slack/fixtures/message_with_variety_files.json
Normal file
222
zerver/webhooks/slack/fixtures/message_with_variety_files.json
Normal file
@@ -0,0 +1,222 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"text": "Message with an assortment of file types",
|
||||
"files": [
|
||||
{
|
||||
"id": "F079E4CMY5Q",
|
||||
"created": 1719209974,
|
||||
"timestamp": 1719209974,
|
||||
"name": "postman-agent-0.4.25-linux-x64.tar.gz",
|
||||
"title": "postman-agent-0.4.25-linux-x64.tar.gz",
|
||||
"mimetype": "application/x-gzip",
|
||||
"filetype": "gzip",
|
||||
"pretty_type": "Gzip",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 107287179,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F079E4CMY5Q/postman-agent-0.4.25-linux-x64.tar.gz",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F079E4CMY5Q/download/postman-agent-0.4.25-linux-x64.tar.gz",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F079E4CMY5Q/postman-agent-0.4.25-linux-x64.tar.gz",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F079E4CMY5Q-22ef8b1a63",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F079SQ33CBT",
|
||||
"created": 1719210050,
|
||||
"timestamp": 1719210050,
|
||||
"name": "discord-0.0.55.deb",
|
||||
"title": "discord-0.0.55.deb",
|
||||
"mimetype": "application/octet-stream",
|
||||
"filetype": "binary",
|
||||
"pretty_type": "Binary",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 100957736,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F079SQ33CBT/discord-0.0.55.deb",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F079SQ33CBT/download/discord-0.0.55.deb",
|
||||
"media_display_type": "unknown",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F079SQ33CBT/discord-0.0.55.deb",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F079SQ33CBT-2438647ea1",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F079SQ721A5",
|
||||
"created": 1719210117,
|
||||
"timestamp": 1719210117,
|
||||
"name": "Slack-bot-scopes-List.xlsx",
|
||||
"title": "Slack-bot-scopes-List.xlsx",
|
||||
"mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"filetype": "xlsx",
|
||||
"pretty_type": "Excel Spreadsheet",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 75813,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F079SQ721A5/slack-bot-scopes-list.xlsx",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F079SQ721A5/download/slack-bot-scopes-list.xlsx",
|
||||
"media_display_type": "unknown",
|
||||
"converted_pdf": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079SQ721A5-315d1a255c/slack-bot-scopes-list_converted.pdf",
|
||||
"thumb_pdf": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079SQ721A5-315d1a255c/slack-bot-scopes-list_thumb_pdf.png",
|
||||
"thumb_pdf_w": 1210,
|
||||
"thumb_pdf_h": 935,
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F079SQ721A5/slack-bot-scopes-list.xlsx",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F079SQ721A5-77cdc07a4d",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F079B7G7NUD",
|
||||
"created": 1719210121,
|
||||
"timestamp": 1719210121,
|
||||
"name": "wallpaper.jpg",
|
||||
"title": "wallpaper.jpg",
|
||||
"mimetype": "image/jpeg",
|
||||
"filetype": "jpg",
|
||||
"pretty_type": "JPEG",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 1572520,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F079B7G7NUD/wallpaper.jpg",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F079B7G7NUD/download/wallpaper.jpg",
|
||||
"media_display_type": "unknown",
|
||||
"thumb_64": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_64.jpg",
|
||||
"thumb_80": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_80.jpg",
|
||||
"thumb_360": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_360.jpg",
|
||||
"thumb_360_w": 360,
|
||||
"thumb_360_h": 203,
|
||||
"thumb_480": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_480.jpg",
|
||||
"thumb_480_w": 480,
|
||||
"thumb_480_h": 270,
|
||||
"thumb_160": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_160.jpg",
|
||||
"thumb_720": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_720.jpg",
|
||||
"thumb_720_w": 720,
|
||||
"thumb_720_h": 405,
|
||||
"thumb_800": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_800.jpg",
|
||||
"thumb_800_w": 800,
|
||||
"thumb_800_h": 450,
|
||||
"thumb_960": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_960.jpg",
|
||||
"thumb_960_w": 960,
|
||||
"thumb_960_h": 540,
|
||||
"thumb_1024": "https://files.slack.com/files-tmb/T06NRA6HM3P-F079B7G7NUD-3b2ba7aee1/wallpaper_1024.jpg",
|
||||
"thumb_1024_w": 1024,
|
||||
"thumb_1024_h": 576,
|
||||
"original_w": 3840,
|
||||
"original_h": 2160,
|
||||
"thumb_tiny": "AwAbADCUU8U0UyZyAFQZPemIl3qKFO7J7VVA7u3PoKl2sMKG4PpTESGmmiMNtbJzg8Gg0hirVadH356irIpJPu5oQFWD5nIP3hyPp6VZkYqq46ngVXT/AFwqyedmfU0xEka7U/CmSAA8U9+MVEaQz//Z",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F079B7G7NUD/wallpaper.jpg",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F079B7G7NUD-c461327fc3",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F07A2TVKNQ0",
|
||||
"created": 1719210129,
|
||||
"timestamp": 1719210129,
|
||||
"name": "TestPDFfile.pdf",
|
||||
"title": "TestPDFfile.pdf",
|
||||
"mimetype": "application/pdf",
|
||||
"filetype": "pdf",
|
||||
"pretty_type": "PDF",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": false,
|
||||
"size": 83186,
|
||||
"mode": "hosted",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": true,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F07A2TVKNQ0/testpdffile.pdf",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F07A2TVKNQ0/download/testpdffile.pdf",
|
||||
"media_display_type": "unknown",
|
||||
"thumb_pdf": "https://files.slack.com/files-tmb/T06NRA6HM3P-F07A2TVKNQ0-67f8edb672/testpdffile_thumb_pdf.png",
|
||||
"thumb_pdf_w": 935,
|
||||
"thumb_pdf_h": 1210,
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F07A2TVKNQ0/testpdffile.pdf",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F07A2TVKNQ0-4507eb87a4",
|
||||
"has_rich_preview": false,
|
||||
"file_access": "visible"
|
||||
},
|
||||
{
|
||||
"id": "F07A2TVQ7C0",
|
||||
"created": 1719210132,
|
||||
"timestamp": 1719210132,
|
||||
"name": "channels.json",
|
||||
"title": "channels.json",
|
||||
"mimetype": "text/plain",
|
||||
"filetype": "json",
|
||||
"pretty_type": "JSON",
|
||||
"user": "U06NU4E26M9",
|
||||
"user_team": "T06NRA6HM3P",
|
||||
"editable": true,
|
||||
"size": 1563,
|
||||
"mode": "snippet",
|
||||
"is_external": false,
|
||||
"external_type": "",
|
||||
"is_public": false,
|
||||
"public_url_shared": false,
|
||||
"display_as_bot": false,
|
||||
"username": "",
|
||||
"url_private": "https://files.slack.com/files-pri/T06NRA6HM3P-F07A2TVQ7C0/channels.json",
|
||||
"url_private_download": "https://files.slack.com/files-pri/T06NRA6HM3P-F07A2TVQ7C0/download/channels.json",
|
||||
"permalink": "https://ds-py62195.slack.com/files/U06NU4E26M9/F07A2TVQ7C0/channels.json",
|
||||
"permalink_public": "https://slack-files.com/T06NRA6HM3P-F07A2TVQ7C0-5b1d277896",
|
||||
"edit_link": "https://ds-py62195.slack.com/files/U06NU4E26M9/F07A2TVQ7C0/channels.json/edit",
|
||||
"preview": "[\n{\n \"id\": \"C06NRA6JLER\",\n \"name\": \"random\",\n \"created\": 1710128735,",
|
||||
"preview_highlight": "<div class="
|
||||
}
|
||||
],
|
||||
"upload": false,
|
||||
"type": "message",
|
||||
"user": "U06NU4E26M9",
|
||||
"ts": "1719209815.105159",
|
||||
"client_msg_id": "15117486-b4e1-42a9-a553-ca2886d94222",
|
||||
"channel": "C06NRA6JLER",
|
||||
"subtype": "file_share",
|
||||
"event_ts": "1719209815.105159",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"token": "CqCsBJmXoNSHaNCt3wGWYSEe",
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"context_team_id": "T06NRA6HM3P",
|
||||
"context_enterprise_id": null,
|
||||
"api_app_id": "A0757RM31HN",
|
||||
"event": {
|
||||
"user": "U06NU4E26M9",
|
||||
"type": "message",
|
||||
"ts": "1719211249.499799",
|
||||
"client_msg_id": "49d50b19-e55e-452b-a6c2-8c5e1d4b3ef9",
|
||||
"text": "<!channel> <!here> Sorry for mentioning. This is for the test fixtures for the Slack integration update PR I'm working on and can't be done in a private channel. :bow:",
|
||||
"team": "T06NRA6HM3P",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "rich_text",
|
||||
"block_id": "298sd",
|
||||
"elements": [
|
||||
{
|
||||
"type": "rich_text_section",
|
||||
"elements": [
|
||||
{
|
||||
"type": "broadcast",
|
||||
"range": "channel"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " "
|
||||
},
|
||||
{
|
||||
"type": "broadcast",
|
||||
"range": "here"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"text": " Sorry for mentioning. This is for the test fixtures for the Slack integration update PR I'm working on and can't be done in a private channel. "
|
||||
},
|
||||
{
|
||||
"type": "emoji",
|
||||
"name": "bow",
|
||||
"unicode": "1f647"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"channel": "C06NRA6JLER",
|
||||
"event_ts": "1719211249.499799",
|
||||
"channel_type": "channel"
|
||||
},
|
||||
"type": "event_callback",
|
||||
"event_id": "Ev079GLT13NY",
|
||||
"event_time": 1719211249,
|
||||
"authorizations": [
|
||||
{
|
||||
"enterprise_id": null,
|
||||
"team_id": "T06NRA6HM3P",
|
||||
"user_id": "U074G5E1ANR",
|
||||
"is_bot": true,
|
||||
"is_enterprise_install": false
|
||||
}
|
||||
],
|
||||
"is_ext_shared_channel": false,
|
||||
"event_context": "4-eyJldCI6Im1lc3NhZ2UiLCJ0aWQiOiJUMDZOUkE2SE0zUCIsImFpZCI6IkEwNzU3Uk0zMUhOIiwiY2lkIjoiQzA2TlJBNkpMRVIifQ"
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"ok": true,
|
||||
"channel": {
|
||||
"id": "C012AB3CD",
|
||||
"name": "Slack general",
|
||||
"is_channel": true,
|
||||
"is_group": false,
|
||||
"is_im": false,
|
||||
"is_mpim": false,
|
||||
"is_private": false,
|
||||
"created": 1654868334,
|
||||
"is_archived": false,
|
||||
"is_general": true,
|
||||
"unlinked": 0,
|
||||
"name_normalized": "Slack general",
|
||||
"is_shared": false,
|
||||
"is_frozen": false,
|
||||
"is_org_shared": false,
|
||||
"is_pending_ext_shared": false,
|
||||
"pending_shared": [],
|
||||
"context_team_id": "T123ABC456",
|
||||
"updated": 1723130875818,
|
||||
"parent_conversation": null,
|
||||
"creator": "U123ABC456",
|
||||
"is_ext_shared": false,
|
||||
"shared_team_ids": [
|
||||
"T123ABC456"
|
||||
],
|
||||
"pending_connected_team_ids": [],
|
||||
"topic": {
|
||||
"value": "For public discussion of generalities",
|
||||
"creator": "W012A3BCD",
|
||||
"last_set": 1449709364
|
||||
},
|
||||
"purpose": {
|
||||
"value": "This part of the workspace is for fun. Make fun here.",
|
||||
"creator": "W012A3BCD",
|
||||
"last_set": 1449709364
|
||||
},
|
||||
"properties": {
|
||||
"tabs": [
|
||||
{
|
||||
"id": "workflows",
|
||||
"label": "",
|
||||
"type": "workflows"
|
||||
},
|
||||
{
|
||||
"id": "files",
|
||||
"label": "",
|
||||
"type": "files"
|
||||
},
|
||||
{
|
||||
"id": "bookmarks",
|
||||
"label": "",
|
||||
"type": "bookmarks"
|
||||
}
|
||||
]
|
||||
},
|
||||
"previous_names": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"ok": true,
|
||||
"user": {
|
||||
"id": "W012A3CDE",
|
||||
"team_id": "T012AB3C4",
|
||||
"name": "supersecretemail",
|
||||
"deleted": false,
|
||||
"color": "9f69e7",
|
||||
"real_name": "John Doe",
|
||||
"tz": "America/Los_Angeles",
|
||||
"tz_label": "Pacific Daylight Time",
|
||||
"tz_offset": -25200,
|
||||
"profile": {
|
||||
"avatar_hash": "ge3b51ca72de",
|
||||
"status_text": "Print is dead",
|
||||
"status_emoji": ":books:",
|
||||
"real_name": "John Doe",
|
||||
"display_name": "john",
|
||||
"real_name_normalized": "John Doe",
|
||||
"display_name_normalized": "john",
|
||||
"email": "supersecretemail@ghostbusters.example.com",
|
||||
"image_original": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"image_24": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"image_32": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"image_48": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"image_72": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"image_192": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"image_512": "https://.../avatar/e3b51ca72dee4ef87916ae2b9240df50.jpg",
|
||||
"team": "T012AB3C4"
|
||||
},
|
||||
"is_admin": true,
|
||||
"is_owner": false,
|
||||
"is_primary_owner": false,
|
||||
"is_restricted": false,
|
||||
"is_ultra_restricted": false,
|
||||
"is_bot": false,
|
||||
"updated": 1502138686,
|
||||
"is_app_user": false,
|
||||
"has_2fa": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user