@trigger.dev/core 0.0.0-prerelease-20250116162419 → 0.0.0-prerelease-20250116170357

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.
@@ -10,12 +10,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
10
10
  exportName: z.ZodString;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  id: string;
13
- filePath: string;
14
13
  exportName: string;
14
+ filePath: string;
15
15
  }, {
16
16
  id: string;
17
- filePath: string;
18
17
  exportName: string;
18
+ filePath: string;
19
19
  }>;
20
20
  attempt: z.ZodObject<{
21
21
  id: z.ZodString;
@@ -26,15 +26,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
26
26
  status: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  number: number;
29
- status: string;
30
29
  id: string;
30
+ status: string;
31
31
  startedAt: Date;
32
32
  backgroundWorkerId: string;
33
33
  backgroundWorkerTaskId: string;
34
34
  }, {
35
35
  number: number;
36
- status: string;
37
36
  id: string;
37
+ status: string;
38
38
  startedAt: Date;
39
39
  backgroundWorkerId: string;
40
40
  backgroundWorkerTaskId: string;
@@ -58,60 +58,60 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
58
58
  maxDuration: z.ZodOptional<z.ZodNumber>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  id: string;
61
+ startedAt: Date;
61
62
  payload: string;
62
63
  payloadType: string;
63
64
  tags: string[];
64
65
  isTest: boolean;
65
66
  createdAt: Date;
66
- startedAt: Date;
67
67
  durationMs: number;
68
68
  costInCents: number;
69
69
  baseCostInCents: number;
70
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
71
- context?: any;
72
- idempotencyKey?: string | undefined;
73
70
  maxAttempts?: number | undefined;
74
- version?: string | undefined;
75
71
  maxDuration?: number | undefined;
72
+ version?: string | undefined;
73
+ context?: any;
74
+ idempotencyKey?: string | undefined;
75
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
76
76
  }, {
77
77
  id: string;
78
78
  payload: string;
79
79
  payloadType: string;
80
80
  tags: string[];
81
81
  createdAt: Date;
82
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
82
+ maxAttempts?: number | undefined;
83
+ maxDuration?: number | undefined;
84
+ version?: string | undefined;
85
+ startedAt?: Date | undefined;
83
86
  context?: any;
84
87
  isTest?: boolean | undefined;
85
- startedAt?: Date | undefined;
86
88
  idempotencyKey?: string | undefined;
87
- maxAttempts?: number | undefined;
88
89
  durationMs?: number | undefined;
89
90
  costInCents?: number | undefined;
90
91
  baseCostInCents?: number | undefined;
91
- version?: string | undefined;
92
- maxDuration?: number | undefined;
92
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
93
93
  }>;
94
94
  queue: z.ZodObject<{
95
95
  id: z.ZodString;
96
96
  name: z.ZodString;
97
97
  }, "strip", z.ZodTypeAny, {
98
- name: string;
99
98
  id: string;
100
- }, {
101
99
  name: string;
100
+ }, {
102
101
  id: string;
102
+ name: string;
103
103
  }>;
104
104
  environment: z.ZodObject<{
105
105
  id: z.ZodString;
106
106
  slug: z.ZodString;
107
107
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
108
108
  }, "strip", z.ZodTypeAny, {
109
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
110
109
  id: string;
110
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
111
111
  slug: string;
112
112
  }, {
113
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
114
113
  id: string;
114
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
115
115
  slug: string;
116
116
  }>;
117
117
  organization: z.ZodObject<{
@@ -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
- name: string;
123
122
  id: string;
123
+ name: string;
124
124
  slug: string;
125
125
  }, {
126
- name: string;
127
126
  id: string;
127
+ name: 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
- name: string;
137
136
  id: string;
137
+ name: string;
138
138
  slug: string;
139
139
  ref: string;
140
140
  }, {
141
- name: string;
142
141
  id: string;
142
+ name: string;
143
143
  slug: string;
144
144
  ref: string;
145
145
  }>;
@@ -156,87 +156,91 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
156
156
  memory: z.ZodNumber;
157
157
  centsPerMs: z.ZodNumber;
158
158
  }, "strip", z.ZodTypeAny, {
159
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
159
160
  cpu: number;
160
161
  memory: number;
161
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
162
162
  centsPerMs: number;
163
163
  }, {
164
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
164
165
  cpu: number;
165
166
  memory: number;
166
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
167
167
  centsPerMs: number;
168
168
  }>>;
