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

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 (42) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +169 -165
  2. package/dist/commonjs/v3/apiClient/index.js +9 -0
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/runStream.d.ts +2 -17
  5. package/dist/commonjs/v3/apiClient/runStream.js +68 -47
  6. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  7. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  8. package/dist/commonjs/v3/config.d.ts +55 -0
  9. package/dist/commonjs/v3/runMetadata/manager.d.ts +3 -3
  10. package/dist/commonjs/v3/runMetadata/manager.js +1 -7
  11. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  12. package/dist/commonjs/v3/schemas/api.d.ts +820 -820
  13. package/dist/commonjs/v3/schemas/api.js +15 -7
  14. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  15. package/dist/commonjs/v3/schemas/build.d.ts +250 -250
  16. package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
  17. package/dist/commonjs/v3/schemas/messages.d.ts +3714 -3714
  18. package/dist/commonjs/v3/schemas/resources.d.ts +82 -82
  19. package/dist/commonjs/v3/schemas/schemas.d.ts +424 -424
  20. package/dist/commonjs/v3/types/tasks.d.ts +1 -1
  21. package/dist/commonjs/version.js +1 -1
  22. package/dist/esm/schemas/api.d.ts +8 -8
  23. package/dist/esm/v3/apiClient/index.d.ts +141 -137
  24. package/dist/esm/v3/apiClient/index.js +10 -1
  25. package/dist/esm/v3/apiClient/index.js.map +1 -1
  26. package/dist/esm/v3/apiClient/runStream.d.ts +2 -17
  27. package/dist/esm/v3/apiClient/runStream.js +67 -44
  28. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  29. package/dist/esm/v3/config.d.ts +55 -0
  30. package/dist/esm/v3/runMetadata/manager.d.ts +3 -3
  31. package/dist/esm/v3/runMetadata/manager.js +1 -7
  32. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  33. package/dist/esm/v3/schemas/api.d.ts +712 -712
  34. package/dist/esm/v3/schemas/api.js +15 -7
  35. package/dist/esm/v3/schemas/api.js.map +1 -1
  36. package/dist/esm/v3/schemas/build.d.ts +100 -100
  37. package/dist/esm/v3/schemas/messages.d.ts +2391 -2391
  38. package/dist/esm/v3/schemas/resources.d.ts +56 -56
  39. package/dist/esm/v3/schemas/schemas.d.ts +224 -224
  40. package/dist/esm/v3/types/tasks.d.ts +1 -1
  41. package/dist/esm/version.js +1 -1
  42. package/package.json +1 -1
