@bubblelab/shared-schemas 0.1.13 → 0.1.14

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 (59) hide show
  1. package/dist/agent-memory.d.ts +21 -0
  2. package/dist/agent-memory.d.ts.map +1 -0
  3. package/dist/ai-models.d.ts +4 -0
  4. package/dist/ai-models.d.ts.map +1 -0
  5. package/dist/api-schema.d.ts +38 -0
  6. package/dist/api-schema.d.ts.map +1 -0
  7. package/dist/bubble-definition-schema.d.ts +840 -0
  8. package/dist/bubble-definition-schema.d.ts.map +1 -0
  9. package/dist/bubbleflow-execution-schema.d.ts +1297 -0
  10. package/dist/bubbleflow-execution-schema.d.ts.map +1 -0
  11. package/dist/bubbleflow-generation-prompts.d.ts +8 -0
  12. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -0
  13. package/dist/bubbleflow-schema.d.ts +2071 -0
  14. package/dist/bubbleflow-schema.d.ts.map +1 -0
  15. package/dist/coffee.d.ts +2201 -0
  16. package/dist/coffee.d.ts.map +1 -0
  17. package/dist/credential-schema.d.ts +574 -0
  18. package/dist/credential-schema.d.ts.map +1 -0
  19. package/dist/cron-utils.d.ts +47 -0
  20. package/dist/cron-utils.d.ts.map +1 -0
  21. package/dist/database-definition-schema.d.ts +97 -0
  22. package/dist/database-definition-schema.d.ts.map +1 -0
  23. package/dist/error-enhancer.d.ts +6 -0
  24. package/dist/error-enhancer.d.ts.map +1 -0
  25. package/dist/generate-bubbleflow-schema.d.ts +1525 -0
  26. package/dist/generate-bubbleflow-schema.d.ts.map +1 -0
  27. package/dist/hash-utils.d.ts +26 -0
  28. package/dist/hash-utils.d.ts.map +1 -0
  29. package/dist/index.d.ts +29 -10076
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +225 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/milk-tea.d.ts +106 -0
  34. package/dist/milk-tea.d.ts.map +1 -0
  35. package/dist/mock-data-generator.d.ts +51 -0
  36. package/dist/mock-data-generator.d.ts.map +1 -0
  37. package/dist/oauth-schema.d.ts +61 -0
  38. package/dist/oauth-schema.d.ts.map +1 -0
  39. package/dist/param-utils.d.ts +10 -0
  40. package/dist/param-utils.d.ts.map +1 -0
  41. package/dist/pearl.d.ts +346 -0
  42. package/dist/pearl.d.ts.map +1 -0
  43. package/dist/rice.d.ts +100 -0
  44. package/dist/rice.d.ts.map +1 -0
  45. package/dist/storage-utils.d.ts +19 -0
  46. package/dist/storage-utils.d.ts.map +1 -0
  47. package/dist/streaming-events.d.ts +140 -0
  48. package/dist/streaming-events.d.ts.map +1 -0
  49. package/dist/subscription-status-schema.d.ts +250 -0
  50. package/dist/subscription-status-schema.d.ts.map +1 -0
  51. package/dist/trigger.d.ts +172 -0
  52. package/dist/trigger.d.ts.map +1 -0
  53. package/dist/types.d.ts +31 -0
  54. package/dist/types.d.ts.map +1 -0
  55. package/dist/waitlist-schema.d.ts +30 -0
  56. package/dist/waitlist-schema.d.ts.map +1 -0
  57. package/dist/webhook-schema.d.ts +95 -0
  58. package/dist/webhook-schema.d.ts.map +1 -0
  59. package/package.json +2 -2