169
169
  }, "strip", z.ZodTypeAny, {
170
+ queue: {
171
+ id: string;
172
+ name: string;
173
+ };
170
174
  task: {
171
175
  id: string;
172
- filePath: string;
173
176
  exportName: string;
177
+ filePath: string;
174
178
  };
175
179
  attempt: {
176
180
  number: number;
177
- status: string;
178
181
  id: string;
182
+ status: string;
179
183
  startedAt: Date;
180
184
  backgroundWorkerId: string;
181
185
  backgroundWorkerTaskId: string;
182
186
  };
183
187
  run: {
184
188
  id: string;
189
+ startedAt: Date;
185
190
  payload: string;
186
191
  payloadType: string;
187
192
  tags: string[];
188
193
  isTest: boolean;
189
194
  createdAt: Date;
190
- startedAt: Date;
191
195
  durationMs: number;
192
196
  costInCents: number;
193
197
  baseCostInCents: number;
194
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
195
- context?: any;
196
- idempotencyKey?: string | undefined;
197
198
  maxAttempts?: number | undefined;
198
- version?: string | undefined;
199
199
  maxDuration?: number | undefined;
200
- };
201
- queue: {
202
- name: string;
203
- id: string;
200
+ version?: string | undefined;
201
+ context?: any;
202
+ idempotencyKey?: string | undefined;
203
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
204
204
  };
205
205
  environment: {
206
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
207
206
  id: string;
207
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
208
208
  slug: string;
209
209
  };
210
210
  organization: {
211
- name: string;
212
211
  id: string;
212
+ name: string;
213
213
  slug: string;
214
214
  };
215
215
  project: {
216
- name: string;
217
216
  id: string;
217
+ name: string;
218
218
  slug: string;
219
219
  ref: string;
220
220
  };
221
- batch?: {
222
- id: string;
223
- } | undefined;
224
221
  machine?: {
222
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
225
223
  cpu: number;
226
224
  memory: number;
227
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
228
225
  centsPerMs: number;
229
226
  } | undefined;
227
+ batch?: {
228
+ id: string;
229
+ } | undefined;
230
230
  }, {
231
+ queue: {
232
+ id: string;
233
+ name: string;
234
+ };
231
235
  task: {
232
236
  id: string;
233
- filePath: string;
234
237
  exportName: string;
238
+ filePath: string;
235
239
  };
236
240
  attempt: {
237
241
  number: number;
238
- status: string;
239
242
  id: string;
243
+ status: string;
240
244
  startedAt: Date;
241
245
  backgroundWorkerId: string;
242
246
  backgroundWorkerTaskId: string;
@@ -247,126 +251,126 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
247
251
  payloadType: string;
248
252
  tags: string[];
249
253
  createdAt: Date;
250
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
254
+ maxAttempts?: number | undefined;
255
+ maxDuration?: number | undefined;
256
+ version?: string | undefined;
257
+ startedAt?: Date | undefined;
251
258
  context?: any;
252
259
  isTest?: boolean | undefined;
253
- startedAt?: Date | undefined;
254
260
  idempotencyKey?: string | undefined;
255
- maxAttempts?: number | undefined;
256
261
  durationMs?: number | undefined;
257
262
  costInCents?: number | undefined;
258
263
  baseCostInCents?: number | undefined;
259
- version?: string | undefined;
260
- maxDuration?: number | undefined;
261
- };
262
- queue: {
263
- name: string;
264
- id: string;
264
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
265
265
  };
266
266
  environment: {
267
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
268
267
  id: string;
268
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
269
269
  slug: string;
270
270
  };
271
271
  organization: {
272
- name: string;
273
272
  id: string;
273
+ name: string;
274
274
  slug: string;
275
275
  };
276
276
  project: {
277
- name: string;
278
277
  id: string;
278
+ name: string;
279
279
  slug: string;
280
280
  ref: string;
281
281
  };
282
- batch?: {
283
- id: string;
284
- } | undefined;
285
282
  machine?: {
283
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
286
284
  cpu: number;
287
285
  memory: number;
288
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
289
286
  centsPerMs: number;
290
287
  } | 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
+ queue: {
297
+ id: string;
298
+ name: string;
299
+ };
296
300
  task: {
297
301
  id: string;
298
- filePath: string;
299
302
  exportName: string;
303
+ filePath: string;
300
304
  };
301
305
  attempt: {
302
306
  number: number;
303
- status: string;
304
307
  id: string;
308
+ status: string;
305
309
  startedAt: Date;
306
310
  backgroundWorkerId: string;
307
311
  backgroundWorkerTaskId: string;
308
312
  };
309
313
  run: {
310
314
  id: string;
315
+ startedAt: Date;
311
316
  payload: string;
312
317
  payloadType: string;
313
318
  tags: string[];
314
319
  isTest: boolean;
315
320
  createdAt: Date;
316
- startedAt: Date;
317
321
  durationMs: number;
318
322
  costInCents: number;
319
323
  baseCostInCents: number;
320
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
321
- context?: any;
322
- idempotencyKey?: string | undefined;
323
324
  maxAttempts?: number | undefined;
324
- version?: string | undefined;
325
325
  maxDuration?: number | undefined;
326
- };
327
- queue: {
328
- name: string;
329
- id: string;
326
+ version?: string | undefined;
327
+ context?: any;
328
+ idempotencyKey?: string | undefined;
329
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
330
330
  };
331
331
  environment: {
332
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
333
332
  id: string;
333
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
334
334
  slug: string;
335
335
  };
336
336
  organization: {
337
- name: string;
338
337
  id: string;
338
+ name: string;
339
339
  slug: string;
340
340
  };
341
341
  project: {
342
- name: string;
343
342
  id: string;
343
+ name: string;
344
344
  slug: string;
345
345
  ref: string;
346
346
  };
347
- batch?: {
348
- id: string;
349
- } | undefined;
350
347
  machine?: {
348
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
351
349
  cpu: number;
352
350
  memory: number;
353
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
354
351
  centsPerMs: number;
355
352
  } | 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
+ queue: {
362
+ id: string;
363
+ name: string;
364
+ };
361
365
  task: {
362
366
  id: string;
363
- filePath: string;
364
367
  exportName: string;
368
+ filePath: string;
365
369
  };
366
370
  attempt: {
367
371
  number: number;
368
- status: string;
369
372
  id: string;
373
+ status: string;
370
374
  startedAt: Date;
371
375
  backgroundWorkerId: string;
372
376
  backgroundWorkerTaskId: string;
@@ -377,47 +381,43 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
377
381
  payloadType: string;
378
382
  tags: string[];
379
383
  createdAt: Date;
380
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
384
+ maxAttempts?: number | undefined;
385
+ maxDuration?: number | undefined;
386
+ version?: string | undefined;
387
+ startedAt?: Date | undefined;
381
388
  context?: any;
382
389
  isTest?: boolean | undefined;
383
- startedAt?: Date | undefined;
384
390
  idempotencyKey?: string | undefined;
385
- maxAttempts?: number | undefined;
386
391
  durationMs?: number | undefined;
387
392
  costInCents?: number | undefined;
388
393
  baseCostInCents?: number | undefined;
389
- version?: string | undefined;
390
- maxDuration?: number | undefined;
391
- };
392
- queue: {
393
- name: string;
394
- id: string;
394
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
395
395
  };
396
396
  environment: {
397
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
398
397
  id: string;
398
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
399
399
  slug: string;
400
400
  };
401
401
  organization: {
402
- name: string;
403
402
  id: string;
403
+ name: string;
404
404
  slug: string;
405
405
  };
406
406
  project: {
407
- name: string;
408
407
  id: string;
408
+ name: string;
409
409
  slug: string;
410
410
  ref: string;
411
411
  };
412
- batch?: {
413
- id: string;
414
- } | undefined;
415
412
  machine?: {
413
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
416
414
  cpu: number;
417
415
  memory: number;
418
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
419
416
  centsPerMs: number;
420
417
  } | undefined;
418
+ batch?: {
419
+ id: string;
420
+ } | undefined;
421
421
  };
