@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.
Files changed (98) hide show
  1. package/dist/agent-memory.d.ts +21 -0
  2. package/dist/agent-memory.d.ts.map +1 -0
  3. package/dist/agent-memory.js +11 -0
  4. package/dist/agent-memory.js.map +1 -0
  5. package/dist/ai-models.d.ts +1 -1
  6. package/dist/ai-models.d.ts.map +1 -1
  7. package/dist/ai-models.js +12 -0
  8. package/dist/ai-models.js.map +1 -1
  9. package/dist/api-schema.d.ts +2 -2
  10. package/dist/bubble-definition-schema.d.ts +559 -75
  11. package/dist/bubble-definition-schema.d.ts.map +1 -1
  12. package/dist/bubble-definition-schema.js +186 -0
  13. package/dist/bubble-definition-schema.js.map +1 -1
  14. package/dist/bubbleflow-execution-schema.d.ts +594 -147
  15. package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
  16. package/dist/bubbleflow-execution-schema.js +46 -26
  17. package/dist/bubbleflow-execution-schema.js.map +1 -1
  18. package/dist/bubbleflow-generation-prompts.d.ts +5 -16
  19. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
  20. package/dist/bubbleflow-generation-prompts.js +14 -54
  21. package/dist/bubbleflow-generation-prompts.js.map +1 -1
  22. package/dist/bubbleflow-schema.d.ts +1081 -92
  23. package/dist/bubbleflow-schema.d.ts.map +1 -1
  24. package/dist/bubbleflow-schema.js +94 -4
  25. package/dist/bubbleflow-schema.js.map +1 -1
  26. package/dist/coffee.d.ts +2201 -0
  27. package/dist/coffee.d.ts.map +1 -0
  28. package/dist/coffee.js +257 -0
  29. package/dist/coffee.js.map +1 -0
  30. package/dist/credential-schema.d.ts +172 -3
  31. package/dist/credential-schema.d.ts.map +1 -1
  32. package/dist/credential-schema.js +509 -5
  33. package/dist/credential-schema.js.map +1 -1
  34. package/dist/database-definition-schema.d.ts +8 -8
  35. package/dist/error-enhancer.d.ts +6 -0
  36. package/dist/error-enhancer.d.ts.map +1 -0
  37. package/dist/error-enhancer.js +88 -0
  38. package/dist/error-enhancer.js.map +1 -0
  39. package/dist/generate-bubbleflow-schema.d.ts +974 -52
  40. package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
  41. package/dist/generate-bubbleflow-schema.js +23 -7
  42. package/dist/generate-bubbleflow-schema.js.map +1 -1
  43. package/dist/hash-utils.d.ts +26 -0
  44. package/dist/hash-utils.d.ts.map +1 -0
  45. package/dist/hash-utils.js +37 -0
  46. package/dist/hash-utils.js.map +1 -0
  47. package/dist/index.d.ts +7 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +7 -0
  50. package/dist/index.js.map +1 -1
  51. package/dist/milk-tea.d.ts +22 -24
  52. package/dist/milk-tea.d.ts.map +1 -1
  53. package/dist/milk-tea.js +1 -4
  54. package/dist/milk-tea.js.map +1 -1
  55. package/dist/oauth-schema.d.ts +2 -2
  56. package/dist/param-utils.d.ts +10 -0
  57. package/dist/param-utils.d.ts.map +1 -0
  58. package/dist/param-utils.js +13 -0
  59. package/dist/param-utils.js.map +1 -0
  60. package/dist/pearl.d.ts +96 -29
  61. package/dist/pearl.d.ts.map +1 -1
  62. package/dist/pearl.js +20 -9
  63. package/dist/pearl.js.map +1 -1
  64. package/dist/rice.d.ts +100 -0
  65. package/dist/rice.d.ts.map +1 -0
  66. package/dist/rice.js +65 -0
  67. package/dist/rice.js.map +1 -0
  68. package/dist/storage-utils.d.ts +19 -0
  69. package/dist/storage-utils.d.ts.map +1 -0
  70. package/dist/storage-utils.js +54 -0
  71. package/dist/storage-utils.js.map +1 -0
  72. package/dist/streaming-events.d.ts +36 -2
  73. package/dist/streaming-events.d.ts.map +1 -1
  74. package/dist/subscription-status-schema.d.ts +192 -32
  75. package/dist/subscription-status-schema.d.ts.map +1 -1
  76. package/dist/subscription-status-schema.js +85 -7
  77. package/dist/subscription-status-schema.js.map +1 -1
  78. package/dist/trigger.d.ts +45 -51
  79. package/dist/trigger.d.ts.map +1 -1
  80. package/dist/trigger.js +0 -2
  81. package/dist/trigger.js.map +1 -1
  82. package/dist/types.d.ts +13 -2
  83. package/dist/types.d.ts.map +1 -1
  84. package/dist/types.js +18 -0
  85. package/dist/types.js.map +1 -1
  86. package/package.json +1 -1
  87. package/dist/general-chat.d.ts +0 -81
  88. package/dist/general-chat.d.ts.map +0 -1
  89. package/dist/general-chat.js +0 -58
  90. package/dist/general-chat.js.map +0 -1
  91. package/dist/generation-result-schema.d.ts +0 -73
  92. package/dist/generation-result-schema.d.ts.map +0 -1
  93. package/dist/generation-result-schema.js +0 -55
  94. package/dist/generation-result-schema.js.map +0 -1
  95. package/dist/mock-data-generator.test.d.ts +0 -2
  96. package/dist/mock-data-generator.test.d.ts.map +0 -1
  97. package/dist/mock-data-generator.test.js +0 -176
  98. package/dist/mock-data-generator.test.js.map +0 -1
@@ -3,10 +3,676 @@ import { BubbleParameterType } from './bubble-definition-schema';
3
3
  import { CredentialType } from './types';
4
4
  export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
5
5
  prompt: z.ZodString;
