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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/index.d.ts +161 -150
  3. package/dist/commonjs/v3/apiClient/index.js +20 -1
  4. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  5. package/dist/commonjs/v3/apiClient/runStream.d.ts +12 -3
  6. package/dist/commonjs/v3/apiClient/runStream.js +155 -60
  7. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  8. package/dist/commonjs/v3/apiClient/stream.d.ts +10 -1
  9. package/dist/commonjs/v3/apiClient/stream.js +181 -25
  10. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  11. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  12. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  13. package/dist/commonjs/v3/run-metadata-api.js +16 -0
  14. package/dist/commonjs/v3/run-metadata-api.js.map +1 -1
  15. package/dist/commonjs/v3/runMetadata/index.d.ts +13 -8
  16. package/dist/commonjs/v3/runMetadata/index.js +32 -13
  17. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  18. package/dist/commonjs/v3/runMetadata/manager.d.ts +25 -11
  19. package/dist/commonjs/v3/runMetadata/manager.js +180 -132
  20. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  21. package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +9 -7
  22. package/dist/commonjs/v3/runMetadata/metadataStream.js +44 -40
  23. package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -1
  24. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +13 -8
  25. package/dist/commonjs/v3/runMetadata/noopManager.js +44 -6
  26. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  27. package/dist/commonjs/v3/runMetadata/types.d.ts +16 -9
  28. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  29. package/dist/commonjs/v3/runtime/devRuntimeManager.js +9 -0
  30. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  31. package/dist/commonjs/v3/schemas/api.d.ts +1166 -747
  32. package/dist/commonjs/v3/schemas/api.js +26 -13
  33. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  34. package/dist/commonjs/v3/schemas/build.d.ts +262 -262
  35. package/dist/commonjs/v3/schemas/common.d.ts +3733 -12
  36. package/dist/commonjs/v3/schemas/common.js +45 -1
  37. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  38. package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
  39. package/dist/commonjs/v3/schemas/messages.d.ts +21871 -3889
  40. package/dist/commonjs/v3/schemas/resources.d.ts +88 -88
  41. package/dist/commonjs/v3/schemas/schemas.d.ts +485 -485
  42. package/dist/commonjs/v3/types/tasks.d.ts +25 -1
  43. package/dist/commonjs/v3/utils/ioSerialization.d.ts +4 -1
  44. package/dist/commonjs/v3/utils/ioSerialization.js +14 -2
  45. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  46. package/dist/commonjs/version.js +1 -1
  47. package/dist/esm/schemas/api.d.ts +8 -8
  48. package/dist/esm/v3/apiClient/index.d.ts +109 -98
  49. package/dist/esm/v3/apiClient/index.js +21 -2
  50. package/dist/esm/v3/apiClient/index.js.map +1 -1
  51. package/dist/esm/v3/apiClient/runStream.d.ts +12 -3
  52. package/dist/esm/v3/apiClient/runStream.js +153 -59
  53. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  54. package/dist/esm/v3/apiClient/stream.d.ts +10 -1
  55. package/dist/esm/v3/apiClient/stream.js +178 -25
  56. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  57. package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
  58. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  59. package/dist/esm/v3/run-metadata-api.js +2 -0
  60. package/dist/esm/v3/run-metadata-api.js.map +1 -1
  61. package/dist/esm/v3/runMetadata/index.d.ts +13 -8
  62. package/dist/esm/v3/runMetadata/index.js +32 -13
  63. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  64. package/dist/esm/v3/runMetadata/manager.d.ts +25 -11
  65. package/dist/esm/v3/runMetadata/manager.js +180 -132
  66. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  67. package/dist/esm/v3/runMetadata/metadataStream.d.ts +9 -7
  68. package/dist/esm/v3/runMetadata/metadataStream.js +44 -40
  69. package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -1
  70. package/dist/esm/v3/runMetadata/noopManager.d.ts +13 -8
  71. package/dist/esm/v3/runMetadata/noopManager.js +44 -6
  72. package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
  73. package/dist/esm/v3/runMetadata/operations.d.ts +6 -0
  74. package/dist/esm/v3/runMetadata/operations.js +112 -0
  75. package/dist/esm/v3/runMetadata/operations.js.map +1 -0
  76. package/dist/esm/v3/runMetadata/types.d.ts +16 -9
  77. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  78. package/dist/esm/v3/runtime/devRuntimeManager.js +9 -0
  79. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  80. package/dist/esm/v3/schemas/api.d.ts +811 -392
  81. package/dist/esm/v3/schemas/api.js +26 -13
  82. package/dist/esm/v3/schemas/api.js.map +1 -1
  83. package/dist/esm/v3/schemas/build.d.ts +316 -316
  84. package/dist/esm/v3/schemas/common.d.ts +3893 -172
  85. package/dist/esm/v3/schemas/common.js +44 -0
  86. package/dist/esm/v3/schemas/common.js.map +1 -1
  87. package/dist/esm/v3/schemas/fetch.d.ts +22 -22
  88. package/dist/esm/v3/schemas/messages.d.ts +20632 -2650
  89. package/dist/esm/v3/schemas/resources.d.ts +98 -98
  90. package/dist/esm/v3/schemas/schemas.d.ts +353 -353
  91. package/dist/esm/v3/types/tasks.d.ts +25 -1
  92. package/dist/esm/v3/utils/ioSerialization.d.ts +4 -1
  93. package/dist/esm/v3/utils/ioSerialization.js +14 -2
  94. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  95. package/dist/esm/version.js +1 -1
  96. package/package.json +2 -2
@@ -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
- title: string;
30
29
  slug: string;
31
30
  createdAt: Date;
31
+ title: string;
32
32
  }, {
33
33
  id: string;
34
- title: string;
35
34
  slug: string;
36
35
  createdAt: Date;
36
+ title: string;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
- name: string;
40
39
  id: string;
40
+ externalRef: string;
41
+ name: string;
41
42
  slug: string;
43
+ createdAt: Date;
42
44
  organization: {
43
45
  id: string;
44
- title: string;
45
46
  slug: string;
46
47
  createdAt: Date;
48
+ title: string;
47
49
  };
48
- createdAt: Date;
49
- externalRef: string;
50
50
  }, {
51
- name: string;
52
51
  id: string;
52
+ externalRef: string;
53
+ name: string;
53
54
  slug: string;
55
+ createdAt: Date;
54
56
  organization: {
55
57
  id: string;
56
- title: string;
57
58
  slug: string;
58
59
  createdAt: Date;
60
+ title: string;
59
61
  };
60
- createdAt: Date;
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
- title: string;
78
77
  slug: string;
79
78
  createdAt: Date;
79
+ title: string;
80
80
  }, {
81
81
  id: string;
82
- title: string;
83
82
  slug: string;
84
83
  createdAt: Date;
84
+ title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
- name: string;
88
87
  id: string;
88
+ externalRef: string;
89
+ name: string;
89
90
  slug: string;
91
+ createdAt: Date;
90
92
  organization: {
91
93
  id: string;
92
- title: string;
93
94
  slug: string;
94
95
  createdAt: Date;
96
+ title: string;
95
97
  };
96
- createdAt: Date;
97
- externalRef: string;
98
98
  }, {
99
- name: string;
100
99
  id: string;
100
+ externalRef: string;
101
+ name: string;
101
102
  slug: string;
103
+ createdAt: Date;
102
104
  organization: {
103
105
  id: string;
104
- title: string;
105
106
  slug: string;
106
107
  createdAt: Date;
108
+ title: string;
107
109
  };
108
- createdAt: Date;
109
- externalRef: string;
110
110
  }>, "many">;
111
111
  export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
112
112
  export declare const GetProjectEnvResponse: z.ZodObject<{
@@ -154,29 +154,29 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
154
154
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
155
155
  randomize: z.ZodOptional<z.ZodBoolean>;
156
156
  }, "strip", z.ZodTypeAny, {
157
+ maxAttempts?: number | undefined;
157
158
  factor?: number | undefined;
158
159
  minTimeoutInMs?: number | undefined;
159
160
  maxTimeoutInMs?: number | undefined;
160
161
  randomize?: boolean | undefined;
161
- maxAttempts?: number | undefined;
162
162
  }, {
163
+ maxAttempts?: number | undefined;
163
164
  factor?: number | undefined;
164
165
  minTimeoutInMs?: number | undefined;
165
166
  maxTimeoutInMs?: number | undefined;
166
167
  randomize?: boolean | undefined;
167
- maxAttempts?: number | undefined;
168
168
  }>>;
169
169
  machine: z.ZodOptional<z.ZodObject<{
170
170
  cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
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?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
175
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
174
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
175
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
176
176
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
177
177
  }, {
178
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
179
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
178
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
179
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
180
180
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
181
181
  }>>;
182
182
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -196,55 +196,55 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
196
196
  filePath: string;
197
197
  exportName: string;
198
198
  description?: string | undefined;
199
- schedule?: {
200
- cron: string;
201
- timezone: string;
199
+ queue?: {
200
+ name?: string | undefined;
201
+ concurrencyLimit?: number | undefined;
202
202
  } | undefined;
203
203
  retry?: {
204
+ maxAttempts?: number | undefined;
204
205
  factor?: number | undefined;
205
206
  minTimeoutInMs?: number | undefined;
206
207
  maxTimeoutInMs?: number | undefined;
207
208
  randomize?: boolean | undefined;
208
- maxAttempts?: number | undefined;
209
- } | undefined;
210
- maxDuration?: number | undefined;
211
- queue?: {
212
- name?: string | undefined;
213
- concurrencyLimit?: number | undefined;
214
209
  } | undefined;
215
210
  machine?: {
216
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
217
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
211
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
212
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
218
213
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
219
214
  } | undefined;
220
215
  triggerSource?: string | undefined;
216
+ schedule?: {
217
+ cron: string;
218
+ timezone: string;
219
+ } | undefined;
220
+ maxDuration?: number | undefined;
221
221
  }, {
222
222
  id: string;
223
223
  filePath: string;
224
224
  exportName: string;
225
225
  description?: string | undefined;
226
- schedule?: {
227
- cron: string;
228
- timezone: string;
226
+ queue?: {
227
+ name?: string | undefined;
228
+ concurrencyLimit?: number | undefined;
229
229
  } | undefined;
230
230
  retry?: {
231
+ maxAttempts?: number | undefined;
231
232
  factor?: number | undefined;
232
233
  minTimeoutInMs?: number | undefined;
233
234
  maxTimeoutInMs?: number | undefined;
234
235
  randomize?: boolean | undefined;
235
- maxAttempts?: number | undefined;
236
- } | undefined;
237
- maxDuration?: number | undefined;
238
- queue?: {
239
- name?: string | undefined;
240
- concurrencyLimit?: number | undefined;
241
236
  } | undefined;
242
237
  machine?: {
243
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
244
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
238
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
239
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
245
240
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
246
241
  } | undefined;
247
242
  triggerSource?: string | undefined;
243
+ schedule?: {
244
+ cron: string;
245
+ timezone: string;
246
+ } | undefined;
247
+ maxDuration?: number | undefined;
248
248
  }>, "many">;
249
249
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
250
  filePath: z.ZodString;
@@ -252,177 +252,177 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
252
252
  contentHash: z.ZodString;
253
253
  taskIds: z.ZodArray<z.ZodString, "many">;
254
254
  }, "strip", z.ZodTypeAny, {
255
- filePath: string;
256
255
  contentHash: string;
256
+ filePath: string;
257
257
  contents: string;
258
258
  taskIds: string[];
259
259
  }, {
260
- filePath: string;
261
260
  contentHash: string;
261
+ filePath: string;
262
262
  contents: string;
263
263
  taskIds: string[];
264
264
  }>, "many">>;
