@trigger.dev/core 0.0.0-v3-prerelease-20241028160720 → 0.0.0-v3-prerelease-20241101212227

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 (41) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +26 -26
  2. package/dist/commonjs/v3/apiClient/index.js +1 -1
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/errors.js +8 -0
  5. package/dist/commonjs/v3/errors.js.map +1 -1
  6. package/dist/commonjs/v3/links.d.ts +3 -0
  7. package/dist/commonjs/v3/links.js +3 -0
  8. package/dist/commonjs/v3/links.js.map +1 -1
  9. package/dist/commonjs/v3/schemas/api.d.ts +109 -109
  10. package/dist/commonjs/v3/schemas/build.d.ts +50 -50
  11. package/dist/commonjs/v3/schemas/common.d.ts +124 -124
  12. package/dist/commonjs/v3/schemas/common.js +1 -0
  13. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  14. package/dist/commonjs/v3/schemas/messages.d.ts +1513 -1513
  15. package/dist/commonjs/v3/schemas/resources.d.ts +20 -20
  16. package/dist/commonjs/v3/schemas/schemas.d.ts +175 -175
  17. package/dist/commonjs/v3/types/tasks.d.ts +1 -0
  18. package/dist/commonjs/v3/workers/taskExecutor.js +4 -2
  19. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  20. package/dist/commonjs/version.js +1 -1
  21. package/dist/esm/v3/apiClient/index.d.ts +26 -26
  22. package/dist/esm/v3/apiClient/index.js +1 -1
  23. package/dist/esm/v3/apiClient/index.js.map +1 -1
  24. package/dist/esm/v3/errors.js +8 -0
  25. package/dist/esm/v3/errors.js.map +1 -1
  26. package/dist/esm/v3/links.d.ts +3 -0
  27. package/dist/esm/v3/links.js +3 -0
  28. package/dist/esm/v3/links.js.map +1 -1
  29. package/dist/esm/v3/schemas/api.d.ts +109 -109
  30. package/dist/esm/v3/schemas/build.d.ts +50 -50
  31. package/dist/esm/v3/schemas/common.d.ts +124 -124
  32. package/dist/esm/v3/schemas/common.js +1 -0
  33. package/dist/esm/v3/schemas/common.js.map +1 -1
  34. package/dist/esm/v3/schemas/messages.d.ts +1513 -1513
  35. package/dist/esm/v3/schemas/resources.d.ts +20 -20
  36. package/dist/esm/v3/schemas/schemas.d.ts +175 -175
  37. package/dist/esm/v3/types/tasks.d.ts +1 -0
  38. package/dist/esm/v3/workers/taskExecutor.js +4 -2
  39. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  40. package/dist/esm/version.js +1 -1
  41. package/package.json +1 -1
@@ -28,15 +28,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
28
28
  number: number;
29
29
  status: string;
30
30
  id: string;
31
- backgroundWorkerId: string;
32
31
  startedAt: Date;
32
+ backgroundWorkerId: string;
33
33
  backgroundWorkerTaskId: string;
34
34
  }, {
35
35
  number: number;
36
36
  status: string;
37
37
  id: string;
38
- backgroundWorkerId: string;
39
38
  startedAt: Date;
39
+ backgroundWorkerId: string;
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;
62
61
  payload: string;
63
- durationMs: number;
64
- startedAt: Date;
65
62
  payloadType: string;
66
63
  tags: string[];
64
+ isTest: boolean;
67
65
  createdAt: Date;
66
+ startedAt: Date;
67
+ durationMs: number;
68
68
  costInCents: number;
69
69
  baseCostInCents: number;
70
70
  context?: any;
@@ -156,22 +156,17 @@ 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";
160
159
  cpu: number;
161
160
  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";
165
164
  cpu: number;
166
165
  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
- };
175
170
  task: {
176
171
  id: string;
177
172
  filePath: string;
@@ -181,19 +176,19 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
181
176
  number: number;
182
177
  status: string;
183
178
  id: string;
184
- backgroundWorkerId: string;
185
179
  startedAt: Date;
180
+ backgroundWorkerId: string;
186
181
  backgroundWorkerTaskId: string;
187
182
  };
188
183
  run: {
189
184
  id: string;
190
- isTest: boolean;
191
185
  payload: string;
192
- durationMs: number;
193
- startedAt: Date;
194
186
  payloadType: string;
195
187
  tags: string[];
188
+ isTest: boolean;
196
189
  createdAt: Date;
190
+ startedAt: Date;
191
+ durationMs: number;
197
192
  costInCents: number;
198
193
  baseCostInCents: number;
199
194
  context?: any;
@@ -207,6 +202,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
207
202
  name: string;
208
203
  id: string;
209
204
  };
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,17 +222,12 @@ 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";
226
225
  cpu: number;