6
+ flowId: z.ZodOptional<z.ZodNumber>;
7
+ messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ id: z.ZodString;
9
+ timestamp: z.ZodString;
10
+ } & {
11
+ type: z.ZodLiteral<"user">;
12
+ content: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: "user";
15
+ content: string;
16
+ id: string;
17
+ timestamp: string;
18
+ }, {
19
+ type: "user";
20
+ content: string;
21
+ id: string;
22
+ timestamp: string;
23
+ }>, z.ZodObject<{
24
+ id: z.ZodString;
25
+ timestamp: z.ZodString;
26
+ } & {
27
+ type: z.ZodLiteral<"assistant">;
28
+ content: z.ZodString;
29
+ code: z.ZodOptional<z.ZodString>;
30
+ resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
31
+ bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: "assistant";
34
+ content: string;
35
+ id: string;
36
+ timestamp: string;
37
+ code?: string | undefined;
38
+ bubbleParameters?: Record<string, unknown> | undefined;
39
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
40
+ }, {
41
+ type: "assistant";
42
+ content: string;
43
+ id: string;
44
+ timestamp: string;
45
+ code?: string | undefined;
46
+ bubbleParameters?: Record<string, unknown> | undefined;
47
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
48
+ }>, z.ZodObject<{
49
+ id: z.ZodString;
50
+ timestamp: z.ZodString;
51
+ } & {
52
+ type: z.ZodLiteral<"clarification_request">;
53
+ questions: z.ZodArray<z.ZodObject<{
54
+ id: z.ZodString;
55
+ question: z.ZodString;
56
+ choices: z.ZodArray<z.ZodObject<{
57
+ id: z.ZodString;
58
+ label: z.ZodString;
59
+ description: z.ZodOptional<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ id: string;
62
+ label: string;
63
+ description?: string | undefined;
64
+ }, {
65
+ id: string;
66
+ label: string;
67
+ description?: string | undefined;
68
+ }>, "many">;
69
+ context: z.ZodOptional<z.ZodString>;
70
+ allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ id: string;
73
+ question: string;
74
+ choices: {
75
+ id: string;
76
+ label: string;
77
+ description?: string | undefined;
78
+ }[];
79
+ allowMultiple: boolean;
80
+ context?: string | undefined;
81
+ }, {
82
+ id: string;
83
+ question: string;
84
+ choices: {
85
+ id: string;
86
+ label: string;
87
+ description?: string | undefined;
88
+ }[];
89
+ context?: string | undefined;
90
+ allowMultiple?: boolean | undefined;
91
+ }>, "many">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "clarification_request";
94
+ id: string;
95
+ timestamp: string;
96
+ questions: {
97
+ id: string;
98
+ question: string;
99
+ choices: {
100
+ id: string;
101
+ label: string;
102
+ description?: string | undefined;
103
+ }[];
104
+ allowMultiple: boolean;
105
+ context?: string | undefined;
106
+ }[];
107
+ }, {
108
+ type: "clarification_request";
109
+ id: string;
110
+ timestamp: string;
111
+ questions: {
112
+ id: string;
113
+ question: string;
114
+ choices: {
115
+ id: string;
116
+ label: string;
117
+ description?: string | undefined;
118
+ }[];
119
+ context?: string | undefined;
120
+ allowMultiple?: boolean | undefined;
121
+ }[];
122
+ }>, z.ZodObject<{
123
+ id: z.ZodString;
124
+ timestamp: z.ZodString;
125
+ } & {
126
+ type: z.ZodLiteral<"clarification_response">;
127
+ answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
128
+ originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
+ id: z.ZodString;
130
+ question: z.ZodString;
131
+ choices: z.ZodArray<z.ZodObject<{
132
+ id: z.ZodString;
133
+ label: z.ZodString;
134
+ description: z.ZodOptional<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id: string;
137
+ label: string;
138
+ description?: string | undefined;
139
+ }, {
140
+ id: string;
141
+ label: string;
142
+ description?: string | undefined;
143
+ }>, "many">;
144
+ context: z.ZodOptional<z.ZodString>;
145
+ allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ question: string;
149
+ choices: {
150
+ id: string;
151
+ label: string;
152
+ description?: string | undefined;
153
+ }[];
154
+ allowMultiple: boolean;
155
+ context?: string | undefined;
156
+ }, {
157
+ id: string;
158
+ question: string;
159
+ choices: {
160
+ id: string;
161
+ label: string;
162
+ description?: string | undefined;
163
+ }[];
164
+ context?: string | undefined;
165
+ allowMultiple?: boolean | undefined;
166
+ }>, "many">>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: "clarification_response";
169
+ id: string;
170
+ timestamp: string;
171
+ answers: Record<string, string[]>;
172
+ originalQuestions?: {
173
+ id: string;
174
+ question: string;
175
+ choices: {
176
+ id: string;
177
+ label: string;
178
+ description?: string | undefined;
179
+ }[];
180
+ allowMultiple: boolean;
181
+ context?: string | undefined;
182
+ }[] | undefined;
183
+ }, {
184
+ type: "clarification_response";
185
+ id: string;
186
+ timestamp: string;
187
+ answers: Record<string, string[]>;
188
+ originalQuestions?: {
189
+ id: string;
190
+ question: string;
191
+ choices: {
192
+ id: string;
193
+ label: string;
194
+ description?: string | undefined;
195
+ }[];
196
+ context?: string | undefined;
197
+ allowMultiple?: boolean | undefined;
198
+ }[] | undefined;
199
+ }>, z.ZodObject<{
200
+ id: z.ZodString;
201
+ timestamp: z.ZodString;
202
+ } & {
203
+ type: z.ZodLiteral<"context_request">;
204
+ request: z.ZodObject<{
205
+ flowId: z.ZodString;
206
+ flowCode: z.ZodString;
207
+ requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
208
+ description: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ description: string;
211
+ flowId: string;
212
+ requiredCredentials: CredentialType[];
213
+ flowCode: string;
214
+ }, {
215
+ description: string;
216
+ flowId: string;
217
+ requiredCredentials: CredentialType[];
218
+ flowCode: string;
219
+ }>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ type: "context_request";
222
+ id: string;
223
+ timestamp: string;
224
+ request: {
225
+ description: string;
226
+ flowId: string;
227
+ requiredCredentials: CredentialType[];
228
+ flowCode: string;
229
+ };
230
+ }, {
231
+ type: "context_request";
232
+ id: string;
233
+ timestamp: string;
234
+ request: {
235
+ description: string;
236
+ flowId: string;
237
+ requiredCredentials: CredentialType[];
238
+ flowCode: string;
239
+ };
240
+ }>, z.ZodObject<{
241
+ id: z.ZodString;
242
+ timestamp: z.ZodString;
243
+ } & {
244
+ type: z.ZodLiteral<"context_response">;
245
+ answer: z.ZodObject<{
246
+ flowId: z.ZodString;
247
+ status: z.ZodEnum<["success", "rejected", "error"]>;
248
+ result: z.ZodOptional<z.ZodUnknown>;
249
+ error: z.ZodOptional<z.ZodString>;
250
+ originalRequest: z.ZodOptional<z.ZodObject<{
251
+ flowId: z.ZodString;
252
+ flowCode: z.ZodString;
253
+ requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
254
+ description: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ description: string;
257
+ flowId: string;
258
+ requiredCredentials: CredentialType[];
259
+ flowCode: string;
260
+ }, {
261
+ description: string;
262
+ flowId: string;
263
+ requiredCredentials: CredentialType[];
264
+ flowCode: string;
265
+ }>>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ status: "success" | "error" | "rejected";
268
+ flowId: string;
269
+ result?: unknown;
270
+ error?: string | undefined;
271
+ originalRequest?: {
272
+ description: string;
273
+ flowId: string;
274
+ requiredCredentials: CredentialType[];
275
+ flowCode: string;
276
+ } | undefined;
277
+ }, {
278
+ status: "success" | "error" | "rejected";
279
+ flowId: string;
280
+ result?: unknown;
281
+ error?: string | undefined;
282
+ originalRequest?: {
283
+ description: string;
284
+ flowId: string;
285
+ requiredCredentials: CredentialType[];
286
+ flowCode: string;
287
+ } | undefined;
288
+ }>;
289
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ type: "context_response";
292
+ id: string;
293
+ timestamp: string;
294
+ answer: {
295
+ status: "success" | "error" | "rejected";
296
+ flowId: string;
297
+ result?: unknown;
298
+ error?: string | undefined;
299
+ originalRequest?: {
300
+ description: string;
301
+ flowId: string;
302
+ requiredCredentials: CredentialType[];
303
+ flowCode: string;
304
+ } | undefined;
305
+ };
306
+ credentialTypes?: string[] | undefined;
307
+ }, {
308
+ type: "context_response";
309
+ id: string;
310
+ timestamp: string;
311
+ answer: {
312
+ status: "success" | "error" | "rejected";
313
+ flowId: string;
314
+ result?: unknown;
315
+ error?: string | undefined;
316
+ originalRequest?: {
317
+ description: string;
318
+ flowId: string;
319
+ requiredCredentials: CredentialType[];
320
+ flowCode: string;
321
+ } | undefined;
322
+ };
323
+ credentialTypes?: string[] | undefined;
324
+ }>, z.ZodObject<{
325
+ id: z.ZodString;
326
+ timestamp: z.ZodString;
327
+ } & {
328
+ type: z.ZodLiteral<"plan">;
329
+ plan: z.ZodObject<{
330
+ summary: z.ZodString;
331
+ steps: z.ZodArray<z.ZodObject<{
332
+ title: z.ZodString;
333
+ description: z.ZodString;
334
+ bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ description: string;
337
+ title: string;
338
+ bubblesUsed?: string[] | undefined;
339
+ }, {
340
+ description: string;
341
+ title: string;
342
+ bubblesUsed?: string[] | undefined;
343
+ }>, "many">;
344
+ estimatedBubbles: z.ZodArray<z.ZodString, "many">;
345
+ }, "strip", z.ZodTypeAny, {
346
+ summary: string;
347
+ steps: {
348
+ description: string;
349
+ title: string;
350
+ bubblesUsed?: string[] | undefined;
351
+ }[];
352
+ estimatedBubbles: string[];
353
+ }, {
354
+ summary: string;
355
+ steps: {
356
+ description: string;
357
+ title: string;
358
+ bubblesUsed?: string[] | undefined;
359
+ }[];
360
+ estimatedBubbles: string[];
361
+ }>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ type: "plan";
364
+ id: string;
365
+ timestamp: string;
366
+ plan: {
367
+ summary: string;
368
+ steps: {
369
+ description: string;
370
+ title: string;
371
+ bubblesUsed?: string[] | undefined;
372
+ }[];
373
+ estimatedBubbles: string[];
374
+ };
375
+ }, {
376
+ type: "plan";
377
+ id: string;
378
+ timestamp: string;
379
+ plan: {
380
+ summary: string;
381
+ steps: {
382
+ description: string;
383
+ title: string;
384
+ bubblesUsed?: string[] | undefined;
385
+ }[];
386
+ estimatedBubbles: string[];
387
+ };
388
+ }>, z.ZodObject<{
389
+ id: z.ZodString;
390
+ timestamp: z.ZodString;
391
+ } & {
392
+ type: z.ZodLiteral<"plan_approval">;
393
+ approved: z.ZodBoolean;
394
+ comment: z.ZodOptional<z.ZodString>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ type: "plan_approval";
397
+ id: string;
398
+ timestamp: string;
399
+ approved: boolean;
400
+ comment?: string | undefined;
401
+ }, {
402
+ type: "plan_approval";
403
+ id: string;
404
+ timestamp: string;
405
+ approved: boolean;
406
+ comment?: string | undefined;
407
+ }>, z.ZodObject<{
408
+ id: z.ZodString;
409
+ timestamp: z.ZodString;
410
+ } & {
411
+ type: z.ZodLiteral<"system">;
412
+ content: z.ZodString;
413
+ }, "strip", z.ZodTypeAny, {
414
+ type: "system";
415
+ content: string;
416
+ id: string;
417
+ timestamp: string;
418
+ }, {
419
+ type: "system";
420
+ content: string;
421
+ id: string;
422
+ timestamp: string;
423
+ }>, z.ZodObject<{
424
+ id: z.ZodString;
425
+ timestamp: z.ZodString;
426
+ } & {
427
+ type: z.ZodLiteral<"tool_result">;
428
+ toolName: z.ZodString;
429
+ toolCallId: z.ZodString;
430
+ input: z.ZodUnknown;
431
+ output: z.ZodUnknown;
432
+ duration: z.ZodNumber;
433
+ success: z.ZodBoolean;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "tool_result";
436
+ duration: number;
437
+ id: string;
438
+ toolCallId: string;
439
+ timestamp: string;
440
+ success: boolean;
441
+ toolName: string;
442
+ input?: unknown;
443
+ output?: unknown;
444
+ }, {
445
+ type: "tool_result";
446
+ duration: number;
447
+ id: string;
448
+ toolCallId: string;
449
+ timestamp: string;
450
+ success: boolean;
451
+ toolName: string;
452
+ input?: unknown;
453
+ output?: unknown;
454
+ }>]>, "many">>;
455
+ planContext: z.ZodOptional<z.ZodString>;
6
456
  }, "strip", z.ZodTypeAny, {
7
457
  prompt: string;
458
+ flowId?: number | undefined;
459
+ messages?: ({
460
+ type: "user";
461
+ content: string;
462
+ id: string;
463
+ timestamp: string;
464
+ } | {
465
+ type: "assistant";
466
+ content: string;
467
+ id: string;
468
+ timestamp: string;
469
+ code?: string | undefined;
470
+ bubbleParameters?: Record<string, unknown> | undefined;
471
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
472
+ } | {
473
+ type: "clarification_request";
474
+ id: string;
475
+ timestamp: string;
476
+ questions: {
477
+ id: string;
478
+ question: string;
479
+ choices: {
480
+ id: string;
481
+ label: string;
482
+ description?: string | undefined;
483
+ }[];
484
+ allowMultiple: boolean;
485
+ context?: string | undefined;
486
+ }[];
487
+ } | {
488
+ type: "clarification_response";
489
+ id: string;
490
+ timestamp: string;
491
+ answers: Record<string, string[]>;
492
+ originalQuestions?: {
493
+ id: string;
494
+ question: string;
495
+ choices: {
496
+ id: string;
497
+ label: string;
498
+ description?: string | undefined;
499
+ }[];
500
+ allowMultiple: boolean;
501
+ context?: string | undefined;
502
+ }[] | undefined;
503
+ } | {
504
+ type: "context_request";
505
+ id: string;
506
+ timestamp: string;
507
+ request: {
508
+ description: string;
509
+ flowId: string;
510
+ requiredCredentials: CredentialType[];
511
+ flowCode: string;
512
+ };
513
+ } | {
514
+ type: "context_response";
515
+ id: string;
516
+ timestamp: string;
517
+ answer: {
518
+ status: "success" | "error" | "rejected";
519
+ flowId: string;
520
+ result?: unknown;
521
+ error?: string | undefined;
522
+ originalRequest?: {
523
+ description: string;
524
+ flowId: string;
525
+ requiredCredentials: CredentialType[];
526
+ flowCode: string;
527
+ } | undefined;
528
+ };
529
+ credentialTypes?: string[] | undefined;
530
+ } | {
531
+ type: "plan";
532
+ id: string;
533
+ timestamp: string;
534
+ plan: {
535
+ summary: string;
536
+ steps: {
537
+ description: string;
538
+ title: string;
539
+ bubblesUsed?: string[] | undefined;
540
+ }[];
541
+ estimatedBubbles: string[];
542
+ };
543
+ } | {
544
+ type: "plan_approval";
545
+ id: string;
546
+ timestamp: string;
547
+ approved: boolean;
548
+ comment?: string | undefined;
549
+ } | {
550
+ type: "system";
551
+ content: string;
552
+ id: string;
553
+ timestamp: string;
554
+ } | {
555
+ type: "tool_result";
556
+ duration: number;
557
+ id: string;
558
+ toolCallId: string;
559
+ timestamp: string;
560
+ success: boolean;
561
+ toolName: string;
562
+ input?: unknown;
563
+ output?: unknown;
564
+ })[] | undefined;
565
+ planContext?: string | undefined;
8
566
  }, {
9
567
  prompt: string;
568
+ flowId?: number | undefined;
569
+ messages?: ({
570
+ type: "user";
571
+ content: string;
572
+ id: string;
573
+ timestamp: string;
574
+ } | {
575
+ type: "assistant";
576
+ content: string;
577
+ id: string;
578
+ timestamp: string;
579
+ code?: string | undefined;
580
+ bubbleParameters?: Record<string, unknown> | undefined;
581
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
582
+ } | {
583
+ type: "clarification_request";
584
+ id: string;
585
+ timestamp: string;
586
+ questions: {
587
+ id: string;
588
+ question: string;
589
+ choices: {
590
+ id: string;
591
+ label: string;
592
+ description?: string | undefined;
593
+ }[];
594
+ context?: string | undefined;
595
+ allowMultiple?: boolean | undefined;
596
+ }[];
597
+ } | {
598
+ type: "clarification_response";
599
+ id: string;
600
+ timestamp: string;
601
+ answers: Record<string, string[]>;
602
+ originalQuestions?: {
603
+ id: string;
604
+ question: string;
605
+ choices: {
606
+ id: string;
607
+ label: string;
608
+ description?: string | undefined;
609
+ }[];
610
+ context?: string | undefined;
611
+ allowMultiple?: boolean | undefined;
612
+ }[] | undefined;
613
+ } | {
614
+ type: "context_request";
615
+ id: string;
616
+ timestamp: string;
617
+ request: {
618
+ description: string;
619
+ flowId: string;
620
+ requiredCredentials: CredentialType[];
621
+ flowCode: string;
622
+ };
623
+ } | {
624
+ type: "context_response";
625
+ id: string;
626
+ timestamp: string;
627
+ answer: {
628
+ status: "success" | "error" | "rejected";
629
+ flowId: string;
630
+ result?: unknown;
631
+ error?: string | undefined;
632
+ originalRequest?: {
633
+ description: string;
634
+ flowId: string;
635
+ requiredCredentials: CredentialType[];
636
+ flowCode: string;
637
+ } | undefined;
638
+ };
639
+ credentialTypes?: string[] | undefined;
640
+ } | {
641
+ type: "plan";
642
+ id: string;
643
+ timestamp: string;
644
+ plan: {
645
+ summary: string;
646
+ steps: {
647
+ description: string;
648
+ title: string;
649
+ bubblesUsed?: string[] | undefined;
650
+ }[];
651
+ estimatedBubbles: string[];
652
+ };
653
+ } | {
654
+ type: "plan_approval";
655
+ id: string;
656
+ timestamp: string;
657
+ approved: boolean;
658
+ comment?: string | undefined;
659
+ } | {
660
+ type: "system";
661
+ content: string;
662
+ id: string;
663
+ timestamp: string;
664
+ } | {
665
+ type: "tool_result";
666
+ duration: number;
667
+ id: string;
668
+ toolCallId: string;
669
+ timestamp: string;
670
+ success: boolean;
671
+ toolName: string;
672
+ input?: unknown;
673
+ output?: unknown;
674
+ })[] | undefined;
675
+ planContext?: string | undefined;
10
676
  }>;
