@bubblelab/shared-schemas 0.1.0

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 (75) hide show
  1. package/LICENSE.txt +202 -0
  2. package/README.md +138 -0
  3. package/dist/api-schema.d.ts +38 -0
  4. package/dist/api-schema.d.ts.map +1 -0
  5. package/dist/api-schema.js +26 -0
  6. package/dist/api-schema.js.map +1 -0
  7. package/dist/bubble-definition-schema.d.ts +242 -0
  8. package/dist/bubble-definition-schema.d.ts.map +1 -0
  9. package/dist/bubble-definition-schema.js +95 -0
  10. package/dist/bubble-definition-schema.js.map +1 -0
  11. package/dist/bubbleflow-execution-schema.d.ts +580 -0
  12. package/dist/bubbleflow-execution-schema.d.ts.map +1 -0
  13. package/dist/bubbleflow-execution-schema.js +230 -0
  14. package/dist/bubbleflow-execution-schema.js.map +1 -0
  15. package/dist/bubbleflow-schema.d.ts +785 -0
  16. package/dist/bubbleflow-schema.d.ts.map +1 -0
  17. package/dist/bubbleflow-schema.js +206 -0
  18. package/dist/bubbleflow-schema.js.map +1 -0
  19. package/dist/credential-schema.d.ts +405 -0
  20. package/dist/credential-schema.d.ts.map +1 -0
  21. package/dist/credential-schema.js +327 -0
  22. package/dist/credential-schema.js.map +1 -0
  23. package/dist/database-definition-schema.d.ts +97 -0
  24. package/dist/database-definition-schema.d.ts.map +1 -0
  25. package/dist/database-definition-schema.js +36 -0
  26. package/dist/database-definition-schema.js.map +1 -0
  27. package/dist/generate-bubbleflow-schema.d.ts +481 -0
  28. package/dist/generate-bubbleflow-schema.d.ts.map +1 -0
  29. package/dist/generate-bubbleflow-schema.js +247 -0
  30. package/dist/generate-bubbleflow-schema.js.map +1 -0
  31. package/dist/index.d.ts +16 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +18 -0
  34. package/dist/index.js.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/mock-data-generator.js +325 -0
  38. package/dist/mock-data-generator.js.map +1 -0
  39. package/dist/mock-data-generator.test.d.ts +2 -0
  40. package/dist/mock-data-generator.test.d.ts.map +1 -0
  41. package/dist/mock-data-generator.test.js +176 -0
  42. package/dist/mock-data-generator.test.js.map +1 -0
  43. package/dist/oauth-schema.d.ts +61 -0
  44. package/dist/oauth-schema.d.ts.map +1 -0
  45. package/dist/oauth-schema.js +75 -0
  46. package/dist/oauth-schema.js.map +1 -0
  47. package/dist/prompts.d.ts +12 -0
  48. package/dist/prompts.d.ts.map +1 -0
  49. package/dist/prompts.js +40 -0
  50. package/dist/prompts.js.map +1 -0
  51. package/dist/routes.d.ts +2207 -0
  52. package/dist/routes.d.ts.map +1 -0
  53. package/dist/routes.js +978 -0
  54. package/dist/routes.js.map +1 -0
  55. package/dist/streaming-events.d.ts +35 -0
  56. package/dist/streaming-events.d.ts.map +1 -0
  57. package/dist/streaming-events.js +5 -0
  58. package/dist/streaming-events.js.map +1 -0
  59. package/dist/subscription-status-schema.d.ts +90 -0
  60. package/dist/subscription-status-schema.d.ts.map +1 -0
  61. package/dist/subscription-status-schema.js +66 -0
  62. package/dist/subscription-status-schema.js.map +1 -0
  63. package/dist/types.d.ts +19 -0
  64. package/dist/types.d.ts.map +1 -0
  65. package/dist/types.js +27 -0
  66. package/dist/types.js.map +1 -0
  67. package/dist/waitlist-schema.d.ts +30 -0
  68. package/dist/waitlist-schema.d.ts.map +1 -0
  69. package/dist/waitlist-schema.js +39 -0
  70. package/dist/waitlist-schema.js.map +1 -0
  71. package/dist/webhook-schema.d.ts +95 -0
  72. package/dist/webhook-schema.d.ts.map +1 -0
  73. package/dist/webhook-schema.js +50 -0
  74. package/dist/webhook-schema.js.map +1 -0
  75. package/package.json +45 -0