227
226
  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
- };
236
231
  task: {
237
232
  id: string;
238
233
  filePath: string;
@@ -242,8 +237,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
242
237
  number: number;
243
238
  status: string;
244
239
  id: string;
245
- backgroundWorkerId: string;
246
240
  startedAt: Date;
241
+ backgroundWorkerId: string;
247
242
  backgroundWorkerTaskId: string;
248
243
  };
249
244
  run: {
@@ -268,6 +263,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
268
263
  name: string;
269
264
  id: string;
270
265
  };
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";
287
286
  cpu: number;
288
287
  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,11 +294,6 @@ 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
- };
302
297
  task: {
303
298
  id: string;
304
299
  filePath: string;
@@ -308,19 +303,19 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
308
303
  number: number;
309
304
  status: string;
310
305
  id: string;
311
- backgroundWorkerId: string;
312
306
  startedAt: Date;
307
+ backgroundWorkerId: string;
313
308
  backgroundWorkerTaskId: string;
314
309
  };
315
310
  run: {
316
311
  id: string;
317
- isTest: boolean;
318
312
  payload: string;
319
- durationMs: number;
320
- startedAt: Date;
321
313
  payloadType: string;
322
314
  tags: string[];
315
+ isTest: boolean;
323
316
  createdAt: Date;
317
+ startedAt: Date;
318
+ durationMs: number;
324
319
  costInCents: number;
325
320
  baseCostInCents: number;
326
321
  context?: any;
@@ -334,6 +329,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
334
329
  name: string;
335
330
  id: string;
336
331
  };
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";
353
352
  cpu: number;
354
353
  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,11 +359,6 @@ 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
- };
367
362
  task: {
368
363
  id: string;
369
364
  filePath: string;
@@ -373,8 +368,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
373
368
  number: number;
374
369
  status: string;
375
370
  id: string;
376
- backgroundWorkerId: string;
377
371
  startedAt: Date;
372
+ backgroundWorkerId: string;
378
373
  backgroundWorkerTaskId: string;
379
374
  };
380
375
  run: {
@@ -399,6 +394,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
399
394
  name: string;
400
395
  id: string;
401
396
  };
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";
418
417
  cpu: number;
419
418
  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,19 +424,6 @@ 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
- }>;
440
427
  task: z.ZodObject<{
441
428
  id: z.ZodString;
442
429
  filePath: z.ZodString;
@@ -461,15 +448,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
461
448
  number: number;
462
449
  status: string;
463
450
  id: string;
464
- backgroundWorkerId: string;
465
451
  startedAt: Date;
452
+ backgroundWorkerId: string;
466
453
  backgroundWorkerTaskId: string;
467
454
  }, {
468
455
  number: number;
469
456
  status: string;
470
457
  id: string;
471
- backgroundWorkerId: string;
472
458
  startedAt: Date;
459
+ backgroundWorkerId: string;
473
460
  backgroundWorkerTaskId: string;
474
461
  }>;
475
462
  run: z.ZodObject<{
@@ -491,13 +478,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
491
478
  maxDuration: z.ZodOptional<z.ZodNumber>;
492
479
  }, "strip", z.ZodTypeAny, {
493
480
  id: string;
494
- isTest: boolean;
495
481
  payload: string;
496
- durationMs: number;
497
- startedAt: Date;
498
482
  payloadType: string;
499
483
  tags: string[];
484
+ isTest: boolean;
500
485
  createdAt: Date;
486
+ startedAt: Date;
487
+ durationMs: number;
501
488
  costInCents: number;
502
489
  baseCostInCents: number;
503
490
  context?: any;
@@ -534,6 +521,19 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
534
521
  name: string;
535
522
  id: string;
536
523
  }>;
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
- version: string;
579
578
  id: string;
579
+ version: string;
580
580
  contentHash: string;
581
581
  }, {
582
- version: string;
583
582
  id: string;
583
+ version: string;
584
584
  contentHash: string;
585
585
  }>;