422
422
  traceContext: Record<string, unknown>;
423
423
  environment?: Record<string, string> | undefined;
@@ -430,12 +430,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
430
430
  exportName: z.ZodString;
431
431
  }, "strip", z.ZodTypeAny, {
432
432
  id: string;
433
- filePath: string;
434
433
  exportName: string;
434
+ filePath: string;
435
435
  }, {
436
436
  id: string;
437
- filePath: string;
438
437
  exportName: string;
438
+ filePath: string;
439
439
  }>;
440
440
  attempt: z.ZodObject<{
441
441
  id: z.ZodString;
@@ -446,15 +446,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
446
446
  status: z.ZodString;
447
447
  }, "strip", z.ZodTypeAny, {
448
448
  number: number;
449
- status: string;
450
449
  id: string;
450
+ status: string;
451
451
  startedAt: Date;
452
452
  backgroundWorkerId: string;
453
453
  backgroundWorkerTaskId: string;
454
454
  }, {
455
455
  number: number;
456
- status: string;
457
456
  id: string;
457
+ status: string;
458
458
  startedAt: Date;
459
459
  backgroundWorkerId: string;
460
460
  backgroundWorkerTaskId: string;
@@ -478,60 +478,60 @@ 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
+ startedAt: Date;
481
482
  payload: string;
482
483
  payloadType: string;
483
484
  tags: string[];
484
485
  isTest: boolean;
485
486
  createdAt: Date;
486
- startedAt: Date;
487
487
  durationMs: number;
488
488
  costInCents: number;
489
489
  baseCostInCents: number;
490
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
491
- context?: any;
492
- idempotencyKey?: string | undefined;
493
490
  maxAttempts?: number | undefined;
494
- version?: string | undefined;
495
491
  maxDuration?: number | undefined;
492
+ version?: string | undefined;
493
+ context?: any;
494
+ idempotencyKey?: string | undefined;
495
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
496
496
  }, {
497
497
  id: string;
498
498
  payload: string;
499
499
  payloadType: string;
500
500
  tags: string[];
501
501
  createdAt: Date;
502
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
502
+ maxAttempts?: number | undefined;
503
+ maxDuration?: number | undefined;
504
+ version?: string | undefined;
505
+ startedAt?: Date | undefined;
503
506
  context?: any;
504
507
  isTest?: boolean | undefined;
505
- startedAt?: Date | undefined;
506
508
  idempotencyKey?: string | undefined;
507
- maxAttempts?: number | undefined;
508
509
  durationMs?: number | undefined;
509
510
  costInCents?: number | undefined;
510
511
  baseCostInCents?: number | undefined;
511
- version?: string | undefined;
512
- maxDuration?: number | undefined;
512
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
513
513
  }>;
514
514
  queue: z.ZodObject<{
515
515
  id: z.ZodString;
516
516
  name: z.ZodString;
517
517
  }, "strip", z.ZodTypeAny, {
518
- name: string;
519
518
  id: string;
520
- }, {
521
519
  name: string;
520
+ }, {
522
521
  id: string;
522
+ name: string;
523
523
  }>;
