@trigger.dev/core 0.0.0-v3-prerelease-20250108131948 → 0.0.0-v3-prerelease-20250108142426

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.
@@ -503,12 +503,12 @@ export declare const MachineConfig: z.ZodObject<{
503
503
  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>]>>;
504
504
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
505
505
  }, "strip", z.ZodTypeAny, {
506
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
507
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
506
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
507
+ memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
508
508
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
509
509
  }, {
510
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
511
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
510
+ cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
511
+ memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
512
512
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
513
513
  }>;
514
514
  export type MachineConfig = z.infer<typeof MachineConfig>;
@@ -518,14 +518,14 @@ export declare const MachinePreset: z.ZodObject<{
518
518
  memory: z.ZodNumber;
519
519
  centsPerMs: z.ZodNumber;
520
520
  }, "strip", z.ZodTypeAny, {
521
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
521
522
  cpu: number;
522
523
  memory: number;
523
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
524
524
  centsPerMs: number;
525
525
  }, {
526
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
526
527
  cpu: number;
527
528
  memory: number;
528
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
529
529
  centsPerMs: number;
530
530
  }>;
531
531
  export type MachinePreset = z.infer<typeof MachinePreset>;
@@ -535,13 +535,13 @@ export declare const TaskRunBuiltInError: z.ZodObject<{
535
535
  message: z.ZodString;
536
536
  stackTrace: z.ZodString;
537
537
  }, "strip", z.ZodTypeAny, {
538
- type: "BUILT_IN_ERROR";
539
538
  message: string;
539
+ type: "BUILT_IN_ERROR";
540
540
  name: string;
541
541
  stackTrace: string;
542
542
  }, {
543
- type: "BUILT_IN_ERROR";
544
543
  message: string;
544
+ type: "BUILT_IN_ERROR";
545
545
  name: string;
546
546
  stackTrace: string;
547
547
  }>;
@@ -574,13 +574,13 @@ export declare const TaskRunInternalError: z.ZodObject<{
574
574
  message: z.ZodOptional<z.ZodString>;
575
575
  stackTrace: z.ZodOptional<z.ZodString>;
576
576
  }, "strip", z.ZodTypeAny, {
577
- type: "INTERNAL_ERROR";
578
577
  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";
578
+ type: "INTERNAL_ERROR";
579
579
  message?: string | undefined;
580
580
  stackTrace?: string | undefined;
581
581
  }, {
582
- type: "INTERNAL_ERROR";
583
582
  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";
583
+ type: "INTERNAL_ERROR";
584
584
  message?: string | undefined;
585
585
  stackTrace?: string | undefined;
586
586
  }>;
@@ -592,13 +592,13 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
592
592
  message: z.ZodString;
593
593
  stackTrace: z.ZodString;
594
594
  }, "strip", z.ZodTypeAny, {
595
- type: "BUILT_IN_ERROR";
596
595
  message: string;
596
+ type: "BUILT_IN_ERROR";
597
597
  name: string;
598
598
  stackTrace: string;
599
599
  }, {
600
- type: "BUILT_IN_ERROR";
601
600
  message: string;
601
+ type: "BUILT_IN_ERROR";
602
602
  name: string;
603
603
  stackTrace: string;
604
604
  }>, z.ZodObject<{
@@ -625,13 +625,13 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
625
625
  message: z.ZodOptional<z.ZodString>;
626
626
  stackTrace: z.ZodOptional<z.ZodString>;
627
627
  }, "strip", z.ZodTypeAny, {
628
- type: "INTERNAL_ERROR";
629
628
  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";
629
+ type: "INTERNAL_ERROR";
630
630
  message?: string | undefined;
631
631
  stackTrace?: string | undefined;
632
632
  }, {
633
- type: "INTERNAL_ERROR";
634
633
  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";
634
+ type: "INTERNAL_ERROR";
635
635
  message?: string | undefined;
636
636
  stackTrace?: string | undefined;
637
637
  }>]>;
