@trigger.dev/core 4.0.0-v4-beta.24 → 4.0.0-v4-beta.26

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 (91) hide show
  1. package/dist/commonjs/logger.d.ts +1 -0
  2. package/dist/commonjs/logger.js +5 -0
  3. package/dist/commonjs/logger.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +8 -8
  5. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
  6. package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
  7. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  8. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +79 -61
  9. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
  10. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +63 -45
  11. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +341 -209
  12. package/dist/commonjs/v3/runMetadata/manager.d.ts +1 -0
  13. package/dist/commonjs/v3/runMetadata/manager.js +72 -2
  14. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  15. package/dist/commonjs/v3/schemas/api.d.ts +116 -116
  16. package/dist/commonjs/v3/schemas/build.d.ts +36 -36
  17. package/dist/commonjs/v3/schemas/checkpoints.d.ts +72 -72
  18. package/dist/commonjs/v3/schemas/common.d.ts +1708 -408
  19. package/dist/commonjs/v3/schemas/common.js +101 -42
  20. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  21. package/dist/commonjs/v3/schemas/messages.d.ts +3564 -2986
  22. package/dist/commonjs/v3/schemas/messages.js +10 -10
  23. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  24. package/dist/commonjs/v3/schemas/resources.d.ts +10 -10
  25. package/dist/commonjs/v3/schemas/runEngine.d.ts +341 -209
  26. package/dist/commonjs/v3/schemas/schemas.d.ts +562 -442
  27. package/dist/commonjs/v3/schemas/schemas.js +4 -4
  28. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  29. package/dist/commonjs/v3/schemas/webhooks.d.ts +120 -120
  30. package/dist/commonjs/v3/taskContext/index.js +0 -2
  31. package/dist/commonjs/v3/taskContext/index.js.map +1 -1
  32. package/dist/commonjs/v3/usage/api.d.ts +2 -1
  33. package/dist/commonjs/v3/usage/api.js +3 -0
  34. package/dist/commonjs/v3/usage/api.js.map +1 -1
  35. package/dist/commonjs/v3/usage/devUsageManager.d.ts +4 -1
  36. package/dist/commonjs/v3/usage/devUsageManager.js +14 -0
  37. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
  38. package/dist/commonjs/v3/usage/noopUsageManager.d.ts +2 -1
  39. package/dist/commonjs/v3/usage/noopUsageManager.js +6 -0
  40. package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
  41. package/dist/commonjs/v3/usage/prodUsageManager.d.ts +4 -1
  42. package/dist/commonjs/v3/usage/prodUsageManager.js +14 -0
  43. package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
  44. package/dist/commonjs/v3/usage/types.d.ts +5 -0
  45. package/dist/commonjs/version.js +1 -1
  46. package/dist/esm/logger.d.ts +1 -0
  47. package/dist/esm/logger.js +5 -0
  48. package/dist/esm/logger.js.map +1 -1
  49. package/dist/esm/v3/apiClient/index.d.ts +8 -8
  50. package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
  51. package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
  52. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  53. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +79 -61
  54. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
  55. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +63 -45
  56. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +341 -209
  57. package/dist/esm/v3/runMetadata/manager.d.ts +1 -0
  58. package/dist/esm/v3/runMetadata/manager.js +72 -2
  59. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  60. package/dist/esm/v3/schemas/api.d.ts +116 -116
  61. package/dist/esm/v3/schemas/build.d.ts +36 -36
  62. package/dist/esm/v3/schemas/checkpoints.d.ts +72 -72
  63. package/dist/esm/v3/schemas/common.d.ts +1708 -408
  64. package/dist/esm/v3/schemas/common.js +100 -41
  65. package/dist/esm/v3/schemas/common.js.map +1 -1
  66. package/dist/esm/v3/schemas/messages.d.ts +3564 -2986
  67. package/dist/esm/v3/schemas/messages.js +11 -11
  68. package/dist/esm/v3/schemas/messages.js.map +1 -1
  69. package/dist/esm/v3/schemas/resources.d.ts +10 -10
  70. package/dist/esm/v3/schemas/runEngine.d.ts +341 -209
  71. package/dist/esm/v3/schemas/schemas.d.ts +562 -442
  72. package/dist/esm/v3/schemas/schemas.js +4 -4
  73. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  74. package/dist/esm/v3/schemas/webhooks.d.ts +120 -120
  75. package/dist/esm/v3/taskContext/index.js +0 -2
  76. package/dist/esm/v3/taskContext/index.js.map +1 -1
  77. package/dist/esm/v3/usage/api.d.ts +2 -1
  78. package/dist/esm/v3/usage/api.js +3 -0
  79. package/dist/esm/v3/usage/api.js.map +1 -1
  80. package/dist/esm/v3/usage/devUsageManager.d.ts +4 -1
  81. package/dist/esm/v3/usage/devUsageManager.js +14 -0
  82. package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
  83. package/dist/esm/v3/usage/noopUsageManager.d.ts +2 -1
  84. package/dist/esm/v3/usage/noopUsageManager.js +6 -0
  85. package/dist/esm/v3/usage/noopUsageManager.js.map +1 -1
  86. package/dist/esm/v3/usage/prodUsageManager.d.ts +4 -1
  87. package/dist/esm/v3/usage/prodUsageManager.js +14 -0
  88. package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
  89. package/dist/esm/v3/usage/types.d.ts +5 -0
  90. package/dist/esm/version.js +1 -1
  91. package/package.json +1 -1