524
524
  environment: z.ZodObject<{
525
525
  id: z.ZodString;
526
526
  slug: z.ZodString;
527
527
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
528
528
  }, "strip", z.ZodTypeAny, {
529
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
530
529
  id: string;
530
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
531
531
  slug: string;
532
532
  }, {
533
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
534
533
  id: string;
534
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
535
535
  slug: string;
536
536
  }>;
537
537
  organization: z.ZodObject<{
@@ -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
- name: string;
543
542
  id: string;
543
+ name: string;
544
544
  slug: string;
545
545
  }, {
546
- name: string;
547
546
  id: string;
547
+ name: 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
- name: string;
557
556
  id: string;
557
+ name: string;
558
558
  slug: string;
559
559
  ref: string;
560
560
  }, {
561
- name: string;
562
561
  id: string;
562
+ name: string;
563
563
  slug: string;
564
564
  ref: string;
565
565
  }>;
@@ -576,14 +576,14 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
576
576
  memory: z.ZodNumber;
577
577
  centsPerMs: z.ZodNumber;
578
578
  }, "strip", z.ZodTypeAny, {
579
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
579
580
  cpu: number;
580
581
  memory: number;
581
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
582
582
  centsPerMs: number;
583
583
  }, {
584
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
584
585
  cpu: number;
585
586
  memory: number;
586
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
587
587
  centsPerMs: number;
588
588
  }>>;
589
589
  }, {
@@ -606,74 +606,74 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
606
606
  memory: z.ZodNumber;
607
607
  centsPerMs: z.ZodNumber;
608
608
  }, "strip", z.ZodTypeAny, {
609
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
609
610
  cpu: number;
610
611
  memory: number;
611
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
612
612
  centsPerMs: number;
613
613
  }, {
614
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
614
615
  cpu: number;
615
616
  memory: number;
616
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
617
617
  centsPerMs: number;
618
618
  }>>;
619
619
  }>, "strip", z.ZodTypeAny, {
620
+ queue: {
621
+ id: string;
622
+ name: string;
623
+ };
624
+ machine: {
625
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
626
+ cpu: number;
627
+ memory: number;
628
+ centsPerMs: number;
629
+ };
620
630
  task: {
621
631
  id: string;
622
- filePath: string;
623
632
  exportName: string;
633
+ filePath: string;
624
634
  };
625
635
  attempt: {
626
636
  number: number;
627
- status: string;
628
637
  id: string;
638
+ status: string;
629
639
  startedAt: Date;
630
640
  backgroundWorkerId: string;
631
641
  backgroundWorkerTaskId: string;
632
642
  };
633
643
  run: {
634
644
  id: string;
645
+ startedAt: Date;
635
646
  payload: string;
636
647
  payloadType: string;
637
648
  tags: string[];
638
649
  isTest: boolean;
639
650
  createdAt: Date;
640
- startedAt: Date;
641
651
  durationMs: number;
642
652
  costInCents: number;
643
653
  baseCostInCents: number;
644
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
645
- context?: any;
646
- idempotencyKey?: string | undefined;
647
654
  maxAttempts?: number | undefined;
648
- version?: string | undefined;
649
655
  maxDuration?: number | undefined;
650
- };
651
- queue: {
652
- name: string;
653
- id: string;
656
+ version?: string | undefined;
657
+ context?: any;
658
+ idempotencyKey?: string | undefined;
659
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
654
660
  };
655
661
  environment: {
656
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
657
662
  id: string;
663
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
658
664
  slug: string;
659
665
  };
660
666
  organization: {
661
- name: string;
662
667
  id: string;
668
+ name: string;
663
669
  slug: string;
664
670
  };
665
671
  project: {
666
- name: string;
667
672
  id: string;
673
+ name: string;
668
674
  slug: string;
669
675
  ref: string;
670
676
  };
671
- machine: {
672
- cpu: number;
673
- memory: number;
674
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
675
- centsPerMs: number;
676
- };
677
677
  worker: {
678
678
  id: string;
679
679
  version: string;
@@ -683,15 +683,19 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
683
683
  id: string;
684
684
  } | undefined;
685
685
  }, {
686
+ queue: {
687
+ id: string;
688
+ name: string;
689
+ };
686
690
  task: {
687
691
  id: string;
688
- filePath: string;
689
692
  exportName: string;
693
+ filePath: string;
690
694
  };
691
695
  attempt: {
692
696
  number: number;
693
- status: string;
694
697
  id: string;
698
+ status: string;
695
699
  startedAt: Date;
696
700
  backgroundWorkerId: string;
697
701
  backgroundWorkerTaskId: string;
@@ -702,35 +706,31 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
702
706
  payloadType: string;
703
707
  tags: string[];
704
708
  createdAt: Date;
705
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
709
+ maxAttempts?: number | undefined;
710
+ maxDuration?: number | undefined;
711
+ version?: string | undefined;
712
+ startedAt?: Date | undefined;
706
713
  context?: any;
707
714
  isTest?: boolean | undefined;
708
- startedAt?: Date | undefined;
709
715
  idempotencyKey?: string | undefined;
710
- maxAttempts?: number | undefined;
711
716
  durationMs?: number | undefined;
712
717
  costInCents?: number | undefined;
713
718
  baseCostInCents?: number | undefined;
714
- version?: string | undefined;
715
- maxDuration?: number | undefined;
716
- };
717
- queue: {
718
- name: string;
719
- id: string;
719
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
720
720
  };
721
721
  environment: {
722
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
723
722
  id: string;
723
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
724
724
  slug: string;
725
725
  };
726
726
  organization: {
727
- name: string;
728
727
  id: string;
728
+ name: string;
729
729
  slug: string;
730
730
  };
731
731
  project: {
732
- name: string;
733
732
  id: string;
733
+ name: string;
734
734
  slug: string;
735
735
  ref: string;
736
736
  };
@@ -739,15 +739,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
739
739
  version: string;
740
740
  contentHash: string;
741
741
  };