@@ -654,38 +654,38 @@ export declare const TaskRun: z.ZodObject<{
654
654
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
655
655
  maxDuration: z.ZodOptional<z.ZodNumber>;
656
656
  }, "strip", z.ZodTypeAny, {
657
- id: string;
658
657
  payload: string;
658
+ id: string;
659
+ startedAt: Date;
659
660
  payloadType: string;
660
- tags: string[];
661
661
  isTest: boolean;
662
662
  createdAt: Date;
663
- startedAt: Date;
663
+ tags: string[];
664
664
  durationMs: number;
665
665
  costInCents: number;
666
666
  baseCostInCents: number;
667
- metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
668
667
  context?: any;
668
+ version?: string | undefined;
669
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
669
670
  idempotencyKey?: string | undefined;
670
671
  maxAttempts?: number | undefined;
671
- version?: string | undefined;
672
672
  maxDuration?: number | undefined;
673
673
  }, {
674
- id: string;
675
674
  payload: string;
675
+ id: string;
676
676
  payloadType: string;
677
- tags: string[];
678
677
  createdAt: Date;
679
- metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
678
+ tags: string[];
680
679
  context?: any;
681
- isTest?: boolean | undefined;
680
+ version?: string | undefined;
681
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
682
682
  startedAt?: Date | undefined;
683
683
  idempotencyKey?: string | undefined;
684
+ isTest?: boolean | undefined;
684
685
  maxAttempts?: number | undefined;
685
686
  durationMs?: number | undefined;
686
687
  costInCents?: number | undefined;
687
688
  baseCostInCents?: number | undefined;
688
- version?: string | undefined;
689
689
  maxDuration?: number | undefined;
690
690
  }>;
691
691
  export type TaskRun = z.infer<typeof TaskRun>;
@@ -843,38 +843,38 @@ export declare const TaskRunExecution: z.ZodObject<{
843
843
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
844
844
  maxDuration: z.ZodOptional<z.ZodNumber>;
845
845
  }, "strip", z.ZodTypeAny, {
846
- id: string;
847
846
  payload: string;
847
+ id: string;
848
+ startedAt: Date;
848
849
  payloadType: string;
849
- tags: string[];
850
850
  isTest: boolean;
851
851
  createdAt: Date;
852
- startedAt: Date;
852
+ tags: string[];
853
853
  durationMs: number;
854
854
  costInCents: number;
855
855
  baseCostInCents: number;
856
- metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
857
856
  context?: any;
857
+ version?: string | undefined;
858
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
858
859
  idempotencyKey?: string | undefined;
859
860
  maxAttempts?: number | undefined;
860
- version?: string | undefined;
861
861
  maxDuration?: number | undefined;
862
862
  }, {
863
- id: string;
864
863
  payload: string;
864
+ id: string;
865
865
  payloadType: string;
866
- tags: string[];
867
866
  createdAt: Date;
868
- metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
867
+ tags: string[];
869
868
  context?: any;
870
- isTest?: boolean | undefined;
869
+ version?: string | undefined;
870
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
871
871
  startedAt?: Date | undefined;
872
872
  idempotencyKey?: string | undefined;
873
+ isTest?: boolean | undefined;
873
874
  maxAttempts?: number | undefined;
874
875
  durationMs?: number | undefined;
875
876
  costInCents?: number | undefined;
876
877
  baseCostInCents?: number | undefined;
877
- version?: string | undefined;
878
878
  maxDuration?: number | undefined;
879
879
  }>;