11
677
  export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
12
678
  generatedCode: z.ZodString;
@@ -15,7 +681,7 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
15
681
  error: z.ZodString;
16
682
  bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
17
683
  variableName: z.ZodString;
18
- bubbleName: z.ZodString;
684
+ bubbleName: z.ZodType<import("./types").BubbleName>;
19
685
  className: z.ZodString;
20
686
  parameters: z.ZodArray<z.ZodObject<{
21
687
  location: z.ZodOptional<z.ZodObject<{
@@ -38,9 +704,10 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
38
704
  name: z.ZodString;
39
705
  value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
40
706
  type: z.ZodNativeEnum<typeof BubbleParameterType>;
707
+ source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
41
708
  }, "strip", z.ZodTypeAny, {
42
- value: string | number | boolean | unknown[] | Record<string, unknown>;
43
709
  type: BubbleParameterType;
710
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
44
711
  name: string;
45
712
  location?: {
46
713
  startLine: number;
@@ -49,9 +716,10 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
49
716
  endCol: number;
50
717
  } | undefined;
51
718
  variableId?: number | undefined;
719
+ source?: "object-property" | "first-arg" | "spread" | undefined;
52
720
  }, {
53
- value: string | number | boolean | unknown[] | Record<string, unknown>;
54
721
  type: BubbleParameterType;
722
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
55
723
  name: string;
56
724
  location?: {
57
725
  startLine: number;
@@ -60,6 +728,7 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
60
728
  endCol: number;
61
729
  } | undefined;
62
730
  variableId?: number | undefined;
731
+ source?: "object-property" | "first-arg" | "spread" | undefined;
63
732
  }>, "many">;
64
733
  hasAwait: z.ZodBoolean;
65
734
  hasActionCall: z.ZodBoolean;
@@ -83,6 +752,11 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
83
752
  endLine: number;
84
753
  endCol: number;
85
754
  }>;
