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

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 (96) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/index.d.ts +161 -150
  3. package/dist/commonjs/v3/apiClient/index.js +20 -1
  4. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  5. package/dist/commonjs/v3/apiClient/runStream.d.ts +12 -3
  6. package/dist/commonjs/v3/apiClient/runStream.js +155 -60
  7. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  8. package/dist/commonjs/v3/apiClient/stream.d.ts +10 -1
  9. package/dist/commonjs/v3/apiClient/stream.js +181 -25
  10. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  11. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  12. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  13. package/dist/commonjs/v3/run-metadata-api.js +16 -0
  14. package/dist/commonjs/v3/run-metadata-api.js.map +1 -1
  15. package/dist/commonjs/v3/runMetadata/index.d.ts +13 -8
  16. package/dist/commonjs/v3/runMetadata/index.js +32 -13
  17. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  18. package/dist/commonjs/v3/runMetadata/manager.d.ts +25 -11
  19. package/dist/commonjs/v3/runMetadata/manager.js +180 -132
  20. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  21. package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +9 -7
  22. package/dist/commonjs/v3/runMetadata/metadataStream.js +44 -40
  23. package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -1
  24. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +13 -8
  25. package/dist/commonjs/v3/runMetadata/noopManager.js +44 -6
  26. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  27. package/dist/commonjs/v3/runMetadata/types.d.ts +16 -9
  28. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  29. package/dist/commonjs/v3/runtime/devRuntimeManager.js +9 -0
  30. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  31. package/dist/commonjs/v3/schemas/api.d.ts +1166 -747
  32. package/dist/commonjs/v3/schemas/api.js +26 -13
  33. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  34. package/dist/commonjs/v3/schemas/build.d.ts +262 -262
  35. package/dist/commonjs/v3/schemas/common.d.ts +3733 -12
  36. package/dist/commonjs/v3/schemas/common.js +45 -1
  37. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  38. package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
  39. package/dist/commonjs/v3/schemas/messages.d.ts +21871 -3889
  40. package/dist/commonjs/v3/schemas/resources.d.ts +88 -88
  41. package/dist/commonjs/v3/schemas/schemas.d.ts +485 -485
  42. package/dist/commonjs/v3/types/tasks.d.ts +25 -1
  43. package/dist/commonjs/v3/utils/ioSerialization.d.ts +4 -1
  44. package/dist/commonjs/v3/utils/ioSerialization.js +14 -2
  45. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  46. package/dist/commonjs/version.js +1 -1
  47. package/dist/esm/schemas/api.d.ts +8 -8
  48. package/dist/esm/v3/apiClient/index.d.ts +109 -98
  49. package/dist/esm/v3/apiClient/index.js +21 -2
  50. package/dist/esm/v3/apiClient/index.js.map +1 -1
  51. package/dist/esm/v3/apiClient/runStream.d.ts +12 -3
  52. package/dist/esm/v3/apiClient/runStream.js +153 -59
  53. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  54. package/dist/esm/v3/apiClient/stream.d.ts +10 -1
  55. package/dist/esm/v3/apiClient/stream.js +178 -25
  56. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  57. package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
  58. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  59. package/dist/esm/v3/run-metadata-api.js +2 -0
  60. package/dist/esm/v3/run-metadata-api.js.map +1 -1
  61. package/dist/esm/v3/runMetadata/index.d.ts +13 -8
  62. package/dist/esm/v3/runMetadata/index.js +32 -13
  63. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  64. package/dist/esm/v3/runMetadata/manager.d.ts +25 -11
  65. package/dist/esm/v3/runMetadata/manager.js +180 -132
  66. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  67. package/dist/esm/v3/runMetadata/metadataStream.d.ts +9 -7
  68. package/dist/esm/v3/runMetadata/metadataStream.js +44 -40
  69. package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -1
  70. package/dist/esm/v3/runMetadata/noopManager.d.ts +13 -8
  71. package/dist/esm/v3/runMetadata/noopManager.js +44 -6
  72. package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
  73. package/dist/esm/v3/runMetadata/operations.d.ts +6 -0
  74. package/dist/esm/v3/runMetadata/operations.js +112 -0
  75. package/dist/esm/v3/runMetadata/operations.js.map +1 -0
  76. package/dist/esm/v3/runMetadata/types.d.ts +16 -9
  77. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  78. package/dist/esm/v3/runtime/devRuntimeManager.js +9 -0
  79. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  80. package/dist/esm/v3/schemas/api.d.ts +811 -392
  81. package/dist/esm/v3/schemas/api.js +26 -13
  82. package/dist/esm/v3/schemas/api.js.map +1 -1
  83. package/dist/esm/v3/schemas/build.d.ts +316 -316
  84. package/dist/esm/v3/schemas/common.d.ts +3893 -172
  85. package/dist/esm/v3/schemas/common.js +44 -0
  86. package/dist/esm/v3/schemas/common.js.map +1 -1
  87. package/dist/esm/v3/schemas/fetch.d.ts +22 -22
  88. package/dist/esm/v3/schemas/messages.d.ts +20632 -2650
  89. package/dist/esm/v3/schemas/resources.d.ts +98 -98
  90. package/dist/esm/v3/schemas/schemas.d.ts +353 -353
  91. package/dist/esm/v3/types/tasks.d.ts +25 -1
  92. package/dist/esm/v3/utils/ioSerialization.d.ts +4 -1
  93. package/dist/esm/v3/utils/ioSerialization.js +14 -2
  94. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  95. package/dist/esm/version.js +1 -1
  96. package/package.json +2 -2
@@ -1,4 +1,497 @@
1
1
  import { z } from "zod";
2
+ export declare const RunMetadataUpdateOperation: z.ZodObject<{
3
+ type: z.ZodLiteral<"update">;
4
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "update";
7
+ value: Record<string, unknown>;
8
+ }, {
9
+ type: "update";
10
+ value: Record<string, unknown>;
11
+ }>;
12
+ export type RunMetadataUpdateOperation = z.infer<typeof RunMetadataUpdateOperation>;
13
+ export declare const RunMetadataSetKeyOperation: z.ZodObject<{
14
+ type: z.ZodLiteral<"set">;
15
+ key: z.ZodString;
16
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "set";
19
+ value: import("../../schemas/json.js").DeserializedJson;
20
+ key: string;
21
+ }, {
22
+ type: "set";
23
+ value: import("../../schemas/json.js").DeserializedJson;
24
+ key: string;
25
+ }>;
26
+ export type RunMetadataSetKeyOperation = z.infer<typeof RunMetadataSetKeyOperation>;
27
+ export declare const RunMetadataDeleteKeyOperation: z.ZodObject<{
28
+ type: z.ZodLiteral<"delete">;
29
+ key: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ type: "delete";
32
+ key: string;
33
+ }, {
34
+ type: "delete";
35
+ key: string;
36
+ }>;
37
+ export type RunMetadataDeleteKeyOperation = z.infer<typeof RunMetadataDeleteKeyOperation>;
38
+ export declare const RunMetadataAppendKeyOperation: z.ZodObject<{
39
+ type: z.ZodLiteral<"append">;
40
+ key: z.ZodString;
41
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "append";
44
+ value: import("../../schemas/json.js").DeserializedJson;
45
+ key: string;
46
+ }, {
47
+ type: "append";
48
+ value: import("../../schemas/json.js").DeserializedJson;
49
+ key: string;
50
+ }>;
51
+ export type RunMetadataAppendKeyOperation = z.infer<typeof RunMetadataAppendKeyOperation>;
52
+ export declare const RunMetadataRemoveFromKeyOperation: z.ZodObject<{
53
+ type: z.ZodLiteral<"remove">;
54
+ key: z.ZodString;
55
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "remove";
58
+ value: import("../../schemas/json.js").DeserializedJson;
59
+ key: string;
60
+ }, {
61
+ type: "remove";
62
+ value: import("../../schemas/json.js").DeserializedJson;
63
+ key: string;
64
+ }>;
65
+ export type RunMetadataRemoveFromKeyOperation = z.infer<typeof RunMetadataRemoveFromKeyOperation>;
66
+ export declare const RunMetadataIncrementKeyOperation: z.ZodObject<{
67
+ type: z.ZodLiteral<"increment">;
68
+ key: z.ZodString;
69
+ value: z.ZodNumber;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: "increment";
72
+ value: number;
73
+ key: string;
74
+ }, {
75
+ type: "increment";
76
+ value: number;
77
+ key: string;
78
+ }>;
79
+ export type RunMetadataIncrementKeyOperation = z.infer<typeof RunMetadataIncrementKeyOperation>;
80
+ export declare const RunMetadataChangeOperation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
81
+ type: z.ZodLiteral<"update">;
82
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "update";
85
+ value: Record<string, unknown>;
86
+ }, {
87
+ type: "update";
88
+ value: Record<string, unknown>;
89
+ }>, z.ZodObject<{
90
+ type: z.ZodLiteral<"set">;
91
+ key: z.ZodString;
92
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type: "set";
95
+ value: import("../../schemas/json.js").DeserializedJson;
96
+ key: string;
97
+ }, {
98
+ type: "set";
99
+ value: import("../../schemas/json.js").DeserializedJson;
100
+ key: string;
101
+ }>, z.ZodObject<{
102
+ type: z.ZodLiteral<"delete">;
103
+ key: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "delete";
106
+ key: string;
107
+ }, {
108
+ type: "delete";
109
+ key: string;
110
+ }>, z.ZodObject<{
111
+ type: z.ZodLiteral<"append">;
112
+ key: z.ZodString;
113
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ type: "append";
116
+ value: import("../../schemas/json.js").DeserializedJson;
117
+ key: string;
118
+ }, {
119
+ type: "append";
120
+ value: import("../../schemas/json.js").DeserializedJson;
121
+ key: string;
122
+ }>, z.ZodObject<{
123
+ type: z.ZodLiteral<"remove">;
124
+ key: z.ZodString;
125
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ type: "remove";
128
+ value: import("../../schemas/json.js").DeserializedJson;
129
+ key: string;
130
+ }, {
131
+ type: "remove";
132
+ value: import("../../schemas/json.js").DeserializedJson;
133
+ key: string;
134
+ }>, z.ZodObject<{
135
+ type: z.ZodLiteral<"increment">;
136
+ key: z.ZodString;
137
+ value: z.ZodNumber;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "increment";
140
+ value: number;
141
+ key: string;
142
+ }, {
143
+ type: "increment";
144
+ value: number;
145
+ key: string;
146
+ }>]>;
147
+ export type RunMetadataChangeOperation = z.infer<typeof RunMetadataChangeOperation>;
148
+ export declare const FlushedRunMetadata: z.ZodObject<{
149
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
150
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
151
+ type: z.ZodLiteral<"update">;
152
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "update";
155
+ value: Record<string, unknown>;
156
+ }, {
157
+ type: "update";
158
+ value: Record<string, unknown>;
159
+ }>, z.ZodObject<{
160
+ type: z.ZodLiteral<"set">;
161
+ key: z.ZodString;
162
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ type: "set";
165
+ value: import("../../schemas/json.js").DeserializedJson;
166
+ key: string;
167
+ }, {
168
+ type: "set";
169
+ value: import("../../schemas/json.js").DeserializedJson;
170
+ key: string;
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"delete">;
173
+ key: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "delete";
176
+ key: string;
177
+ }, {
178
+ type: "delete";
179
+ key: string;
180
+ }>, z.ZodObject<{
181
+ type: z.ZodLiteral<"append">;
182
+ key: z.ZodString;
183
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ type: "append";
186
+ value: import("../../schemas/json.js").DeserializedJson;
187
+ key: string;
188
+ }, {
189
+ type: "append";
190
+ value: import("../../schemas/json.js").DeserializedJson;
191
+ key: string;
192
+ }>, z.ZodObject<{
193
+ type: z.ZodLiteral<"remove">;
194
+ key: z.ZodString;
195
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "remove";
198
+ value: import("../../schemas/json.js").DeserializedJson;
199
+ key: string;
200
+ }, {
201
+ type: "remove";
202
+ value: import("../../schemas/json.js").DeserializedJson;
203
+ key: string;
204
+ }>, z.ZodObject<{
205
+ type: z.ZodLiteral<"increment">;
206
+ key: z.ZodString;
207
+ value: z.ZodNumber;
208
+ }, "strip", z.ZodTypeAny, {
209
+ type: "increment";
210
+ value: number;
211
+ key: string;
212
+ }, {
213
+ type: "increment";
214
+ value: number;
215
+ key: string;
216
+ }>]>, "many">>;
217
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
218
+ type: z.ZodLiteral<"update">;
219
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ type: "update";
222
+ value: Record<string, unknown>;
223
+ }, {
224
+ type: "update";
225
+ value: Record<string, unknown>;
226
+ }>, z.ZodObject<{
227
+ type: z.ZodLiteral<"set">;
228
+ key: z.ZodString;
229
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ type: "set";
232
+ value: import("../../schemas/json.js").DeserializedJson;
233
+ key: string;
234
+ }, {
235
+ type: "set";
236
+ value: import("../../schemas/json.js").DeserializedJson;
237
+ key: string;
238
+ }>, z.ZodObject<{
239
+ type: z.ZodLiteral<"delete">;
240
+ key: z.ZodString;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: "delete";
243
+ key: string;
244
+ }, {
245
+ type: "delete";
246
+ key: string;
247
+ }>, z.ZodObject<{
248
+ type: z.ZodLiteral<"append">;
249
+ key: z.ZodString;
250
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ type: "append";
253
+ value: import("../../schemas/json.js").DeserializedJson;
254
+ key: string;
255
+ }, {
256
+ type: "append";
257
+ value: import("../../schemas/json.js").DeserializedJson;
258
+ key: string;
259
+ }>, z.ZodObject<{
260
+ type: z.ZodLiteral<"remove">;
261
+ key: z.ZodString;
262
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ type: "remove";
265
+ value: import("../../schemas/json.js").DeserializedJson;
266
+ key: string;
267
+ }, {
268
+ type: "remove";
269
+ value: import("../../schemas/json.js").DeserializedJson;
270
+ key: string;
271
+ }>, z.ZodObject<{
272
+ type: z.ZodLiteral<"increment">;
273
+ key: z.ZodString;
274
+ value: z.ZodNumber;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "increment";
277
+ value: number;
278
+ key: string;
279
+ }, {
280
+ type: "increment";
281
+ value: number;
282
+ key: string;
283
+ }>]>, "many">>;
284
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
285
+ type: z.ZodLiteral<"update">;
286
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type: "update";
289
+ value: Record<string, unknown>;
290
+ }, {
291
+ type: "update";
292
+ value: Record<string, unknown>;
293
+ }>, z.ZodObject<{
294
+ type: z.ZodLiteral<"set">;
295
+ key: z.ZodString;
296
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "set";
299
+ value: import("../../schemas/json.js").DeserializedJson;
300
+ key: string;
301
+ }, {
302
+ type: "set";
303
+ value: import("../../schemas/json.js").DeserializedJson;
304
+ key: string;
305
+ }>, z.ZodObject<{
306
+ type: z.ZodLiteral<"delete">;
307
+ key: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: "delete";
310
+ key: string;
311
+ }, {
312
+ type: "delete";
313
+ key: string;
314
+ }>, z.ZodObject<{
315
+ type: z.ZodLiteral<"append">;
316
+ key: z.ZodString;
317
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ type: "append";
320
+ value: import("../../schemas/json.js").DeserializedJson;
321
+ key: string;
322
+ }, {
323
+ type: "append";
324
+ value: import("../../schemas/json.js").DeserializedJson;
325
+ key: string;
326
+ }>, z.ZodObject<{
327
+ type: z.ZodLiteral<"remove">;
328
+ key: z.ZodString;
329
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ type: "remove";
332
+ value: import("../../schemas/json.js").DeserializedJson;
333
+ key: string;
334
+ }, {
335
+ type: "remove";
336
+ value: import("../../schemas/json.js").DeserializedJson;
337
+ key: string;
338
+ }>, z.ZodObject<{
339
+ type: z.ZodLiteral<"increment">;
340
+ key: z.ZodString;
341
+ value: z.ZodNumber;
342
+ }, "strip", z.ZodTypeAny, {
343
+ type: "increment";
344
+ value: number;
345
+ key: string;
346
+ }, {
347
+ type: "increment";
348
+ value: number;
349
+ key: string;
350
+ }>]>, "many">>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
353
+ operations?: ({
354
+ type: "update";
355
+ value: Record<string, unknown>;
356
+ } | {
357
+ type: "set";
358
+ value: import("../../schemas/json.js").DeserializedJson;
359
+ key: string;
360
+ } | {
361
+ type: "delete";
362
+ key: string;
363
+ } | {
364
+ type: "append";
365
+ value: import("../../schemas/json.js").DeserializedJson;
366
+ key: string;
367
+ } | {
368
+ type: "remove";
369
+ value: import("../../schemas/json.js").DeserializedJson;
370
+ key: string;
371
+ } | {
372
+ type: "increment";
373
+ value: number;
374
+ key: string;
375
+ })[] | undefined;
376
+ parentOperations?: ({
377
+ type: "update";
378
+ value: Record<string, unknown>;
379
+ } | {
380
+ type: "set";
381
+ value: import("../../schemas/json.js").DeserializedJson;
382
+ key: string;
383
+ } | {
384
+ type: "delete";
385
+ key: string;
386
+ } | {
387
+ type: "append";
388
+ value: import("../../schemas/json.js").DeserializedJson;
389
+ key: string;
390
+ } | {
391
+ type: "remove";
392
+ value: import("../../schemas/json.js").DeserializedJson;
393
+ key: string;
394
+ } | {
395
+ type: "increment";
396
+ value: number;
397
+ key: string;
398
+ })[] | undefined;
399
+ rootOperations?: ({
400
+ type: "update";
401
+ value: Record<string, unknown>;
402
+ } | {
403
+ type: "set";
404
+ value: import("../../schemas/json.js").DeserializedJson;
405
+ key: string;
406
+ } | {
407
+ type: "delete";
408
+ key: string;
409
+ } | {
410
+ type: "append";
411
+ value: import("../../schemas/json.js").DeserializedJson;
412
+ key: string;
413
+ } | {
414
+ type: "remove";
415
+ value: import("../../schemas/json.js").DeserializedJson;
416
+ key: string;
417
+ } | {
418
+ type: "increment";
419
+ value: number;
420
+ key: string;
421
+ })[] | undefined;
422
+ }, {
423
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
424
+ operations?: ({
425
+ type: "update";
426
+ value: Record<string, unknown>;
427
+ } | {
428
+ type: "set";
429
+ value: import("../../schemas/json.js").DeserializedJson;
430
+ key: string;
431
+ } | {
432
+ type: "delete";
433
+ key: string;
434
+ } | {
435
+ type: "append";
436
+ value: import("../../schemas/json.js").DeserializedJson;
437
+ key: string;
438
+ } | {
439
+ type: "remove";
440
+ value: import("../../schemas/json.js").DeserializedJson;
441
+ key: string;
442
+ } | {
443
+ type: "increment";
444
+ value: number;
445
+ key: string;
446
+ })[] | undefined;
447
+ parentOperations?: ({
448
+ type: "update";
449
+ value: Record<string, unknown>;
450
+ } | {
451
+ type: "set";
452
+ value: import("../../schemas/json.js").DeserializedJson;
453
+ key: string;
454
+ } | {
455
+ type: "delete";
456
+ key: string;
457
+ } | {
458
+ type: "append";
459
+ value: import("../../schemas/json.js").DeserializedJson;
460
+ key: string;
461
+ } | {
462
+ type: "remove";
463
+ value: import("../../schemas/json.js").DeserializedJson;
464
+ key: string;
465
+ } | {
466
+ type: "increment";
467
+ value: number;
468
+ key: string;
469
+ })[] | undefined;
470
+ rootOperations?: ({
471
+ type: "update";
472
+ value: Record<string, unknown>;
473
+ } | {
474
+ type: "set";
475
+ value: import("../../schemas/json.js").DeserializedJson;
476
+ key: string;
477
+ } | {
478
+ type: "delete";
479
+ key: string;
480
+ } | {
481
+ type: "append";
482
+ value: import("../../schemas/json.js").DeserializedJson;
483
+ key: string;
484
+ } | {
485
+ type: "remove";
486
+ value: import("../../schemas/json.js").DeserializedJson;
487
+ key: string;
488
+ } | {
489
+ type: "increment";
490
+ value: number;
491
+ key: string;
492
+ })[] | undefined;
493
+ }>;
494
+ export type FlushedRunMetadata = z.infer<typeof FlushedRunMetadata>;
2
495
  export declare const MachineCpu: z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>;