265
265
  }, "strip", z.ZodTypeAny, {
266
+ packageVersion: string;
267
+ contentHash: string;
266
268
  tasks: {
267
269
  id: string;
268
270
  filePath: string;
269
271
  exportName: string;
270
272
  description?: string | undefined;
271
- schedule?: {
272
- cron: string;
273
- timezone: string;
273
+ queue?: {
274
+ name?: string | undefined;
275
+ concurrencyLimit?: number | undefined;
274
276
  } | undefined;
275
277
  retry?: {
278
+ maxAttempts?: number | undefined;
276
279
  factor?: number | undefined;
277
280
  minTimeoutInMs?: number | undefined;
278
281
  maxTimeoutInMs?: number | undefined;
279
282
  randomize?: boolean | undefined;
280
- maxAttempts?: number | undefined;
281
- } | undefined;
282
- maxDuration?: number | undefined;
283
- queue?: {
284
- name?: string | undefined;
285
- concurrencyLimit?: number | undefined;
286
283
  } | undefined;
287
284
  machine?: {
288
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
289
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
285
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
286
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
290
287
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
291
288
  } | undefined;
292
289
  triggerSource?: string | undefined;
290
+ schedule?: {
291
+ cron: string;
292
+ timezone: string;
293
+ } | undefined;
294
+ maxDuration?: number | undefined;
293
295
  }[];
294
- contentHash: string;
295
- packageVersion: string;
296
296
  cliPackageVersion?: string | undefined;
297
297
  sourceFiles?: {
298
- filePath: string;
299
298
  contentHash: string;
299
+ filePath: string;
300
300
  contents: string;
301
301
  taskIds: string[];
302
302
  }[] | undefined;
303
303
  }, {
304
+ packageVersion: string;
305
+ contentHash: string;
304
306
  tasks: {
305
307
  id: string;
306
308
  filePath: string;
307
309
  exportName: string;
308
310
  description?: string | undefined;
309
- schedule?: {
310
- cron: string;
311
- timezone: string;
311
+ queue?: {
312
+ name?: string | undefined;
313
+ concurrencyLimit?: number | undefined;
312
314
  } | undefined;
313
315
  retry?: {
316
+ maxAttempts?: number | undefined;
314
317
  factor?: number | undefined;
315
318
  minTimeoutInMs?: number | undefined;
316
319
  maxTimeoutInMs?: number | undefined;
317
320
  randomize?: boolean | undefined;
318
- maxAttempts?: number | undefined;
319
- } | undefined;
320
- maxDuration?: number | undefined;
321
- queue?: {
322
- name?: string | undefined;
323
- concurrencyLimit?: number | undefined;
324
321
  } | undefined;
325
322
  machine?: {
326
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
327
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
323
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
324
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
328
325
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
329
326
  } | undefined;
330
327
  triggerSource?: string | undefined;
328
+ schedule?: {
329
+ cron: string;
330
+ timezone: string;
331
+ } | undefined;
332
+ maxDuration?: number | undefined;
331
333
  }[];
332
- contentHash: string;
333
- packageVersion: string;
334
334
  cliPackageVersion?: string | undefined;
335
335
  sourceFiles?: {
336
- filePath: string;
337
336
  contentHash: string;
337
+ filePath: string;
338
338
  contents: string;
339
339
  taskIds: string[];
340
340
  }[] | undefined;
341
341
  }>;
342
342
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
343
343
  }, "strip", z.ZodTypeAny, {
344
+ localOnly: boolean;
344
345
  metadata: {
346
+ packageVersion: string;
347
+ contentHash: string;
345
348
  tasks: {
346
349
  id: string;
347
350
  filePath: string;
348
351
  exportName: string;
349
352
  description?: string | undefined;
350
- schedule?: {
351
- cron: string;
352
- timezone: string;
353
+ queue?: {
354
+ name?: string | undefined;
355
+ concurrencyLimit?: number | undefined;
353
356
  } | undefined;
354
357
  retry?: {
358
+ maxAttempts?: number | undefined;
355
359
  factor?: number | undefined;
356
360
  minTimeoutInMs?: number | undefined;
357
361
  maxTimeoutInMs?: number | undefined;
358
362
  randomize?: boolean | undefined;
359
- maxAttempts?: number | undefined;
360
- } | undefined;
361
- maxDuration?: number | undefined;
362
- queue?: {
363
- name?: string | undefined;
364
- concurrencyLimit?: number | undefined;
365
363
  } | undefined;
366
364
  machine?: {
367
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
368
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
365
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
366
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
369
367
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
370
368
  } | undefined;
371
369
  triggerSource?: string | undefined;
370
+ schedule?: {
371
+ cron: string;
372
+ timezone: string;
373
+ } | undefined;
374
+ maxDuration?: number | undefined;
372
375
  }[];
373
- contentHash: string;
374
- packageVersion: string;
375
376
  cliPackageVersion?: string | undefined;
376
377
  sourceFiles?: {
377
- filePath: string;
378
378
  contentHash: string;
379
+ filePath: string;
379
380
  contents: string;
380
381
  taskIds: string[];
381
382
  }[] | undefined;
382
383
  };
383
- localOnly: boolean;
384
384
  supportsLazyAttempts?: boolean | undefined;
385
385
  }, {
386
+ localOnly: boolean;
386
387
  metadata: {
388
+ packageVersion: string;
389
+ contentHash: string;
387
390
  tasks: {
388
391
  id: string;
389
392
  filePath: string;
390
393
  exportName: string;
391
394
  description?: string | undefined;
392
- schedule?: {
393
- cron: string;
394
- timezone: string;
395
+ queue?: {
396
+ name?: string | undefined;
397
+ concurrencyLimit?: number | undefined;
395
398
  } | undefined;
396
399
  retry?: {
400
+ maxAttempts?: number | undefined;
397
401
  factor?: number | undefined;
398
402
  minTimeoutInMs?: number | undefined;
399
403
  maxTimeoutInMs?: number | undefined;
400
404
  randomize?: boolean | undefined;
401
- maxAttempts?: number | undefined;
402
- } | undefined;
403
- maxDuration?: number | undefined;
404
- queue?: {
405
- name?: string | undefined;
406
- concurrencyLimit?: number | undefined;
407
405
  } | undefined;
408
406
  machine?: {
409
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
410
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
407
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
408
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
411
409
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
412
410
  } | undefined;
413
411
  triggerSource?: string | undefined;
412
+ schedule?: {
413
+ cron: string;
414
+ timezone: string;
415
+ } | undefined;
416
+ maxDuration?: number | undefined;
414
417
  }[];
415
- contentHash: string;
416
- packageVersion: string;
417
418
  cliPackageVersion?: string | undefined;
418
419
  sourceFiles?: {
419
- filePath: string;
420
420
  contentHash: string;
421
+ filePath: string;
421
422
  contents: string;
422
423
  taskIds: string[];
423
424
  }[] | undefined;
424
425
  };
425
- localOnly: boolean;
426
426
  supportsLazyAttempts?: boolean | undefined;
427
427
  }>;
428
428
  export type CreateBackgroundWorkerRequestBody = z.infer<typeof CreateBackgroundWorkerRequestBody>;
@@ -431,13 +431,13 @@ export declare const CreateBackgroundWorkerResponse: z.ZodObject<{
431
431
  version: z.ZodString;
432
432
  contentHash: z.ZodString;
433
433
  }, "strip", z.ZodTypeAny, {
434
- version: string;
435
434
  id: string;
436
435
  contentHash: string;
437
- }, {
438
436
  version: string;
437
+ }, {
439
438
  id: string;
440
439
  contentHash: string;
440
+ version: string;
441
441
  }>;
442
442
  export type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
443
443
  export declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -474,98 +474,98 @@ 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
- metadata?: any;
478
- idempotencyKey?: string | undefined;
479
- payloadType?: string | undefined;
480
- tags?: string | string[] | undefined;
481
- maxAttempts?: number | undefined;
482
- maxDuration?: number | undefined;
483
477
  queue?: {
484
478
  name?: string | undefined;
485
479
  concurrencyLimit?: number | undefined;
486
480
  } | undefined;
487
- delay?: string | Date | undefined;
488
- idempotencyKeyTTL?: string | undefined;
489
- concurrencyKey?: string | undefined;
490
- ttl?: string | number | undefined;
481
+ maxAttempts?: number | undefined;
482
+ maxDuration?: number | undefined;
483
+ metadata?: any;
491
484
  dependentAttempt?: string | undefined;
492
485
  parentAttempt?: string | undefined;
493
486
  dependentBatch?: string | undefined;
494
487
  parentBatch?: string | undefined;
495
488
  lockToVersion?: string | undefined;
496
- test?: boolean | undefined;
497
- metadataType?: string | undefined;
498
- }, {
499
- metadata?: any;
489
+ concurrencyKey?: string | undefined;
500
490
  idempotencyKey?: string | undefined;
491
+ idempotencyKeyTTL?: string | undefined;
492
+ test?: boolean | undefined;
501
493
  payloadType?: string | undefined;
494
+ delay?: string | Date | undefined;
495
+ ttl?: string | number | undefined;
502
496
  tags?: string | string[] | undefined;
503
- maxAttempts?: number | undefined;
504
- maxDuration?: number | undefined;
497
+ metadataType?: string | undefined;
498
+ }, {
505
499
  queue?: {
506
500
  name?: string | undefined;
507
501
  concurrencyLimit?: number | undefined;
508
502
  } | undefined;
509
- delay?: string | Date | undefined;
510
- idempotencyKeyTTL?: string | undefined;
511
- concurrencyKey?: string | undefined;
512
- ttl?: string | number | undefined;
503
+ maxAttempts?: number | undefined;
504
+ maxDuration?: number | undefined;
505
+ metadata?: any;
513
506
  dependentAttempt?: string | undefined;
514
507
  parentAttempt?: string | undefined;
515
508
  dependentBatch?: string | undefined;
516
509
  parentBatch?: string | undefined;
517
510
  lockToVersion?: string | undefined;
511
+ concurrencyKey?: string | undefined;
512
+ idempotencyKey?: string | undefined;
513
+ idempotencyKeyTTL?: string | undefined;
518
514
  test?: boolean | undefined;
515
+ payloadType?: string | undefined;
516
+ delay?: string | Date | undefined;
517
+ ttl?: string | number | undefined;
518
+ tags?: string | string[] | undefined;
519
519
  metadataType?: string | undefined;
520
520
  }>>;
521
521
  }, "strip", z.ZodTypeAny, {
522
522
  options?: {
523
- metadata?: any;
524
- idempotencyKey?: string | undefined;
525
- payloadType?: string | undefined;
526
- tags?: string | string[] | undefined;
527
- maxAttempts?: number | undefined;
528
- maxDuration?: number | undefined;
529
523
  queue?: {
530
524
  name?: string | undefined;
531
525
  concurrencyLimit?: number | undefined;
532
526
  } | undefined;
533
- delay?: string | Date | undefined;
534
- idempotencyKeyTTL?: string | undefined;
535
- concurrencyKey?: string | undefined;
536
- ttl?: string | number | undefined;
527
+ maxAttempts?: number | undefined;
528
+ maxDuration?: number | undefined;
529
+ metadata?: any;
537
530
  dependentAttempt?: string | undefined;
538
531
  parentAttempt?: string | undefined;
539
532
  dependentBatch?: string | undefined;
540
533
  parentBatch?: string | undefined;
541
534
  lockToVersion?: string | undefined;
535
+ concurrencyKey?: string | undefined;
536
+ idempotencyKey?: string | undefined;
537
+ idempotencyKeyTTL?: string | undefined;
542
538
  test?: boolean | undefined;
539
+ payloadType?: string | undefined;
540
+ delay?: string | Date | undefined;
541
+ ttl?: string | number | undefined;
542
+ tags?: string | string[] | undefined;
543
543
  metadataType?: string | undefined;
544
544
  } | undefined;
545
545
  payload?: any;
546
546
  context?: any;
547
547
  }, {
548
548
  options?: {
549
- metadata?: any;
550
- idempotencyKey?: string | undefined;
551
- payloadType?: string | undefined;
552
- tags?: string | string[] | undefined;
553
- maxAttempts?: number | undefined;
554
- maxDuration?: number | undefined;
555
549
  queue?: {
556
550
  name?: string | undefined;
557
551
  concurrencyLimit?: number | undefined;
558
552
  } | undefined;
559
- delay?: string | Date | undefined;
560
- idempotencyKeyTTL?: string | undefined;
561
- concurrencyKey?: string | undefined;
562
- ttl?: string | number | undefined;
553
+ maxAttempts?: number | undefined;
554
+ maxDuration?: number | undefined;
555
+ metadata?: any;
563
556
  dependentAttempt?: string | undefined;
564
557
  parentAttempt?: string | undefined;
565
558
  dependentBatch?: string | undefined;
566
559
  parentBatch?: string | undefined;
567
560
  lockToVersion?: string | undefined;
561
+ concurrencyKey?: string | undefined;
562
+ idempotencyKey?: string | undefined;
563
+ idempotencyKeyTTL?: string | undefined;
568
564
  test?: boolean | undefined;
565
+ payloadType?: string | undefined;
566
+ delay?: string | Date | undefined;
567
+ ttl?: string | number | undefined;
568
+ tags?: string | string[] | undefined;
569
569
  metadataType?: string | undefined;
570
570
  } | undefined;
571
571
  payload?: any;
@@ -613,98 +613,98 @@ 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
- metadata?: any;
617
- idempotencyKey?: string | undefined;
618
- payloadType?: string | undefined;
619
- tags?: string | string[] | undefined;
620
- maxAttempts?: number | undefined;
621
- maxDuration?: number | undefined;
622
616
  queue?: {
623
617
  name?: string | undefined;
624
618
  concurrencyLimit?: number | undefined;
625
619
  } | undefined;
626
- delay?: string | Date | undefined;
627
- idempotencyKeyTTL?: string | undefined;
628
- concurrencyKey?: string | undefined;
629
- ttl?: string | number | undefined;
620
+ maxAttempts?: number | undefined;
621
+ maxDuration?: number | undefined;
622
+ metadata?: any;
630
623
  dependentAttempt?: string | undefined;
631
624
  parentAttempt?: string | undefined;
632
625
  dependentBatch?: string | undefined;
633
626
  parentBatch?: string | undefined;
634
627
  lockToVersion?: string | undefined;
635
- test?: boolean | undefined;
636
- metadataType?: string | undefined;
637
- }, {
638
- metadata?: any;
628
+ concurrencyKey?: string | undefined;
639
629
  idempotencyKey?: string | undefined;
630
+ idempotencyKeyTTL?: string | undefined;
631
+ test?: boolean | undefined;
640
632
  payloadType?: string | undefined;
633
+ delay?: string | Date | undefined;
634
+ ttl?: string | number | undefined;
641
635
  tags?: string | string[] | undefined;
642
- maxAttempts?: number | undefined;
643
- maxDuration?: number | undefined;
636
+ metadataType?: string | undefined;
637
+ }, {
644
638
  queue?: {
645
639
  name?: string | undefined;
646
640
  concurrencyLimit?: number | undefined;
647
641
  } | undefined;
648
- delay?: string | Date | undefined;
649
- idempotencyKeyTTL?: string | undefined;
650
- concurrencyKey?: string | undefined;
651
- ttl?: string | number | undefined;
642
+ maxAttempts?: number | undefined;
643
+ maxDuration?: number | undefined;
644
+ metadata?: any;
652
645
  dependentAttempt?: string | undefined;
653
646
  parentAttempt?: string | undefined;
654
647
  dependentBatch?: string | undefined;
655
648
  parentBatch?: string | undefined;
656
649
  lockToVersion?: string | undefined;
650
+ concurrencyKey?: string | undefined;
651
+ idempotencyKey?: string | undefined;
652
+ idempotencyKeyTTL?: string | undefined;
657
653
  test?: boolean | undefined;
654
+ payloadType?: string | undefined;
655
+ delay?: string | Date | undefined;
656
+ ttl?: string | number | undefined;
657
+ tags?: string | string[] | undefined;
658
658
  metadataType?: string | undefined;
659
659
  }>>;
660
660
  }, "strip", z.ZodTypeAny, {
661
661
  options?: {
662
- metadata?: any;
663
- idempotencyKey?: string | undefined;
664
- payloadType?: string | undefined;
665
- tags?: string | string[] | undefined;
666
- maxAttempts?: number | undefined;
667
- maxDuration?: number | undefined;
668
662
  queue?: {
669
663
  name?: string | undefined;
670
664
  concurrencyLimit?: number | undefined;
671
665
  } | undefined;
672
- delay?: string | Date | undefined;
673
- idempotencyKeyTTL?: string | undefined;
674
- concurrencyKey?: string | undefined;
675
- ttl?: string | number | undefined;
666
+ maxAttempts?: number | undefined;
667
+ maxDuration?: number | undefined;
668
+ metadata?: any;
676
669
  dependentAttempt?: string | undefined;
677
670
  parentAttempt?: string | undefined;
678
671
  dependentBatch?: string | undefined;
679
672
  parentBatch?: string | undefined;
680
673
  lockToVersion?: string | undefined;
674
+ concurrencyKey?: string | undefined;
675
+ idempotencyKey?: string | undefined;
676
+ idempotencyKeyTTL?: string | undefined;
681
677
  test?: boolean | undefined;
678
+ payloadType?: string | undefined;
679
+ delay?: string | Date | undefined;
680
+ ttl?: string | number | undefined;
681
+ tags?: string | string[] | undefined;
682
682
  metadataType?: string | undefined;
683
683
  } | undefined;
684
684
  payload?: any;
685
685
  context?: any;
686
686
  }, {
687
687
  options?: {
688
- metadata?: any;
689
- idempotencyKey?: string | undefined;
690
- payloadType?: string | undefined;
691
- tags?: string | string[] | undefined;
692
- maxAttempts?: number | undefined;
693
- maxDuration?: number | undefined;
694
688
  queue?: {
695
689
  name?: string | undefined;
696
690
  concurrencyLimit?: number | undefined;
697
691
  } | undefined;
698
- delay?: string | Date | undefined;
699
- idempotencyKeyTTL?: string | undefined;
700
- concurrencyKey?: string | undefined;
701
- ttl?: string | number | undefined;
692
+ maxAttempts?: number | undefined;
693
+ maxDuration?: number | undefined;
694
+ metadata?: any;
702
695
  dependentAttempt?: string | undefined;
703
696
  parentAttempt?: string | undefined;
704
697
  dependentBatch?: string | undefined;
705
698
  parentBatch?: string | undefined;
706
699
  lockToVersion?: string | undefined;
700
+ concurrencyKey?: string | undefined;
701
+ idempotencyKey?: string | undefined;
702
+ idempotencyKeyTTL?: string | undefined;
707
703
  test?: boolean | undefined;
704
+ payloadType?: string | undefined;
705
+ delay?: string | Date | undefined;
706
+ ttl?: string | number | undefined;
707
+ tags?: string | string[] | undefined;
708
708
  metadataType?: string | undefined;
709
709
  } | undefined;
710
710
  payload?: any;
@@ -714,26 +714,26 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  items: {
716
716
  options?: {
717
- metadata?: any;
718
- idempotencyKey?: string | undefined;
719
- payloadType?: string | undefined;
720
- tags?: string | string[] | undefined;
721
- maxAttempts?: number | undefined;
722
- maxDuration?: number | undefined;
723
717
  queue?: {
724
718
  name?: string | undefined;
725
719
  concurrencyLimit?: number | undefined;
726
720
  } | undefined;
727
- delay?: string | Date | undefined;
728
- idempotencyKeyTTL?: string | undefined;
729
- concurrencyKey?: string | undefined;
730
- ttl?: string | number | undefined;
721
+ maxAttempts?: number | undefined;
722
+ maxDuration?: number | undefined;
723
+ metadata?: any;
731
724
  dependentAttempt?: string | undefined;
732
725
  parentAttempt?: string | undefined;
733
726
  dependentBatch?: string | undefined;
734
727
  parentBatch?: string | undefined;
735
728
  lockToVersion?: string | undefined;
729
+ concurrencyKey?: string | undefined;
730
+ idempotencyKey?: string | undefined;
731
+ idempotencyKeyTTL?: string | undefined;
736
732
  test?: boolean | undefined;
733
+ payloadType?: string | undefined;
734
+ delay?: string | Date | undefined;
735
+ ttl?: string | number | undefined;
736
+ tags?: string | string[] | undefined;
737
737
  metadataType?: string | undefined;
738
738
  } | undefined;
739
739
  payload?: any;
@@ -743,26 +743,26 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
743
743
  }, {
744
744
  items: {
745
745
  options?: {
746
- metadata?: any;
747
- idempotencyKey?: string | undefined;
748
- payloadType?: string | undefined;
749
- tags?: string | string[] | undefined;
750
- maxAttempts?: number | undefined;
751
- maxDuration?: number | undefined;
752
746
  queue?: {
753
747
  name?: string | undefined;
754
748
  concurrencyLimit?: number | undefined;
755
749
  } | undefined;
756
- delay?: string | Date | undefined;
757
- idempotencyKeyTTL?: string | undefined;
758
- concurrencyKey?: string | undefined;
759
- ttl?: string | number | undefined;
750
+ maxAttempts?: number | undefined;
751
+ maxDuration?: number | undefined;
752
+ metadata?: any;
760
753
  dependentAttempt?: string | undefined;
761
754
  parentAttempt?: string | undefined;
762
755
  dependentBatch?: string | undefined;
763
756
  parentBatch?: string | undefined;
764
757
  lockToVersion?: string | undefined;
758
+ concurrencyKey?: string | undefined;
759
+ idempotencyKey?: string | undefined;
760
+ idempotencyKeyTTL?: string | undefined;
765
761
  test?: boolean | undefined;
762
+ payloadType?: string | undefined;
763
+ delay?: string | Date | undefined;
764
+ ttl?: string | number | undefined;
765
+ tags?: string | string[] | undefined;
766
766
  metadataType?: string | undefined;
767
767
  } | undefined;
768
768
  payload?: any;
@@ -801,64 +801,64 @@ 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
- metadata?: any;
805
- idempotencyKey?: string | undefined;
806
- payloadType?: string | undefined;
807
- tags?: string | string[] | undefined;
808
- maxAttempts?: number | undefined;
809
- maxDuration?: number | undefined;
810
804
  queue?: {
811
805
  name?: string | undefined;
812
806
  concurrencyLimit?: number | undefined;
813
807
  } | undefined;
814
- delay?: string | Date | undefined;
815
- idempotencyKeyTTL?: string | undefined;
816
- concurrencyKey?: string | undefined;
817
- ttl?: string | number | undefined;
808
+ maxAttempts?: number | undefined;
809
+ maxDuration?: number | undefined;
810
+ metadata?: any;
818
811
  parentAttempt?: string | undefined;
819
812
  lockToVersion?: string | undefined;
820
- test?: boolean | undefined;
821
- metadataType?: string | undefined;
822
- }, {
823
- metadata?: any;
813
+ concurrencyKey?: string | undefined;
824
814
  idempotencyKey?: string | undefined;
815
+ idempotencyKeyTTL?: string | undefined;
816
+ test?: boolean | undefined;
825
817
  payloadType?: string | undefined;
818
+ delay?: string | Date | undefined;
819
+ ttl?: string | number | undefined;
826
820
  tags?: string | string[] | undefined;
827
- maxAttempts?: number | undefined;
828
- maxDuration?: number | undefined;
821
+ metadataType?: string | undefined;
822
+ }, {
829
823
  queue?: {
830
824
  name?: string | undefined;
831
825
  concurrencyLimit?: number | undefined;
832
826
  } | undefined;
833
- delay?: string | Date | undefined;
834
- idempotencyKeyTTL?: string | undefined;
835
- concurrencyKey?: string | undefined;
836
- ttl?: string | number | undefined;
827
+ maxAttempts?: number | undefined;
828
+ maxDuration?: number | undefined;
829
+ metadata?: any;
837
830
  parentAttempt?: string | undefined;
838
831
  lockToVersion?: string | undefined;
832
+ concurrencyKey?: string | undefined;
833
+ idempotencyKey?: string | undefined;
834
+ idempotencyKeyTTL?: string | undefined;
839
835
  test?: boolean | undefined;
836
+ payloadType?: string | undefined;
837
+ delay?: string | Date | undefined;
838
+ ttl?: string | number | undefined;
839
+ tags?: string | string[] | undefined;
840
840
  metadataType?: string | undefined;
841
841
  }>>;
842
842
  }, "strip", z.ZodTypeAny, {
843
843
  task: string;
844
844
  options?: {
845
- metadata?: any;
846
- idempotencyKey?: string | undefined;
847
- payloadType?: string | undefined;
848
- tags?: string | string[] | undefined;
849
- maxAttempts?: number | undefined;
850
- maxDuration?: number | undefined;
851
845
  queue?: {
852
846
  name?: string | undefined;
853
847
  concurrencyLimit?: number | undefined;
854
848
  } | undefined;
855
- delay?: string | Date | undefined;
856
- idempotencyKeyTTL?: string | undefined;
857
- concurrencyKey?: string | undefined;
858
- ttl?: string | number | undefined;
849
+ maxAttempts?: number | undefined;
850
+ maxDuration?: number | undefined;
851
+ metadata?: any;
859
852
  parentAttempt?: string | undefined;
860
853
  lockToVersion?: string | undefined;
854
+ concurrencyKey?: string | undefined;
855
+ idempotencyKey?: string | undefined;
856
+ idempotencyKeyTTL?: string | undefined;
861
857
  test?: boolean | undefined;
858
+ payloadType?: string | undefined;
859
+ delay?: string | Date | undefined;
860
+ ttl?: string | number | undefined;
861
+ tags?: string | string[] | undefined;
862
862
  metadataType?: string | undefined;
863
863
  } | undefined;
864
864
  payload?: any;
@@ -866,23 +866,23 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
866
866
  }, {
867
867
  task: string;
868
868
  options?: {
869
- metadata?: any;
870
- idempotencyKey?: string | undefined;
871
- payloadType?: string | undefined;
872
- tags?: string | string[] | undefined;
873
- maxAttempts?: number | undefined;
874
- maxDuration?: number | undefined;
875
869
  queue?: {
876
870
  name?: string | undefined;
877
871
  concurrencyLimit?: number | undefined;
878
872
  } | undefined;
879
- delay?: string | Date | undefined;
880
- idempotencyKeyTTL?: string | undefined;
881
- concurrencyKey?: string | undefined;
882
- ttl?: string | number | undefined;
873
+ maxAttempts?: number | undefined;
874
+ maxDuration?: number | undefined;
875
+ metadata?: any;
883
876
  parentAttempt?: string | undefined;
884
877
  lockToVersion?: string | undefined;
878
+ concurrencyKey?: string | undefined;
879
+ idempotencyKey?: string | undefined;
880
+ idempotencyKeyTTL?: string | undefined;
885
881
  test?: boolean | undefined;
882
+ payloadType?: string | undefined;
883
+ delay?: string | Date | undefined;
884
+ ttl?: string | number | undefined;
885
+ tags?: string | string[] | undefined;
886
886
  metadataType?: string | undefined;
887
887
  } | undefined;
888
888
  payload?: any;
@@ -920,64 +920,64 @@ 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
- metadata?: any;
924
- idempotencyKey?: string | undefined;
925
- payloadType?: string | undefined;
926
- tags?: string | string[] | undefined;
927
- maxAttempts?: number | undefined;
928
- maxDuration?: number | undefined;
929
923
  queue?: {
930
924
  name?: string | undefined;
931
925
  concurrencyLimit?: number | undefined;
932
926
  } | undefined;
933
- delay?: string | Date | undefined;
934
- idempotencyKeyTTL?: string | undefined;
935
- concurrencyKey?: string | undefined;
936
- ttl?: string | number | undefined;
927
+ maxAttempts?: number | undefined;
928
+ maxDuration?: number | undefined;
929
+ metadata?: any;
937
930
  parentAttempt?: string | undefined;
938
931
  lockToVersion?: string | undefined;
939
- test?: boolean | undefined;
940
- metadataType?: string | undefined;
941
- }, {
942
- metadata?: any;
932
+ concurrencyKey?: string | undefined;
943
933
  idempotencyKey?: string | undefined;
934
+ idempotencyKeyTTL?: string | undefined;
935
+ test?: boolean | undefined;
944
936
  payloadType?: string | undefined;
937
+ delay?: string | Date | undefined;
938
+ ttl?: string | number | undefined;
945
939
  tags?: string | string[] | undefined;
946
- maxAttempts?: number | undefined;
947
- maxDuration?: number | undefined;
940
+ metadataType?: string | undefined;
941
+ }, {
948
942
  queue?: {
949
943
  name?: string | undefined;
950
944
  concurrencyLimit?: number | undefined;
951
945
  } | undefined;
952
- delay?: string | Date | undefined;
953
- idempotencyKeyTTL?: string | undefined;
954
- concurrencyKey?: string | undefined;
955
- ttl?: string | number | undefined;
946
+ maxAttempts?: number | undefined;
947
+ maxDuration?: number | undefined;
948
+ metadata?: any;
956
949
  parentAttempt?: string | undefined;
957
950
  lockToVersion?: string | undefined;
951
+ concurrencyKey?: string | undefined;
952
+ idempotencyKey?: string | undefined;
953
+ idempotencyKeyTTL?: string | undefined;
958
954
  test?: boolean | undefined;
955
+ payloadType?: string | undefined;
956
+ delay?: string | Date | undefined;
957
+ ttl?: string | number | undefined;
958
+ tags?: string | string[] | undefined;
959
959
  metadataType?: string | undefined;
960
960
  }>>;
961
961
  }, "strip", z.ZodTypeAny, {
962
962
  task: string;
963
963
  options?: {
964
- metadata?: any;
965
- idempotencyKey?: string | undefined;
966
- payloadType?: string | undefined;
967
- tags?: string | string[] | undefined;
968
- maxAttempts?: number | undefined;
969
- maxDuration?: number | undefined;
970
964
  queue?: {
971
965
  name?: string | undefined;
972
966
  concurrencyLimit?: number | undefined;
973
967
  } | undefined;
974
- delay?: string | Date | undefined;
975
- idempotencyKeyTTL?: string | undefined;
976
- concurrencyKey?: string | undefined;
977
- ttl?: string | number | undefined;
968
+ maxAttempts?: number | undefined;
969
+ maxDuration?: number | undefined;
970
+ metadata?: any;
978
971
  parentAttempt?: string | undefined;
979
972
  lockToVersion?: string | undefined;
973
+ concurrencyKey?: string | undefined;
974
+ idempotencyKey?: string | undefined;
975
+ idempotencyKeyTTL?: string | undefined;
980
976
  test?: boolean | undefined;
977
+ payloadType?: string | undefined;
978
+ delay?: string | Date | undefined;
979
+ ttl?: string | number | undefined;
980
+ tags?: string | string[] | undefined;
981
981
  metadataType?: string | undefined;
982
982
  } | undefined;
983
983
  payload?: any;
@@ -985,23 +985,23 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
985
985
  }, {
986
986
  task: string;
987
987
  options?: {
988
- metadata?: any;
989
- idempotencyKey?: string | undefined;
990
- payloadType?: string | undefined;
991
- tags?: string | string[] | undefined;
992
- maxAttempts?: number | undefined;
993
- maxDuration?: number | undefined;
994
988
  queue?: {
995
989
  name?: string | undefined;
996
990
  concurrencyLimit?: number | undefined;
997
991
  } | undefined;
998
- delay?: string | Date | undefined;
999
- idempotencyKeyTTL?: string | undefined;
1000
- concurrencyKey?: string | undefined;
1001
- ttl?: string | number | undefined;
992
+ maxAttempts?: number | undefined;
993
+ maxDuration?: number | undefined;
994
+ metadata?: any;
1002
995
  parentAttempt?: string | undefined;
1003
996
  lockToVersion?: string | undefined;
997
+ concurrencyKey?: string | undefined;
998
+ idempotencyKey?: string | undefined;
999
+ idempotencyKeyTTL?: string | undefined;
1004
1000
  test?: boolean | undefined;
1001
+ payloadType?: string | undefined;
1002
+ delay?: string | Date | undefined;
1003
+ ttl?: string | number | undefined;
1004
+ tags?: string | string[] | undefined;
1005
1005
  metadataType?: string | undefined;
1006
1006
  } | undefined;
1007
1007
  payload?: any;
@@ -1012,23 +1012,23 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1012
1012
  items: {
1013
1013
  task: string;
1014
1014
  options?: {
1015
- metadata?: any;
1016
- idempotencyKey?: string | undefined;
1017
- payloadType?: string | undefined;
1018
- tags?: string | string[] | undefined;
1019
- maxAttempts?: number | undefined;
1020
- maxDuration?: number | undefined;
1021
1015
  queue?: {
1022
1016
  name?: string | undefined;
1023
1017
  concurrencyLimit?: number | undefined;
1024
1018
  } | undefined;
1025
- delay?: string | Date | undefined;
1026
- idempotencyKeyTTL?: string | undefined;
1027
- concurrencyKey?: string | undefined;
1028
- ttl?: string | number | undefined;
1019
+ maxAttempts?: number | undefined;
1020
+ maxDuration?: number | undefined;
1021
+ metadata?: any;
1029
1022
  parentAttempt?: string | undefined;
1030
1023
  lockToVersion?: string | undefined;
1024
+ concurrencyKey?: string | undefined;
1025
+ idempotencyKey?: string | undefined;
1026
+ idempotencyKeyTTL?: string | undefined;
1031
1027
  test?: boolean | undefined;
1028
+ payloadType?: string | undefined;
1029
+ delay?: string | Date | undefined;
1030
+ ttl?: string | number | undefined;
1031
+ tags?: string | string[] | undefined;
1032
1032
  metadataType?: string | undefined;
1033
1033
  } | undefined;
1034
1034
  payload?: any;
@@ -1039,23 +1039,23 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1039
1039
  items: {
1040
1040
  task: string;
1041
1041
  options?: {
1042
- metadata?: any;
1043
- idempotencyKey?: string | undefined;
1044
- payloadType?: string | undefined;
1045
- tags?: string | string[] | undefined;
1046
- maxAttempts?: number | undefined;
1047
- maxDuration?: number | undefined;
1048
1042
  queue?: {
1049
1043
  name?: string | undefined;
1050
1044
  concurrencyLimit?: number | undefined;
1051
1045
  } | undefined;
1052
- delay?: string | Date | undefined;
1053
- idempotencyKeyTTL?: string | undefined;
1054
- concurrencyKey?: string | undefined;
1055
- ttl?: string | number | undefined;
1046
+ maxAttempts?: number | undefined;
1047
+ maxDuration?: number | undefined;
1048
+ metadata?: any;
1056
1049
  parentAttempt?: string | undefined;
1057
1050
  lockToVersion?: string | undefined;
1051
+ concurrencyKey?: string | undefined;
1052
+ idempotencyKey?: string | undefined;
1053
+ idempotencyKeyTTL?: string | undefined;
1058
1054
  test?: boolean | undefined;
1055
+ payloadType?: string | undefined;
1056
+ delay?: string | Date | undefined;
1057
+ ttl?: string | number | undefined;
1058
+ tags?: string | string[] | undefined;
1059
1059
  metadataType?: string | undefined;
1060
1060
  } | undefined;
1061
1061
  payload?: any;
@@ -1075,34 +1075,34 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1075
1075
  idempotencyKey: z.ZodOptional<z.ZodString>;
1076
1076
  }, "strip", z.ZodTypeAny, {
1077
1077
  id: string;
1078
- taskIdentifier: string;
1079
1078
  isCached: boolean;
1079
+ taskIdentifier: string;
1080
1080
  idempotencyKey?: string | undefined;
1081
1081
  }, {
1082
1082
  id: string;
1083
- taskIdentifier: string;
1084
1083
  isCached: boolean;
1084
+ taskIdentifier: string;
1085
1085
  idempotencyKey?: string | undefined;
1086
1086
  }>, "many">;
1087
1087
  }, "strip", z.ZodTypeAny, {
1088
1088
  id: string;
1089
+ isCached: boolean;
1089
1090
  runs: {
1090
1091
  id: string;
1091
- taskIdentifier: string;
1092
1092
  isCached: boolean;
1093
+ taskIdentifier: string;
1093
1094
  idempotencyKey?: string | undefined;
1094
1095
  }[];
1095
- isCached: boolean;
1096
1096
  idempotencyKey?: string | undefined;
1097
1097
  }, {
1098
1098
  id: string;
1099
+ isCached: boolean;
1099
1100
  runs: {
1100
1101
  id: string;
1101
- taskIdentifier: string;
1102
1102
  isCached: boolean;
1103
+ taskIdentifier: string;
1103
1104
  idempotencyKey?: string | undefined;
1104
1105
  }[];
1105
- isCached: boolean;
1106
1106
  idempotencyKey?: string | undefined;
1107
1107
  }>;
1108
1108
  export type BatchTriggerTaskV2Response = z.infer<typeof BatchTriggerTaskV2Response>;
@@ -1124,25 +1124,25 @@ 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" | "COMPLETED" | "CANCELED" | "FAILED";
1127
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1128
1128
  id: string;
1129
1129
  taskRunId: string;
1130
1130
  }, {
1131
- status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1131
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1132
1132
  id: string;
1133
1133
  taskRunId: string;
1134
1134
  }>, "many">;