880
880
  queue: z.ZodObject<{
@@ -942,52 +942,35 @@ export declare const TaskRunExecution: z.ZodObject<{
942
942
  memory: z.ZodNumber;
943
943
  centsPerMs: z.ZodNumber;
944
944
  }, "strip", z.ZodTypeAny, {
945
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
945
946
  cpu: number;
946
947
  memory: number;
947
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
948
948
  centsPerMs: number;
949
949
  }, {
950
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
950
951
  cpu: number;
951
952
  memory: number;
952
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
953
953
  centsPerMs: number;
954
954
  }>>;
955
955
  }, "strip", z.ZodTypeAny, {
956
- task: {
957
- id: string;
958
- filePath: string;
959
- exportName: string;
960
- };
961
- attempt: {
962
- number: number;
963
- status: string;
964
- id: string;
965
- startedAt: Date;
966
- backgroundWorkerId: string;
967
- backgroundWorkerTaskId: string;
968
- };
969
956
  run: {
970
- id: string;
971
957
  payload: string;
958
+ id: string;
959
+ startedAt: Date;
972
960
  payloadType: string;
973
- tags: string[];
974
961
  isTest: boolean;
975
962
  createdAt: Date;
976
- startedAt: Date;
963
+ tags: string[];
977
964
  durationMs: number;
978
965
  costInCents: number;
979
966
  baseCostInCents: number;
980
- metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
981
967
  context?: any;
968
+ version?: string | undefined;
969
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
982
970
  idempotencyKey?: string | undefined;
983
971
  maxAttempts?: number | undefined;
984
- version?: string | undefined;
985
972
  maxDuration?: number | undefined;
986
973
  };
987
- queue: {
988
- name: string;
989
- id: string;
990
- };
991
974
  environment: {
992
975
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
993
976
  id: string;
@@ -1004,16 +987,6 @@ export declare const TaskRunExecution: z.ZodObject<{
1004
987
  slug: string;
1005
988
  ref: string;
1006
989
  };
1007
- batch?: {
1008
- id: string;
1009
- } | undefined;
1010
- machine?: {
1011
- cpu: number;
1012
- memory: number;
1013
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1014
- centsPerMs: number;
1015
- } | undefined;
1016
- }, {
1017
990
  task: {
1018
991
  id: string;
1019
992
  filePath: string;
@@ -1027,28 +1000,38 @@ export declare const TaskRunExecution: z.ZodObject<{
1027
1000
  backgroundWorkerId: string;
1028
1001
  backgroundWorkerTaskId: string;
1029
1002
  };
1030
- run: {
1003
+ queue: {
1004
+ name: string;
1005
+ id: string;
1006
+ };
1007
+ batch?: {
1031
1008
  id: string;
1009
+ } | undefined;
1010
+ machine?: {
1011
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1012
+ cpu: number;
1013
+ memory: number;
1014
+ centsPerMs: number;
1015
+ } | undefined;
1016
+ }, {
1017
+ run: {
1032
1018
  payload: string;
1019
+ id: string;
1033
1020
  payloadType: string;
1034
- tags: string[];
1035
1021
  createdAt: Date;
1036
- metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1022
+ tags: string[];
1037
1023
  context?: any;
1038
- isTest?: boolean | undefined;
1024
+ version?: string | undefined;
1025
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1039
1026
  startedAt?: Date | undefined;
1040
1027
  idempotencyKey?: string | undefined;
1028
+ isTest?: boolean | undefined;
1041
1029
  maxAttempts?: number | undefined;
1042
1030
  durationMs?: number | undefined;
1043
1031
  costInCents?: number | undefined;
1044
1032
  baseCostInCents?: number | undefined;
1045
- version?: string | undefined;
1046
1033
  maxDuration?: number | undefined;
1047
1034
  };
1048
- queue: {
1049
- name: string;
1050
- id: string;
1051
- };
1052
1035
  environment: {
1053
1036
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1054
1037
  id: string;
@@ -1065,13 +1048,30 @@ export declare const TaskRunExecution: z.ZodObject<{
1065
1048
  slug: string;
1066
1049
  ref: string;
1067
1050
  };
1051
+ task: {
1052
+ id: string;
1053
+ filePath: string;
1054
+ exportName: string;
1055
+ };
1056
+ attempt: {
1057
+ number: number;
1058
+ status: string;
1059
+ id: string;
1060
+ startedAt: Date;
1061
+ backgroundWorkerId: string;
1062
+ backgroundWorkerTaskId: string;
1063
+ };
1064
+ queue: {
1065
+ name: string;
1066
+ id: string;
1067
+ };
1068
1068
  batch?: {
1069
1069
  id: string;
1070
1070
  } | undefined;
1071
1071
  machine?: {
1072
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1072
1073
  cpu: number;
1073
1074
  memory: number;
1074
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1075
1075
  centsPerMs: number;
1076
1076
  } | undefined;
1077
1077
  }>;
@@ -1125,33 +1125,33 @@ export declare const TaskRunContext: z.ZodObject<{
1125
1125
  version: z.ZodOptional<z.ZodString>;
1126
1126
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
1127
1127
  maxDuration: z.ZodOptional<z.ZodNumber>;
1128
- }, "metadata" | "payload" | "payloadType">, "strip", z.ZodTypeAny, {
1128
+ }, "payload" | "metadata" | "payloadType">, "strip", z.ZodTypeAny, {
1129
1129
  id: string;
1130
- tags: string[];
1130
+ startedAt: Date;
1131
1131
  isTest: boolean;
1132
1132
  createdAt: Date;
1133
- startedAt: Date;
1133
+ tags: string[];
1134
1134
  durationMs: number;
1135
1135
  costInCents: number;
1136
1136
  baseCostInCents: number;
1137
1137
  context?: any;
1138
+ version?: string | undefined;
1138
1139
  idempotencyKey?: string | undefined;
1139
1140
  maxAttempts?: number | undefined;
1140
- version?: string | undefined;
1141
1141
  maxDuration?: number | undefined;
1142
1142
  }, {
1143
1143
  id: string;
1144
- tags: string[];
1145
1144
  createdAt: Date;
1145
+ tags: string[];
1146
1146
  context?: any;
1147
- isTest?: boolean | undefined;
1147
+ version?: string | undefined;
1148
1148
  startedAt?: Date | undefined;
1149
1149
  idempotencyKey?: string | undefined;
1150
+ isTest?: boolean | undefined;
1150
1151
  maxAttempts?: number | undefined;
1151
1152
  durationMs?: number | undefined;
1152
1153
  costInCents?: number | undefined;
1153
1154
  baseCostInCents?: number | undefined;
1154
- version?: string | undefined;
1155
1155
  maxDuration?: number | undefined;
1156
1156
  }>;
1157
1157
  queue: z.ZodObject<{
@@ -1219,47 +1219,32 @@ export declare const TaskRunContext: z.ZodObject<{
1219
1219
  memory: z.ZodNumber;
1220
1220
  centsPerMs: z.ZodNumber;
1221
1221
  }, "strip", z.ZodTypeAny, {
1222
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1222
1223
  cpu: number;
1223
1224
  memory: number;
1224
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1225
1225
  centsPerMs: number;
1226
1226
  }, {
1227
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1227
1228
  cpu: number;
1228
1229
  memory: number;
1229
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1230
1230
  centsPerMs: number;
1231
1231
  }>>;
1232
1232
  }, "strip", z.ZodTypeAny, {
1233
- task: {
1234
- id: string;
1235
- filePath: string;
1236
- exportName: string;
1237
- };
1238
- attempt: {
1239
- number: number;
1240
- status: string;
1241
- id: string;
1242
- startedAt: Date;
1243
- };
1244
1233
  run: {
1245
1234
  id: string;
1246
- tags: string[];
1235
+ startedAt: Date;
1247
1236
  isTest: boolean;
1248
1237
  createdAt: Date;
1249
- startedAt: Date;
1238
+ tags: string[];
1250
1239
  durationMs: number;
1251
1240
  costInCents: number;
1252
1241
  baseCostInCents: number;
1253
1242
  context?: any;
1243
+ version?: string | undefined;
1254
1244
  idempotencyKey?: string | undefined;
1255
1245
  maxAttempts?: number | undefined;
1256
- version?: string | undefined;
1257
1246
  maxDuration?: number | undefined;
1258
1247
  };
1259
- queue: {
1260
- name: string;
1261
- id: string;
1262
- };
1263
1248
  environment: {
1264
1249
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1265
1250
  id: string;
@@ -1276,16 +1261,6 @@ export declare const TaskRunContext: z.ZodObject<{
1276
1261
  slug: string;
1277
1262
  ref: string;
1278
1263
  };
1279
- batch?: {
1280
- id: string;
1281
- } | undefined;
1282
- machine?: {
1283
- cpu: number;
1284
- memory: number;
1285
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1286
- centsPerMs: number;
1287
- } | undefined;
1288
- }, {
1289
1264
  task: {
1290
1265
  id: string;
1291
1266
  filePath: string;
@@ -1297,25 +1272,35 @@ export declare const TaskRunContext: z.ZodObject<{
1297
1272
  id: string;
1298
1273
  startedAt: Date;
1299
1274
  };
1275
+ queue: {
1276
+ name: string;
1277
+ id: string;
1278
+ };
1279
+ batch?: {
1280
+ id: string;
1281
+ } | undefined;
1282
+ machine?: {
1283
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1284
+ cpu: number;
1285
+ memory: number;
1286
+ centsPerMs: number;
1287
+ } | undefined;
1288
+ }, {
1300
1289
  run: {
1301
1290
  id: string;
1302
- tags: string[];
1303
1291
  createdAt: Date;
1292
+ tags: string[];
1304
1293
  context?: any;
1305
- isTest?: boolean | undefined;
1294
+ version?: string | undefined;
1306
1295
  startedAt?: Date | undefined;
1307
1296
  idempotencyKey?: string | undefined;
1297
+ isTest?: boolean | undefined;
1308
1298
  maxAttempts?: number | undefined;
1309
1299
  durationMs?: number | undefined;
1310
1300
  costInCents?: number | undefined;
1311
1301
  baseCostInCents?: number | undefined;
1312
- version?: string | undefined;
1313
1302
  maxDuration?: number | undefined;
1314
1303
  };
1315
- queue: {
1316
- name: string;
1317
- id: string;
1318
- };
1319
1304
  environment: {
1320
1305
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1321
1306
  id: string;
@@ -1332,13 +1317,28 @@ export declare const TaskRunContext: z.ZodObject<{
1332
1317
  slug: string;
1333
1318
  ref: string;
1334
1319
  };
1320
+ task: {
1321
+ id: string;
1322
+ filePath: string;
1323
+ exportName: string;
1324
+ };
1325
+ attempt: {
1326
+ number: number;
1327
+ status: string;
1328
+ id: string;
1329
+ startedAt: Date;
1330
+ };
1331
+ queue: {
1332
+ name: string;
1333
+ id: string;
1334
+ };
1335
1335
  batch?: {
1336
1336
  id: string;
1337
1337
  } | undefined;
1338
1338
  machine?: {
1339
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1339
1340
  cpu: number;
1340
1341
  memory: number;
1341
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1342
1342
  centsPerMs: number;
1343
1343
  } | undefined;
1344
1344
  }>;
@@ -1374,13 +1374,13 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
1374
1374
  message: z.ZodString;
1375
1375
  stackTrace: z.ZodString;
1376
1376
  }, "strip", z.ZodTypeAny, {
1377
- type: "BUILT_IN_ERROR";
1378
1377
  message: string;
1378
+ type: "BUILT_IN_ERROR";
1379
1379
  name: string;
1380
1380
  stackTrace: string;
1381
1381
  }, {
1382
- type: "BUILT_IN_ERROR";
1383
1382
  message: string;
1383
+ type: "BUILT_IN_ERROR";
1384
1384
  name: string;
1385
1385
  stackTrace: string;
1386
1386
  }>, z.ZodObject<{
@@ -1407,13 +1407,13 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
1407
1407
  message: z.ZodOptional<z.ZodString>;
1408
1408
  stackTrace: z.ZodOptional<z.ZodString>;
1409
1409
  }, "strip", z.ZodTypeAny, {
1410
- type: "INTERNAL_ERROR";
1411
1410
  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";
1411
+ type: "INTERNAL_ERROR";
1412
1412
  message?: string | undefined;
1413
1413
  stackTrace?: string | undefined;
1414
1414
  }, {
1415
- type: "INTERNAL_ERROR";
1416
1415
  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";
1416
+ type: "INTERNAL_ERROR";
1417
1417
  message?: string | undefined;
1418
1418
  stackTrace?: string | undefined;
1419
1419
  }>]>;
@@ -1788,8 +1788,8 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
1788
1788
  }, "strip", z.ZodTypeAny, {
1789
1789
  id: string;
1790
1790
  error: {
1791
- type: "BUILT_IN_ERROR";
1792
1791
  message: string;
1792
+ type: "BUILT_IN_ERROR";
1793
1793
  name: string;
1794
1794
  stackTrace: string;
1795
1795
  } | {
@@ -1799,8 +1799,8 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
1799
1799
  type: "STRING_ERROR";
1800
1800
  raw: string;
1801
1801
  } | {
1802
- type: "INTERNAL_ERROR";
1803
1802
  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";
1803
+ type: "INTERNAL_ERROR";
1804
1804
  message?: string | undefined;
1805
1805
  stackTrace?: string | undefined;
1806
1806
  };
@@ -1890,8 +1890,8 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
1890
1890
  }, {
1891
1891
  id: string;
1892
1892
  error: {
1893
- type: "BUILT_IN_ERROR";
1894
1893
  message: string;
1894
+ type: "BUILT_IN_ERROR";
1895
1895
  name: string;
1896
1896
  stackTrace: string;
1897
1897
  } | {
@@ -1901,8 +1901,8 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
1901
1901
  type: "STRING_ERROR";
1902
1902
  raw: string;
1903
1903
  } | {
1904
- type: "INTERNAL_ERROR";
1905
1904
  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";
1905
+ type: "INTERNAL_ERROR";
1906
1906
  message?: string | undefined;
1907
1907
  stackTrace?: string | undefined;
1908
1908
  };
@@ -2426,11 +2426,11 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
2426
2426
  key: string;
2427
2427
  })[] | undefined;
2428
2428
  } | undefined;
2429
+ output?: string | undefined;
2429
2430
  usage?: {
2430
2431
  durationMs: number;
2431
2432
  } | undefined;
2432
2433
  taskIdentifier?: string | undefined;
2433
- output?: string | undefined;
2434
2434
  }, {
2435
2435
  id: string;
2436
2436
  ok: true;
@@ -2507,11 +2507,11 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
2507
2507
  key: string;
2508
2508
  })[] | undefined;