@@ -42,99 +42,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
42
42
  task: z.ZodObject<{
43
43
  id: z.ZodString;
44
44
  filePath: z.ZodString;
45
- exportName: z.ZodOptional<z.ZodString>;
46
- }, "strip", z.ZodTypeAny, {
47
- id: string;
48
- filePath: string;
49
- exportName?: string | undefined;
50
- }, {
51
- id: string;
52
- filePath: string;
53
- exportName?: string | undefined;
54
- }>;
55
- attempt: z.ZodObject<{
56
- number: z.ZodNumber;
57
- startedAt: z.ZodDate;
45
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
58
46
  id: z.ZodString;
59
- backgroundWorkerId: z.ZodString;
60
- backgroundWorkerTaskId: z.ZodString;
61
- status: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
63
- number: number;
64
- status: string;
65
- id: string;
66
- startedAt: Date;
67
- backgroundWorkerId: string;
68
- backgroundWorkerTaskId: string;
69
- }, {
70
- number: number;
71
- status: string;
72
- id: string;
73
- startedAt: Date;
74
- backgroundWorkerId: string;
75
- backgroundWorkerTaskId: string;
76
- }>;
77
- run: z.ZodIntersection<z.ZodObject<{
47
+ filePath: z.ZodString;
48
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
78
49
  id: z.ZodString;
79
- payload: z.ZodString;
80
- payloadType: z.ZodString;
81
- tags: z.ZodArray<z.ZodString, "many">;
82
- isTest: z.ZodDefault<z.ZodBoolean>;
83
- createdAt: z.ZodDate;
84
- startedAt: z.ZodDefault<z.ZodDate>;
85
- idempotencyKey: z.ZodOptional<z.ZodString>;
86
- maxAttempts: z.ZodOptional<z.ZodNumber>;
87
- version: z.ZodOptional<z.ZodString>;
88
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
89
- maxDuration: z.ZodOptional<z.ZodNumber>;
90
- context: z.ZodAny;
91
- durationMs: z.ZodDefault<z.ZodNumber>;
92
- costInCents: z.ZodDefault<z.ZodNumber>;
93
- baseCostInCents: z.ZodDefault<z.ZodNumber>;
94
- priority: z.ZodOptional<z.ZodNumber>;
95
- }, "strip", z.ZodTypeAny, {
96
- payload: string;
97
- id: string;
98
- payloadType: string;
99
- tags: string[];
100
- isTest: boolean;
101
- createdAt: Date;
102
- startedAt: Date;
103
- durationMs: number;
104
- costInCents: number;
105
- baseCostInCents: number;
106
- context?: any;
107
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
108
- idempotencyKey?: string | undefined;
109
- maxAttempts?: number | undefined;
110
- version?: string | undefined;
111
- maxDuration?: number | undefined;
112
- priority?: number | undefined;
113
- }, {
114
- payload: string;
115
- id: string;
116
- payloadType: string;
117
- tags: string[];
118
- createdAt: Date;
119
- context?: any;
120
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
121
- isTest?: boolean | undefined;
122
- startedAt?: Date | undefined;
123
- idempotencyKey?: string | undefined;
124
- maxAttempts?: number | undefined;
125
- version?: string | undefined;
126
- maxDuration?: number | undefined;
127
- durationMs?: number | undefined;
128
- costInCents?: number | undefined;
129
- baseCostInCents?: number | undefined;
130
- priority?: number | undefined;
131
- }>, z.ZodObject<{
132
- traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
133
- }, "strip", z.ZodTypeAny, {
134
- traceContext?: Record<string, unknown> | undefined;
135
- }, {
136
- traceContext?: Record<string, unknown> | undefined;
137
- }>>;
50
+ filePath: z.ZodString;
51
+ }, z.ZodTypeAny, "passthrough">>;
138
52
  queue: z.ZodObject<{
139
53
  id: z.ZodString;
140
54
  name: z.ZodString;
@@ -243,13 +157,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
243
157
  slug: string;
244
158
  ref: string;
245
159
  }>;
246
- batch: z.ZodOptional<z.ZodObject<{
247
- id: z.ZodString;
248
- }, "strip", z.ZodTypeAny, {
249
- id: string;
250
- }, {
251
- id: string;
252
- }>>;
253
160
  machine: z.ZodObject<{
254
161
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
255
162
  cpu: z.ZodNumber;
@@ -266,19 +173,209 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
266
173
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
267
174
  centsPerMs: number;
268
175
  }>;
