@requence/task 1.0.0-alpha.14 → 1.0.0-alpha.16

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.
@@ -37,6 +37,118 @@ export interface Result<T> {
37
37
  getTaskId(): string;
38
38
  getTaskUrl(): string;
39
39
  }
40
+ declare const nodeUpdateUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
41
+ timestamp: z.ZodDate;
42
+ taskId: z.ZodString;
43
+ }, {
44
+ type: z.ZodLiteral<"nodeUpdate">;
45
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
46
+ id: z.ZodString;
47
+ type: z.ZodLiteral<"service">;
48
+ alias: z.ZodOptional<z.ZodString>;
49
+ service: z.ZodOptional<z.ZodObject<{
50
+ id: z.ZodString;
51
+ name: z.ZodString;
52
+ version: z.ZodString;
53
+ }, "strip", z.ZodTypeAny, {
54
+ id: string;
55
+ name: string;
56
+ version: string;
57
+ }, {
58
+ id: string;
59
+ name: string;
60
+ version: string;
61
+ }>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ type: "service";
64
+ id: string;
65
+ service?: {
66
+ id: string;
67
+ name: string;
68
+ version: string;
69
+ } | undefined;
70
+ alias?: string | undefined;
71
+ }, {
72
+ type: "service";
73
+ id: string;
74
+ service?: {
75
+ id: string;
76
+ name: string;
77
+ version: string;
78
+ } | undefined;
79
+ alias?: string | undefined;
80
+ }>, z.ZodObject<{
81
+ id: z.ZodString;
82
+ type: z.ZodLiteral<"logic">;
83
+ alias: z.ZodOptional<z.ZodString>;
84
+ logic: z.ZodOptional<z.ZodObject<{
85
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ language: "javascript" | "python" | "typescript";
88
+ }, {
89
+ language: "javascript" | "python" | "typescript";
90
+ }>>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ type: "logic";
93
+ id: string;
94
+ alias?: string | undefined;
95
+ logic?: {
96
+ language: "javascript" | "python" | "typescript";
97
+ } | undefined;
98
+ }, {
99
+ type: "logic";
100
+ id: string;
101
+ alias?: string | undefined;
102
+ logic?: {
103
+ language: "javascript" | "python" | "typescript";
104
+ } | undefined;
105
+ }>]>;
106
+ data: z.ZodUnknown;
107
+ }>, "strip", z.ZodTypeAny, {
108
+ type: "nodeUpdate";
109
+ timestamp: Date;
110
+ taskId: string;
111
+ node: {
112
+ type: "service";
113
+ id: string;
114
+ service?: {
115
+ id: string;
116
+ name: string;
117
+ version: string;
118
+ } | undefined;
119
+ alias?: string | undefined;
120
+ } | {
121
+ type: "logic";
122
+ id: string;
123
+ alias?: string | undefined;
124
+ logic?: {
125
+ language: "javascript" | "python" | "typescript";
126
+ } | undefined;
127
+ };
128
+ data?: unknown;
129
+ }, {
130
+ type: "nodeUpdate";
131
+ timestamp: Date;
132
+ taskId: string;
133
+ node: {
134
+ type: "service";
135
+ id: string;
136
+ service?: {
137
+ id: string;
138
+ name: string;
139
+ version: string;
140
+ } | undefined;
141
+ alias?: string | undefined;
142
+ } | {
143
+ type: "logic";
144
+ id: string;
145
+ alias?: string | undefined;
146
+ logic?: {
147
+ language: "javascript" | "python" | "typescript";
148
+ } | undefined;
149
+ };
150
+ data?: unknown;
151
+ }>;
40
152
  export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
41
153
  timestamp: z.ZodDate;
42
154
  taskId: z.ZodString;
@@ -353,54 +465,117 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
353
465
  taskId: z.ZodString;
