@trigger.dev/core 3.3.8 → 3.3.9

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 (81) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +10 -1
  2. package/dist/commonjs/v3/apiClient/index.js +16 -1
  3. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/runStream.d.ts +2 -17
  5. package/dist/commonjs/v3/apiClient/runStream.js +31 -66
  6. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  7. package/dist/commonjs/v3/apiClient/stream.d.ts +1 -1
  8. package/dist/commonjs/v3/apiClient/stream.js +11 -2
  9. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  10. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  11. package/dist/commonjs/v3/run-metadata-api.js +16 -0
  12. package/dist/commonjs/v3/run-metadata-api.js.map +1 -1
  13. package/dist/commonjs/v3/runMetadata/index.d.ts +13 -8
  14. package/dist/commonjs/v3/runMetadata/index.js +32 -13
  15. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  16. package/dist/commonjs/v3/runMetadata/manager.d.ts +23 -10
  17. package/dist/commonjs/v3/runMetadata/manager.js +172 -130
  18. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  19. package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +2 -0
  20. package/dist/commonjs/v3/runMetadata/metadataStream.js +12 -2
  21. package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -1
  22. package/dist/commonjs/v3/runMetadata/noopManager.d.ts +13 -8
  23. package/dist/commonjs/v3/runMetadata/noopManager.js +44 -6
  24. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  25. package/dist/commonjs/v3/runMetadata/operations.d.ts +6 -0
  26. package/dist/commonjs/v3/runMetadata/operations.js +115 -0
  27. package/dist/commonjs/v3/runMetadata/operations.js.map +1 -0
  28. package/dist/commonjs/v3/runMetadata/types.d.ts +16 -9
  29. package/dist/commonjs/v3/runtime/devRuntimeManager.d.ts +1 -0
  30. package/dist/commonjs/v3/runtime/devRuntimeManager.js +9 -0
  31. package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
  32. package/dist/commonjs/v3/schemas/api.d.ts +342 -6
  33. package/dist/commonjs/v3/schemas/api.js +1 -4
  34. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  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/messages.d.ts +18042 -60
  39. package/dist/commonjs/v3/types/tasks.d.ts +1 -1
  40. package/dist/commonjs/version.js +1 -1
  41. package/dist/esm/v3/apiClient/index.d.ts +10 -1
  42. package/dist/esm/v3/apiClient/index.js +17 -2
  43. package/dist/esm/v3/apiClient/index.js.map +1 -1
  44. package/dist/esm/v3/apiClient/runStream.d.ts +2 -17
  45. package/dist/esm/v3/apiClient/runStream.js +30 -63
  46. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  47. package/dist/esm/v3/apiClient/stream.d.ts +1 -1
  48. package/dist/esm/v3/apiClient/stream.js +11 -2
  49. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  50. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  51. package/dist/esm/v3/run-metadata-api.js +2 -0
  52. package/dist/esm/v3/run-metadata-api.js.map +1 -1
  53. package/dist/esm/v3/runMetadata/index.d.ts +13 -8
  54. package/dist/esm/v3/runMetadata/index.js +32 -13
  55. package/dist/esm/v3/runMetadata/index.js.map +1 -1
  56. package/dist/esm/v3/runMetadata/manager.d.ts +23 -10
  57. package/dist/esm/v3/runMetadata/manager.js +172 -130
  58. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  59. package/dist/esm/v3/runMetadata/metadataStream.d.ts +2 -0
  60. package/dist/esm/v3/runMetadata/metadataStream.js +12 -2
  61. package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -1
  62. package/dist/esm/v3/runMetadata/noopManager.d.ts +13 -8
  63. package/dist/esm/v3/runMetadata/noopManager.js +44 -6
  64. package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
  65. package/dist/esm/v3/runMetadata/operations.d.ts +6 -0
  66. package/dist/esm/v3/runMetadata/operations.js +112 -0
  67. package/dist/esm/v3/runMetadata/operations.js.map +1 -0
  68. package/dist/esm/v3/runMetadata/types.d.ts +16 -9
  69. package/dist/esm/v3/runtime/devRuntimeManager.d.ts +1 -0
  70. package/dist/esm/v3/runtime/devRuntimeManager.js +9 -0
  71. package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
  72. package/dist/esm/v3/schemas/api.d.ts +342 -6
  73. package/dist/esm/v3/schemas/api.js +2 -5
  74. package/dist/esm/v3/schemas/api.js.map +1 -1
  75. package/dist/esm/v3/schemas/common.d.ts +3733 -12
  76. package/dist/esm/v3/schemas/common.js +44 -0
  77. package/dist/esm/v3/schemas/common.js.map +1 -1
  78. package/dist/esm/v3/schemas/messages.d.ts +18042 -60
  79. package/dist/esm/v3/types/tasks.d.ts +1 -1
  80. package/dist/esm/version.js +1 -1
  81. package/package.json +1 -1
@@ -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>]>;
@@ -946,6 +1439,352 @@ 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: {
@@ -966,6 +1805,78 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
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;
@@ -996,6 +1907,78 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
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,19 +2004,509 @@ 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;
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;
1036
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
+ output?: string | undefined;
2430
+ usage?: {
2431
+ durationMs: number;
2432
+ } | undefined;
2433
+ taskIdentifier?: 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;
1037
2510
  output?: string | undefined;
1038
2511
  usage?: {
1039
2512
  durationMs: number;
@@ -1054,10 +2527,428 @@ 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;
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;
1061
2952
  output?: string | undefined;
1062
2953
  usage?: {
1063
2954
  durationMs: number;
@@ -1067,6 +2958,78 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1067
2958
  id: string;
1068
2959
  ok: true;
1069
2960
  outputType: string;
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;
1070
3033
  output?: string | undefined;
1071
3034
  usage?: {
1072
3035
  durationMs: number;
@@ -1146,6 +3109,352 @@ 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: {
@@ -1166,6 +3475,78 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
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;
@@ -1196,6 +3577,78 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
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,10 +3676,428 @@ 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;
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;
1230
4101
  output?: string | undefined;
1231
4102
  usage?: {
1232
4103
  durationMs: number;
@@ -1236,6 +4107,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1236
4107
  id: string;
1237
4108
  ok: true;
1238
4109
  outputType: string;
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;
1239
4182
  output?: string | undefined;
1240
4183
  usage?: {
1241
4184
  durationMs: number;
@@ -1315,6 +4258,352 @@ 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: {
@@ -1335,6 +4624,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
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;
@@ -1365,6 +4726,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
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;
@@ -1398,6 +4831,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
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,6 +4917,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1412
4917
  id: string;
1413
4918
  ok: true;
1414
4919
  outputType: string;
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;
1415
4992
  output?: string | undefined;
1416
4993
  usage?: {
1417
4994
  durationMs: number;
@@ -1440,6 +5017,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
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,6 +5103,78 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
1454
5103
  id: string;
1455
5104
  ok: true;
1456
5105
  outputType: string;
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;
1457
5178
  output?: string | undefined;
1458
5179
  usage?: {
1459
5180
  durationMs: number;