@pipedream/slack 0.4.31 → 0.5.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.
Files changed (54) hide show
  1. package/README.md +14 -11
  2. package/actions/add-emoji-reaction/add-emoji-reaction.mjs +1 -1
  3. package/actions/add-star/add-star.mjs +1 -1
  4. package/actions/archive-channel/archive-channel.mjs +1 -1
  5. package/actions/complete-reminder/complete-reminder.mjs +1 -1
  6. package/actions/create-channel/create-channel.mjs +1 -1
  7. package/actions/create-reminder/create-reminder.mjs +1 -1
  8. package/actions/delete-file/delete-file.mjs +1 -1
  9. package/actions/delete-message/delete-message.mjs +1 -1
  10. package/actions/delete-reminder/delete-reminder.mjs +1 -1
  11. package/actions/find-message/find-message.mjs +1 -1
  12. package/actions/find-user-by-email/find-user-by-email.mjs +1 -1
  13. package/actions/get-channel/get-channel.mjs +1 -1
  14. package/actions/get-file/get-file.mjs +1 -1
  15. package/actions/get-reminder/get-reminder.mjs +1 -1
  16. package/actions/invite-user-to-channel/invite-user-to-channel.mjs +1 -1
  17. package/actions/join-channel/join-channel.mjs +1 -1
  18. package/actions/kick-user/kick-user.mjs +1 -1
  19. package/actions/leave-channel/leave-channel.mjs +1 -1
  20. package/actions/list-channels/list-channels.mjs +1 -1
  21. package/actions/list-files/list-files.mjs +1 -1
  22. package/actions/list-members-in-channel/list-members-in-channel.mjs +1 -1
  23. package/actions/list-reminders/list-reminders.mjs +1 -1
  24. package/actions/list-replies/list-replies.mjs +1 -1
  25. package/actions/list-user-groups-users/list-user-groups-users.mjs +1 -1
  26. package/actions/list-users/list-users.mjs +1 -1
  27. package/actions/remove-star/remove-star.mjs +1 -1
  28. package/actions/reply-to-a-message/reply-to-a-message.mjs +1 -1
  29. package/actions/send-block-kit-message/send-block-kit-message.mjs +2 -2
  30. package/actions/send-custom-message/send-custom-message.mjs +1 -1
  31. package/actions/send-direct-message/send-direct-message.mjs +1 -1
  32. package/actions/send-group-message/send-group-message.mjs +1 -1
  33. package/actions/send-large-message/send-large-message.mjs +1 -1
  34. package/actions/send-message-private-channel/send-message-private-channel.mjs +2 -2
  35. package/actions/send-message-public-channel/send-message-public-channel.mjs +2 -2
  36. package/actions/set-channel-purpose/set-channel-purpose.mjs +1 -1
  37. package/actions/set-channel-topic/set-channel-topic.mjs +1 -1
  38. package/actions/unarchive-channel/unarchive-channel.mjs +1 -1
  39. package/actions/update-message/update-message.mjs +1 -1
  40. package/actions/update-profile/update-profile.mjs +1 -1
  41. package/actions/update-user-groups-users/update-user-groups-users.mjs +1 -1
  42. package/actions/upload-file/upload-file.mjs +2 -2
  43. package/actions/verify-slack-signature/verify-slack-signature.mjs +2 -2
  44. package/package.json +1 -1
  45. package/sources/common/base.mjs +1 -1
  46. package/sources/new-channel-created/new-channel-created.mjs +32 -0
  47. package/sources/new-channel-created/test-event.mjs +44 -0
  48. package/sources/new-direct-message/new-direct-message.mjs +1 -1
  49. package/sources/new-interaction-event-received/README.md +7 -5
  50. package/sources/new-interaction-event-received/new-interaction-event-received.mjs +7 -2
  51. package/sources/new-mention/new-mention.mjs +1 -1
  52. package/sources/new-message-in-channels/new-message-in-channels.mjs +2 -2
  53. package/sources/new-reaction-added/new-reaction-added.mjs +1 -1
  54. package/sources/new-star-added/new-star-added.mjs +1 -1