2509
2509
  } | undefined;
2510
+ output?: string | undefined;
2510
2511
  usage?: {
2511
2512
  durationMs: number;
2512
2513
  } | undefined;
2513
2514
  taskIdentifier?: string | undefined;
2514
- output?: string | undefined;
2515
2515
  }>;
2516
2516
  export type TaskRunSuccessfulExecutionResult = z.infer<typeof TaskRunSuccessfulExecutionResult>;
2517
2517
  export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
@@ -2949,11 +2949,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
2949
2949
  key: string;
2950
2950
  })[] | undefined;
2951
2951
  } | undefined;
2952
+ output?: string | undefined;
2952
2953
  usage?: {
2953
2954
  durationMs: number;
2954
2955
  } | undefined;
2955
2956
  taskIdentifier?: string | undefined;
2956
- output?: string | undefined;
2957
2957
  }, {
2958
2958
  id: string;
2959
2959
  ok: true;
@@ -3030,11 +3030,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3030
3030
  key: string;
3031
3031
  })[] | undefined;
3032
3032
  } | undefined;
3033
+ output?: string | undefined;
3033
3034
  usage?: {
3034
3035
  durationMs: number;
3035
3036
  } | undefined;
3036
3037
  taskIdentifier?: string | undefined;
3037
- output?: string | undefined;
3038
3038
  }>, z.ZodObject<{
3039
3039
  ok: z.ZodLiteral<false>;
3040
3040
  id: z.ZodString;
@@ -3044,13 +3044,13 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3044
3044
  message: z.ZodString;
3045
3045
  stackTrace: z.ZodString;
3046
3046
  }, "strip", z.ZodTypeAny, {
3047
- type: "BUILT_IN_ERROR";
3048
3047
  message: string;
3048
+ type: "BUILT_IN_ERROR";
3049
3049
  name: string;
3050
3050
  stackTrace: string;
3051
3051
  }, {
3052
- type: "BUILT_IN_ERROR";
3053
3052
  message: string;
3053
+ type: "BUILT_IN_ERROR";
3054
3054
  name: string;
3055
3055
  stackTrace: string;
3056
3056
  }>, z.ZodObject<{
@@ -3077,13 +3077,13 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3077
3077
  message: z.ZodOptional<z.ZodString>;
3078
3078
  stackTrace: z.ZodOptional<z.ZodString>;
3079
3079
  }, "strip", z.ZodTypeAny, {
3080
- type: "INTERNAL_ERROR";
3081
3080
  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";
3081
+ type: "INTERNAL_ERROR";
3082
3082
  message?: string | undefined;
3083
3083
  stackTrace?: string | undefined;
3084
3084
  }, {
3085
- type: "INTERNAL_ERROR";
3086
3085
  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";
3086
+ type: "INTERNAL_ERROR";
3087
3087
  message?: string | undefined;
3088
3088
  stackTrace?: string | undefined;
3089
3089
  }>]>;
