@membranehq/sdk 0.7.3 → 0.7.5

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 (88) hide show
  1. package/dist/bundle.d.ts +2283 -14038
  2. package/dist/bundle.js +3949 -4253
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +28 -28
  5. package/dist/dts/accessors/integrations-accessors.d.ts +28 -28
  6. package/dist/dts/config/index.d.ts +1 -11
  7. package/dist/dts/date-time/business-day.d.ts +2 -0
  8. package/dist/dts/date-time/business-day.test.d.ts +1 -0
  9. package/dist/dts/date-time/index.d.ts +1 -0
  10. package/dist/dts/entity-repository.d.ts +13 -64
  11. package/dist/dts/http-requests.d.ts +2 -14
  12. package/dist/dts/iframe.d.ts +4 -12
  13. package/dist/dts/scenario-templates/index.d.ts +60 -484
  14. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +17 -248
  15. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +23 -339
  16. package/dist/dts/workspace-elements/api/actions-api.d.ts +52 -639
  17. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +8 -169
  18. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +19 -51
  19. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +15 -325
  20. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -248
  21. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +28 -90
  22. package/dist/dts/workspace-elements/api/connections-api.d.ts +56 -892
  23. package/dist/dts/workspace-elements/api/customers-api.d.ts +8 -68
  24. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +21 -369
  25. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +17 -45
  26. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +86 -1359
  27. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +164 -880
  28. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +29 -502
  29. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +29 -506
  30. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -381
  31. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -425
  32. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +125 -2363
  33. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +109 -666
  34. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +66 -1229
  35. package/dist/dts/workspace-elements/api/flows-api.d.ts +273 -1874
  36. package/dist/dts/workspace-elements/api/integrations-api.d.ts +45 -287
  37. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +27 -450
  38. package/dist/dts/workspace-elements/api/screens-api.d.ts +11 -31
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +6 -60
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +3 -28
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +10 -82
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +4 -47
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -36
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +6 -75
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +6 -69
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -56
  47. package/dist/dts/workspace-elements/base/connectors/types.d.ts +1 -11
  48. package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -25
  49. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +141 -1471
  50. package/dist/dts/workspace-elements/base/data-collections/types.d.ts +1 -29
  51. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +6 -61
  52. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -32
  53. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +60 -973
  54. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +57 -2
  55. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -26
  56. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -30
  57. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +9 -161
  58. package/dist/dts/workspace-elements/base/external-events/types.d.ts +7 -121
  59. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +10 -77
  60. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +71 -1
  61. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +16 -194
  62. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -132
  63. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +29 -284
  64. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +13 -93
  65. package/dist/dts/workspace-elements/base/flows/index.d.ts +80 -1
  66. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +30 -1
  67. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  68. package/dist/dts/workspace-elements/base/integrations/types.d.ts +23 -539
  69. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +11 -119
  70. package/dist/dts/workspace-elements/base/screens/types.d.ts +6 -31
  71. package/dist/dts/workspace-elements/types.d.ts +15 -153
  72. package/dist/index.browser.d.mts +7609 -26109
  73. package/dist/index.browser.d.ts +7609 -26109
  74. package/dist/index.browser.js +420 -419
  75. package/dist/index.browser.js.map +1 -1
  76. package/dist/index.browser.mjs +412 -415
  77. package/dist/index.browser.mjs.map +1 -1
  78. package/dist/index.node.d.mts +7537 -26047
  79. package/dist/index.node.d.ts +7537 -26047
  80. package/dist/index.node.js +420 -419
  81. package/dist/index.node.js.map +1 -1
  82. package/dist/index.node.mjs +412 -415
  83. package/dist/index.node.mjs.map +1 -1
  84. package/package.json +2 -2
  85. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  86. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
  87. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
  88. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