package/README.md CHANGED
@@ -2,18 +2,16 @@
2
2
 
3
3
  The Pipedream Slack app enables you to build event-driven workflows that interact with the Slack API. When you authorize the Pipedream app's access to your workspace, you can use [Pipedream workflows](/workflows/) to perform common Slack [actions](#workflow-actions), or [write your own code](/code/) against the Slack API.
4
4
 
5
- The Pipedream Slack app is not a typical app. You don't interact with it directly as a bot, and it doesn't add custom functionality to your workspace out of the box. It just makes it easier to automate anything you'd typically use the Slack API for, using Pipedream workflows.
5
+ The Pipedream Slack app is not a typical app. You don't interact with it directly as a bot, and it doesn't add custom functionality to your workspace out of the box. It makes it easier to automate anything you'd typically use the Slack API for, using Pipedream workflows.
6
6
 
7
- Here are some examples of automations you can build with Pipedream on Slack:
8
-
9
- - Automate posting updates to your team channel
7
+ - Automate posting updates to your team channels
10
8
  - Create a bot to answer common questions
11
9
  - Integrate with your existing tools and services
12
- - Build a custom dashboard to track your team's progress
13
- - Create a bot to handle scheduling and meeting requests
14
10
  - And much more!
15
11
 
16
- ### Should I use the Slack or Slack Bot app on Pipedream?
12
+ # Getting Started
13
+
14
+ ## Should I use the Slack or Slack Bot app on Pipedream?
17
15
 
18
16
  The Slack app is the easiest and most convienent option to get started. It installs the official Pipedream bot into your Slack workspace with just a few clicks.
19
17
 
@@ -21,10 +19,6 @@ However, if you'd like to use your own bot registered with the [Slack API](https
21
19
 
22
20
  The Slack Bot requires a bot token to allow your Pipedream workflows to authenticate as your bot. The extra set up steps allow you to list your custom bot on the Slack Marketplace, or install the bot on other workspaces as your bot's name instead of as Pipedream.
23
21
 