176
+ batch: z.ZodOptional<z.ZodObject<{
177
+ id: z.ZodString;
178
+ }, "strip", z.ZodTypeAny, {
179
+ id: string;
180
+ }, {
181
+ id: string;
182
+ }>>;
183
+ deployment: z.ZodOptional<z.ZodObject<{
184
+ id: z.ZodString;
185
+ shortCode: z.ZodString;
186
+ version: z.ZodString;
187
+ runtime: z.ZodString;
188
+ runtimeVersion: z.ZodString;
189
+ git: z.ZodOptional<z.ZodObject<{
190
+ commitAuthorName: z.ZodOptional<z.ZodString>;
191
+ commitMessage: z.ZodOptional<z.ZodString>;
192
+ commitRef: z.ZodOptional<z.ZodString>;
193
+ commitSha: z.ZodOptional<z.ZodString>;
194
+ dirty: z.ZodOptional<z.ZodBoolean>;
195
+ remoteUrl: z.ZodOptional<z.ZodString>;
196
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
197
+ pullRequestTitle: z.ZodOptional<z.ZodString>;
198
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ dirty?: boolean | undefined;
201
+ commitAuthorName?: string | undefined;
202
+ commitMessage?: string | undefined;
203
+ commitRef?: string | undefined;
204
+ commitSha?: string | undefined;
205
+ remoteUrl?: string | undefined;
206
+ pullRequestNumber?: number | undefined;
207
+ pullRequestTitle?: string | undefined;
208
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
209
+ }, {
210
+ dirty?: boolean | undefined;
211
+ commitAuthorName?: string | undefined;
212
+ commitMessage?: string | undefined;
213
+ commitRef?: string | undefined;
214
+ commitSha?: string | undefined;
215
+ remoteUrl?: string | undefined;
216
+ pullRequestNumber?: number | undefined;
217
+ pullRequestTitle?: string | undefined;
218
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
219
+ }>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ id: string;
222
+ version: string;
223
+ shortCode: string;
224
+ runtime: string;
225
+ runtimeVersion: string;
226
+ git?: {
227
+ dirty?: boolean | undefined;
228
+ commitAuthorName?: string | undefined;
229
+ commitMessage?: string | undefined;
230
+ commitRef?: string | undefined;
231
+ commitSha?: string | undefined;
232
+ remoteUrl?: string | undefined;
233
+ pullRequestNumber?: number | undefined;
234
+ pullRequestTitle?: string | undefined;
235
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
236
+ } | undefined;
237
+ }, {
238
+ id: string;
239
+ version: string;
240
+ shortCode: string;
241
+ runtime: string;
242
+ runtimeVersion: string;
243
+ git?: {
244
+ dirty?: boolean | undefined;
245
+ commitAuthorName?: string | undefined;
246
+ commitMessage?: string | undefined;
247
+ commitRef?: string | undefined;
248
+ commitSha?: string | undefined;
249
+ remoteUrl?: string | undefined;
250
+ pullRequestNumber?: number | undefined;
251
+ pullRequestTitle?: string | undefined;
252
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
253
+ } | undefined;
254
+ }>>;
255
+ attempt: z.ZodObject<{
256
+ number: z.ZodNumber;
257
+ startedAt: z.ZodDate;
258
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
259
+ number: z.ZodNumber;
260
+ startedAt: z.ZodDate;
261
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
262
+ number: z.ZodNumber;
263
+ startedAt: z.ZodDate;
264
+ }, z.ZodTypeAny, "passthrough">>;
265
+ run: z.ZodIntersection<z.ZodObject<{
266
+ id: z.ZodString;
267
+ payload: z.ZodString;
268
+ payloadType: z.ZodString;
269
+ tags: z.ZodArray<z.ZodString, "many">;
270
+ isTest: z.ZodDefault<z.ZodBoolean>;
271
+ createdAt: z.ZodDate;
272
+ startedAt: z.ZodDefault<z.ZodDate>;
273
+ idempotencyKey: z.ZodOptional<z.ZodString>;
274
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
275
+ version: z.ZodOptional<z.ZodString>;
276
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
277
+ maxDuration: z.ZodOptional<z.ZodNumber>;
278
+ priority: z.ZodOptional<z.ZodNumber>;
279
+ baseCostInCents: z.ZodOptional<z.ZodNumber>;
280
+ parentTaskRunId: z.ZodOptional<z.ZodString>;
281
+ rootTaskRunId: z.ZodOptional<z.ZodString>;
282
+ durationMs: z.ZodOptional<z.ZodNumber>;
283
+ costInCents: z.ZodOptional<z.ZodNumber>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ payload: string;
286
+ id: string;
287
+ payloadType: string;
288
+ tags: string[];
289
+ isTest: boolean;
290
+ createdAt: Date;
291
+ startedAt: Date;
292
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
293
+ idempotencyKey?: string | undefined;
294
+ maxAttempts?: number | undefined;
295
+ version?: string | undefined;
296
+ maxDuration?: number | undefined;
297
+ priority?: number | undefined;
298
+ baseCostInCents?: number | undefined;
299
+ parentTaskRunId?: string | undefined;
300
+ rootTaskRunId?: string | undefined;
301
+ durationMs?: number | undefined;
302
+ costInCents?: number | undefined;
303
+ }, {
304
+ payload: string;
305
+ id: string;
306
+ payloadType: string;
307
+ tags: string[];
308
+ createdAt: Date;
309
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
310
+ isTest?: boolean | undefined;
311
+ startedAt?: Date | undefined;
312
+ idempotencyKey?: string | undefined;
313
+ maxAttempts?: number | undefined;
314
+ version?: string | undefined;
315
+ maxDuration?: number | undefined;
316
+ priority?: number | undefined;
317
+ baseCostInCents?: number | undefined;
318
+ parentTaskRunId?: string | undefined;
319
+ rootTaskRunId?: string | undefined;
320
+ durationMs?: number | undefined;
321
+ costInCents?: number | undefined;
322
+ }>, z.ZodObject<{
323
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ traceContext?: Record<string, unknown> | undefined;
326
+ }, {
327
+ traceContext?: Record<string, unknown> | undefined;
328
+ }>>;
269
329
  }, "strip", z.ZodTypeAny, {
270
330
  task: {
271
331
  id: string;
272
332
  filePath: string;
273
- exportName?: string | undefined;
333
+ } & {
334
+ [k: string]: unknown;
335
+ };
336
+ queue: {
337
+ name: string;
338
+ id: string;
339
+ };
340
+ environment: {
341
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
342
+ id: string;
343
+ slug: string;
344
+ branchName?: string | undefined;
345
+ git?: {
346
+ dirty?: boolean | undefined;
347
+ commitAuthorName?: string | undefined;
348
+ commitMessage?: string | undefined;
349
+ commitRef?: string | undefined;
350
+ commitSha?: string | undefined;
351
+ remoteUrl?: string | undefined;
352
+ pullRequestNumber?: number | undefined;
353
+ pullRequestTitle?: string | undefined;
354
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
355
+ } | undefined;
356
+ };
357
+ organization: {
358
+ name: string;
359
+ id: string;
360
+ slug: string;
361
+ };
362
+ project: {
363
+ name: string;
364
+ id: string;
365
+ slug: string;
366
+ ref: string;
367
+ };
368
+ machine: {
369
+ cpu: number;
370
+ memory: number;
371
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
372
+ centsPerMs: number;
274
373
  };
275
374
  attempt: {
276
375
  number: number;
277
- status: string;
278
- id: string;
279
376
  startedAt: Date;
280
- backgroundWorkerId: string;
281
- backgroundWorkerTaskId: string;
377
+ } & {
378
+ [k: string]: unknown;
282
379
  };
283
380
  run: {
284
381
  payload: string;
@@ -288,19 +385,48 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
288
385
  isTest: boolean;
289
386
  createdAt: Date;
290
387
  startedAt: Date;
291
- durationMs: number;
292
- costInCents: number;
293
- baseCostInCents: number;
294
- context?: any;
295
388
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
296
389
  idempotencyKey?: string | undefined;
297
390
  maxAttempts?: number | undefined;
298
391
  version?: string | undefined;
299
392
  maxDuration?: number | undefined;
300
393
  priority?: number | undefined;
394
+ baseCostInCents?: number | undefined;
395
+ parentTaskRunId?: string | undefined;
396
+ rootTaskRunId?: string | undefined;
397
+ durationMs?: number | undefined;
398
+ costInCents?: number | undefined;
301
399
  } & {
302
400
  traceContext?: Record<string, unknown> | undefined;
303
401
  };
402
+ batch?: {
403
+ id: string;
404
+ } | undefined;
405
+ deployment?: {
406
+ id: string;
407
+ version: string;
408
+ shortCode: string;
409
+ runtime: string;
410
+ runtimeVersion: string;
411
+ git?: {
412
+ dirty?: boolean | undefined;
413
+ commitAuthorName?: string | undefined;
414
+ commitMessage?: string | undefined;
415
+ commitRef?: string | undefined;
416
+ commitSha?: string | undefined;
417
+ remoteUrl?: string | undefined;
418
+ pullRequestNumber?: number | undefined;
419
+ pullRequestTitle?: string | undefined;
420
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
421
+ } | undefined;
422
+ } | undefined;
423
+ }, {
424
+ task: {
425
+ id: string;
426
+ filePath: string;
427
+ } & {
428
+ [k: string]: unknown;
429
+ };
304
430
  queue: {
305
431
  name: string;
306
432
  id: string;
@@ -339,43 +465,82 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
339
465
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
340
466
  centsPerMs: number;
341
467
  };
342
- batch?: {
343
- id: string;
344
- } | undefined;
345
- }, {
346
- task: {
347
- id: string;
348
- filePath: string;
349
- exportName?: string | undefined;
350
- };
351
468
  attempt: {
352
469
  number: number;
353
- status: string;
354
- id: string;
355
470
  startedAt: Date;
356
- backgroundWorkerId: string;
357
- backgroundWorkerTaskId: string;
471
+ } & {
472
+ [k: string]: unknown;
358
473
  };
359
474
  run: {
360
475
  payload: string;
361
476
  id: string;
362
- payloadType: string;
363
- tags: string[];
364
- createdAt: Date;
365
- context?: any;
366
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
367
- isTest?: boolean | undefined;
368
- startedAt?: Date | undefined;
369
- idempotencyKey?: string | undefined;
370
- maxAttempts?: number | undefined;
371
- version?: string | undefined;
372
- maxDuration?: number | undefined;
373
- durationMs?: number | undefined;
374
- costInCents?: number | undefined;
375
- baseCostInCents?: number | undefined;
376
- priority?: number | undefined;
477
+ payloadType: string;
478
+ tags: string[];
479
+ createdAt: Date;
480
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
481
+ isTest?: boolean | undefined;
482
+ startedAt?: Date | undefined;
483
+ idempotencyKey?: string | undefined;
484
+ maxAttempts?: number | undefined;
485
+ version?: string | undefined;
486
+ maxDuration?: number | undefined;
487
+ priority?: number | undefined;
488
+ baseCostInCents?: number | undefined;
489
+ parentTaskRunId?: string | undefined;
490
+ rootTaskRunId?: string | undefined;
491
+ durationMs?: number | undefined;
492
+ costInCents?: number | undefined;
493
+ } & {
494
+ traceContext?: Record<string, unknown> | undefined;
495
+ };
496
+ batch?: {
497
+ id: string;
498
+ } | undefined;
499
+ deployment?: {
500
+ id: string;
501
+ version: string;
502
+ shortCode: string;
503
+ runtime: string;
504
+ runtimeVersion: string;
505
+ git?: {
506
+ dirty?: boolean | undefined;
507
+ commitAuthorName?: string | undefined;
508
+ commitMessage?: string | undefined;
509
+ commitRef?: string | undefined;
510
+ commitSha?: string | undefined;
511
+ remoteUrl?: string | undefined;
512
+ pullRequestNumber?: number | undefined;
513
+ pullRequestTitle?: string | undefined;
514
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
515
+ } | undefined;
516
+ } | undefined;
517
+ }>;
518
+ traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
519
+ environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
520
+ metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
521
+ name: z.ZodString;
522
+ event: z.ZodString;
523
+ timestamp: z.ZodNumber;
524
+ duration: z.ZodNumber;
525
+ }, "strip", z.ZodTypeAny, {
526
+ event: string;
527
+ name: string;
528
+ timestamp: number;
529
+ duration: number;
530
+ }, {
531
+ event: string;
532
+ name: string;
533
+ timestamp: number;
534
+ duration: number;
535
+ }>, "many">>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ traceContext: Record<string, unknown>;
538
+ execution: {
539
+ task: {
540
+ id: string;
541
+ filePath: string;
377
542
  } & {
378
- traceContext?: Record<string, unknown> | undefined;
543
+ [k: string]: unknown;
379
544
  };
380
545
  queue: {
381
546
  name: string;
@@ -415,43 +580,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
415
580
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
416
581
  centsPerMs: number;
417
582
  };
418
- batch?: {
419
- id: string;
420
- } | undefined;
421
- }>;
422
- traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
423
- environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
424
- metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
- name: z.ZodString;
426
- event: z.ZodString;
427
- timestamp: z.ZodNumber;
428
- duration: z.ZodNumber;
429
- }, "strip", z.ZodTypeAny, {
430
- event: string;
431
- name: string;
432
- timestamp: number;
433
- duration: number;
434
- }, {
435
- event: string;
436
- name: string;
437
- timestamp: number;
438
- duration: number;
439
- }>, "many">>;
440
- }, "strip", z.ZodTypeAny, {
441
- traceContext: Record<string, unknown>;
442
- execution: {
443
- task: {
444
- id: string;
445
- filePath: string;
446
- exportName?: string | undefined;
447
- };
448
583
  attempt: {
449
584
  number: number;
450
- status: string;
451
- id: string;
452
585
  startedAt: Date;
453
- backgroundWorkerId: string;
454
- backgroundWorkerTaskId: string;
586
+ } & {
587
+ [k: string]: unknown;
455
588
  };
456
589
  run: {
457
590
  payload: string;
@@ -461,19 +594,58 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
461
594
  isTest: boolean;
462
595
  createdAt: Date;
463
596
  startedAt: Date;
464
- durationMs: number;
465
- costInCents: number;
466
- baseCostInCents: number;
467
- context?: any;
468
597
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
469
598
  idempotencyKey?: string | undefined;
470
599
  maxAttempts?: number | undefined;
471
600
  version?: string | undefined;
472
601
  maxDuration?: number | undefined;
473
602
  priority?: number | undefined;
603
+ baseCostInCents?: number | undefined;
604
+ parentTaskRunId?: string | undefined;
605
+ rootTaskRunId?: string | undefined;
606
+ durationMs?: number | undefined;
607
+ costInCents?: number | undefined;
474
608
  } & {
475
609
  traceContext?: Record<string, unknown> | undefined;
476
610
  };
611
+ batch?: {
612
+ id: string;
613
+ } | undefined;
614
+ deployment?: {
615
+ id: string;
616
+ version: string;
617
+ shortCode: string;
618
+ runtime: string;
619
+ runtimeVersion: string;
620
+ git?: {
621
+ dirty?: boolean | undefined;
622
+ commitAuthorName?: string | undefined;
623
+ commitMessage?: string | undefined;
624
+ commitRef?: string | undefined;
625
+ commitSha?: string | undefined;
626
+ remoteUrl?: string | undefined;
627
+ pullRequestNumber?: number | undefined;
628
+ pullRequestTitle?: string | undefined;
629
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
630
+ } | undefined;
631
+ } | undefined;
632
+ };
633
+ environment?: Record<string, string> | undefined;
634
+ metrics?: {
635
+ event: string;
636
+ name: string;
637
+ timestamp: number;
638
+ duration: number;
639
+ }[] | undefined;
640
+ }, {
641
+ traceContext: Record<string, unknown>;
642
+ execution: {
643
+ task: {
644
+ id: string;
645
+ filePath: string;
646
+ } & {
647
+ [k: string]: unknown;
648
+ };
477
649
  queue: {
478
650
  name: string;
479
651
  id: string;
@@ -512,32 +684,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
512
684
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
513
685
  centsPerMs: number;
514
686
  };
515
- batch?: {
516
- id: string;
517
- } | undefined;
518
- };
519
- environment?: Record<string, string> | undefined;
520
- metrics?: {
521
- event: string;
522
- name: string;
523
- timestamp: number;
524
- duration: number;
525
- }[] | undefined;
526
- }, {
527
- traceContext: Record<string, unknown>;
528
- execution: {
529
- task: {
530
- id: string;
531
- filePath: string;
532
- exportName?: string | undefined;
533
- };
534
687
  attempt: {
535
688
  number: number;
536
- status: string;
537
- id: string;
538
689
  startedAt: Date;
539
- backgroundWorkerId: string;
540
- backgroundWorkerTaskId: string;
690
+ } & {
691
+ [k: string]: unknown;
541
692
  };
542
693
  run: {
543
694
  payload: string;
@@ -545,7 +696,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
545
696
  payloadType: string;
546
697
  tags: string[];
547
698
  createdAt: Date;
548
- context?: any;
549
699
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
550
700
  isTest?: boolean | undefined;
551
701
  startedAt?: Date | undefined;
@@ -553,22 +703,24 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
553
703
  maxAttempts?: number | undefined;
554
704
  version?: string | undefined;
555
705
  maxDuration?: number | undefined;
706
+ priority?: number | undefined;
707
+ baseCostInCents?: number | undefined;
708
+ parentTaskRunId?: string | undefined;
709
+ rootTaskRunId?: string | undefined;
556
710
  durationMs?: number | undefined;
557
711
  costInCents?: number | undefined;
558
- baseCostInCents?: number | undefined;
559
- priority?: number | undefined;
560
712
  } & {
561
713
  traceContext?: Record<string, unknown> | undefined;
562
714
  };
563
- queue: {
564
- name: string;
715
+ batch?: {
565
716
  id: string;
566
- };
567
- environment: {
568
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
717
+ } | undefined;
718
+ deployment?: {
569
719
  id: string;
570
- slug: string;
571
- branchName?: string | undefined;
720
+ version: string;
721
+ shortCode: string;
722
+ runtime: string;
723
+ runtimeVersion: string;
572
724
  git?: {
573
725
  dirty?: boolean | undefined;
574
726
  commitAuthorName?: string | undefined;
@@ -580,26 +732,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
580
732
  pullRequestTitle?: string | undefined;
581
733
  pullRequestState?: "open" | "closed" | "merged" | undefined;
582
734
  } | undefined;
583
- };
584
- organization: {
585
- name: string;
586
- id: string;
587
- slug: string;
588
- };
589
- project: {
590
- name: string;
591
- id: string;
592
- slug: string;
593
- ref: string;
594
- };
595
- machine: {
596
- cpu: number;
597
- memory: number;
598
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
599
- centsPerMs: number;
600
- };
601
- batch?: {
602
- id: string;
603
735
  } | undefined;
604
736
  };
605
737
  environment?: Record<string, string> | undefined;
@@ -611,7 +743,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
611
743
  }[] | undefined;
612
744
  }>;