3
496
  export type MachineCpu = z.infer<typeof MachineCpu>;
4
497
  export 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>]>;
@@ -10,12 +503,12 @@ export declare const MachineConfig: z.ZodObject<{
10
503
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
11
504
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
12
505
  }, "strip", z.ZodTypeAny, {
13
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
14
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
506
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
507
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
15
508
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
16
509
  }, {
17
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
18
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
510
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
511
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
19
512
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
20
513
  }>;
21
514
  export type MachineConfig = z.infer<typeof MachineConfig>;
@@ -25,14 +518,14 @@ export declare const MachinePreset: z.ZodObject<{
25
518
  memory: z.ZodNumber;
26
519
  centsPerMs: z.ZodNumber;
27
520
  }, "strip", z.ZodTypeAny, {
28
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
29
521
  cpu: number;
30
522
  memory: number;
523
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
31
524
  centsPerMs: number;
32
525
  }, {
33
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
34
526
  cpu: number;
35
527
  memory: number;
528
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
36
529
  centsPerMs: number;
37
530
  }>;
38
531
  export type MachinePreset = z.infer<typeof MachinePreset>;
@@ -42,13 +535,13 @@ export declare const TaskRunBuiltInError: z.ZodObject<{
42
535
  message: z.ZodString;
43
536
  stackTrace: z.ZodString;
44
537
  }, "strip", z.ZodTypeAny, {
45
- message: string;
46
538
  type: "BUILT_IN_ERROR";
539
+ message: string;
47
540
  name: string;
48
541
  stackTrace: string;
49
542
  }, {
50
- message: string;
51
543
  type: "BUILT_IN_ERROR";
544
+ message: string;
52
545
  name: string;
53
546
  stackTrace: string;
54
547
  }>;
@@ -81,13 +574,13 @@ export declare const TaskRunInternalError: z.ZodObject<{
81
574
  message: z.ZodOptional<z.ZodString>;
82
575
  stackTrace: z.ZodOptional<z.ZodString>;
83
576
  }, "strip", z.ZodTypeAny, {
84
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
85
577
  type: "INTERNAL_ERROR";
578
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
86
579
  message?: string | undefined;
87
580
  stackTrace?: string | undefined;
88
581
  }, {
89
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
90
582
  type: "INTERNAL_ERROR";
583
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
91
584
  message?: string | undefined;
92
585
  stackTrace?: string | undefined;
93
586
  }>;
@@ -99,13 +592,13 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
99
592
  message: z.ZodString;
100
593
  stackTrace: z.ZodString;
101
594
  }, "strip", z.ZodTypeAny, {
102
- message: string;
103
595
  type: "BUILT_IN_ERROR";
596
+ message: string;
104
597
  name: string;
105
598
  stackTrace: string;
106
599
  }, {
107
- message: string;
108
600
  type: "BUILT_IN_ERROR";
601
+ message: string;
109
602
  name: string;
110
603
  stackTrace: string;
111
604
  }>, z.ZodObject<{
@@ -132,13 +625,13 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
132
625
  message: z.ZodOptional<z.ZodString>;
133
626
  stackTrace: z.ZodOptional<z.ZodString>;
134
627
  }, "strip", z.ZodTypeAny, {
135
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
136
628
  type: "INTERNAL_ERROR";
629
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
137
630
  message?: string | undefined;
138
631
  stackTrace?: string | undefined;
139
632
  }, {
140
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
141
633
  type: "INTERNAL_ERROR";
634
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
142
635
  message?: string | undefined;
143
636
  stackTrace?: string | undefined;
144
637
  }>]>;
@@ -161,38 +654,38 @@ export declare const TaskRun: z.ZodObject<{
161
654
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
162
655
  maxDuration: z.ZodOptional<z.ZodNumber>;
163
656
  }, "strip", z.ZodTypeAny, {
164
- payload: string;
165
657
  id: string;
166
- startedAt: Date;
658
+ payload: string;
167
659
  payloadType: string;
660
+ tags: string[];
168
661
  isTest: boolean;
169
662
  createdAt: Date;
170
- tags: string[];
663
+ startedAt: Date;
171
664
  durationMs: number;
172
665
  costInCents: number;
173
666
  baseCostInCents: number;
174
- context?: any;
175
- version?: string | undefined;
176
667
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
668
+ context?: any;
177
669
  idempotencyKey?: string | undefined;
178
670
  maxAttempts?: number | undefined;
671
+ version?: string | undefined;
179
672
  maxDuration?: number | undefined;
180
673
  }, {
181
- payload: string;
182
674
  id: string;
675
+ payload: string;
183
676
  payloadType: string;
184
- createdAt: Date;
185
677
  tags: string[];
186
- context?: any;
187
- version?: string | undefined;
678
+ createdAt: Date;
188
679
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
680
+ context?: any;
681
+ isTest?: boolean | undefined;
189
682
  startedAt?: Date | undefined;
190
683
  idempotencyKey?: string | undefined;
191
- isTest?: boolean | undefined;
192
684
  maxAttempts?: number | undefined;
193
685
  durationMs?: number | undefined;
194
686
  costInCents?: number | undefined;
195
687
  baseCostInCents?: number | undefined;
688
+ version?: string | undefined;
196
689
  maxDuration?: number | undefined;
197
690
  }>;
198
691
  export type TaskRun = z.infer<typeof TaskRun>;
@@ -350,38 +843,38 @@ export declare const TaskRunExecution: z.ZodObject<{
350
843
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
351
844
  maxDuration: z.ZodOptional<z.ZodNumber>;
352
845
  }, "strip", z.ZodTypeAny, {
353
- payload: string;
354
846
  id: string;
355
- startedAt: Date;
847
+ payload: string;
356
848
  payloadType: string;
849
+ tags: string[];
357
850
  isTest: boolean;
358
851
  createdAt: Date;
359
- tags: string[];
852
+ startedAt: Date;
360
853
  durationMs: number;
361
854
  costInCents: number;
362
855
  baseCostInCents: number;
363
- context?: any;
364
- version?: string | undefined;
365
856
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
857
+ context?: any;
366
858
  idempotencyKey?: string | undefined;
367
859
  maxAttempts?: number | undefined;
860
+ version?: string | undefined;
368
861
  maxDuration?: number | undefined;
369
862
  }, {
370
- payload: string;
371
863
  id: string;
864
+ payload: string;
372
865
  payloadType: string;
373
- createdAt: Date;
374
866
  tags: string[];
375
- context?: any;
376
- version?: string | undefined;
867
+ createdAt: Date;
377
868
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
869
+ context?: any;
870
+ isTest?: boolean | undefined;
378
871
  startedAt?: Date | undefined;
379
872
  idempotencyKey?: string | undefined;
380
- isTest?: boolean | undefined;
381
873
  maxAttempts?: number | undefined;
382
874
  durationMs?: number | undefined;
383
875
  costInCents?: number | undefined;
384
876
  baseCostInCents?: number | undefined;
877
+ version?: string | undefined;
385
878
  maxDuration?: number | undefined;
386
879
  }>;
