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

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 (82) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +128 -124
  2. package/dist/commonjs/v3/apiClient/index.js +7 -1
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/runStream.js +2 -1
  5. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  6. package/dist/commonjs/v3/apiClient/stream.d.ts +1 -1
  7. package/dist/commonjs/v3/apiClient/stream.js +11 -2
  8. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  9. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  10. package/dist/commonjs/v3/run-metadata-api.js +16 -0
  11. package/dist/commonjs/v3/run-metadata-api.js.map +1 -1
  12. package/dist/commonjs/v3/runMetadata/index.d.ts +8 -7
  13. package/dist/commonjs/v3/runMetadata/index.js +23 -13
  14. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  15. package/dist/commonjs/v3/runMetadata/manager.d.ts +14 -8
  16. package/dist/commonjs/v3/runMetadata/manager.js +123 -148
  17. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  18. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +8 -7
  19. package/dist/commonjs/v3/runMetadata/noopManager.js +33 -18
  20. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  21. package/dist/commonjs/v3/runMetadata/operations.d.ts +6 -0
  22. package/dist/commonjs/v3/runMetadata/operations.js +114 -0
  23. package/dist/commonjs/v3/runMetadata/operations.js.map +1 -0
  24. package/dist/commonjs/v3/runMetadata/types.d.ts +9 -8
  25. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  26. package/dist/commonjs/v3/runtime/devRuntimeManager.js +9 -0
  27. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  28. package/dist/commonjs/v3/schemas/api.d.ts +623 -675
  29. package/dist/commonjs/v3/schemas/api.js +2 -44
  30. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  31. package/dist/commonjs/v3/schemas/build.d.ts +132 -132
  32. package/dist/commonjs/v3/schemas/common.d.ts +3774 -53
  33. package/dist/commonjs/v3/schemas/common.js +45 -1
  34. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  35. package/dist/commonjs/v3/schemas/fetch.d.ts +10 -10
  36. package/dist/commonjs/v3/schemas/messages.d.ts +19952 -1970
  37. package/dist/commonjs/v3/schemas/resources.d.ts +70 -70
  38. package/dist/commonjs/v3/schemas/schemas.d.ts +259 -259
  39. package/dist/esm/v3/apiClient/index.d.ts +128 -124
  40. package/dist/esm/v3/apiClient/index.js +7 -1
  41. package/dist/esm/v3/apiClient/index.js.map +1 -1
  42. package/dist/esm/v3/apiClient/runStream.js +2 -1
  43. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  44. package/dist/esm/v3/apiClient/stream.d.ts +1 -1
  45. package/dist/esm/v3/apiClient/stream.js +11 -2
  46. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  47. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  48. package/dist/esm/v3/run-metadata-api.js +2 -0
  49. package/dist/esm/v3/run-metadata-api.js.map +1 -1
  50. package/dist/esm/v3/runMetadata/index.d.ts +8 -7
  51. package/dist/esm/v3/runMetadata/index.js +23 -13
  52. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  53. package/dist/esm/v3/runMetadata/manager.d.ts +14 -8
  54. package/dist/esm/v3/runMetadata/manager.js +123 -148
  55. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  56. package/dist/esm/v3/runMetadata/noopManager.d.ts +8 -7
  57. package/dist/esm/v3/runMetadata/noopManager.js +33 -18
  58. package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
  59. package/dist/esm/v3/runMetadata/operations.d.ts +6 -0
  60. package/dist/esm/v3/runMetadata/operations.js +111 -0
  61. package/dist/esm/v3/runMetadata/operations.js.map +1 -0
  62. package/dist/esm/v3/runMetadata/types.d.ts +9 -8
  63. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  64. package/dist/esm/v3/runtime/devRuntimeManager.js +9 -0
  65. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  66. package/dist/esm/v3/schemas/api.d.ts +623 -675
  67. package/dist/esm/v3/schemas/api.js +2 -44
  68. package/dist/esm/v3/schemas/api.js.map +1 -1
  69. package/dist/esm/v3/schemas/build.d.ts +124 -124
  70. package/dist/esm/v3/schemas/common.d.ts +3774 -53
  71. package/dist/esm/v3/schemas/common.js +44 -0
  72. package/dist/esm/v3/schemas/common.js.map +1 -1
  73. package/dist/esm/v3/schemas/messages.d.ts +19952 -1970
  74. package/dist/esm/v3/schemas/resources.d.ts +70 -70
  75. package/dist/esm/v3/schemas/schemas.d.ts +259 -259
  76. package/package.json +1 -1
  77. package/dist/commonjs/v3/runMetadata/metadataSync.d.ts +0 -1
  78. package/dist/commonjs/v3/runMetadata/metadataSync.js +0 -3
  79. package/dist/commonjs/v3/runMetadata/metadataSync.js.map +0 -1
  80. package/dist/esm/v3/runMetadata/metadataSync.d.ts +0 -1
  81. package/dist/esm/v3/runMetadata/metadataSync.js +0 -2
  82. package/dist/esm/v3/runMetadata/metadataSync.js.map +0 -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
- slug: string;
30
29
  createdAt: Date;
30
+ slug: string;
31
31
  title: string;
32
32
  }, {
33
33
  id: string;
34
- slug: string;
35
34
  createdAt: Date;
35
+ slug: string;
36
36
  title: string;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  id: string;
40
- externalRef: string;
41
40
  name: string;
42
- slug: string;
43
41
  createdAt: Date;
42
+ slug: string;
44
43
  organization: {
45
44
  id: string;
46
- slug: string;
47
45
  createdAt: Date;
46
+ slug: string;
48
47
  title: string;
49
48
  };
49
+ externalRef: string;
50
50
  }, {
51
51
  id: string;
52
- externalRef: string;
53
52
  name: string;
54
- slug: string;
55
53
  createdAt: Date;
54
+ slug: string;
56
55
  organization: {
57
56
  id: string;
58
- slug: string;
59
57
  createdAt: Date;
58
+ slug: string;
60
59
  title: string;
61
60
  };
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
- slug: string;
78
77
  createdAt: Date;
78
+ slug: string;
79
79
  title: string;
80
80
  }, {
81
81
  id: string;
82
- slug: string;
83
82
  createdAt: Date;
83
+ slug: string;
84
84
  title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  id: string;
88
- externalRef: string;
89
88
  name: string;
90
- slug: string;
91
89
  createdAt: Date;
90
+ slug: string;
92
91
  organization: {
93
92
  id: string;
94
- slug: string;
95
93
  createdAt: Date;
94
+ slug: string;
96
95
  title: string;
97
96
  };
97
+ externalRef: string;
98
98
  }, {
99
99
  id: string;
100
- externalRef: string;
101
100
  name: string;
102
- slug: string;
103
101
  createdAt: Date;
102
+ slug: string;
104
103
  organization: {
105
104
  id: string;
106
- slug: string;
107
105
  createdAt: Date;
106
+ slug: string;
108
107
  title: string;
109
108
  };
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 | 0.25 | 0.5 | 4 | undefined;
175
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
174
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
175
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 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 | 0.25 | 0.5 | 4 | undefined;
179
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
178
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
179
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 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
- cron: string;
188
187
  timezone: string;
189
- }, {
190
188
  cron: string;
189
+ }, {
191
190
  timezone: string;
191
+ cron: 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;
199
198
  queue?: {
200
199
  name?: string | undefined;
201
200
  concurrencyLimit?: number | undefined;
202
201
  } | 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;
210
215
  machine?: {
211
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
212
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
216
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
217
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
213
218
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
214
219
  } | undefined;
215
220
  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;
226
225
  queue?: {
227
226
  name?: string | undefined;
228
227
  concurrencyLimit?: number | undefined;
229
228
  } | 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;
237
242
  machine?: {
238
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
239
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
243
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
244
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
240
245
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
241
246
  } | undefined;
242
247
  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,28 +252,26 @@ 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
- contentHash: string;
256
255
  filePath: string;
256
+ contentHash: string;
257
257
  contents: string;
258
258
  taskIds: string[];
259
259
  }, {
260
- contentHash: string;
261
260
  filePath: string;
261
+ contentHash: string;
262
262
  contents: string;
263
263
  taskIds: string[];
264
264
  }>, "many">>;