613
745
  export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
614
- export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<{
746
+ export declare const V3ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<{
615
747
  task: z.ZodObject<{
616
748
  id: z.ZodString;
617
749
  filePath: z.ZodString;
@@ -660,11 +792,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
660
792
  version: z.ZodOptional<z.ZodString>;
661
793
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
662
794
  maxDuration: z.ZodOptional<z.ZodNumber>;
663
- context: z.ZodAny;
664
- durationMs: z.ZodDefault<z.ZodNumber>;
665
- costInCents: z.ZodDefault<z.ZodNumber>;
666
- baseCostInCents: z.ZodDefault<z.ZodNumber>;
667
- priority: z.ZodOptional<z.ZodNumber>;
795
+ context: z.ZodUnknown;
796
+ durationMs: z.ZodNumber;
797
+ costInCents: z.ZodNumber;
798
+ baseCostInCents: z.ZodNumber;
668
799
  }, "strip", z.ZodTypeAny, {
669
800
  payload: string;
670
801
  id: string;
@@ -673,23 +804,25 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
673
804
  isTest: boolean;
674
805
  createdAt: Date;
675
806
  startedAt: Date;
807
+ baseCostInCents: number;
676
808
  durationMs: number;
677
809
  costInCents: number;
678
- baseCostInCents: number;
679
- context?: any;
810
+ context?: unknown;
680
811
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
681
812
  idempotencyKey?: string | undefined;
682
813
  maxAttempts?: number | undefined;
683
814
  version?: string | undefined;
684
815
  maxDuration?: number | undefined;
685
- priority?: number | undefined;
686
816
  }, {
687
817
  payload: string;
688
818
  id: string;
689
819
  payloadType: string;
690
820
  tags: string[];
691
821
  createdAt: Date;
692
- context?: any;
822
+ baseCostInCents: number;
823
+ durationMs: number;
824
+ costInCents: number;
825
+ context?: unknown;
693
826
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
694
827
  isTest?: boolean | undefined;
695
828
  startedAt?: Date | undefined;
@@ -697,10 +830,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
697
830
  maxAttempts?: number | undefined;
698
831
  version?: string | undefined;
699
832
  maxDuration?: number | undefined;
700
- durationMs?: number | undefined;
701
- costInCents?: number | undefined;
702
- baseCostInCents?: number | undefined;
703
- priority?: number | undefined;
704
833
  }>, z.ZodObject<{
705
834
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
706
835
  }, "strip", z.ZodTypeAny, {
@@ -816,13 +945,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
816
945
  slug: string;
817
946
  ref: string;
818
947
  }>;
819
- batch: z.ZodOptional<z.ZodObject<{
820
- id: z.ZodString;
821
- }, "strip", z.ZodTypeAny, {
822
- id: string;
823
- }, {
824
- id: string;
825
- }>>;
826
948
  machine: z.ZodObject<{
827
949
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
828
950
  cpu: z.ZodNumber;
@@ -839,6 +961,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
839
961
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
840
962
  centsPerMs: number;
841
963
  }>;
964
+ batch: z.ZodOptional<z.ZodObject<{
965
+ id: z.ZodString;
966
+ }, "strip", z.ZodTypeAny, {
967
+ id: string;
968
+ }, {
969
+ id: string;
970
+ }>>;
842
971
  }, {
843
972
  worker: z.ZodObject<{
844
973
  id: z.ZodString;
@@ -878,35 +1007,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
878
1007
  filePath: string;
879
1008
  exportName?: string | undefined;
880
1009
  };
881
- attempt: {
882
- number: number;
883
- status: string;
884
- id: string;
885
- startedAt: Date;
886
- backgroundWorkerId: string;
887
- backgroundWorkerTaskId: string;
888
- };
889
- run: {
890
- payload: string;
891
- id: string;
892
- payloadType: string;
893
- tags: string[];
894
- isTest: boolean;
895
- createdAt: Date;
896
- startedAt: Date;
897
- durationMs: number;
898
- costInCents: number;
899
- baseCostInCents: number;
900
- context?: any;
901
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
902
- idempotencyKey?: string | undefined;
903
- maxAttempts?: number | undefined;
904
- version?: string | undefined;
905
- maxDuration?: number | undefined;
906
- priority?: number | undefined;
907
- } & {
908
- traceContext?: Record<string, unknown> | undefined;
909
- };
910
1010
  queue: {
911
1011
  name: string;
912
1012
  id: string;
@@ -945,21 +1045,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
945
1045
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
946
1046
  centsPerMs: number;
947
1047
  };
948
- worker: {
949
- id: string;
950
- version: string;
951
- contentHash: string;
952
- type?: "V1" | "V2" | undefined;
953
- };
954
- batch?: {
955
- id: string;
956
- } | undefined;
957
- }, {
958
- task: {
959
- id: string;
960
- filePath: string;
961
- exportName?: string | undefined;
962
- };
963
1048
  attempt: {
964
1049
  number: number;
965
1050
  status: string;
@@ -973,22 +1058,36 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
973
1058
  id: string;
974
1059
  payloadType: string;
975
1060
  tags: string[];
1061
+ isTest: boolean;
976
1062
  createdAt: Date;
977
- context?: any;
1063
+ startedAt: Date;
1064
+ baseCostInCents: number;
1065
+ durationMs: number;
1066
+ costInCents: number;
1067
+ context?: unknown;
978
1068
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
979
- isTest?: boolean | undefined;
980
- startedAt?: Date | undefined;
981
1069
  idempotencyKey?: string | undefined;
982
1070
  maxAttempts?: number | undefined;
983
1071
  version?: string | undefined;
984
1072
  maxDuration?: number | undefined;
985
- durationMs?: number | undefined;
986
- costInCents?: number | undefined;
987
- baseCostInCents?: number | undefined;
988
- priority?: number | undefined;
989
1073
  } & {
990
1074
  traceContext?: Record<string, unknown> | undefined;
991
1075
  };
1076
+ worker: {
1077
+ id: string;
1078
+ version: string;
1079
+ contentHash: string;
1080
+ type?: "V1" | "V2" | undefined;
1081
+ };
1082
+ batch?: {
1083
+ id: string;
1084
+ } | undefined;
1085
+ }, {
1086
+ task: {
1087
+ id: string;
1088
+ filePath: string;
1089
+ exportName?: string | undefined;
1090
+ };
992
1091
  queue: {
993
1092
  name: string;
994
1093
  id: string;
@@ -1021,24 +1120,52 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
1021
1120
  slug: string;
1022
1121
  ref: string;
1023
1122
  };
1123
+ attempt: {
1124
+ number: number;
1125
+ status: string;
1126
+ id: string;
1127
+ startedAt: Date;
1128
+ backgroundWorkerId: string;
1129
+ backgroundWorkerTaskId: string;
1130
+ };
1131
+ run: {
1132
+ payload: string;
1133
+ id: string;
1134
+ payloadType: string;
1135
+ tags: string[];
1136
+ createdAt: Date;
1137
+ baseCostInCents: number;
1138
+ durationMs: number;
1139
+ costInCents: number;
1140
+ context?: unknown;
1141
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1142
+ isTest?: boolean | undefined;
1143
+ startedAt?: Date | undefined;
1144
+ idempotencyKey?: string | undefined;
1145
+ maxAttempts?: number | undefined;
1146
+ version?: string | undefined;
1147
+ maxDuration?: number | undefined;
1148
+ } & {
1149
+ traceContext?: Record<string, unknown> | undefined;
1150
+ };
1024
1151
  worker: {
1025
1152
  id: string;
1026
1153
  version: string;
1027
1154
  contentHash: string;
1028
1155
  type?: "V1" | "V2" | undefined;
1029
1156
  };
1030
- batch?: {
1031
- id: string;
1032
- } | undefined;
1033
1157
  machine?: {
1034
1158
  cpu: number;
1035
1159
  memory: number;
1036
1160
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1037
1161
  centsPerMs: number;
1038
1162
  } | undefined;
1163
+ batch?: {
1164
+ id: string;
1165
+ } | undefined;
1039
1166
  }>;
1040
- export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
1041
- export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1167
+ export type V3ProdTaskRunExecution = z.infer<typeof V3ProdTaskRunExecution>;
1168
+ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
1042
1169
  execution: z.ZodObject<z.objectUtil.extendShape<{
1043
1170
  task: z.ZodObject<{
1044
1171
  id: z.ZodString;
@@ -1088,11 +1215,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1088
1215
  version: z.ZodOptional<z.ZodString>;
1089
1216
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
1090
1217
  maxDuration: z.ZodOptional<z.ZodNumber>;
1091
- context: z.ZodAny;
1092
- durationMs: z.ZodDefault<z.ZodNumber>;
1093
- costInCents: z.ZodDefault<z.ZodNumber>;
1094
- baseCostInCents: z.ZodDefault<z.ZodNumber>;
1095
- priority: z.ZodOptional<z.ZodNumber>;
1218
+ context: z.ZodUnknown;
1219
+ durationMs: z.ZodNumber;
1220
+ costInCents: z.ZodNumber;
1221
+ baseCostInCents: z.ZodNumber;
1096
1222
  }, "strip", z.ZodTypeAny, {
1097
1223
  payload: string;
1098
1224
  id: string;
@@ -1101,23 +1227,25 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1101
1227
  isTest: boolean;
1102
1228
  createdAt: Date;
1103
1229
  startedAt: Date;
1230
+ baseCostInCents: number;
1104
1231
  durationMs: number;
1105
1232
  costInCents: number;
1106
- baseCostInCents: number;
1107
- context?: any;
1233
+ context?: unknown;
1108
1234
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1109
1235
  idempotencyKey?: string | undefined;
1110
1236
  maxAttempts?: number | undefined;
1111
1237
  version?: string | undefined;
1112
1238
  maxDuration?: number | undefined;
1113
- priority?: number | undefined;
1114
1239
  }, {
1115
1240
  payload: string;
1116
1241
  id: string;
1117
1242
  payloadType: string;
1118
1243
  tags: string[];
1119
1244
  createdAt: Date;
1120
- context?: any;
1245
+ baseCostInCents: number;
1246
+ durationMs: number;
1247
+ costInCents: number;
1248
+ context?: unknown;
1121
1249
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1122
1250
  isTest?: boolean | undefined;
1123
1251
  startedAt?: Date | undefined;
@@ -1125,10 +1253,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1125
1253
  maxAttempts?: number | undefined;
1126
1254
  version?: string | undefined;
1127
1255
  maxDuration?: number | undefined;
1128
- durationMs?: number | undefined;
1129
- costInCents?: number | undefined;
1130
- baseCostInCents?: number | undefined;
1131
- priority?: number | undefined;
1132
1256
  }>, z.ZodObject<{
1133
1257
  traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1134
1258
  }, "strip", z.ZodTypeAny, {
@@ -1244,13 +1368,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1244
1368
  slug: string;
1245
1369
  ref: string;
1246
1370
  }>;
1247
- batch: z.ZodOptional<z.ZodObject<{
1248
- id: z.ZodString;
1249
- }, "strip", z.ZodTypeAny, {
1250
- id: string;
1251
- }, {
1252
- id: string;
1253
- }>>;
1254
1371
  machine: z.ZodObject<{
1255
1372
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
1256
1373
  cpu: z.ZodNumber;
@@ -1267,6 +1384,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1267
1384
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1268
1385
  centsPerMs: number;
1269
1386
  }>;
1387
+ batch: z.ZodOptional<z.ZodObject<{
1388
+ id: z.ZodString;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ id: string;
1391
+ }, {
1392
+ id: string;
1393
+ }>>;
1270
1394
  }, {
1271
1395
  worker: z.ZodObject<{
1272
1396
  id: z.ZodString;
@@ -1306,35 +1430,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1306
1430
  filePath: string;
1307
1431
  exportName?: string | undefined;
1308
1432
  };
1309
- attempt: {
1310
- number: number;
1311
- status: string;
1312
- id: string;
1313
- startedAt: Date;
1314
- backgroundWorkerId: string;
1315
- backgroundWorkerTaskId: string;
1316
- };
1317
- run: {
1318
- payload: string;
1319
- id: string;
1320
- payloadType: string;
1321
- tags: string[];
1322
- isTest: boolean;
1323
- createdAt: Date;
1324
- startedAt: Date;
1325
- durationMs: number;
1326
- costInCents: number;
1327
- baseCostInCents: number;
1328
- context?: any;
1329
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1330
- idempotencyKey?: string | undefined;
1331
- maxAttempts?: number | undefined;
1332
- version?: string | undefined;
1333
- maxDuration?: number | undefined;
1334
- priority?: number | undefined;
1335
- } & {
1336
- traceContext?: Record<string, unknown> | undefined;
1337
- };
1338
1433
  queue: {
1339
1434
  name: string;
1340
1435
  id: string;
@@ -1373,21 +1468,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1373
1468
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1374
1469
  centsPerMs: number;
1375
1470
  };
1376
- worker: {
1377
- id: string;
1378
- version: string;
1379
- contentHash: string;
1380
- type?: "V1" | "V2" | undefined;
1381
- };
1382
- batch?: {
1383
- id: string;
1384
- } | undefined;
1385
- }, {
1386
- task: {
1387
- id: string;
1388
- filePath: string;
1389
- exportName?: string | undefined;
1390
- };
1391
1471
  attempt: {
1392
1472
  number: number;
1393
1473
  status: string;
@@ -1401,22 +1481,36 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1401
1481
  id: string;
1402
1482
  payloadType: string;
1403
1483
  tags: string[];
1484
+ isTest: boolean;
1404
1485
  createdAt: Date;
1405
- context?: any;
1486
+ startedAt: Date;
1487
+ baseCostInCents: number;
1488
+ durationMs: number;
1489
+ costInCents: number;
1490
+ context?: unknown;
1406
1491
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1407
- isTest?: boolean | undefined;
1408
- startedAt?: Date | undefined;
1409
1492
  idempotencyKey?: string | undefined;
1410
1493
  maxAttempts?: number | undefined;
1411
1494
  version?: string | undefined;
1412
1495
  maxDuration?: number | undefined;
1413
- durationMs?: number | undefined;
1414
- costInCents?: number | undefined;
1415
- baseCostInCents?: number | undefined;
1416
- priority?: number | undefined;
1417
1496
  } & {
1418
1497
  traceContext?: Record<string, unknown> | undefined;
1419
1498
  };
1499
+ worker: {
1500
+ id: string;
1501
+ version: string;
1502
+ contentHash: string;
1503
+ type?: "V1" | "V2" | undefined;
1504
+ };
1505
+ batch?: {
1506
+ id: string;
1507
+ } | undefined;
1508
+ }, {
1509
+ task: {
1510
+ id: string;
1511
+ filePath: string;
1512
+ exportName?: string | undefined;
1513
+ };
1420
1514
  queue: {
1421
1515
  name: string;
1422
1516
  id: string;
@@ -1449,21 +1543,49 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1449
1543
  slug: string;
1450
1544
  ref: string;
1451
1545
  };
1546
+ attempt: {
1547
+ number: number;
1548
+ status: string;
1549
+ id: string;
1550
+ startedAt: Date;
1551
+ backgroundWorkerId: string;
1552
+ backgroundWorkerTaskId: string;
1553
+ };
1554
+ run: {
1555
+ payload: string;
1556
+ id: string;
1557
+ payloadType: string;
1558
+ tags: string[];
1559
+ createdAt: Date;
1560
+ baseCostInCents: number;
1561
+ durationMs: number;
1562
+ costInCents: number;
1563
+ context?: unknown;
1564
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1565
+ isTest?: boolean | undefined;
1566
+ startedAt?: Date | undefined;
1567
+ idempotencyKey?: string | undefined;
1568
+ maxAttempts?: number | undefined;
1569
+ version?: string | undefined;
1570
+ maxDuration?: number | undefined;
1571
+ } & {
1572
+ traceContext?: Record<string, unknown> | undefined;
1573
+ };
1452
1574
  worker: {
1453
1575
  id: string;
1454
1576
  version: string;
1455
1577
  contentHash: string;
1456
1578
  type?: "V1" | "V2" | undefined;
1457
1579
  };
1458
- batch?: {
1459
- id: string;
1460
- } | undefined;
1461
1580
  machine?: {
1462
1581
  cpu: number;
1463
1582
  memory: number;
1464
1583
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1465
1584
  centsPerMs: number;
1466
1585
  } | undefined;
1586
+ batch?: {
1587
+ id: string;
1588
+ } | undefined;
1467
1589
  }>;
1468
1590
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1469
1591
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1491,35 +1613,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1491
1613
  filePath: string;
1492
1614
  exportName?: string | undefined;
1493
1615
  };
