@trigger.dev/core 0.0.0-v3-prerelease-20241028160720 → 0.0.0-v3-prerelease-20241105122139

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 (41) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +18 -18
  2. package/dist/commonjs/v3/apiClient/index.js +1 -1
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/errors.js +8 -0
  5. package/dist/commonjs/v3/errors.js.map +1 -1
  6. package/dist/commonjs/v3/links.d.ts +3 -0
  7. package/dist/commonjs/v3/links.js +3 -0
  8. package/dist/commonjs/v3/links.js.map +1 -1
  9. package/dist/commonjs/v3/schemas/api.d.ts +95 -95
  10. package/dist/commonjs/v3/schemas/build.d.ts +74 -74
  11. package/dist/commonjs/v3/schemas/common.d.ts +124 -124
  12. package/dist/commonjs/v3/schemas/common.js +1 -0
  13. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  14. package/dist/commonjs/v3/schemas/messages.d.ts +1911 -1911
  15. package/dist/commonjs/v3/schemas/resources.d.ts +22 -22
  16. package/dist/commonjs/v3/schemas/schemas.d.ts +181 -181
  17. package/dist/commonjs/v3/types/tasks.d.ts +1 -0
  18. package/dist/commonjs/v3/workers/taskExecutor.js +4 -2
  19. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  20. package/dist/commonjs/version.js +1 -1
  21. package/dist/esm/v3/apiClient/index.d.ts +18 -18
  22. package/dist/esm/v3/apiClient/index.js +1 -1
  23. package/dist/esm/v3/apiClient/index.js.map +1 -1
  24. package/dist/esm/v3/errors.js +8 -0
  25. package/dist/esm/v3/errors.js.map +1 -1
  26. package/dist/esm/v3/links.d.ts +3 -0
  27. package/dist/esm/v3/links.js +3 -0
  28. package/dist/esm/v3/links.js.map +1 -1
  29. package/dist/esm/v3/schemas/api.d.ts +95 -95
  30. package/dist/esm/v3/schemas/build.d.ts +74 -74
  31. package/dist/esm/v3/schemas/common.d.ts +124 -124
  32. package/dist/esm/v3/schemas/common.js +1 -0
  33. package/dist/esm/v3/schemas/common.js.map +1 -1
  34. package/dist/esm/v3/schemas/messages.d.ts +1911 -1911
  35. package/dist/esm/v3/schemas/resources.d.ts +22 -22
  36. package/dist/esm/v3/schemas/schemas.d.ts +181 -181
  37. package/dist/esm/v3/types/tasks.d.ts +1 -0
  38. package/dist/esm/v3/workers/taskExecutor.js +4 -2
  39. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  40. package/dist/esm/version.js +1 -1
  41. package/package.json +1 -1
@@ -116,14 +116,14 @@ export declare const GetProjectEnvResponse: z.ZodObject<{
116
116
  projectId: z.ZodString;
117
117
  }, "strip", z.ZodTypeAny, {
118
118
  name: string;
119
- projectId: string;
120
119
  apiKey: string;
121
120
  apiUrl: string;
121
+ projectId: string;
122
122
  }, {
123
123
  name: string;
124
- projectId: string;
125
124
  apiKey: string;
126
125
  apiUrl: string;
126
+ projectId: string;
127
127
  }>;
128
128
  export type GetProjectEnvResponse = z.infer<typeof GetProjectEnvResponse>;
129
129
  export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
@@ -345,12 +345,12 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
345
345
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
346
346
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
347
347
  }, "strip", z.ZodTypeAny, {
348
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
349
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
348
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
349
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
350
350
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
351
351
  }, {
352
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
353
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
352
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
353
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
354
354
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
355
355
  }>>;
356
356
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -414,8 +414,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
414
414
  randomize?: boolean | undefined;
415
415
  } | undefined;
416
416
  machine?: {
417
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
418
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
417
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
418
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
419
419
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
420
420
  } | undefined;
421
421
  triggerSource?: string | undefined;
@@ -473,8 +473,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
473
473
  randomize?: boolean | undefined;
474
474
  } | undefined;
475
475
  machine?: {
476
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
477
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
476
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
477
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
478
478
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
479
479
  } | undefined;
480
480
  triggerSource?: string | undefined;
@@ -501,7 +501,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
501
501
  taskIds: string[];
502
502
  }>, "many">>;
