@trigger.dev/core 0.0.0-prerelease-20241128131418 → 0.0.0-prerelease-20241202120601

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.
@@ -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;
62
61
  payload: string;
63
62
  payloadType: string;
64
63
  tags: string[];
65
64
  isTest: boolean;
66
65
  createdAt: Date;
67
- durationMs: number;
66
+ startedAt: Date;
68
67
  costInCents: number;
69
68
  baseCostInCents: number;
69
+ durationMs: number;
70
70
  context?: any;
71
71
  idempotencyKey?: string | undefined;
72
72
  maxAttempts?: number | undefined;
73
- version?: string | undefined;
74
73
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
75
74
  maxDuration?: number | undefined;
75
+ version?: string | undefined;
76
76
  }, {
77
77
  id: string;
78
78
  payload: string;
79
79
  payloadType: string;
80
80
  tags: string[];
81
81
  createdAt: Date;
82
- startedAt?: Date | undefined;
83
82
  context?: any;
84
- isTest?: boolean | undefined;
85
83
  idempotencyKey?: string | undefined;
86
84
  maxAttempts?: number | undefined;
87
- durationMs?: number | undefined;
88
- costInCents?: number | undefined;
89
- baseCostInCents?: number | undefined;
90
- version?: string | undefined;
91
85
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
92
86
  maxDuration?: number | undefined;
87
+ version?: string | undefined;
88
+ isTest?: boolean | undefined;
89
+ startedAt?: Date | undefined;
90
+ costInCents?: number | undefined;
91
+ baseCostInCents?: number | undefined;
92
+ durationMs?: 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
- 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
  }>;
@@ -167,6 +167,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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
176
  filePath: string;
@@ -174,47 +178,43 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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;
185
- startedAt: Date;
186
189
  payload: string;
187
190
  payloadType: string;
188
191
  tags: string[];
189
192
  isTest: boolean;
190
193
  createdAt: Date;
191
- durationMs: number;
194
+ startedAt: Date;
192
195
  costInCents: number;
193
196
  baseCostInCents: number;
197
+ durationMs: number;
194
198
  context?: any;
195
199
  idempotencyKey?: string | undefined;
196
200
  maxAttempts?: number | undefined;
197
- version?: string | undefined;
198
201
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
199
202
  maxDuration?: number | undefined;
200
- };
201
- queue: {
202
- name: string;
203
- id: string;
203
+ version?: string | 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
  };
@@ -228,6 +228,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
228
228
  centsPerMs: number;
229
229
  } | undefined;
230
230
  }, {
231
+ queue: {
232
+ id: string;
233
+ name: string;
234
+ };
231
235
  task: {
232
236
  id: string;
233
237
  filePath: string;
@@ -235,8 +239,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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,35 +251,31 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
247
251
  payloadType: string;
248
252
  tags: string[];
249
253
  createdAt: Date;
250
- startedAt?: Date | undefined;
251
254
  context?: any;
252
- isTest?: boolean | undefined;
253
255
  idempotencyKey?: string | undefined;
254
256
  maxAttempts?: number | undefined;
255
- durationMs?: number | undefined;
256
- costInCents?: number | undefined;
257
- baseCostInCents?: number | undefined;
258
- version?: string | undefined;
259
257
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
260
258
  maxDuration?: number | undefined;
261
- };
262
- queue: {
263
- name: string;
264
- id: string;
259
+ version?: string | undefined;
260
+ isTest?: boolean | undefined;
261
+ startedAt?: Date | undefined;
262
+ costInCents?: number | undefined;
263
+ baseCostInCents?: number | undefined;
264
+ durationMs?: number | 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
  };
@@ -293,6 +293,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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
302
  filePath: string;
@@ -300,47 +304,43 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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;
311
- startedAt: Date;
312
315
  payload: string;
313
316
  payloadType: string;
314
317
  tags: string[];
315
318
  isTest: boolean;
316
319
  createdAt: Date;
317
- durationMs: number;
320
+ startedAt: Date;
318
321
  costInCents: number;
319
322
  baseCostInCents: number;
323
+ durationMs: number;
320
324
  context?: any;
321
325
  idempotencyKey?: string | undefined;
322
326
  maxAttempts?: number | undefined;
323
- version?: string | undefined;
324
327
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
325
328
  maxDuration?: number | undefined;
326
- };
327
- queue: {
328
- name: string;
329
- id: string;
329
+ version?: string | 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
  };