354
466
  }, {
355
467
  type: z.ZodLiteral<"nodeUpdate">;
468
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
469
+ id: z.ZodString;
470
+ type: z.ZodLiteral<"service">;
471
+ alias: z.ZodOptional<z.ZodString>;
472
+ service: z.ZodOptional<z.ZodObject<{
473
+ id: z.ZodString;
474
+ name: z.ZodString;
475
+ version: z.ZodString;
476
+ }, "strip", z.ZodTypeAny, {
477
+ id: string;
478
+ name: string;
479
+ version: string;
480
+ }, {
481
+ id: string;
482
+ name: string;
483
+ version: string;
484
+ }>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "service";
487
+ id: string;
488
+ service?: {
489
+ id: string;
490
+ name: string;
491
+ version: string;
492
+ } | undefined;
493
+ alias?: string | undefined;
494
+ }, {
495
+ type: "service";
496
+ id: string;
497
+ service?: {
498
+ id: string;
499
+ name: string;
500
+ version: string;
501
+ } | undefined;
502
+ alias?: string | undefined;
503
+ }>, z.ZodObject<{
504
+ id: z.ZodString;
505
+ type: z.ZodLiteral<"logic">;
506
+ alias: z.ZodOptional<z.ZodString>;
507
+ logic: z.ZodOptional<z.ZodObject<{
508
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ language: "javascript" | "python" | "typescript";
511
+ }, {
512
+ language: "javascript" | "python" | "typescript";
513
+ }>>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ type: "logic";
516
+ id: string;
517
+ alias?: string | undefined;
518
+ logic?: {
519
+ language: "javascript" | "python" | "typescript";
520
+ } | undefined;
521
+ }, {
522
+ type: "logic";
523
+ id: string;
524
+ alias?: string | undefined;
525
+ logic?: {
526
+ language: "javascript" | "python" | "typescript";
527
+ } | undefined;
528
+ }>]>;
356
529
  data: z.ZodUnknown;
357
530
  }>, "strip", z.ZodTypeAny, {
358
531
  type: "nodeUpdate";
359
532
  timestamp: Date;
360
533
  taskId: string;
534
+ node: {
535
+ type: "service";
536
+ id: string;
537
+ service?: {
538
+ id: string;
539
+ name: string;
540
+ version: string;
541
+ } | undefined;
542
+ alias?: string | undefined;
543
+ } | {
544
+ type: "logic";
545
+ id: string;
546
+ alias?: string | undefined;
547
+ logic?: {
548
+ language: "javascript" | "python" | "typescript";
549
+ } | undefined;
550
+ };
361
551
  data?: unknown;
362
552
  }, {
363
553
  type: "nodeUpdate";
364
554
  timestamp: Date;
365
555
  taskId: string;
556
+ node: {
557
+ type: "service";
558
+ id: string;
559
+ service?: {
560
+ id: string;
561
+ name: string;
562
+ version: string;
563
+ } | undefined;
564
+ alias?: string | undefined;
565
+ } | {
566
+ type: "logic";
567
+ id: string;
568
+ alias?: string | undefined;
569
+ logic?: {
570
+ language: "javascript" | "python" | "typescript";
571
+ } | undefined;
572
+ };
366
573
  data?: unknown;
367
574
  }>, z.ZodObject<z.objectUtil.extendShape<{
368
575
  timestamp: z.ZodDate;
369
576
  taskId: z.ZodString;
370
577
  }, {
371
578
  type: z.ZodLiteral<"nodeError">;
372
- error: z.ZodString;
373
- }>, "strip", z.ZodTypeAny, {
374
- type: "nodeError";
375
- error: string;
376
- timestamp: Date;
377
- taskId: string;
378
- }, {
379
- type: "nodeError";
380
- error: string;
381
- timestamp: Date;
382
- taskId: string;
383
- }>, z.ZodObject<z.objectUtil.extendShape<{
384
- timestamp: z.ZodDate;
385
- taskId: z.ZodString;
386
- }, {
387
- type: z.ZodLiteral<"nodeDefer">;
388
- reason: z.ZodOptional<z.ZodString>;
389
- }>, "strip", z.ZodTypeAny, {
390
- type: "nodeDefer";
391
- timestamp: Date;
392
- taskId: string;
393
- reason?: string | undefined;
394
- }, {
395
- type: "nodeDefer";
396
- timestamp: Date;
397
- taskId: string;
398
- reason?: string | undefined;
399
- }>, z.ZodObject<z.objectUtil.extendShape<{
400
- timestamp: z.ZodDate;
401
- taskId: z.ZodString;
402
- }, {
403
- type: z.ZodLiteral<"nodeEnd">;
404
579
  node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
405
580
  id: z.ZodString;
406
581
  type: z.ZodLiteral<"service">;
@@ -462,8 +637,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
462
637
  language: "javascript" | "python" | "typescript";
463
638
  } | undefined;