@@ -3458,8 +3458,8 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3458
3458
  }, "strip", z.ZodTypeAny, {
3459
3459
  id: string;
3460
3460
  error: {
3461
- type: "BUILT_IN_ERROR";
3462
3461
  message: string;
3462
+ type: "BUILT_IN_ERROR";
3463
3463
  name: string;
3464
3464
  stackTrace: string;
3465
3465
  } | {
@@ -3469,8 +3469,8 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3469
3469
  type: "STRING_ERROR";
3470
3470
  raw: string;
3471
3471
  } | {
3472
- type: "INTERNAL_ERROR";
3473
3472
  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";
3473
+ type: "INTERNAL_ERROR";
3474
3474
  message?: string | undefined;
3475
3475
  stackTrace?: string | undefined;
3476
3476
  };
@@ -3560,8 +3560,8 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3560
3560
  }, {
3561
3561
  id: string;
3562
3562
  error: {
3563
- type: "BUILT_IN_ERROR";
3564
3563
  message: string;
3564
+ type: "BUILT_IN_ERROR";
3565
3565
  name: string;
3566
3566
  stackTrace: string;
3567
3567
  } | {
@@ -3571,8 +3571,8 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
3571
3571
  type: "STRING_ERROR";
3572
3572
  raw: string;
3573
3573
  } | {
3574
- type: "INTERNAL_ERROR";
3575
3574
  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";
3575
+ type: "INTERNAL_ERROR";
3576
3576
  message?: string | undefined;
3577
3577
  stackTrace?: string | undefined;
3578
3578
  };
@@ -4098,11 +4098,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4098
4098
  key: string;
4099
4099
  })[] | undefined;