@@ -358,6 +358,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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
367
  filePath: string;
@@ -365,8 +369,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
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,35 +381,31 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
377
381
  payloadType: string;
378
382
  tags: string[];
379
383
  createdAt: Date;
380
- startedAt?: Date | undefined;
381
384
  context?: any;
382
- isTest?: boolean | undefined;
383
385
  idempotencyKey?: string | undefined;
384
386
  maxAttempts?: number | undefined;
385
- durationMs?: number | undefined;
386
- costInCents?: number | undefined;
387
- baseCostInCents?: number | undefined;
388
- version?: string | undefined;
389
387
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
390
388
  maxDuration?: number | undefined;
391
- };
392
- queue: {
393
- name: string;
394
- id: string;
389
+ version?: string | undefined;
390
+ isTest?: boolean | undefined;
391
+ startedAt?: Date | undefined;
392
+ costInCents?: number | undefined;
393
+ baseCostInCents?: number | undefined;
394
+ durationMs?: number | 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
  };
@@ -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;
482
481
  payload: string;
483
482
  payloadType: string;
484
483
  tags: string[];
485
484
  isTest: boolean;
486
485
  createdAt: Date;
487
- durationMs: number;
486
+ startedAt: Date;
488
487
  costInCents: number;
489
488
  baseCostInCents: number;
489
+ durationMs: number;
490
490
  context?: any;
491
491
  idempotencyKey?: string | undefined;
492
492
  maxAttempts?: number | undefined;
493
- version?: string | undefined;
494
493
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
495
494
  maxDuration?: number | undefined;
495
+ version?: string | undefined;
496
496
  }, {
497
497
  id: string;
498
498
  payload: string;
499
499
  payloadType: string;
500
500
  tags: string[];
501
501
  createdAt: Date;
502
- startedAt?: Date | undefined;
503
502
  context?: any;
504
- isTest?: boolean | undefined;
505
503
  idempotencyKey?: string | undefined;
506
504
  maxAttempts?: number | undefined;
507
- durationMs?: number | undefined;
508
- costInCents?: number | undefined;
509
- baseCostInCents?: number | undefined;
510
- version?: string | undefined;
511
505
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
512
506
  maxDuration?: number | undefined;
507
+ version?: string | undefined;
508
+ isTest?: boolean | undefined;
509
+ startedAt?: Date | undefined;
510
+ costInCents?: number | undefined;
511
+ baseCostInCents?: number | undefined;
512
+ durationMs?: 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
- 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
  }>;
@@ -617,6 +617,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
617
617
  centsPerMs: number;
618
618
  }>>;
