@requence/task 1.0.0-alpha.20 → 1.0.0-alpha.22

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 (73) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/{chunk-4r30g3ha.js → chunk-y4v98p2s.js} +20 -5
  3. package/build/{chunk-4r30g3ha.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 +202 -240
  7. package/build/index.js.map +12 -12
  8. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  9. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/index.d.ts +2 -43
  11. package/build/types/helpers/src/files/index.d.ts.map +1 -1
  12. package/build/types/helpers/src/files/mapOutput.d.ts +1 -1
  13. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -1
  14. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  15. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  16. package/build/types/helpers/src/index.d.ts +1 -0
  17. package/build/types/helpers/src/index.d.ts.map +1 -1
  18. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -0
  19. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  20. package/build/types/helpers/src/jsonschema/zod.d.ts +4 -12
  21. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  22. package/build/types/helpers/src/protocol/NodeTree.d.ts +504 -0
  23. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  24. package/build/types/helpers/src/protocol/NodesError.d.ts +5 -0
  25. package/build/types/helpers/src/protocol/NodesError.d.ts.map +1 -0
  26. package/build/types/helpers/src/protocol/command.d.ts +373 -1954
  27. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  28. package/build/types/helpers/src/protocol/index.d.ts +5 -7
  29. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  30. package/build/types/helpers/src/protocol/nodeOptions.d.ts +16 -0
  31. package/build/types/helpers/src/protocol/nodeOptions.d.ts.map +1 -0
  32. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  33. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  35. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/treeNodes.d.ts +606 -0
  37. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/update.d.ts +182 -17892
  39. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  40. package/build/types/helpers/src/utils/mapData.d.ts +4 -0
  41. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  42. package/build/types/helpers/src/utils/matchSchema.d.ts +1 -1
  43. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
  44. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +2 -0
  45. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  46. package/build/types/helpers/src/utils/types.d.ts +4 -0
  47. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  48. package/build/types/task/src/createTask.d.ts.map +1 -1
  49. package/build/types/task/src/types.d.ts +114 -5103
  50. package/build/types/task/src/types.d.ts.map +1 -1
  51. package/build/types/task/src/watchTasks.d.ts +3 -1
  52. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  53. package/package.json +2 -2
  54. package/build/types/helpers/src/context/context.d.ts +0 -156
  55. package/build/types/helpers/src/context/context.d.ts.map +0 -1
  56. package/build/types/helpers/src/context/index.d.ts +0 -2
  57. package/build/types/helpers/src/context/index.d.ts.map +0 -1
  58. package/build/types/helpers/src/protocol/createNodeMaps.d.ts +0 -10
  59. package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +0 -1
  60. package/build/types/helpers/src/protocol/getCycles.d.ts +0 -3
  61. package/build/types/helpers/src/protocol/getCycles.d.ts.map +0 -1
  62. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +0 -4
  63. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +0 -1
  64. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +0 -9
  65. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +0 -1
  66. package/build/types/helpers/src/protocol/identifyNode.d.ts +0 -4
  67. package/build/types/helpers/src/protocol/identifyNode.d.ts.map +0 -1
  68. package/build/types/helpers/src/protocol/node.d.ts +0 -1014
  69. package/build/types/helpers/src/protocol/node.d.ts.map +0 -1
  70. package/build/types/helpers/src/protocol/nodes.d.ts +0 -801
  71. package/build/types/helpers/src/protocol/nodes.d.ts.map +0 -1
  72. package/build/types/task/src/utils/mapOutput.d.ts +0 -2
  73. package/build/types/task/src/utils/mapOutput.d.ts.map +0 -1
@@ -1,801 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const nodesSchema: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
- type: z.ZodLiteral<"entry">;
4
- id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
5
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
6
- default: z.ZodDefault<z.ZodLiteral<true>>;
7
- exit: z.ZodLiteral<true>;
8
- }, "strip", z.ZodTypeAny, {
9
- default: true;
10
- exit: true;
11
- }, {
12
- exit: true;
13
- default?: true | undefined;
14
- }>, z.ZodObject<{
15
- default: z.ZodDefault<z.ZodLiteral<true>>;
16
- exit: z.ZodDefault<z.ZodLiteral<false>>;
17
- target: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- default: true;
20
- exit: false;
21
- target: string;
22
- }, {
23
- target: string;
24
- default?: true | undefined;
25
- exit?: false | undefined;
26
- }>]>, import("./node.ts").Output, string | {
27
- exit: true;
28
- default?: true | undefined;
29
- } | {
30
- target: string;
31
- default?: true | undefined;
32
- exit?: false | undefined;
33
- }>, "many">>, import("./node.ts").Output[], (string | {
34
- exit: true;
35
- default?: true | undefined;
36
- } | {
37
- target: string;
38
- default?: true | undefined;
39
- exit?: false | undefined;
40
- })[] | undefined>;
41
- inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
42
- metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
43
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
44
- }, "strip", z.ZodTypeAny, {
45
- type: "entry";
46
- id: "__entry__";
47
- output: import("./node.ts").Output[];
48
- inputSchema: import("json-schema").JSONSchema7;
49
- metaSchema: import("json-schema").JSONSchema7;
50
- meta?: Record<string, any> | undefined;
51
- }, {
52
- type: "entry";
53
- id?: "__entry__" | undefined;
54
- output?: (string | {
55
- exit: true;
56
- default?: true | undefined;
57
- } | {
58
- target: string;
59
- default?: true | undefined;
60
- exit?: false | undefined;
61
- })[] | undefined;
62
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
63
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
64
- meta?: Record<string, any> | undefined;
65
- }>, z.ZodObject<{
66
- type: z.ZodLiteral<"service">;
67
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
68
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
69
- }, "strip", z.ZodTypeAny, {
70
- schema?: import("json-schema").JSONSchema7 | null | undefined;
71
- }, {
72
- schema?: import("json-schema").JSONSchema7 | null | undefined;
73
- }>, z.ZodUnion<[z.ZodObject<{
74
- default: z.ZodDefault<z.ZodLiteral<false>>;
75
- name: z.ZodString;
76
- }, "strip", z.ZodTypeAny, {
77
- default: false;
78
- name: string;
79
- }, {
80
- name: string;
81
- default?: false | undefined;
82
- }>, z.ZodObject<{
83
- default: z.ZodDefault<z.ZodLiteral<true>>;
84
- }, "strip", z.ZodTypeAny, {
85
- default: true;
86
- }, {
87
- default?: true | undefined;
88
- }>]>>, z.ZodUnion<[z.ZodObject<{
89
- exit: z.ZodDefault<z.ZodLiteral<false>>;
90
- target: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- exit: false;
93
- target: string;
94
- }, {
95
- target: string;
96
- exit?: false | undefined;
97
- }>, z.ZodObject<{
98
- exit: z.ZodLiteral<true>;
99
- }, "strip", z.ZodTypeAny, {
100
- exit: true;
101
- }, {
102
- exit: true;
103
- }>]>>]>, import("./node.ts").Output, string | (({
104
- schema?: import("json-schema").JSONSchema7 | null | undefined;
105
- } & ({
106
- name: string;
107
- default?: false | undefined;
108
- } | {
109
- default?: true | undefined;
110
- })) & ({
111
- target: string;
112
- exit?: false | undefined;
113
- } | {
114
- exit: true;
115
- }))>, "many">>, import("./node.ts").Output[], (string | (({
116
- schema?: import("json-schema").JSONSchema7 | null | undefined;
117
- } & ({
118
- name: string;
119
- default?: false | undefined;
120
- } | {
121
- default?: true | undefined;
122
- })) & ({
123
- target: string;
124
- exit?: false | undefined;
125
- } | {
126
- exit: true;
127
- })))[] | undefined>;
128
- inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
129
- type: z.ZodLiteral<"object">;
130
- }, "strip", z.ZodTypeAny, {
131
- type: "object";
132
- }, {
133
- type: "object";
134
- }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
135
- type: z.ZodLiteral<"null">;
136
- }, "strip", z.ZodTypeAny, {
137
- type: "null";
138
- }, {
139
- type: "null";
140
- }>]>>;
141
- id: z.ZodDefault<z.ZodString>;
142
- name: z.ZodString;
143
- version: z.ZodString;
144
- configuration: z.ZodOptional<z.ZodAny>;
145
- configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
146
- alias: z.ZodOptional<z.ZodString>;
147
- ttl: z.ZodOptional<z.ZodNumber>;
148
- retry: z.ZodOptional<z.ZodNumber>;
149
- retryDelay: z.ZodOptional<z.ZodNumber>;
150
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
151
- }, "strip", z.ZodTypeAny, {
152
- type: "service";
153
- id: string;
154
- name: string;
155
- output: import("./node.ts").Output[];
156
- inputSchema: ({
157
- type: "object";
158
- } & import("json-schema").JSONSchema7) | {
159
- type: "null";
160
- };
161
- version: string;
162
- configurationSchema: import("json-schema").JSONSchema7;
163
- meta?: Record<string, any> | undefined;
164
- configuration?: any;
165
- alias?: string | undefined;
166
- ttl?: number | undefined;
167
- retry?: number | undefined;
168
- retryDelay?: number | undefined;
169
- }, {
170
- type: "service";
171
- name: string;
172
- version: string;
173
- id?: string | undefined;
174
- output?: (string | (({
175
- schema?: import("json-schema").JSONSchema7 | null | undefined;
176
- } & ({
177
- name: string;
178
- default?: false | undefined;
179
- } | {
180
- default?: true | undefined;
181
- })) & ({
182
- target: string;
183
- exit?: false | undefined;
184
- } | {
185
- exit: true;
186
- })))[] | undefined;
187
- inputSchema?: ({
188
- type: "object";
189
- } & import("json-schema").JSONSchema7) | {
190
- type: "null";
191
- } | undefined;
192
- meta?: Record<string, any> | undefined;
193
- configuration?: any;
194
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
195
- alias?: string | undefined;
196
- ttl?: number | undefined;
197
- retry?: number | undefined;
198
- retryDelay?: number | undefined;
199
- }>, z.ZodObject<{
200
- type: z.ZodLiteral<"catch">;
201
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
202
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
203
- }, "strip", z.ZodTypeAny, {
204
- schema?: import("json-schema").JSONSchema7 | null | undefined;
205
- }, {
206
- schema?: import("json-schema").JSONSchema7 | null | undefined;
207
- }>, z.ZodUnion<[z.ZodObject<{
208
- default: z.ZodDefault<z.ZodLiteral<false>>;
209
- name: z.ZodString;
210
- }, "strip", z.ZodTypeAny, {
211
- default: false;
212
- name: string;
213
- }, {
214
- name: string;
215
- default?: false | undefined;
216
- }>, z.ZodObject<{
217
- default: z.ZodDefault<z.ZodLiteral<true>>;
218
- }, "strip", z.ZodTypeAny, {
219
- default: true;
220
- }, {
221
- default?: true | undefined;
222
- }>]>>, z.ZodUnion<[z.ZodObject<{
223
- exit: z.ZodDefault<z.ZodLiteral<false>>;
224
- target: z.ZodString;
225
- }, "strip", z.ZodTypeAny, {
226
- exit: false;
227
- target: string;
228
- }, {
229
- target: string;
230
- exit?: false | undefined;
231
- }>, z.ZodObject<{
232
- exit: z.ZodLiteral<true>;
233
- }, "strip", z.ZodTypeAny, {
234
- exit: true;
235
- }, {
236
- exit: true;
237
- }>]>>]>, import("./node.ts").Output, string | (({
238
- schema?: import("json-schema").JSONSchema7 | null | undefined;
239
- } & ({
240
- name: string;
241
- default?: false | undefined;
242
- } | {
243
- default?: true | undefined;
244
- })) & ({
245
- target: string;
246
- exit?: false | undefined;
247
- } | {
248
- exit: true;
249
- }))>, "many">>, import("./node.ts").Output[], (string | (({
250
- schema?: import("json-schema").JSONSchema7 | null | undefined;
251
- } & ({
252
- name: string;
253
- default?: false | undefined;
254
- } | {
255
- default?: true | undefined;
256
- })) & ({
257
- target: string;
258
- exit?: false | undefined;
259
- } | {
260
- exit: true;
261
- })))[] | undefined>;
262
- id: z.ZodDefault<z.ZodString>;
263
- subject: z.ZodString;
264
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
265
- }, "strip", z.ZodTypeAny, {
266
- type: "catch";
267
- id: string;
268
- output: import("./node.ts").Output[];
269
- subject: string;
270
- meta?: Record<string, any> | undefined;
271
- }, {
272
- type: "catch";
273
- subject: string;
274
- id?: string | undefined;
275
- output?: (string | (({
276
- schema?: import("json-schema").JSONSchema7 | null | undefined;
277
- } & ({
278
- name: string;
279
- default?: false | undefined;
280
- } | {
281
- default?: true | undefined;
282
- })) & ({
283
- target: string;
284
- exit?: false | undefined;
285
- } | {
286
- exit: true;
287
- })))[] | undefined;
288
- meta?: Record<string, any> | undefined;
289
- }>, z.ZodObject<{
290
- type: z.ZodLiteral<"logic">;
291
- alias: z.ZodOptional<z.ZodString>;
292
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
293
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
294
- }, "strip", z.ZodTypeAny, {
295
- schema?: import("json-schema").JSONSchema7 | null | undefined;
296
- }, {
297
- schema?: import("json-schema").JSONSchema7 | null | undefined;
298
- }>, z.ZodUnion<[z.ZodObject<{
299
- default: z.ZodDefault<z.ZodLiteral<false>>;
300
- name: z.ZodString;
301
- }, "strip", z.ZodTypeAny, {
302
- default: false;
303
- name: string;
304
- }, {
305
- name: string;
306
- default?: false | undefined;
307
- }>, z.ZodObject<{
308
- default: z.ZodDefault<z.ZodLiteral<true>>;
309
- }, "strip", z.ZodTypeAny, {
310
- default: true;
311
- }, {
312
- default?: true | undefined;
313
- }>]>>, z.ZodUnion<[z.ZodObject<{
314
- exit: z.ZodDefault<z.ZodLiteral<false>>;
315
- target: z.ZodString;
316
- }, "strip", z.ZodTypeAny, {
317
- exit: false;
318
- target: string;
319
- }, {
320
- target: string;
321
- exit?: false | undefined;
322
- }>, z.ZodObject<{
323
- exit: z.ZodLiteral<true>;
324
- }, "strip", z.ZodTypeAny, {
325
- exit: true;
326
- }, {
327
- exit: true;
328
- }>]>>]>, import("./node.ts").Output, string | (({
329
- schema?: import("json-schema").JSONSchema7 | null | undefined;
330
- } & ({
331
- name: string;
332
- default?: false | undefined;
333
- } | {
334
- default?: true | undefined;
335
- })) & ({
336
- target: string;
337
- exit?: false | undefined;
338
- } | {
339
- exit: true;
340
- }))>, "many">>, import("./node.ts").Output[], (string | (({
341
- schema?: import("json-schema").JSONSchema7 | null | undefined;
342
- } & ({
343
- name: string;
344
- default?: false | undefined;
345
- } | {
346
- default?: true | undefined;
347
- })) & ({
348
- target: string;
349
- exit?: false | undefined;
350
- } | {
351
- exit: true;
352
- })))[] | undefined>;
353
- id: z.ZodDefault<z.ZodString>;
354
- script: z.ZodString;
355
- concurrency: z.ZodDefault<z.ZodBoolean>;
356
- language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
357
- maxExecutionTime: z.ZodDefault<z.ZodNumber>;
358
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
359
- }, "strip", z.ZodTypeAny, {
360
- type: "logic";
361
- id: string;
362
- output: import("./node.ts").Output[];
363
- script: string;
364
- concurrency: boolean;
365
- language: "javascript" | "python" | "typescript";
366
- maxExecutionTime: number;
367
- meta?: Record<string, any> | undefined;
368
- alias?: string | undefined;
369
- }, {
370
- type: "logic";
371
- script: string;
372
- id?: string | undefined;
373
- output?: (string | (({
374
- schema?: import("json-schema").JSONSchema7 | null | undefined;
375
- } & ({
376
- name: string;
377
- default?: false | undefined;
378
- } | {
379
- default?: true | undefined;
380
- })) & ({
381
- target: string;
382
- exit?: false | undefined;
383
- } | {
384
- exit: true;
385
- })))[] | undefined;
386
- meta?: Record<string, any> | undefined;
387
- alias?: string | undefined;
388
- concurrency?: boolean | undefined;
389
- language?: "javascript" | "python" | "typescript" | undefined;
390
- maxExecutionTime?: number | undefined;
391
- }>, z.ZodObject<{
392
- id: z.ZodDefault<z.ZodString>;
393
- type: z.ZodLiteral<"or">;
394
- alias: z.ZodOptional<z.ZodString>;
395
- output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
396
- schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
397
- }, "strip", z.ZodTypeAny, {
398
- schema?: import("json-schema").JSONSchema7 | null | undefined;
399
- }, {
400
- schema?: import("json-schema").JSONSchema7 | null | undefined;
401
- }>, z.ZodUnion<[z.ZodObject<{
402
- default: z.ZodDefault<z.ZodLiteral<false>>;
403
- name: z.ZodString;
404
- }, "strip", z.ZodTypeAny, {
405
- default: false;
406
- name: string;
407
- }, {
408
- name: string;
409
- default?: false | undefined;
410
- }>, z.ZodObject<{
411
- default: z.ZodDefault<z.ZodLiteral<true>>;
412
- }, "strip", z.ZodTypeAny, {
413
- default: true;
414
- }, {
415
- default?: true | undefined;
416
- }>]>>, z.ZodUnion<[z.ZodObject<{
417
- exit: z.ZodDefault<z.ZodLiteral<false>>;
418
- target: z.ZodString;
419
- }, "strip", z.ZodTypeAny, {
420
- exit: false;
421
- target: string;
422
- }, {
423
- target: string;
424
- exit?: false | undefined;
425
- }>, z.ZodObject<{
426
- exit: z.ZodLiteral<true>;
427
- }, "strip", z.ZodTypeAny, {
428
- exit: true;
429
- }, {
430
- exit: true;
431
- }>]>>]>, import("./node.ts").Output, string | (({
432
- schema?: import("json-schema").JSONSchema7 | null | undefined;
433
- } & ({
434
- name: string;
435
- default?: false | undefined;
436
- } | {
437
- default?: true | undefined;
438
- })) & ({
439
- target: string;
440
- exit?: false | undefined;
441
- } | {
442
- exit: true;
443
- }))>, "many">>, import("./node.ts").Output[], (string | (({
444
- schema?: import("json-schema").JSONSchema7 | null | undefined;
445
- } & ({
446
- name: string;
447
- default?: false | undefined;
448
- } | {
449
- default?: true | undefined;
450
- })) & ({
451
- target: string;
452
- exit?: false | undefined;
453
- } | {
454
- exit: true;
455
- })))[] | undefined>;
456
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
457
- }, "strip", z.ZodTypeAny, {
458
- type: "or";
459
- id: string;
460
- output: import("./node.ts").Output[];
461
- meta?: Record<string, any> | undefined;
462
- alias?: string | undefined;
463
- }, {
464
- type: "or";
465
- id?: string | undefined;
466
- output?: (string | (({
467
- schema?: import("json-schema").JSONSchema7 | null | undefined;
468
- } & ({
469
- name: string;
470
- default?: false | undefined;
471
- } | {
472
- default?: true | undefined;
473
- })) & ({
474
- target: string;
475
- exit?: false | undefined;
476
- } | {
477
- exit: true;
478
- })))[] | undefined;
479
- meta?: Record<string, any> | undefined;
480
- alias?: string | undefined;
481
- }>]>, "many">, ({
482
- type: "entry";
483
- id: "__entry__";
484
- output: import("./node.ts").Output[];
485
- inputSchema: import("json-schema").JSONSchema7;
486
- metaSchema: import("json-schema").JSONSchema7;
487
- meta?: Record<string, any> | undefined;
488
- } | {
489
- type: "service";
490
- id: string;
491
- name: string;
492
- output: import("./node.ts").Output[];
493
- inputSchema: ({
494
- type: "object";
495
- } & import("json-schema").JSONSchema7) | {
496
- type: "null";
497
- };
498
- version: string;
499
- configurationSchema: import("json-schema").JSONSchema7;
500
- meta?: Record<string, any> | undefined;
501
- configuration?: any;
502
- alias?: string | undefined;
503
- ttl?: number | undefined;
504
- retry?: number | undefined;
505
- retryDelay?: number | undefined;
506
- } | {
507
- type: "catch";
508
- id: string;
509
- output: import("./node.ts").Output[];
510
- subject: string;
511
- meta?: Record<string, any> | undefined;
512
- } | {
513
- type: "logic";
514
- id: string;
515
- output: import("./node.ts").Output[];
516
- script: string;
517
- concurrency: boolean;
518
- language: "javascript" | "python" | "typescript";
519
- maxExecutionTime: number;
520
- meta?: Record<string, any> | undefined;
521
- alias?: string | undefined;
522
- } | {
523
- type: "or";
524
- id: string;
525
- output: import("./node.ts").Output[];
526
- meta?: Record<string, any> | undefined;
527
- alias?: string | undefined;
528
- })[], ({
529
- type: "entry";
530
- id?: "__entry__" | undefined;
531
- output?: (string | {
532
- exit: true;
533
- default?: true | undefined;
534
- } | {
535
- target: string;
536
- default?: true | undefined;
537
- exit?: false | undefined;
538
- })[] | undefined;
539
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
540
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
541
- meta?: Record<string, any> | undefined;
542
- } | {
543
- type: "service";
544
- name: string;
545
- version: string;
546
- id?: string | undefined;
547
- output?: (string | (({
548
- schema?: import("json-schema").JSONSchema7 | null | undefined;
549
- } & ({
550
- name: string;
551
- default?: false | undefined;
552
- } | {
553
- default?: true | undefined;
554
- })) & ({
555
- target: string;
556
- exit?: false | undefined;
557
- } | {
558
- exit: true;
559
- })))[] | undefined;
560
- inputSchema?: ({
561
- type: "object";
562
- } & import("json-schema").JSONSchema7) | {
563
- type: "null";
564
- } | undefined;
565
- meta?: Record<string, any> | undefined;
566
- configuration?: any;
567
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
568
- alias?: string | undefined;
569
- ttl?: number | undefined;
570
- retry?: number | undefined;
571
- retryDelay?: number | undefined;
572
- } | {
573
- type: "catch";
574
- subject: string;
575
- id?: string | undefined;
576
- output?: (string | (({
577
- schema?: import("json-schema").JSONSchema7 | null | undefined;
578
- } & ({
579
- name: string;
580
- default?: false | undefined;
581
- } | {
582
- default?: true | undefined;
583
- })) & ({
584
- target: string;
585
- exit?: false | undefined;
586
- } | {
587
- exit: true;
588
- })))[] | undefined;
589
- meta?: Record<string, any> | undefined;
590
- } | {
591
- type: "logic";
592
- script: string;
593
- id?: string | undefined;
594
- output?: (string | (({
595
- schema?: import("json-schema").JSONSchema7 | null | undefined;
596
- } & ({
597
- name: string;
598
- default?: false | undefined;
599
- } | {
600
- default?: true | undefined;
601
- })) & ({
602
- target: string;
603
- exit?: false | undefined;
604
- } | {
605
- exit: true;
606
- })))[] | undefined;
607
- meta?: Record<string, any> | undefined;
608
- alias?: string | undefined;
609
- concurrency?: boolean | undefined;
610
- language?: "javascript" | "python" | "typescript" | undefined;
611
- maxExecutionTime?: number | undefined;
612
- } | {
613
- type: "or";
614
- id?: string | undefined;
615
- output?: (string | (({
616
- schema?: import("json-schema").JSONSchema7 | null | undefined;
617
- } & ({
618
- name: string;
619
- default?: false | undefined;
620
- } | {
621
- default?: true | undefined;
622
- })) & ({
623
- target: string;
624
- exit?: false | undefined;
625
- } | {
626
- exit: true;
627
- })))[] | undefined;
628
- meta?: Record<string, any> | undefined;
629
- alias?: string | undefined;
630
- })[]>, ({
631
- type: "entry";
632
- id: "__entry__";
633
- output: import("./node.ts").Output[];
634
- inputSchema: import("json-schema").JSONSchema7;
635
- metaSchema: import("json-schema").JSONSchema7;
636
- meta?: Record<string, any> | undefined;
637
- } | {
638
- type: "service";
639
- id: string;
640
- name: string;
641
- output: import("./node.ts").Output[];
642
- inputSchema: ({
643
- type: "object";
644
- } & import("json-schema").JSONSchema7) | {
645
- type: "null";
646
- };
647
- version: string;
648
- configurationSchema: import("json-schema").JSONSchema7;
649
- meta?: Record<string, any> | undefined;
650
- configuration?: any;
651
- alias?: string | undefined;
652
- ttl?: number | undefined;
653
- retry?: number | undefined;
654
- retryDelay?: number | undefined;
655
- } | {
656
- type: "catch";
657
- id: string;
658
- output: import("./node.ts").Output[];
659
- subject: string;
660
- meta?: Record<string, any> | undefined;
661
- } | {
662
- type: "logic";
663
- id: string;
664
- output: import("./node.ts").Output[];
665
- script: string;
666
- concurrency: boolean;
667
- language: "javascript" | "python" | "typescript";
668
- maxExecutionTime: number;
669
- meta?: Record<string, any> | undefined;
670
- alias?: string | undefined;
671
- } | {
672
- type: "or";
673
- id: string;
674
- output: import("./node.ts").Output[];
675
- meta?: Record<string, any> | undefined;
676
- alias?: string | undefined;
677
- })[], ({
678
- type: "entry";
679
- id?: "__entry__" | undefined;
680
- output?: (string | {
681
- exit: true;
682
- default?: true | undefined;
683
- } | {
684
- target: string;
685
- default?: true | undefined;
686
- exit?: false | undefined;
687
- })[] | undefined;
688
- inputSchema?: import("json-schema").JSONSchema7 | undefined;
689
- metaSchema?: import("json-schema").JSONSchema7 | undefined;
690
- meta?: Record<string, any> | undefined;
691
- } | {
692
- type: "service";
693
- name: string;
694
- version: string;
695
- id?: string | undefined;
696
- output?: (string | (({
697
- schema?: import("json-schema").JSONSchema7 | null | undefined;
698
- } & ({
699
- name: string;
700
- default?: false | undefined;
701
- } | {
702
- default?: true | undefined;
703
- })) & ({
704
- target: string;
705
- exit?: false | undefined;
706
- } | {
707
- exit: true;
708
- })))[] | undefined;
709
- inputSchema?: ({
710
- type: "object";
711
- } & import("json-schema").JSONSchema7) | {
712
- type: "null";
713
- } | undefined;
714
- meta?: Record<string, any> | undefined;
715
- configuration?: any;
716
- configurationSchema?: import("json-schema").JSONSchema7 | undefined;
717
- alias?: string | undefined;
718
- ttl?: number | undefined;
719
- retry?: number | undefined;
720
- retryDelay?: number | undefined;
721
- } | {
722
- type: "catch";
723
- subject: string;
724
- id?: string | undefined;
725
- output?: (string | (({
726
- schema?: import("json-schema").JSONSchema7 | null | undefined;
727
- } & ({
728
- name: string;
729
- default?: false | undefined;
730
- } | {
731
- default?: true | undefined;
732
- })) & ({
733
- target: string;
734
- exit?: false | undefined;
735
- } | {
736
- exit: true;
737
- })))[] | undefined;
738
- meta?: Record<string, any> | undefined;
739
- } | {
740
- type: "logic";
741
- script: string;
742
- id?: string | undefined;
743
- output?: (string | (({
744
- schema?: import("json-schema").JSONSchema7 | null | undefined;
745
- } & ({
746
- name: string;
747
- default?: false | undefined;
748
- } | {
749
- default?: true | undefined;
750
- })) & ({
751
- target: string;
752
- exit?: false | undefined;
753
- } | {
754
- exit: true;
755
- })))[] | undefined;
756
- meta?: Record<string, any> | undefined;
757
- alias?: string | undefined;
758
- concurrency?: boolean | undefined;
759
- language?: "javascript" | "python" | "typescript" | undefined;
760
- maxExecutionTime?: number | undefined;
761
- } | {
762
- type: "or";
763
- id?: string | undefined;
764
- output?: (string | (({
765
- schema?: import("json-schema").JSONSchema7 | null | undefined;
766
- } & ({
767
- name: string;
768
- default?: false | undefined;
769
- } | {
770
- default?: true | undefined;
771
- })) & ({
772
- target: string;
773
- exit?: false | undefined;
774
- } | {
775
- exit: true;
776
- })))[] | undefined;
777
- meta?: Record<string, any> | undefined;
778
- alias?: string | undefined;
779
- })[]>;
780
- export type InputNodes = z.input<typeof nodesSchema>;
781
- export type Nodes = z.infer<typeof nodesSchema>;
782
- export type Node = Nodes[number];
783
- export type EntryNode<N = Node> = N extends {
784
- type: 'entry';
785
- } ? N : never;
786
- export type ServiceNode<N = Node> = N extends {
787
- type: 'service';
788
- } ? N : never;
789
- export type CatchNode<N = Node> = N extends {
790
- type: 'catch';
791
- } ? N : never;
792
- export type OrNode<N = Node> = N extends {
793
- type: 'or';
794
- } ? N : never;
795
- export type LogicNode<N = Node> = N extends {
796
- type: 'logic';
797
- } ? N : never;
798
- export type OutputNode<N = Node> = N extends {
799
- output: any;
800
- } ? N : never;
801
- //# sourceMappingURL=nodes.d.ts.map