@bubblelab/shared-schemas 0.1.12 → 0.1.13

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 (113) hide show
  1. package/dist/index.d.ts +10076 -29
  2. package/dist/index.js +3328 -30
  3. package/dist/index.js.map +1 -1
  4. package/package.json +3 -2
  5. package/dist/agent-memory.d.ts +0 -21
  6. package/dist/agent-memory.d.ts.map +0 -1
  7. package/dist/agent-memory.js +0 -11
  8. package/dist/agent-memory.js.map +0 -1
  9. package/dist/ai-models.d.ts +0 -4
  10. package/dist/ai-models.d.ts.map +0 -1
  11. package/dist/ai-models.js +0 -31
  12. package/dist/ai-models.js.map +0 -1
  13. package/dist/api-schema.d.ts +0 -38
  14. package/dist/api-schema.d.ts.map +0 -1
  15. package/dist/api-schema.js +0 -26
  16. package/dist/api-schema.js.map +0 -1
  17. package/dist/bubble-definition-schema.d.ts +0 -840
  18. package/dist/bubble-definition-schema.d.ts.map +0 -1
  19. package/dist/bubble-definition-schema.js +0 -299
  20. package/dist/bubble-definition-schema.js.map +0 -1
  21. package/dist/bubbleflow-execution-schema.d.ts +0 -1297
  22. package/dist/bubbleflow-execution-schema.d.ts.map +0 -1
  23. package/dist/bubbleflow-execution-schema.js +0 -360
  24. package/dist/bubbleflow-execution-schema.js.map +0 -1
  25. package/dist/bubbleflow-generation-prompts.d.ts +0 -8
  26. package/dist/bubbleflow-generation-prompts.d.ts.map +0 -1
  27. package/dist/bubbleflow-generation-prompts.js +0 -17
  28. package/dist/bubbleflow-generation-prompts.js.map +0 -1
  29. package/dist/bubbleflow-schema.d.ts +0 -2071
  30. package/dist/bubbleflow-schema.d.ts.map +0 -1
  31. package/dist/bubbleflow-schema.js +0 -336
  32. package/dist/bubbleflow-schema.js.map +0 -1
  33. package/dist/coffee.d.ts +0 -2201
  34. package/dist/coffee.d.ts.map +0 -1
  35. package/dist/coffee.js +0 -257
  36. package/dist/coffee.js.map +0 -1
  37. package/dist/credential-schema.d.ts +0 -574
  38. package/dist/credential-schema.d.ts.map +0 -1
  39. package/dist/credential-schema.js +0 -829
  40. package/dist/credential-schema.js.map +0 -1
  41. package/dist/cron-utils.d.ts +0 -47
  42. package/dist/cron-utils.d.ts.map +0 -1
  43. package/dist/cron-utils.js +0 -228
  44. package/dist/cron-utils.js.map +0 -1
  45. package/dist/database-definition-schema.d.ts +0 -97
  46. package/dist/database-definition-schema.d.ts.map +0 -1
  47. package/dist/database-definition-schema.js +0 -36
  48. package/dist/database-definition-schema.js.map +0 -1
  49. package/dist/error-enhancer.d.ts +0 -6
  50. package/dist/error-enhancer.d.ts.map +0 -1
  51. package/dist/error-enhancer.js +0 -88
  52. package/dist/error-enhancer.js.map +0 -1
  53. package/dist/generate-bubbleflow-schema.d.ts +0 -1525
  54. package/dist/generate-bubbleflow-schema.d.ts.map +0 -1
  55. package/dist/generate-bubbleflow-schema.js +0 -304
  56. package/dist/generate-bubbleflow-schema.js.map +0 -1
  57. package/dist/hash-utils.d.ts +0 -26
  58. package/dist/hash-utils.d.ts.map +0 -1
  59. package/dist/hash-utils.js +0 -37
  60. package/dist/hash-utils.js.map +0 -1
  61. package/dist/index.d.ts.map +0 -1
  62. package/dist/milk-tea.d.ts +0 -106
  63. package/dist/milk-tea.d.ts.map +0 -1
  64. package/dist/milk-tea.js +0 -71
  65. package/dist/milk-tea.js.map +0 -1
  66. package/dist/mock-data-generator.d.ts +0 -51
  67. package/dist/mock-data-generator.d.ts.map +0 -1
  68. package/dist/mock-data-generator.js +0 -335
  69. package/dist/mock-data-generator.js.map +0 -1
  70. package/dist/oauth-schema.d.ts +0 -61
  71. package/dist/oauth-schema.d.ts.map +0 -1
  72. package/dist/oauth-schema.js +0 -75
  73. package/dist/oauth-schema.js.map +0 -1
  74. package/dist/param-utils.d.ts +0 -10
  75. package/dist/param-utils.d.ts.map +0 -1
  76. package/dist/param-utils.js +0 -13
  77. package/dist/param-utils.js.map +0 -1
  78. package/dist/pearl.d.ts +0 -346
  79. package/dist/pearl.d.ts.map +0 -1
  80. package/dist/pearl.js +0 -90
  81. package/dist/pearl.js.map +0 -1
  82. package/dist/rice.d.ts +0 -100
  83. package/dist/rice.d.ts.map +0 -1
  84. package/dist/rice.js +0 -65
  85. package/dist/rice.js.map +0 -1
  86. package/dist/storage-utils.d.ts +0 -19
  87. package/dist/storage-utils.d.ts.map +0 -1
  88. package/dist/storage-utils.js +0 -54
  89. package/dist/storage-utils.js.map +0 -1
  90. package/dist/streaming-events.d.ts +0 -140
  91. package/dist/streaming-events.d.ts.map +0 -1
  92. package/dist/streaming-events.js +0 -5
  93. package/dist/streaming-events.js.map +0 -1
  94. package/dist/subscription-status-schema.d.ts +0 -250
  95. package/dist/subscription-status-schema.d.ts.map +0 -1
  96. package/dist/subscription-status-schema.js +0 -144
  97. package/dist/subscription-status-schema.js.map +0 -1
  98. package/dist/trigger.d.ts +0 -113
  99. package/dist/trigger.d.ts.map +0 -1
  100. package/dist/trigger.js +0 -12
  101. package/dist/trigger.js.map +0 -1
  102. package/dist/types.d.ts +0 -31
  103. package/dist/types.d.ts.map +0 -1
  104. package/dist/types.js +0 -47
  105. package/dist/types.js.map +0 -1
  106. package/dist/waitlist-schema.d.ts +0 -30
  107. package/dist/waitlist-schema.d.ts.map +0 -1
  108. package/dist/waitlist-schema.js +0 -39
  109. package/dist/waitlist-schema.js.map +0 -1
  110. package/dist/webhook-schema.d.ts +0 -95
  111. package/dist/webhook-schema.d.ts.map +0 -1
  112. package/dist/webhook-schema.js +0 -50
  113. package/dist/webhook-schema.js.map +0 -1
