@trigger.dev/core 4.0.0-v4-beta.12 → 4.0.0-v4-beta.14

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 (86) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +3 -2
  2. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  3. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +60 -0
  4. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +9 -0
  5. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  6. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +434 -3
  7. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +16 -7
  8. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  9. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +59 -0
  10. package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -0
  11. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  12. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +410 -3
  13. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +2 -1
  14. package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
  15. package/dist/commonjs/v3/runtime/{managedRuntimeManager.d.ts → sharedRuntimeManager.d.ts} +13 -6
  16. package/dist/commonjs/v3/runtime/sharedRuntimeManager.js +276 -0
  17. package/dist/commonjs/v3/runtime/sharedRuntimeManager.js.map +1 -0
  18. package/dist/commonjs/v3/schemas/api.d.ts +22 -0
  19. package/dist/commonjs/v3/schemas/api.js +3 -0
  20. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  21. package/dist/commonjs/v3/schemas/checkpoints.d.ts +9 -4
  22. package/dist/commonjs/v3/schemas/messages.d.ts +228 -3814
  23. package/dist/commonjs/v3/schemas/messages.js +9 -54
  24. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  25. package/dist/commonjs/v3/schemas/runEngine.d.ts +30 -0
  26. package/dist/commonjs/v3/schemas/runEngine.js +1 -0
  27. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  28. package/dist/commonjs/v3/schemas/schemas.d.ts +0 -23
  29. package/dist/commonjs/v3/schemas/schemas.js +1 -12
  30. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  31. package/dist/commonjs/v3/serverOnly/httpServer.d.ts +1 -0
  32. package/dist/commonjs/v3/serverOnly/httpServer.js +12 -2
  33. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  34. package/dist/commonjs/v3/utils/interval.d.ts +3 -1
  35. package/dist/commonjs/v3/utils/interval.js +5 -1
  36. package/dist/commonjs/v3/utils/interval.js.map +1 -1
  37. package/dist/commonjs/v3/workers/index.d.ts +1 -1
  38. package/dist/commonjs/v3/workers/index.js +3 -3
  39. package/dist/commonjs/v3/workers/index.js.map +1 -1
  40. package/dist/commonjs/version.js +1 -1
  41. package/dist/esm/v3/apiClient/index.d.ts +3 -2
  42. package/dist/esm/v3/apiClient/index.js +1 -1
  43. package/dist/esm/v3/apiClient/index.js.map +1 -1
  44. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +60 -0
  45. package/dist/esm/v3/runEngineWorker/supervisor/http.js +10 -1
  46. package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
  47. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +434 -3
  48. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +15 -6
  49. package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  50. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +59 -0
  51. package/dist/esm/v3/runEngineWorker/workload/http.js +9 -1
  52. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  53. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +410 -3
  54. package/dist/esm/v3/runEngineWorker/workload/schemas.js +2 -1
  55. package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
  56. package/dist/esm/v3/runtime/{managedRuntimeManager.d.ts → sharedRuntimeManager.d.ts} +13 -6
  57. package/dist/esm/v3/runtime/sharedRuntimeManager.js +272 -0
  58. package/dist/esm/v3/runtime/sharedRuntimeManager.js.map +1 -0
  59. package/dist/esm/v3/schemas/api.d.ts +22 -0
  60. package/dist/esm/v3/schemas/api.js +3 -0
  61. package/dist/esm/v3/schemas/api.js.map +1 -1
  62. package/dist/esm/v3/schemas/checkpoints.d.ts +9 -4
  63. package/dist/esm/v3/schemas/messages.d.ts +228 -3814
  64. package/dist/esm/v3/schemas/messages.js +10 -55
  65. package/dist/esm/v3/schemas/messages.js.map +1 -1
  66. package/dist/esm/v3/schemas/runEngine.d.ts +30 -0
  67. package/dist/esm/v3/schemas/runEngine.js +1 -0
  68. package/dist/esm/v3/schemas/runEngine.js.map +1 -1
  69. package/dist/esm/v3/schemas/schemas.d.ts +0 -23
  70. package/dist/esm/v3/schemas/schemas.js +0 -11
  71. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  72. package/dist/esm/v3/serverOnly/httpServer.d.ts +1 -0
  73. package/dist/esm/v3/serverOnly/httpServer.js +12 -2
  74. package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
  75. package/dist/esm/v3/utils/interval.d.ts +3 -1
  76. package/dist/esm/v3/utils/interval.js +5 -1
  77. package/dist/esm/v3/utils/interval.js.map +1 -1
  78. package/dist/esm/v3/workers/index.d.ts +1 -1
  79. package/dist/esm/v3/workers/index.js +1 -1
  80. package/dist/esm/v3/workers/index.js.map +1 -1
  81. package/dist/esm/version.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/commonjs/v3/runtime/managedRuntimeManager.js +0 -189
  84. package/dist/commonjs/v3/runtime/managedRuntimeManager.js.map +0 -1
  85. package/dist/esm/v3/runtime/managedRuntimeManager.js +0 -185
  86. package/dist/esm/v3/runtime/managedRuntimeManager.js.map +0 -1