619
619
  }>, "strip", z.ZodTypeAny, {
620
+ queue: {
621
+ id: string;
622
+ name: string;
623
+ };
620
624
  task: {
621
625
  id: string;
622
626
  filePath: string;
@@ -624,47 +628,43 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
624
628
  };
625
629
  attempt: {
626
630
  number: number;
627
- status: string;
628
631
  id: string;
632
+ status: string;
629
633
  startedAt: Date;
630
634
  backgroundWorkerId: string;
631
635
  backgroundWorkerTaskId: string;
632
636
  };
633
637
  run: {
634
638
  id: string;
635
- startedAt: Date;
636
639
  payload: string;
637
640
  payloadType: string;
638
641
  tags: string[];
639
642
  isTest: boolean;
640
643
  createdAt: Date;
641
- durationMs: number;
644
+ startedAt: Date;
642
645
  costInCents: number;
643
646
  baseCostInCents: number;
647
+ durationMs: number;
644
648
  context?: any;
645
649
  idempotencyKey?: string | undefined;
646
650
  maxAttempts?: number | undefined;
647
- version?: string | undefined;
648
651
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
649
652
  maxDuration?: number | undefined;
650
- };
651
- queue: {
652
- name: string;
653
- id: string;
653
+ version?: string | undefined;
654
654
  };
655
655
  environment: {
656
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
657
656
  id: string;
657
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
658
658
  slug: string;
659
659
  };
660
660
  organization: {
661
- name: string;
662
661
  id: string;
662
+ name: string;
663
663
  slug: string;
664
664
  };
665
665
  project: {
666
- name: string;
667
666
  id: string;
667
+ name: string;
668
668
  slug: string;
669
669
  ref: string;
670
670
  };
@@ -683,6 +683,10 @@ 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
692
  filePath: string;
@@ -690,8 +694,8 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
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
- startedAt?: Date | undefined;
706
709
  context?: any;
707
- isTest?: boolean | undefined;
708
710
  idempotencyKey?: string | undefined;
709
711
  maxAttempts?: number | undefined;
710
- durationMs?: number | undefined;
711
- costInCents?: number | undefined;
712
- baseCostInCents?: number | undefined;
713
- version?: string | undefined;
714
712
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
715
713
  maxDuration?: number | undefined;
716
- };
717
- queue: {
718
- name: string;
719
- id: string;
714
+ version?: string | undefined;
715
+ isTest?: boolean | undefined;
716
+ startedAt?: Date | undefined;
717
+ costInCents?: number | undefined;
718
+ baseCostInCents?: number | undefined;
719
+ durationMs?: number | 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
  };
@@ -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;
810
809
  payload: string;
811
810
  payloadType: string;
812
811
  tags: string[];
813
812
  isTest: boolean;
814
813
  createdAt: Date;
815
- durationMs: number;
814
+ startedAt: Date;
816
815
  costInCents: number;
817
816
  baseCostInCents: number;
817
+ durationMs: number;
818
818
  context?: any;
819
819
  idempotencyKey?: string | undefined;
820
820
  maxAttempts?: number | undefined;
821
- version?: string | undefined;
822
821
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
823
822
  maxDuration?: number | undefined;
823
+ version?: string | undefined;
824
824
  }, {
825
825
  id: string;
826
826
  payload: string;
827
827
  payloadType: string;
828
828
  tags: string[];
829
829
  createdAt: Date;
830
- startedAt?: Date | undefined;
831
830
  context?: any;
832
- isTest?: boolean | undefined;
833
831
  idempotencyKey?: string | undefined;
834
832
  maxAttempts?: number | undefined;
835
- durationMs?: number | undefined;
836
- costInCents?: number | undefined;
837
- baseCostInCents?: number | undefined;
838
- version?: string | undefined;
839
833
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
840
834
  maxDuration?: number | undefined;
835
+ version?: string | undefined;
836
+ isTest?: boolean | undefined;
837
+ startedAt?: Date | undefined;
838
+ costInCents?: number | undefined;
839
+ baseCostInCents?: number | undefined;
840
+ durationMs?: 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
- 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
  }>;
@@ -945,6 +945,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
945
945
  centsPerMs: number;
946
946
  }>>;
