@trigger.dev/core 3.0.0-beta.37 → 3.0.0-beta.38

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 (37) hide show
  1. package/dist/{catalog-dRKTgwQ7.d.ts → catalog-Tdea4K0I.d.mts} +43 -3
  2. package/dist/{catalog-XTlJQaMn.d.mts → catalog-yeAHwmSe.d.ts} +43 -3
  3. package/dist/{manager-JkbddlcO.d.mts → manager-S98VaLUy.d.mts} +244 -1
  4. package/dist/{manager-JkbddlcO.d.ts → manager-S98VaLUy.d.ts} +244 -1
  5. package/dist/{messages-9lty-Du5.d.mts → messages-BD0yXLtn.d.mts} +2370 -141
  6. package/dist/{messages-9lty-Du5.d.ts → messages-BD0yXLtn.d.ts} +2370 -141
  7. package/dist/{schemas-r4ZP9S-F.d.mts → schemas-XNxZYXOy.d.mts} +199 -33
  8. package/dist/{schemas-r4ZP9S-F.d.ts → schemas-XNxZYXOy.d.ts} +199 -33
  9. package/dist/v3/dev/index.d.mts +1 -1
  10. package/dist/v3/dev/index.d.ts +1 -1
  11. package/dist/v3/index.d.mts +117 -52
  12. package/dist/v3/index.d.ts +117 -52
  13. package/dist/v3/index.js +204 -58
  14. package/dist/v3/index.js.map +1 -1
  15. package/dist/v3/index.mjs +199 -58
  16. package/dist/v3/index.mjs.map +1 -1
  17. package/dist/v3/otel/index.js +15 -5
  18. package/dist/v3/otel/index.js.map +1 -1
  19. package/dist/v3/otel/index.mjs +15 -5
  20. package/dist/v3/otel/index.mjs.map +1 -1
  21. package/dist/v3/prod/index.d.mts +2 -2
  22. package/dist/v3/prod/index.d.ts +2 -2
  23. package/dist/v3/prod/index.js.map +1 -1
  24. package/dist/v3/prod/index.mjs.map +1 -1
  25. package/dist/v3/workers/index.d.mts +54 -8
  26. package/dist/v3/workers/index.d.ts +54 -8
  27. package/dist/v3/workers/index.js +404 -43
  28. package/dist/v3/workers/index.js.map +1 -1
  29. package/dist/v3/workers/index.mjs +402 -44
  30. package/dist/v3/workers/index.mjs.map +1 -1
  31. package/dist/v3/zodIpc.js.map +1 -1
  32. package/dist/v3/zodIpc.mjs.map +1 -1
  33. package/dist/v3/zodMessageHandler.d.mts +1 -1
  34. package/dist/v3/zodMessageHandler.d.ts +1 -1
  35. package/dist/v3/zodfetch.d.mts +1 -1
  36. package/dist/v3/zodfetch.d.ts +1 -1
  37. package/package.json +1 -1