24
- # Getting Started
25
-
26
- You can install the Pipedream Slack app in the [Accounts](https://pipedream.com/accounts) section of your account, or directly in a workflow
27
-
28
22
  ## Accounts
29
23
 
30
24
  1. Visit [https://pipedream.com/accounts](https://pipedream.com/accounts).
@@ -42,6 +36,15 @@ You can install the Pipedream Slack app in the [Accounts](https://pipedream.com/
42
36
  5. Click the **Connect Account** button near the top of the step. This will prompt you to select any existing Slack accounts you've previously authenticated with Pipedream, or you can select a **New** account. Clicking **New** opens a new window asking you to allow Pipedream access to your Slack workspace. Choose the right workspace where you'd like to install the app, then click **Allow**.
43
37
  6. That's it! You can now connect to the Slack API using any of the Slack actions within a Pipedream workflow.
44
38
 
39
+ # Example Use Cases
40
+
41
+ - **Automated Standup Reports**: Trigger a workflow on Pipedream to collect standup updates from team members within a Slack channel at a scheduled time. The workflow can compile the updates into a formatted report and post it to a designated channel or send it via email using an app like SendGrid.
42
+
43
+ - **Customer Support Ticketing**: Use Pipedream to monitor a Slack support channel for new messages. On detecting a message, the workflow can create a ticket in a customer support platform like Zendesk or Jira. It can also format and forward critical information back to the Slack channel to keep the team updated.
44
+
45
+ - **Real-time CRM Updates**: Configure a Pipedream workflow to listen for specific trigger words in sales-related Slack channels. When mentioned, the workflow fetches corresponding data from a CRM tool like Salesforce and posts the latest deal status or customer information in the Slack conversation for quick reference.
46
+
47
+
45
48
  # Troubleshooting
46
49
 
47
50
  Please [reach out](https://pipedream.com/support/) to the Pipedream team with any technical issues or questions about the Slack integration. We're happy to help!
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-add-emoji-reaction",
5
5
  name: "Add Emoji Reaction",
6
6
  description: "Add an emoji reaction to a message. [See docs here](https://api.slack.com/methods/reactions.add)",
7
- version: "0.0.5",
7
+ version: "0.0.6",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-add-star",
5
5
  name: "Add Star",
6
6
  description: "Add a star to an item on behalf of the authenticated user. [See docs here](https://api.slack.com/methods/stars.add)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-archive-channel",
5
5
  name: "Archive Channel",
6
6
  description: "Archive a channel. [See docs here](https://api.slack.com/methods/conversations.archive)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-complete-reminder",
5
5
  name: "Complete Reminder",
6
6
  description: "Complete a reminder. [See docs here](https://api.slack.com/methods/reminders.complete)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-create-channel",
5
5
  name: "Create a Channel",
6
6
  description: "Create a new channel. [See docs here](https://api.slack.com/methods/conversations.create)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-create-reminder",
5
5
  name: "Create Reminder",
6
6
  description: "Create a reminder. [See docs here](https://api.slack.com/methods/reminders.add)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-delete-file",
5
5
  name: "Delete File",
6
6
  description: "Delete a file. [See docs here](https://api.slack.com/methods/files.delete)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-delete-message",
5
5
  name: "Delete Message",
6
6
  description: "Delete a message. [See docs here](https://api.slack.com/methods/chat.delete)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-delete-reminder",
5
5
  name: "Delete Reminder",
6
6
  description: "Delete a reminder. [See docs here](https://api.slack.com/methods/reminders.delete)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-find-message",
5
5
  name: "Find Message",
6
6
  description: "Find a Slack message. [See docs here](https://api.slack.com/methods/search.messages)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-find-user-by-email",
5
5
  name: "Find User by Email",
6
6
  description: "Find a user by matching against their email. [See docs here](https://api.slack.com/methods/users.lookupByEmail)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-get-channel",
5
5
  name: "Get Channel",
6
6
  description: "Return information about a workspace channel. [See docs here](https://api.slack.com/methods/conversations.info)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-get-file",
5
5
  name: "Get File",
6
6
  description: "Return information about a file. [See docs here](https://api.slack.com/methods/files.info)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-get-reminder",
5
5
  name: "Get Reminder",
6
6
  description: "Return information about a reminder. [See docs here](https://api.slack.com/methods/reminders.info)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-invite-user-to-channel",
5
5
  name: "Invite User to Channel",
6
6
  description: "Invite a user to an existing channel. [See docs here](https://api.slack.com/methods/conversations.invite)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-join-channel",
5
5
  name: "Join Channel",
6
6
  description: "Join an existing channel. [See docs here](https://api.slack.com/methods/conversations.join)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-kick-user",
5
5
  name: "Kick User",
6
6
  description: "Remove a user from a conversation. [See docs here](https://api.slack.com/methods/conversations.kick)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-leave-channel",
5
5
  name: "Leave Channel",
6
6
  description: "Leave an existing channel. [See docs here](https://api.slack.com/methods/conversations.leave)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-channels",
5
5
  name: "List Channels",
6
6
  description: "Return a list of all channels in a workspace. [See docs here](https://api.slack.com/methods/conversations.list)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-files",
5
5
  name: "List Files",
6
6
  description: "Return a list of files within a team. [See docs here](https://api.slack.com/methods/files.list)",
7
- version: "0.0.41",
7
+ version: "0.0.42",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-members-in-channel",
5
5
  name: "List Members in Channel",
6
6
  description: "Retrieve members of a channel. [See docs here](https://api.slack.com/methods/conversations.members)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-reminders",
5
5
  name: "List Reminders",
6
6
  description: "List all reminders for a given user. [See docs here](https://api.slack.com/methods/reminders.list)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-replies",
5
5
  name: "List Replies",
6
6
  description: "Retrieve a thread of messages posted to a conversation. [See docs here](https://api.slack.com/methods/conversations.replies)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-user-groups-users",
5
5
  name: "List User Groups Users",
6
6
  description: "List all users in a User Group. [See docs here](https://api.slack.com/methods/usergroups.users.list)",
7
- version: "0.0.6",
7
+ version: "0.0.7",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-list-users",
5
5
  name: "List Users",
6
6
  description: "Return a list of all users in a workspace. [See docs here](https://api.slack.com/methods/users.list)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-remove-star",
5
5
  name: "Remove Star",
6
6
  description: "Remove a star from an item on behalf of the authenticated user. [See docs here](https://api.slack.com/methods/stars.remove)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "slack-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.1.18",
9
+ version: "0.1.19",
10
10
  type: "action",
11
11
  props: {
12
12
  slack: common.props.slack,
@@ -1,12 +1,12 @@
1
- import common from "../common/send-message.mjs";
2
1
  import buildBlocks from "../common/build-blocks.mjs";
2
+ import common from "../common/send-message.mjs";
3
3
 
4
4
  export default {
5
5
  ...common,
6
6
  ...buildBlocks,
7
7
  name: "Build and Send a Block Kit Message (Beta)",
8
8
  description: "Configure custom blocks and send to a channel, group, or user. [See Slack's docs for more info](https://api.slack.com/tools/block-kit-builder).",
9
- version: "0.3.0",
9
+ version: "0.3.1",
10
10
  type: "action",
11
11
  key: "slack-send-block-kit-message",
12
12
  props: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "slack-send-custom-message",
6
6
  name: "Send a Custom Message",
7
7
  description: "Customize advanced setttings 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",
8
- version: "0.2.17",
8
+ version: "0.2.18",
9
9
  type: "action",
10
10
  props: {
11
11
  slack: common.props.slack,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "slack-send-direct-message",
6
6
  name: "Send a Direct Message",
7
7
  description: "Send a direct message to a single user. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
8
- version: "0.2.18",
8
+ version: "0.2.19",
9
9
  type: "action",
10
10
  props: {
11
11
  slack: common.props.slack,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "slack-send-group-message",
6
6
  name: "Send Group Message",
7
7
  description: "Send a direct message to a group of users. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
8
- version: "0.2.18",
8
+ version: "0.2.19",
9
9
  type: "action",
10
10
  props: {
11
11
  slack: common.props.slack,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "slack-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.0.13",
8
+ version: "0.0.14",
9
9
  type: "action",
10
10
  props: {
11
11
  slack: common.props.slack,
@@ -1,12 +1,12 @@
1
- import common from "../common/send-message.mjs";
2
1
  import constants from "../../common/constants.mjs";
2
+ import common from "../common/send-message.mjs";
3
3
 
4
4
  export default {
5
5
  ...common,
6
6
  key: "slack-send-message-private-channel",
7
7
  name: "Send Message to a Private Channel",
8
8
  description: "Send a message to a private channel and customize the name and avatar of the bot that posts the message. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
9
- version: "0.2.18",
9
+ version: "0.2.19",
10
10
  type: "action",
11
11
  props: {
12
12
  slack: common.props.slack,
@@ -1,12 +1,12 @@
1
- import common from "../common/send-message.mjs";
2
1
  import constants from "../../common/constants.mjs";
2
+ import common from "../common/send-message.mjs";
3
3
 
4
4
  export default {
5
5
  ...common,
6
6
  key: "slack-send-message-public-channel",
7
7
  name: "Send Message to a Public Channel",
8
8
  description: "Send a message to a public channel and customize the name and avatar of the bot that posts the message. See [postMessage](https://api.slack.com/methods/chat.postMessage) or [scheduleMessage](https://api.slack.com/methods/chat.scheduleMessage) docs here",
9
- version: "0.2.17",
9
+ version: "0.2.18",
10
10
  type: "action",
11
11
  props: {
12
12
  slack: common.props.slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-set-channel-purpose",
5
5
  name: "Set Channel Purpose",
6
6
  description: "Change the purpose of a channel. [See docs here](https://api.slack.com/methods/conversations.setPurpose)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-set-channel-topic",
5
5
  name: "Set Channel Topic",
6
6
  description: "Set the topic on a selected channel. [See docs here](https://api.slack.com/methods/conversations.setTopic)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-unarchive-channel",
5
5
  name: "Unarchive Channel",
6
6
  description: "Unarchive a channel. [See docs here](https://api.slack.com/methods/conversations.unarchive)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-update-message",
5
5
  name: "Update Message",
6
6
  description: "Update a message. [See docs here](https://api.slack.com/methods/chat.update)",
7
- version: "0.1.13",
7
+ version: "0.1.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-update-profile",
5
5
  name: "Update Profile",
6
6
  description: "Update basic profile field such as name or title. [See docs here](https://api.slack.com/methods/users.profile.set)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "slack-update-user-groups-users",
5
5
  name: "Update User Groups Users",
6
6
  description: "Update the list of users for a User Group. [See docs here](https://api.slack.com/methods/usergroups.users.update)",
7
- version: "0.0.6",
7
+ version: "0.0.7",
8
8
  type: "action",
9
9
  props: {
10
10
  slack,
@@ -1,12 +1,12 @@
1
1
  import { ConfigurationError } from "@pipedream/platform";
2
- import slack from "../../slack.app.mjs";
3
2
  import fs from "fs";
3
+ import slack from "../../slack.app.mjs";
4
4
 
5
5
  export default {
6
6
  key: "slack-upload-file",
7
7
  name: "Upload File",
8
8
  description: "Upload a file. [See docs here](https://api.slack.com/methods/files.upload)",
9
- version: "0.0.16",
9
+ version: "0.0.17",
10
10
  type: "action",
11
11
  props: {
12
12
  slack,
@@ -1,11 +1,11 @@
1
- import slack from "../../slack.app.mjs";
2
1
  import crypto from "crypto";
2
+ import slack from "../../slack.app.mjs";
3
3
 
4
4
  export default {
5
5
  key: "slack-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 docs here](https://api.slack.com/authentication/verifying-requests-from-slack)",
8
- version: "0.0.6",
8
+ version: "0.0.7",
9
9
  type: "action",
10
10
  props: {
11
11
  slack,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/slack",
3
- "version": "0.4.31",
3
+ "version": "0.5.0",
4
4
  "description": "Pipedream Slack Components",
5
5
  "main": "slack.app.mjs",
6
6
  "keywords": [
@@ -166,7 +166,7 @@ export default {
166
166
  }
167
167
 
168
168
  this.$emit(event, {
169
- id: event.client_msg_id || event.pipedream_msg_id,
169
+ id: event.client_msg_id || event.pipedream_msg_id || event.channel.id,
170
170
  summary: this.getSummary(event),
171
171
  ts: event.event_ts || Date.now(),
172
172
  });
@@ -0,0 +1,32 @@
1
+ import common from "../common/base.mjs";
2
+ import sampleEmit from "./test-event.mjs";
3
+
4
+ export default {
5
+ ...common,
6
+ key: "slack-new-channel-created",
7
+ name: "New Channel Created (Instant)",
8
+ version: "0.0.1",
9
+ description: "Emit new event when a new channel is created.",
10
+ type: "source",
11
+ dedupe: "unique",
12
+ props: {
13
+ ...common.props,
14
+ // eslint-disable-next-line pipedream/props-description,pipedream/props-label
15
+ slackApphook: {
16
+ type: "$.interface.apphook",
17
+ appProp: "slack",
18
+ async eventNames() {
19
+ return [
20
+ "channel_created",
21
+ ];
22
+ },
23
+ },
24
+ },
25
+ methods: {
26
+ ...common.methods,
27
+ getSummary({ channel: { name } }) {
28
+ return `New channel created - ${name}`;
29
+ },
30
+ },
31
+ sampleEmit,
32
+ };
@@ -0,0 +1,44 @@
1
+ export default {
2
+ "type": "channel_created",
3
+ "channel": {
4
+ "id": "C024BE91L",
5
+ "name": "fun",
6
+ "is_channel": true,
7
+ "is_group": false,
8
+ "is_im": false,
9
+ "is_mpim": false,
10
+ "is_private": false,
11
+ "created": 1360782804,
12
+ "is_archived": false,
13
+ "is_general": false,
14
+ "unlinked": 0,
15
+ "name_normalized": "fun",
16
+ "is_shared": false,
17
+ "is_frozen": false,
18
+ "is_org_shared": false,
19
+ "is_pending_ext_shared": false,
20
+ "pending_shared": [],
21
+ "context_team_id": "TLZ203R5",
22
+ "updated": 1714140253251,
23
+ "parent_conversation": null,
24
+ "creator": "U024BE7LH",
25
+ "is_ext_shared": false,
26
+ "shared_team_ids": [
27
+ "TLZ203R5"
28
+ ],
29
+ "pending_connected_team_ids": [],
30
+ "topic": {
31
+ "value": "",
32
+ "creator": "",
33
+ "last_set": 0
34
+ },
35
+ "purpose": {
36
+ "value": "",
37
+ "creator": "",
38
+ "last_set": 0
39
+ },
40
+ "previous_names": []
41
+ },
42
+ "event_ts": "1714140253.002700",
43
+ "pipedream_msg_id": "pd_1714140255038_bkbl3pxpkp"
44
+ }
@@ -4,7 +4,7 @@ export default {
4
4
  ...common,
5
5
  key: "slack-new-direct-message",
6
6
  name: "New Direct Message (Instant)",
7
- version: "1.0.12",
7
+ version: "1.0.13",
8
8
  description: "Emit new event when a message was posted in a direct message channel",
9
9
  type: "source",
10
10
  dedupe: "unique",
@@ -6,7 +6,7 @@ Slack messages can contain interactive elements like buttons, dropdowns, radio b
6
6
 
7
7
  Then this source will be triggered when you or another Slack user in your workspace clicks a button, selects an option or fills out a form.
8
8
 
9
- ![Example feed of interaction events coming from Slack]([screenshots/CleanShot_2022-11-10_at_10.19.152x.png](https://res.cloudinary.com/pipedreamin/image/upload/v1668443818/docs/components/CleanShot_2022-11-10_at_10.19.152x_eyiims.png))
9
+ ![Example feed of interaction events coming from Slack](https://res.cloudinary.com/pipedreamin/image/upload/v1668443818/docs/components/CleanShot_2022-11-10_at_10.19.152x_eyiims.png)
10
10
 
11
11
  With this trigger, you can build workflows that perform some work with other APIs or services, and then reply back to the original message.
12
12
 
@@ -16,7 +16,7 @@ With this trigger, you can build workflows that perform some work with other API
16
16
 
17
17
  What this short video to learn how to use this in a workflow, or follow the guide below.
18
18
 
19
- First, if you haven’t already - send yourself a message containing one or more interactive elements. Use the ******************Sending the message with an interactive element****************** guide below to send a messsage containing a button.
19
+ First, if you haven’t already - send yourself a message containing one or more interactive elements. Use the ******************Sending the message with an interactive element****************** guide below to send a message containing a button.
20
20
 
21
21
  If you have already sent a message containing an element, skip to **********************************************Configuring the source.**********************************************
22
22
 
@@ -54,7 +54,7 @@ Your ******************Slack - Send Message Using Block Kit****************** sh
54
54
 
55
55
  ## Configuring the source
56
56
 
57
- By default, this source will listen to ******all****** interactive events from your Slack workspace that your connected Slack account has authorization to view.
57
+ By default, this source will listen to ******all****** interactive events from your Slack workspace that your connected Slack account has authorization to view. Please note that only messages created via [Slack - Send Block Kit Message](https://pipedream.com/apps/slack/actions/send-block-kit-message) Action, or via API call from the Pipedream app will emit an interaction event with this trigger. Block kit messages sent directly via the Slack's block kit builder will not trigger an interaction event.
58
58
 
59
59
  You can filter these events by selecting a specific **************channel************** and/or a specific **********action_id.**********
60
60
 
@@ -72,12 +72,14 @@ For example, in the section above using the Block Kit to create a message, we de
72
72
 
73
73
  If you pass `button_click` as a required `action_id` to this source, then only interactivity events with the `action_id` of `"button_click"` will trigger this source.
74
74
 
75
- # Troubleshooting
75
+ ## Troubleshooting
76
76
 
77
- ## I’m clicking buttons, but no events are being received
77
+ ### I’m clicking buttons, but no events are being received
78
78
 
79
79
  Follow these steps to make sure your source is configured correctly:
80
80
 
81
81
  1. Make sure that your `action_id` or ****************channels**************** filters apply to that message, remove the filters to make sure that’s not the case.
82
82
 
83
83
  1. Make sure that the message comes from the same Slack account that this source is configured with.
84
+
85
+ 1. Make sure that the message was sent via Pipedream action (e.g. [Slack - Send Block Kit Message](https://pipedream.com/apps/slack/actions/send-block-kit-message) Action) or via API call from the Pipedream app.
@@ -2,18 +2,23 @@ import common from "../common/base.mjs";
2
2
 
3
3
  export default {
4
4
  name: "New Interaction Events",
5
- version: "0.0.9",
5
+ version: "0.0.11",
6
6
  key: "slack-new-interaction-event-received",
7
7
  description:
8
8
  "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",
10
10
  props: {
11
11
  ...common.props,
12
+ alert: {
13
+ type: "alert",
14
+ alertType: "info",
15
+ content: "Please note that only messages created via Pipedream's [Send Block Kit Message](https://pipedream.com/apps/slack/actions/send-block-kit-message) Action, or via API call from the Pipedream app will emit an interaction event with this trigger. \n\nBlock kit messages sent directly via the Slack's block kit builder will not trigger an interaction event. \n\nSee the [documentation](https://pipedream.com/apps/slack/triggers/new-interaction-event-received) for more details.",
16
+ },
12
17
  action_ids: {
13
18
  type: "string[]",
14
19
  label: "Action IDs",
15
20
  description:
16
- "Filter interaction events by specific `action_id`'s to subscribe for new interaction events. If none selected, all `action_ids` will emit new events.",
21
+ "Filter interaction events by specific `action_id`'s to subscribe for new interaction events. If none are specified, all `action_ids` created via Pipedream will emit new events.",
17
22
  optional: true,
18
23
  default: [],
19
24
  },
@@ -5,7 +5,7 @@ export default {
5
5
  ...common,
6
6
  key: "slack-new-mention",
7
7
  name: "New Mention (Instant)",
8
- version: "1.0.15",
8
+ version: "1.0.16",
9
9
  description: "Emit new event when a username or specific keyword is mentioned in a channel",
10
10
  type: "source",
11
11
  dedupe: "unique",
@@ -1,12 +1,12 @@
1
1
  import common from "../common/base.mjs";
2
- import sampleEmit from "./test-event.mjs";
3
2
  import constants from "../common/constants.mjs";
3
+ import sampleEmit from "./test-event.mjs";
4
4
 
5
5
  export default {
6
6
  ...common,
7
7
  key: "slack-new-message-in-channels",
8
8
  name: "New Message In Channels (Instant)",
9
- version: "1.0.14",
9
+ version: "1.0.15",
10
10
  description: "Emit new event when a new message is posted to one or more channels",
11
11
  type: "source",
12
12
  dedupe: "unique",
@@ -4,7 +4,7 @@ export default {
4
4
  ...common,
5
5
  key: "slack-new-reaction-added",
6
6
  name: "New Reaction Added (Instant)",
7
- version: "1.1.16",
7
+ version: "1.1.17",
8
8
  description: "Emit new event when a member has added an emoji reaction to a message",
9
9
  type: "source",
10
10
  dedupe: "unique",
@@ -5,7 +5,7 @@ export default {
5
5
  ...common,
6
6
  key: "slack-new-star-added",
7
7
  name: "New Star Added (Instant)",
8
- version: "0.0.17",
8
+ version: "0.0.18",
9
9
  description: "Emit new event when a star is added to an item",
10
10
  type: "source",
11
11
  dedupe: "unique",