742
- batch?: {
743
- id: string;
744
- } | undefined;
745
742
  machine?: {
743
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
746
744
  cpu: number;
747
745
  memory: number;
748
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
749
746
  centsPerMs: number;
750
747
  } | 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<{
@@ -758,12 +758,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
758
758
  exportName: z.ZodString;
759
759
  }, "strip", z.ZodTypeAny, {
760
760
  id: string;
761
- filePath: string;
762
761
  exportName: string;
762
+ filePath: string;
763
763
  }, {
764
764
  id: string;
765
- filePath: string;
766
765
  exportName: string;
766
+ filePath: string;
767
767
  }>;
768
768
  attempt: z.ZodObject<{
769
769
  id: z.ZodString;
@@ -774,15 +774,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
774
774
  status: z.ZodString;
775
775
  }, "strip", z.ZodTypeAny, {
776
776
  number: number;
777
- status: string;
778
777
  id: string;
778
+ status: string;
779
779
  startedAt: Date;
780
780
  backgroundWorkerId: string;
781
781
  backgroundWorkerTaskId: string;
782
782
  }, {
783
783
  number: number;
784
- status: string;
785
784
  id: string;
785
+ status: string;
786
786
  startedAt: Date;
787
787
  backgroundWorkerId: string;
788
788
  backgroundWorkerTaskId: string;
@@ -806,60 +806,60 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
806
806
  maxDuration: z.ZodOptional<z.ZodNumber>;
807
807
  }, "strip", z.ZodTypeAny, {
808
808
  id: string;
809
+ startedAt: Date;
809
810
  payload: string;
810
811
  payloadType: string;
811
812
  tags: string[];
812
813
  isTest: boolean;
813
814
  createdAt: Date;
814
- startedAt: Date;
815
815
  durationMs: number;
816
816
  costInCents: number;
817
- baseCostInCents: number;
818
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
819
- context?: any;
820
- idempotencyKey?: string | undefined;
817
+ baseCostInCents: number;
821
818
  maxAttempts?: number | undefined;
822
- version?: string | undefined;
823
819
  maxDuration?: number | undefined;
820
+ version?: string | undefined;
821
+ context?: any;
822
+ idempotencyKey?: string | undefined;
823
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
824
824
  }, {
825
825
  id: string;
826
826
  payload: string;
827
827
  payloadType: string;
828
828
  tags: string[];
829
829
  createdAt: Date;
830
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
830
+ maxAttempts?: number | undefined;
831
+ maxDuration?: number | undefined;
832
+ version?: string | undefined;
833
+ startedAt?: Date | undefined;
831
834
  context?: any;
832
835
  isTest?: boolean | undefined;
833
- startedAt?: Date | undefined;
834
836
  idempotencyKey?: string | undefined;
835
- maxAttempts?: number | undefined;
836
837
  durationMs?: number | undefined;
837
838
  costInCents?: number | undefined;
838
839
  baseCostInCents?: number | undefined;
839
- version?: string | undefined;
840
- maxDuration?: number | undefined;
840
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
841
841
  }>;
842
842
  queue: z.ZodObject<{
843
843
  id: z.ZodString;
844
844
  name: z.ZodString;
845
845
  }, "strip", z.ZodTypeAny, {
846
- name: string;
847
846
  id: string;
848
- }, {
849
847
  name: string;
848
+ }, {
850
849
  id: string;
850
+ name: string;
851
851
  }>;
852
852
  environment: z.ZodObject<{
853
853
  id: z.ZodString;
854
854
  slug: z.ZodString;
855
855
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
856
856
  }, "strip", z.ZodTypeAny, {
857
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
858
857
  id: string;
858
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
859
859
  slug: string;
860
860
  }, {
861
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
862
861
  id: string;
862
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
863
863
  slug: string;
864
864
  }>;
865
865
  organization: z.ZodObject<{
@@ -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
- name: string;
871
870
  id: string;
871
+ name: string;
872
872
  slug: string;
873
873
  }, {
874
- name: string;
875
874
  id: string;
875
+ name: 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
- name: string;
885
884
  id: string;
885
+ name: string;
886
886
  slug: string;
887
887
  ref: string;
888
888
  }, {
889
- name: string;
890
889
  id: string;
890
+ name: string;
891
891
  slug: string;
892
892
  ref: string;
893
893
  }>;
@@ -904,14 +904,14 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
904
904
  memory: z.ZodNumber;
