@trigger.dev/core 0.0.0-prerelease-20241203170318 → 0.0.0-prerelease-20241212160659

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 (53) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +128 -126
  2. package/dist/commonjs/v3/apiClient/index.js +4 -0
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/runStream.d.ts +28 -4
  5. package/dist/commonjs/v3/apiClient/runStream.js +104 -38
  6. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/stream.d.ts +6 -1
  8. package/dist/commonjs/v3/apiClient/stream.js +155 -24
  9. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  10. package/dist/commonjs/v3/runMetadata/manager.d.ts +2 -1
  11. package/dist/commonjs/v3/runMetadata/manager.js +11 -5
  12. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  13. package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +7 -7
  14. package/dist/commonjs/v3/runMetadata/metadataStream.js +33 -39
  15. package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -1
  16. package/dist/commonjs/v3/schemas/api.d.ts +698 -675
  17. package/dist/commonjs/v3/schemas/api.js +9 -1
  18. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  19. package/dist/commonjs/v3/schemas/build.d.ts +108 -108
  20. package/dist/commonjs/v3/schemas/messages.d.ts +2442 -2442
  21. package/dist/commonjs/v3/schemas/resources.d.ts +58 -58
  22. package/dist/commonjs/v3/schemas/schemas.d.ts +359 -359
  23. package/dist/commonjs/v3/types/tasks.d.ts +25 -1
  24. package/dist/commonjs/v3/utils/ioSerialization.d.ts +4 -1
  25. package/dist/commonjs/v3/utils/ioSerialization.js +14 -2
  26. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  27. package/dist/esm/v3/apiClient/index.d.ts +128 -126
  28. package/dist/esm/v3/apiClient/index.js +4 -0
  29. package/dist/esm/v3/apiClient/index.js.map +1 -1
  30. package/dist/esm/v3/apiClient/runStream.d.ts +28 -4
  31. package/dist/esm/v3/apiClient/runStream.js +102 -39
  32. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  33. package/dist/esm/v3/apiClient/stream.d.ts +6 -1
  34. package/dist/esm/v3/apiClient/stream.js +151 -23
  35. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  36. package/dist/esm/v3/runMetadata/manager.d.ts +2 -1
  37. package/dist/esm/v3/runMetadata/manager.js +11 -5
  38. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  39. package/dist/esm/v3/runMetadata/metadataStream.d.ts +7 -7
  40. package/dist/esm/v3/runMetadata/metadataStream.js +33 -39
  41. package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -1
  42. package/dist/esm/v3/schemas/api.d.ts +698 -675
  43. package/dist/esm/v3/schemas/api.js +8 -0
  44. package/dist/esm/v3/schemas/api.js.map +1 -1
  45. package/dist/esm/v3/schemas/build.d.ts +108 -108
  46. package/dist/esm/v3/schemas/messages.d.ts +2442 -2442
  47. package/dist/esm/v3/schemas/resources.d.ts +58 -58
  48. package/dist/esm/v3/schemas/schemas.d.ts +359 -359
  49. package/dist/esm/v3/types/tasks.d.ts +25 -1
  50. package/dist/esm/v3/utils/ioSerialization.d.ts +4 -1
  51. package/dist/esm/v3/utils/ioSerialization.js +14 -2
  52. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  53. package/package.json +2 -2
@@ -58,48 +58,48 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
58
58
  maxDuration: z.ZodOptional<z.ZodNumber>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  id: string;
61
- createdAt: Date;
61
+ startedAt: Date;
62
62
  payload: string;
63
63
  payloadType: string;
64
64
  tags: string[];
65
65
  isTest: boolean;
66
- startedAt: Date;
66
+ createdAt: Date;
67
+ durationMs: number;
67
68
  costInCents: number;
68
69
  baseCostInCents: number;
69
- durationMs: number;
70
- maxAttempts?: number | undefined;
71
- maxDuration?: number | undefined;
72
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
73
- version?: string | undefined;
74
70
  context?: any;
75
71
  idempotencyKey?: string | undefined;
72
+ maxAttempts?: number | undefined;
73
+ version?: string | undefined;
74
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
75
+ maxDuration?: number | undefined;
76
76
  }, {
77
77
  id: string;
78
- createdAt: Date;
79
78
  payload: string;
80
79
  payloadType: string;
81
80
  tags: string[];
82
- maxAttempts?: number | undefined;
83
- maxDuration?: number | undefined;
84
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
85
- version?: string | undefined;
81
+ createdAt: Date;
82
+ startedAt?: Date | undefined;
86
83
  context?: any;
87
- idempotencyKey?: string | undefined;
88
84
  isTest?: boolean | undefined;
89
- startedAt?: Date | undefined;
85
+ idempotencyKey?: string | undefined;
86
+ maxAttempts?: number | undefined;
87
+ durationMs?: number | undefined;
90
88
  costInCents?: number | undefined;
91
89
  baseCostInCents?: number | undefined;
92
- durationMs?: number | undefined;
90
+ version?: string | undefined;
91
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
92
+ maxDuration?: number | undefined;
93
93
  }>;
94
94
  queue: z.ZodObject<{
95
95
  id: z.ZodString;
96
96
  name: z.ZodString;
97
97
  }, "strip", z.ZodTypeAny, {
98
- id: string;
99
98
  name: string;
100
- }, {
101
99
  id: string;
100
+ }, {
102
101
  name: string;
102
+ id: string;
103
103
  }>;