586
586
  machine: z.ZodDefault<z.ZodObject<{
@@ -589,28 +589,17 @@ 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";
593
592
  cpu: number;
594
593
  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";
598
597
  cpu: number;
599
598
  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
- };
614
603
  task: {
615
604
  id: string;
616
605
  filePath: string;
@@ -620,19 +609,19 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
620
609
  number: number;
621
610
  status: string;
622
611
  id: string;
623
- backgroundWorkerId: string;
624
612
  startedAt: Date;
613
+ backgroundWorkerId: string;
625
614
  backgroundWorkerTaskId: string;
626
615
  };
627
616
  run: {
628
617
  id: string;
629
- isTest: boolean;
630
618
  payload: string;
631
- durationMs: number;
632
- startedAt: Date;
633
619
  payloadType: string;
634
620
  tags: string[];
621
+ isTest: boolean;
635
622
  createdAt: Date;
623
+ startedAt: Date;
624
+ durationMs: number;
636
625
  costInCents: number;
637
626
  baseCostInCents: number;
638
627
  context?: any;
@@ -646,6 +635,11 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
646
635
  name: string;
647
636
  id: string;
648
637
  };
638
+ environment: {
639
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
640
+ id: string;
641
+ slug: string;
642
+ };
649
643
  organization: {
650
644
  name: string;
651
645
  id: string;
@@ -657,20 +651,21 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
657
651
  slug: string;
658
652
  ref: string;
659
653
  };
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
- version: string;
662
661
  id: string;
662
+ version: 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
- };
674
669
  task: {
675
670
  id: string;
676
671
  filePath: string;
@@ -680,8 +675,8 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
680
675
  number: number;
681
676
  status: string;
682
677
  id: string;
683
- backgroundWorkerId: string;
684
678
  startedAt: Date;
679
+ backgroundWorkerId: string;
685
680
  backgroundWorkerTaskId: string;
686
681
  };
687
682
  run: {
@@ -706,6 +701,11 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
706
701
  name: string;
707
702
  id: string;
708
703
  };
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,36 +718,23 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
718
718
  ref: string;
719
719
  };
720
720
  worker: {
721
- version: string;
722
721
  id: string;
722
+ version: 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";
730
729
  cpu: number;
731
730
  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
- }>;
751
738
  task: z.ZodObject<{
752
739
  id: z.ZodString;
753
740
  filePath: z.ZodString;
@@ -772,15 +759,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
772
759
  number: number;
773
760
  status: string;
774
761
  id: string;
775
- backgroundWorkerId: string;
776
762
  startedAt: Date;
763
+ backgroundWorkerId: string;
777
764
  backgroundWorkerTaskId: string;
778
765
  }, {
779
766
  number: number;
780
767
  status: string;
781
768
  id: string;
782
- backgroundWorkerId: string;
783
769
  startedAt: Date;
770
+ backgroundWorkerId: string;
784
771
  backgroundWorkerTaskId: string;
785
772
  }>;
786
773
  run: z.ZodObject<{
@@ -802,13 +789,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
802
789
  maxDuration: z.ZodOptional<z.ZodNumber>;
803
790
  }, "strip", z.ZodTypeAny, {
804
791
  id: string;
805
- isTest: boolean;
806
792
  payload: string;
807
- durationMs: number;
808
- startedAt: Date;
809
793
  payloadType: string;
810
794
  tags: string[];
795
+ isTest: boolean;
811
796
  createdAt: Date;
797
+ startedAt: Date;
798
+ durationMs: number;
812
799
  costInCents: number;
813
800
  baseCostInCents: number;
814
801
  context?: any;
@@ -845,6 +832,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
845
832
  name: string;
846
833
  id: string;
847
834
  }>;
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
- version: string;
890
889
  id: string;
890
+ version: string;
891
891
  contentHash: string;
892
892
  }, {
893
- version: string;
894
893
  id: string;
894
+ version: string;
895
895
  contentHash: string;
896
896
  }>;
897
897
  machine: z.ZodDefault<z.ZodObject<{
@@ -900,28 +900,17 @@ 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";
904
903
  cpu: number;
905
904
  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";
909
908
  cpu: number;
910
909
  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
- };
925
914
  task: {
926
915
  id: string;
927
916
  filePath: string;
@@ -931,19 +920,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
931
920
  number: number;
932
921
  status: string;
933
922
  id: string;
934
- backgroundWorkerId: string;
935
923
  startedAt: Date;
924
+ backgroundWorkerId: string;
936
925
  backgroundWorkerTaskId: string;
937
926
  };