755
+ description: z.ZodOptional<z.ZodString>;
756
+ invocationCallSiteKey: z.ZodOptional<z.ZodString>;
757
+ clonedFromVariableId: z.ZodOptional<z.ZodNumber>;
758
+ isInsideCustomTool: z.ZodOptional<z.ZodBoolean>;
759
+ containingCustomToolId: z.ZodOptional<z.ZodString>;
86
760
  }, "strip", z.ZodTypeAny, {
87
761
  location: {
88
762
  startLine: number;
@@ -92,11 +766,11 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
92
766
  };
93
767
  variableId: number;
94
768
  variableName: string;
95
- bubbleName: string;
769
+ nodeType: "unknown" | "tool" | "service" | "workflow";
96
770
  className: string;
97
771
  parameters: {
98
- value: string | number | boolean | unknown[] | Record<string, unknown>;
99
772
  type: BubbleParameterType;
773
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
100
774
  name: string;
101
775
  location?: {
102
776
  startLine: number;
@@ -105,12 +779,18 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
105
779
  endCol: number;
106
780
  } | undefined;
107
781
  variableId?: number | undefined;
782
+ source?: "object-property" | "first-arg" | "spread" | undefined;
108
783
  }[];
109
784
  hasAwait: boolean;
110
785
  hasActionCall: boolean;
111
- nodeType: "unknown" | "service" | "tool" | "workflow";
786
+ bubbleName: import("./types").BubbleName;
787
+ description?: string | undefined;
112
788
  dependencies?: import("./types").BubbleName[] | undefined;
113
789
  dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
790
+ invocationCallSiteKey?: string | undefined;
791
+ clonedFromVariableId?: number | undefined;
792
+ isInsideCustomTool?: boolean | undefined;
793
+ containingCustomToolId?: string | undefined;
114
794
  }, {
115
795
  location: {
116
796
  startLine: number;
@@ -120,11 +800,11 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
120
800
  };
121
801
  variableId: number;
122
802
  variableName: string;
123
- bubbleName: string;
803
+ nodeType: "unknown" | "tool" | "service" | "workflow";
124
804
  className: string;
125
805
  parameters: {
126
- value: string | number | boolean | unknown[] | Record<string, unknown>;
127
806
  type: BubbleParameterType;
807
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
128
808
  name: string;
129
809
  location?: {
130
810
  startLine: number;
@@ -133,12 +813,18 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
133
813
  endCol: number;
134
814
  } | undefined;
135
815
  variableId?: number | undefined;
816
+ source?: "object-property" | "first-arg" | "spread" | undefined;
136
817
  }[];
137
818
  hasAwait: boolean;
138
819
  hasActionCall: boolean;
139
- nodeType: "unknown" | "service" | "tool" | "workflow";
820
+ bubbleName: import("./types").BubbleName;
821
+ description?: string | undefined;
140
822
  dependencies?: import("./types").BubbleName[] | undefined;
141
823
  dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
824
+ invocationCallSiteKey?: string | undefined;
825
+ clonedFromVariableId?: number | undefined;
826
+ isInsideCustomTool?: boolean | undefined;
827
+ containingCustomToolId?: string | undefined;
142
828
  }>>;
