@trigger.dev/core 0.0.0-prerelease-20241213125952 → 0.0.0-prerelease-20241216144353

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 (50) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +124 -124
  2. package/dist/commonjs/v3/index.d.ts +1 -0
  3. package/dist/commonjs/v3/index.js +1 -0
  4. package/dist/commonjs/v3/index.js.map +1 -1
  5. package/dist/commonjs/v3/runMetadata/index.d.ts +3 -1
  6. package/dist/commonjs/v3/runMetadata/index.js +6 -0
  7. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  8. package/dist/commonjs/v3/runMetadata/manager.d.ts +6 -1
  9. package/dist/commonjs/v3/runMetadata/manager.js +57 -7
  10. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  11. package/dist/commonjs/v3/runMetadata/metadataSync.d.ts +1 -0
  12. package/dist/commonjs/v3/runMetadata/metadataSync.js +3 -0
  13. package/dist/commonjs/v3/runMetadata/metadataSync.js.map +1 -0
  14. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +3 -1
  15. package/dist/commonjs/v3/runMetadata/noopManager.js +20 -0
  16. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  17. package/dist/commonjs/v3/runMetadata/types.d.ts +8 -4
  18. package/dist/commonjs/v3/schemas/api.d.ts +869 -481
  19. package/dist/commonjs/v3/schemas/api.js +40 -1
  20. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  21. package/dist/commonjs/v3/schemas/build.d.ts +132 -132
  22. package/dist/commonjs/v3/schemas/fetch.d.ts +10 -10
  23. package/dist/commonjs/v3/schemas/messages.d.ts +1741 -1741
  24. package/dist/commonjs/v3/schemas/resources.d.ts +70 -70
  25. package/dist/commonjs/v3/schemas/schemas.d.ts +259 -259
  26. package/dist/esm/v3/apiClient/index.d.ts +124 -124
  27. package/dist/esm/v3/index.d.ts +1 -0
  28. package/dist/esm/v3/index.js +1 -0
  29. package/dist/esm/v3/index.js.map +1 -1
  30. package/dist/esm/v3/runMetadata/index.d.ts +3 -1
  31. package/dist/esm/v3/runMetadata/index.js +6 -0
  32. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  33. package/dist/esm/v3/runMetadata/manager.d.ts +6 -1
  34. package/dist/esm/v3/runMetadata/manager.js +57 -7
  35. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  36. package/dist/esm/v3/runMetadata/metadataSync.d.ts +1 -0
  37. package/dist/esm/v3/runMetadata/metadataSync.js +2 -0
  38. package/dist/esm/v3/runMetadata/metadataSync.js.map +1 -0
  39. package/dist/esm/v3/runMetadata/noopManager.d.ts +3 -1
  40. package/dist/esm/v3/runMetadata/noopManager.js +20 -0
  41. package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
  42. package/dist/esm/v3/runMetadata/types.d.ts +8 -4
  43. package/dist/esm/v3/schemas/api.d.ts +869 -481
  44. package/dist/esm/v3/schemas/api.js +39 -0
  45. package/dist/esm/v3/schemas/api.js.map +1 -1
  46. package/dist/esm/v3/schemas/build.d.ts +124 -124
  47. package/dist/esm/v3/schemas/messages.d.ts +1741 -1741
  48. package/dist/esm/v3/schemas/resources.d.ts +70 -70
  49. package/dist/esm/v3/schemas/schemas.d.ts +259 -259
  50. package/package.json +1 -1
@@ -26,39 +26,39 @@ export declare const GetProjectResponseBody: z.ZodObject<{
26
26
  createdAt: z.ZodDate;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  id: string;
29
- createdAt: Date;
30
29
  slug: string;
30
+ createdAt: Date;
31
31
  title: string;
32
32
  }, {
33
33
  id: string;
34
- createdAt: Date;
35
34
  slug: string;
35
+ createdAt: Date;
36
36
  title: string;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  id: string;
40
+ externalRef: string;
40
41
  name: string;
41
- createdAt: Date;
42
42
  slug: string;
43
+ createdAt: Date;
43
44
  organization: {
44
45
  id: string;
45
- createdAt: Date;
46
46
  slug: string;
47
+ createdAt: Date;
47
48
  title: string;
48
49
  };
49
- externalRef: string;
50
50
  }, {
51
51
  id: string;
52
+ externalRef: string;
52
53
  name: string;
53
- createdAt: Date;
54
54
  slug: string;
55
+ createdAt: Date;
55
56
  organization: {
56
57
  id: string;
57
- createdAt: Date;
58
58
  slug: string;
59
+ createdAt: Date;
59
60
  title: string;
60
61
  };
61
- externalRef: string;
62
62
  }>;
63
63
  export type GetProjectResponseBody = z.infer<typeof GetProjectResponseBody>;
64
64
  export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
@@ -74,39 +74,39 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
74
74
  createdAt: z.ZodDate;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  id: string;
77
- createdAt: Date;
78
77
  slug: string;
78
+ createdAt: Date;
79
79
  title: string;
80
80
  }, {
81
81
  id: string;
82
- createdAt: Date;
83
82
  slug: string;
83
+ createdAt: Date;
84
84
  title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  id: string;
88
+ externalRef: string;
88
89
  name: string;
89
- createdAt: Date;
90
90
  slug: string;
91
+ createdAt: Date;
91
92
  organization: {
92
93
  id: string;
93
- createdAt: Date;
94
94
  slug: string;
95
+ createdAt: Date;
95
96
  title: string;
96
97
  };
97
- externalRef: string;
98
98
  }, {
99
99
  id: string;
100
+ externalRef: string;
100
101
  name: string;
101
- createdAt: Date;
102
102
  slug: string;
103
+ createdAt: Date;
103
104
  organization: {
104
105
  id: string;
105
- createdAt: Date;
106
106
  slug: string;
107
+ createdAt: Date;
107
108
  title: string;
108
109
  };
109
- externalRef: string;
110
110
  }>, "many">;
111
111
  export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
112
112
  export declare const GetProjectEnvResponse: z.ZodObject<{
@@ -171,12 +171,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
171
171
  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>]>>;
172
172
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
173
173
  }, "strip", z.ZodTypeAny, {
174
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
175
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
174
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
175
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
176
176
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
177
177
  }, {
178
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
179
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
178
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
179
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
180
180
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
181
181
  }>>;
182
182
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -184,22 +184,22 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
184
184
  cron: z.ZodString;
185
185
  timezone: z.ZodString;
186
186
  }, "strip", z.ZodTypeAny, {
187
- timezone: string;
188
187
  cron: string;
189
- }, {
190
188
  timezone: string;
189
+ }, {
191
190
  cron: string;
191
+ timezone: string;
192
192
  }>>;
193
193
  maxDuration: z.ZodOptional<z.ZodNumber>;
194
194
  }, "strip", z.ZodTypeAny, {
195
195
  id: string;
196
196
  filePath: string;
197
197
  exportName: string;
198
+ description?: string | undefined;
198
199
  queue?: {
199
200
  name?: string | undefined;
200
201
  concurrencyLimit?: number | undefined;
201
202
  } | undefined;
202
- maxDuration?: number | undefined;
203
203
  retry?: {
204
204
  maxAttempts?: number | undefined;
205
205
  factor?: number | undefined;
@@ -207,26 +207,26 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
207
207
  maxTimeoutInMs?: number | undefined;
208
208
  randomize?: boolean | undefined;
209
209
  } | undefined;
210
- description?: string | undefined;
211
- schedule?: {
212
- timezone: string;
213
- cron: string;
214
- } | undefined;
215
210
  machine?: {
216
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
217
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
211
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
212
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
218
213
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
219
214
  } | undefined;
220
215
  triggerSource?: string | undefined;
216
+ schedule?: {
217
+ cron: string;
218
+ timezone: string;
219
+ } | undefined;
220
+ maxDuration?: number | undefined;
221
221
  }, {
222
222
  id: string;
223
223
  filePath: string;
224
224
  exportName: string;
225
+ description?: string | undefined;
225
226
  queue?: {
226
227
  name?: string | undefined;
227
228
  concurrencyLimit?: number | undefined;
228
229
  } | undefined;
229
- maxDuration?: number | undefined;
230
230
  retry?: {
231
231
  maxAttempts?: number | undefined;
232
232
  factor?: number | undefined;
@@ -234,17 +234,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
234
234
  maxTimeoutInMs?: number | undefined;
235
235
  randomize?: boolean | undefined;
236
236
  } | undefined;
237
- description?: string | undefined;
238
- schedule?: {
239
- timezone: string;
240
- cron: string;
241
- } | undefined;
242
237
  machine?: {
243
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
244
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
238
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
239
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
245
240
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
246
241
  } | undefined;
247
242
  triggerSource?: string | undefined;
243
+ schedule?: {
244
+ cron: string;
245
+ timezone: string;
246
+ } | undefined;
247
+ maxDuration?: number | undefined;
248
248
  }>, "many">;
249
249
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
250
  filePath: z.ZodString;
@@ -252,26 +252,28 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
252
252
  contentHash: z.ZodString;
253
253
  taskIds: z.ZodArray<z.ZodString, "many">;
254
254
  }, "strip", z.ZodTypeAny, {
255
- filePath: string;
256
255
  contentHash: string;
256
+ filePath: string;
257
257
  contents: string;
258
258
  taskIds: string[];
259
259
  }, {
260
- filePath: string;
261
260
  contentHash: string;
261
+ filePath: string;
262
262
  contents: string;
263
263
  taskIds: string[];
264
264
  }>, "many">>;
265
265
  }, "strip", z.ZodTypeAny, {
266
+ packageVersion: string;
267
+ contentHash: string;
266
268
  tasks: {
267
269
  id: string;
268
270
  filePath: string;
269
271
  exportName: string;
272
+ description?: string | undefined;
270
273
  queue?: {
271
274
  name?: string | undefined;
272
275
  concurrencyLimit?: number | undefined;
273
276
  } | undefined;
274
- maxDuration?: number | undefined;
275
277
  retry?: {
276
278
  maxAttempts?: number | undefined;
277
279
  factor?: number | undefined;
@@ -279,37 +281,37 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
279
281
  maxTimeoutInMs?: number | undefined;
280
282
  randomize?: boolean | undefined;
281
283
  } | undefined;
282
- description?: string | undefined;
283
- schedule?: {
284
- timezone: string;
285
- cron: string;
286
- } | undefined;
287
284
  machine?: {
288
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
289
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
285
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
286
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
290
287
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
291
288
  } | undefined;
292
289
  triggerSource?: string | undefined;
290
+ schedule?: {
291
+ cron: string;
292
+ timezone: string;
293
+ } | undefined;
294
+ maxDuration?: number | undefined;
293
295
  }[];
294
- contentHash: string;
295
- packageVersion: string;
296
296
  cliPackageVersion?: string | undefined;
297
297
  sourceFiles?: {
298
- filePath: string;
299
298
  contentHash: string;
299
+ filePath: string;
300
300
  contents: string;
301
301
  taskIds: string[];
302
302
  }[] | undefined;
303
303
  }, {
304
+ packageVersion: string;
305
+ contentHash: string;
304
306
  tasks: {
305
307
  id: string;
306
308
  filePath: string;
307
309
  exportName: string;
310
+ description?: string | undefined;
308
311
  queue?: {
309
312
  name?: string | undefined;
310
313
  concurrencyLimit?: number | undefined;
311
314
  } | undefined;
312
- maxDuration?: number | undefined;
313
315
  retry?: {
314
316
  maxAttempts?: number | undefined;
315
317
  factor?: number | undefined;
@@ -317,40 +319,41 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
317
319
  maxTimeoutInMs?: number | undefined;
318
320
  randomize?: boolean | undefined;
319
321
  } | undefined;
320
- description?: string | undefined;
321
- schedule?: {
322
- timezone: string;
323
- cron: string;
324
- } | undefined;
325
322
  machine?: {
326
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
327
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
323
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
324
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
328
325
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
329
326
  } | undefined;
330
327
  triggerSource?: string | undefined;
328
+ schedule?: {
329
+ cron: string;
330
+ timezone: string;
331
+ } | undefined;
332
+ maxDuration?: number | undefined;
331
333
  }[];
332
- contentHash: string;
333
- packageVersion: string;
334
334
  cliPackageVersion?: string | undefined;
335
335
  sourceFiles?: {
336
- filePath: string;
337
336
  contentHash: string;
337
+ filePath: string;
338
338
  contents: string;
339
339
  taskIds: string[];
340
340
  }[] | undefined;
341
341
  }>;
342
342
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
343
343
  }, "strip", z.ZodTypeAny, {
344
+ localOnly: boolean;
344
345
  metadata: {
346
+ packageVersion: string;
347
+ contentHash: string;
345
348
  tasks: {
346
349
  id: string;
347
350
  filePath: string;
348
351
  exportName: string;
352
+ description?: string | undefined;
349
353
  queue?: {
350
354
  name?: string | undefined;
351
355
  concurrencyLimit?: number | undefined;
352
356
  } | undefined;
353
- maxDuration?: number | undefined;
354
357
  retry?: {
355
358
  maxAttempts?: number | undefined;
356
359
  factor?: number | undefined;
@@ -358,41 +361,41 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
358
361
  maxTimeoutInMs?: number | undefined;
359
362
  randomize?: boolean | undefined;
360
363
  } | undefined;
361
- description?: string | undefined;
362
- schedule?: {
363
- timezone: string;
364
- cron: string;
365
- } | undefined;
366
364
  machine?: {
367
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
368
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
365
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
366
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
369
367
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
370
368
  } | undefined;
371
369
  triggerSource?: string | undefined;
370
+ schedule?: {
371
+ cron: string;
372
+ timezone: string;
373
+ } | undefined;
374
+ maxDuration?: number | undefined;
372
375
  }[];
373
- contentHash: string;
374
- packageVersion: string;
375
376
  cliPackageVersion?: string | undefined;
376
377
  sourceFiles?: {
377
- filePath: string;
378
378
  contentHash: string;
379
+ filePath: string;
379
380
  contents: string;
380
381
  taskIds: string[];
381
382
  }[] | undefined;
382
383
  };
383
- localOnly: boolean;
384
384
  supportsLazyAttempts?: boolean | undefined;
385
385
  }, {
386
+ localOnly: boolean;
386
387
  metadata: {
388
+ packageVersion: string;
389
+ contentHash: string;
387
390
  tasks: {
388
391
  id: string;
389
392
  filePath: string;
390
393
  exportName: string;
394
+ description?: string | undefined;
391
395
  queue?: {
392
396
  name?: string | undefined;
393
397
  concurrencyLimit?: number | undefined;
394
398
  } | undefined;
395
- maxDuration?: number | undefined;
396
399
  retry?: {
397
400
  maxAttempts?: number | undefined;
398
401
  factor?: number | undefined;
@@ -400,29 +403,26 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
400
403
  maxTimeoutInMs?: number | undefined;
401
404
  randomize?: boolean | undefined;
402
405
  } | undefined;
403
- description?: string | undefined;
404
- schedule?: {
405
- timezone: string;
406
- cron: string;
407
- } | undefined;
408
406
  machine?: {
409
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
410
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
407
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
408
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
411
409
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
412
410
  } | undefined;
413
411
  triggerSource?: string | undefined;
412
+ schedule?: {
413
+ cron: string;
414
+ timezone: string;
415
+ } | undefined;
416
+ maxDuration?: number | undefined;
414
417
  }[];
415
- contentHash: string;
416
- packageVersion: string;
417
418
  cliPackageVersion?: string | undefined;
418
419
  sourceFiles?: {
419
- filePath: string;
420
420
  contentHash: string;
421
+ filePath: string;
421
422
  contents: string;
422
423
  taskIds: string[];
423
424
  }[] | undefined;
424
425
  };
425
- localOnly: boolean;
426
426
  supportsLazyAttempts?: boolean | undefined;
427
427
  }>;
