@trigger.dev/core 0.0.0-v3-prerelease-20241009142012 → 0.0.0-v3-prerelease-20241012123509

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.
@@ -28,15 +28,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
28
28
  number: number;
29
29
  status: string;
30
30
  id: string;
31
- startedAt: Date;
32
31
  backgroundWorkerId: string;
32
+ startedAt: Date;
33
33
  backgroundWorkerTaskId: string;
34
34
  }, {
35
35
  number: number;
36
36
  status: string;
37
37
  id: string;
38
- startedAt: Date;
39
38
  backgroundWorkerId: string;
39
+ startedAt: Date;
40
40
  backgroundWorkerTaskId: string;
41
41
  }>;
42
42
  run: z.ZodObject<{
@@ -58,13 +58,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
58
58
  maxDuration: z.ZodOptional<z.ZodNumber>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  id: string;
61
+ isTest: boolean;
61
62
  payload: string;
63
+ durationMs: number;
64
+ startedAt: Date;
62
65
  payloadType: string;
63
66
  tags: string[];
64
- isTest: boolean;
65
67
  createdAt: Date;
66
- startedAt: Date;
67
- durationMs: number;
68
68
  costInCents: number;
69
69
  baseCostInCents: number;
70
70
  context?: any;
@@ -156,17 +156,22 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
156
156
  memory: z.ZodNumber;
157
157
  centsPerMs: z.ZodNumber;
158
158
  }, "strip", z.ZodTypeAny, {
159
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
159
160
  cpu: number;
160
161
  memory: number;
161
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
162
162
  centsPerMs: number;
163
163
  }, {
164
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
164
165
  cpu: number;
165
166
  memory: number;
166
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
167
167
  centsPerMs: number;
168
168
  }>>;
169
169
  }, "strip", z.ZodTypeAny, {
170
+ environment: {
171
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
172
+ id: string;
173
+ slug: string;
174
+ };
170
175
  task: {
171
176
  id: string;
172
177
  filePath: string;
@@ -176,19 +181,19 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
176
181
  number: number;
177
182
  status: string;
178
183
  id: string;
179
- startedAt: Date;
180
184
  backgroundWorkerId: string;
185
+ startedAt: Date;
181
186
  backgroundWorkerTaskId: string;
182
187
  };
183
188
  run: {
184
189
  id: string;
190
+ isTest: boolean;
185
191
  payload: string;
192
+ durationMs: number;
193
+ startedAt: Date;
186
194
  payloadType: string;
187
195
  tags: string[];
188
- isTest: boolean;
189
196
  createdAt: Date;
190
- startedAt: Date;
191
- durationMs: number;
192
197
  costInCents: number;
193
198
  baseCostInCents: number;
194
199
  context?: any;
@@ -202,11 +207,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
202
207
  name: string;
203
208
  id: string;
204
209
  };
205
- environment: {
206
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
207
- id: string;
208
- slug: string;
209
- };
210
210
  organization: {
211
211
  name: string;
212
212
  id: string;
@@ -222,12 +222,17 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
222
222
  id: string;
223
223
  } | undefined;
224
224
  machine?: {
225
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
225
226
  cpu: number;
226
227
  memory: number;
227
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
228
228
  centsPerMs: number;
229
229
  } | undefined;
230
230
  }, {
231
+ environment: {
232
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
233
+ id: string;
234
+ slug: string;
235
+ };
231
236
  task: {
232
237
  id: string;
233
238
  filePath: string;
@@ -237,8 +242,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
237
242
  number: number;
238
243
  status: string;
239
244
  id: string;
240
- startedAt: Date;
241
245
  backgroundWorkerId: string;
246
+ startedAt: Date;
242
247
  backgroundWorkerTaskId: string;
243
248
  };
244
249
  run: {
@@ -263,11 +268,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
263
268
  name: string;
264
269
  id: string;
265
270
  };
266
- environment: {
267
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
268
- id: string;
269
- slug: string;
270
- };
271
271
  organization: {
272
272
  name: string;
273
273
  id: string;
@@ -283,9 +283,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
283
283
  id: string;
284
284
  } | undefined;
285
285
  machine?: {
286
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
286
287
  cpu: number;
287
288
  memory: number;
288
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
289
289
  centsPerMs: number;
290
290
  } | undefined;
291
291
  }>;