143
829
  requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
144
830
  }, "strip", z.ZodTypeAny, {
@@ -154,11 +840,11 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
154
840
  };
155
841
  variableId: number;
156
842
  variableName: string;
157
- bubbleName: string;
843
+ nodeType: "unknown" | "tool" | "service" | "workflow";
158
844
  className: string;
159
845
  parameters: {
160
- value: string | number | boolean | unknown[] | Record<string, unknown>;
161
846
  type: BubbleParameterType;
847
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
162
848
  name: string;
163
849
  location?: {
164
850
  startLine: number;
@@ -167,12 +853,18 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
167
853
  endCol: number;
168
854
  } | undefined;
169
855
  variableId?: number | undefined;
856
+ source?: "object-property" | "first-arg" | "spread" | undefined;
170
857
  }[];
171
858
  hasAwait: boolean;
172
859
  hasActionCall: boolean;
173
- nodeType: "unknown" | "service" | "tool" | "workflow";
860
+ bubbleName: import("./types").BubbleName;
861
+ description?: string | undefined;
174
862
  dependencies?: import("./types").BubbleName[] | undefined;
175
863
  dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
864
+ invocationCallSiteKey?: string | undefined;
865
+ clonedFromVariableId?: number | undefined;
866
+ isInsideCustomTool?: boolean | undefined;
867
+ containingCustomToolId?: string | undefined;
176
868
  }>;