503
503
  }, "strip", z.ZodTypeAny, {
504
- contentHash: string;
505
504
  tasks: {
506
505
  id: string;
507
506
  filePath: string;
@@ -551,8 +550,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
551
550
  randomize?: boolean | undefined;
552
551
  } | undefined;
553
552
  machine?: {
554
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
555
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
553
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
554
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
556
555
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
557
556
  } | undefined;
558
557
  triggerSource?: string | undefined;
@@ -562,6 +561,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
562
561
  } | undefined;
563
562
  maxDuration?: number | undefined;
564
563
  }[];
564
+ contentHash: string;
565
565
  packageVersion: string;
566
566
  cliPackageVersion?: string | undefined;
567
567
  sourceFiles?: {
@@ -571,7 +571,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
571
571
  taskIds: string[];
572
572
  }[] | undefined;
573
573
  }, {
574
- contentHash: string;
575
574
  tasks: {
576
575
  id: string;
577
576
  filePath: string;
@@ -621,8 +620,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
621
620
  randomize?: boolean | undefined;
622
621
  } | undefined;
623
622
  machine?: {
624
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
625
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
623
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
624
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
626
625
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
627
626
  } | undefined;
628
627
  triggerSource?: string | undefined;
@@ -632,6 +631,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
632
631
  } | undefined;
633
632
  maxDuration?: number | undefined;
634
633
  }[];
634
+ contentHash: string;
635
635
  packageVersion: string;
636
636
  cliPackageVersion?: string | undefined;
637
637
  sourceFiles?: {
@@ -644,7 +644,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
644
644
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
645
645
  }, "strip", z.ZodTypeAny, {
646
646
  metadata: {
647
- contentHash: string;
648
647
  tasks: {
649
648
  id: string;
650
649
  filePath: string;
@@ -694,8 +693,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
694
693
  randomize?: boolean | undefined;
695
694
  } | undefined;
696
695
  machine?: {
697
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
698
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
696
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
697
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
699
698
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
700
699
  } | undefined;
701
700
  triggerSource?: string | undefined;
@@ -705,6 +704,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
705
704
  } | undefined;
706
705
  maxDuration?: number | undefined;
707
706
  }[];
707
+ contentHash: string;
708
708
  packageVersion: string;
709
709
  cliPackageVersion?: string | undefined;
710
710
  sourceFiles?: {
@@ -718,7 +718,6 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
718
718
  supportsLazyAttempts?: boolean | undefined;
719
719
  }, {
720
720
  metadata: {
721
- contentHash: string;
722
721
  tasks: {
723
722
  id: string;
724
723
  filePath: string;
@@ -768,8 +767,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
768
767
  randomize?: boolean | undefined;
769
768
  } | undefined;
770
769
  machine?: {
771
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
772
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
770
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
771
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
773
772
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
774
773
  } | undefined;
775
774
  triggerSource?: string | undefined;
@@ -779,6 +778,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
779
778
  } | undefined;
780
779
  maxDuration?: number | undefined;
781
780
  }[];
781
+ contentHash: string;
782
782
  packageVersion: string;
783
783
  cliPackageVersion?: string | undefined;
784
784
  sourceFiles?: {
@@ -797,12 +797,12 @@ export declare const CreateBackgroundWorkerResponse: z.ZodObject<{
797
797
  version: z.ZodString;
798
798
  contentHash: z.ZodString;
799
799
  }, "strip", z.ZodTypeAny, {
800
- version: string;
801
800
  id: string;
801
+ version: string;
802
802
  contentHash: string;
803
803
  }, {
804
- version: string;
805
804
  id: string;
805
+ version: string;
806
806
  contentHash: string;
807
807
  }>;
808
808
  export type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
@@ -1824,26 +1824,26 @@ export declare const GetBatchResponseBody: z.ZodObject<{
1824
1824
  status: z.ZodEnum<["PENDING", "CANCELED", "COMPLETED", "FAILED"]>;
1825
1825
  }, "strip", z.ZodTypeAny, {
1826
1826
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1827
- taskRunId: string;
1828
1827
  id: string;
1828
+ taskRunId: string;
1829
1829
  }, {
1830
1830
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1831
- taskRunId: string;
1832
1831
  id: string;
1832
+ taskRunId: string;
1833
1833
  }>, "many">;
1834
1834
  }, "strip", z.ZodTypeAny, {
1835
1835
  id: string;
1836
1836
  items: {
1837
1837
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1838
- taskRunId: string;
1839
1838
  id: string;
1839
+ taskRunId: string;
1840
1840
  }[];
1841
1841
  }, {
1842
1842
  id: string;
1843
1843
  items: {
1844
1844
  status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1845
- taskRunId: string;
1846
1845
  id: string;
1846
+ taskRunId: string;
1847
1847
  }[];
1848
1848
  }>;