947
947
  }>, "strip", z.ZodTypeAny, {
948
+ queue: {
949
+ id: string;
950
+ name: string;
951
+ };
948
952
  task: {
949
953
  id: string;
950
954
  filePath: string;
@@ -952,47 +956,43 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
952
956
  };
953
957
  attempt: {
954
958
  number: number;
955
- status: string;
956
959
  id: string;
960
+ status: string;
957
961
  startedAt: Date;
958
962
  backgroundWorkerId: string;
959
963
  backgroundWorkerTaskId: string;
960
964
  };
961
965
  run: {
962
966
  id: string;
963
- startedAt: Date;
964
967
  payload: string;
965
968
  payloadType: string;
966
969
  tags: string[];
967
970
  isTest: boolean;
968
971
  createdAt: Date;
969
- durationMs: number;
972
+ startedAt: Date;
970
973
  costInCents: number;
971
974
  baseCostInCents: number;
975
+ durationMs: number;
972
976
  context?: any;
973
977
  idempotencyKey?: string | undefined;
974
978
  maxAttempts?: number | undefined;
975
- version?: string | undefined;
976
979
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
977
980
  maxDuration?: number | undefined;
978
- };
979
- queue: {
980
- name: string;
981
- id: string;
981
+ version?: string | undefined;
982
982
  };
983
983
  environment: {
984
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
985
984
  id: string;
985
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
986
986
  slug: string;
987
987
  };
988
988
  organization: {
989
- name: string;
990
989
  id: string;
990
+ name: string;
991
991
  slug: string;
992
992
  };
993
993
  project: {
994
- name: string;
995
994
  id: string;
995
+ name: string;
996
996
  slug: string;
997
997
  ref: string;
998
998
  };
@@ -1011,6 +1011,10 @@ 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
1020
  filePath: string;
@@ -1018,8 +1022,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
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
- startedAt?: Date | undefined;
1034
1037
  context?: any;
1035
- isTest?: boolean | undefined;
1036
1038
  idempotencyKey?: string | undefined;
1037
1039
  maxAttempts?: number | undefined;
1038
- durationMs?: number | undefined;
1039
- costInCents?: number | undefined;
1040
- baseCostInCents?: number | undefined;
1041
- version?: string | undefined;
1042
1040
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1043
1041
  maxDuration?: number | undefined;
1044
- };
1045
- queue: {
1046
- name: string;
1047
- id: string;
1042
+ version?: string | undefined;
1043
+ isTest?: boolean | undefined;
1044
+ startedAt?: Date | undefined;
1045
+ costInCents?: number | undefined;
1046
+ baseCostInCents?: number | undefined;
1047
+ durationMs?: number | 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
  };
@@ -1081,6 +1081,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
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
+ };
1084
1088
  task: {
1085
1089
  id: string;
1086
1090
  filePath: string;
@@ -1088,47 +1092,43 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1088
1092
  };
1089
1093
  attempt: {
1090
1094
  number: number;
1091
- status: string;
1092
1095
  id: string;
1096
+ status: string;
1093
1097
  startedAt: Date;
1094
1098
  backgroundWorkerId: string;
1095
1099
  backgroundWorkerTaskId: string;
1096
1100
  };
1097
1101
  run: {
1098
1102
  id: string;
1099
- startedAt: Date;
1100
1103
  payload: string;
1101
1104
  payloadType: string;
1102
1105
  tags: string[];
1103
1106
  isTest: boolean;
1104
1107
  createdAt: Date;
1105
- durationMs: number;
1108
+ startedAt: Date;
1106
1109
  costInCents: number;
1107
1110
  baseCostInCents: number;
1111
+ durationMs: number;
1108
1112
  context?: any;
1109
1113
  idempotencyKey?: string | undefined;
1110
1114
  maxAttempts?: number | undefined;
1111
- version?: string | undefined;
1112
1115
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1113
1116
  maxDuration?: number | undefined;
1114
- };
1115
- queue: {
1116
- name: string;
1117
- id: string;
1117
+ version?: string | undefined;
1118
1118
  };
1119
1119
  environment: {
1120
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1121
1120
  id: string;
1121
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1122
1122
  slug: string;
1123
1123
  };
1124
1124
  organization: {
1125
- name: string;
1126
1125
  id: string;
1126
+ name: string;
1127
1127
  slug: string;
1128
1128
  };
1129
1129
  project: {
1130
- name: string;
1131
1130
  id: string;
1131
+ name: string;
1132
1132
  slug: string;
1133
1133
  ref: string;
1134
1134
  };
@@ -1151,6 +1151,10 @@ 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
1160
  filePath: string;
