@trigger.dev/core 0.0.0-prerelease-20240926084729 → 0.0.0-prerelease-20241003205750

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 (101) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/index.d.ts +55 -55
  3. package/dist/commonjs/v3/config.d.ts +8 -0
  4. package/dist/commonjs/v3/errors.js +4 -1
  5. package/dist/commonjs/v3/errors.js.map +1 -1
  6. package/dist/commonjs/v3/index.d.ts +1 -0
  7. package/dist/commonjs/v3/index.js +1 -0
  8. package/dist/commonjs/v3/index.js.map +1 -1
  9. package/dist/commonjs/v3/runMetadata/index.d.ts +2 -1
  10. package/dist/commonjs/v3/runMetadata/index.js +9 -2
  11. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  12. package/dist/commonjs/v3/schemas/api.d.ts +285 -266
  13. package/dist/commonjs/v3/schemas/api.js +3 -0
  14. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  15. package/dist/commonjs/v3/schemas/build.d.ts +66 -52
  16. package/dist/commonjs/v3/schemas/common.d.ts +116 -102
  17. package/dist/commonjs/v3/schemas/common.js +3 -0
  18. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  19. package/dist/commonjs/v3/schemas/messages.d.ts +2267 -2119
  20. package/dist/commonjs/v3/schemas/resources.d.ts +36 -28
  21. package/dist/commonjs/v3/schemas/resources.js +1 -0
  22. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  23. package/dist/commonjs/v3/schemas/schemas.d.ts +282 -257
  24. package/dist/commonjs/v3/schemas/schemas.js +1 -0
  25. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  26. package/dist/commonjs/v3/timeout/api.d.ts +11 -0
  27. package/dist/commonjs/v3/timeout/api.js +38 -0
  28. package/dist/commonjs/v3/timeout/api.js.map +1 -0
  29. package/dist/commonjs/v3/timeout/types.d.ts +9 -0
  30. package/dist/commonjs/v3/timeout/types.js +15 -0
  31. package/dist/commonjs/v3/timeout/types.js.map +1 -0
  32. package/dist/commonjs/v3/timeout/usageTimeoutManager.d.ts +10 -0
  33. package/dist/commonjs/v3/timeout/usageTimeoutManager.js +32 -0
  34. package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -0
  35. package/dist/commonjs/v3/timeout-api.d.ts +3 -0
  36. package/dist/commonjs/v3/timeout-api.js +9 -0
  37. package/dist/commonjs/v3/timeout-api.js.map +1 -0
  38. package/dist/commonjs/v3/tracer.d.ts +1 -1
  39. package/dist/commonjs/v3/tracer.js +28 -14
  40. package/dist/commonjs/v3/tracer.js.map +1 -1
  41. package/dist/commonjs/v3/types/index.d.ts +10 -0
  42. package/dist/commonjs/v3/utils/globals.d.ts +4 -0
  43. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  44. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  45. package/dist/commonjs/v3/workers/index.js +3 -1
  46. package/dist/commonjs/v3/workers/index.js.map +1 -1
  47. package/dist/commonjs/v3/workers/taskExecutor.d.ts +1 -1
  48. package/dist/commonjs/v3/workers/taskExecutor.js +41 -35
  49. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  50. package/dist/commonjs/version.js +1 -1
  51. package/dist/esm/schemas/api.d.ts +8 -8
  52. package/dist/esm/v3/apiClient/index.d.ts +55 -55
  53. package/dist/esm/v3/config.d.ts +8 -0
  54. package/dist/esm/v3/errors.js +4 -1
  55. package/dist/esm/v3/errors.js.map +1 -1
  56. package/dist/esm/v3/index.d.ts +1 -0
  57. package/dist/esm/v3/index.js +1 -0
  58. package/dist/esm/v3/index.js.map +1 -1
  59. package/dist/esm/v3/runMetadata/index.d.ts +2 -1
  60. package/dist/esm/v3/runMetadata/index.js +9 -2
  61. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  62. package/dist/esm/v3/schemas/api.d.ts +285 -266
  63. package/dist/esm/v3/schemas/api.js +3 -0
  64. package/dist/esm/v3/schemas/api.js.map +1 -1
  65. package/dist/esm/v3/schemas/build.d.ts +66 -52
  66. package/dist/esm/v3/schemas/common.d.ts +116 -102
  67. package/dist/esm/v3/schemas/common.js +3 -0
  68. package/dist/esm/v3/schemas/common.js.map +1 -1
  69. package/dist/esm/v3/schemas/messages.d.ts +2231 -2083
  70. package/dist/esm/v3/schemas/resources.d.ts +36 -28
  71. package/dist/esm/v3/schemas/resources.js +1 -0
  72. package/dist/esm/v3/schemas/resources.js.map +1 -1
  73. package/dist/esm/v3/schemas/schemas.d.ts +282 -257
  74. package/dist/esm/v3/schemas/schemas.js +1 -0
  75. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  76. package/dist/esm/v3/timeout/api.d.ts +11 -0
  77. package/dist/esm/v3/timeout/api.js +34 -0
  78. package/dist/esm/v3/timeout/api.js.map +1 -0
  79. package/dist/esm/v3/timeout/types.d.ts +9 -0
  80. package/dist/esm/v3/timeout/types.js +11 -0
  81. package/dist/esm/v3/timeout/types.js.map +1 -0
  82. package/dist/esm/v3/timeout/usageTimeoutManager.d.ts +10 -0
  83. package/dist/esm/v3/timeout/usageTimeoutManager.js +28 -0
  84. package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -0
  85. package/dist/esm/v3/timeout-api.d.ts +3 -0
  86. package/dist/esm/v3/timeout-api.js +6 -0
  87. package/dist/esm/v3/timeout-api.js.map +1 -0
  88. package/dist/esm/v3/tracer.d.ts +1 -1
  89. package/dist/esm/v3/tracer.js +28 -14
  90. package/dist/esm/v3/tracer.js.map +1 -1
  91. package/dist/esm/v3/types/index.d.ts +10 -0
  92. package/dist/esm/v3/utils/globals.d.ts +4 -0
  93. package/dist/esm/v3/utils/globals.js.map +1 -1
  94. package/dist/esm/v3/workers/index.d.ts +1 -0
  95. package/dist/esm/v3/workers/index.js +1 -0
  96. package/dist/esm/v3/workers/index.js.map +1 -1
  97. package/dist/esm/v3/workers/taskExecutor.d.ts +1 -1
  98. package/dist/esm/v3/workers/taskExecutor.js +41 -35
  99. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  100. package/dist/esm/version.js +1 -1
  101. package/package.json +1 -1
