@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,3087 @@
1
+ import { z } from 'zod';
2
+ declare const nodeStartUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
4
+ }, {
5
+ nodeId: z.ZodString;
6
+ }>, {
7
+ type: z.ZodLiteral<"NODE_START">;
8
+ context: z.ZodObject<{
9
+ input: z.ZodAny;
10
+ meta: z.ZodAny;
11
+ tenant: z.ZodObject<{
12
+ name: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ name: string;
15
+ }, {
16
+ name: string;
17
+ }>;
18
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
19
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
20
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ errors: Record<string, string>;
23
+ data: Record<string, any>;
24
+ tenant: {
25
+ name: string;
26
+ };
27
+ dates: Record<string, string>;
28
+ meta?: any;
29
+ input?: any;
30
+ }, {
31
+ errors: Record<string, string>;
32
+ data: Record<string, any>;
33
+ tenant: {
34
+ name: string;
35
+ };
36
+ dates: Record<string, string>;
37
+ meta?: any;
38
+ input?: any;
39
+ }>;
40
+ }>, "strip", z.ZodTypeAny, {
41
+ type: "NODE_START";
42
+ timestamp: Date;
43
+ nodeId: string;
44
+ context: {
45
+ errors: Record<string, string>;
46
+ data: Record<string, any>;
47
+ tenant: {
48
+ name: string;
49
+ };
50
+ dates: Record<string, string>;
51
+ meta?: any;
52
+ input?: any;
53
+ };
54
+ }, {
55
+ type: "NODE_START";
56
+ timestamp: number;
57
+ nodeId: string;
58
+ context: {
59
+ errors: Record<string, string>;
60
+ data: Record<string, any>;
61
+ tenant: {
62
+ name: string;
63
+ };
64
+ dates: Record<string, string>;
65
+ meta?: any;
66
+ input?: any;
67
+ };
68
+ }>;
69
+ export type NodeStartUpdate = z.infer<typeof nodeStartUpdateSchema>;
70
+ declare const nodeErrorUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
71
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
72
+ }, {
73
+ nodeId: z.ZodString;
74
+ }>, {
75
+ type: z.ZodLiteral<"NODE_ERROR">;
76
+ error: z.ZodString;
77
+ context: z.ZodObject<{
78
+ input: z.ZodAny;
79
+ meta: z.ZodAny;
80
+ tenant: z.ZodObject<{
81
+ name: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ name: string;
84
+ }, {
85
+ name: string;
86
+ }>;
87
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
88
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
89
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ errors: Record<string, string>;
92
+ data: Record<string, any>;
93
+ tenant: {
94
+ name: string;
95
+ };
96
+ dates: Record<string, string>;
97
+ meta?: any;
98
+ input?: any;
99
+ }, {
100
+ errors: Record<string, string>;
101
+ data: Record<string, any>;
102
+ tenant: {
103
+ name: string;
104
+ };
105
+ dates: Record<string, string>;
106
+ meta?: any;
107
+ input?: any;
108
+ }>;
109
+ }>, "strip", z.ZodTypeAny, {
110
+ type: "NODE_ERROR";
111
+ timestamp: Date;
112
+ error: string;
113
+ nodeId: string;
114
+ context: {
115
+ errors: Record<string, string>;
116
+ data: Record<string, any>;
117
+ tenant: {
118
+ name: string;
119
+ };
120
+ dates: Record<string, string>;
121
+ meta?: any;
122
+ input?: any;
123
+ };
124
+ }, {
125
+ type: "NODE_ERROR";
126
+ timestamp: number;
127
+ error: string;
128
+ nodeId: string;
129
+ context: {
130
+ errors: Record<string, string>;
131
+ data: Record<string, any>;
132
+ tenant: {
133
+ name: string;
134
+ };
135
+ dates: Record<string, string>;
136
+ meta?: any;
137
+ input?: any;
138
+ };
139
+ }>;
140
+ export type NodeErrorUpdate = z.infer<typeof nodeErrorUpdateSchema>;
141
+ declare const nodeUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
142
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
143
+ }, {
144
+ nodeId: z.ZodString;
145
+ }>, {
146
+ type: z.ZodLiteral<"NODE_UPDATE">;
147
+ output: z.ZodString;
148
+ data: z.ZodUnknown;
149
+ context: z.ZodObject<{
150
+ input: z.ZodAny;
151
+ meta: z.ZodAny;
152
+ tenant: z.ZodObject<{
153
+ name: z.ZodString;
154
+ }, "strip", z.ZodTypeAny, {
155
+ name: string;
156
+ }, {
157
+ name: string;
158
+ }>;
159
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
160
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
161
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ errors: Record<string, string>;
164
+ data: Record<string, any>;
165
+ tenant: {
166
+ name: string;
167
+ };
168
+ dates: Record<string, string>;
169
+ meta?: any;
170
+ input?: any;
171
+ }, {
172
+ errors: Record<string, string>;
173
+ data: Record<string, any>;
174
+ tenant: {
175
+ name: string;
176
+ };
177
+ dates: Record<string, string>;
178
+ meta?: any;
179
+ input?: any;
180
+ }>;
181
+ }>, "strip", z.ZodTypeAny, {
182
+ type: "NODE_UPDATE";
183
+ output: string;
184
+ timestamp: Date;
185
+ nodeId: string;
186
+ context: {
187
+ errors: Record<string, string>;
188
+ data: Record<string, any>;
189
+ tenant: {
190
+ name: string;
191
+ };
192
+ dates: Record<string, string>;
193
+ meta?: any;
194
+ input?: any;
195
+ };
196
+ data?: unknown;
197
+ }, {
198
+ type: "NODE_UPDATE";
199
+ output: string;
200
+ timestamp: number;
201
+ nodeId: string;
202
+ context: {
203
+ errors: Record<string, string>;
204
+ data: Record<string, any>;
205
+ tenant: {
206
+ name: string;
207
+ };
208
+ dates: Record<string, string>;
209
+ meta?: any;
210
+ input?: any;
211
+ };
212
+ data?: unknown;
213
+ }>;
214
+ export type NodeUpdate = z.infer<typeof nodeUpdateSchema>;
215
+ declare const nodeFinishedUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
216
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
217
+ }, {
218
+ nodeId: z.ZodString;
219
+ }>, {
220
+ type: z.ZodLiteral<"NODE_FINISHED">;
221
+ context: z.ZodObject<{
222
+ input: z.ZodAny;
223
+ meta: z.ZodAny;
224
+ tenant: z.ZodObject<{
225
+ name: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ name: string;
228
+ }, {
229
+ name: string;
230
+ }>;
231
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
232
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
233
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ errors: Record<string, string>;
236
+ data: Record<string, any>;
237
+ tenant: {
238
+ name: string;
239
+ };
240
+ dates: Record<string, string>;
241
+ meta?: any;
242
+ input?: any;
243
+ }, {
244
+ errors: Record<string, string>;
245
+ data: Record<string, any>;
246
+ tenant: {
247
+ name: string;
248
+ };
249
+ dates: Record<string, string>;
250
+ meta?: any;
251
+ input?: any;
252
+ }>;
253
+ }>, "strip", z.ZodTypeAny, {
254
+ type: "NODE_FINISHED";
255
+ timestamp: Date;
256
+ nodeId: string;
257
+ context: {
258
+ errors: Record<string, string>;
259
+ data: Record<string, any>;
260
+ tenant: {
261
+ name: string;
262
+ };
263
+ dates: Record<string, string>;
264
+ meta?: any;
265
+ input?: any;
266
+ };
267
+ }, {
268
+ type: "NODE_FINISHED";
269
+ timestamp: number;
270
+ nodeId: string;
271
+ context: {
272
+ errors: Record<string, string>;
273
+ data: Record<string, any>;
274
+ tenant: {
275
+ name: string;
276
+ };
277
+ dates: Record<string, string>;
278
+ meta?: any;
279
+ input?: any;
280
+ };
281
+ }>;
282
+ export type NodeFinishedUpdate = z.infer<typeof nodeFinishedUpdateSchema>;
283
+ declare const nodeDebugUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
284
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
285
+ }, {
286
+ nodeId: z.ZodString;
287
+ }>, {
288
+ type: z.ZodLiteral<"NODE_DEBUG">;
289
+ severity: z.ZodEnum<["log", "info", "warn", "error"]>;
290
+ data: z.ZodUnknown;
291
+ context: z.ZodObject<{
292
+ input: z.ZodAny;
293
+ meta: z.ZodAny;
294
+ tenant: z.ZodObject<{
295
+ name: z.ZodString;
296
+ }, "strip", z.ZodTypeAny, {
297
+ name: string;
298
+ }, {
299
+ name: string;
300
+ }>;
301
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
302
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
303
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ errors: Record<string, string>;
306
+ data: Record<string, any>;
307
+ tenant: {
308
+ name: string;
309
+ };
310
+ dates: Record<string, string>;
311
+ meta?: any;
312
+ input?: any;
313
+ }, {
314
+ errors: Record<string, string>;
315
+ data: Record<string, any>;
316
+ tenant: {
317
+ name: string;
318
+ };
319
+ dates: Record<string, string>;
320
+ meta?: any;
321
+ input?: any;
322
+ }>;
323
+ }>, "strip", z.ZodTypeAny, {
324
+ type: "NODE_DEBUG";
325
+ timestamp: Date;
326
+ nodeId: string;
327
+ context: {
328
+ errors: Record<string, string>;
329
+ data: Record<string, any>;
330
+ tenant: {
331
+ name: string;
332
+ };
333
+ dates: Record<string, string>;
334
+ meta?: any;
335
+ input?: any;
336
+ };
337
+ severity: "log" | "error" | "info" | "warn";
338
+ data?: unknown;
339
+ }, {
340
+ type: "NODE_DEBUG";
341
+ timestamp: number;
342
+ nodeId: string;
343
+ context: {
344
+ errors: Record<string, string>;
345
+ data: Record<string, any>;
346
+ tenant: {
347
+ name: string;
348
+ };
349
+ dates: Record<string, string>;
350
+ meta?: any;
351
+ input?: any;
352
+ };
353
+ severity: "log" | "error" | "info" | "warn";
354
+ data?: unknown;
355
+ }>;
356
+ export type NodeDebugUpdate = z.infer<typeof nodeDebugUpdateSchema>;
357
+ declare const nodeDeferUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
358
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
359
+ }, {
360
+ nodeId: z.ZodString;
361
+ }>, {
362
+ type: z.ZodLiteral<"NODE_DEFER">;
363
+ data: z.ZodUnknown;
364
+ context: z.ZodObject<{
365
+ input: z.ZodAny;
366
+ meta: z.ZodAny;
367
+ tenant: z.ZodObject<{
368
+ name: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ name: string;
371
+ }, {
372
+ name: string;
373
+ }>;
374
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
375
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
376
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ errors: Record<string, string>;
379
+ data: Record<string, any>;
380
+ tenant: {
381
+ name: string;
382
+ };
383
+ dates: Record<string, string>;
384
+ meta?: any;
385
+ input?: any;
386
+ }, {
387
+ errors: Record<string, string>;
388
+ data: Record<string, any>;
389
+ tenant: {
390
+ name: string;
391
+ };
392
+ dates: Record<string, string>;
393
+ meta?: any;
394
+ input?: any;
395
+ }>;
396
+ }>, "strip", z.ZodTypeAny, {
397
+ type: "NODE_DEFER";
398
+ timestamp: Date;
399
+ nodeId: string;
400
+ context: {
401
+ errors: Record<string, string>;
402
+ data: Record<string, any>;
403
+ tenant: {
404
+ name: string;
405
+ };
406
+ dates: Record<string, string>;
407
+ meta?: any;
408
+ input?: any;
409
+ };
410
+ data?: unknown;
411
+ }, {
412
+ type: "NODE_DEFER";
413
+ timestamp: number;
414
+ nodeId: string;
415
+ context: {
416
+ errors: Record<string, string>;
417
+ data: Record<string, any>;
418
+ tenant: {
419
+ name: string;
420
+ };
421
+ dates: Record<string, string>;
422
+ meta?: any;
423
+ input?: any;
424
+ };
425
+ data?: unknown;
426
+ }>;
427
+ export type NodeDeferUpdate = z.infer<typeof nodeDeferUpdateSchema>;
428
+ declare const taskStartUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
429
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
430
+ }, {
431
+ type: z.ZodLiteral<"TASK_START">;
432
+ nodes: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
433
+ type: z.ZodLiteral<"entry">;
434
+ id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
435
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
436
+ default: z.ZodDefault<z.ZodLiteral<true>>;
437
+ exit: z.ZodLiteral<true>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ default: true;
440
+ exit: true;
441
+ }, {
442
+ exit: true;
443
+ default?: true | undefined;
444
+ }>, z.ZodObject<{
445
+ default: z.ZodDefault<z.ZodLiteral<true>>;
446
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
447
+ target: z.ZodString;
448
+ }, "strip", z.ZodTypeAny, {
449
+ default: true;
450
+ exit: false;
451
+ target: string;
452
+ }, {
453
+ target: string;
454
+ default?: true | undefined;
455
+ exit?: false | undefined;
456
+ }>]>, import("./node.ts").Output, string | {
457
+ exit: true;
458
+ default?: true | undefined;
459
+ } | {
460
+ target: string;
461
+ default?: true | undefined;
462
+ exit?: false | undefined;
463
+ }>, "many">>, import("./node.ts").Output[], (string | {
464
+ exit: true;
465
+ default?: true | undefined;
466
+ } | {
467
+ target: string;
468
+ default?: true | undefined;
469
+ exit?: false | undefined;
470
+ })[] | undefined>;
471
+ inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
472
+ metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
473
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ type: "entry";
476
+ id: "__entry__";
477
+ output: import("./node.ts").Output[];
478
+ inputSchema: import("json-schema").JSONSchema7;
479
+ metaSchema: import("json-schema").JSONSchema7;
480
+ meta?: Record<string, any> | undefined;
481
+ }, {
482
+ type: "entry";
483
+ id?: "__entry__" | undefined;
484
+ output?: (string | {
485
+ exit: true;
486
+ default?: true | undefined;
487
+ } | {
488
+ target: string;
489
+ default?: true | undefined;
490
+ exit?: false | undefined;
491
+ })[] | undefined;
492
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
493
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
494
+ meta?: Record<string, any> | undefined;
495
+ }>, z.ZodObject<{
496
+ type: z.ZodLiteral<"service">;
497
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
498
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
501
+ }, {
502
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
503
+ }>, z.ZodUnion<[z.ZodObject<{
504
+ default: z.ZodDefault<z.ZodLiteral<false>>;
505
+ name: z.ZodString;
506
+ }, "strip", z.ZodTypeAny, {
507
+ default: false;
508
+ name: string;
509
+ }, {
510
+ name: string;
511
+ default?: false | undefined;
512
+ }>, z.ZodObject<{
513
+ default: z.ZodDefault<z.ZodLiteral<true>>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ default: true;
516
+ }, {
517
+ default?: true | undefined;
518
+ }>]>>, z.ZodUnion<[z.ZodObject<{
519
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
520
+ target: z.ZodString;
521
+ }, "strip", z.ZodTypeAny, {
522
+ exit: false;
523
+ target: string;
524
+ }, {
525
+ target: string;
526
+ exit?: false | undefined;
527
+ }>, z.ZodObject<{
528
+ exit: z.ZodLiteral<true>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ exit: true;
531
+ }, {
532
+ exit: true;
533
+ }>]>>]>, import("./node.ts").Output, string | (({
534
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
535
+ } & ({
536
+ name: string;
537
+ default?: false | undefined;
538
+ } | {
539
+ default?: true | undefined;
540
+ })) & ({
541
+ target: string;
542
+ exit?: false | undefined;
543
+ } | {
544
+ exit: true;
545
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
546
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
547
+ } & ({
548
+ name: string;
549
+ default?: false | undefined;
550
+ } | {
551
+ default?: true | undefined;
552
+ })) & ({
553
+ target: string;
554
+ exit?: false | undefined;
555
+ } | {
556
+ exit: true;
557
+ })))[] | undefined>;
558
+ inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
559
+ type: z.ZodLiteral<"object">;
560
+ }, "strip", z.ZodTypeAny, {
561
+ type: "object";
562
+ }, {
563
+ type: "object";
564
+ }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
565
+ type: z.ZodLiteral<"null">;
566
+ }, "strip", z.ZodTypeAny, {
567
+ type: "null";
568
+ }, {
569
+ type: "null";
570
+ }>]>>;
571
+ id: z.ZodDefault<z.ZodString>;
572
+ name: z.ZodString;
573
+ version: z.ZodString;
574
+ configuration: z.ZodOptional<z.ZodAny>;
575
+ configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
576
+ alias: z.ZodOptional<z.ZodString>;
577
+ ttl: z.ZodOptional<z.ZodNumber>;
578
+ retry: z.ZodOptional<z.ZodNumber>;
579
+ retryDelay: z.ZodOptional<z.ZodNumber>;
580
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ type: "service";
583
+ id: string;
584
+ name: string;
585
+ output: import("./node.ts").Output[];
586
+ inputSchema: ({
587
+ type: "object";
588
+ } & import("json-schema").JSONSchema7) | {
589
+ type: "null";
590
+ };
591
+ version: string;
592
+ configurationSchema: import("json-schema").JSONSchema7;
593
+ meta?: Record<string, any> | undefined;
594
+ configuration?: any;
595
+ alias?: string | undefined;
596
+ ttl?: number | undefined;
597
+ retry?: number | undefined;
598
+ retryDelay?: number | undefined;
599
+ }, {
600
+ type: "service";
601
+ name: string;
602
+ version: string;
603
+ id?: string | undefined;
604
+ output?: (string | (({
605
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
606
+ } & ({
607
+ name: string;
608
+ default?: false | undefined;
609
+ } | {
610
+ default?: true | undefined;
611
+ })) & ({
612
+ target: string;
613
+ exit?: false | undefined;
614
+ } | {
615
+ exit: true;
616
+ })))[] | undefined;
617
+ inputSchema?: ({
618
+ type: "object";
619
+ } & import("json-schema").JSONSchema7) | {
620
+ type: "null";
621
+ } | undefined;
622
+ meta?: Record<string, any> | undefined;
623
+ configuration?: any;
624
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
625
+ alias?: string | undefined;
626
+ ttl?: number | undefined;
627
+ retry?: number | undefined;
628
+ retryDelay?: number | undefined;
629
+ }>, z.ZodObject<{
630
+ type: z.ZodLiteral<"catch">;
631
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
632
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
635
+ }, {
636
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
637
+ }>, z.ZodUnion<[z.ZodObject<{
638
+ default: z.ZodDefault<z.ZodLiteral<false>>;
639
+ name: z.ZodString;
640
+ }, "strip", z.ZodTypeAny, {
641
+ default: false;
642
+ name: string;
643
+ }, {
644
+ name: string;
645
+ default?: false | undefined;
646
+ }>, z.ZodObject<{
647
+ default: z.ZodDefault<z.ZodLiteral<true>>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ default: true;
650
+ }, {
651
+ default?: true | undefined;
652
+ }>]>>, z.ZodUnion<[z.ZodObject<{
653
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
654
+ target: z.ZodString;
655
+ }, "strip", z.ZodTypeAny, {
656
+ exit: false;
657
+ target: string;
658
+ }, {
659
+ target: string;
660
+ exit?: false | undefined;
661
+ }>, z.ZodObject<{
662
+ exit: z.ZodLiteral<true>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ exit: true;
665
+ }, {
666
+ exit: true;
667
+ }>]>>]>, import("./node.ts").Output, string | (({
668
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
669
+ } & ({
670
+ name: string;
671
+ default?: false | undefined;
672
+ } | {
673
+ default?: true | undefined;
674
+ })) & ({
675
+ target: string;
676
+ exit?: false | undefined;
677
+ } | {
678
+ exit: true;
679
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
680
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
681
+ } & ({
682
+ name: string;
683
+ default?: false | undefined;
684
+ } | {
685
+ default?: true | undefined;
686
+ })) & ({
687
+ target: string;
688
+ exit?: false | undefined;
689
+ } | {
690
+ exit: true;
691
+ })))[] | undefined>;
692
+ id: z.ZodDefault<z.ZodString>;
693
+ subject: z.ZodString;
694
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: "catch";
697
+ id: string;
698
+ output: import("./node.ts").Output[];
699
+ subject: string;
700
+ meta?: Record<string, any> | undefined;
701
+ }, {
702
+ type: "catch";
703
+ subject: string;
704
+ id?: string | undefined;
705
+ output?: (string | (({
706
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
707
+ } & ({
708
+ name: string;
709
+ default?: false | undefined;
710
+ } | {
711
+ default?: true | undefined;
712
+ })) & ({
713
+ target: string;
714
+ exit?: false | undefined;
715
+ } | {
716
+ exit: true;
717
+ })))[] | undefined;
718
+ meta?: Record<string, any> | undefined;
719
+ }>, z.ZodObject<{
720
+ type: z.ZodLiteral<"logic">;
721
+ alias: z.ZodOptional<z.ZodString>;
722
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
723
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
726
+ }, {
727
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
728
+ }>, z.ZodUnion<[z.ZodObject<{
729
+ default: z.ZodDefault<z.ZodLiteral<false>>;
730
+ name: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ default: false;
733
+ name: string;
734
+ }, {
735
+ name: string;
736
+ default?: false | undefined;
737
+ }>, z.ZodObject<{
738
+ default: z.ZodDefault<z.ZodLiteral<true>>;
739
+ }, "strip", z.ZodTypeAny, {
740
+ default: true;
741
+ }, {
742
+ default?: true | undefined;
743
+ }>]>>, z.ZodUnion<[z.ZodObject<{
744
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
745
+ target: z.ZodString;
746
+ }, "strip", z.ZodTypeAny, {
747
+ exit: false;
748
+ target: string;
749
+ }, {
750
+ target: string;
751
+ exit?: false | undefined;
752
+ }>, z.ZodObject<{
753
+ exit: z.ZodLiteral<true>;
754
+ }, "strip", z.ZodTypeAny, {
755
+ exit: true;
756
+ }, {
757
+ exit: true;
758
+ }>]>>]>, import("./node.ts").Output, string | (({
759
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
760
+ } & ({
761
+ name: string;
762
+ default?: false | undefined;
763
+ } | {
764
+ default?: true | undefined;
765
+ })) & ({
766
+ target: string;
767
+ exit?: false | undefined;
768
+ } | {
769
+ exit: true;
770
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
771
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
772
+ } & ({
773
+ name: string;
774
+ default?: false | undefined;
775
+ } | {
776
+ default?: true | undefined;
777
+ })) & ({
778
+ target: string;
779
+ exit?: false | undefined;
780
+ } | {
781
+ exit: true;
782
+ })))[] | undefined>;
783
+ id: z.ZodDefault<z.ZodString>;
784
+ script: z.ZodString;
785
+ concurrency: z.ZodDefault<z.ZodBoolean>;
786
+ language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
787
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
788
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ type: "logic";
791
+ id: string;
792
+ output: import("./node.ts").Output[];
793
+ script: string;
794
+ concurrency: boolean;
795
+ language: "javascript" | "python" | "typescript";
796
+ maxExecutionTime: number;
797
+ meta?: Record<string, any> | undefined;
798
+ alias?: string | undefined;
799
+ }, {
800
+ type: "logic";
801
+ script: string;
802
+ id?: string | undefined;
803
+ output?: (string | (({
804
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
805
+ } & ({
806
+ name: string;
807
+ default?: false | undefined;
808
+ } | {
809
+ default?: true | undefined;
810
+ })) & ({
811
+ target: string;
812
+ exit?: false | undefined;
813
+ } | {
814
+ exit: true;
815
+ })))[] | undefined;
816
+ meta?: Record<string, any> | undefined;
817
+ alias?: string | undefined;
818
+ concurrency?: boolean | undefined;
819
+ language?: "javascript" | "python" | "typescript" | undefined;
820
+ maxExecutionTime?: number | undefined;
821
+ }>, z.ZodObject<{
822
+ id: z.ZodDefault<z.ZodString>;
823
+ type: z.ZodLiteral<"or">;
824
+ alias: z.ZodOptional<z.ZodString>;
825
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
826
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
829
+ }, {
830
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
831
+ }>, z.ZodUnion<[z.ZodObject<{
832
+ default: z.ZodDefault<z.ZodLiteral<false>>;
833
+ name: z.ZodString;
834
+ }, "strip", z.ZodTypeAny, {
835
+ default: false;
836
+ name: string;
837
+ }, {
838
+ name: string;
839
+ default?: false | undefined;
840
+ }>, z.ZodObject<{
841
+ default: z.ZodDefault<z.ZodLiteral<true>>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ default: true;
844
+ }, {
845
+ default?: true | undefined;
846
+ }>]>>, z.ZodUnion<[z.ZodObject<{
847
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
848
+ target: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ exit: false;
851
+ target: string;
852
+ }, {
853
+ target: string;
854
+ exit?: false | undefined;
855
+ }>, z.ZodObject<{
856
+ exit: z.ZodLiteral<true>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ exit: true;
859
+ }, {
860
+ exit: true;
861
+ }>]>>]>, import("./node.ts").Output, string | (({
862
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
863
+ } & ({
864
+ name: string;
865
+ default?: false | undefined;
866
+ } | {
867
+ default?: true | undefined;
868
+ })) & ({
869
+ target: string;
870
+ exit?: false | undefined;
871
+ } | {
872
+ exit: true;
873
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
874
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
875
+ } & ({
876
+ name: string;
877
+ default?: false | undefined;
878
+ } | {
879
+ default?: true | undefined;
880
+ })) & ({
881
+ target: string;
882
+ exit?: false | undefined;
883
+ } | {
884
+ exit: true;
885
+ })))[] | undefined>;
886
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: "or";
889
+ id: string;
890
+ output: import("./node.ts").Output[];
891
+ meta?: Record<string, any> | undefined;
892
+ alias?: string | undefined;
893
+ }, {
894
+ type: "or";
895
+ id?: string | undefined;
896
+ output?: (string | (({
897
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
898
+ } & ({
899
+ name: string;
900
+ default?: false | undefined;
901
+ } | {
902
+ default?: true | undefined;
903
+ })) & ({
904
+ target: string;
905
+ exit?: false | undefined;
906
+ } | {
907
+ exit: true;
908
+ })))[] | undefined;
909
+ meta?: Record<string, any> | undefined;
910
+ alias?: string | undefined;
911
+ }>]>, "many">, ({
912
+ type: "entry";
913
+ id: "__entry__";
914
+ output: import("./node.ts").Output[];
915
+ inputSchema: import("json-schema").JSONSchema7;
916
+ metaSchema: import("json-schema").JSONSchema7;
917
+ meta?: Record<string, any> | undefined;
918
+ } | {
919
+ type: "service";
920
+ id: string;
921
+ name: string;
922
+ output: import("./node.ts").Output[];
923
+ inputSchema: ({
924
+ type: "object";
925
+ } & import("json-schema").JSONSchema7) | {
926
+ type: "null";
927
+ };
928
+ version: string;
929
+ configurationSchema: import("json-schema").JSONSchema7;
930
+ meta?: Record<string, any> | undefined;
931
+ configuration?: any;
932
+ alias?: string | undefined;
933
+ ttl?: number | undefined;
934
+ retry?: number | undefined;
935
+ retryDelay?: number | undefined;
936
+ } | {
937
+ type: "catch";
938
+ id: string;
939
+ output: import("./node.ts").Output[];
940
+ subject: string;
941
+ meta?: Record<string, any> | undefined;
942
+ } | {
943
+ type: "logic";
944
+ id: string;
945
+ output: import("./node.ts").Output[];
946
+ script: string;
947
+ concurrency: boolean;
948
+ language: "javascript" | "python" | "typescript";
949
+ maxExecutionTime: number;
950
+ meta?: Record<string, any> | undefined;
951
+ alias?: string | undefined;
952
+ } | {
953
+ type: "or";
954
+ id: string;
955
+ output: import("./node.ts").Output[];
956
+ meta?: Record<string, any> | undefined;
957
+ alias?: string | undefined;
958
+ })[], ({
959
+ type: "entry";
960
+ id?: "__entry__" | undefined;
961
+ output?: (string | {
962
+ exit: true;
963
+ default?: true | undefined;
964
+ } | {
965
+ target: string;
966
+ default?: true | undefined;
967
+ exit?: false | undefined;
968
+ })[] | undefined;
969
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
970
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
971
+ meta?: Record<string, any> | undefined;
972
+ } | {
973
+ type: "service";
974
+ name: string;
975
+ version: string;
976
+ id?: string | undefined;
977
+ output?: (string | (({
978
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
979
+ } & ({
980
+ name: string;
981
+ default?: false | undefined;
982
+ } | {
983
+ default?: true | undefined;
984
+ })) & ({
985
+ target: string;
986
+ exit?: false | undefined;
987
+ } | {
988
+ exit: true;
989
+ })))[] | undefined;
990
+ inputSchema?: ({
991
+ type: "object";
992
+ } & import("json-schema").JSONSchema7) | {
993
+ type: "null";
994
+ } | undefined;
995
+ meta?: Record<string, any> | undefined;
996
+ configuration?: any;
997
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
998
+ alias?: string | undefined;
999
+ ttl?: number | undefined;
1000
+ retry?: number | undefined;
1001
+ retryDelay?: number | undefined;
1002
+ } | {
1003
+ type: "catch";
1004
+ subject: string;
1005
+ id?: string | undefined;
1006
+ output?: (string | (({
1007
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1008
+ } & ({
1009
+ name: string;
1010
+ default?: false | undefined;
1011
+ } | {
1012
+ default?: true | undefined;
1013
+ })) & ({
1014
+ target: string;
1015
+ exit?: false | undefined;
1016
+ } | {
1017
+ exit: true;
1018
+ })))[] | undefined;
1019
+ meta?: Record<string, any> | undefined;
1020
+ } | {
1021
+ type: "logic";
1022
+ script: string;
1023
+ id?: string | undefined;
1024
+ output?: (string | (({
1025
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1026
+ } & ({
1027
+ name: string;
1028
+ default?: false | undefined;
1029
+ } | {
1030
+ default?: true | undefined;
1031
+ })) & ({
1032
+ target: string;
1033
+ exit?: false | undefined;
1034
+ } | {
1035
+ exit: true;
1036
+ })))[] | undefined;
1037
+ meta?: Record<string, any> | undefined;
1038
+ alias?: string | undefined;
1039
+ concurrency?: boolean | undefined;
1040
+ language?: "javascript" | "python" | "typescript" | undefined;
1041
+ maxExecutionTime?: number | undefined;
1042
+ } | {
1043
+ type: "or";
1044
+ id?: string | undefined;
1045
+ output?: (string | (({
1046
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1047
+ } & ({
1048
+ name: string;
1049
+ default?: false | undefined;
1050
+ } | {
1051
+ default?: true | undefined;
1052
+ })) & ({
1053
+ target: string;
1054
+ exit?: false | undefined;
1055
+ } | {
1056
+ exit: true;
1057
+ })))[] | undefined;
1058
+ meta?: Record<string, any> | undefined;
1059
+ alias?: string | undefined;
1060
+ })[]>, ({
1061
+ type: "entry";
1062
+ id: "__entry__";
1063
+ output: import("./node.ts").Output[];
1064
+ inputSchema: import("json-schema").JSONSchema7;
1065
+ metaSchema: import("json-schema").JSONSchema7;
1066
+ meta?: Record<string, any> | undefined;
1067
+ } | {
1068
+ type: "service";
1069
+ id: string;
1070
+ name: string;
1071
+ output: import("./node.ts").Output[];
1072
+ inputSchema: ({
1073
+ type: "object";
1074
+ } & import("json-schema").JSONSchema7) | {
1075
+ type: "null";
1076
+ };
1077
+ version: string;
1078
+ configurationSchema: import("json-schema").JSONSchema7;
1079
+ meta?: Record<string, any> | undefined;
1080
+ configuration?: any;
1081
+ alias?: string | undefined;
1082
+ ttl?: number | undefined;
1083
+ retry?: number | undefined;
1084
+ retryDelay?: number | undefined;
1085
+ } | {
1086
+ type: "catch";
1087
+ id: string;
1088
+ output: import("./node.ts").Output[];
1089
+ subject: string;
1090
+ meta?: Record<string, any> | undefined;
1091
+ } | {
1092
+ type: "logic";
1093
+ id: string;
1094
+ output: import("./node.ts").Output[];
1095
+ script: string;
1096
+ concurrency: boolean;
1097
+ language: "javascript" | "python" | "typescript";
1098
+ maxExecutionTime: number;
1099
+ meta?: Record<string, any> | undefined;
1100
+ alias?: string | undefined;
1101
+ } | {
1102
+ type: "or";
1103
+ id: string;
1104
+ output: import("./node.ts").Output[];
1105
+ meta?: Record<string, any> | undefined;
1106
+ alias?: string | undefined;
1107
+ })[], ({
1108
+ type: "entry";
1109
+ id?: "__entry__" | undefined;
1110
+ output?: (string | {
1111
+ exit: true;
1112
+ default?: true | undefined;
1113
+ } | {
1114
+ target: string;
1115
+ default?: true | undefined;
1116
+ exit?: false | undefined;
1117
+ })[] | undefined;
1118
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
1119
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
1120
+ meta?: Record<string, any> | undefined;
1121
+ } | {
1122
+ type: "service";
1123
+ name: string;
1124
+ version: string;
1125
+ id?: string | undefined;
1126
+ output?: (string | (({
1127
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1128
+ } & ({
1129
+ name: string;
1130
+ default?: false | undefined;
1131
+ } | {
1132
+ default?: true | undefined;
1133
+ })) & ({
1134
+ target: string;
1135
+ exit?: false | undefined;
1136
+ } | {
1137
+ exit: true;
1138
+ })))[] | undefined;
1139
+ inputSchema?: ({
1140
+ type: "object";
1141
+ } & import("json-schema").JSONSchema7) | {
1142
+ type: "null";
1143
+ } | undefined;
1144
+ meta?: Record<string, any> | undefined;
1145
+ configuration?: any;
1146
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
1147
+ alias?: string | undefined;
1148
+ ttl?: number | undefined;
1149
+ retry?: number | undefined;
1150
+ retryDelay?: number | undefined;
1151
+ } | {
1152
+ type: "catch";
1153
+ subject: string;
1154
+ id?: string | undefined;
1155
+ output?: (string | (({
1156
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1157
+ } & ({
1158
+ name: string;
1159
+ default?: false | undefined;
1160
+ } | {
1161
+ default?: true | undefined;
1162
+ })) & ({
1163
+ target: string;
1164
+ exit?: false | undefined;
1165
+ } | {
1166
+ exit: true;
1167
+ })))[] | undefined;
1168
+ meta?: Record<string, any> | undefined;
1169
+ } | {
1170
+ type: "logic";
1171
+ script: string;
1172
+ id?: string | undefined;
1173
+ output?: (string | (({
1174
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1175
+ } & ({
1176
+ name: string;
1177
+ default?: false | undefined;
1178
+ } | {
1179
+ default?: true | undefined;
1180
+ })) & ({
1181
+ target: string;
1182
+ exit?: false | undefined;
1183
+ } | {
1184
+ exit: true;
1185
+ })))[] | undefined;
1186
+ meta?: Record<string, any> | undefined;
1187
+ alias?: string | undefined;
1188
+ concurrency?: boolean | undefined;
1189
+ language?: "javascript" | "python" | "typescript" | undefined;
1190
+ maxExecutionTime?: number | undefined;
1191
+ } | {
1192
+ type: "or";
1193
+ id?: string | undefined;
1194
+ output?: (string | (({
1195
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1196
+ } & ({
1197
+ name: string;
1198
+ default?: false | undefined;
1199
+ } | {
1200
+ default?: true | undefined;
1201
+ })) & ({
1202
+ target: string;
1203
+ exit?: false | undefined;
1204
+ } | {
1205
+ exit: true;
1206
+ })))[] | undefined;
1207
+ meta?: Record<string, any> | undefined;
1208
+ alias?: string | undefined;
1209
+ })[]>;
1210
+ context: z.ZodObject<{
1211
+ input: z.ZodAny;
1212
+ meta: z.ZodAny;
1213
+ tenant: z.ZodObject<{
1214
+ name: z.ZodString;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ name: string;
1217
+ }, {
1218
+ name: string;
1219
+ }>;
1220
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1221
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1222
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ errors: Record<string, string>;
1225
+ data: Record<string, any>;
1226
+ tenant: {
1227
+ name: string;
1228
+ };
1229
+ dates: Record<string, string>;
1230
+ meta?: any;
1231
+ input?: any;
1232
+ }, {
1233
+ errors: Record<string, string>;
1234
+ data: Record<string, any>;
1235
+ tenant: {
1236
+ name: string;
1237
+ };
1238
+ dates: Record<string, string>;
1239
+ meta?: any;
1240
+ input?: any;
1241
+ }>;
1242
+ }>, "strip", z.ZodTypeAny, {
1243
+ type: "TASK_START";
1244
+ timestamp: Date;
1245
+ nodes: ({
1246
+ type: "entry";
1247
+ id: "__entry__";
1248
+ output: import("./node.ts").Output[];
1249
+ inputSchema: import("json-schema").JSONSchema7;
1250
+ metaSchema: import("json-schema").JSONSchema7;
1251
+ meta?: Record<string, any> | undefined;
1252
+ } | {
1253
+ type: "service";
1254
+ id: string;
1255
+ name: string;
1256
+ output: import("./node.ts").Output[];
1257
+ inputSchema: ({
1258
+ type: "object";
1259
+ } & import("json-schema").JSONSchema7) | {
1260
+ type: "null";
1261
+ };
1262
+ version: string;
1263
+ configurationSchema: import("json-schema").JSONSchema7;
1264
+ meta?: Record<string, any> | undefined;
1265
+ configuration?: any;
1266
+ alias?: string | undefined;
1267
+ ttl?: number | undefined;
1268
+ retry?: number | undefined;
1269
+ retryDelay?: number | undefined;
1270
+ } | {
1271
+ type: "catch";
1272
+ id: string;
1273
+ output: import("./node.ts").Output[];
1274
+ subject: string;
1275
+ meta?: Record<string, any> | undefined;
1276
+ } | {
1277
+ type: "logic";
1278
+ id: string;
1279
+ output: import("./node.ts").Output[];
1280
+ script: string;
1281
+ concurrency: boolean;
1282
+ language: "javascript" | "python" | "typescript";
1283
+ maxExecutionTime: number;
1284
+ meta?: Record<string, any> | undefined;
1285
+ alias?: string | undefined;
1286
+ } | {
1287
+ type: "or";
1288
+ id: string;
1289
+ output: import("./node.ts").Output[];
1290
+ meta?: Record<string, any> | undefined;
1291
+ alias?: string | undefined;
1292
+ })[];
1293
+ context: {
1294
+ errors: Record<string, string>;
1295
+ data: Record<string, any>;
1296
+ tenant: {
1297
+ name: string;
1298
+ };
1299
+ dates: Record<string, string>;
1300
+ meta?: any;
1301
+ input?: any;
1302
+ };
1303
+ }, {
1304
+ type: "TASK_START";
1305
+ timestamp: number;
1306
+ nodes: ({
1307
+ type: "entry";
1308
+ id?: "__entry__" | undefined;
1309
+ output?: (string | {
1310
+ exit: true;
1311
+ default?: true | undefined;
1312
+ } | {
1313
+ target: string;
1314
+ default?: true | undefined;
1315
+ exit?: false | undefined;
1316
+ })[] | undefined;
1317
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
1318
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
1319
+ meta?: Record<string, any> | undefined;
1320
+ } | {
1321
+ type: "service";
1322
+ name: string;
1323
+ version: string;
1324
+ id?: string | undefined;
1325
+ output?: (string | (({
1326
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1327
+ } & ({
1328
+ name: string;
1329
+ default?: false | undefined;
1330
+ } | {
1331
+ default?: true | undefined;
1332
+ })) & ({
1333
+ target: string;
1334
+ exit?: false | undefined;
1335
+ } | {
1336
+ exit: true;
1337
+ })))[] | undefined;
1338
+ inputSchema?: ({
1339
+ type: "object";
1340
+ } & import("json-schema").JSONSchema7) | {
1341
+ type: "null";
1342
+ } | undefined;
1343
+ meta?: Record<string, any> | undefined;
1344
+ configuration?: any;
1345
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
1346
+ alias?: string | undefined;
1347
+ ttl?: number | undefined;
1348
+ retry?: number | undefined;
1349
+ retryDelay?: number | undefined;
1350
+ } | {
1351
+ type: "catch";
1352
+ subject: string;
1353
+ id?: string | undefined;
1354
+ output?: (string | (({
1355
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1356
+ } & ({
1357
+ name: string;
1358
+ default?: false | undefined;
1359
+ } | {
1360
+ default?: true | undefined;
1361
+ })) & ({
1362
+ target: string;
1363
+ exit?: false | undefined;
1364
+ } | {
1365
+ exit: true;
1366
+ })))[] | undefined;
1367
+ meta?: Record<string, any> | undefined;
1368
+ } | {
1369
+ type: "logic";
1370
+ script: string;
1371
+ id?: string | undefined;
1372
+ output?: (string | (({
1373
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1374
+ } & ({
1375
+ name: string;
1376
+ default?: false | undefined;
1377
+ } | {
1378
+ default?: true | undefined;
1379
+ })) & ({
1380
+ target: string;
1381
+ exit?: false | undefined;
1382
+ } | {
1383
+ exit: true;
1384
+ })))[] | undefined;
1385
+ meta?: Record<string, any> | undefined;
1386
+ alias?: string | undefined;
1387
+ concurrency?: boolean | undefined;
1388
+ language?: "javascript" | "python" | "typescript" | undefined;
1389
+ maxExecutionTime?: number | undefined;
1390
+ } | {
1391
+ type: "or";
1392
+ id?: string | undefined;
1393
+ output?: (string | (({
1394
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
1395
+ } & ({
1396
+ name: string;
1397
+ default?: false | undefined;
1398
+ } | {
1399
+ default?: true | undefined;
1400
+ })) & ({
1401
+ target: string;
1402
+ exit?: false | undefined;
1403
+ } | {
1404
+ exit: true;
1405
+ })))[] | undefined;
1406
+ meta?: Record<string, any> | undefined;
1407
+ alias?: string | undefined;
1408
+ })[];
1409
+ context: {
1410
+ errors: Record<string, string>;
1411
+ data: Record<string, any>;
1412
+ tenant: {
1413
+ name: string;
1414
+ };
1415
+ dates: Record<string, string>;
1416
+ meta?: any;
1417
+ input?: any;
1418
+ };
1419
+ }>;
1420
+ export type TaskStartUpdate = z.infer<typeof taskStartUpdateSchema>;
1421
+ declare const taskErrorUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
1422
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1423
+ }, {
1424
+ type: z.ZodLiteral<"TASK_ERROR">;
1425
+ reason: z.ZodOptional<z.ZodString>;
1426
+ context: z.ZodObject<{
1427
+ input: z.ZodAny;
1428
+ meta: z.ZodAny;
1429
+ tenant: z.ZodObject<{
1430
+ name: z.ZodString;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ name: string;
1433
+ }, {
1434
+ name: string;
1435
+ }>;
1436
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1437
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1438
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ errors: Record<string, string>;
1441
+ data: Record<string, any>;
1442
+ tenant: {
1443
+ name: string;
1444
+ };
1445
+ dates: Record<string, string>;
1446
+ meta?: any;
1447
+ input?: any;
1448
+ }, {
1449
+ errors: Record<string, string>;
1450
+ data: Record<string, any>;
1451
+ tenant: {
1452
+ name: string;
1453
+ };
1454
+ dates: Record<string, string>;
1455
+ meta?: any;
1456
+ input?: any;
1457
+ }>;
1458
+ }>, "strip", z.ZodTypeAny, {
1459
+ type: "TASK_ERROR";
1460
+ timestamp: Date;
1461
+ context: {
1462
+ errors: Record<string, string>;
1463
+ data: Record<string, any>;
1464
+ tenant: {
1465
+ name: string;
1466
+ };
1467
+ dates: Record<string, string>;
1468
+ meta?: any;
1469
+ input?: any;
1470
+ };
1471
+ reason?: string | undefined;
1472
+ }, {
1473
+ type: "TASK_ERROR";
1474
+ timestamp: number;
1475
+ context: {
1476
+ errors: Record<string, string>;
1477
+ data: Record<string, any>;
1478
+ tenant: {
1479
+ name: string;
1480
+ };
1481
+ dates: Record<string, string>;
1482
+ meta?: any;
1483
+ input?: any;
1484
+ };
1485
+ reason?: string | undefined;
1486
+ }>;
1487
+ export type TaskErrorUpdate = z.infer<typeof taskErrorUpdateSchema>;
1488
+ declare const taskFinishedUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
1489
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1490
+ }, {
1491
+ type: z.ZodLiteral<"TASK_FINISHED">;
1492
+ context: z.ZodObject<{
1493
+ input: z.ZodAny;
1494
+ meta: z.ZodAny;
1495
+ tenant: z.ZodObject<{
1496
+ name: z.ZodString;
1497
+ }, "strip", z.ZodTypeAny, {
1498
+ name: string;
1499
+ }, {
1500
+ name: string;
1501
+ }>;
1502
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1503
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1504
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1505
+ }, "strip", z.ZodTypeAny, {
1506
+ errors: Record<string, string>;
1507
+ data: Record<string, any>;
1508
+ tenant: {
1509
+ name: string;
1510
+ };
1511
+ dates: Record<string, string>;
1512
+ meta?: any;
1513
+ input?: any;
1514
+ }, {
1515
+ errors: Record<string, string>;
1516
+ data: Record<string, any>;
1517
+ tenant: {
1518
+ name: string;
1519
+ };
1520
+ dates: Record<string, string>;
1521
+ meta?: any;
1522
+ input?: any;
1523
+ }>;
1524
+ }>, "strip", z.ZodTypeAny, {
1525
+ type: "TASK_FINISHED";
1526
+ timestamp: Date;
1527
+ context: {
1528
+ errors: Record<string, string>;
1529
+ data: Record<string, any>;
1530
+ tenant: {
1531
+ name: string;
1532
+ };
1533
+ dates: Record<string, string>;
1534
+ meta?: any;
1535
+ input?: any;
1536
+ };
1537
+ }, {
1538
+ type: "TASK_FINISHED";
1539
+ timestamp: number;
1540
+ context: {
1541
+ errors: Record<string, string>;
1542
+ data: Record<string, any>;
1543
+ tenant: {
1544
+ name: string;
1545
+ };
1546
+ dates: Record<string, string>;
1547
+ meta?: any;
1548
+ input?: any;
1549
+ };
1550
+ }>;
1551
+ export type TaskFinishedUpdate = z.infer<typeof taskFinishedUpdateSchema>;
1552
+ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1553
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1554
+ }, {
1555
+ nodeId: z.ZodString;
1556
+ }>, {
1557
+ type: z.ZodLiteral<"NODE_START">;
1558
+ context: z.ZodObject<{
1559
+ input: z.ZodAny;
1560
+ meta: z.ZodAny;
1561
+ tenant: z.ZodObject<{
1562
+ name: z.ZodString;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ name: string;
1565
+ }, {
1566
+ name: string;
1567
+ }>;
1568
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1569
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1570
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ errors: Record<string, string>;
1573
+ data: Record<string, any>;
1574
+ tenant: {
1575
+ name: string;
1576
+ };
1577
+ dates: Record<string, string>;
1578
+ meta?: any;
1579
+ input?: any;
1580
+ }, {
1581
+ errors: Record<string, string>;
1582
+ data: Record<string, any>;
1583
+ tenant: {
1584
+ name: string;
1585
+ };
1586
+ dates: Record<string, string>;
1587
+ meta?: any;
1588
+ input?: any;
1589
+ }>;
1590
+ }>, "strip", z.ZodTypeAny, {
1591
+ type: "NODE_START";
1592
+ timestamp: Date;
1593
+ nodeId: string;
1594
+ context: {
1595
+ errors: Record<string, string>;
1596
+ data: Record<string, any>;
1597
+ tenant: {
1598
+ name: string;
1599
+ };
1600
+ dates: Record<string, string>;
1601
+ meta?: any;
1602
+ input?: any;
1603
+ };
1604
+ }, {
1605
+ type: "NODE_START";
1606
+ timestamp: number;
1607
+ nodeId: string;
1608
+ context: {
1609
+ errors: Record<string, string>;
1610
+ data: Record<string, any>;
1611
+ tenant: {
1612
+ name: string;
1613
+ };
1614
+ dates: Record<string, string>;
1615
+ meta?: any;
1616
+ input?: any;
1617
+ };
1618
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1619
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1620
+ }, {
1621
+ nodeId: z.ZodString;
1622
+ }>, {
1623
+ type: z.ZodLiteral<"NODE_ERROR">;
1624
+ error: z.ZodString;
1625
+ context: z.ZodObject<{
1626
+ input: z.ZodAny;
1627
+ meta: z.ZodAny;
1628
+ tenant: z.ZodObject<{
1629
+ name: z.ZodString;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ name: string;
1632
+ }, {
1633
+ name: string;
1634
+ }>;
1635
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1636
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1637
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ errors: Record<string, string>;
1640
+ data: Record<string, any>;
1641
+ tenant: {
1642
+ name: string;
1643
+ };
1644
+ dates: Record<string, string>;
1645
+ meta?: any;
1646
+ input?: any;
1647
+ }, {
1648
+ errors: Record<string, string>;
1649
+ data: Record<string, any>;
1650
+ tenant: {
1651
+ name: string;
1652
+ };
1653
+ dates: Record<string, string>;
1654
+ meta?: any;
1655
+ input?: any;
1656
+ }>;
1657
+ }>, "strip", z.ZodTypeAny, {
1658
+ type: "NODE_ERROR";
1659
+ timestamp: Date;
1660
+ error: string;
1661
+ nodeId: string;
1662
+ context: {
1663
+ errors: Record<string, string>;
1664
+ data: Record<string, any>;
1665
+ tenant: {
1666
+ name: string;
1667
+ };
1668
+ dates: Record<string, string>;
1669
+ meta?: any;
1670
+ input?: any;
1671
+ };
1672
+ }, {
1673
+ type: "NODE_ERROR";
1674
+ timestamp: number;
1675
+ error: string;
1676
+ nodeId: string;
1677
+ context: {
1678
+ errors: Record<string, string>;
1679
+ data: Record<string, any>;
1680
+ tenant: {
1681
+ name: string;
1682
+ };
1683
+ dates: Record<string, string>;
1684
+ meta?: any;
1685
+ input?: any;
1686
+ };
1687
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1688
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1689
+ }, {
1690
+ nodeId: z.ZodString;
1691
+ }>, {
1692
+ type: z.ZodLiteral<"NODE_UPDATE">;
1693
+ output: z.ZodString;
1694
+ data: z.ZodUnknown;
1695
+ context: z.ZodObject<{
1696
+ input: z.ZodAny;
1697
+ meta: z.ZodAny;
1698
+ tenant: z.ZodObject<{
1699
+ name: z.ZodString;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ name: string;
1702
+ }, {
1703
+ name: string;
1704
+ }>;
1705
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1706
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1707
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ errors: Record<string, string>;
1710
+ data: Record<string, any>;
1711
+ tenant: {
1712
+ name: string;
1713
+ };
1714
+ dates: Record<string, string>;
1715
+ meta?: any;
1716
+ input?: any;
1717
+ }, {
1718
+ errors: Record<string, string>;
1719
+ data: Record<string, any>;
1720
+ tenant: {
1721
+ name: string;
1722
+ };
1723
+ dates: Record<string, string>;
1724
+ meta?: any;
1725
+ input?: any;
1726
+ }>;
1727
+ }>, "strip", z.ZodTypeAny, {
1728
+ type: "NODE_UPDATE";
1729
+ output: string;
1730
+ timestamp: Date;
1731
+ nodeId: string;
1732
+ context: {
1733
+ errors: Record<string, string>;
1734
+ data: Record<string, any>;
1735
+ tenant: {
1736
+ name: string;
1737
+ };
1738
+ dates: Record<string, string>;
1739
+ meta?: any;
1740
+ input?: any;
1741
+ };
1742
+ data?: unknown;
1743
+ }, {
1744
+ type: "NODE_UPDATE";
1745
+ output: string;
1746
+ timestamp: number;
1747
+ nodeId: string;
1748
+ context: {
1749
+ errors: Record<string, string>;
1750
+ data: Record<string, any>;
1751
+ tenant: {
1752
+ name: string;
1753
+ };
1754
+ dates: Record<string, string>;
1755
+ meta?: any;
1756
+ input?: any;
1757
+ };
1758
+ data?: unknown;
1759
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1760
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1761
+ }, {
1762
+ nodeId: z.ZodString;
1763
+ }>, {
1764
+ type: z.ZodLiteral<"NODE_FINISHED">;
1765
+ context: z.ZodObject<{
1766
+ input: z.ZodAny;
1767
+ meta: z.ZodAny;
1768
+ tenant: z.ZodObject<{
1769
+ name: z.ZodString;
1770
+ }, "strip", z.ZodTypeAny, {
1771
+ name: string;
1772
+ }, {
1773
+ name: string;
1774
+ }>;
1775
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1776
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1777
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ errors: Record<string, string>;
1780
+ data: Record<string, any>;
1781
+ tenant: {
1782
+ name: string;
1783
+ };
1784
+ dates: Record<string, string>;
1785
+ meta?: any;
1786
+ input?: any;
1787
+ }, {
1788
+ errors: Record<string, string>;
1789
+ data: Record<string, any>;
1790
+ tenant: {
1791
+ name: string;
1792
+ };
1793
+ dates: Record<string, string>;
1794
+ meta?: any;
1795
+ input?: any;
1796
+ }>;
1797
+ }>, "strip", z.ZodTypeAny, {
1798
+ type: "NODE_FINISHED";
1799
+ timestamp: Date;
1800
+ nodeId: string;
1801
+ context: {
1802
+ errors: Record<string, string>;
1803
+ data: Record<string, any>;
1804
+ tenant: {
1805
+ name: string;
1806
+ };
1807
+ dates: Record<string, string>;
1808
+ meta?: any;
1809
+ input?: any;
1810
+ };
1811
+ }, {
1812
+ type: "NODE_FINISHED";
1813
+ timestamp: number;
1814
+ nodeId: string;
1815
+ context: {
1816
+ errors: Record<string, string>;
1817
+ data: Record<string, any>;
1818
+ tenant: {
1819
+ name: string;
1820
+ };
1821
+ dates: Record<string, string>;
1822
+ meta?: any;
1823
+ input?: any;
1824
+ };
1825
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1826
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1827
+ }, {
1828
+ nodeId: z.ZodString;
1829
+ }>, {
1830
+ type: z.ZodLiteral<"NODE_DEBUG">;
1831
+ severity: z.ZodEnum<["log", "info", "warn", "error"]>;
1832
+ data: z.ZodUnknown;
1833
+ context: z.ZodObject<{
1834
+ input: z.ZodAny;
1835
+ meta: z.ZodAny;
1836
+ tenant: z.ZodObject<{
1837
+ name: z.ZodString;
1838
+ }, "strip", z.ZodTypeAny, {
1839
+ name: string;
1840
+ }, {
1841
+ name: string;
1842
+ }>;
1843
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1844
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1845
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ errors: Record<string, string>;
1848
+ data: Record<string, any>;
1849
+ tenant: {
1850
+ name: string;
1851
+ };
1852
+ dates: Record<string, string>;
1853
+ meta?: any;
1854
+ input?: any;
1855
+ }, {
1856
+ errors: Record<string, string>;
1857
+ data: Record<string, any>;
1858
+ tenant: {
1859
+ name: string;
1860
+ };
1861
+ dates: Record<string, string>;
1862
+ meta?: any;
1863
+ input?: any;
1864
+ }>;
1865
+ }>, "strip", z.ZodTypeAny, {
1866
+ type: "NODE_DEBUG";
1867
+ timestamp: Date;
1868
+ nodeId: string;
1869
+ context: {
1870
+ errors: Record<string, string>;
1871
+ data: Record<string, any>;
1872
+ tenant: {
1873
+ name: string;
1874
+ };
1875
+ dates: Record<string, string>;
1876
+ meta?: any;
1877
+ input?: any;
1878
+ };
1879
+ severity: "log" | "error" | "info" | "warn";
1880
+ data?: unknown;
1881
+ }, {
1882
+ type: "NODE_DEBUG";
1883
+ timestamp: number;
1884
+ nodeId: string;
1885
+ context: {
1886
+ errors: Record<string, string>;
1887
+ data: Record<string, any>;
1888
+ tenant: {
1889
+ name: string;
1890
+ };
1891
+ dates: Record<string, string>;
1892
+ meta?: any;
1893
+ input?: any;
1894
+ };
1895
+ severity: "log" | "error" | "info" | "warn";
1896
+ data?: unknown;
1897
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1898
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1899
+ }, {
1900
+ nodeId: z.ZodString;
1901
+ }>, {
1902
+ type: z.ZodLiteral<"NODE_DEFER">;
1903
+ data: z.ZodUnknown;
1904
+ context: z.ZodObject<{
1905
+ input: z.ZodAny;
1906
+ meta: z.ZodAny;
1907
+ tenant: z.ZodObject<{
1908
+ name: z.ZodString;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ name: string;
1911
+ }, {
1912
+ name: string;
1913
+ }>;
1914
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1915
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
1916
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
1917
+ }, "strip", z.ZodTypeAny, {
1918
+ errors: Record<string, string>;
1919
+ data: Record<string, any>;
1920
+ tenant: {
1921
+ name: string;
1922
+ };
1923
+ dates: Record<string, string>;
1924
+ meta?: any;
1925
+ input?: any;
1926
+ }, {
1927
+ errors: Record<string, string>;
1928
+ data: Record<string, any>;
1929
+ tenant: {
1930
+ name: string;
1931
+ };
1932
+ dates: Record<string, string>;
1933
+ meta?: any;
1934
+ input?: any;
1935
+ }>;
1936
+ }>, "strip", z.ZodTypeAny, {
1937
+ type: "NODE_DEFER";
1938
+ timestamp: Date;
1939
+ nodeId: string;
1940
+ context: {
1941
+ errors: Record<string, string>;
1942
+ data: Record<string, any>;
1943
+ tenant: {
1944
+ name: string;
1945
+ };
1946
+ dates: Record<string, string>;
1947
+ meta?: any;
1948
+ input?: any;
1949
+ };
1950
+ data?: unknown;
1951
+ }, {
1952
+ type: "NODE_DEFER";
1953
+ timestamp: number;
1954
+ nodeId: string;
1955
+ context: {
1956
+ errors: Record<string, string>;
1957
+ data: Record<string, any>;
1958
+ tenant: {
1959
+ name: string;
1960
+ };
1961
+ dates: Record<string, string>;
1962
+ meta?: any;
1963
+ input?: any;
1964
+ };
1965
+ data?: unknown;
1966
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1967
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
1968
+ }, {
1969
+ type: z.ZodLiteral<"TASK_START">;
1970
+ nodes: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1971
+ type: z.ZodLiteral<"entry">;
1972
+ id: z.ZodDefault<z.ZodLiteral<"__entry__">>;
1973
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
1974
+ default: z.ZodDefault<z.ZodLiteral<true>>;
1975
+ exit: z.ZodLiteral<true>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ default: true;
1978
+ exit: true;
1979
+ }, {
1980
+ exit: true;
1981
+ default?: true | undefined;
1982
+ }>, z.ZodObject<{
1983
+ default: z.ZodDefault<z.ZodLiteral<true>>;
1984
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
1985
+ target: z.ZodString;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ default: true;
1988
+ exit: false;
1989
+ target: string;
1990
+ }, {
1991
+ target: string;
1992
+ default?: true | undefined;
1993
+ exit?: false | undefined;
1994
+ }>]>, import("./node.ts").Output, string | {
1995
+ exit: true;
1996
+ default?: true | undefined;
1997
+ } | {
1998
+ target: string;
1999
+ default?: true | undefined;
2000
+ exit?: false | undefined;
2001
+ }>, "many">>, import("./node.ts").Output[], (string | {
2002
+ exit: true;
2003
+ default?: true | undefined;
2004
+ } | {
2005
+ target: string;
2006
+ default?: true | undefined;
2007
+ exit?: false | undefined;
2008
+ })[] | undefined>;
2009
+ inputSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
2010
+ metaSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
2011
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ type: "entry";
2014
+ id: "__entry__";
2015
+ output: import("./node.ts").Output[];
2016
+ inputSchema: import("json-schema").JSONSchema7;
2017
+ metaSchema: import("json-schema").JSONSchema7;
2018
+ meta?: Record<string, any> | undefined;
2019
+ }, {
2020
+ type: "entry";
2021
+ id?: "__entry__" | undefined;
2022
+ output?: (string | {
2023
+ exit: true;
2024
+ default?: true | undefined;
2025
+ } | {
2026
+ target: string;
2027
+ default?: true | undefined;
2028
+ exit?: false | undefined;
2029
+ })[] | undefined;
2030
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
2031
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
2032
+ meta?: Record<string, any> | undefined;
2033
+ }>, z.ZodObject<{
2034
+ type: z.ZodLiteral<"service">;
2035
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2036
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
2037
+ }, "strip", z.ZodTypeAny, {
2038
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2039
+ }, {
2040
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2041
+ }>, z.ZodUnion<[z.ZodObject<{
2042
+ default: z.ZodDefault<z.ZodLiteral<false>>;
2043
+ name: z.ZodString;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ default: false;
2046
+ name: string;
2047
+ }, {
2048
+ name: string;
2049
+ default?: false | undefined;
2050
+ }>, z.ZodObject<{
2051
+ default: z.ZodDefault<z.ZodLiteral<true>>;
2052
+ }, "strip", z.ZodTypeAny, {
2053
+ default: true;
2054
+ }, {
2055
+ default?: true | undefined;
2056
+ }>]>>, z.ZodUnion<[z.ZodObject<{
2057
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
2058
+ target: z.ZodString;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ exit: false;
2061
+ target: string;
2062
+ }, {
2063
+ target: string;
2064
+ exit?: false | undefined;
2065
+ }>, z.ZodObject<{
2066
+ exit: z.ZodLiteral<true>;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ exit: true;
2069
+ }, {
2070
+ exit: true;
2071
+ }>]>>]>, import("./node.ts").Output, string | (({
2072
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2073
+ } & ({
2074
+ name: string;
2075
+ default?: false | undefined;
2076
+ } | {
2077
+ default?: true | undefined;
2078
+ })) & ({
2079
+ target: string;
2080
+ exit?: false | undefined;
2081
+ } | {
2082
+ exit: true;
2083
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
2084
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2085
+ } & ({
2086
+ name: string;
2087
+ default?: false | undefined;
2088
+ } | {
2089
+ default?: true | undefined;
2090
+ })) & ({
2091
+ target: string;
2092
+ exit?: false | undefined;
2093
+ } | {
2094
+ exit: true;
2095
+ })))[] | undefined>;
2096
+ inputSchema: z.ZodDefault<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
2097
+ type: z.ZodLiteral<"object">;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ type: "object";
2100
+ }, {
2101
+ type: "object";
2102
+ }>, z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>, z.ZodObject<{
2103
+ type: z.ZodLiteral<"null">;
2104
+ }, "strip", z.ZodTypeAny, {
2105
+ type: "null";
2106
+ }, {
2107
+ type: "null";
2108
+ }>]>>;
2109
+ id: z.ZodDefault<z.ZodString>;
2110
+ name: z.ZodString;
2111
+ version: z.ZodString;
2112
+ configuration: z.ZodOptional<z.ZodAny>;
2113
+ configurationSchema: z.ZodDefault<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>;
2114
+ alias: z.ZodOptional<z.ZodString>;
2115
+ ttl: z.ZodOptional<z.ZodNumber>;
2116
+ retry: z.ZodOptional<z.ZodNumber>;
2117
+ retryDelay: z.ZodOptional<z.ZodNumber>;
2118
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ type: "service";
2121
+ id: string;
2122
+ name: string;
2123
+ output: import("./node.ts").Output[];
2124
+ inputSchema: ({
2125
+ type: "object";
2126
+ } & import("json-schema").JSONSchema7) | {
2127
+ type: "null";
2128
+ };
2129
+ version: string;
2130
+ configurationSchema: import("json-schema").JSONSchema7;
2131
+ meta?: Record<string, any> | undefined;
2132
+ configuration?: any;
2133
+ alias?: string | undefined;
2134
+ ttl?: number | undefined;
2135
+ retry?: number | undefined;
2136
+ retryDelay?: number | undefined;
2137
+ }, {
2138
+ type: "service";
2139
+ name: string;
2140
+ version: string;
2141
+ id?: string | undefined;
2142
+ output?: (string | (({
2143
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2144
+ } & ({
2145
+ name: string;
2146
+ default?: false | undefined;
2147
+ } | {
2148
+ default?: true | undefined;
2149
+ })) & ({
2150
+ target: string;
2151
+ exit?: false | undefined;
2152
+ } | {
2153
+ exit: true;
2154
+ })))[] | undefined;
2155
+ inputSchema?: ({
2156
+ type: "object";
2157
+ } & import("json-schema").JSONSchema7) | {
2158
+ type: "null";
2159
+ } | undefined;
2160
+ meta?: Record<string, any> | undefined;
2161
+ configuration?: any;
2162
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
2163
+ alias?: string | undefined;
2164
+ ttl?: number | undefined;
2165
+ retry?: number | undefined;
2166
+ retryDelay?: number | undefined;
2167
+ }>, z.ZodObject<{
2168
+ type: z.ZodLiteral<"catch">;
2169
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2170
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2173
+ }, {
2174
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2175
+ }>, z.ZodUnion<[z.ZodObject<{
2176
+ default: z.ZodDefault<z.ZodLiteral<false>>;
2177
+ name: z.ZodString;
2178
+ }, "strip", z.ZodTypeAny, {
2179
+ default: false;
2180
+ name: string;
2181
+ }, {
2182
+ name: string;
2183
+ default?: false | undefined;
2184
+ }>, z.ZodObject<{
2185
+ default: z.ZodDefault<z.ZodLiteral<true>>;
2186
+ }, "strip", z.ZodTypeAny, {
2187
+ default: true;
2188
+ }, {
2189
+ default?: true | undefined;
2190
+ }>]>>, z.ZodUnion<[z.ZodObject<{
2191
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
2192
+ target: z.ZodString;
2193
+ }, "strip", z.ZodTypeAny, {
2194
+ exit: false;
2195
+ target: string;
2196
+ }, {
2197
+ target: string;
2198
+ exit?: false | undefined;
2199
+ }>, z.ZodObject<{
2200
+ exit: z.ZodLiteral<true>;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ exit: true;
2203
+ }, {
2204
+ exit: true;
2205
+ }>]>>]>, import("./node.ts").Output, string | (({
2206
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2207
+ } & ({
2208
+ name: string;
2209
+ default?: false | undefined;
2210
+ } | {
2211
+ default?: true | undefined;
2212
+ })) & ({
2213
+ target: string;
2214
+ exit?: false | undefined;
2215
+ } | {
2216
+ exit: true;
2217
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
2218
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2219
+ } & ({
2220
+ name: string;
2221
+ default?: false | undefined;
2222
+ } | {
2223
+ default?: true | undefined;
2224
+ })) & ({
2225
+ target: string;
2226
+ exit?: false | undefined;
2227
+ } | {
2228
+ exit: true;
2229
+ })))[] | undefined>;
2230
+ id: z.ZodDefault<z.ZodString>;
2231
+ subject: z.ZodString;
2232
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2233
+ }, "strip", z.ZodTypeAny, {
2234
+ type: "catch";
2235
+ id: string;
2236
+ output: import("./node.ts").Output[];
2237
+ subject: string;
2238
+ meta?: Record<string, any> | undefined;
2239
+ }, {
2240
+ type: "catch";
2241
+ subject: string;
2242
+ id?: string | undefined;
2243
+ output?: (string | (({
2244
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2245
+ } & ({
2246
+ name: string;
2247
+ default?: false | undefined;
2248
+ } | {
2249
+ default?: true | undefined;
2250
+ })) & ({
2251
+ target: string;
2252
+ exit?: false | undefined;
2253
+ } | {
2254
+ exit: true;
2255
+ })))[] | undefined;
2256
+ meta?: Record<string, any> | undefined;
2257
+ }>, z.ZodObject<{
2258
+ type: z.ZodLiteral<"logic">;
2259
+ alias: z.ZodOptional<z.ZodString>;
2260
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2261
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2264
+ }, {
2265
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2266
+ }>, z.ZodUnion<[z.ZodObject<{
2267
+ default: z.ZodDefault<z.ZodLiteral<false>>;
2268
+ name: z.ZodString;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ default: false;
2271
+ name: string;
2272
+ }, {
2273
+ name: string;
2274
+ default?: false | undefined;
2275
+ }>, z.ZodObject<{
2276
+ default: z.ZodDefault<z.ZodLiteral<true>>;
2277
+ }, "strip", z.ZodTypeAny, {
2278
+ default: true;
2279
+ }, {
2280
+ default?: true | undefined;
2281
+ }>]>>, z.ZodUnion<[z.ZodObject<{
2282
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
2283
+ target: z.ZodString;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ exit: false;
2286
+ target: string;
2287
+ }, {
2288
+ target: string;
2289
+ exit?: false | undefined;
2290
+ }>, z.ZodObject<{
2291
+ exit: z.ZodLiteral<true>;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ exit: true;
2294
+ }, {
2295
+ exit: true;
2296
+ }>]>>]>, import("./node.ts").Output, string | (({
2297
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2298
+ } & ({
2299
+ name: string;
2300
+ default?: false | undefined;
2301
+ } | {
2302
+ default?: true | undefined;
2303
+ })) & ({
2304
+ target: string;
2305
+ exit?: false | undefined;
2306
+ } | {
2307
+ exit: true;
2308
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
2309
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2310
+ } & ({
2311
+ name: string;
2312
+ default?: false | undefined;
2313
+ } | {
2314
+ default?: true | undefined;
2315
+ })) & ({
2316
+ target: string;
2317
+ exit?: false | undefined;
2318
+ } | {
2319
+ exit: true;
2320
+ })))[] | undefined>;
2321
+ id: z.ZodDefault<z.ZodString>;
2322
+ script: z.ZodString;
2323
+ concurrency: z.ZodDefault<z.ZodBoolean>;
2324
+ language: z.ZodDefault<z.ZodEnum<["javascript", "python", "typescript"]>>;
2325
+ maxExecutionTime: z.ZodDefault<z.ZodNumber>;
2326
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ type: "logic";
2329
+ id: string;
2330
+ output: import("./node.ts").Output[];
2331
+ script: string;
2332
+ concurrency: boolean;
2333
+ language: "javascript" | "python" | "typescript";
2334
+ maxExecutionTime: number;
2335
+ meta?: Record<string, any> | undefined;
2336
+ alias?: string | undefined;
2337
+ }, {
2338
+ type: "logic";
2339
+ script: string;
2340
+ id?: string | undefined;
2341
+ output?: (string | (({
2342
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2343
+ } & ({
2344
+ name: string;
2345
+ default?: false | undefined;
2346
+ } | {
2347
+ default?: true | undefined;
2348
+ })) & ({
2349
+ target: string;
2350
+ exit?: false | undefined;
2351
+ } | {
2352
+ exit: true;
2353
+ })))[] | undefined;
2354
+ meta?: Record<string, any> | undefined;
2355
+ alias?: string | undefined;
2356
+ concurrency?: boolean | undefined;
2357
+ language?: "javascript" | "python" | "typescript" | undefined;
2358
+ maxExecutionTime?: number | undefined;
2359
+ }>, z.ZodObject<{
2360
+ id: z.ZodDefault<z.ZodString>;
2361
+ type: z.ZodLiteral<"or">;
2362
+ alias: z.ZodOptional<z.ZodString>;
2363
+ output: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2364
+ schema: z.ZodOptional<z.ZodNullable<z.ZodType<import("json-schema").JSONSchema7, z.ZodTypeDef, import("json-schema").JSONSchema7>>>;
2365
+ }, "strip", z.ZodTypeAny, {
2366
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2367
+ }, {
2368
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2369
+ }>, z.ZodUnion<[z.ZodObject<{
2370
+ default: z.ZodDefault<z.ZodLiteral<false>>;
2371
+ name: z.ZodString;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ default: false;
2374
+ name: string;
2375
+ }, {
2376
+ name: string;
2377
+ default?: false | undefined;
2378
+ }>, z.ZodObject<{
2379
+ default: z.ZodDefault<z.ZodLiteral<true>>;
2380
+ }, "strip", z.ZodTypeAny, {
2381
+ default: true;
2382
+ }, {
2383
+ default?: true | undefined;
2384
+ }>]>>, z.ZodUnion<[z.ZodObject<{
2385
+ exit: z.ZodDefault<z.ZodLiteral<false>>;
2386
+ target: z.ZodString;
2387
+ }, "strip", z.ZodTypeAny, {
2388
+ exit: false;
2389
+ target: string;
2390
+ }, {
2391
+ target: string;
2392
+ exit?: false | undefined;
2393
+ }>, z.ZodObject<{
2394
+ exit: z.ZodLiteral<true>;
2395
+ }, "strip", z.ZodTypeAny, {
2396
+ exit: true;
2397
+ }, {
2398
+ exit: true;
2399
+ }>]>>]>, import("./node.ts").Output, string | (({
2400
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2401
+ } & ({
2402
+ name: string;
2403
+ default?: false | undefined;
2404
+ } | {
2405
+ default?: true | undefined;
2406
+ })) & ({
2407
+ target: string;
2408
+ exit?: false | undefined;
2409
+ } | {
2410
+ exit: true;
2411
+ }))>, "many">>, import("./node.ts").Output[], (string | (({
2412
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2413
+ } & ({
2414
+ name: string;
2415
+ default?: false | undefined;
2416
+ } | {
2417
+ default?: true | undefined;
2418
+ })) & ({
2419
+ target: string;
2420
+ exit?: false | undefined;
2421
+ } | {
2422
+ exit: true;
2423
+ })))[] | undefined>;
2424
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ type: "or";
2427
+ id: string;
2428
+ output: import("./node.ts").Output[];
2429
+ meta?: Record<string, any> | undefined;
2430
+ alias?: string | undefined;
2431
+ }, {
2432
+ type: "or";
2433
+ id?: string | undefined;
2434
+ output?: (string | (({
2435
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2436
+ } & ({
2437
+ name: string;
2438
+ default?: false | undefined;
2439
+ } | {
2440
+ default?: true | undefined;
2441
+ })) & ({
2442
+ target: string;
2443
+ exit?: false | undefined;
2444
+ } | {
2445
+ exit: true;
2446
+ })))[] | undefined;
2447
+ meta?: Record<string, any> | undefined;
2448
+ alias?: string | undefined;
2449
+ }>]>, "many">, ({
2450
+ type: "entry";
2451
+ id: "__entry__";
2452
+ output: import("./node.ts").Output[];
2453
+ inputSchema: import("json-schema").JSONSchema7;
2454
+ metaSchema: import("json-schema").JSONSchema7;
2455
+ meta?: Record<string, any> | undefined;
2456
+ } | {
2457
+ type: "service";
2458
+ id: string;
2459
+ name: string;
2460
+ output: import("./node.ts").Output[];
2461
+ inputSchema: ({
2462
+ type: "object";
2463
+ } & import("json-schema").JSONSchema7) | {
2464
+ type: "null";
2465
+ };
2466
+ version: string;
2467
+ configurationSchema: import("json-schema").JSONSchema7;
2468
+ meta?: Record<string, any> | undefined;
2469
+ configuration?: any;
2470
+ alias?: string | undefined;
2471
+ ttl?: number | undefined;
2472
+ retry?: number | undefined;
2473
+ retryDelay?: number | undefined;
2474
+ } | {
2475
+ type: "catch";
2476
+ id: string;
2477
+ output: import("./node.ts").Output[];
2478
+ subject: string;
2479
+ meta?: Record<string, any> | undefined;
2480
+ } | {
2481
+ type: "logic";
2482
+ id: string;
2483
+ output: import("./node.ts").Output[];
2484
+ script: string;
2485
+ concurrency: boolean;
2486
+ language: "javascript" | "python" | "typescript";
2487
+ maxExecutionTime: number;
2488
+ meta?: Record<string, any> | undefined;
2489
+ alias?: string | undefined;
2490
+ } | {
2491
+ type: "or";
2492
+ id: string;
2493
+ output: import("./node.ts").Output[];
2494
+ meta?: Record<string, any> | undefined;
2495
+ alias?: string | undefined;
2496
+ })[], ({
2497
+ type: "entry";
2498
+ id?: "__entry__" | undefined;
2499
+ output?: (string | {
2500
+ exit: true;
2501
+ default?: true | undefined;
2502
+ } | {
2503
+ target: string;
2504
+ default?: true | undefined;
2505
+ exit?: false | undefined;
2506
+ })[] | undefined;
2507
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
2508
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
2509
+ meta?: Record<string, any> | undefined;
2510
+ } | {
2511
+ type: "service";
2512
+ name: string;
2513
+ version: string;
2514
+ id?: string | undefined;
2515
+ output?: (string | (({
2516
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2517
+ } & ({
2518
+ name: string;
2519
+ default?: false | undefined;
2520
+ } | {
2521
+ default?: true | undefined;
2522
+ })) & ({
2523
+ target: string;
2524
+ exit?: false | undefined;
2525
+ } | {
2526
+ exit: true;
2527
+ })))[] | undefined;
2528
+ inputSchema?: ({
2529
+ type: "object";
2530
+ } & import("json-schema").JSONSchema7) | {
2531
+ type: "null";
2532
+ } | undefined;
2533
+ meta?: Record<string, any> | undefined;
2534
+ configuration?: any;
2535
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
2536
+ alias?: string | undefined;
2537
+ ttl?: number | undefined;
2538
+ retry?: number | undefined;
2539
+ retryDelay?: number | undefined;
2540
+ } | {
2541
+ type: "catch";
2542
+ subject: string;
2543
+ id?: string | undefined;
2544
+ output?: (string | (({
2545
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2546
+ } & ({
2547
+ name: string;
2548
+ default?: false | undefined;
2549
+ } | {
2550
+ default?: true | undefined;
2551
+ })) & ({
2552
+ target: string;
2553
+ exit?: false | undefined;
2554
+ } | {
2555
+ exit: true;
2556
+ })))[] | undefined;
2557
+ meta?: Record<string, any> | undefined;
2558
+ } | {
2559
+ type: "logic";
2560
+ script: string;
2561
+ id?: string | undefined;
2562
+ output?: (string | (({
2563
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2564
+ } & ({
2565
+ name: string;
2566
+ default?: false | undefined;
2567
+ } | {
2568
+ default?: true | undefined;
2569
+ })) & ({
2570
+ target: string;
2571
+ exit?: false | undefined;
2572
+ } | {
2573
+ exit: true;
2574
+ })))[] | undefined;
2575
+ meta?: Record<string, any> | undefined;
2576
+ alias?: string | undefined;
2577
+ concurrency?: boolean | undefined;
2578
+ language?: "javascript" | "python" | "typescript" | undefined;
2579
+ maxExecutionTime?: number | undefined;
2580
+ } | {
2581
+ type: "or";
2582
+ id?: string | undefined;
2583
+ output?: (string | (({
2584
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2585
+ } & ({
2586
+ name: string;
2587
+ default?: false | undefined;
2588
+ } | {
2589
+ default?: true | undefined;
2590
+ })) & ({
2591
+ target: string;
2592
+ exit?: false | undefined;
2593
+ } | {
2594
+ exit: true;
2595
+ })))[] | undefined;
2596
+ meta?: Record<string, any> | undefined;
2597
+ alias?: string | undefined;
2598
+ })[]>, ({
2599
+ type: "entry";
2600
+ id: "__entry__";
2601
+ output: import("./node.ts").Output[];
2602
+ inputSchema: import("json-schema").JSONSchema7;
2603
+ metaSchema: import("json-schema").JSONSchema7;
2604
+ meta?: Record<string, any> | undefined;
2605
+ } | {
2606
+ type: "service";
2607
+ id: string;
2608
+ name: string;
2609
+ output: import("./node.ts").Output[];
2610
+ inputSchema: ({
2611
+ type: "object";
2612
+ } & import("json-schema").JSONSchema7) | {
2613
+ type: "null";
2614
+ };
2615
+ version: string;
2616
+ configurationSchema: import("json-schema").JSONSchema7;
2617
+ meta?: Record<string, any> | undefined;
2618
+ configuration?: any;
2619
+ alias?: string | undefined;
2620
+ ttl?: number | undefined;
2621
+ retry?: number | undefined;
2622
+ retryDelay?: number | undefined;
2623
+ } | {
2624
+ type: "catch";
2625
+ id: string;
2626
+ output: import("./node.ts").Output[];
2627
+ subject: string;
2628
+ meta?: Record<string, any> | undefined;
2629
+ } | {
2630
+ type: "logic";
2631
+ id: string;
2632
+ output: import("./node.ts").Output[];
2633
+ script: string;
2634
+ concurrency: boolean;
2635
+ language: "javascript" | "python" | "typescript";
2636
+ maxExecutionTime: number;
2637
+ meta?: Record<string, any> | undefined;
2638
+ alias?: string | undefined;
2639
+ } | {
2640
+ type: "or";
2641
+ id: string;
2642
+ output: import("./node.ts").Output[];
2643
+ meta?: Record<string, any> | undefined;
2644
+ alias?: string | undefined;
2645
+ })[], ({
2646
+ type: "entry";
2647
+ id?: "__entry__" | undefined;
2648
+ output?: (string | {
2649
+ exit: true;
2650
+ default?: true | undefined;
2651
+ } | {
2652
+ target: string;
2653
+ default?: true | undefined;
2654
+ exit?: false | undefined;
2655
+ })[] | undefined;
2656
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
2657
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
2658
+ meta?: Record<string, any> | undefined;
2659
+ } | {
2660
+ type: "service";
2661
+ name: string;
2662
+ version: string;
2663
+ id?: string | undefined;
2664
+ output?: (string | (({
2665
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2666
+ } & ({
2667
+ name: string;
2668
+ default?: false | undefined;
2669
+ } | {
2670
+ default?: true | undefined;
2671
+ })) & ({
2672
+ target: string;
2673
+ exit?: false | undefined;
2674
+ } | {
2675
+ exit: true;
2676
+ })))[] | undefined;
2677
+ inputSchema?: ({
2678
+ type: "object";
2679
+ } & import("json-schema").JSONSchema7) | {
2680
+ type: "null";
2681
+ } | undefined;
2682
+ meta?: Record<string, any> | undefined;
2683
+ configuration?: any;
2684
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
2685
+ alias?: string | undefined;
2686
+ ttl?: number | undefined;
2687
+ retry?: number | undefined;
2688
+ retryDelay?: number | undefined;
2689
+ } | {
2690
+ type: "catch";
2691
+ subject: string;
2692
+ id?: string | undefined;
2693
+ output?: (string | (({
2694
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2695
+ } & ({
2696
+ name: string;
2697
+ default?: false | undefined;
2698
+ } | {
2699
+ default?: true | undefined;
2700
+ })) & ({
2701
+ target: string;
2702
+ exit?: false | undefined;
2703
+ } | {
2704
+ exit: true;
2705
+ })))[] | undefined;
2706
+ meta?: Record<string, any> | undefined;
2707
+ } | {
2708
+ type: "logic";
2709
+ script: string;
2710
+ id?: string | undefined;
2711
+ output?: (string | (({
2712
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2713
+ } & ({
2714
+ name: string;
2715
+ default?: false | undefined;
2716
+ } | {
2717
+ default?: true | undefined;
2718
+ })) & ({
2719
+ target: string;
2720
+ exit?: false | undefined;
2721
+ } | {
2722
+ exit: true;
2723
+ })))[] | undefined;
2724
+ meta?: Record<string, any> | undefined;
2725
+ alias?: string | undefined;
2726
+ concurrency?: boolean | undefined;
2727
+ language?: "javascript" | "python" | "typescript" | undefined;
2728
+ maxExecutionTime?: number | undefined;
2729
+ } | {
2730
+ type: "or";
2731
+ id?: string | undefined;
2732
+ output?: (string | (({
2733
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2734
+ } & ({
2735
+ name: string;
2736
+ default?: false | undefined;
2737
+ } | {
2738
+ default?: true | undefined;
2739
+ })) & ({
2740
+ target: string;
2741
+ exit?: false | undefined;
2742
+ } | {
2743
+ exit: true;
2744
+ })))[] | undefined;
2745
+ meta?: Record<string, any> | undefined;
2746
+ alias?: string | undefined;
2747
+ })[]>;
2748
+ context: z.ZodObject<{
2749
+ input: z.ZodAny;
2750
+ meta: z.ZodAny;
2751
+ tenant: z.ZodObject<{
2752
+ name: z.ZodString;
2753
+ }, "strip", z.ZodTypeAny, {
2754
+ name: string;
2755
+ }, {
2756
+ name: string;
2757
+ }>;
2758
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2759
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
2760
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
2761
+ }, "strip", z.ZodTypeAny, {
2762
+ errors: Record<string, string>;
2763
+ data: Record<string, any>;
2764
+ tenant: {
2765
+ name: string;
2766
+ };
2767
+ dates: Record<string, string>;
2768
+ meta?: any;
2769
+ input?: any;
2770
+ }, {
2771
+ errors: Record<string, string>;
2772
+ data: Record<string, any>;
2773
+ tenant: {
2774
+ name: string;
2775
+ };
2776
+ dates: Record<string, string>;
2777
+ meta?: any;
2778
+ input?: any;
2779
+ }>;
2780
+ }>, "strip", z.ZodTypeAny, {
2781
+ type: "TASK_START";
2782
+ timestamp: Date;
2783
+ nodes: ({
2784
+ type: "entry";
2785
+ id: "__entry__";
2786
+ output: import("./node.ts").Output[];
2787
+ inputSchema: import("json-schema").JSONSchema7;
2788
+ metaSchema: import("json-schema").JSONSchema7;
2789
+ meta?: Record<string, any> | undefined;
2790
+ } | {
2791
+ type: "service";
2792
+ id: string;
2793
+ name: string;
2794
+ output: import("./node.ts").Output[];
2795
+ inputSchema: ({
2796
+ type: "object";
2797
+ } & import("json-schema").JSONSchema7) | {
2798
+ type: "null";
2799
+ };
2800
+ version: string;
2801
+ configurationSchema: import("json-schema").JSONSchema7;
2802
+ meta?: Record<string, any> | undefined;
2803
+ configuration?: any;
2804
+ alias?: string | undefined;
2805
+ ttl?: number | undefined;
2806
+ retry?: number | undefined;
2807
+ retryDelay?: number | undefined;
2808
+ } | {
2809
+ type: "catch";
2810
+ id: string;
2811
+ output: import("./node.ts").Output[];
2812
+ subject: string;
2813
+ meta?: Record<string, any> | undefined;
2814
+ } | {
2815
+ type: "logic";
2816
+ id: string;
2817
+ output: import("./node.ts").Output[];
2818
+ script: string;
2819
+ concurrency: boolean;
2820
+ language: "javascript" | "python" | "typescript";
2821
+ maxExecutionTime: number;
2822
+ meta?: Record<string, any> | undefined;
2823
+ alias?: string | undefined;
2824
+ } | {
2825
+ type: "or";
2826
+ id: string;
2827
+ output: import("./node.ts").Output[];
2828
+ meta?: Record<string, any> | undefined;
2829
+ alias?: string | undefined;
2830
+ })[];
2831
+ context: {
2832
+ errors: Record<string, string>;
2833
+ data: Record<string, any>;
2834
+ tenant: {
2835
+ name: string;
2836
+ };
2837
+ dates: Record<string, string>;
2838
+ meta?: any;
2839
+ input?: any;
2840
+ };
2841
+ }, {
2842
+ type: "TASK_START";
2843
+ timestamp: number;
2844
+ nodes: ({
2845
+ type: "entry";
2846
+ id?: "__entry__" | undefined;
2847
+ output?: (string | {
2848
+ exit: true;
2849
+ default?: true | undefined;
2850
+ } | {
2851
+ target: string;
2852
+ default?: true | undefined;
2853
+ exit?: false | undefined;
2854
+ })[] | undefined;
2855
+ inputSchema?: import("json-schema").JSONSchema7 | undefined;
2856
+ metaSchema?: import("json-schema").JSONSchema7 | undefined;
2857
+ meta?: Record<string, any> | undefined;
2858
+ } | {
2859
+ type: "service";
2860
+ name: string;
2861
+ version: string;
2862
+ id?: string | undefined;
2863
+ output?: (string | (({
2864
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2865
+ } & ({
2866
+ name: string;
2867
+ default?: false | undefined;
2868
+ } | {
2869
+ default?: true | undefined;
2870
+ })) & ({
2871
+ target: string;
2872
+ exit?: false | undefined;
2873
+ } | {
2874
+ exit: true;
2875
+ })))[] | undefined;
2876
+ inputSchema?: ({
2877
+ type: "object";
2878
+ } & import("json-schema").JSONSchema7) | {
2879
+ type: "null";
2880
+ } | undefined;
2881
+ meta?: Record<string, any> | undefined;
2882
+ configuration?: any;
2883
+ configurationSchema?: import("json-schema").JSONSchema7 | undefined;
2884
+ alias?: string | undefined;
2885
+ ttl?: number | undefined;
2886
+ retry?: number | undefined;
2887
+ retryDelay?: number | undefined;
2888
+ } | {
2889
+ type: "catch";
2890
+ subject: string;
2891
+ id?: string | undefined;
2892
+ output?: (string | (({
2893
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2894
+ } & ({
2895
+ name: string;
2896
+ default?: false | undefined;
2897
+ } | {
2898
+ default?: true | undefined;
2899
+ })) & ({
2900
+ target: string;
2901
+ exit?: false | undefined;
2902
+ } | {
2903
+ exit: true;
2904
+ })))[] | undefined;
2905
+ meta?: Record<string, any> | undefined;
2906
+ } | {
2907
+ type: "logic";
2908
+ script: string;
2909
+ id?: string | undefined;
2910
+ output?: (string | (({
2911
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2912
+ } & ({
2913
+ name: string;
2914
+ default?: false | undefined;
2915
+ } | {
2916
+ default?: true | undefined;
2917
+ })) & ({
2918
+ target: string;
2919
+ exit?: false | undefined;
2920
+ } | {
2921
+ exit: true;
2922
+ })))[] | undefined;
2923
+ meta?: Record<string, any> | undefined;
2924
+ alias?: string | undefined;
2925
+ concurrency?: boolean | undefined;
2926
+ language?: "javascript" | "python" | "typescript" | undefined;
2927
+ maxExecutionTime?: number | undefined;
2928
+ } | {
2929
+ type: "or";
2930
+ id?: string | undefined;
2931
+ output?: (string | (({
2932
+ schema?: import("json-schema").JSONSchema7 | null | undefined;
2933
+ } & ({
2934
+ name: string;
2935
+ default?: false | undefined;
2936
+ } | {
2937
+ default?: true | undefined;
2938
+ })) & ({
2939
+ target: string;
2940
+ exit?: false | undefined;
2941
+ } | {
2942
+ exit: true;
2943
+ })))[] | undefined;
2944
+ meta?: Record<string, any> | undefined;
2945
+ alias?: string | undefined;
2946
+ })[];
2947
+ context: {
2948
+ errors: Record<string, string>;
2949
+ data: Record<string, any>;
2950
+ tenant: {
2951
+ name: string;
2952
+ };
2953
+ dates: Record<string, string>;
2954
+ meta?: any;
2955
+ input?: any;
2956
+ };
2957
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2958
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
2959
+ }, {
2960
+ type: z.ZodLiteral<"TASK_ERROR">;
2961
+ reason: z.ZodOptional<z.ZodString>;
2962
+ context: z.ZodObject<{
2963
+ input: z.ZodAny;
2964
+ meta: z.ZodAny;
2965
+ tenant: z.ZodObject<{
2966
+ name: z.ZodString;
2967
+ }, "strip", z.ZodTypeAny, {
2968
+ name: string;
2969
+ }, {
2970
+ name: string;
2971
+ }>;
2972
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2973
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
2974
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
2975
+ }, "strip", z.ZodTypeAny, {
2976
+ errors: Record<string, string>;
2977
+ data: Record<string, any>;
2978
+ tenant: {
2979
+ name: string;
2980
+ };
2981
+ dates: Record<string, string>;
2982
+ meta?: any;
2983
+ input?: any;
2984
+ }, {
2985
+ errors: Record<string, string>;
2986
+ data: Record<string, any>;
2987
+ tenant: {
2988
+ name: string;
2989
+ };
2990
+ dates: Record<string, string>;
2991
+ meta?: any;
2992
+ input?: any;
2993
+ }>;
2994
+ }>, "strip", z.ZodTypeAny, {
2995
+ type: "TASK_ERROR";
2996
+ timestamp: Date;
2997
+ context: {
2998
+ errors: Record<string, string>;
2999
+ data: Record<string, any>;
3000
+ tenant: {
3001
+ name: string;
3002
+ };
3003
+ dates: Record<string, string>;
3004
+ meta?: any;
3005
+ input?: any;
3006
+ };
3007
+ reason?: string | undefined;
3008
+ }, {
3009
+ type: "TASK_ERROR";
3010
+ timestamp: number;
3011
+ context: {
3012
+ errors: Record<string, string>;
3013
+ data: Record<string, any>;
3014
+ tenant: {
3015
+ name: string;
3016
+ };
3017
+ dates: Record<string, string>;
3018
+ meta?: any;
3019
+ input?: any;
3020
+ };
3021
+ reason?: string | undefined;
3022
+ }>, z.ZodObject<z.objectUtil.extendShape<{
3023
+ timestamp: z.ZodEffects<z.ZodNumber, Date, number>;
3024
+ }, {
3025
+ type: z.ZodLiteral<"TASK_FINISHED">;
3026
+ context: z.ZodObject<{
3027
+ input: z.ZodAny;
3028
+ meta: z.ZodAny;
3029
+ tenant: z.ZodObject<{
3030
+ name: z.ZodString;
3031
+ }, "strip", z.ZodTypeAny, {
3032
+ name: string;
3033
+ }, {
3034
+ name: string;
3035
+ }>;
3036
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
3037
+ errors: z.ZodRecord<z.ZodString, z.ZodString>;
3038
+ dates: z.ZodRecord<z.ZodString, z.ZodString>;
3039
+ }, "strip", z.ZodTypeAny, {
3040
+ errors: Record<string, string>;
3041
+ data: Record<string, any>;
3042
+ tenant: {
3043
+ name: string;
3044
+ };
3045
+ dates: Record<string, string>;
3046
+ meta?: any;
3047
+ input?: any;
3048
+ }, {
3049
+ errors: Record<string, string>;
3050
+ data: Record<string, any>;
3051
+ tenant: {
3052
+ name: string;
3053
+ };
3054
+ dates: Record<string, string>;
3055
+ meta?: any;
3056
+ input?: any;
3057
+ }>;
3058
+ }>, "strip", z.ZodTypeAny, {
3059
+ type: "TASK_FINISHED";
3060
+ timestamp: Date;
3061
+ context: {
3062
+ errors: Record<string, string>;
3063
+ data: Record<string, any>;
3064
+ tenant: {
3065
+ name: string;
3066
+ };
3067
+ dates: Record<string, string>;
3068
+ meta?: any;
3069
+ input?: any;
3070
+ };
3071
+ }, {
3072
+ type: "TASK_FINISHED";
3073
+ timestamp: number;
3074
+ context: {
3075
+ errors: Record<string, string>;
3076
+ data: Record<string, any>;
3077
+ tenant: {
3078
+ name: string;
3079
+ };
3080
+ dates: Record<string, string>;
3081
+ meta?: any;
3082
+ input?: any;
3083
+ };
3084
+ }>]>;
3085
+ export type Update = z.infer<typeof updateSchema>;
3086
+ export {};
3087
+ //# sourceMappingURL=update.d.ts.map