905
905
  centsPerMs: z.ZodNumber;
906
906
  }, "strip", z.ZodTypeAny, {
907
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
907
908
  cpu: number;
908
909
  memory: number;
909
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
910
910
  centsPerMs: number;
911
911
  }, {
912
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
912
913
  cpu: number;
913
914
  memory: number;
914
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
915
915
  centsPerMs: number;
916
916
  }>>;
917
917
  }, {
@@ -934,74 +934,74 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
934
934
  memory: z.ZodNumber;
935
935
  centsPerMs: z.ZodNumber;
936
936
  }, "strip", z.ZodTypeAny, {
937
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
937
938
  cpu: number;
938
939
  memory: number;
939
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
940
940
  centsPerMs: number;
941
941
  }, {
942
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
942
943
  cpu: number;
943
944
  memory: number;
944
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
945
945
  centsPerMs: number;
946
946
  }>>;
947
947
  }>, "strip", z.ZodTypeAny, {
948
+ queue: {
949
+ id: string;
950
+ name: string;
951
+ };
952
+ machine: {
953
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
954
+ cpu: number;
955
+ memory: number;
956
+ centsPerMs: number;
957
+ };
948
958
  task: {
949
959
  id: string;
950
- filePath: string;
951
960
  exportName: string;
961
+ filePath: string;
952
962
  };
953
963
  attempt: {
954
964
  number: number;
955
- status: string;
956
965
  id: string;
966
+ status: string;
957
967
  startedAt: Date;
958
968
  backgroundWorkerId: string;
959
969
  backgroundWorkerTaskId: string;
960
970
  };
961
971
  run: {
962
972
  id: string;
973
+ startedAt: Date;
963
974
  payload: string;
964
975
  payloadType: string;
965
976
  tags: string[];
966
977
  isTest: boolean;
967
978
  createdAt: Date;
968
- startedAt: Date;
969
979
  durationMs: number;
970
980
  costInCents: number;
971
981
  baseCostInCents: number;
972
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
973
- context?: any;
974
- idempotencyKey?: string | undefined;
975
982
  maxAttempts?: number | undefined;
976
- version?: string | undefined;
977
983
  maxDuration?: number | undefined;
978
- };
979
- queue: {
980
- name: string;
981
- id: string;
984
+ version?: string | undefined;
985
+ context?: any;
986
+ idempotencyKey?: string | undefined;
987
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
982
988
  };
983
989
  environment: {
984
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
985
990
  id: string;
991
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
986
992
  slug: string;
987
993
  };
988
994
  organization: {
989
- name: string;
990
995
  id: string;
996
+ name: string;
991
997
  slug: string;
992
998
  };
993
999
  project: {
994
- name: string;
995
1000
  id: string;
1001
+ name: string;
996
1002
  slug: string;
997
1003
  ref: string;
998
1004
  };
999
- machine: {
1000
- cpu: number;
1001
- memory: number;
1002
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1003
- centsPerMs: number;
1004
- };
1005
1005
  worker: {
1006
1006
  id: string;
1007
1007
  version: string;
@@ -1011,15 +1011,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1011
1011
  id: string;
1012
1012
  } | undefined;
1013
1013
  }, {
1014
+ queue: {
1015
+ id: string;
1016
+ name: string;
1017
+ };
1014
1018
  task: {
1015
1019
  id: string;
1016
- filePath: string;
1017
1020
  exportName: string;
1021
+ filePath: string;
1018
1022
  };
1019
1023
  attempt: {
1020
1024
  number: number;
1021
- status: string;
1022
1025
  id: string;
1026
+ status: string;
1023
1027
  startedAt: Date;
1024
1028
  backgroundWorkerId: string;
1025
1029
  backgroundWorkerTaskId: string;
@@ -1030,35 +1034,31 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1030
1034
  payloadType: string;
1031
1035
  tags: string[];
1032
1036
  createdAt: Date;
1033
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1037
+ maxAttempts?: number | undefined;
1038
+ maxDuration?: number | undefined;
1039
+ version?: string | undefined;
1040
+ startedAt?: Date | undefined;
1034
1041
  context?: any;
1035
1042
  isTest?: boolean | undefined;
1036
- startedAt?: Date | undefined;
1037
1043
  idempotencyKey?: string | undefined;
1038
- maxAttempts?: number | undefined;
1039
1044
  durationMs?: number | undefined;
1040
1045
  costInCents?: number | undefined;
1041
1046
  baseCostInCents?: number | undefined;
1042
- version?: string | undefined;
1043
- maxDuration?: number | undefined;
1044
- };
1045
- queue: {
1046
- name: string;
1047
- id: string;
1047
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1048
1048
  };
1049
1049
  environment: {
1050
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1051
1050
  id: string;
1051
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1052
1052
  slug: string;
1053
1053
  };
1054
1054
  organization: {
1055
- name: string;
1056
1055
  id: string;
1056
+ name: string;
1057
1057
  slug: string;
1058
1058
  };
1059
1059
  project: {
1060
- name: string;
1061
1060
  id: string;
1061
+ name: string;
1062
1062
  slug: string;
1063
1063
  ref: string;
1064
1064
  };
@@ -1067,77 +1067,77 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1067
1067
  version: string;
1068
1068
  contentHash: string;
1069
1069
  };
