@bubblelab/shared-schemas 0.1.11 → 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 (41) hide show
  1. package/dist/agent-memory.d.ts +4 -4
  2. package/dist/bubble-definition-schema.d.ts +38 -38
  3. package/dist/bubble-definition-schema.d.ts.map +1 -1
  4. package/dist/bubble-definition-schema.js +2 -0
  5. package/dist/bubble-definition-schema.js.map +1 -1
  6. package/dist/bubbleflow-execution-schema.d.ts +102 -66
  7. package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
  8. package/dist/bubbleflow-execution-schema.js +10 -4
  9. package/dist/bubbleflow-execution-schema.js.map +1 -1
  10. package/dist/bubbleflow-generation-prompts.d.ts +3 -20
  11. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
  12. package/dist/bubbleflow-generation-prompts.js +3 -412
  13. package/dist/bubbleflow-generation-prompts.js.map +1 -1
  14. package/dist/bubbleflow-schema.d.ts +162 -162
  15. package/dist/coffee.d.ts +145 -145
  16. package/dist/coffee.d.ts.map +1 -1
  17. package/dist/coffee.js +3 -4
  18. package/dist/coffee.js.map +1 -1
  19. package/dist/credential-schema.d.ts +169 -14
  20. package/dist/credential-schema.d.ts.map +1 -1
  21. package/dist/credential-schema.js +372 -1
  22. package/dist/credential-schema.js.map +1 -1
  23. package/dist/generate-bubbleflow-schema.d.ts +127 -127
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/milk-tea.d.ts +12 -12
  29. package/dist/oauth-schema.d.ts +4 -4
  30. package/dist/pearl.d.ts +32 -32
  31. package/dist/rice.d.ts +100 -0
  32. package/dist/rice.d.ts.map +1 -0
  33. package/dist/rice.js +65 -0
  34. package/dist/rice.js.map +1 -0
  35. package/dist/streaming-events.d.ts +9 -1
  36. package/dist/streaming-events.d.ts.map +1 -1
  37. package/dist/types.d.ts +4 -2
  38. package/dist/types.d.ts.map +1 -1
  39. package/dist/types.js +4 -0
  40. package/dist/types.js.map +1 -1
  41. package/package.json +1 -1
@@ -11,15 +11,15 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
11
11
  type: z.ZodLiteral<"user">;
12
12
  content: z.ZodString;
13
13
  }, "strip", z.ZodTypeAny, {
14
- content: string;
15
14
  type: "user";
16
- timestamp: string;
15
+ content: string;
17
16
  id: string;
17
+ timestamp: string;
18
18
  }, {
19
- content: string;
20
19
  type: "user";
21
- timestamp: string;
20
+ content: string;
22
21
  id: string;
22
+ timestamp: string;
23
23
  }>, z.ZodObject<{
24
24
  id: z.ZodString;
25
25
  timestamp: z.ZodString;
@@ -30,18 +30,18 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
30
30
  resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
31
31
  bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- content: string;
34
33
  type: "assistant";
35
- timestamp: string;
34
+ content: string;
36
35
  id: string;
36
+ timestamp: string;
37
37
  code?: string | undefined;
38
38
  bubbleParameters?: Record<string, unknown> | undefined;
39
39
  resultType?: "code" | "question" | "answer" | "reject" | undefined;
40
40
  }, {
41
- content: string;
42
41
  type: "assistant";
43
- timestamp: string;
42
+ content: string;
44
43
  id: string;
44
+ timestamp: string;
45
45
  code?: string | undefined;
46
46
  bubbleParameters?: Record<string, unknown> | undefined;
47
47
  resultType?: "code" | "question" | "answer" | "reject" | undefined;
@@ -91,8 +91,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
91
91
  }>, "many">;
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  type: "clarification_request";
94
- timestamp: string;
95
94
  id: string;
95
+ timestamp: string;
96
96
  questions: {
97
97
  id: string;
98
98
  question: string;
@@ -106,8 +106,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
106
106
  }[];