265
265
  }, "strip", z.ZodTypeAny, {
266
- packageVersion: string;
267
- contentHash: string;
268
266
  tasks: {
269
267
  id: string;
270
268
  filePath: string;
271
269
  exportName: string;
272
- description?: string | undefined;
273
270
  queue?: {
274
271
  name?: string | undefined;
275
272
  concurrencyLimit?: number | undefined;
276
273
  } | undefined;
274
+ maxDuration?: number | undefined;
277
275
  retry?: {
278
276
  maxAttempts?: number | undefined;
279
277
  factor?: number | undefined;
@@ -281,37 +279,37 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
281
279
  maxTimeoutInMs?: number | undefined;
282
280
  randomize?: boolean | undefined;
283
281
  } | undefined;
282
+ description?: string | undefined;
283
+ schedule?: {
284
+ timezone: string;
285
+ cron: string;
286
+ } | undefined;
284
287
  machine?: {
285
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
286
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
288
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
289
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
287
290
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
288
291
  } | undefined;
289
292
  triggerSource?: string | undefined;
290
- schedule?: {
291
- cron: string;
292
- timezone: string;
293
- } | undefined;
294
- maxDuration?: number | undefined;
295
293
  }[];
294
+ contentHash: string;
295
+ packageVersion: string;
296
296
  cliPackageVersion?: string | undefined;
297
297
  sourceFiles?: {
298
- contentHash: string;
299
298
  filePath: string;
299
+ contentHash: string;
300
300
  contents: string;
301
301
  taskIds: string[];
302
302
  }[] | undefined;
303
303
  }, {
304
- packageVersion: string;
305
- contentHash: string;
306
304
  tasks: {
307
305
  id: string;
308
306
  filePath: string;
309
307
  exportName: string;
310
- description?: string | undefined;
311
308
  queue?: {
312
309
  name?: string | undefined;
313
310
  concurrencyLimit?: number | undefined;
314
311
  } | undefined;
312
+ maxDuration?: number | undefined;
315
313
  retry?: {
316
314
  maxAttempts?: number | undefined;
317
315
  factor?: number | undefined;
@@ -319,41 +317,40 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
319
317
  maxTimeoutInMs?: number | undefined;
320
318
  randomize?: boolean | undefined;
321
319
  } | undefined;
320
+ description?: string | undefined;
321
+ schedule?: {
322
+ timezone: string;
323
+ cron: string;
324
+ } | undefined;
322
325
  machine?: {
323
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
324
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
326
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
327
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
325
328
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
326
329
  } | undefined;
327
330
  triggerSource?: string | undefined;
328
- schedule?: {
329
- cron: string;
330
- timezone: string;
331
- } | undefined;
332
- maxDuration?: number | undefined;
333
331
  }[];
332
+ contentHash: string;
333
+ packageVersion: string;
334
334
  cliPackageVersion?: string | undefined;
335
335
  sourceFiles?: {
336
- contentHash: string;
337
336
  filePath: string;
337
+ contentHash: 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;
345
344
  metadata: {
346
- packageVersion: string;
347
- contentHash: string;
348
345
  tasks: {
349
346
  id: string;
350
347
  filePath: string;
351
348
  exportName: string;
352
- description?: string | undefined;
353
349
  queue?: {
354
350
  name?: string | undefined;
355
351
  concurrencyLimit?: number | undefined;
356
352
  } | undefined;
353
+ maxDuration?: number | undefined;
357
354
  retry?: {
358
355
  maxAttempts?: number | undefined;
359
356
  factor?: number | undefined;
@@ -361,41 +358,41 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
361
358
  maxTimeoutInMs?: number | undefined;
362
359
  randomize?: boolean | undefined;
363
360
  } | undefined;
361
+ description?: string | undefined;
362
+ schedule?: {
363
+ timezone: string;
364
+ cron: string;
365
+ } | undefined;
364
366
  machine?: {
365
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
366
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
367
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
368
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
367
369
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
368
370
  } | undefined;
369
371
  triggerSource?: string | undefined;
370
- schedule?: {
371
- cron: string;
372
- timezone: string;
373
- } | undefined;
374
- maxDuration?: number | undefined;
375
372
  }[];
373
+ contentHash: string;
374
+ packageVersion: string;
376
375
  cliPackageVersion?: string | undefined;
377
376
  sourceFiles?: {
378
- contentHash: string;
379
377
  filePath: string;
378
+ contentHash: string;
380
379
  contents: string;
381
380
  taskIds: string[];
382
381
  }[] | undefined;
383
382
  };
383
+ localOnly: boolean;
384
384
  supportsLazyAttempts?: boolean | undefined;
385
385
  }, {
386
- localOnly: boolean;
387
386
  metadata: {
388
- packageVersion: string;
389
- contentHash: string;
390
387
  tasks: {
391
388
  id: string;
392
389
  filePath: string;
393
390
  exportName: string;
394
- description?: string | undefined;
395
391
  queue?: {
396
392
  name?: string | undefined;
397
393
  concurrencyLimit?: number | undefined;
398
394
  } | undefined;
395
+ maxDuration?: number | undefined;
399
396
  retry?: {
400
397
  maxAttempts?: number | undefined;
401
398
  factor?: number | undefined;
@@ -403,26 +400,29 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
403
400
  maxTimeoutInMs?: number | undefined;
404
401
  randomize?: boolean | undefined;
405
402
  } | undefined;
403
+ description?: string | undefined;
404
+ schedule?: {
405
+ timezone: string;
406
+ cron: string;
407
+ } | undefined;
406
408
  machine?: {
407
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
408
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
409
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
410
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
409
411
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
410
412
  } | undefined;
411
413
  triggerSource?: string | undefined;
412
- schedule?: {
413
- cron: string;
414
- timezone: string;
415
- } | undefined;
416
- maxDuration?: number | undefined;
417
414
  }[];
415
+ contentHash: string;
416
+ packageVersion: string;
418
417
  cliPackageVersion?: string | undefined;
419
418
  sourceFiles?: {
420
- contentHash: string;
421
419
  filePath: string;
420
+ contentHash: string;
422
421
  contents: string;
423
422
  taskIds: string[];
424
423
  }[] | undefined;
425
424
  };
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
- contentHash: string;
436
435
  version: string;
436
+ contentHash: string;
437
437
  }, {
438
438
  id: string;
439
- contentHash: string;
440
439
  version: string;
440
+ contentHash: 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,18 +474,15 @@ 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;
484
477
  dependentAttempt?: string | undefined;
485
478
  parentAttempt?: string | undefined;
486
479
  dependentBatch?: string | undefined;
487
480
  parentBatch?: string | undefined;
488
481
  lockToVersion?: string | undefined;
482
+ queue?: {
483
+ name?: string | undefined;
484
+ concurrencyLimit?: number | undefined;
485
+ } | undefined;
489
486
  concurrencyKey?: string | undefined;
490
487
  idempotencyKey?: string | undefined;
491
488
  idempotencyKeyTTL?: string | undefined;
@@ -494,20 +491,20 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
494
491
  delay?: string | Date | undefined;
495
492
  ttl?: string | number | undefined;
496
493
  tags?: string | string[] | undefined;
497
- metadataType?: string | undefined;
498
- }, {
499
- queue?: {
500
- name?: string | undefined;
501
- concurrencyLimit?: number | undefined;
502
- } | undefined;
503
494
  maxAttempts?: number | undefined;
504
- maxDuration?: number | undefined;
505
495
  metadata?: any;
496
+ metadataType?: string | undefined;
497
+ maxDuration?: number | undefined;
498
+ }, {
506
499
  dependentAttempt?: string | undefined;
507
500
  parentAttempt?: string | undefined;
508
501
  dependentBatch?: string | undefined;
509
502
  parentBatch?: string | undefined;
510
503
  lockToVersion?: string | undefined;
504
+ queue?: {
505
+ name?: string | undefined;
506
+ concurrencyLimit?: number | undefined;
507
+ } | undefined;
511
508
  concurrencyKey?: string | undefined;
512
509
  idempotencyKey?: string | undefined;
513
510
  idempotencyKeyTTL?: string | undefined;
@@ -516,22 +513,22 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
516
513
  delay?: string | Date | undefined;
517
514
  ttl?: string | number | undefined;
518
515
  tags?: string | string[] | undefined;
516
+ maxAttempts?: number | undefined;
517
+ metadata?: any;
519
518
  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;
530
523
  dependentAttempt?: string | undefined;
531
524
  parentAttempt?: string | undefined;
532
525
  dependentBatch?: string | undefined;
533
526
  parentBatch?: string | undefined;
534
527
  lockToVersion?: string | undefined;
528
+ queue?: {
529
+ name?: string | undefined;
530
+ concurrencyLimit?: number | undefined;
531
+ } | undefined;
535
532
  concurrencyKey?: string | undefined;
536
533
  idempotencyKey?: string | undefined;
537
534
  idempotencyKeyTTL?: string | undefined;
@@ -540,24 +537,24 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
540
537
  delay?: string | Date | undefined;
541
538
  ttl?: string | number | undefined;
542
539
  tags?: string | string[] | undefined;
540
+ maxAttempts?: number | undefined;
541
+ metadata?: any;
543
542
  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;
556
549
  dependentAttempt?: string | undefined;
557
550
  parentAttempt?: string | undefined;
558
551
  dependentBatch?: string | undefined;
559
552
  parentBatch?: string | undefined;
560
553
  lockToVersion?: string | undefined;
554
+ queue?: {
555
+ name?: string | undefined;
556
+ concurrencyLimit?: number | undefined;
557
+ } | undefined;
561
558
  concurrencyKey?: string | undefined;
562
559
  idempotencyKey?: string | undefined;
563
560
  idempotencyKeyTTL?: string | undefined;
@@ -566,7 +563,10 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
566
563
  delay?: string | Date | undefined;
567
564
  ttl?: string | number | undefined;
568
565
  tags?: string | string[] | undefined;
566
+ maxAttempts?: number | undefined;
567
+ metadata?: any;
569
568
  metadataType?: string | undefined;
569
+ maxDuration?: number | undefined;
570
570
  } | undefined;
571
571
  payload?: any;
572
572
  context?: any;
@@ -613,18 +613,15 @@ 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;
623
616
  dependentAttempt?: string | undefined;
624
617
  parentAttempt?: string | undefined;
625
618
  dependentBatch?: string | undefined;
626
619
  parentBatch?: string | undefined;
627
620
  lockToVersion?: string | undefined;
621
+ queue?: {
622
+ name?: string | undefined;
623
+ concurrencyLimit?: number | undefined;
624
+ } | undefined;
628
625
  concurrencyKey?: string | undefined;
629
626
  idempotencyKey?: string | undefined;
630
627
  idempotencyKeyTTL?: string | undefined;
@@ -633,20 +630,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
633
630
  delay?: string | Date | undefined;
634
631
  ttl?: string | number | undefined;
635
632
  tags?: string | string[] | undefined;
636
- metadataType?: string | undefined;
637
- }, {
638
- queue?: {
639
- name?: string | undefined;
640
- concurrencyLimit?: number | undefined;
641
- } | undefined;
642
633
  maxAttempts?: number | undefined;
643
- maxDuration?: number | undefined;
644
634
  metadata?: any;
635
+ metadataType?: string | undefined;
636
+ maxDuration?: number | undefined;
637
+ }, {
645
638
  dependentAttempt?: string | undefined;
646
639
  parentAttempt?: string | undefined;
647
640
  dependentBatch?: string | undefined;
648
641
  parentBatch?: string | undefined;
649
642
  lockToVersion?: string | undefined;
643
+ queue?: {
644
+ name?: string | undefined;
645
+ concurrencyLimit?: number | undefined;
646
+ } | undefined;
650
647
  concurrencyKey?: string | undefined;
651
648
  idempotencyKey?: string | undefined;
652
649
  idempotencyKeyTTL?: string | undefined;
@@ -655,22 +652,22 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
655
652
  delay?: string | Date | undefined;
656
653
  ttl?: string | number | undefined;
657
654
  tags?: string | string[] | undefined;
655
+ maxAttempts?: number | undefined;
656
+ metadata?: any;
658
657
  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;
669
662
  dependentAttempt?: string | undefined;
670
663
  parentAttempt?: string | undefined;
671
664
  dependentBatch?: string | undefined;
672
665
  parentBatch?: string | undefined;
673
666
  lockToVersion?: string | undefined;
667
+ queue?: {
668
+ name?: string | undefined;
669
+ concurrencyLimit?: number | undefined;
670
+ } | undefined;
674
671
  concurrencyKey?: string | undefined;
675
672
  idempotencyKey?: string | undefined;
676
673
  idempotencyKeyTTL?: string | undefined;
@@ -679,24 +676,24 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
679
676
  delay?: string | Date | undefined;
680
677
  ttl?: string | number | undefined;
681
678
  tags?: string | string[] | undefined;
679
+ maxAttempts?: number | undefined;
680
+ metadata?: any;
682
681
  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;
695
688
  dependentAttempt?: string | undefined;
696
689
  parentAttempt?: string | undefined;
697
690
  dependentBatch?: string | undefined;
698
691
  parentBatch?: string | undefined;
699
692
  lockToVersion?: string | undefined;
693
+ queue?: {
694
+ name?: string | undefined;
695
+ concurrencyLimit?: number | undefined;
696
+ } | undefined;
700
697
  concurrencyKey?: string | undefined;
701
698
  idempotencyKey?: string | undefined;
702
699
  idempotencyKeyTTL?: string | undefined;
@@ -705,7 +702,10 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
705
702
  delay?: string | Date | undefined;
706
703
  ttl?: string | number | undefined;
707
704
  tags?: string | string[] | undefined;
705
+ maxAttempts?: number | undefined;
706
+ metadata?: any;
708
707
  metadataType?: string | undefined;
708
+ maxDuration?: number | undefined;
709
709
  } | undefined;