@@ -9,24 +9,6 @@ type Prettify<T> = {
9
9
 
10
10
  declare const EnvironmentType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
11
11
  type EnvironmentType = z.infer<typeof EnvironmentType>;
12
- declare const MachineCpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
13
- type MachineCpu = z.infer<typeof MachineCpu>;
14
- declare const MachineMemory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
15
- type MachineMemory = z.infer<typeof MachineMemory>;
16
- declare const Machine: z.ZodObject<{
17
- version: z.ZodDefault<z.ZodLiteral<"v1">>;
18
- cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
19
- memory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
20
- }, "strip", z.ZodTypeAny, {
21
- version: "v1";
22
- cpu: 2 | 1 | 4 | 0.25 | 0.5;
23
- memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
24
- }, {
25
- version?: "v1" | undefined;
26
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
27
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
28
- }>;
29
- type Machine = z.infer<typeof Machine>;
30
12
  declare const TaskRunExecutionPayload: z.ZodObject<{
31
13
  execution: z.ZodObject<{
32
14
  task: z.ZodObject<{
@@ -72,14 +54,22 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
72
54
  tags: z.ZodArray<z.ZodString, "many">;
73
55
  isTest: z.ZodDefault<z.ZodBoolean>;
74
56
  createdAt: z.ZodDate;
57
+ startedAt: z.ZodDefault<z.ZodDate>;
75
58
  idempotencyKey: z.ZodOptional<z.ZodString>;
59
+ durationMs: z.ZodDefault<z.ZodNumber>;
60
+ costInCents: z.ZodDefault<z.ZodNumber>;
61
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
76
62
  }, "strip", z.ZodTypeAny, {
77
63
  id: string;
64
+ startedAt: Date;
78
65
  payload: string;
79
66
  payloadType: string;
80
67
  tags: string[];
81
68
  isTest: boolean;
82
69
  createdAt: Date;
70
+ durationMs: number;
71
+ costInCents: number;
72
+ baseCostInCents: number;
83
73
  context?: any;
84
74
  idempotencyKey?: string | undefined;
85
75
  }, {
@@ -90,7 +80,11 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
90
80
  createdAt: Date;
91
81
  context?: any;
92
82
  isTest?: boolean | undefined;
83
+ startedAt?: Date | undefined;
93
84
  idempotencyKey?: string | undefined;
85
+ durationMs?: number | undefined;
86
+ costInCents?: number | undefined;
87
+ baseCostInCents?: number | undefined;
94
88
  }>;
95
89
  queue: z.ZodObject<{
96
90
  id: z.ZodString;
@@ -151,6 +145,22 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
151
145
  }, {
152
146
  id: string;
153
147
  }>>;
148
+ machine: z.ZodOptional<z.ZodObject<{
149
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
150
+ cpu: z.ZodNumber;
151
+ memory: z.ZodNumber;
152
+ centsPerMs: z.ZodNumber;
153
+ }, "strip", z.ZodTypeAny, {
154
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
155
+ cpu: number;
156
+ memory: number;
157
+ centsPerMs: number;
158
+ }, {
159
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
160
+ cpu: number;
161
+ memory: number;
162
+ centsPerMs: number;
163
+ }>>;
154
164
  }, "strip", z.ZodTypeAny, {
155
165
  task: {
156
166
  id: string;
@@ -167,11 +177,15 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
167
177
  };
168
178
  run: {
169
179
  id: string;
180
+ startedAt: Date;
170
181
  payload: string;
171
182
  payloadType: string;
172
183
  tags: string[];
173
184
  isTest: boolean;
174
185
  createdAt: Date;
186
+ durationMs: number;
187
+ costInCents: number;
188
+ baseCostInCents: number;
175
189
  context?: any;
176
190
  idempotencyKey?: string | undefined;
177
191
  };
@@ -198,6 +212,12 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
198
212
  batch?: {
199
213
  id: string;
200
214
  } | undefined;
215
+ machine?: {
216
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
217
+ cpu: number;
218
+ memory: number;
219
+ centsPerMs: number;
220
+ } | undefined;
201
221
  }, {
202
222
  task: {
203
223
  id: string;
@@ -220,7 +240,11 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
220
240
  createdAt: Date;
221
241
  context?: any;
222
242
  isTest?: boolean | undefined;
243
+ startedAt?: Date | undefined;
223
244
  idempotencyKey?: string | undefined;
245
+ durationMs?: number | undefined;
246
+ costInCents?: number | undefined;
247
+ baseCostInCents?: number | undefined;
224
248
  };
225
249
  queue: {
226
250
  id: string;
@@ -245,6 +269,12 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
245
269
  batch?: {
246
270
  id: string;
247
271
  } | undefined;
272
+ machine?: {
273
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
274
+ cpu: number;
275
+ memory: number;
276
+ centsPerMs: number;
277
+ } | undefined;
248
278
  }>;
249
279
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
250
280
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -265,11 +295,15 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
265
295
  };
266
296
  run: {
267
297
  id: string;
298
+ startedAt: Date;
268
299
  payload: string;
269
300
  payloadType: string;
270
301
  tags: string[];
271
302
  isTest: boolean;
272
303
  createdAt: Date;
304
+ durationMs: number;
305
+ costInCents: number;
306
+ baseCostInCents: number;
273
307
  context?: any;
274
308
  idempotencyKey?: string | undefined;
275
309
  };
@@ -296,6 +330,12 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
296
330
  batch?: {
297
331
  id: string;
298
332
  } | undefined;
333
+ machine?: {
334
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
335
+ cpu: number;
336
+ memory: number;
337
+ centsPerMs: number;
338
+ } | undefined;
299
339
  };
300
340
  traceContext: Record<string, unknown>;
301
341
  environment?: Record<string, string> | undefined;
@@ -322,7 +362,11 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
322
362
  createdAt: Date;
323
363
  context?: any;
324
364
  isTest?: boolean | undefined;
365
+ startedAt?: Date | undefined;
325
366
  idempotencyKey?: string | undefined;
367
+ durationMs?: number | undefined;
368
+ costInCents?: number | undefined;
369
+ baseCostInCents?: number | undefined;
326
370
  };