@@ -14,27 +14,13 @@ export declare const UpstreamFlowNodeRunSchema: z.ZodObject<{
14
14
  nodeKey: z.ZodString;
15
15
  runId: z.ZodString;
16
16
  outputId: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- nodeKey: string;
19
- runId: string;
20
- outputId: string;
21
- }, {
22
- nodeKey: string;
23
- runId: string;
24
- outputId: string;
25
- }>;
17
+ }, z.core.$strip>;
26
18
  export interface UpstreamFlowNodeRun extends z.infer<typeof UpstreamFlowNodeRunSchema> {
27
19
  }
28
20
  export declare const DownstreamFlowNodeRunSchema: z.ZodObject<{
29
21
  runId: z.ZodString;
30
22
  nodeKey: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- nodeKey: string;
33
- runId: string;
34
- }, {
35
- nodeKey: string;
36
- runId: string;
37
- }>;
23
+ }, z.core.$strip>;
38
24
  export interface DownstreamFlowNodeRun extends z.infer<typeof DownstreamFlowNodeRunSchema> {
39
25
  }
40
26
  export declare const FlowNodeRunParametersSchema: z.ZodObject<{
@@ -43,33 +29,9 @@ export declare const FlowNodeRunParametersSchema: z.ZodObject<{
43
29
  nodeKey: z.ZodString;
44
30
  runId: z.ZodString;
45
31
  outputId: z.ZodString;
46
- }, "strip", z.ZodTypeAny, {
47
- nodeKey: string;
48
- runId: string;
49
- outputId: string;
50
- }, {
51
- nodeKey: string;
52
- runId: string;
53
- outputId: string;
54
- }>, "many">;
32
+ }, z.core.$strip>>;
55
33
  input: z.ZodAny;
56
- }, "strip", z.ZodTypeAny, {
57
- id: string;
58
- upstreamRuns: {
59
- nodeKey: string;
60
- runId: string;
61
- outputId: string;
62
- }[];
63
- input?: any;
64
- }, {
65
- id: string;
66
- upstreamRuns: {
67
- nodeKey: string;
68
- runId: string;
69
- outputId: string;
70
- }[];
71
- input?: any;
72
- }>;
34
+ }, z.core.$strip>;
73
35
  export interface FlowNodeRunParameters extends z.infer<typeof FlowNodeRunParametersSchema> {
74
36
  }
75
37
  export declare const FlowNodeRunOutputSchema: z.ZodObject<{
@@ -78,87 +40,23 @@ export declare const FlowNodeRunOutputSchema: z.ZodObject<{
78
40
  downstreamRuns: z.ZodArray<z.ZodObject<{
79
41
  runId: z.ZodString;
80
42
  nodeKey: z.ZodString;
81
- }, "strip", z.ZodTypeAny, {
82
- nodeKey: string;
83
- runId: string;
84
- }, {
85
- nodeKey: string;
86
- runId: string;
87
- }>, "many">;
88
- }, "strip", z.ZodTypeAny, {
89
- data: string;
90
- id: string;
91
- downstreamRuns: {
92
- nodeKey: string;
93
- runId: string;
94
- }[];
95
- }, {
96
- data: string;
97
- id: string;
98
- downstreamRuns: {
99
- nodeKey: string;
100
- runId: string;
101
- }[];
102
- }>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
103
45
  export interface FlowNodeRunOutput extends z.infer<typeof FlowNodeRunOutputSchema> {
104
46
  }
105
47
  export declare const FlowNodeRunResultSchema: z.ZodObject<{
106
- status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
107
- logs: z.ZodArray<z.ZodAny, "many">;
48
+ status: z.ZodEnum<typeof FlowNodeRunStatus>;
49
+ logs: z.ZodArray<z.ZodAny>;
108
50
  outputs: z.ZodArray<z.ZodObject<{
109
51
  id: z.ZodString;
110
52
  data: z.ZodString;
111
53
  downstreamRuns: z.ZodArray<z.ZodObject<{
112
54
  runId: z.ZodString;
113
55
  nodeKey: z.ZodString;
114
- }, "strip", z.ZodTypeAny, {
115
- nodeKey: string;
116
- runId: string;
117
- }, {
118
- nodeKey: string;
119
- runId: string;
120
- }>, "many">;
121
- }, "strip", z.ZodTypeAny, {
122
- data: string;
123
- id: string;
124
- downstreamRuns: {
125
- nodeKey: string;
126
- runId: string;
127
- }[];
128
- }, {
129
- data: string;
130
- id: string;
131
- downstreamRuns: {
132
- nodeKey: string;
133
- runId: string;
134
- }[];
135
- }>, "many">;
136
- errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
137
- }, "strip", z.ZodTypeAny, {
138
- status: FlowNodeRunStatus;
139
- logs: any[];
140
- errors: ErrorDataSchema[];
141
- outputs: {
142
- data: string;
143
- id: string;
144
- downstreamRuns: {
145
- nodeKey: string;
146
- runId: string;
147
- }[];
148
- }[];
149
- }, {
150
- status: FlowNodeRunStatus;
151
- logs: any[];
152
- errors: ErrorDataSchema[];
153
- outputs: {
154
- data: string;
155
- id: string;
156
- downstreamRuns: {
157
- nodeKey: string;
158
- runId: string;
159
- }[];
160
- }[];
161
- }>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>>;
58
+ errors: z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
59
+ }, z.core.$strip>;
162
60
  export interface FlowNodeRunResult extends z.infer<typeof FlowNodeRunResultSchema> {
163
61
  }