387
880
  queue: z.ZodObject<{
@@ -449,35 +942,52 @@ export declare const TaskRunExecution: z.ZodObject<{
449
942
  memory: z.ZodNumber;
450
943
  centsPerMs: z.ZodNumber;
451
944
  }, "strip", z.ZodTypeAny, {
452
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
453
945
  cpu: number;
454
946
  memory: number;
947
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
455
948
  centsPerMs: number;
456
949
  }, {
457
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
458
950
  cpu: number;
459
951
  memory: number;
952
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
460
953
  centsPerMs: number;
461
954
  }>>;
462
955
  }, "strip", z.ZodTypeAny, {
463
- run: {
464
- payload: string;
956
+ task: {
957
+ id: string;
958
+ filePath: string;
959
+ exportName: string;
960
+ };
961
+ attempt: {
962
+ number: number;
963
+ status: string;
465
964
  id: string;
466
965
  startedAt: Date;
966
+ backgroundWorkerId: string;
967
+ backgroundWorkerTaskId: string;
968
+ };
969
+ run: {
970
+ id: string;
971
+ payload: string;
467
972
  payloadType: string;
973
+ tags: string[];
468
974
  isTest: boolean;
469
975
  createdAt: Date;
470
- tags: string[];
976
+ startedAt: Date;
471
977
  durationMs: number;
472
978
  costInCents: number;
473
979
  baseCostInCents: number;
474
- context?: any;
475
- version?: string | undefined;
476
980
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
981
+ context?: any;
477
982
  idempotencyKey?: string | undefined;
478
983
  maxAttempts?: number | undefined;
984
+ version?: string | undefined;
479
985
  maxDuration?: number | undefined;
480
986
  };
987
+ queue: {
988
+ name: string;
989
+ id: string;
990
+ };
481
991
  environment: {
482
992
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
483
993
  id: string;
@@ -494,6 +1004,16 @@ export declare const TaskRunExecution: z.ZodObject<{
494
1004
  slug: string;
495
1005
  ref: string;
496
1006
  };
1007
+ batch?: {
1008
+ id: string;
1009
+ } | undefined;
1010
+ machine?: {
1011
+ cpu: number;
1012
+ memory: number;
1013
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1014
+ centsPerMs: number;
1015
+ } | undefined;
1016
+ }, {
497
1017
  task: {
498
1018
  id: string;
499
1019
  filePath: string;
@@ -507,38 +1027,28 @@ export declare const TaskRunExecution: z.ZodObject<{
507
1027
  backgroundWorkerId: string;
508
1028
  backgroundWorkerTaskId: string;
509
1029
  };
510
- queue: {
511
- name: string;
512
- id: string;
513
- };
514
- batch?: {
515
- id: string;
516
- } | undefined;
517
- machine?: {
518
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
519
- cpu: number;
520
- memory: number;
521
- centsPerMs: number;
522
- } | undefined;
523
- }, {
524
1030
  run: {
525
- payload: string;
526
1031
  id: string;
1032
+ payload: string;
527
1033
  payloadType: string;
528
- createdAt: Date;
529
1034
  tags: string[];
530
- context?: any;
531
- version?: string | undefined;
1035
+ createdAt: Date;
532
1036
  metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1037
+ context?: any;
1038
+ isTest?: boolean | undefined;
533
1039
  startedAt?: Date | undefined;
534
1040
  idempotencyKey?: string | undefined;
535
- isTest?: boolean | undefined;
536
1041
  maxAttempts?: number | undefined;
537
1042
  durationMs?: number | undefined;
538
1043
  costInCents?: number | undefined;
539
1044
  baseCostInCents?: number | undefined;
1045
+ version?: string | undefined;
540
1046
  maxDuration?: number | undefined;
541
1047
  };
1048
+ queue: {
1049
+ name: string;
1050
+ id: string;
1051
+ };
542
1052
  environment: {
543
1053
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
544
1054
  id: string;
@@ -555,30 +1065,13 @@ export declare const TaskRunExecution: z.ZodObject<{
555
1065
  slug: string;
556
1066
  ref: string;
557
1067
  };
558
- task: {
559
- id: string;
560
- filePath: string;
561
- exportName: string;
562
- };
563
- attempt: {
564
- number: number;
565
- status: string;
566
- id: string;
567
- startedAt: Date;
568
- backgroundWorkerId: string;
569
- backgroundWorkerTaskId: string;
570
- };
571
- queue: {
572
- name: string;
573
- id: string;
574
- };
575
- batch?: {
1068
+ batch?: {
576
1069
  id: string;
577
1070
  } | undefined;
578
1071
  machine?: {
579
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
580
1072
  cpu: number;
581
1073
  memory: number;
1074
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
582
1075
  centsPerMs: number;
583
1076
  } | undefined;
584
1077
  }>;
@@ -632,33 +1125,33 @@ export declare const TaskRunContext: z.ZodObject<{
632
1125
  version: z.ZodOptional<z.ZodString>;
633
1126
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
634
1127
  maxDuration: z.ZodOptional<z.ZodNumber>;
635
- }, "payload" | "metadata" | "payloadType">, "strip", z.ZodTypeAny, {
1128
+ }, "metadata" | "payload" | "payloadType">, "strip", z.ZodTypeAny, {
636
1129
  id: string;
637
- startedAt: Date;
1130
+ tags: string[];
638
1131
  isTest: boolean;
639
1132
  createdAt: Date;
640
- tags: string[];
1133
+ startedAt: Date;
641
1134
  durationMs: number;
642
1135
  costInCents: number;
643
1136
  baseCostInCents: number;
644
1137
  context?: any;
645
- version?: string | undefined;
646
1138
  idempotencyKey?: string | undefined;
647
1139
  maxAttempts?: number | undefined;
1140
+ version?: string | undefined;
648
1141
  maxDuration?: number | undefined;
649
1142
  }, {
650
1143
  id: string;
651
- createdAt: Date;
652
1144
  tags: string[];
1145
+ createdAt: Date;
653
1146
  context?: any;
654
- version?: string | undefined;
1147
+ isTest?: boolean | undefined;
655
1148
  startedAt?: Date | undefined;
656
1149
  idempotencyKey?: string | undefined;
657
- isTest?: boolean | undefined;
658
1150
  maxAttempts?: number | undefined;
659
1151
  durationMs?: number | undefined;
660
1152
  costInCents?: number | undefined;
661
1153
  baseCostInCents?: number | undefined;
1154
+ version?: string | undefined;
662
1155
  maxDuration?: number | undefined;
663
1156
  }>;
664
1157
  queue: z.ZodObject<{
@@ -726,32 +1219,47 @@ export declare const TaskRunContext: z.ZodObject<{
726
1219
  memory: z.ZodNumber;
727
1220
  centsPerMs: z.ZodNumber;
728
1221
  }, "strip", z.ZodTypeAny, {
729
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
730
1222
  cpu: number;
731
1223
  memory: number;
1224
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
732
1225
  centsPerMs: number;
733
1226
  }, {
734
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
735
1227
  cpu: number;
736
1228
  memory: number;
1229
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
737
1230
  centsPerMs: number;
738
1231
  }>>;
739
1232
  }, "strip", z.ZodTypeAny, {
740
- run: {
1233
+ task: {
1234
+ id: string;
1235
+ filePath: string;
1236
+ exportName: string;
1237
+ };
1238
+ attempt: {
1239
+ number: number;
1240
+ status: string;
741
1241
  id: string;
742
1242
  startedAt: Date;
1243
+ };
1244
+ run: {
1245
+ id: string;
1246
+ tags: string[];
743
1247
  isTest: boolean;
744
1248
  createdAt: Date;
745
- tags: string[];
1249
+ startedAt: Date;
746
1250
  durationMs: number;
747
1251
  costInCents: number;
748
1252
  baseCostInCents: number;
749
1253
  context?: any;
750
- version?: string | undefined;
751
1254
  idempotencyKey?: string | undefined;
752
1255
  maxAttempts?: number | undefined;
1256
+ version?: string | undefined;
753
1257
  maxDuration?: number | undefined;
754
1258
  };
1259
+ queue: {
1260
+ name: string;
1261
+ id: string;
1262
+ };
755
1263
  environment: {
756
1264
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
757
1265
  id: string;
@@ -768,6 +1276,16 @@ export declare const TaskRunContext: z.ZodObject<{
768
1276
  slug: string;
769
1277
  ref: string;
770
1278
  };
1279
+ batch?: {
1280
+ id: string;
1281
+ } | undefined;
1282
+ machine?: {
1283
+ cpu: number;
1284
+ memory: number;
1285
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1286
+ centsPerMs: number;
1287
+ } | undefined;
1288
+ }, {
771
1289
  task: {
772
1290
  id: string;
773
1291
  filePath: string;
@@ -779,35 +1297,25 @@ export declare const TaskRunContext: z.ZodObject<{
779
1297
  id: string;
780
1298
  startedAt: Date;
781
1299
  };
782
- queue: {
783
- name: string;
784
- id: string;
785
- };
786
- batch?: {
787
- id: string;
788
- } | undefined;
789
- machine?: {
790
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
791
- cpu: number;
792
- memory: number;
793
- centsPerMs: number;
794
- } | undefined;
795
- }, {
796
1300
  run: {
797
1301
  id: string;
798
- createdAt: Date;
799
1302
  tags: string[];
1303
+ createdAt: Date;
800
1304
  context?: any;
801
- version?: string | undefined;
1305
+ isTest?: boolean | undefined;
802
1306
  startedAt?: Date | undefined;
803
1307
  idempotencyKey?: string | undefined;
804
- isTest?: boolean | undefined;
805
1308
  maxAttempts?: number | undefined;
806
1309
  durationMs?: number | undefined;
807
1310
  costInCents?: number | undefined;
808
1311
  baseCostInCents?: number | undefined;
1312
+ version?: string | undefined;
809
1313
  maxDuration?: number | undefined;
810
1314
  };
1315
+ queue: {
1316
+ name: string;
1317
+ id: string;
1318
+ };
811
1319
  environment: {
812
1320
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
813
1321
  id: string;
@@ -824,28 +1332,13 @@ export declare const TaskRunContext: z.ZodObject<{
824
1332
  slug: string;
825
1333
  ref: string;
826
1334
  };
827
- task: {
828
- id: string;
829
- filePath: string;
830
- exportName: string;
831
- };
832
- attempt: {
833
- number: number;
834
- status: string;
835
- id: string;
836
- startedAt: Date;
837
- };
838
- queue: {
839
- name: string;
840
- id: string;
841
- };
842
1335
  batch?: {
843
1336
  id: string;
844
1337
  } | undefined;
845
1338
  machine?: {
846
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
847
1339
  cpu: number;
848
1340
  memory: number;
1341
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
849
1342
  centsPerMs: number;
850
1343
  } | undefined;
851
1344
  }>;
@@ -881,13 +1374,13 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
881
1374
  message: z.ZodString;
882
1375
  stackTrace: z.ZodString;
883
1376
  }, "strip", z.ZodTypeAny, {
884
- message: string;
885
1377
  type: "BUILT_IN_ERROR";
1378
+ message: string;
886
1379
  name: string;
887
1380
  stackTrace: string;
888
1381
  }, {
889
- message: string;
890
1382
  type: "BUILT_IN_ERROR";
1383
+ message: string;
891
1384
  name: string;
892
1385
  stackTrace: string;
893
1386
  }>, z.ZodObject<{
@@ -914,13 +1407,13 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
914
1407
  message: z.ZodOptional<z.ZodString>;
915
1408
  stackTrace: z.ZodOptional<z.ZodString>;
916
1409
  }, "strip", z.ZodTypeAny, {
917
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
918
1410
  type: "INTERNAL_ERROR";
1411
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
919
1412
  message?: string | undefined;
920
1413
  stackTrace?: string | undefined;
921
1414
  }, {
922
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
923
1415
  type: "INTERNAL_ERROR";
1416
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
924
1417
  message?: string | undefined;
925
1418
  stackTrace?: string | undefined;
926
1419
  }>]>;
@@ -946,11 +1439,357 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
946
1439
  durationMs: number;
947
1440
  }>>;
948
1441
  taskIdentifier: z.ZodOptional<z.ZodString>;
1442
+ metadata: z.ZodOptional<z.ZodObject<{
1443
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
1444
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1445
+ type: z.ZodLiteral<"update">;
1446
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ type: "update";
1449
+ value: Record<string, unknown>;
1450
+ }, {
1451
+ type: "update";
1452
+ value: Record<string, unknown>;
1453
+ }>, z.ZodObject<{
1454
+ type: z.ZodLiteral<"set">;
1455
+ key: z.ZodString;
1456
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1457
+ }, "strip", z.ZodTypeAny, {
1458
+ type: "set";
1459
+ value: import("../../schemas/json.js").DeserializedJson;
1460
+ key: string;
1461
+ }, {
1462
+ type: "set";
1463
+ value: import("../../schemas/json.js").DeserializedJson;
1464
+ key: string;
1465
+ }>, z.ZodObject<{
1466
+ type: z.ZodLiteral<"delete">;
1467
+ key: z.ZodString;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ type: "delete";
1470
+ key: string;
1471
+ }, {
1472
+ type: "delete";
1473
+ key: string;
1474
+ }>, z.ZodObject<{
1475
+ type: z.ZodLiteral<"append">;
1476
+ key: z.ZodString;
1477
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ type: "append";
1480
+ value: import("../../schemas/json.js").DeserializedJson;
1481
+ key: string;
1482
+ }, {
1483
+ type: "append";
1484
+ value: import("../../schemas/json.js").DeserializedJson;
1485
+ key: string;
1486
+ }>, z.ZodObject<{
1487
+ type: z.ZodLiteral<"remove">;
1488
+ key: z.ZodString;
1489
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ type: "remove";
1492
+ value: import("../../schemas/json.js").DeserializedJson;
1493
+ key: string;
1494
+ }, {
1495
+ type: "remove";
1496
+ value: import("../../schemas/json.js").DeserializedJson;
1497
+ key: string;
1498
+ }>, z.ZodObject<{
1499
+ type: z.ZodLiteral<"increment">;
1500
+ key: z.ZodString;
1501
+ value: z.ZodNumber;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ type: "increment";
1504
+ value: number;
1505
+ key: string;
1506
+ }, {
1507
+ type: "increment";
1508
+ value: number;
1509
+ key: string;
1510
+ }>]>, "many">>;
1511
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1512
+ type: z.ZodLiteral<"update">;
1513
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1514
+ }, "strip", z.ZodTypeAny, {
1515
+ type: "update";
1516
+ value: Record<string, unknown>;
1517
+ }, {
1518
+ type: "update";
1519
+ value: Record<string, unknown>;
1520
+ }>, z.ZodObject<{
1521
+ type: z.ZodLiteral<"set">;
1522
+ key: z.ZodString;
1523
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ type: "set";
1526
+ value: import("../../schemas/json.js").DeserializedJson;
1527
+ key: string;
1528
+ }, {
1529
+ type: "set";
1530
+ value: import("../../schemas/json.js").DeserializedJson;
1531
+ key: string;
1532
+ }>, z.ZodObject<{
1533
+ type: z.ZodLiteral<"delete">;
1534
+ key: z.ZodString;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ type: "delete";
1537
+ key: string;
1538
+ }, {
1539
+ type: "delete";
1540
+ key: string;
1541
+ }>, z.ZodObject<{
1542
+ type: z.ZodLiteral<"append">;
1543
+ key: z.ZodString;
1544
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ type: "append";
1547
+ value: import("../../schemas/json.js").DeserializedJson;
1548
+ key: string;
1549
+ }, {
1550
+ type: "append";
1551
+ value: import("../../schemas/json.js").DeserializedJson;
1552
+ key: string;
1553
+ }>, z.ZodObject<{
1554
+ type: z.ZodLiteral<"remove">;
1555
+ key: z.ZodString;
1556
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ type: "remove";
1559
+ value: import("../../schemas/json.js").DeserializedJson;
1560
+ key: string;
1561
+ }, {
1562
+ type: "remove";
1563
+ value: import("../../schemas/json.js").DeserializedJson;
1564
+ key: string;
1565
+ }>, z.ZodObject<{
1566
+ type: z.ZodLiteral<"increment">;
1567
+ key: z.ZodString;
1568
+ value: z.ZodNumber;
1569
+ }, "strip", z.ZodTypeAny, {
1570
+ type: "increment";
1571
+ value: number;
1572
+ key: string;
1573
+ }, {
1574
+ type: "increment";
1575
+ value: number;
1576
+ key: string;
1577
+ }>]>, "many">>;
1578
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1579
+ type: z.ZodLiteral<"update">;
1580
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ type: "update";
1583
+ value: Record<string, unknown>;
1584
+ }, {
1585
+ type: "update";
1586
+ value: Record<string, unknown>;
1587
+ }>, z.ZodObject<{
1588
+ type: z.ZodLiteral<"set">;
1589
+ key: z.ZodString;
1590
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ type: "set";
1593
+ value: import("../../schemas/json.js").DeserializedJson;
1594
+ key: string;
1595
+ }, {
1596
+ type: "set";
1597
+ value: import("../../schemas/json.js").DeserializedJson;
1598
+ key: string;
1599
+ }>, z.ZodObject<{
1600
+ type: z.ZodLiteral<"delete">;
1601
+ key: z.ZodString;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ type: "delete";
1604
+ key: string;
1605
+ }, {
1606
+ type: "delete";
1607
+ key: string;
1608
+ }>, z.ZodObject<{
1609
+ type: z.ZodLiteral<"append">;
1610
+ key: z.ZodString;
1611
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1612
+ }, "strip", z.ZodTypeAny, {
1613
+ type: "append";
1614
+ value: import("../../schemas/json.js").DeserializedJson;
1615
+ key: string;
1616
+ }, {
1617
+ type: "append";
1618
+ value: import("../../schemas/json.js").DeserializedJson;
1619
+ key: string;
1620
+ }>, z.ZodObject<{
1621
+ type: z.ZodLiteral<"remove">;
1622
+ key: z.ZodString;
1623
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: "remove";
1626
+ value: import("../../schemas/json.js").DeserializedJson;
1627
+ key: string;
1628
+ }, {
1629
+ type: "remove";
1630
+ value: import("../../schemas/json.js").DeserializedJson;
1631
+ key: string;
1632
+ }>, z.ZodObject<{
1633
+ type: z.ZodLiteral<"increment">;
1634
+ key: z.ZodString;
1635
+ value: z.ZodNumber;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ type: "increment";
1638
+ value: number;
1639
+ key: string;
1640
+ }, {
1641
+ type: "increment";
1642
+ value: number;
1643
+ key: string;
1644
+ }>]>, "many">>;
1645
+ }, "strip", z.ZodTypeAny, {
1646
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1647
+ operations?: ({
1648
+ type: "update";
1649
+ value: Record<string, unknown>;
1650
+ } | {
1651
+ type: "set";
1652
+ value: import("../../schemas/json.js").DeserializedJson;
1653
+ key: string;
1654
+ } | {
1655
+ type: "delete";
1656
+ key: string;
1657
+ } | {
1658
+ type: "append";
1659
+ value: import("../../schemas/json.js").DeserializedJson;
1660
+ key: string;
1661
+ } | {
1662
+ type: "remove";
1663
+ value: import("../../schemas/json.js").DeserializedJson;
1664
+ key: string;
1665
+ } | {
1666
+ type: "increment";
1667
+ value: number;
1668
+ key: string;
1669
+ })[] | undefined;
1670
+ parentOperations?: ({
1671
+ type: "update";
1672
+ value: Record<string, unknown>;
1673
+ } | {
1674
+ type: "set";
1675
+ value: import("../../schemas/json.js").DeserializedJson;
1676
+ key: string;
1677
+ } | {
1678
+ type: "delete";
1679
+ key: string;
1680
+ } | {
1681
+ type: "append";
1682
+ value: import("../../schemas/json.js").DeserializedJson;
1683
+ key: string;
1684
+ } | {
1685
+ type: "remove";
1686
+ value: import("../../schemas/json.js").DeserializedJson;
1687
+ key: string;
1688
+ } | {
1689
+ type: "increment";
1690
+ value: number;
1691
+ key: string;
1692
+ })[] | undefined;
1693
+ rootOperations?: ({
1694
+ type: "update";
1695
+ value: Record<string, unknown>;
1696
+ } | {
1697
+ type: "set";
1698
+ value: import("../../schemas/json.js").DeserializedJson;
1699
+ key: string;
1700
+ } | {
1701
+ type: "delete";
1702
+ key: string;
1703
+ } | {
1704
+ type: "append";
1705
+ value: import("../../schemas/json.js").DeserializedJson;
1706
+ key: string;
1707
+ } | {
1708
+ type: "remove";
1709
+ value: import("../../schemas/json.js").DeserializedJson;
1710
+ key: string;
1711
+ } | {
1712
+ type: "increment";
1713
+ value: number;
1714
+ key: string;
1715
+ })[] | undefined;
1716
+ }, {
1717
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1718
+ operations?: ({
1719
+ type: "update";
1720
+ value: Record<string, unknown>;
1721
+ } | {
1722
+ type: "set";
1723
+ value: import("../../schemas/json.js").DeserializedJson;
1724
+ key: string;
1725
+ } | {
1726
+ type: "delete";
1727
+ key: string;
1728
+ } | {
1729
+ type: "append";
1730
+ value: import("../../schemas/json.js").DeserializedJson;
1731
+ key: string;
1732
+ } | {
1733
+ type: "remove";
1734
+ value: import("../../schemas/json.js").DeserializedJson;
1735
+ key: string;
1736
+ } | {
1737
+ type: "increment";
1738
+ value: number;
1739
+ key: string;
1740
+ })[] | undefined;
1741
+ parentOperations?: ({
1742
+ type: "update";
1743
+ value: Record<string, unknown>;
1744
+ } | {
1745
+ type: "set";
1746
+ value: import("../../schemas/json.js").DeserializedJson;
1747
+ key: string;
1748
+ } | {
1749
+ type: "delete";
1750
+ key: string;
1751
+ } | {
1752
+ type: "append";
1753
+ value: import("../../schemas/json.js").DeserializedJson;
1754
+ key: string;
1755
+ } | {
1756
+ type: "remove";
1757
+ value: import("../../schemas/json.js").DeserializedJson;
1758
+ key: string;
1759
+ } | {
1760
+ type: "increment";
1761
+ value: number;
1762
+ key: string;
1763
+ })[] | undefined;
1764
+ rootOperations?: ({
1765
+ type: "update";
1766
+ value: Record<string, unknown>;
1767
+ } | {
1768
+ type: "set";
1769
+ value: import("../../schemas/json.js").DeserializedJson;
1770
+ key: string;
1771
+ } | {
1772
+ type: "delete";
1773
+ key: string;
1774
+ } | {
1775
+ type: "append";
1776
+ value: import("../../schemas/json.js").DeserializedJson;
1777
+ key: string;
1778
+ } | {
1779
+ type: "remove";
1780
+ value: import("../../schemas/json.js").DeserializedJson;
1781
+ key: string;
1782
+ } | {
1783
+ type: "increment";
1784
+ value: number;
1785
+ key: string;
1786
+ })[] | undefined;
1787
+ }>>;
949
1788
  }, "strip", z.ZodTypeAny, {
950
1789
  id: string;
951
1790
  error: {
952
- message: string;
953
1791
  type: "BUILT_IN_ERROR";
1792
+ message: string;
954
1793
  name: string;
955
1794
  stackTrace: string;
956
1795
  } | {
@@ -960,12 +1799,84 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
960
1799
  type: "STRING_ERROR";
961
1800
  raw: string;
962
1801
  } | {
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_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
964
1802
  type: "INTERNAL_ERROR";
1803
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
965
1804
  message?: string | undefined;
966
1805
  stackTrace?: string | undefined;
967
1806
  };
968
1807
  ok: false;
1808
+ metadata?: {
1809
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1810
+ operations?: ({
1811
+ type: "update";
1812
+ value: Record<string, unknown>;
1813
+ } | {
1814
+ type: "set";
1815
+ value: import("../../schemas/json.js").DeserializedJson;
1816
+ key: string;
1817
+ } | {
1818
+ type: "delete";
1819
+ key: string;
1820
+ } | {
1821
+ type: "append";
1822
+ value: import("../../schemas/json.js").DeserializedJson;
1823
+ key: string;
1824
+ } | {
1825
+ type: "remove";
1826
+ value: import("../../schemas/json.js").DeserializedJson;
1827
+ key: string;
1828
+ } | {
1829
+ type: "increment";
1830
+ value: number;
1831
+ key: string;
1832
+ })[] | undefined;
1833
+ parentOperations?: ({
1834
+ type: "update";
1835
+ value: Record<string, unknown>;
1836
+ } | {
1837
+ type: "set";
1838
+ value: import("../../schemas/json.js").DeserializedJson;
1839
+ key: string;
1840
+ } | {
1841
+ type: "delete";
1842
+ key: string;
1843
+ } | {
1844
+ type: "append";
1845
+ value: import("../../schemas/json.js").DeserializedJson;
1846
+ key: string;
1847
+ } | {
1848
+ type: "remove";
1849
+ value: import("../../schemas/json.js").DeserializedJson;
1850
+ key: string;
1851
+ } | {
1852
+ type: "increment";
1853
+ value: number;
1854
+ key: string;
1855
+ })[] | undefined;
1856
+ rootOperations?: ({
1857
+ type: "update";
1858
+ value: Record<string, unknown>;
1859
+ } | {
1860
+ type: "set";
1861
+ value: import("../../schemas/json.js").DeserializedJson;
1862
+ key: string;
1863
+ } | {
1864
+ type: "delete";
1865
+ key: string;
1866
+ } | {
1867
+ type: "append";
1868
+ value: import("../../schemas/json.js").DeserializedJson;
1869
+ key: string;
1870
+ } | {
1871
+ type: "remove";
1872
+ value: import("../../schemas/json.js").DeserializedJson;
1873
+ key: string;
1874
+ } | {
1875
+ type: "increment";
1876
+ value: number;
1877
+ key: string;
1878
+ })[] | undefined;
1879
+ } | undefined;
969
1880
  retry?: {
970
1881
  timestamp: number;
971
1882
  delay: number;
@@ -979,8 +1890,8 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
979
1890
  }, {
980
1891
  id: string;
981
1892
  error: {
982
- message: string;
983
1893
  type: "BUILT_IN_ERROR";
1894
+ message: string;
984
1895
  name: string;
985
1896
  stackTrace: string;
986
1897
  } | {
@@ -990,12 +1901,84 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
990
1901
  type: "STRING_ERROR";
991
1902
  raw: string;
992
1903
  } | {
993
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
994
1904
  type: "INTERNAL_ERROR";
1905
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
995
1906
  message?: string | undefined;
996
1907
  stackTrace?: string | undefined;
997
1908
  };
998
1909
  ok: false;
1910
+ metadata?: {
1911
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
1912
+ operations?: ({
1913
+ type: "update";
1914
+ value: Record<string, unknown>;
1915
+ } | {
1916
+ type: "set";
1917
+ value: import("../../schemas/json.js").DeserializedJson;
1918
+ key: string;
1919
+ } | {
1920
+ type: "delete";
1921
+ key: string;
1922
+ } | {
1923
+ type: "append";
1924
+ value: import("../../schemas/json.js").DeserializedJson;
1925
+ key: string;
1926
+ } | {
1927
+ type: "remove";
1928
+ value: import("../../schemas/json.js").DeserializedJson;
1929
+ key: string;
1930
+ } | {
1931
+ type: "increment";
1932
+ value: number;
1933
+ key: string;
1934
+ })[] | undefined;
1935
+ parentOperations?: ({
1936
+ type: "update";
1937
+ value: Record<string, unknown>;
1938
+ } | {
1939
+ type: "set";
1940
+ value: import("../../schemas/json.js").DeserializedJson;
1941
+ key: string;
1942
+ } | {
1943
+ type: "delete";
1944
+ key: string;
1945
+ } | {
1946
+ type: "append";
1947
+ value: import("../../schemas/json.js").DeserializedJson;
1948
+ key: string;
1949
+ } | {
1950
+ type: "remove";
1951
+ value: import("../../schemas/json.js").DeserializedJson;
1952
+ key: string;
1953
+ } | {
1954
+ type: "increment";
1955
+ value: number;
1956
+ key: string;
1957
+ })[] | undefined;
1958
+ rootOperations?: ({
1959
+ type: "update";
1960
+ value: Record<string, unknown>;
1961
+ } | {
1962
+ type: "set";
1963
+ value: import("../../schemas/json.js").DeserializedJson;
1964
+ key: string;
1965
+ } | {
1966
+ type: "delete";
1967
+ key: string;
1968
+ } | {
1969
+ type: "append";
1970
+ value: import("../../schemas/json.js").DeserializedJson;
1971
+ key: string;
1972
+ } | {
1973
+ type: "remove";
1974
+ value: import("../../schemas/json.js").DeserializedJson;
1975
+ key: string;
1976
+ } | {
1977
+ type: "increment";
1978
+ value: number;
1979
+ key: string;
1980
+ })[] | undefined;
1981
+ } | undefined;
999
1982
  retry?: {
1000
1983
  timestamp: number;
1001
1984
  delay: number;
@@ -1021,24 +2004,514 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
1021
2004
  durationMs: number;
1022
2005
  }>>;
1023
2006
  taskIdentifier: z.ZodOptional<z.ZodString>;
1024
- }, "strip", z.ZodTypeAny, {
1025
- id: string;
1026
- ok: true;
1027
- outputType: string;
1028
- output?: string | undefined;
1029
- usage?: {
1030
- durationMs: number;
1031
- } | undefined;
1032
- taskIdentifier?: string | undefined;
1033
- }, {
1034
- id: string;
1035
- ok: true;
1036
- outputType: string;
1037
- output?: string | undefined;
2007
+ metadata: z.ZodOptional<z.ZodObject<{
2008
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
2009
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2010
+ type: z.ZodLiteral<"update">;
2011
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ type: "update";
2014
+ value: Record<string, unknown>;
2015
+ }, {
2016
+ type: "update";
2017
+ value: Record<string, unknown>;
2018
+ }>, z.ZodObject<{
2019
+ type: z.ZodLiteral<"set">;
2020
+ key: z.ZodString;
2021
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ type: "set";
2024
+ value: import("../../schemas/json.js").DeserializedJson;
2025
+ key: string;
2026
+ }, {
2027
+ type: "set";
2028
+ value: import("../../schemas/json.js").DeserializedJson;
2029
+ key: string;
2030
+ }>, z.ZodObject<{
2031
+ type: z.ZodLiteral<"delete">;
2032
+ key: z.ZodString;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ type: "delete";
2035
+ key: string;
2036
+ }, {
2037
+ type: "delete";
2038
+ key: string;
2039
+ }>, z.ZodObject<{
2040
+ type: z.ZodLiteral<"append">;
2041
+ key: z.ZodString;
2042
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ type: "append";
2045
+ value: import("../../schemas/json.js").DeserializedJson;
2046
+ key: string;
2047
+ }, {
2048
+ type: "append";
2049
+ value: import("../../schemas/json.js").DeserializedJson;
2050
+ key: string;
2051
+ }>, z.ZodObject<{
2052
+ type: z.ZodLiteral<"remove">;
2053
+ key: z.ZodString;
2054
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ type: "remove";
2057
+ value: import("../../schemas/json.js").DeserializedJson;
2058
+ key: string;
2059
+ }, {
2060
+ type: "remove";
2061
+ value: import("../../schemas/json.js").DeserializedJson;
2062
+ key: string;
2063
+ }>, z.ZodObject<{
2064
+ type: z.ZodLiteral<"increment">;
2065
+ key: z.ZodString;
2066
+ value: z.ZodNumber;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ type: "increment";
2069
+ value: number;
2070
+ key: string;
2071
+ }, {
2072
+ type: "increment";
2073
+ value: number;
2074
+ key: string;
2075
+ }>]>, "many">>;
2076
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2077
+ type: z.ZodLiteral<"update">;
2078
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ type: "update";
2081
+ value: Record<string, unknown>;
2082
+ }, {
2083
+ type: "update";
2084
+ value: Record<string, unknown>;
2085
+ }>, z.ZodObject<{
2086
+ type: z.ZodLiteral<"set">;
2087
+ key: z.ZodString;
2088
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ type: "set";
2091
+ value: import("../../schemas/json.js").DeserializedJson;
2092
+ key: string;
2093
+ }, {
2094
+ type: "set";
2095
+ value: import("../../schemas/json.js").DeserializedJson;
2096
+ key: string;
2097
+ }>, z.ZodObject<{
2098
+ type: z.ZodLiteral<"delete">;
2099
+ key: z.ZodString;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ type: "delete";
2102
+ key: string;
2103
+ }, {
2104
+ type: "delete";
2105
+ key: string;
2106
+ }>, z.ZodObject<{
2107
+ type: z.ZodLiteral<"append">;
2108
+ key: z.ZodString;
2109
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ type: "append";
2112
+ value: import("../../schemas/json.js").DeserializedJson;
2113
+ key: string;
2114
+ }, {
2115
+ type: "append";
2116
+ value: import("../../schemas/json.js").DeserializedJson;
2117
+ key: string;
2118
+ }>, z.ZodObject<{
2119
+ type: z.ZodLiteral<"remove">;
2120
+ key: z.ZodString;
2121
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ type: "remove";
2124
+ value: import("../../schemas/json.js").DeserializedJson;
2125
+ key: string;
2126
+ }, {
2127
+ type: "remove";
2128
+ value: import("../../schemas/json.js").DeserializedJson;
2129
+ key: string;
2130
+ }>, z.ZodObject<{
2131
+ type: z.ZodLiteral<"increment">;
2132
+ key: z.ZodString;
2133
+ value: z.ZodNumber;
2134
+ }, "strip", z.ZodTypeAny, {
2135
+ type: "increment";
2136
+ value: number;
2137
+ key: string;
2138
+ }, {
2139
+ type: "increment";
2140
+ value: number;
2141
+ key: string;
2142
+ }>]>, "many">>;
2143
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2144
+ type: z.ZodLiteral<"update">;
2145
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2146
+ }, "strip", z.ZodTypeAny, {
2147
+ type: "update";
2148
+ value: Record<string, unknown>;
2149
+ }, {
2150
+ type: "update";
2151
+ value: Record<string, unknown>;
2152
+ }>, z.ZodObject<{
2153
+ type: z.ZodLiteral<"set">;
2154
+ key: z.ZodString;
2155
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2156
+ }, "strip", z.ZodTypeAny, {
2157
+ type: "set";
2158
+ value: import("../../schemas/json.js").DeserializedJson;
2159
+ key: string;
2160
+ }, {
2161
+ type: "set";
2162
+ value: import("../../schemas/json.js").DeserializedJson;
2163
+ key: string;
2164
+ }>, z.ZodObject<{
2165
+ type: z.ZodLiteral<"delete">;
2166
+ key: z.ZodString;
2167
+ }, "strip", z.ZodTypeAny, {
2168
+ type: "delete";
2169
+ key: string;
2170
+ }, {
2171
+ type: "delete";
2172
+ key: string;
2173
+ }>, z.ZodObject<{
2174
+ type: z.ZodLiteral<"append">;
2175
+ key: z.ZodString;
2176
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ type: "append";
2179
+ value: import("../../schemas/json.js").DeserializedJson;
2180
+ key: string;
2181
+ }, {
2182
+ type: "append";
2183
+ value: import("../../schemas/json.js").DeserializedJson;
2184
+ key: string;
2185
+ }>, z.ZodObject<{
2186
+ type: z.ZodLiteral<"remove">;
2187
+ key: z.ZodString;
2188
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ type: "remove";
2191
+ value: import("../../schemas/json.js").DeserializedJson;
2192
+ key: string;
2193
+ }, {
2194
+ type: "remove";
2195
+ value: import("../../schemas/json.js").DeserializedJson;
2196
+ key: string;
2197
+ }>, z.ZodObject<{
2198
+ type: z.ZodLiteral<"increment">;
2199
+ key: z.ZodString;
2200
+ value: z.ZodNumber;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ type: "increment";
2203
+ value: number;
2204
+ key: string;
2205
+ }, {
2206
+ type: "increment";
2207
+ value: number;
2208
+ key: string;
2209
+ }>]>, "many">>;
2210
+ }, "strip", z.ZodTypeAny, {
2211
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2212
+ operations?: ({
2213
+ type: "update";
2214
+ value: Record<string, unknown>;
2215
+ } | {
2216
+ type: "set";
2217
+ value: import("../../schemas/json.js").DeserializedJson;
2218
+ key: string;
2219
+ } | {
2220
+ type: "delete";
2221
+ key: string;
2222
+ } | {
2223
+ type: "append";
2224
+ value: import("../../schemas/json.js").DeserializedJson;
2225
+ key: string;
2226
+ } | {
2227
+ type: "remove";
2228
+ value: import("../../schemas/json.js").DeserializedJson;
2229
+ key: string;
2230
+ } | {
2231
+ type: "increment";
2232
+ value: number;
2233
+ key: string;
2234
+ })[] | undefined;
2235
+ parentOperations?: ({
2236
+ type: "update";
2237
+ value: Record<string, unknown>;
2238
+ } | {
2239
+ type: "set";
2240
+ value: import("../../schemas/json.js").DeserializedJson;
2241
+ key: string;
2242
+ } | {
2243
+ type: "delete";
2244
+ key: string;
2245
+ } | {
2246
+ type: "append";
2247
+ value: import("../../schemas/json.js").DeserializedJson;
2248
+ key: string;
2249
+ } | {
2250
+ type: "remove";
2251
+ value: import("../../schemas/json.js").DeserializedJson;
2252
+ key: string;
2253
+ } | {
2254
+ type: "increment";
2255
+ value: number;
2256
+ key: string;
2257
+ })[] | undefined;
2258
+ rootOperations?: ({
2259
+ type: "update";
2260
+ value: Record<string, unknown>;
2261
+ } | {
2262
+ type: "set";
2263
+ value: import("../../schemas/json.js").DeserializedJson;
2264
+ key: string;
2265
+ } | {
2266
+ type: "delete";
2267
+ key: string;
2268
+ } | {
2269
+ type: "append";
2270
+ value: import("../../schemas/json.js").DeserializedJson;
2271
+ key: string;
2272
+ } | {
2273
+ type: "remove";
2274
+ value: import("../../schemas/json.js").DeserializedJson;
2275
+ key: string;
2276
+ } | {
2277
+ type: "increment";
2278
+ value: number;
2279
+ key: string;
2280
+ })[] | undefined;
2281
+ }, {
2282
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2283
+ operations?: ({
2284
+ type: "update";
2285
+ value: Record<string, unknown>;
2286
+ } | {
2287
+ type: "set";
2288
+ value: import("../../schemas/json.js").DeserializedJson;
2289
+ key: string;
2290
+ } | {
2291
+ type: "delete";
2292
+ key: string;
2293
+ } | {
2294
+ type: "append";
2295
+ value: import("../../schemas/json.js").DeserializedJson;
2296
+ key: string;
2297
+ } | {
2298
+ type: "remove";
2299
+ value: import("../../schemas/json.js").DeserializedJson;
2300
+ key: string;
2301
+ } | {
2302
+ type: "increment";
2303
+ value: number;
2304
+ key: string;
2305
+ })[] | undefined;
2306
+ parentOperations?: ({
2307
+ type: "update";
2308
+ value: Record<string, unknown>;
2309
+ } | {
2310
+ type: "set";
2311
+ value: import("../../schemas/json.js").DeserializedJson;
2312
+ key: string;
2313
+ } | {
2314
+ type: "delete";
2315
+ key: string;
2316
+ } | {
2317
+ type: "append";
2318
+ value: import("../../schemas/json.js").DeserializedJson;
2319
+ key: string;
2320
+ } | {
2321
+ type: "remove";
2322
+ value: import("../../schemas/json.js").DeserializedJson;
2323
+ key: string;
2324
+ } | {
2325
+ type: "increment";
2326
+ value: number;
2327
+ key: string;
2328
+ })[] | undefined;
2329
+ rootOperations?: ({
2330
+ type: "update";
2331
+ value: Record<string, unknown>;
2332
+ } | {
2333
+ type: "set";
2334
+ value: import("../../schemas/json.js").DeserializedJson;
2335
+ key: string;
2336
+ } | {
2337
+ type: "delete";
2338
+ key: string;
2339
+ } | {
2340
+ type: "append";
2341
+ value: import("../../schemas/json.js").DeserializedJson;
2342
+ key: string;
2343
+ } | {
2344
+ type: "remove";
2345
+ value: import("../../schemas/json.js").DeserializedJson;
2346
+ key: string;
2347
+ } | {
2348
+ type: "increment";
2349
+ value: number;
2350
+ key: string;
2351
+ })[] | undefined;
2352
+ }>>;
2353
+ }, "strip", z.ZodTypeAny, {
2354
+ id: string;
2355
+ ok: true;
2356
+ outputType: string;
2357
+ metadata?: {
2358
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2359
+ operations?: ({
2360
+ type: "update";
2361
+ value: Record<string, unknown>;
2362
+ } | {
2363
+ type: "set";
2364
+ value: import("../../schemas/json.js").DeserializedJson;
2365
+ key: string;
2366
+ } | {
2367
+ type: "delete";
2368
+ key: string;
2369
+ } | {
2370
+ type: "append";
2371
+ value: import("../../schemas/json.js").DeserializedJson;
2372
+ key: string;
2373
+ } | {
2374
+ type: "remove";
2375
+ value: import("../../schemas/json.js").DeserializedJson;
2376
+ key: string;
2377
+ } | {
2378
+ type: "increment";
2379
+ value: number;
2380
+ key: string;
2381
+ })[] | undefined;
2382
+ parentOperations?: ({
2383
+ type: "update";
2384
+ value: Record<string, unknown>;
2385
+ } | {
2386
+ type: "set";
2387
+ value: import("../../schemas/json.js").DeserializedJson;
2388
+ key: string;
2389
+ } | {
2390
+ type: "delete";
2391
+ key: string;
2392
+ } | {
2393
+ type: "append";
2394
+ value: import("../../schemas/json.js").DeserializedJson;
2395
+ key: string;
2396
+ } | {
2397
+ type: "remove";
2398
+ value: import("../../schemas/json.js").DeserializedJson;
2399
+ key: string;
2400
+ } | {
2401
+ type: "increment";
2402
+ value: number;
2403
+ key: string;
2404
+ })[] | undefined;
2405
+ rootOperations?: ({
2406
+ type: "update";
2407
+ value: Record<string, unknown>;
2408
+ } | {
2409
+ type: "set";
2410
+ value: import("../../schemas/json.js").DeserializedJson;
2411
+ key: string;
2412
+ } | {
2413
+ type: "delete";
2414
+ key: string;
2415
+ } | {
2416
+ type: "append";
2417
+ value: import("../../schemas/json.js").DeserializedJson;
2418
+ key: string;
2419
+ } | {
2420
+ type: "remove";
2421
+ value: import("../../schemas/json.js").DeserializedJson;
2422
+ key: string;
2423
+ } | {
2424
+ type: "increment";
2425
+ value: number;
2426
+ key: string;
2427
+ })[] | undefined;
2428
+ } | undefined;
2429
+ usage?: {
2430
+ durationMs: number;
2431
+ } | undefined;
2432
+ taskIdentifier?: string | undefined;
2433
+ output?: string | undefined;
2434
+ }, {
2435
+ id: string;
2436
+ ok: true;
2437
+ outputType: string;
2438
+ metadata?: {
2439
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2440
+ operations?: ({
2441
+ type: "update";
2442
+ value: Record<string, unknown>;
2443
+ } | {
2444
+ type: "set";
2445
+ value: import("../../schemas/json.js").DeserializedJson;
2446
+ key: string;
2447
+ } | {
2448
+ type: "delete";
2449
+ key: string;
2450
+ } | {
2451
+ type: "append";
2452
+ value: import("../../schemas/json.js").DeserializedJson;
2453
+ key: string;
2454
+ } | {
2455
+ type: "remove";
2456
+ value: import("../../schemas/json.js").DeserializedJson;
2457
+ key: string;
2458
+ } | {
2459
+ type: "increment";
2460
+ value: number;
2461
+ key: string;
2462
+ })[] | undefined;
2463
+ parentOperations?: ({
2464
+ type: "update";
2465
+ value: Record<string, unknown>;
2466
+ } | {
2467
+ type: "set";
2468
+ value: import("../../schemas/json.js").DeserializedJson;
2469
+ key: string;
2470
+ } | {
2471
+ type: "delete";
2472
+ key: string;
2473
+ } | {
2474
+ type: "append";
2475
+ value: import("../../schemas/json.js").DeserializedJson;
2476
+ key: string;
2477
+ } | {
2478
+ type: "remove";
2479
+ value: import("../../schemas/json.js").DeserializedJson;
2480
+ key: string;
2481
+ } | {
2482
+ type: "increment";
2483
+ value: number;
2484
+ key: string;
2485
+ })[] | undefined;
2486
+ rootOperations?: ({
2487
+ type: "update";
2488
+ value: Record<string, unknown>;
2489
+ } | {
2490
+ type: "set";
2491
+ value: import("../../schemas/json.js").DeserializedJson;
2492
+ key: string;
2493
+ } | {
2494
+ type: "delete";
2495
+ key: string;
2496
+ } | {
2497
+ type: "append";
2498
+ value: import("../../schemas/json.js").DeserializedJson;
2499
+ key: string;
2500
+ } | {
2501
+ type: "remove";
2502
+ value: import("../../schemas/json.js").DeserializedJson;
2503
+ key: string;
2504
+ } | {
2505
+ type: "increment";
2506
+ value: number;
2507
+ key: string;
2508
+ })[] | undefined;
2509
+ } | undefined;
1038
2510
  usage?: {
1039
2511
  durationMs: number;
1040
2512
  } | undefined;
1041
2513
  taskIdentifier?: string | undefined;
2514
+ output?: string | undefined;
1042
2515
  }>;