@@ -55,28 +55,30 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
55
55
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
56
56
  version: z.ZodOptional<z.ZodString>;
57
57
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
58
+ maxDuration: z.ZodOptional<z.ZodNumber>;
58
59
  }, "strip", z.ZodTypeAny, {
59
60
  id: string;
61
+ createdAt: Date;
60
62
  payload: string;
61
63
  payloadType: string;
62
64
  tags: string[];
63
65
  isTest: boolean;
64
- createdAt: Date;
65
66
  startedAt: Date;
66
- durationMs: number;
67
67
  costInCents: number;
68
68
  baseCostInCents: number;
69
+ durationMs: number;
69
70
  context?: any;
70
71
  idempotencyKey?: string | undefined;
71
72
  maxAttempts?: number | undefined;
72
73
  version?: string | undefined;
73
74
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
75
+ maxDuration?: number | undefined;
74
76
  }, {
75
77
  id: string;
78
+ createdAt: Date;
76
79
  payload: string;
77
80
  payloadType: string;
78
81
  tags: string[];
79
- createdAt: Date;
80
82
  context?: any;
81
83
  isTest?: boolean | undefined;
82
84
  startedAt?: Date | undefined;
@@ -87,16 +89,17 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
87
89
  baseCostInCents?: number | undefined;
88
90
  version?: string | undefined;
89
91
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
92
+ maxDuration?: number | undefined;
90
93
  }>;
91
94
  queue: z.ZodObject<{
92
95
  id: z.ZodString;
93
96
  name: z.ZodString;
94
97
  }, "strip", z.ZodTypeAny, {
95
- name: string;
96
98
  id: string;
97
- }, {
98
99
  name: string;
100
+ }, {
99
101
  id: string;
102
+ name: string;
100
103
  }>;
101
104
  environment: z.ZodObject<{
102
105
  id: z.ZodString;
@@ -116,12 +119,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
116
119
  slug: z.ZodString;
117
120
  name: z.ZodString;
118
121
  }, "strip", z.ZodTypeAny, {
119
- name: string;
120
122
  id: string;
123
+ name: string;
121
124
  slug: string;
122
125
  }, {
123
- name: string;
124
126
  id: string;
127
+ name: string;
125
128
  slug: string;
126
129
  }>;
127
130
  project: z.ZodObject<{
@@ -130,13 +133,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
130
133
  slug: z.ZodString;
131
134
  name: z.ZodString;
132
135
  }, "strip", z.ZodTypeAny, {
133
- name: string;
134
136
  id: string;
137
+ name: string;
135
138
  slug: string;
136
139
  ref: string;
137
140
  }, {
138
- name: string;
139
141
  id: string;
142
+ name: string;
140
143
  slug: string;
141
144
  ref: string;
142
145
  }>;
@@ -153,17 +156,26 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
153
156
  memory: z.ZodNumber;
154
157
  centsPerMs: z.ZodNumber;
155
158
  }, "strip", z.ZodTypeAny, {
159
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
156
160
  cpu: number;
157
161
  memory: number;
158
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
159
162
  centsPerMs: number;
160
163
  }, {
164
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
161
165
  cpu: number;
162
166
  memory: number;
163
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
164
167
  centsPerMs: number;
165
168
  }>>;
166
169
  }, "strip", z.ZodTypeAny, {
170
+ organization: {
171
+ id: string;
172
+ name: string;
173
+ slug: string;
174
+ };
175
+ queue: {
176
+ id: string;
177
+ name: string;
178
+ };
167
179
  task: {
168
180
  id: string;
169
181
  filePath: string;
@@ -179,38 +191,30 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
179
191
  };
180
192
  run: {
181
193
  id: string;
194
+ createdAt: Date;
182
195
  payload: string;
183
196
  payloadType: string;
184
197
  tags: string[];
185
198
  isTest: boolean;
186
- createdAt: Date;
187
199
  startedAt: Date;
188
- durationMs: number;
189
200
  costInCents: number;
190
201
  baseCostInCents: number;
202
+ durationMs: number;
191
203
  context?: any;
192
204
  idempotencyKey?: string | undefined;
193
205
  maxAttempts?: number | undefined;
194
206
  version?: string | undefined;
195
207
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
196
- };
197
- queue: {
198
- name: string;
199
- id: string;
208
+ maxDuration?: number | undefined;
200
209
  };
201
210
  environment: {
202
211
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
203
212
  id: string;
204
213
  slug: string;
205
214
  };
206
- organization: {
207
- name: string;
208
- id: string;
209
- slug: string;
210
- };
211
215
  project: {
212
- name: string;
213
216
  id: string;
217
+ name: string;
214
218
  slug: string;
215
219
  ref: string;
216
220
  };
@@ -218,12 +222,21 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
218
222
  id: string;
219
223
  } | undefined;
