@bubblelab/shared-schemas 0.1.125 → 0.1.127
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/capability-schema.d.ts +1 -1
- package/dist/capability-schema.d.ts.map +1 -1
- package/dist/index.js +60 -2
- package/dist/index.js.map +1 -1
- package/dist/trigger.d.ts +19 -0
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { CredentialType, type BubbleName } from './types.js';
|
|
|
4
4
|
* String literal union of all known capability IDs.
|
|
5
5
|
* Runtime validation stays permissive (any non-empty string); TypeScript narrows.
|
|
6
6
|
*/
|
|
7
|
-
export type CapabilityId = 'knowledge-base' | 'google-doc-knowledge-base' | 'data-analyst';
|
|
7
|
+
export type CapabilityId = 'knowledge-base' | 'google-doc-knowledge-base' | 'data-analyst' | 'google-calendar' | 'gmail-assistant';
|
|
8
8
|
/**
|
|
9
9
|
* Schema for a provider entry in a capability's metadata.
|
|
10
10
|
* Used by the wizard to render a data-driven "Choose Providers" step.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-schema.d.ts","sourceRoot":"","sources":["../src/capability-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,2BAA2B,GAC3B,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"capability-schema.d.ts","sourceRoot":"","sources":["../src/capability-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,gBAAgB,GAChB,2BAA2B,GAC3B,cAAc,GACd,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB;;;GAGG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAShC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;IAIlC,+GAA+G;;;;;;;;;;;;EAE/G,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;QACV,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAtBhD,+GAA+G;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC/G;;;;OAIG;;IAEH,kFAAkF;;IAElF,2EAA2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3E,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4404,6 +4404,7 @@ Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
|
|
|
4404
4404
|
- \`im:history\` - To read direct messages
|
|
4405
4405
|
- \`mpim:history\` - To read group direct messages
|
|
4406
4406
|
- \`chat:write\` - To send messages
|
|
4407
|
+
- \`users:read\` - To look up user names and timezones
|
|
4407
4408
|
|
|
4408
4409
|
### 3. Enable Event Subscriptions
|
|
4409
4410
|
1. Go to **Event Subscriptions**
|
|
@@ -4481,6 +4482,34 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4481
4482
|
}
|
|
4482
4483
|
}
|
|
4483
4484
|
},
|
|
4485
|
+
thread_histories: {
|
|
4486
|
+
type: "array",
|
|
4487
|
+
description: "Thread history messages including current message for non-threaded events",
|
|
4488
|
+
items: {
|
|
4489
|
+
type: "object",
|
|
4490
|
+
properties: {
|
|
4491
|
+
user_id: {
|
|
4492
|
+
type: "string",
|
|
4493
|
+
description: "Slack user ID or bot ID"
|
|
4494
|
+
},
|
|
4495
|
+
name: {
|
|
4496
|
+
type: "string",
|
|
4497
|
+
description: "User display name (best effort)"
|
|
4498
|
+
},
|
|
4499
|
+
timezone: {
|
|
4500
|
+
type: ["string", "null"],
|
|
4501
|
+
description: "User timezone (best effort)"
|
|
4502
|
+
},
|
|
4503
|
+
message: { type: "string", description: "Message text" },
|
|
4504
|
+
image_url_private_downloads: {
|
|
4505
|
+
type: "array",
|
|
4506
|
+
description: "Private download URLs for images attached to the message",
|
|
4507
|
+
items: { type: "string" }
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
required: ["user_id", "name", "timezone", "message"]
|
|
4511
|
+
}
|
|
4512
|
+
},
|
|
4484
4513
|
slack_event: {
|
|
4485
4514
|
type: "object",
|
|
4486
4515
|
description: "Full Slack event wrapper",
|
|
@@ -4562,7 +4591,7 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4562
4591
|
]
|
|
4563
4592
|
}
|
|
4564
4593
|
},
|
|
4565
|
-
required: ["text", "channel", "user", "slack_event"]
|
|
4594
|
+
required: ["text", "channel", "user", "thread_histories", "slack_event"]
|
|
4566
4595
|
}
|
|
4567
4596
|
},
|
|
4568
4597
|
"slack/bot_mentioned": {
|
|
@@ -4581,6 +4610,7 @@ Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
|
|
|
4581
4610
|
- \`app_mentions:read\` - To receive mention events
|
|
4582
4611
|
- \`chat:write\` - To send messages
|
|
4583
4612
|
- \`channels:history\` - To read channel messages (optional)
|
|
4613
|
+
- \`users:read\` - To look up user names and timezones
|
|
4584
4614
|
|
|
4585
4615
|
### 3. Enable Event Subscriptions
|
|
4586
4616
|
1. Go to **Event Subscriptions**
|
|
@@ -4661,6 +4691,34 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4661
4691
|
}
|
|
4662
4692
|
}
|
|
4663
4693
|
},
|
|
4694
|
+
thread_histories: {
|
|
4695
|
+
type: "array",
|
|
4696
|
+
description: "Thread history messages including current message for non-threaded events",
|
|
4697
|
+
items: {
|
|
4698
|
+
type: "object",
|
|
4699
|
+
properties: {
|
|
4700
|
+
user_id: {
|
|
4701
|
+
type: "string",
|
|
4702
|
+
description: "Slack user ID or bot ID"
|
|
4703
|
+
},
|
|
4704
|
+
name: {
|
|
4705
|
+
type: "string",
|
|
4706
|
+
description: "User display name (best effort)"
|
|
4707
|
+
},
|
|
4708
|
+
timezone: {
|
|
4709
|
+
type: ["string", "null"],
|
|
4710
|
+
description: "User timezone (best effort)"
|
|
4711
|
+
},
|
|
4712
|
+
message: { type: "string", description: "Message text" },
|
|
4713
|
+
image_url_private_downloads: {
|
|
4714
|
+
type: "array",
|
|
4715
|
+
description: "Private download URLs for images attached to the message",
|
|
4716
|
+
items: { type: "string" }
|
|
4717
|
+
}
|
|
4718
|
+
},
|
|
4719
|
+
required: ["user_id", "name", "timezone", "message"]
|
|
4720
|
+
}
|
|
4721
|
+
},
|
|
4664
4722
|
slack_event: {
|
|
4665
4723
|
type: "object",
|
|
4666
4724
|
description: "Full Slack event wrapper",
|
|
@@ -4732,7 +4790,7 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4732
4790
|
]
|
|
4733
4791
|
}
|
|
4734
4792
|
},
|
|
4735
|
-
required: ["text", "channel", "user", "slack_event"]
|
|
4793
|
+
required: ["text", "channel", "user", "thread_histories", "slack_event"]
|
|
4736
4794
|
}
|
|
4737
4795
|
},
|
|
4738
4796
|
"airtable/record_created": {
|