@@ -294,6 +294,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
294
294
  }, "strip", z.ZodTypeAny, {
295
295
  traceContext: Record<string, unknown>;
296
296
  execution: {
297
+ environment: {
298
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
299
+ id: string;
300
+ slug: string;
301
+ };
297
302
  task: {
298
303
  id: string;
299
304
  filePath: string;
@@ -303,19 +308,19 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
303
308
  number: number;
304
309
  status: string;
305
310
  id: string;
306
- startedAt: Date;
307
311
  backgroundWorkerId: string;
312
+ startedAt: Date;
308
313
  backgroundWorkerTaskId: string;
309
314
  };
310
315
  run: {
311
316
  id: string;
317
+ isTest: boolean;
312
318
  payload: string;
319
+ durationMs: number;
320
+ startedAt: Date;
313
321
  payloadType: string;
314
322
  tags: string[];
315
- isTest: boolean;
316
323
  createdAt: Date;
317
- startedAt: Date;
318
- durationMs: number;
319
324
  costInCents: number;
320
325
  baseCostInCents: number;
321
326
  context?: any;
@@ -329,11 +334,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
329
334
  name: string;
330
335
  id: string;
331
336
  };
332
- environment: {
333
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
334
- id: string;
335
- slug: string;
336
- };
337
337
  organization: {
338
338
  name: string;
339
339
  id: string;
@@ -349,9 +349,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
349
349
  id: string;
350
350
  } | undefined;
351
351
  machine?: {
352
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
352
353
  cpu: number;
353
354
  memory: number;
354
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
355
355
  centsPerMs: number;
356
356
  } | undefined;
357
357
  };
@@ -359,6 +359,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
359
359
  }, {
360
360
  traceContext: Record<string, unknown>;
361
361
  execution: {
362
+ environment: {
363
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
364
+ id: string;
365
+ slug: string;
366
+ };
362
367
  task: {
363
368
  id: string;
364
369
  filePath: string;
@@ -368,8 +373,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
368
373
  number: number;
369
374
  status: string;
370
375
  id: string;
371
- startedAt: Date;
372
376
  backgroundWorkerId: string;
377
+ startedAt: Date;
373
378
  backgroundWorkerTaskId: string;
374
379
  };
375
380
  run: {
@@ -394,11 +399,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
394
399
  name: string;
395
400
  id: string;
396
401
  };
397
- environment: {
398
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
399
- id: string;
400
- slug: string;
401
- };
402
402
  organization: {
403
403
  name: string;
404
404
  id: string;
@@ -414,9 +414,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
414
414
  id: string;
415
415
  } | undefined;
416
416
  machine?: {
417
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
417
418
  cpu: number;
418
419
  memory: number;
419
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
420
420
  centsPerMs: number;
421
421
  } | undefined;
422
422
  };
@@ -424,6 +424,19 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
424
424
  }>;
425
425
  export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