220
224
  machine?: {
225
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
221
226
  cpu: number;
222
227
  memory: number;
223
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
224
228
  centsPerMs: number;
225
229
  } | undefined;
226
230
  }, {
231
+ organization: {
232
+ id: string;
233
+ name: string;
234
+ slug: string;
235
+ };
236
+ queue: {
237
+ id: string;
238
+ name: string;
239
+ };
227
240
  task: {
228
241
  id: string;
229
242
  filePath: string;
@@ -239,10 +252,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
239
252
  };
240
253
  run: {
241
254
  id: string;
255
+ createdAt: Date;
242
256
  payload: string;
243
257
  payloadType: string;
244
258
  tags: string[];
245
- createdAt: Date;
246
259
  context?: any;
247
260
  isTest?: boolean | undefined;
248
261
  startedAt?: Date | undefined;
@@ -253,24 +266,16 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
253
266
  baseCostInCents?: number | undefined;
254
267
  version?: string | undefined;
255
268
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
256
- };
257
- queue: {
258
- name: string;
259
- id: string;
269
+ maxDuration?: number | undefined;
260
270
  };
261
271
  environment: {
262
272
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
263
273
  id: string;
264
274
  slug: string;
265
275
  };
266
- organization: {
267
- name: string;
268
- id: string;
269
- slug: string;
270
- };
271
276
  project: {
272
- name: string;
273
277
  id: string;
278
+ name: string;
274
279
  slug: string;
275
280
  ref: string;
276
281
  };
@@ -278,9 +283,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
278
283
  id: string;
279
284
  } | undefined;
280
285
  machine?: {
286
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
281
287
  cpu: number;
282
288
  memory: number;
283
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
284
289
  centsPerMs: number;
285
290
  } | undefined;
286
291
  }>;
@@ -288,6 +293,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
288
293
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
294
  }, "strip", z.ZodTypeAny, {
290
295
  execution: {
296
+ organization: {
297
+ id: string;
298
+ name: string;
299
+ slug: string;
300
+ };
301
+ queue: {
302
+ id: string;
303
+ name: string;
304
+ };
291
305
  task: {
292
306
  id: string;
293
307
  filePath: string;
@@ -303,38 +317,30 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
303
317
  };
304
318
  run: {
305
319
  id: string;
320
+ createdAt: Date;
306
321
  payload: string;
307
322
  payloadType: string;
308
323
  tags: string[];
309
324
  isTest: boolean;
310
- createdAt: Date;
311
325
  startedAt: Date;
312
- durationMs: number;
313
326
  costInCents: number;
314
327
  baseCostInCents: number;
328
+ durationMs: number;
315
329
  context?: any;
316
330
  idempotencyKey?: string | undefined;
317
331
  maxAttempts?: number | undefined;
318
332
  version?: string | undefined;
319
333
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
320
- };
321
- queue: {
322
- name: string;
323
- id: string;
334
+ maxDuration?: number | undefined;
324
335
  };
325
336
  environment: {
326
337
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
327
338
  id: string;
328
339
  slug: string;
329
340
  };
330
- organization: {
331
- name: string;
332
- id: string;
333
- slug: string;
334
- };
335
341
  project: {
336
- name: string;
337
342
  id: string;
343
+ name: string;
338
344
  slug: string;
339
345
  ref: string;
340
346
  };
@@ -342,9 +348,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
342
348
  id: string;
343
349
  } | undefined;
344
350
  machine?: {
351
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
345
352
  cpu: number;
346
353
  memory: number;
347
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
348
354
  centsPerMs: number;
349
355
  } | undefined;
350
356
  };
@@ -352,6 +358,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
352
358
  environment?: Record<string, string> | undefined;
353
359
  }, {
354
360
  execution: {
361
+ organization: {
362
+ id: string;
363
+ name: string;
364
+ slug: string;
365
+ };
366
+ queue: {
367
+ id: string;
368
+ name: string;
369
+ };
355
370
  task: {
356
371
  id: string;
357
372
  filePath: string;
@@ -367,10 +382,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
367
382
  };
368
383
  run: {
369
384
  id: string;
385
+ createdAt: Date;
370
386
  payload: string;
371
387
  payloadType: string;
372
388
  tags: string[];
373
- createdAt: Date;
374
389
  context?: any;
375
390
  isTest?: boolean | undefined;
376
391
  startedAt?: Date | undefined;
@@ -381,24 +396,16 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
381
396
  baseCostInCents?: number | undefined;
382
397
  version?: string | undefined;
383
398
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
384
- };
385
- queue: {
386
- name: string;
387
- id: string;
399
+ maxDuration?: number | undefined;
388
400
  };
389
401
  environment: {
390
402
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
391
403
  id: string;
392
404
  slug: string;
393
405
  };
394
- organization: {
395
- name: string;
396
- id: string;
397
- slug: string;
398
- };
399
406
  project: {
400
- name: string;
401
407
  id: string;
408
+ name: string;
402
409
  slug: string;
403
410
  ref: string;
404
411
  };
@@ -406,9 +413,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
406
413
  id: string;
407
414
  } | undefined;
408
415
  machine?: {
416
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
409
417
  cpu: number;
410
418
  memory: number;
411
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
412
419
  centsPerMs: number;
413
420
  } | undefined;
414
421
  };
