@trigger.dev/core 0.0.0-v3-prerelease-20241203112040 → 0.0.0-v3-prerelease-20250108131948

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 (96) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/index.d.ts +161 -150
  3. package/dist/commonjs/v3/apiClient/index.js +20 -1
  4. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  5. package/dist/commonjs/v3/apiClient/runStream.d.ts +12 -3
  6. package/dist/commonjs/v3/apiClient/runStream.js +155 -60
  7. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  8. package/dist/commonjs/v3/apiClient/stream.d.ts +10 -1
  9. package/dist/commonjs/v3/apiClient/stream.js +181 -25
  10. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  11. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  12. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  13. package/dist/commonjs/v3/run-metadata-api.js +16 -0
  14. package/dist/commonjs/v3/run-metadata-api.js.map +1 -1
  15. package/dist/commonjs/v3/runMetadata/index.d.ts +13 -8
  16. package/dist/commonjs/v3/runMetadata/index.js +32 -13
  17. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  18. package/dist/commonjs/v3/runMetadata/manager.d.ts +25 -11
  19. package/dist/commonjs/v3/runMetadata/manager.js +180 -132
  20. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  21. package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +9 -7
  22. package/dist/commonjs/v3/runMetadata/metadataStream.js +44 -40
  23. package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -1
  24. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +13 -8
  25. package/dist/commonjs/v3/runMetadata/noopManager.js +44 -6
  26. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  27. package/dist/commonjs/v3/runMetadata/types.d.ts +16 -9
  28. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  29. package/dist/commonjs/v3/runtime/devRuntimeManager.js +9 -0
  30. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  31. package/dist/commonjs/v3/schemas/api.d.ts +1166 -747
  32. package/dist/commonjs/v3/schemas/api.js +26 -13
  33. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  34. package/dist/commonjs/v3/schemas/build.d.ts +262 -262
  35. package/dist/commonjs/v3/schemas/common.d.ts +3733 -12
  36. package/dist/commonjs/v3/schemas/common.js +45 -1
  37. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  38. package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
  39. package/dist/commonjs/v3/schemas/messages.d.ts +21871 -3889
  40. package/dist/commonjs/v3/schemas/resources.d.ts +88 -88
  41. package/dist/commonjs/v3/schemas/schemas.d.ts +485 -485
  42. package/dist/commonjs/v3/types/tasks.d.ts +25 -1
  43. package/dist/commonjs/v3/utils/ioSerialization.d.ts +4 -1
  44. package/dist/commonjs/v3/utils/ioSerialization.js +14 -2
  45. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  46. package/dist/commonjs/version.js +1 -1
  47. package/dist/esm/schemas/api.d.ts +8 -8
  48. package/dist/esm/v3/apiClient/index.d.ts +109 -98
  49. package/dist/esm/v3/apiClient/index.js +21 -2
  50. package/dist/esm/v3/apiClient/index.js.map +1 -1
  51. package/dist/esm/v3/apiClient/runStream.d.ts +12 -3
  52. package/dist/esm/v3/apiClient/runStream.js +153 -59
  53. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  54. package/dist/esm/v3/apiClient/stream.d.ts +10 -1
  55. package/dist/esm/v3/apiClient/stream.js +178 -25
  56. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  57. package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
  58. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  59. package/dist/esm/v3/run-metadata-api.js +2 -0
  60. package/dist/esm/v3/run-metadata-api.js.map +1 -1
  61. package/dist/esm/v3/runMetadata/index.d.ts +13 -8
  62. package/dist/esm/v3/runMetadata/index.js +32 -13
  63. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  64. package/dist/esm/v3/runMetadata/manager.d.ts +25 -11
  65. package/dist/esm/v3/runMetadata/manager.js +180 -132
  66. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  67. package/dist/esm/v3/runMetadata/metadataStream.d.ts +9 -7
  68. package/dist/esm/v3/runMetadata/metadataStream.js +44 -40
  69. package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -1
  70. package/dist/esm/v3/runMetadata/noopManager.d.ts +13 -8
  71. package/dist/esm/v3/runMetadata/noopManager.js +44 -6
  72. package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
  73. package/dist/esm/v3/runMetadata/operations.d.ts +6 -0
  74. package/dist/esm/v3/runMetadata/operations.js +112 -0
  75. package/dist/esm/v3/runMetadata/operations.js.map +1 -0
  76. package/dist/esm/v3/runMetadata/types.d.ts +16 -9
  77. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  78. package/dist/esm/v3/runtime/devRuntimeManager.js +9 -0
  79. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  80. package/dist/esm/v3/schemas/api.d.ts +811 -392
  81. package/dist/esm/v3/schemas/api.js +26 -13
  82. package/dist/esm/v3/schemas/api.js.map +1 -1
  83. package/dist/esm/v3/schemas/build.d.ts +316 -316
  84. package/dist/esm/v3/schemas/common.d.ts +3893 -172
  85. package/dist/esm/v3/schemas/common.js +44 -0
  86. package/dist/esm/v3/schemas/common.js.map +1 -1
  87. package/dist/esm/v3/schemas/fetch.d.ts +22 -22
  88. package/dist/esm/v3/schemas/messages.d.ts +20632 -2650
  89. package/dist/esm/v3/schemas/resources.d.ts +98 -98
  90. package/dist/esm/v3/schemas/schemas.d.ts +353 -353
  91. package/dist/esm/v3/types/tasks.d.ts +25 -1
  92. package/dist/esm/v3/utils/ioSerialization.d.ts +4 -1
  93. package/dist/esm/v3/utils/ioSerialization.js +14 -2
  94. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  95. package/dist/esm/version.js +1 -1
  96. package/package.json +2 -2
@@ -57,49 +57,49 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
57
57
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
58
58
  maxDuration: z.ZodOptional<z.ZodNumber>;