1070
- batch?: {
1071
- id: string;
1072
- } | undefined;
1073
1070
  machine?: {
1071
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1074
1072
  cpu: number;
1075
1073
  memory: number;
1076
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1077
1074
  centsPerMs: number;
1078
1075
  } | 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
+ queue: {
1085
+ id: string;
1086
+ name: string;
1087
+ };
1088
+ machine: {
1089
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1090
+ cpu: number;
1091
+ memory: number;
1092
+ centsPerMs: number;
1093
+ };
1084
1094
  task: {
1085
1095
  id: string;
1086
- filePath: string;
1087
1096
  exportName: string;
1097
+ filePath: string;
1088
1098
  };
1089
1099
  attempt: {
1090
1100
  number: number;
1091
- status: string;
1092
1101
  id: string;
1102
+ status: string;
1093
1103
  startedAt: Date;
1094
1104
  backgroundWorkerId: string;
1095
1105
  backgroundWorkerTaskId: string;
1096
1106
  };
1097
1107
  run: {
1098
1108
  id: string;
1109
+ startedAt: Date;
1099
1110
  payload: string;
1100
1111
  payloadType: string;
1101
1112
  tags: string[];
1102
1113
  isTest: boolean;
1103
1114
  createdAt: Date;
1104
- startedAt: Date;
1105
1115
  durationMs: number;
1106
1116
  costInCents: number;
1107
1117
  baseCostInCents: number;
1108
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1109
- context?: any;
1110
- idempotencyKey?: string | undefined;
1111
1118
  maxAttempts?: number | undefined;
1112
- version?: string | undefined;
1113
1119
  maxDuration?: number | undefined;
1114
- };
1115
- queue: {
1116
- name: string;
1117
- id: string;
1120
+ version?: string | undefined;
1121
+ context?: any;
1122
+ idempotencyKey?: string | undefined;
1123
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1118
1124
  };
1119
1125
  environment: {
1120
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1121
1126
  id: string;
1127
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1122
1128
  slug: string;
1123
1129
  };
1124
1130
  organization: {
1125
- name: string;
1126
1131
  id: string;
1132
+ name: string;
1127
1133
  slug: string;
1128
1134
  };
1129
1135
  project: {
1130
- name: string;
1131
1136
  id: string;
1137
+ name: string;
1132
1138
  slug: string;
1133
1139
  ref: string;
1134
1140
  };
1135
- machine: {
1136
- cpu: number;
1137
- memory: number;
1138
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1139
- centsPerMs: number;
1140
- };
1141
1141
  worker: {
1142
1142
  id: string;
1143
1143
  version: string;
@@ -1151,15 +1151,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1151
1151
  environment?: Record<string, string> | undefined;
1152
1152
  }, {
1153
1153
  execution: {
1154
+ queue: {
1155
+ id: string;
1156
+ name: string;
1157
+ };
1154
1158
  task: {
1155
1159
  id: string;
1156
- filePath: string;
1157
1160
  exportName: string;
1161
+ filePath: string;
1158
1162
  };
1159
1163
  attempt: {
1160
1164
  number: number;
1161
- status: string;
1162
1165
  id: string;
1166
+ status: string;
1163
1167
  startedAt: Date;
1164
1168
  backgroundWorkerId: string;
1165
1169
  backgroundWorkerTaskId: string;
@@ -1170,35 +1174,31 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1170
1174
  payloadType: string;
1171
1175
  tags: string[];
1172
1176
  createdAt: Date;
1173
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1177
+ maxAttempts?: number | undefined;
1178
+ maxDuration?: number | undefined;
1179
+ version?: string | undefined;
1180
+ startedAt?: Date | undefined;
1174
1181
  context?: any;
1175
1182
  isTest?: boolean | undefined;
1176
- startedAt?: Date | undefined;
1177
1183
  idempotencyKey?: string | undefined;
1178
- maxAttempts?: number | undefined;
1179
1184
  durationMs?: number | undefined;
1180
1185
  costInCents?: number | undefined;
1181
1186
  baseCostInCents?: number | undefined;
1182
- version?: string | undefined;
1183
- maxDuration?: number | undefined;
1184
- };
1185
- queue: {
1186
- name: string;
1187
- id: string;
1187
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1188
1188
  };
1189
1189
  environment: {
1190
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1191
1190
  id: string;
1191
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1192
1192
  slug: string;
1193
1193
  };
1194
1194
  organization: {
1195
- name: string;
1196
1195
  id: string;
1196
+ name: string;
1197
1197
  slug: string;
1198
1198
  };
1199
1199
  project: {
1200
- name: string;
1201
1200
  id: string;
1201
+ name: string;
1202
1202
  slug: string;
1203
1203
  ref: string;
1204
1204
  };
@@ -1207,15 +1207,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1207
1207
  version: string;
1208
1208
  contentHash: string;
1209
1209
  };
1210
- batch?: {
1211
- id: string;
1212
- } | undefined;
1213
1210
  machine?: {
1211
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1214
1212
  cpu: number;
1215
1213
  memory: number;
1216
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1217
1214
  centsPerMs: number;
1218
1215
  } | undefined;
1216
+ batch?: {
1217
+ id: string;
1218
+ } | undefined;
1219
1219
  };
