@requence/task 1.0.0-alpha.21 → 1.0.0-alpha.23

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 (71) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/{chunk-xdx5gf9h.js → chunk-y4v98p2s.js} +20 -5
  3. package/build/{chunk-xdx5gf9h.js.map → chunk-y4v98p2s.js.map} +2 -2
  4. package/build/cli.js +643 -137
  5. package/build/cli.js.map +27 -16
  6. package/build/index.js +194 -236
  7. package/build/index.js.map +12 -13
  8. package/build/types/helpers/src/files/fileObject.d.ts +2 -12
  9. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -1
  10. package/build/types/helpers/src/files/mapOutput.d.ts +1 -1
  11. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -1
  12. package/build/types/helpers/src/files/streamObject.d.ts +2 -10
  13. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -1
  14. package/build/types/helpers/src/index.d.ts +1 -0
  15. package/build/types/helpers/src/index.d.ts.map +1 -1
  16. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -0
  17. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  18. package/build/types/helpers/src/jsonschema/zod.d.ts +4 -12
  19. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  20. package/build/types/helpers/src/protocol/NodeTree.d.ts +504 -0
  21. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  22. package/build/types/helpers/src/protocol/NodesError.d.ts +5 -0
  23. package/build/types/helpers/src/protocol/NodesError.d.ts.map +1 -0
  24. package/build/types/helpers/src/protocol/command.d.ts +373 -1954
  25. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/index.d.ts +5 -7
  27. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  28. package/build/types/helpers/src/protocol/nodeOptions.d.ts +16 -0
  29. package/build/types/helpers/src/protocol/nodeOptions.d.ts.map +1 -0
  30. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  31. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  32. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  33. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/treeNodes.d.ts +606 -0
  35. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/update.d.ts +182 -17892
  37. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  38. package/build/types/helpers/src/utils/mapData.d.ts +4 -0
  39. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  40. package/build/types/helpers/src/utils/matchSchema.d.ts +1 -1
  41. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
  42. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +2 -0
  43. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  44. package/build/types/helpers/src/utils/types.d.ts +4 -0
  45. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  46. package/build/types/task/src/createTask.d.ts.map +1 -1
  47. package/build/types/task/src/types.d.ts +126 -5115
  48. package/build/types/task/src/types.d.ts.map +1 -1
  49. package/build/types/task/src/watchTasks.d.ts +3 -1
  50. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  51. package/package.json +2 -2
  52. package/build/types/helpers/src/context/context.d.ts +0 -156
  53. package/build/types/helpers/src/context/context.d.ts.map +0 -1
  54. package/build/types/helpers/src/context/index.d.ts +0 -2
  55. package/build/types/helpers/src/context/index.d.ts.map +0 -1
  56. package/build/types/helpers/src/protocol/createNodeMaps.d.ts +0 -10
  57. package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +0 -1
  58. package/build/types/helpers/src/protocol/getCycles.d.ts +0 -3
  59. package/build/types/helpers/src/protocol/getCycles.d.ts.map +0 -1
  60. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +0 -4
  61. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +0 -1
  62. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +0 -9
  63. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +0 -1
  64. package/build/types/helpers/src/protocol/identifyNode.d.ts +0 -4
  65. package/build/types/helpers/src/protocol/identifyNode.d.ts.map +0 -1
  66. package/build/types/helpers/src/protocol/node.d.ts +0 -1014
  67. package/build/types/helpers/src/protocol/node.d.ts.map +0 -1
  68. package/build/types/helpers/src/protocol/nodes.d.ts +0 -801
  69. package/build/types/helpers/src/protocol/nodes.d.ts.map +0 -1
  70. package/build/types/task/src/utils/mapOutput.d.ts +0 -2
  71. package/build/types/task/src/utils/mapOutput.d.ts.map +0 -1