@@ -36,8 +36,8 @@ export declare const GetProjectResponseBody: z.ZodObject<{
36
36
  title: string;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
- id: string;
40
39
  name: string;
40
+ id: string;
41
41
  createdAt: Date;
42
42
  slug: string;
43
43
  organization: {
@@ -48,8 +48,8 @@ export declare const GetProjectResponseBody: z.ZodObject<{
48
48
  };
49
49
  externalRef: string;
50
50
  }, {
51
- id: string;
52
51
  name: string;
52
+ id: string;
53
53
  createdAt: Date;
54
54
  slug: string;
55
55
  organization: {
@@ -84,8 +84,8 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
84
84
  title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
- id: string;
88
87
  name: string;
88
+ id: string;
89
89
  createdAt: Date;
90
90
  slug: string;
91
91
  organization: {
@@ -96,8 +96,8 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
96
96
  };
97
97
  externalRef: string;
98
98
  }, {
99
- id: string;
100
99
  name: string;
100
+ id: string;
101
101
  createdAt: Date;
102
102
  slug: string;
103
103
  organization: {
@@ -184,22 +184,27 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
184
184
  cron: z.ZodString;
185
185
  timezone: z.ZodString;
186
186
  }, "strip", z.ZodTypeAny, {
187
- timezone: string;
188
187
  cron: string;
189
- }, {
190
188
  timezone: string;
189
+ }, {
191
190
  cron: string;
191
+ timezone: string;
192
192
  }>>;
193
193
  maxDuration: z.ZodOptional<z.ZodNumber>;
194
194
  }, "strip", z.ZodTypeAny, {
195
195
  id: string;
196
196
  filePath: string;
197
197
  exportName: string;
198
+ maxDuration?: number | undefined;
198
199
  queue?: {
199
200
  name?: string | undefined;
200
201
  concurrencyLimit?: number | undefined;
201
202
  } | undefined;
202
- maxDuration?: number | undefined;
203
+ machine?: {
204
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
205
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
206
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
207
+ } | undefined;
203
208
  retry?: {
204
209
  maxAttempts?: number | undefined;
205
210
  factor?: number | undefined;
@@ -208,25 +213,25 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
208
213
  randomize?: boolean | undefined;
209
214
  } | undefined;
210
215
  description?: string | undefined;
216
+ triggerSource?: string | undefined;
211
217
  schedule?: {
212
- timezone: string;
213
218
  cron: string;
219
+ timezone: string;
214
220
  } | undefined;
215
- machine?: {
216
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
217
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
218
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
219
- } | undefined;
220
- triggerSource?: string | undefined;
221
221
  }, {
222
222
  id: string;
223
223
  filePath: string;
224
224
  exportName: string;
225
+ maxDuration?: number | undefined;
225
226
  queue?: {
226
227
  name?: string | undefined;
227
228
  concurrencyLimit?: number | undefined;
228
229
  } | undefined;
229
- maxDuration?: number | undefined;
230
+ machine?: {
231
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
232
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
233
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
234
+ } | undefined;
230
235
  retry?: {
231
236
  maxAttempts?: number | undefined;
232
237
  factor?: number | undefined;
@@ -235,16 +240,11 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
235
240
  randomize?: boolean | undefined;
236
241
  } | undefined;
237
242
  description?: string | undefined;
243
+ triggerSource?: string | undefined;
238
244
  schedule?: {
239
- timezone: string;
240
245
  cron: string;
246
+ timezone: string;
241
247
  } | undefined;
242
- machine?: {
243
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
244
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
245
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
246
- } | undefined;
247
- triggerSource?: string | undefined;
248
248
  }>, "many">;
249
249
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
250
  filePath: z.ZodString;
@@ -263,15 +263,22 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
263
263
  taskIds: string[];
264
264
  }>, "many">>;
265
265
  }, "strip", z.ZodTypeAny, {
266
+ contentHash: string;
267
+ packageVersion: string;
266
268
  tasks: {
267
269
  id: string;
268
270
  filePath: string;
269
271
  exportName: string;
272
+ maxDuration?: number | undefined;
270
273
  queue?: {
271
274
  name?: string | undefined;
272
275
  concurrencyLimit?: number | undefined;
273
276
  } | undefined;
274
- maxDuration?: number | undefined;
277
+ machine?: {
278
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
279
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
280
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
281
+ } | undefined;
275
282
  retry?: {
276
283
  maxAttempts?: number | undefined;
277
284
  factor?: number | undefined;
@@ -280,19 +287,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
280
287
  randomize?: boolean | undefined;
281
288
  } | undefined;
282
289
  description?: string | undefined;
290
+ triggerSource?: string | undefined;
283
291
  schedule?: {
284
- timezone: string;
285
292
  cron: string;
293
+ timezone: string;
286
294
  } | undefined;
287
- machine?: {
288
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
289
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
290
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
291
- } | undefined;
292
- triggerSource?: string | undefined;
293
295
  }[];
294
- contentHash: string;
295
- packageVersion: string;
296
296
  cliPackageVersion?: string | undefined;
297
297
  sourceFiles?: {
298
298
  filePath: string;
@@ -301,15 +301,22 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
301
301
  taskIds: string[];
302
302
  }[] | undefined;
303
303
  }, {
304
+ contentHash: string;
305
+ packageVersion: string;
304
306
  tasks: {
305
307
  id: string;
306
308
  filePath: string;
307
309
  exportName: string;
310
+ maxDuration?: number | undefined;
308
311
  queue?: {
309
312
  name?: string | undefined;
310
313
  concurrencyLimit?: number | undefined;
311
314
  } | undefined;
312
- maxDuration?: number | undefined;
315
+ machine?: {
316
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
317
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
318
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
319
+ } | undefined;
313
320
  retry?: {
314
321
  maxAttempts?: number | undefined;
315
322
  factor?: number | undefined;
@@ -318,19 +325,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
318
325
  randomize?: boolean | undefined;
319
326
  } | undefined;
320
327
  description?: string | undefined;
328
+ triggerSource?: string | undefined;
321
329
  schedule?: {
322
- timezone: string;
323
330
  cron: string;
331
+ timezone: string;
324
332
  } | undefined;
325
- machine?: {
326
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
327
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
328
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
329
- } | undefined;
330
- triggerSource?: string | undefined;
331
333
  }[];
332
- contentHash: string;
333
- packageVersion: string;
334
334
  cliPackageVersion?: string | undefined;
335
335
  sourceFiles?: {
336
336
  filePath: string;
@@ -342,15 +342,22 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
342
342
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
343
343
  }, "strip", z.ZodTypeAny, {
344
344
  metadata: {
345
+ contentHash: string;
346
+ packageVersion: string;
345
347
  tasks: {
346
348
  id: string;
347
349
  filePath: string;
348
350
  exportName: string;
351
+ maxDuration?: number | undefined;
349
352
  queue?: {
350
353
  name?: string | undefined;
351
354
  concurrencyLimit?: number | undefined;
352
355
  } | undefined;
353
- maxDuration?: number | undefined;
356
+ machine?: {
357
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
358
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
359
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
360
+ } | undefined;
354
361
  retry?: {
355
362
  maxAttempts?: number | undefined;
356
363
  factor?: number | undefined;
@@ -359,19 +366,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
359
366
  randomize?: boolean | undefined;
360
367
  } | undefined;
361
368
  description?: string | undefined;
369
+ triggerSource?: string | undefined;
362
370
  schedule?: {
363
- timezone: string;
364
371
  cron: string;
372
+ timezone: string;
365
373
  } | undefined;
366
- machine?: {
367
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
368
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
369
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
370
- } | undefined;
371
- triggerSource?: string | undefined;
372
374
  }[];
373
- contentHash: string;
374
- packageVersion: string;
375
375
  cliPackageVersion?: string | undefined;
376
376
  sourceFiles?: {
377
377
  filePath: string;
@@ -384,15 +384,22 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
384
384
  supportsLazyAttempts?: boolean | undefined;
385
385
  }, {
386
386
  metadata: {
387
+ contentHash: string;
388
+ packageVersion: string;
387
389
  tasks: {
388
390
  id: string;
389
391
  filePath: string;
390
392
  exportName: string;
393
+ maxDuration?: number | undefined;
391
394
  queue?: {
392
395
  name?: string | undefined;
393
396
  concurrencyLimit?: number | undefined;
394
397
  } | undefined;
395
- maxDuration?: number | undefined;
398
+ machine?: {
399
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
400
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
401
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
402
+ } | undefined;
396
403
  retry?: {
397
404
  maxAttempts?: number | undefined;
398
405
  factor?: number | undefined;
@@ -401,19 +408,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
401
408
  randomize?: boolean | undefined;
402
409
  } | undefined;
403
410
  description?: string | undefined;
411
+ triggerSource?: string | undefined;
404
412
  schedule?: {
405
- timezone: string;
406
413
  cron: string;
414
+ timezone: string;
407
415
  } | undefined;
408
- machine?: {
409
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
410
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
411
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
412
- } | undefined;
413
- triggerSource?: string | undefined;
414
416
  }[];
415
- contentHash: string;
416
- packageVersion: string;
417
417
  cliPackageVersion?: string | undefined;
418
418
  sourceFiles?: {
419
419
  filePath: string;
@@ -474,99 +474,99 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
474
474
  metadataType: z.ZodOptional<z.ZodString>;
475
475
  maxDuration: z.ZodOptional<z.ZodNumber>;
476
476
  }, "strip", z.ZodTypeAny, {
477
- dependentAttempt?: string | undefined;
478
- parentAttempt?: string | undefined;
479
- dependentBatch?: string | undefined;
480
- parentBatch?: string | undefined;
481
- lockToVersion?: string | undefined;
477
+ payloadType?: string | undefined;
478
+ tags?: string | string[] | undefined;
479
+ idempotencyKey?: string | undefined;
480
+ maxAttempts?: number | undefined;
481
+ metadata?: any;
482
+ maxDuration?: number | undefined;
482
483
  queue?: {
483
484
  name?: string | undefined;
484
485
  concurrencyLimit?: number | undefined;
485
486
  } | undefined;
486
- concurrencyKey?: string | undefined;
487
- idempotencyKey?: string | undefined;
488
487
  idempotencyKeyTTL?: string | undefined;
489
- test?: boolean | undefined;
490
- payloadType?: string | undefined;
488
+ concurrencyKey?: string | undefined;
491
489
  delay?: string | Date | undefined;
492
490
  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
491
  dependentAttempt?: string | undefined;
500
492
  parentAttempt?: string | undefined;
501
493
  dependentBatch?: string | undefined;
502
494
  parentBatch?: string | undefined;
503
495
  lockToVersion?: string | undefined;
496
+ test?: boolean | undefined;
497
+ metadataType?: string | undefined;
498
+ }, {
499
+ payloadType?: string | undefined;
500
+ tags?: string | string[] | undefined;
501
+ idempotencyKey?: string | undefined;
502
+ maxAttempts?: number | undefined;
503
+ metadata?: any;
504
+ maxDuration?: number | undefined;
504
505
  queue?: {
505
506
  name?: string | undefined;
506
507
  concurrencyLimit?: number | undefined;
507
508
  } | undefined;
508
- concurrencyKey?: string | undefined;
509
- idempotencyKey?: string | undefined;
510
509
  idempotencyKeyTTL?: string | undefined;
511
- test?: boolean | undefined;
512
- payloadType?: string | undefined;
510
+ concurrencyKey?: string | undefined;
513
511
  delay?: string | Date | undefined;
514
512
  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
513
  dependentAttempt?: string | undefined;
524
514
  parentAttempt?: string | undefined;
525
515
  dependentBatch?: string | undefined;
526
516
  parentBatch?: string | undefined;
527
517
  lockToVersion?: string | undefined;
518
+ test?: boolean | undefined;
519
+ metadataType?: string | undefined;
520
+ }>>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ options?: {
523
+ payloadType?: string | undefined;
524
+ tags?: string | string[] | undefined;
525
+ idempotencyKey?: string | undefined;
526
+ maxAttempts?: number | undefined;
527
+ metadata?: any;
528
+ maxDuration?: number | undefined;
528
529
  queue?: {
529
530
  name?: string | undefined;
530
531
  concurrencyLimit?: number | undefined;
531
532
  } | undefined;
532
- concurrencyKey?: string | undefined;
533
- idempotencyKey?: string | undefined;
534
533
  idempotencyKeyTTL?: string | undefined;
535
- test?: boolean | undefined;
536
- payloadType?: string | undefined;
534
+ concurrencyKey?: string | undefined;
537
535
  delay?: string | Date | undefined;
538
536
  ttl?: string | number | undefined;
539
- tags?: string | string[] | undefined;
540
- maxAttempts?: number | undefined;
541
- metadata?: any;
537
+ dependentAttempt?: string | undefined;
538
+ parentAttempt?: string | undefined;
539
+ dependentBatch?: string | undefined;
540
+ parentBatch?: string | undefined;
541
+ lockToVersion?: string | undefined;
542
+ test?: boolean | undefined;
542
543
  metadataType?: string | undefined;
543
- maxDuration?: number | undefined;
544
544
  } | undefined;
545
545
  payload?: any;
546
546
  context?: any;
547
547
  }, {
548
548
  options?: {
549
- dependentAttempt?: string | undefined;
550
- parentAttempt?: string | undefined;
551
- dependentBatch?: string | undefined;
552
- parentBatch?: string | undefined;
553
- lockToVersion?: string | undefined;
549
+ payloadType?: string | undefined;
550
+ tags?: string | string[] | undefined;
551
+ idempotencyKey?: string | undefined;
552
+ maxAttempts?: number | undefined;
553
+ metadata?: any;
554
+ maxDuration?: number | undefined;
554
555
  queue?: {
555
556
  name?: string | undefined;
556
557
  concurrencyLimit?: number | undefined;
557
558
  } | undefined;
558
- concurrencyKey?: string | undefined;
559
- idempotencyKey?: string | undefined;
560
559
  idempotencyKeyTTL?: string | undefined;
561
- test?: boolean | undefined;
562
- payloadType?: string | undefined;
560
+ concurrencyKey?: string | undefined;
563
561
  delay?: string | Date | undefined;
564
562
  ttl?: string | number | undefined;
565
- tags?: string | string[] | undefined;
566
- maxAttempts?: number | undefined;
567
- metadata?: any;
563
+ dependentAttempt?: string | undefined;
564
+ parentAttempt?: string | undefined;
565
+ dependentBatch?: string | undefined;
566
+ parentBatch?: string | undefined;
567
+ lockToVersion?: string | undefined;
568
+ test?: boolean | undefined;
568
569
  metadataType?: string | undefined;
569
- maxDuration?: number | undefined;
570
570
  } | undefined;
571
571
  payload?: any;
572
572
  context?: any;
@@ -613,99 +613,99 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
613
613
  metadataType: z.ZodOptional<z.ZodString>;
614
614
  maxDuration: z.ZodOptional<z.ZodNumber>;
615
615
  }, "strip", z.ZodTypeAny, {
616
- dependentAttempt?: string | undefined;
617
- parentAttempt?: string | undefined;
618
- dependentBatch?: string | undefined;
619
- parentBatch?: string | undefined;
620
- lockToVersion?: string | undefined;
616
+ payloadType?: string | undefined;
617
+ tags?: string | string[] | undefined;
618
+ idempotencyKey?: string | undefined;
619
+ maxAttempts?: number | undefined;
620
+ metadata?: any;
621
+ maxDuration?: number | undefined;
621
622
  queue?: {
622
623
  name?: string | undefined;
623
624
  concurrencyLimit?: number | undefined;
624
625
  } | undefined;
625
- concurrencyKey?: string | undefined;
626
- idempotencyKey?: string | undefined;
627
626
  idempotencyKeyTTL?: string | undefined;
628
- test?: boolean | undefined;
629
- payloadType?: string | undefined;
627
+ concurrencyKey?: string | undefined;
630
628
  delay?: string | Date | undefined;
631
629
  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
630
  dependentAttempt?: string | undefined;
639
631
  parentAttempt?: string | undefined;
640
632
  dependentBatch?: string | undefined;
641
633
  parentBatch?: string | undefined;
642
634
  lockToVersion?: string | undefined;
635
+ test?: boolean | undefined;
636
+ metadataType?: string | undefined;
637
+ }, {
638
+ payloadType?: string | undefined;
639
+ tags?: string | string[] | undefined;
640
+ idempotencyKey?: string | undefined;
641
+ maxAttempts?: number | undefined;
642
+ metadata?: any;
643
+ maxDuration?: number | undefined;
643
644
  queue?: {
644
645
  name?: string | undefined;
645
646
  concurrencyLimit?: number | undefined;
646
647
  } | undefined;
647
- concurrencyKey?: string | undefined;
648
- idempotencyKey?: string | undefined;
649
648
  idempotencyKeyTTL?: string | undefined;
650
- test?: boolean | undefined;
651
- payloadType?: string | undefined;
649
+ concurrencyKey?: string | undefined;
652
650
  delay?: string | Date | undefined;
653
651
  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
652
  dependentAttempt?: string | undefined;
663
653
  parentAttempt?: string | undefined;
664
654
  dependentBatch?: string | undefined;
665
655
  parentBatch?: string | undefined;
666
656
  lockToVersion?: string | undefined;
657
+ test?: boolean | undefined;
658
+ metadataType?: string | undefined;
659
+ }>>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ options?: {
662
+ payloadType?: string | undefined;
663
+ tags?: string | string[] | undefined;
664
+ idempotencyKey?: string | undefined;
665
+ maxAttempts?: number | undefined;
666
+ metadata?: any;
667
+ maxDuration?: number | undefined;
667
668
  queue?: {
668
669
  name?: string | undefined;
669
670
  concurrencyLimit?: number | undefined;
670
671
  } | undefined;
671
- concurrencyKey?: string | undefined;
672
- idempotencyKey?: string | undefined;
673
672
  idempotencyKeyTTL?: string | undefined;
674
- test?: boolean | undefined;
675
- payloadType?: string | undefined;
673
+ concurrencyKey?: string | undefined;
676
674
  delay?: string | Date | undefined;
677
675
  ttl?: string | number | undefined;
678
- tags?: string | string[] | undefined;
679
- maxAttempts?: number | undefined;
680
- metadata?: any;
676
+ dependentAttempt?: string | undefined;
677
+ parentAttempt?: string | undefined;
678
+ dependentBatch?: string | undefined;
679
+ parentBatch?: string | undefined;
680
+ lockToVersion?: string | undefined;
681
+ test?: boolean | undefined;
681
682
  metadataType?: string | undefined;
682
- maxDuration?: number | undefined;
683
683
  } | undefined;
684
684
  payload?: any;
685
685
  context?: any;
686
686
  }, {
687
687
  options?: {
688
- dependentAttempt?: string | undefined;
689
- parentAttempt?: string | undefined;
690
- dependentBatch?: string | undefined;
691
- parentBatch?: string | undefined;
692
- lockToVersion?: string | undefined;
688
+ payloadType?: string | undefined;
689
+ tags?: string | string[] | undefined;
690
+ idempotencyKey?: string | undefined;
691
+ maxAttempts?: number | undefined;
692
+ metadata?: any;
693
+ maxDuration?: number | undefined;
693
694
  queue?: {
694
695
  name?: string | undefined;
695
696
  concurrencyLimit?: number | undefined;
696
697
  } | undefined;
697
- concurrencyKey?: string | undefined;
698
- idempotencyKey?: string | undefined;
699
698
  idempotencyKeyTTL?: string | undefined;
700
- test?: boolean | undefined;
701
- payloadType?: string | undefined;
699
+ concurrencyKey?: string | undefined;
702
700
  delay?: string | Date | undefined;
703
701
  ttl?: string | number | undefined;
704
- tags?: string | string[] | undefined;
705
- maxAttempts?: number | undefined;
706
- metadata?: any;
702
+ dependentAttempt?: string | undefined;
703
+ parentAttempt?: string | undefined;
704
+ dependentBatch?: string | undefined;
705
+ parentBatch?: string | undefined;
706
+ lockToVersion?: string | undefined;
707
+ test?: boolean | undefined;
707
708
  metadataType?: string | undefined;
708
- maxDuration?: number | undefined;
709
709
  } | undefined;
710
710
  payload?: any;
711
711
  context?: any;
@@ -714,27 +714,27 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  items: {
716
716
  options?: {
717
- dependentAttempt?: string | undefined;
718
- parentAttempt?: string | undefined;
719
- dependentBatch?: string | undefined;
720
- parentBatch?: string | undefined;
721
- lockToVersion?: string | undefined;
717
+ payloadType?: string | undefined;
718
+ tags?: string | string[] | undefined;
719
+ idempotencyKey?: string | undefined;
720
+ maxAttempts?: number | undefined;
721
+ metadata?: any;
722
+ maxDuration?: number | undefined;
722
723
  queue?: {
723
724
  name?: string | undefined;
724
725
  concurrencyLimit?: number | undefined;
725
726
  } | undefined;
726
- concurrencyKey?: string | undefined;
727
- idempotencyKey?: string | undefined;
728
727
  idempotencyKeyTTL?: string | undefined;
729
- test?: boolean | undefined;
730
- payloadType?: string | undefined;
728
+ concurrencyKey?: string | undefined;
731
729
  delay?: string | Date | undefined;
732
730
  ttl?: string | number | undefined;
733
- tags?: string | string[] | undefined;
734
- maxAttempts?: number | undefined;
735
- metadata?: any;
731
+ dependentAttempt?: string | undefined;
732
+ parentAttempt?: string | undefined;
733
+ dependentBatch?: string | undefined;
734
+ parentBatch?: string | undefined;
735
+ lockToVersion?: string | undefined;
736
+ test?: boolean | undefined;
736
737
  metadataType?: string | undefined;
737
- maxDuration?: number | undefined;
738
738
  } | undefined;
739
739
  payload?: any;
740
740
  context?: any;
@@ -743,27 +743,27 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
743
743
  }, {
744
744
  items: {
745
745
  options?: {
746
- dependentAttempt?: string | undefined;
747
- parentAttempt?: string | undefined;
748
- dependentBatch?: string | undefined;
749
- parentBatch?: string | undefined;
750
- lockToVersion?: string | undefined;
746
+ payloadType?: string | undefined;
747
+ tags?: string | string[] | undefined;
748
+ idempotencyKey?: string | undefined;
749
+ maxAttempts?: number | undefined;
750
+ metadata?: any;
751
+ maxDuration?: number | undefined;
751
752
  queue?: {
752
753
  name?: string | undefined;
753
754
  concurrencyLimit?: number | undefined;
754
755
  } | undefined;
755
- concurrencyKey?: string | undefined;
756
- idempotencyKey?: string | undefined;
757
756
  idempotencyKeyTTL?: string | undefined;
758
- test?: boolean | undefined;
759
- payloadType?: string | undefined;
757
+ concurrencyKey?: string | undefined;
760
758
  delay?: string | Date | undefined;
761
759
  ttl?: string | number | undefined;
762
- tags?: string | string[] | undefined;
763
- maxAttempts?: number | undefined;
764
- metadata?: any;
760
+ dependentAttempt?: string | undefined;
761
+ parentAttempt?: string | undefined;
762
+ dependentBatch?: string | undefined;
763
+ parentBatch?: string | undefined;
764
+ lockToVersion?: string | undefined;
765
+ test?: boolean | undefined;
765
766
  metadataType?: string | undefined;
766
- maxDuration?: number | undefined;
767
767
  } | undefined;
768
768
  payload?: any;
769
769
  context?: any;
@@ -801,89 +801,89 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
801
801
  maxDuration: z.ZodOptional<z.ZodNumber>;
802
802
  parentAttempt: z.ZodOptional<z.ZodString>;
803
803
  }, "strip", z.ZodTypeAny, {
804
- parentAttempt?: string | undefined;
805
- lockToVersion?: string | undefined;
804
+ payloadType?: string | undefined;
805
+ tags?: string | string[] | undefined;
806
+ idempotencyKey?: string | undefined;
807
+ maxAttempts?: number | undefined;
808
+ metadata?: any;
809
+ maxDuration?: number | undefined;
806
810
  queue?: {
807
811
  name?: string | undefined;
808
812
  concurrencyLimit?: number | undefined;
809
813
  } | undefined;
810
- concurrencyKey?: string | undefined;
811
- idempotencyKey?: string | undefined;
812
814
  idempotencyKeyTTL?: string | undefined;
813
- test?: boolean | undefined;
814
- payloadType?: string | undefined;
815
+ concurrencyKey?: string | undefined;
815
816
  delay?: string | Date | undefined;
816
817
  ttl?: string | number | undefined;
818
+ parentAttempt?: string | undefined;
819
+ lockToVersion?: string | undefined;
820
+ test?: boolean | undefined;
821
+ metadataType?: string | undefined;
822
+ }, {
823
+ payloadType?: string | undefined;
817
824
  tags?: string | string[] | undefined;
825
+ idempotencyKey?: string | undefined;
818
826
  maxAttempts?: number | undefined;
819
827
  metadata?: any;
820
- metadataType?: string | undefined;
821
828
  maxDuration?: number | undefined;
822
- }, {
823
- parentAttempt?: string | undefined;
824
- lockToVersion?: string | undefined;
825
829
  queue?: {
826
830
  name?: string | undefined;
827
831
  concurrencyLimit?: number | undefined;
828
832
  } | undefined;
829
- concurrencyKey?: string | undefined;
830
- idempotencyKey?: string | undefined;
831
833
  idempotencyKeyTTL?: string | undefined;
832
- test?: boolean | undefined;
833
- payloadType?: string | undefined;
834
+ concurrencyKey?: string | undefined;
834
835
  delay?: string | Date | undefined;
835
836
  ttl?: string | number | undefined;
836
- tags?: string | string[] | undefined;
837
- maxAttempts?: number | undefined;
838
- metadata?: any;
837
+ parentAttempt?: string | undefined;
838
+ lockToVersion?: string | undefined;
839
+ test?: boolean | undefined;
839
840
  metadataType?: string | undefined;
840
- maxDuration?: number | undefined;
841
841
  }>>;
842
842
  }, "strip", z.ZodTypeAny, {
843
843
  task: string;
844
844
  options?: {
845
- parentAttempt?: string | undefined;
846
- lockToVersion?: string | undefined;
845
+ payloadType?: string | undefined;
846
+ tags?: string | string[] | undefined;
847
+ idempotencyKey?: string | undefined;
848
+ maxAttempts?: number | undefined;
849
+ metadata?: any;
850
+ maxDuration?: number | undefined;
847
851
  queue?: {
848
852
  name?: string | undefined;
849
853
  concurrencyLimit?: number | undefined;
850
854
  } | undefined;
851
- concurrencyKey?: string | undefined;
852
- idempotencyKey?: string | undefined;
853
855
  idempotencyKeyTTL?: string | undefined;
854
- test?: boolean | undefined;
855
- payloadType?: string | undefined;
856
+ concurrencyKey?: string | undefined;
856
857
  delay?: string | Date | undefined;
857
858
  ttl?: string | number | undefined;
858
- tags?: string | string[] | undefined;
859
- maxAttempts?: number | undefined;
860
- metadata?: any;
859
+ parentAttempt?: string | undefined;
860
+ lockToVersion?: string | undefined;
861
+ test?: boolean | undefined;
861
862
  metadataType?: string | undefined;
862
- maxDuration?: number | undefined;
863
863
  } | undefined;
864
864
  payload?: any;
865
865
  context?: any;
866
866
  }, {
867
867
  task: string;
868
868
  options?: {
869
- parentAttempt?: string | undefined;
870
- lockToVersion?: string | undefined;
869
+ payloadType?: string | undefined;
870
+ tags?: string | string[] | undefined;
871
+ idempotencyKey?: string | undefined;
872
+ maxAttempts?: number | undefined;
873
+ metadata?: any;
874
+ maxDuration?: number | undefined;
871
875
  queue?: {
872
876
  name?: string | undefined;
873
877
  concurrencyLimit?: number | undefined;
874
878
  } | undefined;
875
- concurrencyKey?: string | undefined;
876
- idempotencyKey?: string | undefined;
877
879
  idempotencyKeyTTL?: string | undefined;
878
- test?: boolean | undefined;
879
- payloadType?: string | undefined;
880
+ concurrencyKey?: string | undefined;
880
881
  delay?: string | Date | undefined;
881
882
  ttl?: string | number | undefined;
882
- tags?: string | string[] | undefined;
883
- maxAttempts?: number | undefined;
884
- metadata?: any;
883
+ parentAttempt?: string | undefined;
884
+ lockToVersion?: string | undefined;
885
+ test?: boolean | undefined;
885
886
  metadataType?: string | undefined;
886
- maxDuration?: number | undefined;
887
887
  } | undefined;
888
888
  payload?: any;
889
889
  context?: any;
@@ -920,89 +920,89 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
920
920
  maxDuration: z.ZodOptional<z.ZodNumber>;
921
921
  parentAttempt: z.ZodOptional<z.ZodString>;
922
922
  }, "strip", z.ZodTypeAny, {
923
- parentAttempt?: string | undefined;
924
- lockToVersion?: string | undefined;
923
+ payloadType?: string | undefined;
924
+ tags?: string | string[] | undefined;
925
+ idempotencyKey?: string | undefined;
926
+ maxAttempts?: number | undefined;
927
+ metadata?: any;
928
+ maxDuration?: number | undefined;
925
929
  queue?: {
926
930
  name?: string | undefined;
927
931
  concurrencyLimit?: number | undefined;
928
932
  } | undefined;
929
- concurrencyKey?: string | undefined;
930
- idempotencyKey?: string | undefined;
931
933
  idempotencyKeyTTL?: string | undefined;
932
- test?: boolean | undefined;
933
- payloadType?: string | undefined;
934
+ concurrencyKey?: string | undefined;
934
935
  delay?: string | Date | undefined;
935
936
  ttl?: string | number | undefined;
937
+ parentAttempt?: string | undefined;
938
+ lockToVersion?: string | undefined;
939
+ test?: boolean | undefined;
940
+ metadataType?: string | undefined;
941
+ }, {
942
+ payloadType?: string | undefined;
936
943
  tags?: string | string[] | undefined;
944
+ idempotencyKey?: string | undefined;
937
945
  maxAttempts?: number | undefined;
938
946
  metadata?: any;
939
- metadataType?: string | undefined;
940
947
  maxDuration?: number | undefined;
941
- }, {
942
- parentAttempt?: string | undefined;
943
- lockToVersion?: string | undefined;
944
948
  queue?: {
945
949
  name?: string | undefined;
946
950
  concurrencyLimit?: number | undefined;
947
951
  } | undefined;
948
- concurrencyKey?: string | undefined;
949
- idempotencyKey?: string | undefined;
950
952
  idempotencyKeyTTL?: string | undefined;
951
- test?: boolean | undefined;
952
- payloadType?: string | undefined;
953
+ concurrencyKey?: string | undefined;
953
954
  delay?: string | Date | undefined;
954
955
  ttl?: string | number | undefined;
955
- tags?: string | string[] | undefined;
956
- maxAttempts?: number | undefined;
957
- metadata?: any;
956
+ parentAttempt?: string | undefined;
957
+ lockToVersion?: string | undefined;
958
+ test?: boolean | undefined;
958
959
  metadataType?: string | undefined;
959
- maxDuration?: number | undefined;
960
960
  }>>;
961
961
  }, "strip", z.ZodTypeAny, {
962
962
  task: string;
963
963
  options?: {
964
- parentAttempt?: string | undefined;
965
- lockToVersion?: string | undefined;
964
+ payloadType?: string | undefined;
965
+ tags?: string | string[] | undefined;
966
+ idempotencyKey?: string | undefined;
967
+ maxAttempts?: number | undefined;
968
+ metadata?: any;
969
+ maxDuration?: number | undefined;
966
970
  queue?: {
967
971
  name?: string | undefined;
968
972
  concurrencyLimit?: number | undefined;
969
973
  } | undefined;
970
- concurrencyKey?: string | undefined;
971
- idempotencyKey?: string | undefined;
972
974
  idempotencyKeyTTL?: string | undefined;
973
- test?: boolean | undefined;
974
- payloadType?: string | undefined;
975
+ concurrencyKey?: string | undefined;
975
976
  delay?: string | Date | undefined;
976
977
  ttl?: string | number | undefined;
977
- tags?: string | string[] | undefined;
978
- maxAttempts?: number | undefined;
979
- metadata?: any;
978
+ parentAttempt?: string | undefined;
979
+ lockToVersion?: string | undefined;
980
+ test?: boolean | undefined;
980
981
  metadataType?: string | undefined;
981
- maxDuration?: number | undefined;
982
982
  } | undefined;
983
983
  payload?: any;
984
984
  context?: any;
985
985
  }, {
986
986
  task: string;
987
987
  options?: {
988
- parentAttempt?: string | undefined;
989
- lockToVersion?: string | undefined;
988
+ payloadType?: string | undefined;
989
+ tags?: string | string[] | undefined;
990
+ idempotencyKey?: string | undefined;
991
+ maxAttempts?: number | undefined;
992
+ metadata?: any;
993
+ maxDuration?: number | undefined;
990
994
  queue?: {
991
995
  name?: string | undefined;
992
996
  concurrencyLimit?: number | undefined;
993
997
  } | undefined;
994
- concurrencyKey?: string | undefined;
995
- idempotencyKey?: string | undefined;
996
998
  idempotencyKeyTTL?: string | undefined;
997
- test?: boolean | undefined;
998
- payloadType?: string | undefined;
999
+ concurrencyKey?: string | undefined;
999
1000
  delay?: string | Date | undefined;
1000
1001
  ttl?: string | number | undefined;
1001
- tags?: string | string[] | undefined;
1002
- maxAttempts?: number | undefined;
1003
- metadata?: any;
1002
+ parentAttempt?: string | undefined;
1003
+ lockToVersion?: string | undefined;
1004
+ test?: boolean | undefined;
1004
1005
  metadataType?: string | undefined;
1005
- maxDuration?: number | undefined;
1006
1006
  } | undefined;
1007
1007
  payload?: any;
1008
1008
  context?: any;
@@ -1012,24 +1012,24 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1012
1012
  items: {
1013
1013
  task: string;
1014
1014
  options?: {
1015
- parentAttempt?: string | undefined;
1016
- lockToVersion?: string | undefined;
1015
+ payloadType?: string | undefined;
1016
+ tags?: string | string[] | undefined;
1017
+ idempotencyKey?: string | undefined;
1018
+ maxAttempts?: number | undefined;
1019
+ metadata?: any;
1020
+ maxDuration?: number | undefined;
1017
1021
  queue?: {
1018
1022
  name?: string | undefined;
1019
1023
  concurrencyLimit?: number | undefined;
1020
1024
  } | undefined;
1021
- concurrencyKey?: string | undefined;
1022
- idempotencyKey?: string | undefined;
1023
1025
  idempotencyKeyTTL?: string | undefined;
1024
- test?: boolean | undefined;
1025
- payloadType?: string | undefined;
1026
+ concurrencyKey?: string | undefined;
1026
1027
  delay?: string | Date | undefined;
1027
1028
  ttl?: string | number | undefined;
1028
- tags?: string | string[] | undefined;
1029
- maxAttempts?: number | undefined;
1030
- metadata?: any;
1029
+ parentAttempt?: string | undefined;
1030
+ lockToVersion?: string | undefined;
1031
+ test?: boolean | undefined;
1031
1032
  metadataType?: string | undefined;
1032
- maxDuration?: number | undefined;
1033
1033
  } | undefined;
1034
1034
  payload?: any;
1035
1035
  context?: any;
@@ -1039,24 +1039,24 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1039
1039
  items: {
1040
1040
  task: string;
1041
1041
  options?: {
1042
- parentAttempt?: string | undefined;
1043
- lockToVersion?: string | undefined;
1042
+ payloadType?: string | undefined;
1043
+ tags?: string | string[] | undefined;
1044
+ idempotencyKey?: string | undefined;
1045
+ maxAttempts?: number | undefined;
1046
+ metadata?: any;
1047
+ maxDuration?: number | undefined;
1044
1048
  queue?: {
1045
1049
  name?: string | undefined;
1046
1050
  concurrencyLimit?: number | undefined;
1047
1051
  } | undefined;
1048
- concurrencyKey?: string | undefined;
1049
- idempotencyKey?: string | undefined;
1050
1052
  idempotencyKeyTTL?: string | undefined;
1051
- test?: boolean | undefined;
1052
- payloadType?: string | undefined;
1053
+ concurrencyKey?: string | undefined;
1053
1054
  delay?: string | Date | undefined;
1054
1055
  ttl?: string | number | undefined;
1055
- tags?: string | string[] | undefined;
1056
- maxAttempts?: number | undefined;
1057
- metadata?: any;
1056
+ parentAttempt?: string | undefined;
1057
+ lockToVersion?: string | undefined;
1058
+ test?: boolean | undefined;
1058
1059
  metadataType?: string | undefined;
1059
- maxDuration?: number | undefined;
1060
1060
  } | undefined;
1061
1061
  payload?: any;
1062
1062
  context?: any;
@@ -1075,13 +1075,13 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1075
1075
  idempotencyKey: z.ZodOptional<z.ZodString>;
1076
1076
  }, "strip", z.ZodTypeAny, {
1077
1077
  id: string;
1078
- isCached: boolean;
1079
1078
  taskIdentifier: string;
1079
+ isCached: boolean;
1080
1080
  idempotencyKey?: string | undefined;
1081
1081
  }, {
1082
1082
  id: string;
1083
- isCached: boolean;
1084
1083
  taskIdentifier: string;
1084
+ isCached: boolean;
1085
1085
  idempotencyKey?: string | undefined;
1086
1086
  }>, "many">;
1087
1087
  }, "strip", z.ZodTypeAny, {
@@ -1089,8 +1089,8 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1089
1089
  isCached: boolean;
1090
1090
  runs: {
1091
1091
  id: string;
1092
- isCached: boolean;
1093
1092
  taskIdentifier: string;
1093
+ isCached: boolean;
1094
1094
  idempotencyKey?: string | undefined;
1095
1095
  }[];
1096
1096
  idempotencyKey?: string | undefined;
@@ -1099,8 +1099,8 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
1099
1099
  isCached: boolean;
1100
1100
  runs: {
1101
1101
  id: string;
1102
- isCached: boolean;
1103
1102
  taskIdentifier: string;
1103
+ isCached: boolean;
1104
1104
  idempotencyKey?: string | undefined;
1105
1105
  }[];
1106
1106
  idempotencyKey?: string | undefined;
@@ -1110,11 +1110,11 @@ export declare const BatchTriggerTaskResponse: z.ZodObject<{
1110
1110
  batchId: z.ZodString;
1111
1111
  runs: z.ZodArray<z.ZodString, "many">;
1112
1112
  }, "strip", z.ZodTypeAny, {
1113
- runs: string[];
1114
1113
  batchId: string;
1115
- }, {
1116
1114
  runs: string[];
1115
+ }, {
1117
1116
  batchId: string;
1117
+ runs: string[];
1118
1118
  }>;
1119
1119
  export type BatchTriggerTaskResponse = z.infer<typeof BatchTriggerTaskResponse>;
1120
1120
  export declare const GetBatchResponseBody: z.ZodObject<{
@@ -1124,26 +1124,26 @@ export declare const GetBatchResponseBody: z.ZodObject<{
1124
1124
  taskRunId: z.ZodString;
1125
1125
  status: z.ZodEnum<["PENDING", "CANCELED", "COMPLETED", "FAILED"]>;
1126
1126
  }, "strip", z.ZodTypeAny, {
1127
- id: string;
1128
1127
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1128
+ id: string;
1129
1129
  taskRunId: string;
1130
1130
  }, {
1131
- id: string;
1132
1131
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1132
+ id: string;
1133
1133
  taskRunId: string;
1134
1134
  }>, "many">;
1135
1135
  }, "strip", z.ZodTypeAny, {
1136
1136
  id: string;
1137
1137
  items: {
1138
- id: string;
1139
1138
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1139
+ id: string;
1140
1140
  taskRunId: string;
1141
1141
  }[];
1142
1142
  }, {
1143
1143
  id: string;
1144
1144
  items: {
1145
- id: string;
1146
1145
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1146
+ id: string;
1147
1147
  taskRunId: string;
1148
1148
  }[];
1149
1149
  }>;
@@ -1291,13 +1291,13 @@ export declare const DeploymentErrorData: z.ZodObject<{
1291
1291
  stack: z.ZodOptional<z.ZodString>;
1292
1292
  stderr: z.ZodOptional<z.ZodString>;
1293
1293
  }, "strip", z.ZodTypeAny, {
1294
- message: string;
1295
1294
  name: string;
1295
+ message: string;
1296
1296
  stack?: string | undefined;
1297
1297
  stderr?: string | undefined;
1298
1298
  }, {
1299
- message: string;
1300
1299
  name: string;
1300
+ message: string;
1301
1301
  stack?: string | undefined;
1302
1302
  stderr?: string | undefined;
1303
1303
  }>;
@@ -1309,27 +1309,27 @@ export declare const FailDeploymentRequestBody: z.ZodObject<{
1309
1309
  stack: z.ZodOptional<z.ZodString>;
1310
1310
  stderr: z.ZodOptional<z.ZodString>;
1311
1311
  }, "strip", z.ZodTypeAny, {
1312
- message: string;
1313
1312
  name: string;
1313
+ message: string;
1314
1314
  stack?: string | undefined;
1315
1315
  stderr?: string | undefined;
1316
1316
  }, {
1317
- message: string;
1318
1317
  name: string;
1318
+ message: string;
1319
1319
  stack?: string | undefined;
1320
1320
  stderr?: string | undefined;
1321
1321
  }>;
1322
1322
  }, "strip", z.ZodTypeAny, {
1323
1323
  error: {
1324
- message: string;
1325
1324
  name: string;
1325
+ message: string;
1326
1326
  stack?: string | undefined;
1327
1327
  stderr?: string | undefined;
1328
1328
  };
1329
1329
  }, {
1330
1330
  error: {
1331
- message: string;
1332
1331
  name: string;
1332
+ message: string;
1333
1333
  stack?: string | undefined;
1334
1334
  stderr?: string | undefined;
1335
1335
  };
@@ -1356,13 +1356,13 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1356
1356
  stack: z.ZodOptional<z.ZodString>;
1357
1357
  stderr: z.ZodOptional<z.ZodString>;
1358
1358
  }, "strip", z.ZodTypeAny, {
1359
- message: string;
1360
1359
  name: string;
1360
+ message: string;
1361
1361
  stack?: string | undefined;
1362
1362
  stderr?: string | undefined;
1363
1363
  }, {
1364
- message: string;
1365
1364
  name: string;
1365
+ message: string;
1366
1366
  stack?: string | undefined;
1367
1367
  stderr?: string | undefined;
1368
1368
  }>>>;
@@ -1405,8 +1405,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1405
1405
  }[];
1406
1406
  }>>;
1407
1407
  }, "strip", z.ZodTypeAny, {
1408
- id: string;
1409
1408
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1409
+ id: string;
1410
1410
  version: string;
1411
1411
  contentHash: string;
1412
1412
  shortCode: string;
@@ -1422,14 +1422,14 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1422
1422
  } | undefined;
1423
1423
  imageReference?: string | null | undefined;
1424
1424
  errorData?: {
1425
- message: string;
1426
1425
  name: string;
1426
+ message: string;
1427
1427
  stack?: string | undefined;
1428
1428
  stderr?: string | undefined;
1429
1429
  } | null | undefined;
1430
1430
  }, {
1431
- id: string;
1432
1431
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1432
+ id: string;
1433
1433
  version: string;
1434
1434
  contentHash: string;
1435
1435
  shortCode: string;
@@ -1445,8 +1445,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1445
1445
  } | undefined;