938
927
  run: {
939
928
  id: string;
940
- isTest: boolean;
941
929
  payload: string;
942
- durationMs: number;
943
- startedAt: Date;
944
930
  payloadType: string;
945
931
  tags: string[];
932
+ isTest: boolean;
946
933
  createdAt: Date;
934
+ startedAt: Date;
935
+ durationMs: number;
947
936
  costInCents: number;
948
937
  baseCostInCents: number;
949
938
  context?: any;
@@ -957,6 +946,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
957
946
  name: string;
958
947
  id: string;
959
948
  };
949
+ environment: {
950
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
951
+ id: string;
952
+ slug: string;
953
+ };
960
954
  organization: {
961
955
  name: string;
962
956
  id: string;
@@ -968,20 +962,21 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
968
962
  slug: string;
969
963
  ref: string;
970
964
  };
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
- version: string;
973
972
  id: string;
973
+ version: 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
- };
985
980
  task: {
986
981
  id: string;
987
982
  filePath: string;
@@ -991,8 +986,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
991
986
  number: number;
992
987
  status: string;
993
988
  id: string;
994
- backgroundWorkerId: string;
995
989
  startedAt: Date;
990
+ backgroundWorkerId: string;
996
991
  backgroundWorkerTaskId: string;
997
992
  };
998
993
  run: {
@@ -1017,6 +1012,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1017
1012
  name: string;
1018
1013
  id: string;
1019
1014
  };
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
- version: string;
1033
1032
  id: string;
1033
+ version: 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";
1041
1040
  cpu: number;
1042
1041
  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,17 +1048,6 @@ 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
- };
1062
1051
  task: {
1063
1052
  id: string;
1064
1053
  filePath: string;
@@ -1068,19 +1057,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1068
1057
  number: number;
1069
1058
  status: string;
1070
1059
  id: string;
1071
- backgroundWorkerId: string;
1072
1060
  startedAt: Date;
1061
+ backgroundWorkerId: string;
1073
1062
  backgroundWorkerTaskId: string;
1074
1063
  };
1075
1064
  run: {
1076
1065
  id: string;
1077
- isTest: boolean;
1078
1066
  payload: string;
1079
- durationMs: number;
1080
- startedAt: Date;
1081
1067
  payloadType: string;
1082
1068
  tags: string[];
1069
+ isTest: boolean;
1083
1070
  createdAt: Date;
1071
+ startedAt: Date;
1072
+ durationMs: number;
1084
1073
  costInCents: number;
1085
1074
  baseCostInCents: number;
1086
1075
  context?: any;
@@ -1094,6 +1083,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1094
1083
  name: string;
1095
1084
  id: string;
1096
1085
  };
1086
+ environment: {
1087
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1088
+ id: string;
1089
+ slug: string;
1090
+ };
1097
1091
  organization: {
1098
1092
  name: string;
1099
1093
  id: string;
@@ -1105,9 +1099,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1105
1099
  slug: string;
1106
1100
  ref: string;
1107
1101
  };
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
- version: string;
1110
1109
  id: string;
1110
+ version: string;
1111
1111
  contentHash: string;
1112
1112
  };
1113
1113
  batch?: {
@@ -1118,11 +1118,6 @@ 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
- };
1126
1121
  task: {
1127
1122
  id: string;
1128
1123
  filePath: string;
@@ -1132,8 +1127,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1132
1127
  number: number;
1133
1128
  status: string;
1134
1129
  id: string;
1135
- backgroundWorkerId: string;
1136
1130
  startedAt: Date;
1131
+ backgroundWorkerId: string;
1137
1132
  backgroundWorkerTaskId: string;
1138
1133
  };
1139
1134
  run: {
@@ -1158,6 +1153,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1158
1153
  name: string;
1159
1154
  id: string;
1160
1155
  };
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
- version: string;
1174
1173
  id: string;
1174
+ version: 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";
1182
1181
  cpu: number;
1183
1182
  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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1930
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
1929
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1930
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1931
1931
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1932
1932
  }, {
1933
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1934
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
1933
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1934
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1997
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
1996
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1997
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2054
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2053
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2054
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2351
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2350
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2351
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2352
2352
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2353
2353
  }, {
2354
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2355
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2354
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2355
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2421
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2420
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2421
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
2481
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
2480
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2481
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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;
2619
2620
  runId: string;
2620
2621
  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;
2626
2627
  runId: string;
2627
2628
  messageId: string;
2628
- isTest: boolean;
2629
2629
  traceContext: Record<string, unknown>;
2630
2630
  attemptCount?: number | undefined;
2631
2631
  environment?: Record<string, string> | undefined;