@@ -110,13 +110,16 @@ export declare const WorkerApiContinueRunExecutionRequestBody: z.ZodObject<{
110
110
  friendlyId: z.ZodString;
111
111
  executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
112
112
  description: z.ZodString;
113
+ createdAt: z.ZodDate;
113
114
  }, "strip", z.ZodTypeAny, {
114
115
  id: string;
116
+ createdAt: Date;
115
117
  description: string;
116
118
  friendlyId: string;
117
119
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
118
120
  }, {
119
121
  id: string;
122
+ createdAt: Date;
120
123
  description: string;
121
124
  friendlyId: string;
122
125
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -146,6 +149,7 @@ export declare const WorkerApiContinueRunExecutionRequestBody: z.ZodObject<{
146
149
  };
147
150
  snapshot: {
148
151
  id: string;
152
+ createdAt: Date;
149
153
  description: string;
150
154
  friendlyId: string;
151
155
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -159,6 +163,7 @@ export declare const WorkerApiContinueRunExecutionRequestBody: z.ZodObject<{
159
163
  };
160
164
  snapshot: {
161
165
  id: string;
166
+ createdAt: Date;
162
167
  description: string;
163
168
  friendlyId: string;
164
169
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -232,13 +237,16 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
232
237
  friendlyId: z.ZodString;
233
238
  executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
234
239
  description: z.ZodString;
240
+ createdAt: z.ZodDate;
235
241
  }, "strip", z.ZodTypeAny, {
236
242
  id: string;
243
+ createdAt: Date;
237
244
  description: string;
238
245
  friendlyId: string;
239
246
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
240
247
  }, {
241
248
  id: string;
249
+ createdAt: Date;
242
250
  description: string;
243
251
  friendlyId: string;
244
252
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -485,6 +493,7 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
485
493
  };
486
494
  snapshot: {
487
495
  id: string;
496
+ createdAt: Date;
488
497
  description: string;
489
498
  friendlyId: string;
490
499
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -559,6 +568,7 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
559
568
  };
560
569
  snapshot: {
561
570
  id: string;
571
+ createdAt: Date;
562
572
  description: string;
563
573
  friendlyId: string;
564
574
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -640,13 +650,16 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
640
650
  friendlyId: z.ZodString;
641
651
  executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
642
652
  description: z.ZodString;
653
+ createdAt: z.ZodDate;
643
654
  }, "strip", z.ZodTypeAny, {
644
655
  id: string;
656
+ createdAt: Date;
645
657
  description: string;
646
658
  friendlyId: string;
647
659
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
648
660
  }, {
649
661
  id: string;
662
+ createdAt: Date;
650
663
  description: string;
651
664
  friendlyId: string;
652
665
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -676,6 +689,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
676
689
  };
677
690
  snapshot: {
678
691
  id: string;
692
+ createdAt: Date;
679
693
  description: string;
680
694
  friendlyId: string;
681
695
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -689,6 +703,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
689
703
  };
690
704
  snapshot: {
691
705
  id: string;
706
+ createdAt: Date;
692
707
  description: string;
693
708
  friendlyId: string;
694
709
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2667,13 +2682,16 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
2667
2682
  friendlyId: z.ZodString;
2668
2683
  executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
2669
2684
  description: z.ZodString;
2685
+ createdAt: z.ZodDate;
2670
2686
  }, "strip", z.ZodTypeAny, {
2671
2687
  id: string;
2688
+ createdAt: Date;
2672
2689
  description: string;
2673
2690
  friendlyId: string;
2674
2691
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
2675
2692
  }, {
2676
2693
  id: string;
2694
+ createdAt: Date;
2677
2695
  description: string;
2678
2696
  friendlyId: string;
2679
2697
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2703,6 +2721,7 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
2703
2721
  };
2704
2722
  snapshot: {
2705
2723
  id: string;
2724
+ createdAt: Date;
2706
2725
  description: string;
2707
2726
  friendlyId: string;
2708
2727
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2716,6 +2735,7 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
2716
2735
  };
2717
2736
  snapshot: {
2718
2737
  id: string;
2738
+ createdAt: Date;
2719
2739
  description: string;
2720
2740
  friendlyId: string;
2721
2741
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2733,6 +2753,7 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
2733
2753
  };
2734
2754
  snapshot: {
2735
2755
  id: string;
2756
+ createdAt: Date;
2736
2757
  description: string;
2737
2758
  friendlyId: string;
2738
2759
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2750,6 +2771,7 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
2750
2771
  };
2751
2772
  snapshot: {
2752
2773
  id: string;
2774
+ createdAt: Date;
2753
2775
  description: string;
2754
2776
  friendlyId: string;
2755
2777
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2765,13 +2787,16 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
2765
2787
  friendlyId: z.ZodString;
2766
2788
  executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
2767
2789
  description: z.ZodString;
2790
+ createdAt: z.ZodDate;
2768
2791
  }, "strip", z.ZodTypeAny, {
2769
2792
  id: string;
2793
+ createdAt: Date;
2770
2794
  description: string;
2771
2795
  friendlyId: string;
2772
2796
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
2773
2797
  }, {
2774
2798
  id: string;
2799
+ createdAt: Date;
2775
2800
  description: string;
2776
2801
  friendlyId: string;
2777
2802
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2931,6 +2956,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
2931
2956
  };
2932
2957
  snapshot: {
2933
2958
  id: string;
2959
+ createdAt: Date;
2934
2960
  description: string;
2935
2961
  friendlyId: string;
2936
2962
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -2981,6 +3007,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
2981
3007
  };
2982
3008
  snapshot: {
2983
3009
  id: string;
3010
+ createdAt: Date;
2984
3011
  description: string;
2985
3012
  friendlyId: string;
2986
3013
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -3033,6 +3060,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3033
3060
  };
3034
3061
  snapshot: {
3035
3062
  id: string;
3063
+ createdAt: Date;
3036
3064
  description: string;
3037
3065
  friendlyId: string;
3038
3066
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -3085,6 +3113,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3085
3113
  };
3086
3114
  snapshot: {
3087
3115
  id: string;
3116
+ createdAt: Date;
3088
3117
  description: string;
3089
3118
  friendlyId: string;
3090
3119
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -3135,13 +3164,16 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3135
3164
  friendlyId: z.ZodString;
3136
3165
  executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
3137
3166
  description: z.ZodString;
3167
+ createdAt: z.ZodDate;
3138
3168
  }, "strip", z.ZodTypeAny, {
3139
3169
  id: string;
3170
+ createdAt: Date;
3140
3171
  description: string;
3141
3172
  friendlyId: string;
3142
3173
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3143
3174
  }, {
3144
3175
  id: string;
3176
+ createdAt: Date;
3145
3177
  description: string;
3146
3178
  friendlyId: string;
3147
3179
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -3388,6 +3420,7 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3388
3420
  };
3389
3421
  snapshot: {
3390
3422
  id: string;
3423
+ createdAt: Date;
3391
3424
  description: string;
3392
3425
  friendlyId: string;
3393
3426
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -3462,6 +3495,7 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3462
3495
  };
3463
3496
  snapshot: {
3464
3497
  id: string;
3498
+ createdAt: Date;
3465
3499
  description: string;
3466
3500
  friendlyId: string;
3467
3501
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
@@ -3510,18 +3544,37 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3510
3544
  image?: string | undefined;
3511
3545
  }>, "many">;
3512
3546
  export type WorkerApiDequeueFromVersionResponseBody = z.infer<typeof WorkerApiDequeueFromVersionResponseBody>;
3547
+ export declare const DebugLogPropertiesValue: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>;
3548
+ export declare const DebugLogProperties: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>>>;
3549
+ export type DebugLogProperties = z.infer<typeof DebugLogProperties>;
3550
+ export declare const DebugLogPropertiesInput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3551
+ export type DebugLogPropertiesInput = z.infer<typeof DebugLogPropertiesInput>;
3552
+ export declare const WorkerApiDebugLogBodyInput: z.ZodObject<{
3553
+ time: z.ZodDate;
3554
+ message: z.ZodString;
3555
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3556
+ }, "strip", z.ZodTypeAny, {
3557
+ message: string;
3558
+ time: Date;
3559
+ properties?: Record<string, unknown> | undefined;
3560
+ }, {
3561
+ message: string;
3562
+ time: Date;
3563
+ properties?: Record<string, unknown> | undefined;
3564
+ }>;
3565
+ export type WorkerApiDebugLogBodyInput = z.infer<typeof WorkerApiDebugLogBodyInput>;
3513
3566
  export declare const WorkerApiDebugLogBody: z.ZodObject<{
3514
3567
  time: z.ZodDate;
3515
3568
  message: z.ZodString;
3516
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodNullable<z.ZodString>, "many">, z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">, z.ZodArray<z.ZodNullable<z.ZodBoolean>, "many">]>>>>;
3569
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>>>>;
3517
3570
  }, "strip", z.ZodTypeAny, {
3518
3571
  message: string;
3519
3572
  time: Date;
3520
- properties?: Record<string, string | number | boolean | (string | null)[] | (number | null)[] | (boolean | null)[] | undefined> | undefined;
3573
+ properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
3521
3574
  }, {
3522
3575
  message: string;
3523
3576
  time: Date;
3524
- properties?: Record<string, string | number | boolean | (string | null)[] | (number | null)[] | (boolean | null)[] | undefined> | undefined;
3577
+ properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
3525
3578
  }>;
3526
3579
  export type WorkerApiDebugLogBody = z.infer<typeof WorkerApiDebugLogBody>;
3527
3580
  export declare const WorkerApiSuspendCompletionResponseBody: z.ZodObject<{
@@ -3535,3 +3588,381 @@ export declare const WorkerApiSuspendCompletionResponseBody: z.ZodObject<{
3535
3588
  error?: string | undefined;
3536
3589
  }>;
3537
3590
  export type WorkerApiSuspendCompletionResponseBody = z.infer<typeof WorkerApiSuspendCompletionResponseBody>;
3591
+ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
3592
+ snapshots: z.ZodArray<z.ZodObject<{
3593
+ version: z.ZodLiteral<"1">;
3594
+ snapshot: z.ZodObject<{
3595
+ id: z.ZodString;
3596
+ friendlyId: z.ZodString;
3597
+ executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
3598
+ description: z.ZodString;
3599
+ createdAt: z.ZodDate;
3600
+ }, "strip", z.ZodTypeAny, {
3601
+ id: string;
3602
+ createdAt: Date;
3603
+ description: string;
3604
+ friendlyId: string;
3605
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3606
+ }, {
3607
+ id: string;
3608
+ createdAt: Date;
3609
+ description: string;
3610
+ friendlyId: string;
3611
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3612
+ }>;
3613
+ run: z.ZodObject<{
3614
+ id: z.ZodString;
3615
+ friendlyId: z.ZodString;
3616
+ status: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunStatus]>;
3617
+ attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3618
+ }, "strip", z.ZodTypeAny, {
3619
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3620
+ id: string;
3621
+ friendlyId: string;
3622
+ attemptNumber?: number | null | undefined;
3623
+ }, {
3624
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3625
+ id: string;
3626
+ friendlyId: string;
3627
+ attemptNumber?: number | null | undefined;
3628
+ }>;
3629
+ batch: z.ZodOptional<z.ZodObject<{
3630
+ id: z.ZodString;
3631
+ friendlyId: z.ZodString;
3632
+ }, "strip", z.ZodTypeAny, {
3633
+ id: string;
3634
+ friendlyId: string;
3635
+ }, {
3636
+ id: string;
3637
+ friendlyId: string;
3638
+ }>>;
3639
+ checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
3640
+ type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
3641
+ location: z.ZodString;
3642
+ imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3643
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3644
+ }, {
3645
+ id: z.ZodString;
3646
+ friendlyId: z.ZodString;
3647
+ }>, "strip", z.ZodTypeAny, {
3648
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3649
+ id: string;
3650
+ friendlyId: string;
3651
+ location: string;
3652
+ imageRef?: string | null | undefined;
3653
+ reason?: string | null | undefined;
3654
+ }, {
3655
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3656
+ id: string;
3657
+ friendlyId: string;
3658
+ location: string;
3659
+ imageRef?: string | null | undefined;
3660
+ reason?: string | null | undefined;
3661
+ }>>;
3662
+ completedWaitpoints: z.ZodArray<z.ZodObject<{
3663
+ id: z.ZodString;
3664
+ index: z.ZodOptional<z.ZodNumber>;
3665
+ friendlyId: z.ZodString;
3666
+ type: z.ZodEnum<[import("../../schemas/runEngine.js").WaitpointType]>;
3667
+ completedAt: z.ZodDate;
3668
+ idempotencyKey: z.ZodOptional<z.ZodString>;
3669
+ completedByTaskRun: z.ZodOptional<z.ZodObject<{
3670
+ id: z.ZodString;
3671
+ friendlyId: z.ZodString;
3672
+ batch: z.ZodOptional<z.ZodObject<{
3673
+ id: z.ZodString;
3674
+ friendlyId: z.ZodString;
3675
+ }, "strip", z.ZodTypeAny, {
3676
+ id: string;
3677
+ friendlyId: string;
3678
+ }, {
3679
+ id: string;
3680
+ friendlyId: string;
3681
+ }>>;
3682
+ }, "strip", z.ZodTypeAny, {
3683
+ id: string;
3684
+ friendlyId: string;
3685
+ batch?: {
3686
+ id: string;
3687
+ friendlyId: string;
3688
+ } | undefined;
3689
+ }, {
3690
+ id: string;
3691
+ friendlyId: string;
3692
+ batch?: {
3693
+ id: string;
3694
+ friendlyId: string;
3695
+ } | undefined;
3696
+ }>>;
3697
+ completedAfter: z.ZodOptional<z.ZodDate>;
3698
+ completedByBatch: z.ZodOptional<z.ZodObject<{
3699
+ id: z.ZodString;
3700
+ friendlyId: z.ZodString;
3701
+ }, "strip", z.ZodTypeAny, {
3702
+ id: string;
3703
+ friendlyId: string;
3704
+ }, {
3705
+ id: string;
3706
+ friendlyId: string;
3707
+ }>>;
3708
+ output: z.ZodOptional<z.ZodString>;
3709
+ outputType: z.ZodOptional<z.ZodString>;
3710
+ outputIsError: z.ZodBoolean;
3711
+ }, "strip", z.ZodTypeAny, {
3712
+ type: import("../../schemas/runEngine.js").WaitpointType;
3713
+ id: string;
3714
+ completedAt: Date;
3715
+ friendlyId: string;
3716
+ outputIsError: boolean;
3717
+ idempotencyKey?: string | undefined;
3718
+ output?: string | undefined;
3719
+ outputType?: string | undefined;
3720
+ index?: number | undefined;
3721
+ completedByTaskRun?: {
3722
+ id: string;
3723
+ friendlyId: string;
3724
+ batch?: {
3725
+ id: string;
3726
+ friendlyId: string;
3727
+ } | undefined;
3728
+ } | undefined;
3729
+ completedAfter?: Date | undefined;
3730
+ completedByBatch?: {
3731
+ id: string;
3732
+ friendlyId: string;
3733
+ } | undefined;
3734
+ }, {
3735
+ type: import("../../schemas/runEngine.js").WaitpointType;
3736
+ id: string;
3737
+ completedAt: Date;
3738
+ friendlyId: string;
3739
+ outputIsError: boolean;
3740
+ idempotencyKey?: string | undefined;
3741
+ output?: string | undefined;
3742
+ outputType?: string | undefined;
3743
+ index?: number | undefined;
3744
+ completedByTaskRun?: {
3745
+ id: string;
3746
+ friendlyId: string;
3747
+ batch?: {
3748
+ id: string;
3749
+ friendlyId: string;
3750
+ } | undefined;
3751
+ } | undefined;
3752
+ completedAfter?: Date | undefined;
3753
+ completedByBatch?: {
3754
+ id: string;
3755
+ friendlyId: string;
3756
+ } | undefined;
3757
+ }>, "many">;
3758
+ }, "strip", z.ZodTypeAny, {
3759
+ version: "1";
3760
+ run: {
3761
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3762
+ id: string;
3763
+ friendlyId: string;
3764
+ attemptNumber?: number | null | undefined;
3765
+ };
3766
+ snapshot: {
3767
+ id: string;
3768
+ createdAt: Date;
3769
+ description: string;
3770
+ friendlyId: string;
3771
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3772
+ };
3773
+ completedWaitpoints: {
3774
+ type: import("../../schemas/runEngine.js").WaitpointType;
3775
+ id: string;
3776
+ completedAt: Date;
3777
+ friendlyId: string;
3778
+ outputIsError: boolean;
3779
+ idempotencyKey?: string | undefined;
3780
+ output?: string | undefined;
3781
+ outputType?: string | undefined;
3782
+ index?: number | undefined;
3783
+ completedByTaskRun?: {
3784
+ id: string;
3785
+ friendlyId: string;
3786
+ batch?: {
3787
+ id: string;
3788
+ friendlyId: string;
3789
+ } | undefined;
3790
+ } | undefined;
3791
+ completedAfter?: Date | undefined;
3792
+ completedByBatch?: {
3793
+ id: string;
3794
+ friendlyId: string;
3795
+ } | undefined;
3796
+ }[];
3797
+ batch?: {
3798
+ id: string;
3799
+ friendlyId: string;
3800
+ } | undefined;
3801
+ checkpoint?: {
3802
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3803
+ id: string;
3804
+ friendlyId: string;
3805
+ location: string;
3806
+ imageRef?: string | null | undefined;
3807
+ reason?: string | null | undefined;
3808
+ } | undefined;
3809
+ }, {
3810
+ version: "1";
3811
+ run: {
3812
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3813
+ id: string;
3814
+ friendlyId: string;
3815
+ attemptNumber?: number | null | undefined;
3816
+ };
3817
+ snapshot: {
3818
+ id: string;
3819
+ createdAt: Date;
3820
+ description: string;
3821
+ friendlyId: string;
3822
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3823
+ };
3824
+ completedWaitpoints: {
3825
+ type: import("../../schemas/runEngine.js").WaitpointType;
3826
+ id: string;
3827
+ completedAt: Date;
3828
+ friendlyId: string;
3829
+ outputIsError: boolean;
3830
+ idempotencyKey?: string | undefined;
3831
+ output?: string | undefined;
3832
+ outputType?: string | undefined;
3833
+ index?: number | undefined;
3834
+ completedByTaskRun?: {
3835
+ id: string;
3836
+ friendlyId: string;
3837
+ batch?: {
3838
+ id: string;
3839
+ friendlyId: string;
3840
+ } | undefined;
3841
+ } | undefined;
3842
+ completedAfter?: Date | undefined;
3843
+ completedByBatch?: {
3844
+ id: string;
3845
+ friendlyId: string;
3846
+ } | undefined;
3847
+ }[];
3848
+ batch?: {
3849
+ id: string;
3850
+ friendlyId: string;
3851
+ } | undefined;
3852
+ checkpoint?: {
3853
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3854
+ id: string;
3855
+ friendlyId: string;
3856
+ location: string;
3857
+ imageRef?: string | null | undefined;
3858
+ reason?: string | null | undefined;
3859
+ } | undefined;
3860
+ }>, "many">;
3861
+ }, "strip", z.ZodTypeAny, {
3862
+ snapshots: {
3863
+ version: "1";
3864
+ run: {
3865
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3866
+ id: string;
3867
+ friendlyId: string;
3868
+ attemptNumber?: number | null | undefined;
3869
+ };
3870
+ snapshot: {
3871
+ id: string;
3872
+ createdAt: Date;
3873
+ description: string;
3874
+ friendlyId: string;
3875
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3876
+ };
3877
+ completedWaitpoints: {
3878
+ type: import("../../schemas/runEngine.js").WaitpointType;
3879
+ id: string;
3880
+ completedAt: Date;
3881
+ friendlyId: string;
3882
+ outputIsError: boolean;
3883
+ idempotencyKey?: string | undefined;
3884
+ output?: string | undefined;
3885
+ outputType?: string | undefined;
3886
+ index?: number | undefined;
3887
+ completedByTaskRun?: {
3888
+ id: string;
3889
+ friendlyId: string;
3890
+ batch?: {
3891
+ id: string;
3892
+ friendlyId: string;
3893
+ } | undefined;
3894
+ } | undefined;
3895
+ completedAfter?: Date | undefined;
3896
+ completedByBatch?: {
3897
+ id: string;
3898
+ friendlyId: string;
3899
+ } | undefined;
3900
+ }[];
3901
+ batch?: {
3902
+ id: string;
3903
+ friendlyId: string;
3904
+ } | undefined;
3905
+ checkpoint?: {
3906
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3907
+ id: string;
3908
+ friendlyId: string;
3909
+ location: string;
3910
+ imageRef?: string | null | undefined;
3911
+ reason?: string | null | undefined;
3912
+ } | undefined;
3913
+ }[];
3914
+ }, {
3915
+ snapshots: {
3916
+ version: "1";
3917
+ run: {
3918
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3919
+ id: string;
3920
+ friendlyId: string;
3921
+ attemptNumber?: number | null | undefined;
3922
+ };
3923
+ snapshot: {
3924
+ id: string;
3925
+ createdAt: Date;
3926
+ description: string;
3927
+ friendlyId: string;
3928
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3929
+ };
3930
+ completedWaitpoints: {
3931
+ type: import("../../schemas/runEngine.js").WaitpointType;
3932
+ id: string;
3933
+ completedAt: Date;
3934
+ friendlyId: string;
3935
+ outputIsError: boolean;
3936
+ idempotencyKey?: string | undefined;
3937
+ output?: string | undefined;
3938
+ outputType?: string | undefined;
3939
+ index?: number | undefined;
3940
+ completedByTaskRun?: {
3941
+ id: string;
3942
+ friendlyId: string;
3943
+ batch?: {
3944
+ id: string;
3945
+ friendlyId: string;
3946
+ } | undefined;
3947
+ } | undefined;
3948
+ completedAfter?: Date | undefined;
3949
+ completedByBatch?: {
3950
+ id: string;
3951
+ friendlyId: string;
3952
+ } | undefined;
3953
+ }[];
3954
+ batch?: {
3955
+ id: string;
3956
+ friendlyId: string;
3957
+ } | undefined;
3958
+ checkpoint?: {
3959
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3960
+ id: string;
3961
+ friendlyId: string;
3962
+ location: string;
3963
+ imageRef?: string | null | undefined;
3964
+ reason?: string | null | undefined;
3965
+ } | undefined;
3966
+ }[];
3967
+ }>;
3968
+ export type WorkerApiRunSnapshotsSinceResponseBody = z.infer<typeof WorkerApiRunSnapshotsSinceResponseBody>;
@@ -67,22 +67,31 @@ export const WorkerApiRunLatestSnapshotResponseBody = z.object({
67
67
  execution: RunExecutionData,
68
68
  });