@@ -1158,8 +1162,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
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
- startedAt?: Date | undefined;
1174
1177
  context?: any;
1175
- isTest?: boolean | undefined;
1176
1178
  idempotencyKey?: string | undefined;
1177
1179
  maxAttempts?: number | undefined;
1178
- durationMs?: number | undefined;
1179
- costInCents?: number | undefined;
1180
- baseCostInCents?: number | undefined;
1181
- version?: string | undefined;
1182
1180
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1183
1181
  maxDuration?: number | undefined;
1184
- };
1185
- queue: {
1186
- name: string;
1187
- id: string;
1182
+ version?: string | undefined;
1183
+ isTest?: boolean | undefined;
1184
+ startedAt?: Date | undefined;
1185
+ costInCents?: number | undefined;
1186
+ baseCostInCents?: number | undefined;
1187
+ durationMs?: number | 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
  };
@@ -1473,11 +1473,11 @@ export declare const ScheduleMetadata: z.ZodObject<{
1473
1473
  cron: z.ZodString;
1474
1474
  timezone: z.ZodString;
1475
1475
  }, "strip", z.ZodTypeAny, {
1476
- cron: string;
1477
1476
  timezone: string;
1478
- }, {
1479
1477
  cron: string;
1478
+ }, {
1480
1479
  timezone: string;
1480
+ cron: string;
1481
1481
  }>;