177
869
  generatedCode: string;
178
870
  isValid: boolean;
@@ -189,11 +881,11 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
189
881
  };
190
882
  variableId: number;
191
883
  variableName: string;
192
- bubbleName: string;
884
+ nodeType: "unknown" | "tool" | "service" | "workflow";
193
885
  className: string;
194
886
  parameters: {
195
- value: string | number | boolean | unknown[] | Record<string, unknown>;
196
887
  type: BubbleParameterType;
888
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
197
889
  name: string;
198
890
  location?: {
199
891
  startLine: number;
@@ -202,12 +894,18 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
202
894
  endCol: number;
203
895
  } | undefined;
204
896
  variableId?: number | undefined;
897
+ source?: "object-property" | "first-arg" | "spread" | undefined;
205
898
  }[];
206
899
  hasAwait: boolean;
207
900
  hasActionCall: boolean;
208
- nodeType: "unknown" | "service" | "tool" | "workflow";
901
+ bubbleName: import("./types").BubbleName;
902
+ description?: string | undefined;
209
903
  dependencies?: import("./types").BubbleName[] | undefined;
210
904
  dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
905
+ invocationCallSiteKey?: string | undefined;
906
+ clonedFromVariableId?: number | undefined;
907
+ isInsideCustomTool?: boolean | undefined;
908
+ containingCustomToolId?: string | undefined;
211
909
  }>;
212
910
  generatedCode: string;
213
911
  isValid: boolean;