1494
- attempt: {
1495
- number: number;
1496
- status: string;
1497
- id: string;
1498
- startedAt: Date;
1499
- backgroundWorkerId: string;
1500
- backgroundWorkerTaskId: string;
1501
- };
1502
- run: {
1503
- payload: string;
1504
- id: string;
1505
- payloadType: string;
1506
- tags: string[];
1507
- isTest: boolean;
1508
- createdAt: Date;
1509
- startedAt: Date;
1510
- durationMs: number;
1511
- costInCents: number;
1512
- baseCostInCents: number;
1513
- context?: any;
1514
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1515
- idempotencyKey?: string | undefined;
1516
- maxAttempts?: number | undefined;
1517
- version?: string | undefined;
1518
- maxDuration?: number | undefined;
1519
- priority?: number | undefined;
1520
- } & {
1521
- traceContext?: Record<string, unknown> | undefined;
1522
- };
1523
1616
  queue: {
1524
1617
  name: string;
1525
1618
  id: string;
@@ -1558,6 +1651,34 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1558
1651
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1559
1652
  centsPerMs: number;
1560
1653
  };
1654
+ attempt: {
1655
+ number: number;
1656
+ status: string;
1657
+ id: string;
1658
+ startedAt: Date;
1659
+ backgroundWorkerId: string;
1660
+ backgroundWorkerTaskId: string;
1661
+ };
1662
+ run: {
1663
+ payload: string;
1664
+ id: string;
1665
+ payloadType: string;
1666
+ tags: string[];
1667
+ isTest: boolean;
1668
+ createdAt: Date;
1669
+ startedAt: Date;
1670
+ baseCostInCents: number;
1671
+ durationMs: number;
1672
+ costInCents: number;
1673
+ context?: unknown;
1674
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1675
+ idempotencyKey?: string | undefined;
1676
+ maxAttempts?: number | undefined;
1677
+ version?: string | undefined;
1678
+ maxDuration?: number | undefined;
1679
+ } & {
1680
+ traceContext?: Record<string, unknown> | undefined;
1681
+ };
1561
1682
  worker: {
1562
1683
  id: string;
1563
1684
  version: string;
@@ -1583,35 +1704,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1583
1704
  filePath: string;
1584
1705
  exportName?: string | undefined;
1585
1706
  };