426
426
  export declare const ProdTaskRunExecution: z.ZodObject<{
427
+ environment: z.ZodObject<{
428
+ id: z.ZodString;
429
+ slug: z.ZodString;
430
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
433
+ id: string;
434
+ slug: string;
435
+ }, {
436
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
437
+ id: string;
438
+ slug: string;
439
+ }>;
427
440
  task: z.ZodObject<{
428
441
  id: z.ZodString;
429
442
  filePath: z.ZodString;
@@ -448,15 +461,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
448
461
  number: number;
449
462
  status: string;
450
463
  id: string;
451
- startedAt: Date;
452
464
  backgroundWorkerId: string;
465
+ startedAt: Date;
453
466
  backgroundWorkerTaskId: string;
454
467
  }, {
455
468
  number: number;
456
469
  status: string;
457
470
  id: string;
458
- startedAt: Date;
459
471
  backgroundWorkerId: string;
472
+ startedAt: Date;
460
473
  backgroundWorkerTaskId: string;
461
474
  }>;
462
475
  run: z.ZodObject<{
@@ -478,13 +491,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
478
491
  maxDuration: z.ZodOptional<z.ZodNumber>;
479
492
  }, "strip", z.ZodTypeAny, {
480
493
  id: string;
494
+ isTest: boolean;
481
495
  payload: string;
496
+ durationMs: number;
497
+ startedAt: Date;
482
498
  payloadType: string;
483
499
  tags: string[];
484
- isTest: boolean;
485
500
  createdAt: Date;
486
- startedAt: Date;
487
- durationMs: number;
488
501
  costInCents: number;
489
502
  baseCostInCents: number;
490
503
  context?: any;
@@ -521,19 +534,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
521
534
  name: string;
522
535
  id: string;
523
536
  }>;
524
- environment: z.ZodObject<{
525
- id: z.ZodString;
526
- slug: z.ZodString;
527
- type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
528
- }, "strip", z.ZodTypeAny, {
529
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
530
- id: string;
531
- slug: string;
532
- }, {
533
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
534
- id: string;
535
- slug: string;
536
- }>;
537
537
  organization: z.ZodObject<{
538
538
  id: z.ZodString;
539
539
  slug: z.ZodString;
@@ -575,12 +575,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
575
575
  contentHash: z.ZodString;
576
576
  version: z.ZodString;
577
577
  }, "strip", z.ZodTypeAny, {
578
- id: string;
579
578
  version: string;
579
+ id: string;
580
580
  contentHash: string;
581
581
  }, {
582
- id: string;
583
582
  version: string;
583
+ id: string;
584
584
  contentHash: string;
585
585
  }>;
586
586
  machine: z.ZodDefault<z.ZodObject<{
@@ -589,17 +589,28 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
589
589
  memory: z.ZodNumber;
590
590
  centsPerMs: z.ZodNumber;
591
591
  }, "strip", z.ZodTypeAny, {
592
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
592
593
  cpu: number;
593
594
  memory: number;
594
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
595
595
  centsPerMs: number;
596
596
  }, {
597
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
597
598
  cpu: number;
598
599
  memory: number;
599
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
600
600
  centsPerMs: number;
601
601
  }>>;
602
602
  }, "strip", z.ZodTypeAny, {
603
+ machine: {
604
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
605
+ cpu: number;
606
+ memory: number;
607
+ centsPerMs: number;
608
+ };
609
+ environment: {
610
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
611
+ id: string;
612
+ slug: string;
613
+ };
603
614
  task: {
604
615
  id: string;
605
616
  filePath: string;
@@ -609,19 +620,19 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
609
620
  number: number;
610
621
  status: string;
611
622
  id: string;
612
- startedAt: Date;
613
623
  backgroundWorkerId: string;
624
+ startedAt: Date;
614
625
  backgroundWorkerTaskId: string;
615
626
  };
616
627
  run: {
617
628
  id: string;
629
+ isTest: boolean;
618
630
  payload: string;
631
+ durationMs: number;
632
+ startedAt: Date;
619
633
  payloadType: string;
620
634
  tags: string[];
621
- isTest: boolean;
622
635
  createdAt: Date;
623
- startedAt: Date;
624
- durationMs: number;
625
636
  costInCents: number;
626
637
  baseCostInCents: number;
627
638
  context?: any;
@@ -635,11 +646,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
635
646
  name: string;
636
647
  id: string;
637
648
  };
638
- environment: {
639
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
640
- id: string;
641
- slug: string;
642
- };
643
649
  organization: {
644
650
  name: string;
645
651
  id: string;
@@ -651,21 +657,20 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
651
657
  slug: string;
652
658
  ref: string;
653
659
  };
654
- machine: {
655
- cpu: number;
656
- memory: number;
657
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
658
- centsPerMs: number;
659
- };
660
660
  worker: {
661
- id: string;
662
661
  version: string;
662
+ id: string;
663
663
  contentHash: string;
664
664
  };
665
665
  batch?: {
666
666
  id: string;
667
667
  } | undefined;
668
668
  }, {
669
+ environment: {
670
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
671
+ id: string;
672
+ slug: string;
673
+ };
669
674
  task: {
670
675
  id: string;
671
676
  filePath: string;
@@ -675,8 +680,8 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
675
680
  number: number;
676
681
  status: string;
677
682
  id: string;
678
- startedAt: Date;
679
683
  backgroundWorkerId: string;
684
+ startedAt: Date;
680
685
  backgroundWorkerTaskId: string;
681
686
  };
682
687
  run: {
@@ -701,11 +706,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
701
706
  name: string;
702
707
  id: string;
703
708
  };
704
- environment: {
705
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
706
- id: string;
707
- slug: string;
708
- };
709
709
  organization: {
710
710
  name: string;
711
711
  id: string;
@@ -718,23 +718,36 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
718
718
  ref: string;
719
719
  };
720
720
  worker: {
721
- id: string;
722
721
  version: string;
722
+ id: string;
723
723
  contentHash: string;
724
724
  };
725
725
  batch?: {
726
726
  id: string;
727
727
  } | undefined;
728
728
  machine?: {
729
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
729
730
  cpu: number;
730
731
  memory: number;
731
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
732
732
  centsPerMs: number;
733
733
  } | undefined;
734
734
  }>;
