@bubblelab/shared-schemas 0.1.282 → 0.1.284
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/dist/index.js +3 -87
- package/dist/index.js.map +1 -1
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5645,36 +5645,7 @@ var TRIGGER_EVENT_CONFIGS = {
|
|
|
5645
5645
|
description: "Triggered when a message is posted in a channel your bot has access to",
|
|
5646
5646
|
requiredCredentialType: "SLACK_CRED",
|
|
5647
5647
|
requiredConfigFields: ["slack_active_channels"],
|
|
5648
|
-
setupGuide:
|
|
5649
|
-
|
|
5650
|
-
### 1. Create a Slack App
|
|
5651
|
-
1. Go to [Slack API Apps](https://api.slack.com/apps)
|
|
5652
|
-
2. Click "Create New App" \u2192 "From scratch"
|
|
5653
|
-
3. Name your app and select your workspace
|
|
5654
|
-
|
|
5655
|
-
### 2. Configure OAuth Scopes
|
|
5656
|
-
Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
|
|
5657
|
-
- \`channels:history\` - To read messages in public channels
|
|
5658
|
-
- \`groups:history\` - To read messages in private channels
|
|
5659
|
-
- \`im:history\` - To read direct messages
|
|
5660
|
-
- \`mpim:history\` - To read group direct messages
|
|
5661
|
-
- \`chat:write\` - To send messages
|
|
5662
|
-
- \`users:read\` - To look up user names and timezones
|
|
5663
|
-
|
|
5664
|
-
### 3. Enable Event Subscriptions
|
|
5665
|
-
1. Go to **Event Subscriptions**
|
|
5666
|
-
2. Toggle "Enable Events" to ON
|
|
5667
|
-
3. Toggle the webhook active button above and copy the webhook URL
|
|
5668
|
-
4. Add your webhook URL to the Request URL field
|
|
5669
|
-
5. Subscribe to bot events: \`message.channels\`, \`message.groups\`, \`message.im\`, \`message.mpim\`
|
|
5670
|
-
|
|
5671
|
-
### 4. Install to Workspace
|
|
5672
|
-
1. Go to **Install App**
|
|
5673
|
-
2. Click "Install to Workspace"
|
|
5674
|
-
3. Authorize the requested permissions
|
|
5675
|
-
|
|
5676
|
-
### 5. Get Your Bot Token
|
|
5677
|
-
Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permissions page.`,
|
|
5648
|
+
setupGuide: `Wire a SLACK_CRED via set-credentials (with triggerCredentialId). Use configure-flow to set defaultInputs.slack_active_channels for channel filtering. No manual Slack app or event subscription setup needed \u2014 OAuth handles everything.`,
|
|
5678
5649
|
payloadSchema: {
|
|
5679
5650
|
type: "object",
|
|
5680
5651
|
properties: {
|
|
@@ -5855,34 +5826,7 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
5855
5826
|
description: "Triggered when someone mentions your bot in a Slack channel",
|
|
5856
5827
|
requiredCredentialType: "SLACK_CRED",
|
|
5857
5828
|
requiredConfigFields: ["slack_active_channels"],
|
|
5858
|
-
setupGuide:
|
|
5859
|
-
|
|
5860
|
-
### 1. Create a Slack App
|
|
5861
|
-
1. Go to [Slack API Apps](https://api.slack.com/apps)
|
|
5862
|
-
2. Click "Create New App" \u2192 "From scratch"
|
|
5863
|
-
3. Name your app and select your workspace
|
|
5864
|
-
|
|
5865
|
-
### 2. Configure OAuth Scopes
|
|
5866
|
-
Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
|
|
5867
|
-
- \`app_mentions:read\` - To receive mention events
|
|
5868
|
-
- \`chat:write\` - To send messages
|
|
5869
|
-
- \`channels:history\` - To read channel messages (optional)
|
|
5870
|
-
- \`users:read\` - To look up user names and timezones
|
|
5871
|
-
|
|
5872
|
-
### 3. Enable Event Subscriptions
|
|
5873
|
-
1. Go to **Event Subscriptions**
|
|
5874
|
-
2. Toggle "Enable Events" to ON
|
|
5875
|
-
3. Toggle the webhook active button above and copy the webhook URL
|
|
5876
|
-
4. Add your webhook URL to the Request URL field
|
|
5877
|
-
5. Subscribe to bot events: \`app_mention\`
|
|
5878
|
-
|
|
5879
|
-
### 4. Install to Workspace
|
|
5880
|
-
1. Go to **Install App**
|
|
5881
|
-
2. Click "Install to Workspace"
|
|
5882
|
-
3. Authorize the requested permissions
|
|
5883
|
-
|
|
5884
|
-
### 5. Get Your Bot Token
|
|
5885
|
-
Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permissions page.`,
|
|
5829
|
+
setupGuide: `Wire a SLACK_CRED via set-credentials (with triggerCredentialId). Use configure-flow to set defaultInputs.slack_active_channels for channel filtering. No manual Slack app or event subscription setup needed \u2014 OAuth handles everything.`,
|
|
5886
5830
|
payloadSchema: {
|
|
5887
5831
|
type: "object",
|
|
5888
5832
|
properties: {
|
|
@@ -6056,35 +6000,7 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
6056
6000
|
description: "Triggered when a user adds an emoji reaction to a message in a Slack channel",
|
|
6057
6001
|
requiredCredentialType: "SLACK_CRED",
|
|
6058
6002
|
requiredConfigFields: ["slack_active_channels"],
|
|
6059
|
-
setupGuide:
|
|
6060
|
-
|
|
6061
|
-
### 1. Create a Slack App
|
|
6062
|
-
1. Go to [Slack API Apps](https://api.slack.com/apps)
|
|
6063
|
-
2. Click "Create New App" \u2192 "From scratch"
|
|
6064
|
-
3. Name your app and select your workspace
|
|
6065
|
-
|
|
6066
|
-
### 2. Configure OAuth Scopes
|
|
6067
|
-
Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
|
|
6068
|
-
- \`reactions:read\` - To receive reaction events
|
|
6069
|
-
- \`channels:history\` - To fetch the reacted message text
|
|
6070
|
-
- \`groups:history\` - To fetch messages in private channels
|
|
6071
|
-
- \`chat:write\` - To send messages
|
|
6072
|
-
- \`users:read\` - To look up user names
|
|
6073
|
-
|
|
6074
|
-
### 3. Enable Event Subscriptions
|
|
6075
|
-
1. Go to **Event Subscriptions**
|
|
6076
|
-
2. Toggle "Enable Events" to ON
|
|
6077
|
-
3. Toggle the webhook active button above and copy the webhook URL
|
|
6078
|
-
4. Add your webhook URL to the Request URL field
|
|
6079
|
-
5. Subscribe to bot events: \`reaction_added\`
|
|
6080
|
-
|
|
6081
|
-
### 4. Install to Workspace
|
|
6082
|
-
1. Go to **Install App**
|
|
6083
|
-
2. Click "Install to Workspace"
|
|
6084
|
-
3. Authorize the requested permissions
|
|
6085
|
-
|
|
6086
|
-
### 5. Get Your Bot Token
|
|
6087
|
-
Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permissions page.`,
|
|
6003
|
+
setupGuide: `Wire a SLACK_CRED via set-credentials (with triggerCredentialId). Use configure-flow to set defaultInputs.slack_active_channels for channel filtering. No manual Slack app or event subscription setup needed \u2014 OAuth handles everything.`,
|
|
6088
6004
|
payloadSchema: {
|
|
6089
6005
|
type: "object",
|
|
6090
6006
|
properties: {
|