botmux 2.72.0 → 2.74.0

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 (69) hide show
  1. package/README.en.md +3 -2
  2. package/README.md +3 -2
  3. package/dist/adapters/backend/tmux-pipe-backend.d.ts +6 -0
  4. package/dist/adapters/backend/tmux-pipe-backend.d.ts.map +1 -1
  5. package/dist/adapters/backend/tmux-pipe-backend.js +28 -0
  6. package/dist/adapters/backend/tmux-pipe-backend.js.map +1 -1
  7. package/dist/adapters/cli/antigravity.d.ts.map +1 -1
  8. package/dist/adapters/cli/antigravity.js +7 -0
  9. package/dist/adapters/cli/antigravity.js.map +1 -1
  10. package/dist/adapters/cli/claude-code.d.ts.map +1 -1
  11. package/dist/adapters/cli/claude-code.js +7 -0
  12. package/dist/adapters/cli/claude-code.js.map +1 -1
  13. package/dist/adapters/cli/codex.d.ts.map +1 -1
  14. package/dist/adapters/cli/codex.js +7 -1
  15. package/dist/adapters/cli/codex.js.map +1 -1
  16. package/dist/adapters/cli/traex.d.ts.map +1 -1
  17. package/dist/adapters/cli/traex.js +7 -1
  18. package/dist/adapters/cli/traex.js.map +1 -1
  19. package/dist/adapters/cli/types.d.ts +29 -0
  20. package/dist/adapters/cli/types.d.ts.map +1 -1
  21. package/dist/cli.d.ts.map +1 -1
  22. package/dist/cli.js +168 -38
  23. package/dist/cli.js.map +1 -1
  24. package/dist/core/command-handler.d.ts +10 -0
  25. package/dist/core/command-handler.d.ts.map +1 -1
  26. package/dist/core/command-handler.js +75 -6
  27. package/dist/core/command-handler.js.map +1 -1
  28. package/dist/daemon.d.ts.map +1 -1
  29. package/dist/daemon.js +6 -4
  30. package/dist/daemon.js.map +1 -1
  31. package/dist/dashboard/registry.d.ts +6 -1
  32. package/dist/dashboard/registry.d.ts.map +1 -1
  33. package/dist/dashboard/registry.js +13 -1
  34. package/dist/dashboard/registry.js.map +1 -1
  35. package/dist/i18n/en.d.ts.map +1 -1
  36. package/dist/i18n/en.js +7 -2
  37. package/dist/i18n/en.js.map +1 -1
  38. package/dist/i18n/zh.d.ts.map +1 -1
  39. package/dist/i18n/zh.js +7 -2
  40. package/dist/i18n/zh.js.map +1 -1
  41. package/dist/im/lark/card-builder.d.ts +14 -4
  42. package/dist/im/lark/card-builder.d.ts.map +1 -1
  43. package/dist/im/lark/card-builder.js +59 -18
  44. package/dist/im/lark/card-builder.js.map +1 -1
  45. package/dist/im/lark/card-handler.d.ts.map +1 -1
  46. package/dist/im/lark/card-handler.js +49 -6
  47. package/dist/im/lark/card-handler.js.map +1 -1
  48. package/dist/im/lark/grant-command.d.ts +8 -2
  49. package/dist/im/lark/grant-command.d.ts.map +1 -1
  50. package/dist/im/lark/grant-command.js +66 -14
  51. package/dist/im/lark/grant-command.js.map +1 -1
  52. package/dist/index-daemon.js +9 -0
  53. package/dist/index-daemon.js.map +1 -1
  54. package/dist/services/hook-runner.d.ts +10 -0
  55. package/dist/services/hook-runner.d.ts.map +1 -1
  56. package/dist/services/hook-runner.js +53 -19
  57. package/dist/services/hook-runner.js.map +1 -1
  58. package/dist/services/resumable-session-discovery.d.ts +12 -0
  59. package/dist/services/resumable-session-discovery.d.ts.map +1 -0
  60. package/dist/services/resumable-session-discovery.js +331 -0
  61. package/dist/services/resumable-session-discovery.js.map +1 -0
  62. package/dist/services/session-store.d.ts +13 -0
  63. package/dist/services/session-store.d.ts.map +1 -1
  64. package/dist/services/session-store.js +44 -0
  65. package/dist/services/session-store.js.map +1 -1
  66. package/dist/worker.js +1 -1
  67. package/dist/worker.js.map +1 -1
  68. package/dist/workflows/events/schema.d.ts +560 -560
  69. package/package.json +1 -1
@@ -117,10 +117,6 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
117
117
  payloadHash: z.ZodOptional<z.ZodString>;
