@membranehq/sdk 0.7.3 → 0.7.4

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 (32) hide show
  1. package/dist/bundle.d.ts +1180 -1049
  2. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +9 -20
  3. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +452 -453
  4. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +43 -69
  5. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +208 -110
  6. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -6
  7. package/dist/dts/workspace-elements/api/flows-api.d.ts +583 -497
  8. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +2 -2
  9. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  10. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
  11. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  12. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +2 -2
  13. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  14. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  15. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  16. package/dist/index.browser.d.mts +1749 -1375
  17. package/dist/index.browser.d.ts +1749 -1375
  18. package/dist/index.browser.js +128 -133
  19. package/dist/index.browser.js.map +1 -1
  20. package/dist/index.browser.mjs +123 -132
  21. package/dist/index.browser.mjs.map +1 -1
  22. package/dist/index.node.d.mts +1749 -1375
  23. package/dist/index.node.d.ts +1749 -1375
  24. package/dist/index.node.js +128 -133
  25. package/dist/index.node.js.map +1 -1
  26. package/dist/index.node.mjs +123 -132
  27. package/dist/index.node.mjs.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  30. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
  31. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
  32. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
@@ -1,446 +1,90 @@
1
1
  import { z } from 'zod';
2
2
  import { ConnectionSelector } from './connections-api';
3
3
  import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../../accessors/base-accessors';
4
- import { DataSchema } from '../../data-schema';
5
- export declare const ListFlowsForIntegrationQuery: z.ZodObject<{
6
- universalFlowId: z.ZodOptional<z.ZodString>;
7
- } & {
8
- search: z.ZodOptional<z.ZodString>;
9
- } & {
10
- limit: z.ZodOptional<z.ZodNumber>;
11
- cursor: z.ZodOptional<z.ZodString>;
12
- } & {
13
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
14
- }, "strip", z.ZodTypeAny, {
15
- search?: string | undefined;
16
- includeArchived?: boolean | undefined;
17
- limit?: number | undefined;
18
- cursor?: string | undefined;
19
- universalFlowId?: string | undefined;
20
- }, {
21
- search?: string | undefined;
22
- includeArchived?: unknown;
23
- limit?: number | undefined;
24
- cursor?: string | undefined;
25
- universalFlowId?: string | undefined;
26
- }>;
27
- export type ListFlowsForIntegrationQuery = z.infer<typeof ListFlowsForIntegrationQuery>;
28
- export declare const FindFlowsQuery: z.ZodObject<{
29
- universalFlowId: z.ZodOptional<z.ZodString>;
30
- } & {
31
- search: z.ZodOptional<z.ZodString>;
32
- } & {
33
- limit: z.ZodOptional<z.ZodNumber>;
34
- cursor: z.ZodOptional<z.ZodString>;
35
- } & {
36
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
37
- } & {
38
- integrationId: z.ZodOptional<z.ZodString>;
39
- }, "strip", z.ZodTypeAny, {
40
- search?: string | undefined;
41
- integrationId?: string | undefined;
42
- includeArchived?: boolean | undefined;
43
- limit?: number | undefined;
44
- cursor?: string | undefined;
45
- universalFlowId?: string | undefined;
46
- }, {
47
- search?: string | undefined;
48
- integrationId?: string | undefined;
49
- includeArchived?: unknown;
50
- limit?: number | undefined;
51
- cursor?: string | undefined;
52
- universalFlowId?: string | undefined;
53
- }>;
54
- export type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
55
- export declare const CreateFlowNodeRequest: z.ZodObject<{
56
- type: z.ZodString;
57
- config: z.ZodOptional<z.ZodAny>;
58
- ui: z.ZodOptional<z.ZodAny>;
59
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
60
- key?: string | undefined;
61
- filter?: any;
62
- name?: string | undefined;
63
- }, z.ZodTypeDef, {
64
- key?: string | undefined;
65
- filter?: any;
66
- name?: string | undefined;
67
- }>>, "many">>;
68
- }, "strip", z.ZodTypeAny, {
69
- type: string;
70
- config?: any;
71
- ui?: any;
72
- links?: {
73
- key?: string | undefined;
74
- filter?: any;
75
- name?: string | undefined;
76
- }[] | undefined;
77
- }, {
78
- type: string;
79
- config?: any;
80
- ui?: any;
81
- links?: {
82
- key?: string | undefined;
83
- filter?: any;
84
- name?: string | undefined;
85
- }[] | undefined;
86
- }>;
87
- export type CreateFlowNodeRequest = z.infer<typeof CreateFlowNodeRequest>;
88
- export declare const CreateFlowRequest: z.ZodObject<{
89
- key: z.ZodString;
90
- name: z.ZodString;
91
- integrationId: z.ZodOptional<z.ZodString>;
92
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
93
- type: z.ZodString;
94
- config: z.ZodOptional<z.ZodAny>;
95
- ui: z.ZodOptional<z.ZodAny>;
96
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
97
- key?: string | undefined;
98
- filter?: any;
99
- name?: string | undefined;
100
- }, z.ZodTypeDef, {
101
- key?: string | undefined;
102
- filter?: any;
103
- name?: string | undefined;
104
- }>>, "many">>;
105
- }, "strip", z.ZodTypeAny, {
106
- type: string;
107
- config?: any;
108
- ui?: any;
109
- links?: {
110
- key?: string | undefined;
111
- filter?: any;
112
- name?: string | undefined;
113
- }[] | undefined;
114
- }, {
115
- type: string;
116
- config?: any;
117
- ui?: any;
118
- links?: {
119
- key?: string | undefined;
120
- filter?: any;
121
- name?: string | undefined;
122
- }[] | undefined;
123
- }>>>;
124
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
125
- autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
126
- }, "strip", z.ZodTypeAny, {
127
- key: string;
128
- name: string;
129
- integrationId?: string | undefined;
130
- parametersSchema?: DataSchema | undefined;
131
- nodes?: Record<string, {
132
- type: string;
133
- config?: any;
134
- ui?: any;
135
- links?: {
136
- key?: string | undefined;
137
- filter?: any;
138
- name?: string | undefined;
139
- }[] | undefined;
140
- }> | undefined;
141
- autoCreateInstances?: boolean | undefined;
142
- }, {
143
- key: string;
144
- name: string;
145
- integrationId?: string | undefined;
146
- parametersSchema?: DataSchema | undefined;
147
- nodes?: Record<string, {
148
- type: string;
149
- config?: any;
150
- ui?: any;
151
- links?: {
152
- key?: string | undefined;
153
- filter?: any;
154
- name?: string | undefined;
155
- }[] | undefined;
156
- }> | undefined;
157
- autoCreateInstances?: boolean | undefined;
158
- }>;
159
- export type CreateFlowRequest = z.infer<typeof CreateFlowRequest>;
160
- export declare const UpdateFlowRequest: z.ZodObject<{
161
- key: z.ZodString;
162
- name: z.ZodString;
4
+ export declare const FlowApiResponse: z.ZodObject<{
5
+ id: z.ZodString;
6
+ key: z.ZodOptional<z.ZodString>;
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
163
10
  integrationId: z.ZodOptional<z.ZodString>;
11
+ universalFlowId: z.ZodOptional<z.ZodString>;
12
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
164
13
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
165
- type: z.ZodString;
14
+ type: z.ZodOptional<z.ZodString>;
15
+ version: z.ZodOptional<z.ZodNumber>;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodString>;
166
18
  config: z.ZodOptional<z.ZodAny>;
19
+ concurrency: z.ZodOptional<z.ZodNumber>;
20
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
167
21
  ui: z.ZodOptional<z.ZodAny>;
168
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
22
+ inputSchema: z.ZodOptional<z.ZodAny>;
23
+ outputSchema: z.ZodOptional<z.ZodAny>;
24
+ outputExample: z.ZodOptional<z.ZodAny>;
25
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ key: z.ZodOptional<z.ZodString>;
27
+ filter: z.ZodOptional<z.ZodAny>;
28
+ name: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
169
30
  key?: string | undefined;
170
31
  filter?: any;
171
32
  name?: string | undefined;
172
- }, z.ZodTypeDef, {
33
+ }, {
173
34
  key?: string | undefined;
174
35
  filter?: any;
175
36
  name?: string | undefined;
176
- }>>, "many">>;
37
+ }>, "many">>;
38
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
177
39
  }, "strip", z.ZodTypeAny, {
178
- type: string;
40
+ concurrency?: number | undefined;
41
+ type?: string | undefined;
42
+ name?: string | undefined;
43
+ description?: string | undefined;
44
+ isCustomized?: boolean | undefined;
45
+ inputSchema?: any;
179
46
  config?: any;
47
+ outputSchema?: any;
48
+ version?: number | undefined;
49
+ onError?: "stop" | "continue" | undefined;
180
50
  ui?: any;
51
+ outputExample?: any;
181
52
  links?: {
182
53
  key?: string | undefined;
183
54
  filter?: any;
184
55
  name?: string | undefined;
185
56
  }[] | undefined;
186
57
  }, {
187
- type: string;
58
+ concurrency?: number | undefined;
59
+ type?: string | undefined;
60
+ name?: string | undefined;
61
+ description?: string | undefined;
62
+ isCustomized?: boolean | undefined;
63
+ inputSchema?: any;
188
64
  config?: any;
65
+ outputSchema?: any;
66
+ version?: number | undefined;
67
+ onError?: "stop" | "continue" | undefined;
189
68
  ui?: any;
69
+ outputExample?: any;
190
70
  links?: {
191
71
  key?: string | undefined;
192
72
  filter?: any;
193
73
  name?: string | undefined;
194
74
  }[] | undefined;
195
75
  }>>>;