164
62
  export declare const FlowNodeRunRecordSchema: z.ZodObject<{
@@ -167,99 +65,26 @@ export declare const FlowNodeRunRecordSchema: z.ZodObject<{
167
65
  nodeKey: z.ZodString;
168
66
  runId: z.ZodString;
169
67
  outputId: z.ZodString;
170
- }, "strip", z.ZodTypeAny, {
171
- nodeKey: string;
172
- runId: string;
173
- outputId: string;
174
- }, {
175
- nodeKey: string;
176
- runId: string;
177
- outputId: string;
178
- }>, "many">;
68
+ }, z.core.$strip>>;
179
69
  input: z.ZodAny;
180
- } & {
181
- status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
182
- logs: z.ZodArray<z.ZodAny, "many">;
70
+ status: z.ZodEnum<typeof FlowNodeRunStatus>;
71
+ logs: z.ZodArray<z.ZodAny>;
183
72
  outputs: z.ZodArray<z.ZodObject<{
184
73
  id: z.ZodString;
185
74
  data: z.ZodString;
186
75
  downstreamRuns: z.ZodArray<z.ZodObject<{
187
76
  runId: z.ZodString;
188
77
  nodeKey: z.ZodString;
189
- }, "strip", z.ZodTypeAny, {
190
- nodeKey: string;
191
- runId: string;
192
- }, {
193
- nodeKey: string;
194
- runId: string;
195
- }>, "many">;
196
- }, "strip", z.ZodTypeAny, {
197
- data: string;
198
- id: string;
199
- downstreamRuns: {
200
- nodeKey: string;
201
- runId: string;
202
- }[];
203
- }, {
204
- data: string;
205
- id: string;
206
- downstreamRuns: {
207
- nodeKey: string;
208
- runId: string;
209
- }[];
210
- }>, "many">;
211
- errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
212
- }, "strip", z.ZodTypeAny, {
213
- status: FlowNodeRunStatus;
214
- logs: any[];
215
- id: string;
216
- errors: ErrorDataSchema[];
217
- outputs: {
218
- data: string;
219
- id: string;
220
- downstreamRuns: {
221
- nodeKey: string;
222
- runId: string;
223
- }[];
224
- }[];
225
- upstreamRuns: {
226
- nodeKey: string;
227
- runId: string;
228
- outputId: string;
229
- }[];
230
- input?: any;
231
- }, {
232
- status: FlowNodeRunStatus;
233
- logs: any[];
234
- id: string;
235
- errors: ErrorDataSchema[];
236
- outputs: {
237
- data: string;
238
- id: string;
239
- downstreamRuns: {
240
- nodeKey: string;
241
- runId: string;
242
- }[];
243
- }[];
244
- upstreamRuns: {
245
- nodeKey: string;
246
- runId: string;
247
- outputId: string;
248
- }[];
249
- input?: any;
250
- }>;
78
+ }, z.core.$strip>>;
79
+ }, z.core.$strip>>;
80
+ errors: z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
81
+ }, z.core.$strip>;
251
82
  export interface FlowNodeRunRecord extends z.infer<typeof FlowNodeRunRecordSchema> {
252
83
  }