69
69
  export const WorkerApiDequeueFromVersionResponseBody = DequeuedMessage.array();
70
- const AttributeValue = z.union([
70
+ export const DebugLogPropertiesValue = z.union([
71
71
  z.string(),
72
72
  z.number(),
73
73
  z.boolean(),
74
- z.array(z.string().nullable()),
75
- z.array(z.number().nullable()),
76
- z.array(z.boolean().nullable()),
74
+ z.array(z.string().nullish()),
75
+ z.array(z.number().nullish()),
76
+ z.array(z.boolean().nullish()),
77
77
  ]);
78
- const Attributes = z.record(z.string(), AttributeValue.optional());
78
+ export const DebugLogProperties = z.record(z.string(), DebugLogPropertiesValue.optional());
79
+ export const DebugLogPropertiesInput = z.record(z.string(), z.unknown());
80
+ export const WorkerApiDebugLogBodyInput = z.object({
81
+ time: z.coerce.date(),
82
+ message: z.string(),
83
+ properties: DebugLogPropertiesInput.optional(),
84
+ });
79
85
  export const WorkerApiDebugLogBody = z.object({
80
86
  time: z.coerce.date(),
81
87
  message: z.string(),
82
- properties: Attributes.optional(),
88
+ properties: DebugLogProperties.optional(),
83
89
  });
84
90
  export const WorkerApiSuspendCompletionResponseBody = z.object({
85
91
  success: z.boolean(),
86
92
  error: z.string().optional(),
87
93
  });
94
+ export const WorkerApiRunSnapshotsSinceResponseBody = z.object({
95
+ snapshots: z.array(RunExecutionData),
96
+ });
88
97
  //# sourceMappingURL=schemas.js.map