@bubblelab/shared-schemas 0.1.10 → 0.1.12
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/agent-memory.d.ts +21 -0
- package/dist/agent-memory.d.ts.map +1 -0
- package/dist/agent-memory.js +11 -0
- package/dist/agent-memory.js.map +1 -0
- package/dist/ai-models.d.ts +1 -1
- package/dist/ai-models.d.ts.map +1 -1
- package/dist/ai-models.js +12 -0
- package/dist/ai-models.js.map +1 -1
- package/dist/api-schema.d.ts +2 -2
- package/dist/bubble-definition-schema.d.ts +559 -75
- package/dist/bubble-definition-schema.d.ts.map +1 -1
- package/dist/bubble-definition-schema.js +186 -0
- package/dist/bubble-definition-schema.js.map +1 -1
- package/dist/bubbleflow-execution-schema.d.ts +594 -147
- package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
- package/dist/bubbleflow-execution-schema.js +46 -26
- package/dist/bubbleflow-execution-schema.js.map +1 -1
- package/dist/bubbleflow-generation-prompts.d.ts +5 -16
- package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
- package/dist/bubbleflow-generation-prompts.js +14 -54
- package/dist/bubbleflow-generation-prompts.js.map +1 -1
- package/dist/bubbleflow-schema.d.ts +1081 -92
- package/dist/bubbleflow-schema.d.ts.map +1 -1
- package/dist/bubbleflow-schema.js +94 -4
- package/dist/bubbleflow-schema.js.map +1 -1
- package/dist/coffee.d.ts +2201 -0
- package/dist/coffee.d.ts.map +1 -0
- package/dist/coffee.js +257 -0
- package/dist/coffee.js.map +1 -0
- package/dist/credential-schema.d.ts +172 -3
- package/dist/credential-schema.d.ts.map +1 -1
- package/dist/credential-schema.js +509 -5
- package/dist/credential-schema.js.map +1 -1
- package/dist/database-definition-schema.d.ts +8 -8
- package/dist/error-enhancer.d.ts +6 -0
- package/dist/error-enhancer.d.ts.map +1 -0
- package/dist/error-enhancer.js +88 -0
- package/dist/error-enhancer.js.map +1 -0
- package/dist/generate-bubbleflow-schema.d.ts +974 -52
- package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
- package/dist/generate-bubbleflow-schema.js +23 -7
- package/dist/generate-bubbleflow-schema.js.map +1 -1
- package/dist/hash-utils.d.ts +26 -0
- package/dist/hash-utils.d.ts.map +1 -0
- package/dist/hash-utils.js +37 -0
- package/dist/hash-utils.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/milk-tea.d.ts +22 -24
- package/dist/milk-tea.d.ts.map +1 -1
- package/dist/milk-tea.js +1 -4
- package/dist/milk-tea.js.map +1 -1
- package/dist/oauth-schema.d.ts +2 -2
- package/dist/param-utils.d.ts +10 -0
- package/dist/param-utils.d.ts.map +1 -0
- package/dist/param-utils.js +13 -0
- package/dist/param-utils.js.map +1 -0
- package/dist/pearl.d.ts +96 -29
- package/dist/pearl.d.ts.map +1 -1
- package/dist/pearl.js +20 -9
- package/dist/pearl.js.map +1 -1
- package/dist/rice.d.ts +100 -0
- package/dist/rice.d.ts.map +1 -0
- package/dist/rice.js +65 -0
- package/dist/rice.js.map +1 -0
- package/dist/storage-utils.d.ts +19 -0
- package/dist/storage-utils.d.ts.map +1 -0
- package/dist/storage-utils.js +54 -0
- package/dist/storage-utils.js.map +1 -0
- package/dist/streaming-events.d.ts +36 -2
- package/dist/streaming-events.d.ts.map +1 -1
- package/dist/subscription-status-schema.d.ts +192 -32
- package/dist/subscription-status-schema.d.ts.map +1 -1
- package/dist/subscription-status-schema.js +85 -7
- package/dist/subscription-status-schema.js.map +1 -1
- package/dist/trigger.d.ts +45 -51
- package/dist/trigger.d.ts.map +1 -1
- package/dist/trigger.js +0 -2
- package/dist/trigger.js.map +1 -1
- package/dist/types.d.ts +13 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +18 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/general-chat.d.ts +0 -81
- package/dist/general-chat.d.ts.map +0 -1
- package/dist/general-chat.js +0 -58
- package/dist/general-chat.js.map +0 -1
- package/dist/generation-result-schema.d.ts +0 -73
- package/dist/generation-result-schema.d.ts.map +0 -1
- package/dist/generation-result-schema.js +0 -55
- package/dist/generation-result-schema.js.map +0 -1
- package/dist/mock-data-generator.test.d.ts +0 -2
- package/dist/mock-data-generator.test.d.ts.map +0 -1
- package/dist/mock-data-generator.test.js +0 -176
- package/dist/mock-data-generator.test.js.map +0 -1
|
@@ -13,62 +13,6 @@ export declare enum BubbleParameterType {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const CREDENTIAL_CONFIGURATION_MAP: Record<CredentialType, Record<string, BubbleParameterType>>;
|
|
15
15
|
export declare const BUBBLE_NAMES_WITH_CONTEXT_INJECTION: string[];
|
|
16
|
-
export interface BubbleParameter {
|
|
17
|
-
location?: {
|
|
18
|
-
startLine: number;
|
|
19
|
-
startCol: number;
|
|
20
|
-
endLine: number;
|
|
21
|
-
endCol: number;
|
|
22
|
-
};
|
|
23
|
-
variableId?: number;
|
|
24
|
-
name: string;
|
|
25
|
-
value: string | number | boolean | Record<string, unknown> | unknown[];
|
|
26
|
-
type: BubbleParameterType;
|
|
27
|
-
}
|
|
28
|
-
export interface ParsedBubble {
|
|
29
|
-
variableName: string;
|
|
30
|
-
bubbleName: string;
|
|
31
|
-
className: string;
|
|
32
|
-
parameters: BubbleParameter[];
|
|
33
|
-
hasAwait: boolean;
|
|
34
|
-
hasActionCall: boolean;
|
|
35
|
-
dependencies?: BubbleName[];
|
|
36
|
-
dependencyGraph?: DependencyGraphNode;
|
|
37
|
-
}
|
|
38
|
-
export interface DependencyGraphNode {
|
|
39
|
-
name: BubbleName;
|
|
40
|
-
/** Optional variable name for this node instance, when available */
|
|
41
|
-
variableName?: string;
|
|
42
|
-
nodeType: BubbleNodeType;
|
|
43
|
-
/**
|
|
44
|
-
* Unique hierarchical ID path for the node within a flow.
|
|
45
|
-
* Constructed as parentUniqueId + "." + bubbleName + "#" + ordinal.
|
|
46
|
-
* Root nodes can omit or use empty string for the parent portion.
|
|
47
|
-
*/
|
|
48
|
-
uniqueId?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Variable id assigned by the parser/scope manager if available.
|
|
51
|
-
* Root bubble nodes will carry their declaration variable id; synthetic/child nodes
|
|
52
|
-
* inferred from dependencies may be assigned a negative synthetic id.
|
|
53
|
-
*/
|
|
54
|
-
variableId?: number;
|
|
55
|
-
dependencies: DependencyGraphNode[];
|
|
56
|
-
}
|
|
57
|
-
export interface BubbleDependencySpec {
|
|
58
|
-
name: BubbleName;
|
|
59
|
-
tools?: BubbleName[];
|
|
60
|
-
}
|
|
61
|
-
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown';
|
|
62
|
-
export interface ParsedBubbleWithInfo extends ParsedBubble {
|
|
63
|
-
variableId: number;
|
|
64
|
-
nodeType: BubbleNodeType;
|
|
65
|
-
location: {
|
|
66
|
-
startLine: number;
|
|
67
|
-
startCol: number;
|
|
68
|
-
endLine: number;
|
|
69
|
-
endCol: number;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
16
|
export declare const BubbleParameterTypeSchema: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
73
17
|
export declare const BubbleParameterSchema: z.ZodObject<{
|
|
74
18
|
location: z.ZodOptional<z.ZodObject<{
|
|
@@ -91,9 +35,29 @@ export declare const BubbleParameterSchema: z.ZodObject<{
|
|
|
91
35
|
name: z.ZodString;
|
|
92
36
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
93
37
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
38
|
+
/**
|
|
39
|
+
* Source of the parameter - indicates whether it came from an object literal property
|
|
40
|
+
* or represents the entire first argument. Used to determine if spread pattern should be applied.
|
|
41
|
+
* Ex.
|
|
42
|
+
* const abc = '1234567890';
|
|
43
|
+
* new GoogleDriveBubble({
|
|
44
|
+
* fileId: abc,
|
|
45
|
+
* })
|
|
46
|
+
* source: 'object-property',
|
|
47
|
+
*
|
|
48
|
+
* new GoogleDriveBubble({
|
|
49
|
+
* url: 'https://www.google.com',
|
|
50
|
+
* ...args,
|
|
51
|
+
* })
|
|
52
|
+
* source: 'spread',
|
|
53
|
+
*
|
|
54
|
+
* source = 'first-arg'
|
|
55
|
+
* new GoogleDriveBubble(args)
|
|
56
|
+
*/
|
|
57
|
+
source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
|
|
94
58
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
96
59
|
type: BubbleParameterType;
|
|
60
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
97
61
|
name: string;
|
|
98
62
|
location?: {
|
|
99
63
|
startLine: number;
|
|
@@ -102,9 +66,10 @@ export declare const BubbleParameterSchema: z.ZodObject<{
|
|
|
102
66
|
endCol: number;
|
|
103
67
|
} | undefined;
|
|
104
68
|
variableId?: number | undefined;
|
|
69
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
105
70
|
}, {
|
|
106
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
107
71
|
type: BubbleParameterType;
|
|
72
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
108
73
|
name: string;
|
|
109
74
|
location?: {
|
|
110
75
|
startLine: number;
|
|
@@ -113,12 +78,53 @@ export declare const BubbleParameterSchema: z.ZodObject<{
|
|
|
113
78
|
endCol: number;
|
|
114
79
|
} | undefined;
|
|
115
80
|
variableId?: number | undefined;
|
|
81
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
116
82
|
}>;
|
|
83
|
+
export type BubbleParameter = z.infer<typeof BubbleParameterSchema>;
|
|
84
|
+
export interface ParsedBubble {
|
|
85
|
+
variableName: string;
|
|
86
|
+
bubbleName: BubbleName;
|
|
87
|
+
className: string;
|
|
88
|
+
parameters: BubbleParameter[];
|
|
89
|
+
hasAwait: boolean;
|
|
90
|
+
hasActionCall: boolean;
|
|
91
|
+
dependencies?: BubbleName[];
|
|
92
|
+
dependencyGraph?: DependencyGraphNode;
|
|
93
|
+
}
|
|
94
|
+
export interface DependencyGraphNode {
|
|
95
|
+
name: BubbleName;
|
|
96
|
+
/** Optional variable name for this node instance, when available */
|
|
97
|
+
variableName?: string;
|
|
98
|
+
nodeType: BubbleNodeType;
|
|
99
|
+
/**
|
|
100
|
+
* Unique hierarchical ID path for the node within a flow.
|
|
101
|
+
* Constructed as parentUniqueId + "." + bubbleName + "#" + ordinal.
|
|
102
|
+
* Root nodes can omit or use empty string for the parent portion.
|
|
103
|
+
*/
|
|
104
|
+
uniqueId?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Variable id assigned by the parser/scope manager if available.
|
|
107
|
+
* Root bubble nodes will carry their declaration variable id; synthetic/child nodes
|
|
108
|
+
* inferred from dependencies may be assigned a negative synthetic id.
|
|
109
|
+
*/
|
|
110
|
+
variableId?: number;
|
|
111
|
+
dependencies: DependencyGraphNode[];
|
|
112
|
+
/**
|
|
113
|
+
* Custom tool functions parsed as FunctionCallWorkflowNode.
|
|
114
|
+
* Used when an ai-agent has customTools with func properties containing bubble instantiations.
|
|
115
|
+
*/
|
|
116
|
+
functionCallChildren?: FunctionCallWorkflowNode[];
|
|
117
|
+
}
|
|
118
|
+
export interface BubbleDependencySpec {
|
|
119
|
+
name: BubbleName;
|
|
120
|
+
tools?: BubbleName[];
|
|
121
|
+
}
|
|
122
|
+
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown';
|
|
117
123
|
export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
|
|
118
124
|
export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>;
|
|
119
125
|
export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
120
126
|
variableName: z.ZodString;
|
|
121
|
-
bubbleName: z.
|
|
127
|
+
bubbleName: z.ZodType<BubbleName>;
|
|
122
128
|
className: z.ZodString;
|
|
123
129
|
parameters: z.ZodArray<z.ZodObject<{
|
|
124
130
|
location: z.ZodOptional<z.ZodObject<{
|
|
@@ -141,9 +147,29 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
141
147
|
name: z.ZodString;
|
|
142
148
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
143
149
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
150
|
+
/**
|
|
151
|
+
* Source of the parameter - indicates whether it came from an object literal property
|
|
152
|
+
* or represents the entire first argument. Used to determine if spread pattern should be applied.
|
|
153
|
+
* Ex.
|
|
154
|
+
* const abc = '1234567890';
|
|
155
|
+
* new GoogleDriveBubble({
|
|
156
|
+
* fileId: abc,
|
|
157
|
+
* })
|
|
158
|
+
* source: 'object-property',
|
|
159
|
+
*
|
|
160
|
+
* new GoogleDriveBubble({
|
|
161
|
+
* url: 'https://www.google.com',
|
|
162
|
+
* ...args,
|
|
163
|
+
* })
|
|
164
|
+
* source: 'spread',
|
|
165
|
+
*
|
|
166
|
+
* source = 'first-arg'
|
|
167
|
+
* new GoogleDriveBubble(args)
|
|
168
|
+
*/
|
|
169
|
+
source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
|
|
144
170
|
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
146
171
|
type: BubbleParameterType;
|
|
172
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
147
173
|
name: string;
|
|
148
174
|
location?: {
|
|
149
175
|
startLine: number;
|
|
@@ -152,9 +178,10 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
152
178
|
endCol: number;
|
|
153
179
|
} | undefined;
|
|
154
180
|
variableId?: number | undefined;
|
|
181
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
155
182
|
}, {
|
|
156
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
157
183
|
type: BubbleParameterType;
|
|
184
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
158
185
|
name: string;
|
|
159
186
|
location?: {
|
|
160
187
|
startLine: number;
|
|
@@ -163,6 +190,7 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
163
190
|
endCol: number;
|
|
164
191
|
} | undefined;
|
|
165
192
|
variableId?: number | undefined;
|
|
193
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
166
194
|
}>, "many">;
|
|
167
195
|
hasAwait: z.ZodBoolean;
|
|
168
196
|
hasActionCall: z.ZodBoolean;
|
|
@@ -170,11 +198,10 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
170
198
|
dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>;
|
|
171
199
|
}, "strip", z.ZodTypeAny, {
|
|
172
200
|
variableName: string;
|
|
173
|
-
bubbleName: string;
|
|
174
201
|
className: string;
|
|
175
202
|
parameters: {
|
|
176
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
177
203
|
type: BubbleParameterType;
|
|
204
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
178
205
|
name: string;
|
|
179
206
|
location?: {
|
|
180
207
|
startLine: number;
|
|
@@ -183,18 +210,19 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
183
210
|
endCol: number;
|
|
184
211
|
} | undefined;
|
|
185
212
|
variableId?: number | undefined;
|
|
213
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
186
214
|
}[];
|
|
187
215
|
hasAwait: boolean;
|
|
188
216
|
hasActionCall: boolean;
|
|
217
|
+
bubbleName: BubbleName;
|
|
189
218
|
dependencies?: BubbleName[] | undefined;
|
|
190
219
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
191
220
|
}, {
|
|
192
221
|
variableName: string;
|
|
193
|
-
bubbleName: string;
|
|
194
222
|
className: string;
|
|
195
223
|
parameters: {
|
|
196
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
197
224
|
type: BubbleParameterType;
|
|
225
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
198
226
|
name: string;
|
|
199
227
|
location?: {
|
|
200
228
|
startLine: number;
|
|
@@ -203,9 +231,11 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
203
231
|
endCol: number;
|
|
204
232
|
} | undefined;
|
|
205
233
|
variableId?: number | undefined;
|
|
234
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
206
235
|
}[];
|
|
207
236
|
hasAwait: boolean;
|
|
208
237
|
hasActionCall: boolean;
|
|
238
|
+
bubbleName: BubbleName;
|
|
209
239
|
dependencies?: BubbleName[] | undefined;
|
|
210
240
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
211
241
|
}>;
|
|
@@ -221,7 +251,7 @@ export declare const BubbleDependencySpecSchema: z.ZodObject<{
|
|
|
221
251
|
}>;
|
|
222
252
|
export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
223
253
|
variableName: z.ZodString;
|
|
224
|
-
bubbleName: z.
|
|
254
|
+
bubbleName: z.ZodType<BubbleName>;
|
|
225
255
|
className: z.ZodString;
|
|
226
256
|
parameters: z.ZodArray<z.ZodObject<{
|
|
227
257
|
location: z.ZodOptional<z.ZodObject<{
|
|
@@ -244,9 +274,29 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
244
274
|
name: z.ZodString;
|
|
245
275
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
246
276
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
277
|
+
/**
|
|
278
|
+
* Source of the parameter - indicates whether it came from an object literal property
|
|
279
|
+
* or represents the entire first argument. Used to determine if spread pattern should be applied.
|
|
280
|
+
* Ex.
|
|
281
|
+
* const abc = '1234567890';
|
|
282
|
+
* new GoogleDriveBubble({
|
|
283
|
+
* fileId: abc,
|
|
284
|
+
* })
|
|
285
|
+
* source: 'object-property',
|
|
286
|
+
*
|
|
287
|
+
* new GoogleDriveBubble({
|
|
288
|
+
* url: 'https://www.google.com',
|
|
289
|
+
* ...args,
|
|
290
|
+
* })
|
|
291
|
+
* source: 'spread',
|
|
292
|
+
*
|
|
293
|
+
* source = 'first-arg'
|
|
294
|
+
* new GoogleDriveBubble(args)
|
|
295
|
+
*/
|
|
296
|
+
source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
|
|
247
297
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
249
298
|
type: BubbleParameterType;
|
|
299
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
250
300
|
name: string;
|
|
251
301
|
location?: {
|
|
252
302
|
startLine: number;
|
|
@@ -255,9 +305,10 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
255
305
|
endCol: number;
|
|
256
306
|
} | undefined;
|
|
257
307
|
variableId?: number | undefined;
|
|
308
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
258
309
|
}, {
|
|
259
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
260
310
|
type: BubbleParameterType;
|
|
311
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
261
312
|
name: string;
|
|
262
313
|
location?: {
|
|
263
314
|
startLine: number;
|
|
@@ -266,6 +317,7 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
266
317
|
endCol: number;
|
|
267
318
|
} | undefined;
|
|
268
319
|
variableId?: number | undefined;
|
|
320
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
269
321
|
}>, "many">;
|
|
270
322
|
hasAwait: z.ZodBoolean;
|
|
271
323
|
hasActionCall: z.ZodBoolean;
|
|
@@ -289,6 +341,11 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
289
341
|
endLine: number;
|
|
290
342
|
endCol: number;
|
|
291
343
|
}>;
|
|
344
|
+
description: z.ZodOptional<z.ZodString>;
|
|
345
|
+
invocationCallSiteKey: z.ZodOptional<z.ZodString>;
|
|
346
|
+
clonedFromVariableId: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
isInsideCustomTool: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
+
containingCustomToolId: z.ZodOptional<z.ZodString>;
|
|
292
349
|
}, "strip", z.ZodTypeAny, {
|
|
293
350
|
location: {
|
|
294
351
|
startLine: number;
|
|
@@ -298,11 +355,11 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
298
355
|
};
|
|
299
356
|
variableId: number;
|
|
300
357
|
variableName: string;
|
|
301
|
-
|
|
358
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
302
359
|
className: string;
|
|
303
360
|
parameters: {
|
|
304
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
305
361
|
type: BubbleParameterType;
|
|
362
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
306
363
|
name: string;
|
|
307
364
|
location?: {
|
|
308
365
|
startLine: number;
|
|
@@ -311,12 +368,18 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
311
368
|
endCol: number;
|
|
312
369
|
} | undefined;
|
|
313
370
|
variableId?: number | undefined;
|
|
371
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
314
372
|
}[];
|
|
315
373
|
hasAwait: boolean;
|
|
316
374
|
hasActionCall: boolean;
|
|
317
|
-
|
|
375
|
+
bubbleName: BubbleName;
|
|
376
|
+
description?: string | undefined;
|
|
318
377
|
dependencies?: BubbleName[] | undefined;
|
|
319
378
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
379
|
+
invocationCallSiteKey?: string | undefined;
|
|
380
|
+
clonedFromVariableId?: number | undefined;
|
|
381
|
+
isInsideCustomTool?: boolean | undefined;
|
|
382
|
+
containingCustomToolId?: string | undefined;
|
|
320
383
|
}, {
|
|
321
384
|
location: {
|
|
322
385
|
startLine: number;
|
|
@@ -326,11 +389,11 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
326
389
|
};
|
|
327
390
|
variableId: number;
|
|
328
391
|
variableName: string;
|
|
329
|
-
|
|
392
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
330
393
|
className: string;
|
|
331
394
|
parameters: {
|
|
332
|
-
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
333
395
|
type: BubbleParameterType;
|
|
396
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
334
397
|
name: string;
|
|
335
398
|
location?: {
|
|
336
399
|
startLine: number;
|
|
@@ -339,18 +402,439 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
339
402
|
endCol: number;
|
|
340
403
|
} | undefined;
|
|
341
404
|
variableId?: number | undefined;
|
|
405
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
342
406
|
}[];
|
|
343
407
|
hasAwait: boolean;
|
|
344
408
|
hasActionCall: boolean;
|
|
345
|
-
|
|
409
|
+
bubbleName: BubbleName;
|
|
410
|
+
description?: string | undefined;
|
|
346
411
|
dependencies?: BubbleName[] | undefined;
|
|
347
412
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
413
|
+
invocationCallSiteKey?: string | undefined;
|
|
414
|
+
clonedFromVariableId?: number | undefined;
|
|
415
|
+
isInsideCustomTool?: boolean | undefined;
|
|
416
|
+
containingCustomToolId?: string | undefined;
|
|
348
417
|
}>;
|
|
418
|
+
export type ParsedBubbleWithInfo = z.infer<typeof ParsedBubbleWithInfoSchema>;
|
|
349
419
|
export type BubbleParameterTypeInferred = z.infer<typeof BubbleParameterTypeSchema>;
|
|
350
|
-
export type BubbleParameterInferred =
|
|
420
|
+
export type BubbleParameterInferred = BubbleParameter;
|
|
351
421
|
export type BubbleNodeTypeInferred = z.infer<typeof BubbleNodeTypeSchema>;
|
|
352
422
|
export type DependencyGraphNodeInferred = z.infer<typeof DependencyGraphNodeSchema>;
|
|
353
423
|
export type ParsedBubbleInferred = z.infer<typeof ParsedBubbleSchema>;
|
|
354
424
|
export type BubbleDependencySpecInferred = z.infer<typeof BubbleDependencySpecSchema>;
|
|
355
425
|
export type ParsedBubbleWithInfoInferred = z.infer<typeof ParsedBubbleWithInfoSchema>;
|
|
426
|
+
export type WorkflowNodeType = 'bubble' | 'if' | 'for' | 'while' | 'try_catch' | 'variable_declaration' | 'return' | 'function_call' | 'code_block' | 'parallel_execution' | 'transformation_function';
|
|
427
|
+
export interface BubbleWorkflowNode {
|
|
428
|
+
type: 'bubble';
|
|
429
|
+
variableId: number;
|
|
430
|
+
}
|
|
431
|
+
export interface ControlFlowWorkflowNode {
|
|
432
|
+
type: 'if' | 'for' | 'while';
|
|
433
|
+
location: {
|
|
434
|
+
startLine: number;
|
|
435
|
+
startCol: number;
|
|
436
|
+
endLine: number;
|
|
437
|
+
endCol: number;
|
|
438
|
+
};
|
|
439
|
+
condition?: string;
|
|
440
|
+
children: WorkflowNode[];
|
|
441
|
+
elseBranch?: WorkflowNode[];
|
|
442
|
+
thenTerminates?: boolean;
|
|
443
|
+
elseTerminates?: boolean;
|
|
444
|
+
}
|
|
445
|
+
export interface TryCatchWorkflowNode {
|
|
446
|
+
type: 'try_catch';
|
|
447
|
+
location: {
|
|
448
|
+
startLine: number;
|
|
449
|
+
startCol: number;
|
|
450
|
+
endLine: number;
|
|
451
|
+
endCol: number;
|
|
452
|
+
};
|
|
453
|
+
children: WorkflowNode[];
|
|
454
|
+
catchBlock?: WorkflowNode[];
|
|
455
|
+
}
|
|
456
|
+
export interface CodeBlockWorkflowNode {
|
|
457
|
+
type: 'code_block';
|
|
458
|
+
location: {
|
|
459
|
+
startLine: number;
|
|
460
|
+
startCol: number;
|
|
461
|
+
endLine: number;
|
|
462
|
+
endCol: number;
|
|
463
|
+
};
|
|
464
|
+
code: string;
|
|
465
|
+
children: WorkflowNode[];
|
|
466
|
+
}
|
|
467
|
+
export interface VariableDeclarationBlockNode {
|
|
468
|
+
type: 'variable_declaration';
|
|
469
|
+
location: {
|
|
470
|
+
startLine: number;
|
|
471
|
+
startCol: number;
|
|
472
|
+
endLine: number;
|
|
473
|
+
endCol: number;
|
|
474
|
+
};
|
|
475
|
+
code: string;
|
|
476
|
+
variables: Array<{
|
|
477
|
+
name: string;
|
|
478
|
+
type: 'const' | 'let' | 'var';
|
|
479
|
+
hasInitializer: boolean;
|
|
480
|
+
}>;
|
|
481
|
+
children: WorkflowNode[];
|
|
482
|
+
}
|
|
483
|
+
export interface ReturnWorkflowNode {
|
|
484
|
+
type: 'return';
|
|
485
|
+
location: {
|
|
486
|
+
startLine: number;
|
|
487
|
+
startCol: number;
|
|
488
|
+
endLine: number;
|
|
489
|
+
endCol: number;
|
|
490
|
+
};
|
|
491
|
+
code: string;
|
|
492
|
+
value?: string;
|
|
493
|
+
children: WorkflowNode[];
|
|
494
|
+
}
|
|
495
|
+
export interface FunctionCallWorkflowNode {
|
|
496
|
+
type: 'function_call';
|
|
497
|
+
location: {
|
|
498
|
+
startLine: number;
|
|
499
|
+
startCol: number;
|
|
500
|
+
endLine: number;
|
|
501
|
+
endCol: number;
|
|
502
|
+
};
|
|
503
|
+
functionName: string;
|
|
504
|
+
isMethodCall: boolean;
|
|
505
|
+
description?: string;
|
|
506
|
+
arguments?: string;
|
|
507
|
+
code: string;
|
|
508
|
+
variableId: number;
|
|
509
|
+
variableDeclaration?: {
|
|
510
|
+
variableName: string;
|
|
511
|
+
variableType: 'const' | 'let' | 'var';
|
|
512
|
+
};
|
|
513
|
+
methodDefinition?: {
|
|
514
|
+
location: {
|
|
515
|
+
startLine: number;
|
|
516
|
+
endLine: number;
|
|
517
|
+
};
|
|
518
|
+
isAsync: boolean;
|
|
519
|
+
parameters: string[];
|
|
520
|
+
};
|
|
521
|
+
children: WorkflowNode[];
|
|
522
|
+
}
|
|
523
|
+
export interface ParallelExecutionWorkflowNode {
|
|
524
|
+
type: 'parallel_execution';
|
|
525
|
+
location: {
|
|
526
|
+
startLine: number;
|
|
527
|
+
startCol: number;
|
|
528
|
+
endLine: number;
|
|
529
|
+
endCol: number;
|
|
530
|
+
};
|
|
531
|
+
code: string;
|
|
532
|
+
variableDeclaration?: {
|
|
533
|
+
variableNames: string[];
|
|
534
|
+
variableType: 'const' | 'let' | 'var';
|
|
535
|
+
};
|
|
536
|
+
children: WorkflowNode[];
|
|
537
|
+
}
|
|
538
|
+
export interface TransformationFunctionWorkflowNode {
|
|
539
|
+
type: 'transformation_function';
|
|
540
|
+
location: {
|
|
541
|
+
startLine: number;
|
|
542
|
+
startCol: number;
|
|
543
|
+
endLine: number;
|
|
544
|
+
endCol: number;
|
|
545
|
+
};
|
|
546
|
+
code: string;
|
|
547
|
+
functionName: string;
|
|
548
|
+
isMethodCall: boolean;
|
|
549
|
+
description?: string;
|
|
550
|
+
arguments?: string;
|
|
551
|
+
variableId: number;
|
|
552
|
+
variableDeclaration?: {
|
|
553
|
+
variableName: string;
|
|
554
|
+
variableType: 'const' | 'let' | 'var';
|
|
555
|
+
};
|
|
556
|
+
methodDefinition?: {
|
|
557
|
+
location: {
|
|
558
|
+
startLine: number;
|
|
559
|
+
endLine: number;
|
|
560
|
+
};
|
|
561
|
+
isAsync: boolean;
|
|
562
|
+
parameters: string[];
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode;
|
|
566
|
+
export interface ParsedWorkflow {
|
|
567
|
+
root: WorkflowNode[];
|
|
568
|
+
bubbles: Record<number, ParsedBubbleWithInfo>;
|
|
569
|
+
}
|
|
570
|
+
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>;
|
|
571
|
+
export declare const LocationSchema: z.ZodObject<{
|
|
572
|
+
startLine: z.ZodNumber;
|
|
573
|
+
startCol: z.ZodNumber;
|
|
574
|
+
endLine: z.ZodNumber;
|
|
575
|
+
endCol: z.ZodNumber;
|
|
576
|
+
}, "strip", z.ZodTypeAny, {
|
|
577
|
+
startLine: number;
|
|
578
|
+
startCol: number;
|
|
579
|
+
endLine: number;
|
|
580
|
+
endCol: number;
|
|
581
|
+
}, {
|
|
582
|
+
startLine: number;
|
|
583
|
+
startCol: number;
|
|
584
|
+
endLine: number;
|
|
585
|
+
endCol: number;
|
|
586
|
+
}>;
|
|
587
|
+
export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>;
|
|
588
|
+
export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>;
|
|
589
|
+
export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>;
|
|
590
|
+
export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>;
|
|
591
|
+
export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>;
|
|
592
|
+
export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>;
|
|
593
|
+
export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>;
|
|
594
|
+
export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>;
|
|
595
|
+
export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>;
|
|
596
|
+
export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>;
|
|
597
|
+
export declare const ParsedWorkflowSchema: z.ZodObject<{
|
|
598
|
+
root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">;
|
|
599
|
+
bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
600
|
+
variableName: z.ZodString;
|
|
601
|
+
bubbleName: z.ZodType<BubbleName>;
|
|
602
|
+
className: z.ZodString;
|
|
603
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
604
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
605
|
+
startLine: z.ZodNumber;
|
|
606
|
+
startCol: z.ZodNumber;
|
|
607
|
+
endLine: z.ZodNumber;
|
|
608
|
+
endCol: z.ZodNumber;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
startLine: number;
|
|
611
|
+
startCol: number;
|
|
612
|
+
endLine: number;
|
|
613
|
+
endCol: number;
|
|
614
|
+
}, {
|
|
615
|
+
startLine: number;
|
|
616
|
+
startCol: number;
|
|
617
|
+
endLine: number;
|
|
618
|
+
endCol: number;
|
|
619
|
+
}>>;
|
|
620
|
+
variableId: z.ZodOptional<z.ZodNumber>;
|
|
621
|
+
name: z.ZodString;
|
|
622
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
623
|
+
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
624
|
+
/**
|
|
625
|
+
* Source of the parameter - indicates whether it came from an object literal property
|
|
626
|
+
* or represents the entire first argument. Used to determine if spread pattern should be applied.
|
|
627
|
+
* Ex.
|
|
628
|
+
* const abc = '1234567890';
|
|
629
|
+
* new GoogleDriveBubble({
|
|
630
|
+
* fileId: abc,
|
|
631
|
+
* })
|
|
632
|
+
* source: 'object-property',
|
|
633
|
+
*
|
|
634
|
+
* new GoogleDriveBubble({
|
|
635
|
+
* url: 'https://www.google.com',
|
|
636
|
+
* ...args,
|
|
637
|
+
* })
|
|
638
|
+
* source: 'spread',
|
|
639
|
+
*
|
|
640
|
+
* source = 'first-arg'
|
|
641
|
+
* new GoogleDriveBubble(args)
|
|
642
|
+
*/
|
|
643
|
+
source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
|
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
|
645
|
+
type: BubbleParameterType;
|
|
646
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
647
|
+
name: string;
|
|
648
|
+
location?: {
|
|
649
|
+
startLine: number;
|
|
650
|
+
startCol: number;
|
|
651
|
+
endLine: number;
|
|
652
|
+
endCol: number;
|
|
653
|
+
} | undefined;
|
|
654
|
+
variableId?: number | undefined;
|
|
655
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
656
|
+
}, {
|
|
657
|
+
type: BubbleParameterType;
|
|
658
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
659
|
+
name: string;
|
|
660
|
+
location?: {
|
|
661
|
+
startLine: number;
|
|
662
|
+
startCol: number;
|
|
663
|
+
endLine: number;
|
|
664
|
+
endCol: number;
|
|
665
|
+
} | undefined;
|
|
666
|
+
variableId?: number | undefined;
|
|
667
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
668
|
+
}>, "many">;
|
|
669
|
+
hasAwait: z.ZodBoolean;
|
|
670
|
+
hasActionCall: z.ZodBoolean;
|
|
671
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>;
|
|
672
|
+
dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>;
|
|
673
|
+
variableId: z.ZodNumber;
|
|
674
|
+
nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
|
|
675
|
+
location: z.ZodObject<{
|
|
676
|
+
startLine: z.ZodNumber;
|
|
677
|
+
startCol: z.ZodNumber;
|
|
678
|
+
endLine: z.ZodNumber;
|
|
679
|
+
endCol: z.ZodNumber;
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
681
|
+
startLine: number;
|
|
682
|
+
startCol: number;
|
|
683
|
+
endLine: number;
|
|
684
|
+
endCol: number;
|
|
685
|
+
}, {
|
|
686
|
+
startLine: number;
|
|
687
|
+
startCol: number;
|
|
688
|
+
endLine: number;
|
|
689
|
+
endCol: number;
|
|
690
|
+
}>;
|
|
691
|
+
description: z.ZodOptional<z.ZodString>;
|
|
692
|
+
invocationCallSiteKey: z.ZodOptional<z.ZodString>;
|
|
693
|
+
clonedFromVariableId: z.ZodOptional<z.ZodNumber>;
|
|
694
|
+
isInsideCustomTool: z.ZodOptional<z.ZodBoolean>;
|
|
695
|
+
containingCustomToolId: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, "strip", z.ZodTypeAny, {
|
|
697
|
+
location: {
|
|
698
|
+
startLine: number;
|
|
699
|
+
startCol: number;
|
|
700
|
+
endLine: number;
|
|
701
|
+
endCol: number;
|
|
702
|
+
};
|
|
703
|
+
variableId: number;
|
|
704
|
+
variableName: string;
|
|
705
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
706
|
+
className: string;
|
|
707
|
+
parameters: {
|
|
708
|
+
type: BubbleParameterType;
|
|
709
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
710
|
+
name: string;
|
|
711
|
+
location?: {
|
|
712
|
+
startLine: number;
|
|
713
|
+
startCol: number;
|
|
714
|
+
endLine: number;
|
|
715
|
+
endCol: number;
|
|
716
|
+
} | undefined;
|
|
717
|
+
variableId?: number | undefined;
|
|
718
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
719
|
+
}[];
|
|
720
|
+
hasAwait: boolean;
|
|
721
|
+
hasActionCall: boolean;
|
|
722
|
+
bubbleName: BubbleName;
|
|
723
|
+
description?: string | undefined;
|
|
724
|
+
dependencies?: BubbleName[] | undefined;
|
|
725
|
+
dependencyGraph?: DependencyGraphNode | undefined;
|
|
726
|
+
invocationCallSiteKey?: string | undefined;
|
|
727
|
+
clonedFromVariableId?: number | undefined;
|
|
728
|
+
isInsideCustomTool?: boolean | undefined;
|
|
729
|
+
containingCustomToolId?: string | undefined;
|
|
730
|
+
}, {
|
|
731
|
+
location: {
|
|
732
|
+
startLine: number;
|
|
733
|
+
startCol: number;
|
|
734
|
+
endLine: number;
|
|
735
|
+
endCol: number;
|
|
736
|
+
};
|
|
737
|
+
variableId: number;
|
|
738
|
+
variableName: string;
|
|
739
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
740
|
+
className: string;
|
|
741
|
+
parameters: {
|
|
742
|
+
type: BubbleParameterType;
|
|
743
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
744
|
+
name: string;
|
|
745
|
+
location?: {
|
|
746
|
+
startLine: number;
|
|
747
|
+
startCol: number;
|
|
748
|
+
endLine: number;
|
|
749
|
+
endCol: number;
|
|
750
|
+
} | undefined;
|
|
751
|
+
variableId?: number | undefined;
|
|
752
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
753
|
+
}[];
|
|
754
|
+
hasAwait: boolean;
|
|
755
|
+
hasActionCall: boolean;
|
|
756
|
+
bubbleName: BubbleName;
|
|
757
|
+
description?: string | undefined;
|
|
758
|
+
dependencies?: BubbleName[] | undefined;
|
|
759
|
+
dependencyGraph?: DependencyGraphNode | undefined;
|
|
760
|
+
invocationCallSiteKey?: string | undefined;
|
|
761
|
+
clonedFromVariableId?: number | undefined;
|
|
762
|
+
isInsideCustomTool?: boolean | undefined;
|
|
763
|
+
containingCustomToolId?: string | undefined;
|
|
764
|
+
}>>;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
root: WorkflowNode[];
|
|
767
|
+
bubbles: Record<number, {
|
|
768
|
+
location: {
|
|
769
|
+
startLine: number;
|
|
770
|
+
startCol: number;
|
|
771
|
+
endLine: number;
|
|
772
|
+
endCol: number;
|
|
773
|
+
};
|
|
774
|
+
variableId: number;
|
|
775
|
+
variableName: string;
|
|
776
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
777
|
+
className: string;
|
|
778
|
+
parameters: {
|
|
779
|
+
type: BubbleParameterType;
|
|
780
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
781
|
+
name: string;
|
|
782
|
+
location?: {
|
|
783
|
+
startLine: number;
|
|
784
|
+
startCol: number;
|
|
785
|
+
endLine: number;
|
|
786
|
+
endCol: number;
|
|
787
|
+
} | undefined;
|
|
788
|
+
variableId?: number | undefined;
|
|
789
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
790
|
+
}[];
|
|
791
|
+
hasAwait: boolean;
|
|
792
|
+
hasActionCall: boolean;
|
|
793
|
+
bubbleName: BubbleName;
|
|
794
|
+
description?: string | undefined;
|
|
795
|
+
dependencies?: BubbleName[] | undefined;
|
|
796
|
+
dependencyGraph?: DependencyGraphNode | undefined;
|
|
797
|
+
invocationCallSiteKey?: string | undefined;
|
|
798
|
+
clonedFromVariableId?: number | undefined;
|
|
799
|
+
isInsideCustomTool?: boolean | undefined;
|
|
800
|
+
containingCustomToolId?: string | undefined;
|
|
801
|
+
}>;
|
|
802
|
+
}, {
|
|
803
|
+
root: WorkflowNode[];
|
|
804
|
+
bubbles: Record<number, {
|
|
805
|
+
location: {
|
|
806
|
+
startLine: number;
|
|
807
|
+
startCol: number;
|
|
808
|
+
endLine: number;
|
|
809
|
+
endCol: number;
|
|
810
|
+
};
|
|
811
|
+
variableId: number;
|
|
812
|
+
variableName: string;
|
|
813
|
+
nodeType: "unknown" | "tool" | "service" | "workflow";
|
|
814
|
+
className: string;
|
|
815
|
+
parameters: {
|
|
816
|
+
type: BubbleParameterType;
|
|
817
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
818
|
+
name: string;
|
|
819
|
+
location?: {
|
|
820
|
+
startLine: number;
|
|
821
|
+
startCol: number;
|
|
822
|
+
endLine: number;
|
|
823
|
+
endCol: number;
|
|
824
|
+
} | undefined;
|
|
825
|
+
variableId?: number | undefined;
|
|
826
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
827
|
+
}[];
|
|
828
|
+
hasAwait: boolean;
|
|
829
|
+
hasActionCall: boolean;
|
|
830
|
+
bubbleName: BubbleName;
|
|
831
|
+
description?: string | undefined;
|
|
832
|
+
dependencies?: BubbleName[] | undefined;
|
|
833
|
+
dependencyGraph?: DependencyGraphNode | undefined;
|
|
834
|
+
invocationCallSiteKey?: string | undefined;
|
|
835
|
+
clonedFromVariableId?: number | undefined;
|
|
836
|
+
isInsideCustomTool?: boolean | undefined;
|
|
837
|
+
containingCustomToolId?: string | undefined;
|
|
838
|
+
}>;
|
|
839
|
+
}>;
|
|
356
840
|
//# sourceMappingURL=bubble-definition-schema.d.ts.map
|