253
84
  export declare const FlowNodeRunOutputWithoutDownstreamRunsSchema: z.ZodObject<{
254
85
  id: z.ZodString;
255
86
  data: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- data: string;
258
- id: string;
259
- }, {
260
- data: string;
261
- id: string;
262
- }>;
87
+ }, z.core.$strip>;
263
88
  export interface FlowNodeRunOutputWithoutDownstreamRuns extends z.infer<typeof FlowNodeRunOutputWithoutDownstreamRunsSchema> {
264
89
  }
265
90
  export declare const FlowNodeRunOutputMetadataSchema: z.ZodObject<{
@@ -267,26 +92,8 @@ export declare const FlowNodeRunOutputMetadataSchema: z.ZodObject<{
267
92
  downstreamRuns: z.ZodArray<z.ZodObject<{
268
93
  runId: z.ZodString;
269
94
  nodeKey: z.ZodString;
270
- }, "strip", z.ZodTypeAny, {
271
- nodeKey: string;
272
- runId: string;
273
- }, {
274
- nodeKey: string;
275
- runId: string;
276
- }>, "many">;
277
- }, "strip", z.ZodTypeAny, {
278
- id: string;
279
- downstreamRuns: {
280
- nodeKey: string;
281
- runId: string;
282
- }[];
283
- }, {
284
- id: string;
285
- downstreamRuns: {
286
- nodeKey: string;
287
- runId: string;
288
- }[];
289
- }>;
95
+ }, z.core.$strip>>;
96
+ }, z.core.$strip>;
290
97
  export interface FlowNodeRunOutputMetadata extends z.infer<typeof FlowNodeRunOutputMetadataSchema> {
291
98
  }
292
99
  export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
@@ -295,80 +102,18 @@ export declare const FlowNodeRunRecordWithoutOutputsDataSchema: z.ZodObject<{
295
102
  nodeKey: z.ZodString;
296
103
  runId: z.ZodString;
297
104
  outputId: z.ZodString;
298
- }, "strip", z.ZodTypeAny, {
299
- nodeKey: string;
300
- runId: string;
301
- outputId: string;
302
- }, {
303
- nodeKey: string;
304
- runId: string;
305
- outputId: string;
306
- }>, "many">;
105
+ }, z.core.$strip>>;
307
106
  input: z.ZodAny;
308
- status: z.ZodNativeEnum<typeof FlowNodeRunStatus>;
309
- logs: z.ZodArray<z.ZodAny, "many">;
107
+ status: z.ZodEnum<typeof FlowNodeRunStatus>;
108
+ logs: z.ZodArray<z.ZodAny>;
310
109
  outputs: z.ZodArray<z.ZodObject<{
311
110
  id: z.ZodString;
312
111
  downstreamRuns: z.ZodArray<z.ZodObject<{
313
112
  runId: z.ZodString;
314
113
  nodeKey: z.ZodString;
315
- }, "strip", z.ZodTypeAny, {
316
- nodeKey: string;
317
- runId: string;
318
- }, {
319
- nodeKey: string;
320
- runId: string;
321
- }>, "many">;
322
- }, "strip", z.ZodTypeAny, {
323
- id: string;
324
- downstreamRuns: {
325
- nodeKey: string;
326
- runId: string;
327
- }[];
328
- }, {
329
- id: string;
330
- downstreamRuns: {
331
- nodeKey: string;
332
- runId: string;
333
- }[];
334
- }>, "many">;
335
- errors: z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">;
336
- }, "strip", z.ZodTypeAny, {
337
- status: FlowNodeRunStatus;
338
- logs: any[];
339
- id: string;
340
- errors: ErrorDataSchema[];
341
- outputs: {
342
- id: string;
343
- downstreamRuns: {
344
- nodeKey: string;
345
- runId: string;
346
- }[];
347
- }[];
348
- upstreamRuns: {
349
- nodeKey: string;
350
- runId: string;
351
- outputId: string;
352
- }[];
353
- input?: any;
354
- }, {
355
- status: FlowNodeRunStatus;
356
- logs: any[];
357
- id: string;
358
- errors: ErrorDataSchema[];
359
- outputs: {
360
- id: string;
361
- downstreamRuns: {
362
- nodeKey: string;
363
- runId: string;
364
- }[];
365
- }[];
366
- upstreamRuns: {
367
- nodeKey: string;
368
- runId: string;
369
- outputId: string;
370
- }[];
371
- input?: any;
372
- }>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>>;
116
+ errors: z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
117
+ }, z.core.$strip>;
373
118
  export interface FlowNodeRunRecordWithoutOutputsData extends z.infer<typeof FlowNodeRunRecordWithoutOutputsDataSchema> {
374
119
  }