196
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
197
76
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
198
77
  } & {
78
+ name: z.ZodString;
79
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
80
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
81
+ revision: z.ZodOptional<z.ZodString>;
82
+ createdAt: z.ZodOptional<z.ZodString>;
83
+ updatedAt: z.ZodOptional<z.ZodString>;
199
84
  archivedAt: z.ZodOptional<z.ZodString>;
200
- }, "strip", z.ZodTypeAny, {
201
- key: string;
202
- name: string;
203
- archivedAt?: string | undefined;
204
- integrationId?: string | undefined;
205
- parametersSchema?: DataSchema | undefined;
206
- nodes?: Record<string, {
207
- type: string;
208
- config?: any;
209
- ui?: any;
210
- links?: {
211
- key?: string | undefined;
212
- filter?: any;
213
- name?: string | undefined;
214
- }[] | undefined;
215
- }> | undefined;
216
- autoCreateInstances?: boolean | undefined;
217
- }, {
218
- key: string;
219
- name: string;
220
- archivedAt?: string | undefined;
221
- integrationId?: string | undefined;
222
- parametersSchema?: DataSchema | undefined;
223
- nodes?: Record<string, {
224
- type: string;
225
- config?: any;
226
- ui?: any;
227
- links?: {
228
- key?: string | undefined;
229
- filter?: any;
230
- name?: string | undefined;
231
- }[] | undefined;
232
- }> | undefined;
233
- autoCreateInstances?: boolean | undefined;
234
- }>;
235
- export type UpdateFlowRequest = z.infer<typeof UpdateFlowRequest>;
236
- export interface FlowSelector extends IntegrationSpecificElementSelector {
237
- autoCreate?: boolean;
238
- }
239
- export declare const ListFlowInstancesForConnectionQuery: z.ZodObject<{
240
- flowId: z.ZodOptional<z.ZodString>;
241
- flowKey: z.ZodOptional<z.ZodString>;
242
- enabled: z.ZodOptional<z.ZodBoolean>;
243
- } & {
244
- search: z.ZodOptional<z.ZodString>;
245
- } & {
246
- limit: z.ZodOptional<z.ZodNumber>;
247
- cursor: z.ZodOptional<z.ZodString>;
248
- } & {
249
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
250
- } & {
251
- userId: z.ZodOptional<z.ZodString>;
252
- instanceKey: z.ZodOptional<z.ZodString>;
253
- }, "strip", z.ZodTypeAny, {
254
- search?: string | undefined;
255
- includeArchived?: boolean | undefined;
256
- limit?: number | undefined;
257
- cursor?: string | undefined;
258
- userId?: string | undefined;
259
- instanceKey?: string | undefined;
260
- flowId?: string | undefined;
261
- enabled?: boolean | undefined;
262
- flowKey?: string | undefined;
263
- }, {
264
- search?: string | undefined;
265
- includeArchived?: unknown;
266
- limit?: number | undefined;
267
- cursor?: string | undefined;
268
- userId?: string | undefined;
269
- instanceKey?: string | undefined;
270
- flowId?: string | undefined;
271
- enabled?: boolean | undefined;
272
- flowKey?: string | undefined;
273
- }>;
274
- export type ListFlowInstancesForConnectionQuery = z.infer<typeof ListFlowInstancesForConnectionQuery>;
275
- export declare const FindFlowInstancesQuery: z.ZodObject<{
276
- flowId: z.ZodOptional<z.ZodString>;
277
- flowKey: z.ZodOptional<z.ZodString>;
278
- enabled: z.ZodOptional<z.ZodBoolean>;
279
- } & {
280
- search: z.ZodOptional<z.ZodString>;
281
- } & {
282
- limit: z.ZodOptional<z.ZodNumber>;
283
- cursor: z.ZodOptional<z.ZodString>;
284
- } & {
285
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
286
- } & {
287
- userId: z.ZodOptional<z.ZodString>;
288
- instanceKey: z.ZodOptional<z.ZodString>;
289
- } & {
290
- connectionId: z.ZodOptional<z.ZodString>;
291
- integrationId: z.ZodOptional<z.ZodString>;
292
- integrationKey: z.ZodOptional<z.ZodString>;
293
- }, "strip", z.ZodTypeAny, {
294
- search?: string | undefined;
295
- integrationId?: string | undefined;
296
- includeArchived?: boolean | undefined;
297
- limit?: number | undefined;
298
- cursor?: string | undefined;
299
- userId?: string | undefined;
300
- instanceKey?: string | undefined;
301
- connectionId?: string | undefined;
302
- integrationKey?: string | undefined;
303
- flowId?: string | undefined;
304
- enabled?: boolean | undefined;
305
- flowKey?: string | undefined;
306
- }, {
307
- search?: string | undefined;
308
- integrationId?: string | undefined;
309
- includeArchived?: unknown;
310
- limit?: number | undefined;
311
- cursor?: string | undefined;
312
- userId?: string | undefined;
313
- instanceKey?: string | undefined;
314
- connectionId?: string | undefined;
315
- integrationKey?: string | undefined;
316
- flowId?: string | undefined;
317
- enabled?: boolean | undefined;
318
- flowKey?: string | undefined;
319
- }>;
320
- export type FindFlowInstancesQuery = z.infer<typeof FindFlowInstancesQuery>;
321
- export interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
322
- flowId?: string;
323
- flowKey?: string;
324
- instanceKey?: string;
325
- autoUpdate?: boolean;
326
- }
327
- export declare const ResetFlowInstanceOptions: z.ZodObject<{
328
- name: z.ZodOptional<z.ZodBoolean>;
329
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
330
- allNodes: z.ZodOptional<z.ZodBoolean>;
331
- }, "strip", z.ZodTypeAny, {
332
- name?: boolean | undefined;
333
- nodes?: Record<string, boolean> | undefined;
334
- allNodes?: boolean | undefined;
335
- }, {
336
- name?: boolean | undefined;
337
- nodes?: Record<string, boolean> | undefined;
338
- allNodes?: boolean | undefined;
339
- }>;
340
- export type ResetFlowInstanceOptions = z.infer<typeof ResetFlowInstanceOptions>;
341
- export declare const RunFlowOptions: z.ZodObject<{
342
- nodeKey: z.ZodOptional<z.ZodString>;
343
- input: z.ZodOptional<z.ZodAny>;
344
- returnImmediately: z.ZodOptional<z.ZodBoolean>;
345
- onUpdate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
346
- }, "strip", z.ZodTypeAny, {
347
- input?: any;
348
- nodeKey?: string | undefined;
349
- returnImmediately?: boolean | undefined;
350
- onUpdate?: ((...args: unknown[]) => unknown) | undefined;
351
- }, {
352
- input?: any;
353
- nodeKey?: string | undefined;
354
- returnImmediately?: boolean | undefined;
355
- onUpdate?: ((...args: unknown[]) => unknown) | undefined;
356
- }>;
357
- export type RunFlowOptions = z.infer<typeof RunFlowOptions>;
358
- export declare const FlowApiResponse: z.ZodObject<{
359
- id: z.ZodString;
360
- key: z.ZodOptional<z.ZodString>;
361
- uuid: z.ZodOptional<z.ZodString>;
362
- description: z.ZodOptional<z.ZodString>;
363
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
364
- integrationId: z.ZodOptional<z.ZodString>;
365
- parentId: z.ZodOptional<z.ZodString>;
366
- } & {
367
- name: z.ZodString;
368
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
369
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
370
- revision: z.ZodOptional<z.ZodString>;
371
- createdAt: z.ZodOptional<z.ZodString>;
372
- updatedAt: z.ZodOptional<z.ZodString>;
373
- archivedAt: z.ZodOptional<z.ZodString>;
374
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
375
- isCustomized: z.ZodOptional<z.ZodBoolean>;
376
- } & {
377
- universalFlowId: z.ZodOptional<z.ZodString>;
378
- universalFlowRevision: z.ZodOptional<z.ZodString>;
379
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
380
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
381
- type: z.ZodOptional<z.ZodString>;
382
- version: z.ZodOptional<z.ZodNumber>;
383
- name: z.ZodOptional<z.ZodString>;
384
- description: z.ZodOptional<z.ZodString>;
385
- config: z.ZodOptional<z.ZodAny>;
386
- concurrency: z.ZodOptional<z.ZodNumber>;
387
- onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
388
- ui: z.ZodOptional<z.ZodAny>;
389
- inputSchema: z.ZodOptional<z.ZodAny>;
390
- outputSchema: z.ZodOptional<z.ZodAny>;
391
- outputExample: z.ZodOptional<z.ZodAny>;
392
- links: z.ZodOptional<z.ZodArray<z.ZodObject<{
393
- key: z.ZodOptional<z.ZodString>;
394
- filter: z.ZodOptional<z.ZodAny>;
395
- name: z.ZodOptional<z.ZodString>;
396
- }, "strip", z.ZodTypeAny, {
397
- key?: string | undefined;
398
- filter?: any;
399
- name?: string | undefined;
400
- }, {
401
- key?: string | undefined;
402
- filter?: any;
403
- name?: string | undefined;
404
- }>, "many">>;
405
- isCustomized: z.ZodOptional<z.ZodBoolean>;
406
- }, "strip", z.ZodTypeAny, {
407
- concurrency?: number | undefined;
408
- type?: string | undefined;
409
- name?: string | undefined;
410
- description?: string | undefined;
411
- isCustomized?: boolean | undefined;
412
- inputSchema?: any;
413
- config?: any;
414
- outputSchema?: any;
415
- version?: number | undefined;
416
- onError?: "stop" | "continue" | undefined;
417
- ui?: any;
418
- outputExample?: any;
419
- links?: {
420
- key?: string | undefined;
421
- filter?: any;
422
- name?: string | undefined;
423
- }[] | undefined;
424
- }, {
425
- concurrency?: number | undefined;
426
- type?: string | undefined;
427
- name?: string | undefined;
428
- description?: string | undefined;
429
- isCustomized?: boolean | undefined;
430
- inputSchema?: any;
431
- config?: any;
432
- outputSchema?: any;
433
- version?: number | undefined;
434
- onError?: "stop" | "continue" | undefined;
435
- ui?: any;
436
- outputExample?: any;
437
- links?: {
438
- key?: string | undefined;
439
- filter?: any;
440
- name?: string | undefined;
441
- }[] | undefined;
442
- }>>>;
443
- autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
85
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
86
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
87
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
444
88
  } & {
445
89
  integration: z.ZodOptional<z.ZodObject<{
446
90
  id: z.ZodString;
@@ -785,9 +429,8 @@ export declare const FlowApiResponse: z.ZodObject<{
785
429
  archivedAt?: string | undefined;
786
430
  isDeactivated?: boolean | undefined;
787
431
  integrationId?: string | undefined;
788
- parentId?: string | undefined;
789
432
  isCustomized?: boolean | undefined;
790
- parametersSchema?: DataSchema | undefined;
433
+ parametersSchema?: import("../..").DataSchema | undefined;
791
434
  appliedToIntegrations?: {
792
435
  integration: {
793
436
  id: string;
@@ -831,7 +474,6 @@ export declare const FlowApiResponse: z.ZodObject<{
831
474
  }[] | undefined;
832
475
  dependencies?: any[] | undefined;
833
476
  universalFlowId?: string | undefined;
834
- universalFlowRevision?: string | undefined;
835
477
  nodes?: Record<string, {
836
478
  concurrency?: number | undefined;
837
479
  type?: string | undefined;
@@ -852,6 +494,7 @@ export declare const FlowApiResponse: z.ZodObject<{
852
494
  }[] | undefined;
853
495
  }> | undefined;
854
496
  autoCreateInstances?: boolean | undefined;
497
+ universalFlowRevision?: string | undefined;
855
498
  }, {
856
499
  id: string;
857
500
  name: string;
@@ -892,61 +535,355 @@ export declare const FlowApiResponse: z.ZodObject<{
892
535
  uuid?: string | undefined;
893
536
  description?: string | undefined;
894
537
  meta?: Record<string, any> | undefined;
895
- state?: import("..").WorkspaceElementState | undefined;
896
- errors?: import("../..").ErrorDataSchema[] | undefined;
897
- revision?: string | undefined;
898
- createdAt?: string | undefined;
899
- updatedAt?: string | undefined;
900
- archivedAt?: string | undefined;
901
- isDeactivated?: boolean | undefined;
538
+ state?: import("..").WorkspaceElementState | undefined;
539
+ errors?: import("../..").ErrorDataSchema[] | undefined;
540
+ revision?: string | undefined;
541
+ createdAt?: string | undefined;
542
+ updatedAt?: string | undefined;
543
+ archivedAt?: string | undefined;
544
+ isDeactivated?: boolean | undefined;
545
+ integrationId?: string | undefined;
546
+ isCustomized?: boolean | undefined;
547
+ parametersSchema?: import("../..").DataSchema | undefined;
548
+ appliedToIntegrations?: {
549
+ integration: {
550
+ id: string;
551
+ name: string;
552
+ logoUri: string;
553
+ key?: string | undefined;
554
+ uuid?: string | undefined;
555
+ description?: string | undefined;
556
+ meta?: Record<string, any> | undefined;
557
+ state?: import("..").WorkspaceElementState | undefined;
558
+ errors?: import("../..").ErrorDataSchema[] | undefined;
559
+ revision?: string | undefined;
560
+ createdAt?: string | undefined;
561
+ updatedAt?: string | undefined;
562
+ archivedAt?: string | undefined;
563
+ isDeactivated?: boolean | undefined;
564
+ parameters?: any;
565
+ connectorId?: string | undefined;
566
+ connectorVersion?: string | undefined;
567
+ oAuthCallbackUri?: string | undefined;
568
+ hasMissingParameters?: boolean | undefined;
569
+ hasDocumentation?: boolean | undefined;
570
+ hasOperations?: boolean | undefined;
571
+ operationsCount?: number | undefined;
572
+ hasData?: boolean | undefined;
573
+ dataCollectionsCount?: number | undefined;
574
+ hasEvents?: boolean | undefined;
575
+ eventsCount?: number | undefined;
576
+ hasGlobalWebhooks?: boolean | undefined;
577
+ hasUdm?: boolean | undefined;
578
+ isTest?: boolean | undefined;
579
+ appUuid?: string | undefined;
580
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
581
+ };
582
+ element: {
583
+ id: string;
584
+ integrationId?: string | undefined;
585
+ isCustomized?: boolean | undefined;
586
+ universalFlowId?: string | undefined;
587
+ };
588
+ }[] | undefined;
589
+ dependencies?: any[] | undefined;
590
+ universalFlowId?: string | undefined;
591
+ nodes?: Record<string, {
592
+ concurrency?: number | undefined;
593
+ type?: string | undefined;
594
+ name?: string | undefined;
595
+ description?: string | undefined;
596
+ isCustomized?: boolean | undefined;
597
+ inputSchema?: any;
598
+ config?: any;
599
+ outputSchema?: any;
600
+ version?: number | undefined;
601
+ onError?: "stop" | "continue" | undefined;
602
+ ui?: any;
603
+ outputExample?: any;
604
+ links?: {
605
+ key?: string | undefined;
606
+ filter?: any;
607
+ name?: string | undefined;
608
+ }[] | undefined;
609
+ }> | undefined;
610
+ autoCreateInstances?: boolean | undefined;
611
+ universalFlowRevision?: string | undefined;
612
+ }>;
613
+ export type FlowApiResponse = z.infer<typeof FlowApiResponse>;
614
+ export type Flow = FlowApiResponse;
615
+ export declare const FindFlowsQuery: z.ZodObject<{
616
+ limit: z.ZodOptional<z.ZodNumber>;
617
+ cursor: z.ZodOptional<z.ZodString>;
618
+ } & {
619
+ integrationId: z.ZodOptional<z.ZodString>;
620
+ integrationKey: z.ZodOptional<z.ZodString>;
621
+ universalFlowId: z.ZodOptional<z.ZodString>;
622
+ search: z.ZodOptional<z.ZodString>;
623
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ search?: string | undefined;
626
+ integrationId?: string | undefined;
627
+ includeArchived?: boolean | undefined;
628
+ limit?: number | undefined;
629
+ cursor?: string | undefined;
630
+ integrationKey?: string | undefined;
631
+ universalFlowId?: string | undefined;
632
+ }, {
633
+ search?: string | undefined;
634
+ integrationId?: string | undefined;
635
+ includeArchived?: unknown;
636
+ limit?: number | undefined;
637
+ cursor?: string | undefined;
638
+ integrationKey?: string | undefined;
639
+ universalFlowId?: string | undefined;
640
+ }>;
641
+ export type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
642
+ export declare const CreateFlowRequest: z.ZodObject<{
643
+ key: z.ZodOptional<z.ZodString>;
644
+ name: z.ZodOptional<z.ZodString>;
645
+ uuid: z.ZodOptional<z.ZodString>;
646
+ description: z.ZodOptional<z.ZodString>;
647
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
648
+ } & {
649
+ integrationId: z.ZodOptional<z.ZodString>;
650
+ universalFlowId: z.ZodOptional<z.ZodString>;
651
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
652
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
653
+ type: z.ZodOptional<z.ZodString>;
654
+ version: z.ZodOptional<z.ZodNumber>;
655
+ name: z.ZodOptional<z.ZodString>;
656
+ description: z.ZodOptional<z.ZodString>;
657
+ config: z.ZodOptional<z.ZodAny>;
658
+ concurrency: z.ZodOptional<z.ZodNumber>;
659
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
660
+ ui: z.ZodOptional<z.ZodAny>;
661
+ inputSchema: z.ZodOptional<z.ZodAny>;
662
+ outputSchema: z.ZodOptional<z.ZodAny>;
663
+ outputExample: z.ZodOptional<z.ZodAny>;
664
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
665
+ key: z.ZodOptional<z.ZodString>;
666
+ filter: z.ZodOptional<z.ZodAny>;
667
+ name: z.ZodOptional<z.ZodString>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ key?: string | undefined;
670
+ filter?: any;
671
+ name?: string | undefined;
672
+ }, {
673
+ key?: string | undefined;
674
+ filter?: any;
675
+ name?: string | undefined;
676
+ }>, "many">>;
677
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
678
+ }, "strip", z.ZodTypeAny, {
679
+ concurrency?: number | undefined;
680
+ type?: string | undefined;
681
+ name?: string | undefined;
682
+ description?: string | undefined;
683
+ isCustomized?: boolean | undefined;
684
+ inputSchema?: any;
685
+ config?: any;
686
+ outputSchema?: any;
687
+ version?: number | undefined;
688
+ onError?: "stop" | "continue" | undefined;
689
+ ui?: any;
690
+ outputExample?: any;
691
+ links?: {
692
+ key?: string | undefined;
693
+ filter?: any;
694
+ name?: string | undefined;
695
+ }[] | undefined;
696
+ }, {
697
+ concurrency?: number | undefined;
698
+ type?: string | undefined;
699
+ name?: string | undefined;
700
+ description?: string | undefined;
701
+ isCustomized?: boolean | undefined;
702
+ inputSchema?: any;
703
+ config?: any;
704
+ outputSchema?: any;
705
+ version?: number | undefined;
706
+ onError?: "stop" | "continue" | undefined;
707
+ ui?: any;
708
+ outputExample?: any;
709
+ links?: {
710
+ key?: string | undefined;
711
+ filter?: any;
712
+ name?: string | undefined;
713
+ }[] | undefined;
714
+ }>>>;
715
+ autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ key?: string | undefined;
718
+ name?: string | undefined;
719
+ uuid?: string | undefined;
720
+ description?: string | undefined;
721
+ meta?: Record<string, any> | undefined;
722
+ integrationId?: string | undefined;
723
+ parametersSchema?: import("../..").DataSchema | undefined;
724
+ universalFlowId?: string | undefined;
725
+ nodes?: Record<string, {
726
+ concurrency?: number | undefined;
727
+ type?: string | undefined;
728
+ name?: string | undefined;
729
+ description?: string | undefined;
730
+ isCustomized?: boolean | undefined;
731
+ inputSchema?: any;
732
+ config?: any;
733
+ outputSchema?: any;
734
+ version?: number | undefined;
735
+ onError?: "stop" | "continue" | undefined;
736
+ ui?: any;
737
+ outputExample?: any;
738
+ links?: {
739
+ key?: string | undefined;
740
+ filter?: any;
741
+ name?: string | undefined;
742
+ }[] | undefined;
743
+ }> | undefined;
744
+ autoCreateInstances?: boolean | undefined;
745
+ }, {
746
+ key?: string | undefined;
747
+ name?: string | undefined;
748
+ uuid?: string | undefined;
749
+ description?: string | undefined;
750
+ meta?: Record<string, any> | undefined;
751
+ integrationId?: string | undefined;
752
+ parametersSchema?: import("../..").DataSchema | undefined;
753
+ universalFlowId?: string | undefined;
754
+ nodes?: Record<string, {
755
+ concurrency?: number | undefined;
756
+ type?: string | undefined;
757
+ name?: string | undefined;
758
+ description?: string | undefined;
759
+ isCustomized?: boolean | undefined;
760
+ inputSchema?: any;
761
+ config?: any;
762
+ outputSchema?: any;
763
+ version?: number | undefined;
764
+ onError?: "stop" | "continue" | undefined;
765
+ ui?: any;
766
+ outputExample?: any;
767
+ links?: {
768
+ key?: string | undefined;
769
+ filter?: any;
770
+ name?: string | undefined;
771
+ }[] | undefined;
772
+ }> | undefined;
773
+ autoCreateInstances?: boolean | undefined;
774
+ }>;
775
+ export type CreateFlowRequest = z.infer<typeof CreateFlowRequest>;
776
+ export declare const UpdateFlowRequest: z.ZodObject<{
777
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
778
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
779
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
780
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
781
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
782
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
783
+ universalFlowId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
784
+ parametersSchema: z.ZodOptional<z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>>;
785
+ nodes: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
786
+ type: z.ZodOptional<z.ZodString>;
787
+ version: z.ZodOptional<z.ZodNumber>;
788
+ name: z.ZodOptional<z.ZodString>;
789
+ description: z.ZodOptional<z.ZodString>;
790
+ config: z.ZodOptional<z.ZodAny>;
791
+ concurrency: z.ZodOptional<z.ZodNumber>;
792
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
793
+ ui: z.ZodOptional<z.ZodAny>;
794
+ inputSchema: z.ZodOptional<z.ZodAny>;
795
+ outputSchema: z.ZodOptional<z.ZodAny>;
796
+ outputExample: z.ZodOptional<z.ZodAny>;
797
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
798
+ key: z.ZodOptional<z.ZodString>;
799
+ filter: z.ZodOptional<z.ZodAny>;
800
+ name: z.ZodOptional<z.ZodString>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ key?: string | undefined;
803
+ filter?: any;
804
+ name?: string | undefined;
805
+ }, {
806
+ key?: string | undefined;
807
+ filter?: any;
808
+ name?: string | undefined;
809
+ }>, "many">>;
810
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ concurrency?: number | undefined;
813
+ type?: string | undefined;
814
+ name?: string | undefined;
815
+ description?: string | undefined;
816
+ isCustomized?: boolean | undefined;
817
+ inputSchema?: any;
818
+ config?: any;
819
+ outputSchema?: any;
820
+ version?: number | undefined;
821
+ onError?: "stop" | "continue" | undefined;
822
+ ui?: any;
823
+ outputExample?: any;
824
+ links?: {
825
+ key?: string | undefined;
826
+ filter?: any;
827
+ name?: string | undefined;
828
+ }[] | undefined;
829
+ }, {
830
+ concurrency?: number | undefined;
831
+ type?: string | undefined;
832
+ name?: string | undefined;
833
+ description?: string | undefined;
834
+ isCustomized?: boolean | undefined;
835
+ inputSchema?: any;
836
+ config?: any;
837
+ outputSchema?: any;
838
+ version?: number | undefined;
839
+ onError?: "stop" | "continue" | undefined;
840
+ ui?: any;
841
+ outputExample?: any;
842
+ links?: {
843
+ key?: string | undefined;
844
+ filter?: any;
845
+ name?: string | undefined;
846
+ }[] | undefined;
847
+ }>>>>;
848
+ autoCreateInstances: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ key?: string | undefined;
851
+ name?: string | undefined;
852
+ uuid?: string | undefined;
853
+ description?: string | undefined;
854
+ meta?: Record<string, any> | undefined;
855
+ integrationId?: string | undefined;
856
+ parametersSchema?: import("../..").DataSchema | undefined;
857
+ universalFlowId?: string | undefined;
858
+ nodes?: Record<string, {
859
+ concurrency?: number | undefined;
860
+ type?: string | undefined;
861
+ name?: string | undefined;
862
+ description?: string | undefined;
863
+ isCustomized?: boolean | undefined;
864
+ inputSchema?: any;
865
+ config?: any;
866
+ outputSchema?: any;
867
+ version?: number | undefined;
868
+ onError?: "stop" | "continue" | undefined;
869
+ ui?: any;
870
+ outputExample?: any;
871
+ links?: {
872
+ key?: string | undefined;
873
+ filter?: any;
874
+ name?: string | undefined;
875
+ }[] | undefined;
876
+ }> | undefined;
877
+ autoCreateInstances?: boolean | undefined;
878
+ }, {
879
+ key?: string | undefined;
880
+ name?: string | undefined;
881
+ uuid?: string | undefined;
882
+ description?: string | undefined;
883
+ meta?: Record<string, any> | undefined;
902
884
  integrationId?: string | undefined;
903
- parentId?: string | undefined;
904
- isCustomized?: boolean | undefined;
905
- parametersSchema?: DataSchema | undefined;
906
- appliedToIntegrations?: {
907
- integration: {
908
- id: string;
909
- name: string;
910
- logoUri: string;
911
- key?: string | undefined;
912
- uuid?: string | undefined;
913
- description?: string | undefined;
914
- meta?: Record<string, any> | undefined;
915
- state?: import("..").WorkspaceElementState | undefined;
916
- errors?: import("../..").ErrorDataSchema[] | undefined;
917
- revision?: string | undefined;
918
- createdAt?: string | undefined;
919
- updatedAt?: string | undefined;
920
- archivedAt?: string | undefined;
921
- isDeactivated?: boolean | undefined;
922
- parameters?: any;
923
- connectorId?: string | undefined;
924
- connectorVersion?: string | undefined;
925
- oAuthCallbackUri?: string | undefined;
926
- hasMissingParameters?: boolean | undefined;
927
- hasDocumentation?: boolean | undefined;
928
- hasOperations?: boolean | undefined;
929
- operationsCount?: number | undefined;
930
- hasData?: boolean | undefined;
931
- dataCollectionsCount?: number | undefined;
932
- hasEvents?: boolean | undefined;
933
- eventsCount?: number | undefined;
934
- hasGlobalWebhooks?: boolean | undefined;
935
- hasUdm?: boolean | undefined;
936
- isTest?: boolean | undefined;
937
- appUuid?: string | undefined;
938
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
939
- };
940
- element: {
941
- id: string;
942
- integrationId?: string | undefined;
943
- isCustomized?: boolean | undefined;
944
- universalFlowId?: string | undefined;
945
- };
946
- }[] | undefined;
947
- dependencies?: any[] | undefined;
885
+ parametersSchema?: import("../..").DataSchema | undefined;
948
886
  universalFlowId?: string | undefined;
949
- universalFlowRevision?: string | undefined;
950
887
  nodes?: Record<string, {
951
888
  concurrency?: number | undefined;
952
889
  type?: string | undefined;
@@ -968,8 +905,129 @@ export declare const FlowApiResponse: z.ZodObject<{
968
905
  }> | undefined;
969
906
  autoCreateInstances?: boolean | undefined;
970
907
  }>;
971
- export type FlowApiResponse = z.infer<typeof FlowApiResponse>;
972
- export type Flow = FlowApiResponse;
908
+ export type UpdateFlowRequest = z.infer<typeof UpdateFlowRequest>;
909
+ export interface FlowSelector extends IntegrationSpecificElementSelector {
910
+ autoCreate?: boolean;
911
+ }
912
+ export declare const ListFlowInstancesForConnectionQuery: z.ZodObject<{
913
+ flowId: z.ZodOptional<z.ZodString>;
914
+ flowKey: z.ZodOptional<z.ZodString>;
915
+ enabled: z.ZodOptional<z.ZodBoolean>;
916
+ } & {
917
+ search: z.ZodOptional<z.ZodString>;
918
+ } & {
919
+ limit: z.ZodOptional<z.ZodNumber>;
920
+ cursor: z.ZodOptional<z.ZodString>;
921
+ } & {
922
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
923
+ } & {
924
+ userId: z.ZodOptional<z.ZodString>;
925
+ instanceKey: z.ZodOptional<z.ZodString>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ search?: string | undefined;
928
+ includeArchived?: boolean | undefined;
929
+ limit?: number | undefined;
930
+ cursor?: string | undefined;
931
+ userId?: string | undefined;
932
+ instanceKey?: string | undefined;
933
+ flowId?: string | undefined;
934
+ enabled?: boolean | undefined;
935
+ flowKey?: string | undefined;
936
+ }, {
937
+ search?: string | undefined;
938
+ includeArchived?: unknown;
939
+ limit?: number | undefined;
940
+ cursor?: string | undefined;
941
+ userId?: string | undefined;
942
+ instanceKey?: string | undefined;
943
+ flowId?: string | undefined;
944
+ enabled?: boolean | undefined;
945
+ flowKey?: string | undefined;
946
+ }>;
947
+ export type ListFlowInstancesForConnectionQuery = z.infer<typeof ListFlowInstancesForConnectionQuery>;
948
+ export declare const FindFlowInstancesQuery: z.ZodObject<{
949
+ flowId: z.ZodOptional<z.ZodString>;
950
+ flowKey: z.ZodOptional<z.ZodString>;
951
+ enabled: z.ZodOptional<z.ZodBoolean>;
952
+ } & {
953
+ search: z.ZodOptional<z.ZodString>;
954
+ } & {
955
+ limit: z.ZodOptional<z.ZodNumber>;
956
+ cursor: z.ZodOptional<z.ZodString>;
957
+ } & {
958
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
959
+ } & {
960
+ userId: z.ZodOptional<z.ZodString>;
961
+ instanceKey: z.ZodOptional<z.ZodString>;
962
+ } & {
963
+ connectionId: z.ZodOptional<z.ZodString>;
964
+ integrationId: z.ZodOptional<z.ZodString>;
965
+ integrationKey: z.ZodOptional<z.ZodString>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ search?: string | undefined;
968
+ integrationId?: string | undefined;
969
+ includeArchived?: boolean | undefined;
970
+ limit?: number | undefined;
971
+ cursor?: string | undefined;
972
+ userId?: string | undefined;
973
+ instanceKey?: string | undefined;
974
+ connectionId?: string | undefined;
975
+ integrationKey?: string | undefined;
976
+ flowId?: string | undefined;
977
+ enabled?: boolean | undefined;
978
+ flowKey?: string | undefined;
979
+ }, {
980
+ search?: string | undefined;
981
+ integrationId?: string | undefined;
982
+ includeArchived?: unknown;
983
+ limit?: number | undefined;
984
+ cursor?: string | undefined;
985
+ userId?: string | undefined;
986
+ instanceKey?: string | undefined;
987
+ connectionId?: string | undefined;
988
+ integrationKey?: string | undefined;
989
+ flowId?: string | undefined;
990
+ enabled?: boolean | undefined;
991
+ flowKey?: string | undefined;
992
+ }>;
993
+ export type FindFlowInstancesQuery = z.infer<typeof FindFlowInstancesQuery>;
994
+ export interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
995
+ flowId?: string;
996
+ flowKey?: string;
997
+ instanceKey?: string;
998
+ autoUpdate?: boolean;
999
+ }
1000
+ export declare const ResetFlowInstanceOptions: z.ZodObject<{
1001
+ name: z.ZodOptional<z.ZodBoolean>;
1002
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1003
+ allNodes: z.ZodOptional<z.ZodBoolean>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ name?: boolean | undefined;
1006
+ nodes?: Record<string, boolean> | undefined;
1007
+ allNodes?: boolean | undefined;
1008
+ }, {
1009
+ name?: boolean | undefined;
1010
+ nodes?: Record<string, boolean> | undefined;
1011
+ allNodes?: boolean | undefined;
1012
+ }>;
1013
+ export type ResetFlowInstanceOptions = z.infer<typeof ResetFlowInstanceOptions>;
1014
+ export declare const RunFlowOptions: z.ZodObject<{
1015
+ nodeKey: z.ZodOptional<z.ZodString>;
1016
+ input: z.ZodOptional<z.ZodAny>;
1017
+ returnImmediately: z.ZodOptional<z.ZodBoolean>;
1018
+ onUpdate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ input?: any;
1021
+ nodeKey?: string | undefined;
1022
+ returnImmediately?: boolean | undefined;
1023
+ onUpdate?: ((...args: unknown[]) => unknown) | undefined;
1024
+ }, {
1025
+ input?: any;
1026
+ nodeKey?: string | undefined;
1027
+ returnImmediately?: boolean | undefined;
1028
+ onUpdate?: ((...args: unknown[]) => unknown) | undefined;
1029
+ }>;
1030
+ export type RunFlowOptions = z.infer<typeof RunFlowOptions>;
973
1031
  export declare const FlowInstanceApiResponse: z.ZodObject<{
974
1032
  id: z.ZodString;
975
1033
  key: z.ZodOptional<z.ZodString>;
@@ -989,7 +1047,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
989
1047
  integrationId: z.ZodString;
990
1048
  instanceKey: z.ZodOptional<z.ZodString>;
991
1049
  parameters: z.ZodOptional<z.ZodAny>;
992
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
1050
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
993
1051
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
994
1052
  enabled: z.ZodBoolean;
995
1053
  createdAt: z.ZodString;
@@ -1076,21 +1134,8 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1076
1134
  description: z.ZodOptional<z.ZodString>;
1077
1135
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1078
1136
  integrationId: z.ZodOptional<z.ZodString>;
1079
- parentId: z.ZodOptional<z.ZodString>;
1080
- } & {
1081
- name: z.ZodString;
1082
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
1083
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
1084
- revision: z.ZodOptional<z.ZodString>;
1085
- createdAt: z.ZodOptional<z.ZodString>;
1086
- updatedAt: z.ZodOptional<z.ZodString>;
1087
- archivedAt: z.ZodOptional<z.ZodString>;
1088
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
1089
- isCustomized: z.ZodOptional<z.ZodBoolean>;
1090
- } & {
1091
1137
  universalFlowId: z.ZodOptional<z.ZodString>;
1092
- universalFlowRevision: z.ZodOptional<z.ZodString>;
1093
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
1138
+ parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
1094
1139
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1095
1140
  type: z.ZodOptional<z.ZodString>;
1096
1141
  version: z.ZodOptional<z.ZodNumber>;
@@ -1155,6 +1200,17 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1155
1200
  }[] | undefined;
1156
1201
  }>>>;