@@ -417,6 +424,29 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
417
424
  }>;
418
425
  export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
419
426
  export declare const ProdTaskRunExecution: z.ZodObject<{
427
+ organization: z.ZodObject<{
428
+ id: z.ZodString;
429
+ slug: z.ZodString;
430
+ name: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ id: string;
433
+ name: string;
434
+ slug: string;
435
+ }, {
436
+ id: string;
437
+ name: string;
438
+ slug: string;
439
+ }>;
440
+ queue: z.ZodObject<{
441
+ id: z.ZodString;
442
+ name: z.ZodString;
443
+ }, "strip", z.ZodTypeAny, {
444
+ id: string;
445
+ name: string;
446
+ }, {
447
+ id: string;
448
+ name: string;
449
+ }>;
420
450
  task: z.ZodObject<{
421
451
  id: z.ZodString;
422
452
  filePath: z.ZodString;
@@ -468,28 +498,30 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
468
498
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
469
499
  version: z.ZodOptional<z.ZodString>;
470
500
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
501
+ maxDuration: z.ZodOptional<z.ZodNumber>;
471
502
  }, "strip", z.ZodTypeAny, {
472
503
  id: string;
504
+ createdAt: Date;
473
505
  payload: string;
474
506
  payloadType: string;
475
507
  tags: string[];
476
508
  isTest: boolean;
477
- createdAt: Date;
478
509
  startedAt: Date;
479
- durationMs: number;
480
510
  costInCents: number;
481
511
  baseCostInCents: number;
512
+ durationMs: number;
482
513
  context?: any;
483
514
  idempotencyKey?: string | undefined;
484
515
  maxAttempts?: number | undefined;
485
516
  version?: string | undefined;
486
517
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
518
+ maxDuration?: number | undefined;
487
519
  }, {
488
520
  id: string;
521
+ createdAt: Date;
489
522
  payload: string;
490
523
  payloadType: string;
491
524
  tags: string[];
492
- createdAt: Date;
493
525
  context?: any;
494
526
  isTest?: boolean | undefined;
495
527
  startedAt?: Date | undefined;
@@ -500,16 +532,7 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
500
532
  baseCostInCents?: number | undefined;
501
533
  version?: string | undefined;
502
534
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
503
- }>;
504
- queue: z.ZodObject<{
505
- id: z.ZodString;
506
- name: z.ZodString;
507
- }, "strip", z.ZodTypeAny, {
508
- name: string;
509
- id: string;
510
- }, {
511
- name: string;
512
- id: string;
535
+ maxDuration?: number | undefined;
513
536
  }>;
514
537
  environment: z.ZodObject<{
515
538
  id: z.ZodString;
@@ -524,32 +547,19 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
524
547
  id: string;
525
548
  slug: string;
526
549
  }>;
527
- organization: z.ZodObject<{
528
- id: z.ZodString;
529
- slug: z.ZodString;
530
- name: z.ZodString;
531
- }, "strip", z.ZodTypeAny, {
532
- name: string;
533
- id: string;
534
- slug: string;
535
- }, {
536
- name: string;
537
- id: string;
538
- slug: string;
539
- }>;
540
550
  project: z.ZodObject<{
541
551
  id: z.ZodString;
542
552
  ref: z.ZodString;
543
553
  slug: z.ZodString;
544
554
  name: z.ZodString;
545
555
  }, "strip", z.ZodTypeAny, {
546
- name: string;
547
556
  id: string;
557
+ name: string;
548
558
  slug: string;
549
559
  ref: string;
550
560
  }, {
551
- name: string;
552
561
  id: string;
562
+ name: string;
553
563
  slug: string;
554
564
  ref: string;
555
565
  }>;
@@ -566,12 +576,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
566
576
  version: z.ZodString;
567
577
  }, "strip", z.ZodTypeAny, {
568
578
  id: string;
569
- version: string;
570
579
  contentHash: string;
580
+ version: string;
571
581
  }, {
572
582
  id: string;
573
- version: string;
574
583
  contentHash: string;
584
+ version: string;
575
585
  }>;
576
586
  machine: z.ZodDefault<z.ZodObject<{
577
587
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
@@ -579,17 +589,37 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
579
589
  memory: z.ZodNumber;
580
590
  centsPerMs: z.ZodNumber;
581
591
  }, "strip", z.ZodTypeAny, {
592
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
582
593
  cpu: number;
583
594
  memory: number;
584
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
585
595
  centsPerMs: number;
586
596
  }, {
597
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
587
598
  cpu: number;
588
599
  memory: number;
589
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
590
600
  centsPerMs: number;
591
601
  }>>;