1482
1482
  export declare const TaskMetadata: z.ZodObject<{
1483
1483
  id: z.ZodString;
@@ -1574,25 +1574,20 @@ export declare const TaskMetadata: z.ZodObject<{
1574
1574
  cron: z.ZodString;
1575
1575
  timezone: z.ZodString;
1576
1576
  }, "strip", z.ZodTypeAny, {
1577
- cron: string;
1578
1577
  timezone: string;
1579
- }, {
1580
1578
  cron: string;
1579
+ }, {
1581
1580
  timezone: string;
1581
+ cron: string;
1582
1582
  }>>;
1583
1583
  maxDuration: z.ZodOptional<z.ZodNumber>;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
1585
  id: string;
1586
- maxDuration?: number | undefined;
1587
1586
  queue?: {
1588
1587
  name?: string | undefined;
1589
1588
  concurrencyLimit?: number | undefined;
1590
1589
  } | 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;
1590
+ maxDuration?: number | undefined;
1596
1591
  retry?: {
1597
1592
  maxAttempts?: number | undefined;
1598
1593
  factor?: number | undefined;
@@ -1601,23 +1596,23 @@ export declare const TaskMetadata: z.ZodObject<{
1601
1596
  randomize?: boolean | undefined;
1602
1597
  } | undefined;
1603
1598
  description?: string | undefined;
1604
- triggerSource?: string | undefined;
1605
1599
  schedule?: {
1606
- cron: string;
1607
1600
  timezone: string;
1601
+ cron: string;
1608
1602
  } | undefined;
1603
+ machine?: {
1604
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1605
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1606
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1607
+ } | undefined;
1608
+ triggerSource?: string | undefined;
1609
1609
  }, {
1610
1610
  id: string;
1611
- maxDuration?: number | undefined;
1612
1611
  queue?: {
1613
1612
  name?: string | undefined;
1614
1613
  concurrencyLimit?: number | undefined;
1615
1614
  } | 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;
1615
+ maxDuration?: number | undefined;
1621
1616
  retry?: {
1622
1617
  maxAttempts?: number | undefined;
1623
1618
  factor?: number | undefined;
@@ -1626,11 +1621,16 @@ export declare const TaskMetadata: z.ZodObject<{
1626
1621
  randomize?: boolean | undefined;
1627
1622
  } | undefined;
1628
1623
  description?: string | undefined;
1629
- triggerSource?: string | undefined;
1630
1624
  schedule?: {
1631
- cron: string;
1632
1625
  timezone: string;
1626
+ cron: string;
1627
+ } | undefined;
1628
+ machine?: {
1629
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1630
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1631
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1633
1632
  } | undefined;
1633
+ triggerSource?: string | undefined;
1634
1634
  }>;
1635
1635
  export type TaskMetadata = z.infer<typeof TaskMetadata>;
1636
1636
  export declare const TaskFile: z.ZodObject<{
@@ -1756,11 +1756,11 @@ export declare const TaskManifest: z.ZodObject<{
1756
1756
  cron: z.ZodString;
1757
1757
  timezone: z.ZodString;
1758
1758
  }, "strip", z.ZodTypeAny, {
1759
- cron: string;
1760
1759
  timezone: string;
1761
- }, {
1762
1760
  cron: string;
1761
+ }, {
1763
1762
  timezone: string;
1763
+ cron: string;
1764
1764
  }>>;
1765
1765
  maxDuration: z.ZodOptional<z.ZodNumber>;
1766
1766
  }, "strip", z.ZodTypeAny, {
@@ -1768,16 +1768,11 @@ export declare const TaskManifest: z.ZodObject<{
1768
1768
  filePath: string;
1769
1769
  exportName: string;
1770
1770
  entryPoint: string;
1771
- maxDuration?: number | undefined;
1772
1771
  queue?: {
1773
1772
  name?: string | undefined;
1774
1773
  concurrencyLimit?: number | undefined;
1775
1774
  } | 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;
1775
+ maxDuration?: number | undefined;
1781
1776
  retry?: {
1782
1777
  maxAttempts?: number | undefined;
1783
1778
  factor?: number | undefined;
@@ -1786,26 +1781,26 @@ export declare const TaskManifest: z.ZodObject<{
1786
1781
  randomize?: boolean | undefined;
1787
1782
  } | undefined;
1788
1783
  description?: string | undefined;
1789
- triggerSource?: string | undefined;
1790
1784
  schedule?: {
1791
- cron: string;
1792
1785
  timezone: string;
1786
+ cron: string;
1793
1787
  } | undefined;
1788
+ machine?: {
1789
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1790
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1791
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1792
+ } | undefined;
1793
+ triggerSource?: string | undefined;
1794
1794
  }, {
1795
1795
  id: string;
1796
1796
  filePath: string;
1797
1797
  exportName: string;
1798
1798
  entryPoint: string;
1799
- maxDuration?: number | undefined;
1800
1799
  queue?: {
1801
1800
  name?: string | undefined;
1802
1801
  concurrencyLimit?: number | undefined;
1803
1802
  } | 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;
1803
+ maxDuration?: number | undefined;
1809
1804
  retry?: {
1810
1805
  maxAttempts?: number | undefined;
1811
1806
  factor?: number | undefined;
@@ -1814,11 +1809,16 @@ export declare const TaskManifest: z.ZodObject<{
1814
1809
  randomize?: boolean | undefined;
1815
1810
  } | undefined;
1816
1811
  description?: string | undefined;
1817
- triggerSource?: string | undefined;
1818
1812
  schedule?: {
1819
- cron: string;
1820
1813
  timezone: string;
1814
+ cron: string;
1821
1815
  } | undefined;
1816
+ machine?: {
1817
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1818
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1819
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1820
+ } | undefined;
1821
+ triggerSource?: string | 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
- environment?: Record<string, string> | undefined;
1956
1955
  attemptCount?: number | undefined;
1956
+ environment?: Record<string, string> | undefined;
1957
1957
  }, {
1958
1958
  isTest: boolean;
1959
1959
  traceContext: Record<string, unknown>;
1960
1960
  runId: string;
1961
1961
  messageId: string;
1962
- environment?: Record<string, string> | undefined;
1963
1962
  attemptCount?: number | undefined;
1963
+ environment?: Record<string, string> | undefined;
1964
1964
  }>;
1965
1965
  export type TaskRunExecutionLazyAttemptPayload = z.infer<typeof TaskRunExecutionLazyAttemptPayload>;