735
735
  export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
736
736
  export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
737
737
  execution: z.ZodObject<{
738
+ environment: z.ZodObject<{
739
+ id: z.ZodString;
740
+ slug: z.ZodString;
741
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
744
+ id: string;
745
+ slug: string;
746
+ }, {
747
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
748
+ id: string;
749
+ slug: string;
750
+ }>;
738
751
  task: z.ZodObject<{
739
752
  id: z.ZodString;
740
753
  filePath: z.ZodString;
@@ -759,15 +772,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
759
772
  number: number;
760
773
  status: string;
761
774
  id: string;
762
- startedAt: Date;
763
775
  backgroundWorkerId: string;
776
+ startedAt: Date;
764
777
  backgroundWorkerTaskId: string;
765
778
  }, {
766
779
  number: number;
767
780
  status: string;
768
781
  id: string;
769
- startedAt: Date;
770
782
  backgroundWorkerId: string;
783
+ startedAt: Date;
771
784
  backgroundWorkerTaskId: string;
772
785
  }>;
773
786
  run: z.ZodObject<{
@@ -789,13 +802,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
789
802
  maxDuration: z.ZodOptional<z.ZodNumber>;
790
803
  }, "strip", z.ZodTypeAny, {
791
804
  id: string;
805
+ isTest: boolean;
792
806
  payload: string;
807
+ durationMs: number;
808
+ startedAt: Date;
793
809
  payloadType: string;
794
810
  tags: string[];
795
- isTest: boolean;
796
811
  createdAt: Date;
797
- startedAt: Date;
798
- durationMs: number;
799
812
  costInCents: number;
800
813
  baseCostInCents: number;
801
814
  context?: any;
@@ -832,19 +845,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
832
845
  name: string;
833
846
  id: string;
834
847
  }>;
835
- environment: z.ZodObject<{
836
- id: z.ZodString;
837
- slug: z.ZodString;
838
- type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
839
- }, "strip", z.ZodTypeAny, {
840
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
841
- id: string;
842
- slug: string;
843
- }, {
844
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
845
- id: string;
846
- slug: string;
847
- }>;
848
848
  organization: z.ZodObject<{
849
849
  id: z.ZodString;
850
850
  slug: z.ZodString;
@@ -886,12 +886,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
886
886
  contentHash: z.ZodString;
887
887
  version: z.ZodString;
888
888
  }, "strip", z.ZodTypeAny, {
889
- id: string;
890
889
  version: string;
890
+ id: string;
891
891
  contentHash: string;
892
892
  }, {
893
- id: string;
894
893
  version: string;
894
+ id: string;
895
895
  contentHash: string;
896
896
  }>;
897
897
  machine: z.ZodDefault<z.ZodObject<{
@@ -900,17 +900,28 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
900
900
  memory: z.ZodNumber;
901
901
  centsPerMs: z.ZodNumber;
902
902
  }, "strip", z.ZodTypeAny, {
903
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
903
904
  cpu: number;
904
905
  memory: number;
905
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
906
906
  centsPerMs: number;
907
907
  }, {
908
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
908
909
  cpu: number;
909
910
  memory: number;
910
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
911
911
  centsPerMs: number;
912
912
  }>>;
913
913
  }, "strip", z.ZodTypeAny, {
914
+ machine: {
915
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
916
+ cpu: number;
917
+ memory: number;
918
+ centsPerMs: number;
919
+ };
920
+ environment: {
921
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
922
+ id: string;
923
+ slug: string;
924
+ };
914
925
  task: {
915
926
  id: string;
916
927
  filePath: string;
@@ -920,19 +931,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
920
931
  number: number;
921
932
  status: string;
922
933
  id: string;
923
- startedAt: Date;
924
934
  backgroundWorkerId: string;
935
+ startedAt: Date;
925
936
  backgroundWorkerTaskId: string;
926
937
  };
927
938
  run: {
928
939
  id: string;
940
+ isTest: boolean;
929
941
  payload: string;
942
+ durationMs: number;
943
+ startedAt: Date;
930
944
  payloadType: string;
931
945
  tags: string[];
932
- isTest: boolean;
933
946
  createdAt: Date;
934
- startedAt: Date;
935
- durationMs: number;
936
947
  costInCents: number;
937
948
  baseCostInCents: number;
938
949
  context?: any;
@@ -946,11 +957,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
946
957
  name: string;
947
958
  id: string;
948
959
  };
949
- environment: {
950
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
951
- id: string;
952
- slug: string;
953
- };
954
960
  organization: {
955
961
  name: string;
956
962
  id: string;
@@ -962,21 +968,20 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
962
968
  slug: string;
963
969
  ref: string;
964
970
  };
965
- machine: {
966
- cpu: number;
967
- memory: number;
968
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
969
- centsPerMs: number;
970
- };
971
971
  worker: {
972
- id: string;
973
972
  version: string;
973
+ id: string;
974
974
  contentHash: string;
975
975
  };
976
976
  batch?: {
977
977
  id: string;
978
978
  } | undefined;
979
979
  }, {
980
+ environment: {
981
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
982
+ id: string;
983
+ slug: string;
984
+ };
980
985
  task: {
981
986
  id: string;
982
987
  filePath: string;
@@ -986,8 +991,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
986
991
  number: number;
987
992
  status: string;
988
993
  id: string;
989
- startedAt: Date;
990
994
  backgroundWorkerId: string;
995
+ startedAt: Date;
991
996
  backgroundWorkerTaskId: string;
992
997
  };
993
998
  run: {
@@ -1012,11 +1017,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1012
1017
  name: string;
1013
1018
  id: string;
1014
1019
  };
1015
- environment: {
1016
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1017
- id: string;
1018
- slug: string;
1019
- };
1020
1020
  organization: {
1021
1021
  name: string;
1022
1022
  id: string;
@@ -1029,17 +1029,17 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1029
1029
  ref: string;
1030
1030
  };
1031
1031
  worker: {
1032
- id: string;
1033
1032
  version: string;
1033
+ id: string;
1034
1034
  contentHash: string;
1035
1035
  };
1036
1036
  batch?: {
1037
1037
  id: string;
1038
1038
  } | undefined;
1039
1039
  machine?: {
1040
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1040
1041
  cpu: number;
1041
1042
  memory: number;
1042
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1043
1043
  centsPerMs: number;
1044
1044
  } | undefined;
1045
1045
  }>;