@@ -1,1525 +0,0 @@
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
- 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>;
456
- }, "strip", z.ZodTypeAny, {
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;
566
- }, {
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;
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
- type: BubbleParameterType;
710
- value: string | number | boolean | unknown[] | Record<string, unknown>;
711
- name: string;
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
- type: BubbleParameterType;
722
- value: string | number | boolean | unknown[] | Record<string, unknown>;
723
- name: string;
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: "unknown" | "tool" | "service" | "workflow";
770
- className: string;
771
- parameters: {
772
- type: BubbleParameterType;
773
- value: string | number | boolean | unknown[] | Record<string, unknown>;
774
- name: string;
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: "unknown" | "tool" | "service" | "workflow";
804
- className: string;
805
- parameters: {
806
- type: BubbleParameterType;
807
- value: string | number | boolean | unknown[] | Record<string, unknown>;
808
- name: string;
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
- success: boolean;
832
- error: string;
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: "unknown" | "tool" | "service" | "workflow";
844
- className: string;
845
- parameters: {
846
- type: BubbleParameterType;
847
- value: string | number | boolean | unknown[] | Record<string, unknown>;
848
- name: string;
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
- success: boolean;
873
- error: string;
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: "unknown" | "tool" | "service" | "workflow";
885
- className: string;
886
- parameters: {
887
- type: BubbleParameterType;
888
- value: string | number | boolean | unknown[] | Record<string, unknown>;
889
- name: string;
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
- 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
- }>>>;
1097
- }, "strip", z.ZodTypeAny, {
1098
- success: boolean;
1099
- error: string;
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: "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;
1151
- }, {
1152
- success: boolean;
1153
- error: string;
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: "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;
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
- description: string;
1218
- name: 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
- description: string;
1228
- name: 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
- description: string;
1290
- name: 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
- type: BubbleParameterType;
1350
- name: string;
1351
- value?: unknown;
1352
- }, {
1353
- type: BubbleParameterType;
1354
- name: string;
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
- type: BubbleParameterType;
1364
- name: string;
1365
- value?: unknown;
1366
- }[];
1367
- hasAwait: boolean;
1368
- hasActionCall: boolean;
1369
- bubbleName: string;
1370
- }, {
1371
- variableName: string;
1372
- className: string;
1373
- parameters: {
1374
- type: BubbleParameterType;
1375
- name: string;
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
- type: BubbleParameterType;
1392
- name: string;
1393
- value?: unknown;
1394
- }, {
1395
- type: BubbleParameterType;
1396
- name: string;
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
- type: BubbleParameterType;
1406
- name: string;
1407
- value?: unknown;
1408
- }[];
1409
- hasAwait: boolean;
1410
- hasActionCall: boolean;
1411
- bubbleName: string;
1412
- }, {
1413
- variableName: string;
1414
- className: string;
1415
- parameters: {
1416
- type: BubbleParameterType;
1417
- name: string;
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
- url: string;
1435
- id: number;
1436
- active: boolean;
1437
- }, {
1438
- path: string;
1439
- url: string;
1440
- id: number;
1441
- active: boolean;
1442
- }>>;
1443
- }, "strip", z.ZodTypeAny, {
1444
- description: string;
1445
- name: string;
1446
- id: number;
1447
- createdAt: string;
1448
- updatedAt: string;
1449
- eventType: string;
1450
- bubbleParameters: Record<string, {
1451
- variableName: string;
1452
- className: string;
1453
- parameters: {
1454
- type: BubbleParameterType;
1455
- name: string;
1456
- value?: unknown;
1457
- }[];
1458
- hasAwait: boolean;
1459
- hasActionCall: boolean;
1460
- bubbleName: string;
1461
- }>;
1462
- displayedBubbleParameters: Record<string, {
1463
- variableName: string;
1464
- className: string;
1465
- parameters: {
1466
- type: BubbleParameterType;
1467
- name: string;
1468
- value?: unknown;
1469
- }[];
1470
- hasAwait: boolean;
1471
- hasActionCall: boolean;
1472
- bubbleName: string;
1473
- }>;
1474
- requiredCredentials?: Record<string, CredentialType[]> | undefined;
1475
- webhook?: {
1476
- path: string;
1477
- url: string;
1478
- id: number;
1479
- active: boolean;
1480
- } | undefined;
1481
- }, {
1482
- description: string;
1483
- name: string;
1484
- id: number;
1485
- createdAt: string;
1486
- updatedAt: string;
1487
- eventType: string;
1488
- bubbleParameters: Record<string, {
1489
- variableName: string;
1490
- className: string;
1491
- parameters: {
1492
- type: BubbleParameterType;
1493
- name: string;
1494
- value?: unknown;
1495
- }[];
1496
- hasAwait: boolean;
1497
- hasActionCall: boolean;
1498
- bubbleName: string;
1499
- }>;
1500
- displayedBubbleParameters: Record<string, {
1501
- variableName: string;
1502
- className: string;
1503
- parameters: {
1504
- type: BubbleParameterType;
1505
- name: string;
1506
- value?: unknown;
1507
- }[];
1508
- hasAwait: boolean;
1509
- hasActionCall: boolean;
1510
- bubbleName: string;
1511
- }>;
1512
- requiredCredentials?: Record<string, CredentialType[]> | undefined;
1513
- webhook?: {
1514
- path: string;
1515
- url: string;
1516
- id: number;
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