@bubblelab/shared-schemas 0.1.179 → 0.1.181
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/ai-models.d.ts +1 -1
- package/dist/ai-models.d.ts.map +1 -1
- package/dist/capability-schema.d.ts +21 -1
- package/dist/capability-schema.d.ts.map +1 -1
- package/dist/credential-schema.d.ts +12 -0
- package/dist/credential-schema.d.ts.map +1 -1
- package/dist/execution-meta.d.ts +44 -0
- package/dist/execution-meta.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +87 -8
- package/dist/index.js.map +1 -1
- package/dist/milk-tea.d.ts +3 -3
- package/dist/pearl.d.ts +3 -3
- package/dist/rice.d.ts +3 -3
- package/dist/trigger.d.ts +20 -0
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ai-models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
|
|
2
|
+
export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-sonnet-4-6", "anthropic/claude-opus-4-5", "anthropic/claude-opus-4-6", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-sonnet-4.6", "openrouter/anthropic/claude-opus-4.5", "openrouter/anthropic/claude-opus-4.6", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
|
|
3
3
|
export type AvailableModel = z.infer<typeof AvailableModels>;
|
|
4
4
|
//# sourceMappingURL=ai-models.d.ts.map
|
package/dist/ai-models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,44BAiC1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -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' | 'chart-maker' | 'gmail-assistant' | 'google-calendar' | 'jira-assistant' | 'notion-assistant' | 'stripe-assistant' | 'airtable-assistant' | 'github-assistant' | 'ashby-assistant' | 'google-sheets-assistant' | 'slack-assistant' | 'google-drive-assistant' | 'confluence-assistant' | 'telegram-assistant' | 'resend-assistant' | 'eleven-labs-assistant' | 'firecrawl-assistant' | 'apify-assistant' | 'browserbase-assistant' | 'crustdata-assistant' | 'fullenrich-assistant' | 'followupboss-assistant' | 'posthog-assistant' | 'linear-assistant' | 'attio-assistant' | 'hubspot-assistant';
|
|
7
|
+
export type CapabilityId = 'knowledge-base' | 'google-doc-knowledge-base' | 'data-analyst' | 'chart-maker' | 'gmail-assistant' | 'google-calendar' | 'jira-assistant' | 'notion-assistant' | 'stripe-assistant' | 'airtable-assistant' | 'github-assistant' | 'ashby-assistant' | 'google-sheets-assistant' | 'slack-assistant' | 'google-drive-assistant' | 'confluence-assistant' | 'telegram-assistant' | 'resend-assistant' | 'eleven-labs-assistant' | 'firecrawl-assistant' | 'apify-assistant' | 'browserbase-assistant' | 'crustdata-assistant' | 'fullenrich-assistant' | 'followupboss-assistant' | 'posthog-assistant' | 'linear-assistant' | 'attio-assistant' | 'hubspot-assistant' | 'flow-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.
|
|
@@ -63,16 +63,24 @@ export declare const CapabilityToolDefSchema: z.ZodObject<{
|
|
|
63
63
|
parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
64
64
|
/** Bubble names used internally by this tool (e.g., ['google-drive']). Used for dependency graph hierarchy. */
|
|
65
65
|
internalBubbles: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>;
|
|
66
|
+
/** Whether this tool requires human approval before execution. */
|
|
67
|
+
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
/** Expose this tool directly on the master agent in multi-capability delegation mode. */
|
|
69
|
+
masterTool: z.ZodOptional<z.ZodBoolean>;
|
|
66
70
|
}, "strip", z.ZodTypeAny, {
|
|
67
71
|
name: string;
|
|
68
72
|
description: string;
|
|
69
73
|
parameterSchema: Record<string, unknown>;
|
|
70
74
|
internalBubbles?: BubbleName[] | undefined;
|
|
75
|
+
requiresApproval?: boolean | undefined;
|
|
76
|
+
masterTool?: boolean | undefined;
|
|
71
77
|
}, {
|
|
72
78
|
name: string;
|
|
73
79
|
description: string;
|
|
74
80
|
parameterSchema: Record<string, unknown>;
|
|
75
81
|
internalBubbles?: BubbleName[] | undefined;
|
|
82
|
+
requiresApproval?: boolean | undefined;
|
|
83
|
+
masterTool?: boolean | undefined;
|
|
76
84
|
}>;
|
|
77
85
|
export type CapabilityToolDef = z.infer<typeof CapabilityToolDefSchema>;
|
|
78
86
|
/**
|
|
@@ -136,16 +144,24 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
136
144
|
parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
137
145
|
/** Bubble names used internally by this tool (e.g., ['google-drive']). Used for dependency graph hierarchy. */
|
|
138
146
|
internalBubbles: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>;
|
|
147
|
+
/** Whether this tool requires human approval before execution. */
|
|
148
|
+
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
/** Expose this tool directly on the master agent in multi-capability delegation mode. */
|
|
150
|
+
masterTool: z.ZodOptional<z.ZodBoolean>;
|
|
139
151
|
}, "strip", z.ZodTypeAny, {
|
|
140
152
|
name: string;
|
|
141
153
|
description: string;
|
|
142
154
|
parameterSchema: Record<string, unknown>;
|
|
143
155
|
internalBubbles?: BubbleName[] | undefined;
|
|
156
|
+
requiresApproval?: boolean | undefined;
|
|
157
|
+
masterTool?: boolean | undefined;
|
|
144
158
|
}, {
|
|
145
159
|
name: string;
|
|
146
160
|
description: string;
|
|
147
161
|
parameterSchema: Record<string, unknown>;
|
|
148
162
|
internalBubbles?: BubbleName[] | undefined;
|
|
163
|
+
requiresApproval?: boolean | undefined;
|
|
164
|
+
masterTool?: boolean | undefined;
|
|
149
165
|
}>, "many">;
|
|
150
166
|
systemPromptAddition: z.ZodOptional<z.ZodString>;
|
|
151
167
|
modelConfigOverride: z.ZodOptional<z.ZodObject<{
|
|
@@ -197,6 +213,8 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
197
213
|
description: string;
|
|
198
214
|
parameterSchema: Record<string, unknown>;
|
|
199
215
|
internalBubbles?: BubbleName[] | undefined;
|
|
216
|
+
requiresApproval?: boolean | undefined;
|
|
217
|
+
masterTool?: boolean | undefined;
|
|
200
218
|
}[];
|
|
201
219
|
id: CapabilityId;
|
|
202
220
|
requiredCredentials: CredentialType[];
|
|
@@ -235,6 +253,8 @@ export declare const CapabilityMetadataSchema: z.ZodObject<{
|
|
|
235
253
|
description: string;
|
|
236
254
|
parameterSchema: Record<string, unknown>;
|
|
237
255
|
internalBubbles?: BubbleName[] | undefined;
|
|
256
|
+
requiresApproval?: boolean | undefined;
|
|
257
|
+
masterTool?: boolean | undefined;
|
|
238
258
|
}[];
|
|
239
259
|
id: CapabilityId;
|
|
240
260
|
requiredCredentials: CredentialType[];
|
|
@@ -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,GACd,aAAa,GACb,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,yBAAyB,GACzB,iBAAiB,GACjB,wBAAwB,GACxB,sBAAsB,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,sBAAsB,GACtB,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,mBAAmB,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,aAAa,GACb,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,yBAAyB,GACzB,iBAAiB,GACjB,wBAAwB,GACxB,sBAAsB,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,uBAAuB,GACvB,qBAAqB,GACrB,sBAAsB,GACtB,wBAAwB,GACxB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,CAAC;AAErB;;;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;;IAE/G,kEAAkE;;IAElE,yFAAyF;;;;;;;;;;;;;;;;EAEzF,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;EAK9C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA3BhD,+GAA+G;;QAE/G,kEAAkE;;QAElE,yFAAyF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmCzF;;;;OAIG;;IAEH,kFAAkF;;IAElF,2EAA2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3E,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -178,6 +178,18 @@ export declare const BROWSERBASE_OPTIONAL_CREDENTIALS: CredentialType[];
|
|
|
178
178
|
* Collection of credential options for all bubbles
|
|
179
179
|
*/
|
|
180
180
|
export declare const BUBBLE_CREDENTIAL_OPTIONS: Record<BubbleName, BubbleCredentialOption>;
|
|
181
|
+
export interface CredentialSiblingEntry {
|
|
182
|
+
oauthType: CredentialType;
|
|
183
|
+
apiType: CredentialType;
|
|
184
|
+
canonicalType: CredentialType;
|
|
185
|
+
}
|
|
186
|
+
/** Auto-derived sibling map: for OAuth-provider bubbles with exactly 2 cred types
|
|
187
|
+
* (one OAuth + one API key), maps both types to their sibling pair. */
|
|
188
|
+
export declare const CREDENTIAL_TYPE_SIBLINGS: Partial<Record<CredentialType, CredentialSiblingEntry>>;
|
|
189
|
+
/** Get all sibling types for a credential (both OAuth and API), or just itself if no siblings. */
|
|
190
|
+
export declare function getSiblingCredentialTypes(credType: CredentialType): CredentialType[];
|
|
191
|
+
/** Collapse sibling types to canonical (OAuth) type. */
|
|
192
|
+
export declare function getCanonicalCredentialType(credType: CredentialType): CredentialType;
|
|
181
193
|
export declare const createCredentialSchema: z.ZodObject<{
|
|
182
194
|
credentialType: z.ZodNativeEnum<typeof CredentialType>;
|
|
183
195
|
value: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-schema.d.ts","sourceRoot":"","sources":["../src/credential-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAetC;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;CAC5C;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,e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D,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ZodTypeAny } from 'zod';
|
|
2
|
+
export interface PendingApproval {
|
|
3
|
+
id: string;
|
|
4
|
+
action: string;
|
|
5
|
+
targetFlowId: number;
|
|
6
|
+
expiresAt: number;
|
|
7
|
+
/** Display enrichments (optional, for richer approval messages) */
|
|
8
|
+
targetFlowName?: string;
|
|
9
|
+
aiReasoning?: string;
|
|
10
|
+
toolInputSummary?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MemoryToolDef {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
schema: ZodTypeAny;
|
|
16
|
+
func: (input: Record<string, unknown>) => Promise<string>;
|
|
17
|
+
}
|
|
18
|
+
export interface ExecutionMeta {
|
|
19
|
+
flowId?: number;
|
|
20
|
+
executionId?: number;
|
|
21
|
+
studioBaseUrl?: string;
|
|
22
|
+
_thinkingMessageTs?: string;
|
|
23
|
+
_thinkingMessageChannel?: string;
|
|
24
|
+
_slackChannel?: string;
|
|
25
|
+
_slackThreadTs?: string;
|
|
26
|
+
_slackTriggerCredentialId?: number;
|
|
27
|
+
_isSlackBot?: boolean;
|
|
28
|
+
_originalTriggerPayload?: Record<string, unknown>;
|
|
29
|
+
_resumeAgentState?: Array<Record<string, unknown>>;
|
|
30
|
+
_pendingApproval?: PendingApproval;
|
|
31
|
+
triggerConversationHistory?: Array<{
|
|
32
|
+
role: string;
|
|
33
|
+
content: string;
|
|
34
|
+
}>;
|
|
35
|
+
memoryTools?: MemoryToolDef[];
|
|
36
|
+
memorySystemPrompt?: string;
|
|
37
|
+
memoryCallLLMInit?: (callLLM: (prompt: string) => Promise<string>) => void;
|
|
38
|
+
memoryReflectionCallback?: (messages: Array<{
|
|
39
|
+
role: string;
|
|
40
|
+
content: string;
|
|
41
|
+
}>) => Promise<void>;
|
|
42
|
+
[key: string]: unknown;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=execution-meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-meta.d.ts","sourceRoot":"","sources":["../src/execution-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,aAAa;IAE5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;I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AAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -924,8 +924,12 @@ var OAUTH_PROVIDERS = {
|
|
|
924
924
|
"groups:read",
|
|
925
925
|
"im:read",
|
|
926
926
|
"mpim:read",
|
|
927
|
-
// Channels & Conversations - Write
|
|
927
|
+
// Channels & Conversations - Write
|
|
928
928
|
"channels:join",
|
|
929
|
+
"im:write",
|
|
930
|
+
"im:write.topic",
|
|
931
|
+
"mpim:write",
|
|
932
|
+
"mpim:write.topic",
|
|
929
933
|
// Users & Team (read-only)
|
|
930
934
|
"users:read",
|
|
931
935
|
"users:read.email",
|
|
@@ -960,11 +964,6 @@ var OAUTH_PROVIDERS = {
|
|
|
960
964
|
"groups:write",
|
|
961
965
|
"groups:write.invites",
|
|
962
966
|
"groups:write.topic",
|
|
963
|
-
// DM management (requires admin)
|
|
964
|
-
"im:write",
|
|
965
|
-
"im:write.topic",
|
|
966
|
-
"mpim:write",
|
|
967
|
-
"mpim:write.topic",
|
|
968
967
|
// User management (requires admin)
|
|
969
968
|
"users:write",
|
|
970
969
|
"usergroups:write",
|
|
@@ -1811,6 +1810,33 @@ var BUBBLE_CREDENTIAL_OPTIONS = {
|
|
|
1811
1810
|
attio: ["ATTIO_CRED" /* ATTIO_CRED */],
|
|
1812
1811
|
hubspot: ["HUBSPOT_CRED" /* HUBSPOT_CRED */]
|
|
1813
1812
|
};
|
|
1813
|
+
var CREDENTIAL_TYPE_SIBLINGS = (() => {
|
|
1814
|
+
const oauthProviderNames = new Set(Object.keys(OAUTH_PROVIDERS));
|
|
1815
|
+
const map = {};
|
|
1816
|
+
for (const [bubbleName, credTypes] of Object.entries(
|
|
1817
|
+
BUBBLE_CREDENTIAL_OPTIONS
|
|
1818
|
+
)) {
|
|
1819
|
+
if (!oauthProviderNames.has(bubbleName) || credTypes.length !== 2) continue;
|
|
1820
|
+
const oauthType = credTypes.find((ct) => isOAuthCredential(ct));
|
|
1821
|
+
const apiType = credTypes.find((ct) => !isOAuthCredential(ct));
|
|
1822
|
+
if (!oauthType || !apiType) continue;
|
|
1823
|
+
const entry = {
|
|
1824
|
+
oauthType,
|
|
1825
|
+
apiType,
|
|
1826
|
+
canonicalType: oauthType
|
|
1827
|
+
};
|
|
1828
|
+
map[oauthType] = entry;
|
|
1829
|
+
map[apiType] = entry;
|
|
1830
|
+
}
|
|
1831
|
+
return map;
|
|
1832
|
+
})();
|
|
1833
|
+
function getSiblingCredentialTypes(credType) {
|
|
1834
|
+
const sibling = CREDENTIAL_TYPE_SIBLINGS[credType];
|
|
1835
|
+
return sibling ? [sibling.oauthType, sibling.apiType] : [credType];
|
|
1836
|
+
}
|
|
1837
|
+
function getCanonicalCredentialType(credType) {
|
|
1838
|
+
return CREDENTIAL_TYPE_SIBLINGS[credType]?.canonicalType || credType;
|
|
1839
|
+
}
|
|
1814
1840
|
var createCredentialSchema = z3.object({
|
|
1815
1841
|
credentialType: z3.nativeEnum(CredentialType).openapi({
|
|
1816
1842
|
description: "Type of credential to store",
|
|
@@ -4359,6 +4385,7 @@ var AvailableModels = z15.enum([
|
|
|
4359
4385
|
"openrouter/z-ai/glm-4.6",
|
|
4360
4386
|
"openrouter/z-ai/glm-4.7",
|
|
4361
4387
|
"openrouter/anthropic/claude-sonnet-4.5",
|
|
4388
|
+
"openrouter/anthropic/claude-sonnet-4.6",
|
|
4362
4389
|
"openrouter/anthropic/claude-opus-4.5",
|
|
4363
4390
|
"openrouter/anthropic/claude-opus-4.6",
|
|
4364
4391
|
"openrouter/google/gemini-3-pro-preview",
|
|
@@ -4699,6 +4726,7 @@ var BUBBLE_TRIGGER_EVENTS = {
|
|
|
4699
4726
|
"slack/bot_mentioned": true,
|
|
4700
4727
|
"slack/message_received": true,
|
|
4701
4728
|
"slack/reaction_added": true,
|
|
4729
|
+
"slack/approval_resumed": true,
|
|
4702
4730
|
"airtable/record_created": true,
|
|
4703
4731
|
"airtable/record_updated": true,
|
|
4704
4732
|
"airtable/record_deleted": true,
|
|
@@ -5276,6 +5304,49 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
5276
5304
|
required: ["reaction", "user", "item", "slack_event"]
|
|
5277
5305
|
}
|
|
5278
5306
|
},
|
|
5307
|
+
"slack/approval_resumed": {
|
|
5308
|
+
serviceName: "Slack",
|
|
5309
|
+
friendlyName: "When approval is granted",
|
|
5310
|
+
description: "Triggered internally when a human approves a pending flow action via Slack approval buttons",
|
|
5311
|
+
setupGuide: 'This trigger is used internally by the approval system. It fires automatically when a user clicks "Approve" on an approval request in Slack.',
|
|
5312
|
+
payloadSchema: {
|
|
5313
|
+
type: "object",
|
|
5314
|
+
properties: {
|
|
5315
|
+
approvalId: {
|
|
5316
|
+
type: "string",
|
|
5317
|
+
description: "The approval record ID"
|
|
5318
|
+
},
|
|
5319
|
+
action: {
|
|
5320
|
+
type: "string",
|
|
5321
|
+
description: "The action that was approved (e.g. run-flow, activate-flow)"
|
|
5322
|
+
},
|
|
5323
|
+
targetFlowId: {
|
|
5324
|
+
type: "number",
|
|
5325
|
+
description: "The target flow ID"
|
|
5326
|
+
},
|
|
5327
|
+
channel: {
|
|
5328
|
+
type: "string",
|
|
5329
|
+
description: "Slack channel of the approval thread"
|
|
5330
|
+
},
|
|
5331
|
+
threadTs: {
|
|
5332
|
+
type: "string",
|
|
5333
|
+
description: "Slack thread timestamp"
|
|
5334
|
+
},
|
|
5335
|
+
approvedBy: {
|
|
5336
|
+
type: "string",
|
|
5337
|
+
description: "User who approved the action"
|
|
5338
|
+
}
|
|
5339
|
+
},
|
|
5340
|
+
required: [
|
|
5341
|
+
"approvalId",
|
|
5342
|
+
"action",
|
|
5343
|
+
"targetFlowId",
|
|
5344
|
+
"channel",
|
|
5345
|
+
"threadTs",
|
|
5346
|
+
"approvedBy"
|
|
5347
|
+
]
|
|
5348
|
+
}
|
|
5349
|
+
},
|
|
5279
5350
|
"airtable/record_created": {
|
|
5280
5351
|
serviceName: "Airtable",
|
|
5281
5352
|
friendlyName: "When Airtable record is created",
|
|
@@ -5485,12 +5556,13 @@ function getTriggerEventConfig(eventType) {
|
|
|
5485
5556
|
return TRIGGER_EVENT_CONFIGS[eventType];
|
|
5486
5557
|
}
|
|
5487
5558
|
function isServiceTrigger(eventType) {
|
|
5488
|
-
return eventType !== "webhook/http" && eventType !== "schedule/cron";
|
|
5559
|
+
return eventType !== "webhook/http" && eventType !== "schedule/cron" && eventType !== "slack/approval_resumed";
|
|
5489
5560
|
}
|
|
5490
5561
|
var TRIGGER_EVENT_INTERFACE_MAP = {
|
|
5491
5562
|
SlackMentionEvent: "slack/bot_mentioned",
|
|
5492
5563
|
SlackMessageReceivedEvent: "slack/message_received",
|
|
5493
5564
|
SlackReactionAddedEvent: "slack/reaction_added",
|
|
5565
|
+
SlackApprovalResumedEvent: "slack/approval_resumed",
|
|
5494
5566
|
AirtableRecordCreatedEvent: "airtable/record_created",
|
|
5495
5567
|
AirtableRecordUpdatedEvent: "airtable/record_updated",
|
|
5496
5568
|
AirtableRecordDeletedEvent: "airtable/record_deleted",
|
|
@@ -5928,7 +6000,11 @@ var CapabilityToolDefSchema = z20.object({
|
|
|
5928
6000
|
description: z20.string().min(1),
|
|
5929
6001
|
parameterSchema: z20.record(z20.string(), z20.unknown()),
|
|
5930
6002
|
/** Bubble names used internally by this tool (e.g., ['google-drive']). Used for dependency graph hierarchy. */
|
|
5931
|
-
internalBubbles: z20.array(z20.string()).optional()
|
|
6003
|
+
internalBubbles: z20.array(z20.string()).optional(),
|
|
6004
|
+
/** Whether this tool requires human approval before execution. */
|
|
6005
|
+
requiresApproval: z20.boolean().optional(),
|
|
6006
|
+
/** Expose this tool directly on the master agent in multi-capability delegation mode. */
|
|
6007
|
+
masterTool: z20.boolean().optional()
|
|
5932
6008
|
});
|
|
5933
6009
|
var CapabilityModelConfigOverrideSchema = z20.object({
|
|
5934
6010
|
model: z20.string().optional(),
|
|
@@ -5983,6 +6059,7 @@ export {
|
|
|
5983
6059
|
CREDENTIAL_CONFIGURATION_MAP,
|
|
5984
6060
|
CREDENTIAL_ENV_MAP,
|
|
5985
6061
|
CREDENTIAL_TYPE_CONFIG,
|
|
6062
|
+
CREDENTIAL_TYPE_SIBLINGS,
|
|
5986
6063
|
CapabilityInputSchema,
|
|
5987
6064
|
CapabilityMetadataSchema,
|
|
5988
6065
|
CapabilityModelConfigOverrideSchema,
|
|
@@ -6102,10 +6179,12 @@ export {
|
|
|
6102
6179
|
getAdminScopes,
|
|
6103
6180
|
getAirtableTriggerConfig,
|
|
6104
6181
|
getBrowserSessionProvider,
|
|
6182
|
+
getCanonicalCredentialType,
|
|
6105
6183
|
getCronScheduleInfo,
|
|
6106
6184
|
getDefaultScopes,
|
|
6107
6185
|
getOAuthProvider,
|
|
6108
6186
|
getScopeDescriptions,
|
|
6187
|
+
getSiblingCredentialTypes,
|
|
6109
6188
|
getTriggerEventConfig,
|
|
6110
6189
|
getTriggerEventTypeFromInterfaceName,
|
|
6111
6190
|
googleOAuthMetadataSchema,
|