592
602
  }, "strip", z.ZodTypeAny, {
603
+ organization: {
604
+ id: string;
605
+ name: string;
606
+ slug: string;
607
+ };
608
+ queue: {
609
+ id: string;
610
+ name: string;
611
+ };
612
+ machine: {
613
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
614
+ cpu: number;
615
+ memory: number;
616
+ centsPerMs: number;
617
+ };
618
+ worker: {
619
+ id: string;
620
+ contentHash: string;
621
+ version: string;
622
+ };
593
623
  task: {
594
624
  id: string;
595
625
  filePath: string;
@@ -605,56 +635,51 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
605
635
  };
606
636
  run: {
607
637
  id: string;
638
+ createdAt: Date;
608
639
  payload: string;
609
640
  payloadType: string;
610
641
  tags: string[];
611
642
  isTest: boolean;
612
- createdAt: Date;
613
643
  startedAt: Date;
614
- durationMs: number;
615
644
  costInCents: number;
616
645
  baseCostInCents: number;
646
+ durationMs: number;
617
647
  context?: any;
618
648
  idempotencyKey?: string | undefined;
619
649
  maxAttempts?: number | undefined;
620
650
  version?: string | undefined;
621
651
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
622
- };
623
- queue: {
624
- name: string;
625
- id: string;
652
+ maxDuration?: number | undefined;
626
653
  };
627
654
  environment: {
628
655
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
629
656
  id: string;
630
657
  slug: string;
631
658
  };
632
- organization: {
633
- name: string;
659
+ project: {
634
660
  id: string;
661
+ name: string;
635
662
  slug: string;
663
+ ref: string;
636
664
  };
637
- project: {
638
- name: string;
665
+ batch?: {
666
+ id: string;
667
+ } | undefined;
668
+ }, {
669
+ organization: {
639
670
  id: string;
671
+ name: string;
640
672
  slug: string;
641
- ref: string;
642
673
  };
643
- machine: {
644
- cpu: number;
645
- memory: number;
646
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
647
- centsPerMs: number;
674
+ queue: {
675
+ id: string;
676
+ name: string;
648
677
  };
649
678
  worker: {
650
679
  id: string;
651
- version: string;
652
680
  contentHash: string;
681
+ version: string;
653
682
  };
654
- batch?: {
655
- id: string;
656
- } | undefined;
657
- }, {
658
683
  task: {
659
684
  id: string;
660
685
  filePath: string;
@@ -670,10 +695,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
670
695
  };
671
696
  run: {
672
697
  id: string;
698
+ createdAt: Date;
673
699
  payload: string;
674
700
  payloadType: string;
675
701
  tags: string[];
676
- createdAt: Date;
677
702
  context?: any;
678
703
  isTest?: boolean | undefined;
679
704
  startedAt?: Date | undefined;
@@ -684,45 +709,55 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
684
709
  baseCostInCents?: number | undefined;
685
710
  version?: string | undefined;
686
711
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
687
- };
688
- queue: {
689
- name: string;
690
- id: string;
712
+ maxDuration?: number | undefined;
691
713
  };
692
714
  environment: {
693
715
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
694
716
  id: string;
695
717
  slug: string;
696
718
  };
697
- organization: {
698
- name: string;
699
- id: string;
700
- slug: string;
701
- };
702
719
  project: {
703
- name: string;
704
720
  id: string;
721
+ name: string;
705
722
  slug: string;
706
723
  ref: string;
707
724
  };
708
- worker: {
709
- id: string;
710
- version: string;
711
- contentHash: string;
712
- };
713
725
  batch?: {
714
726
  id: string;
715
727
  } | undefined;
716
728
  machine?: {
729
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
717
730
  cpu: number;
718
731
  memory: number;
719
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
720
732
  centsPerMs: number;
721
733
  } | undefined;
722
734
  }>;
723
735
  export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
724
736
  export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
725
737
  execution: z.ZodObject<{
738
+ organization: z.ZodObject<{
739
+ id: z.ZodString;
740
+ slug: z.ZodString;
741
+ name: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ id: string;
744
+ name: string;
745
+ slug: string;
746
+ }, {
747
+ id: string;
748
+ name: string;
749
+ slug: string;
750
+ }>;
751
+ queue: z.ZodObject<{
752
+ id: z.ZodString;
753
+ name: z.ZodString;
754
+ }, "strip", z.ZodTypeAny, {
755
+ id: string;
756
+ name: string;
757
+ }, {
758
+ id: string;
759
+ name: string;
760
+ }>;
726
761
  task: z.ZodObject<{
727
762
  id: z.ZodString;
728
763
  filePath: z.ZodString;
@@ -774,28 +809,30 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
774
809
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
775
810
  version: z.ZodOptional<z.ZodString>;
776
811
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
812
+ maxDuration: z.ZodOptional<z.ZodNumber>;
777
813
  }, "strip", z.ZodTypeAny, {
778
814
  id: string;
815
+ createdAt: Date;
779
816
  payload: string;
780
817
  payloadType: string;
781
818
  tags: string[];
782
819
  isTest: boolean;
783
- createdAt: Date;
784
820
  startedAt: Date;
785
- durationMs: number;
786
821
  costInCents: number;
787
822
  baseCostInCents: number;
823
+ durationMs: number;
788
824
  context?: any;
789
825
  idempotencyKey?: string | undefined;
790
826
  maxAttempts?: number | undefined;
791
827
  version?: string | undefined;
792
828
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
829
+ maxDuration?: number | undefined;
793
830
  }, {
794
831
  id: string;
832
+ createdAt: Date;
795
833
  payload: string;
796
834
  payloadType: string;
797
835
  tags: string[];
798
- createdAt: Date;
799
836
  context?: any;
800
837
  isTest?: boolean | undefined;
801
838
  startedAt?: Date | undefined;
@@ -806,16 +843,7 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
806
843
  baseCostInCents?: number | undefined;
807
844
  version?: string | undefined;
808
845
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
809
- }>;
810
- queue: z.ZodObject<{
811
- id: z.ZodString;
812
- name: z.ZodString;
813
- }, "strip", z.ZodTypeAny, {
814
- name: string;
815
- id: string;
816
- }, {
817
- name: string;
818
- id: string;
846
+ maxDuration?: number | undefined;
819
847
  }>;
820
848
  environment: z.ZodObject<{
821
849
  id: z.ZodString;
@@ -830,32 +858,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
830
858
  id: string;
831
859
  slug: string;
832
860
  }>;
833
- organization: z.ZodObject<{
834
- id: z.ZodString;
835
- slug: z.ZodString;
836
- name: z.ZodString;
837
- }, "strip", z.ZodTypeAny, {
838
- name: string;
839
- id: string;
840
- slug: string;
841
- }, {
842
- name: string;
843
- id: string;
844
- slug: string;
845
- }>;
846
861
  project: z.ZodObject<{
847
862
  id: z.ZodString;
848
863
  ref: z.ZodString;
849
864
  slug: z.ZodString;
850
865
  name: z.ZodString;
851
866
  }, "strip", z.ZodTypeAny, {
852
- name: string;
853
867
  id: string;
868
+ name: string;
854
869
  slug: string;
855
870
  ref: string;
856
871
  }, {
857
- name: string;
858
872
  id: string;
873
+ name: string;
859
874
  slug: string;
860
875
  ref: string;
861
876
  }>;
@@ -872,12 +887,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
872
887
  version: z.ZodString;
873
888
  }, "strip", z.ZodTypeAny, {
874
889
  id: string;
875
- version: string;
876
890
  contentHash: string;
891
+ version: string;
877
892
  }, {
878
893
  id: string;
879
- version: string;
880
894
  contentHash: string;
895
+ version: string;
881
896
  }>;
882
897
  machine: z.ZodDefault<z.ZodObject<{
883
898
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
@@ -885,17 +900,37 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
885
900
  memory: z.ZodNumber;
886
901
  centsPerMs: z.ZodNumber;
887
902
  }, "strip", z.ZodTypeAny, {
903
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
888
904
  cpu: number;
889
905
  memory: number;
890
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
891
906
  centsPerMs: number;
892
907
  }, {
908
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
893
909
  cpu: number;
894
910
  memory: number;
895
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
896
911
  centsPerMs: number;
897
912
  }>>;
898
913
  }, "strip", z.ZodTypeAny, {
914
+ organization: {
915
+ id: string;
916
+ name: string;
917
+ slug: string;
918
+ };
919
+ queue: {
920
+ id: string;
921
+ name: string;
922
+ };
923
+ machine: {
924
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
925
+ cpu: number;
926
+ memory: number;
927
+ centsPerMs: number;
928
+ };
929
+ worker: {
930
+ id: string;
931
+ contentHash: string;
932
+ version: string;
933
+ };
899
934
  task: {
900
935
  id: string;
901
936
  filePath: string;
@@ -911,56 +946,51 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
911
946
  };
912
947
  run: {
913
948
  id: string;
949
+ createdAt: Date;
914
950
  payload: string;
915
951
  payloadType: string;
916
952
  tags: string[];
917
953
  isTest: boolean;
918
- createdAt: Date;
919
954
  startedAt: Date;
920
- durationMs: number;
921
955
  costInCents: number;
922
956
  baseCostInCents: number;
957
+ durationMs: number;
923
958
  context?: any;
924
959
  idempotencyKey?: string | undefined;
925
960
  maxAttempts?: number | undefined;
926
961
  version?: string | undefined;
927
962
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
928
- };
929
- queue: {
930
- name: string;
931
- id: string;
963
+ maxDuration?: number | undefined;
932
964
  };
933
965
  environment: {
934
966
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
935
967
  id: string;
936
968
  slug: string;
937
969
  };
938
- organization: {
939
- name: string;
970
+ project: {
940
971
  id: string;
972
+ name: string;
941
973
  slug: string;
974
+ ref: string;
942
975
  };
943
- project: {
944
- name: string;
976
+ batch?: {
945
977
  id: string;
978
+ } | undefined;
979
+ }, {
980
+ organization: {
981
+ id: string;
982
+ name: string;
946
983
  slug: string;
947
- ref: string;
948
984
  };
949
- machine: {
950
- cpu: number;
951
- memory: number;
952
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
953
- centsPerMs: number;
985
+ queue: {
986
+ id: string;
987
+ name: string;
954
988
  };
955
989
  worker: {
956
990
  id: string;
957
- version: string;
958
991
  contentHash: string;
992
+ version: string;
959
993
  };
960
- batch?: {
961
- id: string;
962
- } | undefined;
963
- }, {
964
994
  task: {
965
995
  id: string;
966
996
  filePath: string;
@@ -976,10 +1006,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
976
1006
  };
977
1007
  run: {
978
1008
  id: string;
1009
+ createdAt: Date;
979
1010
  payload: string;
980
1011
  payloadType: string;
981
1012
  tags: string[];
982
- createdAt: Date;
983
1013
  context?: any;
984
1014
  isTest?: boolean | undefined;
985
1015
  startedAt?: Date | undefined;
@@ -990,39 +1020,26 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
990
1020
  baseCostInCents?: number | undefined;
991
1021
  version?: string | undefined;
992
1022
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
993
- };
994
- queue: {
995
- name: string;
996
- id: string;
1023
+ maxDuration?: number | undefined;
997
1024
  };
998
1025
  environment: {
999
1026
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1000
1027
  id: string;
1001
1028
  slug: string;
1002
1029
  };
1003
- organization: {
1004
- name: string;
1005
- id: string;
1006
- slug: string;
1007
- };
1008
1030
  project: {
1009
- name: string;
1010
1031
  id: string;
1032
+ name: string;
1011
1033
  slug: string;
1012
1034
  ref: string;
1013
1035
  };
1014
- worker: {
1015
- id: string;
1016
- version: string;
1017
- contentHash: string;
1018
- };
1019
1036
  batch?: {
1020
1037
  id: string;
1021
1038
  } | undefined;
1022
1039
  machine?: {
1040
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1023
1041
  cpu: number;
1024
1042
  memory: number;
1025
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1026
1043
  centsPerMs: number;
1027
1044
  } | undefined;
1028
1045
  }>;
@@ -1030,6 +1047,26 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1030
1047
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1031
1048
  }, "strip", z.ZodTypeAny, {
1032
1049
  execution: {
1050
+ organization: {
1051
+ id: string;
1052
+ name: string;
1053
+ slug: string;
1054
+ };
1055
+ queue: {
1056
+ id: string;
1057
+ name: string;
1058
+ };
1059
+ machine: {
1060
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1061
+ cpu: number;
1062
+ memory: number;
1063
+ centsPerMs: number;
1064
+ };
1065
+ worker: {
1066
+ id: string;
1067
+ contentHash: string;
1068
+ version: string;
1069
+ };
1033
1070
  task: {
1034
1071
  id: string;
1035
1072
  filePath: string;
@@ -1045,52 +1082,33 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1045
1082
  };
1046
1083
  run: {
1047
1084
  id: string;
1085
+ createdAt: Date;
1048
1086
  payload: string;
1049
1087
  payloadType: string;
1050
1088
  tags: string[];
1051
1089
  isTest: boolean;
1052
- createdAt: Date;
1053
1090
  startedAt: Date;
1054
- durationMs: number;
1055
1091
  costInCents: number;
1056
1092
  baseCostInCents: number;
1093
+ durationMs: number;
1057
1094
  context?: any;
1058
1095
  idempotencyKey?: string | undefined;
1059
1096
  maxAttempts?: number | undefined;
1060
1097
  version?: string | undefined;
1061
1098
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1062
- };
1063
- queue: {
1064
- name: string;
1065
- id: string;
1099
+ maxDuration?: number | undefined;
1066
1100
  };
1067
1101
  environment: {
1068
1102
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1069
1103
  id: string;
1070
1104
  slug: string;
1071
1105
  };
1072
- organization: {
1073
- name: string;
1074
- id: string;
1075
- slug: string;
1076
- };
1077
1106
  project: {
1078
- name: string;
1079
1107
  id: string;
1108
+ name: string;
1080
1109
  slug: string;
1081
1110
  ref: string;
1082
1111
  };
1083
- machine: {
1084
- cpu: number;
1085
- memory: number;
1086
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1087
- centsPerMs: number;
1088
- };
1089
- worker: {
1090
- id: string;
1091
- version: string;
1092
- contentHash: string;
1093
- };
1094
1112
  batch?: {
1095
1113
  id: string;
1096
1114
  } | undefined;
@@ -1099,6 +1117,20 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1099
1117
  environment?: Record<string, string> | undefined;
1100
1118
  }, {
1101
1119
  execution: {
1120
+ organization: {
1121
+ id: string;
1122
+ name: string;
1123
+ slug: string;
1124
+ };
1125
+ queue: {
1126
+ id: string;
1127
+ name: string;
1128
+ };
1129
+ worker: {
1130
+ id: string;
1131
+ contentHash: string;
1132
+ version: string;
1133
+ };
1102
1134
  task: {
1103
1135
  id: string;
1104
1136
  filePath: string;
@@ -1114,10 +1146,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1114
1146
  };
1115
1147
  run: {
1116
1148
  id: string;
1149
+ createdAt: Date;
1117
1150
  payload: string;
1118
1151
  payloadType: string;
1119
1152
  tags: string[];
1120
- createdAt: Date;
1121
1153
  context?: any;
1122
1154
  isTest?: boolean | undefined;
1123
1155
  startedAt?: Date | undefined;
@@ -1128,39 +1160,26 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1128
1160
  baseCostInCents?: number | undefined;
1129
1161
  version?: string | undefined;
1130
1162
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1131
- };
1132
- queue: {
1133
- name: string;
1134
- id: string;
1163
+ maxDuration?: number | undefined;
1135
1164
  };
1136
1165
  environment: {
1137
1166
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1138
1167
  id: string;
1139
1168
  slug: string;
1140
1169
  };
1141
- organization: {
1142
- name: string;
1143
- id: string;
1144
- slug: string;
1145
- };
1146
1170
  project: {
1147
- name: string;
1148
1171
  id: string;
1172
+ name: string;
1149
1173
  slug: string;
1150
1174
  ref: string;
1151
1175
  };
1152
- worker: {
1153
- id: string;
1154
- version: string;
1155
- contentHash: string;
1156
- };
1157
1176
  batch?: {
1158
1177
  id: string;
1159
1178
  } | undefined;
1160
1179
  machine?: {
1180
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1161
1181
  cpu: number;
1162
1182
  memory: number;
1163
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1164
1183
  centsPerMs: number;
1165
1184
  } | undefined;
1166
1185
  };
@@ -1907,12 +1926,12 @@ export declare const TaskMetadata: z.ZodObject<{
1907
1926
  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>]>>;
1908
1927
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1909
1928
  }, "strip", z.ZodTypeAny, {
1910
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1911
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1929
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1930
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1912
1931
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1913
1932
  }, {
1914
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1915
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1933
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1934
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1916
1935
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1917
1936
  }>>;
1918
1937
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -1926,6 +1945,7 @@ export declare const TaskMetadata: z.ZodObject<{
1926
1945
  cron: string;
1927
1946
  timezone: string;
1928
1947
  }>>;
1948
+ maxDuration: z.ZodOptional<z.ZodNumber>;
1929
1949
  }, "strip", z.ZodTypeAny, {
1930
1950
  id: string;
1931
1951
  queue?: {
@@ -1973,8 +1993,8 @@ export declare const TaskMetadata: z.ZodObject<{
1973
1993
  randomize?: boolean | undefined;
1974
1994
  } | undefined;
1975
1995
  machine?: {
1976
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1977
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1996
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1997
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1978
1998
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1979
1999
  } | undefined;
1980
2000
  triggerSource?: string | undefined;
@@ -1982,6 +2002,7 @@ export declare const TaskMetadata: z.ZodObject<{
1982
2002
  cron: string;
1983
2003
  timezone: string;
1984
2004
  } | undefined;
2005
+ maxDuration?: number | undefined;
1985
2006
  }, {
1986
2007
  id: string;
1987
2008
  queue?: {
@@ -2029,8 +2050,8 @@ export declare const TaskMetadata: z.ZodObject<{
2029
2050
  randomize?: boolean | undefined;
2030
2051
  } | undefined;
2031
2052
  machine?: {
2032
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2033
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2053
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2054
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2034
2055
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2035
2056
  } | undefined;
2036
2057
  triggerSource?: string | undefined;
@@ -2038,6 +2059,7 @@ export declare const TaskMetadata: z.ZodObject<{
2038
2059
  cron: string;
2039
2060
  timezone: string;
2040
2061
  } | undefined;
2062
+ maxDuration?: number | undefined;
2041
2063
  }>;
2042
2064
  export type TaskMetadata = z.infer<typeof TaskMetadata>;
2043
2065
  export declare const TaskFile: z.ZodObject<{
@@ -2325,12 +2347,12 @@ export declare const TaskManifest: z.ZodObject<{
2325
2347
  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>]>>;
2326
2348
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2327
2349
  }, "strip", z.ZodTypeAny, {
2328
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2329
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2350
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2351
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2330
2352
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2331
2353
  }, {
2332
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2333
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2354
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2355
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2334
2356
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2335
2357
  }>>;
2336
2358
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -2344,6 +2366,7 @@ export declare const TaskManifest: z.ZodObject<{
2344
2366
  cron: string;
2345
2367
  timezone: string;
2346
2368
  }>>;
2369
+ maxDuration: z.ZodOptional<z.ZodNumber>;
2347
2370
  }, "strip", z.ZodTypeAny, {
2348
2371
  id: string;
2349
2372
  filePath: string;
@@ -2394,8 +2417,8 @@ export declare const TaskManifest: z.ZodObject<{
2394
2417
  randomize?: boolean | undefined;
2395
2418
  } | undefined;
2396
2419
  machine?: {
2397
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2398
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2420
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2421
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2399
2422
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2400
2423
  } | undefined;
2401
2424
  triggerSource?: string | undefined;
@@ -2403,6 +2426,7 @@ export declare const TaskManifest: z.ZodObject<{
2403
2426
  cron: string;
2404
2427
  timezone: string;
2405
2428
  } | undefined;
2429
+ maxDuration?: number | undefined;
2406
2430
  }, {
2407
2431
  id: string;
2408
2432
  filePath: string;
@@ -2453,8 +2477,8 @@ export declare const TaskManifest: z.ZodObject<{
2453
2477
  randomize?: boolean | undefined;
2454
2478
  } | undefined;
2455
2479
  machine?: {
2456
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2457
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2480
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2481
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2458
2482
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2459
2483
  } | undefined;
2460
2484
  triggerSource?: string | undefined;
@@ -2462,6 +2486,7 @@ export declare const TaskManifest: z.ZodObject<{
2462
2486
  cron: string;
2463
2487
  timezone: string;
2464
2488
  } | undefined;
2489
+ maxDuration?: number | undefined;
2465
2490
  }>;
2466
2491
  export type TaskManifest = z.infer<typeof TaskManifest>;
2467
2492
  export declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;