710
710
  payload?: any;
711
711
  context?: any;
@@ -714,18 +714,15 @@ 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;
724
717
  dependentAttempt?: string | undefined;
725
718
  parentAttempt?: string | undefined;
726
719
  dependentBatch?: string | undefined;
727
720
  parentBatch?: string | undefined;
728
721
  lockToVersion?: string | undefined;
722
+ queue?: {
723
+ name?: string | undefined;
724
+ concurrencyLimit?: number | undefined;
725
+ } | undefined;
729
726
  concurrencyKey?: string | undefined;
730
727
  idempotencyKey?: string | undefined;
731
728
  idempotencyKeyTTL?: string | undefined;
@@ -734,27 +731,27 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
734
731
  delay?: string | Date | undefined;
735
732
  ttl?: string | number | undefined;
736
733
  tags?: string | string[] | undefined;
734
+ maxAttempts?: number | undefined;
735
+ metadata?: any;
737
736
  metadataType?: string | undefined;
737
+ maxDuration?: number | undefined;
738
738
  } | undefined;
739
739
  payload?: any;
740
- context?: any;
741
- }[];
742
- dependentAttempt?: string | undefined;
743
- }, {
744
- items: {
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;
740
+ context?: any;
741
+ }[];
742
+ dependentAttempt?: string | undefined;
743
+ }, {
744
+ items: {
745
+ options?: {
753
746
  dependentAttempt?: string | undefined;
754
747
  parentAttempt?: string | undefined;
755
748
  dependentBatch?: string | undefined;
756
749
  parentBatch?: string | undefined;
757
750
  lockToVersion?: string | undefined;
751
+ queue?: {
752
+ name?: string | undefined;
753
+ concurrencyLimit?: number | undefined;
754
+ } | undefined;
758
755
  concurrencyKey?: string | undefined;
759
756
  idempotencyKey?: string | undefined;
760
757
  idempotencyKeyTTL?: string | undefined;
@@ -763,7 +760,10 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
763
760
  delay?: string | Date | undefined;
764
761
  ttl?: string | number | undefined;
765
762
  tags?: string | string[] | undefined;
763
+ maxAttempts?: number | undefined;
764
+ metadata?: any;
766
765
  metadataType?: string | undefined;
766
+ maxDuration?: number | undefined;
767
767
  } | undefined;
768
768
  payload?: any;
769
769
  context?: any;
@@ -801,15 +801,12 @@ 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;
804
806
  queue?: {
805
807
  name?: string | undefined;
806
808
  concurrencyLimit?: number | undefined;
807
809
  } | undefined;
808
- maxAttempts?: number | undefined;
809
- maxDuration?: number | undefined;
810
- metadata?: any;
811
- parentAttempt?: string | undefined;
812
- lockToVersion?: string | undefined;
813
810
  concurrencyKey?: string | undefined;
814
811
  idempotencyKey?: string | undefined;
815
812
  idempotencyKeyTTL?: string | undefined;
@@ -818,17 +815,17 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
818
815
  delay?: string | Date | undefined;
819
816
  ttl?: string | number | undefined;
820
817
  tags?: string | string[] | undefined;
818
+ maxAttempts?: number | undefined;
819
+ metadata?: any;
821
820
  metadataType?: string | undefined;
821
+ maxDuration?: number | undefined;
822
822
  }, {
823
+ parentAttempt?: string | undefined;
824
+ lockToVersion?: string | undefined;
823
825
  queue?: {
824
826
  name?: string | undefined;
825
827
  concurrencyLimit?: number | undefined;
826
828
  } | undefined;
827
- maxAttempts?: number | undefined;
828
- maxDuration?: number | undefined;
829
- metadata?: any;
830
- parentAttempt?: string | undefined;
831
- lockToVersion?: string | undefined;
832
829
  concurrencyKey?: string | undefined;
833
830
  idempotencyKey?: string | undefined;
834
831
  idempotencyKeyTTL?: string | undefined;
@@ -837,20 +834,20 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
837
834
  delay?: string | Date | undefined;
838
835
  ttl?: string | number | undefined;
839
836
  tags?: string | string[] | undefined;
837
+ maxAttempts?: number | undefined;
838
+ metadata?: any;
840
839
  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;
845
847
  queue?: {
846
848
  name?: string | undefined;
847
849
  concurrencyLimit?: number | undefined;
848
850
  } | undefined;
849
- maxAttempts?: number | undefined;
850
- maxDuration?: number | undefined;
851
- metadata?: any;
852
- parentAttempt?: string | undefined;
853
- lockToVersion?: string | undefined;
854
851
  concurrencyKey?: string | undefined;
855
852
  idempotencyKey?: string | undefined;
856
853
  idempotencyKeyTTL?: string | undefined;
@@ -859,22 +856,22 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
859
856
  delay?: string | Date | undefined;
860
857
  ttl?: string | number | undefined;
861
858
  tags?: string | string[] | undefined;
859
+ maxAttempts?: number | undefined;
860
+ metadata?: any;
862
861
  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;
869
871
  queue?: {
870
872
  name?: string | undefined;
871
873
  concurrencyLimit?: number | undefined;
872
874
  } | undefined;
873
- maxAttempts?: number | undefined;
874
- maxDuration?: number | undefined;
875
- metadata?: any;
876
- parentAttempt?: string | undefined;
877
- lockToVersion?: string | undefined;
878
875
  concurrencyKey?: string | undefined;
879
876
  idempotencyKey?: string | undefined;
880
877
  idempotencyKeyTTL?: string | undefined;
@@ -883,7 +880,10 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
883
880
  delay?: string | Date | undefined;
884
881
  ttl?: string | number | undefined;
885
882
  tags?: string | string[] | undefined;
883
+ maxAttempts?: number | undefined;
884
+ metadata?: any;
886
885
  metadataType?: string | undefined;
886
+ maxDuration?: number | undefined;
887
887
  } | undefined;
888
888
  payload?: any;
889
889
  context?: any;
@@ -920,15 +920,12 @@ 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;
923
925
  queue?: {
924
926
  name?: string | undefined;
925
927
  concurrencyLimit?: number | undefined;
926
928
  } | undefined;
927
- maxAttempts?: number | undefined;
928
- maxDuration?: number | undefined;
929
- metadata?: any;
930
- parentAttempt?: string | undefined;
931
- lockToVersion?: string | undefined;
932
929
  concurrencyKey?: string | undefined;
933
930
  idempotencyKey?: string | undefined;
934
931
  idempotencyKeyTTL?: string | undefined;
@@ -937,17 +934,17 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
937
934
  delay?: string | Date | undefined;
938
935
  ttl?: string | number | undefined;
939
936
  tags?: string | string[] | undefined;
937
+ maxAttempts?: number | undefined;
938
+ metadata?: any;
940
939
  metadataType?: string | undefined;
940
+ maxDuration?: number | undefined;
941
941
  }, {
942
+ parentAttempt?: string | undefined;
943
+ lockToVersion?: string | undefined;
942
944
  queue?: {
943
945
  name?: string | undefined;
944
946
  concurrencyLimit?: number | undefined;
945
947
  } | undefined;
946
- maxAttempts?: number | undefined;
947
- maxDuration?: number | undefined;
948
- metadata?: any;
949
- parentAttempt?: string | undefined;
950
- lockToVersion?: string | undefined;
951
948
  concurrencyKey?: string | undefined;
952
949
  idempotencyKey?: string | undefined;
953
950
  idempotencyKeyTTL?: string | undefined;
@@ -956,20 +953,20 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
956
953
  delay?: string | Date | undefined;
957
954
  ttl?: string | number | undefined;
958
955
  tags?: string | string[] | undefined;
956
+ maxAttempts?: number | undefined;
957
+ metadata?: any;
959
958
  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;
964
966
  queue?: {
965
967
  name?: string | undefined;
966
968
  concurrencyLimit?: number | undefined;
967
969
  } | undefined;
968
- maxAttempts?: number | undefined;
969
- maxDuration?: number | undefined;
970
- metadata?: any;
971
- parentAttempt?: string | undefined;
972
- lockToVersion?: string | undefined;
973
970
  concurrencyKey?: string | undefined;
974
971
  idempotencyKey?: string | undefined;
975
972
  idempotencyKeyTTL?: string | undefined;
@@ -978,22 +975,22 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
978
975
  delay?: string | Date | undefined;
979
976
  ttl?: string | number | undefined;
980
977
  tags?: string | string[] | undefined;
978
+ maxAttempts?: number | undefined;
979
+ metadata?: any;
981
980
  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;
988
990
  queue?: {
989
991
  name?: string | undefined;
990
992
  concurrencyLimit?: number | undefined;
991
993
  } | undefined;
992
- maxAttempts?: number | undefined;
993
- maxDuration?: number | undefined;
994
- metadata?: any;
995
- parentAttempt?: string | undefined;
996
- lockToVersion?: string | undefined;
997
994
  concurrencyKey?: string | undefined;
998
995
  idempotencyKey?: string | undefined;
999
996
  idempotencyKeyTTL?: string | undefined;
@@ -1002,7 +999,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1002
999
  delay?: string | Date | undefined;
1003
1000
  ttl?: string | number | undefined;
1004
1001
  tags?: string | string[] | undefined;
1002
+ maxAttempts?: number | undefined;
1003
+ metadata?: any;
1005
1004
  metadataType?: string | undefined;
1005
+ maxDuration?: number | undefined;
1006
1006
  } | undefined;
