@pipedream/slack_v2 0.7.0 → 0.8.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 +2 -1
- package/actions/archive-channel/archive-channel.mjs +1 -1
- package/actions/browse-files/browse-files.mjs +2 -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 +2 -1
- package/actions/edit-message/edit-message.mjs +2 -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 +6 -4
- 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 +2 -1
- package/actions/get-user-details/get-user-details.mjs +2 -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/list-channels/list-channels.mjs +2 -1
- package/actions/list-emojis/list-emojis.mjs +1 -1
- package/actions/list-files/list-files.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 +7 -3
- package/actions/list-reminder-options/list-reminder-options.mjs +1 -1
- package/actions/list-replies/list-replies.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 +2 -1
- package/actions/reply-to-a-message/reply-to-a-message.mjs +1 -1
- package/actions/search/search.mjs +2 -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 +23 -1
- 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.23",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -9,7 +10,7 @@ export default {
|
|
|
9
10
|
+ " Use **Get Channel History** or **Search** to find the message timestamp."
|
|
10
11
|
+ " Emoji name should be without colons (e.g. `thumbsup`, `fire`, `heart`)."
|
|
11
12
|
+ " [See the documentation](https://api.slack.com/methods/reactions.add)",
|
|
12
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.3",
|
|
13
14
|
type: "action",
|
|
14
15
|
annotations: {
|
|
15
16
|
destructiveHint: false,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-archive-channel",
|
|
6
6
|
name: "Archive Channel",
|
|
7
7
|
description: "Archive a channel. [See the documentation](https://api.slack.com/methods/conversations.archive)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.31",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -9,7 +10,7 @@ export default {
|
|
|
9
10
|
+ " Filter by file type (e.g. `images`, `pdfs`, `snippets`)."
|
|
10
11
|
+ " Returns file metadata including name, type, size, and download URL."
|
|
11
12
|
+ " [See the documentation](https://api.slack.com/methods/files.list)",
|
|
12
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.3",
|
|
13
14
|
type: "action",
|
|
14
15
|
annotations: {
|
|
15
16
|
destructiveHint: false,
|
|
@@ -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.31",
|
|
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.32",
|
|
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.31",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -11,7 +12,7 @@ export default {
|
|
|
11
12
|
+ " lets an identity delete its own messages, so this deletes as whichever identity posted:"
|
|
12
13
|
+ " it retries automatically with the other identity if the first attempt returns"
|
|
13
14
|
+ " `cant_delete_message`. [See the documentation](https://api.slack.com/methods/chat.delete)",
|
|
14
|
-
version: "0.2.
|
|
15
|
+
version: "0.2.1",
|
|
15
16
|
annotations: {
|
|
16
17
|
destructiveHint: true,
|
|
17
18
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
import { ConfigurationError } from "@pipedream/platform";
|
|
3
4
|
|
|
@@ -10,7 +11,7 @@ export default {
|
|
|
10
11
|
+ " Requires the message timestamp (`ts`) from **Get Channel History** or **Post Message**."
|
|
11
12
|
+ " You can only edit messages posted by the same token/user."
|
|
12
13
|
+ " [See the documentation](https://api.slack.com/methods/chat.update)",
|
|
13
|
-
version: "0.0.
|
|
14
|
+
version: "0.0.3",
|
|
14
15
|
type: "action",
|
|
15
16
|
annotations: {
|
|
16
17
|
destructiveHint: false,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "slack_v2-find-message",
|
|
5
5
|
name: "Find Message",
|
|
6
6
|
description: "Find a Slack message. [See the documentation](https://api.slack.com/methods/assistant.search.context)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.5",
|
|
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-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.30",
|
|
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. Returns user profile information including name, email (requires `users:read.email` scope), timezone, and status. [See the documentation](https://api.slack.com/methods/users.info)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.7",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
@@ -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 or by name — names are resolved automatically. [See the documentation](https://api.slack.com/methods/conversations.info)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.1",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import utils from "../../common/utils.mjs";
|
|
2
3
|
import slack from "../../slack_v2.app.mjs";
|
|
3
4
|
|
|
@@ -5,16 +6,17 @@ export default {
|
|
|
5
6
|
key: "slack_v2-get-channel-history",
|
|
6
7
|
name: "Get Channel History",
|
|
7
8
|
description:
|
|
8
|
-
"Read the recent message history from a specific channel."
|
|
9
|
+
"Read the recent message history from a specific channel or direct message (DM)."
|
|
9
10
|
+ " Accepts a channel ID or channel name (resolved automatically)."
|
|
10
|
-
+ "
|
|
11
|
+
+ " To read a DM, pass the other person's **user ID** (e.g. `U1234567890`) as the channel — pass your OWN user ID to read your conversation with yourself."
|
|
12
|
+
+ " Use this when you want to see a channel's or DM's latest messages — unlike **Search** which finds messages by keyword."
|
|
11
13
|
+ " Returns messages with text, timestamps (ts), reactions, and user IDs."
|
|
12
14
|
+ " Message timestamps can be used with **Get Thread Replies**, **Edit Message**, and **Add Reaction**."
|
|
13
15
|
+ " **Pass `fields`** (e.g. `text,ts,user`) unless you need full message objects — raw Slack"
|
|
14
16
|
+ " messages carry blocks, attachments and edit metadata, so a busy channel can run to tens"
|
|
15
17
|
+ " of thousands of characters and be truncated before you see any of it."
|
|
16
18
|
+ " [See the documentation](https://api.slack.com/methods/conversations.history)",
|
|
17
|
-
version: "0.
|
|
19
|
+
version: "0.2.0",
|
|
18
20
|
type: "action",
|
|
19
21
|
annotations: {
|
|
20
22
|
destructiveHint: false,
|
|
@@ -26,7 +28,7 @@ export default {
|
|
|
26
28
|
channel: {
|
|
27
29
|
type: "string",
|
|
28
30
|
label: "Channel",
|
|
29
|
-
description: "Channel ID (e.g. `C1234567890`) or channel name (e.g. `general` or `#general`). Resolved automatically.",
|
|
31
|
+
description: "Channel ID (e.g. `C1234567890`) or channel name (e.g. `general` or `#general`). For a direct message, pass a user ID (e.g. `U1234567890`) — including your own, to read your self-DM. Resolved automatically.",
|
|
30
32
|
},
|
|
31
33
|
limit: {
|
|
32
34
|
type: "integer",
|
|
@@ -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. 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.6",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-get-file",
|
|
6
6
|
name: "Get File",
|
|
7
7
|
description: "Return information about a file. [See the documentation](https://api.slack.com/methods/files.info)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import utils from "../../common/utils.mjs";
|
|
2
3
|
import slack from "../../slack_v2.app.mjs";
|
|
3
4
|
|
|
@@ -13,7 +14,7 @@ export default {
|
|
|
13
14
|
+ " Slack messages carry blocks, attachments and edit metadata, so a long thread can run"
|
|
14
15
|
+ " to tens of thousands of characters and be truncated before you see any of it."
|
|
15
16
|
+ " [See the documentation](https://api.slack.com/methods/conversations.replies)",
|
|
16
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.1",
|
|
17
18
|
type: "action",
|
|
18
19
|
annotations: {
|
|
19
20
|
destructiveHint: false,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -13,7 +14,7 @@ export default {
|
|
|
13
14
|
+ " Prefer this over **Get Current User**, which returns a much larger payload and is only"
|
|
14
15
|
+ " needed for full profile detail (locale, status, admin flags)."
|
|
15
16
|
+ " [See the documentation](https://api.slack.com/methods/auth.test)",
|
|
16
|
-
version: "0.0.
|
|
17
|
+
version: "0.0.3",
|
|
17
18
|
type: "action",
|
|
18
19
|
annotations: {
|
|
19
20
|
destructiveHint: false,
|
|
@@ -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 or NAME, 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.1",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-kick-user",
|
|
6
6
|
name: "Kick User",
|
|
7
7
|
description: "Remove a user from a conversation. [See the documentation](https://api.slack.com/methods/conversations.kick)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.31",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import utils from "../../common/utils.mjs";
|
|
2
3
|
import slack from "../../slack_v2.app.mjs";
|
|
3
4
|
|
|
@@ -14,7 +15,7 @@ export default {
|
|
|
14
15
|
+ " fetched — when you see that, raise `numPages` (or pass `cursor`) before answering"
|
|
15
16
|
+ " any 'how many' or 'list every' question, otherwise your answer is silently incomplete."
|
|
16
17
|
+ " [See the documentation](https://api.slack.com/methods/conversations.list)",
|
|
17
|
-
version: "0.2.
|
|
18
|
+
version: "0.2.1",
|
|
18
19
|
annotations: {
|
|
19
20
|
destructiveHint: false,
|
|
20
21
|
openWorldHint: true,
|
|
@@ -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.5",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-list-files",
|
|
6
6
|
name: "List Files",
|
|
7
7
|
description: "Return a list of files within a team. [See the documentation](https://api.slack.com/methods/files.list)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
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.15",
|
|
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.",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
@@ -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 or NAME (e.g. general or #general) — names are resolved automatically. [See the documentation](https://api.slack.com/methods/conversations.members)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.1",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -2,10 +2,14 @@ import slack from "../../slack_v2.app.mjs";
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
key: "slack_v2-list-messages",
|
|
5
|
-
name: "List Messages",
|
|
5
|
+
name: "List Messages (Deprecated)",
|
|
6
6
|
description:
|
|
7
|
-
"
|
|
8
|
-
|
|
7
|
+
"DEPRECATED — do NOT use for reading a channel's or DM's messages. Use **Get Channel History** instead:"
|
|
8
|
+
+ " it resolves channel names, channel IDs, and direct messages (by user ID), supports `fields`"
|
|
9
|
+
+ " selection to keep responses small, and returns the same message data."
|
|
10
|
+
+ " This legacy tool remains only for existing workflows: it accepts a raw conversation ID and"
|
|
11
|
+
+ " returns full, untrimmed message objects. [See the documentation](https://api.slack.com/methods/conversations.history)",
|
|
12
|
+
version: "0.0.6",
|
|
9
13
|
annotations: {
|
|
10
14
|
destructiveHint: false,
|
|
11
15
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "slack_v2-list-replies",
|
|
6
6
|
name: "List Replies",
|
|
7
7
|
description: "Retrieve a thread of messages posted to a conversation. [See the documentation](https://api.slack.com/methods/conversations.replies)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.31",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
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.",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
@@ -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.30",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
import { ConfigurationError } from "@pipedream/platform";
|
|
3
4
|
|
|
@@ -10,7 +11,7 @@ export default {
|
|
|
10
11
|
+ " To reply to a thread, provide `thread_ts` from **Get Channel History**."
|
|
11
12
|
+ " Supports plain text with Slack mrkdwn formatting and Block Kit blocks."
|
|
12
13
|
+ " [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
13
|
-
version: "0.0.
|
|
14
|
+
version: "0.0.3",
|
|
14
15
|
type: "action",
|
|
15
16
|
annotations: {
|
|
16
17
|
destructiveHint: false,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "slack_v2-reply-to-a-message",
|
|
7
7
|
name: "Reply to a Message Thread",
|
|
8
8
|
description: "Send a message as a threaded reply. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.6",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import slack from "../../slack_v2.app.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -9,7 +10,7 @@ export default {
|
|
|
9
10
|
+ " Use **Get User Details** first to find your user ID for filtering by 'my' messages."
|
|
10
11
|
+ " Returns matching messages with channel context, timestamps, and permalinks."
|
|
11
12
|
+ " [See the documentation](https://api.slack.com/methods/assistant.search.context)",
|
|
12
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.3",
|
|
13
14
|
type: "action",
|
|
14
15
|
annotations: {
|
|
15
16
|
destructiveHint: false,
|
|
@@ -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.6",
|
|
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.6",
|
|
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.1.
|
|
9
|
+
version: "0.1.6",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
key: "slack_v2-send-message-advanced",
|
|
8
8
|
name: "Send Message (Advanced)",
|
|
9
9
|
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",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.6",
|
|
11
11
|
annotations: {
|
|
12
12
|
destructiveHint: false,
|
|
13
13
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "slack_v2-send-message-to-channel",
|
|
7
7
|
name: "Send Message to Channel",
|
|
8
8
|
description: "Send a message to a public or private channel. [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.6",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
key: "slack_v2-send-message-to-user-or-group",
|
|
8
8
|
name: "Send Message to User or Group",
|
|
9
9
|
description: "Send a message to a user or group. [See the documentation](https://api.slack.com/methods/chat.postMessage)",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.6",
|
|
11
11
|
annotations: {
|
|
12
12
|
destructiveHint: false,
|
|
13
13
|
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.16",
|
|
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 or by name — names are resolved automatically. [See the documentation](https://api.slack.com/methods/conversations.setTopic)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.1",
|
|
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.15",
|
|
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.16",
|
|
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.6",
|
|
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.31",
|
|
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.10",
|
|
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. [See the documentation](https://api.slack.com/authentication/verifying-requests-from-slack)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.5",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
package/package.json
CHANGED
package/slack_v2.app.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// x-pd-ai: optimized
|
|
1
2
|
import { WebClient } from "@slack/web-api";
|
|
2
3
|
import constants from "./common/constants.mjs";
|
|
3
4
|
import get from "lodash/get.js";
|
|
@@ -1110,6 +1111,12 @@ export default {
|
|
|
1110
1111
|
...args,
|
|
1111
1112
|
});
|
|
1112
1113
|
},
|
|
1114
|
+
openConversation(args = {}) {
|
|
1115
|
+
return this.makeRequest({
|
|
1116
|
+
method: "conversations.open",
|
|
1117
|
+
...args,
|
|
1118
|
+
});
|
|
1119
|
+
},
|
|
1113
1120
|
inviteToConversation(args = {}) {
|
|
1114
1121
|
return this.makeRequest({
|
|
1115
1122
|
method: "conversations.invite",
|
|
@@ -1278,7 +1285,22 @@ export default {
|
|
|
1278
1285
|
* @returns {Promise<string>} The resolved channel ID
|
|
1279
1286
|
*/
|
|
1280
1287
|
async resolveChannelId(input) {
|
|
1281
|
-
|
|
1288
|
+
// Slack ids are UPPERCASE-only (e.g. `C0123ABCD`, `U0123ABCD`). Match case-sensitively:
|
|
1289
|
+
// channel names are lowercased by Slack, so a `/i` match would misclassify an all-alnum
|
|
1290
|
+
// name like `welcomeaboard` or `developers` (no hyphen, 9+ chars) as an id.
|
|
1291
|
+
// Channel, private-group, and DM ids are already conversation ids — pass through.
|
|
1292
|
+
if (/^[CDG][A-Z0-9]{8,}$/.test(input)) return input;
|
|
1293
|
+
// A user id is NOT a conversation id — conversations.* answers `channel_not_found`
|
|
1294
|
+
// for it. Open (idempotently) the DM with that user and use the returned IM channel.
|
|
1295
|
+
// This is the read-side counterpart to chat.postMessage accepting a user id: an agent
|
|
1296
|
+
// asked to read "my DMs" resolves its own user id and passes it here, and history,
|
|
1297
|
+
// thread replies, and reactions now accept it the way posting already does.
|
|
1298
|
+
if (/^[UW][A-Z0-9]{8,}$/.test(input)) {
|
|
1299
|
+
const { channel } = await this.openConversation({
|
|
1300
|
+
users: input,
|
|
1301
|
+
});
|
|
1302
|
+
return channel.id;
|
|
1303
|
+
}
|
|
1282
1304
|
const name = input.replace(/^#/, "").toLowerCase();
|
|
1283
1305
|
let cursor;
|
|
1284
1306
|
do {
|
|
@@ -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.27",
|
|
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.6",
|
|
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.6",
|
|
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.6",
|
|
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.6",
|
|
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.12",
|
|
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.6",
|
|
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",
|