@trigger.dev/core 0.0.0-prerelease-20240930020332 → 0.0.0-prerelease-20241003205750

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 (95) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/index.d.ts +78 -78
  3. package/dist/commonjs/v3/config.d.ts +8 -0
  4. package/dist/commonjs/v3/errors.js +4 -1
  5. package/dist/commonjs/v3/errors.js.map +1 -1
  6. package/dist/commonjs/v3/index.d.ts +1 -0
  7. package/dist/commonjs/v3/index.js +1 -0
  8. package/dist/commonjs/v3/index.js.map +1 -1
  9. package/dist/commonjs/v3/schemas/api.d.ts +55 -36
  10. package/dist/commonjs/v3/schemas/api.js +3 -0
  11. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  12. package/dist/commonjs/v3/schemas/build.d.ts +14 -0
  13. package/dist/commonjs/v3/schemas/common.d.ts +116 -102
  14. package/dist/commonjs/v3/schemas/common.js +3 -0
  15. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  16. package/dist/commonjs/v3/schemas/messages.d.ts +268 -120
  17. package/dist/commonjs/v3/schemas/resources.d.ts +8 -0
  18. package/dist/commonjs/v3/schemas/resources.js +1 -0
  19. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  20. package/dist/commonjs/v3/schemas/schemas.d.ts +25 -0
  21. package/dist/commonjs/v3/schemas/schemas.js +1 -0
  22. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  23. package/dist/commonjs/v3/timeout/api.d.ts +11 -0
  24. package/dist/commonjs/v3/timeout/api.js +38 -0
  25. package/dist/commonjs/v3/timeout/api.js.map +1 -0
  26. package/dist/commonjs/v3/timeout/types.d.ts +9 -0
  27. package/dist/commonjs/v3/timeout/types.js +15 -0
  28. package/dist/commonjs/v3/timeout/types.js.map +1 -0
  29. package/dist/commonjs/v3/timeout/usageTimeoutManager.d.ts +10 -0
  30. package/dist/commonjs/v3/timeout/usageTimeoutManager.js +32 -0
  31. package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -0
  32. package/dist/commonjs/v3/timeout-api.d.ts +3 -0
  33. package/dist/commonjs/v3/timeout-api.js +9 -0
  34. package/dist/commonjs/v3/timeout-api.js.map +1 -0
  35. package/dist/commonjs/v3/tracer.d.ts +1 -1
  36. package/dist/commonjs/v3/tracer.js +28 -14
  37. package/dist/commonjs/v3/tracer.js.map +1 -1
  38. package/dist/commonjs/v3/types/index.d.ts +10 -0
  39. package/dist/commonjs/v3/utils/globals.d.ts +2 -0
  40. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  41. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  42. package/dist/commonjs/v3/workers/index.js +3 -1
  43. package/dist/commonjs/v3/workers/index.js.map +1 -1
  44. package/dist/commonjs/v3/workers/taskExecutor.d.ts +1 -1
  45. package/dist/commonjs/v3/workers/taskExecutor.js +41 -35
  46. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  47. package/dist/commonjs/version.js +1 -1
  48. package/dist/esm/schemas/api.d.ts +8 -8
  49. package/dist/esm/v3/apiClient/index.d.ts +78 -78
  50. package/dist/esm/v3/config.d.ts +8 -0
  51. package/dist/esm/v3/errors.js +4 -1
  52. package/dist/esm/v3/errors.js.map +1 -1
  53. package/dist/esm/v3/index.d.ts +1 -0
  54. package/dist/esm/v3/index.js +1 -0
  55. package/dist/esm/v3/index.js.map +1 -1
  56. package/dist/esm/v3/schemas/api.d.ts +55 -36
  57. package/dist/esm/v3/schemas/api.js +3 -0
  58. package/dist/esm/v3/schemas/api.js.map +1 -1
  59. package/dist/esm/v3/schemas/build.d.ts +14 -0
  60. package/dist/esm/v3/schemas/common.d.ts +116 -102
  61. package/dist/esm/v3/schemas/common.js +3 -0
  62. package/dist/esm/v3/schemas/common.js.map +1 -1
  63. package/dist/esm/v3/schemas/messages.d.ts +268 -120
  64. package/dist/esm/v3/schemas/resources.d.ts +8 -0
  65. package/dist/esm/v3/schemas/resources.js +1 -0
  66. package/dist/esm/v3/schemas/resources.js.map +1 -1
  67. package/dist/esm/v3/schemas/schemas.d.ts +25 -0
  68. package/dist/esm/v3/schemas/schemas.js +1 -0
  69. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  70. package/dist/esm/v3/timeout/api.d.ts +11 -0
  71. package/dist/esm/v3/timeout/api.js +34 -0
  72. package/dist/esm/v3/timeout/api.js.map +1 -0
  73. package/dist/esm/v3/timeout/types.d.ts +9 -0
  74. package/dist/esm/v3/timeout/types.js +11 -0
  75. package/dist/esm/v3/timeout/types.js.map +1 -0
  76. package/dist/esm/v3/timeout/usageTimeoutManager.d.ts +10 -0
  77. package/dist/esm/v3/timeout/usageTimeoutManager.js +28 -0
  78. package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -0
  79. package/dist/esm/v3/timeout-api.d.ts +3 -0
  80. package/dist/esm/v3/timeout-api.js +6 -0
  81. package/dist/esm/v3/timeout-api.js.map +1 -0
  82. package/dist/esm/v3/tracer.d.ts +1 -1
  83. package/dist/esm/v3/tracer.js +28 -14
  84. package/dist/esm/v3/tracer.js.map +1 -1
  85. package/dist/esm/v3/types/index.d.ts +10 -0
  86. package/dist/esm/v3/utils/globals.d.ts +2 -0
  87. package/dist/esm/v3/utils/globals.js.map +1 -1
  88. package/dist/esm/v3/workers/index.d.ts +1 -0
  89. package/dist/esm/v3/workers/index.js +1 -0
  90. package/dist/esm/v3/workers/index.js.map +1 -1
  91. package/dist/esm/v3/workers/taskExecutor.d.ts +1 -1
  92. package/dist/esm/v3/workers/taskExecutor.js +41 -35
  93. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  94. package/dist/esm/version.js +1 -1
  95. package/package.json +1 -1