107
107
  }, {
108
108
  type: "clarification_request";
109
- timestamp: string;
110
109
  id: string;
110
+ timestamp: string;
111
111
  questions: {
112
112
  id: string;
113
113
  question: string;
@@ -166,8 +166,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
166
166
  }>, "many">>;
167
167
  }, "strip", z.ZodTypeAny, {
168
168
  type: "clarification_response";
169
- timestamp: string;
170
169
  id: string;
170
+ timestamp: string;
171
171
  answers: Record<string, string[]>;
172
172
  originalQuestions?: {
173
173
  id: string;
@@ -182,8 +182,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
182
182
  }[] | undefined;
183
183
  }, {
184
184
  type: "clarification_response";
185
- timestamp: string;
186
185
  id: string;
186
+ timestamp: string;
187
187
  answers: Record<string, string[]>;
188
188
  originalQuestions?: {
189
189
  id: string;
@@ -219,8 +219,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
219
219
  }>;
220
220
  }, "strip", z.ZodTypeAny, {
221
221
  type: "context_request";
222
- timestamp: string;
223
222
  id: string;
223
+ timestamp: string;
224
224
  request: {
225
225
  description: string;
226
226
  flowId: string;
@@ -229,8 +229,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
229
229
  };
230
230
  }, {
231
231
  type: "context_request";
232
- timestamp: string;
233
232
  id: string;
233
+ timestamp: string;
234
234
  request: {
235
235
  description: string;
236
236
  flowId: string;
@@ -264,10 +264,10 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
264
264
  flowCode: string;
265
265
  }>>;
266
266
  }, "strip", z.ZodTypeAny, {
267
- status: "error" | "success" | "rejected";
267
+ status: "success" | "error" | "rejected";
268
268
  flowId: string;
269
- error?: string | undefined;
270
269
  result?: unknown;
270
+ error?: string | undefined;
271
271
  originalRequest?: {
272
272
  description: string;
273
273
  flowId: string;
@@ -275,10 +275,10 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
275
275
  flowCode: string;
276
276
  } | undefined;
277
277
  }, {
278
- status: "error" | "success" | "rejected";
278
+ status: "success" | "error" | "rejected";
279
279
  flowId: string;
280
- error?: string | undefined;
281
280
  result?: unknown;
281
+ error?: string | undefined;
282
282
  originalRequest?: {
283
283
  description: string;
284
284
  flowId: string;
@@ -289,13 +289,13 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
289
289
  credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
290
290
  }, "strip", z.ZodTypeAny, {
291
291
  type: "context_response";
292
- timestamp: string;
293
292
  id: string;
293
+ timestamp: string;
294
294
  answer: {
295
- status: "error" | "success" | "rejected";
295
+ status: "success" | "error" | "rejected";
296
296
  flowId: string;
297
- error?: string | undefined;
298
297
  result?: unknown;
298
+ error?: string | undefined;
299
299
  originalRequest?: {
300
300
  description: string;
301
301
  flowId: string;
@@ -306,13 +306,13 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
306
306
  credentialTypes?: string[] | undefined;
307
307
  }, {
308
308
  type: "context_response";
309
- timestamp: string;
310
309
  id: string;
310
+ timestamp: string;
311
311
  answer: {
312
- status: "error" | "success" | "rejected";
312
+ status: "success" | "error" | "rejected";
313
313
  flowId: string;
314
- error?: string | undefined;
315
314
  result?: unknown;
315
+ error?: string | undefined;
316
316
  originalRequest?: {
317
317
  description: string;
318
318
  flowId: string;
@@ -361,8 +361,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
361
361
  }>;
362
362
  }, "strip", z.ZodTypeAny, {
363
363
  type: "plan";
364
- timestamp: string;
365
364
  id: string;
365
+ timestamp: string;
366
366
  plan: {
367
367
  summary: string;
368
368
  steps: {
@@ -374,8 +374,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
374
374
  };
375
375
  }, {
376
376
  type: "plan";
377
- timestamp: string;
378
377
  id: string;
378
+ timestamp: string;
379
379
  plan: {
380
380
  summary: string;
381
381
  steps: {
@@ -394,14 +394,14 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
394
394
  comment: z.ZodOptional<z.ZodString>;
395
395
  }, "strip", z.ZodTypeAny, {
396
396
  type: "plan_approval";
397
- timestamp: string;
398
397
  id: string;
398
+ timestamp: string;
399
399
  approved: boolean;
400
400
  comment?: string | undefined;
401
401
  }, {
402
402
  type: "plan_approval";
403
- timestamp: string;
404
403
  id: string;
404
+ timestamp: string;
405
405
  approved: boolean;
406
406
  comment?: string | undefined;
407
407
  }>, z.ZodObject<{
@@ -411,15 +411,15 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
411
411
  type: z.ZodLiteral<"system">;
412
412
  content: z.ZodString;
413
413
  }, "strip", z.ZodTypeAny, {
414
- content: string;
415
414
  type: "system";
416
- timestamp: string;
415
+ content: string;
417
416
  id: string;
417
+ timestamp: string;
418
418
  }, {
419
- content: string;
420
419
  type: "system";
421
- timestamp: string;
420
+ content: string;
422
421
  id: string;
422
+ timestamp: string;
423
423
  }>, z.ZodObject<{
424
424
  id: z.ZodString;
425
425
  timestamp: z.ZodString;
@@ -432,21 +432,21 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
432
432
  duration: z.ZodNumber;
433
433
  success: z.ZodBoolean;
434
434
  }, "strip", z.ZodTypeAny, {
435
- toolCallId: string;
436
435
  type: "tool_result";
437
- timestamp: string;
438
436
  duration: number;
439
437
  id: string;
438
+ toolCallId: string;
439
+ timestamp: string;
440
440
  success: boolean;
441
441
  toolName: string;
442
442
  input?: unknown;
443
443
  output?: unknown;
444
444
  }, {
445
- toolCallId: string;
446
445
  type: "tool_result";
447
- timestamp: string;
448
446
  duration: number;
449
447
  id: string;
448
+ toolCallId: string;
449
+ timestamp: string;
450
450
  success: boolean;
451
451
  toolName: string;
452
452
  input?: unknown;
@@ -457,22 +457,22 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
457
457
  prompt: string;
458
458
  flowId?: number | undefined;
459
459
  messages?: ({
460
- content: string;
461
460
  type: "user";
462
- timestamp: string;
461
+ content: string;
463
462
  id: string;
463
+ timestamp: string;
464
464
  } | {
465
- content: string;
466
465
  type: "assistant";
467
- timestamp: string;
466
+ content: string;
468
467
  id: string;
468
+ timestamp: string;
469
469
  code?: string | undefined;
470
470
  bubbleParameters?: Record<string, unknown> | undefined;
471
471
  resultType?: "code" | "question" | "answer" | "reject" | undefined;
472
472
  } | {
473
473
  type: "clarification_request";
474
- timestamp: string;
475
474
  id: string;
475
+ timestamp: string;
476
476
  questions: {
477
477
  id: string;
478
478
  question: string;
@@ -486,8 +486,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
486
486
  }[];
487
487
  } | {
488
488
  type: "clarification_response";
489
- timestamp: string;
490
489
  id: string;
490
+ timestamp: string;
491
491
  answers: Record<string, string[]>;
492
492
  originalQuestions?: {
493
493
  id: string;
@@ -502,8 +502,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
502
502
  }[] | undefined;
503
503
  } | {
504
504
  type: "context_request";
505
- timestamp: string;
506
505
  id: string;
506
+ timestamp: string;
507
507
  request: {
508
508
  description: string;
509
509
  flowId: string;
@@ -512,13 +512,13 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
512
512
  };
513
513
  } | {
514
514
  type: "context_response";
515
- timestamp: string;
516
515
  id: string;
516
+ timestamp: string;
517
517
  answer: {
518
- status: "error" | "success" | "rejected";
518
+ status: "success" | "error" | "rejected";
519
519
  flowId: string;
520
- error?: string | undefined;
521
520
  result?: unknown;
521
+ error?: string | undefined;
522
522
  originalRequest?: {
523
523
  description: string;
524
524
  flowId: string;
@@ -529,8 +529,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
529
529
  credentialTypes?: string[] | undefined;
530
530
  } | {
531
531
  type: "plan";
532
- timestamp: string;
533
532
  id: string;
533
+ timestamp: string;
534
534
  plan: {
535
535
  summary: string;
536
536
  steps: {
@@ -542,21 +542,21 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
542
542
  };
543
543
  } | {
544
544
  type: "plan_approval";
545
- timestamp: string;
546
545
  id: string;
546
+ timestamp: string;
547
547
  approved: boolean;
548
548
  comment?: string | undefined;
549
549
  } | {
550
- content: string;
551
550
  type: "system";
552
- timestamp: string;
551
+ content: string;
553
552
  id: string;
553
+ timestamp: string;
554
554
  } | {
555
- toolCallId: string;
556
555
  type: "tool_result";
557
- timestamp: string;
558
556
  duration: number;
559
557
  id: string;
558
+ toolCallId: string;
559
+ timestamp: string;
560
560
  success: boolean;
561
561
  toolName: string;
562
562
  input?: unknown;
@@ -567,22 +567,22 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
567
567
  prompt: string;
568
568
  flowId?: number | undefined;
569
569
  messages?: ({
570
- content: string;
571
570
  type: "user";
572
- timestamp: string;
571
+ content: string;
573
572
  id: string;
573
+ timestamp: string;
574
574
  } | {
575
- content: string;
576
575
  type: "assistant";
577
- timestamp: string;
576
+ content: string;
578
577
  id: string;
578
+ timestamp: string;
579
579
  code?: string | undefined;
580
580
  bubbleParameters?: Record<string, unknown> | undefined;
581
581
  resultType?: "code" | "question" | "answer" | "reject" | undefined;
582
582
  } | {
583
583
  type: "clarification_request";
584
- timestamp: string;
585
584
  id: string;
585
+ timestamp: string;
586
586
  questions: {
587
587
  id: string;
588
588
  question: string;
@@ -596,8 +596,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
596
596
  }[];
597
597
  } | {
598
598
  type: "clarification_response";
599
- timestamp: string;
600
599
  id: string;
600
+ timestamp: string;
601
601
  answers: Record<string, string[]>;
602
602
  originalQuestions?: {
603
603
  id: string;
@@ -612,8 +612,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
612
612
  }[] | undefined;
613
613
  } | {
614
614
  type: "context_request";
615
- timestamp: string;
616
615
  id: string;
616
+ timestamp: string;
617
617
  request: {
618
618
  description: string;
619
619
  flowId: string;
@@ -622,13 +622,13 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
622
622
  };
623
623
  } | {
624
624
  type: "context_response";
625
- timestamp: string;
626
625
  id: string;
626
+ timestamp: string;
627
627
  answer: {
628
- status: "error" | "success" | "rejected";
628
+ status: "success" | "error" | "rejected";
629
629
  flowId: string;
630
- error?: string | undefined;
631
630
  result?: unknown;
631
+ error?: string | undefined;
632
632
  originalRequest?: {
633
633
  description: string;
634
634
  flowId: string;
@@ -639,8 +639,8 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
639
639
  credentialTypes?: string[] | undefined;
640
640
  } | {
641
641
  type: "plan";
642
- timestamp: string;
643
642
  id: string;
643
+ timestamp: string;
644
644
  plan: {
645
645
  summary: string;
646
646
  steps: {
@@ -652,21 +652,21 @@ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
652
652
  };
653
653
  } | {
654
654
  type: "plan_approval";
655
- timestamp: string;
656
655
  id: string;
656
+ timestamp: string;
657
657
  approved: boolean;
658
658
  comment?: string | undefined;
659
659
  } | {
660
- content: string;
661
660
  type: "system";
662
- timestamp: string;
661
+ content: string;
663
662
  id: string;
663
+ timestamp: string;
664
664
  } | {
665
- toolCallId: string;
666
665
  type: "tool_result";
667
- timestamp: string;
668
666
  duration: number;
669
667
  id: string;
668
+ toolCallId: string;
669
+ timestamp: string;
670
670
  success: boolean;
671
671
  toolName: string;
672
672
  input?: unknown;
@@ -706,9 +706,9 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
706
706
  type: z.ZodNativeEnum<typeof BubbleParameterType>;
707
707
  source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
708
708
  }, "strip", z.ZodTypeAny, {
709
- name: string;
710
- value: string | number | boolean | unknown[] | Record<string, unknown>;
711
709
  type: BubbleParameterType;
710
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
711
+ name: string;
712
712
  location?: {
713
713
  startLine: number;
714
714
  startCol: number;
@@ -718,9 +718,9 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
718
718
  variableId?: number | undefined;
719
719
  source?: "object-property" | "first-arg" | "spread" | undefined;
720
720
  }, {
721
- name: string;
722
- value: string | number | boolean | unknown[] | Record<string, unknown>;
723
721
  type: BubbleParameterType;
722
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
723
+ name: string;
724
724
  location?: {
725
725
  startLine: number;
726
726
  startCol: number;
@@ -766,12 +766,12 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
766
766
  };
767
767
  variableId: number;
768
768
  variableName: string;
769
- nodeType: "tool" | "unknown" | "service" | "workflow";
769
+ nodeType: "unknown" | "tool" | "service" | "workflow";
770
770
  className: string;
771
771
  parameters: {
772
- name: string;
773
- value: string | number | boolean | unknown[] | Record<string, unknown>;
774
772
  type: BubbleParameterType;
773
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
774
+ name: string;
775
775
  location?: {
776
776
  startLine: number;
777
777
  startCol: number;
@@ -800,12 +800,12 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
800
800
  };
801
801
  variableId: number;
802
802
  variableName: string;
803
- nodeType: "tool" | "unknown" | "service" | "workflow";
803
+ nodeType: "unknown" | "tool" | "service" | "workflow";
804
804
  className: string;
805
805
  parameters: {
806
- name: string;
807
- value: string | number | boolean | unknown[] | Record<string, unknown>;
808
806
  type: BubbleParameterType;
807
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
808
+ name: string;
809
809
  location?: {
810
810
  startLine: number;
811
811
  startCol: number;
@@ -828,8 +828,8 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
828
828
  }>>;
829
829
  requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
830
830
  }, "strip", z.ZodTypeAny, {
831
- error: string;
832
831
  success: boolean;
832
+ error: string;
833
833
  requiredCredentials: Record<string, string[]>;
834
834
  bubbleParameters: Record<string, {
835
835
  location: {
@@ -840,12 +840,12 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
840
840
  };
841
841
  variableId: number;
842
842
  variableName: string;
843
- nodeType: "tool" | "unknown" | "service" | "workflow";
843
+ nodeType: "unknown" | "tool" | "service" | "workflow";
844
844
  className: string;
845
845
  parameters: {
846
- name: string;
847
- value: string | number | boolean | unknown[] | Record<string, unknown>;
848
846
  type: BubbleParameterType;
847
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
848
+ name: string;
849
849
  location?: {
850
850
  startLine: number;
851
851
  startCol: number;
@@ -869,8 +869,8 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
869
869
  generatedCode: string;
870
870
  isValid: boolean;
871
871
  }, {
872
- error: string;
873
872
  success: boolean;
873
+ error: string;
874
874
  requiredCredentials: Record<string, string[]>;
875
875
  bubbleParameters: Record<string, {
876
876
  location: {
@@ -881,12 +881,12 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
881
881
  };
882
882
  variableId: number;
883
883
  variableName: string;
884
- nodeType: "tool" | "unknown" | "service" | "workflow";
884
+ nodeType: "unknown" | "tool" | "service" | "workflow";
885
885
  className: string;
886
886
  parameters: {
887
- name: string;
888
- value: string | number | boolean | unknown[] | Record<string, unknown>;
889
887
  type: BubbleParameterType;
888
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
889
+ name: string;
890
890
  location?: {
891
891
  startLine: number;
892
892
  startCol: number;
@@ -974,9 +974,9 @@ export declare const GenerationResultSchema: z.ZodObject<{
974
974
  type: z.ZodNativeEnum<typeof BubbleParameterType>;
975
975
  source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
976
976
  }, "strip", z.ZodTypeAny, {
977
- name: string;
978
- value: string | number | boolean | unknown[] | Record<string, unknown>;
979
977
  type: BubbleParameterType;
978
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
979
+ name: string;
980
980
  location?: {
981
981
  startLine: number;
982
982
  startCol: number;
@@ -986,9 +986,9 @@ export declare const GenerationResultSchema: z.ZodObject<{
986
986
  variableId?: number | undefined;
987
987
  source?: "object-property" | "first-arg" | "spread" | undefined;
988
988
  }, {
989
- name: string;
990
- value: string | number | boolean | unknown[] | Record<string, unknown>;
991
989
  type: BubbleParameterType;
990
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
991
+ name: string;
992
992
  location?: {
993
993
  startLine: number;
994
994
  startCol: number;
@@ -1034,12 +1034,12 @@ export declare const GenerationResultSchema: z.ZodObject<{
1034
1034
  };
1035
1035
  variableId: number;
1036
1036
  variableName: string;
1037
- nodeType: "tool" | "unknown" | "service" | "workflow";
1037
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1038
1038
  className: string;
1039
1039
  parameters: {
1040
- name: string;
1041
- value: string | number | boolean | unknown[] | Record<string, unknown>;
1042
1040
  type: BubbleParameterType;
1041
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1042
+ name: string;
1043
1043
  location?: {
1044
1044
  startLine: number;
1045
1045
  startCol: number;
@@ -1068,12 +1068,12 @@ export declare const GenerationResultSchema: z.ZodObject<{
1068
1068
  };
1069
1069
  variableId: number;
1070
1070
  variableName: string;
1071
- nodeType: "tool" | "unknown" | "service" | "workflow";
1071
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1072
1072
  className: string;
1073
1073
  parameters: {
1074
- name: string;
1075
- value: string | number | boolean | unknown[] | Record<string, unknown>;
1076
1074
  type: BubbleParameterType;
1075
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1076
+ name: string;
1077
1077
  location?: {
1078
1078
  startLine: number;
1079
1079
  startCol: number;
@@ -1095,8 +1095,8 @@ export declare const GenerationResultSchema: z.ZodObject<{
1095
1095
  containingCustomToolId?: string | undefined;
1096
1096
  }>>>;
1097
1097
  }, "strip", z.ZodTypeAny, {
1098
- error: string;
1099
1098
  success: boolean;
1099
+ error: string;
1100
1100
  summary: string;
1101
1101
  generatedCode: string;
1102
1102
  isValid: boolean;
@@ -1122,12 +1122,12 @@ export declare const GenerationResultSchema: z.ZodObject<{
1122
1122
  };
1123
1123
  variableId: number;
1124
1124
  variableName: string;
1125
- nodeType: "tool" | "unknown" | "service" | "workflow";
1125
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1126
1126
  className: string;
1127
1127
  parameters: {
1128
- name: string;
1129
- value: string | number | boolean | unknown[] | Record<string, unknown>;
1130
1128
  type: BubbleParameterType;
1129
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1130
+ name: string;
1131
1131
  location?: {
1132
1132
  startLine: number;
1133
1133
  startCol: number;
@@ -1149,8 +1149,8 @@ export declare const GenerationResultSchema: z.ZodObject<{
1149
1149
  containingCustomToolId?: string | undefined;
1150
1150
  }> | undefined;
1151
1151
  }, {
1152
- error: string;
1153
1152
  success: boolean;
1153
+ error: string;
1154
1154
  generatedCode: string;
1155
1155
  isValid: boolean;
1156
1156
  toolCalls: unknown[];
@@ -1175,12 +1175,12 @@ export declare const GenerationResultSchema: z.ZodObject<{
1175
1175
  };
1176
1176
  variableId: number;
1177
1177
  variableName: string;
1178
- nodeType: "tool" | "unknown" | "service" | "workflow";
1178
+ nodeType: "unknown" | "tool" | "service" | "workflow";
1179
1179
  className: string;
1180
1180
  parameters: {
1181
- name: string;
1182
- value: string | number | boolean | unknown[] | Record<string, unknown>;
1183
1181
  type: BubbleParameterType;
1182
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1183
+ name: string;
1184
1184
  location?: {
1185
1185
  startLine: number;
1186
1186
  startCol: number;
@@ -1214,8 +1214,8 @@ export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
1214
1214
  includeExplanation: z.ZodOptional<z.ZodBoolean>;
1215
1215
  maxQueries: z.ZodOptional<z.ZodNumber>;
1216
1216
  }, "strip", z.ZodTypeAny, {
1217
- name: string;
1218
1217
  description: string;
1218
+ name: string;
1219
1219
  roles: string;
1220
1220
  useCase: "slack-data-scientist";
1221
1221
  verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
@@ -1224,8 +1224,8 @@ export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
1224
1224
  includeExplanation?: boolean | undefined;
1225
1225
  maxQueries?: number | undefined;
1226
1226
  }, {
1227
- name: string;
1228
1227
  description: string;
1228
+ name: string;
1229
1229
  roles: string;
1230
1230
  useCase: "slack-data-scientist";
1231
1231
  verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
@@ -1286,8 +1286,8 @@ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
1286
1286
  }>>;
1287
1287
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1288
1288
  }, "strip", z.ZodTypeAny, {
1289
- name: string;
1290
1289
  description: string;
1290
+ name: string;
1291
1291
  outputDescription: string;
1292
1292
  metadata?: Record<string, unknown> | undefined;
1293
1293
  outputFormat?: "html" | "csv" | "json" | undefined;
@@ -1346,12 +1346,12 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1346
1346
  value: z.ZodUnknown;
1347
1347
  type: z.ZodNativeEnum<typeof BubbleParameterType>;
1348
1348
  }, "strip", z.ZodTypeAny, {
1349
- name: string;
1350
1349
  type: BubbleParameterType;
1350
+ name: string;
1351
1351
  value?: unknown;
1352
1352
  }, {
1353
- name: string;
1354
1353
  type: BubbleParameterType;
1354
+ name: string;
1355
1355
  value?: unknown;
1356
1356
  }>, "many">;
1357
1357
  hasAwait: z.ZodBoolean;
@@ -1360,8 +1360,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1360
1360
  variableName: string;
1361
1361
  className: string;
1362
1362
  parameters: {
1363
- name: string;
1364
1363
  type: BubbleParameterType;
1364
+ name: string;
1365
1365
  value?: unknown;
1366
1366
  }[];
1367
1367
  hasAwait: boolean;
@@ -1371,8 +1371,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1371
1371
  variableName: string;
1372
1372
  className: string;
1373
1373
  parameters: {
1374
- name: string;
1375
1374
  type: BubbleParameterType;
1375
+ name: string;
1376
1376
  value?: unknown;
1377
1377
  }[];
1378
1378
  hasAwait: boolean;
@@ -1388,12 +1388,12 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1388
1388
  value: z.ZodUnknown;
1389
1389
  type: z.ZodNativeEnum<typeof BubbleParameterType>;
1390
1390
  }, "strip", z.ZodTypeAny, {
1391
- name: string;
1392
1391
  type: BubbleParameterType;
1392
+ name: string;
1393
1393
  value?: unknown;
1394
1394
  }, {
1395
- name: string;
1396
1395
  type: BubbleParameterType;
1396
+ name: string;
1397
1397
  value?: unknown;
1398
1398
  }>, "many">;
1399
1399
  hasAwait: z.ZodBoolean;
@@ -1402,8 +1402,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1402
1402
  variableName: string;
1403
1403
  className: string;
1404
1404
  parameters: {
1405
- name: string;
1406
1405
  type: BubbleParameterType;
1406
+ name: string;
1407
1407
  value?: unknown;
1408
1408
  }[];
1409
1409
  hasAwait: boolean;
@@ -1413,8 +1413,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1413
1413
  variableName: string;
1414
1414
  className: string;
1415
1415
  parameters: {
1416
- name: string;
1417
1416
  type: BubbleParameterType;
1417
+ name: string;
1418
1418
  value?: unknown;
1419
1419
  }[];
1420
1420
  hasAwait: boolean;
@@ -1431,28 +1431,28 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1431
1431
  active: z.ZodBoolean;
1432
1432
  }, "strip", z.ZodTypeAny, {
1433
1433
  path: string;
1434
- id: number;
1435
1434
  url: string;
1435
+ id: number;
1436
1436
  active: boolean;
1437
1437
  }, {
1438
1438
  path: string;
1439
- id: number;
1440
1439
  url: string;
1440
+ id: number;
1441
1441
  active: boolean;
1442
1442
  }>>;
1443
1443
  }, "strip", z.ZodTypeAny, {
1444
- name: string;
1445
1444
  description: string;
1445
+ name: string;
1446
1446
  id: number;
1447
- eventType: string;
1448
1447
  createdAt: string;
1449
1448
  updatedAt: string;
1449
+ eventType: string;
1450
1450
  bubbleParameters: Record<string, {
1451
1451
  variableName: string;
1452
1452
  className: string;
1453
1453
  parameters: {
1454
- name: string;
1455
1454
  type: BubbleParameterType;
1455
+ name: string;
1456
1456
  value?: unknown;
1457
1457
  }[];
1458
1458
  hasAwait: boolean;
@@ -1463,8 +1463,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1463
1463
  variableName: string;
1464
1464
  className: string;
1465
1465
  parameters: {
1466
- name: string;
1467
1466
  type: BubbleParameterType;
1467
+ name: string;
1468
1468
  value?: unknown;
1469
1469
  }[];
1470
1470
  hasAwait: boolean;
@@ -1474,23 +1474,23 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1474
1474
  requiredCredentials?: Record<string, CredentialType[]> | undefined;
1475
1475
  webhook?: {
1476
1476
  path: string;
1477
- id: number;
1478
1477
  url: string;
1478
+ id: number;
1479
1479
  active: boolean;
1480
1480
  } | undefined;
1481
1481
  }, {
1482
- name: string;
1483
1482
  description: string;
1483
+ name: string;
1484
1484
  id: number;
1485
- eventType: string;
1486
1485
  createdAt: string;
1487
1486
  updatedAt: string;
1487
+ eventType: string;
1488
1488
  bubbleParameters: Record<string, {
1489
1489
  variableName: string;
1490
1490
  className: string;
1491
1491
  parameters: {
1492
- name: string;
1493
1492
  type: BubbleParameterType;
1493
+ name: string;
1494
1494
  value?: unknown;
1495
1495
  }[];
1496
1496
  hasAwait: boolean;
@@ -1501,8 +1501,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1501
1501
  variableName: string;
1502
1502
  className: string;
1503
1503
  parameters: {
1504
- name: string;
1505
1504
  type: BubbleParameterType;
1505
+ name: string;
1506
1506
  value?: unknown;
1507
1507
  }[];
1508
1508
  hasAwait: boolean;
@@ -1512,8 +1512,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1512
1512
  requiredCredentials?: Record<string, CredentialType[]> | undefined;
1513
1513
  webhook?: {
1514
1514
  path: string;
1515
- id: number;
1516
1515
  url: string;
1516
+ id: number;
1517
1517
  active: boolean;
1518
1518
  } | undefined;
1519
1519
  }>;