1849
1849
  export type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
@@ -1939,8 +1939,8 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1939
1939
  }>>>;
1940
1940
  registryHost: z.ZodOptional<z.ZodString>;
1941
1941
  }, "strip", z.ZodTypeAny, {
1942
- version: string;
1943
1942
  id: string;
1943
+ version: string;
1944
1944
  contentHash: string;
1945
1945
  imageTag: string;
1946
1946
  shortCode: string;
@@ -1951,8 +1951,8 @@ export declare const InitializeDeploymentResponseBody: z.ZodObject<{
1951
1951
  } | null | undefined;
1952
1952
  registryHost?: string | undefined;
1953
1953
  }, {
1954
- version: string;
1955
1954
  id: string;
1955
+ version: string;
1956
1956
  contentHash: string;
1957
1957
  imageTag: string;
1958
1958
  shortCode: string;
@@ -2085,8 +2085,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2085
2085
  slug: string;
2086
2086
  }>, "many">;
2087
2087
  }, "strip", z.ZodTypeAny, {
2088
- version: string;
2089
2088
  id: string;
2089
+ version: string;
2090
2090
  tasks: {
2091
2091
  id: string;
2092
2092
  filePath: string;
@@ -2094,8 +2094,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2094
2094
  slug: string;
2095
2095
  }[];
2096
2096
  }, {
2097
- version: string;
2098
2097
  id: string;
2098
+ version: string;
2099
2099
  tasks: {
2100
2100
  id: string;
2101
2101
  filePath: string;
@@ -2105,8 +2105,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2105
2105
  }>>;
2106
2106
  }, "strip", z.ZodTypeAny, {
2107
2107
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
2108
- version: string;
2109
2108
  id: string;
2109
+ version: string;
2110
2110
  contentHash: string;
2111
2111
  shortCode: string;
2112
2112
  imageReference?: string | null | undefined;
@@ -2117,8 +2117,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2117
2117
  stderr?: string | undefined;
2118
2118
  } | null | undefined;
2119
2119
  worker?: {
2120
- version: string;
2121
2120
  id: string;
2121
+ version: string;
2122
2122
  tasks: {
2123
2123
  id: string;
2124
2124
  filePath: string;
@@ -2128,8 +2128,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2128
2128
  } | undefined;
2129
2129
  }, {
2130
2130
  status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
2131
- version: string;
2132
2131
  id: string;
2132
+ version: string;
2133
2133
  contentHash: string;
2134
2134
  shortCode: string;
2135
2135
  imageReference?: string | null | undefined;
@@ -2140,8 +2140,8 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2140
2140
  stderr?: string | undefined;
2141
2141
  } | null | undefined;
