@trigger.dev/core 3.0.0-beta.4 → 3.0.0-beta.40

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 (79) hide show
  1. package/dist/catalog-EP9DGAGm.d.ts +242 -0
  2. package/dist/catalog-Gjy5NtAB.d.mts +242 -0
  3. package/dist/index.d.mts +60 -1
  4. package/dist/index.d.ts +60 -1
  5. package/dist/index.js +7 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +7 -1
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/manager-S98VaLUy.d.mts +1402 -0
  10. package/dist/manager-S98VaLUy.d.ts +1402 -0
  11. package/dist/messages-xJbR1Vai.d.mts +18953 -0
  12. package/dist/messages-xJbR1Vai.d.ts +18953 -0
  13. package/dist/schemas-Sb0sJcEt.d.mts +2497 -0
  14. package/dist/schemas-Sb0sJcEt.d.ts +2497 -0
  15. package/dist/v3/dev/index.d.mts +28 -0
  16. package/dist/v3/dev/index.d.ts +28 -0
  17. package/dist/v3/dev/index.js +93 -0
  18. package/dist/v3/dev/index.js.map +1 -0
  19. package/dist/v3/dev/index.mjs +91 -0
  20. package/dist/v3/dev/index.mjs.map +1 -0
  21. package/dist/v3/index.d.mts +2140 -17560
  22. package/dist/v3/index.d.ts +2140 -17560
  23. package/dist/v3/index.js +2611 -2886
  24. package/dist/v3/index.js.map +1 -1
  25. package/dist/v3/index.mjs +2563 -2858
  26. package/dist/v3/index.mjs.map +1 -1
  27. package/dist/v3/otel/index.js +106 -50
  28. package/dist/v3/otel/index.js.map +1 -1
  29. package/dist/v3/otel/index.mjs +106 -50
  30. package/dist/v3/otel/index.mjs.map +1 -1
  31. package/dist/v3/prod/index.d.mts +45 -0
  32. package/dist/v3/prod/index.d.ts +45 -0
  33. package/dist/v3/prod/index.js +304 -0
  34. package/dist/v3/prod/index.js.map +1 -0
  35. package/dist/v3/prod/index.mjs +302 -0
  36. package/dist/v3/prod/index.mjs.map +1 -0
  37. package/dist/v3/utils/structuredLogger.d.mts +31 -0
  38. package/dist/v3/utils/structuredLogger.d.ts +31 -0
  39. package/dist/v3/utils/structuredLogger.js +88 -0
  40. package/dist/v3/utils/structuredLogger.js.map +1 -0
  41. package/dist/v3/utils/structuredLogger.mjs +86 -0
  42. package/dist/v3/utils/structuredLogger.mjs.map +1 -0
  43. package/dist/v3/workers/index.d.mts +142 -0
  44. package/dist/v3/workers/index.d.ts +142 -0
  45. package/dist/v3/workers/index.js +3485 -0
  46. package/dist/v3/workers/index.js.map +1 -0
  47. package/dist/v3/workers/index.mjs +3466 -0
  48. package/dist/v3/workers/index.mjs.map +1 -0
  49. package/dist/v3/zodIpc.d.mts +32 -0
  50. package/dist/v3/zodIpc.d.ts +32 -0
  51. package/dist/v3/zodIpc.js +268 -0
  52. package/dist/v3/zodIpc.js.map +1 -0
  53. package/dist/v3/zodIpc.mjs +266 -0
  54. package/dist/v3/zodIpc.mjs.map +1 -0
  55. package/dist/v3/zodMessageHandler.d.mts +69 -0
  56. package/dist/v3/zodMessageHandler.d.ts +69 -0
  57. package/dist/v3/zodMessageHandler.js +168 -0
  58. package/dist/v3/zodMessageHandler.js.map +1 -0
  59. package/dist/v3/zodMessageHandler.mjs +163 -0
  60. package/dist/v3/zodMessageHandler.mjs.map +1 -0
  61. package/dist/v3/zodNamespace.d.mts +3663 -0
  62. package/dist/v3/zodNamespace.d.ts +3663 -0
  63. package/dist/v3/zodNamespace.js +366 -0
  64. package/dist/v3/zodNamespace.js.map +1 -0
  65. package/dist/v3/zodNamespace.mjs +364 -0
  66. package/dist/v3/zodNamespace.mjs.map +1 -0
  67. package/dist/v3/zodSocket.d.mts +88 -0
  68. package/dist/v3/zodSocket.d.ts +88 -0
  69. package/dist/v3/zodSocket.js +319 -0
  70. package/dist/v3/zodSocket.js.map +1 -0
  71. package/dist/v3/zodSocket.mjs +315 -0
  72. package/dist/v3/zodSocket.mjs.map +1 -0
  73. package/dist/v3/zodfetch.d.mts +206 -0
  74. package/dist/v3/zodfetch.d.ts +206 -0
  75. package/dist/v3/zodfetch.js +614 -0
  76. package/dist/v3/zodfetch.js.map +1 -0
  77. package/dist/v3/zodfetch.mjs +594 -0
  78. package/dist/v3/zodfetch.mjs.map +1 -0
  79. package/package.json +79 -5