4100
4100
  } | undefined;
4101
+ output?: string | undefined;
4101
4102
  usage?: {
4102
4103
  durationMs: number;
4103
4104
  } | undefined;
4104
4105
  taskIdentifier?: string | undefined;
4105
- output?: string | undefined;
4106
4106
  }, {
4107
4107
  id: string;
4108
4108
  ok: true;
@@ -4179,11 +4179,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4179
4179
  key: string;
4180
4180
  })[] | undefined;
4181
4181
  } | undefined;
4182
+ output?: string | undefined;
4182
4183
  usage?: {
4183
4184
  durationMs: number;
4184
4185
  } | undefined;
4185
4186
  taskIdentifier?: string | undefined;
4186
- output?: string | undefined;
4187
4187
  }>, z.ZodObject<{
4188
4188
  ok: z.ZodLiteral<false>;
4189
4189
  id: z.ZodString;
@@ -4193,13 +4193,13 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4193
4193
  message: z.ZodString;
4194
4194
  stackTrace: z.ZodString;
4195
4195
  }, "strip", z.ZodTypeAny, {
4196
- type: "BUILT_IN_ERROR";
4197
4196
  message: string;
4197
+ type: "BUILT_IN_ERROR";
4198
4198
  name: string;
4199
4199
  stackTrace: string;
4200
4200
  }, {
4201
- type: "BUILT_IN_ERROR";
4202
4201
  message: string;
4202
+ type: "BUILT_IN_ERROR";
4203
4203
  name: string;
4204
4204
  stackTrace: string;
4205
4205
  }>, z.ZodObject<{
@@ -4226,13 +4226,13 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4226
4226
  message: z.ZodOptional<z.ZodString>;
4227
4227
  stackTrace: z.ZodOptional<z.ZodString>;
4228
4228
  }, "strip", z.ZodTypeAny, {
4229
- type: "INTERNAL_ERROR";
4230
4229
  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";
4230
+ type: "INTERNAL_ERROR";
4231
4231
  message?: string | undefined;
4232
4232
  stackTrace?: string | undefined;
4233
4233
  }, {
4234
- type: "INTERNAL_ERROR";
4235
4234
  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";
4235
+ type: "INTERNAL_ERROR";
4236
4236
  message?: string | undefined;
4237
4237
  stackTrace?: string | undefined;
4238
4238
  }>]>;