@@ -225,25 +923,177 @@ export declare const GenerationResultSchema: z.ZodObject<{
225
923
  toolCalls: z.ZodArray<z.ZodUnknown, "many">;
226
924
  summary: z.ZodDefault<z.ZodString>;
227
925
  inputsSchema: z.ZodDefault<z.ZodString>;
228
- bubblesUsed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
229
- tokenUsage: z.ZodOptional<z.ZodObject<{
230
- inputTokens: z.ZodNumber;
231
- outputTokens: z.ZodNumber;
232
- totalTokens: z.ZodNumber;
233
- modelName: z.ZodOptional<z.ZodString>;
926
+ serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{
927
+ service: z.ZodNativeEnum<typeof CredentialType>;
928
+ subService: z.ZodOptional<z.ZodString>;
929
+ unit: z.ZodString;
930
+ usage: z.ZodNumber;
931
+ unitCost: z.ZodNumber;
932
+ totalCost: z.ZodNumber;
234
933
  }, "strip", z.ZodTypeAny, {
235
- inputTokens: number;
236
- outputTokens: number;
237
- totalTokens: number;
238
- modelName?: string | undefined;
934
+ service: CredentialType;
935
+ unit: string;
936
+ usage: number;
937
+ unitCost: number;
938
+ totalCost: number;
939
+ subService?: string | undefined;
239
940
  }, {
240
- inputTokens: number;
241
- outputTokens: number;
242
- totalTokens: number;
243
- modelName?: string | undefined;
244
- }>>;
941
+ service: CredentialType;
942
+ unit: string;
943
+ usage: number;
944
+ unitCost: number;
945
+ totalCost: number;
946
+ subService?: string | undefined;
947
+ }>, "many">>;
245
948
  bubbleCount: z.ZodOptional<z.ZodNumber>;
246
949
  codeLength: z.ZodOptional<z.ZodNumber>;
950
+ bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodObject<{
951
+ variableName: z.ZodString;
952
+ bubbleName: z.ZodType<import("./types").BubbleName>;
953
+ className: z.ZodString;
954
+ parameters: z.ZodArray<z.ZodObject<{
955
+ location: z.ZodOptional<z.ZodObject<{
956
+ startLine: z.ZodNumber;
957
+ startCol: z.ZodNumber;
958
+ endLine: z.ZodNumber;
959
+ endCol: z.ZodNumber;
960
+ }, "strip", z.ZodTypeAny, {
961
+ startLine: number;
962
+ startCol: number;
963
+ endLine: number;
964
+ endCol: number;
965
+ }, {
966
+ startLine: number;
967
+ startCol: number;
968
+ endLine: number;
969
+ endCol: number;
970
+ }>>;
971
+ variableId: z.ZodOptional<z.ZodNumber>;
972
+ name: z.ZodString;
973
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
974
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
975
+ source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ type: BubbleParameterType;
978
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
979
+ name: string;
980
+ location?: {
981
+ startLine: number;
982
+ startCol: number;
983
+ endLine: number;
984
+ endCol: number;
985
+ } | undefined;
986
+ variableId?: number | undefined;
987
+ source?: "object-property" | "first-arg" | "spread" | undefined;
988
+ }, {
989
+ type: BubbleParameterType;
990
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
991
+ name: string;
992
+ location?: {
993
+ startLine: number;
994
+ startCol: number;
995
+ endLine: number;
996
+ endCol: number;
997
+ } | undefined;
998
+ variableId?: number | undefined;
999
+ source?: "object-property" | "first-arg" | "spread" | undefined;
1000
+ }>, "many">;
1001
+ hasAwait: z.ZodBoolean;
1002
+ hasActionCall: z.ZodBoolean;
1003
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
1004
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
1005
+ variableId: z.ZodNumber;
1006
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
1007
+ location: z.ZodObject<{
1008
+ startLine: z.ZodNumber;
1009
+ startCol: z.ZodNumber;
1010
+ endLine: z.ZodNumber;
1011
+ endCol: z.ZodNumber;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ startLine: number;
1014
+ startCol: number;
1015
+ endLine: number;
1016
+ endCol: number;
1017
+ }, {
1018
+ startLine: number;
1019
+ startCol: number;
1020
+ endLine: number;
1021
+ endCol: number;
1022
+ }>;
1023
+ description: z.ZodOptional<z.ZodString>;
1024
+ invocationCallSiteKey: z.ZodOptional<z.ZodString>;
1025
+ clonedFromVariableId: z.ZodOptional<z.ZodNumber>;
1026
+ isInsideCustomTool: z.ZodOptional<z.ZodBoolean>;
1027
+ containingCustomToolId: z.ZodOptional<z.ZodString>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ location: {
1030
+ startLine: number;
1031
+ startCol: number;
1032
+ endLine: number;
1033
+ endCol: number;
1034
+ };
1035
+ variableId: number;
1036
+ variableName: string;
1037
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1038
+ className: string;
1039
+ parameters: {
1040
+ type: BubbleParameterType;
1041
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1042
+ name: string;
1043
+ location?: {
1044
+ startLine: number;
1045
+ startCol: number;
1046
+ endLine: number;
1047
+ endCol: number;
1048
+ } | undefined;
1049
+ variableId?: number | undefined;
1050
+ source?: "object-property" | "first-arg" | "spread" | undefined;
1051
+ }[];
1052
+ hasAwait: boolean;
1053
+ hasActionCall: boolean;
1054
+ bubbleName: import("./types").BubbleName;
1055
+ description?: string | undefined;
1056
+ dependencies?: import("./types").BubbleName[] | undefined;
1057
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1058
+ invocationCallSiteKey?: string | undefined;
1059
+ clonedFromVariableId?: number | undefined;
1060
+ isInsideCustomTool?: boolean | undefined;
1061
+ containingCustomToolId?: string | undefined;
1062
+ }, {
1063
+ location: {
1064
+ startLine: number;
1065
+ startCol: number;
1066
+ endLine: number;
1067
+ endCol: number;
1068
+ };
1069
+ variableId: number;
1070
+ variableName: string;
1071
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1072
+ className: string;
1073
+ parameters: {
1074
+ type: BubbleParameterType;
1075
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1076
+ name: string;
1077
+ location?: {
1078
+ startLine: number;
1079
+ startCol: number;
1080
+ endLine: number;
1081
+ endCol: number;
1082
+ } | undefined;
1083
+ variableId?: number | undefined;
1084
+ source?: "object-property" | "first-arg" | "spread" | undefined;
1085
+ }[];
1086
+ hasAwait: boolean;
1087
+ hasActionCall: boolean;
1088
+ bubbleName: import("./types").BubbleName;
1089
+ description?: string | undefined;
1090
+ dependencies?: import("./types").BubbleName[] | undefined;
1091
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1092
+ invocationCallSiteKey?: string | undefined;
1093
+ clonedFromVariableId?: number | undefined;
1094
+ isInsideCustomTool?: boolean | undefined;
1095
+ containingCustomToolId?: string | undefined;
1096
+ }>>>;
247
1097
  }, "strip", z.ZodTypeAny, {
248
1098
  success: boolean;
249
1099
  error: string;
@@ -252,34 +1102,106 @@ export declare const GenerationResultSchema: z.ZodObject<{
252
1102
  isValid: boolean;
253
1103
  toolCalls: unknown[];
254
1104
  inputsSchema: string;
255
- bubblesUsed: string[];
256
- tokenUsage?: {
257
- inputTokens: number;
258
- outputTokens: number;
259
- totalTokens: number;
260
- modelName?: string | undefined;
261
- } | undefined;
1105
+ serviceUsage?: {
1106
+ service: CredentialType;
1107
+ unit: string;
1108
+ usage: number;
1109
+ unitCost: number;
1110
+ totalCost: number;
1111
+ subService?: string | undefined;
1112
+ }[] | undefined;
262
1113
  flowId?: number | undefined;
263
1114
  bubbleCount?: number | undefined;
264
1115
  codeLength?: number | undefined;
1116
+ bubbleParameters?: Record<string | number, {
1117
+ location: {
1118
+ startLine: number;
1119
+ startCol: number;
1120
+ endLine: number;
1121
+ endCol: number;
1122
+ };
1123
+ variableId: number;
1124
+ variableName: string;
1125
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1126
+ className: string;
1127
+ parameters: {
1128
+ type: BubbleParameterType;
1129
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1130
+ name: string;
1131
+ location?: {
1132
+ startLine: number;
1133
+ startCol: number;
1134
+ endLine: number;
1135
+ endCol: number;
1136
+ } | undefined;
1137
+ variableId?: number | undefined;
1138
+ source?: "object-property" | "first-arg" | "spread" | undefined;
1139
+ }[];
1140
+ hasAwait: boolean;
1141
+ hasActionCall: boolean;
1142
+ bubbleName: import("./types").BubbleName;
1143
+ description?: string | undefined;
1144
+ dependencies?: import("./types").BubbleName[] | undefined;
1145
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1146
+ invocationCallSiteKey?: string | undefined;
1147
+ clonedFromVariableId?: number | undefined;
1148
+ isInsideCustomTool?: boolean | undefined;
1149
+ containingCustomToolId?: string | undefined;
1150
+ }> | undefined;
265
1151
  }, {
266
1152
  success: boolean;
267
1153
  error: string;
268
1154
  generatedCode: string;
269
1155
  isValid: boolean;
270
1156
  toolCalls: unknown[];
271
- tokenUsage?: {
272
- inputTokens: number;
273
- outputTokens: number;
274
- totalTokens: number;
275
- modelName?: string | undefined;
276
- } | undefined;
1157
+ serviceUsage?: {
1158
+ service: CredentialType;
1159
+ unit: string;
1160
+ usage: number;
1161
+ unitCost: number;
1162
+ totalCost: number;
1163
+ subService?: string | undefined;
1164
+ }[] | undefined;
277
1165
  summary?: string | undefined;
278
1166
  flowId?: number | undefined;
279
1167
  bubbleCount?: number | undefined;
280
1168
  codeLength?: number | undefined;
1169
+ bubbleParameters?: Record<string | number, {
1170
+ location: {
1171
+ startLine: number;
1172
+ startCol: number;
1173
+ endLine: number;
1174
+ endCol: number;
1175
+ };
1176
+ variableId: number;
1177
+ variableName: string;
1178
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1179
+ className: string;
1180
+ parameters: {
1181
+ type: BubbleParameterType;
1182
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1183
+ name: string;
1184
+ location?: {
1185
+ startLine: number;
1186
+ startCol: number;
1187
+ endLine: number;
1188
+ endCol: number;
1189
+ } | undefined;
1190
+ variableId?: number | undefined;
1191
+ source?: "object-property" | "first-arg" | "spread" | undefined;
1192
+ }[];
1193
+ hasAwait: boolean;
1194
+ hasActionCall: boolean;
1195
+ bubbleName: import("./types").BubbleName;
1196
+ description?: string | undefined;
1197
+ dependencies?: import("./types").BubbleName[] | undefined;
1198
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1199
+ invocationCallSiteKey?: string | undefined;
1200
+ clonedFromVariableId?: number | undefined;
1201
+ isInsideCustomTool?: boolean | undefined;
1202
+ containingCustomToolId?: string | undefined;
1203
+ }> | undefined;
281
1204
  inputsSchema?: string | undefined;
282
- bubblesUsed?: string[] | undefined;
283
1205
  }>;
284
1206
  export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
285
1207
  name: z.ZodString;
@@ -436,7 +1358,6 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
436
1358
  hasActionCall: z.ZodBoolean;
437
1359
  }, "strip", z.ZodTypeAny, {
438
1360
  variableName: string;
439
- bubbleName: string;
440
1361
  className: string;
441
1362
  parameters: {
442
1363
  type: BubbleParameterType;
@@ -445,9 +1366,9 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
445
1366
  }[];
446
1367
  hasAwait: boolean;
447
1368
  hasActionCall: boolean;
1369
+ bubbleName: string;
448
1370
  }, {
449
1371
  variableName: string;
450
- bubbleName: string;
451
1372
  className: string;
452
1373
  parameters: {
453
1374
  type: BubbleParameterType;
@@ -456,6 +1377,7 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
456
1377
  }[];
457
1378
  hasAwait: boolean;
458
1379
  hasActionCall: boolean;
1380
+ bubbleName: string;
459
1381
  }>>;