1043
2516
  export type TaskRunSuccessfulExecutionResult = z.infer<typeof TaskRunSuccessfulExecutionResult>;
1044
2517
  export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
@@ -1054,24 +2527,514 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1054
2527
  durationMs: number;
1055
2528
  }>>;
1056
2529
  taskIdentifier: z.ZodOptional<z.ZodString>;
2530
+ metadata: z.ZodOptional<z.ZodObject<{
2531
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
2532
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2533
+ type: z.ZodLiteral<"update">;
2534
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2535
+ }, "strip", z.ZodTypeAny, {
2536
+ type: "update";
2537
+ value: Record<string, unknown>;
2538
+ }, {
2539
+ type: "update";
2540
+ value: Record<string, unknown>;
2541
+ }>, z.ZodObject<{
2542
+ type: z.ZodLiteral<"set">;
2543
+ key: z.ZodString;
2544
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2545
+ }, "strip", z.ZodTypeAny, {
2546
+ type: "set";
2547
+ value: import("../../schemas/json.js").DeserializedJson;
2548
+ key: string;
2549
+ }, {
2550
+ type: "set";
2551
+ value: import("../../schemas/json.js").DeserializedJson;
2552
+ key: string;
2553
+ }>, z.ZodObject<{
2554
+ type: z.ZodLiteral<"delete">;
2555
+ key: z.ZodString;
2556
+ }, "strip", z.ZodTypeAny, {
2557
+ type: "delete";
2558
+ key: string;
2559
+ }, {
2560
+ type: "delete";
2561
+ key: string;
2562
+ }>, z.ZodObject<{
2563
+ type: z.ZodLiteral<"append">;
2564
+ key: z.ZodString;
2565
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2566
+ }, "strip", z.ZodTypeAny, {
2567
+ type: "append";
2568
+ value: import("../../schemas/json.js").DeserializedJson;
2569
+ key: string;
2570
+ }, {
2571
+ type: "append";
2572
+ value: import("../../schemas/json.js").DeserializedJson;
2573
+ key: string;
2574
+ }>, z.ZodObject<{
2575
+ type: z.ZodLiteral<"remove">;
2576
+ key: z.ZodString;
2577
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ type: "remove";
2580
+ value: import("../../schemas/json.js").DeserializedJson;
2581
+ key: string;
2582
+ }, {
2583
+ type: "remove";
2584
+ value: import("../../schemas/json.js").DeserializedJson;
2585
+ key: string;
2586
+ }>, z.ZodObject<{
2587
+ type: z.ZodLiteral<"increment">;
2588
+ key: z.ZodString;
2589
+ value: z.ZodNumber;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ type: "increment";
2592
+ value: number;
2593
+ key: string;
2594
+ }, {
2595
+ type: "increment";
2596
+ value: number;
2597
+ key: string;
2598
+ }>]>, "many">>;
2599
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2600
+ type: z.ZodLiteral<"update">;
2601
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2602
+ }, "strip", z.ZodTypeAny, {
2603
+ type: "update";
2604
+ value: Record<string, unknown>;
2605
+ }, {
2606
+ type: "update";
2607
+ value: Record<string, unknown>;
2608
+ }>, z.ZodObject<{
2609
+ type: z.ZodLiteral<"set">;
2610
+ key: z.ZodString;
2611
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ type: "set";
2614
+ value: import("../../schemas/json.js").DeserializedJson;
2615
+ key: string;
2616
+ }, {
2617
+ type: "set";
2618
+ value: import("../../schemas/json.js").DeserializedJson;
2619
+ key: string;
2620
+ }>, z.ZodObject<{
2621
+ type: z.ZodLiteral<"delete">;
2622
+ key: z.ZodString;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ type: "delete";
2625
+ key: string;
2626
+ }, {
2627
+ type: "delete";
2628
+ key: string;
2629
+ }>, z.ZodObject<{
2630
+ type: z.ZodLiteral<"append">;
2631
+ key: z.ZodString;
2632
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2633
+ }, "strip", z.ZodTypeAny, {
2634
+ type: "append";
2635
+ value: import("../../schemas/json.js").DeserializedJson;
2636
+ key: string;
2637
+ }, {
2638
+ type: "append";
2639
+ value: import("../../schemas/json.js").DeserializedJson;
2640
+ key: string;
2641
+ }>, z.ZodObject<{
2642
+ type: z.ZodLiteral<"remove">;
2643
+ key: z.ZodString;
2644
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2645
+ }, "strip", z.ZodTypeAny, {
2646
+ type: "remove";
2647
+ value: import("../../schemas/json.js").DeserializedJson;
2648
+ key: string;
2649
+ }, {
2650
+ type: "remove";
2651
+ value: import("../../schemas/json.js").DeserializedJson;
2652
+ key: string;
2653
+ }>, z.ZodObject<{
2654
+ type: z.ZodLiteral<"increment">;
2655
+ key: z.ZodString;
2656
+ value: z.ZodNumber;
2657
+ }, "strip", z.ZodTypeAny, {
2658
+ type: "increment";
2659
+ value: number;
2660
+ key: string;
2661
+ }, {
2662
+ type: "increment";
2663
+ value: number;
2664
+ key: string;
2665
+ }>]>, "many">>;
2666
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2667
+ type: z.ZodLiteral<"update">;
2668
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2669
+ }, "strip", z.ZodTypeAny, {
2670
+ type: "update";
2671
+ value: Record<string, unknown>;
2672
+ }, {
2673
+ type: "update";
2674
+ value: Record<string, unknown>;
2675
+ }>, z.ZodObject<{
2676
+ type: z.ZodLiteral<"set">;
2677
+ key: z.ZodString;
2678
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ type: "set";
2681
+ value: import("../../schemas/json.js").DeserializedJson;
2682
+ key: string;
2683
+ }, {
2684
+ type: "set";
2685
+ value: import("../../schemas/json.js").DeserializedJson;
2686
+ key: string;
2687
+ }>, z.ZodObject<{
2688
+ type: z.ZodLiteral<"delete">;
2689
+ key: z.ZodString;
2690
+ }, "strip", z.ZodTypeAny, {
2691
+ type: "delete";
2692
+ key: string;
2693
+ }, {
2694
+ type: "delete";
2695
+ key: string;
2696
+ }>, z.ZodObject<{
2697
+ type: z.ZodLiteral<"append">;
2698
+ key: z.ZodString;
2699
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2700
+ }, "strip", z.ZodTypeAny, {
2701
+ type: "append";
2702
+ value: import("../../schemas/json.js").DeserializedJson;
2703
+ key: string;
2704
+ }, {
2705
+ type: "append";
2706
+ value: import("../../schemas/json.js").DeserializedJson;
2707
+ key: string;
2708
+ }>, z.ZodObject<{
2709
+ type: z.ZodLiteral<"remove">;
2710
+ key: z.ZodString;
2711
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
2712
+ }, "strip", z.ZodTypeAny, {
2713
+ type: "remove";
2714
+ value: import("../../schemas/json.js").DeserializedJson;
2715
+ key: string;
2716
+ }, {
2717
+ type: "remove";
2718
+ value: import("../../schemas/json.js").DeserializedJson;
2719
+ key: string;
2720
+ }>, z.ZodObject<{
2721
+ type: z.ZodLiteral<"increment">;
2722
+ key: z.ZodString;
2723
+ value: z.ZodNumber;
2724
+ }, "strip", z.ZodTypeAny, {
2725
+ type: "increment";
2726
+ value: number;
2727
+ key: string;
2728
+ }, {
2729
+ type: "increment";
2730
+ value: number;
2731
+ key: string;
2732
+ }>]>, "many">>;
2733
+ }, "strip", z.ZodTypeAny, {
2734
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2735
+ operations?: ({
2736
+ type: "update";
2737
+ value: Record<string, unknown>;
2738
+ } | {
2739
+ type: "set";
2740
+ value: import("../../schemas/json.js").DeserializedJson;
2741
+ key: string;
2742
+ } | {
2743
+ type: "delete";
2744
+ key: string;
2745
+ } | {
2746
+ type: "append";
2747
+ value: import("../../schemas/json.js").DeserializedJson;
2748
+ key: string;
2749
+ } | {
2750
+ type: "remove";
2751
+ value: import("../../schemas/json.js").DeserializedJson;
2752
+ key: string;
2753
+ } | {
2754
+ type: "increment";
2755
+ value: number;
2756
+ key: string;
2757
+ })[] | undefined;
2758
+ parentOperations?: ({
2759
+ type: "update";
2760
+ value: Record<string, unknown>;
2761
+ } | {
2762
+ type: "set";
2763
+ value: import("../../schemas/json.js").DeserializedJson;
2764
+ key: string;
2765
+ } | {
2766
+ type: "delete";
2767
+ key: string;
2768
+ } | {
2769
+ type: "append";
2770
+ value: import("../../schemas/json.js").DeserializedJson;
2771
+ key: string;
2772
+ } | {
2773
+ type: "remove";
2774
+ value: import("../../schemas/json.js").DeserializedJson;
2775
+ key: string;
2776
+ } | {
2777
+ type: "increment";
2778
+ value: number;
2779
+ key: string;
2780
+ })[] | undefined;
2781
+ rootOperations?: ({
2782
+ type: "update";
2783
+ value: Record<string, unknown>;
2784
+ } | {
2785
+ type: "set";
2786
+ value: import("../../schemas/json.js").DeserializedJson;
2787
+ key: string;
2788
+ } | {
2789
+ type: "delete";
2790
+ key: string;
2791
+ } | {
2792
+ type: "append";
2793
+ value: import("../../schemas/json.js").DeserializedJson;
2794
+ key: string;
2795
+ } | {
2796
+ type: "remove";
2797
+ value: import("../../schemas/json.js").DeserializedJson;
2798
+ key: string;
2799
+ } | {
2800
+ type: "increment";
2801
+ value: number;
2802
+ key: string;
2803
+ })[] | undefined;
2804
+ }, {
2805
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2806
+ operations?: ({
2807
+ type: "update";
2808
+ value: Record<string, unknown>;
2809
+ } | {
2810
+ type: "set";
2811
+ value: import("../../schemas/json.js").DeserializedJson;
2812
+ key: string;
2813
+ } | {
2814
+ type: "delete";
2815
+ key: string;
2816
+ } | {
2817
+ type: "append";
2818
+ value: import("../../schemas/json.js").DeserializedJson;
2819
+ key: string;
2820
+ } | {
2821
+ type: "remove";
2822
+ value: import("../../schemas/json.js").DeserializedJson;
2823
+ key: string;
2824
+ } | {
2825
+ type: "increment";
2826
+ value: number;
2827
+ key: string;
2828
+ })[] | undefined;
2829
+ parentOperations?: ({
2830
+ type: "update";
2831
+ value: Record<string, unknown>;
2832
+ } | {
2833
+ type: "set";
2834
+ value: import("../../schemas/json.js").DeserializedJson;
2835
+ key: string;
2836
+ } | {
2837
+ type: "delete";
2838
+ key: string;
2839
+ } | {
2840
+ type: "append";
2841
+ value: import("../../schemas/json.js").DeserializedJson;
2842
+ key: string;
2843
+ } | {
2844
+ type: "remove";
2845
+ value: import("../../schemas/json.js").DeserializedJson;
2846
+ key: string;
2847
+ } | {
2848
+ type: "increment";
2849
+ value: number;
2850
+ key: string;
2851
+ })[] | undefined;
2852
+ rootOperations?: ({
2853
+ type: "update";
2854
+ value: Record<string, unknown>;
2855
+ } | {
2856
+ type: "set";
2857
+ value: import("../../schemas/json.js").DeserializedJson;
2858
+ key: string;
2859
+ } | {
2860
+ type: "delete";
2861
+ key: string;
2862
+ } | {
2863
+ type: "append";
2864
+ value: import("../../schemas/json.js").DeserializedJson;
2865
+ key: string;
2866
+ } | {
2867
+ type: "remove";
2868
+ value: import("../../schemas/json.js").DeserializedJson;
2869
+ key: string;
2870
+ } | {
2871
+ type: "increment";
2872
+ value: number;
2873
+ key: string;
2874
+ })[] | undefined;
2875
+ }>>;
1057
2876
  }, "strip", z.ZodTypeAny, {
1058
2877
  id: string;
1059
2878
  ok: true;
1060
2879
  outputType: string;
1061
- output?: string | undefined;
2880
+ metadata?: {
2881
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2882
+ operations?: ({
2883
+ type: "update";
2884
+ value: Record<string, unknown>;
2885
+ } | {
2886
+ type: "set";
2887
+ value: import("../../schemas/json.js").DeserializedJson;
2888
+ key: string;
2889
+ } | {
2890
+ type: "delete";
2891
+ key: string;
2892
+ } | {
2893
+ type: "append";
2894
+ value: import("../../schemas/json.js").DeserializedJson;
2895
+ key: string;
2896
+ } | {
2897
+ type: "remove";
2898
+ value: import("../../schemas/json.js").DeserializedJson;
2899
+ key: string;
2900
+ } | {
2901
+ type: "increment";
2902
+ value: number;
2903
+ key: string;
2904
+ })[] | undefined;
2905
+ parentOperations?: ({
2906
+ type: "update";
2907
+ value: Record<string, unknown>;
2908
+ } | {
2909
+ type: "set";
2910
+ value: import("../../schemas/json.js").DeserializedJson;
2911
+ key: string;
2912
+ } | {
2913
+ type: "delete";
2914
+ key: string;
2915
+ } | {
2916
+ type: "append";
2917
+ value: import("../../schemas/json.js").DeserializedJson;
2918
+ key: string;
2919
+ } | {
2920
+ type: "remove";
2921
+ value: import("../../schemas/json.js").DeserializedJson;
2922
+ key: string;
2923
+ } | {
2924
+ type: "increment";
2925
+ value: number;
2926
+ key: string;
2927
+ })[] | undefined;
2928
+ rootOperations?: ({
2929
+ type: "update";
2930
+ value: Record<string, unknown>;
2931
+ } | {
2932
+ type: "set";
2933
+ value: import("../../schemas/json.js").DeserializedJson;
2934
+ key: string;
2935
+ } | {
2936
+ type: "delete";
2937
+ key: string;
2938
+ } | {
2939
+ type: "append";
2940
+ value: import("../../schemas/json.js").DeserializedJson;
2941
+ key: string;
2942
+ } | {
2943
+ type: "remove";
2944
+ value: import("../../schemas/json.js").DeserializedJson;
2945
+ key: string;
2946
+ } | {
2947
+ type: "increment";
2948
+ value: number;
2949
+ key: string;
2950
+ })[] | undefined;
2951
+ } | undefined;
1062
2952
  usage?: {
1063
2953
  durationMs: number;
1064
2954
  } | undefined;
1065
2955
  taskIdentifier?: string | undefined;
2956
+ output?: string | undefined;
1066
2957
  }, {
1067
2958
  id: string;
1068
2959
  ok: true;
1069
2960
  outputType: string;
1070
- output?: string | undefined;
2961
+ metadata?: {
2962
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
2963
+ operations?: ({
2964
+ type: "update";
2965
+ value: Record<string, unknown>;
2966
+ } | {
2967
+ type: "set";
2968
+ value: import("../../schemas/json.js").DeserializedJson;
2969
+ key: string;
2970
+ } | {
2971
+ type: "delete";
2972
+ key: string;
2973
+ } | {
2974
+ type: "append";
2975
+ value: import("../../schemas/json.js").DeserializedJson;
2976
+ key: string;
2977
+ } | {
2978
+ type: "remove";
2979
+ value: import("../../schemas/json.js").DeserializedJson;
2980
+ key: string;
2981
+ } | {
2982
+ type: "increment";
2983
+ value: number;
2984
+ key: string;
2985
+ })[] | undefined;
2986
+ parentOperations?: ({
2987
+ type: "update";
2988
+ value: Record<string, unknown>;
2989
+ } | {
2990
+ type: "set";
2991
+ value: import("../../schemas/json.js").DeserializedJson;
2992
+ key: string;
2993
+ } | {
2994
+ type: "delete";
2995
+ key: string;
2996
+ } | {
2997
+ type: "append";
2998
+ value: import("../../schemas/json.js").DeserializedJson;
2999
+ key: string;
3000
+ } | {
3001
+ type: "remove";
3002
+ value: import("../../schemas/json.js").DeserializedJson;
3003
+ key: string;
3004
+ } | {
3005
+ type: "increment";
3006
+ value: number;
3007
+ key: string;
3008
+ })[] | undefined;
3009
+ rootOperations?: ({
3010
+ type: "update";
3011
+ value: Record<string, unknown>;
3012
+ } | {
3013
+ type: "set";
3014
+ value: import("../../schemas/json.js").DeserializedJson;
3015
+ key: string;
3016
+ } | {
3017
+ type: "delete";
3018
+ key: string;
3019
+ } | {
3020
+ type: "append";
3021
+ value: import("../../schemas/json.js").DeserializedJson;
3022
+ key: string;
3023
+ } | {
3024
+ type: "remove";
3025
+ value: import("../../schemas/json.js").DeserializedJson;
3026
+ key: string;
3027
+ } | {
3028
+ type: "increment";
3029
+ value: number;
3030
+ key: string;
3031
+ })[] | undefined;
3032
+ } | undefined;
1071
3033
  usage?: {
1072
3034
  durationMs: number;
1073
3035
  } | undefined;
1074
3036
  taskIdentifier?: string | undefined;
3037
+ output?: string | undefined;
1075
3038
  }>, z.ZodObject<{
1076
3039
  ok: z.ZodLiteral<false>;
1077
3040
  id: z.ZodString;
@@ -1081,13 +3044,13 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1081
3044
  message: z.ZodString;
1082
3045
  stackTrace: z.ZodString;
1083
3046
  }, "strip", z.ZodTypeAny, {
1084
- message: string;
1085
3047
  type: "BUILT_IN_ERROR";
3048
+ message: string;
1086
3049
  name: string;
1087
3050
  stackTrace: string;
1088
3051
  }, {
1089
- message: string;
1090
3052
  type: "BUILT_IN_ERROR";
3053
+ message: string;
1091
3054
  name: string;
1092
3055
  stackTrace: string;
1093
3056
  }>, z.ZodObject<{
@@ -1114,13 +3077,13 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1114
3077
  message: z.ZodOptional<z.ZodString>;
1115
3078
  stackTrace: z.ZodOptional<z.ZodString>;
1116
3079
  }, "strip", z.ZodTypeAny, {
1117
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1118
3080
  type: "INTERNAL_ERROR";
3081
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1119
3082
  message?: string | undefined;
1120
3083
  stackTrace?: string | undefined;
1121
3084
  }, {
1122
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1123
3085
  type: "INTERNAL_ERROR";
3086
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1124
3087
  message?: string | undefined;
1125
3088
  stackTrace?: string | undefined;
1126
3089
  }>]>;