@@ -10,12 +10,12 @@ export declare const MachineConfig: z.ZodObject<{
10
10
  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>]>>;
11
11
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
14
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
13
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
14
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
15
15
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
16
16
  }, {
17
- cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
18
- memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
17
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
18
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
19
19
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
20
20
  }>;
21
21
  export type MachineConfig = z.infer<typeof MachineConfig>;
@@ -25,14 +25,14 @@ export declare const MachinePreset: z.ZodObject<{
25
25
  memory: z.ZodNumber;
26
26
  centsPerMs: z.ZodNumber;
27
27
  }, "strip", z.ZodTypeAny, {
28
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
28
29
  cpu: number;
29
30
  memory: number;
30
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
31
31
  centsPerMs: number;
32
32
  }, {
33
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
33
34
  cpu: number;
34
35
  memory: number;
35
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
36
36
  centsPerMs: number;
37
37
  }>;
38
38
  export type MachinePreset = z.infer<typeof MachinePreset>;
@@ -90,19 +90,20 @@ export declare const TaskRunErrorCodes: {
90
90
  readonly HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR";
91
91
  readonly GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT";
92
92
  readonly TASK_RUN_CRASHED: "TASK_RUN_CRASHED";
93
+ readonly MAX_DURATION_EXCEEDED: "MAX_DURATION_EXCEEDED";
93
94
  };