327
371
  queue: {
328
372
  id: string;
@@ -347,6 +391,12 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
347
391
  batch?: {
348
392
  id: string;
349
393
  } | undefined;
394
+ machine?: {
395
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
396
+ cpu: number;
397
+ memory: number;
398
+ centsPerMs: number;
399
+ } | undefined;
350
400
  };
351
401
  traceContext: Record<string, unknown>;
352
402
  environment?: Record<string, string> | undefined;
@@ -396,14 +446,22 @@ declare const ProdTaskRunExecution: z.ZodObject<{
396
446
  tags: z.ZodArray<z.ZodString, "many">;
397
447
  isTest: z.ZodDefault<z.ZodBoolean>;
398
448
  createdAt: z.ZodDate;
449
+ startedAt: z.ZodDefault<z.ZodDate>;
399
450
  idempotencyKey: z.ZodOptional<z.ZodString>;
451
+ durationMs: z.ZodDefault<z.ZodNumber>;
452
+ costInCents: z.ZodDefault<z.ZodNumber>;
453
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
400
454
  }, "strip", z.ZodTypeAny, {
401
455
  id: string;
456
+ startedAt: Date;
402
457
  payload: string;
403
458
  payloadType: string;
404
459
  tags: string[];
405
460
  isTest: boolean;
406
461
  createdAt: Date;
462
+ durationMs: number;
463
+ costInCents: number;
464
+ baseCostInCents: number;
407
465
  context?: any;
408
466
  idempotencyKey?: string | undefined;
409
467
  }, {
@@ -414,7 +472,11 @@ declare const ProdTaskRunExecution: z.ZodObject<{
414
472
  createdAt: Date;
415
473
  context?: any;
416
474
  isTest?: boolean | undefined;
475
+ startedAt?: Date | undefined;
417
476
  idempotencyKey?: string | undefined;
477
+ durationMs?: number | undefined;
478
+ costInCents?: number | undefined;
479
+ baseCostInCents?: number | undefined;
418
480
  }>;
419
481
  queue: z.ZodObject<{
420
482
  id: z.ZodString;
@@ -488,6 +550,22 @@ declare const ProdTaskRunExecution: z.ZodObject<{
488
550
  version: string;
489
551
  contentHash: string;
490
552
  }>;
553
+ machine: z.ZodObject<{
554
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
555
+ cpu: z.ZodNumber;
556
+ memory: z.ZodNumber;
557
+ centsPerMs: z.ZodNumber;
558
+ }, "strip", z.ZodTypeAny, {
559
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
560
+ cpu: number;
561
+ memory: number;
562
+ centsPerMs: number;
563
+ }, {
564
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
565
+ cpu: number;
566
+ memory: number;
567
+ centsPerMs: number;
568
+ }>;
491
569
  }, "strip", z.ZodTypeAny, {
492
570
  task: {
493
571
  id: string;
@@ -504,11 +582,15 @@ declare const ProdTaskRunExecution: z.ZodObject<{
504
582
  };
505
583
  run: {
506
584
  id: string;
585
+ startedAt: Date;
507
586
  payload: string;
508
587
  payloadType: string;
509
588
  tags: string[];
510
589
  isTest: boolean;
511
590
  createdAt: Date;
591
+ durationMs: number;
592
+ costInCents: number;
593
+ baseCostInCents: number;
512
594
  context?: any;
513
595
  idempotencyKey?: string | undefined;
514
596
  };
@@ -532,6 +614,12 @@ declare const ProdTaskRunExecution: z.ZodObject<{
532
614
  slug: string;
533
615
  ref: string;
534
616
  };
617
+ machine: {
618
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
619
+ cpu: number;
620
+ memory: number;
621
+ centsPerMs: number;
622
+ };
535
623
  worker: {
536
624
  id: string;
537
625
  version: string;
@@ -562,7 +650,11 @@ declare const ProdTaskRunExecution: z.ZodObject<{
562
650
  createdAt: Date;
563
651
  context?: any;
564
652
  isTest?: boolean | undefined;
653
+ startedAt?: Date | undefined;
565
654
  idempotencyKey?: string | undefined;
655
+ durationMs?: number | undefined;
656
+ costInCents?: number | undefined;
657
+ baseCostInCents?: number | undefined;
566
658
  };
567
659
  queue: {
568
660
  id: string;
@@ -584,6 +676,12 @@ declare const ProdTaskRunExecution: z.ZodObject<{
584
676
  slug: string;
585
677
  ref: string;
586
678
  };
679
+ machine: {
680
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
681
+ cpu: number;
682
+ memory: number;
683
+ centsPerMs: number;
684
+ };
587
685
  worker: {
588
686
  id: string;
589
687
  version: string;
@@ -639,14 +737,22 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
639
737
  tags: z.ZodArray<z.ZodString, "many">;
640
738
  isTest: z.ZodDefault<z.ZodBoolean>;
641
739
  createdAt: z.ZodDate;
740
+ startedAt: z.ZodDefault<z.ZodDate>;
642
741
  idempotencyKey: z.ZodOptional<z.ZodString>;
742
+ durationMs: z.ZodDefault<z.ZodNumber>;
743
+ costInCents: z.ZodDefault<z.ZodNumber>;
744
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
643
745
  }, "strip", z.ZodTypeAny, {
644
746
  id: string;
747
+ startedAt: Date;
645
748
  payload: string;
646
749
  payloadType: string;
647
750
  tags: string[];
648
751
  isTest: boolean;
649
752
  createdAt: Date;
753
+ durationMs: number;
754
+ costInCents: number;
755
+ baseCostInCents: number;
650
756
  context?: any;
651
757
  idempotencyKey?: string | undefined;
652
758
  }, {
@@ -657,7 +763,11 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
657
763
  createdAt: Date;
658
764
  context?: any;
659
765
  isTest?: boolean | undefined;
766
+ startedAt?: Date | undefined;
660
767
  idempotencyKey?: string | undefined;
768
+ durationMs?: number | undefined;
769
+ costInCents?: number | undefined;
770
+ baseCostInCents?: number | undefined;
661
771
  }>;
662
772
  queue: z.ZodObject<{
663
773
  id: z.ZodString;
@@ -731,6 +841,22 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
731
841
  version: string;
732
842
  contentHash: string;
733
843
  }>;
844
+ machine: z.ZodObject<{
845
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
846
+ cpu: z.ZodNumber;
847
+ memory: z.ZodNumber;
848
+ centsPerMs: z.ZodNumber;
849
+ }, "strip", z.ZodTypeAny, {
850
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
851
+ cpu: number;
852
+ memory: number;
853
+ centsPerMs: number;
854
+ }, {
855
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
856
+ cpu: number;
857
+ memory: number;
858
+ centsPerMs: number;
859
+ }>;
734
860
  }, "strip", z.ZodTypeAny, {
735
861
  task: {
736
862
  id: string;
@@ -747,11 +873,15 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
747
873
  };
748
874
  run: {
749
875
  id: string;
876
+ startedAt: Date;
750
877
  payload: string;
751
878
  payloadType: string;
752
879
  tags: string[];
753
880
  isTest: boolean;
754
881
  createdAt: Date;
882
+ durationMs: number;
883
+ costInCents: number;
884
+ baseCostInCents: number;
755
885
  context?: any;
756
886
  idempotencyKey?: string | undefined;
757
887
  };
@@ -775,6 +905,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
775
905
  slug: string;
776
906
  ref: string;
777
907
  };
908
+ machine: {
909
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
910
+ cpu: number;
911
+ memory: number;
912
+ centsPerMs: number;
913
+ };
778
914
  worker: {
779
915
  id: string;
780
916
  version: string;
@@ -805,7 +941,11 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
805
941
  createdAt: Date;
806
942
  context?: any;
807
943
  isTest?: boolean | undefined;
944
+ startedAt?: Date | undefined;
808
945
  idempotencyKey?: string | undefined;
946
+ durationMs?: number | undefined;
947
+ costInCents?: number | undefined;
948
+ baseCostInCents?: number | undefined;
809
949
  };
810
950
  queue: {
811
951
  id: string;
@@ -827,6 +967,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
827
967
  slug: string;
828
968
  ref: string;
829
969
  };
970
+ machine: {
971
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
972
+ cpu: number;
973
+ memory: number;
974
+ centsPerMs: number;
975
+ };
830
976
  worker: {
831
977
  id: string;
832
978
  version: string;
@@ -855,11 +1001,15 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
855
1001
  };
856
1002
  run: {
857
1003
  id: string;
1004
+ startedAt: Date;
858
1005
  payload: string;
859
1006
  payloadType: string;
860
1007
  tags: string[];
861
1008
  isTest: boolean;
862
1009
  createdAt: Date;
1010
+ durationMs: number;
1011
+ costInCents: number;
1012
+ baseCostInCents: number;
863
1013
  context?: any;
864
1014
  idempotencyKey?: string | undefined;
865
1015
  };
@@ -883,6 +1033,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
883
1033
  slug: string;
884
1034
  ref: string;
885
1035
  };
1036
+ machine: {
1037
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1038
+ cpu: number;
1039
+ memory: number;
1040
+ centsPerMs: number;
1041
+ };
886
1042
  worker: {
887
1043
  id: string;
888
1044
  version: string;
@@ -917,7 +1073,11 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
917
1073
  createdAt: Date;
918
1074
  context?: any;
919
1075
  isTest?: boolean | undefined;
1076
+ startedAt?: Date | undefined;
920
1077
  idempotencyKey?: string | undefined;
1078
+ durationMs?: number | undefined;
1079
+ costInCents?: number | undefined;
1080
+ baseCostInCents?: number | undefined;
921
1081
  };
922
1082
  queue: {
923
1083
  id: string;
@@ -939,6 +1099,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
939
1099
  slug: string;
940
1100
  ref: string;
941
1101
  };
1102
+ machine: {
1103
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1104
+ cpu: number;
1105
+ memory: number;
1106
+ centsPerMs: number;
1107
+ };
942
1108
  worker: {
943
1109
  id: string;
944
1110
  version: string;
@@ -1678,17 +1844,17 @@ declare const TaskMetadata: z.ZodObject<{
1678
1844
  randomize?: boolean | undefined;
1679
1845
  }>>;
1680
1846
  machine: z.ZodOptional<z.ZodObject<{
1681
- version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
1682
- cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
1683
- memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
1847
+ cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
1848
+ 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>]>>;
1849
+ preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1684
1850
  }, "strip", z.ZodTypeAny, {
1685
- version?: "v1" | undefined;
1686
1851
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1687
1852
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1853
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1688
1854
  }, {
1689
- version?: "v1" | undefined;
1690
1855
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1691
1856
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1857
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1692
1858
  }>>;
1693
1859
  triggerSource: z.ZodOptional<z.ZodString>;
1694
1860
  }, "strip", z.ZodTypeAny, {
@@ -1739,9 +1905,9 @@ declare const TaskMetadata: z.ZodObject<{
1739
1905
  randomize?: boolean | undefined;
1740
1906
  } | undefined;
1741
1907
  machine?: {
1742
- version?: "v1" | undefined;
1743
1908
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1744
1909
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1910
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1745
1911
  } | undefined;
1746
1912
  triggerSource?: string | undefined;
1747
1913
  }, {
@@ -1792,9 +1958,9 @@ declare const TaskMetadata: z.ZodObject<{
1792
1958
  randomize?: boolean | undefined;
1793
1959
  } | undefined;
1794
1960
  machine?: {
1795
- version?: "v1" | undefined;
1796
1961
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1797
1962
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1963
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1798
1964
  } | undefined;
1799
1965
  triggerSource?: string | undefined;
1800
1966
  }>;
@@ -2064,17 +2230,17 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
2064
2230
  randomize?: boolean | undefined;
2065
2231
  }>>;
2066
2232
  machine: z.ZodOptional<z.ZodObject<{
2067
- version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
2068
- cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
2069
- memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
2233
+ cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2234
+ 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>]>>;
2235
+ preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2070
2236
  }, "strip", z.ZodTypeAny, {
2071
- version?: "v1" | undefined;
2072
2237
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2073
2238
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2239
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2074
2240
  }, {
2075
- version?: "v1" | undefined;
2076
2241
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2077
2242
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2243
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2078
2244
  }>>;