@@ -0,0 +1,2207 @@
1
+ /**
2
+ * @bubblelab/shared-schemas - API Schema Definitions
3
+ *
4
+ * This file contains all Zod schemas and TypeScript types for the NodeX API.
5
+ *
6
+ * IMPORTANT: All new API schemas should be written in this shared package to ensure
7
+ * type safety and consistency between frontend and backend applications.
8
+ *
9
+ * ## Schema Organization
10
+ *
11
+ * ### Request Schemas (Input Validation)
12
+ * - createBubbleFlowSchema - POST /bubble-flow
13
+ * - executeBubbleFlowSchema - POST /:id/execute
14
+ * - createCredentialSchema - POST /credentials
15
+ * - updateBubbleFlowParametersSchema - PUT /bubble-flow/:id
16
+ *
17
+ * ### Response Schemas (Output Types)
18
+ * - createBubbleFlowResponseSchema - POST /bubble-flow response
19
+ * - executeBubbleFlowResponseSchema - POST /:id/execute response
20
+ * - credentialResponseSchema - GET /credentials response
21
+ * - createCredentialResponseSchema - POST /credentials response
22
+ * - bubbleFlowDetailsResponseSchema - GET /bubble-flow/:id response
23
+ * - listBubbleFlowsResponseSchema - GET /bubble-flow response
24
+ * - webhookResponseSchema - POST /webhook/{userId}/{path} response
25
+ * - errorResponseSchema - Error responses
26
+ * - successMessageResponseSchema - Success responses
27
+ *
28
+ * ### TypeScript Types
29
+ * All schemas have corresponding TypeScript types exported for use in both
30
+ * frontend and backend applications.
31
+ *
32
+ * ## Usage Examples
33
+ *
34
+ * ### Backend (Validation)
35
+ * ```typescript
36
+ * import { createBubbleFlowSchema } from '@bubblelab/shared-schemas';
37
+ *
38
+ * // Validate request body
39
+ * const validatedData = createBubbleFlowSchema.parse(requestBody);
40
+ * ```
41
+ *
42
+ * ### Frontend (Type Safety)
43
+ * ```typescript
44
+ * import type { CreateBubbleFlowRequest, CreateBubbleFlowResponse } from '@bubblelab/shared-schemas';
45
+ *
46
+ * const createBubbleFlow = async (data: CreateBubbleFlowRequest): Promise<CreateBubbleFlowResponse> => {
47
+ * // API call with full type safety
48
+ * };
49
+ * ```
50
+ *
51
+ * ## Adding New Schemas
52
+ *
53
+ * 1. Define the Zod schema with proper OpenAPI metadata
54
+ * 2. Export the schema for validation
55
+ * 3. Export the TypeScript type using `z.infer<typeof schemaName>`
56
+ * 4. Update this documentation
57
+ * 5. Rebuild the package: `pnpm build:core`
58
+ */
59
+ import { z } from 'zod';
60
+ import { CredentialType } from './types';
61
+ import { BubbleParameterType } from './bubble-definition-schema';
62
+ export declare const createBubbleFlowSchema: z.ZodObject<{
63
+ name: z.ZodString;
64
+ description: z.ZodOptional<z.ZodString>;
65
+ prompt: z.ZodOptional<z.ZodString>;
66
+ code: z.ZodString;
67
+ eventType: z.ZodString;
68
+ webhookPath: z.ZodOptional<z.ZodString>;
69
+ webhookActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ name: string;
72
+ code: string;
73
+ eventType: string;
74
+ description?: string | undefined;
75
+ prompt?: string | undefined;
76
+ webhookPath?: string | undefined;
77
+ webhookActive?: boolean | undefined;
78
+ }, {
79
+ name: string;
80
+ code: string;
81
+ eventType: string;
82
+ description?: string | undefined;
83
+ prompt?: string | undefined;
84
+ webhookPath?: string | undefined;
85
+ webhookActive?: boolean | undefined;
86
+ }>;
87
+ export declare const executeBubbleFlowSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
88
+ export declare const createCredentialSchema: z.ZodObject<{
89
+ credentialType: z.ZodNativeEnum<typeof CredentialType>;
90
+ value: z.ZodString;
91
+ name: z.ZodOptional<z.ZodString>;
92
+ skipValidation: z.ZodOptional<z.ZodBoolean>;
93
+ credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
94
+ metadata: z.ZodOptional<z.ZodObject<{
95
+ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
96
+ tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
97
+ databaseName: z.ZodOptional<z.ZodString>;
98
+ databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>;
99
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ text: z.ZodString;
102
+ enabled: z.ZodBoolean;
103
+ createdAt: z.ZodString;
104
+ updatedAt: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ id: string;
107
+ text: string;
108
+ enabled: boolean;
109
+ createdAt: string;
110
+ updatedAt: string;
111
+ }, {
112
+ id: string;
113
+ text: string;
114
+ enabled: boolean;
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ }>, "many">>;
118
+ notes: z.ZodOptional<z.ZodString>;
119
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ tables: Record<string, Record<string, string>>;
122
+ tableNotes?: Record<string, string> | undefined;
123
+ databaseName?: string | undefined;
124
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
125
+ rules?: {
126
+ id: string;
127
+ text: string;
128
+ enabled: boolean;
129
+ createdAt: string;
130
+ updatedAt: string;
131
+ }[] | undefined;
132
+ notes?: string | undefined;
133
+ tags?: string[] | undefined;
134
+ }, {
135
+ tables: Record<string, Record<string, string>>;
136
+ tableNotes?: Record<string, string> | undefined;
137
+ databaseName?: string | undefined;
138
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
139
+ rules?: {
140
+ id: string;
141
+ text: string;
142
+ enabled: boolean;
143
+ createdAt: string;
144
+ updatedAt: string;
145
+ }[] | undefined;
146
+ notes?: string | undefined;
147
+ tags?: string[] | undefined;
148
+ }>>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ value: string;
151
+ credentialType: CredentialType;
152
+ name?: string | undefined;
153
+ skipValidation?: boolean | undefined;
154
+ credentialConfigurations?: Record<string, unknown> | undefined;
155
+ metadata?: {
156
+ tables: Record<string, Record<string, string>>;
157
+ tableNotes?: Record<string, string> | undefined;
158
+ databaseName?: string | undefined;
159
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
160
+ rules?: {
161
+ id: string;
162
+ text: string;
163
+ enabled: boolean;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ }[] | undefined;
167
+ notes?: string | undefined;
168
+ tags?: string[] | undefined;
169
+ } | undefined;
170
+ }, {
171
+ value: string;
172
+ credentialType: CredentialType;
173
+ name?: string | undefined;
174
+ skipValidation?: boolean | undefined;
175
+ credentialConfigurations?: Record<string, unknown> | undefined;
176
+ metadata?: {
177
+ tables: Record<string, Record<string, string>>;
178
+ tableNotes?: Record<string, string> | undefined;
179
+ databaseName?: string | undefined;
180
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
181
+ rules?: {
182
+ id: string;
183
+ text: string;
184
+ enabled: boolean;
185
+ createdAt: string;
186
+ updatedAt: string;
187
+ }[] | undefined;
188
+ notes?: string | undefined;
189
+ tags?: string[] | undefined;
190
+ } | undefined;
191
+ }>;
192
+ export declare const updateCredentialSchema: z.ZodObject<{
193
+ value: z.ZodOptional<z.ZodString>;
194
+ name: z.ZodOptional<z.ZodString>;
195
+ skipValidation: z.ZodOptional<z.ZodBoolean>;
196
+ credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197
+ metadata: z.ZodOptional<z.ZodObject<{
198
+ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
199
+ tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
200
+ databaseName: z.ZodOptional<z.ZodString>;
201
+ databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>;
202
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
203
+ id: z.ZodString;
204
+ text: z.ZodString;
205
+ enabled: z.ZodBoolean;
206
+ createdAt: z.ZodString;
207
+ updatedAt: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ id: string;
210
+ text: string;
211
+ enabled: boolean;
212
+ createdAt: string;
213
+ updatedAt: string;
214
+ }, {
215
+ id: string;
216
+ text: string;
217
+ enabled: boolean;
218
+ createdAt: string;
219
+ updatedAt: string;
220
+ }>, "many">>;
221
+ notes: z.ZodOptional<z.ZodString>;
222
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ tables: Record<string, Record<string, string>>;
225
+ tableNotes?: Record<string, string> | undefined;
226
+ databaseName?: string | undefined;
227
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
228
+ rules?: {
229
+ id: string;
230
+ text: string;
231
+ enabled: boolean;
232
+ createdAt: string;
233
+ updatedAt: string;
234
+ }[] | undefined;
235
+ notes?: string | undefined;
236
+ tags?: string[] | undefined;
237
+ }, {
238
+ tables: Record<string, Record<string, string>>;
239
+ tableNotes?: Record<string, string> | undefined;
240
+ databaseName?: string | undefined;
241
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
242
+ rules?: {
243
+ id: string;
244
+ text: string;
245
+ enabled: boolean;
246
+ createdAt: string;
247
+ updatedAt: string;
248
+ }[] | undefined;
249
+ notes?: string | undefined;
250
+ tags?: string[] | undefined;
251
+ }>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ name?: string | undefined;
254
+ value?: string | undefined;
255
+ skipValidation?: boolean | undefined;
256
+ credentialConfigurations?: Record<string, unknown> | undefined;
257
+ metadata?: {
258
+ tables: Record<string, Record<string, string>>;
259
+ tableNotes?: Record<string, string> | undefined;
260
+ databaseName?: string | undefined;
261
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
262
+ rules?: {
263
+ id: string;
264
+ text: string;
265
+ enabled: boolean;
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ }[] | undefined;
269
+ notes?: string | undefined;
270
+ tags?: string[] | undefined;
271
+ } | undefined;
272
+ }, {
273
+ name?: string | undefined;
274
+ value?: string | undefined;
275
+ skipValidation?: boolean | undefined;
276
+ credentialConfigurations?: Record<string, unknown> | undefined;
277
+ metadata?: {
278
+ tables: Record<string, Record<string, string>>;
279
+ tableNotes?: Record<string, string> | undefined;
280
+ databaseName?: string | undefined;
281
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
282
+ rules?: {
283
+ id: string;
284
+ text: string;
285
+ enabled: boolean;
286
+ createdAt: string;
287
+ updatedAt: string;
288
+ }[] | undefined;
289
+ notes?: string | undefined;
290
+ tags?: string[] | undefined;
291
+ } | undefined;
292
+ }>;
293
+ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
294
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
295
+ variableName: z.ZodString;
296
+ bubbleName: z.ZodString;
297
+ className: z.ZodString;
298
+ parameters: z.ZodArray<z.ZodObject<{
299
+ variableId: z.ZodOptional<z.ZodNumber>;
300
+ name: z.ZodString;
301
+ value: z.ZodUnknown;
302
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ type: BubbleParameterType;
305
+ name: string;
306
+ value?: unknown;
307
+ variableId?: number | undefined;
308
+ }, {
309
+ type: BubbleParameterType;
310
+ name: string;
311
+ value?: unknown;
312
+ variableId?: number | undefined;
313
+ }>, "many">;
314
+ hasAwait: z.ZodBoolean;
315
+ hasActionCall: z.ZodBoolean;
316
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
317
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
318
+ variableId: z.ZodNumber;
319
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
320
+ location: z.ZodObject<{
321
+ startLine: z.ZodNumber;
322
+ startCol: z.ZodNumber;
323
+ endLine: z.ZodNumber;
324
+ endCol: z.ZodNumber;
325
+ }, "strip", z.ZodTypeAny, {
326
+ startLine: number;
327
+ startCol: number;
328
+ endLine: number;
329
+ endCol: number;
330
+ }, {
331
+ startLine: number;
332
+ startCol: number;
333
+ endLine: number;
334
+ endCol: number;
335
+ }>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ variableName: string;
338
+ bubbleName: string;
339
+ className: string;
340
+ parameters: {
341
+ type: BubbleParameterType;
342
+ name: string;
343
+ value?: unknown;
344
+ variableId?: number | undefined;
345
+ }[];
346
+ variableId: number;
347
+ hasAwait: boolean;
348
+ hasActionCall: boolean;
349
+ nodeType: "unknown" | "service" | "tool" | "workflow";
350
+ location: {
351
+ startLine: number;
352
+ startCol: number;
353
+ endLine: number;
354
+ endCol: number;
355
+ };
356
+ dependencies?: import("./types").BubbleName[] | undefined;
357
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
358
+ }, {
359
+ variableName: string;
360
+ bubbleName: string;
361
+ className: string;
362
+ parameters: {
363
+ type: BubbleParameterType;
364
+ name: string;
365
+ value?: unknown;
366
+ variableId?: number | undefined;
367
+ }[];
368
+ variableId: number;
369
+ hasAwait: boolean;
370
+ hasActionCall: boolean;
371
+ nodeType: "unknown" | "service" | "tool" | "workflow";
372
+ location: {
373
+ startLine: number;
374
+ startCol: number;
375
+ endLine: number;
376
+ endCol: number;
377
+ };
378
+ dependencies?: import("./types").BubbleName[] | undefined;
379
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
380
+ }>, z.ZodObject<{
381
+ variableName: z.ZodString;
382
+ bubbleName: z.ZodString;
383
+ className: z.ZodString;
384
+ parameters: z.ZodArray<z.ZodObject<{
385
+ variableId: z.ZodOptional<z.ZodNumber>;
386
+ name: z.ZodString;
387
+ value: z.ZodUnknown;
388
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ type: BubbleParameterType;
391
+ name: string;
392
+ value?: unknown;
393
+ variableId?: number | undefined;
394
+ }, {
395
+ type: BubbleParameterType;
396
+ name: string;
397
+ value?: unknown;
398
+ variableId?: number | undefined;
399
+ }>, "many">;
400
+ hasAwait: z.ZodBoolean;
401
+ hasActionCall: z.ZodBoolean;
402
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
403
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ variableName: string;
406
+ bubbleName: string;
407
+ className: string;
408
+ parameters: {
409
+ type: BubbleParameterType;
410
+ name: string;
411
+ value?: unknown;
412
+ variableId?: number | undefined;
413
+ }[];
414
+ hasAwait: boolean;
415
+ hasActionCall: boolean;
416
+ dependencies?: import("./types").BubbleName[] | undefined;
417
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
418
+ }, {
419
+ variableName: string;
420
+ bubbleName: string;
421
+ className: string;
422
+ parameters: {
423
+ type: BubbleParameterType;
424
+ name: string;
425
+ value?: unknown;
426
+ variableId?: number | undefined;
427
+ }[];
428
+ hasAwait: boolean;
429
+ hasActionCall: boolean;
430
+ dependencies?: import("./types").BubbleName[] | undefined;
431
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
432
+ }>]>>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ bubbleParameters: Record<string, {
435
+ variableName: string;
436
+ bubbleName: string;
437
+ className: string;
438
+ parameters: {
439
+ type: BubbleParameterType;
440
+ name: string;
441
+ value?: unknown;
442
+ variableId?: number | undefined;
443
+ }[];
444
+ variableId: number;
445
+ hasAwait: boolean;
446
+ hasActionCall: boolean;
447
+ nodeType: "unknown" | "service" | "tool" | "workflow";
448
+ location: {
449
+ startLine: number;
450
+ startCol: number;
451
+ endLine: number;
452
+ endCol: number;
453
+ };
454
+ dependencies?: import("./types").BubbleName[] | undefined;
455
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
456
+ } | {
457
+ variableName: string;
458
+ bubbleName: string;
459
+ className: string;
460
+ parameters: {
461
+ type: BubbleParameterType;
462
+ name: string;
463
+ value?: unknown;
464
+ variableId?: number | undefined;
465
+ }[];
466
+ hasAwait: boolean;
467
+ hasActionCall: boolean;
468
+ dependencies?: import("./types").BubbleName[] | undefined;
469
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
470
+ }>;
471
+ }, {
472
+ bubbleParameters: Record<string, {
473
+ variableName: string;
474
+ bubbleName: string;
475
+ className: string;
476
+ parameters: {
477
+ type: BubbleParameterType;
478
+ name: string;
479
+ value?: unknown;
480
+ variableId?: number | undefined;
481
+ }[];
482
+ variableId: number;
483
+ hasAwait: boolean;
484
+ hasActionCall: boolean;
485
+ nodeType: "unknown" | "service" | "tool" | "workflow";
486
+ location: {
487
+ startLine: number;
488
+ startCol: number;
489
+ endLine: number;
490
+ endCol: number;
491
+ };
492
+ dependencies?: import("./types").BubbleName[] | undefined;
493
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
494
+ } | {
495
+ variableName: string;
496
+ bubbleName: string;
497
+ className: string;
498
+ parameters: {
499
+ type: BubbleParameterType;
500
+ name: string;
501
+ value?: unknown;
502
+ variableId?: number | undefined;
503
+ }[];
504
+ hasAwait: boolean;
505
+ hasActionCall: boolean;
506
+ dependencies?: import("./types").BubbleName[] | undefined;
507
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
508
+ }>;
509
+ }>;
510
+ export declare const createBubbleFlowResponseSchema: z.ZodObject<{
511
+ id: z.ZodNumber;
512
+ message: z.ZodString;
513
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
514
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
515
+ variableName: z.ZodString;
516
+ bubbleName: z.ZodString;
517
+ className: z.ZodString;
518
+ parameters: z.ZodArray<z.ZodObject<{
519
+ variableId: z.ZodOptional<z.ZodNumber>;
520
+ name: z.ZodString;
521
+ value: z.ZodUnknown;
522
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ type: BubbleParameterType;
525
+ name: string;
526
+ value?: unknown;
527
+ variableId?: number | undefined;
528
+ }, {
529
+ type: BubbleParameterType;
530
+ name: string;
531
+ value?: unknown;
532
+ variableId?: number | undefined;
533
+ }>, "many">;
534
+ hasAwait: z.ZodBoolean;
535
+ hasActionCall: z.ZodBoolean;
536
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
537
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
538
+ variableId: z.ZodNumber;
539
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
540
+ location: z.ZodObject<{
541
+ startLine: z.ZodNumber;
542
+ startCol: z.ZodNumber;
543
+ endLine: z.ZodNumber;
544
+ endCol: z.ZodNumber;
545
+ }, "strip", z.ZodTypeAny, {
546
+ startLine: number;
547
+ startCol: number;
548
+ endLine: number;
549
+ endCol: number;
550
+ }, {
551
+ startLine: number;
552
+ startCol: number;
553
+ endLine: number;
554
+ endCol: number;
555
+ }>;
556
+ }, "strip", z.ZodTypeAny, {
557
+ variableName: string;
558
+ bubbleName: string;
559
+ className: string;
560
+ parameters: {
561
+ type: BubbleParameterType;
562
+ name: string;
563
+ value?: unknown;
564
+ variableId?: number | undefined;
565
+ }[];
566
+ variableId: number;
567
+ hasAwait: boolean;
568
+ hasActionCall: boolean;
569
+ nodeType: "unknown" | "service" | "tool" | "workflow";
570
+ location: {
571
+ startLine: number;
572
+ startCol: number;
573
+ endLine: number;
574
+ endCol: number;
575
+ };
576
+ dependencies?: import("./types").BubbleName[] | undefined;
577
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
578
+ }, {
579
+ variableName: string;
580
+ bubbleName: string;
581
+ className: string;
582
+ parameters: {
583
+ type: BubbleParameterType;
584
+ name: string;
585
+ value?: unknown;
586
+ variableId?: number | undefined;
587
+ }[];
588
+ variableId: number;
589
+ hasAwait: boolean;
590
+ hasActionCall: boolean;
591
+ nodeType: "unknown" | "service" | "tool" | "workflow";
592
+ location: {
593
+ startLine: number;
594
+ startCol: number;
595
+ endLine: number;
596
+ endCol: number;
597
+ };
598
+ dependencies?: import("./types").BubbleName[] | undefined;
599
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
600
+ }>>;
601
+ requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>;
602
+ webhook: z.ZodOptional<z.ZodObject<{
603
+ id: z.ZodNumber;
604
+ url: z.ZodString;
605
+ path: z.ZodString;
606
+ active: z.ZodBoolean;
607
+ }, "strip", z.ZodTypeAny, {
608
+ path: string;
609
+ url: string;
610
+ id: number;
611
+ active: boolean;
612
+ }, {
613
+ path: string;
614
+ url: string;
615
+ id: number;
616
+ active: boolean;
617
+ }>>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ message: string;
620
+ id: number;
621
+ bubbleParameters: Record<string, {
622
+ variableName: string;
623
+ bubbleName: string;
624
+ className: string;
625
+ parameters: {
626
+ type: BubbleParameterType;
627
+ name: string;
628
+ value?: unknown;
629
+ variableId?: number | undefined;
630
+ }[];
631
+ variableId: number;
632
+ hasAwait: boolean;
633
+ hasActionCall: boolean;
634
+ nodeType: "unknown" | "service" | "tool" | "workflow";
635
+ location: {
636
+ startLine: number;
637
+ startCol: number;
638
+ endLine: number;
639
+ endCol: number;
640
+ };
641
+ dependencies?: import("./types").BubbleName[] | undefined;
642
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
643
+ }>;
644
+ inputSchema?: Record<string, unknown> | undefined;
645
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
646
+ webhook?: {
647
+ path: string;
648
+ url: string;
649
+ id: number;
650
+ active: boolean;
651
+ } | undefined;
652
+ }, {
653
+ message: string;
654
+ id: number;
655
+ bubbleParameters: Record<string, {
656
+ variableName: string;
657
+ bubbleName: string;
658
+ className: string;
659
+ parameters: {
660
+ type: BubbleParameterType;
661
+ name: string;
662
+ value?: unknown;
663
+ variableId?: number | undefined;
664
+ }[];
665
+ variableId: number;
666
+ hasAwait: boolean;
667
+ hasActionCall: boolean;
668
+ nodeType: "unknown" | "service" | "tool" | "workflow";
669
+ location: {
670
+ startLine: number;
671
+ startCol: number;
672
+ endLine: number;
673
+ endCol: number;
674
+ };
675
+ dependencies?: import("./types").BubbleName[] | undefined;
676
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
677
+ }>;
678
+ inputSchema?: Record<string, unknown> | undefined;
679
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
680
+ webhook?: {
681
+ path: string;
682
+ url: string;
683
+ id: number;
684
+ active: boolean;
685
+ } | undefined;
686
+ }>;
687
+ export type CreateBubbleFlowResponse = z.infer<typeof createBubbleFlowResponseSchema>;
688
+ export declare const executeBubbleFlowResponseSchema: z.ZodObject<{
689
+ executionId: z.ZodNumber;
690
+ success: z.ZodBoolean;
691
+ data: z.ZodOptional<z.ZodAny>;
692
+ error: z.ZodOptional<z.ZodString>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ executionId: number;
695
+ success: boolean;
696
+ data?: any;
697
+ error?: string | undefined;
698
+ }, {
699
+ executionId: number;
700
+ success: boolean;
701
+ data?: any;
702
+ error?: string | undefined;
703
+ }>;
704
+ export type ExecuteBubbleFlowResponse = z.infer<typeof executeBubbleFlowResponseSchema>;
705
+ export type ExecutionResult = ExecuteBubbleFlowResponse;
706
+ export declare const credentialResponseSchema: z.ZodObject<{
707
+ id: z.ZodNumber;
708
+ credentialType: z.ZodString;
709
+ name: z.ZodOptional<z.ZodString>;
710
+ metadata: z.ZodOptional<z.ZodObject<{
711
+ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
712
+ tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
713
+ databaseName: z.ZodOptional<z.ZodString>;
714
+ databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>;
715
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
716
+ id: z.ZodString;
717
+ text: z.ZodString;
718
+ enabled: z.ZodBoolean;
719
+ createdAt: z.ZodString;
720
+ updatedAt: z.ZodString;
721
+ }, "strip", z.ZodTypeAny, {
722
+ id: string;
723
+ text: string;
724
+ enabled: boolean;
725
+ createdAt: string;
726
+ updatedAt: string;
727
+ }, {
728
+ id: string;
729
+ text: string;
730
+ enabled: boolean;
731
+ createdAt: string;
732
+ updatedAt: string;
733
+ }>, "many">>;
734
+ notes: z.ZodOptional<z.ZodString>;
735
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ tables: Record<string, Record<string, string>>;
738
+ tableNotes?: Record<string, string> | undefined;
739
+ databaseName?: string | undefined;
740
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
741
+ rules?: {
742
+ id: string;
743
+ text: string;
744
+ enabled: boolean;
745
+ createdAt: string;
746
+ updatedAt: string;
747
+ }[] | undefined;
748
+ notes?: string | undefined;
749
+ tags?: string[] | undefined;
750
+ }, {
751
+ tables: Record<string, Record<string, string>>;
752
+ tableNotes?: Record<string, string> | undefined;
753
+ databaseName?: string | undefined;
754
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
755
+ rules?: {
756
+ id: string;
757
+ text: string;
758
+ enabled: boolean;
759
+ createdAt: string;
760
+ updatedAt: string;
761
+ }[] | undefined;
762
+ notes?: string | undefined;
763
+ tags?: string[] | undefined;
764
+ }>>;
765
+ createdAt: z.ZodString;
766
+ isOauth: z.ZodOptional<z.ZodBoolean>;
767
+ oauthProvider: z.ZodOptional<z.ZodString>;
768
+ oauthExpiresAt: z.ZodOptional<z.ZodString>;
769
+ oauthScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
770
+ oauthStatus: z.ZodOptional<z.ZodEnum<["active", "expired", "needs_refresh"]>>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ credentialType: string;
773
+ id: number;
774
+ createdAt: string;
775
+ name?: string | undefined;
776
+ metadata?: {
777
+ tables: Record<string, Record<string, string>>;
778
+ tableNotes?: Record<string, string> | undefined;
779
+ databaseName?: string | undefined;
780
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
781
+ rules?: {
782
+ id: string;
783
+ text: string;
784
+ enabled: boolean;
785
+ createdAt: string;
786
+ updatedAt: string;
787
+ }[] | undefined;
788
+ notes?: string | undefined;
789
+ tags?: string[] | undefined;
790
+ } | undefined;
791
+ isOauth?: boolean | undefined;
792
+ oauthProvider?: string | undefined;
793
+ oauthExpiresAt?: string | undefined;
794
+ oauthScopes?: string[] | undefined;
795
+ oauthStatus?: "active" | "expired" | "needs_refresh" | undefined;
796
+ }, {
797
+ credentialType: string;
798
+ id: number;
799
+ createdAt: string;
800
+ name?: string | undefined;
801
+ metadata?: {
802
+ tables: Record<string, Record<string, string>>;
803
+ tableNotes?: Record<string, string> | undefined;
804
+ databaseName?: string | undefined;
805
+ databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined;
806
+ rules?: {
807
+ id: string;
808
+ text: string;
809
+ enabled: boolean;
810
+ createdAt: string;
811
+ updatedAt: string;
812
+ }[] | undefined;
813
+ notes?: string | undefined;
814
+ tags?: string[] | undefined;
815
+ } | undefined;
816
+ isOauth?: boolean | undefined;
817
+ oauthProvider?: string | undefined;
818
+ oauthExpiresAt?: string | undefined;
819
+ oauthScopes?: string[] | undefined;
820
+ oauthStatus?: "active" | "expired" | "needs_refresh" | undefined;
821
+ }>;
822
+ export declare const createCredentialResponseSchema: z.ZodObject<{
823
+ id: z.ZodNumber;
824
+ message: z.ZodString;
825
+ }, "strip", z.ZodTypeAny, {
826
+ message: string;
827
+ id: number;
828
+ }, {
829
+ message: string;
830
+ id: number;
831
+ }>;
832
+ export declare const updateCredentialResponseSchema: z.ZodObject<{
833
+ id: z.ZodNumber;
834
+ message: z.ZodString;
835
+ }, "strip", z.ZodTypeAny, {
836
+ message: string;
837
+ id: number;
838
+ }, {
839
+ message: string;
840
+ id: number;
841
+ }>;
842
+ export declare const successMessageResponseSchema: z.ZodObject<{
843
+ message: z.ZodString;
844
+ }, "strip", z.ZodTypeAny, {
845
+ message: string;
846
+ }, {
847
+ message: string;
848
+ }>;
849
+ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
850
+ id: z.ZodNumber;
851
+ name: z.ZodString;
852
+ description: z.ZodOptional<z.ZodString>;
853
+ prompt: z.ZodOptional<z.ZodString>;
854
+ eventType: z.ZodString;
855
+ code: z.ZodString;
856
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
857
+ isActive: z.ZodBoolean;
858
+ requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>;
859
+ displayedBubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
860
+ variableName: z.ZodString;
861
+ bubbleName: z.ZodString;
862
+ className: z.ZodString;
863
+ parameters: z.ZodArray<z.ZodObject<{
864
+ name: z.ZodString;
865
+ value: z.ZodUnknown;
866
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ type: BubbleParameterType;
869
+ name: string;
870
+ value?: unknown;
871
+ }, {
872
+ type: BubbleParameterType;
873
+ name: string;
874
+ value?: unknown;
875
+ }>, "many">;
876
+ hasAwait: z.ZodBoolean;
877
+ hasActionCall: z.ZodBoolean;
878
+ }, "strip", z.ZodTypeAny, {
879
+ variableName: string;
880
+ bubbleName: string;
881
+ className: string;
882
+ parameters: {
883
+ type: BubbleParameterType;
884
+ name: string;
885
+ value?: unknown;
886
+ }[];
887
+ hasAwait: boolean;
888
+ hasActionCall: boolean;
889
+ }, {
890
+ variableName: string;
891
+ bubbleName: string;
892
+ className: string;
893
+ parameters: {
894
+ type: BubbleParameterType;
895
+ name: string;
896
+ value?: unknown;
897
+ }[];
898
+ hasAwait: boolean;
899
+ hasActionCall: boolean;
900
+ }>>>;
901
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
902
+ variableName: z.ZodString;
903
+ bubbleName: z.ZodString;
904
+ className: z.ZodString;
905
+ parameters: z.ZodArray<z.ZodObject<{
906
+ variableId: z.ZodOptional<z.ZodNumber>;
907
+ name: z.ZodString;
908
+ value: z.ZodUnknown;
909
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ type: BubbleParameterType;
912
+ name: string;
913
+ value?: unknown;
914
+ variableId?: number | undefined;
915
+ }, {
916
+ type: BubbleParameterType;
917
+ name: string;
918
+ value?: unknown;
919
+ variableId?: number | undefined;
920
+ }>, "many">;
921
+ hasAwait: z.ZodBoolean;
922
+ hasActionCall: z.ZodBoolean;
923
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
924
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
925
+ variableId: z.ZodNumber;
926
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
927
+ location: z.ZodObject<{
928
+ startLine: z.ZodNumber;
929
+ startCol: z.ZodNumber;
930
+ endLine: z.ZodNumber;
931
+ endCol: z.ZodNumber;
932
+ }, "strip", z.ZodTypeAny, {
933
+ startLine: number;
934
+ startCol: number;
935
+ endLine: number;
936
+ endCol: number;
937
+ }, {
938
+ startLine: number;
939
+ startCol: number;
940
+ endLine: number;
941
+ endCol: number;
942
+ }>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ variableName: string;
945
+ bubbleName: string;
946
+ className: string;
947
+ parameters: {
948
+ type: BubbleParameterType;
949
+ name: string;
950
+ value?: unknown;
951
+ variableId?: number | undefined;
952
+ }[];
953
+ variableId: number;
954
+ hasAwait: boolean;
955
+ hasActionCall: boolean;
956
+ nodeType: "unknown" | "service" | "tool" | "workflow";
957
+ location: {
958
+ startLine: number;
959
+ startCol: number;
960
+ endLine: number;
961
+ endCol: number;
962
+ };
963
+ dependencies?: import("./types").BubbleName[] | undefined;
964
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
965
+ }, {
966
+ variableName: string;
967
+ bubbleName: string;
968
+ className: string;
969
+ parameters: {
970
+ type: BubbleParameterType;
971
+ name: string;
972
+ value?: unknown;
973
+ variableId?: number | undefined;
974
+ }[];
975
+ variableId: number;
976
+ hasAwait: boolean;
977
+ hasActionCall: boolean;
978
+ nodeType: "unknown" | "service" | "tool" | "workflow";
979
+ location: {
980
+ startLine: number;
981
+ startCol: number;
982
+ endLine: number;
983
+ endCol: number;
984
+ };
985
+ dependencies?: import("./types").BubbleName[] | undefined;
986
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
987
+ }>>;
988
+ createdAt: z.ZodString;
989
+ updatedAt: z.ZodString;
990
+ webhook_url: z.ZodString;
991
+ }, "strip", z.ZodTypeAny, {
992
+ name: string;
993
+ code: string;
994
+ eventType: string;
995
+ id: number;
996
+ createdAt: string;
997
+ updatedAt: string;
998
+ bubbleParameters: Record<string, {
999
+ variableName: string;
1000
+ bubbleName: string;
1001
+ className: string;
1002
+ parameters: {
1003
+ type: BubbleParameterType;
1004
+ name: string;
1005
+ value?: unknown;
1006
+ variableId?: number | undefined;
1007
+ }[];
1008
+ variableId: number;
1009
+ hasAwait: boolean;
1010
+ hasActionCall: boolean;
1011
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1012
+ location: {
1013
+ startLine: number;
1014
+ startCol: number;
1015
+ endLine: number;
1016
+ endCol: number;
1017
+ };
1018
+ dependencies?: import("./types").BubbleName[] | undefined;
1019
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1020
+ }>;
1021
+ requiredCredentials: Record<string, CredentialType[]>;
1022
+ isActive: boolean;
1023
+ webhook_url: string;
1024
+ description?: string | undefined;
1025
+ prompt?: string | undefined;
1026
+ inputSchema?: Record<string, unknown> | undefined;
1027
+ displayedBubbleParameters?: Record<string, {
1028
+ variableName: string;
1029
+ bubbleName: string;
1030
+ className: string;
1031
+ parameters: {
1032
+ type: BubbleParameterType;
1033
+ name: string;
1034
+ value?: unknown;
1035
+ }[];
1036
+ hasAwait: boolean;
1037
+ hasActionCall: boolean;
1038
+ }> | undefined;
1039
+ }, {
1040
+ name: string;
1041
+ code: string;
1042
+ eventType: string;
1043
+ id: number;
1044
+ createdAt: string;
1045
+ updatedAt: string;
1046
+ bubbleParameters: Record<string, {
1047
+ variableName: string;
1048
+ bubbleName: string;
1049
+ className: string;
1050
+ parameters: {
1051
+ type: BubbleParameterType;
1052
+ name: string;
1053
+ value?: unknown;
1054
+ variableId?: number | undefined;
1055
+ }[];
1056
+ variableId: number;
1057
+ hasAwait: boolean;
1058
+ hasActionCall: boolean;
1059
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1060
+ location: {
1061
+ startLine: number;
1062
+ startCol: number;
1063
+ endLine: number;
1064
+ endCol: number;
1065
+ };
1066
+ dependencies?: import("./types").BubbleName[] | undefined;
1067
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1068
+ }>;
1069
+ requiredCredentials: Record<string, CredentialType[]>;
1070
+ isActive: boolean;
1071
+ webhook_url: string;
1072
+ description?: string | undefined;
1073
+ prompt?: string | undefined;
1074
+ inputSchema?: Record<string, unknown> | undefined;
1075
+ displayedBubbleParameters?: Record<string, {
1076
+ variableName: string;
1077
+ bubbleName: string;
1078
+ className: string;
1079
+ parameters: {
1080
+ type: BubbleParameterType;
1081
+ name: string;
1082
+ value?: unknown;
1083
+ }[];
1084
+ hasAwait: boolean;
1085
+ hasActionCall: boolean;
1086
+ }> | undefined;
1087
+ }>;
1088
+ export declare const webhookExecutionResponseSchema: z.ZodObject<{
1089
+ executionId: z.ZodNumber;
1090
+ success: z.ZodBoolean;
1091
+ data: z.ZodOptional<z.ZodUnknown>;
1092
+ error: z.ZodOptional<z.ZodString>;
1093
+ webhook: z.ZodObject<{
1094
+ userId: z.ZodString;
1095
+ path: z.ZodString;
1096
+ triggeredAt: z.ZodString;
1097
+ method: z.ZodString;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ path: string;
1100
+ userId: string;
1101
+ triggeredAt: string;
1102
+ method: string;
1103
+ }, {
1104
+ path: string;
1105
+ userId: string;
1106
+ triggeredAt: string;
1107
+ method: string;
1108
+ }>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ webhook: {
1111
+ path: string;
1112
+ userId: string;
1113
+ triggeredAt: string;
1114
+ method: string;
1115
+ };
1116
+ executionId: number;
1117
+ success: boolean;
1118
+ data?: unknown;
1119
+ error?: string | undefined;
1120
+ }, {
1121
+ webhook: {
1122
+ path: string;
1123
+ userId: string;
1124
+ triggeredAt: string;
1125
+ method: string;
1126
+ };
1127
+ executionId: number;
1128
+ success: boolean;
1129
+ data?: unknown;
1130
+ error?: string | undefined;
1131
+ }>;
1132
+ export declare const webhookResponseSchema: z.ZodObject<{
1133
+ challenge: z.ZodOptional<z.ZodString>;
1134
+ executionId: z.ZodOptional<z.ZodNumber>;
1135
+ success: z.ZodOptional<z.ZodBoolean>;
1136
+ data: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodUndefined]>>;
1137
+ error: z.ZodOptional<z.ZodString>;
1138
+ webhook: z.ZodOptional<z.ZodObject<{
1139
+ userId: z.ZodString;
1140
+ path: z.ZodString;
1141
+ triggeredAt: z.ZodString;
1142
+ method: z.ZodString;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ path: string;
1145
+ userId: string;
1146
+ triggeredAt: string;
1147
+ method: string;
1148
+ }, {
1149
+ path: string;
1150
+ userId: string;
1151
+ triggeredAt: string;
1152
+ method: string;
1153
+ }>>;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ webhook?: {
1156
+ path: string;
1157
+ userId: string;
1158
+ triggeredAt: string;
1159
+ method: string;
1160
+ } | undefined;
1161
+ executionId?: number | undefined;
1162
+ success?: boolean | undefined;
1163
+ data?: Record<string, unknown> | undefined;
1164
+ error?: string | undefined;
1165
+ challenge?: string | undefined;
1166
+ }, {
1167
+ webhook?: {
1168
+ path: string;
1169
+ userId: string;
1170
+ triggeredAt: string;
1171
+ method: string;
1172
+ } | undefined;
1173
+ executionId?: number | undefined;
1174
+ success?: boolean | undefined;
1175
+ data?: Record<string, unknown> | undefined;
1176
+ error?: string | undefined;
1177
+ challenge?: string | undefined;
1178
+ }>;
1179
+ export declare const bubbleFlowListItemSchema: z.ZodObject<{
1180
+ id: z.ZodNumber;
1181
+ name: z.ZodString;
1182
+ description: z.ZodOptional<z.ZodString>;
1183
+ eventType: z.ZodString;
1184
+ isActive: z.ZodBoolean;
1185
+ webhookExecutionCount: z.ZodNumber;
1186
+ webhookFailureCount: z.ZodNumber;
1187
+ createdAt: z.ZodString;
1188
+ updatedAt: z.ZodString;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ name: string;
1191
+ eventType: string;
1192
+ id: number;
1193
+ createdAt: string;
1194
+ updatedAt: string;
1195
+ isActive: boolean;
1196
+ webhookExecutionCount: number;
1197
+ webhookFailureCount: number;
1198
+ description?: string | undefined;
1199
+ }, {
1200
+ name: string;
1201
+ eventType: string;
1202
+ id: number;
1203
+ createdAt: string;
1204
+ updatedAt: string;
1205
+ isActive: boolean;
1206
+ webhookExecutionCount: number;
1207
+ webhookFailureCount: number;
1208
+ description?: string | undefined;
1209
+ }>;
1210
+ export declare const bubbleFlowListResponseSchema: z.ZodObject<{
1211
+ bubbleFlows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1212
+ id: z.ZodNumber;
1213
+ name: z.ZodString;
1214
+ description: z.ZodOptional<z.ZodString>;
1215
+ eventType: z.ZodString;
1216
+ isActive: z.ZodBoolean;
1217
+ webhookExecutionCount: z.ZodNumber;
1218
+ webhookFailureCount: z.ZodNumber;
1219
+ createdAt: z.ZodString;
1220
+ updatedAt: z.ZodString;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ name: string;
1223
+ eventType: string;
1224
+ id: number;
1225
+ createdAt: string;
1226
+ updatedAt: string;
1227
+ isActive: boolean;
1228
+ webhookExecutionCount: number;
1229
+ webhookFailureCount: number;
1230
+ description?: string | undefined;
1231
+ }, {
1232
+ name: string;
1233
+ eventType: string;
1234
+ id: number;
1235
+ createdAt: string;
1236
+ updatedAt: string;
1237
+ isActive: boolean;
1238
+ webhookExecutionCount: number;
1239
+ webhookFailureCount: number;
1240
+ description?: string | undefined;
1241
+ }>, "many">>;
1242
+ userMonthlyUsage: z.ZodObject<{
1243
+ count: z.ZodNumber;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ count: number;
1246
+ }, {
1247
+ count: number;
1248
+ }>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ bubbleFlows: {
1251
+ name: string;
1252
+ eventType: string;
1253
+ id: number;
1254
+ createdAt: string;
1255
+ updatedAt: string;
1256
+ isActive: boolean;
1257
+ webhookExecutionCount: number;
1258
+ webhookFailureCount: number;
1259
+ description?: string | undefined;
1260
+ }[];
1261
+ userMonthlyUsage: {
1262
+ count: number;
1263
+ };
1264
+ }, {
1265
+ userMonthlyUsage: {
1266
+ count: number;
1267
+ };
1268
+ bubbleFlows?: {
1269
+ name: string;
1270
+ eventType: string;
1271
+ id: number;
1272
+ createdAt: string;
1273
+ updatedAt: string;
1274
+ isActive: boolean;
1275
+ webhookExecutionCount: number;
1276
+ webhookFailureCount: number;
1277
+ description?: string | undefined;
1278
+ }[] | undefined;
1279
+ }>;
1280
+ export declare const validateBubbleFlowCodeSchema: z.ZodObject<{
1281
+ code: z.ZodString;
1282
+ options: z.ZodOptional<z.ZodObject<{
1283
+ includeDetails: z.ZodDefault<z.ZodBoolean>;
1284
+ strictMode: z.ZodDefault<z.ZodBoolean>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ includeDetails: boolean;
1287
+ strictMode: boolean;
1288
+ }, {
1289
+ includeDetails?: boolean | undefined;
1290
+ strictMode?: boolean | undefined;
1291
+ }>>;
1292
+ flowId: z.ZodOptional<z.ZodNumber>;
1293
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ code: string;
1296
+ options?: {
1297
+ includeDetails: boolean;
1298
+ strictMode: boolean;
1299
+ } | undefined;
1300
+ flowId?: number | undefined;
1301
+ credentials?: Record<string, Record<string, number>> | undefined;
1302
+ }, {
1303
+ code: string;
1304
+ options?: {
1305
+ includeDetails?: boolean | undefined;
1306
+ strictMode?: boolean | undefined;
1307
+ } | undefined;
1308
+ flowId?: number | undefined;
1309
+ credentials?: Record<string, Record<string, number>> | undefined;
1310
+ }>;
1311
+ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
1312
+ valid: z.ZodBoolean;
1313
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1314
+ bubbleCount: z.ZodOptional<z.ZodNumber>;
1315
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1316
+ bubbles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1317
+ variableName: z.ZodString;
1318
+ bubbleName: z.ZodString;
1319
+ className: z.ZodString;
1320
+ parameters: z.ZodArray<z.ZodObject<{
1321
+ variableId: z.ZodOptional<z.ZodNumber>;
1322
+ name: z.ZodString;
1323
+ value: z.ZodUnknown;
1324
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ type: BubbleParameterType;
1327
+ name: string;
1328
+ value?: unknown;
1329
+ variableId?: number | undefined;
1330
+ }, {
1331
+ type: BubbleParameterType;
1332
+ name: string;
1333
+ value?: unknown;
1334
+ variableId?: number | undefined;
1335
+ }>, "many">;
1336
+ hasAwait: z.ZodBoolean;
1337
+ hasActionCall: z.ZodBoolean;
1338
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
1339
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
1340
+ variableId: z.ZodNumber;
1341
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
1342
+ location: z.ZodObject<{
1343
+ startLine: z.ZodNumber;
1344
+ startCol: z.ZodNumber;
1345
+ endLine: z.ZodNumber;
1346
+ endCol: z.ZodNumber;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ startLine: number;
1349
+ startCol: number;
1350
+ endLine: number;
1351
+ endCol: number;
1352
+ }, {
1353
+ startLine: number;
1354
+ startCol: number;
1355
+ endLine: number;
1356
+ endCol: number;
1357
+ }>;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ variableName: string;
1360
+ bubbleName: string;
1361
+ className: string;
1362
+ parameters: {
1363
+ type: BubbleParameterType;
1364
+ name: string;
1365
+ value?: unknown;
1366
+ variableId?: number | undefined;
1367
+ }[];
1368
+ variableId: number;
1369
+ hasAwait: boolean;
1370
+ hasActionCall: boolean;
1371
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1372
+ location: {
1373
+ startLine: number;
1374
+ startCol: number;
1375
+ endLine: number;
1376
+ endCol: number;
1377
+ };
1378
+ dependencies?: import("./types").BubbleName[] | undefined;
1379
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1380
+ }, {
1381
+ variableName: string;
1382
+ bubbleName: string;
1383
+ className: string;
1384
+ parameters: {
1385
+ type: BubbleParameterType;
1386
+ name: string;
1387
+ value?: unknown;
1388
+ variableId?: number | undefined;
1389
+ }[];
1390
+ variableId: number;
1391
+ hasAwait: boolean;
1392
+ hasActionCall: boolean;
1393
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1394
+ location: {
1395
+ startLine: number;
1396
+ startCol: number;
1397
+ endLine: number;
1398
+ endCol: number;
1399
+ };
1400
+ dependencies?: import("./types").BubbleName[] | undefined;
1401
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1402
+ }>>>;
1403
+ requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1404
+ metadata: z.ZodObject<{
1405
+ validatedAt: z.ZodString;
1406
+ codeLength: z.ZodNumber;
1407
+ strictMode: z.ZodBoolean;
1408
+ flowUpdated: z.ZodOptional<z.ZodBoolean>;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ strictMode: boolean;
1411
+ validatedAt: string;
1412
+ codeLength: number;
1413
+ flowUpdated?: boolean | undefined;
1414
+ }, {
1415
+ strictMode: boolean;
1416
+ validatedAt: string;
1417
+ codeLength: number;
1418
+ flowUpdated?: boolean | undefined;
1419
+ }>;
1420
+ success: z.ZodBoolean;
1421
+ error: z.ZodString;
1422
+ }, "strip", z.ZodTypeAny, {
1423
+ valid: boolean;
1424
+ metadata: {
1425
+ strictMode: boolean;
1426
+ validatedAt: string;
1427
+ codeLength: number;
1428
+ flowUpdated?: boolean | undefined;
1429
+ };
1430
+ inputSchema: Record<string, unknown>;
1431
+ success: boolean;
1432
+ error: string;
1433
+ requiredCredentials?: Record<string, string[]> | undefined;
1434
+ errors?: string[] | undefined;
1435
+ bubbleCount?: number | undefined;
1436
+ bubbles?: Record<string, {
1437
+ variableName: string;
1438
+ bubbleName: string;
1439
+ className: string;
1440
+ parameters: {
1441
+ type: BubbleParameterType;
1442
+ name: string;
1443
+ value?: unknown;
1444
+ variableId?: number | undefined;
1445
+ }[];
1446
+ variableId: number;
1447
+ hasAwait: boolean;
1448
+ hasActionCall: boolean;
1449
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1450
+ location: {
1451
+ startLine: number;
1452
+ startCol: number;
1453
+ endLine: number;
1454
+ endCol: number;
1455
+ };
1456
+ dependencies?: import("./types").BubbleName[] | undefined;
1457
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1458
+ }> | undefined;
1459
+ }, {
1460
+ valid: boolean;
1461
+ metadata: {
1462
+ strictMode: boolean;
1463
+ validatedAt: string;
1464
+ codeLength: number;
1465
+ flowUpdated?: boolean | undefined;
1466
+ };
1467
+ inputSchema: Record<string, unknown>;
1468
+ success: boolean;
1469
+ error: string;
1470
+ requiredCredentials?: Record<string, string[]> | undefined;
1471
+ errors?: string[] | undefined;
1472
+ bubbleCount?: number | undefined;
1473
+ bubbles?: Record<string, {
1474
+ variableName: string;
1475
+ bubbleName: string;
1476
+ className: string;
1477
+ parameters: {
1478
+ type: BubbleParameterType;
1479
+ name: string;
1480
+ value?: unknown;
1481
+ variableId?: number | undefined;
1482
+ }[];
1483
+ variableId: number;
1484
+ hasAwait: boolean;
1485
+ hasActionCall: boolean;
1486
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1487
+ location: {
1488
+ startLine: number;
1489
+ startCol: number;
1490
+ endLine: number;
1491
+ endCol: number;
1492
+ };
1493
+ dependencies?: import("./types").BubbleName[] | undefined;
1494
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1495
+ }> | undefined;
1496
+ }>;
1497
+ export declare const generateBubbleFlowCodeSchema: z.ZodObject<{
1498
+ prompt: z.ZodString;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ prompt: string;
1501
+ }, {
1502
+ prompt: string;
1503
+ }>;
1504
+ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
1505
+ generatedCode: z.ZodString;
1506
+ isValid: z.ZodBoolean;
1507
+ success: z.ZodBoolean;
1508
+ error: z.ZodString;
1509
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
1510
+ variableName: z.ZodString;
1511
+ bubbleName: z.ZodString;
1512
+ className: z.ZodString;
1513
+ parameters: z.ZodArray<z.ZodObject<{
1514
+ variableId: z.ZodOptional<z.ZodNumber>;
1515
+ name: z.ZodString;
1516
+ value: z.ZodUnknown;
1517
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ type: BubbleParameterType;
1520
+ name: string;
1521
+ value?: unknown;
1522
+ variableId?: number | undefined;
1523
+ }, {
1524
+ type: BubbleParameterType;
1525
+ name: string;
1526
+ value?: unknown;
1527
+ variableId?: number | undefined;
1528
+ }>, "many">;
1529
+ hasAwait: z.ZodBoolean;
1530
+ hasActionCall: z.ZodBoolean;
1531
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>;
1532
+ dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>;
1533
+ variableId: z.ZodNumber;
1534
+ nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
1535
+ location: z.ZodObject<{
1536
+ startLine: z.ZodNumber;
1537
+ startCol: z.ZodNumber;
1538
+ endLine: z.ZodNumber;
1539
+ endCol: z.ZodNumber;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ startLine: number;
1542
+ startCol: number;
1543
+ endLine: number;
1544
+ endCol: number;
1545
+ }, {
1546
+ startLine: number;
1547
+ startCol: number;
1548
+ endLine: number;
1549
+ endCol: number;
1550
+ }>;
1551
+ }, "strip", z.ZodTypeAny, {
1552
+ variableName: string;
1553
+ bubbleName: string;
1554
+ className: string;
1555
+ parameters: {
1556
+ type: BubbleParameterType;
1557
+ name: string;
1558
+ value?: unknown;
1559
+ variableId?: number | undefined;
1560
+ }[];
1561
+ variableId: number;
1562
+ hasAwait: boolean;
1563
+ hasActionCall: boolean;
1564
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1565
+ location: {
1566
+ startLine: number;
1567
+ startCol: number;
1568
+ endLine: number;
1569
+ endCol: number;
1570
+ };
1571
+ dependencies?: import("./types").BubbleName[] | undefined;
1572
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1573
+ }, {
1574
+ variableName: string;
1575
+ bubbleName: string;
1576
+ className: string;
1577
+ parameters: {
1578
+ type: BubbleParameterType;
1579
+ name: string;
1580
+ value?: unknown;
1581
+ variableId?: number | undefined;
1582
+ }[];
1583
+ variableId: number;
1584
+ hasAwait: boolean;
1585
+ hasActionCall: boolean;
1586
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1587
+ location: {
1588
+ startLine: number;
1589
+ startCol: number;
1590
+ endLine: number;
1591
+ endCol: number;
1592
+ };
1593
+ dependencies?: import("./types").BubbleName[] | undefined;
1594
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1595
+ }>>;
1596
+ requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ bubbleParameters: Record<string, {
1599
+ variableName: string;
1600
+ bubbleName: string;
1601
+ className: string;
1602
+ parameters: {
1603
+ type: BubbleParameterType;
1604
+ name: string;
1605
+ value?: unknown;
1606
+ variableId?: number | undefined;
1607
+ }[];
1608
+ variableId: number;
1609
+ hasAwait: boolean;
1610
+ hasActionCall: boolean;
1611
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1612
+ location: {
1613
+ startLine: number;
1614
+ startCol: number;
1615
+ endLine: number;
1616
+ endCol: number;
1617
+ };
1618
+ dependencies?: import("./types").BubbleName[] | undefined;
1619
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1620
+ }>;
1621
+ requiredCredentials: Record<string, string[]>;
1622
+ success: boolean;
1623
+ error: string;
1624
+ generatedCode: string;
1625
+ isValid: boolean;
1626
+ }, {
1627
+ bubbleParameters: Record<string, {
1628
+ variableName: string;
1629
+ bubbleName: string;
1630
+ className: string;
1631
+ parameters: {
1632
+ type: BubbleParameterType;
1633
+ name: string;
1634
+ value?: unknown;
1635
+ variableId?: number | undefined;
1636
+ }[];
1637
+ variableId: number;
1638
+ hasAwait: boolean;
1639
+ hasActionCall: boolean;
1640
+ nodeType: "unknown" | "service" | "tool" | "workflow";
1641
+ location: {
1642
+ startLine: number;
1643
+ startCol: number;
1644
+ endLine: number;
1645
+ endCol: number;
1646
+ };
1647
+ dependencies?: import("./types").BubbleName[] | undefined;
1648
+ dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined;
1649
+ }>;
1650
+ requiredCredentials: Record<string, string[]>;
1651
+ success: boolean;
1652
+ error: string;
1653
+ generatedCode: string;
1654
+ isValid: boolean;
1655
+ }>;
1656
+ export type GenerateBubbleFlowCodeResponse = z.infer<typeof generateBubbleFlowCodeResponseSchema>;
1657
+ export type ValidateBubbleFlowResponse = z.infer<typeof validateBubbleFlowCodeResponseSchema>;
1658
+ export interface WebhookExecutionResponse {
1659
+ executionId: number;
1660
+ success: boolean;
1661
+ data?: unknown;
1662
+ error?: string;
1663
+ webhook: {
1664
+ userId: string;
1665
+ path: string;
1666
+ triggeredAt: string;
1667
+ method: string;
1668
+ };
1669
+ }
1670
+ export declare const errorResponseSchema: z.ZodObject<{
1671
+ error: z.ZodString;
1672
+ details: z.ZodOptional<z.ZodString>;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ error: string;
1675
+ details?: string | undefined;
1676
+ }, {
1677
+ error: string;
1678
+ details?: string | undefined;
1679
+ }>;
1680
+ export type ErrorResponse = z.infer<typeof errorResponseSchema>;
1681
+ export interface HealthCheckResponse {
1682
+ message: string;
1683
+ timestamp: string;
1684
+ }
1685
+ export declare const bubbleFlowExecutionSchema: z.ZodObject<{
1686
+ id: z.ZodNumber;
1687
+ status: z.ZodEnum<["running", "success", "error"]>;
1688
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
1689
+ result: z.ZodOptional<z.ZodAny>;
1690
+ error: z.ZodOptional<z.ZodString>;
1691
+ startedAt: z.ZodString;
1692
+ webhook_url: z.ZodString;
1693
+ completedAt: z.ZodOptional<z.ZodString>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ status: "success" | "error" | "running";
1696
+ id: number;
1697
+ webhook_url: string;
1698
+ payload: Record<string, any>;
1699
+ startedAt: string;
1700
+ result?: any;
1701
+ error?: string | undefined;
1702
+ completedAt?: string | undefined;
1703
+ }, {
1704
+ status: "success" | "error" | "running";
1705
+ id: number;
1706
+ webhook_url: string;
1707
+ payload: Record<string, any>;
1708
+ startedAt: string;
1709
+ result?: any;
1710
+ error?: string | undefined;
1711
+ completedAt?: string | undefined;
1712
+ }>;
1713
+ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodArray<z.ZodObject<{
1714
+ id: z.ZodNumber;
1715
+ status: z.ZodEnum<["running", "success", "error"]>;
1716
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
1717
+ result: z.ZodOptional<z.ZodAny>;
1718
+ error: z.ZodOptional<z.ZodString>;
1719
+ startedAt: z.ZodString;
1720
+ webhook_url: z.ZodString;
1721
+ completedAt: z.ZodOptional<z.ZodString>;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ status: "success" | "error" | "running";
1724
+ id: number;
1725
+ webhook_url: string;
1726
+ payload: Record<string, any>;
1727
+ startedAt: string;
1728
+ result?: any;
1729
+ error?: string | undefined;
1730
+ completedAt?: string | undefined;
1731
+ }, {
1732
+ status: "success" | "error" | "running";
1733
+ id: number;
1734
+ webhook_url: string;
1735
+ payload: Record<string, any>;
1736
+ startedAt: string;
1737
+ result?: any;
1738
+ error?: string | undefined;
1739
+ completedAt?: string | undefined;
1740
+ }>, "many">;
1741
+ export type ListBubbleFlowExecutionsResponse = z.infer<typeof listBubbleFlowExecutionsResponseSchema>;
1742
+ export declare const slackUrlVerificationSchema: z.ZodObject<{
1743
+ token: z.ZodString;
1744
+ challenge: z.ZodString;
1745
+ type: z.ZodLiteral<"url_verification">;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ type: "url_verification";
1748
+ challenge: string;
1749
+ token: string;
1750
+ }, {
1751
+ type: "url_verification";
1752
+ challenge: string;
1753
+ token: string;
1754
+ }>;
1755
+ export declare const slackUrlVerificationResponseSchema: z.ZodObject<{
1756
+ challenge: z.ZodString;
1757
+ }, "strip", z.ZodTypeAny, {
1758
+ challenge: string;
1759
+ }, {
1760
+ challenge: string;
1761
+ }>;
1762
+ export type SlackUrlVerificationResponse = z.infer<typeof slackUrlVerificationResponseSchema>;
1763
+ export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
1764
+ name: z.ZodString;
1765
+ description: z.ZodString;
1766
+ roles: z.ZodString;
1767
+ useCase: z.ZodLiteral<"slack-data-scientist">;
1768
+ verbosity: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>;
1769
+ technicality: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>;
1770
+ includeQuery: z.ZodOptional<z.ZodBoolean>;
1771
+ includeExplanation: z.ZodOptional<z.ZodBoolean>;
1772
+ maxQueries: z.ZodOptional<z.ZodNumber>;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ description: string;
1775
+ name: string;
1776
+ roles: string;
1777
+ useCase: "slack-data-scientist";
1778
+ verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
1779
+ technicality?: "1" | "2" | "3" | "4" | "5" | undefined;
1780
+ includeQuery?: boolean | undefined;
1781
+ includeExplanation?: boolean | undefined;
1782
+ maxQueries?: number | undefined;
1783
+ }, {
1784
+ description: string;
1785
+ name: string;
1786
+ roles: string;
1787
+ useCase: "slack-data-scientist";
1788
+ verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
1789
+ technicality?: "1" | "2" | "3" | "4" | "5" | undefined;
1790
+ includeQuery?: boolean | undefined;
1791
+ includeExplanation?: boolean | undefined;
1792
+ maxQueries?: number | undefined;
1793
+ }>;
1794
+ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
1795
+ name: z.ZodString;
1796
+ description: z.ZodDefault<z.ZodString>;
1797
+ outputDescription: z.ZodString;
1798
+ outputFormat: z.ZodOptional<z.ZodEnum<["html", "csv", "json"]>>;
1799
+ conversionOptions: z.ZodOptional<z.ZodObject<{
1800
+ preserveStructure: z.ZodOptional<z.ZodBoolean>;
1801
+ includeVisualDescriptions: z.ZodOptional<z.ZodBoolean>;
1802
+ extractNumericalData: z.ZodOptional<z.ZodBoolean>;
1803
+ combinePages: z.ZodOptional<z.ZodBoolean>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ preserveStructure?: boolean | undefined;
1806
+ includeVisualDescriptions?: boolean | undefined;
1807
+ extractNumericalData?: boolean | undefined;
1808
+ combinePages?: boolean | undefined;
1809
+ }, {
1810
+ preserveStructure?: boolean | undefined;
1811
+ includeVisualDescriptions?: boolean | undefined;
1812
+ extractNumericalData?: boolean | undefined;
1813
+ combinePages?: boolean | undefined;
1814
+ }>>;
1815
+ imageOptions: z.ZodOptional<z.ZodObject<{
1816
+ format: z.ZodOptional<z.ZodEnum<["png", "jpg", "jpeg"]>>;
1817
+ quality: z.ZodOptional<z.ZodNumber>;
1818
+ dpi: z.ZodOptional<z.ZodNumber>;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ format?: "png" | "jpg" | "jpeg" | undefined;
1821
+ quality?: number | undefined;
1822
+ dpi?: number | undefined;
1823
+ }, {
1824
+ format?: "png" | "jpg" | "jpeg" | undefined;
1825
+ quality?: number | undefined;
1826
+ dpi?: number | undefined;
1827
+ }>>;
1828
+ aiOptions: z.ZodOptional<z.ZodObject<{
1829
+ model: z.ZodOptional<z.ZodString>;
1830
+ temperature: z.ZodOptional<z.ZodNumber>;
1831
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1832
+ jsonMode: z.ZodOptional<z.ZodBoolean>;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ model?: string | undefined;
1835
+ temperature?: number | undefined;
1836
+ maxTokens?: number | undefined;
1837
+ jsonMode?: boolean | undefined;
1838
+ }, {
1839
+ model?: string | undefined;
1840
+ temperature?: number | undefined;
1841
+ maxTokens?: number | undefined;
1842
+ jsonMode?: boolean | undefined;
1843
+ }>>;
1844
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ description: string;
1847
+ name: string;
1848
+ outputDescription: string;
1849
+ metadata?: Record<string, unknown> | undefined;
1850
+ outputFormat?: "html" | "csv" | "json" | undefined;
1851
+ conversionOptions?: {
1852
+ preserveStructure?: boolean | undefined;
1853
+ includeVisualDescriptions?: boolean | undefined;
1854
+ extractNumericalData?: boolean | undefined;
1855
+ combinePages?: boolean | undefined;
1856
+ } | undefined;
1857
+ imageOptions?: {
1858
+ format?: "png" | "jpg" | "jpeg" | undefined;
1859
+ quality?: number | undefined;
1860
+ dpi?: number | undefined;
1861
+ } | undefined;
1862
+ aiOptions?: {
1863
+ model?: string | undefined;
1864
+ temperature?: number | undefined;
1865
+ maxTokens?: number | undefined;
1866
+ jsonMode?: boolean | undefined;
1867
+ } | undefined;
1868
+ }, {
1869
+ name: string;
1870
+ outputDescription: string;
1871
+ description?: string | undefined;
1872
+ metadata?: Record<string, unknown> | undefined;
1873
+ outputFormat?: "html" | "csv" | "json" | undefined;
1874
+ conversionOptions?: {
1875
+ preserveStructure?: boolean | undefined;
1876
+ includeVisualDescriptions?: boolean | undefined;
1877
+ extractNumericalData?: boolean | undefined;
1878
+ combinePages?: boolean | undefined;
1879
+ } | undefined;
1880
+ imageOptions?: {
1881
+ format?: "png" | "jpg" | "jpeg" | undefined;
1882
+ quality?: number | undefined;
1883
+ dpi?: number | undefined;
1884
+ } | undefined;
1885
+ aiOptions?: {
1886
+ model?: string | undefined;
1887
+ temperature?: number | undefined;
1888
+ maxTokens?: number | undefined;
1889
+ jsonMode?: boolean | undefined;
1890
+ } | undefined;
1891
+ }>;
1892
+ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
1893
+ id: z.ZodNumber;
1894
+ name: z.ZodString;
1895
+ description: z.ZodString;
1896
+ eventType: z.ZodString;
1897
+ displayedBubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
1898
+ variableName: z.ZodString;
1899
+ bubbleName: z.ZodString;
1900
+ className: z.ZodString;
1901
+ parameters: z.ZodArray<z.ZodObject<{
1902
+ name: z.ZodString;
1903
+ value: z.ZodUnknown;
1904
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
1905
+ }, "strip", z.ZodTypeAny, {
1906
+ type: BubbleParameterType;
1907
+ name: string;
1908
+ value?: unknown;
1909
+ }, {
1910
+ type: BubbleParameterType;
1911
+ name: string;
1912
+ value?: unknown;
1913
+ }>, "many">;
1914
+ hasAwait: z.ZodBoolean;
1915
+ hasActionCall: z.ZodBoolean;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ variableName: string;
1918
+ bubbleName: string;
1919
+ className: string;
1920
+ parameters: {
1921
+ type: BubbleParameterType;
1922
+ name: string;
1923
+ value?: unknown;
1924
+ }[];
1925
+ hasAwait: boolean;
1926
+ hasActionCall: boolean;
1927
+ }, {
1928
+ variableName: string;
1929
+ bubbleName: string;
1930
+ className: string;
1931
+ parameters: {
1932
+ type: BubbleParameterType;
1933
+ name: string;
1934
+ value?: unknown;
1935
+ }[];
1936
+ hasAwait: boolean;
1937
+ hasActionCall: boolean;
1938
+ }>>;
1939
+ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{
1940
+ variableName: z.ZodString;
1941
+ bubbleName: z.ZodString;
1942
+ className: z.ZodString;
1943
+ parameters: z.ZodArray<z.ZodObject<{
1944
+ name: z.ZodString;
1945
+ value: z.ZodUnknown;
1946
+ type: z.ZodNativeEnum<typeof BubbleParameterType>;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ type: BubbleParameterType;
1949
+ name: string;
1950
+ value?: unknown;
1951
+ }, {
1952
+ type: BubbleParameterType;
1953
+ name: string;
1954
+ value?: unknown;
1955
+ }>, "many">;
1956
+ hasAwait: z.ZodBoolean;
1957
+ hasActionCall: z.ZodBoolean;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ variableName: string;
1960
+ bubbleName: string;
1961
+ className: string;
1962
+ parameters: {
1963
+ type: BubbleParameterType;
1964
+ name: string;
1965
+ value?: unknown;
1966
+ }[];
1967
+ hasAwait: boolean;
1968
+ hasActionCall: boolean;
1969
+ }, {
1970
+ variableName: string;
1971
+ bubbleName: string;
1972
+ className: string;
1973
+ parameters: {
1974
+ type: BubbleParameterType;
1975
+ name: string;
1976
+ value?: unknown;
1977
+ }[];
1978
+ hasAwait: boolean;
1979
+ hasActionCall: boolean;
1980
+ }>>;
1981
+ requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>;
1982
+ createdAt: z.ZodString;
1983
+ updatedAt: z.ZodString;
1984
+ webhook: z.ZodOptional<z.ZodObject<{
1985
+ id: z.ZodNumber;
1986
+ url: z.ZodString;
1987
+ path: z.ZodString;
1988
+ active: z.ZodBoolean;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ path: string;
1991
+ url: string;
1992
+ id: number;
1993
+ active: boolean;
1994
+ }, {
1995
+ path: string;
1996
+ url: string;
1997
+ id: number;
1998
+ active: boolean;
1999
+ }>>;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ description: string;
2002
+ name: string;
2003
+ eventType: string;
2004
+ id: number;
2005
+ createdAt: string;
2006
+ updatedAt: string;
2007
+ bubbleParameters: Record<string, {
2008
+ variableName: string;
2009
+ bubbleName: string;
2010
+ className: string;
2011
+ parameters: {
2012
+ type: BubbleParameterType;
2013
+ name: string;
2014
+ value?: unknown;
2015
+ }[];
2016
+ hasAwait: boolean;
2017
+ hasActionCall: boolean;
2018
+ }>;
2019
+ displayedBubbleParameters: Record<string, {
2020
+ variableName: string;
2021
+ bubbleName: string;
2022
+ className: string;
2023
+ parameters: {
2024
+ type: BubbleParameterType;
2025
+ name: string;
2026
+ value?: unknown;
2027
+ }[];
2028
+ hasAwait: boolean;
2029
+ hasActionCall: boolean;
2030
+ }>;
2031
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
2032
+ webhook?: {
2033
+ path: string;
2034
+ url: string;
2035
+ id: number;
2036
+ active: boolean;
2037
+ } | undefined;
2038
+ }, {
2039
+ description: string;
2040
+ name: string;
2041
+ eventType: string;
2042
+ id: number;
2043
+ createdAt: string;
2044
+ updatedAt: string;
2045
+ bubbleParameters: Record<string, {
2046
+ variableName: string;
2047
+ bubbleName: string;
2048
+ className: string;
2049
+ parameters: {
2050
+ type: BubbleParameterType;
2051
+ name: string;
2052
+ value?: unknown;
2053
+ }[];
2054
+ hasAwait: boolean;
2055
+ hasActionCall: boolean;
2056
+ }>;
2057
+ displayedBubbleParameters: Record<string, {
2058
+ variableName: string;
2059
+ bubbleName: string;
2060
+ className: string;
2061
+ parameters: {
2062
+ type: BubbleParameterType;
2063
+ name: string;
2064
+ value?: unknown;
2065
+ }[];
2066
+ hasAwait: boolean;
2067
+ hasActionCall: boolean;
2068
+ }>;
2069
+ requiredCredentials?: Record<string, CredentialType[]> | undefined;
2070
+ webhook?: {
2071
+ path: string;
2072
+ url: string;
2073
+ id: number;
2074
+ active: boolean;
2075
+ } | undefined;
2076
+ }>;
2077
+ export declare const testBubbleFlowSchema: z.ZodObject<{
2078
+ message: z.ZodString;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ message: string;
2081
+ }, {
2082
+ message: string;
2083
+ }>;
2084
+ export declare const testBubbleFlowResponseSchema: z.ZodObject<{
2085
+ success: z.ZodBoolean;
2086
+ response: z.ZodString;
2087
+ executionTime: z.ZodNumber;
2088
+ error: z.ZodOptional<z.ZodString>;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ success: boolean;
2091
+ response: string;
2092
+ executionTime: number;
2093
+ error?: string | undefined;
2094
+ }, {
2095
+ success: boolean;
2096
+ response: string;
2097
+ executionTime: number;
2098
+ error?: string | undefined;
2099
+ }>;
2100
+ export declare const activateBubbleFlowResponseSchema: z.ZodObject<{
2101
+ success: z.ZodBoolean;
2102
+ webhookUrl: z.ZodString;
2103
+ message: z.ZodString;
2104
+ }, "strip", z.ZodTypeAny, {
2105
+ message: string;
2106
+ success: boolean;
2107
+ webhookUrl: string;
2108
+ }, {
2109
+ message: string;
2110
+ success: boolean;
2111
+ webhookUrl: string;
2112
+ }>;
2113
+ export type TestBubbleFlowRequest = z.infer<typeof testBubbleFlowSchema>;
2114
+ export type TestBubbleFlowResponse = z.infer<typeof testBubbleFlowResponseSchema>;
2115
+ export type ActivateBubbleFlowResponse = z.infer<typeof activateBubbleFlowResponseSchema>;
2116
+ export type CreateBubbleFlowRequest = z.infer<typeof createBubbleFlowSchema>;
2117
+ export type ExecuteBubbleFlowRequest = z.infer<typeof executeBubbleFlowSchema>;
2118
+ export type CreateCredentialRequest = z.infer<typeof createCredentialSchema>;
2119
+ export type UpdateCredentialRequest = z.infer<typeof updateCredentialSchema>;
2120
+ export type UpdateBubbleFlowParametersRequest = z.infer<typeof updateBubbleFlowParametersSchema>;
2121
+ export type GenerateBubbleFlowTemplateRequest = z.infer<typeof generateBubbleFlowTemplateSchema>;
2122
+ export type GenerateDocumentGenerationTemplateRequest = z.infer<typeof generateDocumentGenerationTemplateSchema>;
2123
+ export type BubbleFlowTemplateResponse = z.infer<typeof bubbleFlowTemplateResponseSchema>;
2124
+ export type BubbleFlowDetailsResponse = z.infer<typeof bubbleFlowDetailsResponseSchema>;
2125
+ export type BubbleFlowListResponse = z.infer<typeof bubbleFlowListResponseSchema>;
2126
+ export type BubbleFlowListItem = z.infer<typeof bubbleFlowListItemSchema>;
2127
+ export type BubbleFlowExecution = z.infer<typeof bubbleFlowExecutionSchema>;
2128
+ export type CredentialResponse = z.infer<typeof credentialResponseSchema>;
2129
+ export type CreateCredentialResponse = z.infer<typeof createCredentialResponseSchema>;
2130
+ export type UpdateCredentialResponse = z.infer<typeof updateCredentialResponseSchema>;
2131
+ export declare const subscriptionStatusResponseSchema: z.ZodObject<{
2132
+ userId: z.ZodString;
2133
+ plan: z.ZodString;
2134
+ planDisplayName: z.ZodString;
2135
+ features: z.ZodArray<z.ZodString, "many">;
2136
+ usage: z.ZodObject<{
2137
+ current: z.ZodNumber;
2138
+ limit: z.ZodNumber;
2139
+ percentage: z.ZodNumber;
2140
+ resetDate: z.ZodString;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ current: number;
2143
+ limit: number;
2144
+ percentage: number;
2145
+ resetDate: string;
2146
+ }, {
2147
+ current: number;
2148
+ limit: number;
2149
+ percentage: number;
2150
+ resetDate: string;
2151
+ }>;
2152
+ isActive: z.ZodBoolean;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ isActive: boolean;
2155
+ userId: string;
2156
+ plan: string;
2157
+ planDisplayName: string;
2158
+ features: string[];
2159
+ usage: {
2160
+ current: number;
2161
+ limit: number;
2162
+ percentage: number;
2163
+ resetDate: string;
2164
+ };
2165
+ }, {
2166
+ isActive: boolean;
2167
+ userId: string;
2168
+ plan: string;
2169
+ planDisplayName: string;
2170
+ features: string[];
2171
+ usage: {
2172
+ current: number;
2173
+ limit: number;
2174
+ percentage: number;
2175
+ resetDate: string;
2176
+ };
2177
+ }>;
2178
+ export type SubscriptionStatusResponse = z.infer<typeof subscriptionStatusResponseSchema>;
2179
+ export declare const joinWaitlistSchema: z.ZodObject<{
2180
+ name: z.ZodString;
2181
+ email: z.ZodString;
2182
+ database: z.ZodString;
2183
+ otherDatabase: z.ZodOptional<z.ZodString>;
2184
+ }, "strip", z.ZodTypeAny, {
2185
+ name: string;
2186
+ email: string;
2187
+ database: string;
2188
+ otherDatabase?: string | undefined;
2189
+ }, {
2190
+ name: string;
2191
+ email: string;
2192
+ database: string;
2193
+ otherDatabase?: string | undefined;
2194
+ }>;
2195
+ export declare const joinWaitlistResponseSchema: z.ZodObject<{
2196
+ success: z.ZodBoolean;
2197
+ message: z.ZodString;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ message: string;
2200
+ success: boolean;
2201
+ }, {
2202
+ message: string;
2203
+ success: boolean;
2204
+ }>;
2205
+ export type JoinWaitlistRequest = z.infer<typeof joinWaitlistSchema>;
2206
+ export type JoinWaitlistResponse = z.infer<typeof joinWaitlistResponseSchema>;
2207
+ //# sourceMappingURL=routes.d.ts.map