@@ -21,32 +21,16 @@ export declare enum FlowRunLaunchedByTrigger {
21
21
  ExternalEvent = "external-event"
22
22
  }
23
23
  export declare const FlowRunLaunchedBy: z.ZodObject<{
24
- type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
25
- ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
- }, "strip", z.ZodTypeAny, {
27
- type: FlowRunLaunchedByTrigger;
28
- ids?: string[] | undefined;
29
- }, {
30
- type: FlowRunLaunchedByTrigger;
31
- ids?: string[] | undefined;
32
- }>;
24
+ type: z.ZodEnum<typeof FlowRunLaunchedByTrigger>;
25
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
+ }, z.core.$strip>;
33
27
  export type FlowRunLaunchedBy = z.infer<typeof FlowRunLaunchedBy>;
34
28
  export declare const FlowRunNode: z.ZodObject<{
35
- state: z.ZodNativeEnum<typeof FlowRunNodeState>;
29
+ state: z.ZodEnum<typeof FlowRunNodeState>;
36
30
  runs: z.ZodOptional<z.ZodNumber>;
37
31
  erroredRuns: z.ZodOptional<z.ZodNumber>;
38
32
  outputs: z.ZodOptional<z.ZodNumber>;
39
- }, "strip", z.ZodTypeAny, {
40
- state: FlowRunNodeState;
41
- runs?: number | undefined;
42
- erroredRuns?: number | undefined;
43
- outputs?: number | undefined;
44
- }, {
45
- state: FlowRunNodeState;
46
- runs?: number | undefined;
47
- erroredRuns?: number | undefined;
48
- outputs?: number | undefined;
49
- }>;
33
+ }, z.core.$strip>;
50
34
  export type FlowRunNode = z.infer<typeof FlowRunNode>;
