@bubblelab/shared-schemas 0.1.9 → 0.1.11
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 +14 -3
- package/dist/ai-models.js.map +1 -1
- package/dist/bubble-definition-schema.d.ts +559 -69
- package/dist/bubble-definition-schema.d.ts.map +1 -1
- package/dist/bubble-definition-schema.js +184 -0
- package/dist/bubble-definition-schema.js.map +1 -1
- package/dist/bubbleflow-execution-schema.d.ts +862 -233
- package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
- package/dist/bubbleflow-execution-schema.js +157 -33
- package/dist/bubbleflow-execution-schema.js.map +1 -1
- package/dist/bubbleflow-generation-prompts.d.ts +25 -0
- package/dist/bubbleflow-generation-prompts.d.ts.map +1 -0
- package/dist/bubbleflow-generation-prompts.js +426 -0
- package/dist/bubbleflow-generation-prompts.js.map +1 -0
- package/dist/bubbleflow-schema.d.ts +1136 -119
- package/dist/bubbleflow-schema.d.ts.map +1 -1
- package/dist/bubbleflow-schema.js +115 -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 +258 -0
- package/dist/coffee.js.map +1 -0
- package/dist/credential-schema.d.ts +27 -13
- package/dist/credential-schema.d.ts.map +1 -1
- package/dist/credential-schema.js +138 -14
- 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 +1038 -46
- package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
- package/dist/generate-bubbleflow-schema.js +57 -0
- 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 +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -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 +100 -30
- package/dist/pearl.d.ts.map +1 -1
- package/dist/pearl.js +24 -9
- package/dist/pearl.js.map +1 -1
- 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 +29 -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 +113 -0
- package/dist/trigger.d.ts.map +1 -0
- package/dist/trigger.js +12 -0
- package/dist/trigger.js.map +1 -0
- package/dist/types.d.ts +11 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +14 -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/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,56 +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
|
-
variableId?: number;
|
|
18
|
-
name: string;
|
|
19
|
-
value: string | number | boolean | Record<string, unknown> | unknown[];
|
|
20
|
-
type: BubbleParameterType;
|
|
21
|
-
}
|
|
22
|
-
export interface ParsedBubble {
|
|
23
|
-
variableName: string;
|
|
24
|
-
bubbleName: string;
|
|
25
|
-
className: string;
|
|
26
|
-
parameters: BubbleParameter[];
|
|
27
|
-
hasAwait: boolean;
|
|
28
|
-
hasActionCall: boolean;
|
|
29
|
-
dependencies?: BubbleName[];
|
|
30
|
-
dependencyGraph?: DependencyGraphNode;
|
|
31
|
-
}
|
|
32
|
-
export interface DependencyGraphNode {
|
|
33
|
-
name: BubbleName;
|
|
34
|
-
/** Optional variable name for this node instance, when available */
|
|
35
|
-
variableName?: string;
|
|
36
|
-
nodeType: BubbleNodeType;
|
|
37
|
-
/**
|
|
38
|
-
* Unique hierarchical ID path for the node within a flow.
|
|
39
|
-
* Constructed as parentUniqueId + "." + bubbleName + "#" + ordinal.
|
|
40
|
-
* Root nodes can omit or use empty string for the parent portion.
|
|
41
|
-
*/
|
|
42
|
-
uniqueId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Variable id assigned by the parser/scope manager if available.
|
|
45
|
-
* Root bubble nodes will carry their declaration variable id; synthetic/child nodes
|
|
46
|
-
* inferred from dependencies may be assigned a negative synthetic id.
|
|
47
|
-
*/
|
|
48
|
-
variableId?: number;
|
|
49
|
-
dependencies: DependencyGraphNode[];
|
|
50
|
-
}
|
|
51
|
-
export interface BubbleDependencySpec {
|
|
52
|
-
name: BubbleName;
|
|
53
|
-
tools?: BubbleName[];
|
|
54
|
-
}
|
|
55
|
-
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown';
|
|
56
|
-
export interface ParsedBubbleWithInfo extends ParsedBubble {
|
|
57
|
-
variableId: number;
|
|
58
|
-
nodeType: BubbleNodeType;
|
|
59
|
-
location: {
|
|
60
|
-
startLine: number;
|
|
61
|
-
startCol: number;
|
|
62
|
-
endLine: number;
|
|
63
|
-
endCol: number;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
16
|
export declare const BubbleParameterTypeSchema: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
67
17
|
export declare const BubbleParameterSchema: z.ZodObject<{
|
|
68
18
|
location: z.ZodOptional<z.ZodObject<{
|
|
@@ -85,10 +35,30 @@ export declare const BubbleParameterSchema: z.ZodObject<{
|
|
|
85
35
|
name: z.ZodString;
|
|
86
36
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
87
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"]>>;
|
|
88
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
name: string;
|
|
89
60
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
90
61
|
type: BubbleParameterType;
|
|
91
|
-
name: string;
|
|
92
62
|
location?: {
|
|
93
63
|
startLine: number;
|
|
94
64
|
startCol: number;
|
|
@@ -96,10 +66,11 @@ export declare const BubbleParameterSchema: z.ZodObject<{
|
|
|
96
66
|
endCol: number;
|
|
97
67
|
} | undefined;
|
|
98
68
|
variableId?: number | undefined;
|
|
69
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
99
70
|
}, {
|
|
71
|
+
name: string;
|
|
100
72
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
101
73
|
type: BubbleParameterType;
|
|
102
|
-
name: string;
|
|
103
74
|
location?: {
|
|
104
75
|
startLine: number;
|
|
105
76
|
startCol: number;
|
|
@@ -107,12 +78,53 @@ export declare const BubbleParameterSchema: z.ZodObject<{
|
|
|
107
78
|
endCol: number;
|
|
108
79
|
} | undefined;
|
|
109
80
|
variableId?: number | undefined;
|
|
81
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
110
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';
|
|
111
123
|
export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
|
|
112
124
|
export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>;
|
|
113
125
|
export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
114
126
|
variableName: z.ZodString;
|
|
115
|
-
bubbleName: z.
|
|
127
|
+
bubbleName: z.ZodType<BubbleName>;
|
|
116
128
|
className: z.ZodString;
|
|
117
129
|
parameters: z.ZodArray<z.ZodObject<{
|
|
118
130
|
location: z.ZodOptional<z.ZodObject<{
|
|
@@ -135,10 +147,30 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
135
147
|
name: z.ZodString;
|
|
136
148
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
137
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"]>>;
|
|
138
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
name: string;
|
|
139
172
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
140
173
|
type: BubbleParameterType;
|
|
141
|
-
name: string;
|
|
142
174
|
location?: {
|
|
143
175
|
startLine: number;
|
|
144
176
|
startCol: number;
|
|
@@ -146,10 +178,11 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
146
178
|
endCol: number;
|
|
147
179
|
} | undefined;
|
|
148
180
|
variableId?: number | undefined;
|
|
181
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
149
182
|
}, {
|
|
183
|
+
name: string;
|
|
150
184
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
151
185
|
type: BubbleParameterType;
|
|
152
|
-
name: string;
|
|
153
186
|
location?: {
|
|
154
187
|
startLine: number;
|
|
155
188
|
startCol: number;
|
|
@@ -157,6 +190,7 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
157
190
|
endCol: number;
|
|
158
191
|
} | undefined;
|
|
159
192
|
variableId?: number | undefined;
|
|
193
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
160
194
|
}>, "many">;
|
|
161
195
|
hasAwait: z.ZodBoolean;
|
|
162
196
|
hasActionCall: z.ZodBoolean;
|
|
@@ -164,12 +198,11 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
164
198
|
dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>;
|
|
165
199
|
}, "strip", z.ZodTypeAny, {
|
|
166
200
|
variableName: string;
|
|
167
|
-
bubbleName: string;
|
|
168
201
|
className: string;
|
|
169
202
|
parameters: {
|
|
203
|
+
name: string;
|
|
170
204
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
171
205
|
type: BubbleParameterType;
|
|
172
|
-
name: string;
|
|
173
206
|
location?: {
|
|
174
207
|
startLine: number;
|
|
175
208
|
startCol: number;
|
|
@@ -177,19 +210,20 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
177
210
|
endCol: number;
|
|
178
211
|
} | undefined;
|
|
179
212
|
variableId?: number | undefined;
|
|
213
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
180
214
|
}[];
|
|
181
215
|
hasAwait: boolean;
|
|
182
216
|
hasActionCall: boolean;
|
|
217
|
+
bubbleName: BubbleName;
|
|
183
218
|
dependencies?: BubbleName[] | undefined;
|
|
184
219
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
185
220
|
}, {
|
|
186
221
|
variableName: string;
|
|
187
|
-
bubbleName: string;
|
|
188
222
|
className: string;
|
|
189
223
|
parameters: {
|
|
224
|
+
name: string;
|
|
190
225
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
191
226
|
type: BubbleParameterType;
|
|
192
|
-
name: string;
|
|
193
227
|
location?: {
|
|
194
228
|
startLine: number;
|
|
195
229
|
startCol: number;
|
|
@@ -197,9 +231,11 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
197
231
|
endCol: number;
|
|
198
232
|
} | undefined;
|
|
199
233
|
variableId?: number | undefined;
|
|
234
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
200
235
|
}[];
|
|
201
236
|
hasAwait: boolean;
|
|
202
237
|
hasActionCall: boolean;
|
|
238
|
+
bubbleName: BubbleName;
|
|
203
239
|
dependencies?: BubbleName[] | undefined;
|
|
204
240
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
205
241
|
}>;
|
|
@@ -215,7 +251,7 @@ export declare const BubbleDependencySpecSchema: z.ZodObject<{
|
|
|
215
251
|
}>;
|
|
216
252
|
export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
217
253
|
variableName: z.ZodString;
|
|
218
|
-
bubbleName: z.
|
|
254
|
+
bubbleName: z.ZodType<BubbleName>;
|
|
219
255
|
className: z.ZodString;
|
|
220
256
|
parameters: z.ZodArray<z.ZodObject<{
|
|
221
257
|
location: z.ZodOptional<z.ZodObject<{
|
|
@@ -238,10 +274,30 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
238
274
|
name: z.ZodString;
|
|
239
275
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
240
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"]>>;
|
|
241
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
name: string;
|
|
242
299
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
243
300
|
type: BubbleParameterType;
|
|
244
|
-
name: string;
|
|
245
301
|
location?: {
|
|
246
302
|
startLine: number;
|
|
247
303
|
startCol: number;
|
|
@@ -249,10 +305,11 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
249
305
|
endCol: number;
|
|
250
306
|
} | undefined;
|
|
251
307
|
variableId?: number | undefined;
|
|
308
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
252
309
|
}, {
|
|
310
|
+
name: string;
|
|
253
311
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
254
312
|
type: BubbleParameterType;
|
|
255
|
-
name: string;
|
|
256
313
|
location?: {
|
|
257
314
|
startLine: number;
|
|
258
315
|
startCol: number;
|
|
@@ -260,6 +317,7 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
260
317
|
endCol: number;
|
|
261
318
|
} | undefined;
|
|
262
319
|
variableId?: number | undefined;
|
|
320
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
263
321
|
}>, "many">;
|
|
264
322
|
hasAwait: z.ZodBoolean;
|
|
265
323
|
hasActionCall: z.ZodBoolean;
|
|
@@ -283,6 +341,11 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
283
341
|
endLine: number;
|
|
284
342
|
endCol: number;
|
|
285
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>;
|
|
286
349
|
}, "strip", z.ZodTypeAny, {
|
|
287
350
|
location: {
|
|
288
351
|
startLine: number;
|
|
@@ -292,12 +355,12 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
292
355
|
};
|
|
293
356
|
variableId: number;
|
|
294
357
|
variableName: string;
|
|
295
|
-
|
|
358
|
+
nodeType: "tool" | "unknown" | "service" | "workflow";
|
|
296
359
|
className: string;
|
|
297
360
|
parameters: {
|
|
361
|
+
name: string;
|
|
298
362
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
299
363
|
type: BubbleParameterType;
|
|
300
|
-
name: string;
|
|
301
364
|
location?: {
|
|
302
365
|
startLine: number;
|
|
303
366
|
startCol: number;
|
|
@@ -305,12 +368,18 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
305
368
|
endCol: number;
|
|
306
369
|
} | undefined;
|
|
307
370
|
variableId?: number | undefined;
|
|
371
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
308
372
|
}[];
|
|
309
373
|
hasAwait: boolean;
|
|
310
374
|
hasActionCall: boolean;
|
|
311
|
-
|
|
375
|
+
bubbleName: BubbleName;
|
|
376
|
+
description?: string | undefined;
|
|
312
377
|
dependencies?: BubbleName[] | undefined;
|
|
313
378
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
379
|
+
invocationCallSiteKey?: string | undefined;
|
|
380
|
+
clonedFromVariableId?: number | undefined;
|
|
381
|
+
isInsideCustomTool?: boolean | undefined;
|
|
382
|
+
containingCustomToolId?: string | undefined;
|
|
314
383
|
}, {
|
|
315
384
|
location: {
|
|
316
385
|
startLine: number;
|
|
@@ -320,12 +389,12 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
320
389
|
};
|
|
321
390
|
variableId: number;
|
|
322
391
|
variableName: string;
|
|
323
|
-
|
|
392
|
+
nodeType: "tool" | "unknown" | "service" | "workflow";
|
|
324
393
|
className: string;
|
|
325
394
|
parameters: {
|
|
395
|
+
name: string;
|
|
326
396
|
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
327
397
|
type: BubbleParameterType;
|
|
328
|
-
name: string;
|
|
329
398
|
location?: {
|
|
330
399
|
startLine: number;
|
|
331
400
|
startCol: number;
|
|
@@ -333,18 +402,439 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
333
402
|
endCol: number;
|
|
334
403
|
} | undefined;
|
|
335
404
|
variableId?: number | undefined;
|
|
405
|
+
source?: "object-property" | "first-arg" | "spread" | undefined;
|
|
336
406
|
}[];
|
|
337
407
|
hasAwait: boolean;
|
|
338
408
|
hasActionCall: boolean;
|
|
339
|
-
|
|
409
|
+
bubbleName: BubbleName;
|
|
410
|
+
description?: string | undefined;
|
|
340
411
|
dependencies?: BubbleName[] | undefined;
|
|
341
412
|
dependencyGraph?: DependencyGraphNode | undefined;
|
|
413
|
+
invocationCallSiteKey?: string | undefined;
|
|
414
|
+
clonedFromVariableId?: number | undefined;
|
|
415
|
+
isInsideCustomTool?: boolean | undefined;
|
|
416
|
+
containingCustomToolId?: string | undefined;
|
|
342
417
|
}>;
|
|
418
|
+
export type ParsedBubbleWithInfo = z.infer<typeof ParsedBubbleWithInfoSchema>;
|
|
343
419
|
export type BubbleParameterTypeInferred = z.infer<typeof BubbleParameterTypeSchema>;
|
|
344
|
-
export type BubbleParameterInferred =
|
|
420
|
+
export type BubbleParameterInferred = BubbleParameter;
|
|
345
421
|
export type BubbleNodeTypeInferred = z.infer<typeof BubbleNodeTypeSchema>;
|
|
346
422
|
export type DependencyGraphNodeInferred = z.infer<typeof DependencyGraphNodeSchema>;
|
|
347
423
|
export type ParsedBubbleInferred = z.infer<typeof ParsedBubbleSchema>;
|
|
348
424
|
export type BubbleDependencySpecInferred = z.infer<typeof BubbleDependencySpecSchema>;
|
|
349
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
|
+
name: string;
|
|
646
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
647
|
+
type: BubbleParameterType;
|
|
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
|
+
name: string;
|
|
658
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
659
|
+
type: BubbleParameterType;
|
|
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: "tool" | "unknown" | "service" | "workflow";
|
|
706
|
+
className: string;
|
|
707
|
+
parameters: {
|
|
708
|
+
name: string;
|
|
709
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
710
|
+
type: BubbleParameterType;
|
|
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: "tool" | "unknown" | "service" | "workflow";
|
|
740
|
+
className: string;
|
|
741
|
+
parameters: {
|
|
742
|
+
name: string;
|
|
743
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
744
|
+
type: BubbleParameterType;
|
|
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: "tool" | "unknown" | "service" | "workflow";
|
|
777
|
+
className: string;
|
|
778
|
+
parameters: {
|
|
779
|
+
name: string;
|
|
780
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
781
|
+
type: BubbleParameterType;
|
|
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: "tool" | "unknown" | "service" | "workflow";
|
|
814
|
+
className: string;
|
|
815
|
+
parameters: {
|
|
816
|
+
name: string;
|
|
817
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
818
|
+
type: BubbleParameterType;
|
|
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
|
+
}>;
|
|
350
840
|
//# sourceMappingURL=bubble-definition-schema.d.ts.map
|