@@ -1,1995 +1,414 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  export declare const abortSchema: z.ZodObject<{
3
3
  type: z.ZodLiteral<"ABORT">;
4
4
  reason: z.ZodOptional<z.ZodString>;
5
- }, "strip", z.ZodTypeAny, {
6
- type: "ABORT";
7
- reason?: string | undefined;
8
- }, {
9
- type: "ABORT";
10
- reason?: string | undefined;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export type Abort = z.infer<typeof abortSchema>;
13
- export declare const nodeOptionsSchema: z.ZodObject<{
14
- maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15
- compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<["mcp-tool"]>>>;
16
- exitEarly: z.ZodDefault<z.ZodBoolean>;
17
- uploadUrl: z.ZodOptional<z.ZodString>;
18
- streamUrl: z.ZodOptional<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- maxExecutions: number;
21
- compliance: "mcp-tool" | null;
22
- exitEarly: boolean;
23
- uploadUrl?: string | undefined;
24
- streamUrl?: string | undefined;
25
- }, {
26
- maxExecutions?: number | undefined;
27
- compliance?: "mcp-tool" | null | undefined;
28
- exitEarly?: boolean | undefined;
29
- uploadUrl?: string | undefined;
30
- streamUrl?: string | undefined;
31
- }>;
32
- export type NodeOptions = z.infer<typeof nodeOptionsSchema>;
33
- export type NodeOptionsInput = z.input<typeof nodeOptionsSchema>;
34
- export declare const createNodesSchema: z.ZodObject<{
35
- type: z.ZodLiteral<"CREATE_NODES">;
36
- nodes: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
37
- type: z.ZodLiteral<"entry">;
38
- id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
39
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
40
- default: z.ZodDefault<z.ZodLiteral<true>>;
41
- exit: z.ZodLiteral<true>;
42
- }, "strip", z.ZodTypeAny, {
43
- default: true;
44
- exit: true;
45
- }, {
46
- exit: true;
47
- default?: true | undefined;
48
- }>, z.ZodObject<{
49
- default: z.ZodDefault<z.ZodLiteral<true>>;
50
- exit: z.ZodDefault<z.ZodLiteral<false>>;
51
- target: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- default: true;
54
- exit: false;
55
- target: string;
56
- }, {
57
- target: string;
58
- default?: true | undefined;
59
- exit?: false | undefined;
60
- }>]>, import("./node.ts").Output, string | {
61
- exit: true;
62
- default?: true | undefined;
63
- } | {
64
- target: string;
65
- default?: true | undefined;
66
- exit?: false | undefined;
67
- }>, "many">>, import("./node.ts").Output[], (string | {
68
- exit: true;
69
- default?: true | undefined;
70
- } | {
71
- target: string;
72
- default?: true | undefined;
73
- exit?: false | undefined;
74
- })[] | undefined>;
75
- inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
76
- metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
77
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
78
- }, "strip", z.ZodTypeAny, {
79
- type: "entry";
80
- id: "__entry__";
81
- output: import("./node.ts").Output[];
82
- inputSchema: import("json-schema").JSONSchema7;
83
- metaSchema: import("json-schema").JSONSchema7;
84
- meta?: Record<string, any> | undefined;
85
- }, {
86
- type: "entry";
87
- id?: "__entry__" | undefined;
88
- output?: (string | {
89
- exit: true;
90
- default?: true | undefined;
91
- } | {
92
- target: string;
93
- default?: true | undefined;
94
- exit?: false | undefined;
95
- })[] | undefined;
96
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
97
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
98
- meta?: Record<string, any> | undefined;
99
- }>, z.ZodObject<{
100
- type: z.ZodLiteral<"service">;
101
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
102
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
103
- }, "strip", z.ZodTypeAny, {
104
- schema?: import("json-schema").JSONSchema7 | null | undefined;
105
- }, {
106
- schema?: import("json-schema").JSONSchema7 | null | undefined;
107
- }>, z.ZodUnion<[z.ZodObject<{
108
- default: z.ZodDefault<z.ZodLiteral<false>>;
109
- name: z.ZodString;
110
- }, "strip", z.ZodTypeAny, {
111
- default: false;
112
- name: string;
113
- }, {
114
- name: string;
115
- default?: false | undefined;
116
- }>, z.ZodObject<{
117
- default: z.ZodDefault<z.ZodLiteral<true>>;
118
- }, "strip", z.ZodTypeAny, {
119
- default: true;
120
- }, {
121
- default?: true | undefined;
122
- }>]>>, z.ZodUnion<[z.ZodObject<{
123
- exit: z.ZodDefault<z.ZodLiteral<false>>;
124
- target: z.ZodString;
125
- }, "strip", z.ZodTypeAny, {
126
- exit: false;
127
- target: string;
128
- }, {
129
- target: string;
130
- exit?: false | undefined;
131
- }>, z.ZodObject<{
132
- exit: z.ZodLiteral<true>;
133
- }, "strip", z.ZodTypeAny, {
134
- exit: true;
135
- }, {
136
- exit: true;
137
- }>]>>]>, import("./node.ts").Output, string | (({
138
- schema?: import("json-schema").JSONSchema7 | null | undefined;
139
- } & ({
140
- name: string;
141
- default?: false | undefined;
142
- } | {
143
- default?: true | undefined;
144
- })) & ({
145
- target: string;
146
- exit?: false | undefined;
147
- } | {
148
- exit: true;
149
- }))>, "many">>, import("./node.ts").Output[], (string | (({
150
- schema?: import("json-schema").JSONSchema7 | null | undefined;
151
- } & ({
152
- name: string;
153
- default?: false | undefined;
154
- } | {
155
- default?: true | undefined;
156
- })) & ({
157
- target: string;
158
- exit?: false | undefined;
159
- } | {
160
- exit: true;
161
- })))[] | undefined>;
162
- inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
163
- type: z.ZodLiteral<"object">;
164
- }, "strip", z.ZodTypeAny, {
165
- type: "object";
166
- }, {
167
- type: "object";
168
- }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
169
- type: z.ZodLiteral<"null">;
170
- }, "strip", z.ZodTypeAny, {
171
- type: "null";
172
- }, {
173
- type: "null";
174
- }>]>>;
175
- id: z.ZodDefault<z.ZodString>;
176
- name: z.ZodString;
177
- version: z.ZodString;
178
- configuration: z.ZodOptional<z.ZodAny>;
179
- configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
180
- alias: z.ZodOptional<z.ZodString>;
181
- ttl: z.ZodOptional<z.ZodNumber>;
182
- retry: z.ZodOptional<z.ZodNumber>;
183
- retryDelay: z.ZodOptional<z.ZodNumber>;
184
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
185
- }, "strip", z.ZodTypeAny, {
186
- type: "service";
187
- id: string;
188
- name: string;
189
- output: import("./node.ts").Output[];
190
- inputSchema: ({
191
- type: "object";
192
- } & import("json-schema").JSONSchema7) | {
193
- type: "null";
194
- };
195
- version: string;
196
- configurationSchema: import("json-schema").JSONSchema7;
197
- meta?: Record<string, any> | undefined;
198
- configuration?: any;
199
- alias?: string | undefined;
200
- ttl?: number | undefined;
201
- retry?: number | undefined;
202
- retryDelay?: number | undefined;
203
- }, {
204
- type: "service";
205
- name: string;
206
- version: string;
207
- id?: string | undefined;
208
- output?: (string | (({
209
- schema?: import("json-schema").JSONSchema7 | null | undefined;
210
- } & ({
211
- name: string;
212
- default?: false | undefined;
213
- } | {
214
- default?: true | undefined;
215
- })) & ({
216
- target: string;
217
- exit?: false | undefined;
218
- } | {
219
- exit: true;
220
- })))[] | undefined;
221
- inputSchema?: ({
222
- type: "object";
223
- } & import("json-schema").JSONSchema7) | {
224
- type: "null";
225
- } | undefined;
226
- meta?: Record<string, any> | undefined;
227
- configuration?: any;
228
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
229
- alias?: string | undefined;
230
- ttl?: number | undefined;
231
- retry?: number | undefined;
232
- retryDelay?: number | undefined;
233
- }>, z.ZodObject<{
234
- type: z.ZodLiteral<"catch">;
235
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
236
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
237
- }, "strip", z.ZodTypeAny, {
238
- schema?: import("json-schema").JSONSchema7 | null | undefined;
239
- }, {
240
- schema?: import("json-schema").JSONSchema7 | null | undefined;
241
- }>, z.ZodUnion<[z.ZodObject<{
242
- default: z.ZodDefault<z.ZodLiteral<false>>;
243
- name: z.ZodString;
244
- }, "strip", z.ZodTypeAny, {
245
- default: false;
246
- name: string;
247
- }, {
248
- name: string;
249
- default?: false | undefined;
250
- }>, z.ZodObject<{
251
- default: z.ZodDefault<z.ZodLiteral<true>>;
252
- }, "strip", z.ZodTypeAny, {
253
- default: true;
254
- }, {
255
- default?: true | undefined;
256
- }>]>>, z.ZodUnion<[z.ZodObject<{
257
- exit: z.ZodDefault<z.ZodLiteral<false>>;
258
- target: z.ZodString;
259
- }, "strip", z.ZodTypeAny, {
260
- exit: false;
261
- target: string;
262
- }, {
263
- target: string;
264
- exit?: false | undefined;
265
- }>, z.ZodObject<{
266
- exit: z.ZodLiteral<true>;
267
- }, "strip", z.ZodTypeAny, {
268
- exit: true;
269
- }, {
270
- exit: true;
271
- }>]>>]>, import("./node.ts").Output, string | (({
272
- schema?: import("json-schema").JSONSchema7 | null | undefined;
273
- } & ({
274
- name: string;
275
- default?: false | undefined;
276
- } | {
277
- default?: true | undefined;
278
- })) & ({
279
- target: string;
280
- exit?: false | undefined;
281
- } | {
282
- exit: true;
283
- }))>, "many">>, import("./node.ts").Output[], (string | (({
284
- schema?: import("json-schema").JSONSchema7 | null | undefined;
285
- } & ({
286
- name: string;
287
- default?: false | undefined;
288
- } | {
289
- default?: true | undefined;
290
- })) & ({
291
- target: string;
292
- exit?: false | undefined;
293
- } | {
294
- exit: true;
295
- })))[] | undefined>;
296
- id: z.ZodDefault<z.ZodString>;
297
- subject: z.ZodString;
298
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
299
- }, "strip", z.ZodTypeAny, {
300
- type: "catch";
301
- id: string;
302
- output: import("./node.ts").Output[];
303
- subject: string;
304
- meta?: Record<string, any> | undefined;
305
- }, {
306
- type: "catch";
307
- subject: string;
308
- id?: string | undefined;
309
- output?: (string | (({
310
- schema?: import("json-schema").JSONSchema7 | null | undefined;
311
- } & ({
312
- name: string;
313
- default?: false | undefined;
314
- } | {
315
- default?: true | undefined;
316
- })) & ({
317
- target: string;
318
- exit?: false | undefined;
319
- } | {
320
- exit: true;
321
- })))[] | undefined;
322
- meta?: Record<string, any> | undefined;
323
- }>, z.ZodObject<{
324
- type: z.ZodLiteral<"logic">;
325
- alias: z.ZodOptional<z.ZodString>;
326
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
327
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
328
- }, "strip", z.ZodTypeAny, {
329
- schema?: import("json-schema").JSONSchema7 | null | undefined;
330
- }, {
331
- schema?: import("json-schema").JSONSchema7 | null | undefined;
332
- }>, z.ZodUnion<[z.ZodObject<{
333
- default: z.ZodDefault<z.ZodLiteral<false>>;
334
- name: z.ZodString;
335
- }, "strip", z.ZodTypeAny, {
336
- default: false;
337
- name: string;
338
- }, {
339
- name: string;
340
- default?: false | undefined;
341
- }>, z.ZodObject<{
342
- default: z.ZodDefault<z.ZodLiteral<true>>;
343
- }, "strip", z.ZodTypeAny, {
344
- default: true;
345
- }, {
346
- default?: true | undefined;
347
- }>]>>, z.ZodUnion<[z.ZodObject<{
348
- exit: z.ZodDefault<z.ZodLiteral<false>>;
349
- target: z.ZodString;
350
- }, "strip", z.ZodTypeAny, {
351
- exit: false;
352
- target: string;
353
- }, {
354
- target: string;
355
- exit?: false | undefined;
356
- }>, z.ZodObject<{
357
- exit: z.ZodLiteral<true>;
358
- }, "strip", z.ZodTypeAny, {
359
- exit: true;
360
- }, {
361
- exit: true;
362
- }>]>>]>, import("./node.ts").Output, string | (({
363
- schema?: import("json-schema").JSONSchema7 | null | undefined;
364
- } & ({
365
- name: string;
366
- default?: false | undefined;
367
- } | {
368
- default?: true | undefined;
369
- })) & ({
370
- target: string;
371
- exit?: false | undefined;
372
- } | {
373
- exit: true;
374
- }))>, "many">>, import("./node.ts").Output[], (string | (({
375
- schema?: import("json-schema").JSONSchema7 | null | undefined;
376
- } & ({
377
- name: string;
378
- default?: false | undefined;
379
- } | {
380
- default?: true | undefined;
381
- })) & ({
382
- target: string;
383
- exit?: false | undefined;
384
- } | {
385
- exit: true;
386
- })))[] | undefined>;
387
- id: z.ZodDefault<z.ZodString>;
388
- script: z.ZodString;
389
- concurrency: z.ZodDefault<z.ZodBoolean>;
390
- language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
391
- maxExecutionTime: z.ZodDefault<z.ZodNumber>;
392
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
393
- }, "strip", z.ZodTypeAny, {
394
- type: "logic";
395
- id: string;
396
- output: import("./node.ts").Output[];
397
- script: string;
398
- concurrency: boolean;
399
- language: "javascript" | "python" | "typescript";
400
- maxExecutionTime: number;
401
- meta?: Record<string, any> | undefined;
402
- alias?: string | undefined;
403
- }, {
404
- type: "logic";
405
- script: string;
406
- id?: string | undefined;
407
- output?: (string | (({
408
- schema?: import("json-schema").JSONSchema7 | null | undefined;
409
- } & ({
410
- name: string;
411
- default?: false | undefined;
412
- } | {
413
- default?: true | undefined;
414
- })) & ({
415
- target: string;
416
- exit?: false | undefined;
417
- } | {
418
- exit: true;
419
- })))[] | undefined;
420
- meta?: Record<string, any> | undefined;
421
- alias?: string | undefined;
422
- concurrency?: boolean | undefined;
423
- language?: "javascript" | "python" | "typescript" | undefined;
424
- maxExecutionTime?: number | undefined;
425
- }>, z.ZodObject<{
426
- id: z.ZodDefault<z.ZodString>;
427
- type: z.ZodLiteral<"or">;
428
- alias: z.ZodOptional<z.ZodString>;
429
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
430
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
431
- }, "strip", z.ZodTypeAny, {
432
- schema?: import("json-schema").JSONSchema7 | null | undefined;
433
- }, {
434
- schema?: import("json-schema").JSONSchema7 | null | undefined;
435
- }>, z.ZodUnion<[z.ZodObject<{
436
- default: z.ZodDefault<z.ZodLiteral<false>>;
437
- name: z.ZodString;
438
- }, "strip", z.ZodTypeAny, {
439
- default: false;
440
- name: string;
441
- }, {
442
- name: string;
443
- default?: false | undefined;
444
- }>, z.ZodObject<{
445
- default: z.ZodDefault<z.ZodLiteral<true>>;
446
- }, "strip", z.ZodTypeAny, {
447
- default: true;
448
- }, {
449
- default?: true | undefined;
450
- }>]>>, z.ZodUnion<[z.ZodObject<{
451
- exit: z.ZodDefault<z.ZodLiteral<false>>;
452
- target: z.ZodString;
453
- }, "strip", z.ZodTypeAny, {
454
- exit: false;
455
- target: string;
456
- }, {
457
- target: string;
458
- exit?: false | undefined;
459
- }>, z.ZodObject<{
460
- exit: z.ZodLiteral<true>;
461
- }, "strip", z.ZodTypeAny, {
462
- exit: true;
463
- }, {
464
- exit: true;
465
- }>]>>]>, import("./node.ts").Output, string | (({
466
- schema?: import("json-schema").JSONSchema7 | null | undefined;
467
- } & ({
468
- name: string;
469
- default?: false | undefined;
470
- } | {
471
- default?: true | undefined;
472
- })) & ({
473
- target: string;
474
- exit?: false | undefined;
475
- } | {
476
- exit: true;
477
- }))>, "many">>, import("./node.ts").Output[], (string | (({
478
- schema?: import("json-schema").JSONSchema7 | null | undefined;
479
- } & ({
480
- name: string;
481
- default?: false | undefined;
482
- } | {
483
- default?: true | undefined;
484
- })) & ({
485
- target: string;
486
- exit?: false | undefined;
487
- } | {
488
- exit: true;
489
- })))[] | undefined>;
490
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
491
- }, "strip", z.ZodTypeAny, {
492
- type: "or";
493
- id: string;
494
- output: import("./node.ts").Output[];
495
- meta?: Record<string, any> | undefined;
496
- alias?: string | undefined;
497
- }, {
498
- type: "or";
499
- id?: string | undefined;
500
- output?: (string | (({
501
- schema?: import("json-schema").JSONSchema7 | null | undefined;
502
- } & ({
503
- name: string;
504
- default?: false | undefined;
505
- } | {
506
- default?: true | undefined;
507
- })) & ({
508
- target: string;
509
- exit?: false | undefined;
510
- } | {
511
- exit: true;
512
- })))[] | undefined;
513
- meta?: Record<string, any> | undefined;
514
- alias?: string | undefined;
515
- }>]>, "many">, ({
516
- type: "entry";
517
- id: "__entry__";
518
- output: import("./node.ts").Output[];
519
- inputSchema: import("json-schema").JSONSchema7;
520
- metaSchema: import("json-schema").JSONSchema7;
521
- meta?: Record<string, any> | undefined;
522
- } | {
523
- type: "service";
524
- id: string;
525
- name: string;
526
- output: import("./node.ts").Output[];
527
- inputSchema: ({
528
- type: "object";
529
- } & import("json-schema").JSONSchema7) | {
530
- type: "null";
531
- };
532
- version: string;
533
- configurationSchema: import("json-schema").JSONSchema7;
534
- meta?: Record<string, any> | undefined;
535
- configuration?: any;
536
- alias?: string | undefined;
537
- ttl?: number | undefined;
538
- retry?: number | undefined;
539
- retryDelay?: number | undefined;
540
- } | {
541
- type: "catch";
542
- id: string;
543
- output: import("./node.ts").Output[];
544
- subject: string;
545
- meta?: Record<string, any> | undefined;
546
- } | {
547
- type: "logic";
548
- id: string;
549
- output: import("./node.ts").Output[];
550
- script: string;
551
- concurrency: boolean;
552
- language: "javascript" | "python" | "typescript";
553
- maxExecutionTime: number;
554
- meta?: Record<string, any> | undefined;
555
- alias?: string | undefined;
556
- } | {
557
- type: "or";
558
- id: string;
559
- output: import("./node.ts").Output[];
560
- meta?: Record<string, any> | undefined;
561
- alias?: string | undefined;
562
- })[], ({
563
- type: "entry";
564
- id?: "__entry__" | undefined;
565
- output?: (string | {
566
- exit: true;
567
- default?: true | undefined;
568
- } | {
569
- target: string;
570
- default?: true | undefined;
571
- exit?: false | undefined;
572
- })[] | undefined;
573
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
574
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
575
- meta?: Record<string, any> | undefined;
576
- } | {
577
- type: "service";
578
- name: string;
579
- version: string;
580
- id?: string | undefined;
581
- output?: (string | (({
582
- schema?: import("json-schema").JSONSchema7 | null | undefined;
583
- } & ({
584
- name: string;
585
- default?: false | undefined;
586
- } | {
587
- default?: true | undefined;
588
- })) & ({
589
- target: string;
590
- exit?: false | undefined;
591
- } | {
592
- exit: true;
593
- })))[] | undefined;
594
- inputSchema?: ({
595
- type: "object";
596
- } & import("json-schema").JSONSchema7) | {
597
- type: "null";
598
- } | undefined;
599
- meta?: Record<string, any> | undefined;
600
- configuration?: any;
601
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
602
- alias?: string | undefined;
603
- ttl?: number | undefined;
604
- retry?: number | undefined;
605
- retryDelay?: number | undefined;
606
- } | {
607
- type: "catch";
608
- subject: string;
609
- id?: string | undefined;
610
- output?: (string | (({
611
- schema?: import("json-schema").JSONSchema7 | null | undefined;
612
- } & ({
613
- name: string;
614
- default?: false | undefined;
615
- } | {
616
- default?: true | undefined;
617
- })) & ({
618
- target: string;
619
- exit?: false | undefined;
620
- } | {
621
- exit: true;
622
- })))[] | undefined;
623
- meta?: Record<string, any> | undefined;
624
- } | {
625
- type: "logic";
626
- script: string;
627
- id?: string | undefined;
628
- output?: (string | (({
629
- schema?: import("json-schema").JSONSchema7 | null | undefined;
630
- } & ({
631
- name: string;
632
- default?: false | undefined;
633
- } | {
634
- default?: true | undefined;
635
- })) & ({
636
- target: string;
637
- exit?: false | undefined;
638
- } | {
639
- exit: true;
640
- })))[] | undefined;
641
- meta?: Record<string, any> | undefined;
642
- alias?: string | undefined;
643
- concurrency?: boolean | undefined;
644
- language?: "javascript" | "python" | "typescript" | undefined;
645
- maxExecutionTime?: number | undefined;
646
- } | {
647
- type: "or";
648
- id?: string | undefined;
649
- output?: (string | (({
650
- schema?: import("json-schema").JSONSchema7 | null | undefined;
651
- } & ({
652
- name: string;
653
- default?: false | undefined;
654
- } | {
655
- default?: true | undefined;
656
- })) & ({
657
- target: string;
658
- exit?: false | undefined;
659
- } | {
660
- exit: true;
661
- })))[] | undefined;
662
- meta?: Record<string, any> | undefined;
663
- alias?: string | undefined;
664
- })[]>, ({
665
- type: "entry";
666
- id: "__entry__";
667
- output: import("./node.ts").Output[];
668
- inputSchema: import("json-schema").JSONSchema7;
669
- metaSchema: import("json-schema").JSONSchema7;
670
- meta?: Record<string, any> | undefined;
671
- } | {
672
- type: "service";
673
- id: string;
674
- name: string;
675
- output: import("./node.ts").Output[];
676
- inputSchema: ({
677
- type: "object";
678
- } & import("json-schema").JSONSchema7) | {
679
- type: "null";
680
- };
681
- version: string;
682
- configurationSchema: import("json-schema").JSONSchema7;
683
- meta?: Record<string, any> | undefined;
684
- configuration?: any;
685
- alias?: string | undefined;
686
- ttl?: number | undefined;
687
- retry?: number | undefined;
688
- retryDelay?: number | undefined;
689
- } | {
690
- type: "catch";
691
- id: string;
692
- output: import("./node.ts").Output[];
693
- subject: string;
694
- meta?: Record<string, any> | undefined;
695
- } | {
696
- type: "logic";
697
- id: string;
698
- output: import("./node.ts").Output[];
699
- script: string;
700
- concurrency: boolean;
701
- language: "javascript" | "python" | "typescript";
702
- maxExecutionTime: number;
703
- meta?: Record<string, any> | undefined;
704
- alias?: string | undefined;
705
- } | {
706
- type: "or";
707
- id: string;
708
- output: import("./node.ts").Output[];
709
- meta?: Record<string, any> | undefined;
710
- alias?: string | undefined;
711
- })[], ({
712
- type: "entry";
713
- id?: "__entry__" | undefined;
714
- output?: (string | {
715
- exit: true;
716
- default?: true | undefined;
717
- } | {
718
- target: string;
719
- default?: true | undefined;
720
- exit?: false | undefined;
721
- })[] | undefined;
722
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
723
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
724
- meta?: Record<string, any> | undefined;
725
- } | {
726
- type: "service";
727
- name: string;
728
- version: string;
729
- id?: string | undefined;
730
- output?: (string | (({
731
- schema?: import("json-schema").JSONSchema7 | null | undefined;
732
- } & ({
733
- name: string;
734
- default?: false | undefined;
735
- } | {
736
- default?: true | undefined;
737
- })) & ({
738
- target: string;
739
- exit?: false | undefined;
740
- } | {
741
- exit: true;
742
- })))[] | undefined;
743
- inputSchema?: ({
744
- type: "object";
745
- } & import("json-schema").JSONSchema7) | {
746
- type: "null";
747
- } | undefined;
748
- meta?: Record<string, any> | undefined;
749
- configuration?: any;
750
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
751
- alias?: string | undefined;
752
- ttl?: number | undefined;
753
- retry?: number | undefined;
754
- retryDelay?: number | undefined;
755
- } | {
756
- type: "catch";
757
- subject: string;
758
- id?: string | undefined;
759
- output?: (string | (({
760
- schema?: import("json-schema").JSONSchema7 | null | undefined;
761
- } & ({
762
- name: string;
763
- default?: false | undefined;
764
- } | {
765
- default?: true | undefined;
766
- })) & ({
767
- target: string;
768
- exit?: false | undefined;
769
- } | {
770
- exit: true;
771
- })))[] | undefined;
772
- meta?: Record<string, any> | undefined;
773
- } | {
774
- type: "logic";
775
- script: string;
776
- id?: string | undefined;
777
- output?: (string | (({
778
- schema?: import("json-schema").JSONSchema7 | null | undefined;
779
- } & ({
780
- name: string;
781
- default?: false | undefined;
782
- } | {
783
- default?: true | undefined;
784
- })) & ({
785
- target: string;
786
- exit?: false | undefined;
787
- } | {
788
- exit: true;
789
- })))[] | undefined;
790
- meta?: Record<string, any> | undefined;
791
- alias?: string | undefined;
792
- concurrency?: boolean | undefined;
793
- language?: "javascript" | "python" | "typescript" | undefined;
794
- maxExecutionTime?: number | undefined;
795
- } | {
796
- type: "or";
797
- id?: string | undefined;
798
- output?: (string | (({
799
- schema?: import("json-schema").JSONSchema7 | null | undefined;
800
- } & ({
801
- name: string;
802
- default?: false | undefined;
803
- } | {
804
- default?: true | undefined;
805
- })) & ({
806
- target: string;
807
- exit?: false | undefined;
808
- } | {
809
- exit: true;
810
- })))[] | undefined;
811
- meta?: Record<string, any> | undefined;
812
- alias?: string | undefined;
813
- })[]>;
7
+ export declare const createNodesSchema: z.ZodPipe<z.ZodObject<{
8
+ type: z.ZodLiteral<"CREATE">;
9
+ treeList: z.ZodObject<{
10
+ tree: z.ZodObject<{
11
+ nodes: z.ZodArray<z.ZodAny>;
12
+ edges: z.ZodArray<z.ZodAny>;
13
+ }, z.core.$strip>;
14
+ references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
15
+ }, z.core.$strip>;
814
16
  input: z.ZodAny;
815
- meta: z.ZodAny;
816
17
  options: z.ZodObject<{
817
18
  maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
818
- compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<["mcp-tool"]>>>;
819
- exitEarly: z.ZodDefault<z.ZodBoolean>;
19
+ compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
20
+ "mcp-tool": "mcp-tool";
21
+ }>>>;
22
+ mode: z.ZodDefault<z.ZodEnum<{
23
+ linear: "linear";
24
+ continuous: "continuous";
25
+ }>>;
820
26
  uploadUrl: z.ZodOptional<z.ZodString>;
821
27
  streamUrl: z.ZodOptional<z.ZodString>;
822
- }, "strip", z.ZodTypeAny, {
823
- maxExecutions: number;
824
- compliance: "mcp-tool" | null;
825
- exitEarly: boolean;
826
- uploadUrl?: string | undefined;
827
- streamUrl?: string | undefined;
828
- }, {
829
- maxExecutions?: number | undefined;
830
- compliance?: "mcp-tool" | null | undefined;
831
- exitEarly?: boolean | undefined;
832
- uploadUrl?: string | undefined;
833
- streamUrl?: string | undefined;
834
- }>;
835
- }, "strip", z.ZodTypeAny, {
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>, z.ZodTransform<{
30
+ treeList: {
31
+ tree: {
32
+ nodes: ({
33
+ id: string;
34
+ type: "exit";
35
+ alias?: string | undefined;
36
+ } | {
37
+ id: string;
38
+ type: "entry";
39
+ inputSchema: import("json-schema").JSONSchema7;
40
+ outputs: {
41
+ name: string | typeof import("./nodeType.ts").ERROR | null;
42
+ schema: import("json-schema").JSONSchema7 | null;
43
+ }[];
44
+ alias?: string | undefined;
45
+ } | {
46
+ id: string;
47
+ type: "service";
48
+ inputSchema: ({
49
+ type: "object";
50
+ } & import("json-schema").JSONSchema7) | {
51
+ type: "null";
52
+ };
53
+ name: string;
54
+ version: string;
55
+ configurationSchema: import("json-schema").JSONSchema7;
56
+ outputs: {
57
+ name: string | typeof import("./nodeType.ts").ERROR | null;
58
+ schema: import("json-schema").JSONSchema7 | null;
59
+ }[];
60
+ alias?: string | undefined;
61
+ configuration?: any;
62
+ ttl?: number | undefined;
63
+ retry?: number | undefined;
64
+ retryDelay?: number | undefined;
65
+ } | {
66
+ id: string;
67
+ type: "logic";
68
+ script: string;
69
+ concurrency: boolean;
70
+ language: "javascript" | "python" | "typescript";
71
+ maxExecutionTime: number;
72
+ outputs: {
73
+ name: string | typeof import("./nodeType.ts").ERROR | null;
74
+ schema: import("json-schema").JSONSchema7 | null;
75
+ }[];
76
+ alias?: string | undefined;
77
+ } | {
78
+ id: string;
79
+ type: "or";
80
+ outputs: {
81
+ name: string | typeof import("./nodeType.ts").ERROR | null;
82
+ schema: import("json-schema").JSONSchema7 | null;
83
+ }[];
84
+ alias?: string | undefined;
85
+ } | {
86
+ id: string;
87
+ type: "reference";
88
+ reference: string;
89
+ outputs: {
90
+ name: string | typeof import("./nodeType.ts").ERROR | null;
91
+ schema: import("json-schema").JSONSchema7 | null;
92
+ }[];
93
+ alias?: string | undefined;
94
+ configuration?: any;
95
+ })[];
96
+ edges: {
97
+ source: string;
98
+ sourceHandle: string | typeof import("./nodeType.ts").ERROR | null;
99
+ target: string;
100
+ }[];
101
+ };
102
+ references?: {
103
+ id: string;
104
+ options: {
105
+ maxExecutions: number;
106
+ };
107
+ tree: {
108
+ nodes: ({
109
+ id: string;
110
+ type: "exit";
111
+ alias?: string | undefined;
112
+ } | {
113
+ id: string;
114
+ type: "entry";
115
+ inputSchema: import("json-schema").JSONSchema7;
116
+ outputs: {
117
+ name: string | typeof import("./nodeType.ts").ERROR | null;
118
+ schema: import("json-schema").JSONSchema7 | null;
119
+ }[];
120
+ alias?: string | undefined;
121
+ } | {
122
+ id: string;
123
+ type: "service";
124
+ inputSchema: ({
125
+ type: "object";
126
+ } & import("json-schema").JSONSchema7) | {
127
+ type: "null";
128
+ };
129
+ name: string;
130
+ version: string;
131
+ configurationSchema: import("json-schema").JSONSchema7;
132
+ outputs: {
133
+ name: string | typeof import("./nodeType.ts").ERROR | null;
134
+ schema: import("json-schema").JSONSchema7 | null;
135
+ }[];
136
+ alias?: string | undefined;
137
+ configuration?: any;
138
+ ttl?: number | undefined;
139
+ retry?: number | undefined;
140
+ retryDelay?: number | undefined;
141
+ } | {
142
+ id: string;
143
+ type: "logic";
144
+ script: string;
145
+ concurrency: boolean;
146
+ language: "javascript" | "python" | "typescript";
147
+ maxExecutionTime: number;
148
+ outputs: {
149
+ name: string | typeof import("./nodeType.ts").ERROR | null;
150
+ schema: import("json-schema").JSONSchema7 | null;
151
+ }[];
152
+ alias?: string | undefined;
153
+ } | {
154
+ id: string;
155
+ type: "or";
156
+ outputs: {
157
+ name: string | typeof import("./nodeType.ts").ERROR | null;
158
+ schema: import("json-schema").JSONSchema7 | null;
159
+ }[];
160
+ alias?: string | undefined;
161
+ } | {
162
+ id: string;
163
+ type: "reference";
164
+ reference: string;
165
+ outputs: {
166
+ name: string | typeof import("./nodeType.ts").ERROR | null;
167
+ schema: import("json-schema").JSONSchema7 | null;
168
+ }[];
169
+ alias?: string | undefined;
170
+ configuration?: any;
171
+ })[];
172
+ edges: {
173
+ source: string;
174
+ sourceHandle: string | typeof import("./nodeType.ts").ERROR | null;
175
+ target: string;
176
+ }[];
177
+ };
178
+ references?: /*elided*/ any[] | undefined;
179
+ }[] | undefined;
180
+ };
181
+ type: "CREATE";
182
+ input: any;
836
183
  options: {
837
184
  maxExecutions: number;
838
185
  compliance: "mcp-tool" | null;
839
- exitEarly: boolean;
186
+ mode: "linear" | "continuous";
840
187
  uploadUrl?: string | undefined;
841
188
  streamUrl?: string | undefined;
842
189
  };
843
- type: "CREATE_NODES";
844
- nodes: ({
845
- type: "entry";
846
- id: "__entry__";
847
- output: import("./node.ts").Output[];
848
- inputSchema: import("json-schema").JSONSchema7;
849
- metaSchema: import("json-schema").JSONSchema7;
850
- meta?: Record<string, any> | undefined;
851
- } | {
852
- type: "service";
853
- id: string;
854
- name: string;
855
- output: import("./node.ts").Output[];
856
- inputSchema: ({
857
- type: "object";
858
- } & import("json-schema").JSONSchema7) | {
859
- type: "null";
860
- };
861
- version: string;
862
- configurationSchema: import("json-schema").JSONSchema7;
863
- meta?: Record<string, any> | undefined;
864
- configuration?: any;
865
- alias?: string | undefined;
866
- ttl?: number | undefined;
867
- retry?: number | undefined;
868
- retryDelay?: number | undefined;
869
- } | {
870
- type: "catch";
871
- id: string;
872
- output: import("./node.ts").Output[];
873
- subject: string;
874
- meta?: Record<string, any> | undefined;
875
- } | {
876
- type: "logic";
877
- id: string;
878
- output: import("./node.ts").Output[];
879
- script: string;
880
- concurrency: boolean;
881
- language: "javascript" | "python" | "typescript";
882
- maxExecutionTime: number;
883
- meta?: Record<string, any> | undefined;
884
- alias?: string | undefined;
885
- } | {
886
- type: "or";
887
- id: string;
888
- output: import("./node.ts").Output[];
889
- meta?: Record<string, any> | undefined;
890
- alias?: string | undefined;
891
- })[];
892
- meta?: any;
893
- input?: any;
894
190
  }, {
191
+ type: "CREATE";
192
+ treeList: {
193
+ tree: {
194
+ nodes: any[];
195
+ edges: any[];
196
+ };
197
+ references?: any[] | undefined;
198
+ };
199
+ input: any;
895
200
  options: {
896
- maxExecutions?: number | undefined;
897
- compliance?: "mcp-tool" | null | undefined;
898
- exitEarly?: boolean | undefined;
201
+ maxExecutions: number;
202
+ compliance: "mcp-tool" | null;
203
+ mode: "linear" | "continuous";
899
204
  uploadUrl?: string | undefined;
900
205
  streamUrl?: string | undefined;
901
206
  };
902
- type: "CREATE_NODES";
903
- nodes: ({
904
- type: "entry";
905
- id?: "__entry__" | undefined;
906
- output?: (string | {
907
- exit: true;
908
- default?: true | undefined;
909
- } | {
910
- target: string;
911
- default?: true | undefined;
912
- exit?: false | undefined;
913
- })[] | undefined;
914
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
915
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
916
- meta?: Record<string, any> | undefined;
917
- } | {
918
- type: "service";
919
- name: string;
920
- version: string;
921
- id?: string | undefined;
922
- output?: (string | (({
923
- schema?: import("json-schema").JSONSchema7 | null | undefined;
924
- } & ({
925
- name: string;
926
- default?: false | undefined;
927
- } | {
928
- default?: true | undefined;
929
- })) & ({
930
- target: string;
931
- exit?: false | undefined;
932
- } | {
933
- exit: true;
934
- })))[] | undefined;
935
- inputSchema?: ({
936
- type: "object";
937
- } & import("json-schema").JSONSchema7) | {
938
- type: "null";
939
- } | undefined;
940
- meta?: Record<string, any> | undefined;
941
- configuration?: any;
942
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
943
- alias?: string | undefined;
944
- ttl?: number | undefined;
945
- retry?: number | undefined;
946
- retryDelay?: number | undefined;
947
- } | {
948
- type: "catch";
949
- subject: string;
950
- id?: string | undefined;
951
- output?: (string | (({
952
- schema?: import("json-schema").JSONSchema7 | null | undefined;
953
- } & ({
954
- name: string;
955
- default?: false | undefined;
956
- } | {
957
- default?: true | undefined;
958
- })) & ({
959
- target: string;
960
- exit?: false | undefined;
961
- } | {
962
- exit: true;
963
- })))[] | undefined;
964
- meta?: Record<string, any> | undefined;
965
- } | {
966
- type: "logic";
967
- script: string;
968
- id?: string | undefined;
969
- output?: (string | (({
970
- schema?: import("json-schema").JSONSchema7 | null | undefined;
971
- } & ({
972
- name: string;
973
- default?: false | undefined;
974
- } | {
975
- default?: true | undefined;
976
- })) & ({
977
- target: string;
978
- exit?: false | undefined;
979
- } | {
980
- exit: true;
981
- })))[] | undefined;
982
- meta?: Record<string, any> | undefined;
983
- alias?: string | undefined;
984
- concurrency?: boolean | undefined;
985
- language?: "javascript" | "python" | "typescript" | undefined;
986
- maxExecutionTime?: number | undefined;
987
- } | {
988
- type: "or";
989
- id?: string | undefined;
990
- output?: (string | (({
991
- schema?: import("json-schema").JSONSchema7 | null | undefined;
992
- } & ({
993
- name: string;
994
- default?: false | undefined;
995
- } | {
996
- default?: true | undefined;
997
- })) & ({
998
- target: string;
999
- exit?: false | undefined;
1000
- } | {
1001
- exit: true;
1002
- })))[] | undefined;
1003
- meta?: Record<string, any> | undefined;
1004
- alias?: string | undefined;
1005
- })[];
1006
- meta?: any;
1007
- input?: any;
1008
- }>;
1009
- export declare const commandSchema: z.ZodUnion<[z.ZodObject<{
207
+ }>>;
208
+ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
1010
209
  type: z.ZodLiteral<"ABORT">;
1011
210
  reason: z.ZodOptional<z.ZodString>;
1012
- }, "strip", z.ZodTypeAny, {
1013
- type: "ABORT";
1014
- reason?: string | undefined;
1015
- }, {
1016
- type: "ABORT";
1017
- reason?: string | undefined;
1018
- }>, z.ZodObject<{
1019
- type: z.ZodLiteral<"CREATE_NODES">;
1020
- nodes: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1021
- type: z.ZodLiteral<"entry">;
1022
- id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
1023
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
1024
- default: z.ZodDefault<z.ZodLiteral<true>>;
1025
- exit: z.ZodLiteral<true>;
1026
- }, "strip", z.ZodTypeAny, {
1027
- default: true;
1028
- exit: true;
1029
- }, {
1030
- exit: true;
1031
- default?: true | undefined;
1032
- }>, z.ZodObject<{
1033
- default: z.ZodDefault<z.ZodLiteral<true>>;
1034
- exit: z.ZodDefault<z.ZodLiteral<false>>;
1035
- target: z.ZodString;
1036
- }, "strip", z.ZodTypeAny, {
1037
- default: true;
1038
- exit: false;
1039
- target: string;
1040
- }, {
1041
- target: string;
1042
- default?: true | undefined;
1043
- exit?: false | undefined;
1044
- }>]>, import("./node.ts").Output, string | {
1045
- exit: true;
1046
- default?: true | undefined;
1047
- } | {
1048
- target: string;
1049
- default?: true | undefined;
1050
- exit?: false | undefined;
1051
- }>, "many">>, import("./node.ts").Output[], (string | {
1052
- exit: true;
1053
- default?: true | undefined;
1054
- } | {
1055
- target: string;
1056
- default?: true | undefined;
1057
- exit?: false | undefined;
1058
- })[] | undefined>;
1059
- inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
1060
- metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
1061
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1062
- }, "strip", z.ZodTypeAny, {
1063
- type: "entry";
1064
- id: "__entry__";
1065
- output: import("./node.ts").Output[];
1066
- inputSchema: import("json-schema").JSONSchema7;
1067
- metaSchema: import("json-schema").JSONSchema7;
1068
- meta?: Record<string, any> | undefined;
1069
- }, {
1070
- type: "entry";
1071
- id?: "__entry__" | undefined;
1072
- output?: (string | {
1073
- exit: true;
1074
- default?: true | undefined;
1075
- } | {
1076
- target: string;
1077
- default?: true | undefined;
1078
- exit?: false | undefined;
1079
- })[] | undefined;
1080
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
1081
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
1082
- meta?: Record<string, any> | undefined;
1083
- }>, z.ZodObject<{
1084
- type: z.ZodLiteral<"service">;
1085
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1086
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
1087
- }, "strip", z.ZodTypeAny, {
1088
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1089
- }, {
1090
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1091
- }>, z.ZodUnion<[z.ZodObject<{
1092
- default: z.ZodDefault<z.ZodLiteral<false>>;
1093
- name: z.ZodString;
1094
- }, "strip", z.ZodTypeAny, {
1095
- default: false;
1096
- name: string;
1097
- }, {
1098
- name: string;
1099
- default?: false | undefined;
1100
- }>, z.ZodObject<{
1101
- default: z.ZodDefault<z.ZodLiteral<true>>;
1102
- }, "strip", z.ZodTypeAny, {
1103
- default: true;
1104
- }, {
1105
- default?: true | undefined;
1106
- }>]>>, z.ZodUnion<[z.ZodObject<{
1107
- exit: z.ZodDefault<z.ZodLiteral<false>>;
1108
- target: z.ZodString;
1109
- }, "strip", z.ZodTypeAny, {
1110
- exit: false;
1111
- target: string;
1112
- }, {
1113
- target: string;
1114
- exit?: false | undefined;
1115
- }>, z.ZodObject<{
1116
- exit: z.ZodLiteral<true>;
1117
- }, "strip", z.ZodTypeAny, {
1118
- exit: true;
1119
- }, {
1120
- exit: true;
1121
- }>]>>]>, import("./node.ts").Output, string | (({
1122
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1123
- } & ({
1124
- name: string;
1125
- default?: false | undefined;
1126
- } | {
1127
- default?: true | undefined;
1128
- })) & ({
1129
- target: string;
1130
- exit?: false | undefined;
1131
- } | {
1132
- exit: true;
1133
- }))>, "many">>, import("./node.ts").Output[], (string | (({
1134
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1135
- } & ({
1136
- name: string;
1137
- default?: false | undefined;
1138
- } | {
1139
- default?: true | undefined;
1140
- })) & ({
1141
- target: string;
1142
- exit?: false | undefined;
1143
- } | {
1144
- exit: true;
1145
- })))[] | undefined>;
1146
- inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
1147
- type: z.ZodLiteral<"object">;
1148
- }, "strip", z.ZodTypeAny, {
1149
- type: "object";
1150
- }, {
1151
- type: "object";
1152
- }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
1153
- type: z.ZodLiteral<"null">;
1154
- }, "strip", z.ZodTypeAny, {
1155
- type: "null";
1156
- }, {
1157
- type: "null";
1158
- }>]>>;
1159
- id: z.ZodDefault<z.ZodString>;
1160
- name: z.ZodString;
1161
- version: z.ZodString;
1162
- configuration: z.ZodOptional<z.ZodAny>;
1163
- configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
1164
- alias: z.ZodOptional<z.ZodString>;
1165
- ttl: z.ZodOptional<z.ZodNumber>;
1166
- retry: z.ZodOptional<z.ZodNumber>;
1167
- retryDelay: z.ZodOptional<z.ZodNumber>;
1168
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1169
- }, "strip", z.ZodTypeAny, {
1170
- type: "service";
1171
- id: string;
1172
- name: string;
1173
- output: import("./node.ts").Output[];
1174
- inputSchema: ({
1175
- type: "object";
1176
- } & import("json-schema").JSONSchema7) | {
1177
- type: "null";
1178
- };
1179
- version: string;
1180
- configurationSchema: import("json-schema").JSONSchema7;
1181
- meta?: Record<string, any> | undefined;
1182
- configuration?: any;
1183
- alias?: string | undefined;
1184
- ttl?: number | undefined;
1185
- retry?: number | undefined;
1186
- retryDelay?: number | undefined;
1187
- }, {
1188
- type: "service";
1189
- name: string;
1190
- version: string;
1191
- id?: string | undefined;
1192
- output?: (string | (({
1193
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1194
- } & ({
1195
- name: string;
1196
- default?: false | undefined;
1197
- } | {
1198
- default?: true | undefined;
1199
- })) & ({
1200
- target: string;
1201
- exit?: false | undefined;
1202
- } | {
1203
- exit: true;
1204
- })))[] | undefined;
1205
- inputSchema?: ({
1206
- type: "object";
1207
- } & import("json-schema").JSONSchema7) | {
1208
- type: "null";
1209
- } | undefined;
1210
- meta?: Record<string, any> | undefined;
1211
- configuration?: any;
1212
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
1213
- alias?: string | undefined;
1214
- ttl?: number | undefined;
1215
- retry?: number | undefined;
1216
- retryDelay?: number | undefined;
1217
- }>, z.ZodObject<{
1218
- type: z.ZodLiteral<"catch">;
1219
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1220
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
1221
- }, "strip", z.ZodTypeAny, {
1222
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1223
- }, {
1224
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1225
- }>, z.ZodUnion<[z.ZodObject<{
1226
- default: z.ZodDefault<z.ZodLiteral<false>>;
1227
- name: z.ZodString;
1228
- }, "strip", z.ZodTypeAny, {
1229
- default: false;
1230
- name: string;
1231
- }, {
1232
- name: string;
1233
- default?: false | undefined;
1234
- }>, z.ZodObject<{
1235
- default: z.ZodDefault<z.ZodLiteral<true>>;
1236
- }, "strip", z.ZodTypeAny, {
1237
- default: true;
1238
- }, {
1239
- default?: true | undefined;
1240
- }>]>>, z.ZodUnion<[z.ZodObject<{
1241
- exit: z.ZodDefault<z.ZodLiteral<false>>;
1242
- target: z.ZodString;
1243
- }, "strip", z.ZodTypeAny, {
1244
- exit: false;
1245
- target: string;
1246
- }, {
1247
- target: string;
1248
- exit?: false | undefined;
1249
- }>, z.ZodObject<{
1250
- exit: z.ZodLiteral<true>;
1251
- }, "strip", z.ZodTypeAny, {
1252
- exit: true;
1253
- }, {
1254
- exit: true;
1255
- }>]>>]>, import("./node.ts").Output, string | (({
1256
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1257
- } & ({
1258
- name: string;
1259
- default?: false | undefined;
1260
- } | {
1261
- default?: true | undefined;
1262
- })) & ({
1263
- target: string;
1264
- exit?: false | undefined;
1265
- } | {
1266
- exit: true;
1267
- }))>, "many">>, import("./node.ts").Output[], (string | (({
1268
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1269
- } & ({
1270
- name: string;
1271
- default?: false | undefined;
1272
- } | {
1273
- default?: true | undefined;
1274
- })) & ({
1275
- target: string;
1276
- exit?: false | undefined;
1277
- } | {
1278
- exit: true;
1279
- })))[] | undefined>;
1280
- id: z.ZodDefault<z.ZodString>;
1281
- subject: z.ZodString;
1282
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1283
- }, "strip", z.ZodTypeAny, {
1284
- type: "catch";
1285
- id: string;
1286
- output: import("./node.ts").Output[];
1287
- subject: string;
1288
- meta?: Record<string, any> | undefined;
1289
- }, {
1290
- type: "catch";
1291
- subject: string;
1292
- id?: string | undefined;
1293
- output?: (string | (({
1294
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1295
- } & ({
1296
- name: string;
1297
- default?: false | undefined;
1298
- } | {
1299
- default?: true | undefined;
1300
- })) & ({
1301
- target: string;
1302
- exit?: false | undefined;
1303
- } | {
1304
- exit: true;
1305
- })))[] | undefined;
1306
- meta?: Record<string, any> | undefined;
1307
- }>, z.ZodObject<{
1308
- type: z.ZodLiteral<"logic">;
1309
- alias: z.ZodOptional<z.ZodString>;
1310
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1311
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
1312
- }, "strip", z.ZodTypeAny, {
1313
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1314
- }, {
1315
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1316
- }>, z.ZodUnion<[z.ZodObject<{
1317
- default: z.ZodDefault<z.ZodLiteral<false>>;
1318
- name: z.ZodString;
1319
- }, "strip", z.ZodTypeAny, {
1320
- default: false;
1321
- name: string;
1322
- }, {
1323
- name: string;
1324
- default?: false | undefined;
1325
- }>, z.ZodObject<{
1326
- default: z.ZodDefault<z.ZodLiteral<true>>;
1327
- }, "strip", z.ZodTypeAny, {
1328
- default: true;
1329
- }, {
1330
- default?: true | undefined;
1331
- }>]>>, z.ZodUnion<[z.ZodObject<{
1332
- exit: z.ZodDefault<z.ZodLiteral<false>>;
1333
- target: z.ZodString;
1334
- }, "strip", z.ZodTypeAny, {
1335
- exit: false;
1336
- target: string;
1337
- }, {
1338
- target: string;
1339
- exit?: false | undefined;
1340
- }>, z.ZodObject<{
1341
- exit: z.ZodLiteral<true>;
1342
- }, "strip", z.ZodTypeAny, {
1343
- exit: true;
1344
- }, {
1345
- exit: true;
1346
- }>]>>]>, import("./node.ts").Output, string | (({
1347
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1348
- } & ({
1349
- name: string;
1350
- default?: false | undefined;
1351
- } | {
1352
- default?: true | undefined;
1353
- })) & ({
1354
- target: string;
1355
- exit?: false | undefined;
1356
- } | {
1357
- exit: true;
1358
- }))>, "many">>, import("./node.ts").Output[], (string | (({
1359
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1360
- } & ({
1361
- name: string;
1362
- default?: false | undefined;
1363
- } | {
1364
- default?: true | undefined;
1365
- })) & ({
1366
- target: string;
1367
- exit?: false | undefined;
1368
- } | {
1369
- exit: true;
1370
- })))[] | undefined>;
1371
- id: z.ZodDefault<z.ZodString>;
1372
- script: z.ZodString;
1373
- concurrency: z.ZodDefault<z.ZodBoolean>;
1374
- language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
1375
- maxExecutionTime: z.ZodDefault<z.ZodNumber>;
1376
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1377
- }, "strip", z.ZodTypeAny, {
1378
- type: "logic";
1379
- id: string;
1380
- output: import("./node.ts").Output[];
1381
- script: string;
1382
- concurrency: boolean;
1383
- language: "javascript" | "python" | "typescript";
1384
- maxExecutionTime: number;
1385
- meta?: Record<string, any> | undefined;
1386
- alias?: string | undefined;
1387
- }, {
1388
- type: "logic";
1389
- script: string;
1390
- id?: string | undefined;
1391
- output?: (string | (({
1392
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1393
- } & ({
1394
- name: string;
1395
- default?: false | undefined;
1396
- } | {
1397
- default?: true | undefined;
1398
- })) & ({
1399
- target: string;
1400
- exit?: false | undefined;
1401
- } | {
1402
- exit: true;
1403
- })))[] | undefined;
1404
- meta?: Record<string, any> | undefined;
1405
- alias?: string | undefined;
1406
- concurrency?: boolean | undefined;
1407
- language?: "javascript" | "python" | "typescript" | undefined;
1408
- maxExecutionTime?: number | undefined;
1409
- }>, z.ZodObject<{
1410
- id: z.ZodDefault<z.ZodString>;
1411
- type: z.ZodLiteral<"or">;
1412
- alias: z.ZodOptional<z.ZodString>;
1413
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1414
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
1415
- }, "strip", z.ZodTypeAny, {
1416
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1417
- }, {
1418
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1419
- }>, z.ZodUnion<[z.ZodObject<{
1420
- default: z.ZodDefault<z.ZodLiteral<false>>;
1421
- name: z.ZodString;
1422
- }, "strip", z.ZodTypeAny, {
1423
- default: false;
1424
- name: string;
1425
- }, {
1426
- name: string;
1427
- default?: false | undefined;
1428
- }>, z.ZodObject<{
1429
- default: z.ZodDefault<z.ZodLiteral<true>>;
1430
- }, "strip", z.ZodTypeAny, {
1431
- default: true;
1432
- }, {
1433
- default?: true | undefined;
1434
- }>]>>, z.ZodUnion<[z.ZodObject<{
1435
- exit: z.ZodDefault<z.ZodLiteral<false>>;
1436
- target: z.ZodString;
1437
- }, "strip", z.ZodTypeAny, {
1438
- exit: false;
1439
- target: string;
1440
- }, {
1441
- target: string;
1442
- exit?: false | undefined;
1443
- }>, z.ZodObject<{
1444
- exit: z.ZodLiteral<true>;
1445
- }, "strip", z.ZodTypeAny, {
1446
- exit: true;
1447
- }, {
1448
- exit: true;
1449
- }>]>>]>, import("./node.ts").Output, string | (({
1450
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1451
- } & ({
1452
- name: string;
1453
- default?: false | undefined;
1454
- } | {
1455
- default?: true | undefined;
1456
- })) & ({
1457
- target: string;
1458
- exit?: false | undefined;
1459
- } | {
1460
- exit: true;
1461
- }))>, "many">>, import("./node.ts").Output[], (string | (({
1462
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1463
- } & ({
1464
- name: string;
1465
- default?: false | undefined;
1466
- } | {
1467
- default?: true | undefined;
1468
- })) & ({
1469
- target: string;
1470
- exit?: false | undefined;
1471
- } | {
1472
- exit: true;
1473
- })))[] | undefined>;
1474
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1475
- }, "strip", z.ZodTypeAny, {
1476
- type: "or";
1477
- id: string;
1478
- output: import("./node.ts").Output[];
1479
- meta?: Record<string, any> | undefined;
1480
- alias?: string | undefined;
1481
- }, {
1482
- type: "or";
1483
- id?: string | undefined;
1484
- output?: (string | (({
1485
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1486
- } & ({
1487
- name: string;
1488
- default?: false | undefined;
1489
- } | {
1490
- default?: true | undefined;
1491
- })) & ({
1492
- target: string;
1493
- exit?: false | undefined;
1494
- } | {
1495
- exit: true;
1496
- })))[] | undefined;
1497
- meta?: Record<string, any> | undefined;
1498
- alias?: string | undefined;
1499
- }>]>, "many">, ({
1500
- type: "entry";
1501
- id: "__entry__";
1502
- output: import("./node.ts").Output[];
1503
- inputSchema: import("json-schema").JSONSchema7;
1504
- metaSchema: import("json-schema").JSONSchema7;
1505
- meta?: Record<string, any> | undefined;
1506
- } | {
1507
- type: "service";
1508
- id: string;
1509
- name: string;
1510
- output: import("./node.ts").Output[];
1511
- inputSchema: ({
1512
- type: "object";
1513
- } & import("json-schema").JSONSchema7) | {
1514
- type: "null";
1515
- };
1516
- version: string;
1517
- configurationSchema: import("json-schema").JSONSchema7;
1518
- meta?: Record<string, any> | undefined;
1519
- configuration?: any;
1520
- alias?: string | undefined;
1521
- ttl?: number | undefined;
1522
- retry?: number | undefined;
1523
- retryDelay?: number | undefined;
1524
- } | {
1525
- type: "catch";
1526
- id: string;
1527
- output: import("./node.ts").Output[];
1528
- subject: string;
1529
- meta?: Record<string, any> | undefined;
1530
- } | {
1531
- type: "logic";
1532
- id: string;
1533
- output: import("./node.ts").Output[];
1534
- script: string;
1535
- concurrency: boolean;
1536
- language: "javascript" | "python" | "typescript";
1537
- maxExecutionTime: number;
1538
- meta?: Record<string, any> | undefined;
1539
- alias?: string | undefined;
1540
- } | {
1541
- type: "or";
1542
- id: string;
1543
- output: import("./node.ts").Output[];
1544
- meta?: Record<string, any> | undefined;
1545
- alias?: string | undefined;
1546
- })[], ({
1547
- type: "entry";
1548
- id?: "__entry__" | undefined;
1549
- output?: (string | {
1550
- exit: true;
1551
- default?: true | undefined;
1552
- } | {
1553
- target: string;
1554
- default?: true | undefined;
1555
- exit?: false | undefined;
1556
- })[] | undefined;
1557
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
1558
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
1559
- meta?: Record<string, any> | undefined;
1560
- } | {
1561
- type: "service";
1562
- name: string;
1563
- version: string;
1564
- id?: string | undefined;
1565
- output?: (string | (({
1566
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1567
- } & ({
1568
- name: string;
1569
- default?: false | undefined;
1570
- } | {
1571
- default?: true | undefined;
1572
- })) & ({
1573
- target: string;
1574
- exit?: false | undefined;
1575
- } | {
1576
- exit: true;
1577
- })))[] | undefined;
1578
- inputSchema?: ({
1579
- type: "object";
1580
- } & import("json-schema").JSONSchema7) | {
1581
- type: "null";
1582
- } | undefined;
1583
- meta?: Record<string, any> | undefined;
1584
- configuration?: any;
1585
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
1586
- alias?: string | undefined;
1587
- ttl?: number | undefined;
1588
- retry?: number | undefined;
1589
- retryDelay?: number | undefined;
1590
- } | {
1591
- type: "catch";
1592
- subject: string;
1593
- id?: string | undefined;
1594
- output?: (string | (({
1595
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1596
- } & ({
1597
- name: string;
1598
- default?: false | undefined;
1599
- } | {
1600
- default?: true | undefined;
1601
- })) & ({
1602
- target: string;
1603
- exit?: false | undefined;
1604
- } | {
1605
- exit: true;
1606
- })))[] | undefined;
1607
- meta?: Record<string, any> | undefined;
1608
- } | {
1609
- type: "logic";
1610
- script: string;
1611
- id?: string | undefined;
1612
- output?: (string | (({
1613
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1614
- } & ({
1615
- name: string;
1616
- default?: false | undefined;
1617
- } | {
1618
- default?: true | undefined;
1619
- })) & ({
1620
- target: string;
1621
- exit?: false | undefined;
1622
- } | {
1623
- exit: true;
1624
- })))[] | undefined;
1625
- meta?: Record<string, any> | undefined;
1626
- alias?: string | undefined;
1627
- concurrency?: boolean | undefined;
1628
- language?: "javascript" | "python" | "typescript" | undefined;
1629
- maxExecutionTime?: number | undefined;
1630
- } | {
1631
- type: "or";
1632
- id?: string | undefined;
1633
- output?: (string | (({
1634
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1635
- } & ({
1636
- name: string;
1637
- default?: false | undefined;
1638
- } | {
1639
- default?: true | undefined;
1640
- })) & ({
1641
- target: string;
1642
- exit?: false | undefined;
1643
- } | {
1644
- exit: true;
1645
- })))[] | undefined;
1646
- meta?: Record<string, any> | undefined;
1647
- alias?: string | undefined;
1648
- })[]>, ({
1649
- type: "entry";
1650
- id: "__entry__";
1651
- output: import("./node.ts").Output[];
1652
- inputSchema: import("json-schema").JSONSchema7;
1653
- metaSchema: import("json-schema").JSONSchema7;
1654
- meta?: Record<string, any> | undefined;
1655
- } | {
1656
- type: "service";
1657
- id: string;
1658
- name: string;
1659
- output: import("./node.ts").Output[];
1660
- inputSchema: ({
1661
- type: "object";
1662
- } & import("json-schema").JSONSchema7) | {
1663
- type: "null";
1664
- };
1665
- version: string;
1666
- configurationSchema: import("json-schema").JSONSchema7;
1667
- meta?: Record<string, any> | undefined;
1668
- configuration?: any;
1669
- alias?: string | undefined;
1670
- ttl?: number | undefined;
1671
- retry?: number | undefined;
1672
- retryDelay?: number | undefined;
1673
- } | {
1674
- type: "catch";
1675
- id: string;
1676
- output: import("./node.ts").Output[];
1677
- subject: string;
1678
- meta?: Record<string, any> | undefined;
1679
- } | {
1680
- type: "logic";
1681
- id: string;
1682
- output: import("./node.ts").Output[];
1683
- script: string;
1684
- concurrency: boolean;
1685
- language: "javascript" | "python" | "typescript";
1686
- maxExecutionTime: number;
1687
- meta?: Record<string, any> | undefined;
1688
- alias?: string | undefined;
1689
- } | {
1690
- type: "or";
1691
- id: string;
1692
- output: import("./node.ts").Output[];
1693
- meta?: Record<string, any> | undefined;
1694
- alias?: string | undefined;
1695
- })[], ({
1696
- type: "entry";
1697
- id?: "__entry__" | undefined;
1698
- output?: (string | {
1699
- exit: true;
1700
- default?: true | undefined;
1701
- } | {
1702
- target: string;
1703
- default?: true | undefined;
1704
- exit?: false | undefined;
1705
- })[] | undefined;
1706
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
1707
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
1708
- meta?: Record<string, any> | undefined;
1709
- } | {
1710
- type: "service";
1711
- name: string;
1712
- version: string;
1713
- id?: string | undefined;
1714
- output?: (string | (({
1715
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1716
- } & ({
1717
- name: string;
1718
- default?: false | undefined;
1719
- } | {
1720
- default?: true | undefined;
1721
- })) & ({
1722
- target: string;
1723
- exit?: false | undefined;
1724
- } | {
1725
- exit: true;
1726
- })))[] | undefined;
1727
- inputSchema?: ({
1728
- type: "object";
1729
- } & import("json-schema").JSONSchema7) | {
1730
- type: "null";
1731
- } | undefined;
1732
- meta?: Record<string, any> | undefined;
1733
- configuration?: any;
1734
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
1735
- alias?: string | undefined;
1736
- ttl?: number | undefined;
1737
- retry?: number | undefined;
1738
- retryDelay?: number | undefined;
1739
- } | {
1740
- type: "catch";
1741
- subject: string;
1742
- id?: string | undefined;
1743
- output?: (string | (({
1744
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1745
- } & ({
1746
- name: string;
1747
- default?: false | undefined;
1748
- } | {
1749
- default?: true | undefined;
1750
- })) & ({
1751
- target: string;
1752
- exit?: false | undefined;
1753
- } | {
1754
- exit: true;
1755
- })))[] | undefined;
1756
- meta?: Record<string, any> | undefined;
1757
- } | {
1758
- type: "logic";
1759
- script: string;
1760
- id?: string | undefined;
1761
- output?: (string | (({
1762
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1763
- } & ({
1764
- name: string;
1765
- default?: false | undefined;
1766
- } | {
1767
- default?: true | undefined;
1768
- })) & ({
1769
- target: string;
1770
- exit?: false | undefined;
1771
- } | {
1772
- exit: true;
1773
- })))[] | undefined;
1774
- meta?: Record<string, any> | undefined;
1775
- alias?: string | undefined;
1776
- concurrency?: boolean | undefined;
1777
- language?: "javascript" | "python" | "typescript" | undefined;
1778
- maxExecutionTime?: number | undefined;
1779
- } | {
1780
- type: "or";
1781
- id?: string | undefined;
1782
- output?: (string | (({
1783
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1784
- } & ({
1785
- name: string;
1786
- default?: false | undefined;
1787
- } | {
1788
- default?: true | undefined;
1789
- })) & ({
1790
- target: string;
1791
- exit?: false | undefined;
1792
- } | {
1793
- exit: true;
1794
- })))[] | undefined;
1795
- meta?: Record<string, any> | undefined;
1796
- alias?: string | undefined;
1797
- })[]>;
211
+ }, z.core.$strip>, z.ZodPipe<z.ZodObject<{
212
+ type: z.ZodLiteral<"CREATE">;
213
+ treeList: z.ZodObject<{
214
+ tree: z.ZodObject<{
215
+ nodes: z.ZodArray<z.ZodAny>;
216
+ edges: z.ZodArray<z.ZodAny>;
217
+ }, z.core.$strip>;
218
+ references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
219
+ }, z.core.$strip>;
1798
220
  input: z.ZodAny;
1799
- meta: z.ZodAny;
1800
221
  options: z.ZodObject<{
1801
222
  maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1802
- compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<["mcp-tool"]>>>;
1803
- exitEarly: z.ZodDefault<z.ZodBoolean>;
223
+ compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
224
+ "mcp-tool": "mcp-tool";
225
+ }>>>;
226
+ mode: z.ZodDefault<z.ZodEnum<{
227
+ linear: "linear";
228
+ continuous: "continuous";
229
+ }>>;
1804
230
  uploadUrl: z.ZodOptional<z.ZodString>;
1805
231
  streamUrl: z.ZodOptional<z.ZodString>;
1806
- }, "strip", z.ZodTypeAny, {
1807
- maxExecutions: number;
1808
- compliance: "mcp-tool" | null;
1809
- exitEarly: boolean;
1810
- uploadUrl?: string | undefined;
1811
- streamUrl?: string | undefined;
1812
- }, {
1813
- maxExecutions?: number | undefined;
1814
- compliance?: "mcp-tool" | null | undefined;
1815
- exitEarly?: boolean | undefined;
1816
- uploadUrl?: string | undefined;
1817
- streamUrl?: string | undefined;
1818
- }>;
1819
- }, "strip", z.ZodTypeAny, {
232
+ }, z.core.$strip>;
233
+ }, z.core.$strip>, z.ZodTransform<{
234
+ treeList: {
235
+ tree: {
236
+ nodes: ({
237
+ id: string;
238
+ type: "exit";
239
+ alias?: string | undefined;
240
+ } | {
241
+ id: string;
242
+ type: "entry";
243
+ inputSchema: import("json-schema").JSONSchema7;
244
+ outputs: {
245
+ name: string | typeof import("./nodeType.ts").ERROR | null;
246
+ schema: import("json-schema").JSONSchema7 | null;
247
+ }[];
248
+ alias?: string | undefined;
249
+ } | {
250
+ id: string;
251
+ type: "service";
252
+ inputSchema: ({
253
+ type: "object";
254
+ } & import("json-schema").JSONSchema7) | {
255
+ type: "null";
256
+ };
257
+ name: string;
258
+ version: string;
259
+ configurationSchema: import("json-schema").JSONSchema7;
260
+ outputs: {
261
+ name: string | typeof import("./nodeType.ts").ERROR | null;
262
+ schema: import("json-schema").JSONSchema7 | null;
263
+ }[];
264
+ alias?: string | undefined;
265
+ configuration?: any;
266
+ ttl?: number | undefined;
267
+ retry?: number | undefined;
268
+ retryDelay?: number | undefined;
269
+ } | {
270
+ id: string;
271
+ type: "logic";
272
+ script: string;
273
+ concurrency: boolean;
274
+ language: "javascript" | "python" | "typescript";
275
+ maxExecutionTime: number;
276
+ outputs: {
277
+ name: string | typeof import("./nodeType.ts").ERROR | null;
278
+ schema: import("json-schema").JSONSchema7 | null;
279
+ }[];
280
+ alias?: string | undefined;
281
+ } | {
282
+ id: string;
283
+ type: "or";
284
+ outputs: {
285
+ name: string | typeof import("./nodeType.ts").ERROR | null;
286
+ schema: import("json-schema").JSONSchema7 | null;
287
+ }[];
288
+ alias?: string | undefined;
289
+ } | {
290
+ id: string;
291
+ type: "reference";
292
+ reference: string;
293
+ outputs: {
294
+ name: string | typeof import("./nodeType.ts").ERROR | null;
295
+ schema: import("json-schema").JSONSchema7 | null;
296
+ }[];
297
+ alias?: string | undefined;
298
+ configuration?: any;
299
+ })[];
300
+ edges: {
301
+ source: string;
302
+ sourceHandle: string | typeof import("./nodeType.ts").ERROR | null;
303
+ target: string;
304
+ }[];
305
+ };
306
+ references?: {
307
+ id: string;
308
+ options: {
309
+ maxExecutions: number;
310
+ };
311
+ tree: {
312
+ nodes: ({
313
+ id: string;
314
+ type: "exit";
315
+ alias?: string | undefined;
316
+ } | {
317
+ id: string;
318
+ type: "entry";
319
+ inputSchema: import("json-schema").JSONSchema7;
320
+ outputs: {
321
+ name: string | typeof import("./nodeType.ts").ERROR | null;
322
+ schema: import("json-schema").JSONSchema7 | null;
323
+ }[];
324
+ alias?: string | undefined;
325
+ } | {
326
+ id: string;
327
+ type: "service";
328
+ inputSchema: ({
329
+ type: "object";
330
+ } & import("json-schema").JSONSchema7) | {
331
+ type: "null";
332
+ };
333
+ name: string;
334
+ version: string;
335
+ configurationSchema: import("json-schema").JSONSchema7;
336
+ outputs: {
337
+ name: string | typeof import("./nodeType.ts").ERROR | null;
338
+ schema: import("json-schema").JSONSchema7 | null;
339
+ }[];
340
+ alias?: string | undefined;
341
+ configuration?: any;
342
+ ttl?: number | undefined;
343
+ retry?: number | undefined;
344
+ retryDelay?: number | undefined;
345
+ } | {
346
+ id: string;
347
+ type: "logic";
348
+ script: string;
349
+ concurrency: boolean;
350
+ language: "javascript" | "python" | "typescript";
351
+ maxExecutionTime: number;
352
+ outputs: {
353
+ name: string | typeof import("./nodeType.ts").ERROR | null;
354
+ schema: import("json-schema").JSONSchema7 | null;
355
+ }[];
356
+ alias?: string | undefined;
357
+ } | {
358
+ id: string;
359
+ type: "or";
360
+ outputs: {
361
+ name: string | typeof import("./nodeType.ts").ERROR | null;
362
+ schema: import("json-schema").JSONSchema7 | null;
363
+ }[];
364
+ alias?: string | undefined;
365
+ } | {
366
+ id: string;
367
+ type: "reference";
368
+ reference: string;
369
+ outputs: {
370
+ name: string | typeof import("./nodeType.ts").ERROR | null;
371
+ schema: import("json-schema").JSONSchema7 | null;
372
+ }[];
373
+ alias?: string | undefined;
374
+ configuration?: any;
375
+ })[];
376
+ edges: {
377
+ source: string;
378
+ sourceHandle: string | typeof import("./nodeType.ts").ERROR | null;
379
+ target: string;
380
+ }[];
381
+ };
382
+ references?: /*elided*/ any[] | undefined;
383
+ }[] | undefined;
384
+ };
385
+ type: "CREATE";
386
+ input: any;
1820
387
  options: {
1821
388
  maxExecutions: number;
1822
389
  compliance: "mcp-tool" | null;
1823
- exitEarly: boolean;
390
+ mode: "linear" | "continuous";
1824
391
  uploadUrl?: string | undefined;
1825
392
  streamUrl?: string | undefined;
1826
393
  };
1827
- type: "CREATE_NODES";
1828
- nodes: ({
1829
- type: "entry";
1830
- id: "__entry__";
1831
- output: import("./node.ts").Output[];
1832
- inputSchema: import("json-schema").JSONSchema7;
1833
- metaSchema: import("json-schema").JSONSchema7;
1834
- meta?: Record<string, any> | undefined;
1835
- } | {
1836
- type: "service";
1837
- id: string;
1838
- name: string;
1839
- output: import("./node.ts").Output[];
1840
- inputSchema: ({
1841
- type: "object";
1842
- } & import("json-schema").JSONSchema7) | {
1843
- type: "null";
1844
- };
1845
- version: string;
1846
- configurationSchema: import("json-schema").JSONSchema7;
1847
- meta?: Record<string, any> | undefined;
1848
- configuration?: any;
1849
- alias?: string | undefined;
1850
- ttl?: number | undefined;
1851
- retry?: number | undefined;
1852
- retryDelay?: number | undefined;
1853
- } | {
1854
- type: "catch";
1855
- id: string;
1856
- output: import("./node.ts").Output[];
1857
- subject: string;
1858
- meta?: Record<string, any> | undefined;
1859
- } | {
1860
- type: "logic";
1861
- id: string;
1862
- output: import("./node.ts").Output[];
1863
- script: string;
1864
- concurrency: boolean;
1865
- language: "javascript" | "python" | "typescript";
1866
- maxExecutionTime: number;
1867
- meta?: Record<string, any> | undefined;
1868
- alias?: string | undefined;
1869
- } | {
1870
- type: "or";
1871
- id: string;
1872
- output: import("./node.ts").Output[];
1873
- meta?: Record<string, any> | undefined;
1874
- alias?: string | undefined;
1875
- })[];
1876
- meta?: any;
1877
- input?: any;
1878
394
  }, {
395
+ type: "CREATE";
396
+ treeList: {
397
+ tree: {
398
+ nodes: any[];
399
+ edges: any[];
400
+ };
401
+ references?: any[] | undefined;
402
+ };
403
+ input: any;
1879
404
  options: {
1880
- maxExecutions?: number | undefined;
1881
- compliance?: "mcp-tool" | null | undefined;
1882
- exitEarly?: boolean | undefined;
405
+ maxExecutions: number;
406
+ compliance: "mcp-tool" | null;
407
+ mode: "linear" | "continuous";
1883
408
  uploadUrl?: string | undefined;
1884
409
  streamUrl?: string | undefined;
1885
410
  };
1886
- type: "CREATE_NODES";
1887
- nodes: ({
1888
- type: "entry";
1889
- id?: "__entry__" | undefined;
1890
- output?: (string | {
1891
- exit: true;
1892
- default?: true | undefined;
1893
- } | {
1894
- target: string;
1895
- default?: true | undefined;
1896
- exit?: false | undefined;
1897
- })[] | undefined;
1898
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
1899
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
1900
- meta?: Record<string, any> | undefined;
1901
- } | {
1902
- type: "service";
1903
- name: string;
1904
- version: string;
1905
- id?: string | undefined;
1906
- output?: (string | (({
1907
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1908
- } & ({
1909
- name: string;
1910
- default?: false | undefined;
1911
- } | {
1912
- default?: true | undefined;
1913
- })) & ({
1914
- target: string;
1915
- exit?: false | undefined;
1916
- } | {
1917
- exit: true;
1918
- })))[] | undefined;
1919
- inputSchema?: ({
1920
- type: "object";
1921
- } & import("json-schema").JSONSchema7) | {
1922
- type: "null";
1923
- } | undefined;
1924
- meta?: Record<string, any> | undefined;
1925
- configuration?: any;
1926
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
1927
- alias?: string | undefined;
1928
- ttl?: number | undefined;
1929
- retry?: number | undefined;
1930
- retryDelay?: number | undefined;
1931
- } | {
1932
- type: "catch";
1933
- subject: string;
1934
- id?: string | undefined;
1935
- output?: (string | (({
1936
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1937
- } & ({
1938
- name: string;
1939
- default?: false | undefined;
1940
- } | {
1941
- default?: true | undefined;
1942
- })) & ({
1943
- target: string;
1944
- exit?: false | undefined;
1945
- } | {
1946
- exit: true;
1947
- })))[] | undefined;
1948
- meta?: Record<string, any> | undefined;
1949
- } | {
1950
- type: "logic";
1951
- script: string;
1952
- id?: string | undefined;
1953
- output?: (string | (({
1954
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1955
- } & ({
1956
- name: string;
1957
- default?: false | undefined;
1958
- } | {
1959
- default?: true | undefined;
1960
- })) & ({
1961
- target: string;
1962
- exit?: false | undefined;
1963
- } | {
1964
- exit: true;
1965
- })))[] | undefined;
1966
- meta?: Record<string, any> | undefined;
1967
- alias?: string | undefined;
1968
- concurrency?: boolean | undefined;
1969
- language?: "javascript" | "python" | "typescript" | undefined;
1970
- maxExecutionTime?: number | undefined;
1971
- } | {
1972
- type: "or";
1973
- id?: string | undefined;
1974
- output?: (string | (({
1975
- schema?: import("json-schema").JSONSchema7 | null | undefined;
1976
- } & ({
1977
- name: string;
1978
- default?: false | undefined;
1979
- } | {
1980
- default?: true | undefined;
1981
- })) & ({
1982
- target: string;
1983
- exit?: false | undefined;
1984
- } | {
1985
- exit: true;
1986
- })))[] | undefined;
1987
- meta?: Record<string, any> | undefined;
1988
- alias?: string | undefined;
1989
- })[];
1990
- meta?: any;
1991
- input?: any;
1992
- }>]>;
411
+ }>>]>;
1993
412
  export type Command = z.infer<typeof commandSchema>;
1994
413
  export type CommandInput = z.input<typeof commandSchema>;
1995
414
  //# sourceMappingURL=command.d.ts.map