51
35
  export declare const BaseFlowRun: z.ZodObject<{
52
36
  id: z.ZodString;
@@ -58,83 +42,19 @@ export declare const BaseFlowRun: z.ZodObject<{
58
42
  startNodeKey: z.ZodString;
59
43
  userId: z.ZodString;
60
44
  input: z.ZodOptional<z.ZodAny>;
61
- state: z.ZodNativeEnum<typeof FlowRunState>;
45
+ state: z.ZodEnum<typeof FlowRunState>;
62
46
  startTime: z.ZodString;
63
47
  endTime: z.ZodOptional<z.ZodString>;
64
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
48
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
65
49
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
66
- state: z.ZodNativeEnum<typeof FlowRunNodeState>;
50
+ state: z.ZodEnum<typeof FlowRunNodeState>;
67
51
  runs: z.ZodOptional<z.ZodNumber>;
68
52
  erroredRuns: z.ZodOptional<z.ZodNumber>;
69
53
  outputs: z.ZodOptional<z.ZodNumber>;
70
- }, "strip", z.ZodTypeAny, {
71
- state: FlowRunNodeState;
72
- runs?: number | undefined;
73
- erroredRuns?: number | undefined;
74
- outputs?: number | undefined;
75
- }, {
76
- state: FlowRunNodeState;
77
- runs?: number | undefined;
78
- erroredRuns?: number | undefined;
79
- outputs?: number | undefined;
80
- }>>>;
54
+ }, z.core.$strip>>>;
81
55
  launchedBy: z.ZodOptional<z.ZodObject<{
82
- type: z.ZodNativeEnum<typeof FlowRunLaunchedByTrigger>;
83
- ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
- }, "strip", z.ZodTypeAny, {
85
- type: FlowRunLaunchedByTrigger;
86
- ids?: string[] | undefined;
87
- }, {
88
- type: FlowRunLaunchedByTrigger;
89
- ids?: string[] | undefined;
90
- }>>;
91
- }, "strip", z.ZodTypeAny, {
92
- id: string;
93
- state: FlowRunState;
94
- userId: string;
95
- startTime: string;
96
- flowInstanceId: string;
97
- startNodeKey: string;
98
- name?: string | undefined;
99
- errors?: ErrorDataSchema[] | undefined;
100
- integrationId?: string | undefined;
101
- connectionId?: string | undefined;
102
- input?: any;
103
- endTime?: string | undefined;
104
- universalFlowId?: string | undefined;
105
- nodes?: Record<string, {
106
- state: FlowRunNodeState;
107
- runs?: number | undefined;
108
- erroredRuns?: number | undefined;
109
- outputs?: number | undefined;
110
- }> | undefined;
111
- launchedBy?: {
112
- type: FlowRunLaunchedByTrigger;
113
- ids?: string[] | undefined;
114
- } | undefined;
115
- }, {
116
- id: string;
117
- state: FlowRunState;
118
- userId: string;
119
- startTime: string;
120
- flowInstanceId: string;
121
- startNodeKey: string;
122
- name?: string | undefined;
123
- errors?: ErrorDataSchema[] | undefined;
124
- integrationId?: string | undefined;
125
- connectionId?: string | undefined;
126
- input?: any;
127
- endTime?: string | undefined;
128
- universalFlowId?: string | undefined;
129
- nodes?: Record<string, {
130
- state: FlowRunNodeState;
131
- runs?: number | undefined;
132
- erroredRuns?: number | undefined;
133
- outputs?: number | undefined;
134
- }> | undefined;
135
- launchedBy?: {
136
- type: FlowRunLaunchedByTrigger;
137
- ids?: string[] | undefined;
138
- } | undefined;
139
- }>;
56
+ type: z.ZodEnum<typeof FlowRunLaunchedByTrigger>;
57
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
140
60
  export type BaseFlowRun = z.infer<typeof BaseFlowRun>;
@@ -1,2 +1,81 @@
1
+ import { z } from 'zod';
2
+ import { DataSchema } from '../../../data-schema';
1
3
  export * from './nodes';