1220
1220
  traceContext: Record<string, unknown>;
1221
1221
  environment?: Record<string, string> | undefined;
@@ -1583,16 +1583,11 @@ export declare const TaskMetadata: z.ZodObject<{
1583
1583
  maxDuration: z.ZodOptional<z.ZodNumber>;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
1585
  id: string;
1586
- maxDuration?: number | undefined;
1586
+ description?: string | 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;
1596
1591
  retry?: {
1597
1592
  maxAttempts?: number | undefined;
1598
1593
  factor?: number | undefined;
@@ -1600,24 +1595,24 @@ export declare const TaskMetadata: z.ZodObject<{
1600
1595
  maxTimeoutInMs?: number | undefined;
1601
1596
  randomize?: boolean | undefined;
1602
1597
  } | undefined;
1603
- description?: string | undefined;
1598
+ machine?: {
1599
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1600
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1601
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1602
+ } | undefined;
1604
1603
  triggerSource?: string | undefined;
1605
1604
  schedule?: {
1606
1605
  cron: string;
1607
1606
  timezone: string;
1608
1607
  } | undefined;
1608
+ maxDuration?: number | undefined;
1609
1609
  }, {
1610
1610
  id: string;
1611
- maxDuration?: number | undefined;
1611
+ description?: string | 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;
1621
1616
  retry?: {
1622
1617
  maxAttempts?: number | undefined;
1623
1618
  factor?: number | undefined;
@@ -1625,12 +1620,17 @@ export declare const TaskMetadata: z.ZodObject<{
1625
1620
  maxTimeoutInMs?: number | undefined;
1626
1621
  randomize?: boolean | undefined;
1627
1622
  } | undefined;
1628
- description?: string | undefined;
1623
+ machine?: {
1624
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1625
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1626
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1627
+ } | undefined;
1629
1628
  triggerSource?: string | undefined;
1630
1629
  schedule?: {
1631
1630
  cron: string;
1632
1631
  timezone: string;
1633
1632
  } | undefined;
1633
+ maxDuration?: number | undefined;
1634
1634
  }>;
1635
1635
  export type TaskMetadata = z.infer<typeof TaskMetadata>;
1636
1636
  export declare const TaskFile: z.ZodObject<{
@@ -1649,12 +1649,12 @@ export declare const TaskFileMetadata: z.ZodObject<{
1649
1649
  exportName: z.ZodString;
1650
1650
  entryPoint: z.ZodString;
1651
1651
  }, "strip", z.ZodTypeAny, {
1652
- filePath: string;
1653
1652
  exportName: string;
1653
+ filePath: string;
1654
1654
  entryPoint: string;
1655
1655
  }, {
1656
- filePath: string;
1657
1656
  exportName: string;
1657
+ filePath: string;
1658
1658
  entryPoint: string;
1659
1659
  }>;
1660
1660
  export type TaskFileMetadata = z.infer<typeof TaskFileMetadata>;
@@ -1765,19 +1765,14 @@ export declare const TaskManifest: z.ZodObject<{
1765
1765
  maxDuration: z.ZodOptional<z.ZodNumber>;
1766
1766
  }, "strip", z.ZodTypeAny, {
1767
1767
  id: string;
1768
- filePath: string;
1769
1768
  exportName: string;
1769
+ filePath: string;
1770
1770
  entryPoint: string;
1771
- maxDuration?: number | undefined;
1771
+ description?: string | 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;
1781
1776
  retry?: {
1782
1777
  maxAttempts?: number | undefined;
1783
1778
  factor?: number | undefined;
@@ -1785,27 +1780,27 @@ export declare const TaskManifest: z.ZodObject<{
1785
1780
  maxTimeoutInMs?: number | undefined;
1786
1781
  randomize?: boolean | undefined;
1787
1782
  } | undefined;
1788
- description?: string | undefined;
1783
+ machine?: {
1784
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1785
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1786
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1787
+ } | undefined;
1789
1788
  triggerSource?: string | undefined;
1790
1789
  schedule?: {
1791
1790
  cron: string;
1792
1791
  timezone: string;
1793
1792
  } | undefined;
1793
+ maxDuration?: number | undefined;
1794
1794
  }, {
1795
1795
  id: string;
1796
- filePath: string;
1797
1796
  exportName: string;
1797
+ filePath: string;
1798
1798
  entryPoint: string;
1799
- maxDuration?: number | undefined;
1799
+ description?: string | 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;
1809
1804
  retry?: {
1810
1805
  maxAttempts?: number | undefined;
1811
1806
  factor?: number | undefined;
@@ -1813,12 +1808,17 @@ export declare const TaskManifest: z.ZodObject<{
1813
1808
  maxTimeoutInMs?: number | undefined;
1814
1809
  randomize?: boolean | undefined;
1815
1810
  } | undefined;
1816
- description?: string | undefined;
1811
+ machine?: {
1812
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1813
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1814
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1815
+ } | undefined;
1817
1816
  triggerSource?: string | undefined;
1818
1817
  schedule?: {
1819
1818
  cron: string;
1820
1819
  timezone: string;
1821
1820
  } | 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"]>;