1157
1202
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
1203
+ } & {
1204
+ name: z.ZodString;
1205
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
1206
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
1207
+ revision: z.ZodOptional<z.ZodString>;
1208
+ createdAt: z.ZodOptional<z.ZodString>;
1209
+ updatedAt: z.ZodOptional<z.ZodString>;
1210
+ archivedAt: z.ZodOptional<z.ZodString>;
1211
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
1212
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
1213
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
1158
1214
  } & {
1159
1215
  integration: z.ZodOptional<z.ZodObject<{
1160
1216
  id: z.ZodString;
@@ -1499,9 +1555,8 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1499
1555
  archivedAt?: string | undefined;
1500
1556
  isDeactivated?: boolean | undefined;
1501
1557
  integrationId?: string | undefined;
1502
- parentId?: string | undefined;
1503
1558
  isCustomized?: boolean | undefined;
1504
- parametersSchema?: DataSchema | undefined;
1559
+ parametersSchema?: import("../..").DataSchema | undefined;
1505
1560
  appliedToIntegrations?: {
1506
1561
  integration: {
1507
1562
  id: string;
@@ -1545,7 +1600,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1545
1600
  }[] | undefined;
1546
1601
  dependencies?: any[] | undefined;
1547
1602
  universalFlowId?: string | undefined;
1548
- universalFlowRevision?: string | undefined;
1549
1603
  nodes?: Record<string, {
1550
1604
  concurrency?: number | undefined;
1551
1605
  type?: string | undefined;
@@ -1566,6 +1620,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1566
1620
  }[] | undefined;
1567
1621
  }> | undefined;
1568
1622
  autoCreateInstances?: boolean | undefined;
1623
+ universalFlowRevision?: string | undefined;
1569
1624
  }, {
1570
1625
  id: string;
1571
1626
  name: string;
@@ -1614,9 +1669,8 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1614
1669
  archivedAt?: string | undefined;
1615
1670
  isDeactivated?: boolean | undefined;
1616
1671
  integrationId?: string | undefined;
1617
- parentId?: string | undefined;
1618
1672
  isCustomized?: boolean | undefined;
1619
- parametersSchema?: DataSchema | undefined;
1673
+ parametersSchema?: import("../..").DataSchema | undefined;
1620
1674
  appliedToIntegrations?: {
1621
1675
  integration: {
1622
1676
  id: string;
@@ -1660,7 +1714,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1660
1714
  }[] | undefined;
1661
1715
  dependencies?: any[] | undefined;
1662
1716
  universalFlowId?: string | undefined;
1663
- universalFlowRevision?: string | undefined;
1664
1717
  nodes?: Record<string, {
1665
1718
  concurrency?: number | undefined;
1666
1719
  type?: string | undefined;
@@ -1681,6 +1734,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1681
1734
  }[] | undefined;
1682
1735
  }> | undefined;
1683
1736
  autoCreateInstances?: boolean | undefined;
1737
+ universalFlowRevision?: string | undefined;
1684
1738
  }>>>;
1685
1739
  integration: z.ZodOptional<z.ZodLazy<z.ZodType<{
1686
1740
  id: string;
@@ -1856,9 +1910,8 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1856
1910
  archivedAt?: string | undefined;
1857
1911
  isDeactivated?: boolean | undefined;
1858
1912
  integrationId?: string | undefined;
1859
- parentId?: string | undefined;
1860
1913
  isCustomized?: boolean | undefined;
1861
- parametersSchema?: DataSchema | undefined;
1914
+ parametersSchema?: import("../..").DataSchema | undefined;
1862
1915
  appliedToIntegrations?: {
1863
1916
  integration: {
1864
1917
  id: string;
@@ -1902,7 +1955,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1902
1955
  }[] | undefined;
1903
1956
  dependencies?: any[] | undefined;
1904
1957
  universalFlowId?: string | undefined;
1905
- universalFlowRevision?: string | undefined;
1906
1958
  nodes?: Record<string, {
1907
1959
  concurrency?: number | undefined;
1908
1960
  type?: string | undefined;
@@ -1923,6 +1975,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1923
1975
  }[] | undefined;
1924
1976
  }> | undefined;
1925
1977
  autoCreateInstances?: boolean | undefined;
1978
+ universalFlowRevision?: string | undefined;
1926
1979
  } | undefined;
1927
1980
  uuid?: string | undefined;
1928
1981
  description?: string | undefined;
@@ -1935,7 +1988,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
1935
1988
  instanceKey?: string | undefined;
1936
1989
  connectionId?: string | undefined;
1937
1990
  parameters?: any;
1938
- parametersSchema?: DataSchema | undefined;
1991
+ parametersSchema?: import("../..").DataSchema | undefined;
1939
1992
  user?: {
1940
1993
  id: string;
1941
1994
  name: string;
@@ -2066,9 +2119,8 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2066
2119
  archivedAt?: string | undefined;
2067
2120
  isDeactivated?: boolean | undefined;
2068
2121
  integrationId?: string | undefined;
2069
- parentId?: string | undefined;
2070
2122
  isCustomized?: boolean | undefined;
2071
- parametersSchema?: DataSchema | undefined;
2123
+ parametersSchema?: import("../..").DataSchema | undefined;
2072
2124
  appliedToIntegrations?: {
2073
2125
  integration: {
2074
2126
  id: string;
@@ -2112,7 +2164,6 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2112
2164
  }[] | undefined;
2113
2165
  dependencies?: any[] | undefined;
2114
2166
  universalFlowId?: string | undefined;
2115
- universalFlowRevision?: string | undefined;
2116
2167
  nodes?: Record<string, {
2117
2168
  concurrency?: number | undefined;
2118
2169
  type?: string | undefined;
@@ -2133,6 +2184,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2133
2184
  }[] | undefined;
2134
2185
  }> | undefined;
2135
2186
  autoCreateInstances?: boolean | undefined;
2187
+ universalFlowRevision?: string | undefined;
2136
2188
  } | undefined;
2137
2189
  uuid?: string | undefined;
2138
2190
  description?: string | undefined;
@@ -2145,7 +2197,7 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2145
2197
  instanceKey?: string | undefined;
2146
2198
  connectionId?: string | undefined;
2147
2199
  parameters?: any;
2148
- parametersSchema?: DataSchema | undefined;
2200
+ parametersSchema?: import("../..").DataSchema | undefined;
2149
2201
  user?: {
2150
2202
  id: string;
2151
2203
  name: string;
@@ -2170,3 +2222,37 @@ export declare const FlowInstanceApiResponse: z.ZodObject<{
2170
2222
  }>;
2171
2223
  export type FlowInstanceApiResponse = z.infer<typeof FlowInstanceApiResponse>;
2172
2224
  export type FlowInstance = FlowInstanceApiResponse;
2225
+ export type ListFlowsForIntegrationQuery = Omit<FindFlowsQuery, 'integrationId' | 'integrationKey'>;
2226
+ export declare const CreateFlowNodeRequest: z.ZodObject<{
2227
+ type: z.ZodString;
2228
+ config: z.ZodOptional<z.ZodAny>;
2229
+ ui: z.ZodOptional<z.ZodAny>;
2230
+ links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
2231
+ key?: string | undefined;
2232
+ filter?: any;
2233
+ name?: string | undefined;
2234
+ }, z.ZodTypeDef, {
2235
+ key?: string | undefined;
2236
+ filter?: any;
2237
+ name?: string | undefined;
2238
+ }>>, "many">>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ type: string;
2241
+ config?: any;
2242
+ ui?: any;
2243
+ links?: {
2244
+ key?: string | undefined;
2245
+ filter?: any;
2246
+ name?: string | undefined;
2247
+ }[] | undefined;
2248
+ }, {
2249
+ type: string;
2250
+ config?: any;
2251
+ ui?: any;
2252
+ links?: {
2253
+ key?: string | undefined;
2254
+ filter?: any;
2255
+ name?: string | undefined;
2256
+ }[] | undefined;
2257
+ }>;
2258
+ export type CreateFlowNodeRequest = z.infer<typeof CreateFlowNodeRequest>;