464
639
  }>]>;
640
+ error: z.ZodString;
465
641
  }>, "strip", z.ZodTypeAny, {
466
- type: "nodeEnd";
642
+ type: "nodeError";
643
+ error: string;
467
644
  timestamp: Date;
468
645
  taskId: string;
469
646
  node: {
@@ -484,7 +661,8 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
484
661
  } | undefined;
485
662
  };
486
663
  }, {
487
- type: "nodeEnd";
664
+ type: "nodeError";
665
+ error: string;
488
666
  timestamp: Date;
489
667
  taskId: string;
490
668
  node: {
@@ -504,20 +682,238 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
504
682
  language: "javascript" | "python" | "typescript";
505
683
  } | undefined;
506
684
  };
507
- }>]>;
508
- export type Update<T> = Exclude<z.infer<typeof updateSchema>, {
509
- type: 'nodeUpdate';
510
- }> | {
511
- type: 'nodeUpdate';
512
- data: Partial<Data<T>>;
513
- };
514
- export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
515
- type: z.ZodString;
516
- data: z.ZodString;
517
- }, "strip", z.ZodTypeAny, {
518
- type: string;
519
- data: string;
520
- }, {
685
+ }>, z.ZodObject<z.objectUtil.extendShape<{
686
+ timestamp: z.ZodDate;
687
+ taskId: z.ZodString;
688
+ }, {
689
+ type: z.ZodLiteral<"nodeDefer">;
690
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
691
+ id: z.ZodString;
692
+ type: z.ZodLiteral<"service">;
693
+ alias: z.ZodOptional<z.ZodString>;
694
+ service: z.ZodOptional<z.ZodObject<{
695
+ id: z.ZodString;
696
+ name: z.ZodString;
697
+ version: z.ZodString;
698
+ }, "strip", z.ZodTypeAny, {
699
+ id: string;
700
+ name: string;
701
+ version: string;
702
+ }, {
703
+ id: string;
704
+ name: string;
705
+ version: string;
706
+ }>>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ type: "service";
709
+ id: string;
710
+ service?: {
711
+ id: string;
712
+ name: string;
713
+ version: string;
714
+ } | undefined;
715
+ alias?: string | undefined;
716
+ }, {
717
+ type: "service";
718
+ id: string;
719
+ service?: {
720
+ id: string;
721
+ name: string;
722
+ version: string;
723
+ } | undefined;
724
+ alias?: string | undefined;
725
+ }>, z.ZodObject<{
726
+ id: z.ZodString;
727
+ type: z.ZodLiteral<"logic">;
728
+ alias: z.ZodOptional<z.ZodString>;
729
+ logic: z.ZodOptional<z.ZodObject<{
730
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ language: "javascript" | "python" | "typescript";
733
+ }, {
734
+ language: "javascript" | "python" | "typescript";
735
+ }>>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ type: "logic";
738
+ id: string;
739
+ alias?: string | undefined;
740
+ logic?: {
741
+ language: "javascript" | "python" | "typescript";
742
+ } | undefined;
743
+ }, {
744
+ type: "logic";
745
+ id: string;
746
+ alias?: string | undefined;
747
+ logic?: {
748
+ language: "javascript" | "python" | "typescript";
749
+ } | undefined;
750
+ }>]>;
751
+ reason: z.ZodOptional<z.ZodString>;
752
+ }>, "strip", z.ZodTypeAny, {
753
+ type: "nodeDefer";
754
+ timestamp: Date;
755
+ taskId: string;
756
+ node: {
757
+ type: "service";
758
+ id: string;
759
+ service?: {
760
+ id: string;
761
+ name: string;
762
+ version: string;
763
+ } | undefined;
764
+ alias?: string | undefined;
765
+ } | {
766
+ type: "logic";
767
+ id: string;
768
+ alias?: string | undefined;
769
+ logic?: {
770
+ language: "javascript" | "python" | "typescript";
771
+ } | undefined;
772
+ };
773
+ reason?: string | undefined;
774
+ }, {
775
+ type: "nodeDefer";
776
+ timestamp: Date;
777
+ taskId: string;
778
+ node: {
779
+ type: "service";
780
+ id: string;
781
+ service?: {
782
+ id: string;
783
+ name: string;
784
+ version: string;
785
+ } | undefined;
786
+ alias?: string | undefined;
787
+ } | {
788
+ type: "logic";
789
+ id: string;
790
+ alias?: string | undefined;
791
+ logic?: {
792
+ language: "javascript" | "python" | "typescript";
793
+ } | undefined;
794
+ };
795
+ reason?: string | undefined;
796
+ }>, z.ZodObject<z.objectUtil.extendShape<{
797
+ timestamp: z.ZodDate;
798
+ taskId: z.ZodString;
799
+ }, {
800
+ type: z.ZodLiteral<"nodeEnd">;
801
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
802
+ id: z.ZodString;
803
+ type: z.ZodLiteral<"service">;
804
+ alias: z.ZodOptional<z.ZodString>;
805
+ service: z.ZodOptional<z.ZodObject<{
806
+ id: z.ZodString;
807
+ name: z.ZodString;
808
+ version: z.ZodString;
809
+ }, "strip", z.ZodTypeAny, {
810
+ id: string;
811
+ name: string;
812
+ version: string;
813
+ }, {
814
+ id: string;
815
+ name: string;
816
+ version: string;
817
+ }>>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ type: "service";
820
+ id: string;
821
+ service?: {
822
+ id: string;
823
+ name: string;
824
+ version: string;
825
+ } | undefined;
826
+ alias?: string | undefined;
827
+ }, {
828
+ type: "service";
829
+ id: string;
830
+ service?: {
831
+ id: string;
832
+ name: string;
833
+ version: string;
834
+ } | undefined;
835
+ alias?: string | undefined;
836
+ }>, z.ZodObject<{
837
+ id: z.ZodString;
838
+ type: z.ZodLiteral<"logic">;
839
+ alias: z.ZodOptional<z.ZodString>;
840
+ logic: z.ZodOptional<z.ZodObject<{
841
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ language: "javascript" | "python" | "typescript";
844
+ }, {
845
+ language: "javascript" | "python" | "typescript";
846
+ }>>;
847
+ }, "strip", z.ZodTypeAny, {
848
+ type: "logic";
849
+ id: string;
850
+ alias?: string | undefined;
851
+ logic?: {
852
+ language: "javascript" | "python" | "typescript";
853
+ } | undefined;
854
+ }, {
855
+ type: "logic";
856
+ id: string;
857
+ alias?: string | undefined;
858
+ logic?: {
859
+ language: "javascript" | "python" | "typescript";
860
+ } | undefined;
861
+ }>]>;
862
+ }>, "strip", z.ZodTypeAny, {
863
+ type: "nodeEnd";
864
+ timestamp: Date;
865
+ taskId: string;
866
+ node: {
867
+ type: "service";
868
+ id: string;
869
+ service?: {
870
+ id: string;
871
+ name: string;
872
+ version: string;
873
+ } | undefined;
874
+ alias?: string | undefined;
875
+ } | {
876
+ type: "logic";
877
+ id: string;
878
+ alias?: string | undefined;
879
+ logic?: {
880
+ language: "javascript" | "python" | "typescript";
881
+ } | undefined;
882
+ };
883
+ }, {
884
+ type: "nodeEnd";
885
+ timestamp: Date;
886
+ taskId: string;
887
+ node: {
888
+ type: "service";
889
+ id: string;
890
+ service?: {
891
+ id: string;
892
+ name: string;
893
+ version: string;
894
+ } | undefined;
895
+ alias?: string | undefined;
896
+ } | {
897
+ type: "logic";
898
+ id: string;
899
+ alias?: string | undefined;
900
+ logic?: {
901
+ language: "javascript" | "python" | "typescript";
902
+ } | undefined;
903
+ };
904
+ }>]>;
905
+ export type Update<T> = Exclude<z.infer<typeof updateSchema>, {
906
+ type: 'nodeUpdate';
907
+ }> | (Omit<z.infer<typeof nodeUpdateUpdateSchema>, 'data'> & {
908
+ data: Partial<Data<T>>;
909
+ });
910
+ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
911
+ type: z.ZodString;
912
+ data: z.ZodString;
913
+ }, "strip", z.ZodTypeAny, {
914
+ type: string;
915
+ data: string;
916
+ }, {
521
917
  type: string;
522
918
  data: string;
523
919
  }>, any, {
@@ -839,48 +1235,333 @@ export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
839
1235
  taskId: z.ZodString;
840
1236
  }, {
841
1237
  type: z.ZodLiteral<"nodeUpdate">;
842
- data: z.ZodUnknown;
843
- }>, "strip", z.ZodTypeAny, {
844
- type: "nodeUpdate";
845
- timestamp: Date;
846
- taskId: string;
847
- data?: unknown;
848
- }, {
849
- type: "nodeUpdate";
850
- timestamp: Date;
851
- taskId: string;
852
- data?: unknown;
853
- }>, z.ZodObject<z.objectUtil.extendShape<{
854
- timestamp: z.ZodDate;
855
- taskId: z.ZodString;
856
- }, {
857
- type: z.ZodLiteral<"nodeError">;
858
- error: z.ZodString;
859
- }>, "strip", z.ZodTypeAny, {
860
- type: "nodeError";
861
- error: string;
862
- timestamp: Date;
863
- taskId: string;
864
- }, {
865
- type: "nodeError";
866
- error: string;
867
- timestamp: Date;
1238
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1239
+ id: z.ZodString;
1240
+ type: z.ZodLiteral<"service">;
1241
+ alias: z.ZodOptional<z.ZodString>;
1242
+ service: z.ZodOptional<z.ZodObject<{
1243
+ id: z.ZodString;
1244
+ name: z.ZodString;
1245
+ version: z.ZodString;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ id: string;
1248
+ name: string;
1249
+ version: string;
1250
+ }, {
1251
+ id: string;
1252
+ name: string;
1253
+ version: string;
1254
+ }>>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ type: "service";
1257
+ id: string;
1258
+ service?: {
1259
+ id: string;
1260
+ name: string;
1261
+ version: string;
1262
+ } | undefined;
1263
+ alias?: string | undefined;
1264
+ }, {
1265
+ type: "service";
1266
+ id: string;
1267
+ service?: {
1268
+ id: string;
1269
+ name: string;
1270
+ version: string;
1271
+ } | undefined;
1272
+ alias?: string | undefined;
1273
+ }>, z.ZodObject<{
1274
+ id: z.ZodString;
1275
+ type: z.ZodLiteral<"logic">;
1276
+ alias: z.ZodOptional<z.ZodString>;
1277
+ logic: z.ZodOptional<z.ZodObject<{
1278
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ language: "javascript" | "python" | "typescript";
1281
+ }, {
1282
+ language: "javascript" | "python" | "typescript";
1283
+ }>>;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ type: "logic";
1286
+ id: string;
1287
+ alias?: string | undefined;
1288
+ logic?: {
1289
+ language: "javascript" | "python" | "typescript";
1290
+ } | undefined;
1291
+ }, {
1292
+ type: "logic";
1293
+ id: string;
1294
+ alias?: string | undefined;
1295
+ logic?: {
1296
+ language: "javascript" | "python" | "typescript";
1297
+ } | undefined;
1298
+ }>]>;
1299
+ data: z.ZodUnknown;
1300
+ }>, "strip", z.ZodTypeAny, {
1301
+ type: "nodeUpdate";
1302
+ timestamp: Date;
1303
+ taskId: string;
1304
+ node: {
1305
+ type: "service";
1306
+ id: string;
1307
+ service?: {
1308
+ id: string;
1309
+ name: string;
1310
+ version: string;
1311
+ } | undefined;
1312
+ alias?: string | undefined;
1313
+ } | {
1314
+ type: "logic";
1315
+ id: string;
1316
+ alias?: string | undefined;
1317
+ logic?: {
1318
+ language: "javascript" | "python" | "typescript";
1319
+ } | undefined;
1320
+ };
1321
+ data?: unknown;
1322
+ }, {
1323
+ type: "nodeUpdate";
1324
+ timestamp: Date;
868
1325
  taskId: string;
1326
+ node: {
1327
+ type: "service";
1328
+ id: string;
1329
+ service?: {
1330
+ id: string;
1331
+ name: string;
1332
+ version: string;
1333
+ } | undefined;
1334
+ alias?: string | undefined;
1335
+ } | {
1336
+ type: "logic";
1337
+ id: string;
1338
+ alias?: string | undefined;
1339
+ logic?: {
1340
+ language: "javascript" | "python" | "typescript";
1341
+ } | undefined;
1342
+ };
1343
+ data?: unknown;
1344
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1345
+ timestamp: z.ZodDate;
1346
+ taskId: z.ZodString;
1347
+ }, {
1348
+ type: z.ZodLiteral<"nodeError">;
1349
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1350
+ id: z.ZodString;
1351
+ type: z.ZodLiteral<"service">;
1352
+ alias: z.ZodOptional<z.ZodString>;
1353
+ service: z.ZodOptional<z.ZodObject<{
1354
+ id: z.ZodString;
1355
+ name: z.ZodString;
1356
+ version: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ id: string;
1359
+ name: string;
1360
+ version: string;
1361
+ }, {
1362
+ id: string;
1363
+ name: string;
1364
+ version: string;
1365
+ }>>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ type: "service";
1368
+ id: string;
1369
+ service?: {
1370
+ id: string;
1371
+ name: string;
1372
+ version: string;
1373
+ } | undefined;
1374
+ alias?: string | undefined;
1375
+ }, {
1376
+ type: "service";
1377
+ id: string;
1378
+ service?: {
1379
+ id: string;
1380
+ name: string;
1381
+ version: string;
1382
+ } | undefined;
1383
+ alias?: string | undefined;
1384
+ }>, z.ZodObject<{
1385
+ id: z.ZodString;
1386
+ type: z.ZodLiteral<"logic">;
1387
+ alias: z.ZodOptional<z.ZodString>;
1388
+ logic: z.ZodOptional<z.ZodObject<{
1389
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ language: "javascript" | "python" | "typescript";
1392
+ }, {
1393
+ language: "javascript" | "python" | "typescript";
1394
+ }>>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ type: "logic";
1397
+ id: string;
1398
+ alias?: string | undefined;
1399
+ logic?: {
1400
+ language: "javascript" | "python" | "typescript";
1401
+ } | undefined;
1402
+ }, {
1403
+ type: "logic";
1404
+ id: string;
1405
+ alias?: string | undefined;
1406
+ logic?: {
1407
+ language: "javascript" | "python" | "typescript";
1408
+ } | undefined;
1409
+ }>]>;
1410
+ error: z.ZodString;
1411
+ }>, "strip", z.ZodTypeAny, {
1412
+ type: "nodeError";
1413
+ error: string;
1414
+ timestamp: Date;
1415
+ taskId: string;
1416
+ node: {
1417
+ type: "service";
1418
+ id: string;
1419
+ service?: {
1420
+ id: string;
1421
+ name: string;
1422
+ version: string;
1423
+ } | undefined;
1424
+ alias?: string | undefined;
1425
+ } | {
1426
+ type: "logic";
1427
+ id: string;
1428
+ alias?: string | undefined;
1429
+ logic?: {
1430
+ language: "javascript" | "python" | "typescript";
1431
+ } | undefined;
1432
+ };
1433
+ }, {
1434
+ type: "nodeError";
1435
+ error: string;
1436
+ timestamp: Date;
1437
+ taskId: string;
1438
+ node: {
1439
+ type: "service";
1440
+ id: string;
1441
+ service?: {
1442
+ id: string;
1443
+ name: string;
1444
+ version: string;
1445
+ } | undefined;
1446
+ alias?: string | undefined;
1447
+ } | {
1448
+ type: "logic";
1449
+ id: string;
1450
+ alias?: string | undefined;
1451
+ logic?: {
1452
+ language: "javascript" | "python" | "typescript";
1453
+ } | undefined;
1454
+ };
869
1455
  }>, z.ZodObject<z.objectUtil.extendShape<{
870
1456
  timestamp: z.ZodDate;
871
1457
  taskId: z.ZodString;
872
1458
  }, {
873
1459
  type: z.ZodLiteral<"nodeDefer">;
1460
+ node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1461
+ id: z.ZodString;
1462
+ type: z.ZodLiteral<"service">;
1463
+ alias: z.ZodOptional<z.ZodString>;
1464
+ service: z.ZodOptional<z.ZodObject<{
1465
+ id: z.ZodString;
1466
+ name: z.ZodString;
1467
+ version: z.ZodString;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ id: string;
1470
+ name: string;
1471
+ version: string;
1472
+ }, {
1473
+ id: string;
1474
+ name: string;
1475
+ version: string;
1476
+ }>>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ type: "service";
1479
+ id: string;
1480
+ service?: {
1481
+ id: string;
1482
+ name: string;
1483
+ version: string;
1484
+ } | undefined;
1485
+ alias?: string | undefined;
1486
+ }, {
1487
+ type: "service";
1488
+ id: string;
1489
+ service?: {
1490
+ id: string;
1491
+ name: string;
1492
+ version: string;
1493
+ } | undefined;
1494
+ alias?: string | undefined;
1495
+ }>, z.ZodObject<{
1496
+ id: z.ZodString;
1497
+ type: z.ZodLiteral<"logic">;
1498
+ alias: z.ZodOptional<z.ZodString>;
1499
+ logic: z.ZodOptional<z.ZodObject<{
1500
+ language: z.ZodEnum<["typescript", "javascript", "python"]>;
1501
+ }, "strip", z.ZodTypeAny, {
1502
+ language: "javascript" | "python" | "typescript";
1503
+ }, {
1504
+ language: "javascript" | "python" | "typescript";
1505
+ }>>;
1506
+ }, "strip", z.ZodTypeAny, {
1507
+ type: "logic";
1508
+ id: string;
1509
+ alias?: string | undefined;
1510
+ logic?: {
1511
+ language: "javascript" | "python" | "typescript";
1512
+ } | undefined;
1513
+ }, {
1514
+ type: "logic";
1515
+ id: string;
1516
+ alias?: string | undefined;
1517
+ logic?: {
1518
+ language: "javascript" | "python" | "typescript";
1519
+ } | undefined;
1520
+ }>]>;
874
1521
  reason: z.ZodOptional<z.ZodString>;
