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

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 (131) hide show
  1. package/dist/commonjs/schemas/api.d.ts +2137 -2137
  2. package/dist/commonjs/schemas/events.d.ts +8 -8
  3. package/dist/commonjs/schemas/fetch.d.ts +54 -54
  4. package/dist/commonjs/schemas/integrations.d.ts +4 -4
  5. package/dist/commonjs/schemas/notifications.d.ts +80 -80
  6. package/dist/commonjs/schemas/properties.d.ts +4 -4
  7. package/dist/commonjs/schemas/request.d.ts +4 -4
  8. package/dist/commonjs/schemas/requestFilter.d.ts +2 -2
  9. package/dist/commonjs/schemas/runs.d.ts +39 -39
  10. package/dist/commonjs/schemas/schedules.d.ts +12 -12
  11. package/dist/commonjs/schemas/statuses.d.ts +24 -24
  12. package/dist/commonjs/schemas/tasks.d.ts +54 -54
  13. package/dist/commonjs/schemas/triggers.d.ts +36 -36
  14. package/dist/commonjs/v3/apiClient/index.d.ts +114 -111
  15. package/dist/commonjs/v3/apiClient/index.js +3 -0
  16. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  17. package/dist/commonjs/v3/apiClient/runStream.d.ts +1 -0
  18. package/dist/commonjs/v3/apiClient/runStream.js +3 -0
  19. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  20. package/dist/commonjs/v3/apiClient/stream.d.ts +1 -0
  21. package/dist/commonjs/v3/apiClient/stream.js +3 -0
  22. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  23. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  24. package/dist/commonjs/v3/config.d.ts +17 -0
  25. package/dist/commonjs/v3/errors.d.ts +14 -1
  26. package/dist/commonjs/v3/errors.js +35 -1
  27. package/dist/commonjs/v3/errors.js.map +1 -1
  28. package/dist/commonjs/v3/links.d.ts +3 -0
  29. package/dist/commonjs/v3/links.js +3 -0
  30. package/dist/commonjs/v3/links.js.map +1 -1
  31. package/dist/commonjs/v3/otel/tracingSDK.d.ts +2 -0
  32. package/dist/commonjs/v3/otel/tracingSDK.js +51 -0
  33. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  34. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  35. package/dist/commonjs/v3/runtime/devRuntimeManager.js +36 -30
  36. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  37. package/dist/commonjs/v3/runtime/index.d.ts +4 -0
  38. package/dist/commonjs/v3/runtime/index.js +4 -0
  39. package/dist/commonjs/v3/runtime/index.js.map +1 -1
  40. package/dist/commonjs/v3/runtime/preventMultipleWaits.js +31 -0
  41. package/dist/commonjs/v3/runtime/preventMultipleWaits.js.map +1 -0
  42. package/dist/commonjs/v3/runtime/prodRuntimeManager.d.ts +1 -0
  43. package/dist/commonjs/v3/runtime/prodRuntimeManager.js +41 -33
  44. package/dist/commonjs/v3/runtime/prodRuntimeManager.js.map +1 -1
  45. package/dist/commonjs/v3/schemas/api.d.ts +541 -517
  46. package/dist/commonjs/v3/schemas/api.js +2 -0
  47. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  48. package/dist/commonjs/v3/schemas/build.d.ts +346 -346
  49. package/dist/commonjs/v3/schemas/common.d.ts +166 -165
  50. package/dist/commonjs/v3/schemas/common.js +1 -0
  51. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  52. package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
  53. package/dist/commonjs/v3/schemas/messages.d.ts +4610 -4610
  54. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +20 -20
  55. package/dist/commonjs/v3/schemas/resources.d.ts +84 -84
  56. package/dist/commonjs/v3/schemas/schemas.d.ts +457 -457
  57. package/dist/commonjs/v3/schemas/style.d.ts +10 -10
  58. package/dist/commonjs/v3/semanticInternalAttributes.d.ts +1 -0
  59. package/dist/commonjs/v3/semanticInternalAttributes.js +1 -0
  60. package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
  61. package/dist/commonjs/v3/types/tasks.d.ts +7 -3
  62. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  63. package/dist/commonjs/v3/workers/taskExecutor.js +5 -2
  64. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  65. package/dist/commonjs/version.js +1 -1
  66. package/dist/esm/schemas/api.d.ts +2137 -2137
  67. package/dist/esm/schemas/events.d.ts +8 -8
  68. package/dist/esm/schemas/fetch.d.ts +54 -54
  69. package/dist/esm/schemas/integrations.d.ts +4 -4
  70. package/dist/esm/schemas/notifications.d.ts +80 -80
  71. package/dist/esm/schemas/properties.d.ts +4 -4
  72. package/dist/esm/schemas/request.d.ts +4 -4
  73. package/dist/esm/schemas/requestFilter.d.ts +2 -2
  74. package/dist/esm/schemas/runs.d.ts +39 -39
  75. package/dist/esm/schemas/schedules.d.ts +12 -12
  76. package/dist/esm/schemas/statuses.d.ts +24 -24
  77. package/dist/esm/schemas/tasks.d.ts +54 -54
  78. package/dist/esm/schemas/triggers.d.ts +36 -36
  79. package/dist/esm/v3/apiClient/index.d.ts +28 -25
  80. package/dist/esm/v3/apiClient/index.js +3 -0
  81. package/dist/esm/v3/apiClient/index.js.map +1 -1
  82. package/dist/esm/v3/apiClient/runStream.d.ts +1 -0
  83. package/dist/esm/v3/apiClient/runStream.js +3 -0
  84. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  85. package/dist/esm/v3/apiClient/stream.d.ts +1 -0
  86. package/dist/esm/v3/apiClient/stream.js +3 -0
  87. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  88. package/dist/esm/v3/config.d.ts +17 -0
  89. package/dist/esm/v3/errors.d.ts +14 -1
  90. package/dist/esm/v3/errors.js +33 -0
  91. package/dist/esm/v3/errors.js.map +1 -1
  92. package/dist/esm/v3/links.d.ts +3 -0
  93. package/dist/esm/v3/links.js +3 -0
  94. package/dist/esm/v3/links.js.map +1 -1
  95. package/dist/esm/v3/otel/tracingSDK.d.ts +2 -0
  96. package/dist/esm/v3/otel/tracingSDK.js +51 -0
  97. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  98. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  99. package/dist/esm/v3/runtime/devRuntimeManager.js +36 -30
  100. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  101. package/dist/esm/v3/runtime/index.d.ts +4 -0
  102. package/dist/esm/v3/runtime/index.js +4 -0
  103. package/dist/esm/v3/runtime/index.js.map +1 -1
  104. package/dist/esm/v3/runtime/preventMultipleWaits.d.ts +1 -0
  105. package/dist/esm/v3/runtime/preventMultipleWaits.js +28 -0
  106. package/dist/esm/v3/runtime/preventMultipleWaits.js.map +1 -0
  107. package/dist/esm/v3/runtime/prodRuntimeManager.d.ts +1 -0
  108. package/dist/esm/v3/runtime/prodRuntimeManager.js +41 -33
  109. package/dist/esm/v3/runtime/prodRuntimeManager.js.map +1 -1
  110. package/dist/esm/v3/schemas/api.d.ts +161 -137
  111. package/dist/esm/v3/schemas/api.js +3 -1
  112. package/dist/esm/v3/schemas/api.js.map +1 -1
  113. package/dist/esm/v3/schemas/build.d.ts +88 -88
  114. package/dist/esm/v3/schemas/common.d.ts +166 -165
  115. package/dist/esm/v3/schemas/common.js +1 -0
  116. package/dist/esm/v3/schemas/common.js.map +1 -1
  117. package/dist/esm/v3/schemas/fetch.d.ts +10 -10
  118. package/dist/esm/v3/schemas/messages.d.ts +1676 -1676
  119. package/dist/esm/v3/schemas/openTelemetry.d.ts +20 -20
  120. package/dist/esm/v3/schemas/resources.d.ts +4 -4
  121. package/dist/esm/v3/schemas/schemas.d.ts +52 -52
  122. package/dist/esm/v3/schemas/style.d.ts +10 -10
  123. package/dist/esm/v3/semanticInternalAttributes.d.ts +1 -0
  124. package/dist/esm/v3/semanticInternalAttributes.js +1 -0
  125. package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
  126. package/dist/esm/v3/types/tasks.d.ts +7 -3
  127. package/dist/esm/v3/types/tasks.js.map +1 -1
  128. package/dist/esm/v3/workers/taskExecutor.js +6 -3
  129. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  130. package/dist/esm/version.js +1 -1
  131. package/package.json +1 -1
