@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,38 +26,38 @@ export declare const GetProjectResponseBody: z.ZodObject<{
26
26
  createdAt: z.ZodDate;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  id: string;
29
- title: string;
30
- slug: string;
31
29
  createdAt: Date;
30
+ slug: string;
31
+ title: string;
32
32
  }, {
33
33
  id: string;
34
- title: string;
35
- slug: string;
36
34
  createdAt: Date;
35
+ slug: string;
36
+ title: string;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  name: string;
40
40
  id: string;
41
+ createdAt: Date;
41
42
  slug: string;
42
43
  organization: {
43
44
  id: string;
44
- title: string;
45
- slug: string;
46
45
  createdAt: Date;
46
+ slug: string;
47
+ title: string;
47
48
  };
48
- createdAt: Date;
49
49
  externalRef: string;
50
50
  }, {
51
51
  name: string;
52
52
  id: string;
53
+ createdAt: Date;
53
54
  slug: string;
54
55
  organization: {
55
56
  id: string;
56
- title: string;
57
- slug: string;
58
57
  createdAt: Date;
58
+ slug: string;
59
+ title: string;
59
60
  };
60
- createdAt: Date;
61
61
  externalRef: string;
62
62
  }>;
63
63
  export type GetProjectResponseBody = z.infer<typeof GetProjectResponseBody>;
@@ -74,38 +74,38 @@ 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
- slug: string;
79
77
  createdAt: Date;
78
+ slug: string;
79
+ title: string;
80
80
  }, {
81
81
  id: string;
82
- title: string;
83
- slug: string;
84
82
  createdAt: Date;
83
+ slug: string;
84
+ title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  name: string;
88
88
  id: string;
89
+ createdAt: Date;
89
90
  slug: string;
90
91
  organization: {
91
92
  id: string;
92
- title: string;
93
- slug: string;
94
93
  createdAt: Date;
94
+ slug: string;
95
+ title: string;
95
96
  };
96
- createdAt: Date;
97
97
  externalRef: string;
98
98
  }, {
99
99
  name: string;
100
100
  id: string;
101
+ createdAt: Date;
101
102
  slug: string;
102
103
  organization: {
103
104
  id: string;
104
- title: string;
105
- slug: string;
106
105
  createdAt: Date;
106
+ slug: string;
107
+ title: string;
107
108
  };
108
- createdAt: Date;
109
109
  externalRef: string;
110
110
  }>, "many">;
111
111
  export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
@@ -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 | 4 | 0.25 | 0.5 | undefined;
175
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
176
176
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
177
177
  }, {
178
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
179
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
178
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
179
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
180
180
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
181
181
  }>>;
182
182
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -195,56 +195,56 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
195
195
  id: string;
196
196
  filePath: string;
197
197
  exportName: string;
198
- description?: string | undefined;
199
- schedule?: {
200
- cron: string;
201
- timezone: string;
202
- } | undefined;
203
- retry?: {
204
- factor?: number | undefined;
205
- minTimeoutInMs?: number | undefined;
206
- maxTimeoutInMs?: number | undefined;
207
- randomize?: boolean | undefined;
208
- maxAttempts?: number | undefined;
209
- } | undefined;
210
198
  maxDuration?: number | undefined;
211
199
  queue?: {
212
200
  name?: string | undefined;
213
201
  concurrencyLimit?: number | undefined;
214
202
  } | undefined;
215
203
  machine?: {
216
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
217
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
204
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
205
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
218
206
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
219
207
  } | undefined;
220
- triggerSource?: string | undefined;
221
- }, {
222
- id: string;
223
- filePath: string;
224
- exportName: string;
225
- description?: string | undefined;
226
- schedule?: {
227
- cron: string;
228
- timezone: string;
229
- } | undefined;
230
208
  retry?: {
209
+ maxAttempts?: number | undefined;
231
210
  factor?: number | undefined;
232
211
  minTimeoutInMs?: number | undefined;
233
212
  maxTimeoutInMs?: number | undefined;
234
213
  randomize?: boolean | undefined;
235
- maxAttempts?: number | undefined;
236
214
  } | undefined;
215
+ description?: string | undefined;
216
+ triggerSource?: string | undefined;
217
+ schedule?: {
218
+ cron: string;
219
+ timezone: string;
220
+ } | undefined;
221
+ }, {
222
+ id: string;
223
+ filePath: string;
224
+ exportName: string;
237
225
  maxDuration?: number | undefined;
238
226
  queue?: {
239
227
  name?: string | undefined;
240
228
  concurrencyLimit?: number | undefined;
241
229
  } | undefined;
242
230
  machine?: {
243
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
244
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
231
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
232
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
245
233
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
246
234
  } | undefined;
235
+ retry?: {
236
+ maxAttempts?: number | undefined;
237
+ factor?: number | undefined;
238
+ minTimeoutInMs?: number | undefined;
239
+ maxTimeoutInMs?: number | undefined;
240
+ randomize?: boolean | undefined;
241
+ } | undefined;
242
+ description?: string | undefined;
247
243
  triggerSource?: string | undefined;
244
+ schedule?: {
245
+ cron: string;
246
+ timezone: string;
247
+ } | undefined;
248
248
  }>, "many">;
249
249
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
250
  filePath: z.ZodString;
@@ -263,36 +263,36 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
263
263
  taskIds: string[];
264
264
  }>, "many">>;