59
59
  }, "strip", z.ZodTypeAny, {
60
- payload: string;
61
60
  id: string;
62
- startedAt: Date;
63
- payloadType: string;
64
- isTest: boolean;
65
61
  createdAt: Date;
62
+ payload: string;
63
+ payloadType: string;
66
64
  tags: string[];
67
- durationMs: number;
65
+ isTest: boolean;
66
+ startedAt: Date;
68
67
  costInCents: number;
69
68
  baseCostInCents: number;
70
- context?: any;
71
- version?: string | undefined;
72
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
73
- idempotencyKey?: string | undefined;
69
+ durationMs: number;
74
70
  maxAttempts?: number | undefined;
75
71
  maxDuration?: number | undefined;
72
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
73
+ version?: string | undefined;
74
+ context?: any;
75
+ idempotencyKey?: string | undefined;
76
76
  }, {
77
- payload: string;
78
77
  id: string;
79
- payloadType: string;
80
78
  createdAt: Date;
79
+ payload: string;
80
+ payloadType: string;
81
81
  tags: string[];
82
- context?: any;
83
- version?: string | undefined;
82
+ maxAttempts?: number | undefined;
83
+ maxDuration?: number | undefined;
84
84
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
85
- startedAt?: Date | undefined;
85
+ version?: string | undefined;
86
+ context?: any;
86
87
  idempotencyKey?: string | undefined;
87
88
  isTest?: boolean | undefined;
88
- maxAttempts?: number | undefined;
89
- durationMs?: number | undefined;
89
+ startedAt?: Date | undefined;
90
90
  costInCents?: number | undefined;
91
91
  baseCostInCents?: number | undefined;
92
- maxDuration?: 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;
@@ -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,39 +167,75 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
167
167
  centsPerMs: number;
168
168
  }>>;