118
118
  }, "strip", z.ZodTypeAny, {
119
119
  type: "runCreated";
120
- runId: string;
121
- timestamp: number;
122
- schemaVersion: 1;
123
- eventId: string;
124
120
  payload: {
125
121
  workflowId: string;
126
122
  revisionId: string;
@@ -144,14 +140,14 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
144
140
  bytes: number;
145
141
  schemaVersion: number;
146
142
  };
143
+ timestamp: number;
144
+ runId: string;
145
+ schemaVersion: 1;
146
+ eventId: string;
147
147
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
148
148
  payloadHash?: string | undefined;
149
149
  }, {
150
150
  type: "runCreated";
151
- runId: string;
152
- timestamp: number;
153
- schemaVersion: 1;
154
- eventId: string;
155
151
  payload: {
156
152
  workflowId: string;
157
153
  revisionId: string;
@@ -175,6 +171,10 @@ export declare const RunCreatedEventSchema: z.ZodObject<{
175
171
  bytes: number;
176
172
  schemaVersion: number;
177
173
  };
174
+ timestamp: number;
175
+ runId: string;
176
+ schemaVersion: 1;
177
+ eventId: string;
178
178
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
179
179
  payloadHash?: string | undefined;
180
180
  }>;
@@ -201,28 +201,28 @@ export declare const RunStartedEventSchema: z.ZodObject<{
201
201
  payloadHash: z.ZodOptional<z.ZodString>;
202
202
  }, "strip", z.ZodTypeAny, {
203
203
  type: "runStarted";
204
- runId: string;
205
- timestamp: number;
206
- schemaVersion: 1;
207
- eventId: string;
208
204
  payload: {} | {
209
205
  ref: string;
210
206
  bytes: number;
211
207
  schemaVersion: number;
212
208
  };
209
+ timestamp: number;
210
+ runId: string;
211
+ schemaVersion: 1;
212
+ eventId: string;
213
213
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
214
214
  payloadHash?: string | undefined;
215
215
  }, {
216
216
  type: "runStarted";
217
- runId: string;
218
- timestamp: number;
219
- schemaVersion: 1;
220
- eventId: string;
221
217
  payload: {} | {
222
218
  ref: string;
223
219
  bytes: number;
224
220
  schemaVersion: number;
225
221
  };
222
+ timestamp: number;
223
+ runId: string;
224
+ schemaVersion: 1;
225
+ eventId: string;
226
226
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
227
227
  payloadHash?: string | undefined;
228
228
  }>;
@@ -285,10 +285,6 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
285
285
  payloadHash: z.ZodOptional<z.ZodString>;
286
286
  }, "strip", z.ZodTypeAny, {
287
287
  type: "runSucceeded";
288
- runId: string;
289
- timestamp: number;
290
- schemaVersion: 1;
291
- eventId: string;
292
288
  payload: {
293
289
  outputRef: {
294
290
  outputHash: string;
@@ -302,14 +298,14 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
302
298
  bytes: number;
303
299
  schemaVersion: number;
304
300
  };
301
+ timestamp: number;
302
+ runId: string;
303
+ schemaVersion: 1;
304
+ eventId: string;
305
305
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
306
306
  payloadHash?: string | undefined;
307
307
  }, {
308
308
  type: "runSucceeded";
309
- runId: string;
310
- timestamp: number;
311
- schemaVersion: 1;
312
- eventId: string;
313
309
  payload: {
314
310
  outputRef: {
315
311
  outputHash: string;
@@ -323,6 +319,10 @@ export declare const RunSucceededEventSchema: z.ZodObject<{
323
319
  bytes: number;
324
320
  schemaVersion: number;
325
321
  };
322
+ timestamp: number;
323
+ runId: string;
324
+ schemaVersion: 1;
325
+ eventId: string;
326
326
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
327
327
  payloadHash?: string | undefined;
328
328
  }>;
@@ -358,10 +358,6 @@ export declare const RunFailedEventSchema: z.ZodObject<{
358
358
  payloadHash: z.ZodOptional<z.ZodString>;
359
359
  }, "strip", z.ZodTypeAny, {
360
360
  type: "runFailed";
361
- runId: string;
362
- timestamp: number;
363
- schemaVersion: 1;
364
- eventId: string;
365
361
  payload: {
366
362
  failedNodeId: string;
367
363
  rootCauseEventId: string;
@@ -370,14 +366,14 @@ export declare const RunFailedEventSchema: z.ZodObject<{
370
366
  bytes: number;
371
367
  schemaVersion: number;
372
368
  };
369
+ timestamp: number;
370
+ runId: string;
371
+ schemaVersion: 1;
372
+ eventId: string;
373
373
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
374
374
  payloadHash?: string | undefined;
375
375
  }, {
376
376
  type: "runFailed";
377
- runId: string;
378
- timestamp: number;
379
- schemaVersion: 1;
380
- eventId: string;
381
377
  payload: {
382
378
  failedNodeId: string;
383
379
  rootCauseEventId: string;
@@ -386,6 +382,10 @@ export declare const RunFailedEventSchema: z.ZodObject<{
386
382
  bytes: number;
387
383
  schemaVersion: number;
388
384
  };
385
+ timestamp: number;
386
+ runId: string;
387
+ schemaVersion: 1;
388
+ eventId: string;
389
389
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
390
390
  payloadHash?: string | undefined;
391
391
  }>;
@@ -418,10 +418,6 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
418
418
  payloadHash: z.ZodOptional<z.ZodString>;
419
419
  }, "strip", z.ZodTypeAny, {
420
420
  type: "runCanceled";
421
- runId: string;
422
- timestamp: number;
423
- schemaVersion: 1;
424
- eventId: string;
425
421
  payload: {
426
422
  cancelOriginEventId: string;
427
423
  } | {
@@ -429,14 +425,14 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
429
425
  bytes: number;
430
426
  schemaVersion: number;
431
427
  };
428
+ timestamp: number;
429
+ runId: string;
430
+ schemaVersion: 1;
431
+ eventId: string;
432
432
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
433
433
  payloadHash?: string | undefined;
434
434
  }, {
435
435
  type: "runCanceled";
436
- runId: string;
437
- timestamp: number;
438
- schemaVersion: 1;
439
- eventId: string;
440
436
  payload: {
441
437
  cancelOriginEventId: string;
442
438
  } | {
@@ -444,6 +440,10 @@ export declare const RunCanceledEventSchema: z.ZodObject<{
444
440
  bytes: number;
445
441
  schemaVersion: number;
446
442
  };
443
+ timestamp: number;
444
+ runId: string;
445
+ schemaVersion: 1;
446
+ eventId: string;
447
447
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
448
448
  payloadHash?: string | undefined;
449
449
  }>;
@@ -482,10 +482,6 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
482
482
  payloadHash: z.ZodOptional<z.ZodString>;
483
483
  }, "strip", z.ZodTypeAny, {
484
484
  type: "nodeWaiting";
485
- runId: string;
486
- timestamp: number;
487
- schemaVersion: 1;
488
- eventId: string;
489
485
  payload: {
490
486
  nodeId: string;
491
487
  waitReason: string;
@@ -495,14 +491,14 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
495
491
  bytes: number;
496
492
  schemaVersion: number;
497
493
  };
494
+ timestamp: number;
495
+ runId: string;
496
+ schemaVersion: 1;
497
+ eventId: string;
498
498
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
499
499
  payloadHash?: string | undefined;
500
500
  }, {
501
501
  type: "nodeWaiting";
502
- runId: string;
503
- timestamp: number;
504
- schemaVersion: 1;
505
- eventId: string;
506
502
  payload: {
507
503
  nodeId: string;
508
504
  waitReason: string;
@@ -512,6 +508,10 @@ export declare const NodeWaitingEventSchema: z.ZodObject<{
512
508
  bytes: number;
513
509
  schemaVersion: number;
514
510
  };
511
+ timestamp: number;
512
+ runId: string;
513
+ schemaVersion: 1;
514
+ eventId: string;
515
515
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
516
516
  payloadHash?: string | undefined;
517
517
  }>;
@@ -550,10 +550,6 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
550
550
  payloadHash: z.ZodOptional<z.ZodString>;
551
551
  }, "strip", z.ZodTypeAny, {
552
552
  type: "nodeRetrying";
553
- runId: string;
554
- timestamp: number;
555
- schemaVersion: 1;
556
- eventId: string;
557
553
  payload: {
558
554
  nodeId: string;
559
555
  lastAttemptId: string;
@@ -563,14 +559,14 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
563
559
  bytes: number;
564
560
  schemaVersion: number;
565
561
  };
562
+ timestamp: number;
563
+ runId: string;
564
+ schemaVersion: 1;
565
+ eventId: string;
566
566
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
567
567
  payloadHash?: string | undefined;
568
568
  }, {
569
569
  type: "nodeRetrying";
570
- runId: string;
571
- timestamp: number;
572
- schemaVersion: 1;
573
- eventId: string;
574
570
  payload: {
575
571
  nodeId: string;
576
572
  lastAttemptId: string;
@@ -580,6 +576,10 @@ export declare const NodeRetryingEventSchema: z.ZodObject<{
580
576
  bytes: number;
581
577
  schemaVersion: number;
582
578
  };
579
+ timestamp: number;
580
+ runId: string;
581
+ schemaVersion: 1;
582
+ eventId: string;
583
583
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
584
584
  payloadHash?: string | undefined;
585
585
  }>;
@@ -615,10 +615,6 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
615
615
  payloadHash: z.ZodOptional<z.ZodString>;
616
616
  }, "strip", z.ZodTypeAny, {
617
617
  type: "nodeSucceeded";
618
- runId: string;
619
- timestamp: number;
620
- schemaVersion: 1;
621
- eventId: string;
622
618
  payload: {
623
619
  nodeId: string;
624
620
  lastActivityId: string;
@@ -627,14 +623,14 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
627
623
  bytes: number;
628
624
  schemaVersion: number;
629
625
  };
626
+ timestamp: number;
627
+ runId: string;
628
+ schemaVersion: 1;
629
+ eventId: string;
630
630
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
631
631
  payloadHash?: string | undefined;
632
632
  }, {
633
633
  type: "nodeSucceeded";
634
- runId: string;
635
- timestamp: number;
636
- schemaVersion: 1;
637
- eventId: string;
638
634
  payload: {
639
635
  nodeId: string;
640
636
  lastActivityId: string;
@@ -643,6 +639,10 @@ export declare const NodeSucceededEventSchema: z.ZodObject<{
643
639
  bytes: number;
644
640
  schemaVersion: number;
645
641
  };
642
+ timestamp: number;
643
+ runId: string;
644
+ schemaVersion: 1;
645
+ eventId: string;
646
646
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
647
647
  payloadHash?: string | undefined;
648
648
  }>;
@@ -681,10 +681,6 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
681
681
  payloadHash: z.ZodOptional<z.ZodString>;
682
682
  }, "strip", z.ZodTypeAny, {
683
683
  type: "nodeFailed";
684
- runId: string;
685
- timestamp: number;
686
- schemaVersion: 1;
687
- eventId: string;
688
684
  payload: {
689
685
  nodeId: string;
690
686
  errorClass: "manual" | "retryable" | "fatal" | "userFault";
@@ -694,14 +690,14 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
694
690
  bytes: number;
695
691
  schemaVersion: number;
696
692
  };
693
+ timestamp: number;
694
+ runId: string;
695
+ schemaVersion: 1;
696
+ eventId: string;
697
697
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
698
698
  payloadHash?: string | undefined;
699
699
  }, {
700
700
  type: "nodeFailed";
701
- runId: string;
702
- timestamp: number;
703
- schemaVersion: 1;
704
- eventId: string;
705
701
  payload: {
706
702
  nodeId: string;
707
703
  errorClass: "manual" | "retryable" | "fatal" | "userFault";
@@ -711,6 +707,10 @@ export declare const NodeFailedEventSchema: z.ZodObject<{
711
707
  bytes: number;
712
708
  schemaVersion: number;
713
709
  };
710
+ timestamp: number;
711
+ runId: string;
712
+ schemaVersion: 1;
713
+ eventId: string;
714
714
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
715
715
  payloadHash?: string | undefined;
716
716
  }>;
@@ -746,10 +746,6 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
746
746
  payloadHash: z.ZodOptional<z.ZodString>;
747
747
  }, "strip", z.ZodTypeAny, {
748
748
  type: "nodeSkipped";
749
- runId: string;
750
- timestamp: number;
751
- schemaVersion: 1;
752
- eventId: string;
753
749
  payload: {
754
750
  nodeId: string;
755
751
  conditionEventId: string;
@@ -758,14 +754,14 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
758
754
  bytes: number;
759
755
  schemaVersion: number;
760
756
  };
757
+ timestamp: number;
758
+ runId: string;
759
+ schemaVersion: 1;
760
+ eventId: string;
761
761
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
762
762
  payloadHash?: string | undefined;
763
763
  }, {
764
764
  type: "nodeSkipped";
765
- runId: string;
766
- timestamp: number;
767
- schemaVersion: 1;
768
- eventId: string;
769
765
  payload: {
770
766
  nodeId: string;
771
767
  conditionEventId: string;
@@ -774,6 +770,10 @@ export declare const NodeSkippedEventSchema: z.ZodObject<{
774
770
  bytes: number;
775
771
  schemaVersion: number;
776
772
  };
773
+ timestamp: number;
774
+ runId: string;
775
+ schemaVersion: 1;
776
+ eventId: string;
777
777
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
778
778
  payloadHash?: string | undefined;
779
779
  }>;
@@ -809,10 +809,6 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
809
809
  payloadHash: z.ZodOptional<z.ZodString>;
810
810
  }, "strip", z.ZodTypeAny, {
811
811
  type: "nodeCanceled";
812
- runId: string;
813
- timestamp: number;
814
- schemaVersion: 1;
815
- eventId: string;
816
812
  payload: {
817
813
  nodeId: string;
818
814
  cancelOriginEventId: string;
@@ -821,14 +817,14 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
821
817
  bytes: number;
822
818
  schemaVersion: number;
823
819
  };
820
+ timestamp: number;
821
+ runId: string;
822
+ schemaVersion: 1;
823
+ eventId: string;
824
824
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
825
825
  payloadHash?: string | undefined;
826
826
  }, {
827
827
  type: "nodeCanceled";
828
- runId: string;
829
- timestamp: number;
830
- schemaVersion: 1;
831
- eventId: string;
832
828
  payload: {
833
829
  nodeId: string;
834
830
  cancelOriginEventId: string;
@@ -837,6 +833,10 @@ export declare const NodeCanceledEventSchema: z.ZodObject<{
837
833
  bytes: number;
838
834
  schemaVersion: number;
839
835
  };
836
+ timestamp: number;
837
+ runId: string;
838
+ schemaVersion: 1;
839
+ eventId: string;
840
840
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
841
841
  payloadHash?: string | undefined;
842
842
  }>;
@@ -875,10 +875,6 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
875
875
  payloadHash: z.ZodOptional<z.ZodString>;
876
876
  }, "strip", z.ZodTypeAny, {
877
877
  type: "activityRunning";
878
- runId: string;
879
- timestamp: number;
880
- schemaVersion: 1;
881
- eventId: string;
882
878
  payload: {
883
879
  attemptId: string;
884
880
  activityId: string;
@@ -888,14 +884,14 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
888
884
  bytes: number;
889
885
  schemaVersion: number;
890
886
  };
887
+ timestamp: number;
888
+ runId: string;
889
+ schemaVersion: 1;
890
+ eventId: string;
891
891
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
892
892
  payloadHash?: string | undefined;
893
893
  }, {
894
894
  type: "activityRunning";
895
- runId: string;
896
- timestamp: number;
897
- schemaVersion: 1;
898
- eventId: string;
899
895
  payload: {
900
896
  attemptId: string;
901
897
  activityId: string;
@@ -905,6 +901,10 @@ export declare const ActivityRunningEventSchema: z.ZodObject<{
905
901
  bytes: number;
906
902
  schemaVersion: number;
907
903
  };
904
+ timestamp: number;
905
+ runId: string;
906
+ schemaVersion: 1;
907
+ eventId: string;
908
908
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
909
909
  payloadHash?: string | undefined;
910
910
  }>;
@@ -940,10 +940,6 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
940
940
  payloadHash: z.ZodOptional<z.ZodString>;
941
941
  }, "strip", z.ZodTypeAny, {
942
942
  type: "activityWaiting";
943
- runId: string;
944
- timestamp: number;
945
- schemaVersion: 1;
946
- eventId: string;
947
943
  payload: {
948
944
  reason: string;
949
945
  activityId: string;
@@ -952,14 +948,14 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
952
948
  bytes: number;
953
949
  schemaVersion: number;
954
950
  };
951
+ timestamp: number;
952
+ runId: string;
953
+ schemaVersion: 1;
954
+ eventId: string;
955
955
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
956
956
  payloadHash?: string | undefined;
957
957
  }, {
958
958
  type: "activityWaiting";
959
- runId: string;
960
- timestamp: number;
961
- schemaVersion: 1;
962
- eventId: string;
963
959
  payload: {
964
960
  reason: string;
965
961
  activityId: string;
@@ -968,6 +964,10 @@ export declare const ActivityWaitingEventSchema: z.ZodObject<{
968
964
  bytes: number;
969
965
  schemaVersion: number;
970
966
  };
967
+ timestamp: number;
968
+ runId: string;
969
+ schemaVersion: 1;
970
+ eventId: string;
971
971
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
972
972
  payloadHash?: string | undefined;
973
973
  }>;
@@ -1012,10 +1012,6 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1012
1012
  payloadHash: z.ZodOptional<z.ZodString>;
1013
1013
  }, "strip", z.ZodTypeAny, {
1014
1014
  type: "activityTimedOut";
1015
- runId: string;
1016
- timestamp: number;
1017
- schemaVersion: 1;
1018
- eventId: string;
1019
1015
  payload: {
1020
1016
  reason: "LeaseExpired";
1021
1017
  attemptId: string;
@@ -1027,14 +1023,14 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1027
1023
  bytes: number;
1028
1024
  schemaVersion: number;
1029
1025
  };
1026
+ timestamp: number;
1027
+ runId: string;
1028
+ schemaVersion: 1;
1029
+ eventId: string;
1030
1030
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1031
1031
  payloadHash?: string | undefined;
1032
1032
  }, {
1033
1033
  type: "activityTimedOut";
1034
- runId: string;
1035
- timestamp: number;
1036
- schemaVersion: 1;
1037
- eventId: string;
1038
1034
  payload: {
1039
1035
  reason: "LeaseExpired";
1040
1036
  attemptId: string;
@@ -1046,6 +1042,10 @@ export declare const ActivityTimedOutEventSchema: z.ZodObject<{
1046
1042
  bytes: number;
1047
1043
  schemaVersion: number;
1048
1044
  };
1045
+ timestamp: number;
1046
+ runId: string;
1047
+ schemaVersion: 1;
1048
+ eventId: string;
1049
1049
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1050
1050
  payloadHash?: string | undefined;
1051
1051
  }>;
@@ -1081,10 +1081,6 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1081
1081
  payloadHash: z.ZodOptional<z.ZodString>;
1082
1082
  }, "strip", z.ZodTypeAny, {
1083
1083
  type: "loopStarted";
1084
- runId: string;
1085
- timestamp: number;
1086
- schemaVersion: 1;
1087
- eventId: string;
1088
1084
  payload: {
1089
1085
  loopId: string;
1090
1086
  maxIterations: number;
@@ -1093,14 +1089,14 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1093
1089
  bytes: number;
1094
1090
  schemaVersion: number;
1095
1091
  };
1092
+ timestamp: number;
1093
+ runId: string;
1094
+ schemaVersion: 1;
1095
+ eventId: string;
1096
1096
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1097
1097
  payloadHash?: string | undefined;
1098
1098
  }, {
1099
1099
  type: "loopStarted";
1100
- runId: string;
1101
- timestamp: number;
1102
- schemaVersion: 1;
1103
- eventId: string;
1104
1100
  payload: {
1105
1101
  loopId: string;
1106
1102
  maxIterations: number;
@@ -1109,6 +1105,10 @@ export declare const LoopStartedEventSchema: z.ZodObject<{
1109
1105
  bytes: number;
1110
1106
  schemaVersion: number;
1111
1107
  };
1108
+ timestamp: number;
1109
+ runId: string;
1110
+ schemaVersion: 1;
1111
+ eventId: string;
1112
1112
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1113
1113
  payloadHash?: string | undefined;
1114
1114
  }>;
@@ -1147,10 +1147,6 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1147
1147
  payloadHash: z.ZodOptional<z.ZodString>;
1148
1148
  }, "strip", z.ZodTypeAny, {
1149
1149
  type: "loopIterationStarted";
1150
- runId: string;
1151
- timestamp: number;
1152
- schemaVersion: 1;
1153
- eventId: string;
1154
1150
  payload: {
1155
1151
  loopId: string;
1156
1152
  iteration: number;
@@ -1160,14 +1156,14 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1160
1156
  bytes: number;
1161
1157
  schemaVersion: number;
1162
1158
  };
1159
+ timestamp: number;
1160
+ runId: string;
1161
+ schemaVersion: 1;
1162
+ eventId: string;
1163
1163
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1164
1164
  payloadHash?: string | undefined;
1165
1165
  }, {
1166
1166
  type: "loopIterationStarted";
1167
- runId: string;
1168
- timestamp: number;
1169
- schemaVersion: 1;
1170
- eventId: string;
1171
1167
  payload: {
1172
1168
  loopId: string;
1173
1169
  iteration: number;
@@ -1177,6 +1173,10 @@ export declare const LoopIterationStartedEventSchema: z.ZodObject<{
1177
1173
  bytes: number;
1178
1174
  schemaVersion: number;
1179
1175
  };
1176
+ timestamp: number;
1177
+ runId: string;
1178
+ schemaVersion: 1;
1179
+ eventId: string;
1180
1180
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1181
1181
  payloadHash?: string | undefined;
1182
1182
  }>;
@@ -1230,10 +1230,6 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1230
1230
  payloadHash: z.ZodOptional<z.ZodString>;
1231
1231
  }, "strip", z.ZodTypeAny, {
1232
1232
  type: "loopIterationFinished";
1233
- runId: string;
1234
- timestamp: number;
1235
- schemaVersion: 1;
1236
- eventId: string;
1237
1233
  payload: {
1238
1234
  loopId: string;
1239
1235
  iteration: number;
@@ -1248,14 +1244,14 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1248
1244
  bytes: number;
1249
1245
  schemaVersion: number;
1250
1246
  };
1247
+ timestamp: number;
1248
+ runId: string;
1249
+ schemaVersion: 1;
1250
+ eventId: string;
1251
1251
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1252
1252
  payloadHash?: string | undefined;
1253
1253
  }, {
1254
1254
  type: "loopIterationFinished";
1255
- runId: string;
1256
- timestamp: number;
1257
- schemaVersion: 1;
1258
- eventId: string;
1259
1255
  payload: {
1260
1256
  loopId: string;
1261
1257
  iteration: number;
@@ -1270,6 +1266,10 @@ export declare const LoopIterationFinishedEventSchema: z.ZodObject<{
1270
1266
  bytes: number;
1271
1267
  schemaVersion: number;
1272
1268
  };
1269
+ timestamp: number;
1270
+ runId: string;
1271
+ schemaVersion: 1;
1272
+ eventId: string;
1273
1273
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1274
1274
  payloadHash?: string | undefined;
1275
1275
  }>;
@@ -1347,10 +1347,6 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1347
1347
  payloadHash: z.ZodOptional<z.ZodString>;
1348
1348
  }, "strip", z.ZodTypeAny, {
1349
1349
  type: "loopFinished";
1350
- runId: string;
1351
- timestamp: number;
1352
- schemaVersion: 1;
1353
- eventId: string;
1354
1350
  payload: {
1355
1351
  loopId: string;
1356
1352
  resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
@@ -1369,14 +1365,14 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1369
1365
  bytes: number;
1370
1366
  schemaVersion: number;
1371
1367
  };
1368
+ timestamp: number;
1369
+ runId: string;
1370
+ schemaVersion: 1;
1371
+ eventId: string;
1372
1372
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1373
1373
  payloadHash?: string | undefined;
1374
1374
  }, {
1375
1375
  type: "loopFinished";
1376
- runId: string;
1377
- timestamp: number;
1378
- schemaVersion: 1;
1379
- eventId: string;
1380
1376
  payload: {
1381
1377
  loopId: string;
1382
1378
  resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
@@ -1395,6 +1391,10 @@ export declare const LoopFinishedEventSchema: z.ZodObject<{
1395
1391
  bytes: number;
1396
1392
  schemaVersion: number;
1397
1393
  };
1394
+ timestamp: number;
1395
+ runId: string;
1396
+ schemaVersion: 1;
1397
+ eventId: string;
1398
1398
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1399
1399
  payloadHash?: string | undefined;
1400
1400
  }>;
@@ -1436,10 +1436,6 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1436
1436
  payloadHash: z.ZodOptional<z.ZodString>;
1437
1437
  }, "strip", z.ZodTypeAny, {
1438
1438
  type: "conditionEvaluated";
1439
- runId: string;
1440
- timestamp: number;
1441
- schemaVersion: 1;
1442
- eventId: string;
1443
1439
  payload: {
1444
1440
  nodeId: string;
1445
1441
  conditionExpr: string;
@@ -1450,14 +1446,14 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1450
1446
  bytes: number;
1451
1447
  schemaVersion: number;
1452
1448
  };
1449
+ timestamp: number;
1450
+ runId: string;
1451
+ schemaVersion: 1;
1452
+ eventId: string;
1453
1453
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1454
1454
  payloadHash?: string | undefined;
1455
1455
  }, {
1456
1456
  type: "conditionEvaluated";
1457
- runId: string;
1458
- timestamp: number;
1459
- schemaVersion: 1;
1460
- eventId: string;
1461
1457
  payload: {
1462
1458
  nodeId: string;
1463
1459
  conditionExpr: string;
@@ -1468,6 +1464,10 @@ export declare const ConditionEvaluatedEventSchema: z.ZodObject<{
1468
1464
  bytes: number;
1469
1465
  schemaVersion: number;
1470
1466
  };
1467
+ timestamp: number;
1468
+ runId: string;
1469
+ schemaVersion: 1;
1470
+ eventId: string;
1471
1471
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1472
1472
  payloadHash?: string | undefined;
1473
1473
  }>;
@@ -1512,10 +1512,6 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1512
1512
  payloadHash: z.ZodOptional<z.ZodString>;
1513
1513
  }, "strip", z.ZodTypeAny, {
1514
1514
  type: "leaseSigned";
1515
- runId: string;
1516
- timestamp: number;
1517
- schemaVersion: 1;
1518
- eventId: string;
1519
1515
  payload: {
1520
1516
  timeoutMs: number;
1521
1517
  attemptId: string;
@@ -1527,14 +1523,14 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1527
1523
  bytes: number;
1528
1524
  schemaVersion: number;
1529
1525
  };
1526
+ timestamp: number;
1527
+ runId: string;
1528
+ schemaVersion: 1;
1529
+ eventId: string;
1530
1530
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1531
1531
  payloadHash?: string | undefined;
1532
1532
  }, {
1533
1533
  type: "leaseSigned";
1534
- runId: string;
1535
- timestamp: number;
1536
- schemaVersion: 1;
1537
- eventId: string;
1538
1534
  payload: {
1539
1535
  timeoutMs: number;
1540
1536
  attemptId: string;
@@ -1546,6 +1542,10 @@ export declare const LeaseSignedEventSchema: z.ZodObject<{
1546
1542
  bytes: number;
1547
1543
  schemaVersion: number;
1548
1544
  };
1545
+ timestamp: number;
1546
+ runId: string;
1547
+ schemaVersion: 1;
1548
+ eventId: string;
1549
1549
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1550
1550
  payloadHash?: string | undefined;
1551
1551
  }>;
@@ -1620,10 +1620,6 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1620
1620
  payloadHash: z.ZodOptional<z.ZodString>;
1621
1621
  }, "strip", z.ZodTypeAny, {
1622
1622
  type: "attemptCreated";
1623
- runId: string;
1624
- timestamp: number;
1625
- schemaVersion: 1;
1626
- eventId: string;
1627
1623
  payload: {
1628
1624
  nodeId: string;
1629
1625
  attemptId: string;
@@ -1641,14 +1637,14 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1641
1637
  bytes: number;
1642
1638
  schemaVersion: number;
1643
1639
  };
1640
+ timestamp: number;
1641
+ runId: string;
1642
+ schemaVersion: 1;
1643
+ eventId: string;
1644
1644
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1645
1645
  payloadHash?: string | undefined;
1646
1646
  }, {
1647
1647
  type: "attemptCreated";
1648
- runId: string;
1649
- timestamp: number;
1650
- schemaVersion: 1;
1651
- eventId: string;
1652
1648
  payload: {
1653
1649
  nodeId: string;
1654
1650
  attemptId: string;
@@ -1666,6 +1662,10 @@ export declare const AttemptCreatedEventSchema: z.ZodObject<{
1666
1662
  bytes: number;
1667
1663
  schemaVersion: number;
1668
1664
  };
1665
+ timestamp: number;
1666
+ runId: string;
1667
+ schemaVersion: 1;
1668
+ eventId: string;
1669
1669
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1670
1670
  payloadHash?: string | undefined;
1671
1671
  }>;
@@ -1732,10 +1732,6 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1732
1732
  payloadHash: z.ZodOptional<z.ZodString>;
1733
1733
  }, "strip", z.ZodTypeAny, {
1734
1734
  type: "backoffScheduled";
1735
- runId: string;
1736
- timestamp: number;
1737
- schemaVersion: 1;
1738
- eventId: string;
1739
1735
  payload: {
1740
1736
  nodeId: string;
1741
1737
  lastAttemptId: string;
@@ -1751,14 +1747,14 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1751
1747
  bytes: number;
1752
1748
  schemaVersion: number;
1753
1749
  };
1750
+ timestamp: number;
1751
+ runId: string;
1752
+ schemaVersion: 1;
1753
+ eventId: string;
1754
1754
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1755
1755
  payloadHash?: string | undefined;
1756
1756
  }, {
1757
1757
  type: "backoffScheduled";
1758
- runId: string;
1759
- timestamp: number;
1760
- schemaVersion: 1;
1761
- eventId: string;
1762
1758
  payload: {
1763
1759
  nodeId: string;
1764
1760
  lastAttemptId: string;
@@ -1774,6 +1770,10 @@ export declare const BackoffScheduledEventSchema: z.ZodObject<{
1774
1770
  bytes: number;
1775
1771
  schemaVersion: number;
1776
1772
  };
1773
+ timestamp: number;
1774
+ runId: string;
1775
+ schemaVersion: 1;
1776
+ eventId: string;
1777
1777
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1778
1778
  payloadHash?: string | undefined;
1779
1779
  }>;
@@ -1809,10 +1809,6 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1809
1809
  payloadHash: z.ZodOptional<z.ZodString>;
1810
1810
  }, "strip", z.ZodTypeAny, {
1811
1811
  type: "backoffElapsed";
1812
- runId: string;
1813
- timestamp: number;
1814
- schemaVersion: 1;
1815
- eventId: string;
1816
1812
  payload: {
1817
1813
  nodeId: string;
1818
1814
  scheduledAttemptId: string;
@@ -1821,14 +1817,14 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1821
1817
  bytes: number;
1822
1818
  schemaVersion: number;
1823
1819
  };
1820
+ timestamp: number;
1821
+ runId: string;
1822
+ schemaVersion: 1;
1823
+ eventId: string;
1824
1824
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1825
1825
  payloadHash?: string | undefined;
1826
1826
  }, {
1827
1827
  type: "backoffElapsed";
1828
- runId: string;
1829
- timestamp: number;
1830
- schemaVersion: 1;
1831
- eventId: string;
1832
1828
  payload: {
1833
1829
  nodeId: string;
1834
1830
  scheduledAttemptId: string;
@@ -1837,6 +1833,10 @@ export declare const BackoffElapsedEventSchema: z.ZodObject<{
1837
1833
  bytes: number;
1838
1834
  schemaVersion: number;
1839
1835
  };
1836
+ timestamp: number;
1837
+ runId: string;
1838
+ schemaVersion: 1;
1839
+ eventId: string;
1840
1840
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1841
1841
  payloadHash?: string | undefined;
1842
1842
  }>;
@@ -1884,10 +1884,6 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1884
1884
  payloadHash: z.ZodOptional<z.ZodString>;
1885
1885
  }, "strip", z.ZodTypeAny, {
1886
1886
  type: "effectAttempted";
1887
- runId: string;
1888
- timestamp: number;
1889
- schemaVersion: 1;
1890
- eventId: string;
1891
1887
  payload: {
1892
1888
  attemptId: string;
1893
1889
  activityId: string;
@@ -1900,14 +1896,14 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1900
1896
  bytes: number;
1901
1897
  schemaVersion: number;
1902
1898
  };
1899
+ timestamp: number;
1900
+ runId: string;
1901
+ schemaVersion: 1;
1902
+ eventId: string;
1903
1903
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1904
1904
  payloadHash?: string | undefined;
1905
1905
  }, {
1906
1906
  type: "effectAttempted";
1907
- runId: string;
1908
- timestamp: number;
1909
- schemaVersion: 1;
1910
- eventId: string;
1911
1907
  payload: {
1912
1908
  attemptId: string;
1913
1909
  activityId: string;
@@ -1920,6 +1916,10 @@ export declare const EffectAttemptedEventSchema: z.ZodObject<{
1920
1916
  bytes: number;
1921
1917
  schemaVersion: number;
1922
1918
  };
1919
+ timestamp: number;
1920
+ runId: string;
1921
+ schemaVersion: 1;
1922
+ eventId: string;
1923
1923
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
1924
1924
  payloadHash?: string | undefined;
1925
1925
  }>;
@@ -1991,10 +1991,6 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
1991
1991
  payloadHash: z.ZodOptional<z.ZodString>;
1992
1992
  }, "strip", z.ZodTypeAny, {
1993
1993
  type: "activitySucceeded";
1994
- runId: string;
1995
- timestamp: number;
1996
- schemaVersion: 1;
1997
- eventId: string;
1998
1994
  payload: {
1999
1995
  attemptId: string;
2000
1996
  activityId: string;
@@ -2011,14 +2007,14 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2011
2007
  bytes: number;
2012
2008
  schemaVersion: number;
2013
2009
  };
2010
+ timestamp: number;
2011
+ runId: string;
2012
+ schemaVersion: 1;
2013
+ eventId: string;
2014
2014
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2015
2015
  payloadHash?: string | undefined;
2016
2016
  }, {
2017
2017
  type: "activitySucceeded";
2018
- runId: string;
2019
- timestamp: number;
2020
- schemaVersion: 1;
2021
- eventId: string;
2022
2018
  payload: {
2023
2019
  attemptId: string;
2024
2020
  activityId: string;
@@ -2035,6 +2031,10 @@ export declare const ActivitySucceededEventSchema: z.ZodObject<{
2035
2031
  bytes: number;
2036
2032
  schemaVersion: number;
2037
2033
  };
2034
+ timestamp: number;
2035
+ runId: string;
2036
+ schemaVersion: 1;
2037
+ eventId: string;
2038
2038
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2039
2039
  payloadHash?: string | undefined;
2040
2040
  }>;
@@ -2098,10 +2098,6 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2098
2098
  payloadHash: z.ZodOptional<z.ZodString>;
2099
2099
  }, "strip", z.ZodTypeAny, {
2100
2100
  type: "activityFailed";
2101
- runId: string;
2102
- timestamp: number;
2103
- schemaVersion: 1;
2104
- eventId: string;
2105
2101
  payload: {
2106
2102
  error: {
2107
2103
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -2116,14 +2112,14 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2116
2112
  bytes: number;
2117
2113
  schemaVersion: number;
2118
2114
  };
2115
+ timestamp: number;
2116
+ runId: string;
2117
+ schemaVersion: 1;
2118
+ eventId: string;
2119
2119
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2120
2120
  payloadHash?: string | undefined;
2121
2121
  }, {
2122
2122
  type: "activityFailed";
2123
- runId: string;
2124
- timestamp: number;
2125
- schemaVersion: 1;
2126
- eventId: string;
2127
2123
  payload: {
2128
2124
  error: {
2129
2125
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -2138,6 +2134,10 @@ export declare const ActivityFailedEventSchema: z.ZodObject<{
2138
2134
  bytes: number;
2139
2135
  schemaVersion: number;
2140
2136
  };
2137
+ timestamp: number;
2138
+ runId: string;
2139
+ schemaVersion: 1;
2140
+ eventId: string;
2141
2141
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2142
2142
  payloadHash?: string | undefined;
2143
2143
  }>;
@@ -2224,10 +2224,6 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2224
2224
  payloadHash: z.ZodOptional<z.ZodString>;
2225
2225
  }, "strip", z.ZodTypeAny, {
2226
2226
  type: "waitCreated";
2227
- runId: string;
2228
- timestamp: number;
2229
- schemaVersion: 1;
2230
- eventId: string;
2231
2227
  payload: {
2232
2228
  nodeId: string;
2233
2229
  activityId: string;
@@ -2249,14 +2245,14 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2249
2245
  bytes: number;
2250
2246
  schemaVersion: number;
2251
2247
  };
2248
+ timestamp: number;
2249
+ runId: string;
2250
+ schemaVersion: 1;
2251
+ eventId: string;
2252
2252
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2253
2253
  payloadHash?: string | undefined;
2254
2254
  }, {
2255
2255
  type: "waitCreated";
2256
- runId: string;
2257
- timestamp: number;
2258
- schemaVersion: 1;
2259
- eventId: string;
2260
2256
  payload: {
2261
2257
  nodeId: string;
2262
2258
  activityId: string;
@@ -2278,6 +2274,10 @@ export declare const WaitCreatedEventSchema: z.ZodObject<{
2278
2274
  bytes: number;
2279
2275
  schemaVersion: number;
2280
2276
  };
2277
+ timestamp: number;
2278
+ runId: string;
2279
+ schemaVersion: 1;
2280
+ eventId: string;
2281
2281
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2282
2282
  payloadHash?: string | undefined;
2283
2283
  }>;
@@ -2319,10 +2319,6 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2319
2319
  payloadHash: z.ZodOptional<z.ZodString>;
2320
2320
  }, "strip", z.ZodTypeAny, {
2321
2321
  type: "waitResolved";
2322
- runId: string;
2323
- timestamp: number;
2324
- schemaVersion: 1;
2325
- eventId: string;
2326
2322
  payload: {
2327
2323
  activityId: string;
2328
2324
  resolution: "approved" | "rejected" | "external";
@@ -2333,14 +2329,14 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2333
2329
  bytes: number;
2334
2330
  schemaVersion: number;
2335
2331
  };
2332
+ timestamp: number;
2333
+ runId: string;
2334
+ schemaVersion: 1;
2335
+ eventId: string;
2336
2336
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2337
2337
  payloadHash?: string | undefined;
2338
2338
  }, {
2339
2339
  type: "waitResolved";
2340
- runId: string;
2341
- timestamp: number;
2342
- schemaVersion: 1;
2343
- eventId: string;
2344
2340
  payload: {
2345
2341
  activityId: string;
2346
2342
  resolution: "approved" | "rejected" | "external";
@@ -2351,6 +2347,10 @@ export declare const WaitResolvedEventSchema: z.ZodObject<{
2351
2347
  bytes: number;
2352
2348
  schemaVersion: number;
2353
2349
  };
2350
+ timestamp: number;
2351
+ runId: string;
2352
+ schemaVersion: 1;
2353
+ eventId: string;
2354
2354
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2355
2355
  payloadHash?: string | undefined;
2356
2356
  }>;
@@ -2389,10 +2389,6 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2389
2389
  payloadHash: z.ZodOptional<z.ZodString>;
2390
2390
  }, "strip", z.ZodTypeAny, {
2391
2391
  type: "waitDeadlineExceeded";
2392
- runId: string;
2393
- timestamp: number;
2394
- schemaVersion: 1;
2395
- eventId: string;
2396
2392
  payload: {
2397
2393
  activityId: string;
2398
2394
  deadlineAt: number;
@@ -2402,14 +2398,14 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2402
2398
  bytes: number;
2403
2399
  schemaVersion: number;
2404
2400
  };
2401
+ timestamp: number;
2402
+ runId: string;
2403
+ schemaVersion: 1;
2404
+ eventId: string;
2405
2405
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2406
2406
  payloadHash?: string | undefined;
2407
2407
  }, {
2408
2408
  type: "waitDeadlineExceeded";
2409
- runId: string;
2410
- timestamp: number;
2411
- schemaVersion: 1;
2412
- eventId: string;
2413
2409
  payload: {
2414
2410
  activityId: string;
2415
2411
  deadlineAt: number;
@@ -2419,6 +2415,10 @@ export declare const WaitDeadlineExceededEventSchema: z.ZodObject<{
2419
2415
  bytes: number;
2420
2416
  schemaVersion: number;
2421
2417
  };
2418
+ timestamp: number;
2419
+ runId: string;
2420
+ schemaVersion: 1;
2421
+ eventId: string;
2422
2422
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2423
2423
  payloadHash?: string | undefined;
2424
2424
  }>;
@@ -2502,10 +2502,6 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2502
2502
  payloadHash: z.ZodOptional<z.ZodString>;
2503
2503
  }, "strip", z.ZodTypeAny, {
2504
2504
  type: "cancelRequested";
2505
- runId: string;
2506
- timestamp: number;
2507
- schemaVersion: 1;
2508
- eventId: string;
2509
2505
  payload: {
2510
2506
  reason: string;
2511
2507
  by: string;
@@ -2524,14 +2520,14 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2524
2520
  bytes: number;
2525
2521
  schemaVersion: number;
2526
2522
  };
2523
+ timestamp: number;
2524
+ runId: string;
2525
+ schemaVersion: 1;
2526
+ eventId: string;
2527
2527
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2528
2528
  payloadHash?: string | undefined;
2529
2529
  }, {
2530
2530
  type: "cancelRequested";
2531
- runId: string;
2532
- timestamp: number;
2533
- schemaVersion: 1;
2534
- eventId: string;
2535
2531
  payload: {
2536
2532
  reason: string;
2537
2533
  by: string;
@@ -2550,6 +2546,10 @@ export declare const CancelRequestedEventSchema: z.ZodObject<{
2550
2546
  bytes: number;
2551
2547
  schemaVersion: number;
2552
2548
  };
2549
+ timestamp: number;
2550
+ runId: string;
2551
+ schemaVersion: 1;
2552
+ eventId: string;
2553
2553
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2554
2554
  payloadHash?: string | undefined;
2555
2555
  }>;
@@ -2630,10 +2630,6 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2630
2630
  payloadHash: z.ZodOptional<z.ZodString>;
2631
2631
  }, "strip", z.ZodTypeAny, {
2632
2632
  type: "cancelDelivered";
2633
- runId: string;
2634
- timestamp: number;
2635
- schemaVersion: 1;
2636
- eventId: string;
2637
2633
  payload: {
2638
2634
  activityId: string;
2639
2635
  target: {
@@ -2651,14 +2647,14 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2651
2647
  bytes: number;
2652
2648
  schemaVersion: number;
2653
2649
  };
2650
+ timestamp: number;
2651
+ runId: string;
2652
+ schemaVersion: 1;
2653
+ eventId: string;
2654
2654
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2655
2655
  payloadHash?: string | undefined;
2656
2656
  }, {
2657
2657
  type: "cancelDelivered";
2658
- runId: string;
2659
- timestamp: number;
2660
- schemaVersion: 1;
2661
- eventId: string;
2662
2658
  payload: {
2663
2659
  activityId: string;
2664
2660
  target: {
@@ -2676,6 +2672,10 @@ export declare const CancelDeliveredEventSchema: z.ZodObject<{
2676
2672
  bytes: number;
2677
2673
  schemaVersion: number;
2678
2674
  };
2675
+ timestamp: number;
2676
+ runId: string;
2677
+ schemaVersion: 1;
2678
+ eventId: string;
2679
2679
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2680
2680
  payloadHash?: string | undefined;
2681
2681
  }>;
@@ -2714,10 +2714,6 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2714
2714
  payloadHash: z.ZodOptional<z.ZodString>;
2715
2715
  }, "strip", z.ZodTypeAny, {
2716
2716
  type: "activityCanceled";
2717
- runId: string;
2718
- timestamp: number;
2719
- schemaVersion: 1;
2720
- eventId: string;
2721
2717
  payload: {
2722
2718
  attemptId: string;
2723
2719
  activityId: string;
@@ -2727,14 +2723,14 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2727
2723
  bytes: number;
2728
2724
  schemaVersion: number;
2729
2725
  };
2726
+ timestamp: number;
2727
+ runId: string;
2728
+ schemaVersion: 1;
2729
+ eventId: string;
2730
2730
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2731
2731
  payloadHash?: string | undefined;
2732
2732
  }, {
2733
2733
  type: "activityCanceled";
2734
- runId: string;
2735
- timestamp: number;
2736
- schemaVersion: 1;
2737
- eventId: string;
2738
2734
  payload: {
2739
2735
  attemptId: string;
2740
2736
  activityId: string;
@@ -2744,6 +2740,10 @@ export declare const ActivityCanceledEventSchema: z.ZodObject<{
2744
2740
  bytes: number;
2745
2741
  schemaVersion: number;
2746
2742
  };
2743
+ timestamp: number;
2744
+ runId: string;
2745
+ schemaVersion: 1;
2746
+ eventId: string;
2747
2747
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2748
2748
  payloadHash?: string | undefined;
2749
2749
  }>;
@@ -2779,10 +2779,6 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2779
2779
  payloadHash: z.ZodOptional<z.ZodString>;
2780
2780
  }, "strip", z.ZodTypeAny, {
2781
2781
  type: "workerLost";
2782
- runId: string;
2783
- timestamp: number;
2784
- schemaVersion: 1;
2785
- eventId: string;
2786
2782
  payload: {
2787
2783
  workerId: string;
2788
2784
  lostActivityIds: string[];
@@ -2791,14 +2787,14 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2791
2787
  bytes: number;
2792
2788
  schemaVersion: number;
2793
2789
  };
2790
+ timestamp: number;
2791
+ runId: string;
2792
+ schemaVersion: 1;
2793
+ eventId: string;
2794
2794
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2795
2795
  payloadHash?: string | undefined;
2796
2796
  }, {
2797
2797
  type: "workerLost";
2798
- runId: string;
2799
- timestamp: number;
2800
- schemaVersion: 1;
2801
- eventId: string;
2802
2798
  payload: {
2803
2799
  workerId: string;
2804
2800
  lostActivityIds: string[];
@@ -2807,6 +2803,10 @@ export declare const WorkerLostEventSchema: z.ZodObject<{
2807
2803
  bytes: number;
2808
2804
  schemaVersion: number;
2809
2805
  };
2806
+ timestamp: number;
2807
+ runId: string;
2808
+ schemaVersion: 1;
2809
+ eventId: string;
2810
2810
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2811
2811
  payloadHash?: string | undefined;
2812
2812
  }>;
@@ -2842,10 +2842,6 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2842
2842
  payloadHash: z.ZodOptional<z.ZodString>;
2843
2843
  }, "strip", z.ZodTypeAny, {
2844
2844
  type: "resumeStarted";
2845
- runId: string;
2846
- timestamp: number;
2847
- schemaVersion: 1;
2848
- eventId: string;
2849
2845
  payload: {
2850
2846
  daemonId: string;
2851
2847
  lastSeenEventId: string;
@@ -2854,14 +2850,14 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2854
2850
  bytes: number;
2855
2851
  schemaVersion: number;
2856
2852
  };
2853
+ timestamp: number;
2854
+ runId: string;
2855
+ schemaVersion: 1;
2856
+ eventId: string;
2857
2857
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2858
2858
  payloadHash?: string | undefined;
2859
2859
  }, {
2860
2860
  type: "resumeStarted";
2861
- runId: string;
2862
- timestamp: number;
2863
- schemaVersion: 1;
2864
- eventId: string;
2865
2861
  payload: {
2866
2862
  daemonId: string;
2867
2863
  lastSeenEventId: string;
@@ -2870,6 +2866,10 @@ export declare const ResumeStartedEventSchema: z.ZodObject<{
2870
2866
  bytes: number;
2871
2867
  schemaVersion: number;
2872
2868
  };
2869
+ timestamp: number;
2870
+ runId: string;
2871
+ schemaVersion: 1;
2872
+ eventId: string;
2873
2873
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2874
2874
  payloadHash?: string | undefined;
2875
2875
  }>;
@@ -2914,10 +2914,6 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2914
2914
  payloadHash: z.ZodOptional<z.ZodString>;
2915
2915
  }, "strip", z.ZodTypeAny, {
2916
2916
  type: "reconcileResult";
2917
- runId: string;
2918
- timestamp: number;
2919
- schemaVersion: 1;
2920
- eventId: string;
2921
2917
  payload: {
2922
2918
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2923
2919
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
@@ -2929,14 +2925,14 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2929
2925
  bytes: number;
2930
2926
  schemaVersion: number;
2931
2927
  };
2928
+ timestamp: number;
2929
+ runId: string;
2930
+ schemaVersion: 1;
2931
+ eventId: string;
2932
2932
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2933
2933
  payloadHash?: string | undefined;
2934
2934
  }, {
2935
2935
  type: "reconcileResult";
2936
- runId: string;
2937
- timestamp: number;
2938
- schemaVersion: 1;
2939
- eventId: string;
2940
2936
  payload: {
2941
2937
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
2942
2938
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
@@ -2948,6 +2944,10 @@ export declare const ReconcileResultEventSchema: z.ZodObject<{
2948
2944
  bytes: number;
2949
2945
  schemaVersion: number;
2950
2946
  };
2947
+ timestamp: number;
2948
+ runId: string;
2949
+ schemaVersion: 1;
2950
+ eventId: string;
2951
2951
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
2952
2952
  payloadHash?: string | undefined;
2953
2953
  }>;
@@ -3061,10 +3061,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3061
3061
  payloadHash: z.ZodOptional<z.ZodString>;
3062
3062
  }, "strip", z.ZodTypeAny, {
3063
3063
  type: "runCreated";
3064
- runId: string;
3065
- timestamp: number;
3066
- schemaVersion: 1;
3067
- eventId: string;
3068
3064
  payload: {
3069
3065
  workflowId: string;
3070
3066
  revisionId: string;
@@ -3088,14 +3084,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3088
3084
  bytes: number;
3089
3085
  schemaVersion: number;
3090
3086
  };
3087
+ timestamp: number;
3088
+ runId: string;
3089
+ schemaVersion: 1;
3090
+ eventId: string;
3091
3091
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3092
3092
  payloadHash?: string | undefined;
3093
3093
  }, {
3094
3094
  type: "runCreated";
3095
- runId: string;
3096
- timestamp: number;
3097
- schemaVersion: 1;
3098
- eventId: string;
3099
3095
  payload: {
3100
3096
  workflowId: string;
3101
3097
  revisionId: string;
@@ -3119,6 +3115,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3119
3115
  bytes: number;
3120
3116
  schemaVersion: number;
3121
3117
  };
3118
+ timestamp: number;
3119
+ runId: string;
3120
+ schemaVersion: 1;
3121
+ eventId: string;
3122
3122
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3123
3123
  payloadHash?: string | undefined;
3124
3124
  }>, z.ZodObject<{
@@ -3144,28 +3144,28 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3144
3144
  payloadHash: z.ZodOptional<z.ZodString>;
3145
3145
  }, "strip", z.ZodTypeAny, {
3146
3146
  type: "runStarted";
3147
- runId: string;
3148
- timestamp: number;
3149
- schemaVersion: 1;
3150
- eventId: string;
3151
3147
  payload: {} | {
3152
3148
  ref: string;
3153
3149
  bytes: number;
3154
3150
  schemaVersion: number;
3155
3151
  };
3152
+ timestamp: number;
3153
+ runId: string;
3154
+ schemaVersion: 1;
3155
+ eventId: string;
3156
3156
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3157
3157
  payloadHash?: string | undefined;
3158
3158
  }, {
3159
3159
  type: "runStarted";
3160
- runId: string;
3161
- timestamp: number;
3162
- schemaVersion: 1;
3163
- eventId: string;
3164
3160
  payload: {} | {
3165
3161
  ref: string;
3166
3162
  bytes: number;
3167
3163
  schemaVersion: number;
3168
3164
  };
3165
+ timestamp: number;
3166
+ runId: string;
3167
+ schemaVersion: 1;
3168
+ eventId: string;
3169
3169
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3170
3170
  payloadHash?: string | undefined;
3171
3171
  }>, z.ZodObject<{
@@ -3227,10 +3227,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3227
3227
  payloadHash: z.ZodOptional<z.ZodString>;
3228
3228
  }, "strip", z.ZodTypeAny, {
3229
3229
  type: "runSucceeded";
3230
- runId: string;
3231
- timestamp: number;
3232
- schemaVersion: 1;
3233
- eventId: string;
3234
3230
  payload: {
3235
3231
  outputRef: {
3236
3232
  outputHash: string;
@@ -3244,14 +3240,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3244
3240
  bytes: number;
3245
3241
  schemaVersion: number;
3246
3242
  };
3243
+ timestamp: number;
3244
+ runId: string;
3245
+ schemaVersion: 1;
3246
+ eventId: string;
3247
3247
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3248
3248
  payloadHash?: string | undefined;
3249
3249
  }, {
3250
3250
  type: "runSucceeded";
3251
- runId: string;
3252
- timestamp: number;
3253
- schemaVersion: 1;
3254
- eventId: string;
3255
3251
  payload: {
3256
3252
  outputRef: {
3257
3253
  outputHash: string;
@@ -3265,6 +3261,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3265
3261
  bytes: number;
3266
3262
  schemaVersion: number;
3267
3263
  };
3264
+ timestamp: number;
3265
+ runId: string;
3266
+ schemaVersion: 1;
3267
+ eventId: string;
3268
3268
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3269
3269
  payloadHash?: string | undefined;
3270
3270
  }>, z.ZodObject<{
@@ -3299,10 +3299,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3299
3299
  payloadHash: z.ZodOptional<z.ZodString>;
3300
3300
  }, "strip", z.ZodTypeAny, {
3301
3301
  type: "runFailed";
3302
- runId: string;
3303
- timestamp: number;
3304
- schemaVersion: 1;
3305
- eventId: string;
3306
3302
  payload: {
3307
3303
  failedNodeId: string;
3308
3304
  rootCauseEventId: string;
@@ -3311,14 +3307,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3311
3307
  bytes: number;
3312
3308
  schemaVersion: number;
3313
3309
  };
3310
+ timestamp: number;
3311
+ runId: string;
3312
+ schemaVersion: 1;
3313
+ eventId: string;
3314
3314
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3315
3315
  payloadHash?: string | undefined;
3316
3316
  }, {
3317
3317
  type: "runFailed";
3318
- runId: string;
3319
- timestamp: number;
3320
- schemaVersion: 1;
3321
- eventId: string;
3322
3318
  payload: {
3323
3319
  failedNodeId: string;
3324
3320
  rootCauseEventId: string;
@@ -3327,6 +3323,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3327
3323
  bytes: number;
3328
3324
  schemaVersion: number;
3329
3325
  };
3326
+ timestamp: number;
3327
+ runId: string;
3328
+ schemaVersion: 1;
3329
+ eventId: string;
3330
3330
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3331
3331
  payloadHash?: string | undefined;
3332
3332
  }>, z.ZodObject<{
@@ -3358,10 +3358,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3358
3358
  payloadHash: z.ZodOptional<z.ZodString>;
3359
3359
  }, "strip", z.ZodTypeAny, {
3360
3360
  type: "runCanceled";
3361
- runId: string;
3362
- timestamp: number;
3363
- schemaVersion: 1;
3364
- eventId: string;
3365
3361
  payload: {
3366
3362
  cancelOriginEventId: string;
3367
3363
  } | {
@@ -3369,14 +3365,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3369
3365
  bytes: number;
3370
3366
  schemaVersion: number;
3371
3367
  };
3368
+ timestamp: number;
3369
+ runId: string;
3370
+ schemaVersion: 1;
3371
+ eventId: string;
3372
3372
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3373
3373
  payloadHash?: string | undefined;
3374
3374
  }, {
3375
3375
  type: "runCanceled";
3376
- runId: string;
3377
- timestamp: number;
3378
- schemaVersion: 1;
3379
- eventId: string;
3380
3376
  payload: {
3381
3377
  cancelOriginEventId: string;
3382
3378
  } | {
@@ -3384,6 +3380,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3384
3380
  bytes: number;
3385
3381
  schemaVersion: number;
3386
3382
  };
3383
+ timestamp: number;
3384
+ runId: string;
3385
+ schemaVersion: 1;
3386
+ eventId: string;
3387
3387
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3388
3388
  payloadHash?: string | undefined;
3389
3389
  }>, z.ZodObject<{
@@ -3421,10 +3421,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3421
3421
  payloadHash: z.ZodOptional<z.ZodString>;
3422
3422
  }, "strip", z.ZodTypeAny, {
3423
3423
  type: "nodeWaiting";
3424
- runId: string;
3425
- timestamp: number;
3426
- schemaVersion: 1;
3427
- eventId: string;
3428
3424
  payload: {
3429
3425
  nodeId: string;
3430
3426
  waitReason: string;
@@ -3434,14 +3430,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3434
3430
  bytes: number;
3435
3431
  schemaVersion: number;
3436
3432
  };
3433
+ timestamp: number;
3434
+ runId: string;
3435
+ schemaVersion: 1;
3436
+ eventId: string;
3437
3437
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3438
3438
  payloadHash?: string | undefined;
3439
3439
  }, {
3440
3440
  type: "nodeWaiting";
3441
- runId: string;
3442
- timestamp: number;
3443
- schemaVersion: 1;
3444
- eventId: string;
3445
3441
  payload: {
3446
3442
  nodeId: string;
3447
3443
  waitReason: string;
@@ -3451,6 +3447,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3451
3447
  bytes: number;
3452
3448
  schemaVersion: number;
3453
3449
  };
3450
+ timestamp: number;
3451
+ runId: string;
3452
+ schemaVersion: 1;
3453
+ eventId: string;
3454
3454
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3455
3455
  payloadHash?: string | undefined;
3456
3456
  }>, z.ZodObject<{
@@ -3488,10 +3488,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3488
3488
  payloadHash: z.ZodOptional<z.ZodString>;
3489
3489
  }, "strip", z.ZodTypeAny, {
3490
3490
  type: "nodeRetrying";
3491
- runId: string;
3492
- timestamp: number;
3493
- schemaVersion: 1;
3494
- eventId: string;
3495
3491
  payload: {
3496
3492
  nodeId: string;
3497
3493
  lastAttemptId: string;
@@ -3501,14 +3497,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3501
3497
  bytes: number;
3502
3498
  schemaVersion: number;
3503
3499
  };
3500
+ timestamp: number;
3501
+ runId: string;
3502
+ schemaVersion: 1;
3503
+ eventId: string;
3504
3504
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3505
3505
  payloadHash?: string | undefined;
3506
3506
  }, {
3507
3507
  type: "nodeRetrying";
3508
- runId: string;
3509
- timestamp: number;
3510
- schemaVersion: 1;
3511
- eventId: string;
3512
3508
  payload: {
3513
3509
  nodeId: string;
3514
3510
  lastAttemptId: string;
@@ -3518,6 +3514,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3518
3514
  bytes: number;
3519
3515
  schemaVersion: number;
3520
3516
  };
3517
+ timestamp: number;
3518
+ runId: string;
3519
+ schemaVersion: 1;
3520
+ eventId: string;
3521
3521
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3522
3522
  payloadHash?: string | undefined;
3523
3523
  }>, z.ZodObject<{
@@ -3552,10 +3552,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3552
3552
  payloadHash: z.ZodOptional<z.ZodString>;
3553
3553
  }, "strip", z.ZodTypeAny, {
3554
3554
  type: "nodeSucceeded";
3555
- runId: string;
3556
- timestamp: number;
3557
- schemaVersion: 1;
3558
- eventId: string;
3559
3555
  payload: {
3560
3556
  nodeId: string;
3561
3557
  lastActivityId: string;
@@ -3564,14 +3560,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3564
3560
  bytes: number;
3565
3561
  schemaVersion: number;
3566
3562
  };
3563
+ timestamp: number;
3564
+ runId: string;
3565
+ schemaVersion: 1;
3566
+ eventId: string;
3567
3567
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3568
3568
  payloadHash?: string | undefined;
3569
3569
  }, {
3570
3570
  type: "nodeSucceeded";
3571
- runId: string;
3572
- timestamp: number;
3573
- schemaVersion: 1;
3574
- eventId: string;
3575
3571
  payload: {
3576
3572
  nodeId: string;
3577
3573
  lastActivityId: string;
@@ -3580,6 +3576,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3580
3576
  bytes: number;
3581
3577
  schemaVersion: number;
3582
3578
  };
3579
+ timestamp: number;
3580
+ runId: string;
3581
+ schemaVersion: 1;
3582
+ eventId: string;
3583
3583
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3584
3584
  payloadHash?: string | undefined;
3585
3585
  }>, z.ZodObject<{
@@ -3617,10 +3617,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3617
3617
  payloadHash: z.ZodOptional<z.ZodString>;
3618
3618
  }, "strip", z.ZodTypeAny, {
3619
3619
  type: "nodeFailed";
3620
- runId: string;
3621
- timestamp: number;
3622
- schemaVersion: 1;
3623
- eventId: string;
3624
3620
  payload: {
3625
3621
  nodeId: string;
3626
3622
  errorClass: "manual" | "retryable" | "fatal" | "userFault";
@@ -3630,14 +3626,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3630
3626
  bytes: number;
3631
3627
  schemaVersion: number;
3632
3628
  };
3629
+ timestamp: number;
3630
+ runId: string;
3631
+ schemaVersion: 1;
3632
+ eventId: string;
3633
3633
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3634
3634
  payloadHash?: string | undefined;
3635
3635
  }, {
3636
3636
  type: "nodeFailed";
3637
- runId: string;
3638
- timestamp: number;
3639
- schemaVersion: 1;
3640
- eventId: string;
3641
3637
  payload: {
3642
3638
  nodeId: string;
3643
3639
  errorClass: "manual" | "retryable" | "fatal" | "userFault";
@@ -3647,6 +3643,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3647
3643
  bytes: number;
3648
3644
  schemaVersion: number;
3649
3645
  };
3646
+ timestamp: number;
3647
+ runId: string;
3648
+ schemaVersion: 1;
3649
+ eventId: string;
3650
3650
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3651
3651
  payloadHash?: string | undefined;
3652
3652
  }>, z.ZodObject<{
@@ -3681,10 +3681,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3681
3681
  payloadHash: z.ZodOptional<z.ZodString>;
3682
3682
  }, "strip", z.ZodTypeAny, {
3683
3683
  type: "nodeSkipped";
3684
- runId: string;
3685
- timestamp: number;
3686
- schemaVersion: 1;
3687
- eventId: string;
3688
3684
  payload: {
3689
3685
  nodeId: string;
3690
3686
  conditionEventId: string;
@@ -3693,14 +3689,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3693
3689
  bytes: number;
3694
3690
  schemaVersion: number;
3695
3691
  };
3692
+ timestamp: number;
3693
+ runId: string;
3694
+ schemaVersion: 1;
3695
+ eventId: string;
3696
3696
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3697
3697
  payloadHash?: string | undefined;
3698
3698
  }, {
3699
3699
  type: "nodeSkipped";
3700
- runId: string;
3701
- timestamp: number;
3702
- schemaVersion: 1;
3703
- eventId: string;
3704
3700
  payload: {
3705
3701
  nodeId: string;
3706
3702
  conditionEventId: string;
@@ -3709,6 +3705,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3709
3705
  bytes: number;
3710
3706
  schemaVersion: number;
3711
3707
  };
3708
+ timestamp: number;
3709
+ runId: string;
3710
+ schemaVersion: 1;
3711
+ eventId: string;
3712
3712
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3713
3713
  payloadHash?: string | undefined;
3714
3714
  }>, z.ZodObject<{
@@ -3743,10 +3743,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3743
3743
  payloadHash: z.ZodOptional<z.ZodString>;
3744
3744
  }, "strip", z.ZodTypeAny, {
3745
3745
  type: "nodeCanceled";
3746
- runId: string;
3747
- timestamp: number;
3748
- schemaVersion: 1;
3749
- eventId: string;
3750
3746
  payload: {
3751
3747
  nodeId: string;
3752
3748
  cancelOriginEventId: string;
@@ -3755,14 +3751,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3755
3751
  bytes: number;
3756
3752
  schemaVersion: number;
3757
3753
  };
3754
+ timestamp: number;
3755
+ runId: string;
3756
+ schemaVersion: 1;
3757
+ eventId: string;
3758
3758
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3759
3759
  payloadHash?: string | undefined;
3760
3760
  }, {
3761
3761
  type: "nodeCanceled";
3762
- runId: string;
3763
- timestamp: number;
3764
- schemaVersion: 1;
3765
- eventId: string;
3766
3762
  payload: {
3767
3763
  nodeId: string;
3768
3764
  cancelOriginEventId: string;
@@ -3771,6 +3767,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3771
3767
  bytes: number;
3772
3768
  schemaVersion: number;
3773
3769
  };
3770
+ timestamp: number;
3771
+ runId: string;
3772
+ schemaVersion: 1;
3773
+ eventId: string;
3774
3774
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3775
3775
  payloadHash?: string | undefined;
3776
3776
  }>, z.ZodObject<{
@@ -3808,10 +3808,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3808
3808
  payloadHash: z.ZodOptional<z.ZodString>;
3809
3809
  }, "strip", z.ZodTypeAny, {
3810
3810
  type: "activityRunning";
3811
- runId: string;
3812
- timestamp: number;
3813
- schemaVersion: 1;
3814
- eventId: string;
3815
3811
  payload: {
3816
3812
  attemptId: string;
3817
3813
  activityId: string;
@@ -3821,14 +3817,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3821
3817
  bytes: number;
3822
3818
  schemaVersion: number;
3823
3819
  };
3820
+ timestamp: number;
3821
+ runId: string;
3822
+ schemaVersion: 1;
3823
+ eventId: string;
3824
3824
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3825
3825
  payloadHash?: string | undefined;
3826
3826
  }, {
3827
3827
  type: "activityRunning";
3828
- runId: string;
3829
- timestamp: number;
3830
- schemaVersion: 1;
3831
- eventId: string;
3832
3828
  payload: {
3833
3829
  attemptId: string;
3834
3830
  activityId: string;
@@ -3838,6 +3834,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3838
3834
  bytes: number;
3839
3835
  schemaVersion: number;
3840
3836
  };
3837
+ timestamp: number;
3838
+ runId: string;
3839
+ schemaVersion: 1;
3840
+ eventId: string;
3841
3841
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3842
3842
  payloadHash?: string | undefined;
3843
3843
  }>, z.ZodObject<{
@@ -3872,10 +3872,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3872
3872
  payloadHash: z.ZodOptional<z.ZodString>;
3873
3873
  }, "strip", z.ZodTypeAny, {
3874
3874
  type: "activityWaiting";
3875
- runId: string;
3876
- timestamp: number;
3877
- schemaVersion: 1;
3878
- eventId: string;
3879
3875
  payload: {
3880
3876
  reason: string;
3881
3877
  activityId: string;
@@ -3884,14 +3880,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3884
3880
  bytes: number;
3885
3881
  schemaVersion: number;
3886
3882
  };
3883
+ timestamp: number;
3884
+ runId: string;
3885
+ schemaVersion: 1;
3886
+ eventId: string;
3887
3887
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3888
3888
  payloadHash?: string | undefined;
3889
3889
  }, {
3890
3890
  type: "activityWaiting";
3891
- runId: string;
3892
- timestamp: number;
3893
- schemaVersion: 1;
3894
- eventId: string;
3895
3891
  payload: {
3896
3892
  reason: string;
3897
3893
  activityId: string;
@@ -3900,6 +3896,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3900
3896
  bytes: number;
3901
3897
  schemaVersion: number;
3902
3898
  };
3899
+ timestamp: number;
3900
+ runId: string;
3901
+ schemaVersion: 1;
3902
+ eventId: string;
3903
3903
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3904
3904
  payloadHash?: string | undefined;
3905
3905
  }>, z.ZodObject<{
@@ -3943,10 +3943,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3943
3943
  payloadHash: z.ZodOptional<z.ZodString>;
3944
3944
  }, "strip", z.ZodTypeAny, {
3945
3945
  type: "activityTimedOut";
3946
- runId: string;
3947
- timestamp: number;
3948
- schemaVersion: 1;
3949
- eventId: string;
3950
3946
  payload: {
3951
3947
  reason: "LeaseExpired";
3952
3948
  attemptId: string;
@@ -3958,14 +3954,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3958
3954
  bytes: number;
3959
3955
  schemaVersion: number;
3960
3956
  };
3957
+ timestamp: number;
3958
+ runId: string;
3959
+ schemaVersion: 1;
3960
+ eventId: string;
3961
3961
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3962
3962
  payloadHash?: string | undefined;
3963
3963
  }, {
3964
3964
  type: "activityTimedOut";
3965
- runId: string;
3966
- timestamp: number;
3967
- schemaVersion: 1;
3968
- eventId: string;
3969
3965
  payload: {
3970
3966
  reason: "LeaseExpired";
3971
3967
  attemptId: string;
@@ -3977,6 +3973,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3977
3973
  bytes: number;
3978
3974
  schemaVersion: number;
3979
3975
  };
3976
+ timestamp: number;
3977
+ runId: string;
3978
+ schemaVersion: 1;
3979
+ eventId: string;
3980
3980
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
3981
3981
  payloadHash?: string | undefined;
3982
3982
  }>, z.ZodObject<{
@@ -4011,10 +4011,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4011
4011
  payloadHash: z.ZodOptional<z.ZodString>;
4012
4012
  }, "strip", z.ZodTypeAny, {
4013
4013
  type: "loopStarted";
4014
- runId: string;
4015
- timestamp: number;
4016
- schemaVersion: 1;
4017
- eventId: string;
4018
4014
  payload: {
4019
4015
  loopId: string;
4020
4016
  maxIterations: number;
@@ -4023,14 +4019,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4023
4019
  bytes: number;
4024
4020
  schemaVersion: number;
4025
4021
  };
4022
+ timestamp: number;
4023
+ runId: string;
4024
+ schemaVersion: 1;
4025
+ eventId: string;
4026
4026
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4027
4027
  payloadHash?: string | undefined;
4028
4028
  }, {
4029
4029
  type: "loopStarted";
4030
- runId: string;
4031
- timestamp: number;
4032
- schemaVersion: 1;
4033
- eventId: string;
4034
4030
  payload: {
4035
4031
  loopId: string;
4036
4032
  maxIterations: number;
@@ -4039,6 +4035,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4039
4035
  bytes: number;
4040
4036
  schemaVersion: number;
4041
4037
  };
4038
+ timestamp: number;
4039
+ runId: string;
4040
+ schemaVersion: 1;
4041
+ eventId: string;
4042
4042
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4043
4043
  payloadHash?: string | undefined;
4044
4044
  }>, z.ZodObject<{
@@ -4076,10 +4076,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4076
4076
  payloadHash: z.ZodOptional<z.ZodString>;
4077
4077
  }, "strip", z.ZodTypeAny, {
4078
4078
  type: "loopIterationStarted";
4079
- runId: string;
4080
- timestamp: number;
4081
- schemaVersion: 1;
4082
- eventId: string;
4083
4079
  payload: {
4084
4080
  loopId: string;
4085
4081
  iteration: number;
@@ -4089,14 +4085,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4089
4085
  bytes: number;
4090
4086
  schemaVersion: number;
4091
4087
  };
4088
+ timestamp: number;
4089
+ runId: string;
4090
+ schemaVersion: 1;
4091
+ eventId: string;
4092
4092
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4093
4093
  payloadHash?: string | undefined;
4094
4094
  }, {
4095
4095
  type: "loopIterationStarted";
4096
- runId: string;
4097
- timestamp: number;
4098
- schemaVersion: 1;
4099
- eventId: string;
4100
4096
  payload: {
4101
4097
  loopId: string;
4102
4098
  iteration: number;
@@ -4106,6 +4102,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4106
4102
  bytes: number;
4107
4103
  schemaVersion: number;
4108
4104
  };
4105
+ timestamp: number;
4106
+ runId: string;
4107
+ schemaVersion: 1;
4108
+ eventId: string;
4109
4109
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4110
4110
  payloadHash?: string | undefined;
4111
4111
  }>, z.ZodObject<{
@@ -4158,10 +4158,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4158
4158
  payloadHash: z.ZodOptional<z.ZodString>;
4159
4159
  }, "strip", z.ZodTypeAny, {
4160
4160
  type: "loopIterationFinished";
4161
- runId: string;
4162
- timestamp: number;
4163
- schemaVersion: 1;
4164
- eventId: string;
4165
4161
  payload: {
4166
4162
  loopId: string;
4167
4163
  iteration: number;
@@ -4176,14 +4172,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4176
4172
  bytes: number;
4177
4173
  schemaVersion: number;
4178
4174
  };
4175
+ timestamp: number;
4176
+ runId: string;
4177
+ schemaVersion: 1;
4178
+ eventId: string;
4179
4179
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4180
4180
  payloadHash?: string | undefined;
4181
4181
  }, {
4182
4182
  type: "loopIterationFinished";
4183
- runId: string;
4184
- timestamp: number;
4185
- schemaVersion: 1;
4186
- eventId: string;
4187
4183
  payload: {
4188
4184
  loopId: string;
4189
4185
  iteration: number;
@@ -4198,6 +4194,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4198
4194
  bytes: number;
4199
4195
  schemaVersion: number;
4200
4196
  };
4197
+ timestamp: number;
4198
+ runId: string;
4199
+ schemaVersion: 1;
4200
+ eventId: string;
4201
4201
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4202
4202
  payloadHash?: string | undefined;
4203
4203
  }>, z.ZodObject<{
@@ -4274,10 +4274,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4274
4274
  payloadHash: z.ZodOptional<z.ZodString>;
4275
4275
  }, "strip", z.ZodTypeAny, {
4276
4276
  type: "loopFinished";
4277
- runId: string;
4278
- timestamp: number;
4279
- schemaVersion: 1;
4280
- eventId: string;
4281
4277
  payload: {
4282
4278
  loopId: string;
4283
4279
  resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
@@ -4296,14 +4292,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4296
4292
  bytes: number;
4297
4293
  schemaVersion: number;
4298
4294
  };
4295
+ timestamp: number;
4296
+ runId: string;
4297
+ schemaVersion: 1;
4298
+ eventId: string;
4299
4299
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4300
4300
  payloadHash?: string | undefined;
4301
4301
  }, {
4302
4302
  type: "loopFinished";
4303
- runId: string;
4304
- timestamp: number;
4305
- schemaVersion: 1;
4306
- eventId: string;
4307
4303
  payload: {
4308
4304
  loopId: string;
4309
4305
  resolution: "timeout" | "approved" | "max-iterations-exceeded" | "body-failed" | "cancelled";
@@ -4322,6 +4318,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4322
4318
  bytes: number;
4323
4319
  schemaVersion: number;
4324
4320
  };
4321
+ timestamp: number;
4322
+ runId: string;
4323
+ schemaVersion: 1;
4324
+ eventId: string;
4325
4325
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4326
4326
  payloadHash?: string | undefined;
4327
4327
  }>, z.ZodObject<{
@@ -4362,10 +4362,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4362
4362
  payloadHash: z.ZodOptional<z.ZodString>;
4363
4363
  }, "strip", z.ZodTypeAny, {
4364
4364
  type: "conditionEvaluated";
4365
- runId: string;
4366
- timestamp: number;
4367
- schemaVersion: 1;
4368
- eventId: string;
4369
4365
  payload: {
4370
4366
  nodeId: string;
4371
4367
  conditionExpr: string;
@@ -4376,14 +4372,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4376
4372
  bytes: number;
4377
4373
  schemaVersion: number;
4378
4374
  };
4375
+ timestamp: number;
4376
+ runId: string;
4377
+ schemaVersion: 1;
4378
+ eventId: string;
4379
4379
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4380
4380
  payloadHash?: string | undefined;
4381
4381
  }, {
4382
4382
  type: "conditionEvaluated";
4383
- runId: string;
4384
- timestamp: number;
4385
- schemaVersion: 1;
4386
- eventId: string;
4387
4383
  payload: {
4388
4384
  nodeId: string;
4389
4385
  conditionExpr: string;
@@ -4394,6 +4390,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4394
4390
  bytes: number;
4395
4391
  schemaVersion: number;
4396
4392
  };
4393
+ timestamp: number;
4394
+ runId: string;
4395
+ schemaVersion: 1;
4396
+ eventId: string;
4397
4397
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4398
4398
  payloadHash?: string | undefined;
4399
4399
  }>, z.ZodObject<{
@@ -4437,10 +4437,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4437
4437
  payloadHash: z.ZodOptional<z.ZodString>;
4438
4438
  }, "strip", z.ZodTypeAny, {
4439
4439
  type: "leaseSigned";
4440
- runId: string;
4441
- timestamp: number;
4442
- schemaVersion: 1;
4443
- eventId: string;
4444
4440
  payload: {
4445
4441
  timeoutMs: number;
4446
4442
  attemptId: string;
@@ -4452,14 +4448,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4452
4448
  bytes: number;
4453
4449
  schemaVersion: number;
4454
4450
  };
4451
+ timestamp: number;
4452
+ runId: string;
4453
+ schemaVersion: 1;
4454
+ eventId: string;
4455
4455
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4456
4456
  payloadHash?: string | undefined;
4457
4457
  }, {
4458
4458
  type: "leaseSigned";
4459
- runId: string;
4460
- timestamp: number;
4461
- schemaVersion: 1;
4462
- eventId: string;
4463
4459
  payload: {
4464
4460
  timeoutMs: number;
4465
4461
  attemptId: string;
@@ -4471,6 +4467,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4471
4467
  bytes: number;
4472
4468
  schemaVersion: number;
4473
4469
  };
4470
+ timestamp: number;
4471
+ runId: string;
4472
+ schemaVersion: 1;
4473
+ eventId: string;
4474
4474
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4475
4475
  payloadHash?: string | undefined;
4476
4476
  }>, z.ZodObject<{
@@ -4544,10 +4544,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4544
4544
  payloadHash: z.ZodOptional<z.ZodString>;
4545
4545
  }, "strip", z.ZodTypeAny, {
4546
4546
  type: "attemptCreated";
4547
- runId: string;
4548
- timestamp: number;
4549
- schemaVersion: 1;
4550
- eventId: string;
4551
4547
  payload: {
4552
4548
  nodeId: string;
4553
4549
  attemptId: string;
@@ -4565,14 +4561,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4565
4561
  bytes: number;
4566
4562
  schemaVersion: number;
4567
4563
  };
4564
+ timestamp: number;
4565
+ runId: string;
4566
+ schemaVersion: 1;
4567
+ eventId: string;
4568
4568
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4569
4569
  payloadHash?: string | undefined;
4570
4570
  }, {
4571
4571
  type: "attemptCreated";
4572
- runId: string;
4573
- timestamp: number;
4574
- schemaVersion: 1;
4575
- eventId: string;
4576
4572
  payload: {
4577
4573
  nodeId: string;
4578
4574
  attemptId: string;
@@ -4590,6 +4586,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4590
4586
  bytes: number;
4591
4587
  schemaVersion: number;
4592
4588
  };
4589
+ timestamp: number;
4590
+ runId: string;
4591
+ schemaVersion: 1;
4592
+ eventId: string;
4593
4593
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4594
4594
  payloadHash?: string | undefined;
4595
4595
  }>, z.ZodObject<{
@@ -4655,10 +4655,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4655
4655
  payloadHash: z.ZodOptional<z.ZodString>;
4656
4656
  }, "strip", z.ZodTypeAny, {
4657
4657
  type: "backoffScheduled";
4658
- runId: string;
4659
- timestamp: number;
4660
- schemaVersion: 1;
4661
- eventId: string;
4662
4658
  payload: {
4663
4659
  nodeId: string;
4664
4660
  lastAttemptId: string;
@@ -4674,14 +4670,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4674
4670
  bytes: number;
4675
4671
  schemaVersion: number;
4676
4672
  };
4673
+ timestamp: number;
4674
+ runId: string;
4675
+ schemaVersion: 1;
4676
+ eventId: string;
4677
4677
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4678
4678
  payloadHash?: string | undefined;
4679
4679
  }, {
4680
4680
  type: "backoffScheduled";
4681
- runId: string;
4682
- timestamp: number;
4683
- schemaVersion: 1;
4684
- eventId: string;
4685
4681
  payload: {
4686
4682
  nodeId: string;
4687
4683
  lastAttemptId: string;
@@ -4697,6 +4693,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4697
4693
  bytes: number;
4698
4694
  schemaVersion: number;
4699
4695
  };
4696
+ timestamp: number;
4697
+ runId: string;
4698
+ schemaVersion: 1;
4699
+ eventId: string;
4700
4700
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4701
4701
  payloadHash?: string | undefined;
4702
4702
  }>, z.ZodObject<{
@@ -4731,10 +4731,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4731
4731
  payloadHash: z.ZodOptional<z.ZodString>;
4732
4732
  }, "strip", z.ZodTypeAny, {
4733
4733
  type: "backoffElapsed";
4734
- runId: string;
4735
- timestamp: number;
4736
- schemaVersion: 1;
4737
- eventId: string;
4738
4734
  payload: {
4739
4735
  nodeId: string;
4740
4736
  scheduledAttemptId: string;
@@ -4743,14 +4739,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4743
4739
  bytes: number;
4744
4740
  schemaVersion: number;
4745
4741
  };
4742
+ timestamp: number;
4743
+ runId: string;
4744
+ schemaVersion: 1;
4745
+ eventId: string;
4746
4746
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4747
4747
  payloadHash?: string | undefined;
4748
4748
  }, {
4749
4749
  type: "backoffElapsed";
4750
- runId: string;
4751
- timestamp: number;
4752
- schemaVersion: 1;
4753
- eventId: string;
4754
4750
  payload: {
4755
4751
  nodeId: string;
4756
4752
  scheduledAttemptId: string;
@@ -4759,6 +4755,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4759
4755
  bytes: number;
4760
4756
  schemaVersion: number;
4761
4757
  };
4758
+ timestamp: number;
4759
+ runId: string;
4760
+ schemaVersion: 1;
4761
+ eventId: string;
4762
4762
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4763
4763
  payloadHash?: string | undefined;
4764
4764
  }>, z.ZodObject<{
@@ -4805,10 +4805,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4805
4805
  payloadHash: z.ZodOptional<z.ZodString>;
4806
4806
  }, "strip", z.ZodTypeAny, {
4807
4807
  type: "effectAttempted";
4808
- runId: string;
4809
- timestamp: number;
4810
- schemaVersion: 1;
4811
- eventId: string;
4812
4808
  payload: {
4813
4809
  attemptId: string;
4814
4810
  activityId: string;
@@ -4821,14 +4817,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4821
4817
  bytes: number;
4822
4818
  schemaVersion: number;
4823
4819
  };
4820
+ timestamp: number;
4821
+ runId: string;
4822
+ schemaVersion: 1;
4823
+ eventId: string;
4824
4824
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4825
4825
  payloadHash?: string | undefined;
4826
4826
  }, {
4827
4827
  type: "effectAttempted";
4828
- runId: string;
4829
- timestamp: number;
4830
- schemaVersion: 1;
4831
- eventId: string;
4832
4828
  payload: {
4833
4829
  attemptId: string;
4834
4830
  activityId: string;
@@ -4841,6 +4837,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4841
4837
  bytes: number;
4842
4838
  schemaVersion: number;
4843
4839
  };
4840
+ timestamp: number;
4841
+ runId: string;
4842
+ schemaVersion: 1;
4843
+ eventId: string;
4844
4844
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4845
4845
  payloadHash?: string | undefined;
4846
4846
  }>, z.ZodObject<{
@@ -4911,10 +4911,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4911
4911
  payloadHash: z.ZodOptional<z.ZodString>;
4912
4912
  }, "strip", z.ZodTypeAny, {
4913
4913
  type: "activitySucceeded";
4914
- runId: string;
4915
- timestamp: number;
4916
- schemaVersion: 1;
4917
- eventId: string;
4918
4914
  payload: {
4919
4915
  attemptId: string;
4920
4916
  activityId: string;
@@ -4931,14 +4927,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4931
4927
  bytes: number;
4932
4928
  schemaVersion: number;
4933
4929
  };
4930
+ timestamp: number;
4931
+ runId: string;
4932
+ schemaVersion: 1;
4933
+ eventId: string;
4934
4934
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4935
4935
  payloadHash?: string | undefined;
4936
4936
  }, {
4937
4937
  type: "activitySucceeded";
4938
- runId: string;
4939
- timestamp: number;
4940
- schemaVersion: 1;
4941
- eventId: string;
4942
4938
  payload: {
4943
4939
  attemptId: string;
4944
4940
  activityId: string;
@@ -4955,6 +4951,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4955
4951
  bytes: number;
4956
4952
  schemaVersion: number;
4957
4953
  };
4954
+ timestamp: number;
4955
+ runId: string;
4956
+ schemaVersion: 1;
4957
+ eventId: string;
4958
4958
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
4959
4959
  payloadHash?: string | undefined;
4960
4960
  }>, z.ZodObject<{
@@ -5017,10 +5017,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5017
5017
  payloadHash: z.ZodOptional<z.ZodString>;
5018
5018
  }, "strip", z.ZodTypeAny, {
5019
5019
  type: "activityFailed";
5020
- runId: string;
5021
- timestamp: number;
5022
- schemaVersion: 1;
5023
- eventId: string;
5024
5020
  payload: {
5025
5021
  error: {
5026
5022
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -5035,14 +5031,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5035
5031
  bytes: number;
5036
5032
  schemaVersion: number;
5037
5033
  };
5034
+ timestamp: number;
5035
+ runId: string;
5036
+ schemaVersion: 1;
5037
+ eventId: string;
5038
5038
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5039
5039
  payloadHash?: string | undefined;
5040
5040
  }, {
5041
5041
  type: "activityFailed";
5042
- runId: string;
5043
- timestamp: number;
5044
- schemaVersion: 1;
5045
- eventId: string;
5046
5042
  payload: {
5047
5043
  error: {
5048
5044
  errorCode: "LeaseExpired" | "WorkerCrashed" | "NetworkError" | "ProviderRateLimited" | "IdempotencyInputMismatch" | "IdempotencyConflict" | "InputValidationFailed" | "InputBindingFailed" | "OutputSchemaViolation" | "WaitDeadlineExceeded" | "TtlExpired" | "UnknownProviderError" | "InputUnrecoverable" | "CorruptLog" | "LoopMaxIterationsExceeded" | "LoopBodyFailed";
@@ -5057,6 +5053,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5057
5053
  bytes: number;
5058
5054
  schemaVersion: number;
5059
5055
  };
5056
+ timestamp: number;
5057
+ runId: string;
5058
+ schemaVersion: 1;
5059
+ eventId: string;
5060
5060
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5061
5061
  payloadHash?: string | undefined;
5062
5062
  }>, z.ZodObject<{
@@ -5142,10 +5142,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5142
5142
  payloadHash: z.ZodOptional<z.ZodString>;
5143
5143
  }, "strip", z.ZodTypeAny, {
5144
5144
  type: "waitCreated";
5145
- runId: string;
5146
- timestamp: number;
5147
- schemaVersion: 1;
5148
- eventId: string;
5149
5145
  payload: {
5150
5146
  nodeId: string;
5151
5147
  activityId: string;
@@ -5167,14 +5163,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5167
5163
  bytes: number;
5168
5164
  schemaVersion: number;
5169
5165
  };
5166
+ timestamp: number;
5167
+ runId: string;
5168
+ schemaVersion: 1;
5169
+ eventId: string;
5170
5170
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5171
5171
  payloadHash?: string | undefined;
5172
5172
  }, {
5173
5173
  type: "waitCreated";
5174
- runId: string;
5175
- timestamp: number;
5176
- schemaVersion: 1;
5177
- eventId: string;
5178
5174
  payload: {
5179
5175
  nodeId: string;
5180
5176
  activityId: string;
@@ -5196,6 +5192,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5196
5192
  bytes: number;
5197
5193
  schemaVersion: number;
5198
5194
  };
5195
+ timestamp: number;
5196
+ runId: string;
5197
+ schemaVersion: 1;
5198
+ eventId: string;
5199
5199
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5200
5200
  payloadHash?: string | undefined;
5201
5201
  }>, z.ZodObject<{
@@ -5236,10 +5236,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5236
5236
  payloadHash: z.ZodOptional<z.ZodString>;
5237
5237
  }, "strip", z.ZodTypeAny, {
5238
5238
  type: "waitResolved";
5239
- runId: string;
5240
- timestamp: number;
5241
- schemaVersion: 1;
5242
- eventId: string;
5243
5239
  payload: {
5244
5240
  activityId: string;
5245
5241
  resolution: "approved" | "rejected" | "external";
@@ -5250,14 +5246,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5250
5246
  bytes: number;
5251
5247
  schemaVersion: number;
5252
5248
  };
5249
+ timestamp: number;
5250
+ runId: string;
5251
+ schemaVersion: 1;
5252
+ eventId: string;
5253
5253
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5254
5254
  payloadHash?: string | undefined;
5255
5255
  }, {
5256
5256
  type: "waitResolved";
5257
- runId: string;
5258
- timestamp: number;
5259
- schemaVersion: 1;
5260
- eventId: string;
5261
5257
  payload: {
5262
5258
  activityId: string;
5263
5259
  resolution: "approved" | "rejected" | "external";
@@ -5268,6 +5264,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5268
5264
  bytes: number;
5269
5265
  schemaVersion: number;
5270
5266
  };
5267
+ timestamp: number;
5268
+ runId: string;
5269
+ schemaVersion: 1;
5270
+ eventId: string;
5271
5271
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5272
5272
  payloadHash?: string | undefined;
5273
5273
  }>, z.ZodObject<{
@@ -5305,10 +5305,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5305
5305
  payloadHash: z.ZodOptional<z.ZodString>;
5306
5306
  }, "strip", z.ZodTypeAny, {
5307
5307
  type: "waitDeadlineExceeded";
5308
- runId: string;
5309
- timestamp: number;
5310
- schemaVersion: 1;
5311
- eventId: string;
5312
5308
  payload: {
5313
5309
  activityId: string;
5314
5310
  deadlineAt: number;
@@ -5318,14 +5314,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5318
5314
  bytes: number;
5319
5315
  schemaVersion: number;
5320
5316
  };
5317
+ timestamp: number;
5318
+ runId: string;
5319
+ schemaVersion: 1;
5320
+ eventId: string;
5321
5321
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5322
5322
  payloadHash?: string | undefined;
5323
5323
  }, {
5324
5324
  type: "waitDeadlineExceeded";
5325
- runId: string;
5326
- timestamp: number;
5327
- schemaVersion: 1;
5328
- eventId: string;
5329
5325
  payload: {
5330
5326
  activityId: string;
5331
5327
  deadlineAt: number;
@@ -5335,6 +5331,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5335
5331
  bytes: number;
5336
5332
  schemaVersion: number;
5337
5333
  };
5334
+ timestamp: number;
5335
+ runId: string;
5336
+ schemaVersion: 1;
5337
+ eventId: string;
5338
5338
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5339
5339
  payloadHash?: string | undefined;
5340
5340
  }>, z.ZodObject<{
@@ -5417,10 +5417,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5417
5417
  payloadHash: z.ZodOptional<z.ZodString>;
5418
5418
  }, "strip", z.ZodTypeAny, {
5419
5419
  type: "cancelRequested";
5420
- runId: string;
5421
- timestamp: number;
5422
- schemaVersion: 1;
5423
- eventId: string;
5424
5420
  payload: {
5425
5421
  reason: string;
5426
5422
  by: string;
@@ -5439,14 +5435,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5439
5435
  bytes: number;
5440
5436
  schemaVersion: number;
5441
5437
  };
5438
+ timestamp: number;
5439
+ runId: string;
5440
+ schemaVersion: 1;
5441
+ eventId: string;
5442
5442
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5443
5443
  payloadHash?: string | undefined;
5444
5444
  }, {
5445
5445
  type: "cancelRequested";
5446
- runId: string;
5447
- timestamp: number;
5448
- schemaVersion: 1;
5449
- eventId: string;
5450
5446
  payload: {
5451
5447
  reason: string;
5452
5448
  by: string;
@@ -5465,6 +5461,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5465
5461
  bytes: number;
5466
5462
  schemaVersion: number;
5467
5463
  };
5464
+ timestamp: number;
5465
+ runId: string;
5466
+ schemaVersion: 1;
5467
+ eventId: string;
5468
5468
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5469
5469
  payloadHash?: string | undefined;
5470
5470
  }>, z.ZodObject<{
@@ -5544,10 +5544,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5544
5544
  payloadHash: z.ZodOptional<z.ZodString>;
5545
5545
  }, "strip", z.ZodTypeAny, {
5546
5546
  type: "cancelDelivered";
5547
- runId: string;
5548
- timestamp: number;
5549
- schemaVersion: 1;
5550
- eventId: string;
5551
5547
  payload: {
5552
5548
  activityId: string;
5553
5549
  target: {
@@ -5565,14 +5561,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5565
5561
  bytes: number;
5566
5562
  schemaVersion: number;
5567
5563
  };
5564
+ timestamp: number;
5565
+ runId: string;
5566
+ schemaVersion: 1;
5567
+ eventId: string;
5568
5568
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5569
5569
  payloadHash?: string | undefined;
5570
5570
  }, {
5571
5571
  type: "cancelDelivered";
5572
- runId: string;
5573
- timestamp: number;
5574
- schemaVersion: 1;
5575
- eventId: string;
5576
5572
  payload: {
5577
5573
  activityId: string;
5578
5574
  target: {
@@ -5590,6 +5586,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5590
5586
  bytes: number;
5591
5587
  schemaVersion: number;
5592
5588
  };
5589
+ timestamp: number;
5590
+ runId: string;
5591
+ schemaVersion: 1;
5592
+ eventId: string;
5593
5593
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5594
5594
  payloadHash?: string | undefined;
5595
5595
  }>, z.ZodObject<{
@@ -5627,10 +5627,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5627
5627
  payloadHash: z.ZodOptional<z.ZodString>;
5628
5628
  }, "strip", z.ZodTypeAny, {
5629
5629
  type: "activityCanceled";
5630
- runId: string;
5631
- timestamp: number;
5632
- schemaVersion: 1;
5633
- eventId: string;
5634
5630
  payload: {
5635
5631
  attemptId: string;
5636
5632
  activityId: string;
@@ -5640,14 +5636,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5640
5636
  bytes: number;
5641
5637
  schemaVersion: number;
5642
5638
  };
5639
+ timestamp: number;
5640
+ runId: string;
5641
+ schemaVersion: 1;
5642
+ eventId: string;
5643
5643
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5644
5644
  payloadHash?: string | undefined;
5645
5645
  }, {
5646
5646
  type: "activityCanceled";
5647
- runId: string;
5648
- timestamp: number;
5649
- schemaVersion: 1;
5650
- eventId: string;
5651
5647
  payload: {
5652
5648
  attemptId: string;
5653
5649
  activityId: string;
@@ -5657,6 +5653,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5657
5653
  bytes: number;
5658
5654
  schemaVersion: number;
5659
5655
  };
5656
+ timestamp: number;
5657
+ runId: string;
5658
+ schemaVersion: 1;
5659
+ eventId: string;
5660
5660
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5661
5661
  payloadHash?: string | undefined;
5662
5662
  }>, z.ZodObject<{
@@ -5691,10 +5691,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5691
5691
  payloadHash: z.ZodOptional<z.ZodString>;
5692
5692
  }, "strip", z.ZodTypeAny, {
5693
5693
  type: "workerLost";
5694
- runId: string;
5695
- timestamp: number;
5696
- schemaVersion: 1;
5697
- eventId: string;
5698
5694
  payload: {
5699
5695
  workerId: string;
5700
5696
  lostActivityIds: string[];
@@ -5703,14 +5699,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5703
5699
  bytes: number;
5704
5700
  schemaVersion: number;
5705
5701
  };
5702
+ timestamp: number;
5703
+ runId: string;
5704
+ schemaVersion: 1;
5705
+ eventId: string;
5706
5706
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5707
5707
  payloadHash?: string | undefined;
5708
5708
  }, {
5709
5709
  type: "workerLost";
5710
- runId: string;
5711
- timestamp: number;
5712
- schemaVersion: 1;
5713
- eventId: string;
5714
5710
  payload: {
5715
5711
  workerId: string;
5716
5712
  lostActivityIds: string[];
@@ -5719,6 +5715,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5719
5715
  bytes: number;
5720
5716
  schemaVersion: number;
5721
5717
  };
5718
+ timestamp: number;
5719
+ runId: string;
5720
+ schemaVersion: 1;
5721
+ eventId: string;
5722
5722
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5723
5723
  payloadHash?: string | undefined;
5724
5724
  }>, z.ZodObject<{
@@ -5753,10 +5753,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5753
5753
  payloadHash: z.ZodOptional<z.ZodString>;
5754
5754
  }, "strip", z.ZodTypeAny, {
5755
5755
  type: "resumeStarted";
5756
- runId: string;
5757
- timestamp: number;
5758
- schemaVersion: 1;
5759
- eventId: string;
5760
5756
  payload: {
5761
5757
  daemonId: string;
5762
5758
  lastSeenEventId: string;
@@ -5765,14 +5761,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5765
5761
  bytes: number;
5766
5762
  schemaVersion: number;
5767
5763
  };
5764
+ timestamp: number;
5765
+ runId: string;
5766
+ schemaVersion: 1;
5767
+ eventId: string;
5768
5768
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5769
5769
  payloadHash?: string | undefined;
5770
5770
  }, {
5771
5771
  type: "resumeStarted";
5772
- runId: string;
5773
- timestamp: number;
5774
- schemaVersion: 1;
5775
- eventId: string;
5776
5772
  payload: {
5777
5773
  daemonId: string;
5778
5774
  lastSeenEventId: string;
@@ -5781,6 +5777,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5781
5777
  bytes: number;
5782
5778
  schemaVersion: number;
5783
5779
  };
5780
+ timestamp: number;
5781
+ runId: string;
5782
+ schemaVersion: 1;
5783
+ eventId: string;
5784
5784
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5785
5785
  payloadHash?: string | undefined;
5786
5786
  }>, z.ZodObject<{
@@ -5824,10 +5824,6 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5824
5824
  payloadHash: z.ZodOptional<z.ZodString>;
5825
5825
  }, "strip", z.ZodTypeAny, {
5826
5826
  type: "reconcileResult";
5827
- runId: string;
5828
- timestamp: number;
5829
- schemaVersion: 1;
5830
- eventId: string;
5831
5827
  payload: {
5832
5828
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5833
5829
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
@@ -5839,14 +5835,14 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5839
5835
  bytes: number;
5840
5836
  schemaVersion: number;
5841
5837
  };
5838
+ timestamp: number;
5839
+ runId: string;
5840
+ schemaVersion: 1;
5841
+ eventId: string;
5842
5842
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5843
5843
  payloadHash?: string | undefined;
5844
5844
  }, {
5845
5845
  type: "reconcileResult";
5846
- runId: string;
5847
- timestamp: number;
5848
- schemaVersion: 1;
5849
- eventId: string;
5850
5846
  payload: {
5851
5847
  capability: "none" | "readOnlyLookup" | "idempotentSubmit";
5852
5848
  decision: "manual" | "replayed" | "completedByIdempotentSubmit" | "freshRetry";
@@ -5858,6 +5854,10 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5858
5854
  bytes: number;
5859
5855
  schemaVersion: number;
5860
5856
  };
5857
+ timestamp: number;
5858
+ runId: string;
5859
+ schemaVersion: 1;
5860
+ eventId: string;
5861
5861
  actor: "worker" | "scheduler" | "hostExecutor" | "human" | "supervisor" | "system";
5862
5862
  payloadHash?: string | undefined;
5863
5863
  }>]>;