1586
- attempt: {
1587
- number: number;
1588
- status: string;
1589
- id: string;
1590
- startedAt: Date;
1591
- backgroundWorkerId: string;
1592
- backgroundWorkerTaskId: string;
1593
- };
1594
- run: {
1595
- payload: string;
1596
- id: string;
1597
- payloadType: string;
1598
- tags: string[];
1599
- createdAt: Date;
1600
- context?: any;
1601
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1602
- isTest?: boolean | undefined;
1603
- startedAt?: Date | undefined;
1604
- idempotencyKey?: string | undefined;
1605
- maxAttempts?: number | undefined;
1606
- version?: string | undefined;
1607
- maxDuration?: number | undefined;
1608
- durationMs?: number | undefined;
1609
- costInCents?: number | undefined;
1610
- baseCostInCents?: number | undefined;
1611
- priority?: number | undefined;
1612
- } & {
1613
- traceContext?: Record<string, unknown> | undefined;
1614
- };
1615
1707
  queue: {
1616
1708
  name: string;
1617
1709
  id: string;
@@ -1644,21 +1736,49 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1644
1736
  slug: string;
1645
1737
  ref: string;
1646
1738
  };
1739
+ attempt: {
1740
+ number: number;
1741
+ status: string;
1742
+ id: string;
1743
+ startedAt: Date;
1744
+ backgroundWorkerId: string;
1745
+ backgroundWorkerTaskId: string;
1746
+ };
1747
+ run: {
1748
+ payload: string;
1749
+ id: string;
1750
+ payloadType: string;
1751
+ tags: string[];
1752
+ createdAt: Date;
1753
+ baseCostInCents: number;
1754
+ durationMs: number;
1755
+ costInCents: number;
1756
+ context?: unknown;
1757
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1758
+ isTest?: boolean | undefined;
1759
+ startedAt?: Date | undefined;
1760
+ idempotencyKey?: string | undefined;
1761
+ maxAttempts?: number | undefined;
1762
+ version?: string | undefined;
1763
+ maxDuration?: number | undefined;
1764
+ } & {
1765
+ traceContext?: Record<string, unknown> | undefined;
1766
+ };
1647
1767
  worker: {
1648
1768
  id: string;
1649
1769
  version: string;
1650
1770
  contentHash: string;
1651
1771
  type?: "V1" | "V2" | undefined;
1652
1772
  };