@@ -263,8 +263,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
263
263
  taskIds: string[];
264
264
  }>, "many">>;
265
265
  }, "strip", z.ZodTypeAny, {
266
- contentHash: string;
267
- packageVersion: string;
268
266
  tasks: {
269
267
  id: string;
270
268
  filePath: string;
@@ -293,6 +291,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
293
291
  timezone: string;
294
292
  } | undefined;
295
293
  }[];
294
+ contentHash: string;
295
+ packageVersion: string;
296
296
  cliPackageVersion?: string | undefined;
297
297
  sourceFiles?: {
298
298
  filePath: string;
@@ -301,8 +301,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
301
301
  taskIds: string[];
302
302
  }[] | undefined;
303
303
  }, {
304
- contentHash: string;
305
- packageVersion: string;
306
304
  tasks: {
307
305
  id: string;
308
306
  filePath: string;
@@ -331,6 +329,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
331
329
  timezone: string;
332
330
  } | undefined;
333
331
  }[];
332
+ contentHash: string;
333
+ packageVersion: string;
334
334
  cliPackageVersion?: string | undefined;
335
335
  sourceFiles?: {
336
336
  filePath: string;
@@ -342,8 +342,6 @@ 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;
347
345
  tasks: {
348
346
  id: string;
349
347
  filePath: string;
@@ -372,6 +370,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
372
370
  timezone: string;
373
371
  } | undefined;
374
372
  }[];
373
+ contentHash: string;
374
+ packageVersion: string;
375
375
  cliPackageVersion?: string | undefined;