1135
1135
  }, "strip", z.ZodTypeAny, {
1136
1136
  id: string;
1137
1137
  items: {
1138
- status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1138
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1139
1139
  id: string;
1140
1140
  taskRunId: string;
1141
1141
  }[];
1142
1142
  }, {
1143
1143
  id: string;
1144
1144
  items: {
1145
- status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1145
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED";
1146
1146
  id: string;
1147
1147
  taskRunId: string;
1148
1148
  }[];
@@ -1240,11 +1240,11 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1240
1240
  }>>>;
1241
1241
  registryHost: z.ZodOptional<z.ZodString>;
1242
1242
  }, "strip", z.ZodTypeAny, {
1243
- version: string;
1244
1243
  id: string;
1245
1244
  contentHash: string;
1246
- imageTag: string;
1245
+ version: string;
1247
1246
  shortCode: string;
1247
+ imageTag: string;
1248
1248
  externalBuildData?: {
1249
1249
  projectId: string;
1250
1250
  buildId: string;
@@ -1252,11 +1252,11 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1252
1252
  } | null | undefined;
1253
1253
  registryHost?: string | undefined;
1254
1254
  }, {
1255
- version: string;
1256
1255
  id: string;
1257
1256
  contentHash: string;
1258
- imageTag: string;
1257
+ version: string;
1259
1258
  shortCode: string;
1259
+ imageTag: string;
1260
1260
  externalBuildData?: {
1261
1261
  projectId: string;
1262
1262
  buildId: string;
@@ -1386,7 +1386,6 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1386
1386
  exportName: string;
1387
1387
  }>, "many">;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
- version: string;
1390
1389
  id: string;
1391
1390
  tasks: {
1392
1391
  id: string;
@@ -1394,8 +1393,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1394
1393
  filePath: string;
1395
1394
  exportName: string;
1396
1395
  }[];
1397
- }, {
1398
1396
  version: string;
1397
+ }, {
1399
1398
  id: string;
1400
1399
  tasks: {
1401
1400
  id: string;
@@ -1403,15 +1402,22 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1403
1402
  filePath: string;
1404
1403
  exportName: string;
1405
1404
  }[];
1405
+ version: string;
1406
1406
  }>>;