2142
2142
  worker?: {
2143
- version: string;
2144
2143
  id: string;
2144
+ version: string;
2145
2145
  tasks: {
2146
2146
  id: string;
2147
2147
  filePath: string;
@@ -2680,10 +2680,10 @@ export declare const RelatedRunDetails: z.ZodObject<{
2680
2680
  }, "strip", z.ZodTypeAny, {
2681
2681
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2682
2682
  id: string;
2683
- isTest: boolean;
2684
- durationMs: number;
2685
2683
  tags: string[];
2684
+ isTest: boolean;
2686
2685
  createdAt: Date;
2686
+ durationMs: number;
2687
2687
  costInCents: number;
2688
2688
  baseCostInCents: number;
2689
2689
  taskIdentifier: string;
@@ -2708,10 +2708,10 @@ export declare const RelatedRunDetails: z.ZodObject<{
2708
2708
  }, {
2709
2709
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2710
2710
  id: string;
2711
- isTest: boolean;
2712
- durationMs: number;
2713
2711
  tags: string[];
2712
+ isTest: boolean;
2714
2713
  createdAt: Date;
2714
+ durationMs: number;
2715
2715
  costInCents: number;
2716
2716
  baseCostInCents: number;
2717
2717
  taskIdentifier: string;
@@ -2820,10 +2820,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2820
2820
  }, "strip", z.ZodTypeAny, {
2821
2821
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2822
2822
  id: string;
2823
- isTest: boolean;
2824
- durationMs: number;
2825
2823
  tags: string[];
2824
+ isTest: boolean;
2826
2825
  createdAt: Date;
2826
+ durationMs: number;
2827
2827
  costInCents: number;
2828
2828
  baseCostInCents: number;
2829
2829
  taskIdentifier: string;
@@ -2848,10 +2848,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2848
2848
  }, {
2849
2849
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2850
2850
  id: string;
2851
- isTest: boolean;
2852
- durationMs: number;
2853
2851
  tags: string[];
2852
+ isTest: boolean;
2854
2853
  createdAt: Date;
2854
+ durationMs: number;
2855
2855
  costInCents: number;
2856
2856
  baseCostInCents: number;
2857
2857
  taskIdentifier: string;
@@ -2905,10 +2905,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2905
2905
  }, "strip", z.ZodTypeAny, {
2906
2906
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2907
2907
  id: string;
2908
- isTest: boolean;
2909
- durationMs: number;
2910
2908
  tags: string[];
2909
+ isTest: boolean;
2911
2910
  createdAt: Date;
2911
+ durationMs: number;
2912
2912
  costInCents: number;
2913
2913
  baseCostInCents: number;
2914
2914
  taskIdentifier: string;
@@ -2933,10 +2933,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2933
2933
  }, {
2934
2934
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2935
2935
  id: string;
2936
- isTest: boolean;
2937
- durationMs: number;
2938
2936
  tags: string[];
2937
+ isTest: boolean;
2939
2938
  createdAt: Date;
2939
+ durationMs: number;
2940
2940
  costInCents: number;
2941
2941
  baseCostInCents: number;
2942
2942
  taskIdentifier: string;
@@ -2990,10 +2990,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2990
2990
  }, "strip", z.ZodTypeAny, {
2991
2991
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2992
2992
  id: string;
2993
- isTest: boolean;
2994
- durationMs: number;
2995
2993
  tags: string[];
2994
+ isTest: boolean;
2996
2995
  createdAt: Date;
2996
+ durationMs: number;
2997
2997
  costInCents: number;
2998
2998
  baseCostInCents: number;
2999
2999
  taskIdentifier: string;
@@ -3018,10 +3018,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3018
3018
  }, {
3019
3019
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3020
3020
  id: string;
3021
- isTest: boolean;
3022
- durationMs: number;
3023
3021
  tags: string[];
3022
+ isTest: boolean;
3024
3023
  createdAt: Date;
3024
+ durationMs: number;
3025
3025
  costInCents: number;
3026
3026
  baseCostInCents: number;
3027
3027
  taskIdentifier: string;
@@ -3048,10 +3048,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3048
3048
  root?: {
3049
3049
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3050
3050
  id: string;
3051
- isTest: boolean;
3052
- durationMs: number;
3053
3051
  tags: string[];
3052
+ isTest: boolean;
3054
3053
  createdAt: Date;
3054
+ durationMs: number;
3055
3055
  costInCents: number;
3056
3056
  baseCostInCents: number;
3057
3057
  taskIdentifier: string;
@@ -3077,10 +3077,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3077
3077
  parent?: {
3078
3078
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3079
3079
  id: string;
3080
- isTest: boolean;
3081
- durationMs: number;
3082
3080
  tags: string[];
3081
+ isTest: boolean;
3083
3082
  createdAt: Date;
3083
+ durationMs: number;
3084
3084
  costInCents: number;
3085
3085
  baseCostInCents: number;
3086
3086
  taskIdentifier: string;
@@ -3106,10 +3106,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3106
3106
  children?: {
3107
3107
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3108
3108
  id: string;
3109
- isTest: boolean;
3110
- durationMs: number;
3111
3109
  tags: string[];
3110
+ isTest: boolean;
3112
3111
  createdAt: Date;
3112
+ durationMs: number;
3113
3113
  costInCents: number;
3114
3114
  baseCostInCents: number;
3115
3115
  taskIdentifier: string;
@@ -3136,10 +3136,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3136
3136
  root?: {
3137
3137
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3138
3138
  id: string;
3139
- isTest: boolean;
3140
- durationMs: number;
3141
3139
  tags: string[];
3140
+ isTest: boolean;
3142
3141
  createdAt: Date;
3142
+ durationMs: number;
3143
3143
  costInCents: number;
3144
3144
  baseCostInCents: number;
3145
3145
  taskIdentifier: string;
@@ -3165,10 +3165,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3165
3165
  parent?: {
3166
3166
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3167
3167
  id: string;
3168
- isTest: boolean;
3169
- durationMs: number;
3170
3168
  tags: string[];
3169
+ isTest: boolean;
3171
3170
  createdAt: Date;
3171
+ durationMs: number;
3172
3172
  costInCents: number;
3173
3173
  baseCostInCents: number;
3174
3174
  taskIdentifier: string;
@@ -3194,10 +3194,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3194
3194
  children?: {
3195
3195
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3196
3196
  id: string;
3197
- isTest: boolean;
3198
- durationMs: number;
3199
3197
  tags: string[];
3198
+ isTest: boolean;
3200
3199
  createdAt: Date;
3200
+ durationMs: number;
3201
3201
  costInCents: number;
3202
3202
  baseCostInCents: number;
3203
3203
  taskIdentifier: string;
@@ -3297,11 +3297,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3297
3297
  }, "strip", z.ZodTypeAny, {
3298
3298
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3299
3299
  id: string;
3300
- attemptCount: number;
3301
- isTest: boolean;
3302
- durationMs: number;
3303
3300
  tags: string[];
3301
+ isTest: boolean;
3304
3302
  createdAt: Date;
3303
+ durationMs: number;
3305
3304
  costInCents: number;
3306
3305
  baseCostInCents: number;
3307
3306
  taskIdentifier: string;
@@ -3309,10 +3308,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3309
3308
  root?: {
3310
3309
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3311
3310
  id: string;
3312
- isTest: boolean;
3313
- durationMs: number;
3314
3311
  tags: string[];
3312
+ isTest: boolean;
3315
3313
  createdAt: Date;
3314
+ durationMs: number;
3316
3315
  costInCents: number;
3317
3316
  baseCostInCents: number;
3318
3317
  taskIdentifier: string;
@@ -3338,10 +3337,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3338
3337
  parent?: {
3339
3338
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3340
3339
  id: string;
3341
- isTest: boolean;
3342
- durationMs: number;
3343
3340
  tags: string[];
3341
+ isTest: boolean;
3344
3342
  createdAt: Date;
3343
+ durationMs: number;
3345
3344
  costInCents: number;
3346
3345
  baseCostInCents: number;
3347
3346
  taskIdentifier: string;
@@ -3367,10 +3366,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3367
3366
  children?: {
3368
3367
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3369
3368
  id: string;
3370
- isTest: boolean;
3371
- durationMs: number;
3372
3369
  tags: string[];
3370
+ isTest: boolean;
3373
3371
  createdAt: Date;
3372
+ durationMs: number;
3374
3373
  costInCents: number;
3375
3374
  baseCostInCents: number;
3376
3375
  taskIdentifier: string;
@@ -3416,6 +3415,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3416
3415
  stackTrace?: string | undefined;
3417
3416
  } | undefined;
3418
3417
  } | undefined)[];
3418
+ attemptCount: number;
3419
3419
  payload?: any;
3420
3420
  payloadPresignedUrl?: string | undefined;
3421
3421
  output?: any;
@@ -3447,10 +3447,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3447
3447
  }, {
3448
3448
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3449
3449
  id: string;
3450
- isTest: boolean;
3451
- durationMs: number;
3452
3450
  tags: string[];
3451
+ isTest: boolean;
3453
3452
  createdAt: Date;
3453
+ durationMs: number;
3454
3454
  costInCents: number;
3455
3455
  baseCostInCents: number;
3456
3456
  taskIdentifier: string;
@@ -3458,10 +3458,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3458
3458
  root?: {
3459
3459
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3460
3460
  id: string;
3461
- isTest: boolean;
3462
- durationMs: number;
3463
3461
  tags: string[];
3462
+ isTest: boolean;
3464
3463
  createdAt: Date;
3464
+ durationMs: number;
3465
3465
  costInCents: number;
3466
3466
  baseCostInCents: number;
3467
3467
  taskIdentifier: string;
@@ -3487,10 +3487,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3487
3487
  parent?: {
3488
3488
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3489
3489
  id: string;
3490
- isTest: boolean;
3491
- durationMs: number;
3492
3490
  tags: string[];
3491
+ isTest: boolean;
3493
3492
  createdAt: Date;
3493
+ durationMs: number;
3494
3494
  costInCents: number;
3495
3495
  baseCostInCents: number;
3496
3496
  taskIdentifier: string;
@@ -3516,10 +3516,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3516
3516
  children?: {
3517
3517
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3518
3518
  id: string;
3519
- isTest: boolean;
3520
- durationMs: number;
3521
3519
  tags: string[];
3520
+ isTest: boolean;
3522
3521
  createdAt: Date;
3522
+ durationMs: number;
3523
3523
  costInCents: number;
3524
3524
  baseCostInCents: number;
3525
3525
  taskIdentifier: string;
@@ -3637,10 +3637,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
3637
3637
  }, "strip", z.ZodTypeAny, {
3638
3638
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3639
3639
  id: string;
3640
- isTest: boolean;
3641
- durationMs: number;
3642
3640
  tags: string[];
3641
+ isTest: boolean;
3643
3642
  createdAt: Date;
3643
+ durationMs: number;
3644
3644
  costInCents: number;
3645
3645
  baseCostInCents: number;
3646
3646
  taskIdentifier: string;
@@ -3667,10 +3667,10 @@ export declare const ListRunResponseItem: z.ZodObject<{
3667
3667
  }, {
3668
3668
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3669
3669
  id: string;
3670
- isTest: boolean;
3671
- durationMs: number;
3672
3670
  tags: string[];
3671
+ isTest: boolean;
3673
3672
  createdAt: Date;
3673
+ durationMs: number;
3674
3674
  costInCents: number;
3675
3675
  baseCostInCents: number;
3676
3676
  taskIdentifier: string;
@@ -3738,10 +3738,10 @@ export declare const ListRunResponse: z.ZodObject<{
3738
3738
  }, "strip", z.ZodTypeAny, {
3739
3739
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3740
3740
  id: string;
3741
- isTest: boolean;
3742
- durationMs: number;
3743
3741
  tags: string[];
3742
+ isTest: boolean;
3744
3743
  createdAt: Date;
3744
+ durationMs: number;
3745
3745
  costInCents: number;
3746
3746
  baseCostInCents: number;
3747
3747
  taskIdentifier: string;
@@ -3768,10 +3768,10 @@ export declare const ListRunResponse: z.ZodObject<{
3768
3768
  }, {
3769
3769
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3770
3770
  id: string;
3771
- isTest: boolean;
3772
- durationMs: number;
3773
3771
  tags: string[];
3772
+ isTest: boolean;
3774
3773
  createdAt: Date;
3774
+ durationMs: number;
3775
3775
  costInCents: number;
3776
3776
  baseCostInCents: number;
3777
3777
  taskIdentifier: string;
@@ -3810,10 +3810,10 @@ export declare const ListRunResponse: z.ZodObject<{
3810
3810
  data: {
3811
3811
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3812
3812
  id: string;
3813
- isTest: boolean;
3814
- durationMs: number;
3815
3813
  tags: string[];
3814
+ isTest: boolean;
3816
3815
  createdAt: Date;
3816
+ durationMs: number;
3817
3817
  costInCents: number;
3818
3818
  baseCostInCents: number;
3819
3819
  taskIdentifier: string;
@@ -3846,10 +3846,10 @@ export declare const ListRunResponse: z.ZodObject<{
3846
3846
  data: {
3847
3847
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3848
3848
  id: string;
3849
- isTest: boolean;
3850
- durationMs: number;
3851
3849
  tags: string[];
3850
+ isTest: boolean;
3852
3851
  createdAt: Date;
3852
+ durationMs: number;
3853
3853
  costInCents: number;
3854
3854
  baseCostInCents: number;
3855
3855
  taskIdentifier: string;
@@ -4013,9 +4013,9 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
4013
4013
  createdAt: Date;
4014
4014
  costInCents: number;
4015
4015
  baseCostInCents: number;
4016
- friendlyId: string;
4017
4016
  taskIdentifier: string;
4018
4017
  updatedAt: Date;
4018
+ friendlyId: string;
4019
4019
  usageDurationMs: number;
4020
4020
  runTags: string[] | null;
4021
4021
  idempotencyKey?: string | null | undefined;
@@ -4044,9 +4044,9 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
4044
4044
  createdAt: Date;
4045
4045
  costInCents: number;
4046
4046
  baseCostInCents: number;
4047
- friendlyId: string;
4048
4047
  taskIdentifier: string;
4049
4048
  updatedAt: Date;
4049
+ friendlyId: string;
4050
4050
  usageDurationMs: number;
4051
4051
  idempotencyKey?: string | null | undefined;
4052
4052
  startedAt?: Date | null | undefined;