428
428
  export type CreateBackgroundWorkerRequestBody = z.infer<typeof CreateBackgroundWorkerRequestBody>;
@@ -432,12 +432,12 @@ export declare const CreateBackgroundWorkerResponse: z.ZodObject<{
432
432
  contentHash: z.ZodString;
433
433
  }, "strip", z.ZodTypeAny, {
434
434
  id: string;
435
- version: string;
436
435
  contentHash: string;
436
+ version: string;
437
437
  }, {
438
438
  id: string;
439
- version: string;
440
439
  contentHash: string;
440
+ version: string;
441
441
  }>;
442
442
  export type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
443
443
  export declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -474,15 +474,18 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
474
474
  metadataType: z.ZodOptional<z.ZodString>;
475
475
  maxDuration: z.ZodOptional<z.ZodNumber>;
476
476
  }, "strip", z.ZodTypeAny, {
477
+ queue?: {
478
+ name?: string | undefined;
479
+ concurrencyLimit?: number | undefined;
480
+ } | undefined;
481
+ maxAttempts?: number | undefined;
482
+ maxDuration?: number | undefined;
483
+ metadata?: any;
477
484
  dependentAttempt?: string | undefined;
478
485
  parentAttempt?: string | undefined;
479
486
  dependentBatch?: string | undefined;
480
487
  parentBatch?: string | undefined;
481
488
  lockToVersion?: string | undefined;
482
- queue?: {
483
- name?: string | undefined;
484
- concurrencyLimit?: number | undefined;
485
- } | undefined;
486
489
  concurrencyKey?: string | undefined;
487
490
  idempotencyKey?: string | undefined;
488
491
  idempotencyKeyTTL?: string | undefined;
@@ -491,20 +494,20 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
491
494
  delay?: string | Date | undefined;
492
495
  ttl?: string | number | undefined;
493
496
  tags?: string | string[] | undefined;
494
- maxAttempts?: number | undefined;
495
- metadata?: any;
496
497
  metadataType?: string | undefined;
497
- maxDuration?: number | undefined;
498
498
  }, {
499
+ queue?: {
500
+ name?: string | undefined;
501
+ concurrencyLimit?: number | undefined;
502
+ } | undefined;
503
+ maxAttempts?: number | undefined;
504
+ maxDuration?: number | undefined;
505
+ metadata?: any;
499
506
  dependentAttempt?: string | undefined;
500
507
  parentAttempt?: string | undefined;
501
508
  dependentBatch?: string | undefined;
502
509
  parentBatch?: string | undefined;
503
510
  lockToVersion?: string | undefined;
504
- queue?: {
505
- name?: string | undefined;
506
- concurrencyLimit?: number | undefined;
507
- } | undefined;
508
511
  concurrencyKey?: string | undefined;
509
512
  idempotencyKey?: string | undefined;
510
513
  idempotencyKeyTTL?: string | undefined;
@@ -513,22 +516,22 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
513
516
  delay?: string | Date | undefined;
514
517
  ttl?: string | number | undefined;
515
518
  tags?: string | string[] | undefined;
516
- maxAttempts?: number | undefined;
517
- metadata?: any;
518
519
  metadataType?: string | undefined;
519
- maxDuration?: number | undefined;
520
520
  }>>;
521
521
  }, "strip", z.ZodTypeAny, {
522
522
  options?: {
523
+ queue?: {
524
+ name?: string | undefined;
525
+ concurrencyLimit?: number | undefined;
526
+ } | undefined;
527
+ maxAttempts?: number | undefined;
528
+ maxDuration?: number | undefined;
529
+ metadata?: any;
523
530
  dependentAttempt?: string | undefined;
524
531
  parentAttempt?: string | undefined;
525
532
  dependentBatch?: string | undefined;
526
533
  parentBatch?: string | undefined;
527
534
  lockToVersion?: string | undefined;
528
- queue?: {
529
- name?: string | undefined;
530
- concurrencyLimit?: number | undefined;
531
- } | undefined;
532
535
  concurrencyKey?: string | undefined;
533
536
  idempotencyKey?: string | undefined;
534
537
  idempotencyKeyTTL?: string | undefined;
@@ -537,24 +540,24 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
537
540
  delay?: string | Date | undefined;
538
541
  ttl?: string | number | undefined;
539
542
  tags?: string | string[] | undefined;
540
- maxAttempts?: number | undefined;
541
- metadata?: any;
542
543
  metadataType?: string | undefined;
543
- maxDuration?: number | undefined;
544
544
  } | undefined;
545
545
  payload?: any;
546
546
  context?: any;
547
547
  }, {
548
548
  options?: {
549
+ queue?: {
550
+ name?: string | undefined;
551
+ concurrencyLimit?: number | undefined;
552
+ } | undefined;
553
+ maxAttempts?: number | undefined;
554
+ maxDuration?: number | undefined;
555
+ metadata?: any;
549
556
  dependentAttempt?: string | undefined;
550
557
  parentAttempt?: string | undefined;
551
558
  dependentBatch?: string | undefined;
552
559
  parentBatch?: string | undefined;
553
560
  lockToVersion?: string | undefined;
554
- queue?: {
555
- name?: string | undefined;
556
- concurrencyLimit?: number | undefined;
557
- } | undefined;
558
561
  concurrencyKey?: string | undefined;
559
562
  idempotencyKey?: string | undefined;
560
563
  idempotencyKeyTTL?: string | undefined;
@@ -563,10 +566,7 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
563
566
  delay?: string | Date | undefined;
564
567
  ttl?: string | number | undefined;
565
568
  tags?: string | string[] | undefined;
566
- maxAttempts?: number | undefined;
567
- metadata?: any;
568
569
  metadataType?: string | undefined;
569
- maxDuration?: number | undefined;
570
570
  } | undefined;
571
571
  payload?: any;
572
572
  context?: any;
@@ -613,15 +613,18 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
613
613
  metadataType: z.ZodOptional<z.ZodString>;
614
614
  maxDuration: z.ZodOptional<z.ZodNumber>;
615
615
  }, "strip", z.ZodTypeAny, {
616
+ queue?: {
617
+ name?: string | undefined;
618
+ concurrencyLimit?: number | undefined;
619
+ } | undefined;
620
+ maxAttempts?: number | undefined;
621
+ maxDuration?: number | undefined;
622
+ metadata?: any;
616
623
  dependentAttempt?: string | undefined;
617
624
  parentAttempt?: string | undefined;
618
625
  dependentBatch?: string | undefined;
619
626
  parentBatch?: string | undefined;
620
627
  lockToVersion?: string | undefined;
621
- queue?: {
622
- name?: string | undefined;
623
- concurrencyLimit?: number | undefined;
624
- } | undefined;
625
628
  concurrencyKey?: string | undefined;
626
629
  idempotencyKey?: string | undefined;
627
630
  idempotencyKeyTTL?: string | undefined;
@@ -630,20 +633,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
630
633
  delay?: string | Date | undefined;
631
634
  ttl?: string | number | undefined;
632
635
  tags?: string | string[] | undefined;
633
- maxAttempts?: number | undefined;
634
- metadata?: any;
635
636
  metadataType?: string | undefined;
636
- maxDuration?: number | undefined;
637
637
  }, {
638
+ queue?: {
639
+ name?: string | undefined;
640
+ concurrencyLimit?: number | undefined;
641
+ } | undefined;
642
+ maxAttempts?: number | undefined;
643
+ maxDuration?: number | undefined;
644
+ metadata?: any;
638
645
  dependentAttempt?: string | undefined;
639
646
  parentAttempt?: string | undefined;
640
647
  dependentBatch?: string | undefined;
641
648
  parentBatch?: string | undefined;
642
649
  lockToVersion?: string | undefined;
643
- queue?: {
644
- name?: string | undefined;
645
- concurrencyLimit?: number | undefined;
646
- } | undefined;
647
650
  concurrencyKey?: string | undefined;
648
651
  idempotencyKey?: string | undefined;
649
652
  idempotencyKeyTTL?: string | undefined;
@@ -652,22 +655,22 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
652
655
  delay?: string | Date | undefined;
653
656
  ttl?: string | number | undefined;
654
657
  tags?: string | string[] | undefined;
655
- maxAttempts?: number | undefined;
656
- metadata?: any;
657
658
  metadataType?: string | undefined;
658
- maxDuration?: number | undefined;
659
659
  }>>;