875
1522
  }>, "strip", z.ZodTypeAny, {
876
1523
  type: "nodeDefer";
877
1524
  timestamp: Date;
878
1525
  taskId: string;
1526
+ node: {
1527
+ type: "service";
1528
+ id: string;
1529
+ service?: {
1530
+ id: string;
1531
+ name: string;
1532
+ version: string;
1533
+ } | undefined;
1534
+ alias?: string | undefined;
1535
+ } | {
1536
+ type: "logic";
1537
+ id: string;
1538
+ alias?: string | undefined;
1539
+ logic?: {
1540
+ language: "javascript" | "python" | "typescript";
1541
+ } | undefined;
1542
+ };
879
1543
  reason?: string | undefined;
880
1544
  }, {
881
1545
  type: "nodeDefer";
882
1546
  timestamp: Date;
883
1547
  taskId: string;
1548
+ node: {
1549
+ type: "service";
1550
+ id: string;
1551
+ service?: {
1552
+ id: string;
1553
+ name: string;
1554
+ version: string;
1555
+ } | undefined;
1556
+ alias?: string | undefined;
1557
+ } | {
1558
+ type: "logic";
1559
+ id: string;
1560
+ alias?: string | undefined;
1561
+ logic?: {
1562
+ language: "javascript" | "python" | "typescript";
1563
+ } | undefined;
1564
+ };
884
1565
  reason?: string | undefined;
885
1566
  }>, z.ZodObject<z.objectUtil.extendShape<{
886
1567
  timestamp: z.ZodDate;