@requence/task 1.0.0-alpha.7 → 1.0.0-alpha.9

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 (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/{chunk-r3hqv0x2.js → chunk-ajdmm777.js} +3 -5
  3. package/build/{chunk-r3hqv0x2.js.map → chunk-ajdmm777.js.map} +4 -5
  4. package/build/cli.js +1 -1
  5. package/build/cli.js.map +1 -1
  6. package/build/index.js +79 -9
  7. package/build/index.js.map +8 -7
  8. package/build/types/helpers/src/context/context.d.ts +156 -0
  9. package/build/types/helpers/src/context/context.d.ts.map +1 -0
  10. package/build/types/helpers/src/context/index.d.ts +2 -0
  11. package/build/types/helpers/src/context/index.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  13. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  15. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/index.d.ts +48 -0
  17. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  19. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/mapOutput.d.ts +7 -0
  21. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  25. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  26. package/build/types/helpers/src/jsonschema/types.d.ts +11 -0
  27. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/validate.d.ts +27 -0
  29. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/zod.d.ts +20 -0
  31. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  32. package/build/types/helpers/src/protocol/command.d.ts +1969 -0
  33. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/createNodeMaps.d.ts +10 -0
  35. package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/getCycles.d.ts +3 -0
  37. package/build/types/helpers/src/protocol/getCycles.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +4 -0
  39. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +9 -0
  41. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/identifyNode.d.ts +4 -0
  43. package/build/types/helpers/src/protocol/identifyNode.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/index.d.ts +10 -0
  45. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/node.d.ts +1014 -0
  47. package/build/types/helpers/src/protocol/node.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/nodes.d.ts +801 -0
  49. package/build/types/helpers/src/protocol/nodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +3087 -0
  51. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  52. package/build/types/task/src/createTask.d.ts.map +1 -1
  53. package/build/types/task/src/index.d.ts +1 -1
  54. package/build/types/task/src/index.d.ts.map +1 -1
  55. package/build/types/task/src/utils/mapOutput.d.ts.map +1 -1
  56. package/package.json +5 -2
@@ -0,0 +1,1014 @@
1
+ import { z } from 'zod';
2
+ type Prettify<T> = {
3
+ [K in keyof T]: T[K];
4
+ } & {};
5
+ declare const outputDefinitionSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
6
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
9
+ }, {
10
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
11
+ }>, z.ZodUnion<[z.ZodObject<{
12
+ default: z.ZodDefault<z.ZodLiteral<false>>;
13
+ name: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ default: false;
16
+ name: string;
17
+ }, {
18
+ name: string;
19
+ default?: false | undefined;
20
+ }>, z.ZodObject<{
21
+ default: z.ZodDefault<z.ZodLiteral<true>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ default: true;
24
+ }, {
25
+ default?: true | undefined;
26
+ }>]>>, z.ZodUnion<[z.ZodObject<{
27
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
28
+ target: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ exit: false;
31
+ target: string;
32
+ }, {
33
+ target: string;
34
+ exit?: false | undefined;
35
+ }>, z.ZodObject<{
36
+ exit: z.ZodLiteral<true>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ exit: true;
39
+ }, {
40
+ exit: true;
41
+ }>]>>;
42
+ export type Output = Prettify<z.infer<typeof outputDefinitionSchema>>;
43
+ export declare const entryNodeSchema: z.ZodObject<{
44
+ type: z.ZodLiteral<"entry">;
45
+ id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
46
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
47
+ default: z.ZodDefault<z.ZodLiteral<true>>;
48
+ exit: z.ZodLiteral<true>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ default: true;
51
+ exit: true;
52
+ }, {
53
+ exit: true;
54
+ default?: true | undefined;
55
+ }>, z.ZodObject<{
56
+ default: z.ZodDefault<z.ZodLiteral<true>>;
57
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
58
+ target: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ default: true;
61
+ exit: false;
62
+ target: string;
63
+ }, {
64
+ target: string;
65
+ default?: true | undefined;
66
+ exit?: false | undefined;
67
+ }>]>, Output, string | {
68
+ exit: true;
69
+ default?: true | undefined;
70
+ } | {
71
+ target: string;
72
+ default?: true | undefined;
73
+ exit?: false | undefined;
74
+ }>, "many">>, Output[], (string | {
75
+ exit: true;
76
+ default?: true | undefined;
77
+ } | {
78
+ target: string;
79
+ default?: true | undefined;
80
+ exit?: false | undefined;
81
+ })[] | undefined>;
82
+ inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
83
+ metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
84
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ type: "entry";
87
+ id: "__entry__";
88
+ output: Output[];
89
+ inputSchema: import("json-schema").JSONSchema7;
90
+ metaSchema: import("json-schema").JSONSchema7;
91
+ meta?: Record<string, any> | undefined;
92
+ }, {
93
+ type: "entry";
94
+ id?: "__entry__" | undefined;
95
+ output?: (string | {
96
+ exit: true;
97
+ default?: true | undefined;
98
+ } | {
99
+ target: string;
100
+ default?: true | undefined;
101
+ exit?: false | undefined;
102
+ })[] | undefined;
103
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
104
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
105
+ meta?: Record<string, any> | undefined;
106
+ }>;
107
+ export type InputEntryNode = z.input<typeof entryNodeSchema>;
108
+ export declare const serviceNodeSchema: z.ZodObject<{
109
+ type: z.ZodLiteral<"service">;
110
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
111
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
114
+ }, {
115
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
116
+ }>, z.ZodUnion<[z.ZodObject<{
117
+ default: z.ZodDefault<z.ZodLiteral<false>>;
118
+ name: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ default: false;
121
+ name: string;
122
+ }, {
123
+ name: string;
124
+ default?: false | undefined;
125
+ }>, z.ZodObject<{
126
+ default: z.ZodDefault<z.ZodLiteral<true>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ default: true;
129
+ }, {
130
+ default?: true | undefined;
131
+ }>]>>, z.ZodUnion<[z.ZodObject<{
132
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
133
+ target: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ exit: false;
136
+ target: string;
137
+ }, {
138
+ target: string;
139
+ exit?: false | undefined;
140
+ }>, z.ZodObject<{
141
+ exit: z.ZodLiteral<true>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ exit: true;
144
+ }, {
145
+ exit: true;
146
+ }>]>>]>, Output, string | (({
147
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
148
+ } & ({
149
+ name: string;
150
+ default?: false | undefined;
151
+ } | {
152
+ default?: true | undefined;
153
+ })) & ({
154
+ target: string;
155
+ exit?: false | undefined;
156
+ } | {
157
+ exit: true;
158
+ }))>, "many">>, Output[], (string | (({
159
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
160
+ } & ({
161
+ name: string;
162
+ default?: false | undefined;
163
+ } | {
164
+ default?: true | undefined;
165
+ })) & ({
166
+ target: string;
167
+ exit?: false | undefined;
168
+ } | {
169
+ exit: true;
170
+ })))[] | undefined>;
171
+ inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
172
+ type: z.ZodLiteral<"object">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "object";
175
+ }, {
176
+ type: "object";
177
+ }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
178
+ type: z.ZodLiteral<"null">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "null";
181
+ }, {
182
+ type: "null";
183
+ }>]>>;
184
+ id: z.ZodDefault<z.ZodString>;
185
+ name: z.ZodString;
186
+ version: z.ZodString;
187
+ configuration: z.ZodOptional<z.ZodAny>;
188
+ configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
189
+ alias: z.ZodOptional<z.ZodString>;
190
+ ttl: z.ZodOptional<z.ZodNumber>;
191
+ retry: z.ZodOptional<z.ZodNumber>;
192
+ retryDelay: z.ZodOptional<z.ZodNumber>;
193
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ type: "service";
196
+ id: string;
197
+ name: string;
198
+ output: Output[];
199
+ inputSchema: ({
200
+ type: "object";
201
+ } & import("json-schema").JSONSchema7) | {
202
+ type: "null";
203
+ };
204
+ version: string;
205
+ configurationSchema: import("json-schema").JSONSchema7;
206
+ meta?: Record<string, any> | undefined;
207
+ configuration?: any;
208
+ alias?: string | undefined;
209
+ ttl?: number | undefined;
210
+ retry?: number | undefined;
211
+ retryDelay?: number | undefined;
212
+ }, {
213
+ type: "service";
214
+ name: string;
215
+ version: string;
216
+ id?: string | undefined;
217
+ output?: (string | (({
218
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
219
+ } & ({
220
+ name: string;
221
+ default?: false | undefined;
222
+ } | {
223
+ default?: true | undefined;
224
+ })) & ({
225
+ target: string;
226
+ exit?: false | undefined;
227
+ } | {
228
+ exit: true;
229
+ })))[] | undefined;
230
+ inputSchema?: ({
231
+ type: "object";
232
+ } & import("json-schema").JSONSchema7) | {
233
+ type: "null";
234
+ } | undefined;
235
+ meta?: Record<string, any> | undefined;
236
+ configuration?: any;
237
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
238
+ alias?: string | undefined;
239
+ ttl?: number | undefined;
240
+ retry?: number | undefined;
241
+ retryDelay?: number | undefined;
242
+ }>;
243
+ export type InputServiceNode = z.input<typeof serviceNodeSchema>;
244
+ export declare const catchNodeSchema: z.ZodObject<{
245
+ type: z.ZodLiteral<"catch">;
246
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
247
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
250
+ }, {
251
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
252
+ }>, z.ZodUnion<[z.ZodObject<{
253
+ default: z.ZodDefault<z.ZodLiteral<false>>;
254
+ name: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ default: false;
257
+ name: string;
258
+ }, {
259
+ name: string;
260
+ default?: false | undefined;
261
+ }>, z.ZodObject<{
262
+ default: z.ZodDefault<z.ZodLiteral<true>>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ default: true;
265
+ }, {
266
+ default?: true | undefined;
267
+ }>]>>, z.ZodUnion<[z.ZodObject<{
268
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
269
+ target: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ exit: false;
272
+ target: string;
273
+ }, {
274
+ target: string;
275
+ exit?: false | undefined;
276
+ }>, z.ZodObject<{
277
+ exit: z.ZodLiteral<true>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ exit: true;
280
+ }, {
281
+ exit: true;
282
+ }>]>>]>, Output, string | (({
283
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
284
+ } & ({
285
+ name: string;
286
+ default?: false | undefined;
287
+ } | {
288
+ default?: true | undefined;
289
+ })) & ({
290
+ target: string;
291
+ exit?: false | undefined;
292
+ } | {
293
+ exit: true;
294
+ }))>, "many">>, Output[], (string | (({
295
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
296
+ } & ({
297
+ name: string;
298
+ default?: false | undefined;
299
+ } | {
300
+ default?: true | undefined;
301
+ })) & ({
302
+ target: string;
303
+ exit?: false | undefined;
304
+ } | {
305
+ exit: true;
306
+ })))[] | undefined>;
307
+ id: z.ZodDefault<z.ZodString>;
308
+ subject: z.ZodString;
309
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ type: "catch";
312
+ id: string;
313
+ output: Output[];
314
+ subject: string;
315
+ meta?: Record<string, any> | undefined;
316
+ }, {
317
+ type: "catch";
318
+ subject: string;
319
+ id?: string | undefined;
320
+ output?: (string | (({
321
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
322
+ } & ({
323
+ name: string;
324
+ default?: false | undefined;
325
+ } | {
326
+ default?: true | undefined;
327
+ })) & ({
328
+ target: string;
329
+ exit?: false | undefined;
330
+ } | {
331
+ exit: true;
332
+ })))[] | undefined;
333
+ meta?: Record<string, any> | undefined;
334
+ }>;
335
+ export type InputCacheNode = z.input<typeof catchNodeSchema>;
336
+ export declare const logicNodeSchema: z.ZodObject<{
337
+ type: z.ZodLiteral<"logic">;
338
+ alias: z.ZodOptional<z.ZodString>;
339
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
340
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
343
+ }, {
344
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
345
+ }>, z.ZodUnion<[z.ZodObject<{
346
+ default: z.ZodDefault<z.ZodLiteral<false>>;
347
+ name: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ default: false;
350
+ name: string;
351
+ }, {
352
+ name: string;
353
+ default?: false | undefined;
354
+ }>, z.ZodObject<{
355
+ default: z.ZodDefault<z.ZodLiteral<true>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ default: true;
358
+ }, {
359
+ default?: true | undefined;
360
+ }>]>>, z.ZodUnion<[z.ZodObject<{
361
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
362
+ target: z.ZodString;
363
+ }, "strip", z.ZodTypeAny, {
364
+ exit: false;
365
+ target: string;
366
+ }, {
367
+ target: string;
368
+ exit?: false | undefined;
369
+ }>, z.ZodObject<{
370
+ exit: z.ZodLiteral<true>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ exit: true;
373
+ }, {
374
+ exit: true;
375
+ }>]>>]>, Output, string | (({
376
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
377
+ } & ({
378
+ name: string;
379
+ default?: false | undefined;
380
+ } | {
381
+ default?: true | undefined;
382
+ })) & ({
383
+ target: string;
384
+ exit?: false | undefined;
385
+ } | {
386
+ exit: true;
387
+ }))>, "many">>, Output[], (string | (({
388
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
389
+ } & ({
390
+ name: string;
391
+ default?: false | undefined;
392
+ } | {
393
+ default?: true | undefined;
394
+ })) & ({
395
+ target: string;
396
+ exit?: false | undefined;
397
+ } | {
398
+ exit: true;
399
+ })))[] | undefined>;
400
+ id: z.ZodDefault<z.ZodString>;
401
+ script: z.ZodString;
402
+ concurrency: z.ZodDefault<z.ZodBoolean>;
403
+ language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
404
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
405
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ type: "logic";
408
+ id: string;
409
+ output: Output[];
410
+ script: string;
411
+ concurrency: boolean;
412
+ language: "javascript" | "python" | "typescript";
413
+ maxExecutionTime: number;
414
+ meta?: Record<string, any> | undefined;
415
+ alias?: string | undefined;
416
+ }, {
417
+ type: "logic";
418
+ script: string;
419
+ id?: string | undefined;
420
+ output?: (string | (({
421
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
422
+ } & ({
423
+ name: string;
424
+ default?: false | undefined;
425
+ } | {
426
+ default?: true | undefined;
427
+ })) & ({
428
+ target: string;
429
+ exit?: false | undefined;
430
+ } | {
431
+ exit: true;
432
+ })))[] | undefined;
433
+ meta?: Record<string, any> | undefined;
434
+ alias?: string | undefined;
435
+ concurrency?: boolean | undefined;
436
+ language?: "javascript" | "python" | "typescript" | undefined;
437
+ maxExecutionTime?: number | undefined;
438
+ }>;
439
+ export type InputLogicNode = z.input<typeof logicNodeSchema>;
440
+ export declare const orNodeSchema: z.ZodObject<{
441
+ id: z.ZodDefault<z.ZodString>;
442
+ type: z.ZodLiteral<"or">;
443
+ alias: z.ZodOptional<z.ZodString>;
444
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
445
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
448
+ }, {
449
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
450
+ }>, z.ZodUnion<[z.ZodObject<{
451
+ default: z.ZodDefault<z.ZodLiteral<false>>;
452
+ name: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ default: false;
455
+ name: string;
456
+ }, {
457
+ name: string;
458
+ default?: false | undefined;
459
+ }>, z.ZodObject<{
460
+ default: z.ZodDefault<z.ZodLiteral<true>>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ default: true;
463
+ }, {
464
+ default?: true | undefined;
465
+ }>]>>, z.ZodUnion<[z.ZodObject<{
466
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
467
+ target: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ exit: false;
470
+ target: string;
471
+ }, {
472
+ target: string;
473
+ exit?: false | undefined;
474
+ }>, z.ZodObject<{
475
+ exit: z.ZodLiteral<true>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ exit: true;
478
+ }, {
479
+ exit: true;
480
+ }>]>>]>, Output, string | (({
481
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
482
+ } & ({
483
+ name: string;
484
+ default?: false | undefined;
485
+ } | {
486
+ default?: true | undefined;
487
+ })) & ({
488
+ target: string;
489
+ exit?: false | undefined;
490
+ } | {
491
+ exit: true;
492
+ }))>, "many">>, Output[], (string | (({
493
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
494
+ } & ({
495
+ name: string;
496
+ default?: false | undefined;
497
+ } | {
498
+ default?: true | undefined;
499
+ })) & ({
500
+ target: string;
501
+ exit?: false | undefined;
502
+ } | {
503
+ exit: true;
504
+ })))[] | undefined>;
505
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ type: "or";
508
+ id: string;
509
+ output: Output[];
510
+ meta?: Record<string, any> | undefined;
511
+ alias?: string | undefined;
512
+ }, {
513
+ type: "or";
514
+ id?: string | undefined;
515
+ output?: (string | (({
516
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
517
+ } & ({
518
+ name: string;
519
+ default?: false | undefined;
520
+ } | {
521
+ default?: true | undefined;
522
+ })) & ({
523
+ target: string;
524
+ exit?: false | undefined;
525
+ } | {
526
+ exit: true;
527
+ })))[] | undefined;
528
+ meta?: Record<string, any> | undefined;
529
+ alias?: string | undefined;
530
+ }>;
531
+ export type InputOrNode = z.input<typeof orNodeSchema>;
532
+ export declare const nodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
533
+ type: z.ZodLiteral<"entry">;
534
+ id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
535
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
536
+ default: z.ZodDefault<z.ZodLiteral<true>>;
537
+ exit: z.ZodLiteral<true>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ default: true;
540
+ exit: true;
541
+ }, {
542
+ exit: true;
543
+ default?: true | undefined;
544
+ }>, z.ZodObject<{
545
+ default: z.ZodDefault<z.ZodLiteral<true>>;
546
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
547
+ target: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ default: true;
550
+ exit: false;
551
+ target: string;
552
+ }, {
553
+ target: string;
554
+ default?: true | undefined;
555
+ exit?: false | undefined;
556
+ }>]>, Output, string | {
557
+ exit: true;
558
+ default?: true | undefined;
559
+ } | {
560
+ target: string;
561
+ default?: true | undefined;
562
+ exit?: false | undefined;
563
+ }>, "many">>, Output[], (string | {
564
+ exit: true;
565
+ default?: true | undefined;
566
+ } | {
567
+ target: string;
568
+ default?: true | undefined;
569
+ exit?: false | undefined;
570
+ })[] | undefined>;
571
+ inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
572
+ metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
573
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: "entry";
576
+ id: "__entry__";
577
+ output: Output[];
578
+ inputSchema: import("json-schema").JSONSchema7;
579
+ metaSchema: import("json-schema").JSONSchema7;
580
+ meta?: Record<string, any> | undefined;
581
+ }, {
582
+ type: "entry";
583
+ id?: "__entry__" | undefined;
584
+ output?: (string | {
585
+ exit: true;
586
+ default?: true | undefined;
587
+ } | {
588
+ target: string;
589
+ default?: true | undefined;
590
+ exit?: false | undefined;
591
+ })[] | undefined;
592
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
593
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
594
+ meta?: Record<string, any> | undefined;
595
+ }>, z.ZodObject<{
596
+ type: z.ZodLiteral<"service">;
597
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
598
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
601
+ }, {
602
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
603
+ }>, z.ZodUnion<[z.ZodObject<{
604
+ default: z.ZodDefault<z.ZodLiteral<false>>;
605
+ name: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ default: false;
608
+ name: string;
609
+ }, {
610
+ name: string;
611
+ default?: false | undefined;
612
+ }>, z.ZodObject<{
613
+ default: z.ZodDefault<z.ZodLiteral<true>>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ default: true;
616
+ }, {
617
+ default?: true | undefined;
618
+ }>]>>, z.ZodUnion<[z.ZodObject<{
619
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
620
+ target: z.ZodString;
621
+ }, "strip", z.ZodTypeAny, {
622
+ exit: false;
623
+ target: string;
624
+ }, {
625
+ target: string;
626
+ exit?: false | undefined;
627
+ }>, z.ZodObject<{
628
+ exit: z.ZodLiteral<true>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ exit: true;
631
+ }, {
632
+ exit: true;
633
+ }>]>>]>, Output, string | (({
634
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
635
+ } & ({
636
+ name: string;
637
+ default?: false | undefined;
638
+ } | {
639
+ default?: true | undefined;
640
+ })) & ({
641
+ target: string;
642
+ exit?: false | undefined;
643
+ } | {
644
+ exit: true;
645
+ }))>, "many">>, Output[], (string | (({
646
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
647
+ } & ({
648
+ name: string;
649
+ default?: false | undefined;
650
+ } | {
651
+ default?: true | undefined;
652
+ })) & ({
653
+ target: string;
654
+ exit?: false | undefined;
655
+ } | {
656
+ exit: true;
657
+ })))[] | undefined>;
658
+ inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
659
+ type: z.ZodLiteral<"object">;
660
+ }, "strip", z.ZodTypeAny, {
661
+ type: "object";
662
+ }, {
663
+ type: "object";
664
+ }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
665
+ type: z.ZodLiteral<"null">;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "null";
668
+ }, {
669
+ type: "null";
670
+ }>]>>;
671
+ id: z.ZodDefault<z.ZodString>;
672
+ name: z.ZodString;
673
+ version: z.ZodString;
674
+ configuration: z.ZodOptional<z.ZodAny>;
675
+ configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
676
+ alias: z.ZodOptional<z.ZodString>;
677
+ ttl: z.ZodOptional<z.ZodNumber>;
678
+ retry: z.ZodOptional<z.ZodNumber>;
679
+ retryDelay: z.ZodOptional<z.ZodNumber>;
680
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ type: "service";
683
+ id: string;
684
+ name: string;
685
+ output: Output[];
686
+ inputSchema: ({
687
+ type: "object";
688
+ } & import("json-schema").JSONSchema7) | {
689
+ type: "null";
690
+ };
691
+ version: string;
692
+ configurationSchema: import("json-schema").JSONSchema7;
693
+ meta?: Record<string, any> | undefined;
694
+ configuration?: any;
695
+ alias?: string | undefined;
696
+ ttl?: number | undefined;
697
+ retry?: number | undefined;
698
+ retryDelay?: number | undefined;
699
+ }, {
700
+ type: "service";
701
+ name: string;
702
+ version: string;
703
+ id?: string | undefined;
704
+ output?: (string | (({
705
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
706
+ } & ({
707
+ name: string;
708
+ default?: false | undefined;
709
+ } | {
710
+ default?: true | undefined;
711
+ })) & ({
712
+ target: string;
713
+ exit?: false | undefined;
714
+ } | {
715
+ exit: true;
716
+ })))[] | undefined;
717
+ inputSchema?: ({
718
+ type: "object";
719
+ } & import("json-schema").JSONSchema7) | {
720
+ type: "null";
721
+ } | undefined;
722
+ meta?: Record<string, any> | undefined;
723
+ configuration?: any;
724
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
725
+ alias?: string | undefined;
726
+ ttl?: number | undefined;
727
+ retry?: number | undefined;
728
+ retryDelay?: number | undefined;
729
+ }>, z.ZodObject<{
730
+ type: z.ZodLiteral<"catch">;
731
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
732
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
735
+ }, {
736
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
737
+ }>, z.ZodUnion<[z.ZodObject<{
738
+ default: z.ZodDefault<z.ZodLiteral<false>>;
739
+ name: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ default: false;
742
+ name: string;
743
+ }, {
744
+ name: string;
745
+ default?: false | undefined;
746
+ }>, z.ZodObject<{
747
+ default: z.ZodDefault<z.ZodLiteral<true>>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ default: true;
750
+ }, {
751
+ default?: true | undefined;
752
+ }>]>>, z.ZodUnion<[z.ZodObject<{
753
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
754
+ target: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ exit: false;
757
+ target: string;
758
+ }, {
759
+ target: string;
760
+ exit?: false | undefined;
761
+ }>, z.ZodObject<{
762
+ exit: z.ZodLiteral<true>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ exit: true;
765
+ }, {
766
+ exit: true;
767
+ }>]>>]>, Output, string | (({
768
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
769
+ } & ({
770
+ name: string;
771
+ default?: false | undefined;
772
+ } | {
773
+ default?: true | undefined;
774
+ })) & ({
775
+ target: string;
776
+ exit?: false | undefined;
777
+ } | {
778
+ exit: true;
779
+ }))>, "many">>, Output[], (string | (({
780
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
781
+ } & ({
782
+ name: string;
783
+ default?: false | undefined;
784
+ } | {
785
+ default?: true | undefined;
786
+ })) & ({
787
+ target: string;
788
+ exit?: false | undefined;
789
+ } | {
790
+ exit: true;
791
+ })))[] | undefined>;
792
+ id: z.ZodDefault<z.ZodString>;
793
+ subject: z.ZodString;
794
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
795
+ }, "strip", z.ZodTypeAny, {
796
+ type: "catch";
797
+ id: string;
798
+ output: Output[];
799
+ subject: string;
800
+ meta?: Record<string, any> | undefined;
801
+ }, {
802
+ type: "catch";
803
+ subject: string;
804
+ id?: string | undefined;
805
+ output?: (string | (({
806
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
807
+ } & ({
808
+ name: string;
809
+ default?: false | undefined;
810
+ } | {
811
+ default?: true | undefined;
812
+ })) & ({
813
+ target: string;
814
+ exit?: false | undefined;
815
+ } | {
816
+ exit: true;
817
+ })))[] | undefined;
818
+ meta?: Record<string, any> | undefined;
819
+ }>, z.ZodObject<{
820
+ type: z.ZodLiteral<"logic">;
821
+ alias: z.ZodOptional<z.ZodString>;
822
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
823
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
826
+ }, {
827
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
828
+ }>, z.ZodUnion<[z.ZodObject<{
829
+ default: z.ZodDefault<z.ZodLiteral<false>>;
830
+ name: z.ZodString;
831
+ }, "strip", z.ZodTypeAny, {
832
+ default: false;
833
+ name: string;
834
+ }, {
835
+ name: string;
836
+ default?: false | undefined;
837
+ }>, z.ZodObject<{
838
+ default: z.ZodDefault<z.ZodLiteral<true>>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ default: true;
841
+ }, {
842
+ default?: true | undefined;
843
+ }>]>>, z.ZodUnion<[z.ZodObject<{
844
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
845
+ target: z.ZodString;
846
+ }, "strip", z.ZodTypeAny, {
847
+ exit: false;
848
+ target: string;
849
+ }, {
850
+ target: string;
851
+ exit?: false | undefined;
852
+ }>, z.ZodObject<{
853
+ exit: z.ZodLiteral<true>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ exit: true;
856
+ }, {
857
+ exit: true;
858
+ }>]>>]>, Output, string | (({
859
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
860
+ } & ({
861
+ name: string;
862
+ default?: false | undefined;
863
+ } | {
864
+ default?: true | undefined;
865
+ })) & ({
866
+ target: string;
867
+ exit?: false | undefined;
868
+ } | {
869
+ exit: true;
870
+ }))>, "many">>, Output[], (string | (({
871
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
872
+ } & ({
873
+ name: string;
874
+ default?: false | undefined;
875
+ } | {
876
+ default?: true | undefined;
877
+ })) & ({
878
+ target: string;
879
+ exit?: false | undefined;
880
+ } | {
881
+ exit: true;
882
+ })))[] | undefined>;
883
+ id: z.ZodDefault<z.ZodString>;
884
+ script: z.ZodString;
885
+ concurrency: z.ZodDefault<z.ZodBoolean>;
886
+ language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
887
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
888
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ type: "logic";
891
+ id: string;
892
+ output: Output[];
893
+ script: string;
894
+ concurrency: boolean;
895
+ language: "javascript" | "python" | "typescript";
896
+ maxExecutionTime: number;
897
+ meta?: Record<string, any> | undefined;
898
+ alias?: string | undefined;
899
+ }, {
900
+ type: "logic";
901
+ script: string;
902
+ id?: string | undefined;
903
+ output?: (string | (({
904
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
905
+ } & ({
906
+ name: string;
907
+ default?: false | undefined;
908
+ } | {
909
+ default?: true | undefined;
910
+ })) & ({
911
+ target: string;
912
+ exit?: false | undefined;
913
+ } | {
914
+ exit: true;
915
+ })))[] | undefined;
916
+ meta?: Record<string, any> | undefined;
917
+ alias?: string | undefined;
918
+ concurrency?: boolean | undefined;
919
+ language?: "javascript" | "python" | "typescript" | undefined;
920
+ maxExecutionTime?: number | undefined;
921
+ }>, z.ZodObject<{
922
+ id: z.ZodDefault<z.ZodString>;
923
+ type: z.ZodLiteral<"or">;
924
+ alias: z.ZodOptional<z.ZodString>;
925
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
926
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
929
+ }, {
930
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
931
+ }>, z.ZodUnion<[z.ZodObject<{
932
+ default: z.ZodDefault<z.ZodLiteral<false>>;
933
+ name: z.ZodString;
934
+ }, "strip", z.ZodTypeAny, {
935
+ default: false;
936
+ name: string;
937
+ }, {
938
+ name: string;
939
+ default?: false | undefined;
940
+ }>, z.ZodObject<{
941
+ default: z.ZodDefault<z.ZodLiteral<true>>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ default: true;
944
+ }, {
945
+ default?: true | undefined;
946
+ }>]>>, z.ZodUnion<[z.ZodObject<{
947
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
948
+ target: z.ZodString;
949
+ }, "strip", z.ZodTypeAny, {
950
+ exit: false;
951
+ target: string;
952
+ }, {
953
+ target: string;
954
+ exit?: false | undefined;
955
+ }>, z.ZodObject<{
956
+ exit: z.ZodLiteral<true>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ exit: true;
959
+ }, {
960
+ exit: true;
961
+ }>]>>]>, Output, string | (({
962
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
963
+ } & ({
964
+ name: string;
965
+ default?: false | undefined;
966
+ } | {
967
+ default?: true | undefined;
968
+ })) & ({
969
+ target: string;
970
+ exit?: false | undefined;
971
+ } | {
972
+ exit: true;
973
+ }))>, "many">>, Output[], (string | (({
974
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
975
+ } & ({
976
+ name: string;
977
+ default?: false | undefined;
978
+ } | {
979
+ default?: true | undefined;
980
+ })) & ({
981
+ target: string;
982
+ exit?: false | undefined;
983
+ } | {
984
+ exit: true;
985
+ })))[] | undefined>;
986
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
987
+ }, "strip", z.ZodTypeAny, {
988
+ type: "or";
989
+ id: string;
990
+ output: Output[];
991
+ meta?: Record<string, any> | undefined;
992
+ alias?: string | undefined;
993
+ }, {
994
+ type: "or";
995
+ id?: string | undefined;
996
+ output?: (string | (({
997
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
998
+ } & ({
999
+ name: string;
1000
+ default?: false | undefined;
1001
+ } | {
1002
+ default?: true | undefined;
1003
+ })) & ({
1004
+ target: string;
1005
+ exit?: false | undefined;
1006
+ } | {
1007
+ exit: true;
1008
+ })))[] | undefined;
1009
+ meta?: Record<string, any> | undefined;
1010
+ alias?: string | undefined;
1011
+ }>]>;
1012
+ export type InputNode = z.input<typeof nodeSchema>;
1013
+ export {};
1014
+ //# sourceMappingURL=node.d.ts.map