1407
1407
  }, "strip", z.ZodTypeAny, {
1408
- status: "PENDING" | "CANCELED" | "TIMED_OUT" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1409
- version: string;
1408
+ status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1410
1409
  id: string;
1411
1410
  contentHash: string;
1411
+ version: string;
1412
1412
  shortCode: string;
1413
+ imageReference?: string | null | undefined;
1414
+ errorData?: {
1415
+ message: string;
1416
+ name: string;
1417
+ stack?: string | undefined;
1418
+ stderr?: string | undefined;
1419
+ } | null | undefined;
1413
1420
  worker?: {
1414
- version: string;
1415
1421
  id: string;
1416
1422
  tasks: {
1417
1423
  id: string;
@@ -1419,7 +1425,14 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1419
1425
  filePath: string;
1420
1426
  exportName: string;
1421
1427
  }[];
1428
+ version: string;
1422
1429
  } | undefined;
1430
+ }, {
1431
+ status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1432
+ id: string;
1433
+ contentHash: string;
1434
+ version: string;
1435
+ shortCode: string;
1423
1436
  imageReference?: string | null | undefined;
1424
1437
  errorData?: {
1425
1438
  message: string;
@@ -1427,14 +1440,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1427
1440
  stack?: string | undefined;
1428
1441
  stderr?: string | undefined;
1429
1442
  } | null | undefined;
1430
- }, {
1431
- status: "PENDING" | "CANCELED" | "TIMED_OUT" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1432
- version: string;
1433
- id: string;
1434
- contentHash: string;
1435
- shortCode: string;
1436
1443
  worker?: {
1437
- version: string;
1438
1444
  id: string;
1439
1445
  tasks: {
1440
1446
  id: string;
@@ -1442,14 +1448,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1442
1448
  filePath: string;
1443
1449
  exportName: string;
1444
1450
  }[];
1451
+ version: string;
1445
1452
  } | undefined;
1446
- imageReference?: string | null | undefined;
1447
- errorData?: {
1448
- message: string;
1449
- name: string;
1450
- stack?: string | undefined;
1451
- stderr?: string | undefined;
1452
- } | null | undefined;
1453
1453
  }>;
1454
1454
  export type GetDeploymentResponseBody = z.infer<typeof GetDeploymentResponseBody>;