2
- export * from './types';
4
+ export declare const FlowEditableProperties: z.ZodObject<{
5
+ key: z.ZodOptional<z.ZodString>;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ uuid: z.ZodOptional<z.ZodString>;
9
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
+ integrationId: z.ZodOptional<z.ZodString>;
11
+ universalFlowId: z.ZodOptional<z.ZodString>;
12
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
13
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14
+ type: z.ZodOptional<z.ZodString>;
15
+ version: z.ZodOptional<z.ZodNumber>;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ config: z.ZodOptional<z.ZodAny>;
19
+ concurrency: z.ZodOptional<z.ZodNumber>;
20
+ onError: z.ZodOptional<z.ZodEnum<{
21
+ continue: "continue";
22
+ stop: "stop";
23
+ }>>;
24
+ ui: z.ZodOptional<z.ZodAny>;
25
+ inputSchema: z.ZodOptional<z.ZodAny>;
26
+ outputSchema: z.ZodOptional<z.ZodAny>;
27
+ outputExample: z.ZodOptional<z.ZodAny>;
28
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ key: z.ZodOptional<z.ZodString>;
30
+ filter: z.ZodOptional<z.ZodAny>;
31
+ name: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>>>;
33
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
34
+ }, z.core.$strip>>>;
35
+ autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
36
+ }, z.core.$strip>;
37
+ export type FlowEditableProperties = z.infer<typeof FlowEditableProperties>;
38
+ export declare const BaseFlow: z.ZodObject<{
39
+ id: z.ZodString;
40
+ key: z.ZodOptional<z.ZodString>;
41
+ description: z.ZodOptional<z.ZodString>;
42
+ uuid: z.ZodOptional<z.ZodString>;
43
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
44
+ integrationId: z.ZodOptional<z.ZodString>;
45
+ universalFlowId: z.ZodOptional<z.ZodString>;
46
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
47
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
48
+ type: z.ZodOptional<z.ZodString>;
49
+ version: z.ZodOptional<z.ZodNumber>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ description: z.ZodOptional<z.ZodString>;
52
+ config: z.ZodOptional<z.ZodAny>;
53
+ concurrency: z.ZodOptional<z.ZodNumber>;
54
+ onError: z.ZodOptional<z.ZodEnum<{
55
+ continue: "continue";
56
+ stop: "stop";
57
+ }>>;
58
+ ui: z.ZodOptional<z.ZodAny>;
59
+ inputSchema: z.ZodOptional<z.ZodAny>;
60
+ outputSchema: z.ZodOptional<z.ZodAny>;
61
+ outputExample: z.ZodOptional<z.ZodAny>;
62
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ key: z.ZodOptional<z.ZodString>;
64
+ filter: z.ZodOptional<z.ZodAny>;
65
+ name: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>>>;
67
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
68
+ }, z.core.$strip>>>;
69
+ autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
70
+ name: z.ZodString;
71
+ state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
72
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../..").ErrorDataSchema, unknown>>>>;
73
+ revision: z.ZodOptional<z.ZodString>;
74
+ createdAt: z.ZodOptional<z.ZodString>;
75
+ updatedAt: z.ZodOptional<z.ZodString>;
76
+ archivedAt: z.ZodOptional<z.ZodString>;
77
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
78
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
79
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>;
81
+ export type BaseFlow = z.infer<typeof BaseFlow>;
@@ -1,5 +1,34 @@
1
+ import { z } from 'zod';
1
2
  import { FieldMappingDirection } from '../../field-mappings';
2
- import { FlowNode } from '../types';
3
+ export declare const FlowNodeLink: z.ZodObject<{
4
+ key: z.ZodOptional<z.ZodString>;
5
+ filter: z.ZodOptional<z.ZodAny>;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type FlowNodeLink = z.infer<typeof FlowNodeLink>;
9
+ export declare const FlowNode: z.ZodObject<{
10
+ type: z.ZodOptional<z.ZodString>;
11
+ version: z.ZodOptional<z.ZodNumber>;
12
+ name: z.ZodOptional<z.ZodString>;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ config: z.ZodOptional<z.ZodAny>;
15
+ concurrency: z.ZodOptional<z.ZodNumber>;
16
+ onError: z.ZodOptional<z.ZodEnum<{
17
+ continue: "continue";
18
+ stop: "stop";
19
+ }>>;
20
+ ui: z.ZodOptional<z.ZodAny>;
21
+ inputSchema: z.ZodOptional<z.ZodAny>;
22
+ outputSchema: z.ZodOptional<z.ZodAny>;
23
+ outputExample: z.ZodOptional<z.ZodAny>;
24
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ key: z.ZodOptional<z.ZodString>;
26
+ filter: z.ZodOptional<z.ZodAny>;
27
+ name: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>>>;
29
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
30
+ }, z.core.$strip>;
31
+ export type FlowNode = z.infer<typeof FlowNode>;
3
32
  export interface FlowNodeSpec {
4
33
  name: string;
5
34
  description: string;
@@ -1,5 +1,5 @@
1
1
  import { FlowNodeSpec } from './base';
2
- export { FlowNodeSpec } from './base';
2
+ export { FlowNodeSpec, FlowNode, FlowNodeLink } from './base';
3
3
  export declare enum FlowNodeType {
4
4
  ApiTrigger = "api-trigger",
5
5
  ScheduleTrigger = "schedule-trigger",