104
104
  environment: z.ZodObject<{
105
105
  id: z.ZodString;
@@ -119,12 +119,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
119
119
  slug: z.ZodString;
120
120
  name: z.ZodString;
121
121
  }, "strip", z.ZodTypeAny, {
122
- id: string;
123
122
  name: string;
123
+ id: string;
124
124
  slug: string;
125
125
  }, {
126
- id: string;
127
126
  name: string;
127
+ id: string;
128
128
  slug: string;
129
129
  }>;
130
130
  project: z.ZodObject<{
@@ -133,13 +133,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
133
133
  slug: z.ZodString;
134
134
  name: z.ZodString;
135
135
  }, "strip", z.ZodTypeAny, {
136
- id: string;
137
136
  name: string;
137
+ id: string;
138
138
  slug: string;
139
139
  ref: string;
140
140
  }, {
141
- id: string;
142
141
  name: string;
142
+ id: string;
143
143
  slug: string;
144
144
  ref: string;
145
145
  }>;
@@ -167,15 +167,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
167
167
  centsPerMs: number;
168
168
  }>>;
169
169
  }, "strip", z.ZodTypeAny, {
170
- organization: {
171
- id: string;
172
- name: string;
173
- slug: string;
174
- };
175
- queue: {
176
- id: string;
177
- name: string;
178
- };
179
170
  task: {
180
171
  id: string;
181
172
  filePath: string;
@@ -191,52 +182,52 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
191
182
  };
192
183
  run: {
193
184
  id: string;
194
- createdAt: Date;
185
+ startedAt: Date;
195
186
  payload: string;
196
187
  payloadType: string;
197
188
  tags: string[];
198
189
  isTest: boolean;
199
- startedAt: Date;
190
+ createdAt: Date;
191
+ durationMs: number;
200
192
  costInCents: number;
201
193
  baseCostInCents: number;
202
- durationMs: number;
203
- maxAttempts?: number | undefined;
204
- maxDuration?: number | undefined;
205
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
206
- version?: string | undefined;
207
194
  context?: any;
208
195
  idempotencyKey?: string | undefined;
196
+ maxAttempts?: number | undefined;
197
+ version?: string | undefined;
198
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
199
+ maxDuration?: number | undefined;
200
+ };
201
+ queue: {
202
+ name: string;
203
+ id: string;
209
204
  };
210
205
  environment: {
211
206
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
212
207
  id: string;
213
208
  slug: string;
214
209
  };
215
- project: {
210
+ organization: {
211
+ name: string;
216
212
  id: string;
213
+ slug: string;
214
+ };
215
+ project: {
217
216
  name: string;
217
+ id: string;
218
218
  slug: string;
219
219
  ref: string;
220
220
  };
221
+ batch?: {
222
+ id: string;
223
+ } | undefined;
221
224
  machine?: {
222
225
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
223
226
  cpu: number;
224
227
  memory: number;
225
228
  centsPerMs: number;
226
229
  } | undefined;
227
- batch?: {
228
- id: string;
229
- } | undefined;
230
230
  }, {
231
- organization: {
232
- id: string;
233
- name: string;
234
- slug: string;
235
- };
236
- queue: {
237
- id: string;
238
- name: string;
239
- };
240
231
  task: {
241
232
  id: string;
242
233
  filePath: string;
@@ -252,56 +243,56 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
252
243
  };
253
244
  run: {
254
245
  id: string;
255
- createdAt: Date;
256
246
  payload: string;
257
247
  payloadType: string;
258
248
  tags: string[];
259
- maxAttempts?: number | undefined;
260
- maxDuration?: number | undefined;
261
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
262
- version?: string | undefined;
249
+ createdAt: Date;
250
+ startedAt?: Date | undefined;
263
251
  context?: any;
264
- idempotencyKey?: string | undefined;
265
252
  isTest?: boolean | undefined;
266
- startedAt?: Date | undefined;
253
+ idempotencyKey?: string | undefined;
254
+ maxAttempts?: number | undefined;
255
+ durationMs?: number | undefined;
267
256
  costInCents?: number | undefined;
268
257
  baseCostInCents?: number | undefined;
269
- durationMs?: number | undefined;
258
+ version?: string | undefined;
259
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
260
+ maxDuration?: number | undefined;
261
+ };
262
+ queue: {
263
+ name: string;
264
+ id: string;
270
265
  };
271
266
  environment: {
272
267
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
273
268
  id: string;
274
269
  slug: string;
275
270
  };
276
- project: {
271
+ organization: {
272
+ name: string;
277
273
  id: string;
274
+ slug: string;
275
+ };
276
+ project: {
278
277
  name: string;
278
+ id: string;
279
279
  slug: string;
280
280
  ref: string;
281
281
  };
282
+ batch?: {
283
+ id: string;
284
+ } | undefined;
282
285
  machine?: {
283
286
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
284
287
  cpu: number;
285
288
  memory: number;
286
289
  centsPerMs: number;
287
290
  } | undefined;
288
- batch?: {
289
- id: string;
290
- } | undefined;
291
291
  }>;
292
292
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
293
293
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
294
  }, "strip", z.ZodTypeAny, {
295
295
  execution: {
296
- organization: {
297
- id: string;
298
- name: string;
299
- slug: string;
300
- };
301
- queue: {
302
- id: string;
303
- name: string;
304
- };
305
296
  task: {
306
297
  id: string;
307
298
  filePath: string;
@@ -317,56 +308,56 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
317
308
  };
318
309
  run: {
319
310
  id: string;
320
- createdAt: Date;
311
+ startedAt: Date;
321
312
  payload: string;
322
313
  payloadType: string;
323
314
  tags: string[];
324
315
  isTest: boolean;
325
- startedAt: Date;
316
+ createdAt: Date;
317
+ durationMs: number;
326
318
  costInCents: number;
327
319
  baseCostInCents: number;
328
- durationMs: number;
329
- maxAttempts?: number | undefined;
330
- maxDuration?: number | undefined;
331
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
332
- version?: string | undefined;
333
320
  context?: any;
334
321
  idempotencyKey?: string | undefined;
322
+ maxAttempts?: number | undefined;
323
+ version?: string | undefined;
324
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
325
+ maxDuration?: number | undefined;
326
+ };
327
+ queue: {
328
+ name: string;
329
+ id: string;
335
330
  };
336
331
  environment: {
337
332
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
338
333
  id: string;
339
334
  slug: string;
340
335
  };
341
- project: {
336
+ organization: {
337
+ name: string;
342
338
  id: string;
339
+ slug: string;
340
+ };
341
+ project: {
343
342
  name: string;
343
+ id: string;
344
344
  slug: string;
345
345
  ref: string;
346
346
  };
347
+ batch?: {
348
+ id: string;
349
+ } | undefined;
347
350
  machine?: {
348
351
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
349
352
  cpu: number;
350
353
  memory: number;
351
354
  centsPerMs: number;
352
355
  } | undefined;
353
- batch?: {
354
- id: string;
355
- } | undefined;
356
356
  };
357
357
  traceContext: Record<string, unknown>;
358
358
  environment?: Record<string, string> | undefined;
359
359
  }, {
360
360
  execution: {
361
- organization: {
362
- id: string;
363
- name: string;
364
- slug: string;
365
- };
366
- queue: {
367
- id: string;
368
- name: string;
369
- };
370
361
  task: {
371
362
  id: string;
372
363
  filePath: string;
@@ -382,42 +373,51 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
382
373
  };
383
374
  run: {
384
375
  id: string;
385
- createdAt: Date;
386
376
  payload: string;
387
377
  payloadType: string;
388
378
  tags: string[];
389
- maxAttempts?: number | undefined;
390
- maxDuration?: number | undefined;
391
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
392
- version?: string | undefined;
379
+ createdAt: Date;
380
+ startedAt?: Date | undefined;
393
381
  context?: any;
394
- idempotencyKey?: string | undefined;
395
382
  isTest?: boolean | undefined;
396
- startedAt?: Date | undefined;
383
+ idempotencyKey?: string | undefined;
384
+ maxAttempts?: number | undefined;
385
+ durationMs?: number | undefined;
397
386
  costInCents?: number | undefined;
398
387
  baseCostInCents?: number | undefined;
399
- durationMs?: number | undefined;
388
+ version?: string | undefined;
389
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
390
+ maxDuration?: number | undefined;
391
+ };
392
+ queue: {
393
+ name: string;
394
+ id: string;
400
395
  };
401
396
  environment: {
402
397
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
403
398
  id: string;
404
399
  slug: string;
405
400
  };
406
- project: {
401
+ organization: {
402
+ name: string;
407
403
  id: string;
404
+ slug: string;
405
+ };
406
+ project: {
408
407
  name: string;
408
+ id: string;
409
409
  slug: string;
410
410
  ref: string;
411
411
  };
412
+ batch?: {
413
+ id: string;
414
+ } | undefined;
412
415
  machine?: {
413
416
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
414
417
  cpu: number;
415
418
  memory: number;
416
419
  centsPerMs: number;
417
420
  } | undefined;
418
- batch?: {
419
- id: string;
420
- } | undefined;
421
421
  };
422
422
  traceContext: Record<string, unknown>;
423
423
  environment?: Record<string, string> | undefined;
@@ -478,48 +478,48 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
478
478
  maxDuration: z.ZodOptional<z.ZodNumber>;
479
479
  }, "strip", z.ZodTypeAny, {
480
480
  id: string;
481
- createdAt: Date;
481
+ startedAt: Date;
482
482
  payload: string;
483
483
  payloadType: string;
484
484
  tags: string[];
485
485
  isTest: boolean;
486
- startedAt: Date;
486
+ createdAt: Date;
487
+ durationMs: number;
487
488
  costInCents: number;
488
489
  baseCostInCents: number;
489
- durationMs: number;
490
- maxAttempts?: number | undefined;
491
- maxDuration?: number | undefined;
492
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
493
- version?: string | undefined;
494
490
  context?: any;
495
491
  idempotencyKey?: string | undefined;
492
+ maxAttempts?: number | undefined;
493
+ version?: string | undefined;
494
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
495
+ maxDuration?: number | undefined;
496
496
  }, {
497
497
  id: string;
498
- createdAt: Date;
499
498
  payload: string;
500
499
  payloadType: string;
501
500
  tags: string[];
502
- maxAttempts?: number | undefined;
503
- maxDuration?: number | undefined;
504
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
505
- version?: string | undefined;
501
+ createdAt: Date;
502
+ startedAt?: Date | undefined;
506
503
  context?: any;
507
- idempotencyKey?: string | undefined;
508
504
  isTest?: boolean | undefined;
509
- startedAt?: Date | undefined;
505
+ idempotencyKey?: string | undefined;
506
+ maxAttempts?: number | undefined;
507
+ durationMs?: number | undefined;
510
508
  costInCents?: number | undefined;
511
509
  baseCostInCents?: number | undefined;
512
- durationMs?: number | undefined;
510
+ version?: string | undefined;
511
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
512
+ maxDuration?: number | undefined;
513
513
  }>;
514
514
  queue: z.ZodObject<{
515
515
  id: z.ZodString;
516
516
  name: z.ZodString;
517
517
  }, "strip", z.ZodTypeAny, {
518
- id: string;
519
518
  name: string;
520
- }, {
521
519
  id: string;
520
+ }, {
522
521
  name: string;
522
+ id: string;
523
523
  }>;
524
524
  environment: z.ZodObject<{
525
525
  id: z.ZodString;
@@ -539,12 +539,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
539
539
  slug: z.ZodString;
540
540
  name: z.ZodString;
541
541
  }, "strip", z.ZodTypeAny, {
542
- id: string;
543
542
  name: string;
543
+ id: string;
544
544
  slug: string;
545
545
  }, {
546
- id: string;
547
546
  name: string;
547
+ id: string;
548
548
  slug: string;
549
549
  }>;
550
550
  project: z.ZodObject<{
@@ -553,13 +553,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
553
553
  slug: z.ZodString;
554
554
  name: z.ZodString;
555
555
  }, "strip", z.ZodTypeAny, {
556
- id: string;
557
556
  name: string;
557
+ id: string;
558
558
  slug: string;
559
559
  ref: string;
560
560
  }, {
561
- id: string;
562
561
  name: string;
562
+ id: string;
563
563
  slug: string;
564
564
  ref: string;
565
565
  }>;
@@ -593,12 +593,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
593
593
  version: z.ZodString;
594
594
  }, "strip", z.ZodTypeAny, {
595
595
  id: string;
596
- contentHash: string;
597
596
  version: string;
597
+ contentHash: string;
598
598
  }, {
599
599
  id: string;
600
- contentHash: string;
601
600
  version: string;
601
+ contentHash: string;
602
602
  }>;
603
603
  machine: z.ZodDefault<z.ZodObject<{
604
604
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
@@ -617,31 +617,11 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
617
617
  centsPerMs: number;
618
618
  }>>;
619
619
  }>, "strip", z.ZodTypeAny, {
620
- organization: {
621
- id: string;
622
- name: string;
623
- slug: string;
624
- };
625
- queue: {
626
- id: string;
627
- name: string;
628
- };
629
- machine: {
630
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
631
- cpu: number;
632
- memory: number;
633
- centsPerMs: number;
634
- };
635
620
  task: {
636
621
  id: string;
637
622
  filePath: string;
638
623
  exportName: string;
639
624
  };
640
- worker: {
641
- id: string;
642
- contentHash: string;
643
- version: string;
644
- };
645
625
  attempt: {
646
626
  number: number;
647
627
  status: string;
@@ -652,56 +632,62 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
652
632
  };
653
633
  run: {
654
634
  id: string;
655
- createdAt: Date;
635
+ startedAt: Date;
656
636
  payload: string;
657
637
  payloadType: string;
658
638
  tags: string[];
659
639
  isTest: boolean;
660
- startedAt: Date;
640
+ createdAt: Date;
641
+ durationMs: number;
661
642
  costInCents: number;
662
643
  baseCostInCents: number;
663
- durationMs: number;
664
- maxAttempts?: number | undefined;
665
- maxDuration?: number | undefined;
666
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
667
- version?: string | undefined;
668
644
  context?: any;
669
645
  idempotencyKey?: string | undefined;
646
+ maxAttempts?: number | undefined;
647
+ version?: string | undefined;
648
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
649
+ maxDuration?: number | undefined;
650
+ };
651
+ queue: {
652
+ name: string;
653
+ id: string;
670
654
  };
671
655
  environment: {
672
656
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
673
657
  id: string;
674
658
  slug: string;
675
659
  };
676
- project: {
660
+ organization: {
661
+ name: string;
677
662
  id: string;
663
+ slug: string;
664
+ };
665
+ project: {
678
666
  name: string;
667
+ id: string;
679
668
  slug: string;
680
669
  ref: string;
681
670
  };
671
+ machine: {
672
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
673
+ cpu: number;
674
+ memory: number;
675
+ centsPerMs: number;
676
+ };
677
+ worker: {
678
+ id: string;
679
+ version: string;
680
+ contentHash: string;
681
+ };
682
682
  batch?: {
683
683
  id: string;
684
684
  } | undefined;
685
685
  }, {
686
- organization: {
687
- id: string;
688
- name: string;
689
- slug: string;
690
- };
691
- queue: {
692
- id: string;
693
- name: string;
694
- };
695
686
  task: {
696
687
  id: string;
697
688
  filePath: string;
698
689
  exportName: string;
699
690
  };
700
- worker: {
701
- id: string;
702
- contentHash: string;
703
- version: string;
704
- };
705
691
  attempt: {
706
692
  number: number;
707
693
  status: string;
@@ -712,42 +698,56 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
712
698
  };
713
699
  run: {
714
700
  id: string;
715
- createdAt: Date;
716
701
  payload: string;
717
702
  payloadType: string;
718
703
  tags: string[];
719
- maxAttempts?: number | undefined;
720
- maxDuration?: number | undefined;
721
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
722
- version?: string | undefined;
704
+ createdAt: Date;
705
+ startedAt?: Date | undefined;
723
706
  context?: any;
724
- idempotencyKey?: string | undefined;
725
707
  isTest?: boolean | undefined;
726
- startedAt?: Date | undefined;
708
+ idempotencyKey?: string | undefined;
709
+ maxAttempts?: number | undefined;
710
+ durationMs?: number | undefined;
727
711
  costInCents?: number | undefined;
728
712
  baseCostInCents?: number | undefined;
729
- durationMs?: number | undefined;
713
+ version?: string | undefined;
714
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
715
+ maxDuration?: number | undefined;
716
+ };
717
+ queue: {
718
+ name: string;
719
+ id: string;
730
720
  };
731
721
  environment: {
732
722
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
733
723
  id: string;
734
724
  slug: string;
735
725
  };
736
- project: {
726
+ organization: {
727
+ name: string;
737
728
  id: string;
729
+ slug: string;
730
+ };
731
+ project: {
738
732
  name: string;
733
+ id: string;
739
734
  slug: string;
740
735
  ref: string;
741
736
  };
737
+ worker: {
738
+ id: string;
739
+ version: string;
740
+ contentHash: string;
741
+ };
742
+ batch?: {
743
+ id: string;
744
+ } | undefined;
742
745
  machine?: {
743
746
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
744
747
  cpu: number;
745
748
  memory: number;
746
749
  centsPerMs: number;
747
750
  } | undefined;
748
- batch?: {
749
- id: string;
750
- } | undefined;
751
751
  }>;
752
752
  export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
753
753
  export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
@@ -806,48 +806,48 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
806
806
  maxDuration: z.ZodOptional<z.ZodNumber>;
807
807
  }, "strip", z.ZodTypeAny, {
808
808
  id: string;
809
- createdAt: Date;
809
+ startedAt: Date;
810
810
  payload: string;
811
811
  payloadType: string;
812
812
  tags: string[];
813
813
  isTest: boolean;
814
- startedAt: Date;
814
+ createdAt: Date;
815
+ durationMs: number;
815
816
  costInCents: number;
816
817
  baseCostInCents: number;
817
- durationMs: number;
818
- maxAttempts?: number | undefined;
819
- maxDuration?: number | undefined;
820
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
821
- version?: string | undefined;
822
818
  context?: any;
823
819
  idempotencyKey?: string | undefined;
820
+ maxAttempts?: number | undefined;
821
+ version?: string | undefined;
822
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
823
+ maxDuration?: number | undefined;
824
824
  }, {
825
825
  id: string;
826
- createdAt: Date;
827
826
  payload: string;
828
827
  payloadType: string;
829
828
  tags: string[];
830
- maxAttempts?: number | undefined;
831
- maxDuration?: number | undefined;
832
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
833
- version?: string | undefined;
829
+ createdAt: Date;
830
+ startedAt?: Date | undefined;
834
831
  context?: any;
835
- idempotencyKey?: string | undefined;
836
832
  isTest?: boolean | undefined;
837
- startedAt?: Date | undefined;
833
+ idempotencyKey?: string | undefined;
834
+ maxAttempts?: number | undefined;
835
+ durationMs?: number | undefined;
838
836
  costInCents?: number | undefined;
839
837
  baseCostInCents?: number | undefined;
840
- durationMs?: number | undefined;
838
+ version?: string | undefined;
839
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
840
+ maxDuration?: number | undefined;
841
841
  }>;
842
842
  queue: z.ZodObject<{
843
843
  id: z.ZodString;
844
844
  name: z.ZodString;
845
845
  }, "strip", z.ZodTypeAny, {
846
- id: string;
847
846
  name: string;
848
- }, {
849
847
  id: string;
848
+ }, {
850
849
  name: string;
850
+ id: string;
851
851
  }>;
852
852
  environment: z.ZodObject<{
853
853
  id: z.ZodString;
@@ -867,12 +867,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
867
867
  slug: z.ZodString;
868
868
  name: z.ZodString;
869
869
  }, "strip", z.ZodTypeAny, {
870
- id: string;
871
870
  name: string;
871
+ id: string;
872
872
  slug: string;
873
873
  }, {
874
- id: string;
875
874
  name: string;
875
+ id: string;
876
876
  slug: string;
877
877
  }>;
878
878
  project: z.ZodObject<{
@@ -881,13 +881,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
881
881
  slug: z.ZodString;
882
882
  name: z.ZodString;
883
883
  }, "strip", z.ZodTypeAny, {
884
- id: string;
885
884
  name: string;
885
+ id: string;
886
886
  slug: string;
887
887
  ref: string;
888
888
  }, {
889
- id: string;
890
889
  name: string;
890
+ id: string;
891
891
  slug: string;
892
892
  ref: string;
893
893
  }>;
@@ -921,55 +921,35 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
921
921
  version: z.ZodString;
922
922
  }, "strip", z.ZodTypeAny, {
923
923
  id: string;
924
- contentHash: string;
925
924
  version: string;
925
+ contentHash: string;
926
926
  }, {
927
927
  id: string;
928
- contentHash: string;
929
928
  version: string;
929
+ contentHash: string;
930
930
  }>;
931
931
  machine: z.ZodDefault<z.ZodObject<{
932
932
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
933
933
  cpu: z.ZodNumber;
934
- memory: z.ZodNumber;
935
- centsPerMs: z.ZodNumber;
936
- }, "strip", z.ZodTypeAny, {
937
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
938
- cpu: number;
939
- memory: number;
940
- centsPerMs: number;
941
- }, {
942
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
943
- cpu: number;
944
- memory: number;
945
- centsPerMs: number;
946
- }>>;
947
- }>, "strip", z.ZodTypeAny, {
948
- organization: {
949
- id: string;
950
- name: string;
951
- slug: string;
952
- };
953
- queue: {
954
- id: string;
955
- name: string;
956
- };
957
- machine: {
934
+ memory: z.ZodNumber;
935
+ centsPerMs: z.ZodNumber;
936
+ }, "strip", z.ZodTypeAny, {
958
937
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
959
938
  cpu: number;
960
939
  memory: number;
961
940
  centsPerMs: number;
962
- };
941
+ }, {
942
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
943
+ cpu: number;
944
+ memory: number;
945
+ centsPerMs: number;
946
+ }>>;
947
+ }>, "strip", z.ZodTypeAny, {
963
948
  task: {
964
949
  id: string;
965
950
  filePath: string;
966
951
  exportName: string;
967
952
  };
968
- worker: {
969
- id: string;
970
- contentHash: string;
971
- version: string;
972
- };
973
953
  attempt: {
974
954
  number: number;
975
955
  status: string;
@@ -980,56 +960,62 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
980
960
  };
981
961
  run: {
982
962
  id: string;
983
- createdAt: Date;
963
+ startedAt: Date;
984
964
  payload: string;
985
965
  payloadType: string;
986
966
  tags: string[];
987
967
  isTest: boolean;
988
- startedAt: Date;
968
+ createdAt: Date;
969
+ durationMs: number;
989
970
  costInCents: number;
990
971
  baseCostInCents: number;
991
- durationMs: number;
992
- maxAttempts?: number | undefined;
993
- maxDuration?: number | undefined;
994
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
995
- version?: string | undefined;
996
972
  context?: any;
997
973
  idempotencyKey?: string | undefined;
974
+ maxAttempts?: number | undefined;
975
+ version?: string | undefined;
976
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
977
+ maxDuration?: number | undefined;
978
+ };
979
+ queue: {
980
+ name: string;
981
+ id: string;
998
982
  };
999
983
  environment: {
1000
984
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1001
985
  id: string;
1002
986
  slug: string;
1003
987
  };
1004
- project: {
988
+ organization: {
989
+ name: string;
1005
990
  id: string;
991
+ slug: string;
992
+ };
993
+ project: {
1006
994
  name: string;
995
+ id: string;
1007
996
  slug: string;
1008
997
  ref: string;
1009
998
  };
999
+ machine: {
1000
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1001
+ cpu: number;
1002
+ memory: number;
1003
+ centsPerMs: number;
1004
+ };
1005
+ worker: {
1006
+ id: string;
1007
+ version: string;
1008
+ contentHash: string;
1009
+ };
1010
1010
  batch?: {
1011
1011
  id: string;
1012
1012
  } | undefined;
1013
1013
  }, {
1014
- organization: {
1015
- id: string;
1016
- name: string;
1017
- slug: string;
1018
- };
1019
- queue: {
1020
- id: string;
1021
- name: string;
1022
- };
1023
1014
  task: {
1024
1015
  id: string;
1025
1016
  filePath: string;
1026
1017
  exportName: string;
1027
1018
  };
1028
- worker: {
1029
- id: string;
1030
- contentHash: string;
1031
- version: string;
1032
- };
1033
1019
  attempt: {
1034
1020
  number: number;
1035
1021
  status: string;
@@ -1040,72 +1026,66 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1040
1026
  };
1041
1027
  run: {
1042
1028
  id: string;
1043
- createdAt: Date;
1044
1029
  payload: string;
1045
1030
  payloadType: string;
1046
1031
  tags: string[];
1047
- maxAttempts?: number | undefined;
1048
- maxDuration?: number | undefined;
1049
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1050
- version?: string | undefined;
1032
+ createdAt: Date;
1033
+ startedAt?: Date | undefined;
1051
1034
  context?: any;
1052
- idempotencyKey?: string | undefined;
1053
1035
  isTest?: boolean | undefined;
1054
- startedAt?: Date | undefined;
1036
+ idempotencyKey?: string | undefined;
1037
+ maxAttempts?: number | undefined;
1038
+ durationMs?: number | undefined;
1055
1039
  costInCents?: number | undefined;
1056
1040
  baseCostInCents?: number | undefined;
1057
- durationMs?: number | undefined;
1041
+ version?: string | undefined;
1042
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1043
+ maxDuration?: number | undefined;
1044
+ };
1045
+ queue: {
1046
+ name: string;
1047
+ id: string;
1058
1048
  };
1059
1049
  environment: {
1060
1050
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1061
1051
  id: string;
1062
1052
  slug: string;
1063
1053
  };
1064
- project: {
1054
+ organization: {
1055
+ name: string;
1065
1056
  id: string;
1057
+ slug: string;
1058
+ };
1059
+ project: {
1066
1060
  name: string;
1061
+ id: string;
1067
1062
  slug: string;
1068
1063
  ref: string;
1069
1064
  };
1065
+ worker: {
1066
+ id: string;
1067
+ version: string;
1068
+ contentHash: string;
1069
+ };
1070
+ batch?: {
1071
+ id: string;
1072
+ } | undefined;
1070
1073
  machine?: {
1071
1074
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1072
1075
  cpu: number;
1073
1076
  memory: number;
1074
1077
  centsPerMs: number;
1075
1078
  } | undefined;
1076
- batch?: {
1077
- id: string;
1078
- } | undefined;
1079
1079
  }>;
1080
1080
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1081
1081
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1082
1082
  }, "strip", z.ZodTypeAny, {
1083
1083
  execution: {
1084
- organization: {
1085
- id: string;
1086
- name: string;
1087
- slug: string;
1088
- };
1089
- queue: {
1090
- id: string;
1091
- name: string;
1092
- };
1093
- machine: {
1094
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1095
- cpu: number;
1096
- memory: number;
1097
- centsPerMs: number;
1098
- };
1099
1084
  task: {
1100
1085
  id: string;
1101
1086
  filePath: string;
1102
1087
  exportName: string;
1103
1088
  };
1104
- worker: {
1105
- id: string;
1106
- contentHash: string;
1107
- version: string;
1108
- };
1109
1089
  attempt: {
1110
1090
  number: number;
1111
1091
  status: string;
@@ -1116,33 +1096,53 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1116
1096
  };
1117
1097
  run: {
1118
1098
  id: string;
1119
- createdAt: Date;
1099
+ startedAt: Date;
1120
1100
  payload: string;
1121
1101
  payloadType: string;
1122
1102
  tags: string[];
1123
1103
  isTest: boolean;
1124
- startedAt: Date;
1104
+ createdAt: Date;
1105
+ durationMs: number;
1125
1106
  costInCents: number;
1126
1107
  baseCostInCents: number;
1127
- durationMs: number;
1128
- maxAttempts?: number | undefined;
1129
- maxDuration?: number | undefined;
1130
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1131
- version?: string | undefined;
1132
1108
  context?: any;
1133
1109
  idempotencyKey?: string | undefined;
1110
+ maxAttempts?: number | undefined;
1111
+ version?: string | undefined;
1112
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1113
+ maxDuration?: number | undefined;
1114
+ };
1115
+ queue: {
1116
+ name: string;
1117
+ id: string;
1134
1118
  };
1135
1119
  environment: {
1136
1120
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1137
1121
  id: string;
1138
1122
  slug: string;
1139
1123
  };
1140
- project: {
1124
+ organization: {
1125
+ name: string;
1141
1126
  id: string;
1127
+ slug: string;
1128
+ };
1129
+ project: {
1142
1130
  name: string;
1131
+ id: string;
1143
1132
  slug: string;
1144
1133
  ref: string;
1145
1134
  };
1135
+ machine: {
1136
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1137
+ cpu: number;
1138
+ memory: number;
1139
+ centsPerMs: number;
1140
+ };
1141
+ worker: {
1142
+ id: string;
1143
+ version: string;
1144
+ contentHash: string;
1145
+ };
1146
1146
  batch?: {
1147
1147
  id: string;
1148
1148
  } | undefined;
@@ -1151,25 +1151,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1151
1151
  environment?: Record<string, string> | undefined;
1152
1152
  }, {
1153
1153
  execution: {
1154
- organization: {
1155
- id: string;
1156
- name: string;
1157
- slug: string;
1158
- };
1159
- queue: {
1160
- id: string;
1161
- name: string;
1162
- };
1163
1154
  task: {
1164
1155
  id: string;
1165
1156
  filePath: string;
1166
1157
  exportName: string;
1167
1158
  };
1168
- worker: {
1169
- id: string;
1170
- contentHash: string;
1171
- version: string;
1172
- };
1173
1159
  attempt: {
1174
1160
  number: number;
1175
1161
  status: string;
@@ -1180,42 +1166,56 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1180
1166
  };
1181
1167
  run: {
1182
1168
  id: string;
1183
- createdAt: Date;
1184
1169
  payload: string;
1185
1170
  payloadType: string;
1186
1171
  tags: string[];
1187
- maxAttempts?: number | undefined;
1188
- maxDuration?: number | undefined;
1189
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1190
- version?: string | undefined;
1172
+ createdAt: Date;
1173
+ startedAt?: Date | undefined;
1191
1174
  context?: any;
1192
- idempotencyKey?: string | undefined;
1193
1175
  isTest?: boolean | undefined;
1194
- startedAt?: Date | undefined;
1176
+ idempotencyKey?: string | undefined;
1177
+ maxAttempts?: number | undefined;
1178
+ durationMs?: number | undefined;
1195
1179
  costInCents?: number | undefined;
1196
1180
  baseCostInCents?: number | undefined;
1197
- durationMs?: number | undefined;
1181
+ version?: string | undefined;
1182
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1183
+ maxDuration?: number | undefined;
1184
+ };
1185
+ queue: {
1186
+ name: string;
1187
+ id: string;
1198
1188
  };
1199
1189
  environment: {
1200
1190
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1201
1191
  id: string;
1202
1192
  slug: string;
1203
1193
  };
1204
- project: {
1194
+ organization: {
1195
+ name: string;
1205
1196
  id: string;
1197
+ slug: string;
1198
+ };
1199
+ project: {
1206
1200
  name: string;
1201
+ id: string;
1207
1202
  slug: string;
1208
1203
  ref: string;
1209
1204
  };
1205
+ worker: {
1206
+ id: string;
1207
+ version: string;
1208
+ contentHash: string;
1209
+ };
1210
+ batch?: {
1211
+ id: string;
1212
+ } | undefined;
1210
1213
  machine?: {
1211
1214
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1212
1215
  cpu: number;
1213
1216
  memory: number;
1214
1217
  centsPerMs: number;
1215
1218
  } | undefined;
1216
- batch?: {
1217
- id: string;
1218
- } | undefined;
1219
1219
  };
1220
1220
  traceContext: Record<string, unknown>;
1221
1221
  environment?: Record<string, string> | undefined;
@@ -1561,12 +1561,12 @@ export declare const TaskMetadata: z.ZodObject<{
1561
1561
  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>]>>;
1562
1562
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1563
1563
  }, "strip", z.ZodTypeAny, {
1564
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1565
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1564
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1565
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1566
1566
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1567
1567
  }, {
1568
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1569
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1568
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1569
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1570
1570
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1571
1571
  }>>;
1572
1572
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -1583,11 +1583,16 @@ export declare const TaskMetadata: z.ZodObject<{
1583
1583
  maxDuration: z.ZodOptional<z.ZodNumber>;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
1585
  id: string;
1586
- description?: string | undefined;
1586
+ maxDuration?: number | undefined;
1587
1587
  queue?: {
1588
1588
  name?: string | undefined;
1589
1589
  concurrencyLimit?: number | undefined;
1590
1590
  } | undefined;
1591
+ machine?: {
1592
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1593
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1594
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1595
+ } | undefined;
1591
1596
  retry?: {
1592
1597
  maxAttempts?: number | undefined;
1593
1598
  factor?: number | undefined;
@@ -1595,24 +1600,24 @@ export declare const TaskMetadata: z.ZodObject<{
1595
1600
  maxTimeoutInMs?: number | undefined;
1596
1601
  randomize?: boolean | undefined;
1597
1602
  } | undefined;
1598
- machine?: {
1599
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1600
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1601
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1602
- } | undefined;
1603
+ description?: string | undefined;
1603
1604
  triggerSource?: string | undefined;
1604
1605
  schedule?: {
1605
1606
  cron: string;
1606
1607
  timezone: string;
1607
1608
  } | undefined;
1608
- maxDuration?: number | undefined;
1609
1609
  }, {
1610
1610
  id: string;
1611
- description?: string | undefined;
1611
+ maxDuration?: number | undefined;
1612
1612
  queue?: {
1613
1613
  name?: string | undefined;
1614
1614
  concurrencyLimit?: number | undefined;
1615
1615
  } | undefined;
1616
+ machine?: {
1617
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1618
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1619
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1620
+ } | undefined;
1616
1621
  retry?: {
1617
1622
  maxAttempts?: number | undefined;
1618
1623
  factor?: number | undefined;
@@ -1620,17 +1625,12 @@ export declare const TaskMetadata: z.ZodObject<{
1620
1625
  maxTimeoutInMs?: number | undefined;
1621
1626
  randomize?: boolean | undefined;
1622
1627
  } | undefined;
1623
- machine?: {
1624
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1625
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1626
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1627
- } | undefined;
1628
+ description?: string | undefined;
1628
1629
  triggerSource?: string | undefined;
1629
1630
  schedule?: {
1630
1631
  cron: string;
1631
1632
  timezone: string;
1632
1633
  } | undefined;
1633
- maxDuration?: number | undefined;
1634
1634
  }>;
1635
1635
  export type TaskMetadata = z.infer<typeof TaskMetadata>;
1636
1636
  export declare const TaskFile: z.ZodObject<{
@@ -1743,12 +1743,12 @@ export declare const TaskManifest: z.ZodObject<{
1743
1743
  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>]>>;
1744
1744
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1745
1745
  }, "strip", z.ZodTypeAny, {
1746
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1747
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1746
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1747
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1748
1748
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1749
1749
  }, {
1750
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1751
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1750
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1751
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1752
1752
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1753
1753
  }>>;
1754
1754
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -1768,11 +1768,16 @@ export declare const TaskManifest: z.ZodObject<{
1768
1768
  filePath: string;
1769
1769
  exportName: string;
1770
1770
  entryPoint: string;
1771
- description?: string | undefined;
1771
+ maxDuration?: number | undefined;
1772
1772
  queue?: {
1773
1773
  name?: string | undefined;
1774
1774
  concurrencyLimit?: number | undefined;
1775
1775
  } | undefined;
1776
+ machine?: {
1777
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1778
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1779
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1780
+ } | undefined;
1776
1781
  retry?: {
1777
1782
  maxAttempts?: number | undefined;
1778
1783
  factor?: number | undefined;
@@ -1780,27 +1785,27 @@ export declare const TaskManifest: z.ZodObject<{
1780
1785
  maxTimeoutInMs?: number | undefined;
1781
1786
  randomize?: boolean | undefined;
1782
1787
  } | undefined;
1783
- machine?: {
1784
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1785
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1786
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1787
- } | undefined;
1788
+ description?: string | undefined;
1788
1789
  triggerSource?: string | undefined;
1789
1790
  schedule?: {
1790
1791
  cron: string;
1791
1792
  timezone: string;
1792
1793
  } | undefined;
1793
- maxDuration?: number | undefined;
1794
1794
  }, {
1795
1795
  id: string;
1796
1796
  filePath: string;
1797
1797
  exportName: string;
1798
1798
  entryPoint: string;
1799
- description?: string | undefined;
1799
+ maxDuration?: number | undefined;
1800
1800
  queue?: {
1801
1801
  name?: string | undefined;
1802
1802
  concurrencyLimit?: number | undefined;
1803
1803
  } | undefined;
1804
+ machine?: {
1805
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1806
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1807
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1808
+ } | undefined;
1804
1809
  retry?: {
1805
1810
  maxAttempts?: number | undefined;
1806
1811
  factor?: number | undefined;
@@ -1808,17 +1813,12 @@ export declare const TaskManifest: z.ZodObject<{
1808
1813
  maxTimeoutInMs?: number | undefined;
1809
1814
  randomize?: boolean | undefined;
1810
1815
  } | undefined;
1811
- machine?: {
1812
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1813
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1814
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1815
- } | undefined;
1816
+ description?: string | undefined;
1816
1817
  triggerSource?: string | undefined;
1817
1818
  schedule?: {
1818
1819
  cron: string;
1819
1820
  timezone: string;
1820
1821
  } | undefined;
1821
- maxDuration?: number | undefined;
1822
1822
  }>;
1823
1823
  export type TaskManifest = z.infer<typeof TaskManifest>;
1824
1824
  export declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
@@ -1952,14 +1952,14 @@ export declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
1952
1952
  traceContext: Record<string, unknown>;
1953
1953
  runId: string;
1954
1954
  messageId: string;
1955
- attemptCount?: number | undefined;
1956
1955
  environment?: Record<string, string> | undefined;
1956
+ attemptCount?: number | undefined;
1957
1957
  }, {
1958
1958
  isTest: boolean;
1959
1959
  traceContext: Record<string, unknown>;
1960
1960
  runId: string;
1961
1961
  messageId: string;
1962
- attemptCount?: number | undefined;
1963
1962
  environment?: Record<string, string> | undefined;
1963
+ attemptCount?: number | undefined;
1964
1964
  }>;
1965
1965
  export type TaskRunExecutionLazyAttemptPayload = z.infer<typeof TaskRunExecutionLazyAttemptPayload>;