@activepieces/piece-slack 0.9.4 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/i18n/ca.json +156 -0
- package/src/i18n/de.json +156 -0
- package/src/i18n/es.json +156 -0
- package/src/i18n/fr.json +156 -0
- package/src/i18n/hi.json +156 -0
- package/src/i18n/id.json +156 -0
- package/src/i18n/ja.json +156 -0
- package/src/i18n/nl.json +156 -0
- package/src/i18n/pt.json +156 -0
- package/src/i18n/ru.json +156 -0
- package/src/i18n/vi.json +156 -0
- package/src/i18n/zh.json +156 -0
- package/src/index.js +39 -11
- package/src/index.js.map +1 -1
- package/src/lib/actions/request-action-direct-message.d.ts +1 -1
- package/src/lib/actions/request-action-message.d.ts +2 -1
- package/src/lib/actions/request-action-message.js +1 -0
- package/src/lib/actions/request-action-message.js.map +1 -1
- package/src/lib/actions/send-message-action.js +1 -5
- package/src/lib/actions/send-message-action.js.map +1 -1
- package/src/lib/common/props.d.ts +2 -1
- package/src/lib/common/props.js +24 -1
- package/src/lib/common/props.js.map +1 -1
- package/src/lib/common/request-action.d.ts +37 -0
- package/src/lib/common/request-action.js +53 -16
- package/src/lib/common/request-action.js.map +1 -1
package/src/i18n/ru.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Slack": "Slack",
|
|
3
|
+
"Channel-based messaging platform": "Платформа обмена сообщениями на основе каналов",
|
|
4
|
+
"Add Reaction to Message": "Добавить реакцию в сообщение",
|
|
5
|
+
"Send Message To A User": "Отправить сообщение пользователю",
|
|
6
|
+
"Send Message To A Channel": "Отправить сообщение каналу",
|
|
7
|
+
"Request Approval from A User": "Запрос подтверждения от пользователя",
|
|
8
|
+
"Request Approval in a Channel": "Запрос одобрения в канале",
|
|
9
|
+
"Request Action from A User": "Запросить действие у пользователя",
|
|
10
|
+
"Request Action in A Channel": "Запросить действие в канале",
|
|
11
|
+
"Upload file": "Загрузить файл",
|
|
12
|
+
"Get File": "Получить файл",
|
|
13
|
+
"Search messages": "Поиск сообщений",
|
|
14
|
+
"Find User by Email": "Найти пользователя по электронной почте",
|
|
15
|
+
"Find User by Handle": "Найти пользователя по ручке",
|
|
16
|
+
"Find User by ID": "Найти пользователя по ID",
|
|
17
|
+
"Update message": "Обновить сообщение",
|
|
18
|
+
"Create Channel": "Создать канал",
|
|
19
|
+
"Update Profile": "Обновить профиль",
|
|
20
|
+
"Get channel history": "Получить историю каналов",
|
|
21
|
+
"Set User Status": "Установить статус пользователя",
|
|
22
|
+
"Markdown to Slack format": "Markdown to Slack format",
|
|
23
|
+
"Retrieve Thread Messages": "Получить сообщения о теме",
|
|
24
|
+
"Set Channel Topic": "Установить тему канала",
|
|
25
|
+
"Get Message by Timestamp": "Получить сообщение по времени",
|
|
26
|
+
"Invite User to Channel": "Пригласить пользователя в канал",
|
|
27
|
+
"Custom API Call": "Пользовательский вызов API",
|
|
28
|
+
"Add an emoji reaction to a message.": "Добавить эмодзи реакцию на сообщение.",
|
|
29
|
+
"Send message to a user": "Отправить сообщение пользователю",
|
|
30
|
+
"Send message to a channel": "Отправить сообщение каналу",
|
|
31
|
+
"Send approval message to a user and then wait until the message is approved or disapproved": "Отправить сообщение об одобрении пользователю и подождать, пока сообщение будет одобрено или отклонено",
|
|
32
|
+
"Send approval message to a channel and then wait until the message is approved or disapproved": "Отправить сообщение об одобрении каналу и подождать, пока сообщение будет одобрено или отклонено",
|
|
33
|
+
"Send a message to a user and wait until the user selects an action": "Отправить сообщение пользователю и подождать, пока пользователь не выберет действие",
|
|
34
|
+
"Send a message in a channel and wait until an action is selected": "Отправить сообщение в канале и подождать, пока не будет выбрано действие",
|
|
35
|
+
"Upload file without sharing it to a channel or user": "Загрузить файл, не передав его на канал или пользователю",
|
|
36
|
+
"Return information about a given file ID.": "Возвращает информацию об указанном ID файла.",
|
|
37
|
+
"Searches for messages matching a query": "Поиск сообщений, соответствующих запросу",
|
|
38
|
+
"Finds a user by matching against their email address.": "Поиск пользователя, совпадающего с его адресом электронной почты.",
|
|
39
|
+
"Finds a user by matching against their Slack handle.": "Находит пользователя, совпадая с его обработчиком Slack .",
|
|
40
|
+
"Finds a user by their ID.": "Находит пользователя по их ID.",
|
|
41
|
+
"Update an existing message": "Обновить существующее сообщение",
|
|
42
|
+
"Creates a new channel.": "Создает новый канал.",
|
|
43
|
+
"Update basic profile field such as name or title.": "Обновить базовое поле профиля, такое как имя или название.",
|
|
44
|
+
"Retrieve all messages from a specific channel (\"conversation\") between specified timestamps": "Получить все сообщения от определенного канала (\"разговор\") между заданными временными метками",
|
|
45
|
+
"Sets a user's custom status": "Устанавливает пользовательский статус",
|
|
46
|
+
"Convert Markdown-formatted text to Slack's pseudo - markdown syntax": "Преобразовать текст в псевдо Slack - синтаксис markdown-форматирования",
|
|
47
|
+
"Retrieves thread messages by channel and thread timestamp.": "Получает поток сообщений по каналам и меткам времени.",
|
|
48
|
+
"Sets the topic on a selected channel.": "Устанавливает тему для выбранного канала.",
|
|
49
|
+
"Retrieves a specific message from a channel history using the message's timestamp.": "Получает определенное сообщение из истории канала, используя временную метку сообщения.",
|
|
50
|
+
"Invites an existing User to an existing channel.": "Приглашает существующего пользователя на существующий канал.",
|
|
51
|
+
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
|
52
|
+
"Markdown": "Markdown",
|
|
53
|
+
"Channel": "Канал",
|
|
54
|
+
"Message Timestamp": "Отметка времени сообщения",
|
|
55
|
+
"Reaction (emoji) name": "Имя реакции (emoji)",
|
|
56
|
+
"User": "Пользователь",
|
|
57
|
+
"Message": "Сообщение",
|
|
58
|
+
"Username": "Имя пользователя",
|
|
59
|
+
"Profile Picture": "Изображение профиля",
|
|
60
|
+
"Block Kit blocks": "Блоки блоков",
|
|
61
|
+
"Attachment": "Вложение",
|
|
62
|
+
"Thread ts": "Темы",
|
|
63
|
+
"Action Buttons": "Кнопки действий",
|
|
64
|
+
"Title": "Заголовок",
|
|
65
|
+
"Filename": "Имя файла",
|
|
66
|
+
"File ID": "ID файла",
|
|
67
|
+
"Search query": "Поисковый запрос",
|
|
68
|
+
"Email": "Почта",
|
|
69
|
+
"Handle": "Ручка",
|
|
70
|
+
"ID": "ID",
|
|
71
|
+
"Channel Name": "Название канала",
|
|
72
|
+
"Is Private?": "Приватный?",
|
|
73
|
+
"First Name": "First Name",
|
|
74
|
+
"Last Name": "Last Name",
|
|
75
|
+
"Oldest": "Старые",
|
|
76
|
+
"Latest": "Последние",
|
|
77
|
+
"Inclusive": "Включающий",
|
|
78
|
+
"Include all metadata": "Включить все метаданные",
|
|
79
|
+
"Text": "Текст",
|
|
80
|
+
"Emoji": "Emoji",
|
|
81
|
+
"Expires at": "Истекает в",
|
|
82
|
+
"Markdown text": "Markdown текст",
|
|
83
|
+
"Topic": "Тема",
|
|
84
|
+
"Method": "Метод",
|
|
85
|
+
"Headers": "Заголовки",
|
|
86
|
+
"Query Parameters": "Параметры запроса",
|
|
87
|
+
"Body": "Тело",
|
|
88
|
+
"No Error on Failure": "Нет ошибок при ошибке",
|
|
89
|
+
"Timeout (in seconds)": "Таймаут (в секундах)",
|
|
90
|
+
"Use user token": "Использовать токен пользователя",
|
|
91
|
+
"\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.\n ": "\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.\n ",
|
|
92
|
+
"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'": "Вы можете получить идентификатор канала, щелкнув правой кнопкой мыши по каналу и выбрав 'View Channel Details.'",
|
|
93
|
+
"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Пожалуйста, укажите временную метку сообщения, которое вы хотите повторить, например `1710304378.475129`. Кроме того, вы можете легко получить ссылку на сообщение, нажав на три точки рядом с сообщением и выбрав опцию `Copy link`.",
|
|
94
|
+
"e.g.`thumbsup`": "e.g.`thumbsup`",
|
|
95
|
+
"The username of the bot": "Имя пользователя бота",
|
|
96
|
+
"The profile picture of the bot": "Изображение профиля бота",
|
|
97
|
+
"See https://api.slack.com/block-kit for specs": "См. спецификации https://api.slack.com/block-kit",
|
|
98
|
+
"The text of your message": "Текст вашего сообщения",
|
|
99
|
+
"Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Предоставьте значение ts (метки времени) в **родительском** сообщении, чтобы сделать это сообщение ответом. Не используйте значение ts самого ответа; используйте его родителя. Например, `1710304378. 75129`.Или вы можете легко получить ссылку сообщения, нажав на три точки рядом с родительским сообщением и выбрав опцию `Copy link`.",
|
|
100
|
+
"You can pass the file ID from the New Message Trigger payload.": "Вы можете передать идентификатор файла из нового сообщения Триггер.",
|
|
101
|
+
"User handle (display name), without the leading @": "Пользовательский дескриптор (отображаемое имя), без ведущего @",
|
|
102
|
+
"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Пожалуйста, укажите временную метку сообщения, которое вы хотите обновить, например `1710304378.475129`. Кроме того, вы можете легко получить ссылку на сообщение, нажав на три точки рядом с сообщением и выбрав опцию `Copy link`.",
|
|
103
|
+
"The updated text of your message": "Обновленный текст вашего сообщения",
|
|
104
|
+
"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.": "Изменение адреса электронной почты пользователя пошлет письмо как на старый, так и на новый, , а также отправить пользователю сообщение о изменениях в блоке бота.",
|
|
105
|
+
"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.": "ID пользователя для изменения. Этот аргумент может быть указан администраторами платных команд. ou может использовать **Найти пользователя по электронной почте** для получения идентификатора.",
|
|
106
|
+
"Only messages after this timestamp will be included in results": "Сообщения после этой отметки времени будут включаться в результаты",
|
|
107
|
+
"Only messages before this timestamp will be included in results. Default is the current time": "Будут включены только сообщения до этого времени в результаты. По умолчанию это текущее время",
|
|
108
|
+
"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified": "Включать в результаты сообщения с старыми или последними временными метками. Игнорируется, если не задана ни временная метка",
|
|
109
|
+
"Return all metadata associated with each message": "Вернуть все метаданные, связанные с каждым сообщением",
|
|
110
|
+
"Emoji shortname (standard or custom), e.g. :tada: or :train:": "Имя эмодзи (стандартное или пользовательское), например :tada: или :train:",
|
|
111
|
+
"Unix timestamp - if not set, the status will not expire": "Unix timestamp - если не установлен, статус не истекает",
|
|
112
|
+
"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Предоставьте значение ts (метки времени) **parent** сообщения для получения ответов от этого сообщения. Не используйте значение ts самого ответа; используйте его родителя. Например, «1710304378.475129». Вечно вы можете легко получить ссылку на сообщение, нажав на три точки рядом с родительским сообщением и выбрав опцию `Copy link`.",
|
|
113
|
+
"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Пожалуйста, укажите временную метку полученного сообщения, например `1710304378.475129`. Кроме того, вы можете легко получить ссылку на сообщение, нажав на три точки рядом с сообщением и выбрав опцию `Copy link`.",
|
|
114
|
+
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
|
115
|
+
"Use user token instead of bot token": "Использовать пользовательский токен вместо токена бота",
|
|
116
|
+
"GET": "ПОЛУЧИТЬ",
|
|
117
|
+
"POST": "ПОСТ",
|
|
118
|
+
"PATCH": "ПАТЧ",
|
|
119
|
+
"PUT": "ПОКУПИТЬ",
|
|
120
|
+
"DELETE": "УДАЛИТЬ",
|
|
121
|
+
"HEAD": "HEAD",
|
|
122
|
+
"New Public Message Posted Anywhere": "Новое публичное сообщение размещено везде",
|
|
123
|
+
"New Message Posted to Channel": "Новое сообщение отправлено в канал",
|
|
124
|
+
"New Direct Message": "Новое личное сообщение",
|
|
125
|
+
"New Mention in Channel": "Новое упоминание в канале",
|
|
126
|
+
"New Mention in Direct Message": "Новое упоминание в прямом сообщении",
|
|
127
|
+
"New Reaction": "Новая реакция",
|
|
128
|
+
"Channel created": "Канал создан",
|
|
129
|
+
"New Command in Channel": "Новая команда в канале",
|
|
130
|
+
"New Command in Direct Message": "Новая команда в прямом сообщении",
|
|
131
|
+
"New User": "Новый пользователь",
|
|
132
|
+
"New Saved Message": "Новое Сохраненное сообщение",
|
|
133
|
+
"New Team Custom Emoji": "Новая команда пользовательские эмодзи",
|
|
134
|
+
"Triggers when a new message is posted to any channel.": "Включает при отправке нового сообщения в любой канал.",
|
|
135
|
+
"Triggers when a new message is posted to a specific #channel you choose.": "Включает при отправке нового сообщения в выбранный вами #канал.",
|
|
136
|
+
"Triggers when a message was posted in a direct message channel.": "Срабатывает при отправке сообщения в канале прямого сообщения.",
|
|
137
|
+
"Triggers when a username is mentioned.": "Триггеры при упоминании имени пользователя.",
|
|
138
|
+
"Triggers when a username is mentioned in a direct message channel.": "Включает упоминание имени пользователя в канале прямого сообщения.",
|
|
139
|
+
"Triggers when a new reaction is added to a message": "Триггеры при добавлении новой реакции в сообщение",
|
|
140
|
+
"Triggers when a channel is created": "Триггеры при создании канала",
|
|
141
|
+
"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)": "Запуск при отправке определённой команды боту (например, команды arg1 arg2)",
|
|
142
|
+
"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.": "Триггеры при отправке определённой команды боту (например, команды arg1 arg2) через прямое сообщение.",
|
|
143
|
+
"Triggers when a new user is created / first joins your org.": "Включает при создании нового пользователя / первом подключении к вашему органу.",
|
|
144
|
+
"Triggers when you save a message.": "Включает при сохранении сообщения.",
|
|
145
|
+
"Triggers when a custom emoji has been added to a team.": "Включает при добавлении в команду пользовательских эмодзи.",
|
|
146
|
+
"Ignore Bot Messages ?": "Игнорировать сообщения бота?",
|
|
147
|
+
"Ignore Message from Yourself ?": "Игнорировать сообщение от себя?",
|
|
148
|
+
"Channels": "Каналы",
|
|
149
|
+
"Emojis (E.g fire, smile)": "Emojis (огонь, улыбка)",
|
|
150
|
+
"Commands": "Команды",
|
|
151
|
+
"\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}": "\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}",
|
|
152
|
+
"If no channel is selected, the flow will be triggered for username mentions in all channels": "Если канал не выбран, поток будет срабатывать для упоминания имени пользователя во всех каналах",
|
|
153
|
+
"Select emojis to trigger on": "Выберите emojis для запуска",
|
|
154
|
+
"List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "Список допустимых команд, которые бот должен отвечать (например, help, ocr, remind)",
|
|
155
|
+
"If no channel is selected, the flow will be triggered for commands in all channels": "Если канал не выбран, поток будет срабатывать для команд во всех каналах"
|
|
156
|
+
}
|
package/src/i18n/vi.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Slack": "Slack",
|
|
3
|
+
"Channel-based messaging platform": "Channel-based messaging platform",
|
|
4
|
+
"Add Reaction to Message": "Add Reaction to Message",
|
|
5
|
+
"Send Message To A User": "Send Message To A User",
|
|
6
|
+
"Send Message To A Channel": "Send Message To A Channel",
|
|
7
|
+
"Request Approval from A User": "Request Approval from A User",
|
|
8
|
+
"Request Approval in a Channel": "Request Approval in a Channel",
|
|
9
|
+
"Request Action from A User": "Request Action from A User",
|
|
10
|
+
"Request Action in A Channel": "Request Action in A Channel",
|
|
11
|
+
"Upload file": "Upload file",
|
|
12
|
+
"Get File": "Get File",
|
|
13
|
+
"Search messages": "Search messages",
|
|
14
|
+
"Find User by Email": "Find User by Email",
|
|
15
|
+
"Find User by Handle": "Find User by Handle",
|
|
16
|
+
"Find User by ID": "Find User by ID",
|
|
17
|
+
"Update message": "Update message",
|
|
18
|
+
"Create Channel": "Create Channel",
|
|
19
|
+
"Update Profile": "Update Profile",
|
|
20
|
+
"Get channel history": "Get channel history",
|
|
21
|
+
"Set User Status": "Set User Status",
|
|
22
|
+
"Markdown to Slack format": "Markdown to Slack format",
|
|
23
|
+
"Retrieve Thread Messages": "Retrieve Thread Messages",
|
|
24
|
+
"Set Channel Topic": "Set Channel Topic",
|
|
25
|
+
"Get Message by Timestamp": "Get Message by Timestamp",
|
|
26
|
+
"Invite User to Channel": "Invite User to Channel",
|
|
27
|
+
"Custom API Call": "Custom API Call",
|
|
28
|
+
"Add an emoji reaction to a message.": "Add an emoji reaction to a message.",
|
|
29
|
+
"Send message to a user": "Send message to a user",
|
|
30
|
+
"Send message to a channel": "Send message to a channel",
|
|
31
|
+
"Send approval message to a user and then wait until the message is approved or disapproved": "Send approval message to a user and then wait until the message is approved or disapproved",
|
|
32
|
+
"Send approval message to a channel and then wait until the message is approved or disapproved": "Send approval message to a channel and then wait until the message is approved or disapproved",
|
|
33
|
+
"Send a message to a user and wait until the user selects an action": "Send a message to a user and wait until the user selects an action",
|
|
34
|
+
"Send a message in a channel and wait until an action is selected": "Send a message in a channel and wait until an action is selected",
|
|
35
|
+
"Upload file without sharing it to a channel or user": "Upload file without sharing it to a channel or user",
|
|
36
|
+
"Return information about a given file ID.": "Return information about a given file ID.",
|
|
37
|
+
"Searches for messages matching a query": "Searches for messages matching a query",
|
|
38
|
+
"Finds a user by matching against their email address.": "Finds a user by matching against their email address.",
|
|
39
|
+
"Finds a user by matching against their Slack handle.": "Finds a user by matching against their Slack handle.",
|
|
40
|
+
"Finds a user by their ID.": "Finds a user by their ID.",
|
|
41
|
+
"Update an existing message": "Update an existing message",
|
|
42
|
+
"Creates a new channel.": "Creates a new channel.",
|
|
43
|
+
"Update basic profile field such as name or title.": "Update basic profile field such as name or title.",
|
|
44
|
+
"Retrieve all messages from a specific channel (\"conversation\") between specified timestamps": "Retrieve all messages from a specific channel (\"conversation\") between specified timestamps",
|
|
45
|
+
"Sets a user's custom status": "Sets a user's custom status",
|
|
46
|
+
"Convert Markdown-formatted text to Slack's pseudo - markdown syntax": "Convert Markdown-formatted text to Slack's pseudo - markdown syntax",
|
|
47
|
+
"Retrieves thread messages by channel and thread timestamp.": "Retrieves thread messages by channel and thread timestamp.",
|
|
48
|
+
"Sets the topic on a selected channel.": "Sets the topic on a selected channel.",
|
|
49
|
+
"Retrieves a specific message from a channel history using the message's timestamp.": "Retrieves a specific message from a channel history using the message's timestamp.",
|
|
50
|
+
"Invites an existing User to an existing channel.": "Invites an existing User to an existing channel.",
|
|
51
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
52
|
+
"Markdown": "Markdown",
|
|
53
|
+
"Channel": "Channel",
|
|
54
|
+
"Message Timestamp": "Message Timestamp",
|
|
55
|
+
"Reaction (emoji) name": "Reaction (emoji) name",
|
|
56
|
+
"User": "User",
|
|
57
|
+
"Message": "Message",
|
|
58
|
+
"Username": "Username",
|
|
59
|
+
"Profile Picture": "Profile Picture",
|
|
60
|
+
"Block Kit blocks": "Block Kit blocks",
|
|
61
|
+
"Attachment": "Attachment",
|
|
62
|
+
"Thread ts": "Thread ts",
|
|
63
|
+
"Action Buttons": "Action Buttons",
|
|
64
|
+
"Title": "Title",
|
|
65
|
+
"Filename": "Filename",
|
|
66
|
+
"File ID": "File ID",
|
|
67
|
+
"Search query": "Search query",
|
|
68
|
+
"Email": "Email",
|
|
69
|
+
"Handle": "Handle",
|
|
70
|
+
"ID": "ID",
|
|
71
|
+
"Channel Name": "Channel Name",
|
|
72
|
+
"Is Private?": "Is Private?",
|
|
73
|
+
"First Name": "First Name",
|
|
74
|
+
"Last Name": "Last Name",
|
|
75
|
+
"Oldest": "Oldest",
|
|
76
|
+
"Latest": "Latest",
|
|
77
|
+
"Inclusive": "Inclusive",
|
|
78
|
+
"Include all metadata": "Include all metadata",
|
|
79
|
+
"Text": "Text",
|
|
80
|
+
"Emoji": "Emoji",
|
|
81
|
+
"Expires at": "Expires at",
|
|
82
|
+
"Markdown text": "Markdown text",
|
|
83
|
+
"Topic": "Topic",
|
|
84
|
+
"Method": "Method",
|
|
85
|
+
"Headers": "Headers",
|
|
86
|
+
"Query Parameters": "Query Parameters",
|
|
87
|
+
"Body": "Body",
|
|
88
|
+
"No Error on Failure": "No Error on Failure",
|
|
89
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
90
|
+
"Use user token": "Use user token",
|
|
91
|
+
"\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.\n ": "\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.\n ",
|
|
92
|
+
"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'": "You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'",
|
|
93
|
+
"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",
|
|
94
|
+
"e.g.`thumbsup`": "e.g.`thumbsup`",
|
|
95
|
+
"The username of the bot": "The username of the bot",
|
|
96
|
+
"The profile picture of the bot": "The profile picture of the bot",
|
|
97
|
+
"See https://api.slack.com/block-kit for specs": "See https://api.slack.com/block-kit for specs",
|
|
98
|
+
"The text of your message": "The text of your message",
|
|
99
|
+
"Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",
|
|
100
|
+
"You can pass the file ID from the New Message Trigger payload.": "You can pass the file ID from the New Message Trigger payload.",
|
|
101
|
+
"User handle (display name), without the leading @": "User handle (display name), without the leading @",
|
|
102
|
+
"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",
|
|
103
|
+
"The updated text of your message": "The updated text of your message",
|
|
104
|
+
"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.": "Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.",
|
|
105
|
+
"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.": "ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.",
|
|
106
|
+
"Only messages after this timestamp will be included in results": "Only messages after this timestamp will be included in results",
|
|
107
|
+
"Only messages before this timestamp will be included in results. Default is the current time": "Only messages before this timestamp will be included in results. Default is the current time",
|
|
108
|
+
"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified": "Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified",
|
|
109
|
+
"Return all metadata associated with each message": "Return all metadata associated with each message",
|
|
110
|
+
"Emoji shortname (standard or custom), e.g. :tada: or :train:": "Emoji shortname (standard or custom), e.g. :tada: or :train:",
|
|
111
|
+
"Unix timestamp - if not set, the status will not expire": "Unix timestamp - if not set, the status will not expire",
|
|
112
|
+
"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",
|
|
113
|
+
"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",
|
|
114
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
115
|
+
"Use user token instead of bot token": "Use user token instead of bot token",
|
|
116
|
+
"GET": "GET",
|
|
117
|
+
"POST": "POST",
|
|
118
|
+
"PATCH": "PATCH",
|
|
119
|
+
"PUT": "PUT",
|
|
120
|
+
"DELETE": "DELETE",
|
|
121
|
+
"HEAD": "HEAD",
|
|
122
|
+
"New Public Message Posted Anywhere": "New Public Message Posted Anywhere",
|
|
123
|
+
"New Message Posted to Channel": "New Message Posted to Channel",
|
|
124
|
+
"New Direct Message": "New Direct Message",
|
|
125
|
+
"New Mention in Channel": "New Mention in Channel",
|
|
126
|
+
"New Mention in Direct Message": "New Mention in Direct Message",
|
|
127
|
+
"New Reaction": "New Reaction",
|
|
128
|
+
"Channel created": "Channel created",
|
|
129
|
+
"New Command in Channel": "New Command in Channel",
|
|
130
|
+
"New Command in Direct Message": "New Command in Direct Message",
|
|
131
|
+
"New User": "New User",
|
|
132
|
+
"New Saved Message": "New Saved Message",
|
|
133
|
+
"New Team Custom Emoji": "New Team Custom Emoji",
|
|
134
|
+
"Triggers when a new message is posted to any channel.": "Triggers when a new message is posted to any channel.",
|
|
135
|
+
"Triggers when a new message is posted to a specific #channel you choose.": "Triggers when a new message is posted to a specific #channel you choose.",
|
|
136
|
+
"Triggers when a message was posted in a direct message channel.": "Triggers when a message was posted in a direct message channel.",
|
|
137
|
+
"Triggers when a username is mentioned.": "Triggers when a username is mentioned.",
|
|
138
|
+
"Triggers when a username is mentioned in a direct message channel.": "Triggers when a username is mentioned in a direct message channel.",
|
|
139
|
+
"Triggers when a new reaction is added to a message": "Triggers when a new reaction is added to a message",
|
|
140
|
+
"Triggers when a channel is created": "Triggers when a channel is created",
|
|
141
|
+
"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)": "Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)",
|
|
142
|
+
"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.": "Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.",
|
|
143
|
+
"Triggers when a new user is created / first joins your org.": "Triggers when a new user is created / first joins your org.",
|
|
144
|
+
"Triggers when you save a message.": "Triggers when you save a message.",
|
|
145
|
+
"Triggers when a custom emoji has been added to a team.": "Triggers when a custom emoji has been added to a team.",
|
|
146
|
+
"Ignore Bot Messages ?": "Ignore Bot Messages ?",
|
|
147
|
+
"Ignore Message from Yourself ?": "Ignore Message from Yourself ?",
|
|
148
|
+
"Channels": "Channels",
|
|
149
|
+
"Emojis (E.g fire, smile)": "Emojis (E.g fire, smile)",
|
|
150
|
+
"Commands": "Commands",
|
|
151
|
+
"\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}": "\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}",
|
|
152
|
+
"If no channel is selected, the flow will be triggered for username mentions in all channels": "If no channel is selected, the flow will be triggered for username mentions in all channels",
|
|
153
|
+
"Select emojis to trigger on": "Select emojis to trigger on",
|
|
154
|
+
"List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "List of valid commands that the bot should respond to (e.g., help, ocr, remind)",
|
|
155
|
+
"If no channel is selected, the flow will be triggered for commands in all channels": "If no channel is selected, the flow will be triggered for commands in all channels"
|
|
156
|
+
}
|
package/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Slack": "Slack",
|
|
3
|
+
"Channel-based messaging platform": "基於頻道的消息傳遞平台",
|
|
4
|
+
"Add Reaction to Message": "新增表情反應到消息",
|
|
5
|
+
"Send Message To A User": "發送消息給用戶",
|
|
6
|
+
"Send Message To A Channel": "發送消息到頻道",
|
|
7
|
+
"Request Approval from A User": "向用戶請求批准",
|
|
8
|
+
"Request Approval in a Channel": "在頻道中請求批准",
|
|
9
|
+
"Request Action from A User": "向用戶要求行動",
|
|
10
|
+
"Request Action in A Channel": "在頻道中要求行動",
|
|
11
|
+
"Upload file": "上傳文件",
|
|
12
|
+
"Get File": "獲取文件",
|
|
13
|
+
"Search messages": "搜索消息",
|
|
14
|
+
"Find User by Email": "通過郵件查找用戶",
|
|
15
|
+
"Find User by Handle": "通過用戶名查找用戶",
|
|
16
|
+
"Find User by ID": "通過ID查找用戶",
|
|
17
|
+
"Update message": "更新消息",
|
|
18
|
+
"Create Channel": "創建頻道",
|
|
19
|
+
"Update Profile": "更新個人資料",
|
|
20
|
+
"Get channel history": "獲取頻道歷史",
|
|
21
|
+
"Set User Status": "設置用戶狀態",
|
|
22
|
+
"Markdown to Slack format": "將 Markdown 轉換為 Slack 格式",
|
|
23
|
+
"Retrieve Thread Messages": "檢索線程消息",
|
|
24
|
+
"Set Channel Topic": "設置頻道主題",
|
|
25
|
+
"Get Message by Timestamp": "通過時間戳獲取消息",
|
|
26
|
+
"Invite User to Channel": "邀請用戶進入頻道",
|
|
27
|
+
"Custom API Call": "自定义 API 呼叫",
|
|
28
|
+
"Add an emoji reaction to a message.": "新增一個表情反應到消息。",
|
|
29
|
+
"Send message to a user": "發送消息給用戶",
|
|
30
|
+
"Send message to a channel": "發送消息到頻道",
|
|
31
|
+
"Send approval message to a user and then wait until the message is approved or disapproved": "發送批准消息給用戶,然後等待消息被批准或拒絕",
|
|
32
|
+
"Send approval message to a channel and then wait until the message is approved or disapproved": "發送批准消息到頻道,然後等待消息被批准或拒絕",
|
|
33
|
+
"Send a message to a user and wait until the user selects an action": "發送一條消息給用戶並等待用戶選擇操作",
|
|
34
|
+
"Send a message in a channel and wait until an action is selected": "在頻道中發送消息並等待選擇操作",
|
|
35
|
+
"Upload file without sharing it to a channel or user": "上傳文件而不將其共享到頻道或用戶",
|
|
36
|
+
"Return information about a given file ID.": "返回給定文件ID的相關信息。",
|
|
37
|
+
"Searches for messages matching a query": "搜索符合查詢條件的消息",
|
|
38
|
+
"Finds a user by matching against their email address.": "根據郵件地址查找用戶。",
|
|
39
|
+
"Finds a user by matching against their Slack handle.": "根據 Slack 名稱查找用戶。",
|
|
40
|
+
"Finds a user by their ID.": "通過ID查找用戶。",
|
|
41
|
+
"Update an existing message": "更新已有消息",
|
|
42
|
+
"Creates a new channel.": "創建新頻道。",
|
|
43
|
+
"Update basic profile field such as name or title.": "更新基本資料字段如名字或職稱。",
|
|
44
|
+
"Retrieve all messages from a specific channel (\"conversation\") between specified timestamps": "從指定頻道中檢索特定時間範圍內的所有消息(\"對話\")",
|
|
45
|
+
"Sets a user's custom status": "設置用戶的自定義狀態",
|
|
46
|
+
"Convert Markdown-formatted text to Slack's pseudo - markdown syntax": "將 Markdown 格式的文字轉換為 Slack 的偽 Markdown 語法",
|
|
47
|
+
"Retrieves thread messages by channel and thread timestamp.": "通過頻道和線程時間戳檢索線程消息。",
|
|
48
|
+
"Sets the topic on a selected channel.": "設置所選頻道的主題。",
|
|
49
|
+
"Retrieves a specific message from a channel history using the message's timestamp.": "通過消息的時間戳從頻道歷史中檢索特定消息。",
|
|
50
|
+
"Invites an existing User to an existing channel.": "邀請現有用戶進入現有頻道。",
|
|
51
|
+
"Make a custom API call to a specific endpoint": "將一個自定義 API 調用到一個特定的終點",
|
|
52
|
+
"Markdown": "Markdown",
|
|
53
|
+
"Channel": "頻道",
|
|
54
|
+
"Message Timestamp": "消息時間戳",
|
|
55
|
+
"Reaction (emoji) name": "反應表情名稱",
|
|
56
|
+
"User": "用戶",
|
|
57
|
+
"Message": "消息",
|
|
58
|
+
"Username": "用戶名",
|
|
59
|
+
"Profile Picture": "個人資料照片",
|
|
60
|
+
"Block Kit blocks": "Block Kit 模塊",
|
|
61
|
+
"Attachment": "附件",
|
|
62
|
+
"Thread ts": "線程 ts",
|
|
63
|
+
"Action Buttons": "動作按鈕",
|
|
64
|
+
"Title": "標題",
|
|
65
|
+
"Filename": "文件名",
|
|
66
|
+
"File ID": "文件ID",
|
|
67
|
+
"Search query": "搜索查詢",
|
|
68
|
+
"Email": "電子郵件",
|
|
69
|
+
"Handle": "處理",
|
|
70
|
+
"ID": "ID",
|
|
71
|
+
"Channel Name": "頻道名稱",
|
|
72
|
+
"Is Private?": "是私密的嗎?",
|
|
73
|
+
"First Name": "名字",
|
|
74
|
+
"Last Name": "姓氏",
|
|
75
|
+
"Oldest": "最早",
|
|
76
|
+
"Latest": "最新",
|
|
77
|
+
"Inclusive": "包含",
|
|
78
|
+
"Include all metadata": "包含所有元數據",
|
|
79
|
+
"Text": "文本",
|
|
80
|
+
"Emoji": "表情",
|
|
81
|
+
"Expires at": "過期時間",
|
|
82
|
+
"Markdown text": "Markdown 文本",
|
|
83
|
+
"Topic": "主題",
|
|
84
|
+
"Method": "方法",
|
|
85
|
+
"Headers": "信頭",
|
|
86
|
+
"Query Parameters": "查詢參數",
|
|
87
|
+
"Body": "正文內容",
|
|
88
|
+
"No Error on Failure": "失敗時沒有錯誤",
|
|
89
|
+
"Timeout (in seconds)": "超時(秒)",
|
|
90
|
+
"Use user token": "使用用戶令牌",
|
|
91
|
+
"\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.\n ": "\n\t請確保通過以下步驟將機器人添加到頻道:\n\t 1. 在頻道的聊天中輸入 /invite。\n\t 2. 點擊將應用添加到此頻道。\n\t 3. 搜索並添加機器人。\n \n**注意**:如果您在下拉列表中找不到頻道(該列表最多可獲取 2000 個頻道),請單擊 **(F)** 並直接輸入頻道 ID。\n ",
|
|
92
|
+
"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'": "您可以通過右鍵單擊頻道並選擇 '查看頻道詳情' 獲取頻道 ID。",
|
|
93
|
+
"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "請提供您希望反應的消息的時間戳,例如 `1710304378.475129`。或者,您可以通過單擊消息旁邊的三個點並選擇 `複製鏈接` 選項來輕鬆獲取消息鏈接。",
|
|
94
|
+
"e.g.`thumbsup`": "例如`thumbsup`",
|
|
95
|
+
"The username of the bot": "機器人的用戶名",
|
|
96
|
+
"The profile picture of the bot": "機器人的個人資料圖片",
|
|
97
|
+
"See https://api.slack.com/block-kit for specs": "查看 https://api.slack.com/block-kit 以了解規格",
|
|
98
|
+
"The text of your message": "您的消息文本",
|
|
99
|
+
"Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "提供**父**消息的 ts (時間戳) 值以使此消息成為回覆。不要使用回覆本身的 ts 值;請使用其父值。例如 `1710304378.475129`。或者,您可以通過單擊父消息旁邊的三個點並選擇 `複製鏈接` 選項來輕鬆獲取消息鏈接。",
|
|
100
|
+
"You can pass the file ID from the New Message Trigger payload.": "您可以從新消息觸發器有效負載中傳遞文件 ID。",
|
|
101
|
+
"User handle (display name), without the leading @": "用戶名(顯示名稱),不要包含前導@",
|
|
102
|
+
"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "請提供您希望更新的消息的時間戳,例如 `1710304378.475129`。或者,您可以通過單擊消息旁邊的三個點並選擇 `複製鏈接` 選項來輕鬆獲取消息鏈接。",
|
|
103
|
+
"The updated text of your message": "您更新消息的正文",
|
|
104
|
+
"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.": "更改用戶的郵件地址會向舊地址和新地址發送郵件,並通過 slackbot 向用戶發送郵件提醒他們變更。",
|
|
105
|
+
"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.": "需要更改的用戶ID。此參數僅可由付費團隊的管理員指定。您可以使用 **通過郵件查找用戶** 操作來檢索 ID。",
|
|
106
|
+
"Only messages after this timestamp will be included in results": "只有時間戳之後的消息將包含在結果中",
|
|
107
|
+
"Only messages before this timestamp will be included in results. Default is the current time": "\"\u001d只有在此時間戳之前的消息才會被包括在結果中。默認值是當前時間\"",
|
|
108
|
+
"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified": "將包含具有最早或最新時間戳的消息。除非指定了任一個時間戳,否則忽略",
|
|
109
|
+
"Return all metadata associated with each message": "返回與每條消息相關的所有元數據",
|
|
110
|
+
"Emoji shortname (standard or custom), e.g. :tada: or :train:": "\"\u001d表情簡稱(標準或自定義),例如 :tada: 或 :train:",
|
|
111
|
+
"Unix timestamp - if not set, the status will not expire": "如果未設置 Unix 時間戳,狀態不會過期",
|
|
112
|
+
"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "提供**父**消息的 ts (時間戳) 值以檢索這個消息的回覆。不要使用回覆本身的 ts 值;請使用其父值。例如 `1710304378.475129`。或者,您可以通過單擊父消息旁邊的三個點並選擇 `複製鏈接` 選項來輕鬆獲取消息鏈接。",
|
|
113
|
+
"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "請提供您希望檢索的消息的時間戳,例如 `1710304378.475129`。或者,您可以通過單擊消息旁邊的三個點並選擇 `複製鏈接` 選項來輕鬆獲取消息鏈接。",
|
|
114
|
+
"Authorization headers are injected automatically from your connection.": "授權頭自動從您的連接中注入。",
|
|
115
|
+
"Use user token instead of bot token": "使用用戶令牌而不是機器人令牌",
|
|
116
|
+
"GET": "GET",
|
|
117
|
+
"POST": "POST",
|
|
118
|
+
"PATCH": "PATCH",
|
|
119
|
+
"PUT": "PUT",
|
|
120
|
+
"DELETE": "DELETE",
|
|
121
|
+
"HEAD": "HEAD",
|
|
122
|
+
"New Public Message Posted Anywhere": "任何地方發表新公共消息",
|
|
123
|
+
"New Message Posted to Channel": "新消息發布到頻道",
|
|
124
|
+
"New Direct Message": "新直郵",
|
|
125
|
+
"New Mention in Channel": "頻道中新提到",
|
|
126
|
+
"New Mention in Direct Message": "新提到在直郵中",
|
|
127
|
+
"New Reaction": "新反應",
|
|
128
|
+
"Channel created": "通道已創建",
|
|
129
|
+
"New Command in Channel": "頻道中的新命令",
|
|
130
|
+
"New Command in Direct Message": "直郵中的新命令",
|
|
131
|
+
"New User": "新用戶",
|
|
132
|
+
"New Saved Message": "新保存的消息",
|
|
133
|
+
"New Team Custom Emoji": "團隊自定義表情",
|
|
134
|
+
"Triggers when a new message is posted to any channel.": "\"在發佈新消息到任何頻道時觸發。\"",
|
|
135
|
+
"Triggers when a new message is posted to a specific #channel you choose.": "\"在發佈新消息到您選擇的特定#頻道時觸發。\"",
|
|
136
|
+
"Triggers when a message was posted in a direct message channel.": "\"在直接消息通道中發佈消息時觸發。\"",
|
|
137
|
+
"Triggers when a username is mentioned.": "\"在提到用戶名字時觸發。\"",
|
|
138
|
+
"Triggers when a username is mentioned in a direct message channel.": "\"當用戶名在直接消息通道中被提及時觸發。\"",
|
|
139
|
+
"Triggers when a new reaction is added to a message": "添加新反應到消息時觸發",
|
|
140
|
+
"Triggers when a channel is created": "當創建頻道時觸發",
|
|
141
|
+
"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)": "\"在向機器人發送特定命令時觸發(e.g., @bot command arg1 arg2)\"",
|
|
142
|
+
"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.": "\"當向機器人發送特定命令時觸發(e.g., @bot command arg1 arg2) 通過直接消息。\"",
|
|
143
|
+
"Triggers when a new user is created / first joins your org.": "\"新用戶被創建/首次加入您的組織時觸發。\"",
|
|
144
|
+
"Triggers when you save a message.": "\"當您保存消息時觸發。\"",
|
|
145
|
+
"Triggers when a custom emoji has been added to a team.": "\"當自定義表情被添加到團隊時觸發。\"",
|
|
146
|
+
"Ignore Bot Messages ?": "忽略機器人消息嗎?",
|
|
147
|
+
"Ignore Message from Yourself ?": "忽略來自自己的消息嗎?",
|
|
148
|
+
"Channels": "頻道",
|
|
149
|
+
"Emojis (E.g fire, smile)": "表情(例如火,微笑)",
|
|
150
|
+
"Commands": "命令",
|
|
151
|
+
"\n\tPlease make sure add the bot to the channel by following these steps:\n\t 1. Type /invite in the channel's chat.\n\t 2. Click on Add apps to this channel.\n\t 3. Search for and add the bot.\n \n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}": "\n\t請確保通過以下步驟將機器人添加到頻道:\n\t 1. 在頻道的聊天中輸入 /invite。\n\t 2. 點擊將應用添加到此頻道。\n\t 3. 搜索並添加機器人。\n \n**注意**:如果您在下拉列表中找不到頻道(該列表最多可獲取 2000 個頻道),請單擊 **(F)** 並直接在如下陣列中鍵入頻道 ID: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `]}`",
|
|
152
|
+
"If no channel is selected, the flow will be triggered for username mentions in all channels": "如果未選擇頻道,則會針對所有頻道中的用戶名提及觸發流程",
|
|
153
|
+
"Select emojis to trigger on": "選擇要觸發的表情",
|
|
154
|
+
"List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "\"列出機器人應響應的有效命令(例如,幫助, ocr ,提醒)\"",
|
|
155
|
+
"If no channel is selected, the flow will be triggered for commands in all channels": "如果未選擇頻道,則會為所有頻道中的命令觸發流程"
|
|
156
|
+
}
|
package/src/index.js
CHANGED
|
@@ -74,32 +74,60 @@ exports.slackAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
|
74
74
|
'emoji:read',
|
|
75
75
|
'users.profile:read',
|
|
76
76
|
'channels:write.invites',
|
|
77
|
-
'groups:write.invites'
|
|
77
|
+
'groups:write.invites',
|
|
78
78
|
],
|
|
79
79
|
});
|
|
80
80
|
exports.slack = (0, pieces_framework_1.createPiece)({
|
|
81
81
|
displayName: 'Slack',
|
|
82
82
|
description: 'Channel-based messaging platform',
|
|
83
|
-
minimumSupportedRelease: '0.
|
|
83
|
+
minimumSupportedRelease: '0.66.7',
|
|
84
84
|
logoUrl: 'https://cdn.activepieces.com/pieces/slack.png',
|
|
85
85
|
categories: [shared_1.PieceCategory.COMMUNICATION],
|
|
86
86
|
auth: exports.slackAuth,
|
|
87
87
|
events: {
|
|
88
|
-
parseAndReply: ({ payload }) => {
|
|
89
|
-
var _a;
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
parseAndReply: ({ payload, server }) => {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
if (payload.headers['content-type'] === 'application/x-www-form-urlencoded') {
|
|
91
|
+
if (payload.body &&
|
|
92
|
+
typeof payload.body == 'object' &&
|
|
93
|
+
'payload' in payload.body) {
|
|
94
|
+
const interactionPayloadBody = JSON.parse(payload.body.payload);
|
|
95
|
+
if (interactionPayloadBody.type === 'block_actions') {
|
|
96
|
+
const action = (_a = interactionPayloadBody.actions) === null || _a === void 0 ? void 0 : _a.at(0);
|
|
97
|
+
if (action &&
|
|
98
|
+
action.type === 'button' &&
|
|
99
|
+
((_b = action.value) === null || _b === void 0 ? void 0 : _b.startsWith(server.publicUrl))) {
|
|
100
|
+
// We don't await the promise as we don't handle the response anyway
|
|
101
|
+
pieces_common_1.httpClient.sendRequest({
|
|
102
|
+
url: action.value,
|
|
103
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
104
|
+
body: interactionPayloadBody,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
92
109
|
return {
|
|
93
110
|
reply: {
|
|
94
|
-
body: payloadBody['challenge'],
|
|
95
111
|
headers: {},
|
|
112
|
+
body: {},
|
|
96
113
|
},
|
|
97
114
|
};
|
|
98
115
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
116
|
+
else {
|
|
117
|
+
const eventPayloadBody = payload.body;
|
|
118
|
+
if (eventPayloadBody.challenge) {
|
|
119
|
+
return {
|
|
120
|
+
reply: {
|
|
121
|
+
body: eventPayloadBody['challenge'],
|
|
122
|
+
headers: {},
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
event: (_c = eventPayloadBody === null || eventPayloadBody === void 0 ? void 0 : eventPayloadBody.event) === null || _c === void 0 ? void 0 : _c.type,
|
|
128
|
+
identifierValue: eventPayloadBody.team_id,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
103
131
|
},
|
|
104
132
|
verify: ({ webhookSecret, payload }) => {
|
|
105
133
|
// Construct the signature base string
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/slack/src/index.ts"],"names":[],"mappings":";;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/slack/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAIqC;AACrC,qEAKwC;AAExC,iDAAqD;AACrD,sEAAiC;AACjC,+FAA+F;AAC/F,iFAAkF;AAClF,mGAAmG;AACnG,qFAA0F;AAC1F,yFAAwF;AACxF,2EAA2E;AAC3E,0EAAqE;AACrE,2DAAuD;AACvD,mEAA+D;AAC/D,iEAA6D;AAC7D,yEAAyE;AACzE,iEAAmE;AACnE,iEAAmE;AACnE,4DAA4D;AAC5D,mFAAkF;AAClF,2EAAsE;AACtE,2EAA2E;AAC3E,mEAAoE;AACpE,4DAAwD;AACxD,qFAA+E;AAC/E,4DAAwD;AACxD,qDAAuD;AACvD,4DAA+D;AAC/D,kFAAmF;AACnF,0EAA4E;AAC5E,qFAAgF;AAChF,gGAAgG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,OAAO;wBACL,aAAa,EAAE,UACZ,IAA4B,CAAC,YAChC,EAAE;qBACH,CAAC;gBACJ,CAAC;YACH,CAAC,CAAA;YACD,UAAU,EAAE;gBACV,YAAY,EAAE,2BAAQ,CAAC,QAAQ,CAAC;oBAC9B,WAAW,EAAE,gBAAgB;oBAC7B,WAAW,EAAE,qCAAqC;oBAClD,QAAQ,EAAE,IAAI;oBACd,YAAY,EAAE,KAAK;iBACpB,CAAC;aACH;SACF,CAAC;KACH;IACD,QAAQ,EAAE;QACR,+BAAiB;QACjB,mDAA0B;QAC1B,4CAAuB;QACvB,wBAAU;QACV,gEAAgC;QAChC,qCAAgB;QAChB,4BAAc;QACd,wBAAU;QACV,gEAAgC;QAChC,yBAAc;QACd,0CAAsB;QACtB,iDAAyB;KAC1B;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const requestActionDirectMessageAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
userId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
3
3
|
text: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
4
|
-
actions: import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
4
|
+
actions: import("@activepieces/pieces-framework").ArrayProperty<false> | import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
5
5
|
username: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
6
|
profilePicture: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
7
|
}>;
|