@pipedream/slack_v2 1.1.5 → 1.3.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/actions/add-emoji-reaction/add-emoji-reaction.mjs +1 -1
- package/actions/add-reaction/add-reaction.mjs +1 -1
- package/actions/archive-channel/archive-channel.mjs +1 -1
- package/actions/browse-files/browse-files.mjs +1 -1
- package/actions/create-channel/create-channel.mjs +1 -1
- package/actions/create-reminder/create-reminder.mjs +1 -1
- package/actions/delete-file/delete-file.mjs +1 -1
- package/actions/delete-message/delete-message.mjs +1 -1
- package/actions/edit-message/edit-message.mjs +1 -1
- package/actions/find-message/find-message.mjs +1 -1
- package/actions/find-user-by-email/find-user-by-email.mjs +1 -1
- package/actions/find-user-by-id/find-user-by-id.mjs +1 -1
- package/actions/get-channel-details/get-channel-details.mjs +1 -1
- package/actions/get-channel-history/get-channel-history.mjs +1 -1
- package/actions/get-current-user/get-current-user.mjs +1 -1
- package/actions/get-file/get-file.mjs +1 -1
- package/actions/get-thread-replies/get-thread-replies.mjs +1 -1
- package/actions/get-user-details/get-user-details.mjs +1 -1
- package/actions/invite-user-to-channel/invite-user-to-channel.mjs +1 -1
- package/actions/kick-user/kick-user.mjs +1 -1
- package/actions/leave-channel/leave-channel.mjs +37 -0
- package/actions/list-channels/list-channels.mjs +19 -2
- package/actions/list-emojis/list-emojis.mjs +1 -1
- package/actions/list-files/list-files.mjs +1 -1
- package/actions/list-group-conversations/list-group-conversations.mjs +1 -1
- package/actions/list-group-members/list-group-members.mjs +1 -1
- package/actions/list-icon-emoji-options/list-icon-emoji-options.mjs +1 -1
- package/actions/list-members-in-channel/list-members-in-channel.mjs +1 -1
- package/actions/list-messages/list-messages.mjs +1 -1
- package/actions/list-reminder-options/list-reminder-options.mjs +1 -1
- package/actions/list-replies/list-replies.mjs +1 -1
- package/actions/list-teams/list-teams.mjs +1 -1
- package/actions/list-user-group-options/list-user-group-options.mjs +1 -1
- package/actions/list-users/list-users.mjs +1 -1
- package/actions/post-message/post-message.mjs +1 -1
- package/actions/reply-to-a-message/reply-to-a-message.mjs +1 -1
- package/actions/search/search.mjs +1 -1
- package/actions/send-block-kit-message/send-block-kit-message.mjs +1 -1
- package/actions/send-large-message/send-large-message.mjs +1 -1
- package/actions/send-message/send-message.mjs +1 -1
- package/actions/send-message-advanced/send-message-advanced.mjs +1 -1
- package/actions/send-message-to-channel/send-message-to-channel.mjs +1 -1
- package/actions/send-message-to-user-or-group/send-message-to-user-or-group.mjs +1 -1
- package/actions/set-channel-description/set-channel-description.mjs +1 -1
- package/actions/set-channel-topic/set-channel-topic.mjs +1 -1
- package/actions/set-status/set-status.mjs +1 -1
- package/actions/update-group-members/update-group-members.mjs +1 -1
- package/actions/update-message/update-message.mjs +1 -1
- package/actions/update-profile/update-profile.mjs +1 -1
- package/actions/upload-file/upload-file.mjs +1 -1
- package/actions/verify-slack-signature/verify-slack-signature.mjs +1 -1
- package/package.json +1 -1
- package/slack_v2.app.mjs +6 -0
- package/sources/new-channel-created/new-channel-created.mjs +1 -1
- package/sources/new-interaction-event-received/new-interaction-event-received.mjs +1 -1
- package/sources/new-keyword-mention/new-keyword-mention.mjs +1 -1
- package/sources/new-message-in-channels/new-message-in-channels.mjs +1 -1
- package/sources/new-private-channel-created/new-private-channel-created.mjs +1 -1
- package/sources/new-reaction-added/new-reaction-added.mjs +1 -1
- package/sources/new-saved-message/new-saved-message.mjs +1 -1
- package/sources/new-user-added/new-user-added.mjs +1 -1
- package/sources/new-user-mention/new-user-mention.mjs +1 -1
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-add-emoji-reaction",
|
|
5
5
|
name: "Add Emoji Reaction",
|
|
6
6
|
description: "Add an emoji reaction to a message. [See the documentation](https://api.slack.com/methods/reactions.add)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.29",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
+ " Use **Get Channel History** or **Search** to find the message timestamp."
|
|
12
12
|
+ " Emoji name should be without colons (e.g. `thumbsup`, `fire`, `heart`)."
|
|
13
13
|
+ " [See the documentation](https://api.slack.com/methods/reactions.add)",
|
|
14
|
-
version: "0.0.
|
|
14
|
+
version: "0.0.9",
|
|
15
15
|
type: "action",
|
|
16
16
|
ai: "optimized",
|
|
17
17
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-archive-channel",
|
|
5
5
|
name: "Archive Channel",
|
|
6
6
|
description: "Archive a public or private channel. Direct messages and group DMs can't be archived — pass a channel ID (e.g. `C1234567890`), not a user or group ID. [See the documentation](https://api.slack.com/methods/conversations.archive)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.37",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
+ " Filter by file type (e.g. `images`, `pdfs`, `snippets`)."
|
|
12
12
|
+ " Returns file metadata including name, type, size, and download URL."
|
|
13
13
|
+ " [See the documentation](https://api.slack.com/methods/files.list)",
|
|
14
|
-
version: "0.0.
|
|
14
|
+
version: "0.0.9",
|
|
15
15
|
type: "action",
|
|
16
16
|
ai: "optimized",
|
|
17
17
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-create-channel",
|
|
5
5
|
name: "Create a Channel",
|
|
6
6
|
description: "Create a new channel. [See the documentation](https://api.slack.com/methods/conversations.create)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.37",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-create-reminder",
|
|
5
5
|
name: "Create Reminder",
|
|
6
6
|
description: "Create a reminder. [See the documentation](https://api.slack.com/methods/reminders.add)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.38",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-delete-file",
|
|
5
5
|
name: "Delete File",
|
|
6
6
|
description: "Delete a file. [See the documentation](https://api.slack.com/methods/files.delete)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.37",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
+ " lets an identity delete its own messages, so this deletes as whichever identity posted:"
|
|
15
15
|
+ " it retries automatically with the other identity if the first attempt returns"
|
|
16
16
|
+ " `cant_delete_message`. [See the documentation](https://api.slack.com/methods/chat.delete)",
|
|
17
|
-
version: "0.2.
|
|
17
|
+
version: "0.2.7",
|
|
18
18
|
annotations: {
|
|
19
19
|
destructiveHint: true,
|
|
20
20
|
openWorldHint: true,
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
+ " Requires the message timestamp (`ts`) from **Get Channel History** or **Post Message**."
|
|
12
12
|
+ " You can only edit messages posted by the same token/user."
|
|
13
13
|
+ " [See the documentation](https://api.slack.com/methods/chat.update)",
|
|
14
|
-
version: "0.0.
|
|
14
|
+
version: "0.0.10",
|
|
15
15
|
type: "action",
|
|
16
16
|
ai: "optimized",
|
|
17
17
|
annotations: {
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
+ " omitted when no mention carried a name."
|
|
16
16
|
+ " Do NOT splice a name back inline: Slack renders `<@U123|Name>` as literal text, not a mention."
|
|
17
17
|
+ " [See the documentation](https://api.slack.com/methods/assistant.search.context)",
|
|
18
|
-
version: "0.2.
|
|
18
|
+
version: "0.2.4",
|
|
19
19
|
annotations: {
|
|
20
20
|
destructiveHint: false,
|
|
21
21
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-find-user-by-email",
|
|
5
5
|
name: "Find User by Email",
|
|
6
6
|
description: "Find a user by matching against their email. [See the documentation](https://api.slack.com/methods/users.lookupByEmail)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.36",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-find-user-by-id",
|
|
5
5
|
name: "Find User by ID",
|
|
6
6
|
description: "Find a user by their ID — including a specific user you already have the Slack ID for, whether or not it's your own. Returns user profile information including name, email (requires `users:read.email` scope), timezone, and status. If you only have an email address, use **Find User by Email** instead. [See the documentation](https://api.slack.com/methods/users.info)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.13",
|
|
8
8
|
type: "action",
|
|
9
9
|
ai: "optimized",
|
|
10
10
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-get-channel-details",
|
|
5
5
|
name: "Get Channel Details",
|
|
6
6
|
description: "Retrieve details for a Slack channel, specified by ID (preferred — resolves instantly) or by name (resolved by scanning the workspace's channel list, which can be slow). [See the documentation](https://api.slack.com/methods/conversations.info)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.7",
|
|
8
8
|
type: "action",
|
|
9
9
|
ai: "optimized",
|
|
10
10
|
annotations: {
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
+ " messages carry blocks, attachments and edit metadata, so a busy channel can run to tens"
|
|
18
18
|
+ " of thousands of characters and be truncated before you see any of it."
|
|
19
19
|
+ " [See the documentation](https://api.slack.com/methods/conversations.history)",
|
|
20
|
-
version: "0.2.
|
|
20
|
+
version: "0.2.6",
|
|
21
21
|
type: "action",
|
|
22
22
|
ai: "optimized",
|
|
23
23
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-get-current-user",
|
|
5
5
|
name: "Get Current User",
|
|
6
6
|
description: "Do NOT use for a plain \"who am I\" / \"what's my user ID\" question — call **Get User Details** for that; it answers the same question with a far smaller payload. Do NOT use to look up a DIFFERENT, specifically-identified user (by ID or email) — this only ever describes the authenticated caller; use **Find User by ID** / **Find User by Email** for someone else. Do NOT use to enumerate multiple teams/workspaces (e.g. Enterprise Grid) — use **List Teams** for that; this returns only the caller's own current team. Use this ONLY when you specifically need the full member profile: locale, timezone, presence/status, admin and owner flags, name variants, or workspace domain and enterprise metadata. Combines `auth.test`, `users.info`, `users.profile.get` and `team.info`. [See Slack API docs](https://api.slack.com/methods/auth.test).",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.12",
|
|
8
8
|
type: "action",
|
|
9
9
|
ai: "optimized",
|
|
10
10
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-get-file",
|
|
5
5
|
name: "Get File",
|
|
6
6
|
description: "Return information about a file. [See the documentation](https://api.slack.com/methods/files.info)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.12",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
+ " Slack messages carry blocks, attachments and edit metadata, so a long thread can run"
|
|
18
18
|
+ " to tens of thousands of characters and be truncated before you see any of it."
|
|
19
19
|
+ " [See the documentation](https://api.slack.com/methods/conversations.replies)",
|
|
20
|
-
version: "0.1.
|
|
20
|
+
version: "0.1.7",
|
|
21
21
|
type: "action",
|
|
22
22
|
ai: "optimized",
|
|
23
23
|
annotations: {
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
+ " Prefer this over **Get Current User**, which returns a much larger payload and is only"
|
|
14
14
|
+ " needed for full profile detail (locale, status, admin flags)."
|
|
15
15
|
+ " [See the documentation](https://api.slack.com/methods/auth.test)",
|
|
16
|
-
version: "0.0.
|
|
16
|
+
version: "0.0.9",
|
|
17
17
|
type: "action",
|
|
18
18
|
ai: "optimized",
|
|
19
19
|
annotations: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-invite-user-to-channel",
|
|
6
6
|
name: "Invite User to Channel",
|
|
7
7
|
description: "Invite one or more users to an existing channel. Accepts a channel ID (preferred — resolves instantly) or NAME (resolved by scanning up to 5 pages, ~5,000 channels, of the workspace's channel list — a name beyond that bound will not be found), and a user ID, EMAIL address or display name — all resolved automatically. Pass several users as a comma-separated list. [See the documentation](https://api.slack.com/methods/conversations.invite)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.7",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-kick-user",
|
|
5
5
|
name: "Kick User",
|
|
6
6
|
description: "Remove a user from a conversation. [See the documentation](https://api.slack.com/methods/conversations.kick)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.37",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import slack from "../../slack_v2.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "slack_v2-leave-channel",
|
|
5
|
+
name: "Leave Channel",
|
|
6
|
+
description: "Remove the authenticated user from a public or private channel. Leaving a channel the user is not a member of is a no-op, reported as `not_in_channel: true`. To leave several channels (e.g. every channel matching a pattern), use **List Channels** with `memberOnly: true` to find them, then call this action once per channel ID. [See the documentation](https://docs.slack.dev/reference/methods/conversations.leave/)",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
ai: "optimized",
|
|
15
|
+
props: {
|
|
16
|
+
slack,
|
|
17
|
+
conversation: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
slack,
|
|
20
|
+
"conversation",
|
|
21
|
+
],
|
|
22
|
+
description: "Prefer a channel ID (e.g. `C1234567890`) - use **List Channels** to look it up; it resolves instantly. A channel name (e.g. `general` or `#general`) is also accepted, but resolving it scans up to 5 pages (~5,000 channels) of the workspace's channel list, which can be slow - and a valid channel beyond that bound will not be found. Direct messages and the workspace's general channel can't be left.",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
async run({ $ }) {
|
|
26
|
+
// conversations.leave only accepts a channel ID - resolve a name the same way
|
|
27
|
+
// every other AI-optimized tool in this app does.
|
|
28
|
+
const channel = await this.slack.resolveChannelId(this.conversation);
|
|
29
|
+
const response = await this.slack.leaveConversation({
|
|
30
|
+
channel,
|
|
31
|
+
});
|
|
32
|
+
$.export("$summary", response.not_in_channel
|
|
33
|
+
? `The authenticated user is not a member of channel ${channel}`
|
|
34
|
+
: `Successfully left channel ${channel}`);
|
|
35
|
+
return response;
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -11,11 +11,14 @@ export default {
|
|
|
11
11
|
+ " large enough to be truncated. Omit `fields` when you need the complete channel objects."
|
|
12
12
|
+ " Use `namePrefix` to filter results to channels whose names start with a given string"
|
|
13
13
|
+ " (e.g. `dev-`) without a client-side filter loop."
|
|
14
|
+
+ " Set `memberOnly: true` to return only channels the authenticated user is a member of —"
|
|
15
|
+
+ " on a large workspace this shrinks the result from thousands of channels to the"
|
|
16
|
+
+ " handful that matter, and it is usually what you want when acting on the user's behalf."
|
|
14
17
|
+ " Returns `has_more: true` and `next_cursor` when more channels exist than were"
|
|
15
18
|
+ " fetched — when you see that, raise `numPages` (or pass `cursor`) before answering"
|
|
16
19
|
+ " any 'how many' or 'list every' question, otherwise your answer is silently incomplete."
|
|
17
20
|
+ " [See the documentation](https://api.slack.com/methods/conversations.list)",
|
|
18
|
-
version: "0.
|
|
21
|
+
version: "0.4.1",
|
|
19
22
|
annotations: {
|
|
20
23
|
destructiveHint: false,
|
|
21
24
|
openWorldHint: true,
|
|
@@ -46,6 +49,13 @@ export default {
|
|
|
46
49
|
default: "public_channel",
|
|
47
50
|
optional: true,
|
|
48
51
|
},
|
|
52
|
+
memberOnly: {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
label: "Member Channels Only",
|
|
55
|
+
description: "Return only channels the authenticated user is a member of (uses `users.conversations` instead of `conversations.list`). Recommended for large workspaces: the full channel list can run to thousands of entries, while the user's own channels are usually a small fraction of that. `Channel Types`, `Fields`, `Name Prefix`, and pagination all still apply.",
|
|
56
|
+
optional: true,
|
|
57
|
+
default: false,
|
|
58
|
+
},
|
|
49
59
|
fields: {
|
|
50
60
|
type: "string[]",
|
|
51
61
|
label: "Fields",
|
|
@@ -98,10 +108,17 @@ export default {
|
|
|
98
108
|
// count, not the workspace size, on large workspaces.
|
|
99
109
|
const prefix = this.namePrefix?.toLowerCase();
|
|
100
110
|
|
|
111
|
+
// users.conversations returns the same shape as conversations.list (channels +
|
|
112
|
+
// response_metadata.next_cursor) but scoped to the authed user's memberships, so
|
|
113
|
+
// the pagination / filter / projection logic below is shared between both modes.
|
|
114
|
+
const listChannels = this.memberOnly
|
|
115
|
+
? (args) => this.slack.usersConversations(args)
|
|
116
|
+
: (args) => this.slack.conversationsList(args);
|
|
117
|
+
|
|
101
118
|
do {
|
|
102
119
|
const {
|
|
103
120
|
channels, response_metadata: metadata,
|
|
104
|
-
} = await
|
|
121
|
+
} = await listChannels(params);
|
|
105
122
|
const pageChannels = prefix
|
|
106
123
|
? channels.filter((c) => c.name?.toLowerCase().startsWith(prefix))
|
|
107
124
|
: channels;
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "List Emojis",
|
|
6
6
|
description:
|
|
7
7
|
"List all available emojis in the Slack workspace. Optionally include emoji image URLs. [See the documentation](https://api.slack.com/methods/emoji.list)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.11",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-files",
|
|
5
5
|
name: "List Files",
|
|
6
6
|
description: "Return a list of files within a team. [See the documentation](https://api.slack.com/methods/files.list)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.12",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
+ " Returns `has_more: true` and `next_cursor` when more conversations exist than were"
|
|
11
11
|
+ " fetched — raise `numPages` (or pass `cursor`) to see the rest."
|
|
12
12
|
+ " [See the documentation](https://api.slack.com/methods/conversations.list)",
|
|
13
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.6",
|
|
14
14
|
annotations: {
|
|
15
15
|
destructiveHint: false,
|
|
16
16
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-group-members",
|
|
5
5
|
name: "List Group Members",
|
|
6
6
|
description: "List all users in a User Group. [See the documentation](https://api.slack.com/methods/usergroups.users.list)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.21",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-icon-emoji-options",
|
|
5
5
|
name: "List Icon (emoji) Options",
|
|
6
6
|
description: "Retrieves available options for the Icon (emoji) field. [See the documentation](https://api.slack.com/methods/emoji.list)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.9",
|
|
8
8
|
type: "action",
|
|
9
9
|
ai: "optimized",
|
|
10
10
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-members-in-channel",
|
|
5
5
|
name: "List Members in Channel",
|
|
6
6
|
description: "Retrieve members of a channel. Accepts a channel ID (preferred — resolves instantly) or NAME (e.g. general or #general), resolved by scanning up to 5 pages (~5,000 channels) of the workspace's channel list — a name beyond that bound will not be found. [See the documentation](https://api.slack.com/methods/conversations.members)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.7",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
+ " selection to keep responses small, and returns the same message data."
|
|
10
10
|
+ " This legacy tool remains only for existing workflows: it accepts a raw conversation ID and"
|
|
11
11
|
+ " returns full, untrimmed message objects. [See the documentation](https://api.slack.com/methods/conversations.history)",
|
|
12
|
-
version: "0.0.
|
|
12
|
+
version: "0.0.12",
|
|
13
13
|
annotations: {
|
|
14
14
|
destructiveHint: false,
|
|
15
15
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-reminder-options",
|
|
5
5
|
name: "List Reminder Options",
|
|
6
6
|
description: "Retrieves available options for the Reminder field. [See the documentation](https://docs.slack.dev/reference/methods/reminders.list)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.9",
|
|
8
8
|
type: "action",
|
|
9
9
|
ai: "optimized",
|
|
10
10
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-replies",
|
|
5
5
|
name: "List Replies",
|
|
6
6
|
description: "Retrieve a thread of messages posted to a conversation. [See the documentation](https://api.slack.com/methods/conversations.replies)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.37",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
+ " Returns `has_more: true` and `next_cursor` when more teams exist than were"
|
|
15
15
|
+ " fetched — raise `numPages` (or pass `cursor`) to see the rest."
|
|
16
16
|
+ " [See the documentation](https://api.slack.com/methods/auth.teams.list)",
|
|
17
|
-
version: "0.0.
|
|
17
|
+
version: "0.0.6",
|
|
18
18
|
annotations: {
|
|
19
19
|
destructiveHint: false,
|
|
20
20
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-user-group-options",
|
|
5
5
|
name: "List User Group Options",
|
|
6
6
|
description: "Retrieves available options for the User Group field. [See the documentation](https://docs.slack.dev/reference/methods/usergroups.list)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.9",
|
|
8
8
|
type: "action",
|
|
9
9
|
ai: "optimized",
|
|
10
10
|
annotations: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-list-users",
|
|
5
5
|
name: "List Users",
|
|
6
6
|
description: "Return a list of all users in a workspace. [See the documentation](https://api.slack.com/methods/users.list)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.36",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
+ " Supports plain text with Slack mrkdwn formatting and Block Kit blocks."
|
|
13
13
|
+ " Posts as the authenticated user by default; set `sendAsBot` to `true` to post as the Slack app's bot user instead."
|
|
14
14
|
+ " [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
15
|
-
version: "0.1.
|
|
15
|
+
version: "0.1.1",
|
|
16
16
|
type: "action",
|
|
17
17
|
ai: "optimized",
|
|
18
18
|
annotations: {
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
+ " (e.g. `1403051575.000407`); get it from **Get Channel History** or an incoming event's"
|
|
14
14
|
+ " `ts` field. For a plain, non-threaded message use **Post Message** instead."
|
|
15
15
|
+ " [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
16
|
-
version: "0.2.
|
|
16
|
+
version: "0.2.12",
|
|
17
17
|
annotations: {
|
|
18
18
|
destructiveHint: false,
|
|
19
19
|
openWorldHint: true,
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
+ " omitted when no mention carried a name."
|
|
15
15
|
+ " Do NOT splice a name back inline: Slack renders `<@U123|Name>` as literal text, not a mention."
|
|
16
16
|
+ " [See the documentation](https://api.slack.com/methods/assistant.search.context)",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.4",
|
|
18
18
|
type: "action",
|
|
19
19
|
ai: "optimized",
|
|
20
20
|
annotations: {
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
key: "slack_v2-send-block-kit-message",
|
|
8
8
|
name: "Build and Send a Block Kit Message",
|
|
9
9
|
description: "Configure custom blocks and send to a channel, group, or user. [See the documentation](https://api.slack.com/tools/block-kit-builder).",
|
|
10
|
-
version: "0.5.
|
|
10
|
+
version: "0.5.12",
|
|
11
11
|
annotations: {
|
|
12
12
|
destructiveHint: false,
|
|
13
13
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-send-large-message",
|
|
6
6
|
name: "Send a Large Message (3000+ characters)",
|
|
7
7
|
description: "Send a large message (more than 3000 characters) to a channel, group or user. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.12",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "slack_v2-send-message",
|
|
7
7
|
name: "Send Message",
|
|
8
8
|
description: "Send a message to a user, group, private channel or public channel. [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.5",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
key: "slack_v2-send-message-advanced",
|
|
9
9
|
name: "Send Message (Advanced)",
|
|
10
10
|
description: "Customize advanced settings and send a message to a channel, group or user. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
|
|
11
|
-
version: "0.1.
|
|
11
|
+
version: "0.1.12",
|
|
12
12
|
annotations: {
|
|
13
13
|
destructiveHint: false,
|
|
14
14
|
openWorldHint: true,
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
+ " replies and unfurl settings. Use this tool only if a workflow specifically needs to"
|
|
12
12
|
+ " target a channel exclusively, without the user/group support **Post Message** offers."
|
|
13
13
|
+ " [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
14
|
-
version: "0.2.
|
|
14
|
+
version: "0.2.5",
|
|
15
15
|
annotations: {
|
|
16
16
|
destructiveHint: false,
|
|
17
17
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "slack_v2-send-message-to-user-or-group",
|
|
7
7
|
name: "Send Message to User or Group",
|
|
8
8
|
description: "Send a message to a user or group. [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.5",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-set-channel-description",
|
|
5
5
|
name: "Set Channel Description",
|
|
6
6
|
description: "Change the description or purpose of a channel. [See the documentation](https://api.slack.com/methods/conversations.setPurpose)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.22",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-set-channel-topic",
|
|
5
5
|
name: "Set Channel Topic",
|
|
6
6
|
description: "Set the topic on a channel, specified by ID (preferred — resolves instantly) or by name (resolved by scanning up to 5 pages, ~5,000 channels, of the workspace's channel list — a name beyond that bound will not be found). [See the documentation](https://api.slack.com/methods/conversations.setTopic)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.7",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-set-status",
|
|
5
5
|
name: "Set Status",
|
|
6
6
|
description: "Set the current status for a user. [See the documentation](https://api.slack.com/methods/users.profile.set)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.21",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-update-group-members",
|
|
5
5
|
name: "Update Group Members",
|
|
6
6
|
description: "Update the list of users for a User Group. [See the documentation](https://api.slack.com/methods/usergroups.users.update)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.22",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-update-message",
|
|
5
5
|
name: "Update Message",
|
|
6
6
|
description: "Update a message. [See the documentation](https://api.slack.com/methods/chat.update)",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.12",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-update-profile",
|
|
6
6
|
name: "Update Profile",
|
|
7
7
|
description: "Update basic profile field such as name or title. [See the documentation](https://api.slack.com/methods/users.profile.set)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.37",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
key: "slack_v2-upload-file",
|
|
9
9
|
name: "Upload File",
|
|
10
10
|
description: "Upload a file. [See the documentation](https://api.slack.com/messaging/files#uploading_files)",
|
|
11
|
-
version: "0.1.
|
|
11
|
+
version: "0.1.16",
|
|
12
12
|
annotations: {
|
|
13
13
|
destructiveHint: false,
|
|
14
14
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-verify-slack-signature",
|
|
6
6
|
name: "Verify Slack Signature",
|
|
7
7
|
description: "Verifying requests from Slack, slack signs its requests using a secret that's unique to your app. `Request Body` must be the raw request body as a string (not a parsed object) — Slack computes its signature over the exact raw bytes it sent, so re-serializing a parsed object will not match. [See the documentation](https://api.slack.com/authentication/verifying-requests-from-slack)",
|
|
8
|
-
version: "1.0.
|
|
8
|
+
version: "1.0.5",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
package/package.json
CHANGED
package/slack_v2.app.mjs
CHANGED
|
@@ -780,6 +780,12 @@ export default {
|
|
|
780
780
|
...args,
|
|
781
781
|
});
|
|
782
782
|
},
|
|
783
|
+
leaveConversation(args = {}) {
|
|
784
|
+
return this.makeRequest({
|
|
785
|
+
method: "conversations.leave",
|
|
786
|
+
...args,
|
|
787
|
+
});
|
|
788
|
+
},
|
|
783
789
|
addReminders(args = {}) {
|
|
784
790
|
return this.makeRequest({
|
|
785
791
|
method: "reminders.add",
|
|
@@ -3,7 +3,7 @@ import sampleEmit from "./test-event.mjs";
|
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
name: "New Interaction Events (Instant)",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.32",
|
|
7
7
|
key: "slack_v2-new-interaction-event-received",
|
|
8
8
|
description: "Emit new events on new Slack [interactivity events](https://api.slack.com/interactivity) sourced from [Block Kit interactive elements](https://api.slack.com/interactivity/components), [Slash commands](https://api.slack.com/interactivity/slash-commands), or [Shortcuts](https://api.slack.com/interactivity/shortcuts).",
|
|
9
9
|
type: "source",
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
...common,
|
|
8
8
|
key: "slack_v2-new-keyword-mention",
|
|
9
9
|
name: "New Keyword Mention (Instant)",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.11",
|
|
11
11
|
description: "Emit new event when a specific keyword is mentioned in a channel",
|
|
12
12
|
type: "source",
|
|
13
13
|
dedupe: "unique",
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
...common,
|
|
8
8
|
key: "slack_v2-new-message-in-channels",
|
|
9
9
|
name: "New Message In Channels (Instant)",
|
|
10
|
-
version: "1.1.
|
|
10
|
+
version: "1.1.11",
|
|
11
11
|
description: "Emit new event when a new message is posted to one or more channels",
|
|
12
12
|
type: "source",
|
|
13
13
|
dedupe: "unique",
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
...common,
|
|
5
5
|
key: "slack_v2-new-private-channel-created",
|
|
6
6
|
name: "New Private Channel Created",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.11",
|
|
8
8
|
description: "Emit new event when a new private channel is created. [See the documentation](https://api.slack.com/methods/conversations.list)",
|
|
9
9
|
type: "source",
|
|
10
10
|
dedupe: "unique",
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
...common,
|
|
6
6
|
key: "slack_v2-new-reaction-added",
|
|
7
7
|
name: "New Reaction Added (Instant)",
|
|
8
|
-
version: "1.2.
|
|
8
|
+
version: "1.2.11",
|
|
9
9
|
description: "Emit new event when a member has added an emoji reaction to a message",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
...common,
|
|
6
6
|
key: "slack_v2-new-saved-message",
|
|
7
7
|
name: "New Saved Message (Instant)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.17",
|
|
9
9
|
description: "Emit new event when a message is saved. Note: The endpoint is marked as deprecated, and Slack might shut this off at some point down the line.",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
...common,
|
|
8
8
|
key: "slack_v2-new-user-mention",
|
|
9
9
|
name: "New User Mention (Instant)",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.11",
|
|
11
11
|
description: "Emit new event when a username or specific keyword is mentioned in a channel",
|
|
12
12
|
type: "source",
|
|
13
13
|
dedupe: "unique",
|