1455
1455
  export declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{
@@ -1513,17 +1513,17 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
1513
1513
  upcoming: z.ZodArray<z.ZodDate, "many">;
1514
1514
  }, "strip", z.ZodTypeAny, {
1515
1515
  type: "DECLARATIVE" | "IMPERATIVE";
1516
- timestamp: Date;
1517
1516
  timezone: string;
1518
1517
  scheduleId: string;
1518
+ timestamp: Date;
1519
1519
  upcoming: Date[];
1520
1520
  lastTimestamp?: Date | undefined;
1521
1521
  externalId?: string | undefined;
1522
1522
  }, {
1523
1523
  type: "DECLARATIVE" | "IMPERATIVE";
1524
- timestamp: Date;
1525
1524
  timezone: string;
1526
1525
  scheduleId: string;
1526
+ timestamp: Date;
1527
1527
  upcoming: Date[];
1528
1528
  lastTimestamp?: Date | undefined;
1529
1529
  externalId?: string | undefined;
@@ -1687,9 +1687,9 @@ export declare const ScheduleObject: z.ZodObject<{
1687
1687
  }, "strip", z.ZodTypeAny, {
1688
1688
  type: "DECLARATIVE" | "IMPERATIVE";
1689
1689
  id: string;
1690
- active: boolean;
1691
- task: string;
1692
1690
  timezone: string;
1691
+ task: string;
1692
+ active: boolean;
1693
1693
  generator: {
1694
1694
  type: "CRON";
1695
1695
  description: string;
@@ -1706,9 +1706,9 @@ export declare const ScheduleObject: z.ZodObject<{
1706
1706
  }, {
1707
1707
  type: "DECLARATIVE" | "IMPERATIVE";
1708
1708
  id: string;
1709
- active: boolean;
1710
- task: string;
1711
1709
  timezone: string;
1710
+ task: string;
1711
+ active: boolean;
1712
1712
  generator: {
1713
1713
  type: "CRON";
1714
1714
  description: string;
@@ -1771,9 +1771,9 @@ export declare const ListSchedulesResult: z.ZodObject<{
1771
1771
  }, "strip", z.ZodTypeAny, {
1772
1772
  type: "DECLARATIVE" | "IMPERATIVE";
1773
1773
  id: string;
1774
- active: boolean;
1775
- task: string;
1776
1774
  timezone: string;
1775
+ task: string;
1776
+ active: boolean;
1777
1777
  generator: {
1778
1778
  type: "CRON";
1779
1779
  description: string;
@@ -1790,9 +1790,9 @@ export declare const ListSchedulesResult: z.ZodObject<{
1790
1790
  }, {
1791
1791
  type: "DECLARATIVE" | "IMPERATIVE";
1792
1792
  id: string;
1793
- active: boolean;
1794
- task: string;
1795
1793
  timezone: string;
1794
+ task: string;
1795
+ active: boolean;
1796
1796
  generator: {
1797
1797
  type: "CRON";
1798
1798
  description: string;
@@ -1824,9 +1824,9 @@ export declare const ListSchedulesResult: z.ZodObject<{
1824
1824
  data: {
1825
1825
  type: "DECLARATIVE" | "IMPERATIVE";
1826
1826
  id: string;
1827
- active: boolean;
1828
- task: string;
1829
1827
  timezone: string;
1828
+ task: string;
1829
+ active: boolean;
1830
1830
  generator: {
1831
1831
  type: "CRON";
1832
1832
  description: string;
@@ -1850,9 +1850,9 @@ export declare const ListSchedulesResult: z.ZodObject<{
1850
1850
  data: {
1851
1851
  type: "DECLARATIVE" | "IMPERATIVE";
1852
1852
  id: string;
1853
- active: boolean;
1854
- task: string;
1855
1853
  timezone: string;
1854
+ task: string;
1855
+ active: boolean;
1856
1856
  generator: {
1857
1857
  type: "CRON";
1858
1858
  description: string;
@@ -1902,12 +1902,12 @@ export declare const RunEnvironmentDetails: z.ZodObject<{
1902
1902
  name: z.ZodString;
1903
1903
  user: z.ZodOptional<z.ZodString>;
1904
1904
  }, "strip", z.ZodTypeAny, {
1905
- name: string;
1906
1905
  id: string;
1906
+ name: string;
1907
1907
  user?: string | undefined;
1908
1908
  }, {
1909
- name: string;
1910
1909
  id: string;
1910
+ name: string;
1911
1911
  user?: string | undefined;
1912
1912
  }>;
1913
1913
  export type RunEnvironmentDetails = z.infer<typeof RunEnvironmentDetails>;
@@ -1979,58 +1979,58 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
1982
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
1983
1983
  id: string;
1984
- updatedAt: Date;
1985
- isTest: boolean;
1986
1984
  createdAt: Date;
1987
1985
  tags: string[];
1988
- durationMs: number;
1989
- costInCents: number;
1990
- baseCostInCents: number;
1991
1986
  taskIdentifier: string;
1992
1987
  depth: number;
1993
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
1988
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
1994
1989
  isQueued: boolean;
1995
1990
  isExecuting: boolean;
1996
1991
  isCompleted: boolean;
1997
1992
  isSuccess: boolean;
1998
1993
  isFailed: boolean;
1999
1994
  isCancelled: boolean;
2000
- version?: string | undefined;
1995
+ isTest: boolean;
1996
+ updatedAt: Date;
1997
+ costInCents: number;
1998
+ baseCostInCents: number;
1999
+ durationMs: number;
2001
2000
  metadata?: Record<string, any> | undefined;
2002
- startedAt?: Date | undefined;
2001
+ version?: string | undefined;
2003
2002
  idempotencyKey?: string | undefined;
2004
2003
  ttl?: string | undefined;
2005
2004
  batchId?: string | undefined;
2005
+ startedAt?: Date | undefined;
2006
2006
  finishedAt?: Date | undefined;
2007
2007
  delayedUntil?: Date | undefined;
2008
2008
  expiredAt?: Date | undefined;
2009
2009
  }, {
2010
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2010
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2011
2011
  id: string;
2012
- updatedAt: Date;
2013
- isTest: boolean;
2014
2012
  createdAt: Date;
2015
2013
  tags: string[];
2016
- durationMs: number;
2017
- costInCents: number;
2018
- baseCostInCents: number;
2019
2014
  taskIdentifier: string;
2020
2015
  depth: number;
2021
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2016
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2022
2017
  isQueued: boolean;
2023
2018
  isExecuting: boolean;
2024
2019
  isCompleted: boolean;
2025
2020
  isSuccess: boolean;
2026
2021
  isFailed: boolean;
2027
2022
  isCancelled: boolean;
2028
- version?: string | undefined;
2023
+ isTest: boolean;
2024
+ updatedAt: Date;
2025
+ costInCents: number;
2026
+ baseCostInCents: number;
2027
+ durationMs: number;
2029
2028
  metadata?: Record<string, any> | undefined;
2030
- startedAt?: Date | undefined;
2029
+ version?: string | undefined;
2031
2030
  idempotencyKey?: string | undefined;
2032
2031
  ttl?: string | undefined;
2033
2032
  batchId?: string | undefined;
2033
+ startedAt?: Date | undefined;
2034
2034
  finishedAt?: Date | undefined;
2035
2035
  delayedUntil?: Date | undefined;
2036
2036
  expiredAt?: Date | undefined;
@@ -2119,58 +2119,58 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2122
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2123
2123
  id: string;
2124
- updatedAt: Date;
2125
- isTest: boolean;
2126
2124
  createdAt: Date;
2127
2125
  tags: string[];
2128
- durationMs: number;
2129
- costInCents: number;
2130
- baseCostInCents: number;
2131
2126
  taskIdentifier: string;
2132
2127
  depth: number;
2133
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2128
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2134
2129
  isQueued: boolean;
2135
2130
  isExecuting: boolean;
2136
2131
  isCompleted: boolean;
2137
2132
  isSuccess: boolean;
2138
2133
  isFailed: boolean;
2139
2134
  isCancelled: boolean;
2140
- version?: string | undefined;
2135
+ isTest: boolean;
2136
+ updatedAt: Date;
2137
+ costInCents: number;
2138
+ baseCostInCents: number;
2139
+ durationMs: number;
2141
2140
  metadata?: Record<string, any> | undefined;
2142
- startedAt?: Date | undefined;
2141
+ version?: string | undefined;
2143
2142
  idempotencyKey?: string | undefined;
2144
2143
  ttl?: string | undefined;
2145
2144
  batchId?: string | undefined;
2145
+ startedAt?: Date | undefined;
2146
2146
  finishedAt?: Date | undefined;
2147
2147
  delayedUntil?: Date | undefined;
2148
2148
  expiredAt?: Date | undefined;
2149
2149
  }, {
2150
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2150
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2151
2151
  id: string;
2152
- updatedAt: Date;
2153
- isTest: boolean;
2154
2152
  createdAt: Date;
2155
2153
  tags: string[];
2156
- durationMs: number;
2157
- costInCents: number;
2158
- baseCostInCents: number;
2159
2154
  taskIdentifier: string;
2160
2155
  depth: number;
2161
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2156
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2162
2157
  isQueued: boolean;
2163
2158
  isExecuting: boolean;
2164
2159
  isCompleted: boolean;
2165
2160
  isSuccess: boolean;
2166
2161
  isFailed: boolean;
2167
2162
  isCancelled: boolean;
2168
- version?: string | undefined;
2163
+ isTest: boolean;
2164
+ updatedAt: Date;
2165
+ costInCents: number;
2166
+ baseCostInCents: number;
2167
+ durationMs: number;
2169
2168
  metadata?: Record<string, any> | undefined;
2170
- startedAt?: Date | undefined;
2169
+ version?: string | undefined;
2171
2170
  idempotencyKey?: string | undefined;
2172
2171
  ttl?: string | undefined;
2173
2172
  batchId?: string | undefined;
2173
+ startedAt?: Date | undefined;
2174
2174
  finishedAt?: Date | undefined;
2175
2175
  delayedUntil?: Date | undefined;
2176
2176
  expiredAt?: Date | undefined;
@@ -2204,58 +2204,58 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2207
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2208
2208
  id: string;
2209
- updatedAt: Date;
2210
- isTest: boolean;
2211
2209
  createdAt: Date;
2212
2210
  tags: string[];
2213
- durationMs: number;
2214
- costInCents: number;
2215
- baseCostInCents: number;
2216
2211
  taskIdentifier: string;
2217
2212
  depth: number;
2218
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2213
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2219
2214
  isQueued: boolean;
2220
2215
  isExecuting: boolean;
2221
2216
  isCompleted: boolean;
2222
2217
  isSuccess: boolean;
2223
2218
  isFailed: boolean;
2224
2219
  isCancelled: boolean;
2225
- version?: string | undefined;
2220
+ isTest: boolean;
2221
+ updatedAt: Date;
2222
+ costInCents: number;
2223
+ baseCostInCents: number;
2224
+ durationMs: number;
2226
2225
  metadata?: Record<string, any> | undefined;
2227
- startedAt?: Date | undefined;
2226
+ version?: string | undefined;
2228
2227
  idempotencyKey?: string | undefined;
2229
2228
  ttl?: string | undefined;
2230
2229
  batchId?: string | undefined;
2230
+ startedAt?: Date | undefined;
2231
2231
  finishedAt?: Date | undefined;
2232
2232
  delayedUntil?: Date | undefined;
2233
2233
  expiredAt?: Date | undefined;
2234
2234
  }, {
2235
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2235
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2236
2236
  id: string;
2237
- updatedAt: Date;
2238
- isTest: boolean;
2239
2237
  createdAt: Date;
2240
2238
  tags: string[];
2241
- durationMs: number;
2242
- costInCents: number;
2243
- baseCostInCents: number;
2244
2239
  taskIdentifier: string;
2245
2240
  depth: number;
2246
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2241
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2247
2242
  isQueued: boolean;
2248
2243
  isExecuting: boolean;
2249
2244
  isCompleted: boolean;
2250
2245
  isSuccess: boolean;
2251
2246
  isFailed: boolean;
2252
2247
  isCancelled: boolean;
2253
- version?: string | undefined;
2248
+ isTest: boolean;
2249
+ updatedAt: Date;
2250
+ costInCents: number;
2251
+ baseCostInCents: number;
2252
+ durationMs: number;
2254
2253
  metadata?: Record<string, any> | undefined;
2255
- startedAt?: Date | undefined;
2254
+ version?: string | undefined;
2256
2255
  idempotencyKey?: string | undefined;
2257
2256
  ttl?: string | undefined;
2258
2257
  batchId?: string | undefined;
2258
+ startedAt?: Date | undefined;
2259
2259
  finishedAt?: Date | undefined;
2260
2260
  delayedUntil?: Date | undefined;
2261
2261
  expiredAt?: Date | undefined;
@@ -2289,234 +2289,234 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2292
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2293
2293
  id: string;
2294
- updatedAt: Date;
2295
- isTest: boolean;
2296
2294
  createdAt: Date;
2297
2295
  tags: string[];
2298
- durationMs: number;
2299
- costInCents: number;
2300
- baseCostInCents: number;
2301
2296
  taskIdentifier: string;
2302
2297
  depth: number;
2303
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2298
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2304
2299
  isQueued: boolean;
2305
2300
  isExecuting: boolean;
2306
2301
  isCompleted: boolean;
2307
2302
  isSuccess: boolean;
2308
2303
  isFailed: boolean;
2309
2304
  isCancelled: boolean;
2310
- version?: string | undefined;
2311
- metadata?: Record<string, any> | undefined;
2312
- startedAt?: Date | undefined;
2313
- idempotencyKey?: string | undefined;
2314
- ttl?: string | undefined;
2305
+ isTest: boolean;
2306
+ updatedAt: Date;
2307
+ costInCents: number;
2308
+ baseCostInCents: number;
2309
+ durationMs: number;
2310
+ metadata?: Record<string, any> | undefined;
2311
+ version?: string | undefined;
2312
+ idempotencyKey?: string | undefined;
2313
+ ttl?: string | undefined;
2315
2314
  batchId?: string | undefined;
2315
+ startedAt?: Date | undefined;
2316
2316
  finishedAt?: Date | undefined;
2317
2317
  delayedUntil?: Date | undefined;
2318
2318
  expiredAt?: Date | undefined;
2319
2319
  }, {
2320
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2320
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2321
2321
  id: string;
2322
- updatedAt: Date;
2323
- isTest: boolean;
2324
2322
  createdAt: Date;
2325
2323
  tags: string[];
2326
- durationMs: number;
2327
- costInCents: number;
2328
- baseCostInCents: number;
2329
2324
  taskIdentifier: string;
2330
2325
  depth: number;
2331
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2326
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2332
2327
  isQueued: boolean;
2333
2328
  isExecuting: boolean;
2334
2329
  isCompleted: boolean;
2335
2330
  isSuccess: boolean;
2336
2331
  isFailed: boolean;
2337
2332
  isCancelled: boolean;
2338
- version?: string | undefined;
2333
+ isTest: boolean;
2334
+ updatedAt: Date;
2335
+ costInCents: number;
2336
+ baseCostInCents: number;
2337
+ durationMs: number;
2339
2338
  metadata?: Record<string, any> | undefined;
2340
- startedAt?: Date | undefined;
2339
+ version?: string | undefined;
2341
2340
  idempotencyKey?: string | undefined;
2342
2341
  ttl?: string | undefined;
2343
2342
  batchId?: string | undefined;
2343
+ startedAt?: Date | undefined;
2344
2344
  finishedAt?: Date | undefined;
2345
2345
  delayedUntil?: Date | undefined;
2346
2346
  expiredAt?: Date | undefined;
2347
2347
  }>, "many">>;
2348
2348
  }, "strip", z.ZodTypeAny, {
2349
2349
  root?: {
2350
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2350
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2351
2351
  id: string;
2352
- updatedAt: Date;
2353
- isTest: boolean;
2354
2352
  createdAt: Date;
2355
2353
  tags: string[];
2356
- durationMs: number;
2357
- costInCents: number;
2358
- baseCostInCents: number;
2359
2354
  taskIdentifier: string;
2360
2355
  depth: number;
2361
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2356
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2362
2357
  isQueued: boolean;
2363
2358
  isExecuting: boolean;
2364
2359
  isCompleted: boolean;
2365
2360
  isSuccess: boolean;
2366
2361
  isFailed: boolean;
2367
2362
  isCancelled: boolean;
2368
- version?: string | undefined;
2363
+ isTest: boolean;
2364
+ updatedAt: Date;
2365
+ costInCents: number;
2366
+ baseCostInCents: number;
2367
+ durationMs: number;
2369
2368
  metadata?: Record<string, any> | undefined;
2370
- startedAt?: Date | undefined;
2369
+ version?: string | undefined;
2371
2370
  idempotencyKey?: string | undefined;
2372
2371
  ttl?: string | undefined;
2373
2372
  batchId?: string | undefined;
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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2379
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2380
2380
  id: string;
2381
- updatedAt: Date;
2382
- isTest: boolean;
2383
2381
  createdAt: Date;
2384
2382
  tags: string[];
2385
- durationMs: number;
2386
- costInCents: number;
2387
- baseCostInCents: number;
2388
2383
  taskIdentifier: string;
2389
2384
  depth: number;
2390
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2385
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2391
2386
  isQueued: boolean;
2392
2387
  isExecuting: boolean;
2393
2388
  isCompleted: boolean;
2394
2389
  isSuccess: boolean;
2395
2390
  isFailed: boolean;
2396
2391
  isCancelled: boolean;
2397
- version?: string | undefined;
2392
+ isTest: boolean;
2393
+ updatedAt: Date;
2394
+ costInCents: number;
2395
+ baseCostInCents: number;
2396
+ durationMs: number;
2398
2397
  metadata?: Record<string, any> | undefined;
2399
- startedAt?: Date | undefined;
2398
+ version?: string | undefined;
2400
2399
  idempotencyKey?: string | undefined;
2401
2400
  ttl?: string | undefined;
2402
2401
  batchId?: string | undefined;
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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2408
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2409
2409
  id: string;
2410
- updatedAt: Date;
2411
- isTest: boolean;
2412
2410
  createdAt: Date;
2413
2411
  tags: string[];
2414
- durationMs: number;
2415
- costInCents: number;
2416
- baseCostInCents: number;
2417
2412
  taskIdentifier: string;
2418
2413
  depth: number;
2419
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2414
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2420
2415
  isQueued: boolean;
2421
2416
  isExecuting: boolean;
2422
2417
  isCompleted: boolean;
2423
2418
  isSuccess: boolean;
2424
2419
  isFailed: boolean;
2425
2420
  isCancelled: boolean;
2426
- version?: string | undefined;
2421
+ isTest: boolean;
2422
+ updatedAt: Date;
2423
+ costInCents: number;
2424
+ baseCostInCents: number;
2425
+ durationMs: number;
2427
2426
  metadata?: Record<string, any> | undefined;
2428
- startedAt?: Date | undefined;
2427
+ version?: string | undefined;
2429
2428
  idempotencyKey?: string | undefined;
2430
2429
  ttl?: string | undefined;
2431
2430
  batchId?: string | undefined;
2431
+ startedAt?: Date | undefined;
2432
2432
  finishedAt?: Date | undefined;
2433
2433
  delayedUntil?: Date | undefined;
2434
2434
  expiredAt?: Date | undefined;
2435
2435
  }[] | undefined;
2436
2436
  }, {
2437
2437
  root?: {
2438
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2438
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2439
2439
  id: string;
2440
- updatedAt: Date;
2441
- isTest: boolean;
2442
2440
  createdAt: Date;
2443
2441
  tags: string[];
2444
- durationMs: number;
2445
- costInCents: number;
2446
- baseCostInCents: number;
2447
2442
  taskIdentifier: string;
2448
2443
  depth: number;
2449
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2444
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2450
2445
  isQueued: boolean;
2451
2446
  isExecuting: boolean;
2452
2447
  isCompleted: boolean;
2453
2448
  isSuccess: boolean;
2454
2449
  isFailed: boolean;
2455
2450
  isCancelled: boolean;
2456
- version?: string | undefined;
2451
+ isTest: boolean;
2452
+ updatedAt: Date;
2453
+ costInCents: number;
2454
+ baseCostInCents: number;
2455
+ durationMs: number;
2457
2456
  metadata?: Record<string, any> | undefined;
2458
- startedAt?: Date | undefined;
2457
+ version?: string | undefined;
2459
2458
  idempotencyKey?: string | undefined;
2460
2459
  ttl?: string | undefined;
2461
2460
  batchId?: string | undefined;
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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2467
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2468
2468
  id: string;
2469
- updatedAt: Date;
2470
- isTest: boolean;
2471
2469
  createdAt: Date;
2472
2470
  tags: string[];
2473
- durationMs: number;
2474
- costInCents: number;
2475
- baseCostInCents: number;
2476
2471
  taskIdentifier: string;
2477
2472
  depth: number;
2478
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2473
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2479
2474
  isQueued: boolean;
2480
2475
  isExecuting: boolean;
2481
2476
  isCompleted: boolean;
2482
2477
  isSuccess: boolean;
2483
2478
  isFailed: boolean;
2484
2479
  isCancelled: boolean;
2485
- version?: string | undefined;
2480
+ isTest: boolean;
2481
+ updatedAt: Date;
2482
+ costInCents: number;
2483
+ baseCostInCents: number;
2484
+ durationMs: number;
2486
2485
  metadata?: Record<string, any> | undefined;
2487
- startedAt?: Date | undefined;
2486
+ version?: string | undefined;
2488
2487
  idempotencyKey?: string | undefined;
2489
2488
  ttl?: string | undefined;
2490
2489
  batchId?: string | undefined;
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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2496
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2497
2497
  id: string;
2498
- updatedAt: Date;
2499
- isTest: boolean;
2500
2498
  createdAt: Date;
2501
2499
  tags: string[];
2502
- durationMs: number;
2503
- costInCents: number;
2504
- baseCostInCents: number;
2505
2500
  taskIdentifier: string;
2506
2501
  depth: number;
2507
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2502
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2508
2503
  isQueued: boolean;
2509
2504
  isExecuting: boolean;
2510
2505
  isCompleted: boolean;
2511
2506
  isSuccess: boolean;
2512
2507
  isFailed: boolean;
2513
2508
  isCancelled: boolean;
2514
- version?: string | undefined;
2509
+ isTest: boolean;
2510
+ updatedAt: Date;
2511
+ costInCents: number;
2512
+ baseCostInCents: number;
2513
+ durationMs: number;
2515
2514
  metadata?: Record<string, any> | undefined;
2516
- startedAt?: Date | undefined;
2515
+ version?: string | undefined;
2517
2516
  idempotencyKey?: string | undefined;
2518
2517
  ttl?: string | undefined;
2519
2518
  batchId?: string | undefined;
2519
+ startedAt?: Date | undefined;
2520
2520
  finishedAt?: Date | undefined;
2521
2521
  delayedUntil?: Date | undefined;
2522
2522
  expiredAt?: Date | undefined;
@@ -2543,29 +2543,29 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2543
2543
  stackTrace?: string | undefined;
2544
2544
  }>>;
2545
2545
  }, "strip", z.ZodTypeAny, {
2546
- status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2546
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2547
2547
  id: string;
2548
- updatedAt: Date;
2549
2548
  createdAt: Date;
2550
- startedAt?: Date | undefined;
2551
- completedAt?: Date | undefined;
2549
+ updatedAt: Date;
2552
2550
  error?: {
2553
2551
  message: string;
2554
2552
  name?: string | undefined;
2555
2553
  stackTrace?: string | undefined;
2556
2554
  } | undefined;
2555
+ startedAt?: Date | undefined;
2556
+ completedAt?: Date | undefined;
2557
2557
  }, {
2558
- status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2558
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2559
2559
  id: string;
2560
- updatedAt: Date;
2561
2560
  createdAt: Date;
2562
- startedAt?: Date | undefined;
2563
- completedAt?: Date | undefined;
2561
+ updatedAt: Date;
2564
2562
  error?: {
2565
2563
  message: string;
2566
2564
  name?: string | undefined;
2567
2565
  stackTrace?: string | undefined;
2568
2566
  } | undefined;
2567
+ startedAt?: Date | undefined;
2568
+ completedAt?: Date | undefined;
2569
2569
  }>>, "many">;
2570
2570
  attemptCount: z.ZodDefault<z.ZodNumber>;
2571
2571
  depth: z.ZodNumber;
@@ -2596,138 +2596,127 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2599
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2600
2600
  id: string;
2601
- attempts: ({
2602
- status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2603
- id: string;
2604
- updatedAt: Date;
2605
- createdAt: Date;
2606
- startedAt?: Date | undefined;
2607
- completedAt?: Date | undefined;
2608
- error?: {
2609
- message: string;
2610
- name?: string | undefined;
2611
- stackTrace?: string | undefined;
2612
- } | undefined;
2613
- } | undefined)[];
2614
- updatedAt: Date;
2615
- isTest: boolean;
2616
2601
  createdAt: Date;
2617
2602
  tags: string[];
2618
- durationMs: number;
2603
+ taskIdentifier: string;
2604
+ depth: number;
2605
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2606
+ isQueued: boolean;
2607
+ isExecuting: boolean;
2608
+ isCompleted: boolean;
2609
+ isSuccess: boolean;
2610
+ isFailed: boolean;
2611
+ isCancelled: boolean;
2612
+ isTest: boolean;
2613
+ updatedAt: Date;
2619
2614
  costInCents: number;
2620
2615
  baseCostInCents: number;
2621
- taskIdentifier: string;
2616
+ durationMs: number;
2622
2617
  relatedRuns: {
2623
2618
  root?: {
2624
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2619
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2625
2620
  id: string;
2626
- updatedAt: Date;
2627
- isTest: boolean;
2628
2621
  createdAt: Date;
2629
2622
  tags: string[];
2630
- durationMs: number;
2631
- costInCents: number;
2632
- baseCostInCents: number;
2633
2623
  taskIdentifier: string;
2634
2624
  depth: number;
2635
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2625
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2636
2626
  isQueued: boolean;
2637
2627
  isExecuting: boolean;
2638
2628
  isCompleted: boolean;
2639
2629
  isSuccess: boolean;
2640
2630
  isFailed: boolean;
2641
2631
  isCancelled: boolean;
2642
- version?: string | undefined;
2632
+ isTest: boolean;
2633
+ updatedAt: Date;
2634
+ costInCents: number;
2635
+ baseCostInCents: number;
2636
+ durationMs: number;
2643
2637
  metadata?: Record<string, any> | undefined;
2644
- startedAt?: Date | undefined;
2638
+ version?: string | undefined;
2645
2639
  idempotencyKey?: string | undefined;
2646
2640
  ttl?: string | undefined;
2647
2641
  batchId?: string | undefined;
2642
+ startedAt?: Date | undefined;
2648
2643
  finishedAt?: Date | undefined;
2649
2644
  delayedUntil?: Date | undefined;
2650
2645
  expiredAt?: Date | undefined;
2651
2646
  } | undefined;
2652
2647
  parent?: {
2653
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2648
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2654
2649
  id: string;
2655
- updatedAt: Date;
2656
- isTest: boolean;
2657
2650
  createdAt: Date;
2658
2651
  tags: string[];
2659
- durationMs: number;
2660
- costInCents: number;
2661
- baseCostInCents: number;
2662
2652
  taskIdentifier: string;
2663
2653
  depth: number;
2664
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2654
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2665
2655
  isQueued: boolean;
2666
2656
  isExecuting: boolean;
2667
2657
  isCompleted: boolean;
2668
2658
  isSuccess: boolean;
2669
2659
  isFailed: boolean;
2670
2660
  isCancelled: boolean;
2671
- version?: string | undefined;
2661
+ isTest: boolean;
2662
+ updatedAt: Date;
2663
+ costInCents: number;
2664
+ baseCostInCents: number;
2665
+ durationMs: number;
2672
2666
  metadata?: Record<string, any> | undefined;
2673
- startedAt?: Date | undefined;
2667
+ version?: string | undefined;
2674
2668
  idempotencyKey?: string | undefined;
2675
2669
  ttl?: string | undefined;
2676
2670
  batchId?: string | undefined;
2671
+ startedAt?: Date | undefined;
2677
2672
  finishedAt?: Date | undefined;
2678
2673
  delayedUntil?: Date | undefined;
2679
2674
  expiredAt?: Date | undefined;
2680
2675
  } | undefined;
2681
2676
  children?: {
2682
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2677
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2683
2678
  id: string;
2684
- updatedAt: Date;
2685
- isTest: boolean;
2686
2679
  createdAt: Date;
2687
2680
  tags: string[];
2688
- durationMs: number;
2689
- costInCents: number;
2690
- baseCostInCents: number;
2691
2681
  taskIdentifier: string;
2692
2682
  depth: number;
2693
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2683
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2694
2684
  isQueued: boolean;
2695
2685
  isExecuting: boolean;
2696
2686
  isCompleted: boolean;
2697
2687
  isSuccess: boolean;
2698
2688
  isFailed: boolean;
2699
2689
  isCancelled: boolean;
2700
- version?: string | undefined;
2690
+ isTest: boolean;
2691
+ updatedAt: Date;
2692
+ costInCents: number;
2693
+ baseCostInCents: number;
2694
+ durationMs: number;
2701
2695
  metadata?: Record<string, any> | undefined;
2702
- startedAt?: Date | undefined;
2696
+ version?: string | undefined;
2703
2697
  idempotencyKey?: string | undefined;
2704
2698
  ttl?: string | undefined;
2705
2699
  batchId?: string | undefined;
2700
+ startedAt?: Date | undefined;
2706
2701
  finishedAt?: Date | undefined;
2707
2702
  delayedUntil?: Date | undefined;
2708
2703
  expiredAt?: Date | undefined;
2709
2704
  }[] | undefined;
2710
2705
  };
2711
- depth: number;
2712
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2713
- isQueued: boolean;
2714
- isExecuting: boolean;
2715
- isCompleted: boolean;
2716
- isSuccess: boolean;
2717
- isFailed: boolean;
2718
- isCancelled: boolean;
2706
+ attempts: ({
2707
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2708
+ id: string;
2709
+ createdAt: Date;
2710
+ updatedAt: Date;
2711
+ error?: {
2712
+ message: string;
2713
+ name?: string | undefined;
2714
+ stackTrace?: string | undefined;
2715
+ } | undefined;
2716
+ startedAt?: Date | undefined;
2717
+ completedAt?: Date | undefined;
2718
+ } | undefined)[];
2719
2719
  attemptCount: number;
2720
- payload?: any;
2721
- version?: string | undefined;
2722
- metadata?: Record<string, any> | undefined;
2723
- startedAt?: Date | undefined;
2724
- output?: any;
2725
- error?: {
2726
- message: string;
2727
- name?: string | undefined;
2728
- stackTrace?: string | undefined;
2729
- } | undefined;
2730
- idempotencyKey?: string | undefined;
2731
2720
  schedule?: {
2732
2721
  id: string;
2733
2722
  generator: {
@@ -2738,145 +2727,145 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2738
2727
  externalId?: string | undefined;
2739
2728
  deduplicationKey?: string | undefined;
2740
2729
  } | undefined;
2730
+ metadata?: Record<string, any> | undefined;
2731
+ version?: string | undefined;
2732
+ payload?: any;
2733
+ idempotencyKey?: string | undefined;
2741
2734
  ttl?: string | undefined;
2742
- payloadPresignedUrl?: string | undefined;
2743
- outputPresignedUrl?: string | undefined;
2744
2735
  batchId?: string | undefined;
2736
+ error?: {
2737
+ message: string;
2738
+ name?: string | undefined;
2739
+ stackTrace?: string | undefined;
2740
+ } | undefined;
2741
+ startedAt?: Date | undefined;
2745
2742
  finishedAt?: Date | undefined;
2746
2743
  delayedUntil?: Date | undefined;
2747
2744
  expiredAt?: Date | undefined;
2745
+ payloadPresignedUrl?: string | undefined;
2746
+ output?: any;
2747
+ outputPresignedUrl?: string | undefined;
2748
2748
  }, {
2749
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2749
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2750
2750
  id: string;
2751
- attempts: ({
2752
- status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2753
- id: string;
2754
- updatedAt: Date;
2755
- createdAt: Date;
2756
- startedAt?: Date | undefined;
2757
- completedAt?: Date | undefined;
2758
- error?: {
2759
- message: string;
2760
- name?: string | undefined;
2761
- stackTrace?: string | undefined;
2762
- } | undefined;
2763
- } | undefined)[];
2764
- updatedAt: Date;
2765
- isTest: boolean;
2766
2751
  createdAt: Date;
2767
2752
  tags: string[];
2768
- durationMs: number;
2753
+ taskIdentifier: string;
2754
+ depth: number;
2755
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2756
+ isQueued: boolean;
2757
+ isExecuting: boolean;
2758
+ isCompleted: boolean;
2759
+ isSuccess: boolean;
2760
+ isFailed: boolean;
2761
+ isCancelled: boolean;
2762
+ isTest: boolean;
2763
+ updatedAt: Date;
2769
2764
  costInCents: number;
2770
2765
  baseCostInCents: number;
2771
- taskIdentifier: string;
2766
+ durationMs: number;
2772
2767
  relatedRuns: {
2773
2768
  root?: {
2774
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2769
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2775
2770
  id: string;
2776
- updatedAt: Date;
2777
- isTest: boolean;
2778
2771
  createdAt: Date;
2779
2772
  tags: string[];
2780
- durationMs: number;
2781
- costInCents: number;
2782
- baseCostInCents: number;
2783
2773
  taskIdentifier: string;
2784
2774
  depth: number;
2785
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2775
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2786
2776
  isQueued: boolean;
2787
2777
  isExecuting: boolean;
2788
2778
  isCompleted: boolean;
2789
2779
  isSuccess: boolean;
2790
2780
  isFailed: boolean;
2791
2781
  isCancelled: boolean;
2792
- version?: string | undefined;
2782
+ isTest: boolean;
2783
+ updatedAt: Date;
2784
+ costInCents: number;
2785
+ baseCostInCents: number;
2786
+ durationMs: number;
2793
2787
  metadata?: Record<string, any> | undefined;
2794
- startedAt?: Date | undefined;
2788
+ version?: string | undefined;
2795
2789
  idempotencyKey?: string | undefined;
2796
2790
  ttl?: string | undefined;
2797
2791
  batchId?: string | undefined;
2792
+ startedAt?: Date | undefined;
2798
2793
  finishedAt?: Date | undefined;
2799
2794
  delayedUntil?: Date | undefined;
2800
2795
  expiredAt?: Date | undefined;
2801
2796
  } | undefined;
2802
2797
  parent?: {
2803
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2798
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2804
2799
  id: string;
2805
- updatedAt: Date;
2806
- isTest: boolean;
2807
2800
  createdAt: Date;
2808
2801
  tags: string[];
2809
- durationMs: number;
2810
- costInCents: number;
2811
- baseCostInCents: number;
2812
2802
  taskIdentifier: string;
2813
2803
  depth: number;
2814
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2804
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2815
2805
  isQueued: boolean;
2816
2806
  isExecuting: boolean;
2817
2807
  isCompleted: boolean;
2818
2808
  isSuccess: boolean;
2819
2809
  isFailed: boolean;
2820
2810
  isCancelled: boolean;
2821
- version?: string | undefined;
2811
+ isTest: boolean;
2812
+ updatedAt: Date;
2813
+ costInCents: number;
2814
+ baseCostInCents: number;
2815
+ durationMs: number;
2822
2816
  metadata?: Record<string, any> | undefined;
2823
- startedAt?: Date | undefined;
2817
+ version?: string | undefined;
2824
2818
  idempotencyKey?: string | undefined;
2825
2819
  ttl?: string | undefined;
2826
2820
  batchId?: string | undefined;
2821
+ startedAt?: Date | undefined;
2827
2822
  finishedAt?: Date | undefined;
2828
2823
  delayedUntil?: Date | undefined;
2829
2824
  expiredAt?: Date | undefined;
2830
2825
  } | undefined;
2831
2826
  children?: {
2832
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2827
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2833
2828
  id: string;
2834
- updatedAt: Date;
2835
- isTest: boolean;
2836
2829
  createdAt: Date;
2837
2830
  tags: string[];
2838
- durationMs: number;
2839
- costInCents: number;
2840
- baseCostInCents: number;
2841
2831
  taskIdentifier: string;
2842
2832
  depth: number;
2843
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2833
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2844
2834
  isQueued: boolean;
2845
2835
  isExecuting: boolean;
2846
2836
  isCompleted: boolean;
2847
2837
  isSuccess: boolean;
2848
2838
  isFailed: boolean;
2849
2839
  isCancelled: boolean;
2850
- version?: string | undefined;
2851
- metadata?: Record<string, any> | undefined;
2852
- startedAt?: Date | undefined;
2853
- idempotencyKey?: string | undefined;
2854
- ttl?: string | undefined;
2855
- batchId?: string | undefined;
2856
- finishedAt?: Date | undefined;
2857
- delayedUntil?: Date | undefined;
2858
- expiredAt?: Date | undefined;
2859
- }[] | undefined;
2860
- };
2861
- depth: number;
2862
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2863
- isQueued: boolean;
2864
- isExecuting: boolean;
2865
- isCompleted: boolean;
2866
- isSuccess: boolean;
2867
- isFailed: boolean;
2868
- isCancelled: boolean;
2869
- payload?: any;
2870
- version?: string | undefined;
2871
- metadata?: Record<string, any> | undefined;
2872
- startedAt?: Date | undefined;
2873
- output?: any;
2874
- error?: {
2875
- message: string;
2876
- name?: string | undefined;
2877
- stackTrace?: string | undefined;
2878
- } | undefined;
2879
- idempotencyKey?: string | undefined;
2840
+ isTest: boolean;
2841
+ updatedAt: Date;
2842
+ costInCents: number;
2843
+ baseCostInCents: number;
2844
+ durationMs: number;
2845
+ metadata?: Record<string, any> | undefined;
2846
+ version?: string | undefined;
2847
+ idempotencyKey?: string | undefined;
2848
+ ttl?: string | undefined;
2849
+ batchId?: string | undefined;
2850
+ startedAt?: Date | undefined;
2851
+ finishedAt?: Date | undefined;
2852
+ delayedUntil?: Date | undefined;
2853
+ expiredAt?: Date | undefined;
2854
+ }[] | undefined;
2855
+ };
2856
+ attempts: ({
2857
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2858
+ id: string;
2859
+ createdAt: Date;
2860
+ updatedAt: Date;
2861
+ error?: {
2862
+ message: string;
2863
+ name?: string | undefined;
2864
+ stackTrace?: string | undefined;
2865
+ } | undefined;
2866
+ startedAt?: Date | undefined;
2867
+ completedAt?: Date | undefined;
2868
+ } | undefined)[];
2880
2869
  schedule?: {
2881
2870
  id: string;
2882
2871
  generator: {
@@ -2887,13 +2876,24 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2887
2876
  externalId?: string | undefined;
2888
2877
  deduplicationKey?: string | undefined;
2889
2878
  } | undefined;
2879
+ metadata?: Record<string, any> | undefined;
2880
+ version?: string | undefined;
2881
+ payload?: any;
2882
+ idempotencyKey?: string | undefined;
2890
2883
  ttl?: string | undefined;
2891
- payloadPresignedUrl?: string | undefined;
2892
- outputPresignedUrl?: string | undefined;
2893
2884
  batchId?: string | undefined;
2885
+ error?: {
2886
+ message: string;
2887
+ name?: string | undefined;
2888
+ stackTrace?: string | undefined;
2889
+ } | undefined;
2890
+ startedAt?: Date | undefined;
2894
2891
  finishedAt?: Date | undefined;
2895
2892
  delayedUntil?: Date | undefined;
2896
2893
  expiredAt?: Date | undefined;
2894
+ payloadPresignedUrl?: string | undefined;
2895
+ output?: any;
2896
+ outputPresignedUrl?: string | undefined;
2897
2897
  attemptCount?: number | undefined;
2898
2898
  }>;
2899
2899
  export type RetrieveRunResponse = z.infer<typeof RetrieveRunResponse>;
@@ -2903,12 +2903,12 @@ export declare const ListRunResponseItem: z.ZodObject<{
2903
2903
  name: z.ZodString;
2904
2904
  user: z.ZodOptional<z.ZodString>;
2905
2905
  }, "strip", z.ZodTypeAny, {
2906
- name: string;
2907
2906
  id: string;
2907
+ name: string;
2908
2908
  user?: string | undefined;
2909
2909
  }, {
2910
- name: string;
2911
2910
  id: string;
2911
+ name: string;
2912
2912
  user?: string | undefined;
2913
2913
  }>;
2914
2914
  id: z.ZodString;
@@ -2936,15 +2936,10 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2939
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2940
2940
  id: string;
2941
- updatedAt: Date;
2942
- isTest: boolean;
2943
2941
  createdAt: Date;
2944
2942
  tags: string[];
2945
- durationMs: number;
2946
- costInCents: number;
2947
- baseCostInCents: number;
2948
2943
  taskIdentifier: string;
2949
2944
  isQueued: boolean;
2950
2945
  isExecuting: boolean;
@@ -2952,29 +2947,29 @@ export declare const ListRunResponseItem: z.ZodObject<{
2952
2947
  isSuccess: boolean;
2953
2948
  isFailed: boolean;
2954
2949
  isCancelled: boolean;
2950
+ isTest: boolean;
2951
+ updatedAt: Date;
2952
+ costInCents: number;
2953
+ baseCostInCents: number;
2954
+ durationMs: number;
2955
2955
  env: {
2956
- name: string;
2957
2956
  id: string;
2957
+ name: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
- version?: string | undefined;
2961
2960
  metadata?: Record<string, any> | undefined;
2962
- startedAt?: Date | undefined;
2961
+ version?: string | undefined;
2963
2962
  idempotencyKey?: string | undefined;
2964
2963
  ttl?: string | undefined;
2964
+ startedAt?: Date | undefined;
2965
2965
  finishedAt?: Date | undefined;
2966
2966
  delayedUntil?: Date | undefined;
2967
2967
  expiredAt?: Date | undefined;
2968
2968
  }, {
2969
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2969
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2970
2970
  id: string;
2971
- updatedAt: Date;
2972
- isTest: boolean;
2973
2971
  createdAt: Date;
2974
2972
  tags: string[];
2975
- durationMs: number;
2976
- costInCents: number;
2977
- baseCostInCents: number;
2978
2973
  taskIdentifier: string;
2979
2974
  isQueued: boolean;
2980
2975
  isExecuting: boolean;
@@ -2982,16 +2977,21 @@ export declare const ListRunResponseItem: z.ZodObject<{
2982
2977
  isSuccess: boolean;
2983
2978
  isFailed: boolean;
2984
2979
  isCancelled: boolean;
2980
+ isTest: boolean;
2981
+ updatedAt: Date;
2982
+ costInCents: number;
2983
+ baseCostInCents: number;
2984
+ durationMs: number;
2985
2985
  env: {
2986
- name: string;
2987
2986
  id: string;
2987
+ name: string;
2988
2988
  user?: string | undefined;
2989
2989
  };
2990
- version?: string | undefined;
2991
2990
  metadata?: Record<string, any> | undefined;
2992
- startedAt?: Date | undefined;
2991
+ version?: string | undefined;
2993
2992
  idempotencyKey?: string | undefined;
2994
2993
  ttl?: string | undefined;
2994
+ startedAt?: Date | undefined;
2995
2995
  finishedAt?: Date | undefined;
2996
2996
  delayedUntil?: Date | undefined;
2997
2997
  expiredAt?: Date | undefined;
@@ -3004,12 +3004,12 @@ export declare const ListRunResponse: z.ZodObject<{
3004
3004
  name: z.ZodString;
3005
3005
  user: z.ZodOptional<z.ZodString>;
3006
3006
  }, "strip", z.ZodTypeAny, {
3007
- name: string;
3008
3007
  id: string;
3008
+ name: string;
3009
3009
  user?: string | undefined;
3010
3010
  }, {
3011
- name: string;
3012
3011
  id: string;
3012
+ name: string;
3013
3013
  user?: string | undefined;
3014
3014
  }>;
3015
3015
  id: z.ZodString;
@@ -3037,15 +3037,10 @@ 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: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3040
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3041
3041
  id: string;
3042
- updatedAt: Date;
3043
- isTest: boolean;
3044
3042
  createdAt: Date;
3045
3043
  tags: string[];
3046
- durationMs: number;
3047
- costInCents: number;
3048
- baseCostInCents: number;
3049
3044
  taskIdentifier: string;
3050
3045
  isQueued: boolean;
3051
3046
  isExecuting: boolean;
@@ -3053,29 +3048,29 @@ export declare const ListRunResponse: z.ZodObject<{
3053
3048
  isSuccess: boolean;
3054
3049
  isFailed: boolean;
3055
3050
  isCancelled: boolean;
3051
+ isTest: boolean;
3052
+ updatedAt: Date;
3053
+ costInCents: number;
3054
+ baseCostInCents: number;
3055
+ durationMs: number;
3056
3056
  env: {
3057
- name: string;
3058
3057
  id: string;
3058
+ name: string;
3059
3059
  user?: string | undefined;
3060
3060
  };
3061
- version?: string | undefined;
3062
3061
  metadata?: Record<string, any> | undefined;
3063
- startedAt?: Date | undefined;
3062
+ version?: string | undefined;
3064
3063
  idempotencyKey?: string | undefined;
3065
3064
  ttl?: string | undefined;
3065
+ startedAt?: Date | undefined;
3066
3066
  finishedAt?: Date | undefined;
3067
3067
  delayedUntil?: Date | undefined;
3068
3068
  expiredAt?: Date | undefined;
3069
3069
  }, {
3070
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3070
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3071
3071
  id: string;
3072
- updatedAt: Date;
3073
- isTest: boolean;
3074
3072
  createdAt: Date;
3075
3073
  tags: string[];
3076
- durationMs: number;
3077
- costInCents: number;
3078
- baseCostInCents: number;
3079
3074
  taskIdentifier: string;
3080
3075
  isQueued: boolean;
3081
3076
  isExecuting: boolean;
@@ -3083,16 +3078,21 @@ export declare const ListRunResponse: z.ZodObject<{
3083
3078
  isSuccess: boolean;
3084
3079
  isFailed: boolean;
3085
3080
  isCancelled: boolean;
3081
+ isTest: boolean;
3082
+ updatedAt: Date;
3083
+ costInCents: number;
3084
+ baseCostInCents: number;
3085
+ durationMs: number;
3086
3086
  env: {
3087
- name: string;
3088
3087
  id: string;
3088
+ name: string;
3089
3089
  user?: string | undefined;
3090
3090
  };
3091
- version?: string | undefined;
3092
3091
  metadata?: Record<string, any> | undefined;
3093
- startedAt?: Date | undefined;
3092
+ version?: string | undefined;
3094
3093
  idempotencyKey?: string | undefined;
3095
3094
  ttl?: string | undefined;
3095
+ startedAt?: Date | undefined;
3096
3096
  finishedAt?: Date | undefined;
3097
3097
  delayedUntil?: Date | undefined;
3098
3098
  expiredAt?: Date | undefined;
@@ -3109,15 +3109,10 @@ export declare const ListRunResponse: z.ZodObject<{
3109
3109
  }>;
3110
3110
  }, "strip", z.ZodTypeAny, {
3111
3111
  data: {
3112
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3112
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3113
3113
  id: string;
3114
- updatedAt: Date;
3115
- isTest: boolean;
3116
3114
  createdAt: Date;
3117
3115
  tags: string[];
3118
- durationMs: number;
3119
- costInCents: number;
3120
- baseCostInCents: number;
3121
3116
  taskIdentifier: string;
3122
3117
  isQueued: boolean;
3123
3118
  isExecuting: boolean;
@@ -3125,16 +3120,21 @@ export declare const ListRunResponse: z.ZodObject<{
3125
3120
  isSuccess: boolean;
3126
3121
  isFailed: boolean;
3127
3122
  isCancelled: boolean;
3123
+ isTest: boolean;
3124
+ updatedAt: Date;
3125
+ costInCents: number;
3126
+ baseCostInCents: number;
3127
+ durationMs: number;
3128
3128
  env: {
3129
- name: string;
3130
3129
  id: string;
3130
+ name: string;
3131
3131
  user?: string | undefined;
3132
3132
  };
3133
- version?: string | undefined;
3134
3133
  metadata?: Record<string, any> | undefined;
3135
- startedAt?: Date | undefined;
3134
+ version?: string | undefined;
3136
3135
  idempotencyKey?: string | undefined;
3137
3136
  ttl?: string | undefined;
3137
+ startedAt?: Date | undefined;
3138
3138
  finishedAt?: Date | undefined;
3139
3139
  delayedUntil?: Date | undefined;
3140
3140
  expiredAt?: Date | undefined;
@@ -3145,15 +3145,10 @@ export declare const ListRunResponse: z.ZodObject<{
3145
3145
  };
3146
3146
  }, {
3147
3147
  data: {
3148
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3148
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3149
3149
  id: string;
3150
- updatedAt: Date;
3151
- isTest: boolean;
3152
3150
  createdAt: Date;
3153
3151
  tags: string[];
3154
- durationMs: number;
3155
- costInCents: number;
3156
- baseCostInCents: number;
3157
3152
  taskIdentifier: string;
3158
3153
  isQueued: boolean;
3159
3154
  isExecuting: boolean;
@@ -3161,16 +3156,21 @@ export declare const ListRunResponse: z.ZodObject<{
3161
3156
  isSuccess: boolean;
3162
3157
  isFailed: boolean;
3163
3158
  isCancelled: boolean;
3159
+ isTest: boolean;
3160
+ updatedAt: Date;
3161
+ costInCents: number;
3162
+ baseCostInCents: number;
3163
+ durationMs: number;
3164
3164
  env: {
3165
- name: string;
3166
3165
  id: string;
3166
+ name: string;
3167
3167
  user?: string | undefined;
3168
3168
  };
3169
- version?: string | undefined;
3170
3169
  metadata?: Record<string, any> | undefined;
3171
- startedAt?: Date | undefined;
3170
+ version?: string | undefined;
3172
3171
  idempotencyKey?: string | undefined;
3173
3172
  ttl?: string | undefined;
3173
+ startedAt?: Date | undefined;
3174
3174
  finishedAt?: Date | undefined;
3175
3175
  delayedUntil?: Date | undefined;
3176
3176
  expiredAt?: Date | undefined;
@@ -3249,14 +3249,350 @@ export declare const EnvironmentVariables: z.ZodArray<z.ZodObject<{
3249
3249
  }>, "many">;
3250
3250
  export type EnvironmentVariables = z.infer<typeof EnvironmentVariables>;
3251
3251
  export declare const UpdateMetadataRequestBody: z.ZodObject<{
3252
- metadata: z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>;
3253
- metadataType: z.ZodOptional<z.ZodString>;
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<{
3263
+ type: z.ZodLiteral<"set">;
3264
+ key: z.ZodString;
3265
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3266
+ }, "strip", z.ZodTypeAny, {
3267
+ type: "set";
3268
+ value: import("../../schemas/json.js").DeserializedJson;
3269
+ key: string;
3270
+ }, {
3271
+ type: "set";
3272
+ value: import("../../schemas/json.js").DeserializedJson;
3273
+ key: string;
3274
+ }>, z.ZodObject<{
3275
+ type: z.ZodLiteral<"delete">;
3276
+ key: z.ZodString;
3277
+ }, "strip", z.ZodTypeAny, {
3278
+ type: "delete";
3279
+ key: string;
3280
+ }, {
3281
+ type: "delete";
3282
+ key: string;
3283
+ }>, z.ZodObject<{
3284
+ type: z.ZodLiteral<"append">;
3285
+ key: z.ZodString;
3286
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3287
+ }, "strip", z.ZodTypeAny, {
3288
+ type: "append";
3289
+ value: import("../../schemas/json.js").DeserializedJson;
3290
+ key: string;
3291
+ }, {
3292
+ type: "append";
3293
+ value: import("../../schemas/json.js").DeserializedJson;
3294
+ key: string;
3295
+ }>, z.ZodObject<{
3296
+ type: z.ZodLiteral<"remove">;
3297
+ key: z.ZodString;
3298
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3299
+ }, "strip", z.ZodTypeAny, {
3300
+ type: "remove";
3301
+ value: import("../../schemas/json.js").DeserializedJson;
3302
+ key: string;
3303
+ }, {
3304
+ type: "remove";
3305
+ value: import("../../schemas/json.js").DeserializedJson;
3306
+ key: string;
3307
+ }>, z.ZodObject<{
3308
+ type: z.ZodLiteral<"increment">;
3309
+ key: z.ZodString;
3310
+ value: z.ZodNumber;
3311
+ }, "strip", z.ZodTypeAny, {
3312
+ type: "increment";
3313
+ value: number;
3314
+ key: string;
3315
+ }, {
3316
+ type: "increment";
3317
+ value: number;
3318
+ key: string;
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>;
3323
+ }, "strip", z.ZodTypeAny, {
3324
+ type: "update";
3325
+ value: Record<string, unknown>;
3326
+ }, {
3327
+ type: "update";
3328
+ value: Record<string, unknown>;
3329
+ }>, z.ZodObject<{
3330
+ type: z.ZodLiteral<"set">;
3331
+ key: z.ZodString;
3332
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ type: "set";
3335
+ value: import("../../schemas/json.js").DeserializedJson;
3336
+ key: string;
3337
+ }, {
3338
+ type: "set";
3339
+ value: import("../../schemas/json.js").DeserializedJson;
3340
+ key: string;
3341
+ }>, z.ZodObject<{
3342
+ type: z.ZodLiteral<"delete">;
3343
+ key: z.ZodString;
3344
+ }, "strip", z.ZodTypeAny, {
3345
+ type: "delete";
3346
+ key: string;
3347
+ }, {
3348
+ type: "delete";
3349
+ key: string;
3350
+ }>, z.ZodObject<{
3351
+ type: z.ZodLiteral<"append">;
3352
+ key: z.ZodString;
3353
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3354
+ }, "strip", z.ZodTypeAny, {
3355
+ type: "append";
3356
+ value: import("../../schemas/json.js").DeserializedJson;
3357
+ key: string;
3358
+ }, {
3359
+ type: "append";
3360
+ value: import("../../schemas/json.js").DeserializedJson;
3361
+ key: string;
3362
+ }>, z.ZodObject<{
3363
+ type: z.ZodLiteral<"remove">;
3364
+ key: z.ZodString;
3365
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3366
+ }, "strip", z.ZodTypeAny, {
3367
+ type: "remove";
3368
+ value: import("../../schemas/json.js").DeserializedJson;
3369
+ key: string;
3370
+ }, {
3371
+ type: "remove";
3372
+ value: import("../../schemas/json.js").DeserializedJson;
3373
+ key: string;
3374
+ }>, z.ZodObject<{
3375
+ type: z.ZodLiteral<"increment">;
3376
+ key: z.ZodString;
3377
+ value: z.ZodNumber;
3378
+ }, "strip", z.ZodTypeAny, {
3379
+ type: "increment";
3380
+ value: number;
3381
+ key: string;
3382
+ }, {
3383
+ type: "increment";
3384
+ value: number;
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;
3441
+ }>, z.ZodObject<{
3442
+ type: z.ZodLiteral<"increment">;
3443
+ key: z.ZodString;
3444
+ value: z.ZodNumber;
3445
+ }, "strip", z.ZodTypeAny, {
3446
+ type: "increment";
3447
+ value: number;
3448
+ key: string;
3449
+ }, {
3450
+ type: "increment";
3451
+ value: number;
3452
+ key: string;
3453
+ }>]>, "many">>;
3254
3454
  }, "strip", z.ZodTypeAny, {
3255
- metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3256
- metadataType?: string | undefined;
3455
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3456
+ operations?: ({
3457
+ type: "update";
3458
+ value: Record<string, unknown>;
3459
+ } | {
3460
+ type: "set";
3461
+ value: import("../../schemas/json.js").DeserializedJson;
3462
+ key: string;
3463
+ } | {
3464
+ type: "delete";
3465
+ key: string;
3466
+ } | {
3467
+ type: "append";
3468
+ value: import("../../schemas/json.js").DeserializedJson;
3469
+ key: string;
3470
+ } | {
3471
+ type: "remove";
3472
+ value: import("../../schemas/json.js").DeserializedJson;
3473
+ key: string;
3474
+ } | {
3475
+ type: "increment";
3476
+ value: number;
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;
3497
+ } | {
3498
+ type: "increment";
3499
+ value: number;
3500
+ key: string;
3501
+ })[] | undefined;
3502
+ rootOperations?: ({
3503
+ type: "update";
3504
+ value: Record<string, unknown>;
3505
+ } | {
3506
+ type: "set";
3507
+ value: import("../../schemas/json.js").DeserializedJson;
3508
+ key: string;
3509
+ } | {
3510
+ type: "delete";
3511
+ key: string;
3512
+ } | {
3513
+ type: "append";
3514
+ value: import("../../schemas/json.js").DeserializedJson;
3515
+ key: string;
3516
+ } | {
3517
+ type: "remove";
3518
+ value: import("../../schemas/json.js").DeserializedJson;
3519
+ key: string;
3520
+ } | {
3521
+ type: "increment";
3522
+ value: number;
3523
+ key: string;
3524
+ })[] | undefined;
3257
3525
  }, {
3258
- metadata: Record<string, import("../../schemas/json.js").DeserializedJson>;
3259
- metadataType?: string | undefined;
3526
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3527
+ operations?: ({
3528
+ type: "update";
3529
+ value: Record<string, unknown>;
3530
+ } | {
3531
+ type: "set";
3532
+ value: import("../../schemas/json.js").DeserializedJson;
3533
+ key: string;
3534
+ } | {
3535
+ type: "delete";
3536
+ key: string;
3537
+ } | {
3538
+ type: "append";
3539
+ value: import("../../schemas/json.js").DeserializedJson;
3540
+ key: string;
3541
+ } | {
3542
+ type: "remove";
3543
+ value: import("../../schemas/json.js").DeserializedJson;
3544
+ key: string;
3545
+ } | {
3546
+ type: "increment";
3547
+ value: number;
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;
3568
+ } | {
3569
+ type: "increment";
3570
+ value: number;
3571
+ key: string;
3572
+ })[] | undefined;
3573
+ rootOperations?: ({
3574
+ type: "update";
3575
+ value: Record<string, unknown>;
3576
+ } | {
3577
+ type: "set";
3578
+ value: import("../../schemas/json.js").DeserializedJson;
3579
+ key: string;
3580
+ } | {
3581
+ type: "delete";
3582
+ key: string;
3583
+ } | {
3584
+ type: "append";
3585
+ value: import("../../schemas/json.js").DeserializedJson;
3586
+ key: string;
3587
+ } | {
3588
+ type: "remove";
3589
+ value: import("../../schemas/json.js").DeserializedJson;
3590
+ key: string;
3591
+ } | {
3592
+ type: "increment";
3593
+ value: number;
3594
+ key: string;
3595
+ })[] | undefined;
3260
3596
  }>;
3261
3597
  export type UpdateMetadataRequestBody = z.infer<typeof UpdateMetadataRequestBody>;
3262
3598
  export declare const UpdateMetadataResponseBody: z.ZodObject<{
@@ -3270,13 +3606,13 @@ export type UpdateMetadataResponseBody = z.infer<typeof UpdateMetadataResponseBo
3270
3606
  export declare const SubscribeRunRawShape: z.ZodObject<{
3271
3607
  id: z.ZodString;
3272
3608
  idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3273
- createdAt: z.ZodDate;
3274
- updatedAt: z.ZodDate;
3275
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3276
- delayUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3277
- queuedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3278
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3279
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3609
+ createdAt: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodDate>;
3610
+ updatedAt: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodDate>;
3611
+ startedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3612
+ delayUntil: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3613
+ queuedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3614
+ expiredAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3615
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3280
3616
  taskIdentifier: z.ZodString;
3281
3617
  friendlyId: z.ZodString;
3282
3618
  number: z.ZodNumber;
@@ -3293,80 +3629,140 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3293
3629
  output: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3294
3630
  outputType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3295
3631
  runTags: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
3296
- error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3632
+ error: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3633
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
3634
+ name: z.ZodString;
3297
3635
  message: z.ZodString;
3298
- name: z.ZodOptional<z.ZodString>;
3299
- stackTrace: z.ZodOptional<z.ZodString>;
3636
+ stackTrace: z.ZodString;
3300
3637
  }, "strip", z.ZodTypeAny, {
3301
3638
  message: string;
3302
- name?: string | undefined;
3303
- stackTrace?: string | undefined;
3639
+ type: "BUILT_IN_ERROR";
3640
+ name: string;
3641
+ stackTrace: string;
3304
3642
  }, {
3305
3643
  message: string;
3306
- name?: string | undefined;
3644
+ type: "BUILT_IN_ERROR";
3645
+ name: string;
3646
+ stackTrace: string;
3647
+ }>, z.ZodObject<{
3648
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
3649
+ raw: z.ZodString;
3650
+ }, "strip", z.ZodTypeAny, {
3651
+ type: "CUSTOM_ERROR";
3652
+ raw: string;
3653
+ }, {
3654
+ type: "CUSTOM_ERROR";
3655
+ raw: string;
3656
+ }>, z.ZodObject<{
3657
+ type: z.ZodLiteral<"STRING_ERROR">;
3658
+ raw: z.ZodString;
3659
+ }, "strip", z.ZodTypeAny, {
3660
+ type: "STRING_ERROR";
3661
+ raw: string;
3662
+ }, {
3663
+ type: "STRING_ERROR";
3664
+ raw: string;
3665
+ }>, z.ZodObject<{
3666
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
3667
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "COULD_NOT_IMPORT_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_PROCESS_SIGKILL_TIMEOUT", "TASK_PROCESS_SIGSEGV", "TASK_PROCESS_SIGTERM", "TASK_PROCESS_OOM_KILLED", "TASK_PROCESS_MAYBE_OOM_KILLED", "TASK_RUN_CANCELLED", "TASK_INPUT_ERROR", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
3668
+ message: z.ZodOptional<z.ZodString>;
3669
+ stackTrace: z.ZodOptional<z.ZodString>;
3670
+ }, "strip", z.ZodTypeAny, {
3671
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3672
+ type: "INTERNAL_ERROR";
3673
+ message?: string | undefined;
3307
3674
  stackTrace?: string | undefined;
3308
- }>>>;
3675
+ }, {
3676
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3677
+ type: "INTERNAL_ERROR";
3678
+ message?: string | undefined;
3679
+ stackTrace?: string | undefined;
3680
+ }>]>>>;
3309
3681
  }, "strip", z.ZodTypeAny, {
3310
3682
  number: number;
3311
3683
  status: string;
3312
3684
  id: string;
3313
- updatedAt: Date;
3314
- isTest: boolean;
3315
3685
  createdAt: Date;
3686
+ taskIdentifier: string;
3687
+ isTest: boolean;
3688
+ updatedAt: Date;
3316
3689
  costInCents: number;
3317
3690
  baseCostInCents: number;
3318
- taskIdentifier: string;
3319
3691
  friendlyId: string;
3320
3692
  usageDurationMs: number;
3321
3693
  runTags: string[] | null;
3322
- payload?: string | null | undefined;
3323
3694
  metadata?: string | null | undefined;
3324
- startedAt?: Date | null | undefined;
3325
- completedAt?: Date | null | undefined;
3326
- delayUntil?: Date | null | undefined;
3327
- output?: string | null | undefined;
3695
+ payload?: string | null | undefined;
3696
+ idempotencyKey?: string | null | undefined;
3697
+ payloadType?: string | null | undefined;
3698
+ ttl?: string | null | undefined;
3699
+ metadataType?: string | null | undefined;
3328
3700
  error?: {
3329
3701
  message: string;
3330
- name?: string | undefined;
3702
+ type: "BUILT_IN_ERROR";
3703
+ name: string;
3704
+ stackTrace: string;
3705
+ } | {
3706
+ type: "CUSTOM_ERROR";
3707
+ raw: string;
3708
+ } | {
3709
+ type: "STRING_ERROR";
3710
+ raw: string;
3711
+ } | {
3712
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3713
+ type: "INTERNAL_ERROR";
3714
+ message?: string | undefined;
3331
3715
  stackTrace?: string | undefined;
3332
3716
  } | null | undefined;
3333
- idempotencyKey?: string | null | undefined;
3334
- payloadType?: string | null | undefined;
3717
+ startedAt?: string | Date | null | undefined;
3718
+ expiredAt?: string | Date | null | undefined;
3719
+ output?: string | null | undefined;
3720
+ completedAt?: string | Date | null | undefined;
3721
+ delayUntil?: string | Date | null | undefined;
3722
+ queuedAt?: string | Date | null | undefined;
3335
3723
  outputType?: string | null | undefined;
3336
- ttl?: string | null | undefined;
3337
- expiredAt?: Date | null | undefined;
3338
- metadataType?: string | null | undefined;
3339
- queuedAt?: Date | null | undefined;
3340
3724
  }, {
3341
3725
  number: number;
3342
3726
  status: string;
3343
3727
  id: string;
3344
- updatedAt: Date;
3728
+ createdAt: string;
3729
+ taskIdentifier: string;
3345
3730
  isTest: boolean;
3346
- createdAt: Date;
3731
+ updatedAt: string;
3347
3732
  costInCents: number;
3348
3733
  baseCostInCents: number;
3349
- taskIdentifier: string;
3350
3734
  friendlyId: string;
3351
3735
  usageDurationMs: number;
3352
- payload?: string | null | undefined;
3353
3736
  metadata?: string | null | undefined;
3354
- startedAt?: Date | null | undefined;
3355
- completedAt?: Date | null | undefined;
3356
- delayUntil?: Date | null | undefined;
3357
- output?: string | null | undefined;
3737
+ payload?: string | null | undefined;
3738
+ idempotencyKey?: string | null | undefined;
3739
+ payloadType?: string | null | undefined;
3740
+ ttl?: string | null | undefined;
3741
+ metadataType?: string | null | undefined;
3358
3742
  error?: {
3359
3743
  message: string;
3360
- name?: string | undefined;
3744
+ type: "BUILT_IN_ERROR";
3745
+ name: string;
3746
+ stackTrace: string;
3747
+ } | {
3748
+ type: "CUSTOM_ERROR";
3749
+ raw: string;
3750
+ } | {
3751
+ type: "STRING_ERROR";
3752
+ raw: string;
3753
+ } | {
3754
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3755
+ type: "INTERNAL_ERROR";
3756
+ message?: string | undefined;
3361
3757
  stackTrace?: string | undefined;
3362
3758
  } | null | undefined;
3363
- idempotencyKey?: string | null | undefined;
3364
- payloadType?: string | null | undefined;
3759
+ startedAt?: string | null | undefined;
3760
+ expiredAt?: string | null | undefined;
3761
+ output?: string | null | undefined;
3762
+ completedAt?: string | null | undefined;
3763
+ delayUntil?: string | null | undefined;
3764
+ queuedAt?: string | null | undefined;
3365
3765
  outputType?: string | null | undefined;
3366
- ttl?: string | null | undefined;
3367
- expiredAt?: Date | null | undefined;
3368
- metadataType?: string | null | undefined;
3369
- queuedAt?: Date | null | undefined;
3370
3766
  runTags?: string[] | null | undefined;
3371
3767
  }>;
3372
3768
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
@@ -3382,16 +3778,39 @@ export declare const RetrieveBatchResponse: z.ZodObject<{
3382
3778
  }, "strip", z.ZodTypeAny, {
3383
3779
  status: "PENDING" | "COMPLETED";
3384
3780
  id: string;
3385
- updatedAt: Date;
3386
3781
  createdAt: Date;
3782
+ updatedAt: Date;
3387
3783
  runCount: number;
3388
3784
  idempotencyKey?: string | undefined;
3389
3785
  }, {
3390
3786
  status: "PENDING" | "COMPLETED";
3391
3787
  id: string;
3392
- updatedAt: Date;
3393
3788
  createdAt: Date;
3789
+ updatedAt: Date;
3394
3790
  runCount: number;
3395
3791
  idempotencyKey?: string | undefined;
3396
3792
  }>;
3397
3793
  export type RetrieveBatchResponse = z.infer<typeof RetrieveBatchResponse>;
3794
+ export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{
3795
+ id: z.ZodString;
3796
+ runId: z.ZodString;
3797
+ sequence: z.ZodNumber;
3798
+ key: z.ZodString;
3799
+ value: z.ZodString;
3800
+ createdAt: z.ZodDate;
3801
+ }, "strip", z.ZodTypeAny, {
3802
+ value: string;
3803
+ id: string;
3804
+ createdAt: Date;
3805
+ key: string;
3806
+ runId: string;
3807
+ sequence: number;
3808
+ }, {
3809
+ value: string;
3810
+ id: string;
3811
+ createdAt: Date;
3812
+ key: string;
3813
+ runId: string;
3814
+ sequence: number;
3815
+ }>;
3816
+ export type SubscribeRealtimeStreamChunkRawShape = z.infer<typeof SubscribeRealtimeStreamChunkRawShape>;