1007
1007
  payload?: any;
1008
1008
  context?: any;
@@ -1012,15 +1012,12 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1012
1012
  items: {
1013
1013
  task: string;
1014
1014
  options?: {
1015
+ parentAttempt?: string | undefined;
1016
+ lockToVersion?: string | undefined;
1015
1017
  queue?: {
1016
1018
  name?: string | undefined;
1017
1019
  concurrencyLimit?: number | undefined;
1018
1020
  } | undefined;
1019
- maxAttempts?: number | undefined;
1020
- maxDuration?: number | undefined;
1021
- metadata?: any;
1022
- parentAttempt?: string | undefined;
1023
- lockToVersion?: string | undefined;
1024
1021
  concurrencyKey?: string | undefined;
1025
1022
  idempotencyKey?: string | undefined;
1026
1023
  idempotencyKeyTTL?: string | undefined;
@@ -1029,7 +1026,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1029
1026
  delay?: string | Date | undefined;
1030
1027
  ttl?: string | number | undefined;
1031
1028
  tags?: string | string[] | undefined;
1029
+ maxAttempts?: number | undefined;
1030
+ metadata?: any;
1032
1031
  metadataType?: string | undefined;
1032
+ maxDuration?: number | undefined;
1033
1033
  } | undefined;
1034
1034
  payload?: any;
1035
1035
  context?: any;
@@ -1039,15 +1039,12 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1039
1039
  items: {
1040
1040
  task: string;
1041
1041
  options?: {
1042
+ parentAttempt?: string | undefined;
1043
+ lockToVersion?: string | undefined;
1042
1044
  queue?: {
1043
1045
  name?: string | undefined;
1044
1046
  concurrencyLimit?: number | undefined;
1045
1047
  } | undefined;
1046
- maxAttempts?: number | undefined;
1047
- maxDuration?: number | undefined;
1048
- metadata?: any;
1049
- parentAttempt?: string | undefined;
1050
- lockToVersion?: string | undefined;
1051
1048
  concurrencyKey?: string | undefined;
1052
1049
  idempotencyKey?: string | undefined;
1053
1050
  idempotencyKeyTTL?: string | undefined;
@@ -1056,7 +1053,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1056
1053
  delay?: string | Date | undefined;
1057
1054
  ttl?: string | number | undefined;
1058
1055
  tags?: string | string[] | undefined;
1056
+ maxAttempts?: number | undefined;
1057
+ metadata?: any;
1059
1058
  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";
1128
1127
  id: string;
1128
+ status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1129
1129
  taskRunId: string;
1130
1130
  }, {
1131
- status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1132
1131
  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";
1139
1138
  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";
1146
1145
  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
- contentHash: string;
1245
1244
  version: string;
1246
- shortCode: string;
1245
+ contentHash: string;
1247
1246
  imageTag: string;
1247
+ shortCode: 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
- contentHash: string;
1257
1256
  version: string;
1258
- shortCode: string;
1257
+ contentHash: string;
1259
1258
  imageTag: string;
1259
+ shortCode: string;
1260
1260
  externalBuildData?: {
1261
1261
  projectId: string;
1262
1262
  buildId: string;
@@ -1376,63 +1376,50 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1376
1376
  exportName: z.ZodString;
1377
1377
  }, "strip", z.ZodTypeAny, {
1378
1378
  id: string;
1379
- slug: string;
1380
1379
  filePath: string;
1381
1380
  exportName: string;
1381
+ slug: string;
1382
1382
  }, {
1383
1383
  id: string;
1384
- slug: string;
1385
1384
  filePath: string;
1386
1385
  exportName: string;
1386
+ slug: string;
1387
1387
  }>, "many">;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
1389
  id: string;
1390
+ version: string;
1390
1391
  tasks: {
1391
1392
  id: string;
1392
- slug: string;
1393
1393
  filePath: string;
1394
1394
  exportName: string;
1395
+ slug: string;
1395
1396
  }[];
1396
- version: string;
1397
1397
  }, {
1398
1398
  id: string;
1399
+ version: string;
1399
1400
  tasks: {
1400
1401
  id: string;
1401
- slug: string;
1402
1402
  filePath: string;
1403
1403
  exportName: string;
1404
+ slug: string;
1404
1405
  }[];
1405
- version: string;
1406
1406
  }>>;
1407
1407
  }, "strip", z.ZodTypeAny, {
1408
- status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1409
1408
  id: string;
1410
- contentHash: string;
1409
+ status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1411
1410
  version: string;
1411
+ contentHash: 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;
1420
1413
  worker?: {
1421
1414
  id: string;
1415
+ version: string;
1422
1416
  tasks: {
1423
1417
  id: string;
1424
- slug: string;
1425
1418
  filePath: string;
1426
1419
  exportName: string;
1420
+ slug: string;
1427
1421
  }[];
1428
- version: string;
1429
1422
  } | undefined;
1430
- }, {
1431
- status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1432
- id: string;
1433
- contentHash: string;
1434
- version: string;
1435
- shortCode: string;
1436
1423
  imageReference?: string | null | undefined;
1437
1424
  errorData?: {
1438
1425
  message: string;
@@ -1440,16 +1427,29 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1440
1427
  stack?: string | undefined;
1441
1428
  stderr?: string | undefined;
1442
1429
  } | 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;
1443
1436
  worker?: {
1444
1437
  id: string;
1438
+ version: string;
1445
1439
  tasks: {
1446
1440
  id: string;
1447
- slug: string;
1448
1441
  filePath: string;
1449
1442
  exportName: string;
1443
+ slug: string;
1450
1444
  }[];
1451
- version: string;
1452
1445
  } | 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
- scheduleId: string;
1518
1517
  timestamp: Date;
1518
+ scheduleId: string;
1519
1519
  upcoming: Date[];
1520
- lastTimestamp?: Date | undefined;
1521
1520
  externalId?: string | undefined;
1521
+ lastTimestamp?: Date | undefined;
1522
1522
  }, {
1523
1523
  type: "DECLARATIVE" | "IMPERATIVE";
1524
1524
  timezone: string;
1525
- scheduleId: string;
1526
1525
  timestamp: Date;
1526
+ scheduleId: string;
1527
1527
  upcoming: Date[];
1528
- lastTimestamp?: Date | undefined;
1529
1528
  externalId?: string | undefined;
1529
+ lastTimestamp?: Date | 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;
1574
1573
  task: string;
1575
1574
  deduplicationKey: string;
1576
- timezone?: string | undefined;
1575
+ cron: string;
1577
1576
  externalId?: string | undefined;
1577
+ timezone?: string | undefined;
1578
1578
  }, {
1579
- cron: string;
1580
1579
  task: string;
1581
1580
  deduplicationKey: string;
1582
- timezone?: string | undefined;
1581
+ cron: string;
1583
1582
  externalId?: string | undefined;
1583
+ timezone?: 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
- cron: string;
1628
1627
  task: string;
1629
- timezone?: string | undefined;
1628
+ cron: string;
1630
1629
  externalId?: string | undefined;
1630
+ timezone?: string | undefined;
1631
1631
  }, {
1632
- cron: string;
1633
1632
  task: string;
1634
- timezone?: string | undefined;
1633
+ cron: string;
1635
1634
  externalId?: string | undefined;
1635
+ timezone?: 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
- description: string;
1645
1644
  expression: string;
1645
+ description: string;
1646
1646
  }, {
1647
1647
  type: "CRON";
1648
- description: string;
1649
1648
  expression: string;
1649
+ description: 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
- description: string;
1666
1665
  expression: string;
1666
+ description: string;
1667
1667
  }, {
1668
1668
  type: "CRON";
1669
- description: string;
1670
1669
  expression: string;
1670
+ description: 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
- type: string;
1680
1679
  id: string;
1680
+ type: string;
1681
1681
  userName?: string | null | undefined;
1682
1682
  }, {
1683
- type: string;
1684
1683
  id: string;
1684
+ type: string;
1685
1685
  userName?: string | null | undefined;
1686
1686
  }>, "many">;
1687
1687
  }, "strip", z.ZodTypeAny, {
1688
- type: "DECLARATIVE" | "IMPERATIVE";
1689
1688
  id: string;
1690
- timezone: string;
1689
+ type: "DECLARATIVE" | "IMPERATIVE";
1691
1690
  task: string;
1692
- active: boolean;
1693
1691
  generator: {
1694
1692
  type: "CRON";
1695
- description: string;
1696
1693
  expression: string;
1694
+ description: string;
1697
1695
  };
1696
+ active: boolean;
1697
+ timezone: string;
1698
1698
  environments: {
1699
- type: string;
1700
1699
  id: string;
1700
+ type: 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
- type: "DECLARATIVE" | "IMPERATIVE";
1708
1707
  id: string;
1709
- timezone: string;
1708
+ type: "DECLARATIVE" | "IMPERATIVE";
1710
1709
  task: string;
1711
- active: boolean;
1712
1710
  generator: {
1713
1711
  type: "CRON";
1714
- description: string;
1715
1712
  expression: string;
1713
+ description: string;
1716
1714
  };
1715
+ active: boolean;
1716
+ timezone: string;
1717
1717
  environments: {
1718
- type: string;
1719
1718
  id: string;
1719
+ type: 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
- description: string;
1750
1749
  expression: string;
1750
+ description: string;
1751
1751
  }, {
1752
1752
  type: "CRON";
1753
- description: string;
1754
1753
  expression: string;
1754
+ description: 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
- type: string;
1764
1763
  id: string;
1764
+ type: string;
1765
1765
  userName?: string | null | undefined;
1766
1766
  }, {
1767
- type: string;
1768
1767
  id: string;
1768
+ type: string;
1769
1769
  userName?: string | null | undefined;
1770
1770
  }>, "many">;
1771
1771
  }, "strip", z.ZodTypeAny, {
1772
- type: "DECLARATIVE" | "IMPERATIVE";
1773
1772
  id: string;
1774
- timezone: string;
1773
+ type: "DECLARATIVE" | "IMPERATIVE";
1775
1774
  task: string;
1776
- active: boolean;
1777
1775
  generator: {
1778
1776
  type: "CRON";
1779
- description: string;
1780
1777
  expression: string;
1778
+ description: string;
1781
1779
  };
1780
+ active: boolean;
1781
+ timezone: string;
1782
1782
  environments: {
1783
- type: string;
1784
1783
  id: string;
1784
+ type: 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
- type: "DECLARATIVE" | "IMPERATIVE";
1792
1791
  id: string;
1793
- timezone: string;
1792
+ type: "DECLARATIVE" | "IMPERATIVE";
1794
1793
  task: string;
1795
- active: boolean;
1796
1794
  generator: {
1797
1795
  type: "CRON";
1798
- description: string;
1799
1796
  expression: string;
1797
+ description: string;
1800
1798
  };
1799
+ active: boolean;
1800
+ timezone: string;
1801
1801
  environments: {
1802
- type: string;
1803
1802
  id: string;
1803
+ type: 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
- type: "DECLARATIVE" | "IMPERATIVE";
1826
1825
  id: string;
1827
- timezone: string;
1826
+ type: "DECLARATIVE" | "IMPERATIVE";
1828
1827
  task: string;
1829
- active: boolean;
1830
1828
  generator: {
1831
1829
  type: "CRON";
1832
- description: string;
1833
1830
  expression: string;
1831
+ description: string;
1834
1832
  };
1833
+ active: boolean;
1834
+ timezone: string;
1835
1835
  environments: {
1836
- type: string;
1837
1836
  id: string;
1837
+ type: 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
- type: "DECLARATIVE" | "IMPERATIVE";
1852
1851
  id: string;
1853
- timezone: string;
1852
+ type: "DECLARATIVE" | "IMPERATIVE";
1854
1853
  task: string;
1855
- active: boolean;
1856
1854
  generator: {
1857
1855
  type: "CRON";
1858
- description: string;
1859
1856
  expression: string;
1857
+ description: string;
1860
1858
  };
1859
+ active: boolean;
1860
+ timezone: string;
1861
1861
  environments: {
1862
- type: string;
1863
1862
  id: string;
1863
+ type: 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
- description: string;
1925
1924
  expression: string;
1925
+ description: string;
1926
1926
  }, {
1927
1927
  type: "CRON";
1928
- description: string;
1929
1928
  expression: string;
1929
+ description: string;
1930
1930
  }>;
1931
1931
  }, "strip", z.ZodTypeAny, {
1932
1932
  id: string;
1933
1933
  generator: {
1934
1934
  type: "CRON";
1935
- description: string;
1936
1935
  expression: string;
1936
+ description: 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
- description: string;
1945
1944
  expression: string;
1945
+ description: string;
1946
1946
  };
1947
1947
  externalId?: string | undefined;
1948
1948
  deduplicationKey?: string | undefined;
@@ -1979,9 +1979,8 @@ 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";
1983
1982
  id: string;
1984
- createdAt: Date;
1983
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
1985
1984
  tags: string[];
1986
1985
  taskIdentifier: string;
1987
1986
  depth: number;
@@ -1993,23 +1992,23 @@ export declare const RelatedRunDetails: z.ZodObject<{
1993
1992
  isFailed: boolean;
1994
1993
  isCancelled: boolean;
1995
1994
  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;
2002
2000
  idempotencyKey?: string | undefined;
2003
2001
  ttl?: string | undefined;
2002
+ metadata?: Record<string, any> | undefined;
2004
2003
  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";
2011
2010
  id: string;
2012
- createdAt: Date;
2011
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2013
2012
  tags: string[];
2014
2013
  taskIdentifier: string;
2015
2014
  depth: number;
@@ -2021,15 +2020,16 @@ export declare const RelatedRunDetails: z.ZodObject<{
2021
2020
  isFailed: boolean;
2022
2021
  isCancelled: boolean;
2023
2022
  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;
2030
2028
  idempotencyKey?: string | undefined;
2031
2029
  ttl?: string | undefined;
2030
+ metadata?: Record<string, any> | undefined;
2032
2031
  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
- description: string;
2067
2066
  expression: string;
2067
+ description: string;
2068
2068
  }, {
2069
2069
  type: "CRON";
2070
- description: string;
2071
2070
  expression: string;
2071
+ description: string;
2072
2072
  }>;
2073
2073
  }, "strip", z.ZodTypeAny, {
2074
2074
  id: string;
2075
2075
  generator: {
2076
2076
  type: "CRON";
2077
- description: string;
2078
2077
  expression: string;
2078
+ description: 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
- description: string;
2087
2086
  expression: string;
2087
+ description: string;
2088
2088
  };
2089
2089
  externalId?: string | undefined;
2090
2090
  deduplicationKey?: string | undefined;
@@ -2119,9 +2119,8 @@ 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";
2123
2122
  id: string;
2124
- createdAt: Date;
2123
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2125
2124
  tags: string[];
2126
2125
  taskIdentifier: string;
2127
2126
  depth: number;
@@ -2133,23 +2132,23 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2133
2132
  isFailed: boolean;
2134
2133
  isCancelled: boolean;
2135
2134
  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;
2142
2140
  idempotencyKey?: string | undefined;
2143
2141
  ttl?: string | undefined;
2142
+ metadata?: Record<string, any> | undefined;
2144
2143
  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";
2151
2150
  id: string;
2152
- createdAt: Date;
2151
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2153
2152
  tags: string[];
2154
2153
  taskIdentifier: string;
2155
2154
  depth: number;
@@ -2161,15 +2160,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2161
2160
  isFailed: boolean;
2162
2161
  isCancelled: boolean;
2163
2162
  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;
2170
2168
  idempotencyKey?: string | undefined;
2171
2169
  ttl?: string | undefined;
2170
+ metadata?: Record<string, any> | undefined;
2172
2171
  batchId?: string | undefined;
2172
+ version?: string | undefined;
2173
2173
  startedAt?: Date | undefined;
2174
2174
  finishedAt?: Date | undefined;
2175
2175
  delayedUntil?: Date | undefined;
@@ -2204,9 +2204,8 @@ 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";
2208
2207
  id: string;
2209
- createdAt: Date;
2208
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2210
2209
  tags: string[];
2211
2210
  taskIdentifier: string;
2212
2211
  depth: number;
@@ -2218,23 +2217,23 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2218
2217
  isFailed: boolean;
2219
2218
  isCancelled: boolean;
2220
2219
  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;
2227
2225
  idempotencyKey?: string | undefined;
2228
2226
  ttl?: string | undefined;
2227
+ metadata?: Record<string, any> | undefined;
2229
2228
  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";
2236
2235
  id: string;
2237
- createdAt: Date;
2236
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2238
2237
  tags: string[];
2239
2238
  taskIdentifier: string;
2240
2239
  depth: number;
@@ -2246,15 +2245,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2246
2245
  isFailed: boolean;
2247
2246
  isCancelled: boolean;
2248
2247
  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;
2255
2253
  idempotencyKey?: string | undefined;
2256
2254
  ttl?: string | undefined;
2255
+ metadata?: Record<string, any> | undefined;
2257
2256
  batchId?: string | undefined;
2257
+ version?: string | undefined;
2258
2258
  startedAt?: Date | undefined;
2259
2259
  finishedAt?: Date | undefined;
2260
2260
  delayedUntil?: Date | undefined;
@@ -2289,9 +2289,8 @@ 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";
2293
2292
  id: string;
2294
- createdAt: Date;
2293
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2295
2294
  tags: string[];
2296
2295
  taskIdentifier: string;
2297
2296
  depth: number;
@@ -2303,23 +2302,23 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2303
2302
  isFailed: boolean;
2304
2303
  isCancelled: boolean;
2305
2304
  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;
2312
2310
  idempotencyKey?: string | undefined;
2313
2311
  ttl?: string | undefined;
2312
+ metadata?: Record<string, any> | undefined;
2314
2313
  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";
2321
2320
  id: string;
2322
- createdAt: Date;
2321
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2323
2322
  tags: string[];
2324
2323
  taskIdentifier: string;
2325
2324
  depth: number;
@@ -2331,15 +2330,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2331
2330
  isFailed: boolean;
2332
2331
  isCancelled: boolean;
2333
2332
  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;
2340
2338
  idempotencyKey?: string | undefined;
2341
2339
  ttl?: string | undefined;
2340
+ metadata?: Record<string, any> | undefined;
2342
2341
  batchId?: string | undefined;
2342
+ version?: string | undefined;
2343
2343
  startedAt?: Date | undefined;
2344
2344
  finishedAt?: Date | undefined;
2345
2345
  delayedUntil?: Date | undefined;
@@ -2347,9 +2347,8 @@ 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";
2351
2350
  id: string;
2352
- createdAt: Date;
2351
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2353
2352
  tags: string[];
2354
2353
  taskIdentifier: string;
2355
2354
  depth: number;
@@ -2361,24 +2360,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2361
2360
  isFailed: boolean;
2362
2361
  isCancelled: boolean;
2363
2362
  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;
2370
2368
  idempotencyKey?: string | undefined;
2371
2369
  ttl?: string | undefined;
2370
+ metadata?: Record<string, any> | undefined;
2372
2371
  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";
2380
2379
  id: string;
2381
- createdAt: Date;
2380
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2382
2381
  tags: string[];
2383
2382
  taskIdentifier: string;
2384
2383
  depth: number;
@@ -2390,24 +2389,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2390
2389
  isFailed: boolean;
2391
2390
  isCancelled: boolean;
2392
2391
  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;
2399
2397
  idempotencyKey?: string | undefined;
2400
2398
  ttl?: string | undefined;
2399
+ metadata?: Record<string, any> | undefined;
2401
2400
  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";
2409
2408
  id: string;
2410
- createdAt: Date;
2409
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2411
2410
  tags: string[];
2412
2411
  taskIdentifier: string;
2413
2412
  depth: number;
@@ -2419,15 +2418,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2419
2418
  isFailed: boolean;
2420
2419
  isCancelled: boolean;
2421
2420
  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;
2428
2426
  idempotencyKey?: string | undefined;
2429
2427
  ttl?: string | undefined;
2428
+ metadata?: Record<string, any> | undefined;
2430
2429
  batchId?: string | undefined;
2430
+ version?: string | undefined;
2431
2431
  startedAt?: Date | undefined;
2432
2432
  finishedAt?: Date | undefined;
2433
2433
  delayedUntil?: Date | undefined;
@@ -2435,9 +2435,8 @@ 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";
2439
2438
  id: string;
2440
- createdAt: Date;
2439
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2441
2440
  tags: string[];
2442
2441
  taskIdentifier: string;
2443
2442
  depth: number;
@@ -2449,24 +2448,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2449
2448
  isFailed: boolean;
2450
2449
  isCancelled: boolean;
2451
2450
  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;
2458
2456
  idempotencyKey?: string | undefined;
2459
2457
  ttl?: string | undefined;
2458
+ metadata?: Record<string, any> | undefined;
2460
2459
  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";
2468
2467
  id: string;
2469
- createdAt: Date;
2468
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2470
2469
  tags: string[];
2471
2470
  taskIdentifier: string;
2472
2471
  depth: number;
@@ -2478,24 +2477,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2478
2477
  isFailed: boolean;
2479
2478
  isCancelled: boolean;
2480
2479
  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;
2487
2485
  idempotencyKey?: string | undefined;
2488
2486
  ttl?: string | undefined;
2487
+ metadata?: Record<string, any> | undefined;
2489
2488
  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";
2497
2496
  id: string;
2498
- createdAt: Date;
2497
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2499
2498
  tags: string[];
2500
2499
  taskIdentifier: string;
2501
2500
  depth: number;
@@ -2507,15 +2506,16 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2507
2506
  isFailed: boolean;
2508
2507
  isCancelled: boolean;
2509
2508
  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;
2516
2514
  idempotencyKey?: string | undefined;
2517
2515
  ttl?: string | undefined;
2516
+ metadata?: Record<string, any> | undefined;
2518
2517
  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";
2547
2546
  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";
2559
2558
  id: string;
2559
+ status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2560
2560
  createdAt: Date;
2561
2561
  updatedAt: Date;
2562
2562
  error?: {
@@ -2596,29 +2596,14 @@ 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";
2600
2599
  id: string;
2601
- createdAt: Date;
2600
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2602
2601
  tags: string[];
2603
2602
  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;
2617
2603
  relatedRuns: {
2618
2604
  root?: {
2619
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2620
2605
  id: string;
2621
- createdAt: Date;
2606
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2622
2607
  tags: string[];
2623
2608
  taskIdentifier: string;
2624
2609
  depth: number;
@@ -2630,24 +2615,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2630
2615
  isFailed: boolean;
2631
2616
  isCancelled: boolean;
2632
2617
  isTest: boolean;
2618
+ createdAt: Date;
2633
2619
  updatedAt: Date;
2634
2620
  costInCents: number;
2635
2621
  baseCostInCents: number;
2636
2622
  durationMs: number;
2637
- metadata?: Record<string, any> | undefined;
2638
- version?: string | undefined;
2639
2623
  idempotencyKey?: string | undefined;
2640
2624
  ttl?: string | undefined;
2625
+ metadata?: Record<string, any> | undefined;
2641
2626
  batchId?: string | undefined;
2627
+ version?: string | undefined;
2642
2628
  startedAt?: Date | undefined;
2643
2629
  finishedAt?: Date | undefined;
2644
2630
  delayedUntil?: Date | undefined;
2645
2631
  expiredAt?: Date | undefined;
2646
2632
  } | undefined;
2647
2633
  parent?: {
2648
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2649
2634
  id: string;
2650
- createdAt: Date;
2635
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2651
2636
  tags: string[];
2652
2637
  taskIdentifier: string;
2653
2638
  depth: number;
@@ -2659,24 +2644,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2659
2644
  isFailed: boolean;
2660
2645
  isCancelled: boolean;
2661
2646
  isTest: boolean;
2647
+ createdAt: Date;
2662
2648
  updatedAt: Date;
2663
2649
  costInCents: number;
2664
2650
  baseCostInCents: number;
2665
2651
  durationMs: number;
2666
- metadata?: Record<string, any> | undefined;
2667
- version?: string | undefined;
2668
2652
  idempotencyKey?: string | undefined;
2669
2653
  ttl?: string | undefined;
2654
+ metadata?: Record<string, any> | undefined;
2670
2655
  batchId?: string | undefined;
2656
+ version?: string | undefined;
2671
2657
  startedAt?: Date | undefined;
2672
2658
  finishedAt?: Date | undefined;
2673
2659
  delayedUntil?: Date | undefined;
2674
2660
  expiredAt?: Date | undefined;
2675
2661
  } | undefined;
2676
2662
  children?: {
2677
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2678
2663
  id: string;
2679
- createdAt: Date;
2664
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2680
2665
  tags: string[];
2681
2666
  taskIdentifier: string;
2682
2667
  depth: number;
@@ -2688,24 +2673,39 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2688
2673
  isFailed: boolean;
2689
2674
  isCancelled: boolean;
2690
2675
  isTest: boolean;
2676
+ createdAt: Date;
2691
2677
  updatedAt: Date;
2692
2678
  costInCents: number;
2693
2679
  baseCostInCents: number;
2694
2680
  durationMs: number;
2695
- metadata?: Record<string, any> | undefined;
2696
- version?: string | undefined;
2697
2681
  idempotencyKey?: string | undefined;
2698
2682
  ttl?: string | undefined;
2683
+ metadata?: Record<string, any> | undefined;
2699
2684
  batchId?: string | undefined;
2685
+ version?: string | undefined;
2700
2686
  startedAt?: Date | undefined;
2701
2687
  finishedAt?: Date | undefined;
2702
2688
  delayedUntil?: Date | undefined;
2703
2689
  expiredAt?: Date | undefined;
2704
2690
  }[] | undefined;
2705
2691
  };
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";
2708
2707
  id: string;
2708
+ status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2709
2709
  createdAt: Date;
2710
2710
  updatedAt: Date;
2711
2711
  error?: {
@@ -2717,58 +2717,43 @@ 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;
2720
2732
  schedule?: {
2721
2733
  id: string;
2722
2734
  generator: {
2723
2735
  type: "CRON";
2724
- description: string;
2725
2736
  expression: string;
2737
+ description: string;
2726
2738
  };
2727
2739
  externalId?: string | undefined;
2728
2740
  deduplicationKey?: string | undefined;
2729
2741
  } | undefined;
2730
- metadata?: Record<string, any> | undefined;
2731
- version?: string | undefined;
2732
- payload?: any;
2733
- idempotencyKey?: string | undefined;
2734
- ttl?: string | undefined;
2735
2742
  batchId?: string | undefined;
2736
- error?: {
2737
- message: string;
2738
- name?: string | undefined;
2739
- stackTrace?: string | undefined;
2740
- } | undefined;
2743
+ version?: string | undefined;
2741
2744
  startedAt?: Date | undefined;
2742
2745
  finishedAt?: Date | undefined;
2743
2746
  delayedUntil?: Date | undefined;
2744
2747
  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";
2750
2749
  id: string;
2751
- createdAt: Date;
2750
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2752
2751
  tags: string[];
2753
2752
  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;
2767
2753
  relatedRuns: {
2768
2754
  root?: {
2769
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2770
2755
  id: string;
2771
- createdAt: Date;
2756
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2772
2757
  tags: string[];
2773
2758
  taskIdentifier: string;
2774
2759
  depth: number;
@@ -2780,24 +2765,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2780
2765
  isFailed: boolean;
2781
2766
  isCancelled: boolean;
2782
2767
  isTest: boolean;
2768
+ createdAt: Date;
2783
2769
  updatedAt: Date;
2784
2770
  costInCents: number;
2785
2771
  baseCostInCents: number;
2786
2772
  durationMs: number;
2787
- metadata?: Record<string, any> | undefined;
2788
- version?: string | undefined;
2789
2773
  idempotencyKey?: string | undefined;
2790
2774
  ttl?: string | undefined;
2775
+ metadata?: Record<string, any> | undefined;
2791
2776
  batchId?: string | undefined;
2777
+ version?: string | undefined;
2792
2778
  startedAt?: Date | undefined;
2793
2779
  finishedAt?: Date | undefined;
2794
2780
  delayedUntil?: Date | undefined;
2795
2781
  expiredAt?: Date | undefined;
2796
2782
  } | undefined;
2797
2783
  parent?: {
2798
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2799
2784
  id: string;
2800
- createdAt: Date;
2785
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2801
2786
  tags: string[];
2802
2787
  taskIdentifier: string;
2803
2788
  depth: number;
@@ -2809,24 +2794,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2809
2794
  isFailed: boolean;
2810
2795
  isCancelled: boolean;
2811
2796
  isTest: boolean;
2797
+ createdAt: Date;
2812
2798
  updatedAt: Date;
2813
2799
  costInCents: number;
2814
2800
  baseCostInCents: number;
2815
2801
  durationMs: number;
2816
- metadata?: Record<string, any> | undefined;
2817
- version?: string | undefined;
2818
2802
  idempotencyKey?: string | undefined;
2819
2803
  ttl?: string | undefined;
2804
+ metadata?: Record<string, any> | undefined;
2820
2805
  batchId?: string | undefined;
2806
+ version?: string | undefined;
2821
2807
  startedAt?: Date | undefined;
2822
2808
  finishedAt?: Date | undefined;
2823
2809
  delayedUntil?: Date | undefined;
2824
2810
  expiredAt?: Date | undefined;
2825
2811
  } | undefined;
2826
2812
  children?: {
2827
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2828
2813
  id: string;
2829
- createdAt: Date;
2814
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2830
2815
  tags: string[];
2831
2816
  taskIdentifier: string;
2832
2817
  depth: number;
@@ -2838,24 +2823,39 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2838
2823
  isFailed: boolean;
2839
2824
  isCancelled: boolean;
2840
2825
  isTest: boolean;
2826
+ createdAt: Date;
2841
2827
  updatedAt: Date;
2842
2828
  costInCents: number;
2843
2829
  baseCostInCents: number;
2844
2830
  durationMs: number;
2845
- metadata?: Record<string, any> | undefined;
2846
- version?: string | undefined;
2847
2831
  idempotencyKey?: string | undefined;
2848
2832
  ttl?: string | undefined;
2833
+ metadata?: Record<string, any> | undefined;
2849
2834
  batchId?: string | undefined;
2835
+ version?: string | undefined;
2850
2836
  startedAt?: Date | undefined;
2851
2837
  finishedAt?: Date | undefined;
2852
2838
  delayedUntil?: Date | undefined;
2853
2839
  expiredAt?: Date | undefined;
2854
2840
  }[] | undefined;
2855
2841
  };
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";
2858
2857
  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
- schedule?: {
2870
- id: string;
2871
- generator: {
2872
- type: "CRON";
2873
- description: string;
2874
- expression: string;
2875
- };
2876
- externalId?: string | undefined;
2877
- deduplicationKey?: string | undefined;
2878
- } | undefined;
2879
- metadata?: Record<string, any> | undefined;
2880
- version?: string | undefined;
2881
2869
  payload?: any;
2882
2870
  idempotencyKey?: string | undefined;
2883
2871
  ttl?: string | undefined;
2884
- batchId?: string | undefined;
2872
+ metadata?: Record<string, any> | undefined;
2873
+ payloadPresignedUrl?: string | undefined;
2874
+ output?: any;
2875
+ outputPresignedUrl?: string | undefined;
2885
2876
  error?: {
2886
2877
  message: string;
2887
2878
  name?: string | undefined;
2888
2879
  stackTrace?: string | undefined;
2889
2880
  } | undefined;
2881
+ schedule?: {
2882
+ id: string;
2883
+ generator: {
2884
+ type: "CRON";
2885
+ expression: string;
2886
+ description: string;
2887
+ };
2888
+ externalId?: string | undefined;
2889
+ deduplicationKey?: string | undefined;
2890
+ } | undefined;
2891
+ batchId?: string | undefined;
2892
+ version?: string | undefined;
2890
2893
  startedAt?: Date | undefined;
2891
2894
  finishedAt?: Date | undefined;
2892
2895
  delayedUntil?: Date | undefined;
2893
2896
  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,9 +2936,8 @@ 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";
2940
2939
  id: string;
2941
- createdAt: Date;
2940
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2942
2941
  tags: string[];
2943
2942
  taskIdentifier: string;
2944
2943
  isQueued: boolean;
@@ -2948,6 +2947,7 @@ export declare const ListRunResponseItem: z.ZodObject<{
2948
2947
  isFailed: boolean;
2949
2948
  isCancelled: boolean;
2950
2949
  isTest: boolean;
2950
+ createdAt: Date;
2951
2951
  updatedAt: Date;
2952
2952
  costInCents: number;
2953
2953
  baseCostInCents: number;
@@ -2957,18 +2957,17 @@ export declare const ListRunResponseItem: z.ZodObject<{
2957
2957
  name: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
- metadata?: Record<string, any> | undefined;
2961
- version?: string | undefined;
2962
2960
  idempotencyKey?: string | undefined;
2963
2961
  ttl?: string | undefined;
2962
+ metadata?: Record<string, any> | undefined;
2963
+ version?: 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";
2970
2969
  id: string;
2971
- createdAt: Date;
2970
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2972
2971
  tags: string[];
2973
2972
  taskIdentifier: string;
2974
2973
  isQueued: boolean;
@@ -2978,6 +2977,7 @@ export declare const ListRunResponseItem: z.ZodObject<{
2978
2977
  isFailed: boolean;
2979
2978
  isCancelled: boolean;
2980
2979
  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
- metadata?: Record<string, any> | undefined;
2991
- version?: string | undefined;
2992
2990
  idempotencyKey?: string | undefined;
2993
2991
  ttl?: string | undefined;
2992
+ metadata?: Record<string, any> | undefined;
2993
+ version?: string | undefined;
2994
2994
  startedAt?: Date | undefined;
2995
2995
  finishedAt?: Date | undefined;
2996
2996
  delayedUntil?: Date | undefined;
@@ -3037,9 +3037,8 @@ 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";
3041
3040
  id: string;
3042
- createdAt: Date;
3041
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3043
3042
  tags: string[];
3044
3043
  taskIdentifier: string;
3045
3044
  isQueued: boolean;
@@ -3049,6 +3048,7 @@ export declare const ListRunResponse: z.ZodObject<{
3049
3048
  isFailed: boolean;
3050
3049
  isCancelled: boolean;
3051
3050
  isTest: boolean;
3051
+ createdAt: Date;
3052
3052
  updatedAt: Date;
3053
3053
  costInCents: number;
3054
3054
  baseCostInCents: number;
@@ -3058,18 +3058,17 @@ export declare const ListRunResponse: z.ZodObject<{
3058
3058
  name: string;
3059
3059
  user?: string | undefined;
3060
3060
  };
3061
- metadata?: Record<string, any> | undefined;
3062
- version?: string | undefined;
3063
3061
  idempotencyKey?: string | undefined;
3064
3062
  ttl?: string | undefined;
3063
+ metadata?: Record<string, any> | undefined;
3064
+ version?: 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";
3071
3070
  id: string;
3072
- createdAt: Date;
3071
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3073
3072
  tags: string[];
3074
3073
  taskIdentifier: string;
3075
3074
  isQueued: boolean;
@@ -3079,6 +3078,7 @@ export declare const ListRunResponse: z.ZodObject<{
3079
3078
  isFailed: boolean;
3080
3079
  isCancelled: boolean;
3081
3080
  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
- metadata?: Record<string, any> | undefined;
3092
- version?: string | undefined;
3093
3091
  idempotencyKey?: string | undefined;
3094
3092
  ttl?: string | undefined;
3093
+ metadata?: Record<string, any> | undefined;
3094
+ version?: string | undefined;
3095
3095
  startedAt?: Date | undefined;
3096
3096
  finishedAt?: Date | undefined;
3097
3097
  delayedUntil?: Date | undefined;
@@ -3109,9 +3109,8 @@ 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";
3113
3112
  id: string;
3114
- createdAt: Date;
3113
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3115
3114
  tags: string[];
3116
3115
  taskIdentifier: string;
3117
3116
  isQueued: boolean;
@@ -3121,6 +3120,7 @@ export declare const ListRunResponse: z.ZodObject<{
3121
3120
  isFailed: boolean;
3122
3121
  isCancelled: boolean;
3123
3122
  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
- metadata?: Record<string, any> | undefined;
3134
- version?: string | undefined;
3135
3133
  idempotencyKey?: string | undefined;
3136
3134
  ttl?: string | undefined;
3135
+ metadata?: Record<string, any> | undefined;
3136
+ version?: string | undefined;
3137
3137
  startedAt?: Date | undefined;
3138
3138
  finishedAt?: Date | undefined;
3139
3139
  delayedUntil?: Date | undefined;
@@ -3145,9 +3145,8 @@ 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";
3149
3148
  id: string;
3150
- createdAt: Date;
3149
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3151
3150
  tags: string[];
3152
3151
  taskIdentifier: string;
3153
3152
  isQueued: boolean;
@@ -3157,6 +3156,7 @@ export declare const ListRunResponse: z.ZodObject<{
3157
3156
  isFailed: boolean;
3158
3157
  isCancelled: boolean;
3159
3158
  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
- metadata?: Record<string, any> | undefined;
3170
- version?: string | undefined;
3171
3169
  idempotencyKey?: string | undefined;
3172
3170
  ttl?: string | undefined;
3171
+ metadata?: Record<string, any> | undefined;
3172
+ version?: string | undefined;
3173
3173
  startedAt?: Date | undefined;
3174
3174
  finishedAt?: Date | undefined;
3175
3175
  delayedUntil?: Date | undefined;
@@ -3248,162 +3248,18 @@ 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>;
3403
3251
  export declare const UpdateMetadataRequestBody: z.ZodObject<{
3404
- metadata: z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>;
3405
- metadataType: z.ZodOptional<z.ZodString>;
3406
- parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3252
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
3253
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3254
+ type: z.ZodLiteral<"update">;
3255
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3256
+ }, "strip", z.ZodTypeAny, {
3257
+ type: "update";
3258
+ value: Record<string, unknown>;
3259
+ }, {
3260
+ type: "update";
3261
+ value: Record<string, unknown>;
3262
+ }>, z.ZodObject<{
3407
3263
  type: z.ZodLiteral<"set">;
3408
3264
  key: z.ZodString;
3409
3265
  value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
@@ -3460,20 +3316,17 @@ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3460
3316
  type: "increment";
3461
3317
  value: number;
3462
3318
  key: string;
3463
- }>, z.ZodObject<{
3464
- type: z.ZodLiteral<"decrement">;
3465
- key: z.ZodString;
3466
- value: z.ZodNumber;
3319
+ }>]>, "many">>;
3320
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3321
+ type: z.ZodLiteral<"update">;
3322
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3467
3323
  }, "strip", z.ZodTypeAny, {
3468
- type: "decrement";
3469
- value: number;
3470
- key: string;
3324
+ type: "update";
3325
+ value: Record<string, unknown>;
3471
3326
  }, {
3472
- type: "decrement";
3473
- value: number;
3474
- key: string;
3475
- }>]>, "many">>;
3476
- rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3327
+ type: "update";
3328
+ value: Record<string, unknown>;
3329
+ }>, z.ZodObject<{
3477
3330
  type: z.ZodLiteral<"set">;
3478
3331
  key: z.ZodString;
3479
3332
  value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
@@ -3530,23 +3383,80 @@ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3530
3383
  type: "increment";
3531
3384
  value: number;
3532
3385
  key: string;
3386
+ }>]>, "many">>;
3387
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3388
+ type: z.ZodLiteral<"update">;
3389
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3390
+ }, "strip", z.ZodTypeAny, {
3391
+ type: "update";
3392
+ value: Record<string, unknown>;
3393
+ }, {
3394
+ type: "update";
3395
+ value: Record<string, unknown>;
3396
+ }>, z.ZodObject<{
3397
+ type: z.ZodLiteral<"set">;
3398
+ key: z.ZodString;
3399
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3400
+ }, "strip", z.ZodTypeAny, {
3401
+ type: "set";
3402
+ value: import("../../schemas/json.js").DeserializedJson;
3403
+ key: string;
3404
+ }, {
3405
+ type: "set";
3406
+ value: import("../../schemas/json.js").DeserializedJson;
3407
+ key: string;
3408
+ }>, z.ZodObject<{
3409
+ type: z.ZodLiteral<"delete">;
3410
+ key: z.ZodString;
3411
+ }, "strip", z.ZodTypeAny, {
3412
+ type: "delete";
3413
+ key: string;
3414
+ }, {
3415
+ type: "delete";
3416
+ key: string;
3417
+ }>, z.ZodObject<{
3418
+ type: z.ZodLiteral<"append">;
3419
+ key: z.ZodString;
3420
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3421
+ }, "strip", z.ZodTypeAny, {
3422
+ type: "append";
3423
+ value: import("../../schemas/json.js").DeserializedJson;
3424
+ key: string;
3425
+ }, {
3426
+ type: "append";
3427
+ value: import("../../schemas/json.js").DeserializedJson;
3428
+ key: string;
3429
+ }>, z.ZodObject<{
3430
+ type: z.ZodLiteral<"remove">;
3431
+ key: z.ZodString;
3432
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3433
+ }, "strip", z.ZodTypeAny, {
3434
+ type: "remove";
3435
+ value: import("../../schemas/json.js").DeserializedJson;
3436
+ key: string;
3437
+ }, {
3438
+ type: "remove";
3439
+ value: import("../../schemas/json.js").DeserializedJson;
3440
+ key: string;
3533
3441
  }>, z.ZodObject<{
3534
- type: z.ZodLiteral<"decrement">;
3442
+ type: z.ZodLiteral<"increment">;
3535
3443
  key: z.ZodString;
3536
3444
  value: z.ZodNumber;
3537
3445
  }, "strip", z.ZodTypeAny, {
3538
- type: "decrement";
3446
+ type: "increment";
3539
3447
  value: number;
3540
3448
  key: string;
3541
3449
  }, {
3542
- type: "decrement";
3450
+ type: "increment";
3543
3451
  value: number;
3544
3452
  key: string;
3545
3453
  }>]>, "many">>;
3546
3454
  }, "strip", z.ZodTypeAny, {
3547
- metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3548
- metadataType?: string | undefined;
3549
- parentOperations?: ({
3455
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3456
+ operations?: ({
3457
+ type: "update";
3458
+ value: Record<string, unknown>;
3459
+ } | {
3550
3460
  type: "set";
3551
3461
  value: import("../../schemas/json.js").DeserializedJson;
3552
3462
  key: string;
@@ -3565,12 +3475,34 @@ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3565
3475
  type: "increment";
3566
3476
  value: number;
3567
3477
  key: string;
3478
+ })[] | undefined;
3479
+ parentOperations?: ({
3480
+ type: "update";
3481
+ value: Record<string, unknown>;
3482
+ } | {
3483
+ type: "set";
3484
+ value: import("../../schemas/json.js").DeserializedJson;
3485
+ key: string;
3486
+ } | {
3487
+ type: "delete";
3488
+ key: string;
3489
+ } | {
3490
+ type: "append";
3491
+ value: import("../../schemas/json.js").DeserializedJson;
3492
+ key: string;
3493
+ } | {
3494
+ type: "remove";
3495
+ value: import("../../schemas/json.js").DeserializedJson;
3496
+ key: string;
3568
3497
  } | {
3569
- type: "decrement";
3498
+ type: "increment";
3570
3499
  value: number;
3571
3500
  key: string;
3572
3501
  })[] | undefined;
3573
3502
  rootOperations?: ({
3503
+ type: "update";
3504
+ value: Record<string, unknown>;
3505
+ } | {
3574
3506
  type: "set";
3575
3507
  value: import("../../schemas/json.js").DeserializedJson;
3576
3508
  key: string;
@@ -3589,15 +3521,13 @@ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3589
3521
  type: "increment";
3590
3522
  value: number;
3591
3523
  key: string;
3592
- } | {
3593
- type: "decrement";
3594
- value: number;
3595
- key: string;
3596
3524
  })[] | undefined;
3597
3525
  }, {
3598
- metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3599
- metadataType?: string | undefined;
3600
- parentOperations?: ({
3526
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3527
+ operations?: ({
3528
+ type: "update";
3529
+ value: Record<string, unknown>;
3530
+ } | {
3601
3531
  type: "set";
3602
3532
  value: import("../../schemas/json.js").DeserializedJson;
3603
3533
  key: string;
@@ -3616,12 +3546,34 @@ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3616
3546
  type: "increment";
3617
3547
  value: number;
3618
3548
  key: string;
3549
+ })[] | undefined;
3550
+ parentOperations?: ({
3551
+ type: "update";
3552
+ value: Record<string, unknown>;
3553
+ } | {
3554
+ type: "set";
3555
+ value: import("../../schemas/json.js").DeserializedJson;
3556
+ key: string;
3557
+ } | {
3558
+ type: "delete";
3559
+ key: string;
3560
+ } | {
3561
+ type: "append";
3562
+ value: import("../../schemas/json.js").DeserializedJson;
3563
+ key: string;
3564
+ } | {
3565
+ type: "remove";
3566
+ value: import("../../schemas/json.js").DeserializedJson;
3567
+ key: string;
3619
3568
  } | {
3620
- type: "decrement";
3569
+ type: "increment";
3621
3570
  value: number;
3622
3571
  key: string;
3623
3572
  })[] | undefined;
3624
3573
  rootOperations?: ({
3574
+ type: "update";
3575
+ value: Record<string, unknown>;
3576
+ } | {
3625
3577
  type: "set";
3626
3578
  value: import("../../schemas/json.js").DeserializedJson;
3627
3579
  key: string;
@@ -3640,10 +3592,6 @@ export declare const UpdateMetadataRequestBody: z.ZodObject<{
3640
3592
  type: "increment";
3641
3593
  value: number;
3642
3594
  key: string;
3643
- } | {
3644
- type: "decrement";
3645
- value: number;
3646
- key: string;
3647
3595
  })[] | undefined;
3648
3596
  }>;
3649
3597
  export type UpdateMetadataRequestBody = z.infer<typeof UpdateMetadataRequestBody>;
@@ -3732,23 +3680,24 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3732
3680
  }>]>>>;
3733
3681
  }, "strip", z.ZodTypeAny, {
3734
3682
  number: number;
3735
- status: string;
3736
3683
  id: string;
3737
- createdAt: Date;
3684
+ status: string;
3738
3685
  taskIdentifier: string;
3739
3686
  isTest: boolean;
3687
+ createdAt: Date;
3740
3688
  updatedAt: Date;
3741
3689
  costInCents: number;
3742
3690
  baseCostInCents: number;
3743
3691
  friendlyId: string;
3744
3692
  usageDurationMs: number;
3745
3693
  runTags: string[] | null;
3746
- metadata?: string | null | undefined;
3747
3694
  payload?: string | null | undefined;
3748
3695
  idempotencyKey?: string | null | undefined;
3749
3696
  payloadType?: string | null | undefined;
3750
3697
  ttl?: string | null | undefined;
3698
+ metadata?: string | null | undefined;
3751
3699
  metadataType?: string | null | undefined;
3700
+ output?: string | null | undefined;
3752
3701
  error?: {
3753
3702
  message: string;
3754
3703
  type: "BUILT_IN_ERROR";
@@ -3768,29 +3717,29 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3768
3717
  } | null | undefined;
3769
3718
  startedAt?: Date | null | undefined;
3770
3719
  expiredAt?: Date | null | undefined;
3771
- output?: string | null | undefined;
3772
3720
  completedAt?: Date | null | undefined;
3721
+ outputType?: string | null | undefined;
3773
3722
  delayUntil?: Date | null | undefined;
3774
3723
  queuedAt?: Date | null | undefined;
3775
- outputType?: string | null | undefined;
3776
3724
  }, {
3777
3725
  number: number;
3778
- status: string;
3779
3726
  id: string;
3780
- createdAt: Date;
3727
+ status: string;
3781
3728
  taskIdentifier: string;
3782
3729
  isTest: boolean;
3730
+ createdAt: Date;
3783
3731
  updatedAt: Date;
3784
3732
  costInCents: number;
3785
3733
  baseCostInCents: number;
3786
3734
  friendlyId: string;
3787
3735
  usageDurationMs: number;
3788
- metadata?: string | null | undefined;
3789
3736
  payload?: string | null | undefined;
3790
3737
  idempotencyKey?: string | null | undefined;
3791
3738
  payloadType?: string | null | undefined;
3792
3739
  ttl?: string | null | undefined;
3740
+ metadata?: string | null | undefined;
3793
3741
  metadataType?: string | null | undefined;
3742
+ output?: string | null | undefined;
3794
3743
  error?: {
3795
3744
  message: string;
3796
3745
  type: "BUILT_IN_ERROR";
@@ -3810,11 +3759,10 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3810
3759
  } | null | undefined;
3811
3760
  startedAt?: Date | null | undefined;
3812
3761
  expiredAt?: Date | null | undefined;
3813
- output?: string | null | undefined;
3814
3762
  completedAt?: Date | null | undefined;
3763
+ outputType?: string | null | undefined;
3815
3764
  delayUntil?: Date | null | undefined;
3816
3765
  queuedAt?: Date | null | undefined;
3817
- outputType?: string | null | undefined;
3818
3766
  runTags?: string[] | null | undefined;
3819
3767
  }>;
3820
3768
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
@@ -3828,15 +3776,15 @@ export declare const RetrieveBatchResponse: z.ZodObject<{
3828
3776
  updatedAt: z.ZodDate;
3829
3777
  runCount: z.ZodNumber;
3830
3778
  }, "strip", z.ZodTypeAny, {
3831
- status: "PENDING" | "COMPLETED";
3832
3779
  id: string;
3780
+ status: "COMPLETED" | "PENDING";
3833
3781
  createdAt: Date;
3834
3782
  updatedAt: Date;
3835
3783
  runCount: number;
3836
3784
  idempotencyKey?: string | undefined;
3837
3785
  }, {
3838
- status: "PENDING" | "COMPLETED";
3839
3786
  id: string;
3787
+ status: "COMPLETED" | "PENDING";
3840
3788
  createdAt: Date;
3841
3789
  updatedAt: Date;
3842
3790
  runCount: number;
@@ -3851,15 +3799,15 @@ export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{
3851
3799
  value: z.ZodString;
3852
3800
  createdAt: z.ZodDate;
3853
3801
  }, "strip", z.ZodTypeAny, {
3854
- value: string;
3855
3802
  id: string;
3803
+ value: string;
3856
3804
  createdAt: Date;
3857
3805
  key: string;
3858
3806
  runId: string;
3859
3807
  sequence: number;
3860
3808
  }, {
3861
- value: string;
3862
3809
  id: string;
3810
+ value: string;
3863
3811
  createdAt: Date;
3864
3812
  key: string;
3865
3813
  runId: string;