@@ -4607,8 +4607,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4607
4607
  }, "strip", z.ZodTypeAny, {
4608
4608
  id: string;
4609
4609
  error: {
4610
- type: "BUILT_IN_ERROR";
4611
4610
  message: string;
4611
+ type: "BUILT_IN_ERROR";
4612
4612
  name: string;
4613
4613
  stackTrace: string;
4614
4614
  } | {
@@ -4618,8 +4618,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4618
4618
  type: "STRING_ERROR";
4619
4619
  raw: string;
4620
4620
  } | {
4621
- type: "INTERNAL_ERROR";
4622
4621
  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";
4622
+ type: "INTERNAL_ERROR";
4623
4623
  message?: string | undefined;
4624
4624
  stackTrace?: string | undefined;
4625
4625
  };
@@ -4709,8 +4709,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4709
4709
  }, {
4710
4710
  id: string;
4711
4711
  error: {
4712
- type: "BUILT_IN_ERROR";
4713
4712
  message: string;
4713
+ type: "BUILT_IN_ERROR";
4714
4714
  name: string;
4715
4715
  stackTrace: string;
4716
4716
  } | {
@@ -4720,8 +4720,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4720
4720
  type: "STRING_ERROR";
4721
4721
  raw: string;
4722
4722
  } | {
4723
- type: "INTERNAL_ERROR";
4724
4723
  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";
4724
+ type: "INTERNAL_ERROR";
4725
4725
  message?: string | undefined;
4726
4726
  stackTrace?: string | undefined;
4727
4727
  };
@@ -4814,8 +4814,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4814
4814
  items: ({
4815
4815
  id: string;
4816
4816
  error: {
4817
- type: "BUILT_IN_ERROR";
4818
4817
  message: string;
4818
+ type: "BUILT_IN_ERROR";
4819
4819
  name: string;
4820
4820
  stackTrace: string;
4821
4821
  } | {
@@ -4825,8 +4825,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4825
4825
  type: "STRING_ERROR";
4826
4826
  raw: string;
4827
4827
  } | {
4828
- type: "INTERNAL_ERROR";
4829
4828
  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";
4829
+ type: "INTERNAL_ERROR";
4830
4830
  message?: string | undefined;
4831
4831
  stackTrace?: string | undefined;
4832
4832
  };
@@ -4989,19 +4989,19 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
4989
4989
  key: string;
4990
4990
  })[] | undefined;
4991
4991
  } | undefined;