169
169
  }, "strip", z.ZodTypeAny, {
170
- run: {
171
- payload: string;
170
+ organization: {
171
+ id: string;
172
+ name: string;
173
+ slug: string;
174
+ };
175
+ queue: {
176
+ id: string;
177
+ name: string;
178
+ };
179
+ task: {
180
+ id: string;
181
+ filePath: string;
182
+ exportName: string;
183
+ };
184
+ attempt: {
185
+ number: number;
186
+ status: string;
172
187
  id: string;
173
188
  startedAt: Date;
174
- payloadType: string;
175
- isTest: boolean;
189
+ backgroundWorkerId: string;
190
+ backgroundWorkerTaskId: string;
191
+ };
192
+ run: {
193
+ id: string;
176
194
  createdAt: Date;
195
+ payload: string;
196
+ payloadType: string;
177
197
  tags: string[];
178
- durationMs: number;
198
+ isTest: boolean;
199
+ startedAt: Date;
179
200
  costInCents: number;
180
201
  baseCostInCents: number;
181
- context?: any;
182
- version?: string | undefined;
183
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
184
- idempotencyKey?: string | undefined;
202
+ durationMs: number;
185
203
  maxAttempts?: number | undefined;
186
204
  maxDuration?: number | undefined;
205
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
206
+ version?: string | undefined;
207
+ context?: any;
208
+ idempotencyKey?: string | undefined;
187
209
  };
188
210
  environment: {
189
211
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
190
212
  id: string;
191
213
  slug: string;
192
214
  };
193
- organization: {
194
- name: string;
215
+ project: {
195
216
  id: string;
217
+ name: string;
196
218
  slug: string;
219
+ ref: string;
197
220
  };
198
- project: {
199
- name: string;
221
+ machine?: {
222
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
223
+ cpu: number;
224
+ memory: number;
225
+ centsPerMs: number;
226
+ } | undefined;
227
+ batch?: {
200
228
  id: string;
229
+ } | undefined;
230
+ }, {
231
+ organization: {
232
+ id: string;
233
+ name: string;
201
234
  slug: string;
202
- ref: string;
235
+ };
236
+ queue: {
237
+ id: string;
238
+ name: string;
203
239
  };
204
240
  task: {
205
241
  id: string;
@@ -214,53 +250,57 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
214
250
  backgroundWorkerId: string;
215
251
  backgroundWorkerTaskId: string;
216
252
  };
217
- queue: {
218
- name: string;
219
- id: string;
220
- };
221
- batch?: {
222
- id: string;
223
- } | undefined;
224
- machine?: {
225
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
226
- cpu: number;
227
- memory: number;
228
- centsPerMs: number;
229
- } | undefined;
230
- }, {
231
253
  run: {
232
- payload: string;
233
254
  id: string;
234
- payloadType: string;
235
255
  createdAt: Date;
256
+ payload: string;
257
+ payloadType: string;
236
258
  tags: string[];
237
- context?: any;
238
- version?: string | undefined;
259
+ maxAttempts?: number | undefined;
260
+ maxDuration?: number | undefined;
239
261
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
240
- startedAt?: Date | undefined;
262
+ version?: string | undefined;
263
+ context?: any;
241
264
  idempotencyKey?: string | undefined;
242
265
  isTest?: boolean | undefined;
243
- maxAttempts?: number | undefined;
244
- durationMs?: number | undefined;
266
+ startedAt?: Date | undefined;
245
267
  costInCents?: number | undefined;
246
268
  baseCostInCents?: number | undefined;
247
- maxDuration?: number | undefined;
269
+ durationMs?: number | undefined;
248
270
  };
249
271
  environment: {
250
272
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
251
273
  id: string;
252
274
  slug: string;
253
275
  };
254
- organization: {
255
- name: string;
276
+ project: {
256
277
  id: string;
278
+ name: string;
257
279
  slug: string;
280
+ ref: string;
258
281
  };
259
- project: {
260
- name: string;
282
+ machine?: {
283
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
284
+ cpu: number;
285
+ memory: number;
286
+ centsPerMs: number;
287
+ } | undefined;
288
+ batch?: {
289
+ id: string;
290
+ } | undefined;
291
+ }>;
292
+ traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
293
+ environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ execution: {
296
+ organization: {
261
297
  id: string;
298
+ name: string;
262
299
  slug: string;
263
- ref: string;
300
+ };
301
+ queue: {
302
+ id: string;
303
+ name: string;
264
304
  };
265
305
  task: {
266
306
  id: string;
@@ -275,57 +315,57 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
275
315
  backgroundWorkerId: string;
276
316
  backgroundWorkerTaskId: string;
277
317
  };
278
- queue: {
279
- name: string;
280
- id: string;
281
- };
282
- batch?: {
283
- id: string;
284
- } | undefined;
285
- machine?: {
286
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
287
- cpu: number;
288
- memory: number;
289
- centsPerMs: number;
290
- } | undefined;
291
- }>;
292
- traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
293
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
- }, "strip", z.ZodTypeAny, {
295
- execution: {
296
318
  run: {
297
- payload: string;
298
319
  id: string;
299
- startedAt: Date;
300
- payloadType: string;
301
- isTest: boolean;
302
320
  createdAt: Date;
321
+ payload: string;
322
+ payloadType: string;
303
323
  tags: string[];
304
- durationMs: number;
324
+ isTest: boolean;
325
+ startedAt: Date;
305
326
  costInCents: number;
306
327
  baseCostInCents: number;
307
- context?: any;
308
- version?: string | undefined;
309
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
310
- idempotencyKey?: string | undefined;
328
+ durationMs: number;
311
329
  maxAttempts?: number | undefined;
312
330
  maxDuration?: number | undefined;
331
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
332
+ version?: string | undefined;
333
+ context?: any;
334
+ idempotencyKey?: string | undefined;
313
335
  };
314
336
  environment: {
315
337
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
316
338
  id: string;
317
339
  slug: string;
318
340
  };
319
- organization: {
320
- name: string;
341
+ project: {
321
342
  id: string;
343
+ name: string;
322
344
  slug: string;
345
+ ref: string;
323
346
  };
324
- project: {
325
- name: string;
347
+ machine?: {
348
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
349
+ cpu: number;
350
+ memory: number;
351
+ centsPerMs: number;
352
+ } | undefined;
353
+ batch?: {
354
+ id: string;
355
+ } | undefined;
356
+ };
357
+ traceContext: Record<string, unknown>;
358
+ environment?: Record<string, string> | undefined;
359
+ }, {
360
+ execution: {
361
+ organization: {
326
362
  id: string;
363
+ name: string;
327
364
  slug: string;
328
- ref: string;
365
+ };
366
+ queue: {
367
+ id: string;
368
+ name: string;
329
369
  };
330
370
  task: {
331
371
  id: string;
@@ -340,84 +380,44 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
340
380
  backgroundWorkerId: string;
341
381
  backgroundWorkerTaskId: string;
342
382
  };
343
- queue: {
344
- name: string;
345
- id: string;
346
- };
347
- batch?: {
348
- id: string;
349
- } | undefined;
350
- machine?: {
351
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
352
- cpu: number;
353
- memory: number;
354
- centsPerMs: number;
355
- } | undefined;
356
- };
357
- traceContext: Record<string, unknown>;
358
- environment?: Record<string, string> | undefined;
359
- }, {
360
- execution: {
361
383
  run: {
362
- payload: string;
363
384
  id: string;
364
- payloadType: string;
365
385
  createdAt: Date;
386
+ payload: string;
387
+ payloadType: string;
366
388
  tags: string[];
367
- context?: any;
368
- version?: string | undefined;
389
+ maxAttempts?: number | undefined;
390
+ maxDuration?: number | undefined;
369
391
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
370
- startedAt?: Date | undefined;
392
+ version?: string | undefined;
393
+ context?: any;
371
394
  idempotencyKey?: string | undefined;
372
395
  isTest?: boolean | undefined;
373
- maxAttempts?: number | undefined;
374
- durationMs?: number | undefined;
396
+ startedAt?: Date | undefined;
375
397
  costInCents?: number | undefined;
376
398
  baseCostInCents?: number | undefined;
377
- maxDuration?: number | undefined;
399
+ durationMs?: number | undefined;
378
400
  };
379
401
  environment: {
380
402
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
381
403
  id: string;
382
404
  slug: string;
383
405
  };
384
- organization: {
385
- name: string;
386
- id: string;
387
- slug: string;
388
- };
389
406
  project: {
390
- name: string;
391
407
  id: string;
408
+ name: string;
392
409
  slug: string;
393
410
  ref: string;
394
411
  };
395
- task: {
396
- id: string;
397
- filePath: string;
398
- exportName: string;
399
- };
400
- attempt: {
401
- number: number;
402
- status: string;
403
- id: string;
404
- startedAt: Date;
405
- backgroundWorkerId: string;
406
- backgroundWorkerTaskId: string;
407
- };
408
- queue: {
409
- name: string;
410
- id: string;
411
- };
412
- batch?: {
413
- id: string;
414
- } | undefined;
415
412
  machine?: {
416
413
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
417
414
  cpu: number;
418
415
  memory: number;
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;
@@ -477,49 +477,49 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
477
477
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
478
478
  maxDuration: z.ZodOptional<z.ZodNumber>;
479
479
  }, "strip", z.ZodTypeAny, {
480
- payload: string;
481
480
  id: string;
482
- startedAt: Date;
483
- payloadType: string;
484
- isTest: boolean;
485
481
  createdAt: Date;
482
+ payload: string;
483
+ payloadType: string;
486
484
  tags: string[];
487
- durationMs: number;
485
+ isTest: boolean;
486
+ startedAt: Date;
488
487
  costInCents: number;
489
488
  baseCostInCents: number;
490
- context?: any;
491
- version?: string | undefined;
492
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
493
- idempotencyKey?: string | undefined;
489
+ durationMs: number;
494
490
  maxAttempts?: number | undefined;
495
491
  maxDuration?: number | undefined;
492
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
493
+ version?: string | undefined;
494
+ context?: any;
495
+ idempotencyKey?: string | undefined;
496
496
  }, {
497
- payload: string;
498
497
  id: string;
499
- payloadType: string;
500
498
  createdAt: Date;
499
+ payload: string;
500
+ payloadType: string;
501
501
  tags: string[];
502
- context?: any;
503
- version?: string | undefined;
502
+ maxAttempts?: number | undefined;
503
+ maxDuration?: number | undefined;
504
504
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
505
- startedAt?: Date | undefined;
505
+ version?: string | undefined;
506
+ context?: any;
506
507
  idempotencyKey?: string | undefined;
507
508
  isTest?: boolean | undefined;
508
- maxAttempts?: number | undefined;
509
- durationMs?: number | undefined;
509
+ startedAt?: Date | undefined;
510
510
  costInCents?: number | undefined;
511
511
  baseCostInCents?: number | undefined;
512
- maxDuration?: 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;
@@ -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
  }>;
@@ -592,13 +592,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
592
592
  contentHash: z.ZodString;
593
593
  version: z.ZodString;
594
594
  }, "strip", z.ZodTypeAny, {
595
- version: string;
596
595
  id: string;
597
596
  contentHash: string;
598
- }, {
599
597
  version: string;
598
+ }, {
600
599
  id: string;
601
600
  contentHash: string;
601
+ version: 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,56 +617,14 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
617
617
  centsPerMs: number;
618
618
  }>>;
619
619
  }>, "strip", z.ZodTypeAny, {
620
- run: {
621
- payload: string;
622
- id: string;
623
- startedAt: Date;
624
- payloadType: string;
625
- isTest: boolean;
626
- createdAt: Date;
627
- tags: string[];
628
- durationMs: number;
629
- costInCents: number;
630
- baseCostInCents: number;
631
- context?: any;
632
- version?: string | undefined;
633
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
634
- idempotencyKey?: string | undefined;
635
- maxAttempts?: number | undefined;
636
- maxDuration?: number | undefined;
637
- };
638
- environment: {
639
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
640
- id: string;
641
- slug: string;
642
- };
643
620
  organization: {
644
- name: string;
645
621
  id: string;
646
- slug: string;
647
- };
648
- project: {
649
622
  name: string;
650
- id: string;
651
623
  slug: string;
652
- ref: string;
653
- };
654
- task: {
655
- id: string;
656
- filePath: string;
657
- exportName: string;
658
- };
659
- attempt: {
660
- number: number;
661
- status: string;
662
- id: string;
663
- startedAt: Date;
664
- backgroundWorkerId: string;
665
- backgroundWorkerTaskId: string;
666
624
  };
667
625
  queue: {
668
- name: string;
669
626
  id: string;
627
+ name: string;
670
628
  };
671
629
  machine: {
672
630
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
@@ -674,54 +632,76 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
674
632
  memory: number;
675
633
  centsPerMs: number;
676
634
  };
635
+ task: {
636
+ id: string;
637
+ filePath: string;
638
+ exportName: string;
639
+ };
677
640
  worker: {
678
- version: string;
679
641
  id: string;
680
642
  contentHash: string;
643
+ version: string;
681
644
  };
682
- batch?: {
645
+ attempt: {
646
+ number: number;
647
+ status: string;
683
648
  id: string;
684
- } | undefined;
685
- }, {
649
+ startedAt: Date;
650
+ backgroundWorkerId: string;
651
+ backgroundWorkerTaskId: string;
652
+ };
686
653
  run: {
687
- payload: string;
688
654
  id: string;
689
- payloadType: string;
690
655
  createdAt: Date;
656
+ payload: string;
657
+ payloadType: string;
691
658
  tags: string[];
692
- context?: any;
693
- version?: string | undefined;
694
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
695
- startedAt?: Date | undefined;
696
- idempotencyKey?: string | undefined;
697
- isTest?: boolean | undefined;
659
+ isTest: boolean;
660
+ startedAt: Date;
661
+ costInCents: number;
662
+ baseCostInCents: number;
663
+ durationMs: number;
698
664
  maxAttempts?: number | undefined;
699
- durationMs?: number | undefined;
700
- costInCents?: number | undefined;
701
- baseCostInCents?: number | undefined;
702
665
  maxDuration?: number | undefined;
666
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
667
+ version?: string | undefined;
668
+ context?: any;
669
+ idempotencyKey?: string | undefined;
703
670
  };
704
671
  environment: {
705
672
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
706
673
  id: string;
707
674
  slug: string;
708
675
  };
709
- organization: {
710
- name: string;
676
+ project: {
711
677
  id: string;
678
+ name: string;
712
679
  slug: string;
680
+ ref: string;
713
681
  };
714
- project: {
715
- name: string;
682
+ batch?: {
683
+ id: string;
684
+ } | undefined;
685
+ }, {
686
+ organization: {
716
687
  id: string;
688
+ name: string;
717
689
  slug: string;
718
- ref: string;
690
+ };
691
+ queue: {
692
+ id: string;
693
+ name: string;
719
694
  };
720
695
  task: {
721
696
  id: string;
722
697
  filePath: string;
723
698
  exportName: string;
724
699
  };
700
+ worker: {
701
+ id: string;
702
+ contentHash: string;
703
+ version: string;
704
+ };
725
705
  attempt: {
726
706
  number: number;
727
707
  status: string;
@@ -730,24 +710,44 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
730
710
  backgroundWorkerId: string;
731
711
  backgroundWorkerTaskId: string;
732
712
  };
733
- queue: {
734
- name: string;
713
+ run: {
735
714
  id: string;
715
+ createdAt: Date;
716
+ payload: string;
717
+ payloadType: string;
718
+ tags: string[];
719
+ maxAttempts?: number | undefined;
720
+ maxDuration?: number | undefined;
721
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
722
+ version?: string | undefined;
723
+ context?: any;
724
+ idempotencyKey?: string | undefined;
725
+ isTest?: boolean | undefined;
726
+ startedAt?: Date | undefined;
727
+ costInCents?: number | undefined;
728
+ baseCostInCents?: number | undefined;
729
+ durationMs?: number | undefined;
736
730
  };
737
- worker: {
738
- version: string;
731
+ environment: {
732
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
739
733
  id: string;
740
- contentHash: string;
734
+ slug: string;
741
735
  };
742
- batch?: {
736
+ project: {
743
737
  id: string;
744
- } | undefined;
738
+ name: string;
739
+ slug: string;
740
+ ref: string;
741
+ };
745
742
  machine?: {
746
743
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
747
744
  cpu: number;
748
745
  memory: number;
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<{
@@ -805,49 +805,49 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
805
805
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
806
806
  maxDuration: z.ZodOptional<z.ZodNumber>;
807
807
  }, "strip", z.ZodTypeAny, {
808
- payload: string;
809
808
  id: string;
810
- startedAt: Date;
811
- payloadType: string;
812
- isTest: boolean;
813
809
  createdAt: Date;
810
+ payload: string;
811
+ payloadType: string;
814
812
  tags: string[];
815
- durationMs: number;
813
+ isTest: boolean;
814
+ startedAt: Date;
816
815
  costInCents: number;
817
816
  baseCostInCents: number;
818
- context?: any;
819
- version?: string | undefined;
820
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
821
- idempotencyKey?: string | undefined;
817
+ durationMs: number;
822
818
  maxAttempts?: number | undefined;
823
819
  maxDuration?: number | undefined;
820
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
821
+ version?: string | undefined;
822
+ context?: any;
823
+ idempotencyKey?: string | undefined;
824
824
  }, {
825
- payload: string;
826
825
  id: string;
827
- payloadType: string;
828
826
  createdAt: Date;
827
+ payload: string;
828
+ payloadType: string;
829
829
  tags: string[];
830
- context?: any;
831
- version?: string | undefined;
830
+ maxAttempts?: number | undefined;
831
+ maxDuration?: number | undefined;
832
832
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
833
- startedAt?: Date | undefined;
833
+ version?: string | undefined;
834
+ context?: any;
834
835
  idempotencyKey?: string | undefined;
835
836
  isTest?: boolean | undefined;
836
- maxAttempts?: number | undefined;
837
- durationMs?: number | undefined;
837
+ startedAt?: Date | undefined;
838
838
  costInCents?: number | undefined;
839
839
  baseCostInCents?: number | undefined;
840
- maxDuration?: 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;
@@ -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
  }>;
@@ -920,13 +920,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
920
920
  contentHash: z.ZodString;
921
921
  version: z.ZodString;
922
922
  }, "strip", z.ZodTypeAny, {
923
- version: string;
924
923
  id: string;
925
924
  contentHash: string;
926
- }, {
927
925
  version: string;
926
+ }, {
928
927
  id: string;
929
928
  contentHash: string;
929
+ version: 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"]>;
@@ -945,56 +945,14 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
945
945
  centsPerMs: number;
946
946
  }>>;
947
947
  }>, "strip", z.ZodTypeAny, {
948
- run: {
949
- payload: string;
950
- id: string;
951
- startedAt: Date;
952
- payloadType: string;
953
- isTest: boolean;
954
- createdAt: Date;
955
- tags: string[];
956
- durationMs: number;
957
- costInCents: number;
958
- baseCostInCents: number;
959
- context?: any;
960
- version?: string | undefined;
961
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
962
- idempotencyKey?: string | undefined;
963
- maxAttempts?: number | undefined;
964
- maxDuration?: number | undefined;
965
- };
966
- environment: {
967
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
968
- id: string;
969
- slug: string;
970
- };
971
948
  organization: {
972
- name: string;
973
949
  id: string;
974
- slug: string;
975
- };
976
- project: {
977
950
  name: string;
978
- id: string;
979
951
  slug: string;
980
- ref: string;
981
- };
982
- task: {
983
- id: string;
984
- filePath: string;
985
- exportName: string;
986
- };
987
- attempt: {
988
- number: number;
989
- status: string;
990
- id: string;
991
- startedAt: Date;
992
- backgroundWorkerId: string;
993
- backgroundWorkerTaskId: string;
994
952
  };
995
953
  queue: {
996
- name: string;
997
954
  id: string;
955
+ name: string;
998
956
  };
999
957
  machine: {
1000
958
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
@@ -1002,54 +960,76 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1002
960
  memory: number;
1003
961
  centsPerMs: number;
1004
962
  };
963
+ task: {
964
+ id: string;
965
+ filePath: string;
966
+ exportName: string;
967
+ };
1005
968
  worker: {
1006
- version: string;
1007
969
  id: string;
1008
970
  contentHash: string;
971
+ version: string;
1009
972
  };
1010
- batch?: {
973
+ attempt: {
974
+ number: number;
975
+ status: string;
1011
976
  id: string;
1012
- } | undefined;
1013
- }, {
977
+ startedAt: Date;
978
+ backgroundWorkerId: string;
979
+ backgroundWorkerTaskId: string;
980
+ };
1014
981
  run: {
1015
- payload: string;
1016
982
  id: string;
1017
- payloadType: string;
1018
983
  createdAt: Date;
984
+ payload: string;
985
+ payloadType: string;
1019
986
  tags: string[];
1020
- context?: any;
1021
- version?: string | undefined;
1022
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1023
- startedAt?: Date | undefined;
1024
- idempotencyKey?: string | undefined;
1025
- isTest?: boolean | undefined;
987
+ isTest: boolean;
988
+ startedAt: Date;
989
+ costInCents: number;
990
+ baseCostInCents: number;
991
+ durationMs: number;
1026
992
  maxAttempts?: number | undefined;
1027
- durationMs?: number | undefined;
1028
- costInCents?: number | undefined;
1029
- baseCostInCents?: number | undefined;
1030
993
  maxDuration?: number | undefined;
994
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
995
+ version?: string | undefined;
996
+ context?: any;
997
+ idempotencyKey?: string | undefined;
1031
998
  };
1032
999
  environment: {
1033
1000
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1034
1001
  id: string;
1035
1002
  slug: string;
1036
1003
  };
1037
- organization: {
1038
- name: string;
1004
+ project: {
1039
1005
  id: string;
1006
+ name: string;
1040
1007
  slug: string;
1008
+ ref: string;
1041
1009
  };
1042
- project: {
1043
- name: string;
1010
+ batch?: {
1011
+ id: string;
1012
+ } | undefined;
1013
+ }, {
1014
+ organization: {
1044
1015
  id: string;
1016
+ name: string;
1045
1017
  slug: string;
1046
- ref: string;
1018
+ };
1019
+ queue: {
1020
+ id: string;
1021
+ name: string;
1047
1022
  };
1048
1023
  task: {
1049
1024
  id: string;
1050
1025
  filePath: string;
1051
1026
  exportName: string;
1052
1027
  };
1028
+ worker: {
1029
+ id: string;
1030
+ contentHash: string;
1031
+ version: string;
1032
+ };
1053
1033
  attempt: {
1054
1034
  number: number;
1055
1035
  status: string;
@@ -1058,79 +1038,57 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1058
1038
  backgroundWorkerId: string;
1059
1039
  backgroundWorkerTaskId: string;
1060
1040
  };
1061
- queue: {
1062
- name: string;
1063
- id: string;
1064
- };
1065
- worker: {
1066
- version: string;
1067
- id: string;
1068
- contentHash: string;
1069
- };
1070
- batch?: {
1071
- id: string;
1072
- } | undefined;
1073
- machine?: {
1074
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1075
- cpu: number;
1076
- memory: number;
1077
- centsPerMs: number;
1078
- } | undefined;
1079
- }>;
1080
- traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1081
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1082
- }, "strip", z.ZodTypeAny, {
1083
- execution: {
1084
1041
  run: {
1085
- payload: string;
1086
1042
  id: string;
1087
- startedAt: Date;
1088
- payloadType: string;
1089
- isTest: boolean;
1090
1043
  createdAt: Date;
1044
+ payload: string;
1045
+ payloadType: string;
1091
1046
  tags: string[];
1092
- durationMs: number;
1093
- costInCents: number;
1094
- baseCostInCents: number;
1095
- context?: any;
1096
- version?: string | undefined;
1097
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1098
- idempotencyKey?: string | undefined;
1099
1047
  maxAttempts?: number | undefined;
1100
1048
  maxDuration?: number | undefined;
1049
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1050
+ version?: string | undefined;
1051
+ context?: any;
1052
+ idempotencyKey?: string | undefined;
1053
+ isTest?: boolean | undefined;
1054
+ startedAt?: Date | undefined;
1055
+ costInCents?: number | undefined;
1056
+ baseCostInCents?: number | undefined;
1057
+ durationMs?: number | undefined;
1101
1058
  };
1102
1059
  environment: {
1103
1060
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1104
1061
  id: string;
1105
1062
  slug: string;
1106
1063
  };
1107
- organization: {
1108
- name: string;
1109
- id: string;
1110
- slug: string;
1111
- };
1112
1064
  project: {
1113
- name: string;
1114
1065
  id: string;
1066
+ name: string;
1115
1067
  slug: string;
1116
1068
  ref: string;
1117
1069
  };
1118
- task: {
1070
+ machine?: {
1071
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1072
+ cpu: number;
1073
+ memory: number;
1074
+ centsPerMs: number;
1075
+ } | undefined;
1076
+ batch?: {
1119
1077
  id: string;
1120
- filePath: string;
1121
- exportName: string;
1122
- };
1123
- attempt: {
1124
- number: number;
1125
- status: string;
1078
+ } | undefined;
1079
+ }>;
1080
+ traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1081
+ environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ execution: {
1084
+ organization: {
1126
1085
  id: string;
1127
- startedAt: Date;
1128
- backgroundWorkerId: string;
1129
- backgroundWorkerTaskId: string;
1086
+ name: string;
1087
+ slug: string;
1130
1088
  };
1131
1089
  queue: {
1132
- name: string;
1133
1090
  id: string;
1091
+ name: string;
1134
1092
  };
1135
1093
  machine: {
1136
1094
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
@@ -1138,58 +1096,80 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1138
1096
  memory: number;
1139
1097
  centsPerMs: number;
1140
1098
  };
1099
+ task: {
1100
+ id: string;
1101
+ filePath: string;
1102
+ exportName: string;
1103
+ };
1141
1104
  worker: {
1142
- version: string;
1143
1105
  id: string;
1144
1106
  contentHash: string;
1107
+ version: string;
1145
1108
  };
1146
- batch?: {
1109
+ attempt: {
1110
+ number: number;
1111
+ status: string;
1147
1112
  id: string;
1148
- } | undefined;
1149
- };
1150
- traceContext: Record<string, unknown>;
1151
- environment?: Record<string, string> | undefined;
1152
- }, {
1153
- execution: {
1113
+ startedAt: Date;
1114
+ backgroundWorkerId: string;
1115
+ backgroundWorkerTaskId: string;
1116
+ };
1154
1117
  run: {
1155
- payload: string;
1156
1118
  id: string;
1157
- payloadType: string;
1158
1119
  createdAt: Date;
1120
+ payload: string;
1121
+ payloadType: string;
1159
1122
  tags: string[];
1160
- context?: any;
1161
- version?: string | undefined;
1162
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1163
- startedAt?: Date | undefined;
1164
- idempotencyKey?: string | undefined;
1165
- isTest?: boolean | undefined;
1123
+ isTest: boolean;
1124
+ startedAt: Date;
1125
+ costInCents: number;
1126
+ baseCostInCents: number;
1127
+ durationMs: number;
1166
1128
  maxAttempts?: number | undefined;
1167
- durationMs?: number | undefined;
1168
- costInCents?: number | undefined;
1169
- baseCostInCents?: number | undefined;
1170
1129
  maxDuration?: number | undefined;
1130
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1131
+ version?: string | undefined;
1132
+ context?: any;
1133
+ idempotencyKey?: string | undefined;
1171
1134
  };
1172
1135
  environment: {
1173
1136
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1174
1137
  id: string;
1175
1138
  slug: string;
1176
1139
  };
1177
- organization: {
1178
- name: string;
1140
+ project: {
1179
1141
  id: string;
1142
+ name: string;
1180
1143
  slug: string;
1144
+ ref: string;
1181
1145
  };
1182
- project: {
1183
- name: string;
1146
+ batch?: {
1147
+ id: string;
1148
+ } | undefined;
1149
+ };
1150
+ traceContext: Record<string, unknown>;
1151
+ environment?: Record<string, string> | undefined;
1152
+ }, {
1153
+ execution: {
1154
+ organization: {
1184
1155
  id: string;
1156
+ name: string;
1185
1157
  slug: string;
1186
- ref: string;
1158
+ };
1159
+ queue: {
1160
+ id: string;
1161
+ name: string;
1187
1162
  };
1188
1163
  task: {
1189
1164
  id: string;
1190
1165
  filePath: string;
1191
1166
  exportName: string;
1192
1167
  };
1168
+ worker: {
1169
+ id: string;
1170
+ contentHash: string;
1171
+ version: string;
1172
+ };
1193
1173
  attempt: {
1194
1174
  number: number;
1195
1175
  status: string;
@@ -1198,24 +1178,44 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1198
1178
  backgroundWorkerId: string;
1199
1179
  backgroundWorkerTaskId: string;
1200
1180
  };
1201
- queue: {
1202
- name: string;
1181
+ run: {
1203
1182
  id: string;
1183
+ createdAt: Date;
1184
+ payload: string;
1185
+ payloadType: string;
1186
+ tags: string[];
1187
+ maxAttempts?: number | undefined;
1188
+ maxDuration?: number | undefined;
1189
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1190
+ version?: string | undefined;
1191
+ context?: any;
1192
+ idempotencyKey?: string | undefined;
1193
+ isTest?: boolean | undefined;
1194
+ startedAt?: Date | undefined;
1195
+ costInCents?: number | undefined;
1196
+ baseCostInCents?: number | undefined;
1197
+ durationMs?: number | undefined;
1204
1198
  };
1205
- worker: {
1206
- version: string;
1199
+ environment: {
1200
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1207
1201
  id: string;
1208
- contentHash: string;
1202
+ slug: string;
1209
1203
  };
1210
- batch?: {
1204
+ project: {
1211
1205
  id: string;
1212
- } | undefined;
1206
+ name: string;
1207
+ slug: string;
1208
+ ref: string;
1209
+ };
1213
1210
  machine?: {
1214
1211
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1215
1212
  cpu: number;
1216
1213
  memory: number;
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;
@@ -1411,17 +1411,17 @@ export declare const RetryOptions: z.ZodObject<{
1411
1411
  */
1412
1412
  randomize: z.ZodOptional<z.ZodBoolean>;
1413
1413
  }, "strip", z.ZodTypeAny, {
1414
+ maxAttempts?: number | undefined;
1414
1415
  factor?: number | undefined;
1415
1416
  minTimeoutInMs?: number | undefined;
1416
1417
  maxTimeoutInMs?: number | undefined;
1417
1418
  randomize?: boolean | undefined;
1418
- maxAttempts?: number | undefined;
1419
1419
  }, {
1420
+ maxAttempts?: number | undefined;
1420
1421
  factor?: number | undefined;
1421
1422
  minTimeoutInMs?: number | undefined;
1422
1423
  maxTimeoutInMs?: number | undefined;
1423
1424
  randomize?: boolean | undefined;
1424
- maxAttempts?: number | undefined;
1425
1425
  }>;
1426
1426
  export type RetryOptions = z.infer<typeof RetryOptions>;
1427
1427
  export declare const QueueOptions: z.ZodObject<{
@@ -1544,29 +1544,29 @@ export declare const TaskMetadata: z.ZodObject<{
1544
1544
  */
1545
1545
  randomize: z.ZodOptional<z.ZodBoolean>;
1546
1546
  }, "strip", z.ZodTypeAny, {
1547
+ maxAttempts?: number | undefined;
1547
1548
  factor?: number | undefined;
1548
1549
  minTimeoutInMs?: number | undefined;
1549
1550
  maxTimeoutInMs?: number | undefined;
1550
1551
  randomize?: boolean | undefined;
1551
- maxAttempts?: number | undefined;
1552
1552
  }, {
1553
+ maxAttempts?: number | undefined;
1553
1554
  factor?: number | undefined;
1554
1555
  minTimeoutInMs?: number | undefined;
1555
1556
  maxTimeoutInMs?: number | undefined;
1556
1557
  randomize?: boolean | undefined;
1557
- maxAttempts?: number | undefined;
1558
1558
  }>>;
1559
1559
  machine: z.ZodOptional<z.ZodObject<{
1560
1560
  cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1565
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1564
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1565
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1566
1566
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1567
1567
  }, {
1568
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1569
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1568
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1569
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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>;
@@ -1584,64 +1584,64 @@ export declare const TaskMetadata: z.ZodObject<{
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
1585
  id: string;
1586
1586
  description?: string | undefined;
1587
- schedule?: {
1588
- cron: string;
1589
- timezone: string;
1587
+ queue?: {
1588
+ name?: string | undefined;
1589
+ concurrencyLimit?: number | undefined;
1590
1590
  } | undefined;
1591
1591
  retry?: {
1592
+ maxAttempts?: number | undefined;
1592
1593
  factor?: number | undefined;
1593
1594
  minTimeoutInMs?: number | undefined;
1594
1595
  maxTimeoutInMs?: number | undefined;
1595
1596
  randomize?: boolean | undefined;
1596
- maxAttempts?: number | undefined;
1597
- } | undefined;
1598
- maxDuration?: number | undefined;
1599
- queue?: {
1600
- name?: string | undefined;
1601
- concurrencyLimit?: number | undefined;
1602
1597
  } | undefined;
1603
1598
  machine?: {
1604
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1605
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1599
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1600
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1606
1601
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1607
1602
  } | undefined;
1608
1603
  triggerSource?: string | undefined;
1609
- }, {
1610
- id: string;
1611
- description?: string | undefined;
1612
1604
  schedule?: {
1613
1605
  cron: string;
1614
1606
  timezone: string;
1615
1607
  } | undefined;
1608
+ maxDuration?: number | undefined;
1609
+ }, {
1610
+ id: string;
1611
+ description?: string | undefined;
1612
+ queue?: {
1613
+ name?: string | undefined;
1614
+ concurrencyLimit?: number | undefined;
1615
+ } | undefined;
1616
1616
  retry?: {
1617
+ maxAttempts?: number | undefined;
1617
1618
  factor?: number | undefined;
1618
1619
  minTimeoutInMs?: number | undefined;
1619
1620
  maxTimeoutInMs?: number | undefined;
1620
1621
  randomize?: boolean | undefined;
1621
- maxAttempts?: number | undefined;
1622
- } | undefined;
1623
- maxDuration?: number | undefined;
1624
- queue?: {
1625
- name?: string | undefined;
1626
- concurrencyLimit?: number | undefined;
1627
1622
  } | undefined;
1628
1623
  machine?: {
1629
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1630
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1624
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1625
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1631
1626
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1632
1627
  } | undefined;
1633
1628
  triggerSource?: string | undefined;
1629
+ schedule?: {
1630
+ cron: string;
1631
+ timezone: string;
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<{
1637
1637
  entry: z.ZodString;
1638
1638
  out: z.ZodString;
1639
1639
  }, "strip", z.ZodTypeAny, {
1640
- out: string;
1641
1640
  entry: string;
1642
- }, {
1643
1641
  out: string;
1642
+ }, {
1644
1643
  entry: string;
1644
+ out: string;
1645
1645
  }>;
1646
1646
  export type TaskFile = z.infer<typeof TaskFile>;
1647
1647
  export declare const TaskFileMetadata: z.ZodObject<{
@@ -1726,29 +1726,29 @@ export declare const TaskManifest: z.ZodObject<{
1726
1726
  */
1727
1727
  randomize: z.ZodOptional<z.ZodBoolean>;
1728
1728
  }, "strip", z.ZodTypeAny, {
1729
+ maxAttempts?: number | undefined;
1729
1730
  factor?: number | undefined;
1730
1731
  minTimeoutInMs?: number | undefined;
1731
1732
  maxTimeoutInMs?: number | undefined;
1732
1733
  randomize?: boolean | undefined;
1733
- maxAttempts?: number | undefined;
1734
1734
  }, {
1735
+ maxAttempts?: number | undefined;
1735
1736
  factor?: number | undefined;
1736
1737
  minTimeoutInMs?: number | undefined;
1737
1738
  maxTimeoutInMs?: number | undefined;
1738
1739
  randomize?: boolean | undefined;
1739
- maxAttempts?: number | undefined;
1740
1740
  }>>;
1741
1741
  machine: z.ZodOptional<z.ZodObject<{
1742
1742
  cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1747
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1746
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1747
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1748
1748
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1749
1749
  }, {
1750
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1751
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1750
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1751
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 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>;
@@ -1769,56 +1769,56 @@ export declare const TaskManifest: z.ZodObject<{
1769
1769
  exportName: string;
1770
1770
  entryPoint: string;
1771
1771
  description?: string | undefined;
1772
- schedule?: {
1773
- cron: string;
1774
- timezone: string;
1772
+ queue?: {
1773
+ name?: string | undefined;
1774
+ concurrencyLimit?: number | undefined;
1775
1775
  } | undefined;
1776
1776
  retry?: {
1777
+ maxAttempts?: number | undefined;
1777
1778
  factor?: number | undefined;
1778
1779
  minTimeoutInMs?: number | undefined;
1779
1780
  maxTimeoutInMs?: number | undefined;
1780
1781
  randomize?: boolean | undefined;
1781
- maxAttempts?: number | undefined;
1782
- } | undefined;
1783
- maxDuration?: number | undefined;
1784
- queue?: {
1785
- name?: string | undefined;
1786
- concurrencyLimit?: number | undefined;
1787
1782
  } | undefined;
1788
1783
  machine?: {
1789
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1790
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1784
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1785
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1791
1786
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1792
1787
  } | undefined;
1793
1788
  triggerSource?: string | undefined;
1789
+ schedule?: {
1790
+ cron: string;
1791
+ timezone: string;
1792
+ } | undefined;
1793
+ maxDuration?: number | undefined;
1794
1794
  }, {
1795
1795
  id: string;
1796
1796
  filePath: string;
1797
1797
  exportName: string;
1798
1798
  entryPoint: string;
1799
1799
  description?: string | undefined;
1800
- schedule?: {
1801
- cron: string;
1802
- timezone: string;
1800
+ queue?: {
1801
+ name?: string | undefined;
1802
+ concurrencyLimit?: number | undefined;
1803
1803
  } | undefined;
1804
1804
  retry?: {
1805
+ maxAttempts?: number | undefined;
1805
1806
  factor?: number | undefined;
1806
1807
  minTimeoutInMs?: number | undefined;
1807
1808
  maxTimeoutInMs?: number | undefined;
1808
1809
  randomize?: boolean | undefined;
1809
- maxAttempts?: number | undefined;
1810
- } | undefined;
1811
- maxDuration?: number | undefined;
1812
- queue?: {
1813
- name?: string | undefined;
1814
- concurrencyLimit?: number | undefined;
1815
1810
  } | undefined;
1816
1811
  machine?: {
1817
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1818
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
1812
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1813
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1819
1814
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1820
1815
  } | undefined;
1821
1816
  triggerSource?: string | undefined;
1817
+ schedule?: {
1818
+ cron: string;
1819
+ timezone: string;
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"]>;
@@ -1851,36 +1851,36 @@ export declare const Config: z.ZodObject<{
1851
1851
  */
1852
1852
  randomize: z.ZodOptional<z.ZodBoolean>;
1853
1853
  }, "strip", z.ZodTypeAny, {
1854
+ maxAttempts?: number | undefined;
1854
1855
  factor?: number | undefined;
1855
1856
  minTimeoutInMs?: number | undefined;
1856
1857
  maxTimeoutInMs?: number | undefined;
1857
1858
  randomize?: boolean | undefined;
1858
- maxAttempts?: number | undefined;
1859
1859
  }, {
1860
+ maxAttempts?: number | undefined;
1860
1861
  factor?: number | undefined;
1861
1862
  minTimeoutInMs?: number | undefined;
1862
1863
  maxTimeoutInMs?: number | undefined;
1863
1864
  randomize?: boolean | undefined;
1864
- maxAttempts?: number | undefined;
1865
1865
  }>>;
1866
1866
  }, "strip", z.ZodTypeAny, {
1867
1867
  enabledInDev: boolean;
1868
1868
  default?: {
1869
+ maxAttempts?: number | undefined;
1869
1870
  factor?: number | undefined;
1870
1871
  minTimeoutInMs?: number | undefined;
1871
1872
  maxTimeoutInMs?: number | undefined;
1872
1873
  randomize?: boolean | undefined;
1873
- maxAttempts?: number | undefined;
1874
1874
  } | undefined;
1875
1875
  }, {
1876
+ enabledInDev?: boolean | undefined;
1876
1877
  default?: {
1878
+ maxAttempts?: number | undefined;
1877
1879
  factor?: number | undefined;
1878
1880
  minTimeoutInMs?: number | undefined;
1879
1881
  maxTimeoutInMs?: number | undefined;
1880
1882
  randomize?: boolean | undefined;
1881
- maxAttempts?: number | undefined;
1882
1883
  } | undefined;
1883
- enabledInDev?: boolean | undefined;
1884
1884
  }>>;
1885
1885
  additionalPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1886
1886
  additionalFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1898,11 +1898,11 @@ export declare const Config: z.ZodObject<{
1898
1898
  retries?: {
1899
1899
  enabledInDev: boolean;
1900
1900
  default?: {
1901
+ maxAttempts?: number | undefined;
1901
1902
  factor?: number | undefined;
1902
1903
  minTimeoutInMs?: number | undefined;
1903
1904
  maxTimeoutInMs?: number | undefined;
1904
1905
  randomize?: boolean | undefined;
1905
- maxAttempts?: number | undefined;
1906
1906
  } | undefined;
1907
1907
  } | undefined;
1908
1908
  additionalPackages?: string[] | undefined;
@@ -1919,14 +1919,14 @@ export declare const Config: z.ZodObject<{
1919
1919
  projectDir?: string | undefined;
1920
1920
  tsconfigPath?: string | undefined;
1921
1921
  retries?: {
1922
+ enabledInDev?: boolean | undefined;
1922
1923
  default?: {
1924
+ maxAttempts?: number | undefined;
1923
1925
  factor?: number | undefined;
1924
1926
  minTimeoutInMs?: number | undefined;
1925
1927
  maxTimeoutInMs?: number | undefined;
1926
1928
  randomize?: boolean | undefined;
1927
- maxAttempts?: number | undefined;
1928
1929
  } | undefined;
1929
- enabledInDev?: boolean | undefined;
1930
1930
  } | undefined;
1931
1931
  additionalPackages?: string[] | undefined;
1932
1932
  additionalFiles?: string[] | undefined;
@@ -1949,17 +1949,17 @@ export declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
1949
1949
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1950
1950
  }, "strip", z.ZodTypeAny, {
1951
1951
  isTest: boolean;
1952
- traceContext: Record<string, unknown>;
1953
1952
  runId: string;
1953
+ traceContext: Record<string, unknown>;
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
- traceContext: Record<string, unknown>;
1960
1959
  runId: string;
1960
+ traceContext: Record<string, unknown>;
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>;