660
660
  }, "strip", z.ZodTypeAny, {
661
661
  options?: {
662
+ queue?: {
663
+ name?: string | undefined;
664
+ concurrencyLimit?: number | undefined;
665
+ } | undefined;
666
+ maxAttempts?: number | undefined;
667
+ maxDuration?: number | undefined;
668
+ metadata?: any;
662
669
  dependentAttempt?: string | undefined;
663
670
  parentAttempt?: string | undefined;
664
671
  dependentBatch?: string | undefined;
665
672
  parentBatch?: string | undefined;
666
673
  lockToVersion?: string | undefined;
667
- queue?: {
668
- name?: string | undefined;
669
- concurrencyLimit?: number | undefined;
670
- } | undefined;
671
674
  concurrencyKey?: string | undefined;
672
675
  idempotencyKey?: string | undefined;
673
676
  idempotencyKeyTTL?: string | undefined;
@@ -676,24 +679,24 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
676
679
  delay?: string | Date | undefined;
677
680
  ttl?: string | number | undefined;
678
681
  tags?: string | string[] | undefined;
679
- maxAttempts?: number | undefined;
680
- metadata?: any;
681
682
  metadataType?: string | undefined;
682
- maxDuration?: number | undefined;
683
683
  } | undefined;
684
684
  payload?: any;
685
685
  context?: any;
686
686
  }, {
687
687
  options?: {
688
+ queue?: {
689
+ name?: string | undefined;
690
+ concurrencyLimit?: number | undefined;
691
+ } | undefined;
692
+ maxAttempts?: number | undefined;
693
+ maxDuration?: number | undefined;
694
+ metadata?: any;
688
695
  dependentAttempt?: string | undefined;
689
696
  parentAttempt?: string | undefined;
690
697
  dependentBatch?: string | undefined;
691
698
  parentBatch?: string | undefined;
692
699
  lockToVersion?: string | undefined;
693
- queue?: {
694
- name?: string | undefined;
695
- concurrencyLimit?: number | undefined;
696
- } | undefined;
697
700
  concurrencyKey?: string | undefined;
698
701
  idempotencyKey?: string | undefined;
699
702
  idempotencyKeyTTL?: string | undefined;
@@ -702,10 +705,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
702
705
  delay?: string | Date | undefined;
703
706
  ttl?: string | number | undefined;
704
707
  tags?: string | string[] | undefined;
705
- maxAttempts?: number | undefined;
706
- metadata?: any;
707
708
  metadataType?: string | undefined;
708
- maxDuration?: number | undefined;
709
709
  } | undefined;
710
710
  payload?: any;
711
711
  context?: any;
@@ -714,15 +714,18 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  items: {
716
716
  options?: {
717
+ queue?: {
718
+ name?: string | undefined;
719
+ concurrencyLimit?: number | undefined;
720
+ } | undefined;
721
+ maxAttempts?: number | undefined;
722
+ maxDuration?: number | undefined;
723
+ metadata?: any;
717
724
  dependentAttempt?: string | undefined;
718
725
  parentAttempt?: string | undefined;
719
726
  dependentBatch?: string | undefined;
720
727
  parentBatch?: string | undefined;
721
728
  lockToVersion?: string | undefined;
722
- queue?: {
723
- name?: string | undefined;
724
- concurrencyLimit?: number | undefined;
725
- } | undefined;
726
729
  concurrencyKey?: string | undefined;
727
730
  idempotencyKey?: string | undefined;
728
731
  idempotencyKeyTTL?: string | undefined;
@@ -731,10 +734,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
731
734
  delay?: string | Date | undefined;
732
735
  ttl?: string | number | undefined;
733
736
  tags?: string | string[] | undefined;
734
- maxAttempts?: number | undefined;
735
- metadata?: any;
736
737
  metadataType?: string | undefined;
737
- maxDuration?: number | undefined;
738
738
  } | undefined;
739
739
  payload?: any;
740
740
  context?: any;
@@ -743,15 +743,18 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
743
743
  }, {
744
744
  items: {
745
745
  options?: {
746
+ queue?: {
747
+ name?: string | undefined;
748
+ concurrencyLimit?: number | undefined;
749
+ } | undefined;
750
+ maxAttempts?: number | undefined;
751
+ maxDuration?: number | undefined;
752
+ metadata?: any;
746
753
  dependentAttempt?: string | undefined;
747
754
  parentAttempt?: string | undefined;
748
755
  dependentBatch?: string | undefined;
749
756
  parentBatch?: string | undefined;
750
757
  lockToVersion?: string | undefined;
751
- queue?: {
752
- name?: string | undefined;
753
- concurrencyLimit?: number | undefined;
754
- } | undefined;
755
758
  concurrencyKey?: string | undefined;
756
759
  idempotencyKey?: string | undefined;
757
760
  idempotencyKeyTTL?: string | undefined;
@@ -760,10 +763,7 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
760
763
  delay?: string | Date | undefined;
761
764
  ttl?: string | number | undefined;
762
765
  tags?: string | string[] | undefined;
763
- maxAttempts?: number | undefined;
764
- metadata?: any;
765
766
  metadataType?: string | undefined;
766
- maxDuration?: number | undefined;
767
767
  } | undefined;
768
768
  payload?: any;
769
769
  context?: any;
@@ -801,12 +801,15 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
801
801
  maxDuration: z.ZodOptional<z.ZodNumber>;
802
802
  parentAttempt: z.ZodOptional<z.ZodString>;
803
803
  }, "strip", z.ZodTypeAny, {
804
- parentAttempt?: string | undefined;
805
- lockToVersion?: string | undefined;
806
804
  queue?: {
807
805
  name?: string | undefined;
808
806
  concurrencyLimit?: number | undefined;
809
807
  } | undefined;
808
+ maxAttempts?: number | undefined;
809
+ maxDuration?: number | undefined;
810
+ metadata?: any;
811
+ parentAttempt?: string | undefined;
812
+ lockToVersion?: string | undefined;
810
813
  concurrencyKey?: string | undefined;
811
814
  idempotencyKey?: string | undefined;
812
815
  idempotencyKeyTTL?: string | undefined;
@@ -815,17 +818,17 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
815
818
  delay?: string | Date | undefined;
816
819
  ttl?: string | number | undefined;
817
820
  tags?: string | string[] | undefined;
818
- maxAttempts?: number | undefined;
819
- metadata?: any;
820
821
  metadataType?: string | undefined;
821
- maxDuration?: number | undefined;
822
822
  }, {
823
- parentAttempt?: string | undefined;
824
- lockToVersion?: string | undefined;
825
823
  queue?: {
826
824
  name?: string | undefined;
827
825
  concurrencyLimit?: number | undefined;
828
826
  } | undefined;
827
+ maxAttempts?: number | undefined;
828
+ maxDuration?: number | undefined;
829
+ metadata?: any;
830
+ parentAttempt?: string | undefined;
831
+ lockToVersion?: string | undefined;
829
832
  concurrencyKey?: string | undefined;
830
833
  idempotencyKey?: string | undefined;
831
834
  idempotencyKeyTTL?: string | undefined;
@@ -834,20 +837,20 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
834
837
  delay?: string | Date | undefined;
835
838
  ttl?: string | number | undefined;
836
839
  tags?: string | string[] | undefined;
837
- maxAttempts?: number | undefined;
838
- metadata?: any;
839
840
  metadataType?: string | undefined;
840
- maxDuration?: number | undefined;
841
841
  }>>;
842
842
  }, "strip", z.ZodTypeAny, {
843
843
  task: string;
844
844
  options?: {
845
- parentAttempt?: string | undefined;
846
- lockToVersion?: string | undefined;
847
845
  queue?: {
848
846
  name?: string | undefined;
849
847
  concurrencyLimit?: number | undefined;
850
848
  } | undefined;
849
+ maxAttempts?: number | undefined;
850
+ maxDuration?: number | undefined;
851
+ metadata?: any;
852
+ parentAttempt?: string | undefined;
853
+ lockToVersion?: string | undefined;
851
854
  concurrencyKey?: string | undefined;
852
855
  idempotencyKey?: string | undefined;
853
856
  idempotencyKeyTTL?: string | undefined;
@@ -856,22 +859,22 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
856
859
  delay?: string | Date | undefined;
857
860
  ttl?: string | number | undefined;
858
861
  tags?: string | string[] | undefined;
859
- maxAttempts?: number | undefined;
860
- metadata?: any;
861
862
  metadataType?: string | undefined;
862
- maxDuration?: number | undefined;
863
863
  } | undefined;
864
864
  payload?: any;
865
865
  context?: any;
866
866
  }, {
867
867
  task: string;
868
868
  options?: {
869
- parentAttempt?: string | undefined;
870
- lockToVersion?: string | undefined;
871
869
  queue?: {
872
870
  name?: string | undefined;
873
871
  concurrencyLimit?: number | undefined;
874
872
  } | undefined;
873
+ maxAttempts?: number | undefined;
874
+ maxDuration?: number | undefined;
875
+ metadata?: any;
876
+ parentAttempt?: string | undefined;
877
+ lockToVersion?: string | undefined;
875
878
  concurrencyKey?: string | undefined;
876
879
  idempotencyKey?: string | undefined;
877
880
  idempotencyKeyTTL?: string | undefined;
@@ -880,10 +883,7 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
880
883
  delay?: string | Date | undefined;
881
884
  ttl?: string | number | undefined;
882
885
  tags?: string | string[] | undefined;
883
- maxAttempts?: number | undefined;
884
- metadata?: any;
885
886
  metadataType?: string | undefined;
886
- maxDuration?: number | undefined;
887
887
  } | undefined;
888
888
  payload?: any;
889
889
  context?: any;
@@ -920,12 +920,15 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
920
920
  maxDuration: z.ZodOptional<z.ZodNumber>;
921
921
  parentAttempt: z.ZodOptional<z.ZodString>;
922
922
  }, "strip", z.ZodTypeAny, {
923
- parentAttempt?: string | undefined;
924
- lockToVersion?: string | undefined;
925
923
  queue?: {
926
924
  name?: string | undefined;
927
925
  concurrencyLimit?: number | undefined;
928
926
  } | undefined;
927
+ maxAttempts?: number | undefined;
928
+ maxDuration?: number | undefined;
929
+ metadata?: any;
930
+ parentAttempt?: string | undefined;
931
+ lockToVersion?: string | undefined;
929
932
  concurrencyKey?: string | undefined;
930
933
  idempotencyKey?: string | undefined;
931
934
  idempotencyKeyTTL?: string | undefined;
@@ -934,17 +937,17 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
934
937
  delay?: string | Date | undefined;
935
938
  ttl?: string | number | undefined;
936
939
  tags?: string | string[] | undefined;
937
- maxAttempts?: number | undefined;
938
- metadata?: any;
939
940
  metadataType?: string | undefined;
940
- maxDuration?: number | undefined;
941
941
  }, {
942
- parentAttempt?: string | undefined;
943
- lockToVersion?: string | undefined;
944
942
  queue?: {
945
943
  name?: string | undefined;
946
944
  concurrencyLimit?: number | undefined;
947
945
  } | undefined;
946
+ maxAttempts?: number | undefined;
947
+ maxDuration?: number | undefined;
948
+ metadata?: any;
949
+ parentAttempt?: string | undefined;
950
+ lockToVersion?: string | undefined;
948
951
  concurrencyKey?: string | undefined;
949
952
  idempotencyKey?: string | undefined;
950
953
  idempotencyKeyTTL?: string | undefined;
@@ -953,20 +956,20 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
953
956
  delay?: string | Date | undefined;
954
957
  ttl?: string | number | undefined;
955
958
  tags?: string | string[] | undefined;
956
- maxAttempts?: number | undefined;
957
- metadata?: any;
958
959
  metadataType?: string | undefined;
959
- maxDuration?: number | undefined;
960
960
  }>>;
961
961
  }, "strip", z.ZodTypeAny, {
962
962
  task: string;
963
963
  options?: {
964
- parentAttempt?: string | undefined;
965
- lockToVersion?: string | undefined;
966
964
  queue?: {
967
965
  name?: string | undefined;
968
966
  concurrencyLimit?: number | undefined;
969
967
  } | undefined;
968
+ maxAttempts?: number | undefined;
969
+ maxDuration?: number | undefined;
970
+ metadata?: any;
971
+ parentAttempt?: string | undefined;
972
+ lockToVersion?: string | undefined;
970
973
  concurrencyKey?: string | undefined;
971
974
  idempotencyKey?: string | undefined;
972
975
  idempotencyKeyTTL?: string | undefined;
@@ -975,22 +978,22 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
975
978
  delay?: string | Date | undefined;
976
979
  ttl?: string | number | undefined;
977
980
  tags?: string | string[] | undefined;
978
- maxAttempts?: number | undefined;
979
- metadata?: any;
980
981
  metadataType?: string | undefined;
981
- maxDuration?: number | undefined;
982
982
  } | undefined;
983
983
  payload?: any;
984
984
  context?: any;
985
985
  }, {
986
986
  task: string;
987
987
  options?: {
988
- parentAttempt?: string | undefined;
989
- lockToVersion?: string | undefined;
990
988
  queue?: {
991
989
  name?: string | undefined;
992
990
  concurrencyLimit?: number | undefined;
993
991
  } | undefined;
992
+ maxAttempts?: number | undefined;
993
+ maxDuration?: number | undefined;
994
+ metadata?: any;
995
+ parentAttempt?: string | undefined;
996
+ lockToVersion?: string | undefined;
994
997
  concurrencyKey?: string | undefined;
995
998
  idempotencyKey?: string | undefined;
996
999
  idempotencyKeyTTL?: string | undefined;
@@ -999,10 +1002,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
999
1002
  delay?: string | Date | undefined;
1000
1003
  ttl?: string | number | undefined;
1001
1004
  tags?: string | string[] | undefined;
1002
- maxAttempts?: number | undefined;
1003
- metadata?: any;
1004
1005
  metadataType?: string | undefined;
1005
- maxDuration?: number | undefined;
1006
1006
  } | undefined;
1007
1007
  payload?: any;
1008
1008
  context?: any;
@@ -1012,12 +1012,15 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1012
1012
  items: {
1013
1013
  task: string;
1014
1014
  options?: {
1015
- parentAttempt?: string | undefined;
1016
- lockToVersion?: string | undefined;
1017
1015
  queue?: {
1018
1016
  name?: string | undefined;
1019
1017
  concurrencyLimit?: number | undefined;
1020
1018
  } | undefined;
1019
+ maxAttempts?: number | undefined;
1020
+ maxDuration?: number | undefined;
1021
+ metadata?: any;
1022
+ parentAttempt?: string | undefined;
1023
+ lockToVersion?: string | undefined;
1021
1024
  concurrencyKey?: string | undefined;
1022
1025
  idempotencyKey?: string | undefined;
1023
1026
  idempotencyKeyTTL?: string | undefined;
@@ -1026,10 +1029,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1026
1029
  delay?: string | Date | undefined;
1027
1030
  ttl?: string | number | undefined;
1028
1031
  tags?: string | string[] | undefined;
1029
- maxAttempts?: number | undefined;
1030
- metadata?: any;
1031
1032
  metadataType?: string | undefined;
1032
- maxDuration?: number | undefined;
1033
1033
  } | undefined;
1034
1034
  payload?: any;
1035
1035
  context?: any;
@@ -1039,12 +1039,15 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1039
1039
  items: {
1040
1040
  task: string;
1041
1041
  options?: {
1042
- parentAttempt?: string | undefined;
1043
- lockToVersion?: string | undefined;
1044
1042
  queue?: {
1045
1043
  name?: string | undefined;
1046
1044
  concurrencyLimit?: number | undefined;
1047
1045
  } | undefined;
1046
+ maxAttempts?: number | undefined;
1047
+ maxDuration?: number | undefined;
1048
+ metadata?: any;
1049
+ parentAttempt?: string | undefined;
1050
+ lockToVersion?: string | undefined;
1048
1051
  concurrencyKey?: string | undefined;
1049
1052
  idempotencyKey?: string | undefined;
1050
1053
  idempotencyKeyTTL?: string | undefined;
@@ -1053,10 +1056,7 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1053
1056
  delay?: string | Date | undefined;
1054
1057
  ttl?: string | number | undefined;
1055
1058
  tags?: string | string[] | undefined;
1056
- maxAttempts?: number | undefined;
1057
- metadata?: any;
1058
1059
  metadataType?: string | undefined;
1059
- maxDuration?: number | undefined;
1060
1060
  } | undefined;
1061
1061
  payload?: any;
1062
1062
  context?: any;
@@ -1124,26 +1124,26 @@ export declare const GetBatchResponseBody: z.ZodObject<{
1124
1124
  taskRunId: z.ZodString;
1125
1125
  status: z.ZodEnum<["PENDING", "CANCELED", "COMPLETED", "FAILED"]>;
1126
1126
  }, "strip", z.ZodTypeAny, {
1127
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1127
1128
  id: string;
1128
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1129
1129
  taskRunId: string;
1130
1130
  }, {
1131
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1131
1132
  id: string;
1132
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1133
1133
  taskRunId: string;
1134
1134
  }>, "many">;
1135
1135
  }, "strip", z.ZodTypeAny, {
1136
1136
  id: string;
1137
1137
  items: {
1138
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1138
1139
  id: string;
1139
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1140
1140
  taskRunId: string;
1141
1141
  }[];
1142
1142
  }, {
1143
1143
  id: string;
1144
1144
  items: {
1145
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1145
1146
  id: string;
1146
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1147
1147
  taskRunId: string;
1148
1148
  }[];
1149
1149
  }>;
@@ -1241,10 +1241,10 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1241
1241
  registryHost: z.ZodOptional<z.ZodString>;
1242
1242
  }, "strip", z.ZodTypeAny, {
1243
1243
  id: string;
1244
- version: string;
1245
1244
  contentHash: string;
1246
- imageTag: string;
1245
+ version: string;
1247
1246
  shortCode: string;
1247
+ imageTag: string;
1248
1248
  externalBuildData?: {
1249
1249
  projectId: string;
1250
1250
  buildId: string;
@@ -1253,10 +1253,10 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1253
1253
  registryHost?: string | undefined;
1254
1254
  }, {
1255
1255
  id: string;
1256
- version: string;
1257
1256
  contentHash: string;
1258
- imageTag: string;
1257
+ version: string;
1259
1258
  shortCode: string;
1259
+ imageTag: string;
1260
1260
  externalBuildData?: {
1261
1261
  projectId: string;
1262
1262
  buildId: string;
@@ -1376,50 +1376,63 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1376
1376
  exportName: z.ZodString;
1377
1377
  }, "strip", z.ZodTypeAny, {
1378
1378
  id: string;
1379
+ slug: string;
1379
1380
  filePath: string;
1380
1381
  exportName: string;
1381
- slug: string;
1382
1382
  }, {
1383
1383
  id: string;
1384
+ slug: string;
1384
1385
  filePath: string;
1385
1386
  exportName: string;
1386
- slug: string;
1387
1387
  }>, "many">;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
1389
  id: string;
1390
- version: string;
1391
1390
  tasks: {
1392
1391
  id: string;
1392
+ slug: string;
1393
1393
  filePath: string;
1394
1394
  exportName: string;
1395
- slug: string;
1396
1395
  }[];
1396
+ version: string;
1397
1397
  }, {
1398
1398
  id: string;
1399
- version: string;
1400
1399
  tasks: {
1401
1400
  id: string;
1401
+ slug: string;
1402
1402
  filePath: string;
1403
1403
  exportName: string;
1404
- slug: string;
1405
1404
  }[];
1405
+ version: string;
1406
1406
  }>>;
1407
1407
  }, "strip", z.ZodTypeAny, {
1408
+ status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1408
1409
  id: string;
1409
- status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1410
- version: string;
1411
1410
  contentHash: string;
1411
+ version: string;
1412
1412
  shortCode: string;
1413
+ imageReference?: string | null | undefined;
1414
+ errorData?: {
1415
+ message: string;
1416
+ name: string;
1417
+ stack?: string | undefined;
1418
+ stderr?: string | undefined;
1419
+ } | null | undefined;
1413
1420
  worker?: {
1414
1421
  id: string;
1415
- version: string;
1416
1422
  tasks: {
1417
1423
  id: string;
1424
+ slug: string;
1418
1425
  filePath: string;
1419
1426
  exportName: string;
1420
- slug: string;
1421
1427
  }[];
1428
+ version: string;
1422
1429
  } | undefined;
1430
+ }, {
1431
+ status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1432
+ id: string;
1433
+ contentHash: string;
1434
+ version: string;
1435
+ shortCode: string;
1423
1436
  imageReference?: string | null | undefined;
1424
1437
  errorData?: {
1425
1438
  message: string;
@@ -1427,29 +1440,16 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1427
1440
  stack?: string | undefined;
1428
1441
  stderr?: string | undefined;
1429
1442
  } | null | undefined;
1430
- }, {
1431
- id: string;
1432
- status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1433
- version: string;
1434
- contentHash: string;
1435
- shortCode: string;
1436
1443
  worker?: {
1437
1444
  id: string;
1438
- version: string;
1439
1445
  tasks: {
1440
1446
  id: string;
1447
+ slug: string;
1441
1448
  filePath: string;
1442
1449
  exportName: string;
1443
- slug: string;
1444
1450
  }[];
1451
+ version: string;
1445
1452
  } | undefined;
1446
- imageReference?: string | null | undefined;
1447
- errorData?: {
1448
- message: string;
1449
- name: string;
1450
- stack?: string | undefined;
1451
- stderr?: string | undefined;
1452
- } | null | undefined;
1453
1453
  }>;
1454
1454
  export type GetDeploymentResponseBody = z.infer<typeof GetDeploymentResponseBody>;
1455
1455
  export declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{
@@ -1514,19 +1514,19 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
1514
1514
  }, "strip", z.ZodTypeAny, {
1515
1515
  type: "DECLARATIVE" | "IMPERATIVE";
1516
1516
  timezone: string;
1517
- timestamp: Date;
1518
1517
  scheduleId: string;
1518
+ timestamp: Date;
1519
1519
  upcoming: Date[];
1520
- externalId?: string | undefined;
1521
1520
  lastTimestamp?: Date | undefined;
1521
+ externalId?: string | undefined;
1522
1522
  }, {
1523
1523
  type: "DECLARATIVE" | "IMPERATIVE";
1524
1524
  timezone: string;
1525
- timestamp: Date;
1526
1525
  scheduleId: string;
1526
+ timestamp: Date;
1527
1527
  upcoming: Date[];
1528
- externalId?: string | undefined;
1529
1528
  lastTimestamp?: Date | undefined;
1529
+ externalId?: string | undefined;
1530
1530
  }>;
1531
1531
  export type ScheduledTaskPayload = z.infer<typeof ScheduledTaskPayload>;
1532
1532
  export declare const CreateScheduleOptions: z.ZodObject<{
@@ -1570,17 +1570,17 @@ export declare const CreateScheduleOptions: z.ZodObject<{
1570
1570
  */
1571
1571
  timezone: z.ZodOptional<z.ZodString>;
1572
1572
  }, "strip", z.ZodTypeAny, {
1573
+ cron: string;
1573
1574
  task: string;
1574
1575
  deduplicationKey: string;
1575
- cron: string;
1576
- externalId?: string | undefined;
1577
1576
  timezone?: string | undefined;
1577
+ externalId?: string | undefined;
1578
1578
  }, {
1579
+ cron: string;
1579
1580
  task: string;
1580
1581
  deduplicationKey: string;
1581
- cron: string;
1582
- externalId?: string | undefined;
1583
1582
  timezone?: string | undefined;
1583
+ externalId?: string | undefined;
1584
1584
  }>;
1585
1585
  export type CreateScheduleOptions = z.infer<typeof CreateScheduleOptions>;
1586
1586
  export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
@@ -1624,15 +1624,15 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
1624
1624
  */
1625
1625
  timezone: z.ZodOptional<z.ZodString>;
1626
1626
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
1627
- task: string;
1628
1627
  cron: string;
1629
- externalId?: string | undefined;
1628
+ task: string;
1630
1629
  timezone?: string | undefined;
1630
+ externalId?: string | undefined;
1631
1631
  }, {
1632
- task: string;
1633
1632
  cron: string;
1634
- externalId?: string | undefined;
1633
+ task: string;
1635
1634
  timezone?: string | undefined;
1635
+ externalId?: string | undefined;
1636
1636
  }>;
1637
1637
  export type UpdateScheduleOptions = z.infer<typeof UpdateScheduleOptions>;
1638
1638
  export declare const ScheduleGenerator: z.ZodObject<{
@@ -1641,12 +1641,12 @@ export declare const ScheduleGenerator: z.ZodObject<{
1641
1641
  description: z.ZodString;
1642
1642
  }, "strip", z.ZodTypeAny, {
1643
1643
  type: "CRON";
1644
- expression: string;
1645
1644
  description: string;
1645
+ expression: string;
1646
1646
  }, {
1647
1647
  type: "CRON";
1648
- expression: string;
1649
1648
  description: string;
1649
+ expression: string;
1650
1650
  }>;
1651
1651
  export type ScheduleGenerator = z.infer<typeof ScheduleGenerator>;
1652
1652
  export declare const ScheduleObject: z.ZodObject<{
@@ -1662,12 +1662,12 @@ export declare const ScheduleObject: z.ZodObject<{
1662
1662
  description: z.ZodString;
1663
1663
  }, "strip", z.ZodTypeAny, {
1664
1664
  type: "CRON";
1665
- expression: string;
1666
1665
  description: string;
1666
+ expression: string;
1667
1667
  }, {
1668
1668
  type: "CRON";
1669
- expression: string;
1670
1669
  description: string;
1670
+ expression: string;
1671
1671
  }>;
1672
1672
  timezone: z.ZodString;
1673
1673
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1676,47 +1676,47 @@ export declare const ScheduleObject: z.ZodObject<{
1676
1676
  type: z.ZodString;
1677
1677
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
1678
  }, "strip", z.ZodTypeAny, {
1679
- id: string;
1680
1679
  type: string;
1680
+ id: string;
1681
1681
  userName?: string | null | undefined;
1682
1682
  }, {
1683
- id: string;
1684
1683
  type: string;
1684
+ id: string;
1685
1685
  userName?: string | null | undefined;
1686
1686
  }>, "many">;
1687
1687
  }, "strip", z.ZodTypeAny, {
1688
- id: string;
1689
1688
  type: "DECLARATIVE" | "IMPERATIVE";
1689
+ id: string;
1690
+ timezone: string;
1690
1691
  task: string;
1692
+ active: boolean;
1691
1693
  generator: {
1692
1694
  type: "CRON";
1693
- expression: string;
1694
1695
  description: string;
1696
+ expression: string;
1695
1697
  };
1696
- active: boolean;
1697
- timezone: string;
1698
1698
  environments: {
1699
- id: string;
1700
1699
  type: string;
1700
+ id: string;
1701
1701
  userName?: string | null | undefined;
1702
1702
  }[];
1703
1703
  externalId?: string | null | undefined;
1704
1704
  deduplicationKey?: string | null | undefined;
1705
1705
  nextRun?: Date | null | undefined;
1706
1706
  }, {
1707
- id: string;
1708
1707
  type: "DECLARATIVE" | "IMPERATIVE";
1708
+ id: string;
1709
+ timezone: string;
1709
1710
  task: string;
1711
+ active: boolean;
1710
1712
  generator: {
1711
1713
  type: "CRON";
1712
- expression: string;
1713
1714
  description: string;
1715
+ expression: string;
1714
1716
  };
1715
- active: boolean;
1716
- timezone: string;
1717
1717
  environments: {
1718
- id: string;
1719
1718
  type: string;
1719
+ id: string;
1720
1720
  userName?: string | null | undefined;
1721
1721
  }[];
1722
1722
  externalId?: string | null | undefined;
@@ -1746,12 +1746,12 @@ export declare const ListSchedulesResult: z.ZodObject<{
1746
1746
  description: z.ZodString;
1747
1747
  }, "strip", z.ZodTypeAny, {
1748
1748
  type: "CRON";
1749
- expression: string;
1750
1749
  description: string;
1750
+ expression: string;
1751
1751
  }, {
1752
1752
  type: "CRON";
1753
- expression: string;
1754
1753
  description: string;
1754
+ expression: string;
1755
1755
  }>;
1756
1756
  timezone: z.ZodString;
1757
1757
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1760,47 +1760,47 @@ export declare const ListSchedulesResult: z.ZodObject<{
1760
1760
  type: z.ZodString;
1761
1761
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
1762
  }, "strip", z.ZodTypeAny, {
1763
- id: string;
1764
1763
  type: string;
1764
+ id: string;
1765
1765
  userName?: string | null | undefined;
1766
1766
  }, {
1767
- id: string;
1768
1767
  type: string;
1768
+ id: string;
1769
1769
  userName?: string | null | undefined;
1770
1770
  }>, "many">;
1771
1771
  }, "strip", z.ZodTypeAny, {
1772
- id: string;
1773
1772
  type: "DECLARATIVE" | "IMPERATIVE";
1773
+ id: string;
1774
+ timezone: string;
1774
1775
  task: string;
1776
+ active: boolean;
1775
1777
  generator: {
1776
1778
  type: "CRON";
1777
- expression: string;
1778
1779
  description: string;
1780
+ expression: string;
1779
1781
  };
1780
- active: boolean;
1781
- timezone: string;
1782
1782
  environments: {
1783
- id: string;
1784
1783
  type: string;
1784
+ id: string;
1785
1785
  userName?: string | null | undefined;
1786
1786
  }[];
1787
1787
  externalId?: string | null | undefined;
1788
1788
  deduplicationKey?: string | null | undefined;
1789
1789
  nextRun?: Date | null | undefined;
1790
1790
  }, {
1791
- id: string;
1792
1791
  type: "DECLARATIVE" | "IMPERATIVE";
1792
+ id: string;
1793
+ timezone: string;
1793
1794
  task: string;
1795
+ active: boolean;
1794
1796
  generator: {
1795
1797
  type: "CRON";
1796
- expression: string;
1797
1798
  description: string;
1799
+ expression: string;
1798
1800
  };
1799
- active: boolean;
1800
- timezone: string;
1801
1801
  environments: {
1802
- id: string;
1803
1802
  type: string;
1803
+ id: string;
1804
1804
  userName?: string | null | undefined;
1805
1805
  }[];
1806
1806
  externalId?: string | null | undefined;
@@ -1822,19 +1822,19 @@ export declare const ListSchedulesResult: z.ZodObject<{
1822
1822
  }>;
1823
1823
  }, "strip", z.ZodTypeAny, {
1824
1824
  data: {
1825
- id: string;
1826
1825
  type: "DECLARATIVE" | "IMPERATIVE";
1826
+ id: string;
1827
+ timezone: string;
1827
1828
  task: string;
1829
+ active: boolean;
1828
1830
  generator: {
1829
1831
  type: "CRON";
1830
- expression: string;
1831
1832
  description: string;
1833
+ expression: string;
1832
1834
  };
1833
- active: boolean;
1834
- timezone: string;
1835
1835
  environments: {
1836
- id: string;
1837
1836
  type: string;
1837
+ id: string;
1838
1838
  userName?: string | null | undefined;
1839
1839
  }[];
1840
1840
  externalId?: string | null | undefined;
@@ -1848,19 +1848,19 @@ export declare const ListSchedulesResult: z.ZodObject<{
1848
1848
  };
1849
1849
  }, {
1850
1850
  data: {
1851
- id: string;
1852
1851
  type: "DECLARATIVE" | "IMPERATIVE";
1852
+ id: string;
1853
+ timezone: string;
1853
1854
  task: string;
1855
+ active: boolean;
1854
1856
  generator: {
1855
1857
  type: "CRON";
1856
- expression: string;
1857
1858
  description: string;
1859
+ expression: string;
1858
1860
  };
1859
- active: boolean;
1860
- timezone: string;
1861
1861
  environments: {
1862
- id: string;
1863
1862
  type: string;
1863
+ id: string;
1864
1864
  userName?: string | null | undefined;
1865
1865
  }[];
1866
1866
  externalId?: string | null | undefined;
@@ -1921,19 +1921,19 @@ export declare const RunScheduleDetails: z.ZodObject<{
1921
1921
  description: z.ZodString;
1922
1922
  }, "strip", z.ZodTypeAny, {
1923
1923
  type: "CRON";
1924
- expression: string;
1925
1924
  description: string;
1925
+ expression: string;
1926
1926
  }, {
1927
1927
  type: "CRON";
1928
- expression: string;
1929
1928
  description: string;
1929
+ expression: string;
1930
1930
  }>;
1931
1931
  }, "strip", z.ZodTypeAny, {
1932
1932
  id: string;
1933
1933
  generator: {
1934
1934
  type: "CRON";
1935
- expression: string;
1936
1935
  description: string;
1936
+ expression: string;
1937
1937
  };
1938
1938
  externalId?: string | undefined;
1939
1939
  deduplicationKey?: string | undefined;
@@ -1941,8 +1941,8 @@ export declare const RunScheduleDetails: z.ZodObject<{
1941
1941
  id: string;
1942
1942
  generator: {
1943
1943
  type: "CRON";
1944
- expression: string;
1945
1944
  description: string;
1945
+ expression: string;
1946
1946
  };
1947
1947
  externalId?: string | undefined;
1948
1948
  deduplicationKey?: string | undefined;
@@ -1979,8 +1979,9 @@ export declare const RelatedRunDetails: z.ZodObject<{
1979
1979
  durationMs: z.ZodNumber;
1980
1980
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1981
1981
  }, "strip", z.ZodTypeAny, {
1982
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
1982
1983
  id: string;
1983
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
1984
+ createdAt: Date;
1984
1985
  tags: string[];
1985
1986
  taskIdentifier: string;
1986
1987
  depth: number;
@@ -1992,23 +1993,23 @@ export declare const RelatedRunDetails: z.ZodObject<{
1992
1993
  isFailed: boolean;
1993
1994
  isCancelled: boolean;
1994
1995
  isTest: boolean;
1995
- createdAt: Date;
1996
1996
  updatedAt: Date;
1997
1997
  costInCents: number;
1998
1998
  baseCostInCents: number;
1999
1999
  durationMs: number;
2000
+ metadata?: Record<string, any> | undefined;
2001
+ version?: string | undefined;
2000
2002
  idempotencyKey?: string | undefined;
2001
2003
  ttl?: string | undefined;
2002
- metadata?: Record<string, any> | undefined;
2003
2004
  batchId?: string | undefined;
2004
- version?: string | undefined;
2005
2005
  startedAt?: Date | undefined;
2006
2006
  finishedAt?: Date | undefined;
2007
2007
  delayedUntil?: Date | undefined;
2008
2008
  expiredAt?: Date | undefined;
2009
2009
  }, {
2010
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2010
2011
  id: string;
2011
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2012
+ createdAt: Date;
2012
2013
  tags: string[];
2013
2014
  taskIdentifier: string;
2014
2015
  depth: number;
@@ -2020,16 +2021,15 @@ export declare const RelatedRunDetails: z.ZodObject<{
2020
2021
  isFailed: boolean;
2021
2022
  isCancelled: boolean;
2022
2023
  isTest: boolean;
2023
- createdAt: Date;
2024
2024
  updatedAt: Date;
2025
2025
  costInCents: number;
2026
2026
  baseCostInCents: number;
2027
2027
  durationMs: number;
2028
+ metadata?: Record<string, any> | undefined;
2029
+ version?: string | undefined;
2028
2030
  idempotencyKey?: string | undefined;
2029
2031
  ttl?: string | undefined;
2030
- metadata?: Record<string, any> | undefined;
2031
2032
  batchId?: string | undefined;
2032
- version?: string | undefined;
2033
2033
  startedAt?: Date | undefined;
2034
2034
  finishedAt?: Date | undefined;
2035
2035
  delayedUntil?: Date | undefined;
@@ -2063,19 +2063,19 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2063
2063
  description: z.ZodString;
2064
2064
  }, "strip", z.ZodTypeAny, {
2065
2065
  type: "CRON";
2066
- expression: string;
2067
2066
  description: string;
2067
+ expression: string;
2068
2068
  }, {
2069
2069
  type: "CRON";
2070
- expression: string;
2071
2070
  description: string;
2071
+ expression: string;
2072
2072
  }>;
2073
2073
  }, "strip", z.ZodTypeAny, {
2074
2074
  id: string;
2075
2075
  generator: {
2076
2076
  type: "CRON";
2077
- expression: string;
2078
2077
  description: string;
2078
+ expression: string;
2079
2079
  };
2080
2080
  externalId?: string | undefined;
2081
2081
  deduplicationKey?: string | undefined;
@@ -2083,8 +2083,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2083
2083
  id: string;
2084
2084
  generator: {
2085
2085
  type: "CRON";
2086
- expression: string;
2087
2086
  description: string;
2087
+ expression: string;
2088
2088
  };
2089
2089
  externalId?: string | undefined;
2090
2090
  deduplicationKey?: string | undefined;
@@ -2119,8 +2119,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2119
2119
  durationMs: z.ZodNumber;
2120
2120
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2121
2121
  }, "strip", z.ZodTypeAny, {
2122
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2122
2123
  id: string;
2123
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2124
+ createdAt: Date;
2124
2125
  tags: string[];
2125
2126
  taskIdentifier: string;
2126
2127
  depth: number;
@@ -2132,23 +2133,23 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2132
2133
  isFailed: boolean;
2133
2134
  isCancelled: boolean;
2134
2135
  isTest: boolean;
2135
- createdAt: Date;
2136
2136
  updatedAt: Date;
2137
2137
  costInCents: number;
2138
2138
  baseCostInCents: number;
2139
2139
  durationMs: number;
2140
+ metadata?: Record<string, any> | undefined;
2141
+ version?: string | undefined;
2140
2142
  idempotencyKey?: string | undefined;
2141
2143
  ttl?: string | undefined;
2142
- metadata?: Record<string, any> | undefined;
2143
2144
  batchId?: string | undefined;
2144
- version?: string | undefined;
2145
2145
  startedAt?: Date | undefined;
2146
2146
  finishedAt?: Date | undefined;
2147
2147
  delayedUntil?: Date | undefined;
2148
2148
  expiredAt?: Date | undefined;
2149
2149
  }, {
2150
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2150
2151
  id: string;
2151
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2152
+ createdAt: Date;
2152
2153
  tags: string[];
2153
2154
  taskIdentifier: string;
2154
2155
  depth: number;
@@ -2160,16 +2161,15 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2160
2161
  isFailed: boolean;
2161
2162
  isCancelled: boolean;
2162
2163
  isTest: boolean;
2163
- createdAt: Date;
2164
2164
  updatedAt: Date;
2165
2165
  costInCents: number;
2166
2166
  baseCostInCents: number;
2167
2167
  durationMs: number;
2168
+ metadata?: Record<string, any> | undefined;
2169
+ version?: string | undefined;
2168
2170
  idempotencyKey?: string | undefined;
2169
2171
  ttl?: string | undefined;
2170
- metadata?: Record<string, any> | undefined;
2171
2172
  batchId?: string | undefined;
2172
- version?: string | undefined;
2173
2173
  startedAt?: Date | undefined;
2174
2174
  finishedAt?: Date | undefined;
2175
2175
  delayedUntil?: Date | undefined;
@@ -2204,8 +2204,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2204
2204
  durationMs: z.ZodNumber;
2205
2205
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2206
2206
  }, "strip", z.ZodTypeAny, {
2207
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2207
2208
  id: string;
2208
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2209
+ createdAt: Date;
2209
2210
  tags: string[];
2210
2211
  taskIdentifier: string;
2211
2212
  depth: number;
@@ -2217,23 +2218,23 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2217
2218
  isFailed: boolean;
2218
2219
  isCancelled: boolean;
2219
2220
  isTest: boolean;
2220
- createdAt: Date;
2221
2221
  updatedAt: Date;
2222
2222
  costInCents: number;
2223
2223
  baseCostInCents: number;
2224
2224
  durationMs: number;
2225
+ metadata?: Record<string, any> | undefined;
2226
+ version?: string | undefined;
2225
2227
  idempotencyKey?: string | undefined;
2226
2228
  ttl?: string | undefined;
2227
- metadata?: Record<string, any> | undefined;
2228
2229
  batchId?: string | undefined;
2229
- version?: string | undefined;
2230
2230
  startedAt?: Date | undefined;
2231
2231
  finishedAt?: Date | undefined;
2232
2232
  delayedUntil?: Date | undefined;
2233
2233
  expiredAt?: Date | undefined;
2234
2234
  }, {
2235
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2235
2236
  id: string;
2236
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2237
+ createdAt: Date;
2237
2238
  tags: string[];
2238
2239
  taskIdentifier: string;
2239
2240
  depth: number;
@@ -2245,16 +2246,15 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2245
2246
  isFailed: boolean;
2246
2247
  isCancelled: boolean;
2247
2248
  isTest: boolean;
2248
- createdAt: Date;
2249
2249
  updatedAt: Date;
2250
2250
  costInCents: number;
2251
2251
  baseCostInCents: number;
2252
2252
  durationMs: number;
2253
+ metadata?: Record<string, any> | undefined;
2254
+ version?: string | undefined;
2253
2255
  idempotencyKey?: string | undefined;
2254
2256
  ttl?: string | undefined;
2255
- metadata?: Record<string, any> | undefined;
2256
2257
  batchId?: string | undefined;
2257
- version?: string | undefined;
2258
2258
  startedAt?: Date | undefined;
2259
2259
  finishedAt?: Date | undefined;
2260
2260
  delayedUntil?: Date | undefined;
@@ -2289,8 +2289,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2289
2289
  durationMs: z.ZodNumber;
2290
2290
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2291
2291
  }, "strip", z.ZodTypeAny, {
2292
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2292
2293
  id: string;
2293
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2294
+ createdAt: Date;
2294
2295
  tags: string[];
2295
2296
  taskIdentifier: string;
2296
2297
  depth: number;
@@ -2302,23 +2303,23 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2302
2303
  isFailed: boolean;
2303
2304
  isCancelled: boolean;
2304
2305
  isTest: boolean;
2305
- createdAt: Date;
2306
2306
  updatedAt: Date;
2307
2307
  costInCents: number;
2308
2308
  baseCostInCents: number;
2309
2309
  durationMs: number;
2310
+ metadata?: Record<string, any> | undefined;
2311
+ version?: string | undefined;
2310
2312
  idempotencyKey?: string | undefined;
2311
2313
  ttl?: string | undefined;
2312
- metadata?: Record<string, any> | undefined;
2313
2314
  batchId?: string | undefined;
2314
- version?: string | undefined;
2315
2315
  startedAt?: Date | undefined;
2316
2316
  finishedAt?: Date | undefined;
2317
2317
  delayedUntil?: Date | undefined;
2318
2318
  expiredAt?: Date | undefined;
2319
2319
  }, {
2320
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2320
2321
  id: string;
2321
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2322
+ createdAt: Date;
2322
2323
  tags: string[];
2323
2324
  taskIdentifier: string;
2324
2325
  depth: number;
@@ -2330,16 +2331,15 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2330
2331
  isFailed: boolean;
2331
2332
  isCancelled: boolean;
2332
2333
  isTest: boolean;
2333
- createdAt: Date;
2334
2334
  updatedAt: Date;
2335
2335
  costInCents: number;
2336
2336
  baseCostInCents: number;
2337
2337
  durationMs: number;
2338
+ metadata?: Record<string, any> | undefined;
2339
+ version?: string | undefined;
2338
2340
  idempotencyKey?: string | undefined;
2339
2341
  ttl?: string | undefined;
2340
- metadata?: Record<string, any> | undefined;
2341
2342
  batchId?: string | undefined;
2342
- version?: string | undefined;
2343
2343
  startedAt?: Date | undefined;
2344
2344
  finishedAt?: Date | undefined;
2345
2345
  delayedUntil?: Date | undefined;
@@ -2347,8 +2347,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2347
2347
  }>, "many">>;
2348
2348
  }, "strip", z.ZodTypeAny, {
2349
2349
  root?: {
2350
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2350
2351
  id: string;
2351
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2352
+ createdAt: Date;
2352
2353
  tags: string[];
2353
2354
  taskIdentifier: string;
2354
2355
  depth: number;
@@ -2360,24 +2361,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2360
2361
  isFailed: boolean;
2361
2362
  isCancelled: boolean;
2362
2363
  isTest: boolean;
2363
- createdAt: Date;
2364
2364
  updatedAt: Date;
2365
2365
  costInCents: number;
2366
2366
  baseCostInCents: number;
2367
2367
  durationMs: number;
2368
+ metadata?: Record<string, any> | undefined;
2369
+ version?: string | undefined;
2368
2370
  idempotencyKey?: string | undefined;
2369
2371
  ttl?: string | undefined;
2370
- metadata?: Record<string, any> | undefined;
2371
2372
  batchId?: string | undefined;
2372
- version?: string | undefined;
2373
2373
  startedAt?: Date | undefined;
2374
2374
  finishedAt?: Date | undefined;
2375
2375
  delayedUntil?: Date | undefined;
2376
2376
  expiredAt?: Date | undefined;
2377
2377
  } | undefined;
2378
2378
  parent?: {
2379
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2379
2380
  id: string;
2380
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2381
+ createdAt: Date;
2381
2382
  tags: string[];
2382
2383
  taskIdentifier: string;
2383
2384
  depth: number;
@@ -2389,24 +2390,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2389
2390
  isFailed: boolean;
2390
2391
  isCancelled: boolean;
2391
2392
  isTest: boolean;
2392
- createdAt: Date;
2393
2393
  updatedAt: Date;
2394
2394
  costInCents: number;
2395
2395
  baseCostInCents: number;
2396
2396
  durationMs: number;
2397
+ metadata?: Record<string, any> | undefined;
2398
+ version?: string | undefined;
2397
2399
  idempotencyKey?: string | undefined;
2398
2400
  ttl?: string | undefined;
2399
- metadata?: Record<string, any> | undefined;
2400
2401
  batchId?: string | undefined;
2401
- version?: string | undefined;
2402
2402
  startedAt?: Date | undefined;
2403
2403
  finishedAt?: Date | undefined;
2404
2404
  delayedUntil?: Date | undefined;
2405
2405
  expiredAt?: Date | undefined;
2406
2406
  } | undefined;
2407
2407
  children?: {
2408
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2408
2409
  id: string;
2409
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2410
+ createdAt: Date;
2410
2411
  tags: string[];
2411
2412
  taskIdentifier: string;
2412
2413
  depth: number;
@@ -2418,16 +2419,15 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2418
2419
  isFailed: boolean;
2419
2420
  isCancelled: boolean;
2420
2421
  isTest: boolean;
2421
- createdAt: Date;
2422
2422
  updatedAt: Date;
2423
2423
  costInCents: number;
2424
2424
  baseCostInCents: number;
2425
2425
  durationMs: number;
2426
+ metadata?: Record<string, any> | undefined;
2427
+ version?: string | undefined;
2426
2428
  idempotencyKey?: string | undefined;
2427
2429
  ttl?: string | undefined;
2428
- metadata?: Record<string, any> | undefined;
2429
2430
  batchId?: string | undefined;
2430
- version?: string | undefined;
2431
2431
  startedAt?: Date | undefined;
2432
2432
  finishedAt?: Date | undefined;
2433
2433
  delayedUntil?: Date | undefined;
@@ -2435,8 +2435,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2435
2435
  }[] | undefined;
2436
2436
  }, {
2437
2437
  root?: {
2438
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2438
2439
  id: string;
2439
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2440
+ createdAt: Date;
2440
2441
  tags: string[];
2441
2442
  taskIdentifier: string;
2442
2443
  depth: number;
@@ -2448,24 +2449,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2448
2449
  isFailed: boolean;
2449
2450
  isCancelled: boolean;
2450
2451
  isTest: boolean;
2451
- createdAt: Date;
2452
2452
  updatedAt: Date;
2453
2453
  costInCents: number;
2454
2454
  baseCostInCents: number;
2455
2455
  durationMs: number;
2456
+ metadata?: Record<string, any> | undefined;
2457
+ version?: string | undefined;
2456
2458
  idempotencyKey?: string | undefined;
2457
2459
  ttl?: string | undefined;
2458
- metadata?: Record<string, any> | undefined;
2459
2460
  batchId?: string | undefined;
2460
- version?: string | undefined;
2461
2461
  startedAt?: Date | undefined;
2462
2462
  finishedAt?: Date | undefined;
2463
2463
  delayedUntil?: Date | undefined;
2464
2464
  expiredAt?: Date | undefined;
2465
2465
  } | undefined;
2466
2466
  parent?: {
2467
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2467
2468
  id: string;
2468
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2469
+ createdAt: Date;
2469
2470
  tags: string[];
2470
2471
  taskIdentifier: string;
2471
2472
  depth: number;
@@ -2477,24 +2478,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2477
2478
  isFailed: boolean;
2478
2479
  isCancelled: boolean;
2479
2480
  isTest: boolean;
2480
- createdAt: Date;
2481
2481
  updatedAt: Date;
2482
2482
  costInCents: number;
2483
2483
  baseCostInCents: number;
2484
2484
  durationMs: number;
2485
+ metadata?: Record<string, any> | undefined;
2486
+ version?: string | undefined;
2485
2487
  idempotencyKey?: string | undefined;
2486
2488
  ttl?: string | undefined;
2487
- metadata?: Record<string, any> | undefined;
2488
2489
  batchId?: string | undefined;
2489
- version?: string | undefined;
2490
2490
  startedAt?: Date | undefined;
2491
2491
  finishedAt?: Date | undefined;
2492
2492
  delayedUntil?: Date | undefined;
2493
2493
  expiredAt?: Date | undefined;
2494
2494
  } | undefined;
2495
2495
  children?: {
2496
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2496
2497
  id: string;
2497
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2498
+ createdAt: Date;
2498
2499
  tags: string[];
2499
2500
  taskIdentifier: string;
2500
2501
  depth: number;
@@ -2506,16 +2507,15 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2506
2507
  isFailed: boolean;
2507
2508
  isCancelled: boolean;
2508
2509
  isTest: boolean;
2509
- createdAt: Date;
2510
2510
  updatedAt: Date;
2511
2511
  costInCents: number;
2512
2512
  baseCostInCents: number;
2513
2513
  durationMs: number;
2514
+ metadata?: Record<string, any> | undefined;
2515
+ version?: string | undefined;
2514
2516
  idempotencyKey?: string | undefined;
2515
2517
  ttl?: string | undefined;
2516
- metadata?: Record<string, any> | undefined;
2517
2518
  batchId?: string | undefined;
2518
- version?: string | undefined;
2519
2519
  startedAt?: Date | undefined;
2520
2520
  finishedAt?: Date | undefined;
2521
2521
  delayedUntil?: Date | undefined;
@@ -2543,8 +2543,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2543
2543
  stackTrace?: string | undefined;
2544
2544
  }>>;
2545
2545
  }, "strip", z.ZodTypeAny, {
2546
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2546
2547
  id: string;
2547
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2548
2548
  createdAt: Date;
2549
2549
  updatedAt: Date;
2550
2550
  error?: {
@@ -2555,8 +2555,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2555
2555
  startedAt?: Date | undefined;
2556
2556
  completedAt?: Date | undefined;
2557
2557
  }, {
2558
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2558
2559
  id: string;
2559
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2560
2560
  createdAt: Date;
2561
2561
  updatedAt: Date;
2562
2562
  error?: {
@@ -2596,14 +2596,29 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2596
2596
  durationMs: z.ZodNumber;
2597
2597
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2598
2598
  }, "strip", z.ZodTypeAny, {
2599
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2599
2600
  id: string;
2600
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2601
+ createdAt: Date;
2601
2602
  tags: string[];
2602
2603
  taskIdentifier: string;
2604
+ depth: number;
2605
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2606
+ isQueued: boolean;
2607
+ isExecuting: boolean;
2608
+ isCompleted: boolean;
2609
+ isSuccess: boolean;
2610
+ isFailed: boolean;
2611
+ isCancelled: boolean;
2612
+ isTest: boolean;
2613
+ updatedAt: Date;
2614
+ costInCents: number;
2615
+ baseCostInCents: number;
2616
+ durationMs: number;
2603
2617
  relatedRuns: {
2604
2618
  root?: {
2619
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2605
2620
  id: string;
2606
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2621
+ createdAt: Date;
2607
2622
  tags: string[];
2608
2623
  taskIdentifier: string;
2609
2624
  depth: number;
@@ -2615,24 +2630,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2615
2630
  isFailed: boolean;
2616
2631
  isCancelled: boolean;
2617
2632
  isTest: boolean;
2618
- createdAt: Date;
2619
2633
  updatedAt: Date;
2620
2634
  costInCents: number;
2621
2635
  baseCostInCents: number;
2622
2636
  durationMs: number;
2637
+ metadata?: Record<string, any> | undefined;
2638
+ version?: string | undefined;
2623
2639
  idempotencyKey?: string | undefined;
2624
2640
  ttl?: string | undefined;
2625
- metadata?: Record<string, any> | undefined;
2626
2641
  batchId?: string | undefined;
2627
- version?: string | undefined;
2628
2642
  startedAt?: Date | undefined;
2629
2643
  finishedAt?: Date | undefined;
2630
2644
  delayedUntil?: Date | undefined;
2631
2645
  expiredAt?: Date | undefined;
2632
2646
  } | undefined;
2633
2647
  parent?: {
2648
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2634
2649
  id: string;
2635
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2650
+ createdAt: Date;
2636
2651
  tags: string[];
2637
2652
  taskIdentifier: string;
2638
2653
  depth: number;
@@ -2644,24 +2659,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2644
2659
  isFailed: boolean;
2645
2660
  isCancelled: boolean;
2646
2661
  isTest: boolean;
2647
- createdAt: Date;
2648
2662
  updatedAt: Date;
2649
2663
  costInCents: number;
2650
2664
  baseCostInCents: number;
2651
2665
  durationMs: number;
2666
+ metadata?: Record<string, any> | undefined;
2667
+ version?: string | undefined;
2652
2668
  idempotencyKey?: string | undefined;
2653
2669
  ttl?: string | undefined;
2654
- metadata?: Record<string, any> | undefined;
2655
2670
  batchId?: string | undefined;
2656
- version?: string | undefined;
2657
2671
  startedAt?: Date | undefined;
2658
2672
  finishedAt?: Date | undefined;
2659
2673
  delayedUntil?: Date | undefined;
2660
2674
  expiredAt?: Date | undefined;
2661
2675
  } | undefined;
2662
2676
  children?: {
2677
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2663
2678
  id: string;
2664
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2679
+ createdAt: Date;
2665
2680
  tags: string[];
2666
2681
  taskIdentifier: string;
2667
2682
  depth: number;
@@ -2673,39 +2688,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2673
2688
  isFailed: boolean;
2674
2689
  isCancelled: boolean;
2675
2690
  isTest: boolean;
2676
- createdAt: Date;
2677
2691
  updatedAt: Date;
2678
2692
  costInCents: number;
2679
2693
  baseCostInCents: number;
2680
2694
  durationMs: number;
2695
+ metadata?: Record<string, any> | undefined;
2696
+ version?: string | undefined;
2681
2697
  idempotencyKey?: string | undefined;
2682
2698
  ttl?: string | undefined;
2683
- metadata?: Record<string, any> | undefined;
2684
2699
  batchId?: string | undefined;
2685
- version?: string | undefined;
2686
2700
  startedAt?: Date | undefined;
2687
2701
  finishedAt?: Date | undefined;
2688
2702
  delayedUntil?: Date | undefined;
2689
2703
  expiredAt?: Date | undefined;
2690
2704
  }[] | undefined;
2691
2705
  };
2692
- depth: number;
2693
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2694
- isQueued: boolean;
2695
- isExecuting: boolean;
2696
- isCompleted: boolean;
2697
- isSuccess: boolean;
2698
- isFailed: boolean;
2699
- isCancelled: boolean;
2700
- isTest: boolean;
2701
- createdAt: Date;
2702
- updatedAt: Date;
2703
- costInCents: number;
2704
- baseCostInCents: number;
2705
- durationMs: number;
2706
2706
  attempts: ({
2707
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2707
2708
  id: string;
2708
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2709
2709
  createdAt: Date;
2710
2710
  updatedAt: Date;
2711
2711
  error?: {
@@ -2717,43 +2717,58 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2717
2717
  completedAt?: Date | undefined;
2718
2718
  } | undefined)[];
2719
2719
  attemptCount: number;
2720
- payload?: any;
2721
- idempotencyKey?: string | undefined;
2722
- ttl?: string | undefined;
2723
- metadata?: Record<string, any> | undefined;
2724
- payloadPresignedUrl?: string | undefined;
2725
- output?: any;
2726
- outputPresignedUrl?: string | undefined;
2727
- error?: {
2728
- message: string;
2729
- name?: string | undefined;
2730
- stackTrace?: string | undefined;
2731
- } | undefined;
2732
2720
  schedule?: {
2733
2721
  id: string;
2734
2722
  generator: {
2735
2723
  type: "CRON";
2736
- expression: string;
2737
2724
  description: string;
2725
+ expression: string;
2738
2726
  };
2739
2727
  externalId?: string | undefined;
2740
2728
  deduplicationKey?: string | undefined;
2741
2729
  } | undefined;
2742
- batchId?: string | undefined;
2730
+ metadata?: Record<string, any> | undefined;
2743
2731
  version?: string | undefined;
2732
+ payload?: any;
2733
+ idempotencyKey?: string | undefined;
2734
+ ttl?: string | undefined;
2735
+ batchId?: string | undefined;
2736
+ error?: {
2737
+ message: string;
2738
+ name?: string | undefined;
2739
+ stackTrace?: string | undefined;
2740
+ } | undefined;
2744
2741
  startedAt?: Date | undefined;
2745
2742
  finishedAt?: Date | undefined;
2746
2743
  delayedUntil?: Date | undefined;
2747
2744
  expiredAt?: Date | undefined;
2745
+ payloadPresignedUrl?: string | undefined;
2746
+ output?: any;
2747
+ outputPresignedUrl?: string | undefined;
2748
2748
  }, {
2749
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2749
2750
  id: string;
2750
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2751
+ createdAt: Date;
2751
2752
  tags: string[];
2752
2753
  taskIdentifier: string;
2754
+ depth: number;
2755
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2756
+ isQueued: boolean;
2757
+ isExecuting: boolean;
2758
+ isCompleted: boolean;
2759
+ isSuccess: boolean;
2760
+ isFailed: boolean;
2761
+ isCancelled: boolean;
2762
+ isTest: boolean;
2763
+ updatedAt: Date;
2764
+ costInCents: number;
2765
+ baseCostInCents: number;
2766
+ durationMs: number;
2753
2767
  relatedRuns: {
2754
2768
  root?: {
2769
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2755
2770
  id: string;
2756
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2771
+ createdAt: Date;
2757
2772
  tags: string[];
2758
2773
  taskIdentifier: string;
2759
2774
  depth: number;
@@ -2765,24 +2780,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2765
2780
  isFailed: boolean;
2766
2781
  isCancelled: boolean;
2767
2782
  isTest: boolean;
2768
- createdAt: Date;
2769
2783
  updatedAt: Date;
2770
2784
  costInCents: number;
2771
2785
  baseCostInCents: number;
2772
2786
  durationMs: number;
2787
+ metadata?: Record<string, any> | undefined;
2788
+ version?: string | undefined;
2773
2789
  idempotencyKey?: string | undefined;
2774
2790
  ttl?: string | undefined;
2775
- metadata?: Record<string, any> | undefined;
2776
2791
  batchId?: string | undefined;
2777
- version?: string | undefined;
2778
2792
  startedAt?: Date | undefined;
2779
2793
  finishedAt?: Date | undefined;
2780
2794
  delayedUntil?: Date | undefined;
2781
2795
  expiredAt?: Date | undefined;
2782
2796
  } | undefined;
2783
2797
  parent?: {
2798
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2784
2799
  id: string;
2785
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2800
+ createdAt: Date;
2786
2801
  tags: string[];
2787
2802
  taskIdentifier: string;
2788
2803
  depth: number;
@@ -2794,24 +2809,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2794
2809
  isFailed: boolean;
2795
2810
  isCancelled: boolean;
2796
2811
  isTest: boolean;
2797
- createdAt: Date;
2798
2812
  updatedAt: Date;
2799
2813
  costInCents: number;
2800
2814
  baseCostInCents: number;
2801
2815
  durationMs: number;
2816
+ metadata?: Record<string, any> | undefined;
2817
+ version?: string | undefined;
2802
2818
  idempotencyKey?: string | undefined;
2803
2819
  ttl?: string | undefined;
2804
- metadata?: Record<string, any> | undefined;
2805
2820
  batchId?: string | undefined;
2806
- version?: string | undefined;
2807
2821
  startedAt?: Date | undefined;
2808
2822
  finishedAt?: Date | undefined;
2809
2823
  delayedUntil?: Date | undefined;
2810
2824
  expiredAt?: Date | undefined;
2811
2825
  } | undefined;
2812
2826
  children?: {
2827
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2813
2828
  id: string;
2814
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2829
+ createdAt: Date;
2815
2830
  tags: string[];
2816
2831
  taskIdentifier: string;
2817
2832
  depth: number;
@@ -2823,39 +2838,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2823
2838
  isFailed: boolean;
2824
2839
  isCancelled: boolean;
2825
2840
  isTest: boolean;
2826
- createdAt: Date;
2827
2841
  updatedAt: Date;
2828
2842
  costInCents: number;
2829
2843
  baseCostInCents: number;
2830
2844
  durationMs: number;
2845
+ metadata?: Record<string, any> | undefined;
2846
+ version?: string | undefined;
2831
2847
  idempotencyKey?: string | undefined;
2832
2848
  ttl?: string | undefined;
2833
- metadata?: Record<string, any> | undefined;
2834
2849
  batchId?: string | undefined;
2835
- version?: string | undefined;
2836
2850
  startedAt?: Date | undefined;
2837
2851
  finishedAt?: Date | undefined;
2838
2852
  delayedUntil?: Date | undefined;
2839
2853
  expiredAt?: Date | undefined;
2840
2854
  }[] | undefined;
2841
2855
  };
2842
- depth: number;
2843
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2844
- isQueued: boolean;
2845
- isExecuting: boolean;
2846
- isCompleted: boolean;
2847
- isSuccess: boolean;
2848
- isFailed: boolean;
2849
- isCancelled: boolean;
2850
- isTest: boolean;
2851
- createdAt: Date;
2852
- updatedAt: Date;
2853
- costInCents: number;
2854
- baseCostInCents: number;
2855
- durationMs: number;
2856
2856
  attempts: ({
2857
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2857
2858
  id: string;
2858
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2859
2859
  createdAt: Date;
2860
2860
  updatedAt: Date;
2861
2861
  error?: {
@@ -2866,34 +2866,34 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2866
2866
  startedAt?: Date | undefined;
2867
2867
  completedAt?: Date | undefined;
2868
2868
  } | undefined)[];
2869
- payload?: any;
2870
- idempotencyKey?: string | undefined;
2871
- ttl?: string | undefined;
2872
- metadata?: Record<string, any> | undefined;
2873
- payloadPresignedUrl?: string | undefined;
2874
- output?: any;
2875
- outputPresignedUrl?: string | undefined;
2876
- error?: {
2877
- message: string;
2878
- name?: string | undefined;
2879
- stackTrace?: string | undefined;
2880
- } | undefined;
2881
2869
  schedule?: {
2882
2870
  id: string;
2883
2871
  generator: {
2884
2872
  type: "CRON";
2885
- expression: string;
2886
2873
  description: string;
2874
+ expression: string;
2887
2875
  };
2888
2876
  externalId?: string | undefined;
2889
2877
  deduplicationKey?: string | undefined;
2890
2878
  } | undefined;
2891
- batchId?: string | undefined;
2879
+ metadata?: Record<string, any> | undefined;
2892
2880
  version?: string | undefined;
2881
+ payload?: any;
2882
+ idempotencyKey?: string | undefined;
2883
+ ttl?: string | undefined;
2884
+ batchId?: string | undefined;
2885
+ error?: {
2886
+ message: string;
2887
+ name?: string | undefined;
2888
+ stackTrace?: string | undefined;
2889
+ } | undefined;
2893
2890
  startedAt?: Date | undefined;
2894
2891
  finishedAt?: Date | undefined;
2895
2892
  delayedUntil?: Date | undefined;
2896
2893
  expiredAt?: Date | undefined;
2894
+ payloadPresignedUrl?: string | undefined;
2895
+ output?: any;
2896
+ outputPresignedUrl?: string | undefined;
2897
2897
  attemptCount?: number | undefined;
2898
2898
  }>;
2899
2899
  export type RetrieveRunResponse = z.infer<typeof RetrieveRunResponse>;
@@ -2936,8 +2936,9 @@ export declare const ListRunResponseItem: z.ZodObject<{
2936
2936
  durationMs: z.ZodNumber;
2937
2937
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2938
2938
  }, "strip", z.ZodTypeAny, {
2939
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2939
2940
  id: string;
2940
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2941
+ createdAt: Date;
2941
2942
  tags: string[];
2942
2943
  taskIdentifier: string;
2943
2944
  isQueued: boolean;
@@ -2947,7 +2948,6 @@ export declare const ListRunResponseItem: z.ZodObject<{
2947
2948
  isFailed: boolean;
2948
2949
  isCancelled: boolean;
2949
2950
  isTest: boolean;
2950
- createdAt: Date;
2951
2951
  updatedAt: Date;
2952
2952
  costInCents: number;
2953
2953
  baseCostInCents: number;
@@ -2957,17 +2957,18 @@ export declare const ListRunResponseItem: z.ZodObject<{
2957
2957
  name: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
- idempotencyKey?: string | undefined;
2961
- ttl?: string | undefined;
2962
2960
  metadata?: Record<string, any> | undefined;
2963
2961
  version?: string | undefined;
2962
+ idempotencyKey?: string | undefined;
2963
+ ttl?: string | undefined;
2964
2964
  startedAt?: Date | undefined;
2965
2965
  finishedAt?: Date | undefined;
2966
2966
  delayedUntil?: Date | undefined;
2967
2967
  expiredAt?: Date | undefined;
2968
2968
  }, {
2969
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2969
2970
  id: string;
2970
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2971
+ createdAt: Date;
2971
2972
  tags: string[];
2972
2973
  taskIdentifier: string;
2973
2974
  isQueued: boolean;
@@ -2977,7 +2978,6 @@ export declare const ListRunResponseItem: z.ZodObject<{
2977
2978
  isFailed: boolean;
2978
2979
  isCancelled: boolean;
2979
2980
  isTest: boolean;
2980
- createdAt: Date;
2981
2981
  updatedAt: Date;
2982
2982
  costInCents: number;
2983
2983
  baseCostInCents: number;
@@ -2987,10 +2987,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
2987
2987
  name: string;
2988
2988
  user?: string | undefined;
2989
2989
  };
2990
- idempotencyKey?: string | undefined;
2991
- ttl?: string | undefined;
2992
2990
  metadata?: Record<string, any> | undefined;
2993
2991
  version?: string | undefined;
2992
+ idempotencyKey?: string | undefined;
2993
+ ttl?: string | undefined;
2994
2994
  startedAt?: Date | undefined;
2995
2995
  finishedAt?: Date | undefined;
2996
2996
  delayedUntil?: Date | undefined;
@@ -3037,8 +3037,9 @@ export declare const ListRunResponse: z.ZodObject<{
3037
3037
  durationMs: z.ZodNumber;
3038
3038
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3039
3039
  }, "strip", z.ZodTypeAny, {
3040
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3040
3041
  id: string;
3041
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3042
+ createdAt: Date;
3042
3043
  tags: string[];
3043
3044
  taskIdentifier: string;
3044
3045
  isQueued: boolean;
@@ -3048,7 +3049,6 @@ export declare const ListRunResponse: z.ZodObject<{
3048
3049
  isFailed: boolean;
3049
3050
  isCancelled: boolean;
3050
3051
  isTest: boolean;
3051
- createdAt: Date;
3052
3052
  updatedAt: Date;
3053
3053
  costInCents: number;
3054
3054
  baseCostInCents: number;
@@ -3058,17 +3058,18 @@ export declare const ListRunResponse: z.ZodObject<{
3058
3058
  name: string;
3059
3059
  user?: string | undefined;
3060
3060
  };
3061
- idempotencyKey?: string | undefined;
3062
- ttl?: string | undefined;
3063
3061
  metadata?: Record<string, any> | undefined;
3064
3062
  version?: string | undefined;
3063
+ idempotencyKey?: string | undefined;
3064
+ ttl?: string | undefined;
3065
3065
  startedAt?: Date | undefined;
3066
3066
  finishedAt?: Date | undefined;
3067
3067
  delayedUntil?: Date | undefined;
3068
3068
  expiredAt?: Date | undefined;
3069
3069
  }, {
3070
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3070
3071
  id: string;
3071
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3072
+ createdAt: Date;
3072
3073
  tags: string[];
3073
3074
  taskIdentifier: string;
3074
3075
  isQueued: boolean;
@@ -3078,7 +3079,6 @@ export declare const ListRunResponse: z.ZodObject<{
3078
3079
  isFailed: boolean;
3079
3080
  isCancelled: boolean;
3080
3081
  isTest: boolean;
3081
- createdAt: Date;
3082
3082
  updatedAt: Date;
3083
3083
  costInCents: number;
3084
3084
  baseCostInCents: number;
@@ -3088,10 +3088,10 @@ export declare const ListRunResponse: z.ZodObject<{
3088
3088
  name: string;
3089
3089
  user?: string | undefined;
3090
3090
  };
3091
- idempotencyKey?: string | undefined;
3092
- ttl?: string | undefined;
3093
3091
  metadata?: Record<string, any> | undefined;
3094
3092
  version?: string | undefined;
3093
+ idempotencyKey?: string | undefined;
3094
+ ttl?: string | undefined;
3095
3095
  startedAt?: Date | undefined;
3096
3096
  finishedAt?: Date | undefined;
3097
3097
  delayedUntil?: Date | undefined;
@@ -3109,8 +3109,9 @@ export declare const ListRunResponse: z.ZodObject<{
3109
3109
  }>;
3110
3110
  }, "strip", z.ZodTypeAny, {
3111
3111
  data: {
3112
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3112
3113
  id: string;
3113
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3114
+ createdAt: Date;
3114
3115
  tags: string[];
3115
3116
  taskIdentifier: string;
3116
3117
  isQueued: boolean;
@@ -3120,7 +3121,6 @@ export declare const ListRunResponse: z.ZodObject<{
3120
3121
  isFailed: boolean;
3121
3122
  isCancelled: boolean;
3122
3123
  isTest: boolean;
3123
- createdAt: Date;
3124
3124
  updatedAt: Date;
3125
3125
  costInCents: number;
3126
3126
  baseCostInCents: number;
@@ -3130,10 +3130,10 @@ export declare const ListRunResponse: z.ZodObject<{
3130
3130
  name: string;
3131
3131
  user?: string | undefined;
3132
3132
  };
3133
- idempotencyKey?: string | undefined;
3134
- ttl?: string | undefined;
3135
3133
  metadata?: Record<string, any> | undefined;
3136
3134
  version?: string | undefined;
3135
+ idempotencyKey?: string | undefined;
3136
+ ttl?: string | undefined;
3137
3137
  startedAt?: Date | undefined;
3138
3138
  finishedAt?: Date | undefined;
3139
3139
  delayedUntil?: Date | undefined;
@@ -3145,8 +3145,9 @@ export declare const ListRunResponse: z.ZodObject<{
3145
3145
  };
3146
3146
  }, {
3147
3147
  data: {
3148
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3148
3149
  id: string;
3149
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3150
+ createdAt: Date;
3150
3151
  tags: string[];
3151
3152
  taskIdentifier: string;
3152
3153
  isQueued: boolean;
@@ -3156,7 +3157,6 @@ export declare const ListRunResponse: z.ZodObject<{
3156
3157
  isFailed: boolean;
3157
3158
  isCancelled: boolean;
3158
3159
  isTest: boolean;
3159
- createdAt: Date;
3160
3160
  updatedAt: Date;
3161
3161
  costInCents: number;
3162
3162
  baseCostInCents: number;
@@ -3166,10 +3166,10 @@ export declare const ListRunResponse: z.ZodObject<{
3166
3166
  name: string;
3167
3167
  user?: string | undefined;
3168
3168
  };
3169
- idempotencyKey?: string | undefined;
3170
- ttl?: string | undefined;
3171
3169
  metadata?: Record<string, any> | undefined;
3172
3170
  version?: string | undefined;
3171
+ idempotencyKey?: string | undefined;
3172
+ ttl?: string | undefined;
3173
3173
  startedAt?: Date | undefined;
3174
3174
  finishedAt?: Date | undefined;
3175
3175
  delayedUntil?: Date | undefined;
@@ -3248,15 +3248,403 @@ export declare const EnvironmentVariables: z.ZodArray<z.ZodObject<{
3248
3248
  name: string;
3249
3249
  }>, "many">;
3250
3250
  export type EnvironmentVariables = z.infer<typeof EnvironmentVariables>;
3251
+ export declare const RunMetadataSetKeyOperation: z.ZodObject<{
3252
+ type: z.ZodLiteral<"set">;
3253
+ key: z.ZodString;
3254
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3255
+ }, "strip", z.ZodTypeAny, {
3256
+ type: "set";
3257
+ value: import("../../schemas/json.js").DeserializedJson;
3258
+ key: string;
3259
+ }, {
3260
+ type: "set";
3261
+ value: import("../../schemas/json.js").DeserializedJson;
3262
+ key: string;
3263
+ }>;
3264
+ export type RunMetadataSetKeyOperation = z.infer<typeof RunMetadataSetKeyOperation>;
3265
+ export declare const RunMetadataDeleteKeyOperation: z.ZodObject<{
3266
+ type: z.ZodLiteral<"delete">;
3267
+ key: z.ZodString;
3268
+ }, "strip", z.ZodTypeAny, {
3269
+ type: "delete";
3270
+ key: string;
3271
+ }, {
3272
+ type: "delete";
3273
+ key: string;
3274
+ }>;
3275
+ export type RunMetadataDeleteKeyOperation = z.infer<typeof RunMetadataDeleteKeyOperation>;
3276
+ export declare const RunMetadataAppendKeyOperation: z.ZodObject<{
3277
+ type: z.ZodLiteral<"append">;
3278
+ key: z.ZodString;
3279
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3280
+ }, "strip", z.ZodTypeAny, {
3281
+ type: "append";
3282
+ value: import("../../schemas/json.js").DeserializedJson;
3283
+ key: string;
3284
+ }, {
3285
+ type: "append";
3286
+ value: import("../../schemas/json.js").DeserializedJson;
3287
+ key: string;
3288
+ }>;
3289
+ export type RunMetadataAppendKeyOperation = z.infer<typeof RunMetadataAppendKeyOperation>;
3290
+ export declare const RunMetadataRemoveFromKeyOperation: z.ZodObject<{
3291
+ type: z.ZodLiteral<"remove">;
3292
+ key: z.ZodString;
3293
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ type: "remove";
3296
+ value: import("../../schemas/json.js").DeserializedJson;
3297
+ key: string;
3298
+ }, {
3299
+ type: "remove";
3300
+ value: import("../../schemas/json.js").DeserializedJson;
3301
+ key: string;
3302
+ }>;
3303
+ export type RunMetadataRemoveFromKeyOperation = z.infer<typeof RunMetadataRemoveFromKeyOperation>;
3304
+ export declare const RunMetadataIncrementKeyOperation: z.ZodObject<{
3305
+ type: z.ZodLiteral<"increment">;
3306
+ key: z.ZodString;
3307
+ value: z.ZodNumber;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ type: "increment";
3310
+ value: number;
3311
+ key: string;
3312
+ }, {
3313
+ type: "increment";
3314
+ value: number;
3315
+ key: string;
3316
+ }>;
3317
+ export type RunMetadataIncrementKeyOperation = z.infer<typeof RunMetadataIncrementKeyOperation>;
3318
+ export declare const RunMetadataDecrementKeyOperation: z.ZodObject<{
3319
+ type: z.ZodLiteral<"decrement">;
3320
+ key: z.ZodString;
3321
+ value: z.ZodNumber;
3322
+ }, "strip", z.ZodTypeAny, {
3323
+ type: "decrement";
3324
+ value: number;
3325
+ key: string;
3326
+ }, {
3327
+ type: "decrement";
3328
+ value: number;
3329
+ key: string;
3330
+ }>;
3331
+ export type RunMetadataDecrementKeyOperation = z.infer<typeof RunMetadataDecrementKeyOperation>;
3332
+ export declare const RunMetadataChangeOperation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3333
+ type: z.ZodLiteral<"set">;
3334
+ key: z.ZodString;
3335
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3336
+ }, "strip", z.ZodTypeAny, {
3337
+ type: "set";
3338
+ value: import("../../schemas/json.js").DeserializedJson;
3339
+ key: string;
3340
+ }, {
3341
+ type: "set";
3342
+ value: import("../../schemas/json.js").DeserializedJson;
3343
+ key: string;
3344
+ }>, z.ZodObject<{
3345
+ type: z.ZodLiteral<"delete">;
3346
+ key: z.ZodString;
3347
+ }, "strip", z.ZodTypeAny, {
3348
+ type: "delete";
3349
+ key: string;
3350
+ }, {
3351
+ type: "delete";
3352
+ key: string;
3353
+ }>, z.ZodObject<{
3354
+ type: z.ZodLiteral<"append">;
3355
+ key: z.ZodString;
3356
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3357
+ }, "strip", z.ZodTypeAny, {
3358
+ type: "append";
3359
+ value: import("../../schemas/json.js").DeserializedJson;
3360
+ key: string;
3361
+ }, {
3362
+ type: "append";
3363
+ value: import("../../schemas/json.js").DeserializedJson;
3364
+ key: string;
3365
+ }>, z.ZodObject<{
3366
+ type: z.ZodLiteral<"remove">;
3367
+ key: z.ZodString;
3368
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3369
+ }, "strip", z.ZodTypeAny, {
3370
+ type: "remove";
3371
+ value: import("../../schemas/json.js").DeserializedJson;
3372
+ key: string;
3373
+ }, {
3374
+ type: "remove";
3375
+ value: import("../../schemas/json.js").DeserializedJson;
3376
+ key: string;
3377
+ }>, z.ZodObject<{
3378
+ type: z.ZodLiteral<"increment">;
3379
+ key: z.ZodString;
3380
+ value: z.ZodNumber;
3381
+ }, "strip", z.ZodTypeAny, {
3382
+ type: "increment";
3383
+ value: number;
3384
+ key: string;
3385
+ }, {
3386
+ type: "increment";
3387
+ value: number;
3388
+ key: string;
3389
+ }>, z.ZodObject<{
3390
+ type: z.ZodLiteral<"decrement">;
3391
+ key: z.ZodString;
3392
+ value: z.ZodNumber;
3393
+ }, "strip", z.ZodTypeAny, {
3394
+ type: "decrement";
3395
+ value: number;
3396
+ key: string;
3397
+ }, {
3398
+ type: "decrement";
3399
+ value: number;
3400
+ key: string;
3401
+ }>]>;
3402
+ export type RunMetadataChangeOperation = z.infer<typeof RunMetadataChangeOperation>;
3251
3403
  export declare const UpdateMetadataRequestBody: z.ZodObject<{
3252
3404
  metadata: z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>;
3253
3405
  metadataType: z.ZodOptional<z.ZodString>;
3406
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3407
+ type: z.ZodLiteral<"set">;
3408
+ key: z.ZodString;
3409
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3410
+ }, "strip", z.ZodTypeAny, {
3411
+ type: "set";
3412
+ value: import("../../schemas/json.js").DeserializedJson;
3413
+ key: string;
3414
+ }, {
3415
+ type: "set";
3416
+ value: import("../../schemas/json.js").DeserializedJson;
3417
+ key: string;
3418
+ }>, z.ZodObject<{
3419
+ type: z.ZodLiteral<"delete">;
3420
+ key: z.ZodString;
3421
+ }, "strip", z.ZodTypeAny, {
3422
+ type: "delete";
3423
+ key: string;
3424
+ }, {
3425
+ type: "delete";
3426
+ key: string;
3427
+ }>, z.ZodObject<{
3428
+ type: z.ZodLiteral<"append">;
3429
+ key: z.ZodString;
3430
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3431
+ }, "strip", z.ZodTypeAny, {
3432
+ type: "append";
3433
+ value: import("../../schemas/json.js").DeserializedJson;
3434
+ key: string;
3435
+ }, {
3436
+ type: "append";
3437
+ value: import("../../schemas/json.js").DeserializedJson;
3438
+ key: string;
3439
+ }>, z.ZodObject<{
3440
+ type: z.ZodLiteral<"remove">;
3441
+ key: z.ZodString;
3442
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3443
+ }, "strip", z.ZodTypeAny, {
3444
+ type: "remove";
3445
+ value: import("../../schemas/json.js").DeserializedJson;
3446
+ key: string;
3447
+ }, {
3448
+ type: "remove";
3449
+ value: import("../../schemas/json.js").DeserializedJson;
3450
+ key: string;
3451
+ }>, z.ZodObject<{
3452
+ type: z.ZodLiteral<"increment">;
3453
+ key: z.ZodString;
3454
+ value: z.ZodNumber;
3455
+ }, "strip", z.ZodTypeAny, {
3456
+ type: "increment";
3457
+ value: number;
3458
+ key: string;
3459
+ }, {
3460
+ type: "increment";
3461
+ value: number;
3462
+ key: string;
3463
+ }>, z.ZodObject<{
3464
+ type: z.ZodLiteral<"decrement">;
3465
+ key: z.ZodString;
3466
+ value: z.ZodNumber;
3467
+ }, "strip", z.ZodTypeAny, {
3468
+ type: "decrement";
3469
+ value: number;
3470
+ key: string;
3471
+ }, {
3472
+ type: "decrement";
3473
+ value: number;
3474
+ key: string;
3475
+ }>]>, "many">>;
3476
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3477
+ type: z.ZodLiteral<"set">;
3478
+ key: z.ZodString;
3479
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3480
+ }, "strip", z.ZodTypeAny, {
3481
+ type: "set";
3482
+ value: import("../../schemas/json.js").DeserializedJson;
3483
+ key: string;
3484
+ }, {
3485
+ type: "set";
3486
+ value: import("../../schemas/json.js").DeserializedJson;
3487
+ key: string;
3488
+ }>, z.ZodObject<{
3489
+ type: z.ZodLiteral<"delete">;
3490
+ key: z.ZodString;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ type: "delete";
3493
+ key: string;
3494
+ }, {
3495
+ type: "delete";
3496
+ key: string;
3497
+ }>, z.ZodObject<{
3498
+ type: z.ZodLiteral<"append">;
3499
+ key: z.ZodString;
3500
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3501
+ }, "strip", z.ZodTypeAny, {
3502
+ type: "append";
3503
+ value: import("../../schemas/json.js").DeserializedJson;
3504
+ key: string;
3505
+ }, {
3506
+ type: "append";
3507
+ value: import("../../schemas/json.js").DeserializedJson;
3508
+ key: string;
3509
+ }>, z.ZodObject<{
3510
+ type: z.ZodLiteral<"remove">;
3511
+ key: z.ZodString;
3512
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3513
+ }, "strip", z.ZodTypeAny, {
3514
+ type: "remove";
3515
+ value: import("../../schemas/json.js").DeserializedJson;
3516
+ key: string;
3517
+ }, {
3518
+ type: "remove";
3519
+ value: import("../../schemas/json.js").DeserializedJson;
3520
+ key: string;
3521
+ }>, z.ZodObject<{
3522
+ type: z.ZodLiteral<"increment">;
3523
+ key: z.ZodString;
3524
+ value: z.ZodNumber;
3525
+ }, "strip", z.ZodTypeAny, {
3526
+ type: "increment";
3527
+ value: number;
3528
+ key: string;
3529
+ }, {
3530
+ type: "increment";
3531
+ value: number;
3532
+ key: string;
3533
+ }>, z.ZodObject<{
3534
+ type: z.ZodLiteral<"decrement">;
3535
+ key: z.ZodString;
3536
+ value: z.ZodNumber;
3537
+ }, "strip", z.ZodTypeAny, {
3538
+ type: "decrement";
3539
+ value: number;
3540
+ key: string;
3541
+ }, {
3542
+ type: "decrement";
3543
+ value: number;
3544
+ key: string;
3545
+ }>]>, "many">>;
3254
3546
  }, "strip", z.ZodTypeAny, {
3255
3547
  metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3256
3548
  metadataType?: string | undefined;
3549
+ parentOperations?: ({
3550
+ type: "set";
3551
+ value: import("../../schemas/json.js").DeserializedJson;
3552
+ key: string;
3553
+ } | {
3554
+ type: "delete";
3555
+ key: string;
3556
+ } | {
3557
+ type: "append";
3558
+ value: import("../../schemas/json.js").DeserializedJson;
3559
+ key: string;
3560
+ } | {
3561
+ type: "remove";
3562
+ value: import("../../schemas/json.js").DeserializedJson;
3563
+ key: string;
3564
+ } | {
3565
+ type: "increment";
3566
+ value: number;
3567
+ key: string;
3568
+ } | {
3569
+ type: "decrement";
3570
+ value: number;
3571
+ key: string;
3572
+ })[] | undefined;
3573
+ rootOperations?: ({
3574
+ type: "set";
3575
+ value: import("../../schemas/json.js").DeserializedJson;
3576
+ key: string;
3577
+ } | {
3578
+ type: "delete";
3579
+ key: string;
3580
+ } | {
3581
+ type: "append";
3582
+ value: import("../../schemas/json.js").DeserializedJson;
3583
+ key: string;
3584
+ } | {
3585
+ type: "remove";
3586
+ value: import("../../schemas/json.js").DeserializedJson;
3587
+ key: string;
3588
+ } | {
3589
+ type: "increment";
3590
+ value: number;
3591
+ key: string;
3592
+ } | {
3593
+ type: "decrement";
3594
+ value: number;
3595
+ key: string;
3596
+ })[] | undefined;
3257
3597
  }, {
3258
3598
  metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3259
3599
  metadataType?: string | undefined;
3600
+ parentOperations?: ({
3601
+ type: "set";
3602
+ value: import("../../schemas/json.js").DeserializedJson;
3603
+ key: string;
3604
+ } | {
3605
+ type: "delete";
3606
+ key: string;
3607
+ } | {
3608
+ type: "append";
3609
+ value: import("../../schemas/json.js").DeserializedJson;
3610
+ key: string;
3611
+ } | {
3612
+ type: "remove";
3613
+ value: import("../../schemas/json.js").DeserializedJson;
3614
+ key: string;
3615
+ } | {
3616
+ type: "increment";
3617
+ value: number;
3618
+ key: string;
3619
+ } | {
3620
+ type: "decrement";
3621
+ value: number;
3622
+ key: string;
3623
+ })[] | undefined;
3624
+ rootOperations?: ({
3625
+ type: "set";
3626
+ value: import("../../schemas/json.js").DeserializedJson;
3627
+ key: string;
3628
+ } | {
3629
+ type: "delete";
3630
+ key: string;
3631
+ } | {
3632
+ type: "append";
3633
+ value: import("../../schemas/json.js").DeserializedJson;
3634
+ key: string;
3635
+ } | {
3636
+ type: "remove";
3637
+ value: import("../../schemas/json.js").DeserializedJson;
3638
+ key: string;
3639
+ } | {
3640
+ type: "increment";
3641
+ value: number;
3642
+ key: string;
3643
+ } | {
3644
+ type: "decrement";
3645
+ value: number;
3646
+ key: string;
3647
+ })[] | undefined;
3260
3648
  }>;
3261
3649
  export type UpdateMetadataRequestBody = z.infer<typeof UpdateMetadataRequestBody>;
3262
3650
  export declare const UpdateMetadataResponseBody: z.ZodObject<{
@@ -3344,24 +3732,23 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3344
3732
  }>]>>>;
3345
3733
  }, "strip", z.ZodTypeAny, {
3346
3734
  number: number;
3347
- id: string;
3348
3735
  status: string;
3736
+ id: string;
3737
+ createdAt: Date;
3349
3738
  taskIdentifier: string;
3350
3739
  isTest: boolean;
3351
- createdAt: Date;
3352
3740
  updatedAt: Date;
3353
3741
  costInCents: number;
3354
3742
  baseCostInCents: number;
3355
3743
  friendlyId: string;
3356
3744
  usageDurationMs: number;
3357
3745
  runTags: string[] | null;
3746
+ metadata?: string | null | undefined;
3358
3747
  payload?: string | null | undefined;
3359
3748
  idempotencyKey?: string | null | undefined;
3360
3749
  payloadType?: string | null | undefined;
3361
3750
  ttl?: string | null | undefined;
3362
- metadata?: string | null | undefined;
3363
3751
  metadataType?: string | null | undefined;
3364
- output?: string | null | undefined;
3365
3752
  error?: {
3366
3753
  message: string;
3367
3754
  type: "BUILT_IN_ERROR";
@@ -3381,29 +3768,29 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3381
3768
  } | null | undefined;
3382
3769
  startedAt?: Date | null | undefined;
3383
3770
  expiredAt?: Date | null | undefined;
3771
+ output?: string | null | undefined;
3384
3772
  completedAt?: Date | null | undefined;
3385
- outputType?: string | null | undefined;
3386
3773
  delayUntil?: Date | null | undefined;
3387
3774
  queuedAt?: Date | null | undefined;
3775
+ outputType?: string | null | undefined;
3388
3776
  }, {
3389
3777
  number: number;
3390
- id: string;
3391
3778
  status: string;
3779
+ id: string;
3780
+ createdAt: Date;
3392
3781
  taskIdentifier: string;
3393
3782
  isTest: boolean;
3394
- createdAt: Date;
3395
3783
  updatedAt: Date;
3396
3784
  costInCents: number;
3397
3785
  baseCostInCents: number;
3398
3786
  friendlyId: string;
3399
3787
  usageDurationMs: number;
3788
+ metadata?: string | null | undefined;
3400
3789
  payload?: string | null | undefined;
3401
3790
  idempotencyKey?: string | null | undefined;
3402
3791
  payloadType?: string | null | undefined;
3403
3792
  ttl?: string | null | undefined;
3404
- metadata?: string | null | undefined;
3405
3793
  metadataType?: string | null | undefined;
3406
- output?: string | null | undefined;
3407
3794
  error?: {
3408
3795
  message: string;
3409
3796
  type: "BUILT_IN_ERROR";
@@ -3423,10 +3810,11 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3423
3810
  } | null | undefined;
3424
3811
  startedAt?: Date | null | undefined;
3425
3812
  expiredAt?: Date | null | undefined;
3813
+ output?: string | null | undefined;
3426
3814
  completedAt?: Date | null | undefined;
3427
- outputType?: string | null | undefined;
3428
3815
  delayUntil?: Date | null | undefined;
3429
3816
  queuedAt?: Date | null | undefined;
3817
+ outputType?: string | null | undefined;
3430
3818
  runTags?: string[] | null | undefined;
3431
3819
  }>;
3432
3820
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
@@ -3440,15 +3828,15 @@ export declare const RetrieveBatchResponse: z.ZodObject<{
3440
3828
  updatedAt: z.ZodDate;
3441
3829
  runCount: z.ZodNumber;
3442
3830
  }, "strip", z.ZodTypeAny, {
3831
+ status: "PENDING" | "COMPLETED";
3443
3832
  id: string;
3444
- status: "COMPLETED" | "PENDING";
3445
3833
  createdAt: Date;
3446
3834
  updatedAt: Date;
3447
3835
  runCount: number;
3448
3836
  idempotencyKey?: string | undefined;
3449
3837
  }, {
3838
+ status: "PENDING" | "COMPLETED";
3450
3839
  id: string;
3451
- status: "COMPLETED" | "PENDING";
3452
3840
  createdAt: Date;
3453
3841
  updatedAt: Date;
3454
3842
  runCount: number;
@@ -3463,15 +3851,15 @@ export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{
3463
3851
  value: z.ZodString;
3464
3852
  createdAt: z.ZodDate;
3465
3853
  }, "strip", z.ZodTypeAny, {
3466
- id: string;
3467
3854
  value: string;
3855
+ id: string;
3468
3856
  createdAt: Date;
3469
3857
  key: string;
3470
3858
  runId: string;
3471
3859
  sequence: number;
3472
3860
  }, {
3473
- id: string;
3474
3861
  value: string;
3862
+ id: string;
3475
3863
  createdAt: Date;
3476
3864
  key: string;
3477
3865
  runId: string;