265
265
  }, "strip", z.ZodTypeAny, {
266
+ contentHash: string;
267
+ packageVersion: string;
266
268
  tasks: {
267
269
  id: string;
268
270
  filePath: string;
269
271
  exportName: string;
270
- description?: string | undefined;
271
- schedule?: {
272
- cron: string;
273
- timezone: string;
274
- } | undefined;
275
- retry?: {
276
- factor?: number | undefined;
277
- minTimeoutInMs?: number | undefined;
278
- maxTimeoutInMs?: number | undefined;
279
- randomize?: boolean | undefined;
280
- maxAttempts?: number | undefined;
281
- } | undefined;
282
272
  maxDuration?: number | undefined;
283
273
  queue?: {
284
274
  name?: string | undefined;
285
275
  concurrencyLimit?: number | undefined;
286
276
  } | undefined;
287
277
  machine?: {
288
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
289
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
278
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
279
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
290
280
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
291
281
  } | undefined;
282
+ retry?: {
283
+ maxAttempts?: number | undefined;
284
+ factor?: number | undefined;
285
+ minTimeoutInMs?: number | undefined;
286
+ maxTimeoutInMs?: number | undefined;
287
+ randomize?: boolean | undefined;
288
+ } | undefined;
289
+ description?: string | undefined;
292
290
  triggerSource?: string | undefined;
291
+ schedule?: {
292
+ cron: string;
293
+ timezone: string;
294
+ } | undefined;
293
295
  }[];
294
- contentHash: string;
295
- packageVersion: string;
296
296
  cliPackageVersion?: string | undefined;
297
297
  sourceFiles?: {
298
298
  filePath: string;
@@ -301,36 +301,36 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
301
301
  taskIds: string[];
302
302
  }[] | undefined;
303
303
  }, {
304
+ contentHash: string;
305
+ packageVersion: string;
304
306
  tasks: {
305
307
  id: string;
306
308
  filePath: string;
307
309
  exportName: string;
308
- description?: string | undefined;
309
- schedule?: {
310
- cron: string;
311
- timezone: string;
312
- } | undefined;
313
- retry?: {
314
- factor?: number | undefined;
315
- minTimeoutInMs?: number | undefined;
316
- maxTimeoutInMs?: number | undefined;
317
- randomize?: boolean | undefined;
318
- maxAttempts?: number | undefined;
319
- } | undefined;
320
310
  maxDuration?: number | undefined;
321
311
  queue?: {
322
312
  name?: string | undefined;
323
313
  concurrencyLimit?: number | undefined;
324
314
  } | undefined;
325
315
  machine?: {
326
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
327
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
316
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
317
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
328
318
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
329
319
  } | undefined;
320
+ retry?: {
321
+ maxAttempts?: number | undefined;
322
+ factor?: number | undefined;
323
+ minTimeoutInMs?: number | undefined;
324
+ maxTimeoutInMs?: number | undefined;
325
+ randomize?: boolean | undefined;
326
+ } | undefined;
327
+ description?: string | undefined;
330
328
  triggerSource?: string | undefined;
329
+ schedule?: {
330
+ cron: string;
331
+ timezone: string;
332
+ } | undefined;
331
333
  }[];
332
- contentHash: string;
333
- packageVersion: string;
334
334
  cliPackageVersion?: string | undefined;
335
335
  sourceFiles?: {
336
336
  filePath: string;
@@ -342,36 +342,36 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
342
342
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
343
343
  }, "strip", z.ZodTypeAny, {
344
344
  metadata: {
345
+ contentHash: string;
346
+ packageVersion: string;
345
347
  tasks: {
346
348
  id: string;
347
349
  filePath: string;
348
350
  exportName: string;
349
- description?: string | undefined;
350
- schedule?: {
351
- cron: string;
352
- timezone: string;
353
- } | undefined;
354
- retry?: {
355
- factor?: number | undefined;
356
- minTimeoutInMs?: number | undefined;
357
- maxTimeoutInMs?: number | undefined;
358
- randomize?: boolean | undefined;
359
- maxAttempts?: number | undefined;
360
- } | undefined;
361
351
  maxDuration?: number | undefined;
362
352
  queue?: {
363
353
  name?: string | undefined;
364
354
  concurrencyLimit?: number | undefined;
365
355
  } | undefined;
366
356
  machine?: {
367
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
368
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
357
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
358
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
369
359
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
370
360
  } | undefined;
361
+ retry?: {
362
+ maxAttempts?: number | undefined;
363
+ factor?: number | undefined;
364
+ minTimeoutInMs?: number | undefined;
365
+ maxTimeoutInMs?: number | undefined;
366
+ randomize?: boolean | undefined;
367
+ } | undefined;
368
+ description?: string | undefined;
371
369
  triggerSource?: string | undefined;
370
+ schedule?: {
371
+ cron: string;
372
+ timezone: string;
373
+ } | undefined;
372
374
  }[];
373
- contentHash: string;
374
- packageVersion: string;
375
375
  cliPackageVersion?: string | undefined;
376
376
  sourceFiles?: {
377
377
  filePath: string;
@@ -384,36 +384,36 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
384
384
  supportsLazyAttempts?: boolean | undefined;
385
385
  }, {
386
386
  metadata: {
387
+ contentHash: string;
388
+ packageVersion: string;
387
389
  tasks: {
388
390
  id: string;
389
391
  filePath: string;
390
392
  exportName: string;
391
- description?: string | undefined;
392
- schedule?: {
393
- cron: string;
394
- timezone: string;
395
- } | undefined;
396
- retry?: {
397
- factor?: number | undefined;
398
- minTimeoutInMs?: number | undefined;
399
- maxTimeoutInMs?: number | undefined;
400
- randomize?: boolean | undefined;
401
- maxAttempts?: number | undefined;
402
- } | undefined;
403
393
  maxDuration?: number | undefined;
404
394
  queue?: {
405
395
  name?: string | undefined;
406
396
  concurrencyLimit?: number | undefined;
407
397
  } | undefined;
408
398
  machine?: {
409
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
410
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
399
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
400
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
411
401
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
412
402
  } | undefined;
403
+ retry?: {
404
+ maxAttempts?: number | undefined;
405
+ factor?: number | undefined;
406
+ minTimeoutInMs?: number | undefined;
407
+ maxTimeoutInMs?: number | undefined;
408
+ randomize?: boolean | undefined;
409
+ } | undefined;
410
+ description?: string | undefined;
413
411
  triggerSource?: string | undefined;
412
+ schedule?: {
413
+ cron: string;
414
+ timezone: string;
415
+ } | undefined;
414
416
  }[];
415
- contentHash: string;
416
- packageVersion: string;
417
417
  cliPackageVersion?: string | undefined;
418
418
  sourceFiles?: {
419
419
  filePath: string;
@@ -431,12 +431,12 @@ 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;
435
+ version: string;
436
436
  contentHash: string;
437
437
  }, {
438
- version: string;
439
438
  id: string;
439
+ version: string;
440
440
  contentHash: string;
441
441
  }>;
442
442
  export type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
@@ -475,9 +475,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
475
475
  maxDuration: z.ZodOptional<z.ZodNumber>;
476
476
  }, "strip", z.ZodTypeAny, {
477
477
  metadata?: any;
478
- idempotencyKey?: string | undefined;
479
478
  payloadType?: string | undefined;
480
479
  tags?: string | string[] | undefined;
480
+ idempotencyKey?: string | undefined;
481
481
  maxAttempts?: number | undefined;
482
482
  maxDuration?: number | undefined;
483
483
  queue?: {
@@ -497,9 +497,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
497
497
  metadataType?: string | undefined;
498
498
  }, {
499
499
  metadata?: any;
500
- idempotencyKey?: string | undefined;
501
500
  payloadType?: string | undefined;
502
501
  tags?: string | string[] | undefined;
502
+ idempotencyKey?: string | undefined;
503
503
  maxAttempts?: number | undefined;
504
504
  maxDuration?: number | undefined;
505
505
  queue?: {
@@ -521,9 +521,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
521
521
  }, "strip", z.ZodTypeAny, {
522
522
  options?: {
523
523
  metadata?: any;
524
- idempotencyKey?: string | undefined;
525
524
  payloadType?: string | undefined;
526
525
  tags?: string | string[] | undefined;
526
+ idempotencyKey?: string | undefined;
527
527
  maxAttempts?: number | undefined;
528
528
  maxDuration?: number | undefined;
529
529
  queue?: {
@@ -547,9 +547,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
547
547
  }, {
548
548
  options?: {
549
549
  metadata?: any;
550
- idempotencyKey?: string | undefined;
551
550
  payloadType?: string | undefined;
552
551
  tags?: string | string[] | undefined;
552
+ idempotencyKey?: string | undefined;
553
553
  maxAttempts?: number | undefined;
554
554
  maxDuration?: number | undefined;
555
555
  queue?: {
@@ -614,9 +614,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
614
614
  maxDuration: z.ZodOptional<z.ZodNumber>;
615
615
  }, "strip", z.ZodTypeAny, {
616
616
  metadata?: any;
617
- idempotencyKey?: string | undefined;
618
617
  payloadType?: string | undefined;
619
618
  tags?: string | string[] | undefined;
619
+ idempotencyKey?: string | undefined;
620
620
  maxAttempts?: number | undefined;
621
621
  maxDuration?: number | undefined;
622
622
  queue?: {
@@ -636,9 +636,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
636
636
  metadataType?: string | undefined;
637
637
  }, {
638
638
  metadata?: any;
639
- idempotencyKey?: string | undefined;
640
639
  payloadType?: string | undefined;
641
640
  tags?: string | string[] | undefined;
641
+ idempotencyKey?: string | undefined;
642
642
  maxAttempts?: number | undefined;
643
643
  maxDuration?: number | undefined;
644
644
  queue?: {
@@ -660,9 +660,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
660
660
  }, "strip", z.ZodTypeAny, {
661
661
  options?: {
662
662
  metadata?: any;
663
- idempotencyKey?: string | undefined;
664
663
  payloadType?: string | undefined;
665
664
  tags?: string | string[] | undefined;
665
+ idempotencyKey?: string | undefined;
666
666
  maxAttempts?: number | undefined;
667
667
  maxDuration?: number | undefined;
668
668
  queue?: {
@@ -686,9 +686,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
686
686
  }, {
687
687
  options?: {
688
688
  metadata?: any;
689
- idempotencyKey?: string | undefined;
690
689
  payloadType?: string | undefined;
691
690
  tags?: string | string[] | undefined;
691
+ idempotencyKey?: string | undefined;
692
692
  maxAttempts?: number | undefined;
693
693
  maxDuration?: number | undefined;
694
694
  queue?: {
@@ -715,9 +715,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
715
715
  items: {
716
716
  options?: {
717
717
  metadata?: any;
718
- idempotencyKey?: string | undefined;
719
718
  payloadType?: string | undefined;
720
719
  tags?: string | string[] | undefined;
720
+ idempotencyKey?: string | undefined;
721
721
  maxAttempts?: number | undefined;
722
722
  maxDuration?: number | undefined;
723
723
  queue?: {
@@ -744,9 +744,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
744
744
  items: {
745
745
  options?: {
746
746
  metadata?: any;
747
- idempotencyKey?: string | undefined;
748
747
  payloadType?: string | undefined;
749
748
  tags?: string | string[] | undefined;
749
+ idempotencyKey?: string | undefined;
750
750
  maxAttempts?: number | undefined;
751
751
  maxDuration?: number | undefined;
752
752
  queue?: {
@@ -802,9 +802,9 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
802
802
  parentAttempt: z.ZodOptional<z.ZodString>;
803
803
  }, "strip", z.ZodTypeAny, {
804
804
  metadata?: any;
805
- idempotencyKey?: string | undefined;
806
805
  payloadType?: string | undefined;
807
806
  tags?: string | string[] | undefined;
807
+ idempotencyKey?: string | undefined;
808
808
  maxAttempts?: number | undefined;
809
809
  maxDuration?: number | undefined;
810
810
  queue?: {
@@ -821,9 +821,9 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
821
821
  metadataType?: string | undefined;
822
822
  }, {
823
823
  metadata?: any;
824
- idempotencyKey?: string | undefined;
825
824
  payloadType?: string | undefined;
826
825
  tags?: string | string[] | undefined;
826
+ idempotencyKey?: string | undefined;
827
827
  maxAttempts?: number | undefined;
828
828
  maxDuration?: number | undefined;
829
829
  queue?: {
@@ -843,9 +843,9 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
843
843
  task: string;
844
844
  options?: {
845
845
  metadata?: any;
846
- idempotencyKey?: string | undefined;
847
846
  payloadType?: string | undefined;
848
847
  tags?: string | string[] | undefined;
848
+ idempotencyKey?: string | undefined;
849
849
  maxAttempts?: number | undefined;
850
850
  maxDuration?: number | undefined;
851
851
  queue?: {
@@ -867,9 +867,9 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
867
867
  task: string;
868
868
  options?: {
869
869
  metadata?: any;
870
- idempotencyKey?: string | undefined;
871
870
  payloadType?: string | undefined;
872
871
  tags?: string | string[] | undefined;
872
+ idempotencyKey?: string | undefined;
873
873
  maxAttempts?: number | undefined;
874
874
  maxDuration?: number | undefined;
875
875
  queue?: {
@@ -921,9 +921,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
921
921
  parentAttempt: z.ZodOptional<z.ZodString>;
922
922
  }, "strip", z.ZodTypeAny, {
923
923
  metadata?: any;
924
- idempotencyKey?: string | undefined;
925
924
  payloadType?: string | undefined;
926
925
  tags?: string | string[] | undefined;
926
+ idempotencyKey?: string | undefined;
927
927
  maxAttempts?: number | undefined;
928
928
  maxDuration?: number | undefined;
929
929
  queue?: {
@@ -940,9 +940,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
940
940
  metadataType?: string | undefined;
941
941
  }, {
942
942
  metadata?: any;
943
- idempotencyKey?: string | undefined;
944
943
  payloadType?: string | undefined;
945
944
  tags?: string | string[] | undefined;
945
+ idempotencyKey?: string | undefined;
946
946
  maxAttempts?: number | undefined;
947
947
  maxDuration?: number | undefined;
948
948
  queue?: {
@@ -962,9 +962,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
962
962
  task: string;
963
963
  options?: {
964
964
  metadata?: any;
965
- idempotencyKey?: string | undefined;
966
965
  payloadType?: string | undefined;
967
966
  tags?: string | string[] | undefined;
967
+ idempotencyKey?: string | undefined;
968
968
  maxAttempts?: number | undefined;
969
969
  maxDuration?: number | undefined;
970
970
  queue?: {
@@ -986,9 +986,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
986
986
  task: string;
987
987
  options?: {
988
988
  metadata?: any;
989
- idempotencyKey?: string | undefined;
990
989
  payloadType?: string | undefined;
991
990
  tags?: string | string[] | undefined;
991
+ idempotencyKey?: string | undefined;
992
992
  maxAttempts?: number | undefined;
993
993
  maxDuration?: number | undefined;
994
994
  queue?: {
@@ -1013,9 +1013,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1013
1013
  task: string;
1014
1014
  options?: {
1015
1015
  metadata?: any;
1016
- idempotencyKey?: string | undefined;
1017
1016
  payloadType?: string | undefined;
1018
1017
  tags?: string | string[] | undefined;
1018
+ idempotencyKey?: string | undefined;
1019
1019
  maxAttempts?: number | undefined;
1020
1020
  maxDuration?: number | undefined;
1021
1021
  queue?: {
@@ -1040,9 +1040,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1040
1040
  task: string;
1041
1041
  options?: {
1042
1042
  metadata?: any;
1043
- idempotencyKey?: string | undefined;
1044
1043
  payloadType?: string | undefined;
1045
1044
  tags?: string | string[] | undefined;
1045
+ idempotencyKey?: string | undefined;
1046
1046
  maxAttempts?: number | undefined;
1047
1047
  maxDuration?: number | undefined;
1048
1048
  queue?: {
@@ -1086,23 +1086,23 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1086
1086
  }>, "many">;
1087
1087
  }, "strip", z.ZodTypeAny, {
1088
1088
  id: string;
1089
+ isCached: boolean;
1089
1090
  runs: {
1090
1091
  id: string;
1091
1092
  taskIdentifier: string;
1092
1093
  isCached: boolean;
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
1102
  taskIdentifier: string;
1102
1103
  isCached: boolean;
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;
1244
+ version: string;
1245
1245
  contentHash: string;
1246
- imageTag: 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;
1256
+ version: string;
1257
1257
  contentHash: string;
1258
- imageTag: string;
1259
1258
  shortCode: string;
1259
+ imageTag: string;
1260
1260
  externalBuildData?: {
1261
1261
  projectId: string;
1262
1262
  buildId: string;
@@ -1376,48 +1376,48 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1376
1376
  exportName: z.ZodString;
1377
1377
  }, "strip", z.ZodTypeAny, {
1378
1378
  id: string;
1379
- slug: string;
1380
1379
  filePath: string;
1381
1380
  exportName: string;
1381
+ slug: string;
1382
1382
  }, {
1383
1383
  id: string;
1384
- slug: string;
1385
1384
  filePath: string;
1386
1385
  exportName: string;
1386
+ slug: string;
1387
1387
  }>, "many">;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
- version: string;
1390
1389
  id: string;
1390
+ version: string;
1391
1391
  tasks: {
1392
1392
  id: string;
1393
- slug: string;
1394
1393
  filePath: string;
1395
1394
  exportName: string;
1395
+ slug: string;
1396
1396
  }[];
1397
1397
  }, {
1398
- version: string;
1399
1398
  id: string;
1399
+ version: string;
1400
1400
  tasks: {
1401
1401
  id: string;
1402
- slug: string;
1403
1402
  filePath: string;
1404
1403
  exportName: string;
1404
+ slug: string;
1405
1405
  }[];
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;
1410
+ version: string;
1411
1411
  contentHash: string;
1412
1412
  shortCode: string;
1413
1413
  worker?: {
1414
- version: string;
1415
1414
  id: string;
1415
+ version: string;
1416
1416
  tasks: {
1417
1417
  id: string;
1418
- slug: string;
1419
1418
  filePath: string;
1420
1419
  exportName: string;
1420
+ slug: string;
1421
1421
  }[];
1422
1422
  } | undefined;
1423
1423
  imageReference?: string | null | undefined;
@@ -1428,19 +1428,19 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1428
1428
  stderr?: string | undefined;
1429
1429
  } | null | undefined;
1430
1430
  }, {
1431
- status: "PENDING" | "CANCELED" | "TIMED_OUT" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1432
- version: string;
1431
+ status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
1433
1432
  id: string;
1433
+ version: string;
1434
1434
  contentHash: string;
1435
1435
  shortCode: string;
1436
1436
  worker?: {
1437
- version: string;
1438
1437
  id: string;
1438
+ version: string;
1439
1439
  tasks: {
1440
1440
  id: string;
1441
- slug: string;
1442
1441
  filePath: string;
1443
1442
  exportName: string;
1443
+ slug: string;
1444
1444
  }[];
1445
1445
  } | undefined;
1446
1446
  imageReference?: string | null | undefined;
@@ -1570,14 +1570,14 @@ export declare const CreateScheduleOptions: z.ZodObject<{
1570
1570
  */
1571
1571
  timezone: z.ZodOptional<z.ZodString>;
1572
1572
  }, "strip", z.ZodTypeAny, {
1573
- cron: string;
1574
1573
  task: string;
1574
+ cron: string;
1575
1575
  deduplicationKey: string;
1576
1576
  timezone?: string | undefined;
1577
1577
  externalId?: string | undefined;
1578
1578
  }, {
1579
- cron: string;
1580
1579
  task: string;
1580
+ cron: string;
1581
1581
  deduplicationKey: string;
1582
1582
  timezone?: string | undefined;
1583
1583
  externalId?: string | undefined;
@@ -1624,13 +1624,13 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
1624
1624
  */
1625
1625
  timezone: z.ZodOptional<z.ZodString>;
1626
1626
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
1627
- cron: string;
1628
1627
  task: string;
1628
+ cron: string;
1629
1629
  timezone?: string | undefined;
1630
1630
  externalId?: string | undefined;
1631
1631
  }, {
1632
- cron: string;
1633
1632
  task: string;
1633
+ cron: string;
1634
1634
  timezone?: string | undefined;
1635
1635
  externalId?: string | undefined;
1636
1636
  }>;
@@ -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
1690
  task: string;
1692
1691
  timezone: 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
1709
  task: string;
1711
1710
  timezone: 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
1774
  task: string;
1776
1775
  timezone: 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
1793
  task: string;
1795
1794
  timezone: 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
1827
  task: string;
1829
1828
  timezone: 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
1853
  task: string;
1855
1854
  timezone: string;
1855
+ active: boolean;
1856
1856
  generator: {
1857
1857
  type: "CRON";
1858
1858
  description: string;
@@ -1979,12 +1979,11 @@ 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;
1984
+ tags: string[];
1985
1985
  isTest: boolean;
1986
1986
  createdAt: Date;
1987
- tags: string[];
1988
1987
  durationMs: number;
1989
1988
  costInCents: number;
1990
1989
  baseCostInCents: number;
@@ -1997,22 +1996,22 @@ export declare const RelatedRunDetails: z.ZodObject<{
1997
1996
  isSuccess: boolean;
1998
1997
  isFailed: boolean;
1999
1998
  isCancelled: boolean;
2000
- version?: string | undefined;
1999
+ updatedAt: Date;
2001
2000
  metadata?: Record<string, any> | undefined;
2002
2001
  startedAt?: Date | undefined;
2003
2002
  idempotencyKey?: string | undefined;
2003
+ version?: string | undefined;
2004
2004
  ttl?: string | undefined;
2005
2005
  batchId?: string | 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;
2012
+ tags: string[];
2013
2013
  isTest: boolean;
2014
2014
  createdAt: Date;
2015
- tags: string[];
2016
2015
  durationMs: number;
2017
2016
  costInCents: number;
2018
2017
  baseCostInCents: number;
@@ -2025,10 +2024,11 @@ export declare const RelatedRunDetails: z.ZodObject<{
2025
2024
  isSuccess: boolean;
2026
2025
  isFailed: boolean;
2027
2026
  isCancelled: boolean;
2028
- version?: string | undefined;
2027
+ updatedAt: Date;
2029
2028
  metadata?: Record<string, any> | undefined;
2030
2029
  startedAt?: Date | undefined;
2031
2030
  idempotencyKey?: string | undefined;
2031
+ version?: string | undefined;
2032
2032
  ttl?: string | undefined;
2033
2033
  batchId?: string | undefined;
2034
2034
  finishedAt?: Date | undefined;
@@ -2119,12 +2119,11 @@ 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;
2124
+ tags: string[];
2125
2125
  isTest: boolean;
2126
2126
  createdAt: Date;
2127
- tags: string[];
2128
2127
  durationMs: number;
2129
2128
  costInCents: number;
2130
2129
  baseCostInCents: number;
@@ -2137,22 +2136,22 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2137
2136
  isSuccess: boolean;
2138
2137
  isFailed: boolean;
2139
2138
  isCancelled: boolean;
2140
- version?: string | undefined;
2139
+ updatedAt: Date;
2141
2140
  metadata?: Record<string, any> | undefined;
2142
2141
  startedAt?: Date | undefined;
2143
2142
  idempotencyKey?: string | undefined;
2143
+ version?: string | undefined;
2144
2144
  ttl?: string | undefined;
2145
2145
  batchId?: string | 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;
2152
+ tags: string[];
2153
2153
  isTest: boolean;
2154
2154
  createdAt: Date;
2155
- tags: string[];
2156
2155
  durationMs: number;
2157
2156
  costInCents: number;
2158
2157
  baseCostInCents: number;
@@ -2165,10 +2164,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2165
2164
  isSuccess: boolean;
2166
2165
  isFailed: boolean;
2167
2166
  isCancelled: boolean;
2168
- version?: string | undefined;
2167
+ updatedAt: Date;
2169
2168
  metadata?: Record<string, any> | undefined;
2170
2169
  startedAt?: Date | undefined;
2171
2170
  idempotencyKey?: string | undefined;
2171
+ version?: string | undefined;
2172
2172
  ttl?: string | undefined;
2173
2173
  batchId?: string | undefined;
2174
2174
  finishedAt?: Date | undefined;
@@ -2204,12 +2204,11 @@ 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;
2209
+ tags: string[];
2210
2210
  isTest: boolean;
2211
2211
  createdAt: Date;
2212
- tags: string[];
2213
2212
  durationMs: number;
2214
2213
  costInCents: number;
2215
2214
  baseCostInCents: number;
@@ -2222,22 +2221,22 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2222
2221
  isSuccess: boolean;
2223
2222
  isFailed: boolean;
2224
2223
  isCancelled: boolean;
2225
- version?: string | undefined;
2224
+ updatedAt: Date;
2226
2225
  metadata?: Record<string, any> | undefined;
2227
2226
  startedAt?: Date | undefined;
2228
2227
  idempotencyKey?: string | undefined;
2228
+ version?: string | undefined;
2229
2229
  ttl?: string | undefined;
2230
2230
  batchId?: string | 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;
2237
+ tags: string[];
2238
2238
  isTest: boolean;
2239
2239
  createdAt: Date;
2240
- tags: string[];
2241
2240
  durationMs: number;
2242
2241
  costInCents: number;
2243
2242
  baseCostInCents: number;
@@ -2250,10 +2249,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2250
2249
  isSuccess: boolean;
2251
2250
  isFailed: boolean;
2252
2251
  isCancelled: boolean;
2253
- version?: string | undefined;
2252
+ updatedAt: Date;
2254
2253
  metadata?: Record<string, any> | undefined;
2255
2254
  startedAt?: Date | undefined;
2256
2255
  idempotencyKey?: string | undefined;
2256
+ version?: string | undefined;
2257
2257
  ttl?: string | undefined;
2258
2258
  batchId?: string | undefined;
2259
2259
  finishedAt?: Date | undefined;
@@ -2289,12 +2289,11 @@ 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;
2294
+ tags: string[];
2295
2295
  isTest: boolean;
2296
2296
  createdAt: Date;
2297
- tags: string[];
2298
2297
  durationMs: number;
2299
2298
  costInCents: number;
2300
2299
  baseCostInCents: number;
@@ -2307,22 +2306,22 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2307
2306
  isSuccess: boolean;
2308
2307
  isFailed: boolean;
2309
2308
  isCancelled: boolean;
2310
- version?: string | undefined;
2309
+ updatedAt: Date;
2311
2310
  metadata?: Record<string, any> | undefined;
2312
2311
  startedAt?: Date | undefined;
2313
2312
  idempotencyKey?: string | undefined;
2313
+ version?: string | undefined;
2314
2314
  ttl?: string | undefined;
2315
2315
  batchId?: string | 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;
2322
+ tags: string[];
2323
2323
  isTest: boolean;
2324
2324
  createdAt: Date;
2325
- tags: string[];
2326
2325
  durationMs: number;
2327
2326
  costInCents: number;
2328
2327
  baseCostInCents: number;
@@ -2335,10 +2334,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2335
2334
  isSuccess: boolean;
2336
2335
  isFailed: boolean;
2337
2336
  isCancelled: boolean;
2338
- version?: string | undefined;
2337
+ updatedAt: Date;
2339
2338
  metadata?: Record<string, any> | undefined;
2340
2339
  startedAt?: Date | undefined;
2341
2340
  idempotencyKey?: string | undefined;
2341
+ version?: string | undefined;
2342
2342
  ttl?: string | undefined;
2343
2343
  batchId?: string | undefined;
2344
2344
  finishedAt?: Date | undefined;
@@ -2347,12 +2347,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2352
+ tags: string[];
2353
2353
  isTest: boolean;
2354
2354
  createdAt: Date;
2355
- tags: string[];
2356
2355
  durationMs: number;
2357
2356
  costInCents: number;
2358
2357
  baseCostInCents: number;
@@ -2365,10 +2364,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2365
2364
  isSuccess: boolean;
2366
2365
  isFailed: boolean;
2367
2366
  isCancelled: boolean;
2368
- version?: string | undefined;
2367
+ updatedAt: Date;
2369
2368
  metadata?: Record<string, any> | undefined;
2370
2369
  startedAt?: Date | undefined;
2371
2370
  idempotencyKey?: string | undefined;
2371
+ version?: string | undefined;
2372
2372
  ttl?: string | undefined;
2373
2373
  batchId?: string | undefined;
2374
2374
  finishedAt?: Date | undefined;
@@ -2376,12 +2376,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2381
+ tags: string[];
2382
2382
  isTest: boolean;
2383
2383
  createdAt: Date;
2384
- tags: string[];
2385
2384
  durationMs: number;
2386
2385
  costInCents: number;
2387
2386
  baseCostInCents: number;
@@ -2394,10 +2393,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2394
2393
  isSuccess: boolean;
2395
2394
  isFailed: boolean;
2396
2395
  isCancelled: boolean;
2397
- version?: string | undefined;
2396
+ updatedAt: Date;
2398
2397
  metadata?: Record<string, any> | undefined;
2399
2398
  startedAt?: Date | undefined;
2400
2399
  idempotencyKey?: string | undefined;
2400
+ version?: string | undefined;
2401
2401
  ttl?: string | undefined;
2402
2402
  batchId?: string | undefined;
2403
2403
  finishedAt?: Date | undefined;
@@ -2405,12 +2405,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2410
+ tags: string[];
2411
2411
  isTest: boolean;
2412
2412
  createdAt: Date;
2413
- tags: string[];
2414
2413
  durationMs: number;
2415
2414
  costInCents: number;
2416
2415
  baseCostInCents: number;
@@ -2423,10 +2422,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2423
2422
  isSuccess: boolean;
2424
2423
  isFailed: boolean;
2425
2424
  isCancelled: boolean;
2426
- version?: string | undefined;
2425
+ updatedAt: Date;
2427
2426
  metadata?: Record<string, any> | undefined;
2428
2427
  startedAt?: Date | undefined;
2429
2428
  idempotencyKey?: string | undefined;
2429
+ version?: string | undefined;
2430
2430
  ttl?: string | undefined;
2431
2431
  batchId?: string | undefined;
2432
2432
  finishedAt?: Date | undefined;
@@ -2435,12 +2435,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2440
+ tags: string[];
2441
2441
  isTest: boolean;
2442
2442
  createdAt: Date;
2443
- tags: string[];
2444
2443
  durationMs: number;
2445
2444
  costInCents: number;
2446
2445
  baseCostInCents: number;
@@ -2453,10 +2452,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2453
2452
  isSuccess: boolean;
2454
2453
  isFailed: boolean;
2455
2454
  isCancelled: boolean;
2456
- version?: string | undefined;
2455
+ updatedAt: Date;
2457
2456
  metadata?: Record<string, any> | undefined;
2458
2457
  startedAt?: Date | undefined;
2459
2458
  idempotencyKey?: string | undefined;
2459
+ version?: string | undefined;
2460
2460
  ttl?: string | undefined;
2461
2461
  batchId?: string | undefined;
2462
2462
  finishedAt?: Date | undefined;
@@ -2464,12 +2464,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2469
+ tags: string[];
2470
2470
  isTest: boolean;
2471
2471
  createdAt: Date;
2472
- tags: string[];
2473
2472
  durationMs: number;
2474
2473
  costInCents: number;
2475
2474
  baseCostInCents: number;
@@ -2482,10 +2481,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2482
2481
  isSuccess: boolean;
2483
2482
  isFailed: boolean;
2484
2483
  isCancelled: boolean;
2485
- version?: string | undefined;
2484
+ updatedAt: Date;
2486
2485
  metadata?: Record<string, any> | undefined;
2487
2486
  startedAt?: Date | undefined;
2488
2487
  idempotencyKey?: string | undefined;
2488
+ version?: string | undefined;
2489
2489
  ttl?: string | undefined;
2490
2490
  batchId?: string | undefined;
2491
2491
  finishedAt?: Date | undefined;
@@ -2493,12 +2493,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2498
+ tags: string[];
2499
2499
  isTest: boolean;
2500
2500
  createdAt: Date;
2501
- tags: string[];
2502
2501
  durationMs: number;
2503
2502
  costInCents: number;
2504
2503
  baseCostInCents: number;
@@ -2511,10 +2510,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2511
2510
  isSuccess: boolean;
2512
2511
  isFailed: boolean;
2513
2512
  isCancelled: boolean;
2514
- version?: string | undefined;
2513
+ updatedAt: Date;
2515
2514
  metadata?: Record<string, any> | undefined;
2516
2515
  startedAt?: Date | undefined;
2517
2516
  idempotencyKey?: string | undefined;
2517
+ version?: string | undefined;
2518
2518
  ttl?: string | undefined;
2519
2519
  batchId?: string | undefined;
2520
2520
  finishedAt?: 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;
2549
+ updatedAt: Date;
2550
2550
  startedAt?: Date | undefined;
2551
- completedAt?: Date | undefined;
2552
2551
  error?: {
2553
2552
  message: string;
2554
2553
  name?: string | undefined;
2555
2554
  stackTrace?: string | undefined;
2556
2555
  } | 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;
2561
+ updatedAt: Date;
2562
2562
  startedAt?: Date | undefined;
2563
- completedAt?: Date | undefined;
2564
2563
  error?: {
2565
2564
  message: string;
2566
2565
  name?: string | undefined;
2567
2566
  stackTrace?: string | undefined;
2568
2567
  } | undefined;
2568
+ completedAt?: Date | undefined;
2569
2569
  }>>, "many">;
2570
2570
  attemptCount: z.ZodDefault<z.ZodNumber>;
2571
2571
  depth: z.ZodNumber;
@@ -2596,37 +2596,32 @@ 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;
2601
+ tags: string[];
2615
2602
  isTest: boolean;
2616
2603
  createdAt: Date;
2617
- tags: string[];
2618
2604
  durationMs: number;
2619
2605
  costInCents: number;
2620
2606
  baseCostInCents: number;
2621
2607
  taskIdentifier: string;
2608
+ attemptCount: number;
2609
+ depth: number;
2610
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2611
+ isQueued: boolean;
2612
+ isExecuting: boolean;
2613
+ isCompleted: boolean;
2614
+ isSuccess: boolean;
2615
+ isFailed: boolean;
2616
+ isCancelled: boolean;
2617
+ updatedAt: Date;
2622
2618
  relatedRuns: {
2623
2619
  root?: {
2624
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2620
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2625
2621
  id: string;
2626
- updatedAt: Date;
2622
+ tags: string[];
2627
2623
  isTest: boolean;
2628
2624
  createdAt: Date;
2629
- tags: string[];
2630
2625
  durationMs: number;
2631
2626
  costInCents: number;
2632
2627
  baseCostInCents: number;
@@ -2639,10 +2634,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2639
2634
  isSuccess: boolean;
2640
2635
  isFailed: boolean;
2641
2636
  isCancelled: boolean;
2642
- version?: string | undefined;
2637
+ updatedAt: Date;
2643
2638
  metadata?: Record<string, any> | undefined;
2644
2639
  startedAt?: Date | undefined;
2645
2640
  idempotencyKey?: string | undefined;
2641
+ version?: string | undefined;
2646
2642
  ttl?: string | undefined;
2647
2643
  batchId?: string | undefined;
2648
2644
  finishedAt?: Date | undefined;
@@ -2650,12 +2646,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2650
2646
  expiredAt?: Date | undefined;
2651
2647
  } | undefined;
2652
2648
  parent?: {
2653
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2649
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2654
2650
  id: string;
2655
- updatedAt: Date;
2651
+ tags: string[];
2656
2652
  isTest: boolean;
2657
2653
  createdAt: Date;
2658
- tags: string[];
2659
2654
  durationMs: number;
2660
2655
  costInCents: number;
2661
2656
  baseCostInCents: number;
@@ -2668,10 +2663,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2668
2663
  isSuccess: boolean;
2669
2664
  isFailed: boolean;
2670
2665
  isCancelled: boolean;
2671
- version?: string | undefined;
2666
+ updatedAt: Date;
2672
2667
  metadata?: Record<string, any> | undefined;
2673
2668
  startedAt?: Date | undefined;
2674
2669
  idempotencyKey?: string | undefined;
2670
+ version?: string | undefined;
2675
2671
  ttl?: string | undefined;
2676
2672
  batchId?: string | undefined;
2677
2673
  finishedAt?: Date | undefined;
@@ -2679,12 +2675,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2679
2675
  expiredAt?: Date | undefined;
2680
2676
  } | undefined;
2681
2677
  children?: {
2682
- status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2678
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2683
2679
  id: string;
2684
- updatedAt: Date;
2680
+ tags: string[];
2685
2681
  isTest: boolean;
2686
2682
  createdAt: Date;
2687
- tags: string[];
2688
2683
  durationMs: number;
2689
2684
  costInCents: number;
2690
2685
  baseCostInCents: number;
@@ -2697,10 +2692,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2697
2692
  isSuccess: boolean;
2698
2693
  isFailed: boolean;
2699
2694
  isCancelled: boolean;
2700
- version?: string | undefined;
2695
+ updatedAt: Date;
2701
2696
  metadata?: Record<string, any> | undefined;
2702
2697
  startedAt?: Date | undefined;
2703
2698
  idempotencyKey?: string | undefined;
2699
+ version?: string | undefined;
2704
2700
  ttl?: string | undefined;
2705
2701
  batchId?: string | undefined;
2706
2702
  finishedAt?: Date | undefined;
@@ -2708,26 +2704,31 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2708
2704
  expiredAt?: Date | undefined;
2709
2705
  }[] | undefined;
2710
2706
  };
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;
2719
- attemptCount: number;
2720
- payload?: any;
2721
- version?: string | undefined;
2707
+ attempts: ({
2708
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2709
+ id: string;
2710
+ createdAt: Date;
2711
+ updatedAt: Date;
2712
+ startedAt?: Date | undefined;
2713
+ error?: {
2714
+ message: string;
2715
+ name?: string | undefined;
2716
+ stackTrace?: string | undefined;
2717
+ } | undefined;
2718
+ completedAt?: Date | undefined;
2719
+ } | undefined)[];
2722
2720
  metadata?: Record<string, any> | undefined;
2721
+ payload?: any;
2723
2722
  startedAt?: Date | undefined;
2724
- output?: any;
2723
+ idempotencyKey?: string | undefined;
2724
+ version?: string | undefined;
2725
2725
  error?: {
2726
2726
  message: string;
2727
2727
  name?: string | undefined;
2728
2728
  stackTrace?: string | undefined;
2729
2729
  } | undefined;
2730
- idempotencyKey?: string | undefined;
2730
+ output?: any;
2731
+ ttl?: string | undefined;
2731
2732
  schedule?: {
2732
2733
  id: string;
2733
2734
  generator: {
@@ -2738,45 +2739,38 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2738
2739
  externalId?: string | undefined;
2739
2740
  deduplicationKey?: string | undefined;
2740
2741
  } | undefined;
2741
- ttl?: string | undefined;
2742
- payloadPresignedUrl?: string | undefined;
2743
- outputPresignedUrl?: string | undefined;
2744
2742
  batchId?: string | undefined;
2745
2743
  finishedAt?: Date | undefined;
2746
2744
  delayedUntil?: Date | undefined;
2747
2745
  expiredAt?: Date | undefined;
2746
+ payloadPresignedUrl?: string | undefined;
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;
2751
+ tags: string[];
2765
2752
  isTest: boolean;
2766
2753
  createdAt: Date;
2767
- tags: string[];
2768
2754
  durationMs: number;
2769
2755
  costInCents: number;
2770
2756
  baseCostInCents: number;
2771
2757
  taskIdentifier: string;
2758
+ depth: number;
2759
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2760
+ isQueued: boolean;
2761
+ isExecuting: boolean;
2762
+ isCompleted: boolean;
2763
+ isSuccess: boolean;
2764
+ isFailed: boolean;
2765
+ isCancelled: boolean;
2766
+ updatedAt: Date;
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;
2771
+ tags: string[];
2777
2772
  isTest: boolean;
2778
2773
  createdAt: Date;
2779
- tags: string[];
2780
2774
  durationMs: number;
2781
2775
  costInCents: number;
2782
2776
  baseCostInCents: number;
@@ -2789,10 +2783,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2789
2783
  isSuccess: boolean;
2790
2784
  isFailed: boolean;
2791
2785
  isCancelled: boolean;
2792
- version?: string | undefined;
2786
+ updatedAt: Date;
2793
2787
  metadata?: Record<string, any> | undefined;
2794
2788
  startedAt?: Date | undefined;
2795
2789
  idempotencyKey?: string | undefined;
2790
+ version?: string | undefined;
2796
2791
  ttl?: string | undefined;
2797
2792
  batchId?: string | undefined;
2798
2793
  finishedAt?: Date | undefined;
@@ -2800,12 +2795,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2800
+ tags: string[];
2806
2801
  isTest: boolean;
2807
2802
  createdAt: Date;
2808
- tags: string[];
2809
2803
  durationMs: number;
2810
2804
  costInCents: number;
2811
2805
  baseCostInCents: number;
@@ -2818,10 +2812,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2818
2812
  isSuccess: boolean;
2819
2813
  isFailed: boolean;
2820
2814
  isCancelled: boolean;
2821
- version?: string | undefined;
2815
+ updatedAt: Date;
2822
2816
  metadata?: Record<string, any> | undefined;
2823
2817
  startedAt?: Date | undefined;
2824
2818
  idempotencyKey?: string | undefined;
2819
+ version?: string | undefined;
2825
2820
  ttl?: string | undefined;
2826
2821
  batchId?: string | undefined;
2827
2822
  finishedAt?: Date | undefined;
@@ -2829,12 +2824,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
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;
2829
+ tags: string[];
2835
2830
  isTest: boolean;
2836
2831
  createdAt: Date;
2837
- tags: string[];
2838
2832
  durationMs: number;
2839
2833
  costInCents: number;
2840
2834
  baseCostInCents: number;
@@ -2847,10 +2841,11 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2847
2841
  isSuccess: boolean;
2848
2842
  isFailed: boolean;
2849
2843
  isCancelled: boolean;
2850
- version?: string | undefined;
2844
+ updatedAt: Date;
2851
2845
  metadata?: Record<string, any> | undefined;
2852
2846
  startedAt?: Date | undefined;
2853
2847
  idempotencyKey?: string | undefined;
2848
+ version?: string | undefined;
2854
2849
  ttl?: string | undefined;
2855
2850
  batchId?: string | undefined;
2856
2851
  finishedAt?: Date | undefined;
@@ -2858,25 +2853,31 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2858
2853
  expiredAt?: Date | undefined;
2859
2854
  }[] | undefined;
2860
2855
  };
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;
2856
+ attempts: ({
2857
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
2858
+ id: string;
2859
+ createdAt: Date;
2860
+ updatedAt: Date;
2861
+ startedAt?: Date | undefined;
2862
+ error?: {
2863
+ message: string;
2864
+ name?: string | undefined;
2865
+ stackTrace?: string | undefined;
2866
+ } | undefined;
2867
+ completedAt?: Date | undefined;
2868
+ } | undefined)[];
2871
2869
  metadata?: Record<string, any> | undefined;
2870
+ payload?: any;
2872
2871
  startedAt?: Date | undefined;
2873
- output?: any;
2872
+ idempotencyKey?: string | undefined;
2873
+ version?: string | undefined;
2874
2874
  error?: {
2875
2875
  message: string;
2876
2876
  name?: string | undefined;
2877
2877
  stackTrace?: string | undefined;
2878
2878
  } | undefined;
2879
- idempotencyKey?: string | undefined;
2879
+ output?: any;
2880
+ ttl?: string | undefined;
2880
2881
  schedule?: {
2881
2882
  id: string;
2882
2883
  generator: {
@@ -2887,14 +2888,13 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2887
2888
  externalId?: string | undefined;
2888
2889
  deduplicationKey?: string | undefined;
2889
2890
  } | undefined;
2890
- ttl?: string | undefined;
2891
- payloadPresignedUrl?: string | undefined;
2892
- outputPresignedUrl?: string | undefined;
2891
+ attemptCount?: number | undefined;
2893
2892
  batchId?: string | undefined;
2894
2893
  finishedAt?: Date | undefined;
2895
2894
  delayedUntil?: Date | undefined;
2896
2895
  expiredAt?: Date | undefined;
2897
- attemptCount?: number | undefined;
2896
+ payloadPresignedUrl?: string | undefined;
2897
+ outputPresignedUrl?: string | undefined;
2898
2898
  }>;
2899
2899
  export type RetrieveRunResponse = z.infer<typeof RetrieveRunResponse>;
2900
2900
  export declare const ListRunResponseItem: z.ZodObject<{
@@ -2936,12 +2936,11 @@ 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;
2941
+ tags: string[];
2942
2942
  isTest: boolean;
2943
2943
  createdAt: Date;
2944
- tags: string[];
2945
2944
  durationMs: number;
2946
2945
  costInCents: number;
2947
2946
  baseCostInCents: number;
@@ -2952,26 +2951,26 @@ export declare const ListRunResponseItem: z.ZodObject<{
2952
2951
  isSuccess: boolean;
2953
2952
  isFailed: boolean;
2954
2953
  isCancelled: boolean;
2954
+ updatedAt: Date;
2955
2955
  env: {
2956
2956
  name: string;
2957
2957
  id: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
- version?: string | undefined;
2961
2960
  metadata?: Record<string, any> | undefined;
2962
2961
  startedAt?: Date | undefined;
2963
2962
  idempotencyKey?: string | undefined;
2963
+ version?: string | undefined;
2964
2964
  ttl?: string | 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;
2971
+ tags: string[];
2972
2972
  isTest: boolean;
2973
2973
  createdAt: Date;
2974
- tags: string[];
2975
2974
  durationMs: number;
2976
2975
  costInCents: number;
2977
2976
  baseCostInCents: number;
@@ -2982,15 +2981,16 @@ export declare const ListRunResponseItem: z.ZodObject<{
2982
2981
  isSuccess: boolean;
2983
2982
  isFailed: boolean;
2984
2983
  isCancelled: boolean;
2984
+ updatedAt: Date;
2985
2985
  env: {
2986
2986
  name: string;
2987
2987
  id: string;
2988
2988
  user?: string | undefined;
2989
2989
  };
2990
- version?: string | undefined;
2991
2990
  metadata?: Record<string, any> | undefined;
2992
2991
  startedAt?: Date | undefined;
2993
2992
  idempotencyKey?: string | undefined;
2993
+ version?: string | undefined;
2994
2994
  ttl?: string | undefined;
2995
2995
  finishedAt?: Date | undefined;
2996
2996
  delayedUntil?: Date | undefined;
@@ -3037,12 +3037,11 @@ 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;
3042
+ tags: string[];
3043
3043
  isTest: boolean;
3044
3044
  createdAt: Date;
3045
- tags: string[];
3046
3045
  durationMs: number;
3047
3046
  costInCents: number;
3048
3047
  baseCostInCents: number;
@@ -3053,26 +3052,26 @@ export declare const ListRunResponse: z.ZodObject<{
3053
3052
  isSuccess: boolean;
3054
3053
  isFailed: boolean;
3055
3054
  isCancelled: boolean;
3055
+ updatedAt: Date;
3056
3056
  env: {
3057
3057
  name: string;
3058
3058
  id: string;
3059
3059
  user?: string | undefined;
3060
3060
  };
3061
- version?: string | undefined;
3062
3061
  metadata?: Record<string, any> | undefined;
3063
3062
  startedAt?: Date | undefined;
3064
3063
  idempotencyKey?: string | undefined;
3064
+ version?: string | undefined;
3065
3065
  ttl?: string | 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;
3072
+ tags: string[];
3073
3073
  isTest: boolean;
3074
3074
  createdAt: Date;
3075
- tags: string[];
3076
3075
  durationMs: number;
3077
3076
  costInCents: number;
3078
3077
  baseCostInCents: number;
@@ -3083,15 +3082,16 @@ export declare const ListRunResponse: z.ZodObject<{
3083
3082
  isSuccess: boolean;
3084
3083
  isFailed: boolean;
3085
3084
  isCancelled: boolean;
3085
+ updatedAt: Date;
3086
3086
  env: {
3087
3087
  name: string;
3088
3088
  id: string;
3089
3089
  user?: string | undefined;
3090
3090
  };
3091
- version?: string | undefined;
3092
3091
  metadata?: Record<string, any> | undefined;
3093
3092
  startedAt?: Date | undefined;
3094
3093
  idempotencyKey?: string | undefined;
3094
+ version?: string | undefined;
3095
3095
  ttl?: string | undefined;
3096
3096
  finishedAt?: Date | undefined;
3097
3097
  delayedUntil?: Date | undefined;
@@ -3109,12 +3109,11 @@ 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;
3114
+ tags: string[];
3115
3115
  isTest: boolean;
3116
3116
  createdAt: Date;
3117
- tags: string[];
3118
3117
  durationMs: number;
3119
3118
  costInCents: number;
3120
3119
  baseCostInCents: number;
@@ -3125,15 +3124,16 @@ export declare const ListRunResponse: z.ZodObject<{
3125
3124
  isSuccess: boolean;
3126
3125
  isFailed: boolean;
3127
3126
  isCancelled: boolean;
3127
+ updatedAt: Date;
3128
3128
  env: {
3129
3129
  name: string;
3130
3130
  id: string;
3131
3131
  user?: string | undefined;
3132
3132
  };
3133
- version?: string | undefined;
3134
3133
  metadata?: Record<string, any> | undefined;
3135
3134
  startedAt?: Date | undefined;
3136
3135
  idempotencyKey?: string | undefined;
3136
+ version?: string | undefined;
3137
3137
  ttl?: string | undefined;
3138
3138
  finishedAt?: Date | undefined;
3139
3139
  delayedUntil?: Date | undefined;
@@ -3145,12 +3145,11 @@ 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;
3150
+ tags: string[];
3151
3151
  isTest: boolean;
3152
3152
  createdAt: Date;
3153
- tags: string[];
3154
3153
  durationMs: number;
3155
3154
  costInCents: number;
3156
3155
  baseCostInCents: number;
@@ -3161,15 +3160,16 @@ export declare const ListRunResponse: z.ZodObject<{
3161
3160
  isSuccess: boolean;
3162
3161
  isFailed: boolean;
3163
3162
  isCancelled: boolean;
3163
+ updatedAt: Date;
3164
3164
  env: {
3165
3165
  name: string;
3166
3166
  id: string;
3167
3167
  user?: string | undefined;
3168
3168
  };
3169
- version?: string | undefined;
3170
3169
  metadata?: Record<string, any> | undefined;
3171
3170
  startedAt?: Date | undefined;
3172
3171
  idempotencyKey?: string | undefined;
3172
+ version?: string | undefined;
3173
3173
  ttl?: string | undefined;
3174
3174
  finishedAt?: Date | undefined;
3175
3175
  delayedUntil?: 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, {
3638
+ type: "BUILT_IN_ERROR";
3301
3639
  message: string;
3302
- name?: string | undefined;
3303
- stackTrace?: string | undefined;
3640
+ name: string;
3641
+ stackTrace: string;
3304
3642
  }, {
3643
+ type: "BUILT_IN_ERROR";
3305
3644
  message: string;
3306
- name?: string | undefined;
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
+ type: "INTERNAL_ERROR";
3672
+ 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";
3673
+ message?: string | undefined;
3307
3674
  stackTrace?: string | undefined;
3308
- }>>>;
3675
+ }, {
3676
+ type: "INTERNAL_ERROR";
3677
+ 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";
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
3685
  isTest: boolean;
3315
3686
  createdAt: Date;
3316
3687
  costInCents: number;
3317
3688
  baseCostInCents: number;
3318
3689
  taskIdentifier: string;
3690
+ updatedAt: Date;
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
+ payloadType?: string | null | undefined;
3697
+ startedAt?: string | Date | null | undefined;
3698
+ idempotencyKey?: string | null | undefined;
3328
3699
  error?: {
3700
+ type: "BUILT_IN_ERROR";
3329
3701
  message: string;
3330
- name?: string | undefined;
3702
+ name: string;
3703
+ stackTrace: string;
3704
+ } | {
3705
+ type: "CUSTOM_ERROR";
3706
+ raw: string;
3707
+ } | {
3708
+ type: "STRING_ERROR";
3709
+ raw: string;
3710
+ } | {
3711
+ type: "INTERNAL_ERROR";
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
+ message?: string | undefined;
3331
3714
  stackTrace?: string | undefined;
3332
3715
  } | null | undefined;
3333
- idempotencyKey?: string | null | undefined;
3334
- payloadType?: string | null | undefined;
3716
+ output?: string | null | undefined;
3335
3717
  outputType?: string | null | undefined;
3336
3718
  ttl?: string | null | undefined;
3337
- expiredAt?: Date | null | undefined;
3338
3719
  metadataType?: string | null | undefined;
3339
- queuedAt?: Date | null | undefined;
3720
+ expiredAt?: string | Date | null | undefined;
3721
+ completedAt?: string | Date | null | undefined;
3722
+ delayUntil?: string | Date | null | undefined;
3723
+ queuedAt?: string | Date | null | undefined;
3340
3724
  }, {
3341
3725
  number: number;
3342
3726
  status: string;
3343
3727
  id: string;
3344
- updatedAt: Date;
3345
3728
  isTest: boolean;
3346
- createdAt: Date;
3729
+ createdAt: string;
3347
3730
  costInCents: number;
3348
3731
  baseCostInCents: number;
3349
3732
  taskIdentifier: string;
3733
+ updatedAt: 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
+ payloadType?: string | null | undefined;
3739
+ startedAt?: string | null | undefined;
3740
+ idempotencyKey?: string | null | undefined;
3358
3741
  error?: {
3742
+ type: "BUILT_IN_ERROR";
3359
3743
  message: string;
3360
- name?: string | undefined;
3744
+ name: string;
3745
+ stackTrace: string;
3746
+ } | {
3747
+ type: "CUSTOM_ERROR";
3748
+ raw: string;
3749
+ } | {
3750
+ type: "STRING_ERROR";
3751
+ raw: string;
3752
+ } | {
3753
+ type: "INTERNAL_ERROR";
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
+ message?: string | undefined;
3361
3756
  stackTrace?: string | undefined;
3362
3757
  } | null | undefined;
3363
- idempotencyKey?: string | null | undefined;
3364
- payloadType?: string | null | undefined;
3758
+ output?: string | null | undefined;
3365
3759
  outputType?: string | null | undefined;
3366
3760
  ttl?: string | null | undefined;
3367
- expiredAt?: Date | null | undefined;
3368
3761
  metadataType?: string | null | undefined;
3369
- queuedAt?: Date | null | undefined;
3762
+ expiredAt?: string | null | undefined;
3763
+ completedAt?: string | null | undefined;
3764
+ delayUntil?: string | null | undefined;
3765
+ queuedAt?: string | 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
+ key: string;
3804
+ id: string;
3805
+ createdAt: Date;
3806
+ runId: string;
3807
+ sequence: number;
3808
+ }, {
3809
+ value: string;
3810
+ key: string;
3811
+ id: string;
3812
+ createdAt: Date;
3813
+ runId: string;
3814
+ sequence: number;
3815
+ }>;
3816
+ export type SubscribeRealtimeStreamChunkRawShape = z.infer<typeof SubscribeRealtimeStreamChunkRawShape>;