1446
1446
  imageReference?: string | null | undefined;
1447
1447
  errorData?: {
1448
- message: string;
1449
1448
  name: string;
1449
+ message: string;
1450
1450
  stack?: string | undefined;
1451
1451
  stderr?: string | undefined;
1452
1452
  } | null | undefined;
@@ -1514,16 +1514,16 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
1514
1514
  }, "strip", z.ZodTypeAny, {
1515
1515
  type: "DECLARATIVE" | "IMPERATIVE";
1516
1516
  timezone: string;
1517
- timestamp: Date;
1518
1517
  scheduleId: string;
1518
+ timestamp: Date;
1519
1519
  upcoming: Date[];
1520
1520
  externalId?: string | undefined;
1521
1521
  lastTimestamp?: Date | undefined;
1522
1522
  }, {
1523
1523
  type: "DECLARATIVE" | "IMPERATIVE";
1524
1524
  timezone: string;
1525
- timestamp: Date;
1526
1525
  scheduleId: string;
1526
+ timestamp: Date;
1527
1527
  upcoming: Date[];
1528
1528
  externalId?: string | undefined;
1529
1529
  lastTimestamp?: Date | undefined;
@@ -1571,16 +1571,16 @@ export declare const CreateScheduleOptions: z.ZodObject<{
1571
1571
  timezone: z.ZodOptional<z.ZodString>;
1572
1572
  }, "strip", z.ZodTypeAny, {
1573
1573
  task: string;
1574
- deduplicationKey: string;
1575
1574
  cron: string;
1576
- externalId?: string | undefined;
1575
+ deduplicationKey: string;
1577
1576
  timezone?: string | undefined;
1577
+ externalId?: string | undefined;
1578
1578
  }, {
1579
1579
  task: string;
1580
- deduplicationKey: string;
1581
1580
  cron: string;
1582
- externalId?: string | undefined;
1581
+ deduplicationKey: string;
1583
1582
  timezone?: string | undefined;
1583
+ externalId?: string | undefined;
1584
1584
  }>;
1585
1585
  export type CreateScheduleOptions = z.infer<typeof CreateScheduleOptions>;
1586
1586
  export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
@@ -1626,13 +1626,13 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
1626
1626
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
1627
1627
  task: string;
1628
1628
  cron: string;
1629
- externalId?: string | undefined;
1630
1629
  timezone?: string | undefined;
1630
+ externalId?: string | undefined;
1631
1631
  }, {
1632
1632
  task: string;
1633
1633
  cron: string;
1634
- externalId?: string | undefined;
1635
1634
  timezone?: string | undefined;
1635
+ externalId?: string | undefined;
1636
1636
  }>;
