@trigger.dev/core 0.0.0-prerelease-20241219214230 → 0.0.0-prerelease-20250116155306

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 (133) hide show
  1. package/dist/commonjs/schemas/api.d.ts +2137 -2137
  2. package/dist/commonjs/schemas/events.d.ts +8 -8
  3. package/dist/commonjs/schemas/fetch.d.ts +54 -54
  4. package/dist/commonjs/schemas/integrations.d.ts +4 -4
  5. package/dist/commonjs/schemas/notifications.d.ts +80 -80
  6. package/dist/commonjs/schemas/properties.d.ts +4 -4
  7. package/dist/commonjs/schemas/request.d.ts +4 -4
  8. package/dist/commonjs/schemas/requestFilter.d.ts +2 -2
  9. package/dist/commonjs/schemas/runs.d.ts +39 -39
  10. package/dist/commonjs/schemas/schedules.d.ts +12 -12
  11. package/dist/commonjs/schemas/statuses.d.ts +24 -24
  12. package/dist/commonjs/schemas/tasks.d.ts +54 -54
  13. package/dist/commonjs/schemas/triggers.d.ts +36 -36
  14. package/dist/commonjs/v3/apiClient/index.d.ts +122 -115
  15. package/dist/commonjs/v3/apiClient/index.js +12 -0
  16. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  17. package/dist/commonjs/v3/apiClient/runStream.d.ts +3 -17
  18. package/dist/commonjs/v3/apiClient/runStream.js +71 -47
  19. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  20. package/dist/commonjs/v3/apiClient/stream.d.ts +1 -0
  21. package/dist/commonjs/v3/apiClient/stream.js +3 -0
  22. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  23. package/dist/commonjs/v3/config.d.ts +72 -0
  24. package/dist/commonjs/v3/errors.d.ts +14 -1
  25. package/dist/commonjs/v3/errors.js +35 -1
  26. package/dist/commonjs/v3/errors.js.map +1 -1
  27. package/dist/commonjs/v3/links.d.ts +3 -0
  28. package/dist/commonjs/v3/links.js +3 -0
  29. package/dist/commonjs/v3/links.js.map +1 -1
  30. package/dist/commonjs/v3/otel/tracingSDK.d.ts +2 -0
  31. package/dist/commonjs/v3/otel/tracingSDK.js +51 -0
  32. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  33. package/dist/commonjs/v3/runMetadata/manager.d.ts +3 -3
  34. package/dist/commonjs/v3/runMetadata/manager.js +1 -7
  35. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  36. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  37. package/dist/commonjs/v3/runtime/devRuntimeManager.js +36 -30
  38. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  39. package/dist/commonjs/v3/runtime/index.d.ts +4 -0
  40. package/dist/commonjs/v3/runtime/index.js +4 -0
  41. package/dist/commonjs/v3/runtime/index.js.map +1 -1
  42. package/dist/commonjs/v3/runtime/prodRuntimeManager.d.ts +1 -0
  43. package/dist/commonjs/v3/runtime/prodRuntimeManager.js +41 -33
  44. package/dist/commonjs/v3/runtime/prodRuntimeManager.js.map +1 -1
  45. package/dist/commonjs/v3/schemas/api.d.ts +656 -632
  46. package/dist/commonjs/v3/schemas/api.js +17 -7
  47. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  48. package/dist/commonjs/v3/schemas/build.d.ts +176 -176
  49. package/dist/commonjs/v3/schemas/common.d.ts +166 -165
  50. package/dist/commonjs/v3/schemas/common.js +1 -0
  51. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  52. package/dist/commonjs/v3/schemas/messages.d.ts +2228 -2228
  53. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +20 -20
  54. package/dist/commonjs/v3/schemas/resources.d.ts +46 -46
  55. package/dist/commonjs/v3/schemas/schemas.d.ts +173 -173
  56. package/dist/commonjs/v3/schemas/style.d.ts +10 -10
  57. package/dist/commonjs/v3/semanticInternalAttributes.d.ts +1 -0
  58. package/dist/commonjs/v3/semanticInternalAttributes.js +1 -0
  59. package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
  60. package/dist/commonjs/v3/types/tasks.d.ts +8 -4
  61. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  62. package/dist/commonjs/v3/workers/taskExecutor.js +5 -2
  63. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  64. package/dist/commonjs/version.js +1 -1
  65. package/dist/esm/schemas/api.d.ts +2137 -2137
  66. package/dist/esm/schemas/events.d.ts +8 -8
  67. package/dist/esm/schemas/fetch.d.ts +54 -54
  68. package/dist/esm/schemas/integrations.d.ts +4 -4
  69. package/dist/esm/schemas/notifications.d.ts +80 -80
  70. package/dist/esm/schemas/properties.d.ts +4 -4
  71. package/dist/esm/schemas/request.d.ts +4 -4
  72. package/dist/esm/schemas/requestFilter.d.ts +2 -2
  73. package/dist/esm/schemas/runs.d.ts +39 -39
  74. package/dist/esm/schemas/schedules.d.ts +12 -12
  75. package/dist/esm/schemas/statuses.d.ts +24 -24
  76. package/dist/esm/schemas/tasks.d.ts +54 -54
  77. package/dist/esm/schemas/triggers.d.ts +36 -36
  78. package/dist/esm/v3/apiClient/index.d.ts +135 -128
  79. package/dist/esm/v3/apiClient/index.js +13 -1
  80. package/dist/esm/v3/apiClient/index.js.map +1 -1
  81. package/dist/esm/v3/apiClient/runStream.d.ts +3 -17
  82. package/dist/esm/v3/apiClient/runStream.js +70 -44
  83. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  84. package/dist/esm/v3/apiClient/stream.d.ts +1 -0
  85. package/dist/esm/v3/apiClient/stream.js +3 -0
  86. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  87. package/dist/esm/v3/config.d.ts +72 -0
  88. package/dist/esm/v3/errors.d.ts +14 -1
  89. package/dist/esm/v3/errors.js +33 -0
  90. package/dist/esm/v3/errors.js.map +1 -1
  91. package/dist/esm/v3/links.d.ts +3 -0
  92. package/dist/esm/v3/links.js +3 -0
  93. package/dist/esm/v3/links.js.map +1 -1
  94. package/dist/esm/v3/otel/tracingSDK.d.ts +2 -0
  95. package/dist/esm/v3/otel/tracingSDK.js +51 -0
  96. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  97. package/dist/esm/v3/runMetadata/manager.d.ts +3 -3
  98. package/dist/esm/v3/runMetadata/manager.js +1 -7
  99. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  100. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  101. package/dist/esm/v3/runtime/devRuntimeManager.js +36 -30
  102. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  103. package/dist/esm/v3/runtime/index.d.ts +4 -0
  104. package/dist/esm/v3/runtime/index.js +4 -0
  105. package/dist/esm/v3/runtime/index.js.map +1 -1
  106. package/dist/esm/v3/runtime/preventMultipleWaits.d.ts +1 -0
  107. package/dist/esm/v3/runtime/preventMultipleWaits.js +25 -0
  108. package/dist/esm/v3/runtime/preventMultipleWaits.js.map +1 -0
  109. package/dist/esm/v3/runtime/prodRuntimeManager.d.ts +1 -0
  110. package/dist/esm/v3/runtime/prodRuntimeManager.js +41 -33
  111. package/dist/esm/v3/runtime/prodRuntimeManager.js.map +1 -1
  112. package/dist/esm/v3/schemas/api.d.ts +731 -707
  113. package/dist/esm/v3/schemas/api.js +18 -8
  114. package/dist/esm/v3/schemas/api.js.map +1 -1
  115. package/dist/esm/v3/schemas/build.d.ts +188 -188
  116. package/dist/esm/v3/schemas/common.d.ts +166 -165
  117. package/dist/esm/v3/schemas/common.js +1 -0
  118. package/dist/esm/v3/schemas/common.js.map +1 -1
  119. package/dist/esm/v3/schemas/fetch.d.ts +10 -10
  120. package/dist/esm/v3/schemas/messages.d.ts +2770 -2770
  121. package/dist/esm/v3/schemas/openTelemetry.d.ts +20 -20
  122. package/dist/esm/v3/schemas/resources.d.ts +52 -52
  123. package/dist/esm/v3/schemas/schemas.d.ts +244 -244
  124. package/dist/esm/v3/schemas/style.d.ts +10 -10
  125. package/dist/esm/v3/semanticInternalAttributes.d.ts +1 -0
  126. package/dist/esm/v3/semanticInternalAttributes.js +1 -0
  127. package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
  128. package/dist/esm/v3/types/tasks.d.ts +8 -4
  129. package/dist/esm/v3/types/tasks.js.map +1 -1
  130. package/dist/esm/v3/workers/taskExecutor.js +6 -3
  131. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  132. package/dist/esm/version.js +1 -1
  133. package/package.json +1 -1
@@ -184,22 +184,22 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
184
184
  cron: z.ZodString;
185
185
  timezone: z.ZodString;
186
186
  }, "strip", z.ZodTypeAny, {
187
- timezone: string;
188
187
  cron: string;
189
- }, {
190
188
  timezone: string;
189
+ }, {
191
190
  cron: string;
191
+ timezone: string;
192
192
  }>>;
193
193
  maxDuration: z.ZodOptional<z.ZodNumber>;
194
194
  }, "strip", z.ZodTypeAny, {
195
195
  id: string;
196
- filePath: string;
197
196
  exportName: string;
197
+ filePath: string;
198
+ description?: string | undefined;
198
199
  queue?: {
199
200
  name?: string | undefined;
200
201
  concurrencyLimit?: number | undefined;
201
202
  } | undefined;
202
- maxDuration?: number | undefined;
203
203
  retry?: {
204
204
  maxAttempts?: number | undefined;
205
205
  factor?: number | undefined;
@@ -207,26 +207,26 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
207
207
  maxTimeoutInMs?: number | undefined;
208
208
  randomize?: boolean | undefined;
209
209
  } | undefined;
210
- description?: string | undefined;
211
- schedule?: {
212
- timezone: string;
213
- cron: string;
214
- } | undefined;
215
210
  machine?: {
216
211
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
217
212
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
218
213
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
219
214
  } | undefined;
220
215
  triggerSource?: string | undefined;
216
+ schedule?: {
217
+ cron: string;
218
+ timezone: string;
219
+ } | undefined;
220
+ maxDuration?: number | undefined;
221
221
  }, {
222
222
  id: string;
223
- filePath: string;
224
223
  exportName: string;
224
+ filePath: string;
225
+ description?: string | undefined;
225
226
  queue?: {
226
227
  name?: string | undefined;
227
228
  concurrencyLimit?: number | undefined;
228
229
  } | undefined;
229
- maxDuration?: number | undefined;
230
230
  retry?: {
231
231
  maxAttempts?: number | undefined;
232
232
  factor?: number | undefined;
@@ -234,17 +234,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
234
234
  maxTimeoutInMs?: number | undefined;
235
235
  randomize?: boolean | undefined;
236
236
  } | undefined;
237
- description?: string | undefined;
238
- schedule?: {
239
- timezone: string;
240
- cron: string;
241
- } | undefined;
242
237
  machine?: {
243
238
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
244
239
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
245
240
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
246
241
  } | undefined;
247
242
  triggerSource?: string | undefined;
243
+ schedule?: {
244
+ cron: string;
245
+ timezone: string;
246
+ } | undefined;
247
+ maxDuration?: number | undefined;
248
248
  }>, "many">;
249
249
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
250
  filePath: z.ZodString;