@@ -1146,11 +3109,357 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1146
3109
  durationMs: number;
1147
3110
  }>>;
1148
3111
  taskIdentifier: z.ZodOptional<z.ZodString>;
3112
+ metadata: z.ZodOptional<z.ZodObject<{
3113
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
3114
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3115
+ type: z.ZodLiteral<"update">;
3116
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3117
+ }, "strip", z.ZodTypeAny, {
3118
+ type: "update";
3119
+ value: Record<string, unknown>;
3120
+ }, {
3121
+ type: "update";
3122
+ value: Record<string, unknown>;
3123
+ }>, z.ZodObject<{
3124
+ type: z.ZodLiteral<"set">;
3125
+ key: z.ZodString;
3126
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3127
+ }, "strip", z.ZodTypeAny, {
3128
+ type: "set";
3129
+ value: import("../../schemas/json.js").DeserializedJson;
3130
+ key: string;
3131
+ }, {
3132
+ type: "set";
3133
+ value: import("../../schemas/json.js").DeserializedJson;
3134
+ key: string;
3135
+ }>, z.ZodObject<{
3136
+ type: z.ZodLiteral<"delete">;
3137
+ key: z.ZodString;
3138
+ }, "strip", z.ZodTypeAny, {
3139
+ type: "delete";
3140
+ key: string;
3141
+ }, {
3142
+ type: "delete";
3143
+ key: string;
3144
+ }>, z.ZodObject<{
3145
+ type: z.ZodLiteral<"append">;
3146
+ key: z.ZodString;
3147
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3148
+ }, "strip", z.ZodTypeAny, {
3149
+ type: "append";
3150
+ value: import("../../schemas/json.js").DeserializedJson;
3151
+ key: string;
3152
+ }, {
3153
+ type: "append";
3154
+ value: import("../../schemas/json.js").DeserializedJson;
3155
+ key: string;
3156
+ }>, z.ZodObject<{
3157
+ type: z.ZodLiteral<"remove">;
3158
+ key: z.ZodString;
3159
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3160
+ }, "strip", z.ZodTypeAny, {
3161
+ type: "remove";
3162
+ value: import("../../schemas/json.js").DeserializedJson;
3163
+ key: string;
3164
+ }, {
3165
+ type: "remove";
3166
+ value: import("../../schemas/json.js").DeserializedJson;
3167
+ key: string;
3168
+ }>, z.ZodObject<{
3169
+ type: z.ZodLiteral<"increment">;
3170
+ key: z.ZodString;
3171
+ value: z.ZodNumber;
3172
+ }, "strip", z.ZodTypeAny, {
3173
+ type: "increment";
3174
+ value: number;
3175
+ key: string;
3176
+ }, {
3177
+ type: "increment";
3178
+ value: number;
3179
+ key: string;
3180
+ }>]>, "many">>;
3181
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3182
+ type: z.ZodLiteral<"update">;
3183
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3184
+ }, "strip", z.ZodTypeAny, {
3185
+ type: "update";
3186
+ value: Record<string, unknown>;
3187
+ }, {
3188
+ type: "update";
3189
+ value: Record<string, unknown>;
3190
+ }>, z.ZodObject<{
3191
+ type: z.ZodLiteral<"set">;
3192
+ key: z.ZodString;
3193
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3194
+ }, "strip", z.ZodTypeAny, {
3195
+ type: "set";
3196
+ value: import("../../schemas/json.js").DeserializedJson;
3197
+ key: string;
3198
+ }, {
3199
+ type: "set";
3200
+ value: import("../../schemas/json.js").DeserializedJson;
3201
+ key: string;
3202
+ }>, z.ZodObject<{
3203
+ type: z.ZodLiteral<"delete">;
3204
+ key: z.ZodString;
3205
+ }, "strip", z.ZodTypeAny, {
3206
+ type: "delete";
3207
+ key: string;
3208
+ }, {
3209
+ type: "delete";
3210
+ key: string;
3211
+ }>, z.ZodObject<{
3212
+ type: z.ZodLiteral<"append">;
3213
+ key: z.ZodString;
3214
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3215
+ }, "strip", z.ZodTypeAny, {
3216
+ type: "append";
3217
+ value: import("../../schemas/json.js").DeserializedJson;
3218
+ key: string;
3219
+ }, {
3220
+ type: "append";
3221
+ value: import("../../schemas/json.js").DeserializedJson;
3222
+ key: string;
3223
+ }>, z.ZodObject<{
3224
+ type: z.ZodLiteral<"remove">;
3225
+ key: z.ZodString;
3226
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3227
+ }, "strip", z.ZodTypeAny, {
3228
+ type: "remove";
3229
+ value: import("../../schemas/json.js").DeserializedJson;
3230
+ key: string;
3231
+ }, {
3232
+ type: "remove";
3233
+ value: import("../../schemas/json.js").DeserializedJson;
3234
+ key: string;
3235
+ }>, z.ZodObject<{
3236
+ type: z.ZodLiteral<"increment">;
3237
+ key: z.ZodString;
3238
+ value: z.ZodNumber;
3239
+ }, "strip", z.ZodTypeAny, {
3240
+ type: "increment";
3241
+ value: number;
3242
+ key: string;
3243
+ }, {
3244
+ type: "increment";
3245
+ value: number;
3246
+ key: string;
3247
+ }>]>, "many">>;
3248
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3249
+ type: z.ZodLiteral<"update">;
3250
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3251
+ }, "strip", z.ZodTypeAny, {
3252
+ type: "update";
3253
+ value: Record<string, unknown>;
3254
+ }, {
3255
+ type: "update";
3256
+ value: Record<string, unknown>;
3257
+ }>, z.ZodObject<{
3258
+ type: z.ZodLiteral<"set">;
3259
+ key: z.ZodString;
3260
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3261
+ }, "strip", z.ZodTypeAny, {
3262
+ type: "set";
3263
+ value: import("../../schemas/json.js").DeserializedJson;
3264
+ key: string;
3265
+ }, {
3266
+ type: "set";
3267
+ value: import("../../schemas/json.js").DeserializedJson;
3268
+ key: string;
3269
+ }>, z.ZodObject<{
3270
+ type: z.ZodLiteral<"delete">;
3271
+ key: z.ZodString;
3272
+ }, "strip", z.ZodTypeAny, {
3273
+ type: "delete";
3274
+ key: string;
3275
+ }, {
3276
+ type: "delete";
3277
+ key: string;
3278
+ }>, z.ZodObject<{
3279
+ type: z.ZodLiteral<"append">;
3280
+ key: z.ZodString;
3281
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3282
+ }, "strip", z.ZodTypeAny, {
3283
+ type: "append";
3284
+ value: import("../../schemas/json.js").DeserializedJson;
3285
+ key: string;
3286
+ }, {
3287
+ type: "append";
3288
+ value: import("../../schemas/json.js").DeserializedJson;
3289
+ key: string;
3290
+ }>, z.ZodObject<{
3291
+ type: z.ZodLiteral<"remove">;
3292
+ key: z.ZodString;
3293
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ type: "remove";
3296
+ value: import("../../schemas/json.js").DeserializedJson;
3297
+ key: string;
3298
+ }, {
3299
+ type: "remove";
3300
+ value: import("../../schemas/json.js").DeserializedJson;
3301
+ key: string;
3302
+ }>, z.ZodObject<{
3303
+ type: z.ZodLiteral<"increment">;
3304
+ key: z.ZodString;
3305
+ value: z.ZodNumber;
3306
+ }, "strip", z.ZodTypeAny, {
3307
+ type: "increment";
3308
+ value: number;
3309
+ key: string;
3310
+ }, {
3311
+ type: "increment";
3312
+ value: number;
3313
+ key: string;
3314
+ }>]>, "many">>;
3315
+ }, "strip", z.ZodTypeAny, {
3316
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3317
+ operations?: ({
3318
+ type: "update";
3319
+ value: Record<string, unknown>;
3320
+ } | {
3321
+ type: "set";
3322
+ value: import("../../schemas/json.js").DeserializedJson;
3323
+ key: string;
3324
+ } | {
3325
+ type: "delete";
3326
+ key: string;
3327
+ } | {
3328
+ type: "append";
3329
+ value: import("../../schemas/json.js").DeserializedJson;
3330
+ key: string;
3331
+ } | {
3332
+ type: "remove";
3333
+ value: import("../../schemas/json.js").DeserializedJson;
3334
+ key: string;
3335
+ } | {
3336
+ type: "increment";
3337
+ value: number;
3338
+ key: string;
3339
+ })[] | undefined;
3340
+ parentOperations?: ({
3341
+ type: "update";
3342
+ value: Record<string, unknown>;
3343
+ } | {
3344
+ type: "set";
3345
+ value: import("../../schemas/json.js").DeserializedJson;
3346
+ key: string;
3347
+ } | {
3348
+ type: "delete";
3349
+ key: string;
3350
+ } | {
3351
+ type: "append";
3352
+ value: import("../../schemas/json.js").DeserializedJson;
3353
+ key: string;
3354
+ } | {
3355
+ type: "remove";
3356
+ value: import("../../schemas/json.js").DeserializedJson;
3357
+ key: string;
3358
+ } | {
3359
+ type: "increment";
3360
+ value: number;
3361
+ key: string;
3362
+ })[] | undefined;
3363
+ rootOperations?: ({
3364
+ type: "update";
3365
+ value: Record<string, unknown>;
3366
+ } | {
3367
+ type: "set";
3368
+ value: import("../../schemas/json.js").DeserializedJson;
3369
+ key: string;
3370
+ } | {
3371
+ type: "delete";
3372
+ key: string;
3373
+ } | {
3374
+ type: "append";
3375
+ value: import("../../schemas/json.js").DeserializedJson;
3376
+ key: string;
3377
+ } | {
3378
+ type: "remove";
3379
+ value: import("../../schemas/json.js").DeserializedJson;
3380
+ key: string;
3381
+ } | {
3382
+ type: "increment";
3383
+ value: number;
3384
+ key: string;
3385
+ })[] | undefined;
3386
+ }, {
3387
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3388
+ operations?: ({
3389
+ type: "update";
3390
+ value: Record<string, unknown>;
3391
+ } | {
3392
+ type: "set";
3393
+ value: import("../../schemas/json.js").DeserializedJson;
3394
+ key: string;
3395
+ } | {
3396
+ type: "delete";
3397
+ key: string;
3398
+ } | {
3399
+ type: "append";
3400
+ value: import("../../schemas/json.js").DeserializedJson;
3401
+ key: string;
3402
+ } | {
3403
+ type: "remove";
3404
+ value: import("../../schemas/json.js").DeserializedJson;
3405
+ key: string;
3406
+ } | {
3407
+ type: "increment";
3408
+ value: number;
3409
+ key: string;
3410
+ })[] | undefined;
3411
+ parentOperations?: ({
3412
+ type: "update";
3413
+ value: Record<string, unknown>;
3414
+ } | {
3415
+ type: "set";
3416
+ value: import("../../schemas/json.js").DeserializedJson;
3417
+ key: string;
3418
+ } | {
3419
+ type: "delete";
3420
+ key: string;
3421
+ } | {
3422
+ type: "append";
3423
+ value: import("../../schemas/json.js").DeserializedJson;
3424
+ key: string;
3425
+ } | {
3426
+ type: "remove";
3427
+ value: import("../../schemas/json.js").DeserializedJson;
3428
+ key: string;
3429
+ } | {
3430
+ type: "increment";
3431
+ value: number;
3432
+ key: string;
3433
+ })[] | undefined;
3434
+ rootOperations?: ({
3435
+ type: "update";
3436
+ value: Record<string, unknown>;
3437
+ } | {
3438
+ type: "set";
3439
+ value: import("../../schemas/json.js").DeserializedJson;
3440
+ key: string;
3441
+ } | {
3442
+ type: "delete";
3443
+ key: string;
3444
+ } | {
3445
+ type: "append";
3446
+ value: import("../../schemas/json.js").DeserializedJson;
3447
+ key: string;
3448
+ } | {
3449
+ type: "remove";
3450
+ value: import("../../schemas/json.js").DeserializedJson;
3451
+ key: string;
3452
+ } | {
3453
+ type: "increment";
3454
+ value: number;
3455
+ key: string;
3456
+ })[] | undefined;
3457
+ }>>;
1149
3458
  }, "strip", z.ZodTypeAny, {
1150
3459
  id: string;
1151
3460
  error: {
1152
- message: string;
1153
3461
  type: "BUILT_IN_ERROR";
3462
+ message: string;
1154
3463
  name: string;
1155
3464
  stackTrace: string;
1156
3465
  } | {
@@ -1160,12 +3469,84 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1160
3469
  type: "STRING_ERROR";
1161
3470
  raw: string;
1162
3471
  } | {
1163
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1164
3472
  type: "INTERNAL_ERROR";
3473
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1165
3474
  message?: string | undefined;
1166
3475
  stackTrace?: string | undefined;
1167
3476
  };
1168
3477
  ok: false;
3478
+ metadata?: {
3479
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3480
+ operations?: ({
3481
+ type: "update";
3482
+ value: Record<string, unknown>;
3483
+ } | {
3484
+ type: "set";
3485
+ value: import("../../schemas/json.js").DeserializedJson;
3486
+ key: string;
3487
+ } | {
3488
+ type: "delete";
3489
+ key: string;
3490
+ } | {
3491
+ type: "append";
3492
+ value: import("../../schemas/json.js").DeserializedJson;
3493
+ key: string;
3494
+ } | {
3495
+ type: "remove";
3496
+ value: import("../../schemas/json.js").DeserializedJson;
3497
+ key: string;
3498
+ } | {
3499
+ type: "increment";
3500
+ value: number;
3501
+ key: string;
3502
+ })[] | undefined;
3503
+ parentOperations?: ({
3504
+ type: "update";
3505
+ value: Record<string, unknown>;
3506
+ } | {
3507
+ type: "set";
3508
+ value: import("../../schemas/json.js").DeserializedJson;
3509
+ key: string;
3510
+ } | {
3511
+ type: "delete";
3512
+ key: string;
3513
+ } | {
3514
+ type: "append";
3515
+ value: import("../../schemas/json.js").DeserializedJson;
3516
+ key: string;
3517
+ } | {
3518
+ type: "remove";
3519
+ value: import("../../schemas/json.js").DeserializedJson;
3520
+ key: string;
3521
+ } | {
3522
+ type: "increment";
3523
+ value: number;
3524
+ key: string;
3525
+ })[] | undefined;
3526
+ rootOperations?: ({
3527
+ type: "update";
3528
+ value: Record<string, unknown>;
3529
+ } | {
3530
+ type: "set";
3531
+ value: import("../../schemas/json.js").DeserializedJson;
3532
+ key: string;
3533
+ } | {
3534
+ type: "delete";
3535
+ key: string;
3536
+ } | {
3537
+ type: "append";
3538
+ value: import("../../schemas/json.js").DeserializedJson;
3539
+ key: string;
3540
+ } | {
3541
+ type: "remove";
3542
+ value: import("../../schemas/json.js").DeserializedJson;
3543
+ key: string;
3544
+ } | {
3545
+ type: "increment";
3546
+ value: number;
3547
+ key: string;
3548
+ })[] | undefined;
3549
+ } | undefined;
1169
3550
  retry?: {
1170
3551
  timestamp: number;
1171
3552
  delay: number;
@@ -1179,8 +3560,8 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1179
3560
  }, {
1180
3561
  id: string;
1181
3562
  error: {
1182
- message: string;
1183
3563
  type: "BUILT_IN_ERROR";
3564
+ message: string;
1184
3565
  name: string;
1185
3566
  stackTrace: string;
1186
3567
  } | {
@@ -1190,12 +3571,84 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1190
3571
  type: "STRING_ERROR";
1191
3572
  raw: string;
1192
3573
  } | {
1193
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1194
3574
  type: "INTERNAL_ERROR";
3575
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1195
3576
  message?: string | undefined;
1196
3577
  stackTrace?: string | undefined;
1197
3578
  };
1198
3579
  ok: false;
3580
+ metadata?: {
3581
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3582
+ operations?: ({
3583
+ type: "update";
3584
+ value: Record<string, unknown>;
3585
+ } | {
3586
+ type: "set";
3587
+ value: import("../../schemas/json.js").DeserializedJson;
3588
+ key: string;
3589
+ } | {
3590
+ type: "delete";
3591
+ key: string;
3592
+ } | {
3593
+ type: "append";
3594
+ value: import("../../schemas/json.js").DeserializedJson;
3595
+ key: string;
3596
+ } | {
3597
+ type: "remove";
3598
+ value: import("../../schemas/json.js").DeserializedJson;
3599
+ key: string;
3600
+ } | {
3601
+ type: "increment";
3602
+ value: number;
3603
+ key: string;
3604
+ })[] | undefined;
3605
+ parentOperations?: ({
3606
+ type: "update";
3607
+ value: Record<string, unknown>;
3608
+ } | {
3609
+ type: "set";
3610
+ value: import("../../schemas/json.js").DeserializedJson;
3611
+ key: string;
3612
+ } | {
3613
+ type: "delete";
3614
+ key: string;
3615
+ } | {
3616
+ type: "append";
3617
+ value: import("../../schemas/json.js").DeserializedJson;
3618
+ key: string;
3619
+ } | {
3620
+ type: "remove";
3621
+ value: import("../../schemas/json.js").DeserializedJson;
3622
+ key: string;
3623
+ } | {
3624
+ type: "increment";
3625
+ value: number;
3626
+ key: string;
3627
+ })[] | undefined;
3628
+ rootOperations?: ({
3629
+ type: "update";
3630
+ value: Record<string, unknown>;
3631
+ } | {
3632
+ type: "set";
3633
+ value: import("../../schemas/json.js").DeserializedJson;
3634
+ key: string;
3635
+ } | {
3636
+ type: "delete";
3637
+ key: string;
3638
+ } | {
3639
+ type: "append";
3640
+ value: import("../../schemas/json.js").DeserializedJson;
3641
+ key: string;
3642
+ } | {
3643
+ type: "remove";
3644
+ value: import("../../schemas/json.js").DeserializedJson;
3645
+ key: string;
3646
+ } | {
3647
+ type: "increment";
3648
+ value: number;
3649
+ key: string;
3650
+ })[] | undefined;
3651
+ } | undefined;
1199
3652
  retry?: {
1200
3653
  timestamp: number;
1201
3654
  delay: number;
@@ -1223,24 +3676,514 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1223
3676
  durationMs: number;
1224
3677
  }>>;
1225
3678
  taskIdentifier: z.ZodOptional<z.ZodString>;
3679
+ metadata: z.ZodOptional<z.ZodObject<{
3680
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
3681
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3682
+ type: z.ZodLiteral<"update">;
3683
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3684
+ }, "strip", z.ZodTypeAny, {
3685
+ type: "update";
3686
+ value: Record<string, unknown>;
3687
+ }, {
3688
+ type: "update";
3689
+ value: Record<string, unknown>;
3690
+ }>, z.ZodObject<{
3691
+ type: z.ZodLiteral<"set">;
3692
+ key: z.ZodString;
3693
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3694
+ }, "strip", z.ZodTypeAny, {
3695
+ type: "set";
3696
+ value: import("../../schemas/json.js").DeserializedJson;
3697
+ key: string;
3698
+ }, {
3699
+ type: "set";
3700
+ value: import("../../schemas/json.js").DeserializedJson;
3701
+ key: string;
3702
+ }>, z.ZodObject<{
3703
+ type: z.ZodLiteral<"delete">;
3704
+ key: z.ZodString;
3705
+ }, "strip", z.ZodTypeAny, {
3706
+ type: "delete";
3707
+ key: string;
3708
+ }, {
3709
+ type: "delete";
3710
+ key: string;
3711
+ }>, z.ZodObject<{
3712
+ type: z.ZodLiteral<"append">;
3713
+ key: z.ZodString;
3714
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3715
+ }, "strip", z.ZodTypeAny, {
3716
+ type: "append";
3717
+ value: import("../../schemas/json.js").DeserializedJson;
3718
+ key: string;
3719
+ }, {
3720
+ type: "append";
3721
+ value: import("../../schemas/json.js").DeserializedJson;
3722
+ key: string;
3723
+ }>, z.ZodObject<{
3724
+ type: z.ZodLiteral<"remove">;
3725
+ key: z.ZodString;
3726
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3727
+ }, "strip", z.ZodTypeAny, {
3728
+ type: "remove";
3729
+ value: import("../../schemas/json.js").DeserializedJson;
3730
+ key: string;
3731
+ }, {
3732
+ type: "remove";
3733
+ value: import("../../schemas/json.js").DeserializedJson;
3734
+ key: string;
3735
+ }>, z.ZodObject<{
3736
+ type: z.ZodLiteral<"increment">;
3737
+ key: z.ZodString;
3738
+ value: z.ZodNumber;
3739
+ }, "strip", z.ZodTypeAny, {
3740
+ type: "increment";
3741
+ value: number;
3742
+ key: string;
3743
+ }, {
3744
+ type: "increment";
3745
+ value: number;
3746
+ key: string;
3747
+ }>]>, "many">>;
3748
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3749
+ type: z.ZodLiteral<"update">;
3750
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3751
+ }, "strip", z.ZodTypeAny, {
3752
+ type: "update";
3753
+ value: Record<string, unknown>;
3754
+ }, {
3755
+ type: "update";
3756
+ value: Record<string, unknown>;
3757
+ }>, z.ZodObject<{
3758
+ type: z.ZodLiteral<"set">;
3759
+ key: z.ZodString;
3760
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3761
+ }, "strip", z.ZodTypeAny, {
3762
+ type: "set";
3763
+ value: import("../../schemas/json.js").DeserializedJson;
3764
+ key: string;
3765
+ }, {
3766
+ type: "set";
3767
+ value: import("../../schemas/json.js").DeserializedJson;
3768
+ key: string;
3769
+ }>, z.ZodObject<{
3770
+ type: z.ZodLiteral<"delete">;
3771
+ key: z.ZodString;
3772
+ }, "strip", z.ZodTypeAny, {
3773
+ type: "delete";
3774
+ key: string;
3775
+ }, {
3776
+ type: "delete";
3777
+ key: string;
3778
+ }>, z.ZodObject<{
3779
+ type: z.ZodLiteral<"append">;
3780
+ key: z.ZodString;
3781
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3782
+ }, "strip", z.ZodTypeAny, {
3783
+ type: "append";
3784
+ value: import("../../schemas/json.js").DeserializedJson;
3785
+ key: string;
3786
+ }, {
3787
+ type: "append";
3788
+ value: import("../../schemas/json.js").DeserializedJson;
3789
+ key: string;
3790
+ }>, z.ZodObject<{
3791
+ type: z.ZodLiteral<"remove">;
3792
+ key: z.ZodString;
3793
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3794
+ }, "strip", z.ZodTypeAny, {
3795
+ type: "remove";
3796
+ value: import("../../schemas/json.js").DeserializedJson;
3797
+ key: string;
3798
+ }, {
3799
+ type: "remove";
3800
+ value: import("../../schemas/json.js").DeserializedJson;
3801
+ key: string;
3802
+ }>, z.ZodObject<{
3803
+ type: z.ZodLiteral<"increment">;
3804
+ key: z.ZodString;
3805
+ value: z.ZodNumber;
3806
+ }, "strip", z.ZodTypeAny, {
3807
+ type: "increment";
3808
+ value: number;
3809
+ key: string;
3810
+ }, {
3811
+ type: "increment";
3812
+ value: number;
3813
+ key: string;
3814
+ }>]>, "many">>;
3815
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3816
+ type: z.ZodLiteral<"update">;
3817
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3818
+ }, "strip", z.ZodTypeAny, {
3819
+ type: "update";
3820
+ value: Record<string, unknown>;
3821
+ }, {
3822
+ type: "update";
3823
+ value: Record<string, unknown>;
3824
+ }>, z.ZodObject<{
3825
+ type: z.ZodLiteral<"set">;
3826
+ key: z.ZodString;
3827
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3828
+ }, "strip", z.ZodTypeAny, {
3829
+ type: "set";
3830
+ value: import("../../schemas/json.js").DeserializedJson;
3831
+ key: string;
3832
+ }, {
3833
+ type: "set";
3834
+ value: import("../../schemas/json.js").DeserializedJson;
3835
+ key: string;
3836
+ }>, z.ZodObject<{
3837
+ type: z.ZodLiteral<"delete">;
3838
+ key: z.ZodString;
3839
+ }, "strip", z.ZodTypeAny, {
3840
+ type: "delete";
3841
+ key: string;
3842
+ }, {
3843
+ type: "delete";
3844
+ key: string;
3845
+ }>, z.ZodObject<{
3846
+ type: z.ZodLiteral<"append">;
3847
+ key: z.ZodString;
3848
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3849
+ }, "strip", z.ZodTypeAny, {
3850
+ type: "append";
3851
+ value: import("../../schemas/json.js").DeserializedJson;
3852
+ key: string;
3853
+ }, {
3854
+ type: "append";
3855
+ value: import("../../schemas/json.js").DeserializedJson;
3856
+ key: string;
3857
+ }>, z.ZodObject<{
3858
+ type: z.ZodLiteral<"remove">;
3859
+ key: z.ZodString;
3860
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
3861
+ }, "strip", z.ZodTypeAny, {
3862
+ type: "remove";
3863
+ value: import("../../schemas/json.js").DeserializedJson;
3864
+ key: string;
3865
+ }, {
3866
+ type: "remove";
3867
+ value: import("../../schemas/json.js").DeserializedJson;
3868
+ key: string;
3869
+ }>, z.ZodObject<{
3870
+ type: z.ZodLiteral<"increment">;
3871
+ key: z.ZodString;
3872
+ value: z.ZodNumber;
3873
+ }, "strip", z.ZodTypeAny, {
3874
+ type: "increment";
3875
+ value: number;
3876
+ key: string;
3877
+ }, {
3878
+ type: "increment";
3879
+ value: number;
3880
+ key: string;
3881
+ }>]>, "many">>;
3882
+ }, "strip", z.ZodTypeAny, {
3883
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3884
+ operations?: ({
3885
+ type: "update";
3886
+ value: Record<string, unknown>;
3887
+ } | {
3888
+ type: "set";
3889
+ value: import("../../schemas/json.js").DeserializedJson;
3890
+ key: string;
3891
+ } | {
3892
+ type: "delete";
3893
+ key: string;
3894
+ } | {
3895
+ type: "append";
3896
+ value: import("../../schemas/json.js").DeserializedJson;
3897
+ key: string;
3898
+ } | {
3899
+ type: "remove";
3900
+ value: import("../../schemas/json.js").DeserializedJson;
3901
+ key: string;
3902
+ } | {
3903
+ type: "increment";
3904
+ value: number;
3905
+ key: string;
3906
+ })[] | undefined;
3907
+ parentOperations?: ({
3908
+ type: "update";
3909
+ value: Record<string, unknown>;
3910
+ } | {
3911
+ type: "set";
3912
+ value: import("../../schemas/json.js").DeserializedJson;
3913
+ key: string;
3914
+ } | {
3915
+ type: "delete";
3916
+ key: string;
3917
+ } | {
3918
+ type: "append";
3919
+ value: import("../../schemas/json.js").DeserializedJson;
3920
+ key: string;
3921
+ } | {
3922
+ type: "remove";
3923
+ value: import("../../schemas/json.js").DeserializedJson;
3924
+ key: string;
3925
+ } | {
3926
+ type: "increment";
3927
+ value: number;
3928
+ key: string;
3929
+ })[] | undefined;
3930
+ rootOperations?: ({
3931
+ type: "update";
3932
+ value: Record<string, unknown>;
3933
+ } | {
3934
+ type: "set";
3935
+ value: import("../../schemas/json.js").DeserializedJson;
3936
+ key: string;
3937
+ } | {
3938
+ type: "delete";
3939
+ key: string;
3940
+ } | {
3941
+ type: "append";
3942
+ value: import("../../schemas/json.js").DeserializedJson;
3943
+ key: string;
3944
+ } | {
3945
+ type: "remove";
3946
+ value: import("../../schemas/json.js").DeserializedJson;
3947
+ key: string;
3948
+ } | {
3949
+ type: "increment";
3950
+ value: number;
3951
+ key: string;
3952
+ })[] | undefined;
3953
+ }, {
3954
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
3955
+ operations?: ({
3956
+ type: "update";
3957
+ value: Record<string, unknown>;
3958
+ } | {
3959
+ type: "set";
3960
+ value: import("../../schemas/json.js").DeserializedJson;
3961
+ key: string;
3962
+ } | {
3963
+ type: "delete";
3964
+ key: string;
3965
+ } | {
3966
+ type: "append";
3967
+ value: import("../../schemas/json.js").DeserializedJson;
3968
+ key: string;
3969
+ } | {
3970
+ type: "remove";
3971
+ value: import("../../schemas/json.js").DeserializedJson;
3972
+ key: string;
3973
+ } | {
3974
+ type: "increment";
3975
+ value: number;
3976
+ key: string;
3977
+ })[] | undefined;
3978
+ parentOperations?: ({
3979
+ type: "update";
3980
+ value: Record<string, unknown>;
3981
+ } | {
3982
+ type: "set";
3983
+ value: import("../../schemas/json.js").DeserializedJson;
3984
+ key: string;
3985
+ } | {
3986
+ type: "delete";
3987
+ key: string;
3988
+ } | {
3989
+ type: "append";
3990
+ value: import("../../schemas/json.js").DeserializedJson;
3991
+ key: string;
3992
+ } | {
3993
+ type: "remove";
3994
+ value: import("../../schemas/json.js").DeserializedJson;
3995
+ key: string;
3996
+ } | {
3997
+ type: "increment";
3998
+ value: number;
3999
+ key: string;
4000
+ })[] | undefined;
4001
+ rootOperations?: ({
4002
+ type: "update";
4003
+ value: Record<string, unknown>;
4004
+ } | {
4005
+ type: "set";
4006
+ value: import("../../schemas/json.js").DeserializedJson;
4007
+ key: string;
4008
+ } | {
4009
+ type: "delete";
4010
+ key: string;
4011
+ } | {
4012
+ type: "append";
4013
+ value: import("../../schemas/json.js").DeserializedJson;
4014
+ key: string;
4015
+ } | {
4016
+ type: "remove";
4017
+ value: import("../../schemas/json.js").DeserializedJson;
4018
+ key: string;
4019
+ } | {
4020
+ type: "increment";
4021
+ value: number;
4022
+ key: string;
4023
+ })[] | undefined;
4024
+ }>>;
1226
4025
  }, "strip", z.ZodTypeAny, {
1227
4026
  id: string;
1228
4027
  ok: true;
1229
4028
  outputType: string;
1230
- output?: string | undefined;
4029
+ metadata?: {
4030
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4031
+ operations?: ({
4032
+ type: "update";
4033
+ value: Record<string, unknown>;
4034
+ } | {
4035
+ type: "set";
4036
+ value: import("../../schemas/json.js").DeserializedJson;
4037
+ key: string;
4038
+ } | {
4039
+ type: "delete";
4040
+ key: string;
4041
+ } | {
4042
+ type: "append";
4043
+ value: import("../../schemas/json.js").DeserializedJson;
4044
+ key: string;
4045
+ } | {
4046
+ type: "remove";
4047
+ value: import("../../schemas/json.js").DeserializedJson;
4048
+ key: string;
4049
+ } | {
4050
+ type: "increment";
4051
+ value: number;
4052
+ key: string;
4053
+ })[] | undefined;
4054
+ parentOperations?: ({
4055
+ type: "update";
4056
+ value: Record<string, unknown>;
4057
+ } | {
4058
+ type: "set";
4059
+ value: import("../../schemas/json.js").DeserializedJson;
4060
+ key: string;
4061
+ } | {
4062
+ type: "delete";
4063
+ key: string;
4064
+ } | {
4065
+ type: "append";
4066
+ value: import("../../schemas/json.js").DeserializedJson;
4067
+ key: string;
4068
+ } | {
4069
+ type: "remove";
4070
+ value: import("../../schemas/json.js").DeserializedJson;
4071
+ key: string;
4072
+ } | {
4073
+ type: "increment";
4074
+ value: number;
4075
+ key: string;
4076
+ })[] | undefined;
4077
+ rootOperations?: ({
4078
+ type: "update";
4079
+ value: Record<string, unknown>;
4080
+ } | {
4081
+ type: "set";
4082
+ value: import("../../schemas/json.js").DeserializedJson;
4083
+ key: string;
4084
+ } | {
4085
+ type: "delete";
4086
+ key: string;
4087
+ } | {
4088
+ type: "append";
4089
+ value: import("../../schemas/json.js").DeserializedJson;
4090
+ key: string;
4091
+ } | {
4092
+ type: "remove";
4093
+ value: import("../../schemas/json.js").DeserializedJson;
4094
+ key: string;
4095
+ } | {
4096
+ type: "increment";
4097
+ value: number;
4098
+ key: string;
4099
+ })[] | undefined;
4100
+ } | undefined;
1231
4101
  usage?: {
1232
4102
  durationMs: number;
1233
4103
  } | undefined;
1234
4104
  taskIdentifier?: string | undefined;
4105
+ output?: string | undefined;
1235
4106
  }, {
1236
4107
  id: string;
1237
4108
  ok: true;
1238
4109
  outputType: string;
1239
- output?: string | undefined;
4110
+ metadata?: {
4111
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4112
+ operations?: ({
4113
+ type: "update";
4114
+ value: Record<string, unknown>;
4115
+ } | {
4116
+ type: "set";
4117
+ value: import("../../schemas/json.js").DeserializedJson;
4118
+ key: string;
4119
+ } | {
4120
+ type: "delete";
4121
+ key: string;
4122
+ } | {
4123
+ type: "append";
4124
+ value: import("../../schemas/json.js").DeserializedJson;
4125
+ key: string;
4126
+ } | {
4127
+ type: "remove";
4128
+ value: import("../../schemas/json.js").DeserializedJson;
4129
+ key: string;
4130
+ } | {
4131
+ type: "increment";
4132
+ value: number;
4133
+ key: string;
4134
+ })[] | undefined;
4135
+ parentOperations?: ({
4136
+ type: "update";
4137
+ value: Record<string, unknown>;
4138
+ } | {
4139
+ type: "set";
4140
+ value: import("../../schemas/json.js").DeserializedJson;
4141
+ key: string;
4142
+ } | {
4143
+ type: "delete";
4144
+ key: string;
4145
+ } | {
4146
+ type: "append";
4147
+ value: import("../../schemas/json.js").DeserializedJson;
4148
+ key: string;
4149
+ } | {
4150
+ type: "remove";
4151
+ value: import("../../schemas/json.js").DeserializedJson;
4152
+ key: string;
4153
+ } | {
4154
+ type: "increment";
4155
+ value: number;
4156
+ key: string;
4157
+ })[] | undefined;
4158
+ rootOperations?: ({
4159
+ type: "update";
4160
+ value: Record<string, unknown>;
4161
+ } | {
4162
+ type: "set";
4163
+ value: import("../../schemas/json.js").DeserializedJson;
4164
+ key: string;
4165
+ } | {
4166
+ type: "delete";
4167
+ key: string;
4168
+ } | {
4169
+ type: "append";
4170
+ value: import("../../schemas/json.js").DeserializedJson;
4171
+ key: string;
4172
+ } | {
4173
+ type: "remove";
4174
+ value: import("../../schemas/json.js").DeserializedJson;
4175
+ key: string;
4176
+ } | {
4177
+ type: "increment";
4178
+ value: number;
4179
+ key: string;
4180
+ })[] | undefined;
4181
+ } | undefined;
1240
4182
  usage?: {
1241
4183
  durationMs: number;
1242
4184
  } | undefined;
1243
4185
  taskIdentifier?: string | undefined;
4186
+ output?: string | undefined;
1244
4187
  }>, z.ZodObject<{
1245
4188
  ok: z.ZodLiteral<false>;
1246
4189
  id: z.ZodString;
@@ -1250,13 +4193,13 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1250
4193
  message: z.ZodString;
1251
4194
  stackTrace: z.ZodString;
1252
4195
  }, "strip", z.ZodTypeAny, {
1253
- message: string;
1254
4196
  type: "BUILT_IN_ERROR";
4197
+ message: string;
1255
4198
  name: string;
1256
4199
  stackTrace: string;
1257
4200
  }, {
1258
- message: string;
1259
4201
  type: "BUILT_IN_ERROR";
4202
+ message: string;
1260
4203
  name: string;
1261
4204
  stackTrace: string;
1262
4205
  }>, z.ZodObject<{
@@ -1283,13 +4226,13 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1283
4226
  message: z.ZodOptional<z.ZodString>;
1284
4227
  stackTrace: z.ZodOptional<z.ZodString>;
1285
4228
  }, "strip", z.ZodTypeAny, {
1286
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1287
4229
  type: "INTERNAL_ERROR";
4230
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1288
4231
  message?: string | undefined;
1289
4232
  stackTrace?: string | undefined;
1290
4233
  }, {
1291
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1292
4234
  type: "INTERNAL_ERROR";
4235
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1293
4236
  message?: string | undefined;
1294
4237
  stackTrace?: string | undefined;
1295
4238
  }>]>;