94
95
  export declare const TaskRunInternalError: z.ZodObject<{
95
96
  type: z.ZodLiteral<"INTERNAL_ERROR">;
96
- 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED"]>;
97
+ 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
97
98
  message: z.ZodOptional<z.ZodString>;
98
99
  stackTrace: z.ZodOptional<z.ZodString>;
99
100
  }, "strip", z.ZodTypeAny, {
100
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
101
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
101
102
  type: "INTERNAL_ERROR";
102
103
  message?: string | undefined;
103
104
  stackTrace?: string | undefined;
104
105
  }, {
105
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
106
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
106
107
  type: "INTERNAL_ERROR";
107
108
  message?: string | undefined;
108
109
  stackTrace?: string | undefined;
@@ -143,16 +144,16 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
143
144
  raw: string;
144
145
  }>, z.ZodObject<{
145
146
  type: z.ZodLiteral<"INTERNAL_ERROR">;
146
- 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED"]>;
147
+ 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
147
148
  message: z.ZodOptional<z.ZodString>;
148
149
  stackTrace: z.ZodOptional<z.ZodString>;
149
150
  }, "strip", z.ZodTypeAny, {
150
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
151
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
151
152
  type: "INTERNAL_ERROR";
152
153
  message?: string | undefined;
153
154
  stackTrace?: string | undefined;
154
155
  }, {
155
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
156
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
156
157
  type: "INTERNAL_ERROR";
157
158
  message?: string | undefined;
158
159
  stackTrace?: string | undefined;
@@ -174,14 +175,15 @@ export declare const TaskRun: z.ZodObject<{
174
175
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
175
176
  version: z.ZodOptional<z.ZodString>;
176
177
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
178
+ maxDuration: z.ZodOptional<z.ZodNumber>;
177
179
  }, "strip", z.ZodTypeAny, {
178
180
  id: string;
181
+ startedAt: Date;
179
182
  payload: string;
180
183
  payloadType: string;
181
184
  tags: string[];
182
185
  isTest: boolean;
183
186
  createdAt: Date;
184
- startedAt: Date;
185
187
  durationMs: number;
186
188
  costInCents: number;
187
189
  baseCostInCents: number;
@@ -190,6 +192,7 @@ export declare const TaskRun: z.ZodObject<{
190
192
  maxAttempts?: number | undefined;
191
193
  version?: string | undefined;
192
194
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
195
+ maxDuration?: number | undefined;
193
196
  }, {
194
197
  id: string;
195
198
  payload: string;
@@ -206,6 +209,7 @@ export declare const TaskRun: z.ZodObject<{
206
209
  baseCostInCents?: number | undefined;
207
210
  version?: string | undefined;
208
211
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
212
+ maxDuration?: number | undefined;
209
213
  }>;
210
214
  export type TaskRun = z.infer<typeof TaskRun>;
211
215
  export declare const TaskRunExecutionTask: z.ZodObject<{
@@ -231,15 +235,15 @@ export declare const TaskRunExecutionAttempt: z.ZodObject<{
231
235
  status: z.ZodString;
232
236
  }, "strip", z.ZodTypeAny, {
233
237
  number: number;
234
- status: string;
235
238
  id: string;
239
+ status: string;
236
240
  startedAt: Date;
237
241
  backgroundWorkerId: string;
238
242
  backgroundWorkerTaskId: string;
239
243
  }, {
240
244
  number: number;
241
- status: string;
242
245
  id: string;
246
+ status: string;
243
247
  startedAt: Date;
244
248
  backgroundWorkerId: string;
245
249
  backgroundWorkerTaskId: string;
@@ -250,12 +254,12 @@ export declare const TaskRunExecutionEnvironment: z.ZodObject<{
250
254
  slug: z.ZodString;
251
255
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
252
256
  }, "strip", z.ZodTypeAny, {
253
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
254
257
  id: string;
258
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
255
259
  slug: string;
256
260
  }, {
257
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
258
261
  id: string;
262
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
259
263
  slug: string;
260
264
  }>;
261
265
  export type TaskRunExecutionEnvironment = z.infer<typeof TaskRunExecutionEnvironment>;
@@ -264,12 +268,12 @@ export declare const TaskRunExecutionOrganization: z.ZodObject<{
264
268
  slug: z.ZodString;
265
269
  name: z.ZodString;
266
270
  }, "strip", z.ZodTypeAny, {
267
- name: string;
268
271
  id: string;
272
+ name: string;
269
273
  slug: string;
270
274
  }, {
271
- name: string;
272
275
  id: string;
276
+ name: string;
273
277
  slug: string;
274
278
  }>;
275
279
  export type TaskRunExecutionOrganization = z.infer<typeof TaskRunExecutionOrganization>;
@@ -279,13 +283,13 @@ export declare const TaskRunExecutionProject: z.ZodObject<{
279
283
  slug: z.ZodString;
280
284
  name: z.ZodString;
281
285
  }, "strip", z.ZodTypeAny, {
282
- name: string;
283
286
  id: string;
287
+ name: string;
284
288
  slug: string;
285
289
  ref: string;
286
290
  }, {
287
- name: string;
288
291
  id: string;
292
+ name: string;
289
293
  slug: string;
290
294
  ref: string;
291
295
  }>;
@@ -294,11 +298,11 @@ export declare const TaskRunExecutionQueue: z.ZodObject<{
294
298
  id: z.ZodString;
295
299
  name: z.ZodString;
296
300
  }, "strip", z.ZodTypeAny, {
297
- name: string;
298
301
  id: string;
299
- }, {
300
302
  name: string;
303
+ }, {
301
304
  id: string;
305
+ name: string;
302
306
  }>;
303
307
  export type TaskRunExecutionQueue = z.infer<typeof TaskRunExecutionQueue>;
304
308
  export declare const TaskRunExecutionBatch: z.ZodObject<{
@@ -331,15 +335,15 @@ export declare const TaskRunExecution: z.ZodObject<{
331
335
  status: z.ZodString;
332
336
  }, "strip", z.ZodTypeAny, {
333
337
  number: number;
334
- status: string;
335
338
  id: string;
339
+ status: string;
336
340
  startedAt: Date;
337
341
  backgroundWorkerId: string;
338
342
  backgroundWorkerTaskId: string;
339
343
  }, {
340
344
  number: number;
341
- status: string;
342
345
  id: string;
346
+ status: string;
343
347
  startedAt: Date;
344
348
  backgroundWorkerId: string;
345
349
  backgroundWorkerTaskId: string;
@@ -360,14 +364,15 @@ export declare const TaskRunExecution: z.ZodObject<{
360
364
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
361
365
  version: z.ZodOptional<z.ZodString>;
362
366
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
367
+ maxDuration: z.ZodOptional<z.ZodNumber>;
363
368
  }, "strip", z.ZodTypeAny, {
364
369
  id: string;
370
+ startedAt: Date;
365
371
  payload: string;
366
372
  payloadType: string;
367
373
  tags: string[];
368
374
  isTest: boolean;
369
375
  createdAt: Date;
370
- startedAt: Date;
371
376
  durationMs: number;
372
377
  costInCents: number;
373
378
  baseCostInCents: number;
@@ -376,6 +381,7 @@ export declare const TaskRunExecution: z.ZodObject<{
376
381
  maxAttempts?: number | undefined;
377
382
  version?: string | undefined;
378
383
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
384
+ maxDuration?: number | undefined;
379
385
  }, {
380
386
  id: string;
381
387
  payload: string;
@@ -392,28 +398,29 @@ export declare const TaskRunExecution: z.ZodObject<{
392
398
  baseCostInCents?: number | undefined;
393
399
  version?: string | undefined;
394
400
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
401
+ maxDuration?: number | undefined;
395
402
  }>;
396
403
  queue: z.ZodObject<{
397
404
  id: z.ZodString;
398
405
  name: z.ZodString;
399
406
  }, "strip", z.ZodTypeAny, {
400
- name: string;
401
407
  id: string;
402
- }, {
403
408
  name: string;
409
+ }, {
404
410
  id: string;
411
+ name: string;
405
412
  }>;
406
413
  environment: z.ZodObject<{
407
414
  id: z.ZodString;
408
415
  slug: z.ZodString;
409
416
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
410
417
  }, "strip", z.ZodTypeAny, {
411
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
412
418
  id: string;
419
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
413
420
  slug: string;
414
421
  }, {
415
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
416
422
  id: string;
423
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
417
424
  slug: string;
418
425
  }>;
419
426
  organization: z.ZodObject<{
@@ -421,12 +428,12 @@ export declare const TaskRunExecution: z.ZodObject<{
421
428
  slug: z.ZodString;
422
429
  name: z.ZodString;
423
430
  }, "strip", z.ZodTypeAny, {
424
- name: string;
425
431
  id: string;
432
+ name: string;
426
433
  slug: string;
427
434
  }, {
428
- name: string;
429
435
  id: string;
436
+ name: string;
430
437
  slug: string;
431
438
  }>;
432
439
  project: z.ZodObject<{
@@ -435,13 +442,13 @@ export declare const TaskRunExecution: z.ZodObject<{
435
442
  slug: z.ZodString;
436
443
  name: z.ZodString;
437
444
  }, "strip", z.ZodTypeAny, {
438
- name: string;
439
445
  id: string;
446
+ name: string;
440
447
  slug: string;
441
448
  ref: string;
442
449
  }, {
443
- name: string;
444
450
  id: string;
451
+ name: string;
445
452
  slug: string;
446
453
  ref: string;
447
454
  }>;
@@ -458,14 +465,14 @@ export declare const TaskRunExecution: z.ZodObject<{
458
465
  memory: z.ZodNumber;
459
466
  centsPerMs: z.ZodNumber;
460
467
  }, "strip", z.ZodTypeAny, {
468
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
461
469
  cpu: number;
462
470
  memory: number;
463
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
464
471
  centsPerMs: number;
465
472
  }, {
473
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
466
474
  cpu: number;
467
475
  memory: number;
468
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
469
476
  centsPerMs: number;
470
477
  }>>;
471
478
  }, "strip", z.ZodTypeAny, {
@@ -476,20 +483,20 @@ export declare const TaskRunExecution: z.ZodObject<{
476
483
  };
477
484
  attempt: {
478
485
  number: number;
479
- status: string;
480
486
  id: string;
487
+ status: string;
481
488
  startedAt: Date;
482
489
  backgroundWorkerId: string;
483
490
  backgroundWorkerTaskId: string;
484
491
  };
485
492
  run: {
486
493
  id: string;
494
+ startedAt: Date;
487
495
  payload: string;
488
496
  payloadType: string;
489
497
  tags: string[];
490
498
  isTest: boolean;
491
499
  createdAt: Date;
492
- startedAt: Date;
493
500
  durationMs: number;
494
501
  costInCents: number;
495
502
  baseCostInCents: number;
@@ -498,24 +505,25 @@ export declare const TaskRunExecution: z.ZodObject<{
498
505
  maxAttempts?: number | undefined;
499
506
  version?: string | undefined;
500
507
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
508
+ maxDuration?: number | undefined;
501
509
  };
502
510
  queue: {
503
- name: string;
504
511
  id: string;
512
+ name: string;
505
513
  };
506
514
  environment: {
507
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
508
515
  id: string;
516
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
509
517
  slug: string;
510
518
  };
511
519
  organization: {
512
- name: string;
513
520
  id: string;
521
+ name: string;
514
522
  slug: string;
515
523
  };
516
524
  project: {
517
- name: string;
518
525
  id: string;
526
+ name: string;
519
527
  slug: string;
520
528
  ref: string;
521
529
  };
@@ -523,9 +531,9 @@ export declare const TaskRunExecution: z.ZodObject<{
523
531
  id: string;
524
532
  } | undefined;
525
533
  machine?: {
534
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
526
535
  cpu: number;
527
536
  memory: number;
528
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
529
537
  centsPerMs: number;
530
538
  } | undefined;
531
539
  }, {
@@ -536,8 +544,8 @@ export declare const TaskRunExecution: z.ZodObject<{
536
544
  };
537
545
  attempt: {
538
546
  number: number;
539
- status: string;
540
547
  id: string;
548
+ status: string;
541
549
  startedAt: Date;
542
550
  backgroundWorkerId: string;
543
551
  backgroundWorkerTaskId: string;
@@ -558,24 +566,25 @@ export declare const TaskRunExecution: z.ZodObject<{
558
566
  baseCostInCents?: number | undefined;
559
567
  version?: string | undefined;
560
568
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
569
+ maxDuration?: number | undefined;
561
570
  };
562
571
  queue: {
563
- name: string;
564
572
  id: string;
573
+ name: string;
565
574
  };
566
575
  environment: {
567
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
568
576
  id: string;
577
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
569
578
  slug: string;
570
579
  };
571
580
  organization: {
572
- name: string;
573
581
  id: string;
582
+ name: string;
574
583
  slug: string;
575
584
  };
576
585
  project: {
577
- name: string;
578
586
  id: string;
587
+ name: string;
579
588
  slug: string;
580
589
  ref: string;
581
590
  };
@@ -583,9 +592,9 @@ export declare const TaskRunExecution: z.ZodObject<{
583
592
  id: string;
584
593
  } | undefined;
585
594
  machine?: {
595
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
586
596
  cpu: number;
587
597
  memory: number;
588
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
589
598
  centsPerMs: number;
590
599
  } | undefined;
591
600
  }>;
@@ -613,13 +622,13 @@ export declare const TaskRunContext: z.ZodObject<{
613
622
  status: z.ZodString;
614
623
  }, "backgroundWorkerId" | "backgroundWorkerTaskId">, "strip", z.ZodTypeAny, {
615
624
  number: number;
616
- status: string;
617
625
  id: string;
626
+ status: string;
618
627
  startedAt: Date;
619
628
  }, {
620
629
  number: number;
621
- status: string;
622
630
  id: string;
631
+ status: string;
623
632
  startedAt: Date;
624
633
  }>;
625
634
  run: z.ZodObject<Omit<{
@@ -638,12 +647,13 @@ export declare const TaskRunContext: z.ZodObject<{
638
647
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
639
648
  version: z.ZodOptional<z.ZodString>;
640
649
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
650
+ maxDuration: z.ZodOptional<z.ZodNumber>;
641
651
  }, "payload" | "payloadType" | "metadata">, "strip", z.ZodTypeAny, {
642
652
  id: string;
653
+ startedAt: Date;
643
654
  tags: string[];
644
655
  isTest: boolean;
645
656
  createdAt: Date;
646
- startedAt: Date;
647
657
  durationMs: number;
648
658
  costInCents: number;
649
659
  baseCostInCents: number;
@@ -651,41 +661,43 @@ export declare const TaskRunContext: z.ZodObject<{
651
661
  idempotencyKey?: string | undefined;
652
662
  maxAttempts?: number | undefined;
653
663
  version?: string | undefined;
664
+ maxDuration?: number | undefined;
654
665
  }, {
655
666
  id: string;
656
667
  tags: string[];
657
668
  createdAt: Date;
669
+ startedAt?: Date | undefined;
658
670
  context?: any;
659
671
  isTest?: boolean | undefined;
660
- startedAt?: Date | undefined;
661
672
  idempotencyKey?: string | undefined;
662
673
  maxAttempts?: number | undefined;
663
674
  durationMs?: number | undefined;
664
675
  costInCents?: number | undefined;
665
676
  baseCostInCents?: number | undefined;
666
677
  version?: string | undefined;
678
+ maxDuration?: number | undefined;
667
679
  }>;
668
680
  queue: z.ZodObject<{
669
681
  id: z.ZodString;
670
682
  name: z.ZodString;
671
683
  }, "strip", z.ZodTypeAny, {
672
- name: string;
673
684
  id: string;
674
- }, {
675
685
  name: string;
686
+ }, {
676
687
  id: string;
688
+ name: string;
677
689
  }>;
678
690
  environment: z.ZodObject<{
679
691
  id: z.ZodString;
680
692
  slug: z.ZodString;
681
693
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
682
694
  }, "strip", z.ZodTypeAny, {
683
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
684
695
  id: string;
696
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
685
697
  slug: string;
686
698
  }, {
687
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
688
699
  id: string;
700
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
689
701
  slug: string;
690
702
  }>;
691
703
  organization: z.ZodObject<{
@@ -693,12 +705,12 @@ export declare const TaskRunContext: z.ZodObject<{
693
705
  slug: z.ZodString;
694
706
  name: z.ZodString;
695
707
  }, "strip", z.ZodTypeAny, {
696
- name: string;
697
708
  id: string;
709
+ name: string;
698
710
  slug: string;
699
711
  }, {
700
- name: string;
701
712
  id: string;
713
+ name: string;
702
714
  slug: string;
703
715
  }>;
704
716
  project: z.ZodObject<{
@@ -707,13 +719,13 @@ export declare const TaskRunContext: z.ZodObject<{
707
719
  slug: z.ZodString;
708
720
  name: z.ZodString;
709
721
  }, "strip", z.ZodTypeAny, {
710
- name: string;
711
722
  id: string;
723
+ name: string;
712
724
  slug: string;
713
725
  ref: string;
714
726
  }, {
715
- name: string;
716
727
  id: string;
728
+ name: string;
717
729
  slug: string;
718
730
  ref: string;
719
731
  }>;
@@ -730,14 +742,14 @@ export declare const TaskRunContext: z.ZodObject<{
730
742
  memory: z.ZodNumber;
731
743
  centsPerMs: z.ZodNumber;
732
744
  }, "strip", z.ZodTypeAny, {
745
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
733
746
  cpu: number;
734
747
  memory: number;
735
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
736
748
  centsPerMs: number;
737
749
  }, {
750
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
738
751
  cpu: number;
739
752
  memory: number;
740
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
741
753
  centsPerMs: number;
742
754
  }>>;
743
755
  }, "strip", z.ZodTypeAny, {
@@ -748,16 +760,16 @@ export declare const TaskRunContext: z.ZodObject<{
748
760
  };
749
761
  attempt: {
750
762
  number: number;
751
- status: string;
752
763
  id: string;
764
+ status: string;
753
765
  startedAt: Date;
754
766
  };
755
767
  run: {
756
768
  id: string;
769
+ startedAt: Date;
757
770
  tags: string[];
758
771
  isTest: boolean;
759
772
  createdAt: Date;
760
- startedAt: Date;
761
773
  durationMs: number;
762
774
  costInCents: number;
763
775
  baseCostInCents: number;
@@ -765,24 +777,25 @@ export declare const TaskRunContext: z.ZodObject<{
765
777
  idempotencyKey?: string | undefined;
766
778
  maxAttempts?: number | undefined;
767
779
  version?: string | undefined;
780
+ maxDuration?: number | undefined;
768
781
  };
769
782
  queue: {
770
- name: string;
771
783
  id: string;
784
+ name: string;
772
785
  };
773
786
  environment: {
774
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
775
787
  id: string;
788
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
776
789
  slug: string;
777
790
  };
778
791
  organization: {
779
- name: string;
780
792
  id: string;
793
+ name: string;
781
794
  slug: string;
782
795
  };
783
796
  project: {
784
- name: string;
785
797
  id: string;
798
+ name: string;
786
799
  slug: string;
787
800
  ref: string;
788
801
  };
@@ -790,9 +803,9 @@ export declare const TaskRunContext: z.ZodObject<{
790
803
  id: string;
791
804
  } | undefined;
792
805
  machine?: {
806
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
793
807
  cpu: number;
794
808
  memory: number;
795
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
796
809
  centsPerMs: number;
797
810
  } | undefined;
798
811
  }, {
@@ -803,41 +816,42 @@ export declare const TaskRunContext: z.ZodObject<{
803
816
  };
804
817
  attempt: {
805
818
  number: number;
806
- status: string;
807
819
  id: string;
820
+ status: string;
808
821
  startedAt: Date;
809
822
  };
810
823
  run: {
811
824
  id: string;
812
825
  tags: string[];
813
826
  createdAt: Date;
827
+ startedAt?: Date | undefined;
814
828
  context?: any;
815
829
  isTest?: boolean | undefined;
816
- startedAt?: Date | undefined;
817
830
  idempotencyKey?: string | undefined;
818
831
  maxAttempts?: number | undefined;
819
832
  durationMs?: number | undefined;
820
833
  costInCents?: number | undefined;
821
834
  baseCostInCents?: number | undefined;
822
835
  version?: string | undefined;
836
+ maxDuration?: number | undefined;
823
837
  };
824
838
  queue: {
825
- name: string;
826
839
  id: string;
840
+ name: string;
827
841
  };
828
842
  environment: {
829
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
830
843
  id: string;
844
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
831
845
  slug: string;
832
846
  };
833
847
  organization: {
834
- name: string;
835
848
  id: string;
849
+ name: string;
836
850
  slug: string;
837
851
  };
838
852
  project: {
839
- name: string;
840
853
  id: string;
854
+ name: string;
841
855
  slug: string;
842
856
  ref: string;
843
857
  };
@@ -845,9 +859,9 @@ export declare const TaskRunContext: z.ZodObject<{
845
859
  id: string;
846
860
  } | undefined;
847
861
  machine?: {
862
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
848
863
  cpu: number;
849
864
  memory: number;
850
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
851
865
  centsPerMs: number;
852
866
  } | undefined;
853
867
  }>;
@@ -912,16 +926,16 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
912
926
  raw: string;
913
927
  }>, z.ZodObject<{
914
928
  type: z.ZodLiteral<"INTERNAL_ERROR">;
915
- 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED"]>;
929
+ 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
916
930
  message: z.ZodOptional<z.ZodString>;
917
931
  stackTrace: z.ZodOptional<z.ZodString>;
918
932
  }, "strip", z.ZodTypeAny, {
919
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
933
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
920
934
  type: "INTERNAL_ERROR";
921
935
  message?: string | undefined;
922
936
  stackTrace?: string | undefined;
923
937
  }, {
924
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
938
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
925
939
  type: "INTERNAL_ERROR";
926
940
  message?: string | undefined;
927
941
  stackTrace?: string | undefined;
@@ -948,6 +962,7 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
948
962
  durationMs: number;
949
963
  }>>;
950
964
  }, "strip", z.ZodTypeAny, {
965
+ id: string;
951
966
  error: {
952
967
  message: string;
953
968
  type: "BUILT_IN_ERROR";
@@ -960,12 +975,11 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
960
975
  type: "STRING_ERROR";
961
976
  raw: string;
962
977
  } | {
963
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
978
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
964
979
  type: "INTERNAL_ERROR";
965
980
  message?: string | undefined;
966
981
  stackTrace?: string | undefined;
967
982
  };
968
- id: string;
969
983
  ok: false;
970
984
  retry?: {
971
985
  timestamp: number;
@@ -977,6 +991,7 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
977
991
  durationMs: number;
978
992
  } | undefined;
979
993
  }, {
994
+ id: string;
980
995
  error: {
981
996
  message: string;
982
997
  type: "BUILT_IN_ERROR";
@@ -989,12 +1004,11 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
989
1004
  type: "STRING_ERROR";
990
1005
  raw: string;
991
1006
  } | {
992
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1007
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
993
1008
  type: "INTERNAL_ERROR";
994
1009
  message?: string | undefined;
995
1010
  stackTrace?: string | undefined;
996
1011
  };
997
- id: string;
998
1012
  ok: false;
999
1013
  retry?: {
1000
1014
  timestamp: number;
@@ -1103,16 +1117,16 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1103
1117
  raw: string;
1104
1118
  }>, z.ZodObject<{
1105
1119
  type: z.ZodLiteral<"INTERNAL_ERROR">;
1106
- 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED"]>;
1120
+ 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
1107
1121
  message: z.ZodOptional<z.ZodString>;
1108
1122
  stackTrace: z.ZodOptional<z.ZodString>;
1109
1123
  }, "strip", z.ZodTypeAny, {
1110
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1124
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1111
1125
  type: "INTERNAL_ERROR";
1112
1126
  message?: string | undefined;
1113
1127
  stackTrace?: string | undefined;
1114
1128
  }, {
1115
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1129
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1116
1130
  type: "INTERNAL_ERROR";
1117
1131
  message?: string | undefined;
1118
1132
  stackTrace?: string | undefined;
@@ -1139,6 +1153,7 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1139
1153
  durationMs: number;
1140
1154
  }>>;
1141
1155
  }, "strip", z.ZodTypeAny, {
1156
+ id: string;
1142
1157
  error: {
1143
1158
  message: string;
1144
1159
  type: "BUILT_IN_ERROR";
@@ -1151,12 +1166,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1151
1166
  type: "STRING_ERROR";
1152
1167
  raw: string;
1153
1168
  } | {
1154
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1169
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1155
1170
  type: "INTERNAL_ERROR";
1156
1171
  message?: string | undefined;
1157
1172
  stackTrace?: string | undefined;
1158
1173
  };
1159
- id: string;
1160
1174
  ok: false;
1161
1175
  retry?: {
1162
1176
  timestamp: number;
@@ -1168,6 +1182,7 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1168
1182
  durationMs: number;
1169
1183
  } | undefined;
1170
1184
  }, {
1185
+ id: string;
1171
1186
  error: {
1172
1187
  message: string;
1173
1188
  type: "BUILT_IN_ERROR";
@@ -1180,12 +1195,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1180
1195
  type: "STRING_ERROR";
1181
1196
  raw: string;
1182
1197
  } | {
1183
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1198
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1184
1199
  type: "INTERNAL_ERROR";
1185
1200
  message?: string | undefined;
1186
1201
  stackTrace?: string | undefined;
1187
1202
  };
1188
- id: string;
1189
1203
  ok: false;
1190
1204
  retry?: {
1191
1205
  timestamp: number;
@@ -1266,16 +1280,16 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1266
1280
  raw: string;
1267
1281
  }>, z.ZodObject<{
1268
1282
  type: z.ZodLiteral<"INTERNAL_ERROR">;
1269
- 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED"]>;
1283
+ 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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
1270
1284
  message: z.ZodOptional<z.ZodString>;
1271
1285
  stackTrace: z.ZodOptional<z.ZodString>;
1272
1286
  }, "strip", z.ZodTypeAny, {
1273
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1287
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1274
1288
  type: "INTERNAL_ERROR";
1275
1289
  message?: string | undefined;
1276
1290
  stackTrace?: string | undefined;
1277
1291
  }, {
1278
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1292
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1279
1293
  type: "INTERNAL_ERROR";
1280
1294
  message?: string | undefined;
1281
1295
  stackTrace?: string | undefined;
@@ -1302,6 +1316,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1302
1316
  durationMs: number;
1303
1317
  }>>;
1304
1318
  }, "strip", z.ZodTypeAny, {
1319
+ id: string;
1305
1320
  error: {
1306
1321
  message: string;
1307
1322
  type: "BUILT_IN_ERROR";
@@ -1314,12 +1329,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1314
1329
  type: "STRING_ERROR";
1315
1330
  raw: string;
1316
1331
  } | {
1317
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1332
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1318
1333
  type: "INTERNAL_ERROR";
1319
1334
  message?: string | undefined;
1320
1335
  stackTrace?: string | undefined;
1321
1336
  };
1322
- id: string;
1323
1337
  ok: false;
1324
1338
  retry?: {
1325
1339
  timestamp: number;
@@ -1331,6 +1345,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1331
1345
  durationMs: number;
1332
1346
  } | undefined;
1333
1347
  }, {
1348
+ id: string;
1334
1349
  error: {
1335
1350
  message: string;
1336
1351
  type: "BUILT_IN_ERROR";
@@ -1343,12 +1358,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1343
1358
  type: "STRING_ERROR";
1344
1359
  raw: string;
1345
1360
  } | {
1346
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1361
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1347
1362
  type: "INTERNAL_ERROR";
1348
1363
  message?: string | undefined;
1349
1364
  stackTrace?: string | undefined;
1350
1365
  };
1351
- id: string;
1352
1366
  ok: false;
1353
1367
  retry?: {
1354
1368
  timestamp: number;
@@ -1363,6 +1377,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1363
1377
  }, "strip", z.ZodTypeAny, {
1364
1378
  id: string;
1365
1379
  items: ({
1380
+ id: string;
1366
1381
  error: {
1367
1382
  message: string;
1368
1383
  type: "BUILT_IN_ERROR";
@@ -1375,12 +1390,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1375
1390
  type: "STRING_ERROR";
1376
1391
  raw: string;
1377
1392
  } | {
1378
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1393
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1379
1394
  type: "INTERNAL_ERROR";
1380
1395
  message?: string | undefined;
1381
1396
  stackTrace?: string | undefined;
1382
1397
  };
1383
- id: string;
1384
1398
  ok: false;
1385
1399
  retry?: {
1386
1400
  timestamp: number;
@@ -1403,6 +1417,7 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1403
1417
  }, {
1404
1418
  id: string;
1405
1419
  items: ({
1420
+ id: string;
1406
1421
  error: {
1407
1422
  message: string;
1408
1423
  type: "BUILT_IN_ERROR";
@@ -1415,12 +1430,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1415
1430
  type: "STRING_ERROR";
1416
1431
  raw: string;
1417
1432
  } | {
1418
- 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1433
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
1419
1434
  type: "INTERNAL_ERROR";
1420
1435
  message?: string | undefined;
1421
1436
  stackTrace?: string | undefined;
1422
1437
  };
1423
- id: string;
1424
1438
  ok: false;
1425
1439
  retry?: {
1426
1440
  timestamp: number;