@@ -265,13 +265,13 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
265
265
  }, "strip", z.ZodTypeAny, {
266
266
  tasks: {
267
267
  id: string;
268
- filePath: string;
269
268
  exportName: string;
269
+ filePath: string;
270
+ description?: string | undefined;
270
271
  queue?: {
271
272
  name?: string | undefined;
272
273
  concurrencyLimit?: number | undefined;
273
274
  } | undefined;
274
- maxDuration?: number | undefined;
275
275
  retry?: {
276
276
  maxAttempts?: number | undefined;
277
277
  factor?: number | undefined;
@@ -279,17 +279,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
279
279
  maxTimeoutInMs?: number | undefined;
280
280
  randomize?: boolean | undefined;
281
281
  } | undefined;
282
- description?: string | undefined;
283
- schedule?: {
284
- timezone: string;
285
- cron: string;
286
- } | undefined;
287
282
  machine?: {
288
283
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
289
284
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
290
285
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
291
286
  } | undefined;
292
287
  triggerSource?: string | undefined;
288
+ schedule?: {
289
+ cron: string;
290
+ timezone: string;
291
+ } | undefined;
292
+ maxDuration?: number | undefined;
293
293
  }[];
294
294
  contentHash: string;
295
295
  packageVersion: string;
@@ -303,13 +303,13 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
303
303
  }, {
304
304
  tasks: {
305
305
  id: string;
306
- filePath: string;
307
306
  exportName: string;
307
+ filePath: string;
308
+ description?: string | undefined;
308
309
  queue?: {
309
310
  name?: string | undefined;
310
311
  concurrencyLimit?: number | undefined;
311
312
  } | undefined;
312
- maxDuration?: number | undefined;
313
313
  retry?: {
314
314
  maxAttempts?: number | undefined;
315
315
  factor?: number | undefined;
@@ -317,17 +317,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
317
317
  maxTimeoutInMs?: number | undefined;
318
318
  randomize?: boolean | undefined;
319
319
  } | undefined;
320
- description?: string | undefined;
321
- schedule?: {
322
- timezone: string;
323
- cron: string;
324
- } | undefined;
325
320
  machine?: {
326
321
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
327
322
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
328
323
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
329
324
  } | undefined;
330
325
  triggerSource?: string | undefined;
326
+ schedule?: {
327
+ cron: string;
328
+ timezone: string;
329
+ } | undefined;
330
+ maxDuration?: number | undefined;
331
331
  }[];
332
332
  contentHash: string;
333
333
  packageVersion: string;
@@ -344,13 +344,13 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
344
344
  metadata: {
345
345
  tasks: {
346
346
  id: string;
347
- filePath: string;
348
347
  exportName: string;
348
+ filePath: string;
349
+ description?: string | undefined;
349
350
  queue?: {
350
351
  name?: string | undefined;
351
352
  concurrencyLimit?: number | undefined;
352
353
  } | undefined;
353
- maxDuration?: number | undefined;
354
354
  retry?: {
355
355
  maxAttempts?: number | undefined;
356
356
  factor?: number | undefined;
@@ -358,17 +358,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
358
358
  maxTimeoutInMs?: number | undefined;
359
359
  randomize?: boolean | undefined;
360
360
  } | undefined;
361
- description?: string | undefined;
362
- schedule?: {
363
- timezone: string;
364
- cron: string;
365
- } | undefined;
366
361
  machine?: {
367
362
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
368
363
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
369
364
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
370
365
  } | undefined;
371
366
  triggerSource?: string | undefined;
367
+ schedule?: {
368
+ cron: string;
369
+ timezone: string;
370
+ } | undefined;
371
+ maxDuration?: number | undefined;
372
372
  }[];
373
373
  contentHash: string;
374
374
  packageVersion: string;
@@ -386,13 +386,13 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
386
386
  metadata: {
387
387
  tasks: {
388
388
  id: string;
389
- filePath: string;
390
389
  exportName: string;
390
+ filePath: string;
391
+ description?: string | undefined;
391
392
  queue?: {
392
393
  name?: string | undefined;
393
394
  concurrencyLimit?: number | undefined;
394
395
  } | undefined;
395
- maxDuration?: number | undefined;
396
396
  retry?: {
397
397
  maxAttempts?: number | undefined;
398
398
  factor?: number | undefined;
@@ -400,17 +400,17 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
400
400
  maxTimeoutInMs?: number | undefined;
401
401
  randomize?: boolean | undefined;
402
402
  } | undefined;
403
- description?: string | undefined;
404
- schedule?: {
405
- timezone: string;
406
- cron: string;
407
- } | undefined;
408
403
  machine?: {
409
404
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
410
405
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
411
406
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
412
407
  } | undefined;
413
408
  triggerSource?: string | undefined;
409
+ schedule?: {
410
+ cron: string;
411
+ timezone: string;
412
+ } | undefined;
413
+ maxDuration?: number | undefined;
414
414
  }[];
415
415
  contentHash: string;
416
416
  packageVersion: string;
@@ -473,100 +473,105 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
473
473
  metadata: z.ZodAny;
474
474
  metadataType: z.ZodOptional<z.ZodString>;
475
475
  maxDuration: z.ZodOptional<z.ZodNumber>;
476
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
476
477
  }, "strip", z.ZodTypeAny, {
477
- dependentAttempt?: string | undefined;
478
- parentAttempt?: string | undefined;
479
- dependentBatch?: string | undefined;
480
- parentBatch?: string | undefined;
481
- lockToVersion?: string | undefined;
478
+ maxAttempts?: number | undefined;
482
479
  queue?: {
483
480
  name?: string | undefined;
484
481
  concurrencyLimit?: number | undefined;
485
482
  } | undefined;
486
- concurrencyKey?: string | undefined;
483
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
484
+ maxDuration?: number | undefined;
485
+ payloadType?: string | undefined;
486
+ tags?: string | string[] | undefined;
487
487
  idempotencyKey?: string | undefined;
488
+ metadata?: any;
488
489
  idempotencyKeyTTL?: string | undefined;
489
- test?: boolean | undefined;
490
- payloadType?: string | undefined;
490
+ concurrencyKey?: string | undefined;
491
491
  delay?: string | Date | undefined;
492
492
  ttl?: string | number | undefined;
493
- tags?: string | string[] | undefined;
494
- maxAttempts?: number | undefined;
495
- metadata?: any;
496
- metadataType?: string | undefined;
497
- maxDuration?: number | undefined;
498
- }, {
499
493
  dependentAttempt?: string | undefined;
500
494
  parentAttempt?: string | undefined;
501
495
  dependentBatch?: string | undefined;
502
496
  parentBatch?: string | undefined;
503
497
  lockToVersion?: string | undefined;
498
+ test?: boolean | undefined;
499
+ metadataType?: string | undefined;
500
+ }, {
501
+ maxAttempts?: number | undefined;
504
502
  queue?: {
505
503
  name?: string | undefined;
506
504
  concurrencyLimit?: number | undefined;
507
505
  } | undefined;
508
- concurrencyKey?: string | undefined;
506
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
507
+ maxDuration?: number | undefined;
508
+ payloadType?: string | undefined;
509
+ tags?: string | string[] | undefined;
509
510
  idempotencyKey?: string | undefined;
511
+ metadata?: any;
510
512
  idempotencyKeyTTL?: string | undefined;
511
- test?: boolean | undefined;
512
- payloadType?: string | undefined;
513
+ concurrencyKey?: string | undefined;
513
514
  delay?: string | Date | undefined;
514
515
  ttl?: string | number | undefined;
515
- tags?: string | string[] | undefined;
516
- maxAttempts?: number | undefined;
517
- metadata?: any;
518
- metadataType?: string | undefined;
519
- maxDuration?: number | undefined;
520
- }>>;
521
- }, "strip", z.ZodTypeAny, {
522
- options?: {
523
516
  dependentAttempt?: string | undefined;
524
517
  parentAttempt?: string | undefined;
525
518
  dependentBatch?: string | undefined;
526
519
  parentBatch?: string | undefined;
527
520
  lockToVersion?: string | undefined;
521
+ test?: boolean | undefined;
522
+ metadataType?: string | undefined;
523
+ }>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ options?: {
526
+ maxAttempts?: number | undefined;
528
527
  queue?: {
529
528
  name?: string | undefined;
530
529
  concurrencyLimit?: number | undefined;
531
530
  } | undefined;
532
- concurrencyKey?: string | undefined;
531
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
532
+ maxDuration?: number | undefined;
533
+ payloadType?: string | undefined;
534
+ tags?: string | string[] | undefined;
533
535
  idempotencyKey?: string | undefined;
536
+ metadata?: any;
534
537
  idempotencyKeyTTL?: string | undefined;
535
- test?: boolean | undefined;
536
- payloadType?: string | undefined;
538
+ concurrencyKey?: string | undefined;
537
539
  delay?: string | Date | undefined;
538
540
  ttl?: string | number | undefined;
539
- tags?: string | string[] | undefined;
540
- maxAttempts?: number | undefined;
541
- metadata?: any;
541
+ dependentAttempt?: string | undefined;
542
+ parentAttempt?: string | undefined;
543
+ dependentBatch?: string | undefined;
544
+ parentBatch?: string | undefined;
545
+ lockToVersion?: string | undefined;
546
+ test?: boolean | undefined;
542
547
  metadataType?: string | undefined;
543
- maxDuration?: number | undefined;
544
548
  } | undefined;
545
549
  payload?: any;
546
550
  context?: any;
547
551
  }, {
548
552
  options?: {
549
- dependentAttempt?: string | undefined;
550
- parentAttempt?: string | undefined;
551
- dependentBatch?: string | undefined;
552
- parentBatch?: string | undefined;
553
- lockToVersion?: string | undefined;
553
+ maxAttempts?: number | undefined;
554
554
  queue?: {
555
555
  name?: string | undefined;
556
556
  concurrencyLimit?: number | undefined;
557
557
  } | undefined;
558
- concurrencyKey?: string | undefined;
558
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
559
+ maxDuration?: number | undefined;
560
+ payloadType?: string | undefined;
561
+ tags?: string | string[] | undefined;
559
562
  idempotencyKey?: string | undefined;
563
+ metadata?: any;
560
564
  idempotencyKeyTTL?: string | undefined;
561
- test?: boolean | undefined;
562
- payloadType?: string | undefined;
565
+ concurrencyKey?: string | undefined;
563
566
  delay?: string | Date | undefined;
564
567
  ttl?: string | number | undefined;
565
- tags?: string | string[] | undefined;
566
- maxAttempts?: number | undefined;
567
- metadata?: any;
568
+ dependentAttempt?: string | undefined;
569
+ parentAttempt?: string | undefined;
570
+ dependentBatch?: string | undefined;
571
+ parentBatch?: string | undefined;
572
+ lockToVersion?: string | undefined;
573
+ test?: boolean | undefined;
568
574
  metadataType?: string | undefined;
569
- maxDuration?: number | undefined;
570
575
  } | undefined;
571
576
  payload?: any;
572
577
  context?: any;
@@ -612,100 +617,105 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
612
617
  metadata: z.ZodAny;
613
618
  metadataType: z.ZodOptional<z.ZodString>;
614
619
  maxDuration: z.ZodOptional<z.ZodNumber>;
620
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
615
621
  }, "strip", z.ZodTypeAny, {
616
- dependentAttempt?: string | undefined;
617
- parentAttempt?: string | undefined;
618
- dependentBatch?: string | undefined;
619
- parentBatch?: string | undefined;
620
- lockToVersion?: string | undefined;
622
+ maxAttempts?: number | undefined;
621
623
  queue?: {
622
624
  name?: string | undefined;
623
625
  concurrencyLimit?: number | undefined;
624
626
  } | undefined;
625
- concurrencyKey?: string | undefined;
627
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
628
+ maxDuration?: number | undefined;
629
+ payloadType?: string | undefined;
630
+ tags?: string | string[] | undefined;
626
631
  idempotencyKey?: string | undefined;
632
+ metadata?: any;
627
633
  idempotencyKeyTTL?: string | undefined;
628
- test?: boolean | undefined;
629
- payloadType?: string | undefined;
634
+ concurrencyKey?: string | undefined;
630
635
  delay?: string | Date | undefined;
631
636
  ttl?: string | number | undefined;
632
- tags?: string | string[] | undefined;
633
- maxAttempts?: number | undefined;
634
- metadata?: any;
635
- metadataType?: string | undefined;
636
- maxDuration?: number | undefined;
637
- }, {
638
637
  dependentAttempt?: string | undefined;
639
638
  parentAttempt?: string | undefined;
640
639
  dependentBatch?: string | undefined;
641
640
  parentBatch?: string | undefined;
642
641
  lockToVersion?: string | undefined;
642
+ test?: boolean | undefined;
643
+ metadataType?: string | undefined;
644
+ }, {
645
+ maxAttempts?: number | undefined;
643
646
  queue?: {
644
647
  name?: string | undefined;
645
648
  concurrencyLimit?: number | undefined;
646
649
  } | undefined;
647
- concurrencyKey?: string | undefined;
650
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
651
+ maxDuration?: number | undefined;
652
+ payloadType?: string | undefined;
653
+ tags?: string | string[] | undefined;
648
654
  idempotencyKey?: string | undefined;
655
+ metadata?: any;
649
656
  idempotencyKeyTTL?: string | undefined;
650
- test?: boolean | undefined;
651
- payloadType?: string | undefined;
657
+ concurrencyKey?: string | undefined;
652
658
  delay?: string | Date | undefined;
653
659
  ttl?: string | number | undefined;
654
- tags?: string | string[] | undefined;
655
- maxAttempts?: number | undefined;
656
- metadata?: any;
657
- metadataType?: string | undefined;
658
- maxDuration?: number | undefined;
659
- }>>;
660
- }, "strip", z.ZodTypeAny, {
661
- options?: {
662
660
  dependentAttempt?: string | undefined;
663
661
  parentAttempt?: string | undefined;
664
662
  dependentBatch?: string | undefined;
665
663
  parentBatch?: string | undefined;
666
664
  lockToVersion?: string | undefined;
665
+ test?: boolean | undefined;
666
+ metadataType?: string | undefined;
667
+ }>>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ options?: {
670
+ maxAttempts?: number | undefined;
667
671
  queue?: {
668
672
  name?: string | undefined;
669
673
  concurrencyLimit?: number | undefined;
670
674
  } | undefined;
671
- concurrencyKey?: string | undefined;
675
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
676
+ maxDuration?: number | undefined;
677
+ payloadType?: string | undefined;
678
+ tags?: string | string[] | undefined;
672
679
  idempotencyKey?: string | undefined;
680
+ metadata?: any;
673
681
  idempotencyKeyTTL?: string | undefined;
674
- test?: boolean | undefined;
675
- payloadType?: string | undefined;
682
+ concurrencyKey?: string | undefined;
676
683
  delay?: string | Date | undefined;
677
684
  ttl?: string | number | undefined;
678
- tags?: string | string[] | undefined;
679
- maxAttempts?: number | undefined;
680
- metadata?: any;
685
+ dependentAttempt?: string | undefined;
686
+ parentAttempt?: string | undefined;
687
+ dependentBatch?: string | undefined;
688
+ parentBatch?: string | undefined;
689
+ lockToVersion?: string | undefined;
690
+ test?: boolean | undefined;
681
691
  metadataType?: string | undefined;
682
- maxDuration?: number | undefined;
683
692
  } | undefined;
684
693
  payload?: any;
685
694
  context?: any;
686
695
  }, {
687
696
  options?: {
688
- dependentAttempt?: string | undefined;
689
- parentAttempt?: string | undefined;
690
- dependentBatch?: string | undefined;
691
- parentBatch?: string | undefined;
692
- lockToVersion?: string | undefined;
697
+ maxAttempts?: number | undefined;
693
698
  queue?: {
694
699
  name?: string | undefined;
695
700
  concurrencyLimit?: number | undefined;
696
701
  } | undefined;
697
- concurrencyKey?: string | undefined;
702
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
703
+ maxDuration?: number | undefined;
704
+ payloadType?: string | undefined;
705
+ tags?: string | string[] | undefined;
698
706
  idempotencyKey?: string | undefined;
707
+ metadata?: any;
699
708
  idempotencyKeyTTL?: string | undefined;
700
- test?: boolean | undefined;
701
- payloadType?: string | undefined;
709
+ concurrencyKey?: string | undefined;
702
710
  delay?: string | Date | undefined;
703
711
  ttl?: string | number | undefined;
704
- tags?: string | string[] | undefined;
705
- maxAttempts?: number | undefined;
706
- metadata?: any;
712
+ dependentAttempt?: string | undefined;
713
+ parentAttempt?: string | undefined;
714
+ dependentBatch?: string | undefined;
715
+ parentBatch?: string | undefined;
716
+ lockToVersion?: string | undefined;
717
+ test?: boolean | undefined;
707
718
  metadataType?: string | undefined;
708
- maxDuration?: number | undefined;
709
719
  } | undefined;
710
720
  payload?: any;
711
721
  context?: any;
@@ -714,27 +724,28 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
714
724
  }, "strip", z.ZodTypeAny, {
715
725
  items: {
716
726
  options?: {
717
- dependentAttempt?: string | undefined;
718
- parentAttempt?: string | undefined;
719
- dependentBatch?: string | undefined;
720
- parentBatch?: string | undefined;
721
- lockToVersion?: string | undefined;
727
+ maxAttempts?: number | undefined;
722
728
  queue?: {
723
729
  name?: string | undefined;
724
730
  concurrencyLimit?: number | undefined;
725
731
  } | undefined;
726
- concurrencyKey?: string | undefined;
732
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
733
+ maxDuration?: number | undefined;
734
+ payloadType?: string | undefined;
735
+ tags?: string | string[] | undefined;
727
736
  idempotencyKey?: string | undefined;
737
+ metadata?: any;
728
738
  idempotencyKeyTTL?: string | undefined;
729
- test?: boolean | undefined;
730
- payloadType?: string | undefined;
739
+ concurrencyKey?: string | undefined;
731
740
  delay?: string | Date | undefined;
732
741
  ttl?: string | number | undefined;
733
- tags?: string | string[] | undefined;
734
- maxAttempts?: number | undefined;
735
- metadata?: any;
742
+ dependentAttempt?: string | undefined;
743
+ parentAttempt?: string | undefined;
744
+ dependentBatch?: string | undefined;
745
+ parentBatch?: string | undefined;
746
+ lockToVersion?: string | undefined;
747
+ test?: boolean | undefined;
736
748
  metadataType?: string | undefined;
737
- maxDuration?: number | undefined;
738
749
  } | undefined;
739
750
  payload?: any;
740
751
  context?: any;
@@ -743,27 +754,28 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
743
754
  }, {
744
755
  items: {
745
756
  options?: {
746
- dependentAttempt?: string | undefined;
747
- parentAttempt?: string | undefined;
748
- dependentBatch?: string | undefined;
749
- parentBatch?: string | undefined;
750
- lockToVersion?: string | undefined;
757
+ maxAttempts?: number | undefined;
751
758
  queue?: {
752
759
  name?: string | undefined;
753
760
  concurrencyLimit?: number | undefined;
754
761
  } | undefined;
755
- concurrencyKey?: string | undefined;
762
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
763
+ maxDuration?: number | undefined;
764
+ payloadType?: string | undefined;
765
+ tags?: string | string[] | undefined;
756
766
  idempotencyKey?: string | undefined;
767
+ metadata?: any;
757
768
  idempotencyKeyTTL?: string | undefined;
758
- test?: boolean | undefined;
759
- payloadType?: string | undefined;
769
+ concurrencyKey?: string | undefined;
760
770
  delay?: string | Date | undefined;
761
771
  ttl?: string | number | undefined;
762
- tags?: string | string[] | undefined;
763
- maxAttempts?: number | undefined;
764
- metadata?: any;
772
+ dependentAttempt?: string | undefined;
773
+ parentAttempt?: string | undefined;
774
+ dependentBatch?: string | undefined;
775
+ parentBatch?: string | undefined;
776
+ lockToVersion?: string | undefined;
777
+ test?: boolean | undefined;
765
778
  metadataType?: string | undefined;
766
- maxDuration?: number | undefined;
767
779
  } | undefined;
768
780
  payload?: any;
769
781
  context?: any;
@@ -800,90 +812,95 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
800
812
  metadataType: z.ZodOptional<z.ZodString>;
801
813
  maxDuration: z.ZodOptional<z.ZodNumber>;
802
814
  parentAttempt: z.ZodOptional<z.ZodString>;
815
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
803
816
  }, "strip", z.ZodTypeAny, {
804
- parentAttempt?: string | undefined;
805
- lockToVersion?: string | undefined;
817
+ maxAttempts?: number | undefined;
806
818
  queue?: {
807
819
  name?: string | undefined;
808
820
  concurrencyLimit?: number | undefined;
809
821
  } | undefined;
810
- concurrencyKey?: string | undefined;
822
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
823
+ maxDuration?: number | undefined;
824
+ payloadType?: string | undefined;
825
+ tags?: string | string[] | undefined;
811
826
  idempotencyKey?: string | undefined;
827
+ metadata?: any;
812
828
  idempotencyKeyTTL?: string | undefined;
813
- test?: boolean | undefined;
814
- payloadType?: string | undefined;
829
+ concurrencyKey?: string | undefined;
815
830
  delay?: string | Date | undefined;
816
831
  ttl?: string | number | undefined;
817
- tags?: string | string[] | undefined;
818
- maxAttempts?: number | undefined;
819
- metadata?: any;
820
- metadataType?: string | undefined;
821
- maxDuration?: number | undefined;
822
- }, {
823
832
  parentAttempt?: string | undefined;
824
833
  lockToVersion?: string | undefined;
834
+ test?: boolean | undefined;
835
+ metadataType?: string | undefined;
836
+ }, {
837
+ maxAttempts?: number | undefined;
825
838
  queue?: {
826
839
  name?: string | undefined;
827
840
  concurrencyLimit?: number | undefined;
828
841
  } | undefined;
829
- concurrencyKey?: string | undefined;
842
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
843
+ maxDuration?: number | undefined;
844
+ payloadType?: string | undefined;
845
+ tags?: string | string[] | undefined;
830
846
  idempotencyKey?: string | undefined;
847
+ metadata?: any;
831
848
  idempotencyKeyTTL?: string | undefined;
832
- test?: boolean | undefined;
833
- payloadType?: string | undefined;
849
+ concurrencyKey?: string | undefined;
834
850
  delay?: string | Date | undefined;
835
851
  ttl?: string | number | undefined;
836
- tags?: string | string[] | undefined;
837
- maxAttempts?: number | undefined;
838
- metadata?: any;
852
+ parentAttempt?: string | undefined;
853
+ lockToVersion?: string | undefined;
854
+ test?: boolean | undefined;
839
855
  metadataType?: string | undefined;
840
- maxDuration?: number | undefined;
841
856
  }>>;
842
857
  }, "strip", z.ZodTypeAny, {
843
858
  task: string;
844
859
  options?: {
845
- parentAttempt?: string | undefined;
846
- lockToVersion?: string | undefined;
860
+ maxAttempts?: number | undefined;
847
861
  queue?: {
848
862
  name?: string | undefined;
849
863
  concurrencyLimit?: number | undefined;
850
864
  } | undefined;
851
- concurrencyKey?: string | undefined;
865
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
866
+ maxDuration?: number | undefined;
867
+ payloadType?: string | undefined;
868
+ tags?: string | string[] | undefined;
852
869
  idempotencyKey?: string | undefined;
870
+ metadata?: any;
853
871
  idempotencyKeyTTL?: string | undefined;
854
- test?: boolean | undefined;
855
- payloadType?: string | undefined;
872
+ concurrencyKey?: string | undefined;
856
873
  delay?: string | Date | undefined;
857
874
  ttl?: string | number | undefined;
858
- tags?: string | string[] | undefined;
859
- maxAttempts?: number | undefined;
860
- metadata?: any;
875
+ parentAttempt?: string | undefined;
876
+ lockToVersion?: string | undefined;
877
+ test?: boolean | undefined;
861
878
  metadataType?: string | undefined;
862
- maxDuration?: number | undefined;
863
879
  } | undefined;
864
880
  payload?: any;
865
881
  context?: any;
866
882
  }, {
867
883
  task: string;
868
884
  options?: {
869
- parentAttempt?: string | undefined;
870
- lockToVersion?: string | undefined;
885
+ maxAttempts?: number | undefined;
871
886
  queue?: {
872
887
  name?: string | undefined;
873
888
  concurrencyLimit?: number | undefined;
874
889
  } | undefined;
875
- concurrencyKey?: string | undefined;
890
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
891
+ maxDuration?: number | undefined;
892
+ payloadType?: string | undefined;
893
+ tags?: string | string[] | undefined;
876
894
  idempotencyKey?: string | undefined;
895
+ metadata?: any;
877
896
  idempotencyKeyTTL?: string | undefined;
878
- test?: boolean | undefined;
879
- payloadType?: string | undefined;
897
+ concurrencyKey?: string | undefined;
880
898
  delay?: string | Date | undefined;
881
899
  ttl?: string | number | undefined;
882
- tags?: string | string[] | undefined;
883
- maxAttempts?: number | undefined;
884
- metadata?: any;
900
+ parentAttempt?: string | undefined;
901
+ lockToVersion?: string | undefined;
902
+ test?: boolean | undefined;
885
903
  metadataType?: string | undefined;
886
- maxDuration?: number | undefined;
887
904
  } | undefined;
888
905
  payload?: any;
889
906
  context?: any;
@@ -919,90 +936,95 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
919
936
  metadataType: z.ZodOptional<z.ZodString>;
920
937
  maxDuration: z.ZodOptional<z.ZodNumber>;
921
938
  parentAttempt: z.ZodOptional<z.ZodString>;
939
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
922
940
  }, "strip", z.ZodTypeAny, {
923
- parentAttempt?: string | undefined;
924
- lockToVersion?: string | undefined;
941
+ maxAttempts?: number | undefined;
925
942
  queue?: {
926
943
  name?: string | undefined;
927
944
  concurrencyLimit?: number | undefined;
928
945
  } | undefined;
929
- concurrencyKey?: string | undefined;
946
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
947
+ maxDuration?: number | undefined;
948
+ payloadType?: string | undefined;
949
+ tags?: string | string[] | undefined;
930
950
  idempotencyKey?: string | undefined;
951
+ metadata?: any;
931
952
  idempotencyKeyTTL?: string | undefined;
932
- test?: boolean | undefined;
933
- payloadType?: string | undefined;
953
+ concurrencyKey?: string | undefined;
934
954
  delay?: string | Date | undefined;
935
955
  ttl?: string | number | undefined;
936
- tags?: string | string[] | undefined;
937
- maxAttempts?: number | undefined;
938
- metadata?: any;
939
- metadataType?: string | undefined;
940
- maxDuration?: number | undefined;
941
- }, {
942
956
  parentAttempt?: string | undefined;
943
957
  lockToVersion?: string | undefined;
958
+ test?: boolean | undefined;
959
+ metadataType?: string | undefined;
960
+ }, {
961
+ maxAttempts?: number | undefined;
944
962
  queue?: {
945
963
  name?: string | undefined;
946
964
  concurrencyLimit?: number | undefined;
947
965
  } | undefined;
948
- concurrencyKey?: string | undefined;
966
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
967
+ maxDuration?: number | undefined;
968
+ payloadType?: string | undefined;
969
+ tags?: string | string[] | undefined;
949
970
  idempotencyKey?: string | undefined;
971
+ metadata?: any;
950
972
  idempotencyKeyTTL?: string | undefined;
951
- test?: boolean | undefined;
952
- payloadType?: string | undefined;
973
+ concurrencyKey?: string | undefined;
953
974
  delay?: string | Date | undefined;
954
975
  ttl?: string | number | undefined;
955
- tags?: string | string[] | undefined;
956
- maxAttempts?: number | undefined;
957
- metadata?: any;
976
+ parentAttempt?: string | undefined;
977
+ lockToVersion?: string | undefined;
978
+ test?: boolean | undefined;
958
979
  metadataType?: string | undefined;
959
- maxDuration?: number | undefined;
960
980
  }>>;
961
981
  }, "strip", z.ZodTypeAny, {
962
982
  task: string;
963
983
  options?: {
964
- parentAttempt?: string | undefined;
965
- lockToVersion?: string | undefined;
984
+ maxAttempts?: number | undefined;
966
985
  queue?: {
967
986
  name?: string | undefined;
968
987
  concurrencyLimit?: number | undefined;
969
988
  } | undefined;
970
- concurrencyKey?: string | undefined;
989
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
990
+ maxDuration?: number | undefined;
991
+ payloadType?: string | undefined;
992
+ tags?: string | string[] | undefined;
971
993
  idempotencyKey?: string | undefined;
994
+ metadata?: any;
972
995
  idempotencyKeyTTL?: string | undefined;
973
- test?: boolean | undefined;
974
- payloadType?: string | undefined;
996
+ concurrencyKey?: string | undefined;
975
997
  delay?: string | Date | undefined;
976
998
  ttl?: string | number | undefined;
977
- tags?: string | string[] | undefined;
978
- maxAttempts?: number | undefined;
979
- metadata?: any;
999
+ parentAttempt?: string | undefined;
1000
+ lockToVersion?: string | undefined;
1001
+ test?: boolean | undefined;
980
1002
  metadataType?: string | undefined;
981
- maxDuration?: number | undefined;
982
1003
  } | undefined;
983
1004
  payload?: any;
984
1005
  context?: any;
985
1006
  }, {
986
1007
  task: string;
987
1008
  options?: {
988
- parentAttempt?: string | undefined;
989
- lockToVersion?: string | undefined;
1009
+ maxAttempts?: number | undefined;
990
1010
  queue?: {
991
1011
  name?: string | undefined;
992
1012
  concurrencyLimit?: number | undefined;
993
1013
  } | undefined;
994
- concurrencyKey?: string | undefined;
1014
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1015
+ maxDuration?: number | undefined;
1016
+ payloadType?: string | undefined;
1017
+ tags?: string | string[] | undefined;
995
1018
  idempotencyKey?: string | undefined;
1019
+ metadata?: any;
996
1020
  idempotencyKeyTTL?: string | undefined;
997
- test?: boolean | undefined;
998
- payloadType?: string | undefined;
1021
+ concurrencyKey?: string | undefined;
999
1022
  delay?: string | Date | undefined;
1000
1023
  ttl?: string | number | undefined;
1001
- tags?: string | string[] | undefined;
1002
- maxAttempts?: number | undefined;
1003
- metadata?: any;
1024
+ parentAttempt?: string | undefined;
1025
+ lockToVersion?: string | undefined;
1026
+ test?: boolean | undefined;
1004
1027
  metadataType?: string | undefined;
1005
- maxDuration?: number | undefined;
1006
1028
  } | undefined;
1007
1029
  payload?: any;
1008
1030
  context?: any;
@@ -1012,24 +1034,25 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1012
1034
  items: {
1013
1035
  task: string;
1014
1036
  options?: {
1015
- parentAttempt?: string | undefined;
1016
- lockToVersion?: string | undefined;
1037
+ maxAttempts?: number | undefined;
1017
1038
  queue?: {
1018
1039
  name?: string | undefined;
1019
1040
  concurrencyLimit?: number | undefined;
1020
1041
  } | undefined;
1021
- concurrencyKey?: string | undefined;
1042
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1043
+ maxDuration?: number | undefined;
1044
+ payloadType?: string | undefined;
1045
+ tags?: string | string[] | undefined;
1022
1046
  idempotencyKey?: string | undefined;
1047
+ metadata?: any;
1023
1048
  idempotencyKeyTTL?: string | undefined;
1024
- test?: boolean | undefined;
1025
- payloadType?: string | undefined;
1049
+ concurrencyKey?: string | undefined;
1026
1050
  delay?: string | Date | undefined;
1027
1051
  ttl?: string | number | undefined;
1028
- tags?: string | string[] | undefined;
1029
- maxAttempts?: number | undefined;
1030
- metadata?: any;
1052
+ parentAttempt?: string | undefined;
1053
+ lockToVersion?: string | undefined;
1054
+ test?: boolean | undefined;
1031
1055
  metadataType?: string | undefined;
1032
- maxDuration?: number | undefined;
1033
1056
  } | undefined;
1034
1057
  payload?: any;
1035
1058
  context?: any;
@@ -1039,24 +1062,25 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1039
1062
  items: {
1040
1063
  task: string;
1041
1064
  options?: {
1042
- parentAttempt?: string | undefined;
1043
- lockToVersion?: string | undefined;
1065
+ maxAttempts?: number | undefined;
1044
1066
  queue?: {
1045
1067
  name?: string | undefined;
1046
1068
  concurrencyLimit?: number | undefined;
1047
1069
  } | undefined;
1048
- concurrencyKey?: string | undefined;
1070
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1071
+ maxDuration?: number | undefined;
1072
+ payloadType?: string | undefined;
1073
+ tags?: string | string[] | undefined;
1049
1074
  idempotencyKey?: string | undefined;
1075
+ metadata?: any;
1050
1076
  idempotencyKeyTTL?: string | undefined;
1051
- test?: boolean | undefined;
1052
- payloadType?: string | undefined;
1077
+ concurrencyKey?: string | undefined;
1053
1078
  delay?: string | Date | undefined;
1054
1079
  ttl?: string | number | undefined;
1055
- tags?: string | string[] | undefined;
1056
- maxAttempts?: number | undefined;
1057
- metadata?: any;
1080
+ parentAttempt?: string | undefined;
1081
+ lockToVersion?: string | undefined;
1082
+ test?: boolean | undefined;
1058
1083
  metadataType?: string | undefined;
1059
- maxDuration?: number | undefined;
1060
1084
  } | undefined;
1061
1085
  payload?: any;
1062
1086
  context?: any;
@@ -1075,13 +1099,13 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1075
1099
  idempotencyKey: z.ZodOptional<z.ZodString>;
1076
1100
  }, "strip", z.ZodTypeAny, {
1077
1101
  id: string;
1078
- isCached: boolean;
1079
1102
  taskIdentifier: string;
1103
+ isCached: boolean;
1080
1104
  idempotencyKey?: string | undefined;
1081
1105
  }, {
1082
1106
  id: string;
1083
- isCached: boolean;
1084
1107
  taskIdentifier: string;
1108
+ isCached: boolean;
1085
1109
  idempotencyKey?: string | undefined;
1086
1110
  }>, "many">;
1087
1111
  }, "strip", z.ZodTypeAny, {
@@ -1089,8 +1113,8 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1089
1113
  isCached: boolean;
1090
1114
  runs: {
1091
1115
  id: string;
1092
- isCached: boolean;
1093
1116
  taskIdentifier: string;
1117
+ isCached: boolean;
1094
1118
  idempotencyKey?: string | undefined;
1095
1119
  }[];
1096
1120
  idempotencyKey?: string | undefined;
@@ -1099,8 +1123,8 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1099
1123
  isCached: boolean;
1100
1124
  runs: {
1101
1125
  id: string;
1102
- isCached: boolean;
1103
1126
  taskIdentifier: string;
1127
+ isCached: boolean;
1104
1128
  idempotencyKey?: string | undefined;
1105
1129
  }[];
1106
1130
  idempotencyKey?: string | undefined;
@@ -1110,11 +1134,11 @@ export declare const BatchTriggerTaskResponse: z.ZodObject<{
1110
1134
  batchId: z.ZodString;
1111
1135
  runs: z.ZodArray<z.ZodString, "many">;
1112
1136
  }, "strip", z.ZodTypeAny, {
1113
- runs: string[];
1114
1137
  batchId: string;
1115
- }, {
1116
1138
  runs: string[];
1139
+ }, {
1117
1140
  batchId: string;
1141
+ runs: string[];
1118
1142
  }>;
1119
1143
  export type BatchTriggerTaskResponse = z.infer<typeof BatchTriggerTaskResponse>;
1120
1144
  export declare const GetBatchResponseBody: z.ZodObject<{
@@ -1376,33 +1400,33 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1376
1400
  exportName: z.ZodString;
1377
1401
  }, "strip", z.ZodTypeAny, {
1378
1402
  id: string;
1379
- filePath: string;
1380
1403
  exportName: string;
1404
+ filePath: string;
1381
1405
  slug: string;
1382
1406
  }, {
1383
1407
  id: string;
1384
- filePath: string;
1385
1408
  exportName: string;
1409
+ filePath: string;
1386
1410
  slug: string;
1387
1411
  }>, "many">;
1388
1412
  }, "strip", z.ZodTypeAny, {
1389
1413
  id: string;
1390
- version: string;
1391
1414
  tasks: {
1392
1415
  id: string;
1393
- filePath: string;
1394
1416
  exportName: string;
1417
+ filePath: string;
1395
1418
  slug: string;
1396
1419
  }[];
1420
+ version: string;
1397
1421
  }, {
1398
1422
  id: string;
1399
- version: string;
1400
1423
  tasks: {
1401
1424
  id: string;
1402
- filePath: string;
1403
1425
  exportName: string;
1426
+ filePath: string;
1404
1427
  slug: string;
1405
1428
  }[];
1429
+ version: string;
1406
1430
  }>>;
1407
1431
  }, "strip", z.ZodTypeAny, {
1408
1432
  id: string;
@@ -1412,13 +1436,13 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1412
1436
  shortCode: string;
1413
1437
  worker?: {
1414
1438
  id: string;
1415
- version: string;
1416
1439
  tasks: {
1417
1440
  id: string;
1418
- filePath: string;
1419
1441
  exportName: string;
1442
+ filePath: string;
1420
1443
  slug: string;
1421
1444
  }[];
1445
+ version: string;
1422
1446
  } | undefined;
1423
1447
  imageReference?: string | null | undefined;
1424
1448
  errorData?: {
@@ -1435,13 +1459,13 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1435
1459
  shortCode: string;
1436
1460
  worker?: {
1437
1461
  id: string;
1438
- version: string;
1439
1462
  tasks: {
1440
1463
  id: string;
1441
- filePath: string;
1442
1464
  exportName: string;
1465
+ filePath: string;
1443
1466
  slug: string;
1444
1467
  }[];
1468
+ version: string;
1445
1469
  } | undefined;
1446
1470
  imageReference?: string | null | undefined;
1447
1471
  errorData?: {
@@ -1514,16 +1538,16 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
1514
1538
  }, "strip", z.ZodTypeAny, {
1515
1539
  type: "DECLARATIVE" | "IMPERATIVE";
1516
1540
  timezone: string;
1517
- timestamp: Date;
1518
1541
  scheduleId: string;
1542
+ timestamp: Date;
1519
1543
  upcoming: Date[];
1520
1544
  externalId?: string | undefined;
1521
1545
  lastTimestamp?: Date | undefined;
1522
1546
  }, {
1523
1547
  type: "DECLARATIVE" | "IMPERATIVE";
1524
1548
  timezone: string;
1525
- timestamp: Date;
1526
1549
  scheduleId: string;
1550
+ timestamp: Date;
1527
1551
  upcoming: Date[];
1528
1552
  externalId?: string | undefined;
1529
1553
  lastTimestamp?: Date | undefined;
@@ -1570,17 +1594,17 @@ export declare const CreateScheduleOptions: z.ZodObject<{
1570
1594
  */
1571
1595
  timezone: z.ZodOptional<z.ZodString>;
1572
1596
  }, "strip", z.ZodTypeAny, {
1597
+ cron: string;
1573
1598
  task: string;
1574
1599
  deduplicationKey: string;
1575
- cron: string;
1576
- externalId?: string | undefined;
1577
1600
  timezone?: string | undefined;
1601
+ externalId?: string | undefined;
1578
1602
  }, {
1603
+ cron: string;
1579
1604
  task: string;
1580
1605
  deduplicationKey: string;
1581
- cron: string;
1582
- externalId?: string | undefined;
1583
1606
  timezone?: string | undefined;
1607
+ externalId?: string | undefined;
1584
1608
  }>;
1585
1609
  export type CreateScheduleOptions = z.infer<typeof CreateScheduleOptions>;
1586
1610
  export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
@@ -1624,15 +1648,15 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
1624
1648
  */
1625
1649
  timezone: z.ZodOptional<z.ZodString>;
1626
1650
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
1627
- task: string;
1628
1651
  cron: string;
1629
- externalId?: string | undefined;
1652
+ task: string;
1630
1653
  timezone?: string | undefined;
1654
+ externalId?: string | undefined;
1631
1655
  }, {
1632
- task: string;
1633
1656
  cron: string;
1634
- externalId?: string | undefined;
1657
+ task: string;
1635
1658
  timezone?: string | undefined;
1659
+ externalId?: string | undefined;
1636
1660
  }>;
1637
1661
  export type UpdateScheduleOptions = z.infer<typeof UpdateScheduleOptions>;
1638
1662
  export declare const ScheduleGenerator: z.ZodObject<{
@@ -1641,12 +1665,12 @@ export declare const ScheduleGenerator: z.ZodObject<{
1641
1665
  description: z.ZodString;
1642
1666
  }, "strip", z.ZodTypeAny, {
1643
1667
  type: "CRON";
1644
- expression: string;
1645
1668
  description: string;
1669
+ expression: string;
1646
1670
  }, {
1647
1671
  type: "CRON";
1648
- expression: string;
1649
1672
  description: string;
1673
+ expression: string;
1650
1674
  }>;
1651
1675
  export type ScheduleGenerator = z.infer<typeof ScheduleGenerator>;
1652
1676
  export declare const ScheduleObject: z.ZodObject<{
@@ -1662,12 +1686,12 @@ export declare const ScheduleObject: z.ZodObject<{
1662
1686
  description: z.ZodString;
1663
1687
  }, "strip", z.ZodTypeAny, {
1664
1688
  type: "CRON";
1665
- expression: string;
1666
1689
  description: string;
1690
+ expression: string;
1667
1691
  }, {
1668
1692
  type: "CRON";
1669
- expression: string;
1670
1693
  description: string;
1694
+ expression: string;
1671
1695
  }>;
1672
1696
  timezone: z.ZodString;
1673
1697
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1687,14 +1711,14 @@ export declare const ScheduleObject: z.ZodObject<{
1687
1711
  }, "strip", z.ZodTypeAny, {
1688
1712
  id: string;
1689
1713
  type: "DECLARATIVE" | "IMPERATIVE";
1714
+ timezone: string;
1690
1715
  task: string;
1691
1716
  generator: {
1692
1717
  type: "CRON";
1693
- expression: string;
1694
1718
  description: string;
1719
+ expression: string;
1695
1720
  };
1696
1721
  active: boolean;
1697
- timezone: string;
1698
1722
  environments: {
1699
1723
  id: string;
1700
1724
  type: string;
@@ -1706,14 +1730,14 @@ export declare const ScheduleObject: z.ZodObject<{
1706
1730
  }, {
1707
1731
  id: string;
1708
1732
  type: "DECLARATIVE" | "IMPERATIVE";
1733
+ timezone: string;
1709
1734
  task: string;
1710
1735
  generator: {
1711
1736
  type: "CRON";
1712
- expression: string;
1713
1737
  description: string;
1738
+ expression: string;
1714
1739
  };
1715
1740
  active: boolean;
1716
- timezone: string;
1717
1741
  environments: {
1718
1742
  id: string;
1719
1743
  type: string;
@@ -1746,12 +1770,12 @@ export declare const ListSchedulesResult: z.ZodObject<{
1746
1770
  description: z.ZodString;
1747
1771
  }, "strip", z.ZodTypeAny, {
1748
1772
  type: "CRON";
1749
- expression: string;
1750
1773
  description: string;
1774
+ expression: string;
1751
1775
  }, {
1752
1776
  type: "CRON";
1753
- expression: string;
1754
1777
  description: string;
1778
+ expression: string;
1755
1779
  }>;
1756
1780
  timezone: z.ZodString;
1757
1781
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1771,14 +1795,14 @@ export declare const ListSchedulesResult: z.ZodObject<{
1771
1795
  }, "strip", z.ZodTypeAny, {
1772
1796
  id: string;
1773
1797
  type: "DECLARATIVE" | "IMPERATIVE";
1798
+ timezone: string;
1774
1799
  task: string;
1775
1800
  generator: {
1776
1801
  type: "CRON";
1777
- expression: string;
1778
1802
  description: string;
1803
+ expression: string;
1779
1804
  };
1780
1805
  active: boolean;
1781
- timezone: string;
1782
1806
  environments: {
1783
1807
  id: string;
1784
1808
  type: string;
@@ -1790,14 +1814,14 @@ export declare const ListSchedulesResult: z.ZodObject<{
1790
1814
  }, {
1791
1815
  id: string;
1792
1816
  type: "DECLARATIVE" | "IMPERATIVE";
1817
+ timezone: string;
1793
1818
  task: string;
1794
1819
  generator: {
1795
1820
  type: "CRON";
1796
- expression: string;
1797
1821
  description: string;
1822
+ expression: string;
1798
1823
  };
1799
1824
  active: boolean;
1800
- timezone: string;
1801
1825
  environments: {
1802
1826
  id: string;
1803
1827
  type: string;
@@ -1824,14 +1848,14 @@ export declare const ListSchedulesResult: z.ZodObject<{
1824
1848
  data: {
1825
1849
  id: string;
1826
1850
  type: "DECLARATIVE" | "IMPERATIVE";
1851
+ timezone: string;
1827
1852
  task: string;
1828
1853
  generator: {
1829
1854
  type: "CRON";
1830
- expression: string;
1831
1855
  description: string;
1856
+ expression: string;
1832
1857
  };
1833
1858
  active: boolean;
1834
- timezone: string;
1835
1859
  environments: {
1836
1860
  id: string;
1837
1861
  type: string;
@@ -1850,14 +1874,14 @@ export declare const ListSchedulesResult: z.ZodObject<{
1850
1874
  data: {
1851
1875
  id: string;
1852
1876
  type: "DECLARATIVE" | "IMPERATIVE";
1877
+ timezone: string;
1853
1878
  task: string;
1854
1879
  generator: {
1855
1880
  type: "CRON";
1856
- expression: string;
1857
1881
  description: string;
1882
+ expression: string;
1858
1883
  };
1859
1884
  active: boolean;
1860
- timezone: string;
1861
1885
  environments: {
1862
1886
  id: string;
1863
1887
  type: string;
@@ -1921,19 +1945,19 @@ export declare const RunScheduleDetails: z.ZodObject<{
1921
1945
  description: z.ZodString;
1922
1946
  }, "strip", z.ZodTypeAny, {
1923
1947
  type: "CRON";
1924
- expression: string;
1925
1948
  description: string;
1949
+ expression: string;
1926
1950
  }, {
1927
1951
  type: "CRON";
1928
- expression: string;
1929
1952
  description: string;
1953
+ expression: string;
1930
1954
  }>;
1931
1955
  }, "strip", z.ZodTypeAny, {
1932
1956
  id: string;
1933
1957
  generator: {
1934
1958
  type: "CRON";
1935
- expression: string;
1936
1959
  description: string;
1960
+ expression: string;
1937
1961
  };
1938
1962
  externalId?: string | undefined;
1939
1963
  deduplicationKey?: string | undefined;
@@ -1941,8 +1965,8 @@ export declare const RunScheduleDetails: z.ZodObject<{
1941
1965
  id: string;
1942
1966
  generator: {
1943
1967
  type: "CRON";
1944
- expression: string;
1945
1968
  description: string;
1969
+ expression: string;
1946
1970
  };
1947
1971
  externalId?: string | undefined;
1948
1972
  deduplicationKey?: string | undefined;
@@ -1982,27 +2006,27 @@ export declare const RelatedRunDetails: z.ZodObject<{
1982
2006
  id: string;
1983
2007
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
1984
2008
  tags: string[];
2009
+ isTest: boolean;
2010
+ createdAt: Date;
2011
+ durationMs: number;
2012
+ costInCents: number;
2013
+ baseCostInCents: number;
1985
2014
  taskIdentifier: string;
1986
2015
  depth: number;
1987
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2016
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
1988
2017
  isQueued: boolean;
1989
2018
  isExecuting: boolean;
1990
2019
  isCompleted: boolean;
1991
2020
  isSuccess: boolean;
1992
2021
  isFailed: boolean;
1993
2022
  isCancelled: boolean;
1994
- isTest: boolean;
1995
- createdAt: Date;
1996
2023
  updatedAt: Date;
1997
- costInCents: number;
1998
- baseCostInCents: number;
1999
- durationMs: number;
2024
+ version?: string | undefined;
2025
+ startedAt?: Date | undefined;
2000
2026
  idempotencyKey?: string | undefined;
2001
- ttl?: string | undefined;
2002
2027
  metadata?: Record<string, any> | undefined;
2028
+ ttl?: string | undefined;
2003
2029
  batchId?: string | undefined;
2004
- version?: string | undefined;
2005
- startedAt?: Date | undefined;
2006
2030
  finishedAt?: Date | undefined;
2007
2031
  delayedUntil?: Date | undefined;
2008
2032
  expiredAt?: Date | undefined;
@@ -2010,27 +2034,27 @@ export declare const RelatedRunDetails: z.ZodObject<{
2010
2034
  id: string;
2011
2035
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2012
2036
  tags: string[];
2037
+ isTest: boolean;
2038
+ createdAt: Date;
2039
+ durationMs: number;
2040
+ costInCents: number;
2041
+ baseCostInCents: number;
2013
2042
  taskIdentifier: string;
2014
2043
  depth: number;
2015
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2044
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2016
2045
  isQueued: boolean;
2017
2046
  isExecuting: boolean;
2018
2047
  isCompleted: boolean;
2019
2048
  isSuccess: boolean;
2020
2049
  isFailed: boolean;
2021
2050
  isCancelled: boolean;
2022
- isTest: boolean;
2023
- createdAt: Date;
2024
2051
  updatedAt: Date;
2025
- costInCents: number;
2026
- baseCostInCents: number;
2027
- durationMs: number;
2052
+ version?: string | undefined;
2053
+ startedAt?: Date | undefined;
2028
2054
  idempotencyKey?: string | undefined;
2029
- ttl?: string | undefined;
2030
2055
  metadata?: Record<string, any> | undefined;
2056
+ ttl?: string | undefined;
2031
2057
  batchId?: string | undefined;
2032
- version?: string | undefined;
2033
- startedAt?: Date | undefined;
2034
2058
  finishedAt?: Date | undefined;
2035
2059
  delayedUntil?: Date | undefined;
2036
2060
  expiredAt?: Date | undefined;
@@ -2046,12 +2070,12 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2046
2070
  stackTrace: z.ZodOptional<z.ZodString>;
2047
2071
  }, "strip", z.ZodTypeAny, {
2048
2072
  message: string;
2049
- name?: string | undefined;
2050
2073
  stackTrace?: string | undefined;
2074
+ name?: string | undefined;
2051
2075
  }, {
2052
2076
  message: string;
2053
- name?: string | undefined;
2054
2077
  stackTrace?: string | undefined;
2078
+ name?: string | undefined;
2055
2079
  }>>;
2056
2080
  schedule: z.ZodOptional<z.ZodObject<{
2057
2081
  id: z.ZodString;
@@ -2063,19 +2087,19 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2063
2087
  description: z.ZodString;
2064
2088
  }, "strip", z.ZodTypeAny, {
2065
2089
  type: "CRON";
2066
- expression: string;
2067
2090
  description: string;
2091
+ expression: string;
2068
2092
  }, {
2069
2093
  type: "CRON";
2070
- expression: string;
2071
2094
  description: string;
2095
+ expression: string;
2072
2096
  }>;
2073
2097
  }, "strip", z.ZodTypeAny, {
2074
2098
  id: string;
2075
2099
  generator: {
2076
2100
  type: "CRON";
2077
- expression: string;
2078
2101
  description: string;
2102
+ expression: string;
2079
2103
  };
2080
2104
  externalId?: string | undefined;
2081
2105
  deduplicationKey?: string | undefined;
@@ -2083,8 +2107,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2083
2107
  id: string;
2084
2108
  generator: {
2085
2109
  type: "CRON";
2086
- expression: string;
2087
2110
  description: string;
2111
+ expression: string;
2088
2112
  };
2089
2113
  externalId?: string | undefined;
2090
2114
  deduplicationKey?: string | undefined;
@@ -2122,27 +2146,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2122
2146
  id: string;
2123
2147
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2124
2148
  tags: string[];
2149
+ isTest: boolean;
2150
+ createdAt: Date;
2151
+ durationMs: number;
2152
+ costInCents: number;
2153
+ baseCostInCents: number;
2125
2154
  taskIdentifier: string;
2126
2155
  depth: number;
2127
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2156
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2128
2157
  isQueued: boolean;
2129
2158
  isExecuting: boolean;
2130
2159
  isCompleted: boolean;
2131
2160
  isSuccess: boolean;
2132
2161
  isFailed: boolean;
2133
2162
  isCancelled: boolean;
2134
- isTest: boolean;
2135
- createdAt: Date;
2136
2163
  updatedAt: Date;
2137
- costInCents: number;
2138
- baseCostInCents: number;
2139
- durationMs: number;
2164
+ version?: string | undefined;
2165
+ startedAt?: Date | undefined;
2140
2166
  idempotencyKey?: string | undefined;
2141
- ttl?: string | undefined;
2142
2167
  metadata?: Record<string, any> | undefined;
2168
+ ttl?: string | undefined;
2143
2169
  batchId?: string | undefined;
2144
- version?: string | undefined;
2145
- startedAt?: Date | undefined;
2146
2170
  finishedAt?: Date | undefined;
2147
2171
  delayedUntil?: Date | undefined;
2148
2172
  expiredAt?: Date | undefined;
@@ -2150,27 +2174,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2150
2174
  id: string;
2151
2175
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2152
2176
  tags: string[];
2177
+ isTest: boolean;
2178
+ createdAt: Date;
2179
+ durationMs: number;
2180
+ costInCents: number;
2181
+ baseCostInCents: number;
2153
2182
  taskIdentifier: string;
2154
2183
  depth: number;
2155
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2184
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2156
2185
  isQueued: boolean;
2157
2186
  isExecuting: boolean;
2158
2187
  isCompleted: boolean;
2159
2188
  isSuccess: boolean;
2160
2189
  isFailed: boolean;
2161
2190
  isCancelled: boolean;
2162
- isTest: boolean;
2163
- createdAt: Date;
2164
2191
  updatedAt: Date;
2165
- costInCents: number;
2166
- baseCostInCents: number;
2167
- durationMs: number;
2192
+ version?: string | undefined;
2193
+ startedAt?: Date | undefined;
2168
2194
  idempotencyKey?: string | undefined;
2169
- ttl?: string | undefined;
2170
2195
  metadata?: Record<string, any> | undefined;
2196
+ ttl?: string | undefined;
2171
2197
  batchId?: string | undefined;
2172
- version?: string | undefined;
2173
- startedAt?: Date | undefined;
2174
2198
  finishedAt?: Date | undefined;
2175
2199
  delayedUntil?: Date | undefined;
2176
2200
  expiredAt?: Date | undefined;
@@ -2207,27 +2231,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2207
2231
  id: string;
2208
2232
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2209
2233
  tags: string[];
2234
+ isTest: boolean;
2235
+ createdAt: Date;
2236
+ durationMs: number;
2237
+ costInCents: number;
2238
+ baseCostInCents: number;
2210
2239
  taskIdentifier: string;
2211
2240
  depth: number;
2212
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2241
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2213
2242
  isQueued: boolean;
2214
2243
  isExecuting: boolean;
2215
2244
  isCompleted: boolean;
2216
2245
  isSuccess: boolean;
2217
2246
  isFailed: boolean;
2218
2247
  isCancelled: boolean;
2219
- isTest: boolean;
2220
- createdAt: Date;
2221
2248
  updatedAt: Date;
2222
- costInCents: number;
2223
- baseCostInCents: number;
2224
- durationMs: number;
2249
+ version?: string | undefined;
2250
+ startedAt?: Date | undefined;
2225
2251
  idempotencyKey?: string | undefined;
2226
- ttl?: string | undefined;
2227
2252
  metadata?: Record<string, any> | undefined;
2253
+ ttl?: string | undefined;
2228
2254
  batchId?: string | undefined;
2229
- version?: string | undefined;
2230
- startedAt?: Date | undefined;
2231
2255
  finishedAt?: Date | undefined;
2232
2256
  delayedUntil?: Date | undefined;
2233
2257
  expiredAt?: Date | undefined;
@@ -2235,27 +2259,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2235
2259
  id: string;
2236
2260
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2237
2261
  tags: string[];
2262
+ isTest: boolean;
2263
+ createdAt: Date;
2264
+ durationMs: number;
2265
+ costInCents: number;
2266
+ baseCostInCents: number;
2238
2267
  taskIdentifier: string;
2239
2268
  depth: number;
2240
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2269
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2241
2270
  isQueued: boolean;
2242
2271
  isExecuting: boolean;
2243
2272
  isCompleted: boolean;
2244
2273
  isSuccess: boolean;
2245
2274
  isFailed: boolean;
2246
2275
  isCancelled: boolean;
2247
- isTest: boolean;
2248
- createdAt: Date;
2249
2276
  updatedAt: Date;
2250
- costInCents: number;
2251
- baseCostInCents: number;
2252
- durationMs: number;
2277
+ version?: string | undefined;
2278
+ startedAt?: Date | undefined;
2253
2279
  idempotencyKey?: string | undefined;
2254
- ttl?: string | undefined;
2255
2280
  metadata?: Record<string, any> | undefined;
2281
+ ttl?: string | undefined;
2256
2282
  batchId?: string | undefined;
2257
- version?: string | undefined;
2258
- startedAt?: Date | undefined;
2259
2283
  finishedAt?: Date | undefined;
2260
2284
  delayedUntil?: Date | undefined;
2261
2285
  expiredAt?: Date | undefined;
@@ -2292,27 +2316,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2292
2316
  id: string;
2293
2317
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2294
2318
  tags: string[];
2319
+ isTest: boolean;
2320
+ createdAt: Date;
2321
+ durationMs: number;
2322
+ costInCents: number;
2323
+ baseCostInCents: number;
2295
2324
  taskIdentifier: string;
2296
2325
  depth: number;
2297
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2326
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2298
2327
  isQueued: boolean;
2299
2328
  isExecuting: boolean;
2300
2329
  isCompleted: boolean;
2301
2330
  isSuccess: boolean;
2302
2331
  isFailed: boolean;
2303
2332
  isCancelled: boolean;
2304
- isTest: boolean;
2305
- createdAt: Date;
2306
2333
  updatedAt: Date;
2307
- costInCents: number;
2308
- baseCostInCents: number;
2309
- durationMs: number;
2334
+ version?: string | undefined;
2335
+ startedAt?: Date | undefined;
2310
2336
  idempotencyKey?: string | undefined;
2311
- ttl?: string | undefined;
2312
2337
  metadata?: Record<string, any> | undefined;
2338
+ ttl?: string | undefined;
2313
2339
  batchId?: string | undefined;
2314
- version?: string | undefined;
2315
- startedAt?: Date | undefined;
2316
2340
  finishedAt?: Date | undefined;
2317
2341
  delayedUntil?: Date | undefined;
2318
2342
  expiredAt?: Date | undefined;
@@ -2320,27 +2344,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2320
2344
  id: string;
2321
2345
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2322
2346
  tags: string[];
2347
+ isTest: boolean;
2348
+ createdAt: Date;
2349
+ durationMs: number;
2350
+ costInCents: number;
2351
+ baseCostInCents: number;
2323
2352
  taskIdentifier: string;
2324
2353
  depth: number;
2325
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2354
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2326
2355
  isQueued: boolean;
2327
2356
  isExecuting: boolean;
2328
2357
  isCompleted: boolean;
2329
2358
  isSuccess: boolean;
2330
2359
  isFailed: boolean;
2331
2360
  isCancelled: boolean;
2332
- isTest: boolean;
2333
- createdAt: Date;
2334
2361
  updatedAt: Date;
2335
- costInCents: number;
2336
- baseCostInCents: number;
2337
- durationMs: number;
2362
+ version?: string | undefined;
2363
+ startedAt?: Date | undefined;
2338
2364
  idempotencyKey?: string | undefined;
2339
- ttl?: string | undefined;
2340
2365
  metadata?: Record<string, any> | undefined;
2366
+ ttl?: string | undefined;
2341
2367
  batchId?: string | undefined;
2342
- version?: string | undefined;
2343
- startedAt?: Date | undefined;
2344
2368
  finishedAt?: Date | undefined;
2345
2369
  delayedUntil?: Date | undefined;
2346
2370
  expiredAt?: Date | undefined;
@@ -2350,27 +2374,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2350
2374
  id: string;
2351
2375
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2352
2376
  tags: string[];
2377
+ isTest: boolean;
2378
+ createdAt: Date;
2379
+ durationMs: number;
2380
+ costInCents: number;
2381
+ baseCostInCents: number;
2353
2382
  taskIdentifier: string;
2354
2383
  depth: number;
2355
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2384
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2356
2385
  isQueued: boolean;
2357
2386
  isExecuting: boolean;
2358
2387
  isCompleted: boolean;
2359
2388
  isSuccess: boolean;
2360
2389
  isFailed: boolean;
2361
2390
  isCancelled: boolean;
2362
- isTest: boolean;
2363
- createdAt: Date;
2364
2391
  updatedAt: Date;
2365
- costInCents: number;
2366
- baseCostInCents: number;
2367
- durationMs: number;
2392
+ version?: string | undefined;
2393
+ startedAt?: Date | undefined;
2368
2394
  idempotencyKey?: string | undefined;
2369
- ttl?: string | undefined;
2370
2395
  metadata?: Record<string, any> | undefined;
2396
+ ttl?: string | undefined;
2371
2397
  batchId?: string | undefined;
2372
- version?: string | undefined;
2373
- startedAt?: Date | undefined;
2374
2398
  finishedAt?: Date | undefined;
2375
2399
  delayedUntil?: Date | undefined;
2376
2400
  expiredAt?: Date | undefined;
@@ -2379,27 +2403,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2379
2403
  id: string;
2380
2404
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2381
2405
  tags: string[];
2406
+ isTest: boolean;
2407
+ createdAt: Date;
2408
+ durationMs: number;
2409
+ costInCents: number;
2410
+ baseCostInCents: number;
2382
2411
  taskIdentifier: string;
2383
2412
  depth: number;
2384
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2413
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2385
2414
  isQueued: boolean;
2386
2415
  isExecuting: boolean;
2387
2416
  isCompleted: boolean;
2388
2417
  isSuccess: boolean;
2389
2418
  isFailed: boolean;
2390
2419
  isCancelled: boolean;
2391
- isTest: boolean;
2392
- createdAt: Date;
2393
2420
  updatedAt: Date;
2394
- costInCents: number;
2395
- baseCostInCents: number;
2396
- durationMs: number;
2421
+ version?: string | undefined;
2422
+ startedAt?: Date | undefined;
2397
2423
  idempotencyKey?: string | undefined;
2398
- ttl?: string | undefined;
2399
2424
  metadata?: Record<string, any> | undefined;
2425
+ ttl?: string | undefined;
2400
2426
  batchId?: string | undefined;
2401
- version?: string | undefined;
2402
- startedAt?: Date | undefined;
2403
2427
  finishedAt?: Date | undefined;
2404
2428
  delayedUntil?: Date | undefined;
2405
2429
  expiredAt?: Date | undefined;
@@ -2408,27 +2432,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2408
2432
  id: string;
2409
2433
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2410
2434
  tags: string[];
2435
+ isTest: boolean;
2436
+ createdAt: Date;
2437
+ durationMs: number;
2438
+ costInCents: number;
2439
+ baseCostInCents: number;
2411
2440
  taskIdentifier: string;
2412
2441
  depth: number;
2413
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2442
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2414
2443
  isQueued: boolean;
2415
2444
  isExecuting: boolean;
2416
2445
  isCompleted: boolean;
2417
2446
  isSuccess: boolean;
2418
2447
  isFailed: boolean;
2419
2448
  isCancelled: boolean;
2420
- isTest: boolean;
2421
- createdAt: Date;
2422
2449
  updatedAt: Date;
2423
- costInCents: number;
2424
- baseCostInCents: number;
2425
- durationMs: number;
2450
+ version?: string | undefined;
2451
+ startedAt?: Date | undefined;
2426
2452
  idempotencyKey?: string | undefined;
2427
- ttl?: string | undefined;
2428
2453
  metadata?: Record<string, any> | undefined;
2454
+ ttl?: string | undefined;
2429
2455
  batchId?: string | undefined;
2430
- version?: string | undefined;
2431
- startedAt?: Date | undefined;
2432
2456
  finishedAt?: Date | undefined;
2433
2457
  delayedUntil?: Date | undefined;
2434
2458
  expiredAt?: Date | undefined;
@@ -2438,27 +2462,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2438
2462
  id: string;
2439
2463
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2440
2464
  tags: string[];
2465
+ isTest: boolean;
2466
+ createdAt: Date;
2467
+ durationMs: number;
2468
+ costInCents: number;
2469
+ baseCostInCents: number;
2441
2470
  taskIdentifier: string;
2442
2471
  depth: number;
2443
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2472
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2444
2473
  isQueued: boolean;
2445
2474
  isExecuting: boolean;
2446
2475
  isCompleted: boolean;
2447
2476
  isSuccess: boolean;
2448
2477
  isFailed: boolean;
2449
2478
  isCancelled: boolean;
2450
- isTest: boolean;
2451
- createdAt: Date;
2452
2479
  updatedAt: Date;
2453
- costInCents: number;
2454
- baseCostInCents: number;
2455
- durationMs: number;
2480
+ version?: string | undefined;
2481
+ startedAt?: Date | undefined;
2456
2482
  idempotencyKey?: string | undefined;
2457
- ttl?: string | undefined;
2458
2483
  metadata?: Record<string, any> | undefined;
2484
+ ttl?: string | undefined;
2459
2485
  batchId?: string | undefined;
2460
- version?: string | undefined;
2461
- startedAt?: Date | undefined;
2462
2486
  finishedAt?: Date | undefined;
2463
2487
  delayedUntil?: Date | undefined;
2464
2488
  expiredAt?: Date | undefined;
@@ -2467,27 +2491,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2467
2491
  id: string;
2468
2492
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2469
2493
  tags: string[];
2494
+ isTest: boolean;
2495
+ createdAt: Date;
2496
+ durationMs: number;
2497
+ costInCents: number;
2498
+ baseCostInCents: number;
2470
2499
  taskIdentifier: string;
2471
2500
  depth: number;
2472
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2501
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2473
2502
  isQueued: boolean;
2474
2503
  isExecuting: boolean;
2475
2504
  isCompleted: boolean;
2476
2505
  isSuccess: boolean;
2477
2506
  isFailed: boolean;
2478
2507
  isCancelled: boolean;
2479
- isTest: boolean;
2480
- createdAt: Date;
2481
2508
  updatedAt: Date;
2482
- costInCents: number;
2483
- baseCostInCents: number;
2484
- durationMs: number;
2509
+ version?: string | undefined;
2510
+ startedAt?: Date | undefined;
2485
2511
  idempotencyKey?: string | undefined;
2486
- ttl?: string | undefined;
2487
2512
  metadata?: Record<string, any> | undefined;
2513
+ ttl?: string | undefined;
2488
2514
  batchId?: string | undefined;
2489
- version?: string | undefined;
2490
- startedAt?: Date | undefined;
2491
2515
  finishedAt?: Date | undefined;
2492
2516
  delayedUntil?: Date | undefined;
2493
2517
  expiredAt?: Date | undefined;
@@ -2496,27 +2520,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2496
2520
  id: string;
2497
2521
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2498
2522
  tags: string[];
2523
+ isTest: boolean;
2524
+ createdAt: Date;
2525
+ durationMs: number;
2526
+ costInCents: number;
2527
+ baseCostInCents: number;
2499
2528
  taskIdentifier: string;
2500
2529
  depth: number;
2501
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2530
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2502
2531
  isQueued: boolean;
2503
2532
  isExecuting: boolean;
2504
2533
  isCompleted: boolean;
2505
2534
  isSuccess: boolean;
2506
2535
  isFailed: boolean;
2507
2536
  isCancelled: boolean;
2508
- isTest: boolean;
2509
- createdAt: Date;
2510
2537
  updatedAt: Date;
2511
- costInCents: number;
2512
- baseCostInCents: number;
2513
- durationMs: number;
2538
+ version?: string | undefined;
2539
+ startedAt?: Date | undefined;
2514
2540
  idempotencyKey?: string | undefined;
2515
- ttl?: string | undefined;
2516
2541
  metadata?: Record<string, any> | undefined;
2542
+ ttl?: string | undefined;
2517
2543
  batchId?: string | undefined;
2518
- version?: string | undefined;
2519
- startedAt?: Date | undefined;
2520
2544
  finishedAt?: Date | undefined;
2521
2545
  delayedUntil?: Date | undefined;
2522
2546
  expiredAt?: Date | undefined;
@@ -2535,36 +2559,36 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2535
2559
  stackTrace: z.ZodOptional<z.ZodString>;
2536
2560
  }, "strip", z.ZodTypeAny, {
2537
2561
  message: string;
2538
- name?: string | undefined;
2539
2562
  stackTrace?: string | undefined;
2563
+ name?: string | undefined;
2540
2564
  }, {
2541
2565
  message: string;
2542
- name?: string | undefined;
2543
2566
  stackTrace?: string | undefined;
2567
+ name?: string | undefined;
2544
2568
  }>>;
2545
2569
  }, "strip", z.ZodTypeAny, {
2546
2570
  id: string;
2547
2571
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2548
2572
  createdAt: Date;
2549
2573
  updatedAt: Date;
2574
+ startedAt?: Date | undefined;
2550
2575
  error?: {
2551
2576
  message: string;
2552
- name?: string | undefined;
2553
2577
  stackTrace?: string | undefined;
2578
+ name?: string | undefined;
2554
2579
  } | undefined;
2555
- startedAt?: Date | undefined;
2556
2580
  completedAt?: Date | undefined;
2557
2581
  }, {
2558
2582
  id: string;
2559
2583
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2560
2584
  createdAt: Date;
2561
2585
  updatedAt: Date;
2586
+ startedAt?: Date | undefined;
2562
2587
  error?: {
2563
2588
  message: string;
2564
- name?: string | undefined;
2565
2589
  stackTrace?: string | undefined;
2590
+ name?: string | undefined;
2566
2591
  } | undefined;
2567
- startedAt?: Date | undefined;
2568
2592
  completedAt?: Date | undefined;
2569
2593
  }>>, "many">;
2570
2594
  attemptCount: z.ZodDefault<z.ZodNumber>;
@@ -2599,33 +2623,38 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2599
2623
  id: string;
2600
2624
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2601
2625
  tags: string[];
2626
+ isTest: boolean;
2627
+ createdAt: Date;
2628
+ durationMs: number;
2629
+ costInCents: number;
2630
+ baseCostInCents: number;
2602
2631
  taskIdentifier: string;
2603
2632
  relatedRuns: {
2604
2633
  root?: {
2605
2634
  id: string;
2606
2635
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2607
2636
  tags: string[];
2637
+ isTest: boolean;
2638
+ createdAt: Date;
2639
+ durationMs: number;
2640
+ costInCents: number;
2641
+ baseCostInCents: number;
2608
2642
  taskIdentifier: string;
2609
2643
  depth: number;
2610
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2644
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2611
2645
  isQueued: boolean;
2612
2646
  isExecuting: boolean;
2613
2647
  isCompleted: boolean;
2614
2648
  isSuccess: boolean;
2615
2649
  isFailed: boolean;
2616
2650
  isCancelled: boolean;
2617
- isTest: boolean;
2618
- createdAt: Date;
2619
2651
  updatedAt: Date;
2620
- costInCents: number;
2621
- baseCostInCents: number;
2622
- durationMs: number;
2652
+ version?: string | undefined;
2653
+ startedAt?: Date | undefined;
2623
2654
  idempotencyKey?: string | undefined;
2624
- ttl?: string | undefined;
2625
2655
  metadata?: Record<string, any> | undefined;
2656
+ ttl?: string | undefined;
2626
2657
  batchId?: string | undefined;
2627
- version?: string | undefined;
2628
- startedAt?: Date | undefined;
2629
2658
  finishedAt?: Date | undefined;
2630
2659
  delayedUntil?: Date | undefined;
2631
2660
  expiredAt?: Date | undefined;
@@ -2634,27 +2663,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2634
2663
  id: string;
2635
2664
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2636
2665
  tags: string[];
2666
+ isTest: boolean;
2667
+ createdAt: Date;
2668
+ durationMs: number;
2669
+ costInCents: number;
2670
+ baseCostInCents: number;
2637
2671
  taskIdentifier: string;
2638
2672
  depth: number;
2639
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2673
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2640
2674
  isQueued: boolean;
2641
2675
  isExecuting: boolean;
2642
2676
  isCompleted: boolean;
2643
2677
  isSuccess: boolean;
2644
2678
  isFailed: boolean;
2645
2679
  isCancelled: boolean;
2646
- isTest: boolean;
2647
- createdAt: Date;
2648
2680
  updatedAt: Date;
2649
- costInCents: number;
2650
- baseCostInCents: number;
2651
- durationMs: number;
2681
+ version?: string | undefined;
2682
+ startedAt?: Date | undefined;
2652
2683
  idempotencyKey?: string | undefined;
2653
- ttl?: string | undefined;
2654
2684
  metadata?: Record<string, any> | undefined;
2685
+ ttl?: string | undefined;
2655
2686
  batchId?: string | undefined;
2656
- version?: string | undefined;
2657
- startedAt?: Date | undefined;
2658
2687
  finishedAt?: Date | undefined;
2659
2688
  delayedUntil?: Date | undefined;
2660
2689
  expiredAt?: Date | undefined;
@@ -2663,85 +2692,80 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2663
2692
  id: string;
2664
2693
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2665
2694
  tags: string[];
2695
+ isTest: boolean;
2696
+ createdAt: Date;
2697
+ durationMs: number;
2698
+ costInCents: number;
2699
+ baseCostInCents: number;
2666
2700
  taskIdentifier: string;
2667
2701
  depth: number;
2668
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2702
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2669
2703
  isQueued: boolean;
2670
2704
  isExecuting: boolean;
2671
2705
  isCompleted: boolean;
2672
2706
  isSuccess: boolean;
2673
2707
  isFailed: boolean;
2674
2708
  isCancelled: boolean;
2675
- isTest: boolean;
2676
- createdAt: Date;
2677
2709
  updatedAt: Date;
2678
- costInCents: number;
2679
- baseCostInCents: number;
2680
- durationMs: number;
2710
+ version?: string | undefined;
2711
+ startedAt?: Date | undefined;
2681
2712
  idempotencyKey?: string | undefined;
2682
- ttl?: string | undefined;
2683
2713
  metadata?: Record<string, any> | undefined;
2714
+ ttl?: string | undefined;
2684
2715
  batchId?: string | undefined;
2685
- version?: string | undefined;
2686
- startedAt?: Date | undefined;
2687
2716
  finishedAt?: Date | undefined;
2688
2717
  delayedUntil?: Date | undefined;
2689
2718
  expiredAt?: Date | undefined;
2690
2719
  }[] | undefined;
2691
2720
  };
2692
2721
  depth: number;
2693
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2722
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2694
2723
  isQueued: boolean;
2695
2724
  isExecuting: boolean;
2696
2725
  isCompleted: boolean;
2697
2726
  isSuccess: boolean;
2698
2727
  isFailed: boolean;
2699
2728
  isCancelled: boolean;
2700
- isTest: boolean;
2701
- createdAt: Date;
2702
2729
  updatedAt: Date;
2703
- costInCents: number;
2704
- baseCostInCents: number;
2705
- durationMs: number;
2706
2730
  attempts: ({
2707
2731
  id: string;
2708
2732
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2709
2733
  createdAt: Date;
2710
2734
  updatedAt: Date;
2735
+ startedAt?: Date | undefined;
2711
2736
  error?: {
2712
2737
  message: string;
2713
- name?: string | undefined;
2714
2738
  stackTrace?: string | undefined;
2739
+ name?: string | undefined;
2715
2740
  } | undefined;
2716
- startedAt?: Date | undefined;
2717
2741
  completedAt?: Date | undefined;
2718
2742
  } | undefined)[];
2719
2743
  attemptCount: number;
2720
- payload?: any;
2721
- idempotencyKey?: string | undefined;
2722
- ttl?: string | undefined;
2723
- metadata?: Record<string, any> | undefined;
2724
- payloadPresignedUrl?: string | undefined;
2725
- output?: any;
2726
- outputPresignedUrl?: string | undefined;
2727
- error?: {
2728
- message: string;
2729
- name?: string | undefined;
2730
- stackTrace?: string | undefined;
2731
- } | undefined;
2732
2744
  schedule?: {
2733
2745
  id: string;
2734
2746
  generator: {
2735
2747
  type: "CRON";
2736
- expression: string;
2737
2748
  description: string;
2749
+ expression: string;
2738
2750
  };
2739
2751
  externalId?: string | undefined;
2740
2752
  deduplicationKey?: string | undefined;
2741
2753
  } | undefined;
2754
+ version?: string | undefined;
2755
+ output?: any;
2756
+ startedAt?: Date | undefined;
2757
+ payload?: any;
2758
+ idempotencyKey?: string | undefined;
2759
+ metadata?: Record<string, any> | undefined;
2760
+ ttl?: string | undefined;
2761
+ payloadPresignedUrl?: string | undefined;
2762
+ outputPresignedUrl?: string | undefined;
2763
+ error?: {
2764
+ message: string;
2765
+ stackTrace?: string | undefined;
2766
+ name?: string | undefined;
2767
+ } | undefined;
2742
2768
  batchId?: string | undefined;
2743
- version?: string | undefined;
2744
- startedAt?: Date | undefined;
2745
2769
  finishedAt?: Date | undefined;
2746
2770
  delayedUntil?: Date | undefined;
2747
2771
  expiredAt?: Date | undefined;
@@ -2749,33 +2773,38 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2749
2773
  id: string;
2750
2774
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2751
2775
  tags: string[];
2776
+ isTest: boolean;
2777
+ createdAt: Date;
2778
+ durationMs: number;
2779
+ costInCents: number;
2780
+ baseCostInCents: number;
2752
2781
  taskIdentifier: string;
2753
2782
  relatedRuns: {
2754
2783
  root?: {
2755
2784
  id: string;
2756
2785
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2757
2786
  tags: string[];
2787
+ isTest: boolean;
2788
+ createdAt: Date;
2789
+ durationMs: number;
2790
+ costInCents: number;
2791
+ baseCostInCents: number;
2758
2792
  taskIdentifier: string;
2759
2793
  depth: number;
2760
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2794
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2761
2795
  isQueued: boolean;
2762
2796
  isExecuting: boolean;
2763
2797
  isCompleted: boolean;
2764
2798
  isSuccess: boolean;
2765
2799
  isFailed: boolean;
2766
2800
  isCancelled: boolean;
2767
- isTest: boolean;
2768
- createdAt: Date;
2769
2801
  updatedAt: Date;
2770
- costInCents: number;
2771
- baseCostInCents: number;
2772
- durationMs: number;
2802
+ version?: string | undefined;
2803
+ startedAt?: Date | undefined;
2773
2804
  idempotencyKey?: string | undefined;
2774
- ttl?: string | undefined;
2775
2805
  metadata?: Record<string, any> | undefined;
2806
+ ttl?: string | undefined;
2776
2807
  batchId?: string | undefined;
2777
- version?: string | undefined;
2778
- startedAt?: Date | undefined;
2779
2808
  finishedAt?: Date | undefined;
2780
2809
  delayedUntil?: Date | undefined;
2781
2810
  expiredAt?: Date | undefined;
@@ -2784,27 +2813,27 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2784
2813
  id: string;
2785
2814
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2786
2815
  tags: string[];
2816
+ isTest: boolean;
2817
+ createdAt: Date;
2818
+ durationMs: number;
2819
+ costInCents: number;
2820
+ baseCostInCents: number;
2787
2821
  taskIdentifier: string;
2788
2822
  depth: number;
2789
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2823
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2790
2824
  isQueued: boolean;
2791
2825
  isExecuting: boolean;
2792
2826
  isCompleted: boolean;
2793
2827
  isSuccess: boolean;
2794
2828
  isFailed: boolean;
2795
2829
  isCancelled: boolean;
2796
- isTest: boolean;
2797
- createdAt: Date;
2798
2830
  updatedAt: Date;
2799
- costInCents: number;
2800
- baseCostInCents: number;
2801
- durationMs: number;
2831
+ version?: string | undefined;
2832
+ startedAt?: Date | undefined;
2802
2833
  idempotencyKey?: string | undefined;
2803
- ttl?: string | undefined;
2804
2834
  metadata?: Record<string, any> | undefined;
2835
+ ttl?: string | undefined;
2805
2836
  batchId?: string | undefined;
2806
- version?: string | undefined;
2807
- startedAt?: Date | undefined;
2808
2837
  finishedAt?: Date | undefined;
2809
2838
  delayedUntil?: Date | undefined;
2810
2839
  expiredAt?: Date | undefined;
@@ -2813,84 +2842,79 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2813
2842
  id: string;
2814
2843
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2815
2844
  tags: string[];
2845
+ isTest: boolean;
2846
+ createdAt: Date;
2847
+ durationMs: number;
2848
+ costInCents: number;
2849
+ baseCostInCents: number;
2816
2850
  taskIdentifier: string;
2817
2851
  depth: number;
2818
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2852
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2819
2853
  isQueued: boolean;
2820
2854
  isExecuting: boolean;
2821
2855
  isCompleted: boolean;
2822
2856
  isSuccess: boolean;
2823
2857
  isFailed: boolean;
2824
2858
  isCancelled: boolean;
2825
- isTest: boolean;
2826
- createdAt: Date;
2827
2859
  updatedAt: Date;
2828
- costInCents: number;
2829
- baseCostInCents: number;
2830
- durationMs: number;
2860
+ version?: string | undefined;
2861
+ startedAt?: Date | undefined;
2831
2862
  idempotencyKey?: string | undefined;
2832
- ttl?: string | undefined;
2833
2863
  metadata?: Record<string, any> | undefined;
2864
+ ttl?: string | undefined;
2834
2865
  batchId?: string | undefined;
2835
- version?: string | undefined;
2836
- startedAt?: Date | undefined;
2837
2866
  finishedAt?: Date | undefined;
2838
2867
  delayedUntil?: Date | undefined;
2839
2868
  expiredAt?: Date | undefined;
2840
2869
  }[] | undefined;
2841
2870
  };
2842
2871
  depth: number;
2843
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2872
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2844
2873
  isQueued: boolean;
2845
2874
  isExecuting: boolean;
2846
2875
  isCompleted: boolean;
2847
2876
  isSuccess: boolean;
2848
2877
  isFailed: boolean;
2849
2878
  isCancelled: boolean;
2850
- isTest: boolean;
2851
- createdAt: Date;
2852
2879
  updatedAt: Date;
2853
- costInCents: number;
2854
- baseCostInCents: number;
2855
- durationMs: number;
2856
2880
  attempts: ({
2857
2881
  id: string;
2858
2882
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2859
2883
  createdAt: Date;
2860
2884
  updatedAt: Date;
2885
+ startedAt?: Date | undefined;
2861
2886
  error?: {
2862
2887
  message: string;
2863
- name?: string | undefined;
2864
2888
  stackTrace?: string | undefined;
2889
+ name?: string | undefined;
2865
2890
  } | undefined;
2866
- startedAt?: Date | undefined;
2867
2891
  completedAt?: Date | undefined;
2868
2892
  } | undefined)[];
2869
- payload?: any;
2870
- idempotencyKey?: string | undefined;
2871
- ttl?: string | undefined;
2872
- metadata?: Record<string, any> | undefined;
2873
- payloadPresignedUrl?: string | undefined;
2874
- output?: any;
2875
- outputPresignedUrl?: string | undefined;
2876
- error?: {
2877
- message: string;
2878
- name?: string | undefined;
2879
- stackTrace?: string | undefined;
2880
- } | undefined;
2881
2893
  schedule?: {
2882
2894
  id: string;
2883
2895
  generator: {
2884
2896
  type: "CRON";
2885
- expression: string;
2886
2897
  description: string;
2898
+ expression: string;
2887
2899
  };
2888
2900
  externalId?: string | undefined;
2889
2901
  deduplicationKey?: string | undefined;
2890
2902
  } | undefined;
2891
- batchId?: string | undefined;
2892
2903
  version?: string | undefined;
2904
+ output?: any;
2893
2905
  startedAt?: Date | undefined;
2906
+ payload?: any;
2907
+ idempotencyKey?: string | undefined;
2908
+ metadata?: Record<string, any> | undefined;
2909
+ ttl?: string | undefined;
2910
+ payloadPresignedUrl?: string | undefined;
2911
+ outputPresignedUrl?: string | undefined;
2912
+ error?: {
2913
+ message: string;
2914
+ stackTrace?: string | undefined;
2915
+ name?: string | undefined;
2916
+ } | undefined;
2917
+ batchId?: string | undefined;
2894
2918
  finishedAt?: Date | undefined;
2895
2919
  delayedUntil?: Date | undefined;
2896
2920
  expiredAt?: Date | undefined;
@@ -2939,6 +2963,11 @@ export declare const ListRunResponseItem: z.ZodObject<{
2939
2963
  id: string;
2940
2964
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2941
2965
  tags: string[];
2966
+ isTest: boolean;
2967
+ createdAt: Date;
2968
+ durationMs: number;
2969
+ costInCents: number;
2970
+ baseCostInCents: number;
2942
2971
  taskIdentifier: string;
2943
2972
  isQueued: boolean;
2944
2973
  isExecuting: boolean;
@@ -2946,22 +2975,17 @@ export declare const ListRunResponseItem: z.ZodObject<{
2946
2975
  isSuccess: boolean;
2947
2976
  isFailed: boolean;
2948
2977
  isCancelled: boolean;
2949
- isTest: boolean;
2950
- createdAt: Date;
2951
2978
  updatedAt: Date;
2952
- costInCents: number;
2953
- baseCostInCents: number;
2954
- durationMs: number;
2955
2979
  env: {
2956
2980
  id: string;
2957
2981
  name: string;
2958
2982
  user?: string | undefined;
2959
2983
  };
2960
- idempotencyKey?: string | undefined;
2961
- ttl?: string | undefined;
2962
- metadata?: Record<string, any> | undefined;
2963
2984
  version?: string | undefined;
2964
2985
  startedAt?: Date | undefined;
2986
+ idempotencyKey?: string | undefined;
2987
+ metadata?: Record<string, any> | undefined;
2988
+ ttl?: string | undefined;
2965
2989
  finishedAt?: Date | undefined;
2966
2990
  delayedUntil?: Date | undefined;
2967
2991
  expiredAt?: Date | undefined;
@@ -2969,6 +2993,11 @@ export declare const ListRunResponseItem: z.ZodObject<{
2969
2993
  id: string;
2970
2994
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2971
2995
  tags: string[];
2996
+ isTest: boolean;
2997
+ createdAt: Date;
2998
+ durationMs: number;
2999
+ costInCents: number;
3000
+ baseCostInCents: number;
2972
3001
  taskIdentifier: string;
2973
3002
  isQueued: boolean;
2974
3003
  isExecuting: boolean;
@@ -2976,22 +3005,17 @@ export declare const ListRunResponseItem: z.ZodObject<{
2976
3005
  isSuccess: boolean;
2977
3006
  isFailed: boolean;
2978
3007
  isCancelled: boolean;
2979
- isTest: boolean;
2980
- createdAt: Date;
2981
3008
  updatedAt: Date;
2982
- costInCents: number;
2983
- baseCostInCents: number;
2984
- durationMs: number;
2985
3009
  env: {
2986
3010
  id: string;
2987
3011
  name: string;
2988
3012
  user?: string | undefined;
2989
3013
  };
2990
- idempotencyKey?: string | undefined;
2991
- ttl?: string | undefined;
2992
- metadata?: Record<string, any> | undefined;
2993
3014
  version?: string | undefined;
2994
3015
  startedAt?: Date | undefined;
3016
+ idempotencyKey?: string | undefined;
3017
+ metadata?: Record<string, any> | undefined;
3018
+ ttl?: string | undefined;
2995
3019
  finishedAt?: Date | undefined;
2996
3020
  delayedUntil?: Date | undefined;
2997
3021
  expiredAt?: Date | undefined;
@@ -3040,6 +3064,11 @@ export declare const ListRunResponse: z.ZodObject<{
3040
3064
  id: string;
3041
3065
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3042
3066
  tags: string[];
3067
+ isTest: boolean;
3068
+ createdAt: Date;
3069
+ durationMs: number;
3070
+ costInCents: number;
3071
+ baseCostInCents: number;
3043
3072
  taskIdentifier: string;
3044
3073
  isQueued: boolean;
3045
3074
  isExecuting: boolean;
@@ -3047,22 +3076,17 @@ export declare const ListRunResponse: z.ZodObject<{
3047
3076
  isSuccess: boolean;
3048
3077
  isFailed: boolean;
3049
3078
  isCancelled: boolean;
3050
- isTest: boolean;
3051
- createdAt: Date;
3052
3079
  updatedAt: Date;
3053
- costInCents: number;
3054
- baseCostInCents: number;
3055
- durationMs: number;
3056
3080
  env: {
3057
3081
  id: string;
3058
3082
  name: string;
3059
3083
  user?: string | undefined;
3060
3084
  };
3061
- idempotencyKey?: string | undefined;
3062
- ttl?: string | undefined;
3063
- metadata?: Record<string, any> | undefined;
3064
3085
  version?: string | undefined;
3065
3086
  startedAt?: Date | undefined;
3087
+ idempotencyKey?: string | undefined;
3088
+ metadata?: Record<string, any> | undefined;
3089
+ ttl?: string | undefined;
3066
3090
  finishedAt?: Date | undefined;
3067
3091
  delayedUntil?: Date | undefined;
3068
3092
  expiredAt?: Date | undefined;
@@ -3070,6 +3094,11 @@ export declare const ListRunResponse: z.ZodObject<{
3070
3094
  id: string;
3071
3095
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3072
3096
  tags: string[];
3097
+ isTest: boolean;
3098
+ createdAt: Date;
3099
+ durationMs: number;
3100
+ costInCents: number;
3101
+ baseCostInCents: number;
3073
3102
  taskIdentifier: string;
3074
3103
  isQueued: boolean;
3075
3104
  isExecuting: boolean;
@@ -3077,22 +3106,17 @@ export declare const ListRunResponse: z.ZodObject<{
3077
3106
  isSuccess: boolean;
3078
3107
  isFailed: boolean;
3079
3108
  isCancelled: boolean;
3080
- isTest: boolean;
3081
- createdAt: Date;
3082
3109
  updatedAt: Date;
3083
- costInCents: number;
3084
- baseCostInCents: number;
3085
- durationMs: number;
3086
3110
  env: {
3087
3111
  id: string;
3088
3112
  name: string;
3089
3113
  user?: string | undefined;
3090
3114
  };
3091
- idempotencyKey?: string | undefined;
3092
- ttl?: string | undefined;
3093
- metadata?: Record<string, any> | undefined;
3094
3115
  version?: string | undefined;
3095
3116
  startedAt?: Date | undefined;
3117
+ idempotencyKey?: string | undefined;
3118
+ metadata?: Record<string, any> | undefined;
3119
+ ttl?: string | undefined;
3096
3120
  finishedAt?: Date | undefined;
3097
3121
  delayedUntil?: Date | undefined;
3098
3122
  expiredAt?: Date | undefined;
@@ -3112,6 +3136,11 @@ export declare const ListRunResponse: z.ZodObject<{
3112
3136
  id: string;
3113
3137
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3114
3138
  tags: string[];
3139
+ isTest: boolean;
3140
+ createdAt: Date;
3141
+ durationMs: number;
3142
+ costInCents: number;
3143
+ baseCostInCents: number;
3115
3144
  taskIdentifier: string;
3116
3145
  isQueued: boolean;
3117
3146
  isExecuting: boolean;
@@ -3119,22 +3148,17 @@ export declare const ListRunResponse: z.ZodObject<{
3119
3148
  isSuccess: boolean;
3120
3149
  isFailed: boolean;
3121
3150
  isCancelled: boolean;
3122
- isTest: boolean;
3123
- createdAt: Date;
3124
3151
  updatedAt: Date;
3125
- costInCents: number;
3126
- baseCostInCents: number;
3127
- durationMs: number;
3128
3152
  env: {
3129
3153
  id: string;
3130
3154
  name: string;
3131
3155
  user?: string | undefined;
3132
3156
  };
3133
- idempotencyKey?: string | undefined;
3134
- ttl?: string | undefined;
3135
- metadata?: Record<string, any> | undefined;
3136
3157
  version?: string | undefined;
3137
3158
  startedAt?: Date | undefined;
3159
+ idempotencyKey?: string | undefined;
3160
+ metadata?: Record<string, any> | undefined;
3161
+ ttl?: string | undefined;
3138
3162
  finishedAt?: Date | undefined;
3139
3163
  delayedUntil?: Date | undefined;
3140
3164
  expiredAt?: Date | undefined;
@@ -3148,6 +3172,11 @@ export declare const ListRunResponse: z.ZodObject<{
3148
3172
  id: string;
3149
3173
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3150
3174
  tags: string[];
3175
+ isTest: boolean;
3176
+ createdAt: Date;
3177
+ durationMs: number;
3178
+ costInCents: number;
3179
+ baseCostInCents: number;
3151
3180
  taskIdentifier: string;
3152
3181
  isQueued: boolean;
3153
3182
  isExecuting: boolean;
@@ -3155,22 +3184,17 @@ export declare const ListRunResponse: z.ZodObject<{
3155
3184
  isSuccess: boolean;
3156
3185
  isFailed: boolean;
3157
3186
  isCancelled: boolean;
3158
- isTest: boolean;
3159
- createdAt: Date;
3160
3187
  updatedAt: Date;
3161
- costInCents: number;
3162
- baseCostInCents: number;
3163
- durationMs: number;
3164
3188
  env: {
3165
3189
  id: string;
3166
3190
  name: string;
3167
3191
  user?: string | undefined;
3168
3192
  };
3169
- idempotencyKey?: string | undefined;
3170
- ttl?: string | undefined;
3171
- metadata?: Record<string, any> | undefined;
3172
3193
  version?: string | undefined;
3173
3194
  startedAt?: Date | undefined;
3195
+ idempotencyKey?: string | undefined;
3196
+ metadata?: Record<string, any> | undefined;
3197
+ ttl?: string | undefined;
3174
3198
  finishedAt?: Date | undefined;
3175
3199
  delayedUntil?: Date | undefined;
3176
3200
  expiredAt?: Date | undefined;
@@ -3606,13 +3630,13 @@ export type UpdateMetadataResponseBody = z.infer<typeof UpdateMetadataResponseBo
3606
3630
  export declare const SubscribeRunRawShape: z.ZodObject<{
3607
3631
  id: z.ZodString;
3608
3632
  idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3609
- createdAt: z.ZodDate;
3610
- updatedAt: z.ZodDate;
3611
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3612
- delayUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3613
- queuedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3614
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3615
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3633
+ createdAt: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodDate>;
3634
+ updatedAt: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodDate>;
3635
+ startedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3636
+ delayUntil: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3637
+ queuedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3638
+ expiredAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3639
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3616
3640
  taskIdentifier: z.ZodString;
3617
3641
  friendlyId: z.ZodString;
3618
3642
  number: z.ZodNumber;
@@ -3635,15 +3659,15 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3635
3659
  message: z.ZodString;
3636
3660
  stackTrace: z.ZodString;
3637
3661
  }, "strip", z.ZodTypeAny, {
3638
- message: string;
3639
3662
  type: "BUILT_IN_ERROR";
3640
- name: string;
3663
+ message: string;
3641
3664
  stackTrace: string;
3665
+ name: string;
3642
3666
  }, {
3643
- message: string;
3644
3667
  type: "BUILT_IN_ERROR";
3645
- name: string;
3668
+ message: string;
3646
3669
  stackTrace: string;
3670
+ name: string;
3647
3671
  }>, z.ZodObject<{
3648
3672
  type: z.ZodLiteral<"CUSTOM_ERROR">;
3649
3673
  raw: z.ZodString;
@@ -3664,17 +3688,17 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3664
3688
  raw: string;
3665
3689
  }>, z.ZodObject<{
3666
3690
  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"]>;
3691
+ 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", "TASK_DID_CONCURRENT_WAIT"]>;
3668
3692
  message: z.ZodOptional<z.ZodString>;
3669
3693
  stackTrace: z.ZodOptional<z.ZodString>;
3670
3694
  }, "strip", z.ZodTypeAny, {
3671
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3672
3695
  type: "INTERNAL_ERROR";
3696
+ 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" | "TASK_DID_CONCURRENT_WAIT";
3673
3697
  message?: string | undefined;
3674
3698
  stackTrace?: string | undefined;
3675
3699
  }, {
3676
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3677
3700
  type: "INTERNAL_ERROR";
3701
+ 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" | "TASK_DID_CONCURRENT_WAIT";
3678
3702
  message?: string | undefined;
3679
3703
  stackTrace?: string | undefined;
3680
3704
  }>]>>>;
@@ -3682,87 +3706,87 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3682
3706
  number: number;
3683
3707
  id: string;
3684
3708
  status: string;
3685
- taskIdentifier: string;
3686
3709
  isTest: boolean;
3687
3710
  createdAt: Date;
3688
- updatedAt: Date;
3689
3711
  costInCents: number;
3690
3712
  baseCostInCents: number;
3713
+ taskIdentifier: string;
3714
+ updatedAt: Date;
3691
3715
  friendlyId: string;
3692
3716
  usageDurationMs: number;
3693
3717
  runTags: string[] | null;
3718
+ output?: string | null | undefined;
3719
+ startedAt?: string | Date | null | undefined;
3694
3720
  payload?: string | null | undefined;
3695
- idempotencyKey?: string | null | undefined;
3696
3721
  payloadType?: string | null | undefined;
3697
- ttl?: string | null | undefined;
3722
+ idempotencyKey?: string | null | undefined;
3698
3723
  metadata?: string | null | undefined;
3699
- metadataType?: string | null | undefined;
3700
- output?: string | null | undefined;
3724
+ ttl?: string | null | undefined;
3701
3725
  error?: {
3702
- message: string;
3726
+ type: "INTERNAL_ERROR";
3727
+ 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" | "TASK_DID_CONCURRENT_WAIT";
3728
+ message?: string | undefined;
3729
+ stackTrace?: string | undefined;
3730
+ } | {
3703
3731
  type: "BUILT_IN_ERROR";
3704
- name: string;
3732
+ message: string;
3705
3733
  stackTrace: string;
3734
+ name: string;
3706
3735
  } | {
3707
3736
  type: "CUSTOM_ERROR";
3708
3737
  raw: string;
3709
3738
  } | {
3710
3739
  type: "STRING_ERROR";
3711
3740
  raw: string;
3712
- } | {
3713
- 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";
3714
- type: "INTERNAL_ERROR";
3715
- message?: string | undefined;
3716
- stackTrace?: string | undefined;
3717
3741
  } | null | undefined;
3718
- startedAt?: Date | null | undefined;
3719
- expiredAt?: Date | null | undefined;
3720
- completedAt?: Date | null | undefined;
3742
+ expiredAt?: string | Date | null | undefined;
3743
+ completedAt?: string | Date | null | undefined;
3744
+ metadataType?: string | null | undefined;
3745
+ delayUntil?: string | Date | null | undefined;
3746
+ queuedAt?: string | Date | null | undefined;
3721
3747
  outputType?: string | null | undefined;
3722
- delayUntil?: Date | null | undefined;
3723
- queuedAt?: Date | null | undefined;
3724
3748
  }, {
3725
3749
  number: number;
3726
3750
  id: string;
3727
3751
  status: string;
3728
- taskIdentifier: string;
3729
3752
  isTest: boolean;
3730
- createdAt: Date;
3731
- updatedAt: Date;
3753
+ createdAt: string;
3732
3754
  costInCents: number;
3733
3755
  baseCostInCents: number;
3756
+ taskIdentifier: string;
3757
+ updatedAt: string;
3734
3758
  friendlyId: string;
3735
3759
  usageDurationMs: number;
3760
+ output?: string | null | undefined;
3761
+ startedAt?: string | null | undefined;
3736
3762
  payload?: string | null | undefined;
3737
- idempotencyKey?: string | null | undefined;
3738
3763
  payloadType?: string | null | undefined;
3739
- ttl?: string | null | undefined;
3764
+ idempotencyKey?: string | null | undefined;
3740
3765
  metadata?: string | null | undefined;
3741
- metadataType?: string | null | undefined;
3742
- output?: string | null | undefined;
3766
+ ttl?: string | null | undefined;
3743
3767
  error?: {
3744
- message: string;
3768
+ type: "INTERNAL_ERROR";
3769
+ 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" | "TASK_DID_CONCURRENT_WAIT";
3770
+ message?: string | undefined;
3771
+ stackTrace?: string | undefined;
3772
+ } | {
3745
3773
  type: "BUILT_IN_ERROR";
3746
- name: string;
3774
+ message: string;
3747
3775
  stackTrace: string;
3776
+ name: string;
3748
3777
  } | {
3749
3778
  type: "CUSTOM_ERROR";
3750
3779
  raw: string;
3751
3780
  } | {
3752
3781
  type: "STRING_ERROR";
3753
3782
  raw: string;
3754
- } | {
3755
- 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";
3756
- type: "INTERNAL_ERROR";
3757
- message?: string | undefined;
3758
- stackTrace?: string | undefined;
3759
3783
  } | null | undefined;
3760
- startedAt?: Date | null | undefined;
3761
- expiredAt?: Date | null | undefined;
3762
- completedAt?: Date | null | undefined;
3784
+ expiredAt?: string | null | undefined;
3785
+ completedAt?: string | null | undefined;
3786
+ metadataType?: string | null | undefined;
3787
+ delayUntil?: string | null | undefined;
3788
+ queuedAt?: string | null | undefined;
3763
3789
  outputType?: string | null | undefined;
3764
- delayUntil?: Date | null | undefined;
3765
- queuedAt?: Date | null | undefined;
3766
3790
  runTags?: string[] | null | undefined;
3767
3791
  }>;
3768
3792
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
@@ -3802,15 +3826,15 @@ export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{
3802
3826
  id: string;
3803
3827
  value: string;
3804
3828
  createdAt: Date;
3805
- key: string;
3806
3829
  runId: string;
3830
+ key: string;
3807
3831
  sequence: number;
3808
3832
  }, {
3809
3833
  id: string;
3810
3834
  value: string;
3811
3835
  createdAt: Date;
3812
- key: string;
3813
3836
  runId: string;
3837
+ key: string;
3814
3838
  sequence: number;
3815
3839
  }>;
3816
3840
  export type SubscribeRealtimeStreamChunkRawShape = z.infer<typeof SubscribeRealtimeStreamChunkRawShape>;