@@ -1315,11 +4258,357 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1315
4258
  durationMs: number;
1316
4259
  }>>;
1317
4260
  taskIdentifier: z.ZodOptional<z.ZodString>;
4261
+ metadata: z.ZodOptional<z.ZodObject<{
4262
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>>>;
4263
+ operations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4264
+ type: z.ZodLiteral<"update">;
4265
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4266
+ }, "strip", z.ZodTypeAny, {
4267
+ type: "update";
4268
+ value: Record<string, unknown>;
4269
+ }, {
4270
+ type: "update";
4271
+ value: Record<string, unknown>;
4272
+ }>, z.ZodObject<{
4273
+ type: z.ZodLiteral<"set">;
4274
+ key: z.ZodString;
4275
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4276
+ }, "strip", z.ZodTypeAny, {
4277
+ type: "set";
4278
+ value: import("../../schemas/json.js").DeserializedJson;
4279
+ key: string;
4280
+ }, {
4281
+ type: "set";
4282
+ value: import("../../schemas/json.js").DeserializedJson;
4283
+ key: string;
4284
+ }>, z.ZodObject<{
4285
+ type: z.ZodLiteral<"delete">;
4286
+ key: z.ZodString;
4287
+ }, "strip", z.ZodTypeAny, {
4288
+ type: "delete";
4289
+ key: string;
4290
+ }, {
4291
+ type: "delete";
4292
+ key: string;
4293
+ }>, z.ZodObject<{
4294
+ type: z.ZodLiteral<"append">;
4295
+ key: z.ZodString;
4296
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4297
+ }, "strip", z.ZodTypeAny, {
4298
+ type: "append";
4299
+ value: import("../../schemas/json.js").DeserializedJson;
4300
+ key: string;
4301
+ }, {
4302
+ type: "append";
4303
+ value: import("../../schemas/json.js").DeserializedJson;
4304
+ key: string;
4305
+ }>, z.ZodObject<{
4306
+ type: z.ZodLiteral<"remove">;
4307
+ key: z.ZodString;
4308
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4309
+ }, "strip", z.ZodTypeAny, {
4310
+ type: "remove";
4311
+ value: import("../../schemas/json.js").DeserializedJson;
4312
+ key: string;
4313
+ }, {
4314
+ type: "remove";
4315
+ value: import("../../schemas/json.js").DeserializedJson;
4316
+ key: string;
4317
+ }>, z.ZodObject<{
4318
+ type: z.ZodLiteral<"increment">;
4319
+ key: z.ZodString;
4320
+ value: z.ZodNumber;
4321
+ }, "strip", z.ZodTypeAny, {
4322
+ type: "increment";
4323
+ value: number;
4324
+ key: string;
4325
+ }, {
4326
+ type: "increment";
4327
+ value: number;
4328
+ key: string;
4329
+ }>]>, "many">>;
4330
+ parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4331
+ type: z.ZodLiteral<"update">;
4332
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4333
+ }, "strip", z.ZodTypeAny, {
4334
+ type: "update";
4335
+ value: Record<string, unknown>;
4336
+ }, {
4337
+ type: "update";
4338
+ value: Record<string, unknown>;
4339
+ }>, z.ZodObject<{
4340
+ type: z.ZodLiteral<"set">;
4341
+ key: z.ZodString;
4342
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4343
+ }, "strip", z.ZodTypeAny, {
4344
+ type: "set";
4345
+ value: import("../../schemas/json.js").DeserializedJson;
4346
+ key: string;
4347
+ }, {
4348
+ type: "set";
4349
+ value: import("../../schemas/json.js").DeserializedJson;
4350
+ key: string;
4351
+ }>, z.ZodObject<{
4352
+ type: z.ZodLiteral<"delete">;
4353
+ key: z.ZodString;
4354
+ }, "strip", z.ZodTypeAny, {
4355
+ type: "delete";
4356
+ key: string;
4357
+ }, {
4358
+ type: "delete";
4359
+ key: string;
4360
+ }>, z.ZodObject<{
4361
+ type: z.ZodLiteral<"append">;
4362
+ key: z.ZodString;
4363
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4364
+ }, "strip", z.ZodTypeAny, {
4365
+ type: "append";
4366
+ value: import("../../schemas/json.js").DeserializedJson;
4367
+ key: string;
4368
+ }, {
4369
+ type: "append";
4370
+ value: import("../../schemas/json.js").DeserializedJson;
4371
+ key: string;
4372
+ }>, z.ZodObject<{
4373
+ type: z.ZodLiteral<"remove">;
4374
+ key: z.ZodString;
4375
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4376
+ }, "strip", z.ZodTypeAny, {
4377
+ type: "remove";
4378
+ value: import("../../schemas/json.js").DeserializedJson;
4379
+ key: string;
4380
+ }, {
4381
+ type: "remove";
4382
+ value: import("../../schemas/json.js").DeserializedJson;
4383
+ key: string;
4384
+ }>, z.ZodObject<{
4385
+ type: z.ZodLiteral<"increment">;
4386
+ key: z.ZodString;
4387
+ value: z.ZodNumber;
4388
+ }, "strip", z.ZodTypeAny, {
4389
+ type: "increment";
4390
+ value: number;
4391
+ key: string;
4392
+ }, {
4393
+ type: "increment";
4394
+ value: number;
4395
+ key: string;
4396
+ }>]>, "many">>;
4397
+ rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4398
+ type: z.ZodLiteral<"update">;
4399
+ value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4400
+ }, "strip", z.ZodTypeAny, {
4401
+ type: "update";
4402
+ value: Record<string, unknown>;
4403
+ }, {
4404
+ type: "update";
4405
+ value: Record<string, unknown>;
4406
+ }>, z.ZodObject<{
4407
+ type: z.ZodLiteral<"set">;
4408
+ key: z.ZodString;
4409
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4410
+ }, "strip", z.ZodTypeAny, {
4411
+ type: "set";
4412
+ value: import("../../schemas/json.js").DeserializedJson;
4413
+ key: string;
4414
+ }, {
4415
+ type: "set";
4416
+ value: import("../../schemas/json.js").DeserializedJson;
4417
+ key: string;
4418
+ }>, z.ZodObject<{
4419
+ type: z.ZodLiteral<"delete">;
4420
+ key: z.ZodString;
4421
+ }, "strip", z.ZodTypeAny, {
4422
+ type: "delete";
4423
+ key: string;
4424
+ }, {
4425
+ type: "delete";
4426
+ key: string;
4427
+ }>, z.ZodObject<{
4428
+ type: z.ZodLiteral<"append">;
4429
+ key: z.ZodString;
4430
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4431
+ }, "strip", z.ZodTypeAny, {
4432
+ type: "append";
4433
+ value: import("../../schemas/json.js").DeserializedJson;
4434
+ key: string;
4435
+ }, {
4436
+ type: "append";
4437
+ value: import("../../schemas/json.js").DeserializedJson;
4438
+ key: string;
4439
+ }>, z.ZodObject<{
4440
+ type: z.ZodLiteral<"remove">;
4441
+ key: z.ZodString;
4442
+ value: z.ZodType<import("../../schemas/json.js").DeserializedJson, z.ZodTypeDef, import("../../schemas/json.js").DeserializedJson>;
4443
+ }, "strip", z.ZodTypeAny, {
4444
+ type: "remove";
4445
+ value: import("../../schemas/json.js").DeserializedJson;
4446
+ key: string;
4447
+ }, {
4448
+ type: "remove";
4449
+ value: import("../../schemas/json.js").DeserializedJson;
4450
+ key: string;
4451
+ }>, z.ZodObject<{
4452
+ type: z.ZodLiteral<"increment">;
4453
+ key: z.ZodString;
4454
+ value: z.ZodNumber;
4455
+ }, "strip", z.ZodTypeAny, {
4456
+ type: "increment";
4457
+ value: number;
4458
+ key: string;
4459
+ }, {
4460
+ type: "increment";
4461
+ value: number;
4462
+ key: string;
4463
+ }>]>, "many">>;
4464
+ }, "strip", z.ZodTypeAny, {
4465
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4466
+ operations?: ({
4467
+ type: "update";
4468
+ value: Record<string, unknown>;
4469
+ } | {
4470
+ type: "set";
4471
+ value: import("../../schemas/json.js").DeserializedJson;
4472
+ key: string;
4473
+ } | {
4474
+ type: "delete";
4475
+ key: string;
4476
+ } | {
4477
+ type: "append";
4478
+ value: import("../../schemas/json.js").DeserializedJson;
4479
+ key: string;
4480
+ } | {
4481
+ type: "remove";
4482
+ value: import("../../schemas/json.js").DeserializedJson;
4483
+ key: string;
4484
+ } | {
4485
+ type: "increment";
4486
+ value: number;
4487
+ key: string;
4488
+ })[] | undefined;
4489
+ parentOperations?: ({
4490
+ type: "update";
4491
+ value: Record<string, unknown>;
4492
+ } | {
4493
+ type: "set";
4494
+ value: import("../../schemas/json.js").DeserializedJson;
4495
+ key: string;
4496
+ } | {
4497
+ type: "delete";
4498
+ key: string;
4499
+ } | {
4500
+ type: "append";
4501
+ value: import("../../schemas/json.js").DeserializedJson;
4502
+ key: string;
4503
+ } | {
4504
+ type: "remove";
4505
+ value: import("../../schemas/json.js").DeserializedJson;
4506
+ key: string;
4507
+ } | {
4508
+ type: "increment";
4509
+ value: number;
4510
+ key: string;
4511
+ })[] | undefined;
4512
+ rootOperations?: ({
4513
+ type: "update";
4514
+ value: Record<string, unknown>;
4515
+ } | {
4516
+ type: "set";
4517
+ value: import("../../schemas/json.js").DeserializedJson;
4518
+ key: string;
4519
+ } | {
4520
+ type: "delete";
4521
+ key: string;
4522
+ } | {
4523
+ type: "append";
4524
+ value: import("../../schemas/json.js").DeserializedJson;
4525
+ key: string;
4526
+ } | {
4527
+ type: "remove";
4528
+ value: import("../../schemas/json.js").DeserializedJson;
4529
+ key: string;
4530
+ } | {
4531
+ type: "increment";
4532
+ value: number;
4533
+ key: string;
4534
+ })[] | undefined;
4535
+ }, {
4536
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4537
+ operations?: ({
4538
+ type: "update";
4539
+ value: Record<string, unknown>;
4540
+ } | {
4541
+ type: "set";
4542
+ value: import("../../schemas/json.js").DeserializedJson;
4543
+ key: string;
4544
+ } | {
4545
+ type: "delete";
4546
+ key: string;
4547
+ } | {
4548
+ type: "append";
4549
+ value: import("../../schemas/json.js").DeserializedJson;
4550
+ key: string;
4551
+ } | {
4552
+ type: "remove";
4553
+ value: import("../../schemas/json.js").DeserializedJson;
4554
+ key: string;
4555
+ } | {
4556
+ type: "increment";
4557
+ value: number;
4558
+ key: string;
4559
+ })[] | undefined;
4560
+ parentOperations?: ({
4561
+ type: "update";
4562
+ value: Record<string, unknown>;
4563
+ } | {
4564
+ type: "set";
4565
+ value: import("../../schemas/json.js").DeserializedJson;
4566
+ key: string;
4567
+ } | {
4568
+ type: "delete";
4569
+ key: string;
4570
+ } | {
4571
+ type: "append";
4572
+ value: import("../../schemas/json.js").DeserializedJson;
4573
+ key: string;
4574
+ } | {
4575
+ type: "remove";
4576
+ value: import("../../schemas/json.js").DeserializedJson;
4577
+ key: string;
4578
+ } | {
4579
+ type: "increment";
4580
+ value: number;
4581
+ key: string;
4582
+ })[] | undefined;
4583
+ rootOperations?: ({
4584
+ type: "update";
4585
+ value: Record<string, unknown>;
4586
+ } | {
4587
+ type: "set";
4588
+ value: import("../../schemas/json.js").DeserializedJson;
4589
+ key: string;
4590
+ } | {
4591
+ type: "delete";
4592
+ key: string;
4593
+ } | {
4594
+ type: "append";
4595
+ value: import("../../schemas/json.js").DeserializedJson;
4596
+ key: string;
4597
+ } | {
4598
+ type: "remove";
4599
+ value: import("../../schemas/json.js").DeserializedJson;
4600
+ key: string;
4601
+ } | {
4602
+ type: "increment";
4603
+ value: number;
4604
+ key: string;
4605
+ })[] | undefined;
4606
+ }>>;
1318
4607
  }, "strip", z.ZodTypeAny, {
1319
4608
  id: string;
1320
4609
  error: {
1321
- message: string;
1322
4610
  type: "BUILT_IN_ERROR";
4611
+ message: string;
1323
4612
  name: string;
1324
4613
  stackTrace: string;
1325
4614
  } | {
@@ -1329,12 +4618,84 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1329
4618
  type: "STRING_ERROR";
1330
4619
  raw: string;
1331
4620
  } | {
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_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1333
4621
  type: "INTERNAL_ERROR";
4622
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1334
4623
  message?: string | undefined;
1335
4624
  stackTrace?: string | undefined;
1336
4625
  };
1337
4626
  ok: false;
4627
+ metadata?: {
4628
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4629
+ operations?: ({
4630
+ type: "update";
4631
+ value: Record<string, unknown>;
4632
+ } | {
4633
+ type: "set";
4634
+ value: import("../../schemas/json.js").DeserializedJson;
4635
+ key: string;
4636
+ } | {
4637
+ type: "delete";
4638
+ key: string;
4639
+ } | {
4640
+ type: "append";
4641
+ value: import("../../schemas/json.js").DeserializedJson;
4642
+ key: string;
4643
+ } | {
4644
+ type: "remove";
4645
+ value: import("../../schemas/json.js").DeserializedJson;
4646
+ key: string;
4647
+ } | {
4648
+ type: "increment";
4649
+ value: number;
4650
+ key: string;
4651
+ })[] | undefined;
4652
+ parentOperations?: ({
4653
+ type: "update";
4654
+ value: Record<string, unknown>;
4655
+ } | {
4656
+ type: "set";
4657
+ value: import("../../schemas/json.js").DeserializedJson;
4658
+ key: string;
4659
+ } | {
4660
+ type: "delete";
4661
+ key: string;
4662
+ } | {
4663
+ type: "append";
4664
+ value: import("../../schemas/json.js").DeserializedJson;
4665
+ key: string;
4666
+ } | {
4667
+ type: "remove";
4668
+ value: import("../../schemas/json.js").DeserializedJson;
4669
+ key: string;
4670
+ } | {
4671
+ type: "increment";
4672
+ value: number;
4673
+ key: string;
4674
+ })[] | undefined;
4675
+ rootOperations?: ({
4676
+ type: "update";
4677
+ value: Record<string, unknown>;
4678
+ } | {
4679
+ type: "set";
4680
+ value: import("../../schemas/json.js").DeserializedJson;
4681
+ key: string;
4682
+ } | {
4683
+ type: "delete";
4684
+ key: string;
4685
+ } | {
4686
+ type: "append";
4687
+ value: import("../../schemas/json.js").DeserializedJson;
4688
+ key: string;
4689
+ } | {
4690
+ type: "remove";
4691
+ value: import("../../schemas/json.js").DeserializedJson;
4692
+ key: string;
4693
+ } | {
4694
+ type: "increment";
4695
+ value: number;
4696
+ key: string;
4697
+ })[] | undefined;
4698
+ } | undefined;
1338
4699
  retry?: {
1339
4700
  timestamp: number;
1340
4701
  delay: number;
@@ -1348,8 +4709,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1348
4709
  }, {
1349
4710
  id: string;
1350
4711
  error: {
1351
- message: string;
1352
4712
  type: "BUILT_IN_ERROR";
4713
+ message: string;
1353
4714
  name: string;
1354
4715
  stackTrace: string;
1355
4716
  } | {
@@ -1359,12 +4720,84 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1359
4720
  type: "STRING_ERROR";
1360
4721
  raw: string;
1361
4722
  } | {
1362
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1363
4723
  type: "INTERNAL_ERROR";
4724
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1364
4725
  message?: string | undefined;
1365
4726
  stackTrace?: string | undefined;
1366
4727
  };
1367
4728
  ok: false;
4729
+ metadata?: {
4730
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4731
+ operations?: ({
4732
+ type: "update";
4733
+ value: Record<string, unknown>;
4734
+ } | {
4735
+ type: "set";
4736
+ value: import("../../schemas/json.js").DeserializedJson;
4737
+ key: string;
4738
+ } | {
4739
+ type: "delete";
4740
+ key: string;
4741
+ } | {
4742
+ type: "append";
4743
+ value: import("../../schemas/json.js").DeserializedJson;
4744
+ key: string;
4745
+ } | {
4746
+ type: "remove";
4747
+ value: import("../../schemas/json.js").DeserializedJson;
4748
+ key: string;
4749
+ } | {
4750
+ type: "increment";
4751
+ value: number;
4752
+ key: string;
4753
+ })[] | undefined;
4754
+ parentOperations?: ({
4755
+ type: "update";
4756
+ value: Record<string, unknown>;
4757
+ } | {
4758
+ type: "set";
4759
+ value: import("../../schemas/json.js").DeserializedJson;
4760
+ key: string;
4761
+ } | {
4762
+ type: "delete";
4763
+ key: string;
4764
+ } | {
4765
+ type: "append";
4766
+ value: import("../../schemas/json.js").DeserializedJson;
4767
+ key: string;
4768
+ } | {
4769
+ type: "remove";
4770
+ value: import("../../schemas/json.js").DeserializedJson;
4771
+ key: string;
4772
+ } | {
4773
+ type: "increment";
4774
+ value: number;
4775
+ key: string;
4776
+ })[] | undefined;
4777
+ rootOperations?: ({
4778
+ type: "update";
4779
+ value: Record<string, unknown>;
4780
+ } | {
4781
+ type: "set";
4782
+ value: import("../../schemas/json.js").DeserializedJson;
4783
+ key: string;
4784
+ } | {
4785
+ type: "delete";
4786
+ key: string;
4787
+ } | {
4788
+ type: "append";
4789
+ value: import("../../schemas/json.js").DeserializedJson;
4790
+ key: string;
4791
+ } | {
4792
+ type: "remove";
4793
+ value: import("../../schemas/json.js").DeserializedJson;
4794
+ key: string;
4795
+ } | {
4796
+ type: "increment";
4797
+ value: number;
4798
+ key: string;
4799
+ })[] | undefined;
4800
+ } | undefined;
1368
4801
  retry?: {
1369
4802
  timestamp: number;
1370
4803
  delay: number;
@@ -1381,8 +4814,8 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1381
4814
  items: ({
1382
4815
  id: string;
1383
4816
  error: {
1384
- message: string;
1385
4817
  type: "BUILT_IN_ERROR";
4818
+ message: string;
1386
4819
  name: string;
1387
4820
  stackTrace: string;
1388
4821
  } | {
@@ -1392,12 +4825,84 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1392
4825
  type: "STRING_ERROR";
1393
4826
  raw: string;
1394
4827
  } | {
1395
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1396
4828
  type: "INTERNAL_ERROR";
4829
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1397
4830
  message?: string | undefined;
1398
4831
  stackTrace?: string | undefined;
1399
4832
  };
1400
4833
  ok: false;
4834
+ metadata?: {
4835
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4836
+ operations?: ({
4837
+ type: "update";
4838
+ value: Record<string, unknown>;
4839
+ } | {
4840
+ type: "set";
4841
+ value: import("../../schemas/json.js").DeserializedJson;
4842
+ key: string;
4843
+ } | {
4844
+ type: "delete";
4845
+ key: string;
4846
+ } | {
4847
+ type: "append";
4848
+ value: import("../../schemas/json.js").DeserializedJson;
4849
+ key: string;
4850
+ } | {
4851
+ type: "remove";
4852
+ value: import("../../schemas/json.js").DeserializedJson;
4853
+ key: string;
4854
+ } | {
4855
+ type: "increment";
4856
+ value: number;
4857
+ key: string;
4858
+ })[] | undefined;
4859
+ parentOperations?: ({
4860
+ type: "update";
4861
+ value: Record<string, unknown>;
4862
+ } | {
4863
+ type: "set";
4864
+ value: import("../../schemas/json.js").DeserializedJson;
4865
+ key: string;
4866
+ } | {
4867
+ type: "delete";
4868
+ key: string;
4869
+ } | {
4870
+ type: "append";
4871
+ value: import("../../schemas/json.js").DeserializedJson;
4872
+ key: string;
4873
+ } | {
4874
+ type: "remove";
4875
+ value: import("../../schemas/json.js").DeserializedJson;
4876
+ key: string;
4877
+ } | {
4878
+ type: "increment";
4879
+ value: number;
4880
+ key: string;
4881
+ })[] | undefined;
4882
+ rootOperations?: ({
4883
+ type: "update";
4884
+ value: Record<string, unknown>;
4885
+ } | {
4886
+ type: "set";
4887
+ value: import("../../schemas/json.js").DeserializedJson;
4888
+ key: string;
4889
+ } | {
4890
+ type: "delete";
4891
+ key: string;
4892
+ } | {
4893
+ type: "append";
4894
+ value: import("../../schemas/json.js").DeserializedJson;
4895
+ key: string;
4896
+ } | {
4897
+ type: "remove";
4898
+ value: import("../../schemas/json.js").DeserializedJson;
4899
+ key: string;
4900
+ } | {
4901
+ type: "increment";
4902
+ value: number;
4903
+ key: string;
4904
+ })[] | undefined;
4905
+ } | undefined;
1401
4906
  retry?: {
1402
4907
  timestamp: number;
1403
4908
  delay: number;
@@ -1412,19 +4917,91 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1412
4917
  id: string;
1413
4918
  ok: true;
1414
4919
  outputType: string;
1415
- output?: string | undefined;
4920
+ metadata?: {
4921
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
4922
+ operations?: ({
4923
+ type: "update";
4924
+ value: Record<string, unknown>;
4925
+ } | {
4926
+ type: "set";
4927
+ value: import("../../schemas/json.js").DeserializedJson;
4928
+ key: string;
4929
+ } | {
4930
+ type: "delete";
4931
+ key: string;
4932
+ } | {
4933
+ type: "append";
4934
+ value: import("../../schemas/json.js").DeserializedJson;
4935
+ key: string;
4936
+ } | {
4937
+ type: "remove";
4938
+ value: import("../../schemas/json.js").DeserializedJson;
4939
+ key: string;
4940
+ } | {
4941
+ type: "increment";
4942
+ value: number;
4943
+ key: string;
4944
+ })[] | undefined;
4945
+ parentOperations?: ({
4946
+ type: "update";
4947
+ value: Record<string, unknown>;
4948
+ } | {
4949
+ type: "set";
4950
+ value: import("../../schemas/json.js").DeserializedJson;
4951
+ key: string;
4952
+ } | {
4953
+ type: "delete";
4954
+ key: string;
4955
+ } | {
4956
+ type: "append";
4957
+ value: import("../../schemas/json.js").DeserializedJson;
4958
+ key: string;
4959
+ } | {
4960
+ type: "remove";
4961
+ value: import("../../schemas/json.js").DeserializedJson;
4962
+ key: string;
4963
+ } | {
4964
+ type: "increment";
4965
+ value: number;
4966
+ key: string;
4967
+ })[] | undefined;
4968
+ rootOperations?: ({
4969
+ type: "update";
4970
+ value: Record<string, unknown>;
4971
+ } | {
4972
+ type: "set";
4973
+ value: import("../../schemas/json.js").DeserializedJson;
4974
+ key: string;
4975
+ } | {
4976
+ type: "delete";
4977
+ key: string;
4978
+ } | {
4979
+ type: "append";
4980
+ value: import("../../schemas/json.js").DeserializedJson;
4981
+ key: string;
4982
+ } | {
4983
+ type: "remove";
4984
+ value: import("../../schemas/json.js").DeserializedJson;
4985
+ key: string;
4986
+ } | {
4987
+ type: "increment";
4988
+ value: number;
4989
+ key: string;
4990
+ })[] | undefined;
4991
+ } | undefined;
1416
4992
  usage?: {
1417
4993
  durationMs: number;
1418
4994
  } | undefined;
1419
4995
  taskIdentifier?: string | undefined;
4996
+ output?: string | undefined;
1420
4997
  })[];
1421
4998
  }, {
1422
4999
  id: string;
1423
5000
  items: ({
1424
5001
  id: string;
1425
5002
  error: {
1426
- message: string;
1427
5003
  type: "BUILT_IN_ERROR";
5004
+ message: string;
1428
5005
  name: string;
1429
5006
  stackTrace: string;
1430
5007
  } | {
@@ -1434,12 +5011,84 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1434
5011
  type: "STRING_ERROR";
1435
5012
  raw: string;
1436
5013
  } | {
1437
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1438
5014
  type: "INTERNAL_ERROR";
5015
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1439
5016
  message?: string | undefined;
1440
5017
  stackTrace?: string | undefined;
1441
5018
  };
1442
5019
  ok: false;
5020
+ metadata?: {
5021
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
5022
+ operations?: ({
5023
+ type: "update";
5024
+ value: Record<string, unknown>;
5025
+ } | {
5026
+ type: "set";
5027
+ value: import("../../schemas/json.js").DeserializedJson;
5028
+ key: string;
5029
+ } | {
5030
+ type: "delete";
5031
+ key: string;
5032
+ } | {
5033
+ type: "append";
5034
+ value: import("../../schemas/json.js").DeserializedJson;
5035
+ key: string;
5036
+ } | {
5037
+ type: "remove";
5038
+ value: import("../../schemas/json.js").DeserializedJson;
5039
+ key: string;
5040
+ } | {
5041
+ type: "increment";
5042
+ value: number;
5043
+ key: string;
5044
+ })[] | undefined;
5045
+ parentOperations?: ({
5046
+ type: "update";
5047
+ value: Record<string, unknown>;
5048
+ } | {
5049
+ type: "set";
5050
+ value: import("../../schemas/json.js").DeserializedJson;
5051
+ key: string;
5052
+ } | {
5053
+ type: "delete";
5054
+ key: string;
5055
+ } | {
5056
+ type: "append";
5057
+ value: import("../../schemas/json.js").DeserializedJson;
5058
+ key: string;
5059
+ } | {
5060
+ type: "remove";
5061
+ value: import("../../schemas/json.js").DeserializedJson;
5062
+ key: string;
5063
+ } | {
5064
+ type: "increment";
5065
+ value: number;
5066
+ key: string;
5067
+ })[] | undefined;
5068
+ rootOperations?: ({
5069
+ type: "update";
5070
+ value: Record<string, unknown>;
5071
+ } | {
5072
+ type: "set";
5073
+ value: import("../../schemas/json.js").DeserializedJson;
5074
+ key: string;
5075
+ } | {
5076
+ type: "delete";
5077
+ key: string;
5078
+ } | {
5079
+ type: "append";
5080
+ value: import("../../schemas/json.js").DeserializedJson;
5081
+ key: string;
5082
+ } | {
5083
+ type: "remove";
5084
+ value: import("../../schemas/json.js").DeserializedJson;
5085
+ key: string;
5086
+ } | {
5087
+ type: "increment";
5088
+ value: number;
5089
+ key: string;
5090
+ })[] | undefined;
5091
+ } | undefined;
1443
5092
  retry?: {
1444
5093
  timestamp: number;
1445
5094
  delay: number;
@@ -1454,11 +5103,83 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1454
5103
  id: string;
1455
5104
  ok: true;
1456
5105
  outputType: string;
1457
- output?: string | undefined;
5106
+ metadata?: {
5107
+ metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
5108
+ operations?: ({
5109
+ type: "update";
5110
+ value: Record<string, unknown>;
5111
+ } | {
5112
+ type: "set";
5113
+ value: import("../../schemas/json.js").DeserializedJson;
5114
+ key: string;
5115
+ } | {
5116
+ type: "delete";
5117
+ key: string;
5118
+ } | {
5119
+ type: "append";
5120
+ value: import("../../schemas/json.js").DeserializedJson;
5121
+ key: string;
5122
+ } | {
5123
+ type: "remove";
5124
+ value: import("../../schemas/json.js").DeserializedJson;
5125
+ key: string;
5126
+ } | {
5127
+ type: "increment";
5128
+ value: number;
5129
+ key: string;
5130
+ })[] | undefined;
5131
+ parentOperations?: ({
5132
+ type: "update";
5133
+ value: Record<string, unknown>;
5134
+ } | {
5135
+ type: "set";
5136
+ value: import("../../schemas/json.js").DeserializedJson;
5137
+ key: string;
5138
+ } | {
5139
+ type: "delete";
5140
+ key: string;
5141
+ } | {
5142
+ type: "append";
5143
+ value: import("../../schemas/json.js").DeserializedJson;
5144
+ key: string;
5145
+ } | {
5146
+ type: "remove";
5147
+ value: import("../../schemas/json.js").DeserializedJson;
5148
+ key: string;
5149
+ } | {
5150
+ type: "increment";
5151
+ value: number;
5152
+ key: string;
5153
+ })[] | undefined;
5154
+ rootOperations?: ({
5155
+ type: "update";
5156
+ value: Record<string, unknown>;
5157
+ } | {
5158
+ type: "set";
5159
+ value: import("../../schemas/json.js").DeserializedJson;
5160
+ key: string;
5161
+ } | {
5162
+ type: "delete";
5163
+ key: string;
5164
+ } | {
5165
+ type: "append";
5166
+ value: import("../../schemas/json.js").DeserializedJson;
5167
+ key: string;
5168
+ } | {
5169
+ type: "remove";
5170
+ value: import("../../schemas/json.js").DeserializedJson;
5171
+ key: string;
5172
+ } | {
5173
+ type: "increment";
5174
+ value: number;
5175
+ key: string;
5176
+ })[] | undefined;
5177
+ } | undefined;
1458
5178
  usage?: {
1459
5179
  durationMs: number;
1460
5180
  } | undefined;
1461
5181
  taskIdentifier?: string | undefined;
5182
+ output?: string | undefined;
1462
5183
  })[];
1463
5184
  }>;
1464
5185
  export type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;