1637
1637
  export type UpdateScheduleOptions = z.infer<typeof UpdateScheduleOptions>;
1638
1638
  export declare const ScheduleGenerator: z.ZodObject<{
@@ -1641,12 +1641,12 @@ export declare const ScheduleGenerator: z.ZodObject<{
1641
1641
  description: z.ZodString;
1642
1642
  }, "strip", z.ZodTypeAny, {
1643
1643
  type: "CRON";
1644
- expression: string;
1645
1644
  description: string;
1645
+ expression: string;
1646
1646
  }, {
1647
1647
  type: "CRON";
1648
- expression: string;
1649
1648
  description: string;
1649
+ expression: string;
1650
1650
  }>;
1651
1651
  export type ScheduleGenerator = z.infer<typeof ScheduleGenerator>;
1652
1652
  export declare const ScheduleObject: z.ZodObject<{
@@ -1662,12 +1662,12 @@ export declare const ScheduleObject: z.ZodObject<{
1662
1662
  description: z.ZodString;
1663
1663
  }, "strip", z.ZodTypeAny, {
1664
1664
  type: "CRON";
1665
- expression: string;
1666
1665
  description: string;
1666
+ expression: string;
1667
1667
  }, {
1668
1668
  type: "CRON";
1669
- expression: string;
1670
1669
  description: string;
1670
+ expression: string;
1671
1671
  }>;
1672
1672
  timezone: z.ZodString;
1673
1673
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1676,47 +1676,47 @@ export declare const ScheduleObject: z.ZodObject<{
1676
1676
  type: z.ZodString;
1677
1677
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
1678
  }, "strip", z.ZodTypeAny, {
1679
- id: string;
1680
1679
  type: string;
1680
+ id: string;
1681
1681
  userName?: string | null | undefined;
1682
1682
  }, {
1683
- id: string;
1684
1683
  type: string;
1684
+ id: string;
1685
1685
  userName?: string | null | undefined;
1686
1686
  }>, "many">;
1687
1687
  }, "strip", z.ZodTypeAny, {
1688
- id: string;
1689
1688
  type: "DECLARATIVE" | "IMPERATIVE";
1689
+ id: string;
1690
1690
  task: string;
1691
+ timezone: string;
1691
1692
  generator: {
1692
1693
  type: "CRON";
1693
- expression: string;
1694
1694
  description: string;
1695
+ expression: string;
1695
1696
  };
1696
1697
  active: boolean;
1697
- timezone: string;
1698
1698
  environments: {
1699
- id: string;
1700
1699
  type: string;
1700
+ id: string;
1701
1701
  userName?: string | null | undefined;
1702
1702
  }[];
1703
1703
  externalId?: string | null | undefined;
1704
1704
  deduplicationKey?: string | null | undefined;
1705
1705
  nextRun?: Date | null | undefined;
1706
1706
  }, {
1707
- id: string;
1708
1707
  type: "DECLARATIVE" | "IMPERATIVE";
1708
+ id: string;
1709
1709
  task: string;
1710
+ timezone: string;
1710
1711
  generator: {
1711
1712
  type: "CRON";
1712
- expression: string;
1713
1713
  description: string;
1714
+ expression: string;
1714
1715
  };
1715
1716
  active: boolean;
1716
- timezone: string;
1717
1717
  environments: {
1718
- id: string;
1719
1718
  type: string;
1719
+ id: string;
1720
1720
  userName?: string | null | undefined;
1721
1721
  }[];
1722
1722
  externalId?: string | null | undefined;
@@ -1746,12 +1746,12 @@ export declare const ListSchedulesResult: z.ZodObject<{
1746
1746
  description: z.ZodString;
1747
1747
  }, "strip", z.ZodTypeAny, {
1748
1748
  type: "CRON";
1749
- expression: string;
1750
1749
  description: string;
1750
+ expression: string;
1751
1751
  }, {
1752
1752
  type: "CRON";
1753
- expression: string;
1754
1753
  description: string;
1754
+ expression: string;
1755
1755
  }>;
1756
1756
  timezone: z.ZodString;
1757
1757
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1760,47 +1760,47 @@ export declare const ListSchedulesResult: z.ZodObject<{
1760
1760
  type: z.ZodString;
1761
1761
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
1762
  }, "strip", z.ZodTypeAny, {
1763
- id: string;
1764
1763
  type: string;
1764
+ id: string;
1765
1765
  userName?: string | null | undefined;
1766
1766
  }, {
1767
- id: string;
1768
1767
  type: string;
1768
+ id: string;
1769
1769
  userName?: string | null | undefined;
1770
1770
  }>, "many">;
1771
1771
  }, "strip", z.ZodTypeAny, {
1772
- id: string;
1773
1772
  type: "DECLARATIVE" | "IMPERATIVE";
1773
+ id: string;
1774
1774
  task: string;
1775
+ timezone: string;
1775
1776
  generator: {
1776
1777
  type: "CRON";
1777
- expression: string;
1778
1778
  description: string;
1779
+ expression: string;
1779
1780
  };
1780
1781
  active: boolean;
1781
- timezone: string;
1782
1782
  environments: {
1783
- id: string;
1784
1783
  type: string;
1784
+ id: string;
1785
1785
  userName?: string | null | undefined;
1786
1786
  }[];
1787
1787
  externalId?: string | null | undefined;
1788
1788
  deduplicationKey?: string | null | undefined;
1789
1789
  nextRun?: Date | null | undefined;
1790
1790
  }, {
1791
- id: string;
1792
1791
  type: "DECLARATIVE" | "IMPERATIVE";
1792
+ id: string;
1793
1793
  task: string;
1794
+ timezone: string;
1794
1795
  generator: {
1795
1796
  type: "CRON";
1796
- expression: string;
1797
1797
  description: string;
1798
+ expression: string;
1798
1799
  };
1799
1800
  active: boolean;
1800
- timezone: string;
1801
1801
  environments: {
1802
- id: string;
1803
1802
  type: string;
1803
+ id: string;
1804
1804
  userName?: string | null | undefined;
1805
1805
  }[];
1806
1806
  externalId?: string | null | undefined;
@@ -1822,19 +1822,19 @@ export declare const ListSchedulesResult: z.ZodObject<{
1822
1822
  }>;
1823
1823
  }, "strip", z.ZodTypeAny, {
1824
1824
  data: {
1825
- id: string;
1826
1825
  type: "DECLARATIVE" | "IMPERATIVE";
1826
+ id: string;
1827
1827
  task: string;
1828
+ timezone: string;
1828
1829
  generator: {
1829
1830
  type: "CRON";
1830
- expression: string;
1831
1831
  description: string;
1832
+ expression: string;
1832
1833
  };
1833
1834
  active: boolean;
1834
- timezone: string;
1835
1835
  environments: {
1836
- id: string;
1837
1836
  type: string;
1837
+ id: string;
1838
1838
  userName?: string | null | undefined;
1839
1839
  }[];
1840
1840
  externalId?: string | null | undefined;
@@ -1848,19 +1848,19 @@ export declare const ListSchedulesResult: z.ZodObject<{
1848
1848
  };
1849
1849
  }, {
1850
1850
  data: {
1851
- id: string;
1852
1851
  type: "DECLARATIVE" | "IMPERATIVE";
1852
+ id: string;
1853
1853
  task: string;
1854
+ timezone: string;
1854
1855
  generator: {
1855
1856
  type: "CRON";
1856
- expression: string;
1857
1857
  description: string;
1858
+ expression: string;
1858
1859
  };
1859
1860
  active: boolean;
1860
- timezone: string;
1861
1861
  environments: {
1862
- id: string;
1863
1862
  type: string;
1863
+ id: string;
1864
1864
  userName?: string | null | undefined;
1865
1865
  }[];
1866
1866
  externalId?: string | null | undefined;
@@ -1902,12 +1902,12 @@ export declare const RunEnvironmentDetails: z.ZodObject<{
1902
1902
  name: z.ZodString;
1903
1903
  user: z.ZodOptional<z.ZodString>;
1904
1904
  }, "strip", z.ZodTypeAny, {
1905
- id: string;
1906
1905
  name: string;
1906
+ id: string;
1907
1907
  user?: string | undefined;
1908
1908
  }, {
1909
- id: string;
1910
1909
  name: string;
1910
+ id: string;
1911
1911
  user?: string | undefined;
1912
1912
  }>;
1913
1913
  export type RunEnvironmentDetails = z.infer<typeof RunEnvironmentDetails>;
@@ -1921,19 +1921,19 @@ export declare const RunScheduleDetails: z.ZodObject<{
1921
1921
  description: z.ZodString;
1922
1922
  }, "strip", z.ZodTypeAny, {
1923
1923
  type: "CRON";
1924
- expression: string;
1925
1924
  description: string;
1925
+ expression: string;
1926
1926
  }, {
1927
1927
  type: "CRON";
1928
- expression: string;
1929
1928
  description: string;
1929
+ expression: string;
1930
1930
  }>;
1931
1931
  }, "strip", z.ZodTypeAny, {
1932
1932
  id: string;
1933
1933
  generator: {
1934
1934
  type: "CRON";
1935
- expression: string;
1936
1935
  description: string;
1936
+ expression: string;
1937
1937
  };
1938
1938
  externalId?: string | undefined;
1939
1939
  deduplicationKey?: string | undefined;
@@ -1941,8 +1941,8 @@ export declare const RunScheduleDetails: z.ZodObject<{
1941
1941
  id: string;
1942
1942
  generator: {
1943
1943
  type: "CRON";
1944
- expression: string;
1945
1944
  description: string;
1945
+ expression: string;
1946
1946
  };
1947
1947
  externalId?: string | undefined;
1948
1948
  deduplicationKey?: string | undefined;
@@ -1979,58 +1979,58 @@ export declare const RelatedRunDetails: z.ZodObject<{
1979
1979
  durationMs: z.ZodNumber;
1980
1980
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1981
1981
  }, "strip", z.ZodTypeAny, {
1982
- id: string;
1983
1982
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
1983
+ id: string;
1984
1984
  tags: string[];
1985
+ isTest: boolean;
1986
+ createdAt: Date;
1987
+ durationMs: number;
1988
+ costInCents: number;
1989
+ baseCostInCents: number;
1985
1990
  taskIdentifier: string;
1986
1991
  depth: number;
1987
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
1992
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
1988
1993
  isQueued: boolean;
1989
1994
  isExecuting: boolean;
1990
1995
  isCompleted: boolean;
1991
1996
  isSuccess: boolean;
1992
1997
  isFailed: boolean;
1993
1998
  isCancelled: boolean;
1994
- isTest: boolean;
1995
- createdAt: Date;
1996
1999
  updatedAt: Date;
1997
- costInCents: number;
1998
- baseCostInCents: number;
1999
- durationMs: number;
2000
+ startedAt?: Date | undefined;
2000
2001
  idempotencyKey?: string | undefined;
2001
- ttl?: string | undefined;
2002
+ version?: string | undefined;
2002
2003
  metadata?: Record<string, any> | undefined;
2004
+ ttl?: string | undefined;
2003
2005
  batchId?: string | undefined;
2004
- version?: string | undefined;
2005
- startedAt?: Date | undefined;
2006
2006
  finishedAt?: Date | undefined;
2007
2007
  delayedUntil?: Date | undefined;
2008
2008
  expiredAt?: Date | undefined;
2009
2009
  }, {
2010
- id: string;
2011
2010
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2011
+ id: string;
2012
2012
  tags: string[];
2013
+ isTest: boolean;
2014
+ createdAt: Date;
2015
+ durationMs: number;
2016
+ costInCents: number;
2017
+ baseCostInCents: number;
2013
2018
  taskIdentifier: string;
2014
2019
  depth: number;
2015
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2020
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2016
2021
  isQueued: boolean;
2017
2022
  isExecuting: boolean;
2018
2023
  isCompleted: boolean;
2019
2024
  isSuccess: boolean;
2020
2025
  isFailed: boolean;
2021
2026
  isCancelled: boolean;
2022
- isTest: boolean;
2023
- createdAt: Date;
2024
2027
  updatedAt: Date;
2025
- costInCents: number;
2026
- baseCostInCents: number;
2027
- durationMs: number;
2028
+ startedAt?: Date | undefined;
2028
2029
  idempotencyKey?: string | undefined;
2029
- ttl?: string | undefined;
2030
+ version?: string | undefined;
2030
2031
  metadata?: Record<string, any> | undefined;
2032
+ ttl?: string | undefined;
2031
2033
  batchId?: string | undefined;
2032
- version?: string | undefined;
2033
- startedAt?: Date | undefined;
2034
2034
  finishedAt?: Date | undefined;
2035
2035
  delayedUntil?: Date | undefined;
2036
2036
  expiredAt?: Date | undefined;
@@ -2063,19 +2063,19 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2063
2063
  description: z.ZodString;
2064
2064
  }, "strip", z.ZodTypeAny, {
2065
2065
  type: "CRON";
2066
- expression: string;
2067
2066
  description: string;
2067
+ expression: string;
2068
2068
  }, {
2069
2069
  type: "CRON";
2070
- expression: string;
2071
2070
  description: string;
2071
+ expression: string;
2072
2072
  }>;
2073
2073
  }, "strip", z.ZodTypeAny, {
2074
2074
  id: string;
2075
2075
  generator: {
2076
2076
  type: "CRON";
2077
- expression: string;
2078
2077
  description: string;
2078
+ expression: string;
2079
2079
  };
2080
2080
  externalId?: string | undefined;
2081
2081
  deduplicationKey?: string | undefined;
@@ -2083,8 +2083,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2083
2083
  id: string;
2084
2084
  generator: {
2085
2085
  type: "CRON";
2086
- expression: string;
2087
2086
  description: string;
2087
+ expression: string;
2088
2088
  };
2089
2089
  externalId?: string | undefined;
2090
2090
  deduplicationKey?: string | undefined;
@@ -2119,58 +2119,58 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2119
2119
  durationMs: z.ZodNumber;
2120
2120
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2121
2121
  }, "strip", z.ZodTypeAny, {
2122
- id: string;
2123
2122
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2123
+ id: string;
2124
2124
  tags: string[];
2125
+ isTest: boolean;
2126
+ createdAt: Date;
2127
+ durationMs: number;
2128
+ costInCents: number;
2129
+ baseCostInCents: number;
2125
2130
  taskIdentifier: string;
2126
2131
  depth: number;
2127
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2132
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2128
2133
  isQueued: boolean;
2129
2134
  isExecuting: boolean;
2130
2135
  isCompleted: boolean;
2131
2136
  isSuccess: boolean;
2132
2137
  isFailed: boolean;
2133
2138
  isCancelled: boolean;
2134
- isTest: boolean;
2135
- createdAt: Date;
2136
2139
  updatedAt: Date;
2137
- costInCents: number;
2138
- baseCostInCents: number;
2139
- durationMs: number;
2140
+ startedAt?: Date | undefined;
2140
2141
  idempotencyKey?: string | undefined;
2141
- ttl?: string | undefined;
2142
+ version?: string | undefined;
2142
2143
  metadata?: Record<string, any> | undefined;
2144
+ ttl?: string | undefined;
2143
2145
  batchId?: string | undefined;
2144
- version?: string | undefined;
2145
- startedAt?: Date | undefined;
2146
2146
  finishedAt?: Date | undefined;
2147
2147
  delayedUntil?: Date | undefined;
2148
2148
  expiredAt?: Date | undefined;
2149
2149
  }, {
2150
- id: string;
2151
2150
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2151
+ id: string;
2152
2152
  tags: string[];
2153
+ isTest: boolean;
2154
+ createdAt: Date;
2155
+ durationMs: number;
2156
+ costInCents: number;
2157
+ baseCostInCents: number;
2153
2158
  taskIdentifier: string;
2154
2159
  depth: number;
2155
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2160
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2156
2161
  isQueued: boolean;
2157
2162
  isExecuting: boolean;
2158
2163
  isCompleted: boolean;
2159
2164
  isSuccess: boolean;
2160
2165
  isFailed: boolean;
2161
2166
  isCancelled: boolean;
2162
- isTest: boolean;
2163
- createdAt: Date;
2164
2167
  updatedAt: Date;
2165
- costInCents: number;
2166
- baseCostInCents: number;
2167
- durationMs: number;
2168
+ startedAt?: Date | undefined;
2168
2169
  idempotencyKey?: string | undefined;
2169
- ttl?: string | undefined;
2170
+ version?: string | undefined;
2170
2171
  metadata?: Record<string, any> | undefined;
2172
+ ttl?: string | undefined;
2171
2173
  batchId?: string | undefined;
2172
- version?: string | undefined;
2173
- startedAt?: Date | undefined;
2174
2174
  finishedAt?: Date | undefined;
2175
2175
  delayedUntil?: Date | undefined;
2176
2176
  expiredAt?: Date | undefined;
@@ -2204,58 +2204,58 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2204
2204
  durationMs: z.ZodNumber;
2205
2205
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2206
2206
  }, "strip", z.ZodTypeAny, {
2207
- id: string;
2208
2207
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2208
+ id: string;
2209
2209
  tags: string[];
2210
+ isTest: boolean;
2211
+ createdAt: Date;
2212
+ durationMs: number;
2213
+ costInCents: number;
2214
+ baseCostInCents: number;
2210
2215
  taskIdentifier: string;
2211
2216
  depth: number;
2212
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2217
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2213
2218
  isQueued: boolean;
2214
2219
  isExecuting: boolean;
2215
2220
  isCompleted: boolean;
2216
2221
  isSuccess: boolean;
2217
2222
  isFailed: boolean;
2218
2223
  isCancelled: boolean;
2219
- isTest: boolean;
2220
- createdAt: Date;
2221
2224
  updatedAt: Date;
2222
- costInCents: number;
2223
- baseCostInCents: number;
2224
- durationMs: number;
2225
+ startedAt?: Date | undefined;
2225
2226
  idempotencyKey?: string | undefined;
2226
- ttl?: string | undefined;
2227
+ version?: string | undefined;
2227
2228
  metadata?: Record<string, any> | undefined;
2229
+ ttl?: string | undefined;
2228
2230
  batchId?: string | undefined;
2229
- version?: string | undefined;
2230
- startedAt?: Date | undefined;
2231
2231
  finishedAt?: Date | undefined;
2232
2232
  delayedUntil?: Date | undefined;
2233
2233
  expiredAt?: Date | undefined;
2234
2234
  }, {
2235
- id: string;
2236
2235
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2236
+ id: string;
2237
2237
  tags: string[];
2238
+ isTest: boolean;
2239
+ createdAt: Date;
2240
+ durationMs: number;
2241
+ costInCents: number;
2242
+ baseCostInCents: number;
2238
2243
  taskIdentifier: string;
2239
2244
  depth: number;
2240
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2245
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2241
2246
  isQueued: boolean;
2242
2247
  isExecuting: boolean;
2243
2248
  isCompleted: boolean;
2244
2249
  isSuccess: boolean;
2245
2250
  isFailed: boolean;
2246
2251
  isCancelled: boolean;
2247
- isTest: boolean;
2248
- createdAt: Date;
2249
2252
  updatedAt: Date;
2250
- costInCents: number;
2251
- baseCostInCents: number;
2252
- durationMs: number;
2253
+ startedAt?: Date | undefined;
2253
2254
  idempotencyKey?: string | undefined;
2254
- ttl?: string | undefined;
2255
+ version?: string | undefined;
2255
2256
  metadata?: Record<string, any> | undefined;
2257
+ ttl?: string | undefined;
2256
2258
  batchId?: string | undefined;
2257
- version?: string | undefined;
2258
- startedAt?: Date | undefined;
2259
2259
  finishedAt?: Date | undefined;
2260
2260
  delayedUntil?: Date | undefined;
2261
2261
  expiredAt?: Date | undefined;
@@ -2289,234 +2289,234 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2289
2289
  durationMs: z.ZodNumber;
2290
2290
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2291
2291
  }, "strip", z.ZodTypeAny, {
2292
- id: string;
2293
2292
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2293
+ id: string;
2294
2294
  tags: string[];
2295
+ isTest: boolean;
2296
+ createdAt: Date;
2297
+ durationMs: number;
2298
+ costInCents: number;
2299
+ baseCostInCents: number;
2295
2300
  taskIdentifier: string;
2296
2301
  depth: number;
2297
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2302
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2298
2303
  isQueued: boolean;
2299
2304
  isExecuting: boolean;
2300
2305
  isCompleted: boolean;
2301
2306
  isSuccess: boolean;
2302
2307
  isFailed: boolean;
2303
2308
  isCancelled: boolean;
2304
- isTest: boolean;
2305
- createdAt: Date;
2306
2309
  updatedAt: Date;
2307
- costInCents: number;
2308
- baseCostInCents: number;
2309
- durationMs: number;
2310
+ startedAt?: Date | undefined;
2310
2311
  idempotencyKey?: string | undefined;
2311
- ttl?: string | undefined;
2312
+ version?: string | undefined;
2312
2313
  metadata?: Record<string, any> | undefined;
2314
+ ttl?: string | undefined;
2313
2315
  batchId?: string | undefined;
2314
- version?: string | undefined;
2315
- startedAt?: Date | undefined;
2316
2316
  finishedAt?: Date | undefined;
2317
2317
  delayedUntil?: Date | undefined;
2318
2318
  expiredAt?: Date | undefined;
2319
2319
  }, {
2320
- id: string;
2321
2320
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2321
+ id: string;
2322
2322
  tags: string[];
2323
+ isTest: boolean;
2324
+ createdAt: Date;
2325
+ durationMs: number;
2326
+ costInCents: number;
2327
+ baseCostInCents: number;
2323
2328
  taskIdentifier: string;
2324
2329
  depth: number;
2325
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2330
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2326
2331
  isQueued: boolean;
2327
2332
  isExecuting: boolean;
2328
2333
  isCompleted: boolean;
2329
2334
  isSuccess: boolean;
2330
2335
  isFailed: boolean;
2331
2336
  isCancelled: boolean;
2332
- isTest: boolean;
2333
- createdAt: Date;
2334
2337
  updatedAt: Date;
2335
- costInCents: number;
2336
- baseCostInCents: number;
2337
- durationMs: number;
2338
+ startedAt?: Date | undefined;
2338
2339
  idempotencyKey?: string | undefined;
2339
- ttl?: string | undefined;
2340
+ version?: string | undefined;
2340
2341
  metadata?: Record<string, any> | undefined;
2342
+ ttl?: string | undefined;
2341
2343
  batchId?: string | undefined;
2342
- version?: string | undefined;
2343
- startedAt?: Date | undefined;
2344
2344
  finishedAt?: Date | undefined;
2345
2345
  delayedUntil?: Date | undefined;
2346
2346
  expiredAt?: Date | undefined;
2347
2347
  }>, "many">>;
2348
2348
  }, "strip", z.ZodTypeAny, {
2349
2349
  root?: {
2350
- id: string;
2351
2350
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2351
+ id: string;
2352
2352
  tags: string[];
2353
+ isTest: boolean;
2354
+ createdAt: Date;
2355
+ durationMs: number;
2356
+ costInCents: number;
2357
+ baseCostInCents: number;
2353
2358
  taskIdentifier: string;
2354
2359
  depth: number;
2355
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2360
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2356
2361
  isQueued: boolean;
2357
2362
  isExecuting: boolean;
2358
2363
  isCompleted: boolean;
2359
2364
  isSuccess: boolean;
2360
2365
  isFailed: boolean;
2361
2366
  isCancelled: boolean;
2362
- isTest: boolean;
2363
- createdAt: Date;
2364
2367
  updatedAt: Date;
2365
- costInCents: number;
2366
- baseCostInCents: number;
2367
- durationMs: number;
2368
+ startedAt?: Date | undefined;
2368
2369
  idempotencyKey?: string | undefined;
2369
- ttl?: string | undefined;
2370
+ version?: string | undefined;
2370
2371
  metadata?: Record<string, any> | undefined;
2372
+ ttl?: string | undefined;
2371
2373
  batchId?: string | undefined;
2372
- version?: string | undefined;
2373
- startedAt?: Date | undefined;
2374
2374
  finishedAt?: Date | undefined;
2375
2375
  delayedUntil?: Date | undefined;
2376
2376
  expiredAt?: Date | undefined;
2377
2377
  } | undefined;
2378
2378
  parent?: {
2379
- id: string;
2380
2379
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2380
+ id: string;
2381
2381
  tags: string[];
2382
+ isTest: boolean;
2383
+ createdAt: Date;
2384
+ durationMs: number;
2385
+ costInCents: number;
2386
+ baseCostInCents: number;
2382
2387
  taskIdentifier: string;
2383
2388
  depth: number;
2384
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2389
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2385
2390
  isQueued: boolean;
2386
2391
  isExecuting: boolean;
2387
2392
  isCompleted: boolean;
2388
2393
  isSuccess: boolean;
2389
2394
  isFailed: boolean;
2390
2395
  isCancelled: boolean;
2391
- isTest: boolean;
2392
- createdAt: Date;
2393
2396
  updatedAt: Date;
2394
- costInCents: number;
2395
- baseCostInCents: number;
2396
- durationMs: number;
2397
+ startedAt?: Date | undefined;
2397
2398
  idempotencyKey?: string | undefined;
2398
- ttl?: string | undefined;
2399
+ version?: string | undefined;
2399
2400
  metadata?: Record<string, any> | undefined;
2401
+ ttl?: string | undefined;
2400
2402
  batchId?: string | undefined;
2401
- version?: string | undefined;
2402
- startedAt?: Date | undefined;
2403
2403
  finishedAt?: Date | undefined;
2404
2404
  delayedUntil?: Date | undefined;
2405
2405
  expiredAt?: Date | undefined;
2406
2406
  } | undefined;
2407
2407
  children?: {
2408
- id: string;
2409
2408
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2409
+ id: string;
2410
2410
  tags: string[];
2411
+ isTest: boolean;
2412
+ createdAt: Date;
2413
+ durationMs: number;
2414
+ costInCents: number;
2415
+ baseCostInCents: number;
2411
2416
  taskIdentifier: string;
2412
2417
  depth: number;
2413
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2418
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2414
2419
  isQueued: boolean;
2415
2420
  isExecuting: boolean;
2416
2421
  isCompleted: boolean;
2417
2422
  isSuccess: boolean;
2418
2423
  isFailed: boolean;
2419
2424
  isCancelled: boolean;
2420
- isTest: boolean;
2421
- createdAt: Date;
2422
2425
  updatedAt: Date;
2423
- costInCents: number;
2424
- baseCostInCents: number;
2425
- durationMs: number;
2426
+ startedAt?: Date | undefined;
2426
2427
  idempotencyKey?: string | undefined;
2427
- ttl?: string | undefined;
2428
+ version?: string | undefined;
2428
2429
  metadata?: Record<string, any> | undefined;
2430
+ ttl?: string | undefined;
2429
2431
  batchId?: string | undefined;
2430
- version?: string | undefined;
2431
- startedAt?: Date | undefined;
2432
2432
  finishedAt?: Date | undefined;
2433
2433
  delayedUntil?: Date | undefined;
2434
2434
  expiredAt?: Date | undefined;
2435
2435
  }[] | undefined;
2436
2436
  }, {
2437
2437
  root?: {
2438
- id: string;
2439
2438
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2439
+ id: string;
2440
2440
  tags: string[];
2441
+ isTest: boolean;
2442
+ createdAt: Date;
2443
+ durationMs: number;
2444
+ costInCents: number;
2445
+ baseCostInCents: number;
2441
2446
  taskIdentifier: string;
2442
2447
  depth: number;
2443
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2448
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2444
2449
  isQueued: boolean;
2445
2450
  isExecuting: boolean;
2446
2451
  isCompleted: boolean;
2447
2452
  isSuccess: boolean;
2448
2453
  isFailed: boolean;
2449
2454
  isCancelled: boolean;
2450
- isTest: boolean;
2451
- createdAt: Date;
2452
2455
  updatedAt: Date;
2453
- costInCents: number;
2454
- baseCostInCents: number;
2455
- durationMs: number;
2456
+ startedAt?: Date | undefined;
2456
2457
  idempotencyKey?: string | undefined;
2457
- ttl?: string | undefined;
2458
+ version?: string | undefined;
2458
2459
  metadata?: Record<string, any> | undefined;
2460
+ ttl?: string | undefined;
2459
2461
  batchId?: string | undefined;
2460
- version?: string | undefined;
2461
- startedAt?: Date | undefined;
2462
2462
  finishedAt?: Date | undefined;
2463
2463
  delayedUntil?: Date | undefined;
2464
2464
  expiredAt?: Date | undefined;
2465
2465
  } | undefined;
2466
2466
  parent?: {
2467
- id: string;
2468
2467
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2468
+ id: string;
2469
2469
  tags: string[];
2470
+ isTest: boolean;
2471
+ createdAt: Date;
2472
+ durationMs: number;
2473
+ costInCents: number;
2474
+ baseCostInCents: number;
2470
2475
  taskIdentifier: string;
2471
2476
  depth: number;
2472
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2477
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2473
2478
  isQueued: boolean;
2474
2479
  isExecuting: boolean;
2475
2480
  isCompleted: boolean;
2476
2481
  isSuccess: boolean;
2477
2482
  isFailed: boolean;
2478
2483
  isCancelled: boolean;
2479
- isTest: boolean;
2480
- createdAt: Date;
2481
2484
  updatedAt: Date;
2482
- costInCents: number;
2483
- baseCostInCents: number;
2484
- durationMs: number;
2485
+ startedAt?: Date | undefined;
2485
2486
  idempotencyKey?: string | undefined;
2486
- ttl?: string | undefined;
2487
+ version?: string | undefined;
2487
2488
  metadata?: Record<string, any> | undefined;
2489
+ ttl?: string | undefined;
2488
2490
  batchId?: string | undefined;
2489
- version?: string | undefined;
2490
- startedAt?: Date | undefined;
2491
2491
  finishedAt?: Date | undefined;
2492
2492
  delayedUntil?: Date | undefined;
2493
2493
  expiredAt?: Date | undefined;
2494
2494
  } | undefined;
2495
2495
  children?: {
2496
- id: string;
2497
2496
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2497
+ id: string;
2498
2498
  tags: string[];
2499
+ isTest: boolean;
2500
+ createdAt: Date;
2501
+ durationMs: number;
2502
+ costInCents: number;
2503
+ baseCostInCents: number;
2499
2504
  taskIdentifier: string;
2500
2505
  depth: number;
2501
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2506
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2502
2507
  isQueued: boolean;
2503
2508
  isExecuting: boolean;
2504
2509
  isCompleted: boolean;
2505
2510
  isSuccess: boolean;
2506
2511
  isFailed: boolean;
2507
2512
  isCancelled: boolean;
2508
- isTest: boolean;
2509
- createdAt: Date;
2510
2513
  updatedAt: Date;
2511
- costInCents: number;
2512
- baseCostInCents: number;
2513
- durationMs: number;
2514
+ startedAt?: Date | undefined;
2514
2515
  idempotencyKey?: string | undefined;
2515
- ttl?: string | undefined;
2516
+ version?: string | undefined;
2516
2517
  metadata?: Record<string, any> | undefined;
2518
+ ttl?: string | undefined;
2517
2519
  batchId?: string | undefined;
2518
- version?: string | undefined;
2519
- startedAt?: Date | undefined;
2520
2520
  finishedAt?: Date | undefined;
2521
2521
  delayedUntil?: Date | undefined;
2522
2522
  expiredAt?: Date | undefined;
@@ -2543,28 +2543,28 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2543
2543
  stackTrace?: string | undefined;
2544
2544
  }>>;
2545
2545
  }, "strip", z.ZodTypeAny, {
2546
- id: string;
2547
2546
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2547
+ id: string;
2548
2548
  createdAt: Date;
2549
2549
  updatedAt: Date;
2550
+ startedAt?: Date | undefined;
2550
2551
  error?: {
2551
2552
  message: string;
2552
2553
  name?: string | undefined;
2553
2554
  stackTrace?: string | undefined;
2554
2555
  } | undefined;
2555
- startedAt?: Date | undefined;
2556
2556
  completedAt?: Date | undefined;
2557
2557
  }, {
2558
- id: string;
2559
2558
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2559
+ id: string;
2560
2560
  createdAt: Date;
2561
2561
  updatedAt: Date;
2562
+ startedAt?: Date | undefined;
2562
2563
  error?: {
2563
2564
  message: string;
2564
2565
  name?: string | undefined;
2565
2566
  stackTrace?: string | undefined;
2566
2567
  } | undefined;
2567
- startedAt?: Date | undefined;
2568
2568
  completedAt?: Date | undefined;
2569
2569
  }>>, "many">;
2570
2570
  attemptCount: z.ZodDefault<z.ZodNumber>;
@@ -2596,301 +2596,301 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2596
2596
  durationMs: z.ZodNumber;
2597
2597
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2598
2598
  }, "strip", z.ZodTypeAny, {
2599
- id: string;
2600
2599
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2600
+ id: string;
2601
2601
  tags: string[];
2602
+ isTest: boolean;
2603
+ createdAt: Date;
2604
+ durationMs: number;
2605
+ costInCents: number;
2606
+ baseCostInCents: number;
2602
2607
  taskIdentifier: string;
2603
2608
  relatedRuns: {
2604
2609
  root?: {
2605
- id: string;
2606
2610
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2611
+ id: string;
2607
2612
  tags: string[];
2613
+ isTest: boolean;
2614
+ createdAt: Date;
2615
+ durationMs: number;
2616
+ costInCents: number;
2617
+ baseCostInCents: number;
2608
2618
  taskIdentifier: string;
2609
2619
  depth: number;
2610
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2620
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2611
2621
  isQueued: boolean;
2612
2622
  isExecuting: boolean;
2613
2623
  isCompleted: boolean;
2614
2624
  isSuccess: boolean;
2615
2625
  isFailed: boolean;
2616
2626
  isCancelled: boolean;
2617
- isTest: boolean;
2618
- createdAt: Date;
2619
2627
  updatedAt: Date;
2620
- costInCents: number;
2621
- baseCostInCents: number;
2622
- durationMs: number;
2628
+ startedAt?: Date | undefined;
2623
2629
  idempotencyKey?: string | undefined;
2624
- ttl?: string | undefined;
2630
+ version?: string | undefined;
2625
2631
  metadata?: Record<string, any> | undefined;
2632
+ ttl?: string | undefined;
2626
2633
  batchId?: string | undefined;
2627
- version?: string | undefined;
2628
- startedAt?: Date | undefined;
2629
2634
  finishedAt?: Date | undefined;
2630
2635
  delayedUntil?: Date | undefined;
2631
2636
  expiredAt?: Date | undefined;
2632
2637
  } | undefined;
2633
2638
  parent?: {
2634
- id: string;
2635
2639
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2640
+ id: string;
2636
2641
  tags: string[];
2642
+ isTest: boolean;
2643
+ createdAt: Date;
2644
+ durationMs: number;
2645
+ costInCents: number;
2646
+ baseCostInCents: number;
2637
2647
  taskIdentifier: string;
2638
2648
  depth: number;
2639
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2649
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2640
2650
  isQueued: boolean;
2641
2651
  isExecuting: boolean;
2642
2652
  isCompleted: boolean;
2643
2653
  isSuccess: boolean;
2644
2654
  isFailed: boolean;
2645
2655
  isCancelled: boolean;
2646
- isTest: boolean;
2647
- createdAt: Date;
2648
2656
  updatedAt: Date;
2649
- costInCents: number;
2650
- baseCostInCents: number;
2651
- durationMs: number;
2657
+ startedAt?: Date | undefined;
2652
2658
  idempotencyKey?: string | undefined;
2653
- ttl?: string | undefined;
2659
+ version?: string | undefined;
2654
2660
  metadata?: Record<string, any> | undefined;
2661
+ ttl?: string | undefined;
2655
2662
  batchId?: string | undefined;
2656
- version?: string | undefined;
2657
- startedAt?: Date | undefined;
2658
2663
  finishedAt?: Date | undefined;
2659
2664
  delayedUntil?: Date | undefined;
2660
2665
  expiredAt?: Date | undefined;
2661
2666
  } | undefined;
2662
2667
  children?: {
2663
- id: string;
2664
2668
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2669
+ id: string;
2665
2670
  tags: string[];
2671
+ isTest: boolean;
2672
+ createdAt: Date;
2673
+ durationMs: number;
2674
+ costInCents: number;
2675
+ baseCostInCents: number;
2666
2676
  taskIdentifier: string;
2667
2677
  depth: number;
2668
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2678
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2669
2679
  isQueued: boolean;
2670
2680
  isExecuting: boolean;
2671
2681
  isCompleted: boolean;
2672
2682
  isSuccess: boolean;
2673
2683
  isFailed: boolean;
2674
2684
  isCancelled: boolean;
2675
- isTest: boolean;
2676
- createdAt: Date;
2677
2685
  updatedAt: Date;
2678
- costInCents: number;
2679
- baseCostInCents: number;
2680
- durationMs: number;
2686
+ startedAt?: Date | undefined;
2681
2687
  idempotencyKey?: string | undefined;
2682
- ttl?: string | undefined;
2688
+ version?: string | undefined;
2683
2689
  metadata?: Record<string, any> | undefined;
2690
+ ttl?: string | undefined;
2684
2691
  batchId?: string | undefined;
2685
- version?: string | undefined;
2686
- startedAt?: Date | undefined;
2687
2692
  finishedAt?: Date | undefined;
2688
2693
  delayedUntil?: Date | undefined;
2689
2694
  expiredAt?: Date | undefined;
2690
2695
  }[] | undefined;
2691
2696
  };
2692
2697
  depth: number;
2693
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2698
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2694
2699
  isQueued: boolean;
2695
2700
  isExecuting: boolean;
2696
2701
  isCompleted: boolean;
2697
2702
  isSuccess: boolean;
2698
2703
  isFailed: boolean;
2699
2704
  isCancelled: boolean;
2700
- isTest: boolean;
2701
- createdAt: Date;
2702
2705
  updatedAt: Date;
2703
- costInCents: number;
2704
- baseCostInCents: number;
2705
- durationMs: number;
2706
2706
  attempts: ({
2707
- id: string;
2708
2707
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2708
+ id: string;
2709
2709
  createdAt: Date;
2710
2710
  updatedAt: Date;
2711
+ startedAt?: Date | undefined;
2711
2712
  error?: {
2712
2713
  message: string;
2713
2714
  name?: string | undefined;
2714
2715
  stackTrace?: string | undefined;
2715
2716
  } | undefined;
2716
- startedAt?: Date | undefined;
2717
2717
  completedAt?: Date | undefined;
2718
2718
  } | undefined)[];
2719
2719
  attemptCount: number;
2720
+ output?: any;
2721
+ startedAt?: Date | undefined;
2720
2722
  payload?: any;
2721
2723
  idempotencyKey?: string | undefined;
2722
- ttl?: string | undefined;
2724
+ version?: string | undefined;
2723
2725
  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;
2726
+ ttl?: string | undefined;
2732
2727
  schedule?: {
2733
2728
  id: string;
2734
2729
  generator: {
2735
2730
  type: "CRON";
2736
- expression: string;
2737
2731
  description: string;
2732
+ expression: string;
2738
2733
  };
2739
2734
  externalId?: string | undefined;
2740
2735
  deduplicationKey?: string | undefined;
2741
2736
  } | undefined;
2737
+ payloadPresignedUrl?: string | undefined;
2738
+ outputPresignedUrl?: string | undefined;
2739
+ error?: {
2740
+ message: string;
2741
+ name?: string | undefined;
2742
+ stackTrace?: string | undefined;
2743
+ } | undefined;
2742
2744
  batchId?: string | undefined;
2743
- version?: string | undefined;
2744
- startedAt?: Date | undefined;
2745
2745
  finishedAt?: Date | undefined;
2746
2746
  delayedUntil?: Date | undefined;
2747
2747
  expiredAt?: Date | undefined;
2748
2748
  }, {
2749
- id: string;
2750
2749
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2750
+ id: string;
2751
2751
  tags: string[];
2752
+ isTest: boolean;
2753
+ createdAt: Date;
2754
+ durationMs: number;
2755
+ costInCents: number;
2756
+ baseCostInCents: number;
2752
2757
  taskIdentifier: string;
2753
2758
  relatedRuns: {
2754
2759
  root?: {
2755
- id: string;
2756
2760
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2761
+ id: string;
2757
2762
  tags: string[];
2763
+ isTest: boolean;
2764
+ createdAt: Date;
2765
+ durationMs: number;
2766
+ costInCents: number;
2767
+ baseCostInCents: number;
2758
2768
  taskIdentifier: string;
2759
2769
  depth: number;
2760
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2770
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2761
2771
  isQueued: boolean;
2762
2772
  isExecuting: boolean;
2763
2773
  isCompleted: boolean;
2764
2774
  isSuccess: boolean;
2765
2775
  isFailed: boolean;
2766
2776
  isCancelled: boolean;
2767
- isTest: boolean;
2768
- createdAt: Date;
2769
2777
  updatedAt: Date;
2770
- costInCents: number;
2771
- baseCostInCents: number;
2772
- durationMs: number;
2778
+ startedAt?: Date | undefined;
2773
2779
  idempotencyKey?: string | undefined;
2774
- ttl?: string | undefined;
2780
+ version?: string | undefined;
2775
2781
  metadata?: Record<string, any> | undefined;
2782
+ ttl?: string | undefined;
2776
2783
  batchId?: string | undefined;
2777
- version?: string | undefined;
2778
- startedAt?: Date | undefined;
2779
2784
  finishedAt?: Date | undefined;
2780
2785
  delayedUntil?: Date | undefined;
2781
2786
  expiredAt?: Date | undefined;
2782
2787
  } | undefined;
2783
2788
  parent?: {
2784
- id: string;
2785
2789
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2790
+ id: string;
2786
2791
  tags: string[];
2792
+ isTest: boolean;
2793
+ createdAt: Date;
2794
+ durationMs: number;
2795
+ costInCents: number;
2796
+ baseCostInCents: number;
2787
2797
  taskIdentifier: string;
2788
2798
  depth: number;
2789
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2799
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2790
2800
  isQueued: boolean;
2791
2801
  isExecuting: boolean;
2792
2802
  isCompleted: boolean;
2793
2803
  isSuccess: boolean;
2794
2804
  isFailed: boolean;
2795
2805
  isCancelled: boolean;
2796
- isTest: boolean;
2797
- createdAt: Date;
2798
2806
  updatedAt: Date;
2799
- costInCents: number;
2800
- baseCostInCents: number;
2801
- durationMs: number;
2807
+ startedAt?: Date | undefined;
2802
2808
  idempotencyKey?: string | undefined;
2803
- ttl?: string | undefined;
2809
+ version?: string | undefined;
2804
2810
  metadata?: Record<string, any> | undefined;
2811
+ ttl?: string | undefined;
2805
2812
  batchId?: string | undefined;
2806
- version?: string | undefined;
2807
- startedAt?: Date | undefined;
2808
2813
  finishedAt?: Date | undefined;
2809
2814
  delayedUntil?: Date | undefined;
2810
2815
  expiredAt?: Date | undefined;
2811
2816
  } | undefined;
2812
2817
  children?: {
2813
- id: string;
2814
2818
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2819
+ id: string;
2815
2820
  tags: string[];
2821
+ isTest: boolean;
2822
+ createdAt: Date;
2823
+ durationMs: number;
2824
+ costInCents: number;
2825
+ baseCostInCents: number;
2816
2826
  taskIdentifier: string;
2817
2827
  depth: number;
2818
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2828
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2819
2829
  isQueued: boolean;
2820
2830
  isExecuting: boolean;
2821
2831
  isCompleted: boolean;
2822
2832
  isSuccess: boolean;
2823
2833
  isFailed: boolean;
2824
2834
  isCancelled: boolean;
2825
- isTest: boolean;
2826
- createdAt: Date;
2827
2835
  updatedAt: Date;
2828
- costInCents: number;
2829
- baseCostInCents: number;
2830
- durationMs: number;
2836
+ startedAt?: Date | undefined;
2831
2837
  idempotencyKey?: string | undefined;
2832
- ttl?: string | undefined;
2838
+ version?: string | undefined;
2833
2839
  metadata?: Record<string, any> | undefined;
2840
+ ttl?: string | undefined;
2834
2841
  batchId?: string | undefined;
2835
- version?: string | undefined;
2836
- startedAt?: Date | undefined;
2837
2842
  finishedAt?: Date | undefined;
2838
2843
  delayedUntil?: Date | undefined;
2839
2844
  expiredAt?: Date | undefined;
2840
2845
  }[] | undefined;
2841
2846
  };
2842
2847
  depth: number;
2843
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2848
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
2844
2849
  isQueued: boolean;
2845
2850
  isExecuting: boolean;
2846
2851
  isCompleted: boolean;
2847
2852
  isSuccess: boolean;
2848
2853
  isFailed: boolean;
2849
2854
  isCancelled: boolean;
2850
- isTest: boolean;
2851
- createdAt: Date;
2852
2855
  updatedAt: Date;
2853
- costInCents: number;
2854
- baseCostInCents: number;
2855
- durationMs: number;
2856
2856
  attempts: ({
2857
- id: string;
2858
2857
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2858
+ id: string;
2859
2859
  createdAt: Date;
2860
2860
  updatedAt: Date;
2861
+ startedAt?: Date | undefined;
2861
2862
  error?: {
2862
2863
  message: string;
2863
2864
  name?: string | undefined;
2864
2865
  stackTrace?: string | undefined;
2865
2866
  } | undefined;
2866
- startedAt?: Date | undefined;
2867
2867
  completedAt?: Date | undefined;
2868
2868
  } | undefined)[];
2869
+ output?: any;
2870
+ startedAt?: Date | undefined;
2869
2871
  payload?: any;
2870
2872
  idempotencyKey?: string | undefined;
2871
- ttl?: string | undefined;
2873
+ version?: string | undefined;
2872
2874
  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;
2875
+ ttl?: string | undefined;
2881
2876
  schedule?: {
2882
2877
  id: string;
2883
2878
  generator: {
2884
2879
  type: "CRON";
2885
- expression: string;
2886
2880
  description: string;
2881
+ expression: string;
2887
2882
  };
2888
2883
  externalId?: string | undefined;
2889
2884
  deduplicationKey?: string | undefined;
2890
2885
  } | undefined;
2886
+ payloadPresignedUrl?: string | undefined;
2887
+ outputPresignedUrl?: string | undefined;
2888
+ error?: {
2889
+ message: string;
2890
+ name?: string | undefined;
2891
+ stackTrace?: string | undefined;
2892
+ } | undefined;
2891
2893
  batchId?: string | undefined;
2892
- version?: string | undefined;
2893
- startedAt?: Date | undefined;
2894
2894
  finishedAt?: Date | undefined;
2895
2895
  delayedUntil?: Date | undefined;
2896
2896
  expiredAt?: Date | undefined;
@@ -2903,12 +2903,12 @@ export declare const ListRunResponseItem: z.ZodObject<{
2903
2903
  name: z.ZodString;
2904
2904
  user: z.ZodOptional<z.ZodString>;
2905
2905
  }, "strip", z.ZodTypeAny, {
2906
- id: string;
2907
2906
  name: string;
2907
+ id: string;
2908
2908
  user?: string | undefined;
2909
2909
  }, {
2910
- id: string;
2911
2910
  name: string;
2911
+ id: string;
2912
2912
  user?: string | undefined;
2913
2913
  }>;
2914
2914
  id: z.ZodString;
@@ -2936,9 +2936,14 @@ export declare const ListRunResponseItem: z.ZodObject<{
2936
2936
  durationMs: z.ZodNumber;
2937
2937
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2938
2938
  }, "strip", z.ZodTypeAny, {
2939
- id: string;
2940
2939
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2940
+ id: string;
2941
2941
  tags: string[];
2942
+ isTest: boolean;
2943
+ createdAt: Date;
2944
+ durationMs: number;
2945
+ costInCents: number;
2946
+ baseCostInCents: number;
2942
2947
  taskIdentifier: string;
2943
2948
  isQueued: boolean;
2944
2949
  isExecuting: boolean;
@@ -2946,29 +2951,29 @@ export declare const ListRunResponseItem: z.ZodObject<{
2946
2951
  isSuccess: boolean;
2947
2952
  isFailed: boolean;
2948
2953
  isCancelled: boolean;
2949
- isTest: boolean;
2950
- createdAt: Date;
2951
2954
  updatedAt: Date;
2952
- costInCents: number;
2953
- baseCostInCents: number;
2954
- durationMs: number;
2955
2955
  env: {
2956
- id: string;
2957
2956
  name: string;
2957
+ id: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
+ startedAt?: Date | undefined;
2960
2961
  idempotencyKey?: string | undefined;
2961
- ttl?: string | undefined;
2962
- metadata?: Record<string, any> | undefined;
2963
2962
  version?: string | undefined;
2964
- startedAt?: Date | undefined;
2963
+ metadata?: Record<string, any> | undefined;
2964
+ ttl?: string | undefined;
2965
2965
  finishedAt?: Date | undefined;
2966
2966
  delayedUntil?: Date | undefined;
2967
2967
  expiredAt?: Date | undefined;
2968
2968
  }, {
2969
- id: string;
2970
2969
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2970
+ id: string;
2971
2971
  tags: string[];
2972
+ isTest: boolean;
2973
+ createdAt: Date;
2974
+ durationMs: number;
2975
+ costInCents: number;
2976
+ baseCostInCents: number;
2972
2977
  taskIdentifier: string;
2973
2978
  isQueued: boolean;
2974
2979
  isExecuting: boolean;
@@ -2976,22 +2981,17 @@ export declare const ListRunResponseItem: z.ZodObject<{
2976
2981
  isSuccess: boolean;
2977
2982
  isFailed: boolean;
2978
2983
  isCancelled: boolean;
2979
- isTest: boolean;
2980
- createdAt: Date;
2981
2984
  updatedAt: Date;
2982
- costInCents: number;
2983
- baseCostInCents: number;
2984
- durationMs: number;
2985
2985
  env: {
2986
- id: string;
2987
2986
  name: string;
2987
+ id: string;
2988
2988
  user?: string | undefined;
2989
2989
  };
2990
+ startedAt?: Date | undefined;
2990
2991
  idempotencyKey?: string | undefined;
2991
- ttl?: string | undefined;
2992
- metadata?: Record<string, any> | undefined;
2993
2992
  version?: string | undefined;
2994
- startedAt?: Date | undefined;
2993
+ metadata?: Record<string, any> | undefined;
2994
+ ttl?: string | undefined;
2995
2995
  finishedAt?: Date | undefined;
2996
2996
  delayedUntil?: Date | undefined;
2997
2997
  expiredAt?: Date | undefined;
@@ -3004,12 +3004,12 @@ export declare const ListRunResponse: z.ZodObject<{
3004
3004
  name: z.ZodString;
3005
3005
  user: z.ZodOptional<z.ZodString>;
3006
3006
  }, "strip", z.ZodTypeAny, {
3007
- id: string;
3008
3007
  name: string;
3008
+ id: string;
3009
3009
  user?: string | undefined;
3010
3010
  }, {
3011
- id: string;
3012
3011
  name: string;
3012
+ id: string;
3013
3013
  user?: string | undefined;
3014
3014
  }>;
3015
3015
  id: z.ZodString;
@@ -3037,9 +3037,14 @@ export declare const ListRunResponse: z.ZodObject<{
3037
3037
  durationMs: z.ZodNumber;
3038
3038
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3039
3039
  }, "strip", z.ZodTypeAny, {
3040
- id: string;
3041
3040
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3041
+ id: string;
3042
3042
  tags: string[];
3043
+ isTest: boolean;
3044
+ createdAt: Date;
3045
+ durationMs: number;
3046
+ costInCents: number;
3047
+ baseCostInCents: number;
3043
3048
  taskIdentifier: string;
3044
3049
  isQueued: boolean;
3045
3050
  isExecuting: boolean;
@@ -3047,29 +3052,29 @@ export declare const ListRunResponse: z.ZodObject<{
3047
3052
  isSuccess: boolean;
3048
3053
  isFailed: boolean;
3049
3054
  isCancelled: boolean;
3050
- isTest: boolean;
3051
- createdAt: Date;
3052
3055
  updatedAt: Date;
3053
- costInCents: number;
3054
- baseCostInCents: number;
3055
- durationMs: number;
3056
3056
  env: {
3057
- id: string;
3058
3057
  name: string;
3058
+ id: string;
3059
3059
  user?: string | undefined;
3060
3060
  };
3061
+ startedAt?: Date | undefined;
3061
3062
  idempotencyKey?: string | undefined;
3062
- ttl?: string | undefined;
3063
- metadata?: Record<string, any> | undefined;
3064
3063
  version?: string | undefined;
3065
- startedAt?: Date | undefined;
3064
+ metadata?: Record<string, any> | undefined;
3065
+ ttl?: string | undefined;
3066
3066
  finishedAt?: Date | undefined;
3067
3067
  delayedUntil?: Date | undefined;
3068
3068
  expiredAt?: Date | undefined;
3069
3069
  }, {
3070
- id: string;
3071
3070
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3071
+ id: string;
3072
3072
  tags: string[];
3073
+ isTest: boolean;
3074
+ createdAt: Date;
3075
+ durationMs: number;
3076
+ costInCents: number;
3077
+ baseCostInCents: number;
3073
3078
  taskIdentifier: string;
3074
3079
  isQueued: boolean;
3075
3080
  isExecuting: boolean;
@@ -3077,22 +3082,17 @@ export declare const ListRunResponse: z.ZodObject<{
3077
3082
  isSuccess: boolean;
3078
3083
  isFailed: boolean;
3079
3084
  isCancelled: boolean;
3080
- isTest: boolean;
3081
- createdAt: Date;
3082
3085
  updatedAt: Date;
3083
- costInCents: number;
3084
- baseCostInCents: number;
3085
- durationMs: number;
3086
3086
  env: {
3087
- id: string;
3088
3087
  name: string;
3088
+ id: string;
3089
3089
  user?: string | undefined;
3090
3090
  };
3091
+ startedAt?: Date | undefined;
3091
3092
  idempotencyKey?: string | undefined;
3092
- ttl?: string | undefined;
3093
- metadata?: Record<string, any> | undefined;
3094
3093
  version?: string | undefined;
3095
- startedAt?: Date | undefined;
3094
+ metadata?: Record<string, any> | undefined;
3095
+ ttl?: string | undefined;
3096
3096
  finishedAt?: Date | undefined;
3097
3097
  delayedUntil?: Date | undefined;
3098
3098
  expiredAt?: Date | undefined;
@@ -3109,9 +3109,14 @@ export declare const ListRunResponse: z.ZodObject<{
3109
3109
  }>;
3110
3110
  }, "strip", z.ZodTypeAny, {
3111
3111
  data: {
3112
- id: string;
3113
3112
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3113
+ id: string;
3114
3114
  tags: string[];
3115
+ isTest: boolean;
3116
+ createdAt: Date;
3117
+ durationMs: number;
3118
+ costInCents: number;
3119
+ baseCostInCents: number;
3115
3120
  taskIdentifier: string;
3116
3121
  isQueued: boolean;
3117
3122
  isExecuting: boolean;
@@ -3119,22 +3124,17 @@ export declare const ListRunResponse: z.ZodObject<{
3119
3124
  isSuccess: boolean;
3120
3125
  isFailed: boolean;
3121
3126
  isCancelled: boolean;
3122
- isTest: boolean;
3123
- createdAt: Date;
3124
3127
  updatedAt: Date;
3125
- costInCents: number;
3126
- baseCostInCents: number;
3127
- durationMs: number;
3128
3128
  env: {
3129
- id: string;
3130
3129
  name: string;
3130
+ id: string;
3131
3131
  user?: string | undefined;
3132
3132
  };
3133
+ startedAt?: Date | undefined;
3133
3134
  idempotencyKey?: string | undefined;
3134
- ttl?: string | undefined;
3135
- metadata?: Record<string, any> | undefined;
3136
3135
  version?: string | undefined;
3137
- startedAt?: Date | undefined;
3136
+ metadata?: Record<string, any> | undefined;
3137
+ ttl?: string | undefined;
3138
3138
  finishedAt?: Date | undefined;
3139
3139
  delayedUntil?: Date | undefined;
3140
3140
  expiredAt?: Date | undefined;
@@ -3145,9 +3145,14 @@ export declare const ListRunResponse: z.ZodObject<{
3145
3145
  };
3146
3146
  }, {
3147
3147
  data: {
3148
- id: string;
3149
3148
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3149
+ id: string;
3150
3150
  tags: string[];
3151
+ isTest: boolean;
3152
+ createdAt: Date;
3153
+ durationMs: number;
3154
+ costInCents: number;
3155
+ baseCostInCents: number;
3151
3156
  taskIdentifier: string;
3152
3157
  isQueued: boolean;
3153
3158
  isExecuting: boolean;
@@ -3155,22 +3160,17 @@ export declare const ListRunResponse: z.ZodObject<{
3155
3160
  isSuccess: boolean;
3156
3161
  isFailed: boolean;
3157
3162
  isCancelled: boolean;
3158
- isTest: boolean;
3159
- createdAt: Date;
3160
3163
  updatedAt: Date;
3161
- costInCents: number;
3162
- baseCostInCents: number;
3163
- durationMs: number;
3164
3164
  env: {
3165
- id: string;
3166
3165
  name: string;
3166
+ id: string;
3167
3167
  user?: string | undefined;
3168
3168
  };
3169
+ startedAt?: Date | undefined;
3169
3170
  idempotencyKey?: string | undefined;
3170
- ttl?: string | undefined;
3171
- metadata?: Record<string, any> | undefined;
3172
3171
  version?: string | undefined;
3173
- startedAt?: Date | undefined;
3172
+ metadata?: Record<string, any> | undefined;
3173
+ ttl?: string | undefined;
3174
3174
  finishedAt?: Date | undefined;
3175
3175
  delayedUntil?: Date | undefined;
3176
3176
  expiredAt?: Date | undefined;
@@ -3185,11 +3185,11 @@ export declare const CreateEnvironmentVariableRequestBody: z.ZodObject<{
3185
3185
  name: z.ZodString;
3186
3186
  value: z.ZodString;
3187
3187
  }, "strip", z.ZodTypeAny, {
3188
- value: string;
3189
3188
  name: string;
3190
- }, {
3191
3189
  value: string;
3190
+ }, {
3192
3191
  name: string;
3192
+ value: string;
3193
3193
  }>;
3194
3194
  export type CreateEnvironmentVariableRequestBody = z.infer<typeof CreateEnvironmentVariableRequestBody>;
3195
3195
  export declare const UpdateEnvironmentVariableRequestBody: z.ZodObject<{
@@ -3231,21 +3231,21 @@ export declare const EnvironmentVariable: z.ZodObject<{
3231
3231
  name: z.ZodString;
3232
3232
  value: z.ZodString;
3233
3233
  }, "strip", z.ZodTypeAny, {
3234
- value: string;
3235
3234
  name: string;
3236
- }, {
3237
3235
  value: string;
3236
+ }, {
3238
3237
  name: string;
3238
+ value: string;
3239
3239
  }>;
3240
3240
  export declare const EnvironmentVariables: z.ZodArray<z.ZodObject<{
3241
3241
  name: z.ZodString;
3242
3242
  value: z.ZodString;
3243
3243
  }, "strip", z.ZodTypeAny, {
3244
- value: string;
3245
3244
  name: string;
3246
- }, {
3247
3245
  value: string;
3246
+ }, {
3248
3247
  name: string;
3248
+ value: string;
3249
3249
  }>, "many">;
3250
3250
  export type EnvironmentVariables = z.infer<typeof EnvironmentVariables>;
3251
3251
  export declare const UpdateMetadataRequestBody: z.ZodObject<{
@@ -3606,13 +3606,13 @@ export type UpdateMetadataResponseBody = z.infer<typeof UpdateMetadataResponseBo
3606
3606
  export declare const SubscribeRunRawShape: z.ZodObject<{
3607
3607
  id: z.ZodString;
3608
3608
  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>>;
3609
+ createdAt: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodDate>;
3610
+ updatedAt: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodDate>;
3611
+ startedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3612
+ delayUntil: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3613
+ queuedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3614
+ expiredAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3615
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | Date | null | undefined, string | null | undefined>;
3616
3616
  taskIdentifier: z.ZodString;
3617
3617
  friendlyId: z.ZodString;
3618
3618
  number: z.ZodNumber;
@@ -3635,14 +3635,14 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3635
3635
  message: z.ZodString;
3636
3636
  stackTrace: z.ZodString;
3637
3637
  }, "strip", z.ZodTypeAny, {
3638
+ name: string;
3638
3639
  message: string;
3639
3640
  type: "BUILT_IN_ERROR";
3640
- name: string;
3641
3641
  stackTrace: string;
3642
3642
  }, {
3643
+ name: string;
3643
3644
  message: string;
3644
3645
  type: "BUILT_IN_ERROR";
3645
- name: string;
3646
3646
  stackTrace: string;
3647
3647
  }>, z.ZodObject<{
3648
3648
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -3680,28 +3680,28 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3680
3680
  }>]>>>;
3681
3681
  }, "strip", z.ZodTypeAny, {
3682
3682
  number: number;
3683
- id: string;
3684
3683
  status: string;
3685
- taskIdentifier: string;
3684
+ id: string;
3686
3685
  isTest: boolean;
3687
3686
  createdAt: Date;
3688
- updatedAt: Date;
3689
3687
  costInCents: number;
3690
3688
  baseCostInCents: number;
3689
+ taskIdentifier: string;
3690
+ updatedAt: Date;
3691
3691
  friendlyId: string;
3692
3692
  usageDurationMs: number;
3693
3693
  runTags: string[] | null;
3694
+ output?: string | null | undefined;
3695
+ startedAt?: string | Date | null | undefined;
3694
3696
  payload?: string | null | undefined;
3695
- idempotencyKey?: string | null | undefined;
3696
3697
  payloadType?: string | null | undefined;
3697
- ttl?: string | null | undefined;
3698
+ idempotencyKey?: string | null | undefined;
3698
3699
  metadata?: string | null | undefined;
3699
- metadataType?: string | null | undefined;
3700
- output?: string | null | undefined;
3700
+ ttl?: string | null | undefined;
3701
3701
  error?: {
3702
+ name: string;
3702
3703
  message: string;
3703
3704
  type: "BUILT_IN_ERROR";
3704
- name: string;
3705
3705
  stackTrace: string;
3706
3706
  } | {
3707
3707
  type: "CUSTOM_ERROR";
@@ -3715,35 +3715,35 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3715
3715
  message?: string | undefined;
3716
3716
  stackTrace?: string | undefined;
3717
3717
  } | null | undefined;
3718
- startedAt?: Date | null | undefined;
3719
- expiredAt?: Date | null | undefined;
3720
- completedAt?: Date | null | undefined;
3718
+ expiredAt?: string | Date | null | undefined;
3719
+ completedAt?: string | Date | null | undefined;
3720
+ metadataType?: string | null | undefined;
3721
+ delayUntil?: string | Date | null | undefined;
3722
+ queuedAt?: string | Date | null | undefined;
3721
3723
  outputType?: string | null | undefined;
3722
- delayUntil?: Date | null | undefined;
3723
- queuedAt?: Date | null | undefined;
3724
3724
  }, {
3725
3725
  number: number;
3726
- id: string;
3727
3726
  status: string;
3728
- taskIdentifier: string;
3727
+ id: string;
3729
3728
  isTest: boolean;
3730
- createdAt: Date;
3731
- updatedAt: Date;
3729
+ createdAt: string;
3732
3730
  costInCents: number;
3733
3731
  baseCostInCents: number;
3732
+ taskIdentifier: string;
3733
+ updatedAt: string;
3734
3734
  friendlyId: string;
3735
3735
  usageDurationMs: number;
3736
+ output?: string | null | undefined;
3737
+ startedAt?: string | null | undefined;
3736
3738
  payload?: string | null | undefined;
3737
- idempotencyKey?: string | null | undefined;
3738
3739
  payloadType?: string | null | undefined;
3739
- ttl?: string | null | undefined;
3740
+ idempotencyKey?: string | null | undefined;
3740
3741
  metadata?: string | null | undefined;
3741
- metadataType?: string | null | undefined;
3742
- output?: string | null | undefined;
3742
+ ttl?: string | null | undefined;
3743
3743
  error?: {
3744
+ name: string;
3744
3745
  message: string;
3745
3746
  type: "BUILT_IN_ERROR";
3746
- name: string;
3747
3747
  stackTrace: string;
3748
3748
  } | {
3749
3749
  type: "CUSTOM_ERROR";
@@ -3757,12 +3757,12 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3757
3757
  message?: string | undefined;
3758
3758
  stackTrace?: string | undefined;
3759
3759
  } | null | undefined;
3760
- startedAt?: Date | null | undefined;
3761
- expiredAt?: Date | null | undefined;
3762
- completedAt?: Date | null | undefined;
3760
+ expiredAt?: string | null | undefined;
3761
+ completedAt?: string | null | undefined;
3762
+ metadataType?: string | null | undefined;
3763
+ delayUntil?: string | null | undefined;
3764
+ queuedAt?: string | null | undefined;
3763
3765
  outputType?: string | null | undefined;
3764
- delayUntil?: Date | null | undefined;
3765
- queuedAt?: Date | null | undefined;
3766
3766
  runTags?: string[] | null | undefined;
3767
3767
  }>;
3768
3768
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
@@ -3776,15 +3776,15 @@ export declare const RetrieveBatchResponse: z.ZodObject<{
3776
3776
  updatedAt: z.ZodDate;
3777
3777
  runCount: z.ZodNumber;
3778
3778
  }, "strip", z.ZodTypeAny, {
3779
- id: string;
3780
3779
  status: "COMPLETED" | "PENDING";
3780
+ id: string;
3781
3781
  createdAt: Date;
3782
3782
  updatedAt: Date;
3783
3783
  runCount: number;
3784
3784
  idempotencyKey?: string | undefined;
3785
3785
  }, {
3786
- id: string;
3787
3786
  status: "COMPLETED" | "PENDING";
3787
+ id: string;
3788
3788
  createdAt: Date;
3789
3789
  updatedAt: Date;
3790
3790
  runCount: number;
@@ -3799,18 +3799,18 @@ export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{
3799
3799
  value: z.ZodString;
3800
3800
  createdAt: z.ZodDate;
3801
3801
  }, "strip", z.ZodTypeAny, {
3802
- id: string;
3803
3802
  value: string;
3803
+ id: string;
3804
3804
  createdAt: Date;
3805
- key: string;
3806
3805
  runId: string;
3806
+ key: string;
3807
3807
  sequence: number;
3808
3808
  }, {
3809
- id: string;
3810
3809
  value: string;
3810
+ id: string;
3811
3811
  createdAt: Date;
3812
- key: string;
3813
3812
  runId: string;
3813
+ key: string;
3814
3814
  sequence: number;
3815
3815
  }>;
3816
3816
  export type SubscribeRealtimeStreamChunkRawShape = z.infer<typeof SubscribeRealtimeStreamChunkRawShape>;