@@ -1048,6 +1048,17 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1048
1048
  }, "strip", z.ZodTypeAny, {
1049
1049
  traceContext: Record<string, unknown>;
1050
1050
  execution: {
1051
+ machine: {
1052
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1053
+ cpu: number;
1054
+ memory: number;
1055
+ centsPerMs: number;
1056
+ };
1057
+ environment: {
1058
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1059
+ id: string;
1060
+ slug: string;
1061
+ };
1051
1062
  task: {
1052
1063
  id: string;
1053
1064
  filePath: string;
@@ -1057,19 +1068,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1057
1068
  number: number;
1058
1069
  status: string;
1059
1070
  id: string;
1060
- startedAt: Date;
1061
1071
  backgroundWorkerId: string;
1072
+ startedAt: Date;
1062
1073
  backgroundWorkerTaskId: string;
1063
1074
  };
1064
1075
  run: {
1065
1076
  id: string;
1077
+ isTest: boolean;
1066
1078
  payload: string;
1079
+ durationMs: number;
1080
+ startedAt: Date;
1067
1081
  payloadType: string;
1068
1082
  tags: string[];
1069
- isTest: boolean;
1070
1083
  createdAt: Date;
1071
- startedAt: Date;
1072
- durationMs: number;
1073
1084
  costInCents: number;
1074
1085
  baseCostInCents: number;
1075
1086
  context?: any;
@@ -1083,11 +1094,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1083
1094
  name: string;
1084
1095
  id: string;
1085
1096
  };
1086
- environment: {
1087
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1088
- id: string;
1089
- slug: string;
1090
- };
1091
1097
  organization: {
1092
1098
  name: string;
1093
1099
  id: string;
@@ -1099,15 +1105,9 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1099
1105
  slug: string;
1100
1106
  ref: string;
1101
1107
  };
1102
- machine: {
1103
- cpu: number;
1104
- memory: number;
1105
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1106
- centsPerMs: number;
1107
- };
1108
1108
  worker: {
1109
- id: string;
1110
1109
  version: string;
1110
+ id: string;
1111
1111
  contentHash: string;
1112
1112
  };
1113
1113
  batch?: {
@@ -1118,6 +1118,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1118
1118
  }, {
1119
1119
  traceContext: Record<string, unknown>;
1120
1120
  execution: {
1121
+ environment: {
1122
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1123
+ id: string;
1124
+ slug: string;
1125
+ };
1121
1126
  task: {
1122
1127
  id: string;
1123
1128
  filePath: string;
@@ -1127,8 +1132,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1127
1132
  number: number;
1128
1133
  status: string;
1129
1134
  id: string;
1130
- startedAt: Date;
1131
1135
  backgroundWorkerId: string;
1136
+ startedAt: Date;
1132
1137
  backgroundWorkerTaskId: string;
1133
1138
  };
1134
1139
  run: {
@@ -1153,11 +1158,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1153
1158
  name: string;
1154
1159
  id: string;
1155
1160
  };
1156
- environment: {
1157
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1158
- id: string;
1159
- slug: string;
1160
- };
1161
1161
  organization: {
1162
1162
  name: string;
1163
1163
  id: string;
@@ -1170,17 +1170,17 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1170
1170
  ref: string;
1171
1171
  };
1172
1172
  worker: {
1173
- id: string;
1174
1173
  version: string;
1174
+ id: string;
1175
1175
  contentHash: string;
1176
1176
  };
1177
1177
  batch?: {
1178
1178
  id: string;
1179
1179
  } | undefined;
1180
1180
  machine?: {
1181
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1181
1182
  cpu: number;
1182
1183
  memory: number;
1183
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1184
1184
  centsPerMs: number;
1185
1185
  } | undefined;
1186
1186
  };
@@ -1926,12 +1926,12 @@ export declare const TaskMetadata: z.ZodObject<{
1926
1926
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
1927
1927
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1928
1928
  }, "strip", z.ZodTypeAny, {
1929
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1930
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1929
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1930
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
1931
1931
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1932
1932
  }, {
1933
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1934
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1933
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1934
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
1935
1935
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1936
1936
  }>>;
1937
1937
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -1993,8 +1993,8 @@ export declare const TaskMetadata: z.ZodObject<{
1993
1993
  randomize?: boolean | undefined;
1994
1994
  } | undefined;
1995
1995
  machine?: {
1996
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1997
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1996
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1997
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
1998
1998
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1999
1999
  } | undefined;
2000
2000
  triggerSource?: string | undefined;
@@ -2050,8 +2050,8 @@ export declare const TaskMetadata: z.ZodObject<{
2050
2050
  randomize?: boolean | undefined;
2051
2051
  } | undefined;
2052
2052
  machine?: {
2053
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2054
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2053
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2054
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2055
2055
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2056
2056
  } | undefined;
2057
2057
  triggerSource?: string | undefined;
@@ -2347,12 +2347,12 @@ export declare const TaskManifest: z.ZodObject<{
2347
2347
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
2348
2348
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2349
2349
  }, "strip", z.ZodTypeAny, {
2350
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2351
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2350
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2351
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2352
2352
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2353
2353
  }, {
2354
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2355
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2354
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2355
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2356
2356
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2357
2357
  }>>;
2358
2358
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -2417,8 +2417,8 @@ export declare const TaskManifest: z.ZodObject<{
2417
2417
  randomize?: boolean | undefined;
2418
2418
  } | undefined;
2419
2419
  machine?: {
2420
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2421
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2420
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2421
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2422
2422
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2423
2423
  } | undefined;
2424
2424
  triggerSource?: string | undefined;
@@ -2477,8 +2477,8 @@ export declare const TaskManifest: z.ZodObject<{
2477
2477
  randomize?: boolean | undefined;
2478
2478
  } | undefined;
2479
2479
  machine?: {
2480
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2481
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2480
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2481
+ memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2482
2482
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2483
2483
  } | undefined;
2484
2484
  triggerSource?: string | undefined;
@@ -2616,16 +2616,16 @@ export declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
2616
2616
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2617
2617
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2618
2618
  }, "strip", z.ZodTypeAny, {
2619
- isTest: boolean;
2620
2619
  runId: string;
2621
2620
  messageId: string;
2621
+ isTest: boolean;
2622
2622
  traceContext: Record<string, unknown>;
2623
2623
  attemptCount?: number | undefined;
2624
2624
  environment?: Record<string, string> | undefined;
2625
2625
  }, {
2626
- isTest: boolean;
2627
2626
  runId: string;
2628
2627
  messageId: string;
2628
+ isTest: boolean;
2629
2629
  traceContext: Record<string, unknown>;
2630
2630
  attemptCount?: number | undefined;
2631
2631
  environment?: Record<string, string> | undefined;