1653
- batch?: {
1654
- id: string;
1655
- } | undefined;
1656
1773
  machine?: {
1657
1774
  cpu: number;
1658
1775
  memory: number;
1659
1776
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1660
1777
  centsPerMs: number;
1661
1778
  } | undefined;
1779
+ batch?: {
1780
+ id: string;
1781
+ } | undefined;
1662
1782
  };
1663
1783
  environment?: Record<string, string> | undefined;
1664
1784
  metrics?: {
@@ -1668,7 +1788,7 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1668
1788
  duration: number;
1669
1789
  }[] | undefined;
1670
1790
  }>;
1671
- export type ProdTaskRunExecutionPayload = z.infer<typeof ProdTaskRunExecutionPayload>;
1791
+ export type V3ProdTaskRunExecutionPayload = z.infer<typeof V3ProdTaskRunExecutionPayload>;
1672
1792
  export declare const FixedWindowRateLimit: z.ZodObject<{
1673
1793
  type: z.ZodLiteral<"fixed-window">;
1674
1794
  limit: z.ZodNumber;
@@ -2288,7 +2408,6 @@ export declare const TaskManifest: z.ZodObject<{
2288
2408
  filePath: string;
2289
2409
  entryPoint: string;
2290
2410
  maxDuration?: number | undefined;
2291
- exportName?: string | undefined;
2292
2411
  queue?: {
2293
2412
  name?: string | undefined;
2294
2413
  concurrencyLimit?: number | null | undefined;
@@ -2298,6 +2417,7 @@ export declare const TaskManifest: z.ZodObject<{
2298
2417
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2299
2418
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2300
2419
  } | undefined;
2420
+ exportName?: string | undefined;
2301
2421
  retry?: {
2302
2422
  maxAttempts?: number | undefined;
2303
2423
  factor?: number | undefined;
@@ -2320,7 +2440,6 @@ export declare const TaskManifest: z.ZodObject<{
2320
2440
  filePath: string;
2321
2441
  entryPoint: string;
2322
2442
  maxDuration?: number | undefined;
2323
- exportName?: string | undefined;
2324
2443
  queue?: {
2325
2444
  name?: string | undefined;
2326
2445
  concurrencyLimit?: number | null | undefined;
@@ -2330,6 +2449,7 @@ export declare const TaskManifest: z.ZodObject<{
2330
2449
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2331
2450
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2332
2451
  } | undefined;
2452
+ exportName?: string | undefined;
2333
2453
  retry?: {
2334
2454
  maxAttempts?: number | undefined;
2335
2455
  factor?: number | undefined;