4992
+ output?: string | undefined;
4992
4993
  usage?: {
4993
4994
  durationMs: number;
4994
4995
  } | undefined;
4995
4996
  taskIdentifier?: string | undefined;
4996
- output?: string | undefined;
4997
4997
  })[];
4998
4998
  }, {
4999
4999
  id: string;
5000
5000
  items: ({
5001
5001
  id: string;
5002
5002
  error: {
5003
- type: "BUILT_IN_ERROR";
5004
5003
  message: string;
5004
+ type: "BUILT_IN_ERROR";
5005
5005
  name: string;
5006
5006
  stackTrace: string;
5007
5007
  } | {
@@ -5011,8 +5011,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
5011
5011
  type: "STRING_ERROR";
5012
5012
  raw: string;
5013
5013
  } | {
5014
- type: "INTERNAL_ERROR";
5015
5014
  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";
5015
+ type: "INTERNAL_ERROR";
5016
5016
  message?: string | undefined;
5017
5017
  stackTrace?: string | undefined;
5018
5018
  };
@@ -5175,11 +5175,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
5175
5175
  key: string;
5176
5176
  })[] | undefined;
5177
5177
  } | undefined;
5178
+ output?: string | undefined;
5178
5179
  usage?: {
5179
5180
  durationMs: number;
5180
5181
  } | undefined;
5181
5182
  taskIdentifier?: string | undefined;
5182
- output?: string | undefined;
5183
5183
  })[];
5184
5184
  }>;
5185
5185
  export type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;