@requence/task 1.0.0-alpha.1 → 1.0.0-alpha.10

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