@@ -0,0 +1,1402 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const MachineCpu: z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>;
4
+ type MachineCpu = z.infer<typeof MachineCpu>;
5
+ declare const MachineMemory: z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>;
6
+ type MachineMemory = z.infer<typeof MachineMemory>;
7
+ declare const MachinePresetName: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
8
+ type MachinePresetName = z.infer<typeof MachinePresetName>;
9
+ declare const MachineConfig: z.ZodObject<{
10
+ cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
11
+ 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>]>>;
12
+ preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
15
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
16
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
17
+ }, {
18
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
19
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
20
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
21
+ }>;
22
+ type MachineConfig = z.infer<typeof MachineConfig>;
23
+ declare const MachinePreset: z.ZodObject<{
24
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
25
+ cpu: z.ZodNumber;
26
+ memory: z.ZodNumber;
27
+ centsPerMs: z.ZodNumber;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
30
+ cpu: number;
31
+ memory: number;
32
+ centsPerMs: number;
33
+ }, {
34
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
35
+ cpu: number;
36
+ memory: number;
37
+ centsPerMs: number;
38
+ }>;
39
+ type MachinePreset = z.infer<typeof MachinePreset>;
40
+ declare const TaskRunBuiltInError: z.ZodObject<{
41
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
42
+ name: z.ZodString;
43
+ message: z.ZodString;
44
+ stackTrace: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ message: string;
47
+ type: "BUILT_IN_ERROR";
48
+ name: string;
49
+ stackTrace: string;
50
+ }, {
51
+ message: string;
52
+ type: "BUILT_IN_ERROR";
53
+ name: string;
54
+ stackTrace: string;
55
+ }>;
56
+ type TaskRunBuiltInError = z.infer<typeof TaskRunBuiltInError>;
57
+ declare const TaskRunCustomErrorObject: z.ZodObject<{
58
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
59
+ raw: z.ZodString;
60
+ }, "strip", z.ZodTypeAny, {
61
+ type: "CUSTOM_ERROR";
62
+ raw: string;
63
+ }, {
64
+ type: "CUSTOM_ERROR";
65
+ raw: string;
66
+ }>;
67
+ type TaskRunCustomErrorObject = z.infer<typeof TaskRunCustomErrorObject>;
68
+ declare const TaskRunStringError: z.ZodObject<{
69
+ type: z.ZodLiteral<"STRING_ERROR">;
70
+ raw: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: "STRING_ERROR";
73
+ raw: string;
74
+ }, {
75
+ type: "STRING_ERROR";
76
+ raw: string;
77
+ }>;
78
+ type TaskRunStringError = z.infer<typeof TaskRunStringError>;
79
+ declare const TaskRunErrorCodes: {
80
+ readonly COULD_NOT_FIND_EXECUTOR: "COULD_NOT_FIND_EXECUTOR";
81
+ readonly COULD_NOT_FIND_TASK: "COULD_NOT_FIND_TASK";
82
+ readonly CONFIGURED_INCORRECTLY: "CONFIGURED_INCORRECTLY";
83
+ readonly TASK_ALREADY_RUNNING: "TASK_ALREADY_RUNNING";
84
+ readonly TASK_EXECUTION_FAILED: "TASK_EXECUTION_FAILED";
85
+ readonly TASK_EXECUTION_ABORTED: "TASK_EXECUTION_ABORTED";
86
+ readonly TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE: "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE";
87
+ readonly TASK_PROCESS_SIGKILL_TIMEOUT: "TASK_PROCESS_SIGKILL_TIMEOUT";
88
+ readonly TASK_RUN_CANCELLED: "TASK_RUN_CANCELLED";
89
+ readonly TASK_OUTPUT_ERROR: "TASK_OUTPUT_ERROR";
90
+ readonly HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR";
91
+ readonly GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT";
92
+ };
93
+ declare const TaskRunInternalError: z.ZodObject<{
94
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
95
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_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"]>;
96
+ message: z.ZodOptional<z.ZodString>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
99
+ type: "INTERNAL_ERROR";
100
+ message?: string | undefined;
101
+ }, {
102
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
103
+ type: "INTERNAL_ERROR";
104
+ message?: string | undefined;
105
+ }>;
106
+ type TaskRunInternalError = z.infer<typeof TaskRunInternalError>;
107
+ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
108
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
109
+ name: z.ZodString;
110
+ message: z.ZodString;
111
+ stackTrace: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ message: string;
114
+ type: "BUILT_IN_ERROR";
115
+ name: string;
116
+ stackTrace: string;
117
+ }, {
118
+ message: string;
119
+ type: "BUILT_IN_ERROR";
120
+ name: string;
121
+ stackTrace: string;
122
+ }>, z.ZodObject<{
123
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
124
+ raw: z.ZodString;
125
+ }, "strip", z.ZodTypeAny, {
126
+ type: "CUSTOM_ERROR";
127
+ raw: string;
128
+ }, {
129
+ type: "CUSTOM_ERROR";
130
+ raw: string;
131
+ }>, z.ZodObject<{
132
+ type: z.ZodLiteral<"STRING_ERROR">;
133
+ raw: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: "STRING_ERROR";
136
+ raw: string;
137
+ }, {
138
+ type: "STRING_ERROR";
139
+ raw: string;
140
+ }>, z.ZodObject<{
141
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
142
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_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"]>;
143
+ message: z.ZodOptional<z.ZodString>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
146
+ type: "INTERNAL_ERROR";
147
+ message?: string | undefined;
148
+ }, {
149
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
150
+ type: "INTERNAL_ERROR";
151
+ message?: string | undefined;
152
+ }>]>;
153
+ type TaskRunError = z.infer<typeof TaskRunError>;
154
+ declare const TaskRun: z.ZodObject<{
155
+ id: z.ZodString;
156
+ payload: z.ZodString;
157
+ payloadType: z.ZodString;
158
+ context: z.ZodAny;
159
+ tags: z.ZodArray<z.ZodString, "many">;
160
+ isTest: z.ZodDefault<z.ZodBoolean>;
161
+ createdAt: z.ZodDate;
162
+ startedAt: z.ZodDefault<z.ZodDate>;
163
+ idempotencyKey: z.ZodOptional<z.ZodString>;
164
+ durationMs: z.ZodDefault<z.ZodNumber>;
165
+ costInCents: z.ZodDefault<z.ZodNumber>;
166
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ id: string;
169
+ startedAt: Date;
170
+ payload: string;
171
+ payloadType: string;
172
+ tags: string[];
173
+ isTest: boolean;
174
+ createdAt: Date;
175
+ durationMs: number;
176
+ costInCents: number;
177
+ baseCostInCents: number;
178
+ context?: any;
179
+ idempotencyKey?: string | undefined;
180
+ }, {
181
+ id: string;
182
+ payload: string;
183
+ payloadType: string;
184
+ tags: string[];
185
+ createdAt: Date;
186
+ context?: any;
187
+ isTest?: boolean | undefined;
188
+ startedAt?: Date | undefined;
189
+ idempotencyKey?: string | undefined;
190
+ durationMs?: number | undefined;
191
+ costInCents?: number | undefined;
192
+ baseCostInCents?: number | undefined;
193
+ }>;
194
+ type TaskRun = z.infer<typeof TaskRun>;
195
+ declare const TaskRunExecutionTask: z.ZodObject<{
196
+ id: z.ZodString;
197
+ filePath: z.ZodString;
198
+ exportName: z.ZodString;
199
+ }, "strip", z.ZodTypeAny, {
200
+ id: string;
201
+ filePath: string;
202
+ exportName: string;
203
+ }, {
204
+ id: string;
205
+ filePath: string;
206
+ exportName: string;
207
+ }>;
208
+ type TaskRunExecutionTask = z.infer<typeof TaskRunExecutionTask>;
209
+ declare const TaskRunExecutionAttempt: z.ZodObject<{
210
+ id: z.ZodString;
211
+ number: z.ZodNumber;
212
+ startedAt: z.ZodDate;
213
+ backgroundWorkerId: z.ZodString;
214
+ backgroundWorkerTaskId: z.ZodString;
215
+ status: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ number: number;
218
+ status: string;
219
+ id: string;
220
+ startedAt: Date;
221
+ backgroundWorkerId: string;
222
+ backgroundWorkerTaskId: string;
223
+ }, {
224
+ number: number;
225
+ status: string;
226
+ id: string;
227
+ startedAt: Date;
228
+ backgroundWorkerId: string;
229
+ backgroundWorkerTaskId: string;
230
+ }>;
231
+ type TaskRunExecutionAttempt = z.infer<typeof TaskRunExecutionAttempt>;
232
+ declare const TaskRunExecutionEnvironment: z.ZodObject<{
233
+ id: z.ZodString;
234
+ slug: z.ZodString;
235
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
238
+ id: string;
239
+ slug: string;
240
+ }, {
241
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
242
+ id: string;
243
+ slug: string;
244
+ }>;
245
+ type TaskRunExecutionEnvironment = z.infer<typeof TaskRunExecutionEnvironment>;
246
+ declare const TaskRunExecutionOrganization: z.ZodObject<{
247
+ id: z.ZodString;
248
+ slug: z.ZodString;
249
+ name: z.ZodString;
250
+ }, "strip", z.ZodTypeAny, {
251
+ id: string;
252
+ name: string;
253
+ slug: string;
254
+ }, {
255
+ id: string;
256
+ name: string;
257
+ slug: string;
258
+ }>;
259
+ type TaskRunExecutionOrganization = z.infer<typeof TaskRunExecutionOrganization>;
260
+ declare const TaskRunExecutionProject: z.ZodObject<{
261
+ id: z.ZodString;
262
+ ref: z.ZodString;
263
+ slug: z.ZodString;
264
+ name: z.ZodString;
265
+ }, "strip", z.ZodTypeAny, {
266
+ id: string;
267
+ name: string;
268
+ slug: string;
269
+ ref: string;
270
+ }, {
271
+ id: string;
272
+ name: string;
273
+ slug: string;
274
+ ref: string;
275
+ }>;
276
+ type TaskRunExecutionProject = z.infer<typeof TaskRunExecutionProject>;
277
+ declare const TaskRunExecutionQueue: z.ZodObject<{
278
+ id: z.ZodString;
279
+ name: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ id: string;
282
+ name: string;
283
+ }, {
284
+ id: string;
285
+ name: string;
286
+ }>;
287
+ type TaskRunExecutionQueue = z.infer<typeof TaskRunExecutionQueue>;
288
+ declare const TaskRunExecutionBatch: z.ZodObject<{
289
+ id: z.ZodString;
290
+ }, "strip", z.ZodTypeAny, {
291
+ id: string;
292
+ }, {
293
+ id: string;
294
+ }>;
295
+ declare const TaskRunExecution: z.ZodObject<{
296
+ task: z.ZodObject<{
297
+ id: z.ZodString;
298
+ filePath: z.ZodString;
299
+ exportName: z.ZodString;
300
+ }, "strip", z.ZodTypeAny, {
301
+ id: string;
302
+ filePath: string;
303
+ exportName: string;
304
+ }, {
305
+ id: string;
306
+ filePath: string;
307
+ exportName: string;
308
+ }>;
309
+ attempt: z.ZodObject<{
310
+ id: z.ZodString;
311
+ number: z.ZodNumber;
312
+ startedAt: z.ZodDate;
313
+ backgroundWorkerId: z.ZodString;
314
+ backgroundWorkerTaskId: z.ZodString;
315
+ status: z.ZodString;
316
+ }, "strip", z.ZodTypeAny, {
317
+ number: number;
318
+ status: string;
319
+ id: string;
320
+ startedAt: Date;
321
+ backgroundWorkerId: string;
322
+ backgroundWorkerTaskId: string;
323
+ }, {
324
+ number: number;
325
+ status: string;
326
+ id: string;
327
+ startedAt: Date;
328
+ backgroundWorkerId: string;
329
+ backgroundWorkerTaskId: string;
330
+ }>;
331
+ run: z.ZodObject<{
332
+ id: z.ZodString;
333
+ payload: z.ZodString;
334
+ payloadType: z.ZodString;
335
+ context: z.ZodAny;
336
+ tags: z.ZodArray<z.ZodString, "many">;
337
+ isTest: z.ZodDefault<z.ZodBoolean>;
338
+ createdAt: z.ZodDate;
339
+ startedAt: z.ZodDefault<z.ZodDate>;
340
+ idempotencyKey: z.ZodOptional<z.ZodString>;
341
+ durationMs: z.ZodDefault<z.ZodNumber>;
342
+ costInCents: z.ZodDefault<z.ZodNumber>;
343
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ id: string;
346
+ startedAt: Date;
347
+ payload: string;
348
+ payloadType: string;
349
+ tags: string[];
350
+ isTest: boolean;
351
+ createdAt: Date;
352
+ durationMs: number;
353
+ costInCents: number;
354
+ baseCostInCents: number;
355
+ context?: any;
356
+ idempotencyKey?: string | undefined;
357
+ }, {
358
+ id: string;
359
+ payload: string;
360
+ payloadType: string;
361
+ tags: string[];
362
+ createdAt: Date;
363
+ context?: any;
364
+ isTest?: boolean | undefined;
365
+ startedAt?: Date | undefined;
366
+ idempotencyKey?: string | undefined;
367
+ durationMs?: number | undefined;
368
+ costInCents?: number | undefined;
369
+ baseCostInCents?: number | undefined;
370
+ }>;
371
+ queue: z.ZodObject<{
372
+ id: z.ZodString;
373
+ name: z.ZodString;
374
+ }, "strip", z.ZodTypeAny, {
375
+ id: string;
376
+ name: string;
377
+ }, {
378
+ id: string;
379
+ name: string;
380
+ }>;
381
+ environment: z.ZodObject<{
382
+ id: z.ZodString;
383
+ slug: z.ZodString;
384
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
387
+ id: string;
388
+ slug: string;
389
+ }, {
390
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
391
+ id: string;
392
+ slug: string;
393
+ }>;
394
+ organization: z.ZodObject<{
395
+ id: z.ZodString;
396
+ slug: z.ZodString;
397
+ name: z.ZodString;
398
+ }, "strip", z.ZodTypeAny, {
399
+ id: string;
400
+ name: string;
401
+ slug: string;
402
+ }, {
403
+ id: string;
404
+ name: string;
405
+ slug: string;
406
+ }>;
407
+ project: z.ZodObject<{
408
+ id: z.ZodString;
409
+ ref: z.ZodString;
410
+ slug: z.ZodString;
411
+ name: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ id: string;
414
+ name: string;
415
+ slug: string;
416
+ ref: string;
417
+ }, {
418
+ id: string;
419
+ name: string;
420
+ slug: string;
421
+ ref: string;
422
+ }>;
423
+ batch: z.ZodOptional<z.ZodObject<{
424
+ id: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ id: string;
427
+ }, {
428
+ id: string;
429
+ }>>;
430
+ machine: z.ZodOptional<z.ZodObject<{
431
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
432
+ cpu: z.ZodNumber;
433
+ memory: z.ZodNumber;
434
+ centsPerMs: z.ZodNumber;
435
+ }, "strip", z.ZodTypeAny, {
436
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
437
+ cpu: number;
438
+ memory: number;
439
+ centsPerMs: number;
440
+ }, {
441
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
442
+ cpu: number;
443
+ memory: number;
444
+ centsPerMs: number;
445
+ }>>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ task: {
448
+ id: string;
449
+ filePath: string;
450
+ exportName: string;
451
+ };
452
+ attempt: {
453
+ number: number;
454
+ status: string;
455
+ id: string;
456
+ startedAt: Date;
457
+ backgroundWorkerId: string;
458
+ backgroundWorkerTaskId: string;
459
+ };
460
+ run: {
461
+ id: string;
462
+ startedAt: Date;
463
+ payload: string;
464
+ payloadType: string;
465
+ tags: string[];
466
+ isTest: boolean;
467
+ createdAt: Date;
468
+ durationMs: number;
469
+ costInCents: number;
470
+ baseCostInCents: number;
471
+ context?: any;
472
+ idempotencyKey?: string | undefined;
473
+ };
474
+ queue: {
475
+ id: string;
476
+ name: string;
477
+ };
478
+ environment: {
479
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
480
+ id: string;
481
+ slug: string;
482
+ };
483
+ organization: {
484
+ id: string;
485
+ name: string;
486
+ slug: string;
487
+ };
488
+ project: {
489
+ id: string;
490
+ name: string;
491
+ slug: string;
492
+ ref: string;
493
+ };
494
+ batch?: {
495
+ id: string;
496
+ } | undefined;
497
+ machine?: {
498
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
499
+ cpu: number;
500
+ memory: number;
501
+ centsPerMs: number;
502
+ } | undefined;
503
+ }, {
504
+ task: {
505
+ id: string;
506
+ filePath: string;
507
+ exportName: string;
508
+ };
509
+ attempt: {
510
+ number: number;
511
+ status: string;
512
+ id: string;
513
+ startedAt: Date;
514
+ backgroundWorkerId: string;
515
+ backgroundWorkerTaskId: string;
516
+ };
517
+ run: {
518
+ id: string;
519
+ payload: string;
520
+ payloadType: string;
521
+ tags: string[];
522
+ createdAt: Date;
523
+ context?: any;
524
+ isTest?: boolean | undefined;
525
+ startedAt?: Date | undefined;
526
+ idempotencyKey?: string | undefined;
527
+ durationMs?: number | undefined;
528
+ costInCents?: number | undefined;
529
+ baseCostInCents?: number | undefined;
530
+ };
531
+ queue: {
532
+ id: string;
533
+ name: string;
534
+ };
535
+ environment: {
536
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
537
+ id: string;
538
+ slug: string;
539
+ };
540
+ organization: {
541
+ id: string;
542
+ name: string;
543
+ slug: string;
544
+ };
545
+ project: {
546
+ id: string;
547
+ name: string;
548
+ slug: string;
549
+ ref: string;
550
+ };
551
+ batch?: {
552
+ id: string;
553
+ } | undefined;
554
+ machine?: {
555
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
556
+ cpu: number;
557
+ memory: number;
558
+ centsPerMs: number;
559
+ } | undefined;
560
+ }>;
561
+ type TaskRunExecution = z.infer<typeof TaskRunExecution>;
562
+ declare const TaskRunContext: z.ZodObject<{
563
+ task: z.ZodObject<{
564
+ id: z.ZodString;
565
+ filePath: z.ZodString;
566
+ exportName: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ id: string;
569
+ filePath: string;
570
+ exportName: string;
571
+ }, {
572
+ id: string;
573
+ filePath: string;
574
+ exportName: string;
575
+ }>;
576
+ attempt: z.ZodObject<Omit<{
577
+ id: z.ZodString;
578
+ number: z.ZodNumber;
579
+ startedAt: z.ZodDate;
580
+ backgroundWorkerId: z.ZodString;
581
+ backgroundWorkerTaskId: z.ZodString;
582
+ status: z.ZodString;
583
+ }, "backgroundWorkerId" | "backgroundWorkerTaskId">, "strip", z.ZodTypeAny, {
584
+ number: number;
585
+ status: string;
586
+ id: string;
587
+ startedAt: Date;
588
+ }, {
589
+ number: number;
590
+ status: string;
591
+ id: string;
592
+ startedAt: Date;
593
+ }>;
594
+ run: z.ZodObject<Omit<{
595
+ id: z.ZodString;
596
+ payload: z.ZodString;
597
+ payloadType: z.ZodString;
598
+ context: z.ZodAny;
599
+ tags: z.ZodArray<z.ZodString, "many">;
600
+ isTest: z.ZodDefault<z.ZodBoolean>;
601
+ createdAt: z.ZodDate;
602
+ startedAt: z.ZodDefault<z.ZodDate>;
603
+ idempotencyKey: z.ZodOptional<z.ZodString>;
604
+ durationMs: z.ZodDefault<z.ZodNumber>;
605
+ costInCents: z.ZodDefault<z.ZodNumber>;
606
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
607
+ }, "payload" | "payloadType">, "strip", z.ZodTypeAny, {
608
+ id: string;
609
+ startedAt: Date;
610
+ tags: string[];
611
+ isTest: boolean;
612
+ createdAt: Date;
613
+ durationMs: number;
614
+ costInCents: number;
615
+ baseCostInCents: number;
616
+ context?: any;
617
+ idempotencyKey?: string | undefined;
618
+ }, {
619
+ id: string;
620
+ tags: string[];
621
+ createdAt: Date;
622
+ startedAt?: Date | undefined;
623
+ context?: any;
624
+ isTest?: boolean | undefined;
625
+ idempotencyKey?: string | undefined;
626
+ durationMs?: number | undefined;
627
+ costInCents?: number | undefined;
628
+ baseCostInCents?: number | undefined;
629
+ }>;
630
+ queue: z.ZodObject<{
631
+ id: z.ZodString;
632
+ name: z.ZodString;
633
+ }, "strip", z.ZodTypeAny, {
634
+ id: string;
635
+ name: string;
636
+ }, {
637
+ id: string;
638
+ name: string;
639
+ }>;
640
+ environment: z.ZodObject<{
641
+ id: z.ZodString;
642
+ slug: z.ZodString;
643
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
646
+ id: string;
647
+ slug: string;
648
+ }, {
649
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
650
+ id: string;
651
+ slug: string;
652
+ }>;
653
+ organization: z.ZodObject<{
654
+ id: z.ZodString;
655
+ slug: z.ZodString;
656
+ name: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ id: string;
659
+ name: string;
660
+ slug: string;
661
+ }, {
662
+ id: string;
663
+ name: string;
664
+ slug: string;
665
+ }>;
666
+ project: z.ZodObject<{
667
+ id: z.ZodString;
668
+ ref: z.ZodString;
669
+ slug: z.ZodString;
670
+ name: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ id: string;
673
+ name: string;
674
+ slug: string;
675
+ ref: string;
676
+ }, {
677
+ id: string;
678
+ name: string;
679
+ slug: string;
680
+ ref: string;
681
+ }>;
682
+ batch: z.ZodOptional<z.ZodObject<{
683
+ id: z.ZodString;
684
+ }, "strip", z.ZodTypeAny, {
685
+ id: string;
686
+ }, {
687
+ id: string;
688
+ }>>;
689
+ machine: z.ZodOptional<z.ZodObject<{
690
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
691
+ cpu: z.ZodNumber;
692
+ memory: z.ZodNumber;
693
+ centsPerMs: z.ZodNumber;
694
+ }, "strip", z.ZodTypeAny, {
695
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
696
+ cpu: number;
697
+ memory: number;
698
+ centsPerMs: number;
699
+ }, {
700
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
701
+ cpu: number;
702
+ memory: number;
703
+ centsPerMs: number;
704
+ }>>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ task: {
707
+ id: string;
708
+ filePath: string;
709
+ exportName: string;
710
+ };
711
+ attempt: {
712
+ number: number;
713
+ status: string;
714
+ id: string;
715
+ startedAt: Date;
716
+ };
717
+ run: {
718
+ id: string;
719
+ startedAt: Date;
720
+ tags: string[];
721
+ isTest: boolean;
722
+ createdAt: Date;
723
+ durationMs: number;
724
+ costInCents: number;
725
+ baseCostInCents: number;
726
+ context?: any;
727
+ idempotencyKey?: string | undefined;
728
+ };
729
+ queue: {
730
+ id: string;
731
+ name: string;
732
+ };
733
+ environment: {
734
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
735
+ id: string;
736
+ slug: string;
737
+ };
738
+ organization: {
739
+ id: string;
740
+ name: string;
741
+ slug: string;
742
+ };
743
+ project: {
744
+ id: string;
745
+ name: string;
746
+ slug: string;
747
+ ref: string;
748
+ };
749
+ batch?: {
750
+ id: string;
751
+ } | undefined;
752
+ machine?: {
753
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
754
+ cpu: number;
755
+ memory: number;
756
+ centsPerMs: number;
757
+ } | undefined;
758
+ }, {
759
+ task: {
760
+ id: string;
761
+ filePath: string;
762
+ exportName: string;
763
+ };
764
+ attempt: {
765
+ number: number;
766
+ status: string;
767
+ id: string;
768
+ startedAt: Date;
769
+ };
770
+ run: {
771
+ id: string;
772
+ tags: string[];
773
+ createdAt: Date;
774
+ startedAt?: Date | undefined;
775
+ context?: any;
776
+ isTest?: boolean | undefined;
777
+ idempotencyKey?: string | undefined;
778
+ durationMs?: number | undefined;
779
+ costInCents?: number | undefined;
780
+ baseCostInCents?: number | undefined;
781
+ };
782
+ queue: {
783
+ id: string;
784
+ name: string;
785
+ };
786
+ environment: {
787
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
788
+ id: string;
789
+ slug: string;
790
+ };
791
+ organization: {
792
+ id: string;
793
+ name: string;
794
+ slug: string;
795
+ };
796
+ project: {
797
+ id: string;
798
+ name: string;
799
+ slug: string;
800
+ ref: string;
801
+ };
802
+ batch?: {
803
+ id: string;
804
+ } | undefined;
805
+ machine?: {
806
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
807
+ cpu: number;
808
+ memory: number;
809
+ centsPerMs: number;
810
+ } | undefined;
811
+ }>;
812
+ type TaskRunContext = z.infer<typeof TaskRunContext>;
813
+ declare const TaskRunExecutionRetry: z.ZodObject<{
814
+ timestamp: z.ZodNumber;
815
+ delay: z.ZodNumber;
816
+ error: z.ZodOptional<z.ZodUnknown>;
817
+ }, "strip", z.ZodTypeAny, {
818
+ timestamp: number;
819
+ delay: number;
820
+ error?: unknown;
821
+ }, {
822
+ timestamp: number;
823
+ delay: number;
824
+ error?: unknown;
825
+ }>;
826
+ type TaskRunExecutionRetry = z.infer<typeof TaskRunExecutionRetry>;
827
+ declare const TaskRunExecutionUsage: z.ZodObject<{
828
+ durationMs: z.ZodNumber;
829
+ }, "strip", z.ZodTypeAny, {
830
+ durationMs: number;
831
+ }, {
832
+ durationMs: number;
833
+ }>;
834
+ type TaskRunExecutionUsage = z.infer<typeof TaskRunExecutionUsage>;
835
+ declare const TaskRunFailedExecutionResult: z.ZodObject<{
836
+ ok: z.ZodLiteral<false>;
837
+ id: z.ZodString;
838
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
839
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
840
+ name: z.ZodString;
841
+ message: z.ZodString;
842
+ stackTrace: z.ZodString;
843
+ }, "strip", z.ZodTypeAny, {
844
+ message: string;
845
+ type: "BUILT_IN_ERROR";
846
+ name: string;
847
+ stackTrace: string;
848
+ }, {
849
+ message: string;
850
+ type: "BUILT_IN_ERROR";
851
+ name: string;
852
+ stackTrace: string;
853
+ }>, z.ZodObject<{
854
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
855
+ raw: z.ZodString;
856
+ }, "strip", z.ZodTypeAny, {
857
+ type: "CUSTOM_ERROR";
858
+ raw: string;
859
+ }, {
860
+ type: "CUSTOM_ERROR";
861
+ raw: string;
862
+ }>, z.ZodObject<{
863
+ type: z.ZodLiteral<"STRING_ERROR">;
864
+ raw: z.ZodString;
865
+ }, "strip", z.ZodTypeAny, {
866
+ type: "STRING_ERROR";
867
+ raw: string;
868
+ }, {
869
+ type: "STRING_ERROR";
870
+ raw: string;
871
+ }>, z.ZodObject<{
872
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
873
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_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"]>;
874
+ message: z.ZodOptional<z.ZodString>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
877
+ type: "INTERNAL_ERROR";
878
+ message?: string | undefined;
879
+ }, {
880
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
881
+ type: "INTERNAL_ERROR";
882
+ message?: string | undefined;
883
+ }>]>;
884
+ retry: z.ZodOptional<z.ZodObject<{
885
+ timestamp: z.ZodNumber;
886
+ delay: z.ZodNumber;
887
+ error: z.ZodOptional<z.ZodUnknown>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ timestamp: number;
890
+ delay: number;
891
+ error?: unknown;
892
+ }, {
893
+ timestamp: number;
894
+ delay: number;
895
+ error?: unknown;
896
+ }>>;
897
+ skippedRetrying: z.ZodOptional<z.ZodBoolean>;
898
+ usage: z.ZodOptional<z.ZodObject<{
899
+ durationMs: z.ZodNumber;
900
+ }, "strip", z.ZodTypeAny, {
901
+ durationMs: number;
902
+ }, {
903
+ durationMs: number;
904
+ }>>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ error: {
907
+ message: string;
908
+ type: "BUILT_IN_ERROR";
909
+ name: string;
910
+ stackTrace: string;
911
+ } | {
912
+ type: "CUSTOM_ERROR";
913
+ raw: string;
914
+ } | {
915
+ type: "STRING_ERROR";
916
+ raw: string;
917
+ } | {
918
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
919
+ type: "INTERNAL_ERROR";
920
+ message?: string | undefined;
921
+ };
922
+ id: string;
923
+ ok: false;
924
+ retry?: {
925
+ timestamp: number;
926
+ delay: number;
927
+ error?: unknown;
928
+ } | undefined;
929
+ skippedRetrying?: boolean | undefined;
930
+ usage?: {
931
+ durationMs: number;
932
+ } | undefined;
933
+ }, {
934
+ error: {
935
+ message: string;
936
+ type: "BUILT_IN_ERROR";
937
+ name: string;
938
+ stackTrace: string;
939
+ } | {
940
+ type: "CUSTOM_ERROR";
941
+ raw: string;
942
+ } | {
943
+ type: "STRING_ERROR";
944
+ raw: string;
945
+ } | {
946
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
947
+ type: "INTERNAL_ERROR";
948
+ message?: string | undefined;
949
+ };
950
+ id: string;
951
+ ok: false;
952
+ retry?: {
953
+ timestamp: number;
954
+ delay: number;
955
+ error?: unknown;
956
+ } | undefined;
957
+ skippedRetrying?: boolean | undefined;
958
+ usage?: {
959
+ durationMs: number;
960
+ } | undefined;
961
+ }>;
962
+ type TaskRunFailedExecutionResult = z.infer<typeof TaskRunFailedExecutionResult>;
963
+ declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
964
+ ok: z.ZodLiteral<true>;
965
+ id: z.ZodString;
966
+ output: z.ZodOptional<z.ZodString>;
967
+ outputType: z.ZodString;
968
+ usage: z.ZodOptional<z.ZodObject<{
969
+ durationMs: z.ZodNumber;
970
+ }, "strip", z.ZodTypeAny, {
971
+ durationMs: number;
972
+ }, {
973
+ durationMs: number;
974
+ }>>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ id: string;
977
+ ok: true;
978
+ outputType: string;
979
+ output?: string | undefined;
980
+ usage?: {
981
+ durationMs: number;
982
+ } | undefined;
983
+ }, {
984
+ id: string;
985
+ ok: true;
986
+ outputType: string;
987
+ output?: string | undefined;
988
+ usage?: {
989
+ durationMs: number;
990
+ } | undefined;
991
+ }>;
992
+ type TaskRunSuccessfulExecutionResult = z.infer<typeof TaskRunSuccessfulExecutionResult>;
993
+ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
994
+ ok: z.ZodLiteral<true>;
995
+ id: z.ZodString;
996
+ output: z.ZodOptional<z.ZodString>;
997
+ outputType: z.ZodString;
998
+ usage: z.ZodOptional<z.ZodObject<{
999
+ durationMs: z.ZodNumber;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ durationMs: number;
1002
+ }, {
1003
+ durationMs: number;
1004
+ }>>;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ id: string;
1007
+ ok: true;
1008
+ outputType: string;
1009
+ output?: string | undefined;
1010
+ usage?: {
1011
+ durationMs: number;
1012
+ } | undefined;
1013
+ }, {
1014
+ id: string;
1015
+ ok: true;
1016
+ outputType: string;
1017
+ output?: string | undefined;
1018
+ usage?: {
1019
+ durationMs: number;
1020
+ } | undefined;
1021
+ }>, z.ZodObject<{
1022
+ ok: z.ZodLiteral<false>;
1023
+ id: z.ZodString;
1024
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1025
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
1026
+ name: z.ZodString;
1027
+ message: z.ZodString;
1028
+ stackTrace: z.ZodString;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ message: string;
1031
+ type: "BUILT_IN_ERROR";
1032
+ name: string;
1033
+ stackTrace: string;
1034
+ }, {
1035
+ message: string;
1036
+ type: "BUILT_IN_ERROR";
1037
+ name: string;
1038
+ stackTrace: string;
1039
+ }>, z.ZodObject<{
1040
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
1041
+ raw: z.ZodString;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ type: "CUSTOM_ERROR";
1044
+ raw: string;
1045
+ }, {
1046
+ type: "CUSTOM_ERROR";
1047
+ raw: string;
1048
+ }>, z.ZodObject<{
1049
+ type: z.ZodLiteral<"STRING_ERROR">;
1050
+ raw: z.ZodString;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ type: "STRING_ERROR";
1053
+ raw: string;
1054
+ }, {
1055
+ type: "STRING_ERROR";
1056
+ raw: string;
1057
+ }>, z.ZodObject<{
1058
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
1059
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_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"]>;
1060
+ message: z.ZodOptional<z.ZodString>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1063
+ type: "INTERNAL_ERROR";
1064
+ message?: string | undefined;
1065
+ }, {
1066
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1067
+ type: "INTERNAL_ERROR";
1068
+ message?: string | undefined;
1069
+ }>]>;
1070
+ retry: z.ZodOptional<z.ZodObject<{
1071
+ timestamp: z.ZodNumber;
1072
+ delay: z.ZodNumber;
1073
+ error: z.ZodOptional<z.ZodUnknown>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ timestamp: number;
1076
+ delay: number;
1077
+ error?: unknown;
1078
+ }, {
1079
+ timestamp: number;
1080
+ delay: number;
1081
+ error?: unknown;
1082
+ }>>;
1083
+ skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1084
+ usage: z.ZodOptional<z.ZodObject<{
1085
+ durationMs: z.ZodNumber;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ durationMs: number;
1088
+ }, {
1089
+ durationMs: number;
1090
+ }>>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ error: {
1093
+ message: string;
1094
+ type: "BUILT_IN_ERROR";
1095
+ name: string;
1096
+ stackTrace: string;
1097
+ } | {
1098
+ type: "CUSTOM_ERROR";
1099
+ raw: string;
1100
+ } | {
1101
+ type: "STRING_ERROR";
1102
+ raw: string;
1103
+ } | {
1104
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1105
+ type: "INTERNAL_ERROR";
1106
+ message?: string | undefined;
1107
+ };
1108
+ id: string;
1109
+ ok: false;
1110
+ retry?: {
1111
+ timestamp: number;
1112
+ delay: number;
1113
+ error?: unknown;
1114
+ } | undefined;
1115
+ skippedRetrying?: boolean | undefined;
1116
+ usage?: {
1117
+ durationMs: number;
1118
+ } | undefined;
1119
+ }, {
1120
+ error: {
1121
+ message: string;
1122
+ type: "BUILT_IN_ERROR";
1123
+ name: string;
1124
+ stackTrace: string;
1125
+ } | {
1126
+ type: "CUSTOM_ERROR";
1127
+ raw: string;
1128
+ } | {
1129
+ type: "STRING_ERROR";
1130
+ raw: string;
1131
+ } | {
1132
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1133
+ type: "INTERNAL_ERROR";
1134
+ message?: string | undefined;
1135
+ };
1136
+ id: string;
1137
+ ok: false;
1138
+ retry?: {
1139
+ timestamp: number;
1140
+ delay: number;
1141
+ error?: unknown;
1142
+ } | undefined;
1143
+ skippedRetrying?: boolean | undefined;
1144
+ usage?: {
1145
+ durationMs: number;
1146
+ } | undefined;
1147
+ }>]>;
1148
+ type TaskRunExecutionResult = z.infer<typeof TaskRunExecutionResult>;
1149
+ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1150
+ id: z.ZodString;
1151
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1152
+ ok: z.ZodLiteral<true>;
1153
+ id: z.ZodString;
1154
+ output: z.ZodOptional<z.ZodString>;
1155
+ outputType: z.ZodString;
1156
+ usage: z.ZodOptional<z.ZodObject<{
1157
+ durationMs: z.ZodNumber;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ durationMs: number;
1160
+ }, {
1161
+ durationMs: number;
1162
+ }>>;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ id: string;
1165
+ ok: true;
1166
+ outputType: string;
1167
+ output?: string | undefined;
1168
+ usage?: {
1169
+ durationMs: number;
1170
+ } | undefined;
1171
+ }, {
1172
+ id: string;
1173
+ ok: true;
1174
+ outputType: string;
1175
+ output?: string | undefined;
1176
+ usage?: {
1177
+ durationMs: number;
1178
+ } | undefined;
1179
+ }>, z.ZodObject<{
1180
+ ok: z.ZodLiteral<false>;
1181
+ id: z.ZodString;
1182
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1183
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
1184
+ name: z.ZodString;
1185
+ message: z.ZodString;
1186
+ stackTrace: z.ZodString;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ message: string;
1189
+ type: "BUILT_IN_ERROR";
1190
+ name: string;
1191
+ stackTrace: string;
1192
+ }, {
1193
+ message: string;
1194
+ type: "BUILT_IN_ERROR";
1195
+ name: string;
1196
+ stackTrace: string;
1197
+ }>, z.ZodObject<{
1198
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
1199
+ raw: z.ZodString;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ type: "CUSTOM_ERROR";
1202
+ raw: string;
1203
+ }, {
1204
+ type: "CUSTOM_ERROR";
1205
+ raw: string;
1206
+ }>, z.ZodObject<{
1207
+ type: z.ZodLiteral<"STRING_ERROR">;
1208
+ raw: z.ZodString;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ type: "STRING_ERROR";
1211
+ raw: string;
1212
+ }, {
1213
+ type: "STRING_ERROR";
1214
+ raw: string;
1215
+ }>, z.ZodObject<{
1216
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
1217
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_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"]>;
1218
+ message: z.ZodOptional<z.ZodString>;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1221
+ type: "INTERNAL_ERROR";
1222
+ message?: string | undefined;
1223
+ }, {
1224
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1225
+ type: "INTERNAL_ERROR";
1226
+ message?: string | undefined;
1227
+ }>]>;
1228
+ retry: z.ZodOptional<z.ZodObject<{
1229
+ timestamp: z.ZodNumber;
1230
+ delay: z.ZodNumber;
1231
+ error: z.ZodOptional<z.ZodUnknown>;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ timestamp: number;
1234
+ delay: number;
1235
+ error?: unknown;
1236
+ }, {
1237
+ timestamp: number;
1238
+ delay: number;
1239
+ error?: unknown;
1240
+ }>>;
1241
+ skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1242
+ usage: z.ZodOptional<z.ZodObject<{
1243
+ durationMs: z.ZodNumber;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ durationMs: number;
1246
+ }, {
1247
+ durationMs: number;
1248
+ }>>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ error: {
1251
+ message: string;
1252
+ type: "BUILT_IN_ERROR";
1253
+ name: string;
1254
+ stackTrace: string;
1255
+ } | {
1256
+ type: "CUSTOM_ERROR";
1257
+ raw: string;
1258
+ } | {
1259
+ type: "STRING_ERROR";
1260
+ raw: string;
1261
+ } | {
1262
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1263
+ type: "INTERNAL_ERROR";
1264
+ message?: string | undefined;
1265
+ };
1266
+ id: string;
1267
+ ok: false;
1268
+ retry?: {
1269
+ timestamp: number;
1270
+ delay: number;
1271
+ error?: unknown;
1272
+ } | undefined;
1273
+ skippedRetrying?: boolean | undefined;
1274
+ usage?: {
1275
+ durationMs: number;
1276
+ } | undefined;
1277
+ }, {
1278
+ error: {
1279
+ message: string;
1280
+ type: "BUILT_IN_ERROR";
1281
+ name: string;
1282
+ stackTrace: string;
1283
+ } | {
1284
+ type: "CUSTOM_ERROR";
1285
+ raw: string;
1286
+ } | {
1287
+ type: "STRING_ERROR";
1288
+ raw: string;
1289
+ } | {
1290
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1291
+ type: "INTERNAL_ERROR";
1292
+ message?: string | undefined;
1293
+ };
1294
+ id: string;
1295
+ ok: false;
1296
+ retry?: {
1297
+ timestamp: number;
1298
+ delay: number;
1299
+ error?: unknown;
1300
+ } | undefined;
1301
+ skippedRetrying?: boolean | undefined;
1302
+ usage?: {
1303
+ durationMs: number;
1304
+ } | undefined;
1305
+ }>]>, "many">;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ id: string;
1308
+ items: ({
1309
+ id: string;
1310
+ ok: true;
1311
+ outputType: string;
1312
+ output?: string | undefined;
1313
+ usage?: {
1314
+ durationMs: number;
1315
+ } | undefined;
1316
+ } | {
1317
+ error: {
1318
+ message: string;
1319
+ type: "BUILT_IN_ERROR";
1320
+ name: string;
1321
+ stackTrace: string;
1322
+ } | {
1323
+ type: "CUSTOM_ERROR";
1324
+ raw: string;
1325
+ } | {
1326
+ type: "STRING_ERROR";
1327
+ raw: string;
1328
+ } | {
1329
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1330
+ type: "INTERNAL_ERROR";
1331
+ message?: string | undefined;
1332
+ };
1333
+ id: string;
1334
+ ok: false;
1335
+ retry?: {
1336
+ timestamp: number;
1337
+ delay: number;
1338
+ error?: unknown;
1339
+ } | undefined;
1340
+ skippedRetrying?: boolean | undefined;
1341
+ usage?: {
1342
+ durationMs: number;
1343
+ } | undefined;
1344
+ })[];
1345
+ }, {
1346
+ id: string;
1347
+ items: ({
1348
+ id: string;
1349
+ ok: true;
1350
+ outputType: string;
1351
+ output?: string | undefined;
1352
+ usage?: {
1353
+ durationMs: number;
1354
+ } | undefined;
1355
+ } | {
1356
+ error: {
1357
+ message: string;
1358
+ type: "BUILT_IN_ERROR";
1359
+ name: string;
1360
+ stackTrace: string;
1361
+ } | {
1362
+ type: "CUSTOM_ERROR";
1363
+ raw: string;
1364
+ } | {
1365
+ type: "STRING_ERROR";
1366
+ raw: string;
1367
+ } | {
1368
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_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";
1369
+ type: "INTERNAL_ERROR";
1370
+ message?: string | undefined;
1371
+ };
1372
+ id: string;
1373
+ ok: false;
1374
+ retry?: {
1375
+ timestamp: number;
1376
+ delay: number;
1377
+ error?: unknown;
1378
+ } | undefined;
1379
+ skippedRetrying?: boolean | undefined;
1380
+ usage?: {
1381
+ durationMs: number;
1382
+ } | undefined;
1383
+ })[];
1384
+ }>;
1385
+ type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;
1386
+
1387
+ interface RuntimeManager {
1388
+ disable(): void;
1389
+ waitUntil(date: Date): Promise<void>;
1390
+ waitForDuration(ms: number): Promise<void>;
1391
+ waitForTask(params: {
1392
+ id: string;
1393
+ ctx: TaskRunContext;
1394
+ }): Promise<TaskRunExecutionResult>;
1395
+ waitForBatch(params: {
1396
+ id: string;
1397
+ runs: string[];
1398
+ ctx: TaskRunContext;
1399
+ }): Promise<BatchTaskRunExecutionResult>;
1400
+ }
1401
+
1402
+ export { BatchTaskRunExecutionResult as B, MachinePresetName as M, type RuntimeManager as R, TaskRunExecutionResult as T, TaskRunContext as a, TaskRunExecution as b, TaskRunError as c, MachineCpu as d, MachineMemory as e, MachineConfig as f, MachinePreset as g, TaskRunBuiltInError as h, TaskRunCustomErrorObject as i, TaskRunStringError as j, TaskRunErrorCodes as k, TaskRunInternalError as l, TaskRun as m, TaskRunExecutionTask as n, TaskRunExecutionAttempt as o, TaskRunExecutionEnvironment as p, TaskRunExecutionOrganization as q, TaskRunExecutionProject as r, TaskRunExecutionQueue as s, TaskRunExecutionBatch as t, TaskRunExecutionRetry as u, TaskRunExecutionUsage as v, TaskRunFailedExecutionResult as w, TaskRunSuccessfulExecutionResult as x };