376
376
  sourceFiles?: {
377
377
  filePath: string;
@@ -384,8 +384,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
384
384
  supportsLazyAttempts?: boolean | undefined;
385
385
  }, {
386
386
  metadata: {
387
- contentHash: string;
388
- packageVersion: string;
389
387
  tasks: {
390
388
  id: string;
391
389
  filePath: string;
@@ -414,6 +412,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
414
412
  timezone: string;
415
413
  } | undefined;
416
414
  }[];
415
+ contentHash: string;
416
+ packageVersion: string;
417
417
  cliPackageVersion?: string | undefined;
418
418
  sourceFiles?: {
419
419
  filePath: string;
@@ -473,20 +473,22 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
473
473
  metadata: z.ZodAny;
474
474
  metadataType: z.ZodOptional<z.ZodString>;
475
475
  maxDuration: z.ZodOptional<z.ZodNumber>;
476
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
476
477
  }, "strip", z.ZodTypeAny, {
478
+ metadata?: any;
477
479
  payloadType?: string | undefined;
478
480
  tags?: string | string[] | undefined;
479
481
  idempotencyKey?: string | undefined;
480
482
  maxAttempts?: number | undefined;
481
- metadata?: any;
482
483
  maxDuration?: number | undefined;
483
484
  queue?: {
484
485
  name?: string | undefined;
485
486
  concurrencyLimit?: number | undefined;
486
487
  } | undefined;
488
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
489
+ delay?: string | Date | undefined;
487
490
  idempotencyKeyTTL?: string | undefined;
488
491
  concurrencyKey?: string | undefined;
489
- delay?: string | Date | undefined;
490
492
  ttl?: string | number | undefined;
491
493
  dependentAttempt?: string | undefined;
492
494
  parentAttempt?: string | undefined;
@@ -496,19 +498,20 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
496
498
  test?: boolean | undefined;
497
499
  metadataType?: string | undefined;
498
500
  }, {
501
+ metadata?: any;
499
502
  payloadType?: string | undefined;
500
503
  tags?: string | string[] | undefined;
501
504
  idempotencyKey?: string | undefined;
502
505
  maxAttempts?: number | undefined;
503
- metadata?: any;
504
506
  maxDuration?: number | undefined;
505
507
  queue?: {
506
508
  name?: string | undefined;
507
509
  concurrencyLimit?: number | undefined;
508
510
  } | undefined;
511
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
512
+ delay?: string | Date | undefined;
509
513
  idempotencyKeyTTL?: string | undefined;
510
514
  concurrencyKey?: string | undefined;
511
- delay?: string | Date | undefined;
512
515
  ttl?: string | number | undefined;
513
516
  dependentAttempt?: string | undefined;
514
517
  parentAttempt?: string | undefined;
@@ -520,19 +523,20 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
520
523
  }>>;
521
524
  }, "strip", z.ZodTypeAny, {
522
525
  options?: {
526
+ metadata?: any;
523
527
  payloadType?: string | undefined;
524
528
  tags?: string | string[] | undefined;
525
529
  idempotencyKey?: string | undefined;
526
530
  maxAttempts?: number | undefined;
527
- metadata?: any;
528
531
  maxDuration?: number | undefined;
529
532
  queue?: {
530
533
  name?: string | undefined;
531
534
  concurrencyLimit?: number | undefined;
532
535
  } | undefined;
536
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
537
+ delay?: string | Date | undefined;
533
538
  idempotencyKeyTTL?: string | undefined;
534
539
  concurrencyKey?: string | undefined;
535
- delay?: string | Date | undefined;
536
540
  ttl?: string | number | undefined;
537
541
  dependentAttempt?: string | undefined;
538
542
  parentAttempt?: string | undefined;
@@ -546,19 +550,20 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
546
550
  context?: any;
547
551
  }, {
548
552
  options?: {
553
+ metadata?: any;
549
554
  payloadType?: string | undefined;
550
555
  tags?: string | string[] | undefined;
551
556
  idempotencyKey?: string | undefined;
552
557
  maxAttempts?: number | undefined;
553
- metadata?: any;
554
558
  maxDuration?: number | undefined;
555
559
  queue?: {
556
560
  name?: string | undefined;
557
561
  concurrencyLimit?: number | undefined;
558
562
  } | undefined;
563
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
564
+ delay?: string | Date | undefined;
559
565
  idempotencyKeyTTL?: string | undefined;
560
566
  concurrencyKey?: string | undefined;
561
- delay?: string | Date | undefined;
562
567
  ttl?: string | number | undefined;
563
568
  dependentAttempt?: string | undefined;
564
569
  parentAttempt?: string | undefined;
@@ -612,20 +617,22 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
612
617
  metadata: z.ZodAny;
613
618
  metadataType: z.ZodOptional<z.ZodString>;
614
619
  maxDuration: z.ZodOptional<z.ZodNumber>;
620
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
615
621
  }, "strip", z.ZodTypeAny, {
622
+ metadata?: any;
616
623
  payloadType?: string | undefined;
617
624
  tags?: string | string[] | undefined;
618
625
  idempotencyKey?: string | undefined;
619
626
  maxAttempts?: number | undefined;
620
- metadata?: any;
621
627
  maxDuration?: number | undefined;
622
628
  queue?: {
623
629
  name?: string | undefined;
624
630
  concurrencyLimit?: number | undefined;
625
631
  } | undefined;
632
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
633
+ delay?: string | Date | undefined;
626
634
  idempotencyKeyTTL?: string | undefined;
627
635
  concurrencyKey?: string | undefined;
628
- delay?: string | Date | undefined;
629
636
  ttl?: string | number | undefined;
630
637
  dependentAttempt?: string | undefined;
631
638
  parentAttempt?: string | undefined;
@@ -635,19 +642,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
635
642
  test?: boolean | undefined;
636
643
  metadataType?: string | undefined;
637
644
  }, {
645
+ metadata?: any;
638
646
  payloadType?: string | undefined;
639
647
  tags?: string | string[] | undefined;
640
648
  idempotencyKey?: string | undefined;
641
649
  maxAttempts?: number | undefined;
642
- metadata?: any;
643
650
  maxDuration?: number | undefined;
644
651
  queue?: {
645
652
  name?: string | undefined;
646
653
  concurrencyLimit?: number | undefined;
647
654
  } | undefined;
655
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
656
+ delay?: string | Date | undefined;
648
657
  idempotencyKeyTTL?: string | undefined;
649
658
  concurrencyKey?: string | undefined;
650
- delay?: string | Date | undefined;
651
659
  ttl?: string | number | undefined;
652
660
  dependentAttempt?: string | undefined;
653
661
  parentAttempt?: string | undefined;
@@ -659,19 +667,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
659
667
  }>>;
660
668
  }, "strip", z.ZodTypeAny, {
661
669
  options?: {
670
+ metadata?: any;
662
671
  payloadType?: string | undefined;
663
672
  tags?: string | string[] | undefined;
664
673
  idempotencyKey?: string | undefined;
665
674
  maxAttempts?: number | undefined;
666
- metadata?: any;
667
675
  maxDuration?: number | undefined;
668
676
  queue?: {
669
677
  name?: string | undefined;
670
678
  concurrencyLimit?: number | undefined;
671
679
  } | undefined;
680
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
681
+ delay?: string | Date | undefined;
672
682
  idempotencyKeyTTL?: string | undefined;
673
683
  concurrencyKey?: string | undefined;
674
- delay?: string | Date | undefined;
675
684
  ttl?: string | number | undefined;
676
685
  dependentAttempt?: string | undefined;
677
686
  parentAttempt?: string | undefined;
@@ -685,19 +694,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
685
694
  context?: any;
686
695
  }, {
687
696
  options?: {
697
+ metadata?: any;
688
698
  payloadType?: string | undefined;
689
699
  tags?: string | string[] | undefined;
690
700
  idempotencyKey?: string | undefined;
691
701
  maxAttempts?: number | undefined;
692
- metadata?: any;
693
702
  maxDuration?: number | undefined;
694
703
  queue?: {
695
704
  name?: string | undefined;
696
705
  concurrencyLimit?: number | undefined;
697
706
  } | undefined;
707
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
708
+ delay?: string | Date | undefined;
698
709
  idempotencyKeyTTL?: string | undefined;
699
710
  concurrencyKey?: string | undefined;
700
- delay?: string | Date | undefined;
701
711
  ttl?: string | number | undefined;
702
712
  dependentAttempt?: string | undefined;
703
713
  parentAttempt?: string | undefined;
@@ -714,19 +724,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
714
724
  }, "strip", z.ZodTypeAny, {
715
725
  items: {
716
726
  options?: {
727
+ metadata?: any;
717
728
  payloadType?: string | undefined;
718
729
  tags?: string | string[] | undefined;
719
730
  idempotencyKey?: string | undefined;
720
731
  maxAttempts?: number | undefined;
721
- metadata?: any;
722
732
  maxDuration?: number | undefined;
723
733
  queue?: {
724
734
  name?: string | undefined;
725
735
  concurrencyLimit?: number | undefined;
726
736
  } | undefined;
737
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
738
+ delay?: string | Date | undefined;
727
739
  idempotencyKeyTTL?: string | undefined;
728
740
  concurrencyKey?: string | undefined;
729
- delay?: string | Date | undefined;
730
741
  ttl?: string | number | undefined;
731
742
  dependentAttempt?: string | undefined;
732
743
  parentAttempt?: string | undefined;
@@ -743,19 +754,20 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
743
754
  }, {
744
755
  items: {
745
756
  options?: {
757
+ metadata?: any;
746
758
  payloadType?: string | undefined;
747
759
  tags?: string | string[] | undefined;
748
760
  idempotencyKey?: string | undefined;
749
761
  maxAttempts?: number | undefined;
750
- metadata?: any;
751
762
  maxDuration?: number | undefined;
752
763
  queue?: {
753
764
  name?: string | undefined;
754
765
  concurrencyLimit?: number | undefined;
755
766
  } | undefined;
767
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
768
+ delay?: string | Date | undefined;
756
769
  idempotencyKeyTTL?: string | undefined;
757
770
  concurrencyKey?: string | undefined;
758
- delay?: string | Date | undefined;
759
771
  ttl?: string | number | undefined;
760
772
  dependentAttempt?: string | undefined;
761
773
  parentAttempt?: string | undefined;
@@ -800,39 +812,42 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
800
812
  metadataType: z.ZodOptional<z.ZodString>;
801
813
  maxDuration: z.ZodOptional<z.ZodNumber>;
802
814
  parentAttempt: z.ZodOptional<z.ZodString>;
815
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
803
816
  }, "strip", z.ZodTypeAny, {
817
+ metadata?: any;
804
818
  payloadType?: string | undefined;
805
819
  tags?: string | string[] | undefined;
806
820
  idempotencyKey?: string | undefined;
807
821
  maxAttempts?: number | undefined;
808
- metadata?: any;
809
822
  maxDuration?: number | undefined;
810
823
  queue?: {
811
824
  name?: string | undefined;
812
825
  concurrencyLimit?: number | undefined;
813
826
  } | undefined;
827
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
828
+ delay?: string | Date | undefined;
814
829
  idempotencyKeyTTL?: string | undefined;
815
830
  concurrencyKey?: string | undefined;
816
- delay?: string | Date | undefined;
817
831
  ttl?: string | number | undefined;
818
832
  parentAttempt?: string | undefined;
819
833
  lockToVersion?: string | undefined;
820
834
  test?: boolean | undefined;
821
835
  metadataType?: string | undefined;
822
836
  }, {
837
+ metadata?: any;
823
838
  payloadType?: string | undefined;
824
839
  tags?: string | string[] | undefined;
825
840
  idempotencyKey?: string | undefined;
826
841
  maxAttempts?: number | undefined;
827
- metadata?: any;
828
842
  maxDuration?: number | undefined;
829
843
  queue?: {
830
844
  name?: string | undefined;
831
845
  concurrencyLimit?: number | undefined;
832
846
  } | undefined;
847
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
848
+ delay?: string | Date | undefined;
833
849
  idempotencyKeyTTL?: string | undefined;
834
850
  concurrencyKey?: string | undefined;
835
- delay?: string | Date | undefined;
836
851
  ttl?: string | number | undefined;
837
852
  parentAttempt?: string | undefined;
838
853
  lockToVersion?: string | undefined;
@@ -842,19 +857,20 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
842
857
  }, "strip", z.ZodTypeAny, {
843
858
  task: string;
844
859
  options?: {
860
+ metadata?: any;
845
861
  payloadType?: string | undefined;
846
862
  tags?: string | string[] | undefined;
847
863
  idempotencyKey?: string | undefined;
848
864
  maxAttempts?: number | undefined;
849
- metadata?: any;
850
865
  maxDuration?: number | undefined;
851
866
  queue?: {
852
867
  name?: string | undefined;
853
868
  concurrencyLimit?: number | undefined;
854
869
  } | undefined;
870
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
871
+ delay?: string | Date | undefined;
855
872
  idempotencyKeyTTL?: string | undefined;
856
873
  concurrencyKey?: string | undefined;
857
- delay?: string | Date | undefined;
858
874
  ttl?: string | number | undefined;
859
875
  parentAttempt?: string | undefined;
860
876
  lockToVersion?: string | undefined;
@@ -866,19 +882,20 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
866
882
  }, {
867
883
  task: string;
868
884
  options?: {
885
+ metadata?: any;
869
886
  payloadType?: string | undefined;
870
887
  tags?: string | string[] | undefined;
871
888
  idempotencyKey?: string | undefined;
872
889
  maxAttempts?: number | undefined;
873
- metadata?: any;
874
890
  maxDuration?: number | undefined;
875
891
  queue?: {
876
892
  name?: string | undefined;
877
893
  concurrencyLimit?: number | undefined;
878
894
  } | undefined;
895
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
896
+ delay?: string | Date | undefined;
879
897
  idempotencyKeyTTL?: string | undefined;
880
898
  concurrencyKey?: string | undefined;
881
- delay?: string | Date | undefined;
882
899
  ttl?: string | number | undefined;
883
900
  parentAttempt?: string | undefined;
884
901
  lockToVersion?: string | undefined;
@@ -919,39 +936,42 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
919
936
  metadataType: z.ZodOptional<z.ZodString>;
920
937
  maxDuration: z.ZodOptional<z.ZodNumber>;
921
938
  parentAttempt: z.ZodOptional<z.ZodString>;
939
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
922
940
  }, "strip", z.ZodTypeAny, {
941
+ metadata?: any;
923
942
  payloadType?: string | undefined;
924
943
  tags?: string | string[] | undefined;
925
944
  idempotencyKey?: string | undefined;
926
945
  maxAttempts?: number | undefined;
927
- metadata?: any;
928
946
  maxDuration?: number | undefined;
929
947
  queue?: {
930
948
  name?: string | undefined;
931
949
  concurrencyLimit?: number | undefined;
932
950
  } | undefined;
951
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
952
+ delay?: string | Date | undefined;
933
953
  idempotencyKeyTTL?: string | undefined;
934
954
  concurrencyKey?: string | undefined;
935
- delay?: string | Date | undefined;
936
955
  ttl?: string | number | undefined;
937
956
  parentAttempt?: string | undefined;
938
957
  lockToVersion?: string | undefined;
939
958
  test?: boolean | undefined;
940
959
  metadataType?: string | undefined;
941
960
  }, {
961
+ metadata?: any;
942
962
  payloadType?: string | undefined;
943
963
  tags?: string | string[] | undefined;
944
964
  idempotencyKey?: string | undefined;
945
965
  maxAttempts?: number | undefined;
946
- metadata?: any;
947
966
  maxDuration?: number | undefined;
948
967
  queue?: {
949
968
  name?: string | undefined;
950
969
  concurrencyLimit?: number | undefined;
951
970
  } | undefined;
971
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
972
+ delay?: string | Date | undefined;
952
973
  idempotencyKeyTTL?: string | undefined;
953
974
  concurrencyKey?: string | undefined;
954
- delay?: string | Date | undefined;
955
975
  ttl?: string | number | undefined;
956
976
  parentAttempt?: string | undefined;
957
977
  lockToVersion?: string | undefined;
@@ -961,19 +981,20 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
961
981
  }, "strip", z.ZodTypeAny, {
962
982
  task: string;
963
983
  options?: {
984
+ metadata?: any;
964
985
  payloadType?: string | undefined;
965
986
  tags?: string | string[] | undefined;
966
987
  idempotencyKey?: string | undefined;
967
988
  maxAttempts?: number | undefined;
968
- metadata?: any;
969
989
  maxDuration?: number | undefined;
970
990
  queue?: {
971
991
  name?: string | undefined;
972
992
  concurrencyLimit?: number | undefined;
973
993
  } | undefined;
994
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
995
+ delay?: string | Date | undefined;
974
996
  idempotencyKeyTTL?: string | undefined;
975
997
  concurrencyKey?: string | undefined;
976
- delay?: string | Date | undefined;
977
998
  ttl?: string | number | undefined;
978
999
  parentAttempt?: string | undefined;
979
1000
  lockToVersion?: string | undefined;
@@ -985,19 +1006,20 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
985
1006
  }, {
986
1007
  task: string;
987
1008
  options?: {
1009
+ metadata?: any;
988
1010
  payloadType?: string | undefined;
989
1011
  tags?: string | string[] | undefined;
990
1012
  idempotencyKey?: string | undefined;
991
1013
  maxAttempts?: number | undefined;
992
- metadata?: any;
993
1014
  maxDuration?: number | undefined;
994
1015
  queue?: {
995
1016
  name?: string | undefined;
996
1017
  concurrencyLimit?: number | undefined;
997
1018
  } | undefined;
1019
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1020
+ delay?: string | Date | undefined;
998
1021
  idempotencyKeyTTL?: string | undefined;
999
1022
  concurrencyKey?: string | undefined;
1000
- delay?: string | Date | undefined;
1001
1023
  ttl?: string | number | undefined;
1002
1024
  parentAttempt?: string | undefined;
1003
1025
  lockToVersion?: string | undefined;
@@ -1012,19 +1034,20 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1012
1034
  items: {
1013
1035
  task: string;
1014
1036
  options?: {
1037
+ metadata?: any;
1015
1038
  payloadType?: string | undefined;
1016
1039
  tags?: string | string[] | undefined;
1017
1040
  idempotencyKey?: string | undefined;
1018
1041
  maxAttempts?: number | undefined;
1019
- metadata?: any;
1020
1042
  maxDuration?: number | undefined;
1021
1043
  queue?: {
1022
1044
  name?: string | undefined;
1023
1045
  concurrencyLimit?: number | undefined;
1024
1046
  } | undefined;
1047
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1048
+ delay?: string | Date | undefined;
1025
1049
  idempotencyKeyTTL?: string | undefined;
1026
1050
  concurrencyKey?: string | undefined;
1027
- delay?: string | Date | undefined;
1028
1051
  ttl?: string | number | undefined;
1029
1052
  parentAttempt?: string | undefined;
1030
1053
  lockToVersion?: string | undefined;
@@ -1039,19 +1062,20 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1039
1062
  items: {
1040
1063
  task: string;
1041
1064
  options?: {
1065
+ metadata?: any;
1042
1066
  payloadType?: string | undefined;
1043
1067
  tags?: string | string[] | undefined;
1044
1068
  idempotencyKey?: string | undefined;
1045
1069
  maxAttempts?: number | undefined;
1046
- metadata?: any;
1047
1070
  maxDuration?: number | undefined;
1048
1071
  queue?: {
1049
1072
  name?: string | undefined;
1050
1073
  concurrencyLimit?: number | undefined;
1051
1074
  } | undefined;
1075
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1076
+ delay?: string | Date | undefined;
1052
1077
  idempotencyKeyTTL?: string | undefined;
1053
1078
  concurrencyKey?: string | undefined;
1054
- delay?: string | Date | undefined;
1055
1079
  ttl?: string | number | undefined;
1056
1080
  parentAttempt?: string | undefined;
1057
1081
  lockToVersion?: string | undefined;
@@ -1291,13 +1315,13 @@ export declare const DeploymentErrorData: z.ZodObject<{
1291
1315
  stack: z.ZodOptional<z.ZodString>;
1292
1316
  stderr: z.ZodOptional<z.ZodString>;
1293
1317
  }, "strip", z.ZodTypeAny, {
1294
- name: string;
1295
1318
  message: string;
1319
+ name: string;
1296
1320
  stack?: string | undefined;
1297
1321
  stderr?: string | undefined;
1298
1322
  }, {
1299
- name: string;
1300
1323
  message: string;
1324
+ name: string;
1301
1325
  stack?: string | undefined;
1302
1326
  stderr?: string | undefined;
1303
1327
  }>;
@@ -1309,27 +1333,27 @@ export declare const FailDeploymentRequestBody: z.ZodObject<{
1309
1333
  stack: z.ZodOptional<z.ZodString>;
1310
1334
  stderr: z.ZodOptional<z.ZodString>;
1311
1335
  }, "strip", z.ZodTypeAny, {
1312
- name: string;
1313
1336
  message: string;
1337
+ name: string;
1314
1338
  stack?: string | undefined;
1315
1339
  stderr?: string | undefined;
1316
1340
  }, {
1317
- name: string;
1318
1341
  message: string;
1342
+ name: string;
1319
1343
  stack?: string | undefined;
1320
1344
  stderr?: string | undefined;
1321
1345
  }>;
1322
1346
  }, "strip", z.ZodTypeAny, {
1323
1347
  error: {
1324
- name: string;
1325
1348
  message: string;
1349
+ name: string;
1326
1350
  stack?: string | undefined;
1327
1351
  stderr?: string | undefined;
1328
1352
  };
1329
1353
  }, {
1330
1354
  error: {
1331
- name: string;
1332
1355
  message: string;
1356
+ name: string;
1333
1357
  stack?: string | undefined;
1334
1358
  stderr?: string | undefined;
1335
1359
  };
@@ -1356,13 +1380,13 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1356
1380
  stack: z.ZodOptional<z.ZodString>;
1357
1381
  stderr: z.ZodOptional<z.ZodString>;
1358
1382
  }, "strip", z.ZodTypeAny, {
1359
- name: string;
1360
1383
  message: string;
1384
+ name: string;
1361
1385
  stack?: string | undefined;
1362
1386
  stderr?: string | undefined;
1363
1387
  }, {
1364
- name: string;
1365
1388
  message: string;
1389
+ name: string;
1366
1390
  stack?: string | undefined;
1367
1391
  stderr?: string | undefined;
1368
1392
  }>>>;
@@ -1422,8 +1446,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1422
1446
  } | undefined;
1423
1447
  imageReference?: string | null | undefined;
1424
1448
  errorData?: {
1425
- name: string;
1426
1449
  message: string;
1450
+ name: string;
1427
1451
  stack?: string | undefined;
1428
1452
  stderr?: string | undefined;
1429
1453
  } | null | undefined;
@@ -1445,8 +1469,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
1445
1469
  } | undefined;
1446
1470
  imageReference?: string | null | undefined;
1447
1471
  errorData?: {
1448
- name: string;
1449
1472
  message: string;
1473
+ name: string;
1450
1474
  stack?: string | undefined;
1451
1475
  stderr?: string | undefined;
1452
1476
  } | null | undefined;
@@ -1513,17 +1537,17 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
1513
1537
  upcoming: z.ZodArray<z.ZodDate, "many">;
1514
1538
  }, "strip", z.ZodTypeAny, {
1515
1539
  type: "DECLARATIVE" | "IMPERATIVE";
1540
+ timestamp: Date;
1516
1541
  timezone: string;
1517
1542
  scheduleId: string;
1518
- timestamp: Date;
1519
1543
  upcoming: Date[];
1520
1544
  externalId?: string | undefined;
1521
1545
  lastTimestamp?: Date | undefined;
1522
1546
  }, {
1523
1547
  type: "DECLARATIVE" | "IMPERATIVE";
1548
+ timestamp: Date;
1524
1549
  timezone: string;
1525
1550
  scheduleId: string;
1526
- timestamp: Date;
1527
1551
  upcoming: Date[];
1528
1552
  externalId?: string | undefined;
1529
1553
  lastTimestamp?: Date | undefined;
@@ -1997,10 +2021,10 @@ export declare const RelatedRunDetails: z.ZodObject<{
1997
2021
  isFailed: boolean;
1998
2022
  isCancelled: boolean;
1999
2023
  updatedAt: Date;
2024
+ metadata?: Record<string, any> | undefined;
2000
2025
  startedAt?: Date | undefined;
2001
2026
  idempotencyKey?: string | undefined;
2002
2027
  version?: string | undefined;
2003
- metadata?: Record<string, any> | undefined;
2004
2028
  ttl?: string | undefined;
2005
2029
  batchId?: string | undefined;
2006
2030
  finishedAt?: Date | undefined;
@@ -2025,10 +2049,10 @@ export declare const RelatedRunDetails: z.ZodObject<{
2025
2049
  isFailed: boolean;
2026
2050
  isCancelled: boolean;
2027
2051
  updatedAt: Date;
2052
+ metadata?: Record<string, any> | undefined;
2028
2053
  startedAt?: Date | undefined;
2029
2054
  idempotencyKey?: string | undefined;
2030
2055
  version?: string | undefined;
2031
- metadata?: Record<string, any> | undefined;
2032
2056
  ttl?: string | undefined;
2033
2057
  batchId?: string | undefined;
2034
2058
  finishedAt?: Date | undefined;
@@ -2137,10 +2161,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2137
2161
  isFailed: boolean;
2138
2162
  isCancelled: boolean;
2139
2163
  updatedAt: Date;
2164
+ metadata?: Record<string, any> | undefined;
2140
2165
  startedAt?: Date | undefined;
2141
2166
  idempotencyKey?: string | undefined;
2142
2167
  version?: string | undefined;
2143
- metadata?: Record<string, any> | undefined;
2144
2168
  ttl?: string | undefined;
2145
2169
  batchId?: string | undefined;
2146
2170
  finishedAt?: Date | undefined;
@@ -2165,10 +2189,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2165
2189
  isFailed: boolean;
2166
2190
  isCancelled: boolean;
2167
2191
  updatedAt: Date;
2192
+ metadata?: Record<string, any> | undefined;
2168
2193
  startedAt?: Date | undefined;
2169
2194
  idempotencyKey?: string | undefined;
2170
2195
  version?: string | undefined;
2171
- metadata?: Record<string, any> | undefined;
2172
2196
  ttl?: string | undefined;
2173
2197
  batchId?: string | undefined;
2174
2198
  finishedAt?: Date | undefined;
@@ -2222,10 +2246,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2222
2246
  isFailed: boolean;
2223
2247
  isCancelled: boolean;
2224
2248
  updatedAt: Date;
2249
+ metadata?: Record<string, any> | undefined;
2225
2250
  startedAt?: Date | undefined;
2226
2251
  idempotencyKey?: string | undefined;
2227
2252
  version?: string | undefined;
2228
- metadata?: Record<string, any> | undefined;
2229
2253
  ttl?: string | undefined;
2230
2254
  batchId?: string | undefined;
2231
2255
  finishedAt?: Date | undefined;
@@ -2250,10 +2274,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2250
2274
  isFailed: boolean;
2251
2275
  isCancelled: boolean;
2252
2276
  updatedAt: Date;
2277
+ metadata?: Record<string, any> | undefined;
2253
2278
  startedAt?: Date | undefined;
2254
2279
  idempotencyKey?: string | undefined;
2255
2280
  version?: string | undefined;
2256
- metadata?: Record<string, any> | undefined;
2257
2281
  ttl?: string | undefined;
2258
2282
  batchId?: string | undefined;
2259
2283
  finishedAt?: Date | undefined;
@@ -2307,10 +2331,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2307
2331
  isFailed: boolean;
2308
2332
  isCancelled: boolean;
2309
2333
  updatedAt: Date;
2334
+ metadata?: Record<string, any> | undefined;
2310
2335
  startedAt?: Date | undefined;
2311
2336
  idempotencyKey?: string | undefined;
2312
2337
  version?: string | undefined;
2313
- metadata?: Record<string, any> | undefined;
2314
2338
  ttl?: string | undefined;
2315
2339
  batchId?: string | undefined;
2316
2340
  finishedAt?: Date | undefined;
@@ -2335,10 +2359,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2335
2359
  isFailed: boolean;
2336
2360
  isCancelled: boolean;
2337
2361
  updatedAt: Date;
2362
+ metadata?: Record<string, any> | undefined;
2338
2363
  startedAt?: Date | undefined;
2339
2364
  idempotencyKey?: string | undefined;
2340
2365
  version?: string | undefined;
2341
- metadata?: Record<string, any> | undefined;
2342
2366
  ttl?: string | undefined;
2343
2367
  batchId?: string | undefined;
2344
2368
  finishedAt?: Date | undefined;
@@ -2365,10 +2389,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2365
2389
  isFailed: boolean;
2366
2390
  isCancelled: boolean;
2367
2391
  updatedAt: Date;
2392
+ metadata?: Record<string, any> | undefined;
2368
2393
  startedAt?: Date | undefined;
2369
2394
  idempotencyKey?: string | undefined;
2370
2395
  version?: string | undefined;
2371
- metadata?: Record<string, any> | undefined;
2372
2396
  ttl?: string | undefined;
2373
2397
  batchId?: string | undefined;
2374
2398
  finishedAt?: Date | undefined;
@@ -2394,10 +2418,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2394
2418
  isFailed: boolean;
2395
2419
  isCancelled: boolean;
2396
2420
  updatedAt: Date;
2421
+ metadata?: Record<string, any> | undefined;
2397
2422
  startedAt?: Date | undefined;
2398
2423
  idempotencyKey?: string | undefined;
2399
2424
  version?: string | undefined;
2400
- metadata?: Record<string, any> | undefined;
2401
2425
  ttl?: string | undefined;
2402
2426
  batchId?: string | undefined;
2403
2427
  finishedAt?: Date | undefined;
@@ -2423,10 +2447,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2423
2447
  isFailed: boolean;
2424
2448
  isCancelled: boolean;
2425
2449
  updatedAt: Date;
2450
+ metadata?: Record<string, any> | undefined;
2426
2451
  startedAt?: Date | undefined;
2427
2452
  idempotencyKey?: string | undefined;
2428
2453
  version?: string | undefined;
2429
- metadata?: Record<string, any> | undefined;
2430
2454
  ttl?: string | undefined;
2431
2455
  batchId?: string | undefined;
2432
2456
  finishedAt?: Date | undefined;
@@ -2453,10 +2477,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2453
2477
  isFailed: boolean;
2454
2478
  isCancelled: boolean;
2455
2479
  updatedAt: Date;
2480
+ metadata?: Record<string, any> | undefined;
2456
2481
  startedAt?: Date | undefined;
2457
2482
  idempotencyKey?: string | undefined;
2458
2483
  version?: string | undefined;
2459
- metadata?: Record<string, any> | undefined;
2460
2484
  ttl?: string | undefined;
2461
2485
  batchId?: string | undefined;
2462
2486
  finishedAt?: Date | undefined;
@@ -2482,10 +2506,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2482
2506
  isFailed: boolean;
2483
2507
  isCancelled: boolean;
2484
2508
  updatedAt: Date;
2509
+ metadata?: Record<string, any> | undefined;
2485
2510
  startedAt?: Date | undefined;
2486
2511
  idempotencyKey?: string | undefined;
2487
2512
  version?: string | undefined;
2488
- metadata?: Record<string, any> | undefined;
2489
2513
  ttl?: string | undefined;
2490
2514
  batchId?: string | undefined;
2491
2515
  finishedAt?: Date | undefined;
@@ -2511,10 +2535,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2511
2535
  isFailed: boolean;
2512
2536
  isCancelled: boolean;
2513
2537
  updatedAt: Date;
2538
+ metadata?: Record<string, any> | undefined;
2514
2539
  startedAt?: Date | undefined;
2515
2540
  idempotencyKey?: string | undefined;
2516
2541
  version?: string | undefined;
2517
- metadata?: Record<string, any> | undefined;
2518
2542
  ttl?: string | undefined;
2519
2543
  batchId?: string | undefined;
2520
2544
  finishedAt?: Date | undefined;
@@ -2625,10 +2649,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2625
2649
  isFailed: boolean;
2626
2650
  isCancelled: boolean;
2627
2651
  updatedAt: Date;
2652
+ metadata?: Record<string, any> | undefined;
2628
2653
  startedAt?: Date | undefined;
2629
2654
  idempotencyKey?: string | undefined;
2630
2655
  version?: string | undefined;
2631
- metadata?: Record<string, any> | undefined;
2632
2656
  ttl?: string | undefined;
2633
2657
  batchId?: string | undefined;
2634
2658
  finishedAt?: Date | undefined;
@@ -2654,10 +2678,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2654
2678
  isFailed: boolean;
2655
2679
  isCancelled: boolean;
2656
2680
  updatedAt: Date;
2681
+ metadata?: Record<string, any> | undefined;
2657
2682
  startedAt?: Date | undefined;
2658
2683
  idempotencyKey?: string | undefined;
2659
2684
  version?: string | undefined;
2660
- metadata?: Record<string, any> | undefined;
2661
2685
  ttl?: string | undefined;
2662
2686
  batchId?: string | undefined;
2663
2687
  finishedAt?: Date | undefined;
@@ -2683,10 +2707,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2683
2707
  isFailed: boolean;
2684
2708
  isCancelled: boolean;
2685
2709
  updatedAt: Date;
2710
+ metadata?: Record<string, any> | undefined;
2686
2711
  startedAt?: Date | undefined;
2687
2712
  idempotencyKey?: string | undefined;
2688
2713
  version?: string | undefined;
2689
- metadata?: Record<string, any> | undefined;
2690
2714
  ttl?: string | undefined;
2691
2715
  batchId?: string | undefined;
2692
2716
  finishedAt?: Date | undefined;
@@ -2717,13 +2741,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2717
2741
  completedAt?: Date | undefined;
2718
2742
  } | undefined)[];
2719
2743
  attemptCount: number;
2720
- output?: any;
2721
- startedAt?: Date | undefined;
2744
+ metadata?: Record<string, any> | undefined;
2722
2745
  payload?: any;
2746
+ startedAt?: Date | undefined;
2723
2747
  idempotencyKey?: string | undefined;
2724
2748
  version?: string | undefined;
2725
- metadata?: Record<string, any> | undefined;
2726
- ttl?: string | undefined;
2749
+ error?: {
2750
+ message: string;
2751
+ name?: string | undefined;
2752
+ stackTrace?: string | undefined;
2753
+ } | undefined;
2754
+ output?: any;
2727
2755
  schedule?: {
2728
2756
  id: string;
2729
2757
  generator: {
@@ -2734,13 +2762,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2734
2762
  externalId?: string | undefined;
2735
2763
  deduplicationKey?: string | undefined;
2736
2764
  } | undefined;
2765
+ ttl?: string | undefined;
2737
2766
  payloadPresignedUrl?: string | undefined;
2738
2767
  outputPresignedUrl?: string | undefined;
2739
- error?: {
2740
- message: string;
2741
- name?: string | undefined;
2742
- stackTrace?: string | undefined;
2743
- } | undefined;
2744
2768
  batchId?: string | undefined;
2745
2769
  finishedAt?: Date | undefined;
2746
2770
  delayedUntil?: Date | undefined;
@@ -2775,10 +2799,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2775
2799
  isFailed: boolean;
2776
2800
  isCancelled: boolean;
2777
2801
  updatedAt: Date;
2802
+ metadata?: Record<string, any> | undefined;
2778
2803
  startedAt?: Date | undefined;
2779
2804
  idempotencyKey?: string | undefined;
2780
2805
  version?: string | undefined;
2781
- metadata?: Record<string, any> | undefined;
2782
2806
  ttl?: string | undefined;
2783
2807
  batchId?: string | undefined;
2784
2808
  finishedAt?: Date | undefined;
@@ -2804,10 +2828,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2804
2828
  isFailed: boolean;
2805
2829
  isCancelled: boolean;
2806
2830
  updatedAt: Date;
2831
+ metadata?: Record<string, any> | undefined;
2807
2832
  startedAt?: Date | undefined;
2808
2833
  idempotencyKey?: string | undefined;
2809
2834
  version?: string | undefined;
2810
- metadata?: Record<string, any> | undefined;
2811
2835
  ttl?: string | undefined;
2812
2836
  batchId?: string | undefined;
2813
2837
  finishedAt?: Date | undefined;
@@ -2833,10 +2857,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2833
2857
  isFailed: boolean;
2834
2858
  isCancelled: boolean;
2835
2859
  updatedAt: Date;
2860
+ metadata?: Record<string, any> | undefined;
2836
2861
  startedAt?: Date | undefined;
2837
2862
  idempotencyKey?: string | undefined;
2838
2863
  version?: string | undefined;
2839
- metadata?: Record<string, any> | undefined;
2840
2864
  ttl?: string | undefined;
2841
2865
  batchId?: string | undefined;
2842
2866
  finishedAt?: Date | undefined;
@@ -2866,13 +2890,17 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2866
2890
  } | undefined;
2867
2891
  completedAt?: Date | undefined;
2868
2892
  } | undefined)[];
2869
- output?: any;
2870
- startedAt?: Date | undefined;
2893
+ metadata?: Record<string, any> | undefined;
2871
2894
  payload?: any;
2895
+ startedAt?: Date | undefined;
2872
2896
  idempotencyKey?: string | undefined;
2873
2897
  version?: string | undefined;
2874
- metadata?: Record<string, any> | undefined;
2875
- ttl?: string | undefined;
2898
+ error?: {
2899
+ message: string;
2900
+ name?: string | undefined;
2901
+ stackTrace?: string | undefined;
2902
+ } | undefined;
2903
+ output?: any;
2876
2904
  schedule?: {
2877
2905
  id: string;
2878
2906
  generator: {
@@ -2883,13 +2911,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2883
2911
  externalId?: string | undefined;
2884
2912
  deduplicationKey?: string | undefined;
2885
2913
  } | undefined;
2914
+ ttl?: string | undefined;
2886
2915
  payloadPresignedUrl?: string | undefined;
2887
2916
  outputPresignedUrl?: string | undefined;
2888
- error?: {
2889
- message: string;
2890
- name?: string | undefined;
2891
- stackTrace?: string | undefined;
2892
- } | undefined;
2893
2917
  batchId?: string | undefined;
2894
2918
  finishedAt?: Date | undefined;
2895
2919
  delayedUntil?: Date | undefined;
@@ -2957,10 +2981,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
2957
2981
  id: string;
2958
2982
  user?: string | undefined;
2959
2983
  };
2984
+ metadata?: Record<string, any> | undefined;
2960
2985
  startedAt?: Date | undefined;
2961
2986
  idempotencyKey?: string | undefined;
2962
2987
  version?: string | undefined;
2963
- metadata?: Record<string, any> | undefined;
2964
2988
  ttl?: string | undefined;
2965
2989
  finishedAt?: Date | undefined;
2966
2990
  delayedUntil?: Date | undefined;
@@ -2987,10 +3011,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
2987
3011
  id: string;
2988
3012
  user?: string | undefined;
2989
3013
  };
3014
+ metadata?: Record<string, any> | undefined;
2990
3015
  startedAt?: Date | undefined;
2991
3016
  idempotencyKey?: string | undefined;
2992
3017
  version?: string | undefined;
2993
- metadata?: Record<string, any> | undefined;
2994
3018
  ttl?: string | undefined;
2995
3019
  finishedAt?: Date | undefined;
2996
3020
  delayedUntil?: Date | undefined;
@@ -3058,10 +3082,10 @@ export declare const ListRunResponse: z.ZodObject<{
3058
3082
  id: string;
3059
3083
  user?: string | undefined;
3060
3084
  };
3085
+ metadata?: Record<string, any> | undefined;
3061
3086
  startedAt?: Date | undefined;
3062
3087
  idempotencyKey?: string | undefined;
3063
3088
  version?: string | undefined;
3064
- metadata?: Record<string, any> | undefined;
3065
3089
  ttl?: string | undefined;
3066
3090
  finishedAt?: Date | undefined;
3067
3091
  delayedUntil?: Date | undefined;
@@ -3088,10 +3112,10 @@ export declare const ListRunResponse: z.ZodObject<{
3088
3112
  id: string;
3089
3113
  user?: string | undefined;
3090
3114
  };
3115
+ metadata?: Record<string, any> | undefined;
3091
3116
  startedAt?: Date | undefined;
3092
3117
  idempotencyKey?: string | undefined;
3093
3118
  version?: string | undefined;
3094
- metadata?: Record<string, any> | undefined;
3095
3119
  ttl?: string | undefined;
3096
3120
  finishedAt?: Date | undefined;
3097
3121
  delayedUntil?: Date | undefined;
@@ -3130,10 +3154,10 @@ export declare const ListRunResponse: z.ZodObject<{
3130
3154
  id: string;
3131
3155
  user?: string | undefined;
3132
3156
  };
3157
+ metadata?: Record<string, any> | undefined;
3133
3158
  startedAt?: Date | undefined;
3134
3159
  idempotencyKey?: string | undefined;
3135
3160
  version?: string | undefined;
3136
- metadata?: Record<string, any> | undefined;
3137
3161
  ttl?: string | undefined;
3138
3162
  finishedAt?: Date | undefined;
3139
3163
  delayedUntil?: Date | undefined;
@@ -3166,10 +3190,10 @@ export declare const ListRunResponse: z.ZodObject<{
3166
3190
  id: string;
3167
3191
  user?: string | undefined;
3168
3192
  };
3193
+ metadata?: Record<string, any> | undefined;
3169
3194
  startedAt?: Date | undefined;
3170
3195
  idempotencyKey?: string | undefined;
3171
3196
  version?: string | undefined;
3172
- metadata?: Record<string, any> | undefined;
3173
3197
  ttl?: string | undefined;
3174
3198
  finishedAt?: Date | undefined;
3175
3199
  delayedUntil?: Date | undefined;
@@ -3185,11 +3209,11 @@ export declare const CreateEnvironmentVariableRequestBody: z.ZodObject<{
3185
3209
  name: z.ZodString;
3186
3210
  value: z.ZodString;
3187
3211
  }, "strip", z.ZodTypeAny, {
3188
- name: string;
3189
3212
  value: string;
3190
- }, {
3191
3213
  name: string;
3214
+ }, {
3192
3215
  value: string;
3216
+ name: string;
3193
3217
  }>;
3194
3218
  export type CreateEnvironmentVariableRequestBody = z.infer<typeof CreateEnvironmentVariableRequestBody>;
3195
3219
  export declare const UpdateEnvironmentVariableRequestBody: z.ZodObject<{
@@ -3231,21 +3255,21 @@ export declare const EnvironmentVariable: z.ZodObject<{
3231
3255
  name: z.ZodString;
3232
3256
  value: z.ZodString;
3233
3257
  }, "strip", z.ZodTypeAny, {
3234
- name: string;
3235
3258
  value: string;
3236
- }, {
3237
3259
  name: string;
3260
+ }, {
3238
3261
  value: string;
3262
+ name: string;
3239
3263
  }>;
3240
3264
  export declare const EnvironmentVariables: z.ZodArray<z.ZodObject<{
3241
3265
  name: z.ZodString;
3242
3266
  value: z.ZodString;
3243
3267
  }, "strip", z.ZodTypeAny, {
3244
- name: string;
3245
3268
  value: string;
3246
- }, {
3247
3269
  name: string;
3270
+ }, {
3248
3271
  value: string;
3272
+ name: string;
3249
3273
  }>, "many">;
3250
3274
  export type EnvironmentVariables = z.infer<typeof EnvironmentVariables>;
3251
3275
  export declare const UpdateMetadataRequestBody: z.ZodObject<{
@@ -3635,14 +3659,14 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3635
3659
  message: z.ZodString;
3636
3660
  stackTrace: z.ZodString;
3637
3661
  }, "strip", z.ZodTypeAny, {
3638
- name: string;
3639
- message: string;
3640
3662
  type: "BUILT_IN_ERROR";
3663
+ message: string;
3664
+ name: string;
3641
3665
  stackTrace: string;
3642
3666
  }, {
3643
- name: string;
3644
- message: string;
3645
3667
  type: "BUILT_IN_ERROR";
3668
+ message: string;
3669
+ name: string;
3646
3670
  stackTrace: string;
3647
3671
  }>, z.ZodObject<{
3648
3672
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -3664,17 +3688,17 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3664
3688
  raw: string;
3665
3689
  }>, z.ZodObject<{
3666
3690
  type: z.ZodLiteral<"INTERNAL_ERROR">;
3667
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "COULD_NOT_IMPORT_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_PROCESS_SIGKILL_TIMEOUT", "TASK_PROCESS_SIGSEGV", "TASK_PROCESS_SIGTERM", "TASK_PROCESS_OOM_KILLED", "TASK_PROCESS_MAYBE_OOM_KILLED", "TASK_RUN_CANCELLED", "TASK_INPUT_ERROR", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
3691
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "COULD_NOT_IMPORT_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_PROCESS_SIGKILL_TIMEOUT", "TASK_PROCESS_SIGSEGV", "TASK_PROCESS_SIGTERM", "TASK_PROCESS_OOM_KILLED", "TASK_PROCESS_MAYBE_OOM_KILLED", "TASK_RUN_CANCELLED", "TASK_INPUT_ERROR", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION", "TASK_DID_CONCURRENT_WAIT"]>;
3668
3692
  message: z.ZodOptional<z.ZodString>;
3669
3693
  stackTrace: z.ZodOptional<z.ZodString>;
3670
3694
  }, "strip", z.ZodTypeAny, {
3671
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3672
3695
  type: "INTERNAL_ERROR";
3696
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT";
3673
3697
  message?: string | undefined;
3674
3698
  stackTrace?: string | undefined;
3675
3699
  }, {
3676
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3677
3700
  type: "INTERNAL_ERROR";
3701
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT";
3678
3702
  message?: string | undefined;
3679
3703
  stackTrace?: string | undefined;
3680
3704
  }>]>>>;
@@ -3687,21 +3711,19 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3687
3711
  costInCents: number;
3688
3712
  baseCostInCents: number;
3689
3713
  taskIdentifier: string;
3690
- updatedAt: Date;
3691
3714
  friendlyId: string;
3715
+ updatedAt: Date;
3692
3716
  usageDurationMs: number;
3693
3717
  runTags: string[] | null;
3694
- output?: string | null | undefined;
3695
- startedAt?: string | Date | null | undefined;
3718
+ metadata?: string | null | undefined;
3696
3719
  payload?: string | null | undefined;
3697
3720
  payloadType?: string | null | undefined;
3721
+ startedAt?: string | Date | null | undefined;
3698
3722
  idempotencyKey?: string | null | undefined;
3699
- metadata?: string | null | undefined;
3700
- ttl?: string | null | undefined;
3701
3723
  error?: {
3702
- name: string;
3703
- message: string;
3704
3724
  type: "BUILT_IN_ERROR";
3725
+ message: string;
3726
+ name: string;
3705
3727
  stackTrace: string;
3706
3728
  } | {
3707
3729
  type: "CUSTOM_ERROR";
@@ -3710,17 +3732,19 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3710
3732
  type: "STRING_ERROR";
3711
3733
  raw: string;
3712
3734
  } | {
3713
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3714
3735
  type: "INTERNAL_ERROR";
3736
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT";
3715
3737
  message?: string | undefined;
3716
3738
  stackTrace?: string | undefined;
3717
3739
  } | null | undefined;
3740
+ output?: string | null | undefined;
3741
+ outputType?: string | null | undefined;
3742
+ ttl?: string | null | undefined;
3718
3743
  expiredAt?: string | Date | null | undefined;
3719
3744
  completedAt?: string | Date | null | undefined;
3720
3745
  metadataType?: string | null | undefined;
3721
3746
  delayUntil?: string | Date | null | undefined;
3722
3747
  queuedAt?: string | Date | null | undefined;
3723
- outputType?: string | null | undefined;
3724
3748
  }, {
3725
3749
  number: number;
3726
3750
  status: string;
@@ -3730,20 +3754,18 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3730
3754
  costInCents: number;
3731
3755
  baseCostInCents: number;
3732
3756
  taskIdentifier: string;
3733
- updatedAt: string;
3734
3757
  friendlyId: string;
3758
+ updatedAt: string;
3735
3759
  usageDurationMs: number;
3736
- output?: string | null | undefined;
3737
- startedAt?: string | null | undefined;
3760
+ metadata?: string | null | undefined;
3738
3761
  payload?: string | null | undefined;
3739
3762
  payloadType?: string | null | undefined;
3763
+ startedAt?: string | null | undefined;
3740
3764
  idempotencyKey?: string | null | undefined;
3741
- metadata?: string | null | undefined;
3742
- ttl?: string | null | undefined;
3743
3765
  error?: {
3744
- name: string;
3745
- message: string;
3746
3766
  type: "BUILT_IN_ERROR";
3767
+ message: string;
3768
+ name: string;
3747
3769
  stackTrace: string;
3748
3770
  } | {
3749
3771
  type: "CUSTOM_ERROR";
@@ -3752,17 +3774,19 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
3752
3774
  type: "STRING_ERROR";
3753
3775
  raw: string;
3754
3776
  } | {
3755
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
3756
3777
  type: "INTERNAL_ERROR";
3778
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT";
3757
3779
  message?: string | undefined;
3758
3780
  stackTrace?: string | undefined;
3759
3781
  } | null | undefined;
3782
+ output?: string | null | undefined;
3783
+ outputType?: string | null | undefined;
3784
+ ttl?: string | null | undefined;
3760
3785
  expiredAt?: string | null | undefined;
3761
3786
  completedAt?: string | null | undefined;
3762
3787
  metadataType?: string | null | undefined;
3763
3788
  delayUntil?: string | null | undefined;
3764
3789
  queuedAt?: string | null | undefined;
3765
- outputType?: string | null | undefined;
3766
3790
  runTags?: string[] | null | undefined;
3767
3791
  }>;
3768
3792
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
@@ -3800,17 +3824,17 @@ export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{
3800
3824
  createdAt: z.ZodDate;
3801
3825
  }, "strip", z.ZodTypeAny, {
3802
3826
  value: string;
3827
+ key: string;
3803
3828
  id: string;
3804
3829
  createdAt: Date;
3805
3830
  runId: string;
3806
- key: string;
3807
3831
  sequence: number;
3808
3832
  }, {
3809
3833
  value: string;
3834
+ key: string;
3810
3835
  id: string;
3811
3836
  createdAt: Date;
3812
3837
  runId: string;
3813
- key: string;
3814
3838
  sequence: number;
3815
3839
  }>;
3816
3840
  export type SubscribeRealtimeStreamChunkRawShape = z.infer<typeof SubscribeRealtimeStreamChunkRawShape>;