@@ -0,0 +1,1525 @@
1
+ import { z } from '@hono/zod-openapi';
2
+ import { BubbleParameterType } from './bubble-definition-schema';
3
+ import { CredentialType } from './types';
4
+ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
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
+ content: string;
15
+ type: "user";
16
+ timestamp: string;
17
+ id: string;
18
+ }, {
19
+ content: string;
20
+ type: "user";
21
+ timestamp: string;
22
+ id: 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
+ content: string;
34
+ type: "assistant";
35
+ timestamp: string;
36
+ id: string;
37
+ code?: string | undefined;
38
+ bubbleParameters?: Record<string, unknown> | undefined;
39
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
40
+ }, {
41
+ content: string;
42
+ type: "assistant";
43
+ timestamp: string;
44
+ id: 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
+ timestamp: string;
95
+ id: 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
+ timestamp: string;
110
+ id: 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
+ timestamp: string;
170
+ id: 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
+ timestamp: string;
186
+ id: 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
+ timestamp: string;
223
+ id: string;
224
+ request: {
225
+ description: string;
226
+ flowId: string;
227
+ requiredCredentials: CredentialType[];
228
+ flowCode: string;
229
+ };
230
+ }, {
231
+ type: "context_request";
232
+ timestamp: string;
233
+ id: 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: "error" | "success" | "rejected";
268
+ flowId: string;
269
+ error?: string | undefined;
270
+ result?: unknown;
271
+ originalRequest?: {
272
+ description: string;
273
+ flowId: string;
274
+ requiredCredentials: CredentialType[];
275
+ flowCode: string;
276
+ } | undefined;
277
+ }, {
278
+ status: "error" | "success" | "rejected";
279
+ flowId: string;
280
+ error?: string | undefined;
281
+ result?: unknown;
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
+ timestamp: string;
293
+ id: string;
294
+ answer: {
295
+ status: "error" | "success" | "rejected";
296
+ flowId: string;
297
+ error?: string | undefined;
298
+ result?: unknown;
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
+ timestamp: string;
310
+ id: string;
311
+ answer: {
312
+ status: "error" | "success" | "rejected";
313
+ flowId: string;
314
+ error?: string | undefined;
315
+ result?: unknown;
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
+ timestamp: string;
365
+ id: 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
+ timestamp: string;
378
+ id: 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
+ timestamp: string;
398
+ id: string;
399
+ approved: boolean;
400
+ comment?: string | undefined;
401
+ }, {
402
+ type: "plan_approval";
403
+ timestamp: string;
404
+ id: 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
+ content: string;
415
+ type: "system";
416
+ timestamp: string;
417
+ id: string;
418
+ }, {
419
+ content: string;
420
+ type: "system";
421
+ timestamp: string;
422
+ id: 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
+ toolCallId: string;
436
+ type: "tool_result";
437
+ timestamp: string;
438
+ duration: number;
439
+ id: string;
440
+ success: boolean;
441
+ toolName: string;
442
+ input?: unknown;
443
+ output?: unknown;
444
+ }, {
445
+ toolCallId: string;
446
+ type: "tool_result";
447
+ timestamp: string;
448
+ duration: number;
449
+ id: string;
450
+ success: boolean;
451
+ toolName: string;
452
+ input?: unknown;
453
+ output?: unknown;
454
+ }>]>, "many">>;
455
+ planContext: z.ZodOptional<z.ZodString>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ prompt: string;
458
+ flowId?: number | undefined;
459
+ messages?: ({
460
+ content: string;
461
+ type: "user";
462
+ timestamp: string;
463
+ id: string;
464
+ } | {
465
+ content: string;
466
+ type: "assistant";
467
+ timestamp: string;
468
+ id: string;
469
+ code?: string | undefined;
470
+ bubbleParameters?: Record<string, unknown> | undefined;
471
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
472
+ } | {
473
+ type: "clarification_request";
474
+ timestamp: string;
475
+ id: 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
+ timestamp: string;
490
+ id: 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
+ timestamp: string;
506
+ id: string;
507
+ request: {
508
+ description: string;
509
+ flowId: string;
510
+ requiredCredentials: CredentialType[];
511
+ flowCode: string;
512
+ };
513
+ } | {
514
+ type: "context_response";
515
+ timestamp: string;
516
+ id: string;
517
+ answer: {
518
+ status: "error" | "success" | "rejected";
519
+ flowId: string;
520
+ error?: string | undefined;
521
+ result?: unknown;
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
+ timestamp: string;
533
+ id: 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
+ timestamp: string;
546
+ id: string;
547
+ approved: boolean;
548
+ comment?: string | undefined;
549
+ } | {
550
+ content: string;
551
+ type: "system";
552
+ timestamp: string;
553
+ id: string;
554
+ } | {
555
+ toolCallId: string;
556
+ type: "tool_result";
557
+ timestamp: string;
558
+ duration: number;
559
+ id: string;
560
+ success: boolean;
561
+ toolName: string;
562
+ input?: unknown;
563
+ output?: unknown;
564
+ })[] | undefined;
565
+ planContext?: string | undefined;
566
+ }, {
567
+ prompt: string;
568
+ flowId?: number | undefined;
569
+ messages?: ({
570
+ content: string;
571
+ type: "user";
572
+ timestamp: string;
573
+ id: string;
574
+ } | {
575
+ content: string;
576
+ type: "assistant";
577
+ timestamp: string;
578
+ id: string;
579
+ code?: string | undefined;
580
+ bubbleParameters?: Record<string, unknown> | undefined;
581
+ resultType?: "code" | "question" | "answer" | "reject" | undefined;
582
+ } | {
583
+ type: "clarification_request";
584
+ timestamp: string;
585
+ id: 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
+ timestamp: string;
600
+ id: 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
+ timestamp: string;
616
+ id: string;
617
+ request: {
618
+ description: string;
619
+ flowId: string;
620
+ requiredCredentials: CredentialType[];
621
+ flowCode: string;
622
+ };
623
+ } | {
624
+ type: "context_response";
625
+ timestamp: string;
626
+ id: string;
627
+ answer: {
628
+ status: "error" | "success" | "rejected";
629
+ flowId: string;
630
+ error?: string | undefined;
631
+ result?: unknown;
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
+ timestamp: string;
643
+ id: 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
+ timestamp: string;
656
+ id: string;
657
+ approved: boolean;
658
+ comment?: string | undefined;
659
+ } | {
660
+ content: string;
661
+ type: "system";
662
+ timestamp: string;
663
+ id: string;
664
+ } | {
665
+ toolCallId: string;
666
+ type: "tool_result";
667
+ timestamp: string;
668
+ duration: number;
669
+ id: string;
670
+ success: boolean;
671
+ toolName: string;
672
+ input?: unknown;
673
+ output?: unknown;
674
+ })[] | undefined;
675
+ planContext?: string | undefined;
676
+ }>;
677
+ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
678
+ generatedCode: z.ZodString;
679
+ isValid: z.ZodBoolean;
680
+ success: z.ZodBoolean;
681
+ error: z.ZodString;
682
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
683
+ variableName: z.ZodString;
684
+ bubbleName: z.ZodType<import("./types").BubbleName>;
685
+ className: z.ZodString;
686
+ parameters: z.ZodArray<z.ZodObject<{
687
+ location: z.ZodOptional<z.ZodObject<{
688
+ startLine: z.ZodNumber;
689
+ startCol: z.ZodNumber;
690
+ endLine: z.ZodNumber;
691
+ endCol: z.ZodNumber;
692
+ }, "strip", z.ZodTypeAny, {
693
+ startLine: number;
694
+ startCol: number;
695
+ endLine: number;
696
+ endCol: number;
697
+ }, {
698
+ startLine: number;
699
+ startCol: number;
700
+ endLine: number;
701
+ endCol: number;
702
+ }>>;
703
+ variableId: z.ZodOptional<z.ZodNumber>;
704
+ name: z.ZodString;
705
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
706
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
707
+ source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ name: string;
710
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
711
+ type: BubbleParameterType;
712
+ location?: {
713
+ startLine: number;
714
+ startCol: number;
715
+ endLine: number;
716
+ endCol: number;
717
+ } | undefined;
718
+ variableId?: number | undefined;
719
+ source?: "object-property" | "first-arg" | "spread" | undefined;
720
+ }, {
721
+ name: string;
722
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
723
+ type: BubbleParameterType;
724
+ location?: {
725
+ startLine: number;
726
+ startCol: number;
727
+ endLine: number;
728
+ endCol: number;
729
+ } | undefined;
730
+ variableId?: number | undefined;
731
+ source?: "object-property" | "first-arg" | "spread" | undefined;
732
+ }>, "many">;
733
+ hasAwait: z.ZodBoolean;
734
+ hasActionCall: z.ZodBoolean;
735
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
736
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
737
+ variableId: z.ZodNumber;
738
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
739
+ location: z.ZodObject<{
740
+ startLine: z.ZodNumber;
741
+ startCol: z.ZodNumber;
742
+ endLine: z.ZodNumber;
743
+ endCol: z.ZodNumber;
744
+ }, "strip", z.ZodTypeAny, {
745
+ startLine: number;
746
+ startCol: number;
747
+ endLine: number;
748
+ endCol: number;
749
+ }, {
750
+ startLine: number;
751
+ startCol: number;
752
+ endLine: number;
753
+ endCol: number;
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>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ location: {
762
+ startLine: number;
763
+ startCol: number;
764
+ endLine: number;
765
+ endCol: number;
766
+ };
767
+ variableId: number;
768
+ variableName: string;
769
+ nodeType: "tool" | "unknown" | "service" | "workflow";
770
+ className: string;
771
+ parameters: {
772
+ name: string;
773
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
774
+ type: BubbleParameterType;
775
+ location?: {
776
+ startLine: number;
777
+ startCol: number;
778
+ endLine: number;
779
+ endCol: number;
780
+ } | undefined;
781
+ variableId?: number | undefined;
782
+ source?: "object-property" | "first-arg" | "spread" | undefined;
783
+ }[];
784
+ hasAwait: boolean;
785
+ hasActionCall: boolean;
786
+ bubbleName: import("./types").BubbleName;
787
+ description?: string | undefined;
788
+ dependencies?: import("./types").BubbleName[] | undefined;
789
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
790
+ invocationCallSiteKey?: string | undefined;
791
+ clonedFromVariableId?: number | undefined;
792
+ isInsideCustomTool?: boolean | undefined;
793
+ containingCustomToolId?: string | undefined;
794
+ }, {
795
+ location: {
796
+ startLine: number;
797
+ startCol: number;
798
+ endLine: number;
799
+ endCol: number;
800
+ };
801
+ variableId: number;
802
+ variableName: string;
803
+ nodeType: "tool" | "unknown" | "service" | "workflow";
804
+ className: string;
805
+ parameters: {
806
+ name: string;
807
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
808
+ type: BubbleParameterType;
809
+ location?: {
810
+ startLine: number;
811
+ startCol: number;
812
+ endLine: number;
813
+ endCol: number;
814
+ } | undefined;
815
+ variableId?: number | undefined;
816
+ source?: "object-property" | "first-arg" | "spread" | undefined;
817
+ }[];
818
+ hasAwait: boolean;
819
+ hasActionCall: boolean;
820
+ bubbleName: import("./types").BubbleName;
821
+ description?: string | undefined;
822
+ dependencies?: import("./types").BubbleName[] | undefined;
823
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
824
+ invocationCallSiteKey?: string | undefined;
825
+ clonedFromVariableId?: number | undefined;
826
+ isInsideCustomTool?: boolean | undefined;
827
+ containingCustomToolId?: string | undefined;
828
+ }>>;
829
+ requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
830
+ }, "strip", z.ZodTypeAny, {
831
+ error: string;
832
+ success: boolean;
833
+ requiredCredentials: Record<string, string[]>;
834
+ bubbleParameters: Record<string, {
835
+ location: {
836
+ startLine: number;
837
+ startCol: number;
838
+ endLine: number;
839
+ endCol: number;
840
+ };
841
+ variableId: number;
842
+ variableName: string;
843
+ nodeType: "tool" | "unknown" | "service" | "workflow";
844
+ className: string;
845
+ parameters: {
846
+ name: string;
847
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
848
+ type: BubbleParameterType;
849
+ location?: {
850
+ startLine: number;
851
+ startCol: number;
852
+ endLine: number;
853
+ endCol: number;
854
+ } | undefined;
855
+ variableId?: number | undefined;
856
+ source?: "object-property" | "first-arg" | "spread" | undefined;
857
+ }[];
858
+ hasAwait: boolean;
859
+ hasActionCall: boolean;
860
+ bubbleName: import("./types").BubbleName;
861
+ description?: string | undefined;
862
+ dependencies?: import("./types").BubbleName[] | undefined;
863
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
864
+ invocationCallSiteKey?: string | undefined;
865
+ clonedFromVariableId?: number | undefined;
866
+ isInsideCustomTool?: boolean | undefined;
867
+ containingCustomToolId?: string | undefined;
868
+ }>;
869
+ generatedCode: string;
870
+ isValid: boolean;
871
+ }, {
872
+ error: string;
873
+ success: boolean;
874
+ requiredCredentials: Record<string, string[]>;
875
+ bubbleParameters: Record<string, {
876
+ location: {
877
+ startLine: number;
878
+ startCol: number;
879
+ endLine: number;
880
+ endCol: number;
881
+ };
882
+ variableId: number;
883
+ variableName: string;
884
+ nodeType: "tool" | "unknown" | "service" | "workflow";
885
+ className: string;
886
+ parameters: {
887
+ name: string;
888
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
889
+ type: BubbleParameterType;
890
+ location?: {
891
+ startLine: number;
892
+ startCol: number;
893
+ endLine: number;
894
+ endCol: number;
895
+ } | undefined;
896
+ variableId?: number | undefined;
897
+ source?: "object-property" | "first-arg" | "spread" | undefined;
898
+ }[];
899
+ hasAwait: boolean;
900
+ hasActionCall: boolean;
901
+ bubbleName: import("./types").BubbleName;
902
+ description?: string | undefined;
903
+ dependencies?: import("./types").BubbleName[] | undefined;
904
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
905
+ invocationCallSiteKey?: string | undefined;
906
+ clonedFromVariableId?: number | undefined;
907
+ isInsideCustomTool?: boolean | undefined;
908
+ containingCustomToolId?: string | undefined;
909
+ }>;
910
+ generatedCode: string;
911
+ isValid: boolean;
912
+ }>;
913
+ /**
914
+ * Schema for the result of BubbleFlow generation
915
+ * Used by the BubbleFlowGeneratorWorkflow
916
+ */
917
+ export declare const GenerationResultSchema: z.ZodObject<{
918
+ generatedCode: z.ZodString;
919
+ isValid: z.ZodBoolean;
920
+ success: z.ZodBoolean;
921
+ error: z.ZodString;
922
+ flowId: z.ZodOptional<z.ZodNumber>;
923
+ toolCalls: z.ZodArray<z.ZodUnknown, "many">;
924
+ summary: z.ZodDefault<z.ZodString>;
925
+ inputsSchema: z.ZodDefault<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;
933
+ }, "strip", z.ZodTypeAny, {
934
+ service: CredentialType;
935
+ unit: string;
936
+ usage: number;
937
+ unitCost: number;
938
+ totalCost: number;
939
+ subService?: string | undefined;
940
+ }, {
941
+ service: CredentialType;
942
+ unit: string;
943
+ usage: number;
944
+ unitCost: number;
945
+ totalCost: number;
946
+ subService?: string | undefined;
947
+ }>, "many">>;
948
+ bubbleCount: z.ZodOptional<z.ZodNumber>;
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
+ name: string;
978
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
979
+ type: BubbleParameterType;
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
+ name: string;
990
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
991
+ type: BubbleParameterType;
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: "tool" | "unknown" | "service" | "workflow";
1038
+ className: string;
1039
+ parameters: {
1040
+ name: string;
1041
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1042
+ type: BubbleParameterType;
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: "tool" | "unknown" | "service" | "workflow";
1072
+ className: string;
1073
+ parameters: {
1074
+ name: string;
1075
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1076
+ type: BubbleParameterType;
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
+ }>>>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ error: string;
1099
+ success: boolean;
1100
+ summary: string;
1101
+ generatedCode: string;
1102
+ isValid: boolean;
1103
+ toolCalls: unknown[];
1104
+ inputsSchema: string;
1105
+ serviceUsage?: {
1106
+ service: CredentialType;
1107
+ unit: string;
1108
+ usage: number;
1109
+ unitCost: number;
1110
+ totalCost: number;
1111
+ subService?: string | undefined;
1112
+ }[] | undefined;
1113
+ flowId?: number | undefined;
1114
+ bubbleCount?: number | undefined;
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: "tool" | "unknown" | "service" | "workflow";
1126
+ className: string;
1127
+ parameters: {
1128
+ name: string;
1129
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1130
+ type: BubbleParameterType;
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;
1151
+ }, {
1152
+ error: string;
1153
+ success: boolean;
1154
+ generatedCode: string;
1155
+ isValid: boolean;
1156
+ toolCalls: unknown[];
1157
+ serviceUsage?: {
1158
+ service: CredentialType;
1159
+ unit: string;
1160
+ usage: number;
1161
+ unitCost: number;
1162
+ totalCost: number;
1163
+ subService?: string | undefined;
1164
+ }[] | undefined;
1165
+ summary?: string | undefined;
1166
+ flowId?: number | undefined;
1167
+ bubbleCount?: number | undefined;
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: "tool" | "unknown" | "service" | "workflow";
1179
+ className: string;
1180
+ parameters: {
1181
+ name: string;
1182
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
1183
+ type: BubbleParameterType;
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;
1204
+ inputsSchema?: string | undefined;
1205
+ }>;
1206
+ export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
1207
+ name: z.ZodString;
1208
+ description: z.ZodString;
1209
+ roles: z.ZodString;
1210
+ useCase: z.ZodLiteral<"slack-data-scientist">;
1211
+ verbosity: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>;
1212
+ technicality: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>;
1213
+ includeQuery: z.ZodOptional<z.ZodBoolean>;
1214
+ includeExplanation: z.ZodOptional<z.ZodBoolean>;
1215
+ maxQueries: z.ZodOptional<z.ZodNumber>;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ name: string;
1218
+ description: string;
1219
+ roles: string;
1220
+ useCase: "slack-data-scientist";
1221
+ verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
1222
+ technicality?: "1" | "2" | "3" | "4" | "5" | undefined;
1223
+ includeQuery?: boolean | undefined;
1224
+ includeExplanation?: boolean | undefined;
1225
+ maxQueries?: number | undefined;
1226
+ }, {
1227
+ name: string;
1228
+ description: string;
1229
+ roles: string;
1230
+ useCase: "slack-data-scientist";
1231
+ verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
1232
+ technicality?: "1" | "2" | "3" | "4" | "5" | undefined;
1233
+ includeQuery?: boolean | undefined;
1234
+ includeExplanation?: boolean | undefined;
1235
+ maxQueries?: number | undefined;
1236
+ }>;
1237
+ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
1238
+ name: z.ZodString;
1239
+ description: z.ZodDefault<z.ZodString>;
1240
+ outputDescription: z.ZodString;
1241
+ outputFormat: z.ZodOptional<z.ZodEnum<["html", "csv", "json"]>>;
1242
+ conversionOptions: z.ZodOptional<z.ZodObject<{
1243
+ preserveStructure: z.ZodOptional<z.ZodBoolean>;
1244
+ includeVisualDescriptions: z.ZodOptional<z.ZodBoolean>;
1245
+ extractNumericalData: z.ZodOptional<z.ZodBoolean>;
1246
+ combinePages: z.ZodOptional<z.ZodBoolean>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ preserveStructure?: boolean | undefined;
1249
+ includeVisualDescriptions?: boolean | undefined;
1250
+ extractNumericalData?: boolean | undefined;
1251
+ combinePages?: boolean | undefined;
1252
+ }, {
1253
+ preserveStructure?: boolean | undefined;
1254
+ includeVisualDescriptions?: boolean | undefined;
1255
+ extractNumericalData?: boolean | undefined;
1256
+ combinePages?: boolean | undefined;
1257
+ }>>;
1258
+ imageOptions: z.ZodOptional<z.ZodObject<{
1259
+ format: z.ZodOptional<z.ZodEnum<["png", "jpg", "jpeg"]>>;
1260
+ quality: z.ZodOptional<z.ZodNumber>;
1261
+ dpi: z.ZodOptional<z.ZodNumber>;
1262
+ }, "strip", z.ZodTypeAny, {
1263
+ format?: "png" | "jpg" | "jpeg" | undefined;
1264
+ quality?: number | undefined;
1265
+ dpi?: number | undefined;
1266
+ }, {
1267
+ format?: "png" | "jpg" | "jpeg" | undefined;
1268
+ quality?: number | undefined;
1269
+ dpi?: number | undefined;
1270
+ }>>;
1271
+ aiOptions: z.ZodOptional<z.ZodObject<{
1272
+ model: z.ZodOptional<z.ZodString>;
1273
+ temperature: z.ZodOptional<z.ZodNumber>;
1274
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1275
+ jsonMode: z.ZodOptional<z.ZodBoolean>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ model?: string | undefined;
1278
+ temperature?: number | undefined;
1279
+ maxTokens?: number | undefined;
1280
+ jsonMode?: boolean | undefined;
1281
+ }, {
1282
+ model?: string | undefined;
1283
+ temperature?: number | undefined;
1284
+ maxTokens?: number | undefined;
1285
+ jsonMode?: boolean | undefined;
1286
+ }>>;
1287
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ name: string;
1290
+ description: string;
1291
+ outputDescription: string;
1292
+ metadata?: Record<string, unknown> | undefined;
1293
+ outputFormat?: "html" | "csv" | "json" | undefined;
1294
+ conversionOptions?: {
1295
+ preserveStructure?: boolean | undefined;
1296
+ includeVisualDescriptions?: boolean | undefined;
1297
+ extractNumericalData?: boolean | undefined;
1298
+ combinePages?: boolean | undefined;
1299
+ } | undefined;
1300
+ imageOptions?: {
1301
+ format?: "png" | "jpg" | "jpeg" | undefined;
1302
+ quality?: number | undefined;
1303
+ dpi?: number | undefined;
1304
+ } | undefined;
1305
+ aiOptions?: {
1306
+ model?: string | undefined;
1307
+ temperature?: number | undefined;
1308
+ maxTokens?: number | undefined;
1309
+ jsonMode?: boolean | undefined;
1310
+ } | undefined;
1311
+ }, {
1312
+ name: string;
1313
+ outputDescription: string;
1314
+ description?: string | undefined;
1315
+ metadata?: Record<string, unknown> | undefined;
1316
+ outputFormat?: "html" | "csv" | "json" | undefined;
1317
+ conversionOptions?: {
1318
+ preserveStructure?: boolean | undefined;
1319
+ includeVisualDescriptions?: boolean | undefined;
1320
+ extractNumericalData?: boolean | undefined;
1321
+ combinePages?: boolean | undefined;
1322
+ } | undefined;
1323
+ imageOptions?: {
1324
+ format?: "png" | "jpg" | "jpeg" | undefined;
1325
+ quality?: number | undefined;
1326
+ dpi?: number | undefined;
1327
+ } | undefined;
1328
+ aiOptions?: {
1329
+ model?: string | undefined;
1330
+ temperature?: number | undefined;
1331
+ maxTokens?: number | undefined;
1332
+ jsonMode?: boolean | undefined;
1333
+ } | undefined;
1334
+ }>;
1335
+ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1336
+ id: z.ZodNumber;
1337
+ name: z.ZodString;
1338
+ description: z.ZodString;
1339
+ eventType: z.ZodString;
1340
+ displayedBubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
1341
+ variableName: z.ZodString;
1342
+ bubbleName: z.ZodString;
1343
+ className: z.ZodString;
1344
+ parameters: z.ZodArray<z.ZodObject<{
1345
+ name: z.ZodString;
1346
+ value: z.ZodUnknown;
1347
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ name: string;
1350
+ type: BubbleParameterType;
1351
+ value?: unknown;
1352
+ }, {
1353
+ name: string;
1354
+ type: BubbleParameterType;
1355
+ value?: unknown;
1356
+ }>, "many">;
1357
+ hasAwait: z.ZodBoolean;
1358
+ hasActionCall: z.ZodBoolean;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ variableName: string;
1361
+ className: string;
1362
+ parameters: {
1363
+ name: string;
1364
+ type: BubbleParameterType;
1365
+ value?: unknown;
1366
+ }[];
1367
+ hasAwait: boolean;
1368
+ hasActionCall: boolean;
1369
+ bubbleName: string;
1370
+ }, {
1371
+ variableName: string;
1372
+ className: string;
1373
+ parameters: {
1374
+ name: string;
1375
+ type: BubbleParameterType;
1376
+ value?: unknown;
1377
+ }[];
1378
+ hasAwait: boolean;
1379
+ hasActionCall: boolean;
1380
+ bubbleName: string;
1381
+ }>>;
1382
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
1383
+ variableName: z.ZodString;
1384
+ bubbleName: z.ZodString;
1385
+ className: z.ZodString;
1386
+ parameters: z.ZodArray<z.ZodObject<{
1387
+ name: z.ZodString;
1388
+ value: z.ZodUnknown;
1389
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ name: string;
1392
+ type: BubbleParameterType;
1393
+ value?: unknown;
1394
+ }, {
1395
+ name: string;
1396
+ type: BubbleParameterType;
1397
+ value?: unknown;
1398
+ }>, "many">;
1399
+ hasAwait: z.ZodBoolean;
1400
+ hasActionCall: z.ZodBoolean;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ variableName: string;
1403
+ className: string;
1404
+ parameters: {
1405
+ name: string;
1406
+ type: BubbleParameterType;
1407
+ value?: unknown;
1408
+ }[];
1409
+ hasAwait: boolean;
1410
+ hasActionCall: boolean;
1411
+ bubbleName: string;
1412
+ }, {
1413
+ variableName: string;
1414
+ className: string;
1415
+ parameters: {
1416
+ name: string;
1417
+ type: BubbleParameterType;
1418
+ value?: unknown;
1419
+ }[];
1420
+ hasAwait: boolean;
1421
+ hasActionCall: boolean;
1422
+ bubbleName: string;
1423
+ }>>;
1424
+ requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>;
1425
+ createdAt: z.ZodString;
1426
+ updatedAt: z.ZodString;
1427
+ webhook: z.ZodOptional<z.ZodObject<{
1428
+ id: z.ZodNumber;
1429
+ url: z.ZodString;
1430
+ path: z.ZodString;
1431
+ active: z.ZodBoolean;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ path: string;
1434
+ id: number;
1435
+ url: string;
1436
+ active: boolean;
1437
+ }, {
1438
+ path: string;
1439
+ id: number;
1440
+ url: string;
1441
+ active: boolean;
1442
+ }>>;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ name: string;
1445
+ description: string;
1446
+ id: number;
1447
+ eventType: string;
1448
+ bubbleParameters: Record<string, {
1449
+ variableName: string;
1450
+ className: string;
1451
+ parameters: {
1452
+ name: string;
1453
+ type: BubbleParameterType;
1454
+ value?: unknown;
1455
+ }[];
1456
+ hasAwait: boolean;
1457
+ hasActionCall: boolean;
1458
+ bubbleName: string;
1459
+ }>;
1460
+ displayedBubbleParameters: Record<string, {
1461
+ variableName: string;
1462
+ className: string;
1463
+ parameters: {
1464
+ name: string;
1465
+ type: BubbleParameterType;
1466
+ value?: unknown;
1467
+ }[];
1468
+ hasAwait: boolean;
1469
+ hasActionCall: boolean;
1470
+ bubbleName: string;
1471
+ }>;
1472
+ createdAt: string;
1473
+ updatedAt: string;
1474
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
1475
+ webhook?: {
1476
+ path: string;
1477
+ id: number;
1478
+ url: string;
1479
+ active: boolean;
1480
+ } | undefined;
1481
+ }, {
1482
+ name: string;
1483
+ description: string;
1484
+ id: number;
1485
+ eventType: string;
1486
+ bubbleParameters: Record<string, {
1487
+ variableName: string;
1488
+ className: string;
1489
+ parameters: {
1490
+ name: string;
1491
+ type: BubbleParameterType;
1492
+ value?: unknown;
1493
+ }[];
1494
+ hasAwait: boolean;
1495
+ hasActionCall: boolean;
1496
+ bubbleName: string;
1497
+ }>;
1498
+ displayedBubbleParameters: Record<string, {
1499
+ variableName: string;
1500
+ className: string;
1501
+ parameters: {
1502
+ name: string;
1503
+ type: BubbleParameterType;
1504
+ value?: unknown;
1505
+ }[];
1506
+ hasAwait: boolean;
1507
+ hasActionCall: boolean;
1508
+ bubbleName: string;
1509
+ }>;
1510
+ createdAt: string;
1511
+ updatedAt: string;
1512
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
1513
+ webhook?: {
1514
+ path: string;
1515
+ id: number;
1516
+ url: string;
1517
+ active: boolean;
1518
+ } | undefined;
1519
+ }>;
1520
+ export type GenerateBubbleFlowCodeResponse = z.infer<typeof generateBubbleFlowCodeResponseSchema>;
1521
+ export type GenerateBubbleFlowTemplateRequest = z.infer<typeof generateBubbleFlowTemplateSchema>;
1522
+ export type GenerateDocumentGenerationTemplateRequest = z.infer<typeof generateDocumentGenerationTemplateSchema>;
1523
+ export type BubbleFlowTemplateResponse = z.infer<typeof bubbleFlowTemplateResponseSchema>;
1524
+ export type GenerationResult = z.infer<typeof GenerationResultSchema>;
1525
+ //# sourceMappingURL=generate-bubbleflow-schema.d.ts.map