@bubblelab/shared-schemas 0.1.6 → 0.1.8
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.
- package/README.md +1 -136
- package/dist/bubble-definition-schema.d.ts +26 -26
- package/dist/bubble-definition-schema.d.ts.map +1 -1
- package/dist/bubble-definition-schema.js +14 -3
- package/dist/bubble-definition-schema.js.map +1 -1
- package/dist/bubbleflow-execution-schema.d.ts +23 -23
- package/dist/bubbleflow-schema.d.ts +74 -74
- package/dist/generate-bubbleflow-schema.d.ts +36 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,138 +1,3 @@
|
|
|
1
1
|
# @bubblelab/shared-schemas
|
|
2
2
|
|
|
3
|
-
This package contains shared Zod schemas and TypeScript types that are used by
|
|
4
|
-
|
|
5
|
-
**IMPORTANT**: All new API schemas should be written in this shared package to ensure type safety and consistency between frontend and backend applications.
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
### Backend (bubblelab-api)
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
// Import schemas for validation
|
|
13
|
-
import {
|
|
14
|
-
createBubbleFlowSchema,
|
|
15
|
-
createCredentialSchema,
|
|
16
|
-
} from '@bubblelab/shared-schemas';
|
|
17
|
-
|
|
18
|
-
// Import types for TypeScript
|
|
19
|
-
import type {
|
|
20
|
-
CreateBubbleFlowRequest,
|
|
21
|
-
CreateCredentialRequest,
|
|
22
|
-
} from '@bubblelab/shared-schemas';
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Frontend (nodex-dashboard)
|
|
26
|
-
|
|
27
|
-
```typescript
|
|
28
|
-
// Import types for API calls
|
|
29
|
-
import type {
|
|
30
|
-
CreateBubbleFlowRequest,
|
|
31
|
-
CreateBubbleFlowResponse,
|
|
32
|
-
CredentialResponse,
|
|
33
|
-
} from '@bubblelab/shared-schemas';
|
|
34
|
-
|
|
35
|
-
// Use in API service functions
|
|
36
|
-
const createBubbleFlow = async (
|
|
37
|
-
data: CreateBubbleFlowRequest
|
|
38
|
-
): Promise<CreateBubbleFlowResponse> => {
|
|
39
|
-
// API call implementation
|
|
40
|
-
};
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Available Schemas
|
|
44
|
-
|
|
45
|
-
### BubbleFlow Schemas
|
|
46
|
-
|
|
47
|
-
- `createBubbleFlowSchema` - Create new BubbleFlow
|
|
48
|
-
- `executeBubbleFlowSchema` - Execute BubbleFlow
|
|
49
|
-
- `updateBubbleFlowParametersSchema` - Update BubbleFlow parameters
|
|
50
|
-
- `createBubbleFlowResponseSchema` - Create BubbleFlow response
|
|
51
|
-
- `executeBubbleFlowResponseSchema` - Execute BubbleFlow response
|
|
52
|
-
- `bubbleFlowDetailsResponseSchema` - Get BubbleFlow details response
|
|
53
|
-
- `listBubbleFlowsResponseSchema` - List BubbleFlows response
|
|
54
|
-
|
|
55
|
-
### Credential Schemas
|
|
56
|
-
|
|
57
|
-
- `createCredentialSchema` - Create new credential
|
|
58
|
-
- `credentialResponseSchema` - Credential response
|
|
59
|
-
- `createCredentialResponseSchema` - Create credential response
|
|
60
|
-
|
|
61
|
-
### Webhook Schemas
|
|
62
|
-
|
|
63
|
-
- `webhookResponseSchema` - Webhook response
|
|
64
|
-
- `webhookExecutionResponseSchema` - Webhook execution response
|
|
65
|
-
- `slackUrlVerificationSchema` - Slack URL verification
|
|
66
|
-
- `slackUrlVerificationResponseSchema` - Slack URL verification response
|
|
67
|
-
|
|
68
|
-
### Common Schemas
|
|
69
|
-
|
|
70
|
-
- `errorResponseSchema` - Error response
|
|
71
|
-
- `successMessageResponseSchema` - Success message response
|
|
72
|
-
|
|
73
|
-
## Development
|
|
74
|
-
|
|
75
|
-
### Building
|
|
76
|
-
|
|
77
|
-
To build the package:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
pnpm build
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### Auto-rebuild Options
|
|
84
|
-
|
|
85
|
-
**Option 1: Watch Mode (Recommended for Development)**
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# From root directory
|
|
89
|
-
pnpm build:core:watch
|
|
90
|
-
|
|
91
|
-
# Or from shared-schemas directory
|
|
92
|
-
pnpm dev
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Option 2: Development Mode**
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
# Watch both core and schemas
|
|
99
|
-
pnpm dev:core
|
|
100
|
-
|
|
101
|
-
# Watch all packages
|
|
102
|
-
pnpm dev:all
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
**Option 3: Pre-commit Hook (Automatic)**
|
|
106
|
-
The pre-commit hook automatically builds schemas when they change:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
# Make the script executable (one-time setup)
|
|
110
|
-
chmod +x scripts/pre-commit.sh
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Option 4: VS Code Extension**
|
|
114
|
-
Install "File Watcher" extension to automatically run build commands when files change.
|
|
115
|
-
|
|
116
|
-
## Adding New Schemas
|
|
117
|
-
|
|
118
|
-
1. **Define the Zod schema** in `src/routes.ts` with proper OpenAPI metadata
|
|
119
|
-
2. **Export the schema** for validation
|
|
120
|
-
3. **Export the TypeScript type** using `z.infer<typeof schemaName>`
|
|
121
|
-
4. **Update the documentation** at the top of `src/routes.ts`
|
|
122
|
-
5. **Rebuild the package**: `pnpm build:core` (from root)
|
|
123
|
-
|
|
124
|
-
## Schema Organization
|
|
125
|
-
|
|
126
|
-
The schemas are organized into sections in `src/routes.ts`:
|
|
127
|
-
|
|
128
|
-
- **Request Schemas**: Input validation for API endpoints
|
|
129
|
-
- **Response Schemas**: Output types for API responses
|
|
130
|
-
- **Webhook Schemas**: Special schemas for webhook handling
|
|
131
|
-
- **TypeScript Types**: Derived types for use in both frontend and backend
|
|
132
|
-
|
|
133
|
-
## Benefits
|
|
134
|
-
|
|
135
|
-
1. **Type Safety**: Shared types ensure frontend and backend are always in sync
|
|
136
|
-
2. **Single Source of Truth**: All API schemas are defined in one place
|
|
137
|
-
3. **Consistency**: Both applications use the same validation rules
|
|
138
|
-
4. **Maintainability**: Changes to schemas automatically propagate to both apps
|
|
3
|
+
This package contains shared Zod schemas and TypeScript types that are used by bubblab's runtime. For more information about bubblelab check out https://github.com/bubblelabai/BubbleLab
|
|
@@ -16,7 +16,7 @@ export declare const BUBBLE_NAMES_WITH_CONTEXT_INJECTION: string[];
|
|
|
16
16
|
export interface BubbleParameter {
|
|
17
17
|
variableId?: number;
|
|
18
18
|
name: string;
|
|
19
|
-
value: unknown;
|
|
19
|
+
value: string | number | boolean | Record<string, unknown> | unknown[];
|
|
20
20
|
type: BubbleParameterType;
|
|
21
21
|
}
|
|
22
22
|
export interface ParsedBubble {
|
|
@@ -67,17 +67,17 @@ export declare const BubbleParameterTypeSchema: z.ZodNativeEnum<typeof BubblePar
|
|
|
67
67
|
export declare const BubbleParameterSchema: z.ZodObject<{
|
|
68
68
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
69
69
|
name: z.ZodString;
|
|
70
|
-
value: z.ZodUnknown
|
|
70
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
71
71
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
type: BubbleParameterType;
|
|
74
73
|
name: string;
|
|
75
|
-
value
|
|
74
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
75
|
+
type: BubbleParameterType;
|
|
76
76
|
variableId?: number | undefined;
|
|
77
77
|
}, {
|
|
78
|
-
type: BubbleParameterType;
|
|
79
78
|
name: string;
|
|
80
|
-
value
|
|
79
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
80
|
+
type: BubbleParameterType;
|
|
81
81
|
variableId?: number | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>;
|
|
@@ -89,17 +89,17 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
89
89
|
parameters: z.ZodArray<z.ZodObject<{
|
|
90
90
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
91
91
|
name: z.ZodString;
|
|
92
|
-
value: z.ZodUnknown
|
|
92
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
93
93
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
type: BubbleParameterType;
|
|
96
95
|
name: string;
|
|
97
|
-
value
|
|
96
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
97
|
+
type: BubbleParameterType;
|
|
98
98
|
variableId?: number | undefined;
|
|
99
99
|
}, {
|
|
100
|
-
type: BubbleParameterType;
|
|
101
100
|
name: string;
|
|
102
|
-
value
|
|
101
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
102
|
+
type: BubbleParameterType;
|
|
103
103
|
variableId?: number | undefined;
|
|
104
104
|
}>, "many">;
|
|
105
105
|
hasAwait: z.ZodBoolean;
|
|
@@ -111,9 +111,9 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
111
111
|
bubbleName: string;
|
|
112
112
|
className: string;
|
|
113
113
|
parameters: {
|
|
114
|
-
type: BubbleParameterType;
|
|
115
114
|
name: string;
|
|
116
|
-
value
|
|
115
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
116
|
+
type: BubbleParameterType;
|
|
117
117
|
variableId?: number | undefined;
|
|
118
118
|
}[];
|
|
119
119
|
hasAwait: boolean;
|
|
@@ -125,9 +125,9 @@ export declare const ParsedBubbleSchema: z.ZodObject<{
|
|
|
125
125
|
bubbleName: string;
|
|
126
126
|
className: string;
|
|
127
127
|
parameters: {
|
|
128
|
-
type: BubbleParameterType;
|
|
129
128
|
name: string;
|
|
130
|
-
value
|
|
129
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
130
|
+
type: BubbleParameterType;
|
|
131
131
|
variableId?: number | undefined;
|
|
132
132
|
}[];
|
|
133
133
|
hasAwait: boolean;
|
|
@@ -152,17 +152,17 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
152
152
|
parameters: z.ZodArray<z.ZodObject<{
|
|
153
153
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
154
154
|
name: z.ZodString;
|
|
155
|
-
value: z.ZodUnknown
|
|
155
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
156
156
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
type: BubbleParameterType;
|
|
159
158
|
name: string;
|
|
160
|
-
value
|
|
159
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
160
|
+
type: BubbleParameterType;
|
|
161
161
|
variableId?: number | undefined;
|
|
162
162
|
}, {
|
|
163
|
-
type: BubbleParameterType;
|
|
164
163
|
name: string;
|
|
165
|
-
value
|
|
164
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
165
|
+
type: BubbleParameterType;
|
|
166
166
|
variableId?: number | undefined;
|
|
167
167
|
}>, "many">;
|
|
168
168
|
hasAwait: z.ZodBoolean;
|
|
@@ -190,17 +190,17 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
191
|
variableId: number;
|
|
192
192
|
variableName: string;
|
|
193
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
194
193
|
bubbleName: string;
|
|
195
194
|
className: string;
|
|
196
195
|
parameters: {
|
|
197
|
-
type: BubbleParameterType;
|
|
198
196
|
name: string;
|
|
199
|
-
value
|
|
197
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
198
|
+
type: BubbleParameterType;
|
|
200
199
|
variableId?: number | undefined;
|
|
201
200
|
}[];
|
|
202
201
|
hasAwait: boolean;
|
|
203
202
|
hasActionCall: boolean;
|
|
203
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
204
204
|
location: {
|
|
205
205
|
startLine: number;
|
|
206
206
|
startCol: number;
|
|
@@ -212,17 +212,17 @@ export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{
|
|
|
212
212
|
}, {
|
|
213
213
|
variableId: number;
|
|
214
214
|
variableName: string;
|
|
215
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
216
215
|
bubbleName: string;
|
|
217
216
|
className: string;
|
|
218
217
|
parameters: {
|
|
219
|
-
type: BubbleParameterType;
|
|
220
218
|
name: string;
|
|
221
|
-
value
|
|
219
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
220
|
+
type: BubbleParameterType;
|
|
222
221
|
variableId?: number | undefined;
|
|
223
222
|
}[];
|
|
224
223
|
hasAwait: boolean;
|
|
225
224
|
hasActionCall: boolean;
|
|
225
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
226
226
|
location: {
|
|
227
227
|
startLine: number;
|
|
228
228
|
startCol: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble-definition-schema.d.ts","sourceRoot":"","sources":["../src/bubble-definition-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrD,oBAAY,mBAAmB;IAC7B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEH,eAAO,MAAM,0BAA0B;UACjB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;;;;;;;;EAEzC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBrC,CAAC;AAGH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,yBAAyB,CACjC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC1E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,yBAAyB,CACjC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,0BAA0B,CAClC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,0BAA0B,CAClC,CAAC"}
|
|
@@ -41,9 +41,20 @@ export const BUBBLE_NAMES_WITH_CONTEXT_INJECTION = [
|
|
|
41
41
|
// Zod schemas for validation and type inference
|
|
42
42
|
export const BubbleParameterTypeSchema = z.nativeEnum(BubbleParameterType);
|
|
43
43
|
export const BubbleParameterSchema = z.object({
|
|
44
|
-
variableId: z
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
variableId: z
|
|
45
|
+
.number()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('The variable id of the parameter'),
|
|
48
|
+
name: z.string().describe('The name of the parameter'),
|
|
49
|
+
value: z
|
|
50
|
+
.union([
|
|
51
|
+
z.string(),
|
|
52
|
+
z.number(),
|
|
53
|
+
z.boolean(),
|
|
54
|
+
z.record(z.unknown()),
|
|
55
|
+
z.array(z.unknown()),
|
|
56
|
+
])
|
|
57
|
+
.describe('The value of the parameter'),
|
|
47
58
|
type: BubbleParameterTypeSchema,
|
|
48
59
|
});
|
|
49
60
|
export const BubbleNodeTypeSchema = z.enum([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble-definition-schema.js","sourceRoot":"","sources":["../src/bubble-definition-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAc,MAAM,SAAS,CAAC;AAErD,6BAA6B;AAC7B,MAAM,CAAN,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,0CAAmB,CAAA;AACrB,CAAC,EAVW,mBAAmB,KAAnB,mBAAmB,QAU9B;AAED,yGAAyG;AACzG,MAAM,CAAC,MAAM,4BAA4B,GAGrC;IACF,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE;QAC9B,SAAS,EAAE,mBAAmB,CAAC,OAAO;KACvC;IACD,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,EAAE;IAChC,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,EAAE;IACvC,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,EAAE;IACnC,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,EAAE;IACtC,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,EAAE;IAC/B,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,EAAE;IAChC,CAAC,cAAc,CAAC,eA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
|
133
133
|
webhook_url: z.ZodString;
|
|
134
134
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
status: "
|
|
136
|
+
status: "running" | "success" | "error";
|
|
137
137
|
id: number;
|
|
138
138
|
payload: Record<string, any>;
|
|
139
139
|
startedAt: string;
|
|
@@ -142,7 +142,7 @@ export declare const bubbleFlowExecutionSchema: z.ZodObject<{
|
|
|
142
142
|
result?: any;
|
|
143
143
|
completedAt?: string | undefined;
|
|
144
144
|
}, {
|
|
145
|
-
status: "
|
|
145
|
+
status: "running" | "success" | "error";
|
|
146
146
|
id: number;
|
|
147
147
|
payload: Record<string, any>;
|
|
148
148
|
startedAt: string;
|
|
@@ -161,7 +161,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodArray<z.ZodObj
|
|
|
161
161
|
webhook_url: z.ZodString;
|
|
162
162
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
status: "
|
|
164
|
+
status: "running" | "success" | "error";
|
|
165
165
|
id: number;
|
|
166
166
|
payload: Record<string, any>;
|
|
167
167
|
startedAt: string;
|
|
@@ -170,7 +170,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodArray<z.ZodObj
|
|
|
170
170
|
result?: any;
|
|
171
171
|
completedAt?: string | undefined;
|
|
172
172
|
}, {
|
|
173
|
-
status: "
|
|
173
|
+
status: "running" | "success" | "error";
|
|
174
174
|
id: number;
|
|
175
175
|
payload: Record<string, any>;
|
|
176
176
|
startedAt: string;
|
|
@@ -401,17 +401,17 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
401
401
|
parameters: z.ZodArray<z.ZodObject<{
|
|
402
402
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
403
403
|
name: z.ZodString;
|
|
404
|
-
value: z.ZodUnknown
|
|
404
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
405
405
|
type: z.ZodNativeEnum<typeof import("./bubble-definition-schema").BubbleParameterType>;
|
|
406
406
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
408
407
|
name: string;
|
|
409
|
-
value
|
|
408
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
409
|
+
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
410
410
|
variableId?: number | undefined;
|
|
411
411
|
}, {
|
|
412
|
-
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
413
412
|
name: string;
|
|
414
|
-
value
|
|
413
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
414
|
+
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
415
415
|
variableId?: number | undefined;
|
|
416
416
|
}>, "many">;
|
|
417
417
|
hasAwait: z.ZodBoolean;
|
|
@@ -439,17 +439,17 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
439
439
|
}, "strip", z.ZodTypeAny, {
|
|
440
440
|
variableId: number;
|
|
441
441
|
variableName: string;
|
|
442
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
443
442
|
bubbleName: string;
|
|
444
443
|
className: string;
|
|
445
444
|
parameters: {
|
|
446
|
-
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
447
445
|
name: string;
|
|
448
|
-
value
|
|
446
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
447
|
+
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
449
448
|
variableId?: number | undefined;
|
|
450
449
|
}[];
|
|
451
450
|
hasAwait: boolean;
|
|
452
451
|
hasActionCall: boolean;
|
|
452
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
453
453
|
location: {
|
|
454
454
|
startLine: number;
|
|
455
455
|
startCol: number;
|
|
@@ -461,17 +461,17 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
461
461
|
}, {
|
|
462
462
|
variableId: number;
|
|
463
463
|
variableName: string;
|
|
464
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
465
464
|
bubbleName: string;
|
|
466
465
|
className: string;
|
|
467
466
|
parameters: {
|
|
468
|
-
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
469
467
|
name: string;
|
|
470
|
-
value
|
|
468
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
469
|
+
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
471
470
|
variableId?: number | undefined;
|
|
472
471
|
}[];
|
|
473
472
|
hasAwait: boolean;
|
|
474
473
|
hasActionCall: boolean;
|
|
474
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
475
475
|
location: {
|
|
476
476
|
startLine: number;
|
|
477
477
|
startCol: number;
|
|
@@ -501,9 +501,9 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
501
501
|
success: z.ZodBoolean;
|
|
502
502
|
error: z.ZodString;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
error: string;
|
|
505
504
|
valid: boolean;
|
|
506
505
|
success: boolean;
|
|
506
|
+
error: string;
|
|
507
507
|
inputSchema: Record<string, unknown>;
|
|
508
508
|
metadata: {
|
|
509
509
|
strictMode: boolean;
|
|
@@ -516,17 +516,17 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
516
516
|
bubbles?: Record<string, {
|
|
517
517
|
variableId: number;
|
|
518
518
|
variableName: string;
|
|
519
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
520
519
|
bubbleName: string;
|
|
521
520
|
className: string;
|
|
522
521
|
parameters: {
|
|
523
|
-
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
524
522
|
name: string;
|
|
525
|
-
value
|
|
523
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
524
|
+
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
526
525
|
variableId?: number | undefined;
|
|
527
526
|
}[];
|
|
528
527
|
hasAwait: boolean;
|
|
529
528
|
hasActionCall: boolean;
|
|
529
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
530
530
|
location: {
|
|
531
531
|
startLine: number;
|
|
532
532
|
startCol: number;
|
|
@@ -538,9 +538,9 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
538
538
|
}> | undefined;
|
|
539
539
|
requiredCredentials?: Record<string, string[]> | undefined;
|
|
540
540
|
}, {
|
|
541
|
-
error: string;
|
|
542
541
|
valid: boolean;
|
|
543
542
|
success: boolean;
|
|
543
|
+
error: string;
|
|
544
544
|
inputSchema: Record<string, unknown>;
|
|
545
545
|
metadata: {
|
|
546
546
|
strictMode: boolean;
|
|
@@ -553,17 +553,17 @@ export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
553
553
|
bubbles?: Record<string, {
|
|
554
554
|
variableId: number;
|
|
555
555
|
variableName: string;
|
|
556
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
557
556
|
bubbleName: string;
|
|
558
557
|
className: string;
|
|
559
558
|
parameters: {
|
|
560
|
-
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
561
559
|
name: string;
|
|
562
|
-
value
|
|
560
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
561
|
+
type: import("./bubble-definition-schema").BubbleParameterType;
|
|
563
562
|
variableId?: number | undefined;
|
|
564
563
|
}[];
|
|
565
564
|
hasAwait: boolean;
|
|
566
565
|
hasActionCall: boolean;
|
|
566
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
567
567
|
location: {
|
|
568
568
|
startLine: number;
|
|
569
569
|
startCol: number;
|
|
@@ -10,16 +10,16 @@ export declare const createBubbleFlowSchema: z.ZodObject<{
|
|
|
10
10
|
webhookPath: z.ZodOptional<z.ZodString>;
|
|
11
11
|
webhookActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
code: string;
|
|
14
13
|
name: string;
|
|
14
|
+
code: string;
|
|
15
15
|
eventType: string;
|
|
16
16
|
description?: string | undefined;
|
|
17
17
|
prompt?: string | undefined;
|
|
18
18
|
webhookPath?: string | undefined;
|
|
19
19
|
webhookActive?: boolean | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
code: string;
|
|
22
21
|
name: string;
|
|
22
|
+
code: string;
|
|
23
23
|
eventType: string;
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
prompt?: string | undefined;
|
|
@@ -35,17 +35,17 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
35
35
|
parameters: z.ZodArray<z.ZodObject<{
|
|
36
36
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
name: z.ZodString;
|
|
38
|
-
value: z.ZodUnknown
|
|
38
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
39
39
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
type: BubbleParameterType;
|
|
42
41
|
name: string;
|
|
43
|
-
value
|
|
42
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
43
|
+
type: BubbleParameterType;
|
|
44
44
|
variableId?: number | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
type: BubbleParameterType;
|
|
47
46
|
name: string;
|
|
48
|
-
value
|
|
47
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
48
|
+
type: BubbleParameterType;
|
|
49
49
|
variableId?: number | undefined;
|
|
50
50
|
}>, "many">;
|
|
51
51
|
hasAwait: z.ZodBoolean;
|
|
@@ -73,17 +73,17 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
variableId: number;
|
|
75
75
|
variableName: string;
|
|
76
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
77
76
|
bubbleName: string;
|
|
78
77
|
className: string;
|
|
79
78
|
parameters: {
|
|
80
|
-
type: BubbleParameterType;
|
|
81
79
|
name: string;
|
|
82
|
-
value
|
|
80
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
81
|
+
type: BubbleParameterType;
|
|
83
82
|
variableId?: number | undefined;
|
|
84
83
|
}[];
|
|
85
84
|
hasAwait: boolean;
|
|
86
85
|
hasActionCall: boolean;
|
|
86
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
87
87
|
location: {
|
|
88
88
|
startLine: number;
|
|
89
89
|
startCol: number;
|
|
@@ -95,17 +95,17 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
95
95
|
}, {
|
|
96
96
|
variableId: number;
|
|
97
97
|
variableName: string;
|
|
98
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
99
98
|
bubbleName: string;
|
|
100
99
|
className: string;
|
|
101
100
|
parameters: {
|
|
102
|
-
type: BubbleParameterType;
|
|
103
101
|
name: string;
|
|
104
|
-
value
|
|
102
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
103
|
+
type: BubbleParameterType;
|
|
105
104
|
variableId?: number | undefined;
|
|
106
105
|
}[];
|
|
107
106
|
hasAwait: boolean;
|
|
108
107
|
hasActionCall: boolean;
|
|
108
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
109
109
|
location: {
|
|
110
110
|
startLine: number;
|
|
111
111
|
startCol: number;
|
|
@@ -121,17 +121,17 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
121
121
|
parameters: z.ZodArray<z.ZodObject<{
|
|
122
122
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
123
123
|
name: z.ZodString;
|
|
124
|
-
value: z.ZodUnknown
|
|
124
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
125
125
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
type: BubbleParameterType;
|
|
128
127
|
name: string;
|
|
129
|
-
value
|
|
128
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
129
|
+
type: BubbleParameterType;
|
|
130
130
|
variableId?: number | undefined;
|
|
131
131
|
}, {
|
|
132
|
-
type: BubbleParameterType;
|
|
133
132
|
name: string;
|
|
134
|
-
value
|
|
133
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
134
|
+
type: BubbleParameterType;
|
|
135
135
|
variableId?: number | undefined;
|
|
136
136
|
}>, "many">;
|
|
137
137
|
hasAwait: z.ZodBoolean;
|
|
@@ -143,9 +143,9 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
143
143
|
bubbleName: string;
|
|
144
144
|
className: string;
|
|
145
145
|
parameters: {
|
|
146
|
-
type: BubbleParameterType;
|
|
147
146
|
name: string;
|
|
148
|
-
value
|
|
147
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
148
|
+
type: BubbleParameterType;
|
|
149
149
|
variableId?: number | undefined;
|
|
150
150
|
}[];
|
|
151
151
|
hasAwait: boolean;
|
|
@@ -157,9 +157,9 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
157
157
|
bubbleName: string;
|
|
158
158
|
className: string;
|
|
159
159
|
parameters: {
|
|
160
|
-
type: BubbleParameterType;
|
|
161
160
|
name: string;
|
|
162
|
-
value
|
|
161
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
162
|
+
type: BubbleParameterType;
|
|
163
163
|
variableId?: number | undefined;
|
|
164
164
|
}[];
|
|
165
165
|
hasAwait: boolean;
|
|
@@ -173,9 +173,9 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
173
173
|
bubbleName: string;
|
|
174
174
|
className: string;
|
|
175
175
|
parameters: {
|
|
176
|
-
type: BubbleParameterType;
|
|
177
176
|
name: string;
|
|
178
|
-
value
|
|
177
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
178
|
+
type: BubbleParameterType;
|
|
179
179
|
variableId?: number | undefined;
|
|
180
180
|
}[];
|
|
181
181
|
hasAwait: boolean;
|
|
@@ -185,17 +185,17 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
185
185
|
} | {
|
|
186
186
|
variableId: number;
|
|
187
187
|
variableName: string;
|
|
188
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
189
188
|
bubbleName: string;
|
|
190
189
|
className: string;
|
|
191
190
|
parameters: {
|
|
192
|
-
type: BubbleParameterType;
|
|
193
191
|
name: string;
|
|
194
|
-
value
|
|
192
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
193
|
+
type: BubbleParameterType;
|
|
195
194
|
variableId?: number | undefined;
|
|
196
195
|
}[];
|
|
197
196
|
hasAwait: boolean;
|
|
198
197
|
hasActionCall: boolean;
|
|
198
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
199
199
|
location: {
|
|
200
200
|
startLine: number;
|
|
201
201
|
startCol: number;
|
|
@@ -211,9 +211,9 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
211
211
|
bubbleName: string;
|
|
212
212
|
className: string;
|
|
213
213
|
parameters: {
|
|
214
|
-
type: BubbleParameterType;
|
|
215
214
|
name: string;
|
|
216
|
-
value
|
|
215
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
216
|
+
type: BubbleParameterType;
|
|
217
217
|
variableId?: number | undefined;
|
|
218
218
|
}[];
|
|
219
219
|
hasAwait: boolean;
|
|
@@ -223,17 +223,17 @@ export declare const updateBubbleFlowParametersSchema: z.ZodObject<{
|
|
|
223
223
|
} | {
|
|
224
224
|
variableId: number;
|
|
225
225
|
variableName: string;
|
|
226
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
227
226
|
bubbleName: string;
|
|
228
227
|
className: string;
|
|
229
228
|
parameters: {
|
|
230
|
-
type: BubbleParameterType;
|
|
231
229
|
name: string;
|
|
232
|
-
value
|
|
230
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
231
|
+
type: BubbleParameterType;
|
|
233
232
|
variableId?: number | undefined;
|
|
234
233
|
}[];
|
|
235
234
|
hasAwait: boolean;
|
|
236
235
|
hasActionCall: boolean;
|
|
236
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
237
237
|
location: {
|
|
238
238
|
startLine: number;
|
|
239
239
|
startCol: number;
|
|
@@ -255,17 +255,17 @@ export declare const createBubbleFlowResponseSchema: z.ZodObject<{
|
|
|
255
255
|
parameters: z.ZodArray<z.ZodObject<{
|
|
256
256
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
257
257
|
name: z.ZodString;
|
|
258
|
-
value: z.ZodUnknown
|
|
258
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
259
259
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
type: BubbleParameterType;
|
|
262
261
|
name: string;
|
|
263
|
-
value
|
|
262
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
263
|
+
type: BubbleParameterType;
|
|
264
264
|
variableId?: number | undefined;
|
|
265
265
|
}, {
|
|
266
|
-
type: BubbleParameterType;
|
|
267
266
|
name: string;
|
|
268
|
-
value
|
|
267
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
268
|
+
type: BubbleParameterType;
|
|
269
269
|
variableId?: number | undefined;
|
|
270
270
|
}>, "many">;
|
|
271
271
|
hasAwait: z.ZodBoolean;
|
|
@@ -293,17 +293,17 @@ export declare const createBubbleFlowResponseSchema: z.ZodObject<{
|
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
294
|
variableId: number;
|
|
295
295
|
variableName: string;
|
|
296
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
297
296
|
bubbleName: string;
|
|
298
297
|
className: string;
|
|
299
298
|
parameters: {
|
|
300
|
-
type: BubbleParameterType;
|
|
301
299
|
name: string;
|
|
302
|
-
value
|
|
300
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
301
|
+
type: BubbleParameterType;
|
|
303
302
|
variableId?: number | undefined;
|
|
304
303
|
}[];
|
|
305
304
|
hasAwait: boolean;
|
|
306
305
|
hasActionCall: boolean;
|
|
306
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
307
307
|
location: {
|
|
308
308
|
startLine: number;
|
|
309
309
|
startCol: number;
|
|
@@ -315,17 +315,17 @@ export declare const createBubbleFlowResponseSchema: z.ZodObject<{
|
|
|
315
315
|
}, {
|
|
316
316
|
variableId: number;
|
|
317
317
|
variableName: string;
|
|
318
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
319
318
|
bubbleName: string;
|
|
320
319
|
className: string;
|
|
321
320
|
parameters: {
|
|
322
|
-
type: BubbleParameterType;
|
|
323
321
|
name: string;
|
|
324
|
-
value
|
|
322
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
323
|
+
type: BubbleParameterType;
|
|
325
324
|
variableId?: number | undefined;
|
|
326
325
|
}[];
|
|
327
326
|
hasAwait: boolean;
|
|
328
327
|
hasActionCall: boolean;
|
|
328
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
329
329
|
location: {
|
|
330
330
|
startLine: number;
|
|
331
331
|
startCol: number;
|
|
@@ -358,17 +358,17 @@ export declare const createBubbleFlowResponseSchema: z.ZodObject<{
|
|
|
358
358
|
bubbleParameters: Record<string, {
|
|
359
359
|
variableId: number;
|
|
360
360
|
variableName: string;
|
|
361
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
362
361
|
bubbleName: string;
|
|
363
362
|
className: string;
|
|
364
363
|
parameters: {
|
|
365
|
-
type: BubbleParameterType;
|
|
366
364
|
name: string;
|
|
367
|
-
value
|
|
365
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
366
|
+
type: BubbleParameterType;
|
|
368
367
|
variableId?: number | undefined;
|
|
369
368
|
}[];
|
|
370
369
|
hasAwait: boolean;
|
|
371
370
|
hasActionCall: boolean;
|
|
371
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
372
372
|
location: {
|
|
373
373
|
startLine: number;
|
|
374
374
|
startCol: number;
|
|
@@ -392,17 +392,17 @@ export declare const createBubbleFlowResponseSchema: z.ZodObject<{
|
|
|
392
392
|
bubbleParameters: Record<string, {
|
|
393
393
|
variableId: number;
|
|
394
394
|
variableName: string;
|
|
395
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
396
395
|
bubbleName: string;
|
|
397
396
|
className: string;
|
|
398
397
|
parameters: {
|
|
399
|
-
type: BubbleParameterType;
|
|
400
398
|
name: string;
|
|
401
|
-
value
|
|
399
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
400
|
+
type: BubbleParameterType;
|
|
402
401
|
variableId?: number | undefined;
|
|
403
402
|
}[];
|
|
404
403
|
hasAwait: boolean;
|
|
405
404
|
hasActionCall: boolean;
|
|
405
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
406
406
|
location: {
|
|
407
407
|
startLine: number;
|
|
408
408
|
startCol: number;
|
|
@@ -440,12 +440,12 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
440
440
|
value: z.ZodUnknown;
|
|
441
441
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
442
442
|
}, "strip", z.ZodTypeAny, {
|
|
443
|
-
type: BubbleParameterType;
|
|
444
443
|
name: string;
|
|
444
|
+
type: BubbleParameterType;
|
|
445
445
|
value?: unknown;
|
|
446
446
|
}, {
|
|
447
|
-
type: BubbleParameterType;
|
|
448
447
|
name: string;
|
|
448
|
+
type: BubbleParameterType;
|
|
449
449
|
value?: unknown;
|
|
450
450
|
}>, "many">;
|
|
451
451
|
hasAwait: z.ZodBoolean;
|
|
@@ -455,8 +455,8 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
455
455
|
bubbleName: string;
|
|
456
456
|
className: string;
|
|
457
457
|
parameters: {
|
|
458
|
-
type: BubbleParameterType;
|
|
459
458
|
name: string;
|
|
459
|
+
type: BubbleParameterType;
|
|
460
460
|
value?: unknown;
|
|
461
461
|
}[];
|
|
462
462
|
hasAwait: boolean;
|
|
@@ -466,8 +466,8 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
466
466
|
bubbleName: string;
|
|
467
467
|
className: string;
|
|
468
468
|
parameters: {
|
|
469
|
-
type: BubbleParameterType;
|
|
470
469
|
name: string;
|
|
470
|
+
type: BubbleParameterType;
|
|
471
471
|
value?: unknown;
|
|
472
472
|
}[];
|
|
473
473
|
hasAwait: boolean;
|
|
@@ -480,17 +480,17 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
480
480
|
parameters: z.ZodArray<z.ZodObject<{
|
|
481
481
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
482
482
|
name: z.ZodString;
|
|
483
|
-
value: z.ZodUnknown
|
|
483
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
484
484
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
485
485
|
}, "strip", z.ZodTypeAny, {
|
|
486
|
-
type: BubbleParameterType;
|
|
487
486
|
name: string;
|
|
488
|
-
value
|
|
487
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
488
|
+
type: BubbleParameterType;
|
|
489
489
|
variableId?: number | undefined;
|
|
490
490
|
}, {
|
|
491
|
-
type: BubbleParameterType;
|
|
492
491
|
name: string;
|
|
493
|
-
value
|
|
492
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
493
|
+
type: BubbleParameterType;
|
|
494
494
|
variableId?: number | undefined;
|
|
495
495
|
}>, "many">;
|
|
496
496
|
hasAwait: z.ZodBoolean;
|
|
@@ -518,17 +518,17 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
518
518
|
}, "strip", z.ZodTypeAny, {
|
|
519
519
|
variableId: number;
|
|
520
520
|
variableName: string;
|
|
521
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
522
521
|
bubbleName: string;
|
|
523
522
|
className: string;
|
|
524
523
|
parameters: {
|
|
525
|
-
type: BubbleParameterType;
|
|
526
524
|
name: string;
|
|
527
|
-
value
|
|
525
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
526
|
+
type: BubbleParameterType;
|
|
528
527
|
variableId?: number | undefined;
|
|
529
528
|
}[];
|
|
530
529
|
hasAwait: boolean;
|
|
531
530
|
hasActionCall: boolean;
|
|
531
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
532
532
|
location: {
|
|
533
533
|
startLine: number;
|
|
534
534
|
startCol: number;
|
|
@@ -540,17 +540,17 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
540
540
|
}, {
|
|
541
541
|
variableId: number;
|
|
542
542
|
variableName: string;
|
|
543
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
544
543
|
bubbleName: string;
|
|
545
544
|
className: string;
|
|
546
545
|
parameters: {
|
|
547
|
-
type: BubbleParameterType;
|
|
548
546
|
name: string;
|
|
549
|
-
value
|
|
547
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
548
|
+
type: BubbleParameterType;
|
|
550
549
|
variableId?: number | undefined;
|
|
551
550
|
}[];
|
|
552
551
|
hasAwait: boolean;
|
|
553
552
|
hasActionCall: boolean;
|
|
553
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
554
554
|
location: {
|
|
555
555
|
startLine: number;
|
|
556
556
|
startCol: number;
|
|
@@ -564,8 +564,8 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
564
564
|
updatedAt: z.ZodString;
|
|
565
565
|
webhook_url: z.ZodString;
|
|
566
566
|
}, "strip", z.ZodTypeAny, {
|
|
567
|
-
code: string;
|
|
568
567
|
name: string;
|
|
568
|
+
code: string;
|
|
569
569
|
id: number;
|
|
570
570
|
webhook_url: string;
|
|
571
571
|
requiredCredentials: Record<string, CredentialType[]>;
|
|
@@ -573,17 +573,17 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
573
573
|
bubbleParameters: Record<string, {
|
|
574
574
|
variableId: number;
|
|
575
575
|
variableName: string;
|
|
576
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
577
576
|
bubbleName: string;
|
|
578
577
|
className: string;
|
|
579
578
|
parameters: {
|
|
580
|
-
type: BubbleParameterType;
|
|
581
579
|
name: string;
|
|
582
|
-
value
|
|
580
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
581
|
+
type: BubbleParameterType;
|
|
583
582
|
variableId?: number | undefined;
|
|
584
583
|
}[];
|
|
585
584
|
hasAwait: boolean;
|
|
586
585
|
hasActionCall: boolean;
|
|
586
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
587
587
|
location: {
|
|
588
588
|
startLine: number;
|
|
589
589
|
startCol: number;
|
|
@@ -604,16 +604,16 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
604
604
|
bubbleName: string;
|
|
605
605
|
className: string;
|
|
606
606
|
parameters: {
|
|
607
|
-
type: BubbleParameterType;
|
|
608
607
|
name: string;
|
|
608
|
+
type: BubbleParameterType;
|
|
609
609
|
value?: unknown;
|
|
610
610
|
}[];
|
|
611
611
|
hasAwait: boolean;
|
|
612
612
|
hasActionCall: boolean;
|
|
613
613
|
}> | undefined;
|
|
614
614
|
}, {
|
|
615
|
-
code: string;
|
|
616
615
|
name: string;
|
|
616
|
+
code: string;
|
|
617
617
|
id: number;
|
|
618
618
|
webhook_url: string;
|
|
619
619
|
requiredCredentials: Record<string, CredentialType[]>;
|
|
@@ -621,17 +621,17 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
621
621
|
bubbleParameters: Record<string, {
|
|
622
622
|
variableId: number;
|
|
623
623
|
variableName: string;
|
|
624
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
625
624
|
bubbleName: string;
|
|
626
625
|
className: string;
|
|
627
626
|
parameters: {
|
|
628
|
-
type: BubbleParameterType;
|
|
629
627
|
name: string;
|
|
630
|
-
value
|
|
628
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
629
|
+
type: BubbleParameterType;
|
|
631
630
|
variableId?: number | undefined;
|
|
632
631
|
}[];
|
|
633
632
|
hasAwait: boolean;
|
|
634
633
|
hasActionCall: boolean;
|
|
634
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
635
635
|
location: {
|
|
636
636
|
startLine: number;
|
|
637
637
|
startCol: number;
|
|
@@ -652,8 +652,8 @@ export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{
|
|
|
652
652
|
bubbleName: string;
|
|
653
653
|
className: string;
|
|
654
654
|
parameters: {
|
|
655
|
-
type: BubbleParameterType;
|
|
656
655
|
name: string;
|
|
656
|
+
type: BubbleParameterType;
|
|
657
657
|
value?: unknown;
|
|
658
658
|
}[];
|
|
659
659
|
hasAwait: boolean;
|
|
@@ -20,17 +20,17 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
20
20
|
parameters: z.ZodArray<z.ZodObject<{
|
|
21
21
|
variableId: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
name: z.ZodString;
|
|
23
|
-
value: z.ZodUnknown
|
|
23
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>;
|
|
24
24
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
type: BubbleParameterType;
|
|
27
26
|
name: string;
|
|
28
|
-
value
|
|
27
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
28
|
+
type: BubbleParameterType;
|
|
29
29
|
variableId?: number | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
type: BubbleParameterType;
|
|
32
31
|
name: string;
|
|
33
|
-
value
|
|
32
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
33
|
+
type: BubbleParameterType;
|
|
34
34
|
variableId?: number | undefined;
|
|
35
35
|
}>, "many">;
|
|
36
36
|
hasAwait: z.ZodBoolean;
|
|
@@ -58,17 +58,17 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
variableId: number;
|
|
60
60
|
variableName: string;
|
|
61
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
62
61
|
bubbleName: string;
|
|
63
62
|
className: string;
|
|
64
63
|
parameters: {
|
|
65
|
-
type: BubbleParameterType;
|
|
66
64
|
name: string;
|
|
67
|
-
value
|
|
65
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
66
|
+
type: BubbleParameterType;
|
|
68
67
|
variableId?: number | undefined;
|
|
69
68
|
}[];
|
|
70
69
|
hasAwait: boolean;
|
|
71
70
|
hasActionCall: boolean;
|
|
71
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
72
72
|
location: {
|
|
73
73
|
startLine: number;
|
|
74
74
|
startCol: number;
|
|
@@ -80,17 +80,17 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
80
80
|
}, {
|
|
81
81
|
variableId: number;
|
|
82
82
|
variableName: string;
|
|
83
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
84
83
|
bubbleName: string;
|
|
85
84
|
className: string;
|
|
86
85
|
parameters: {
|
|
87
|
-
type: BubbleParameterType;
|
|
88
86
|
name: string;
|
|
89
|
-
value
|
|
87
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
88
|
+
type: BubbleParameterType;
|
|
90
89
|
variableId?: number | undefined;
|
|
91
90
|
}[];
|
|
92
91
|
hasAwait: boolean;
|
|
93
92
|
hasActionCall: boolean;
|
|
93
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
94
94
|
location: {
|
|
95
95
|
startLine: number;
|
|
96
96
|
startCol: number;
|
|
@@ -102,23 +102,23 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
102
102
|
}>>;
|
|
103
103
|
requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
error: string;
|
|
106
105
|
success: boolean;
|
|
106
|
+
error: string;
|
|
107
107
|
requiredCredentials: Record<string, string[]>;
|
|
108
108
|
bubbleParameters: Record<string, {
|
|
109
109
|
variableId: number;
|
|
110
110
|
variableName: string;
|
|
111
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
112
111
|
bubbleName: string;
|
|
113
112
|
className: string;
|
|
114
113
|
parameters: {
|
|
115
|
-
type: BubbleParameterType;
|
|
116
114
|
name: string;
|
|
117
|
-
value
|
|
115
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
116
|
+
type: BubbleParameterType;
|
|
118
117
|
variableId?: number | undefined;
|
|
119
118
|
}[];
|
|
120
119
|
hasAwait: boolean;
|
|
121
120
|
hasActionCall: boolean;
|
|
121
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
122
122
|
location: {
|
|
123
123
|
startLine: number;
|
|
124
124
|
startCol: number;
|
|
@@ -131,23 +131,23 @@ export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{
|
|
|
131
131
|
generatedCode: string;
|
|
132
132
|
isValid: boolean;
|
|
133
133
|
}, {
|
|
134
|
-
error: string;
|
|
135
134
|
success: boolean;
|
|
135
|
+
error: string;
|
|
136
136
|
requiredCredentials: Record<string, string[]>;
|
|
137
137
|
bubbleParameters: Record<string, {
|
|
138
138
|
variableId: number;
|
|
139
139
|
variableName: string;
|
|
140
|
-
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
141
140
|
bubbleName: string;
|
|
142
141
|
className: string;
|
|
143
142
|
parameters: {
|
|
144
|
-
type: BubbleParameterType;
|
|
145
143
|
name: string;
|
|
146
|
-
value
|
|
144
|
+
value: string | number | boolean | unknown[] | Record<string, unknown>;
|
|
145
|
+
type: BubbleParameterType;
|
|
147
146
|
variableId?: number | undefined;
|
|
148
147
|
}[];
|
|
149
148
|
hasAwait: boolean;
|
|
150
149
|
hasActionCall: boolean;
|
|
150
|
+
nodeType: "unknown" | "service" | "tool" | "workflow";
|
|
151
151
|
location: {
|
|
152
152
|
startLine: number;
|
|
153
153
|
startCol: number;
|
|
@@ -171,8 +171,8 @@ export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
|
|
|
171
171
|
includeExplanation: z.ZodOptional<z.ZodBoolean>;
|
|
172
172
|
maxQueries: z.ZodOptional<z.ZodNumber>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
description: string;
|
|
175
174
|
name: string;
|
|
175
|
+
description: string;
|
|
176
176
|
roles: string;
|
|
177
177
|
useCase: "slack-data-scientist";
|
|
178
178
|
verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
|
|
@@ -181,8 +181,8 @@ export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{
|
|
|
181
181
|
includeExplanation?: boolean | undefined;
|
|
182
182
|
maxQueries?: number | undefined;
|
|
183
183
|
}, {
|
|
184
|
-
description: string;
|
|
185
184
|
name: string;
|
|
185
|
+
description: string;
|
|
186
186
|
roles: string;
|
|
187
187
|
useCase: "slack-data-scientist";
|
|
188
188
|
verbosity?: "1" | "2" | "3" | "4" | "5" | undefined;
|
|
@@ -243,8 +243,8 @@ export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{
|
|
|
243
243
|
}>>;
|
|
244
244
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
description: string;
|
|
247
246
|
name: string;
|
|
247
|
+
description: string;
|
|
248
248
|
outputDescription: string;
|
|
249
249
|
metadata?: Record<string, unknown> | undefined;
|
|
250
250
|
outputFormat?: "html" | "csv" | "json" | undefined;
|
|
@@ -303,12 +303,12 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
303
303
|
value: z.ZodUnknown;
|
|
304
304
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
type: BubbleParameterType;
|
|
307
306
|
name: string;
|
|
307
|
+
type: BubbleParameterType;
|
|
308
308
|
value?: unknown;
|
|
309
309
|
}, {
|
|
310
|
-
type: BubbleParameterType;
|
|
311
310
|
name: string;
|
|
311
|
+
type: BubbleParameterType;
|
|
312
312
|
value?: unknown;
|
|
313
313
|
}>, "many">;
|
|
314
314
|
hasAwait: z.ZodBoolean;
|
|
@@ -318,8 +318,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
318
318
|
bubbleName: string;
|
|
319
319
|
className: string;
|
|
320
320
|
parameters: {
|
|
321
|
-
type: BubbleParameterType;
|
|
322
321
|
name: string;
|
|
322
|
+
type: BubbleParameterType;
|
|
323
323
|
value?: unknown;
|
|
324
324
|
}[];
|
|
325
325
|
hasAwait: boolean;
|
|
@@ -329,8 +329,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
329
329
|
bubbleName: string;
|
|
330
330
|
className: string;
|
|
331
331
|
parameters: {
|
|
332
|
-
type: BubbleParameterType;
|
|
333
332
|
name: string;
|
|
333
|
+
type: BubbleParameterType;
|
|
334
334
|
value?: unknown;
|
|
335
335
|
}[];
|
|
336
336
|
hasAwait: boolean;
|
|
@@ -345,12 +345,12 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
345
345
|
value: z.ZodUnknown;
|
|
346
346
|
type: z.ZodNativeEnum<typeof BubbleParameterType>;
|
|
347
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
-
type: BubbleParameterType;
|
|
349
348
|
name: string;
|
|
349
|
+
type: BubbleParameterType;
|
|
350
350
|
value?: unknown;
|
|
351
351
|
}, {
|
|
352
|
-
type: BubbleParameterType;
|
|
353
352
|
name: string;
|
|
353
|
+
type: BubbleParameterType;
|
|
354
354
|
value?: unknown;
|
|
355
355
|
}>, "many">;
|
|
356
356
|
hasAwait: z.ZodBoolean;
|
|
@@ -360,8 +360,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
360
360
|
bubbleName: string;
|
|
361
361
|
className: string;
|
|
362
362
|
parameters: {
|
|
363
|
-
type: BubbleParameterType;
|
|
364
363
|
name: string;
|
|
364
|
+
type: BubbleParameterType;
|
|
365
365
|
value?: unknown;
|
|
366
366
|
}[];
|
|
367
367
|
hasAwait: boolean;
|
|
@@ -371,8 +371,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
371
371
|
bubbleName: string;
|
|
372
372
|
className: string;
|
|
373
373
|
parameters: {
|
|
374
|
-
type: BubbleParameterType;
|
|
375
374
|
name: string;
|
|
375
|
+
type: BubbleParameterType;
|
|
376
376
|
value?: unknown;
|
|
377
377
|
}[];
|
|
378
378
|
hasAwait: boolean;
|
|
@@ -398,8 +398,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
398
398
|
active: boolean;
|
|
399
399
|
}>>;
|
|
400
400
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
description: string;
|
|
402
401
|
name: string;
|
|
402
|
+
description: string;
|
|
403
403
|
id: number;
|
|
404
404
|
eventType: string;
|
|
405
405
|
bubbleParameters: Record<string, {
|
|
@@ -407,8 +407,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
407
407
|
bubbleName: string;
|
|
408
408
|
className: string;
|
|
409
409
|
parameters: {
|
|
410
|
-
type: BubbleParameterType;
|
|
411
410
|
name: string;
|
|
411
|
+
type: BubbleParameterType;
|
|
412
412
|
value?: unknown;
|
|
413
413
|
}[];
|
|
414
414
|
hasAwait: boolean;
|
|
@@ -419,8 +419,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
419
419
|
bubbleName: string;
|
|
420
420
|
className: string;
|
|
421
421
|
parameters: {
|
|
422
|
-
type: BubbleParameterType;
|
|
423
422
|
name: string;
|
|
423
|
+
type: BubbleParameterType;
|
|
424
424
|
value?: unknown;
|
|
425
425
|
}[];
|
|
426
426
|
hasAwait: boolean;
|
|
@@ -436,8 +436,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
436
436
|
active: boolean;
|
|
437
437
|
} | undefined;
|
|
438
438
|
}, {
|
|
439
|
-
description: string;
|
|
440
439
|
name: string;
|
|
440
|
+
description: string;
|
|
441
441
|
id: number;
|
|
442
442
|
eventType: string;
|
|
443
443
|
bubbleParameters: Record<string, {
|
|
@@ -445,8 +445,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
445
445
|
bubbleName: string;
|
|
446
446
|
className: string;
|
|
447
447
|
parameters: {
|
|
448
|
-
type: BubbleParameterType;
|
|
449
448
|
name: string;
|
|
449
|
+
type: BubbleParameterType;
|
|
450
450
|
value?: unknown;
|
|
451
451
|
}[];
|
|
452
452
|
hasAwait: boolean;
|
|
@@ -457,8 +457,8 @@ export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{
|
|
|
457
457
|
bubbleName: string;
|
|
458
458
|
className: string;
|
|
459
459
|
parameters: {
|
|
460
|
-
type: BubbleParameterType;
|
|
461
460
|
name: string;
|
|
461
|
+
type: BubbleParameterType;
|
|
462
462
|
value?: unknown;
|
|
463
463
|
}[];
|
|
464
464
|
hasAwait: boolean;
|