460
1382
  bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
461
1383
  variableName: z.ZodString;
@@ -478,7 +1400,6 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
478
1400
  hasActionCall: z.ZodBoolean;
479
1401
  }, "strip", z.ZodTypeAny, {
480
1402
  variableName: string;
481
- bubbleName: string;
482
1403
  className: string;
483
1404
  parameters: {
484
1405
  type: BubbleParameterType;
@@ -487,9 +1408,9 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
487
1408
  }[];
488
1409
  hasAwait: boolean;
489
1410
  hasActionCall: boolean;
1411
+ bubbleName: string;
490
1412
  }, {
491
1413
  variableName: string;
492
- bubbleName: string;
493
1414
  className: string;
494
1415
  parameters: {
495
1416
  type: BubbleParameterType;
@@ -498,6 +1419,7 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
498
1419
  }[];
499
1420
  hasAwait: boolean;
500
1421
  hasActionCall: boolean;
1422
+ bubbleName: string;
501
1423
  }>>;
502
1424
  requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>;
503
1425
  createdAt: z.ZodString;
@@ -527,7 +1449,6 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
527
1449
  eventType: string;
528
1450
  bubbleParameters: Record<string, {
529
1451
  variableName: string;
530
- bubbleName: string;
531
1452
  className: string;
532
1453
  parameters: {
533
1454
  type: BubbleParameterType;
@@ -536,10 +1457,10 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
536
1457
  }[];
537
1458
  hasAwait: boolean;
538
1459
  hasActionCall: boolean;
1460
+ bubbleName: string;
539
1461
  }>;
540
1462
  displayedBubbleParameters: Record<string, {
541
1463
  variableName: string;
542
- bubbleName: string;
543
1464
  className: string;
544
1465
  parameters: {
545
1466
  type: BubbleParameterType;
@@ -548,6 +1469,7 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
548
1469
  }[];
549
1470
  hasAwait: boolean;
550
1471
  hasActionCall: boolean;
1472
+ bubbleName: string;
551
1473
  }>;
552
1474
  requiredCredentials?: Record<string, CredentialType[]> | undefined;
553
1475
  webhook?: {
@@ -565,7 +1487,6 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
565
1487
  eventType: string;
566
1488
  bubbleParameters: Record<string, {
567
1489
  variableName: string;
568
- bubbleName: string;
569
1490
  className: string;
570
1491
  parameters: {
571
1492
  type: BubbleParameterType;
@@ -574,10 +1495,10 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
574
1495
  }[];
575
1496
  hasAwait: boolean;
576
1497
  hasActionCall: boolean;
1498
+ bubbleName: string;
577
1499
  }>;
578
1500
  displayedBubbleParameters: Record<string, {
579
1501
  variableName: string;
580
- bubbleName: string;
581
1502
  className: string;
582
1503
  parameters: {
583
1504
  type: BubbleParameterType;
@@ -586,6 +1507,7 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
586
1507
  }[];
587
1508
  hasAwait: boolean;
588
1509
  hasActionCall: boolean;
1510
+ bubbleName: string;
589
1511
  }>;
590
1512
  requiredCredentials?: Record<string, CredentialType[]> | undefined;
591
1513
  webhook?: {