2079
2245
  triggerSource: z.ZodOptional<z.ZodString>;
2080
2246
  filePath: z.ZodString;
@@ -2129,9 +2295,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
2129
2295
  randomize?: boolean | undefined;
2130
2296
  } | undefined;
2131
2297
  machine?: {
2132
- version?: "v1" | undefined;
2133
2298
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2134
2299
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2300
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2135
2301
  } | undefined;
2136
2302
  triggerSource?: string | undefined;
2137
2303
  }, {
@@ -2184,9 +2350,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
2184
2350
  randomize?: boolean | undefined;
2185
2351
  } | undefined;
2186
2352
  machine?: {
2187
- version?: "v1" | undefined;
2188
2353
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2189
2354
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2355
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2190
2356
  } | undefined;
2191
2357
  triggerSource?: string | undefined;
2192
2358
  }>;
@@ -2328,4 +2494,4 @@ declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
2328
2494
  }>;
2329
2495
  type TaskRunExecutionLazyAttemptPayload = z.infer<typeof TaskRunExecutionLazyAttemptPayload>;
2330
2496
 
2331
- export { Config as C, EnvironmentType as E, FixedWindowRateLimit as F, MachineCpu as M, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, TaskFileMetadata as T, WaitReason as W, TaskMetadataWithFilePath as a, TaskMetadata as b, MachineMemory as c, Machine as d, TaskRunExecutionPayload as e, ProdTaskRunExecution as f, ProdTaskRunExecutionPayload as g, RateLimitOptions as h, PostStartCauses as i, PreStopCauses as j, type ResolvedConfig as k, TaskRunExecutionLazyAttemptPayload as l, type RequireKeys as m };
2497
+ export { Config as C, EnvironmentType as E, FixedWindowRateLimit as F, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, TaskFileMetadata as T, WaitReason as W, TaskMetadataWithFilePath as a, TaskMetadata as b, TaskRunExecutionPayload as c, ProdTaskRunExecution as d, ProdTaskRunExecutionPayload as e, RateLimitOptions as f, PostStartCauses as g, PreStopCauses as h, type ResolvedConfig as i, TaskRunExecutionLazyAttemptPayload as j, type RequireKeys as k };