@illalabs/interfaces 0.7.0 → 0.7.1-canary-beta-8ec17b3e
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.
- package/dist/schemas/chatContext.d.ts +20 -20
- package/dist/schemas/chatRequestBody.d.ts +65 -65
- package/dist/schemas/illaTools.d.ts +15 -15
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/messages.d.ts +52 -51
- package/dist/schemas/messages.d.ts.map +1 -1
- package/dist/schemas/messages.js +4 -1
- package/dist/schemas/messages.js.map +1 -1
- package/dist/schemas/planning.d.ts +18 -18
- package/dist/schemas/planningRuntime.d.ts +10 -10
- package/dist/schemas/telemetryEvents.d.ts +322 -288
- package/dist/schemas/telemetryEvents.d.ts.map +1 -1
- package/dist/schemas/telemetryEvents.js +3 -0
- package/dist/schemas/telemetryEvents.js.map +1 -1
- package/dist/schemas/uiMessageNormalizer.d.ts +22 -0
- package/dist/schemas/uiMessageNormalizer.d.ts.map +1 -0
- package/dist/schemas/uiMessageNormalizer.js +173 -0
- package/dist/schemas/uiMessageNormalizer.js.map +1 -0
- package/package.json +1 -1
|
@@ -71,17 +71,17 @@ export declare const iterationStartEventSchema: z.ZodObject<{
|
|
|
71
71
|
iteration: number;
|
|
72
72
|
}>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
type: "iteration_start";
|
|
75
74
|
data: {
|
|
76
75
|
iteration: number;
|
|
77
76
|
};
|
|
77
|
+
type: "iteration_start";
|
|
78
78
|
requestId: string;
|
|
79
79
|
timestamp?: number | undefined;
|
|
80
80
|
}, {
|
|
81
|
-
type: "iteration_start";
|
|
82
81
|
data: {
|
|
83
82
|
iteration: number;
|
|
84
83
|
};
|
|
84
|
+
type: "iteration_start";
|
|
85
85
|
requestId: string;
|
|
86
86
|
timestamp?: number | undefined;
|
|
87
87
|
}>;
|
|
@@ -107,21 +107,21 @@ export declare const iterationEndEventSchema: z.ZodObject<{
|
|
|
107
107
|
shouldContinue: boolean;
|
|
108
108
|
}>;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
type: "iteration_end";
|
|
111
110
|
data: {
|
|
112
111
|
iteration: number;
|
|
113
112
|
hasToolCalls: boolean;
|
|
114
113
|
shouldContinue: boolean;
|
|
115
114
|
};
|
|
115
|
+
type: "iteration_end";
|
|
116
116
|
requestId: string;
|
|
117
117
|
timestamp?: number | undefined;
|
|
118
118
|
}, {
|
|
119
|
-
type: "iteration_end";
|
|
120
119
|
data: {
|
|
121
120
|
iteration: number;
|
|
122
121
|
hasToolCalls: boolean;
|
|
123
122
|
shouldContinue: boolean;
|
|
124
123
|
};
|
|
124
|
+
type: "iteration_end";
|
|
125
125
|
requestId: string;
|
|
126
126
|
timestamp?: number | undefined;
|
|
127
127
|
}>;
|
|
@@ -138,46 +138,53 @@ export declare const toolCallBatchEventSchema: z.ZodObject<{
|
|
|
138
138
|
tools: z.ZodArray<z.ZodObject<{
|
|
139
139
|
toolCallId: z.ZodString;
|
|
140
140
|
toolName: z.ZodString;
|
|
141
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
141
142
|
}, "strip", z.ZodTypeAny, {
|
|
142
143
|
toolCallId: string;
|
|
143
144
|
toolName: string;
|
|
145
|
+
args?: Record<string, unknown> | undefined;
|
|
144
146
|
}, {
|
|
145
147
|
toolCallId: string;
|
|
146
148
|
toolName: string;
|
|
149
|
+
args?: Record<string, unknown> | undefined;
|
|
147
150
|
}>, "many">;
|
|
148
151
|
}, "strip", z.ZodTypeAny, {
|
|
149
152
|
iteration: number;
|
|
150
153
|
tools: {
|
|
151
154
|
toolCallId: string;
|
|
152
155
|
toolName: string;
|
|
156
|
+
args?: Record<string, unknown> | undefined;
|
|
153
157
|
}[];
|
|
154
158
|
}, {
|
|
155
159
|
iteration: number;
|
|
156
160
|
tools: {
|
|
157
161
|
toolCallId: string;
|
|
158
162
|
toolName: string;
|
|
163
|
+
args?: Record<string, unknown> | undefined;
|
|
159
164
|
}[];
|
|
160
165
|
}>;
|
|
161
166
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
type: "tool_call_batch";
|
|
163
167
|
data: {
|
|
164
168
|
iteration: number;
|
|
165
169
|
tools: {
|
|
166
170
|
toolCallId: string;
|
|
167
171
|
toolName: string;
|
|
172
|
+
args?: Record<string, unknown> | undefined;
|
|
168
173
|
}[];
|
|
169
174
|
};
|
|
175
|
+
type: "tool_call_batch";
|
|
170
176
|
requestId: string;
|
|
171
177
|
timestamp?: number | undefined;
|
|
172
178
|
}, {
|
|
173
|
-
type: "tool_call_batch";
|
|
174
179
|
data: {
|
|
175
180
|
iteration: number;
|
|
176
181
|
tools: {
|
|
177
182
|
toolCallId: string;
|
|
178
183
|
toolName: string;
|
|
184
|
+
args?: Record<string, unknown> | undefined;
|
|
179
185
|
}[];
|
|
180
186
|
};
|
|
187
|
+
type: "tool_call_batch";
|
|
181
188
|
requestId: string;
|
|
182
189
|
timestamp?: number | undefined;
|
|
183
190
|
}>;
|
|
@@ -195,80 +202,90 @@ export declare const toolResultEventSchema: z.ZodObject<{
|
|
|
195
202
|
status: z.ZodLiteral<"pending">;
|
|
196
203
|
/** Whether a simulation was performed for this pending tool */
|
|
197
204
|
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
198
206
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
status: "pending";
|
|
200
207
|
toolCallId: string;
|
|
201
208
|
toolName: string;
|
|
209
|
+
status: "pending";
|
|
210
|
+
result?: unknown;
|
|
202
211
|
simulated?: boolean | undefined;
|
|
203
212
|
}, {
|
|
204
|
-
status: "pending";
|
|
205
213
|
toolCallId: string;
|
|
206
214
|
toolName: string;
|
|
215
|
+
status: "pending";
|
|
216
|
+
result?: unknown;
|
|
207
217
|
simulated?: boolean | undefined;
|
|
208
218
|
}>, z.ZodObject<{
|
|
209
219
|
toolCallId: z.ZodString;
|
|
210
220
|
toolName: z.ZodString;
|
|
211
221
|
status: z.ZodLiteral<"success">;
|
|
222
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
212
223
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
status: "success";
|
|
214
224
|
toolCallId: string;
|
|
215
225
|
toolName: string;
|
|
216
|
-
}, {
|
|
217
226
|
status: "success";
|
|
227
|
+
result?: unknown;
|
|
228
|
+
}, {
|
|
218
229
|
toolCallId: string;
|
|
219
230
|
toolName: string;
|
|
231
|
+
status: "success";
|
|
232
|
+
result?: unknown;
|
|
220
233
|
}>, z.ZodObject<{
|
|
221
234
|
toolCallId: z.ZodString;
|
|
222
235
|
toolName: z.ZodString;
|
|
223
236
|
status: z.ZodLiteral<"failure">;
|
|
224
237
|
error: z.ZodString;
|
|
225
238
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
status: "failure";
|
|
227
|
-
error: string;
|
|
228
239
|
toolCallId: string;
|
|
229
240
|
toolName: string;
|
|
230
|
-
}, {
|
|
231
241
|
status: "failure";
|
|
232
242
|
error: string;
|
|
243
|
+
}, {
|
|
233
244
|
toolCallId: string;
|
|
234
245
|
toolName: string;
|
|
246
|
+
status: "failure";
|
|
247
|
+
error: string;
|
|
235
248
|
}>]>;
|
|
236
249
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
type: "tool_result";
|
|
238
250
|
data: {
|
|
239
|
-
status: "pending";
|
|
240
251
|
toolCallId: string;
|
|
241
252
|
toolName: string;
|
|
253
|
+
status: "pending";
|
|
254
|
+
result?: unknown;
|
|
242
255
|
simulated?: boolean | undefined;
|
|
243
256
|
} | {
|
|
244
|
-
status: "success";
|
|
245
257
|
toolCallId: string;
|
|
246
258
|
toolName: string;
|
|
259
|
+
status: "success";
|
|
260
|
+
result?: unknown;
|
|
247
261
|
} | {
|
|
248
|
-
status: "failure";
|
|
249
|
-
error: string;
|
|
250
262
|
toolCallId: string;
|
|
251
263
|
toolName: string;
|
|
264
|
+
status: "failure";
|
|
265
|
+
error: string;
|
|
252
266
|
};
|
|
267
|
+
type: "tool_result";
|
|
253
268
|
requestId: string;
|
|
254
269
|
timestamp?: number | undefined;
|
|
255
270
|
}, {
|
|
256
|
-
type: "tool_result";
|
|
257
271
|
data: {
|
|
258
|
-
status: "pending";
|
|
259
272
|
toolCallId: string;
|
|
260
273
|
toolName: string;
|
|
274
|
+
status: "pending";
|
|
275
|
+
result?: unknown;
|
|
261
276
|
simulated?: boolean | undefined;
|
|
262
277
|
} | {
|
|
263
|
-
status: "success";
|
|
264
278
|
toolCallId: string;
|
|
265
279
|
toolName: string;
|
|
280
|
+
status: "success";
|
|
281
|
+
result?: unknown;
|
|
266
282
|
} | {
|
|
267
|
-
status: "failure";
|
|
268
|
-
error: string;
|
|
269
283
|
toolCallId: string;
|
|
270
284
|
toolName: string;
|
|
285
|
+
status: "failure";
|
|
286
|
+
error: string;
|
|
271
287
|
};
|
|
288
|
+
type: "tool_result";
|
|
272
289
|
requestId: string;
|
|
273
290
|
timestamp?: number | undefined;
|
|
274
291
|
}>;
|
|
@@ -288,17 +305,17 @@ export declare const scratchpadResetEventSchema: z.ZodObject<{
|
|
|
288
305
|
reason: string;
|
|
289
306
|
}>;
|
|
290
307
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: "scratchpad_reset";
|
|
292
308
|
data: {
|
|
293
309
|
reason: string;
|
|
294
310
|
};
|
|
311
|
+
type: "scratchpad_reset";
|
|
295
312
|
requestId: string;
|
|
296
313
|
timestamp?: number | undefined;
|
|
297
314
|
}, {
|
|
298
|
-
type: "scratchpad_reset";
|
|
299
315
|
data: {
|
|
300
316
|
reason: string;
|
|
301
317
|
};
|
|
318
|
+
type: "scratchpad_reset";
|
|
302
319
|
requestId: string;
|
|
303
320
|
timestamp?: number | undefined;
|
|
304
321
|
}>;
|
|
@@ -318,17 +335,17 @@ export declare const llmStartEventSchema: z.ZodObject<{
|
|
|
318
335
|
iteration: number;
|
|
319
336
|
}>;
|
|
320
337
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
type: "llm_start";
|
|
322
338
|
data: {
|
|
323
339
|
iteration: number;
|
|
324
340
|
};
|
|
341
|
+
type: "llm_start";
|
|
325
342
|
requestId: string;
|
|
326
343
|
timestamp?: number | undefined;
|
|
327
344
|
}, {
|
|
328
|
-
type: "llm_start";
|
|
329
345
|
data: {
|
|
330
346
|
iteration: number;
|
|
331
347
|
};
|
|
348
|
+
type: "llm_start";
|
|
332
349
|
requestId: string;
|
|
333
350
|
timestamp?: number | undefined;
|
|
334
351
|
}>;
|
|
@@ -354,21 +371,21 @@ export declare const llmEndEventSchema: z.ZodObject<{
|
|
|
354
371
|
toolCallCount: number;
|
|
355
372
|
}>;
|
|
356
373
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
type: "llm_end";
|
|
358
374
|
data: {
|
|
359
375
|
iteration: number;
|
|
360
376
|
hasText: boolean;
|
|
361
377
|
toolCallCount: number;
|
|
362
378
|
};
|
|
379
|
+
type: "llm_end";
|
|
363
380
|
requestId: string;
|
|
364
381
|
timestamp?: number | undefined;
|
|
365
382
|
}, {
|
|
366
|
-
type: "llm_end";
|
|
367
383
|
data: {
|
|
368
384
|
iteration: number;
|
|
369
385
|
hasText: boolean;
|
|
370
386
|
toolCallCount: number;
|
|
371
387
|
};
|
|
388
|
+
type: "llm_end";
|
|
372
389
|
requestId: string;
|
|
373
390
|
timestamp?: number | undefined;
|
|
374
391
|
}>;
|
|
@@ -388,17 +405,17 @@ export declare const textDeltaEventSchema: z.ZodObject<{
|
|
|
388
405
|
delta: string;
|
|
389
406
|
}>;
|
|
390
407
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
type: "text_delta";
|
|
392
408
|
data: {
|
|
393
409
|
delta: string;
|
|
394
410
|
};
|
|
411
|
+
type: "text_delta";
|
|
395
412
|
requestId: string;
|
|
396
413
|
timestamp?: number | undefined;
|
|
397
414
|
}, {
|
|
398
|
-
type: "text_delta";
|
|
399
415
|
data: {
|
|
400
416
|
delta: string;
|
|
401
417
|
};
|
|
418
|
+
type: "text_delta";
|
|
402
419
|
requestId: string;
|
|
403
420
|
timestamp?: number | undefined;
|
|
404
421
|
}>;
|
|
@@ -424,21 +441,21 @@ export declare const finishEventSchema: z.ZodObject<{
|
|
|
424
441
|
hasToolErrors: boolean;
|
|
425
442
|
}>;
|
|
426
443
|
}, "strip", z.ZodTypeAny, {
|
|
427
|
-
type: "finish";
|
|
428
444
|
data: {
|
|
429
445
|
totalIterations: number;
|
|
430
446
|
hasPendingTools: boolean;
|
|
431
447
|
hasToolErrors: boolean;
|
|
432
448
|
};
|
|
449
|
+
type: "finish";
|
|
433
450
|
requestId: string;
|
|
434
451
|
timestamp?: number | undefined;
|
|
435
452
|
}, {
|
|
436
|
-
type: "finish";
|
|
437
453
|
data: {
|
|
438
454
|
totalIterations: number;
|
|
439
455
|
hasPendingTools: boolean;
|
|
440
456
|
hasToolErrors: boolean;
|
|
441
457
|
};
|
|
458
|
+
type: "finish";
|
|
442
459
|
requestId: string;
|
|
443
460
|
timestamp?: number | undefined;
|
|
444
461
|
}>;
|
|
@@ -462,19 +479,19 @@ export declare const errorTelemetryEventSchema: z.ZodObject<{
|
|
|
462
479
|
code?: string | undefined;
|
|
463
480
|
}>;
|
|
464
481
|
}, "strip", z.ZodTypeAny, {
|
|
465
|
-
type: "error";
|
|
466
482
|
data: {
|
|
467
483
|
message: string;
|
|
468
484
|
code?: string | undefined;
|
|
469
485
|
};
|
|
486
|
+
type: "error";
|
|
470
487
|
requestId: string;
|
|
471
488
|
timestamp?: number | undefined;
|
|
472
489
|
}, {
|
|
473
|
-
type: "error";
|
|
474
490
|
data: {
|
|
475
491
|
message: string;
|
|
476
492
|
code?: string | undefined;
|
|
477
493
|
};
|
|
494
|
+
type: "error";
|
|
478
495
|
requestId: string;
|
|
479
496
|
timestamp?: number | undefined;
|
|
480
497
|
}>;
|
|
@@ -494,17 +511,17 @@ export declare const planGeneratingEventSchema: z.ZodObject<{
|
|
|
494
511
|
messageCount: number;
|
|
495
512
|
}>;
|
|
496
513
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
type: "plan_generating";
|
|
498
514
|
data: {
|
|
499
515
|
messageCount: number;
|
|
500
516
|
};
|
|
517
|
+
type: "plan_generating";
|
|
501
518
|
requestId: string;
|
|
502
519
|
timestamp?: number | undefined;
|
|
503
520
|
}, {
|
|
504
|
-
type: "plan_generating";
|
|
505
521
|
data: {
|
|
506
522
|
messageCount: number;
|
|
507
523
|
};
|
|
524
|
+
type: "plan_generating";
|
|
508
525
|
requestId: string;
|
|
509
526
|
timestamp?: number | undefined;
|
|
510
527
|
}>;
|
|
@@ -542,7 +559,6 @@ export declare const planGeneratedEventSchema: z.ZodObject<{
|
|
|
542
559
|
hasConflicts: z.ZodBoolean;
|
|
543
560
|
}, z.ZodTypeAny, "passthrough">>;
|
|
544
561
|
}, "strip", z.ZodTypeAny, {
|
|
545
|
-
type: "plan_generated";
|
|
546
562
|
data: {
|
|
547
563
|
complexity: "low" | "medium" | "high";
|
|
548
564
|
planId: string;
|
|
@@ -554,10 +570,10 @@ export declare const planGeneratedEventSchema: z.ZodObject<{
|
|
|
554
570
|
} & {
|
|
555
571
|
[k: string]: unknown;
|
|
556
572
|
};
|
|
573
|
+
type: "plan_generated";
|
|
557
574
|
requestId: string;
|
|
558
575
|
timestamp?: number | undefined;
|
|
559
576
|
}, {
|
|
560
|
-
type: "plan_generated";
|
|
561
577
|
data: {
|
|
562
578
|
complexity: "low" | "medium" | "high";
|
|
563
579
|
planId: string;
|
|
@@ -569,6 +585,7 @@ export declare const planGeneratedEventSchema: z.ZodObject<{
|
|
|
569
585
|
} & {
|
|
570
586
|
[k: string]: unknown;
|
|
571
587
|
};
|
|
588
|
+
type: "plan_generated";
|
|
572
589
|
requestId: string;
|
|
573
590
|
timestamp?: number | undefined;
|
|
574
591
|
}>;
|
|
@@ -597,23 +614,23 @@ export declare const planStepStartedEventSchema: z.ZodObject<{
|
|
|
597
614
|
planId: string;
|
|
598
615
|
}>;
|
|
599
616
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
type: "plan_step_started";
|
|
601
617
|
data: {
|
|
602
618
|
description: string;
|
|
603
619
|
stepNumber: number;
|
|
604
620
|
operationType: "read" | "write";
|
|
605
621
|
planId: string;
|
|
606
622
|
};
|
|
623
|
+
type: "plan_step_started";
|
|
607
624
|
requestId: string;
|
|
608
625
|
timestamp?: number | undefined;
|
|
609
626
|
}, {
|
|
610
|
-
type: "plan_step_started";
|
|
611
627
|
data: {
|
|
612
628
|
description: string;
|
|
613
629
|
stepNumber: number;
|
|
614
630
|
operationType: "read" | "write";
|
|
615
631
|
planId: string;
|
|
616
632
|
};
|
|
633
|
+
type: "plan_step_started";
|
|
617
634
|
requestId: string;
|
|
618
635
|
timestamp?: number | undefined;
|
|
619
636
|
}>;
|
|
@@ -652,7 +669,6 @@ export declare const planStepRetryingEventSchema: z.ZodObject<{
|
|
|
652
669
|
error?: string | undefined;
|
|
653
670
|
}>;
|
|
654
671
|
}, "strip", z.ZodTypeAny, {
|
|
655
|
-
type: "plan_step_retrying";
|
|
656
672
|
data: {
|
|
657
673
|
stepNumber: number;
|
|
658
674
|
planId: string;
|
|
@@ -661,10 +677,10 @@ export declare const planStepRetryingEventSchema: z.ZodObject<{
|
|
|
661
677
|
phase: "execution" | "simulation";
|
|
662
678
|
error?: string | undefined;
|
|
663
679
|
};
|
|
680
|
+
type: "plan_step_retrying";
|
|
664
681
|
requestId: string;
|
|
665
682
|
timestamp?: number | undefined;
|
|
666
683
|
}, {
|
|
667
|
-
type: "plan_step_retrying";
|
|
668
684
|
data: {
|
|
669
685
|
stepNumber: number;
|
|
670
686
|
planId: string;
|
|
@@ -673,6 +689,7 @@ export declare const planStepRetryingEventSchema: z.ZodObject<{
|
|
|
673
689
|
phase: "execution" | "simulation";
|
|
674
690
|
error?: string | undefined;
|
|
675
691
|
};
|
|
692
|
+
type: "plan_step_retrying";
|
|
676
693
|
requestId: string;
|
|
677
694
|
timestamp?: number | undefined;
|
|
678
695
|
}>;
|
|
@@ -701,7 +718,6 @@ export declare const planStepCompletedEventSchema: z.ZodObject<{
|
|
|
701
718
|
error: z.ZodOptional<z.ZodString>;
|
|
702
719
|
}, z.ZodTypeAny, "passthrough">>;
|
|
703
720
|
}, "strip", z.ZodTypeAny, {
|
|
704
|
-
type: "plan_step_completed";
|
|
705
721
|
data: {
|
|
706
722
|
status: "completed" | "failed" | "skipped";
|
|
707
723
|
stepNumber: number;
|
|
@@ -710,10 +726,10 @@ export declare const planStepCompletedEventSchema: z.ZodObject<{
|
|
|
710
726
|
} & {
|
|
711
727
|
[k: string]: unknown;
|
|
712
728
|
};
|
|
729
|
+
type: "plan_step_completed";
|
|
713
730
|
requestId: string;
|
|
714
731
|
timestamp?: number | undefined;
|
|
715
732
|
}, {
|
|
716
|
-
type: "plan_step_completed";
|
|
717
733
|
data: {
|
|
718
734
|
status: "completed" | "failed" | "skipped";
|
|
719
735
|
stepNumber: number;
|
|
@@ -722,6 +738,7 @@ export declare const planStepCompletedEventSchema: z.ZodObject<{
|
|
|
722
738
|
} & {
|
|
723
739
|
[k: string]: unknown;
|
|
724
740
|
};
|
|
741
|
+
type: "plan_step_completed";
|
|
725
742
|
requestId: string;
|
|
726
743
|
timestamp?: number | undefined;
|
|
727
744
|
}>;
|
|
@@ -747,21 +764,21 @@ export declare const planInvalidatedEventSchema: z.ZodObject<{
|
|
|
747
764
|
failedStepNumber?: number | undefined;
|
|
748
765
|
}>;
|
|
749
766
|
}, "strip", z.ZodTypeAny, {
|
|
750
|
-
type: "plan_invalidated";
|
|
751
767
|
data: {
|
|
752
768
|
planId: string;
|
|
753
769
|
reason: string;
|
|
754
770
|
failedStepNumber?: number | undefined;
|
|
755
771
|
};
|
|
772
|
+
type: "plan_invalidated";
|
|
756
773
|
requestId: string;
|
|
757
774
|
timestamp?: number | undefined;
|
|
758
775
|
}, {
|
|
759
|
-
type: "plan_invalidated";
|
|
760
776
|
data: {
|
|
761
777
|
planId: string;
|
|
762
778
|
reason: string;
|
|
763
779
|
failedStepNumber?: number | undefined;
|
|
764
780
|
};
|
|
781
|
+
type: "plan_invalidated";
|
|
765
782
|
requestId: string;
|
|
766
783
|
timestamp?: number | undefined;
|
|
767
784
|
}>;
|
|
@@ -787,21 +804,21 @@ export declare const replanStartedEventSchema: z.ZodObject<{
|
|
|
787
804
|
preservedStepCount: number;
|
|
788
805
|
}>;
|
|
789
806
|
}, "strip", z.ZodTypeAny, {
|
|
790
|
-
type: "replan_started";
|
|
791
807
|
data: {
|
|
792
808
|
previousPlanId: string;
|
|
793
809
|
reason: string;
|
|
794
810
|
preservedStepCount: number;
|
|
795
811
|
};
|
|
812
|
+
type: "replan_started";
|
|
796
813
|
requestId: string;
|
|
797
814
|
timestamp?: number | undefined;
|
|
798
815
|
}, {
|
|
799
|
-
type: "replan_started";
|
|
800
816
|
data: {
|
|
801
817
|
previousPlanId: string;
|
|
802
818
|
reason: string;
|
|
803
819
|
preservedStepCount: number;
|
|
804
820
|
};
|
|
821
|
+
type: "replan_started";
|
|
805
822
|
requestId: string;
|
|
806
823
|
timestamp?: number | undefined;
|
|
807
824
|
}>;
|
|
@@ -827,7 +844,6 @@ export declare const replanCompleteEventSchema: z.ZodObject<{
|
|
|
827
844
|
newVersion: z.ZodNumber;
|
|
828
845
|
}, z.ZodTypeAny, "passthrough">>;
|
|
829
846
|
}, "strip", z.ZodTypeAny, {
|
|
830
|
-
type: "replan_complete";
|
|
831
847
|
data: {
|
|
832
848
|
previousPlanId: string;
|
|
833
849
|
newPlanId: string;
|
|
@@ -835,10 +851,10 @@ export declare const replanCompleteEventSchema: z.ZodObject<{
|
|
|
835
851
|
} & {
|
|
836
852
|
[k: string]: unknown;
|
|
837
853
|
};
|
|
854
|
+
type: "replan_complete";
|
|
838
855
|
requestId: string;
|
|
839
856
|
timestamp?: number | undefined;
|
|
840
857
|
}, {
|
|
841
|
-
type: "replan_complete";
|
|
842
858
|
data: {
|
|
843
859
|
previousPlanId: string;
|
|
844
860
|
newPlanId: string;
|
|
@@ -846,6 +862,7 @@ export declare const replanCompleteEventSchema: z.ZodObject<{
|
|
|
846
862
|
} & {
|
|
847
863
|
[k: string]: unknown;
|
|
848
864
|
};
|
|
865
|
+
type: "replan_complete";
|
|
849
866
|
requestId: string;
|
|
850
867
|
timestamp?: number | undefined;
|
|
851
868
|
}>;
|
|
@@ -874,23 +891,23 @@ export declare const planExecutionCompleteEventSchema: z.ZodObject<{
|
|
|
874
891
|
totalSteps: number;
|
|
875
892
|
}>;
|
|
876
893
|
}, "strip", z.ZodTypeAny, {
|
|
877
|
-
type: "plan_execution_complete";
|
|
878
894
|
data: {
|
|
879
895
|
status: "failed" | "complete" | "partial";
|
|
880
896
|
planId: string;
|
|
881
897
|
completedSteps: number;
|
|
882
898
|
totalSteps: number;
|
|
883
899
|
};
|
|
900
|
+
type: "plan_execution_complete";
|
|
884
901
|
requestId: string;
|
|
885
902
|
timestamp?: number | undefined;
|
|
886
903
|
}, {
|
|
887
|
-
type: "plan_execution_complete";
|
|
888
904
|
data: {
|
|
889
905
|
status: "failed" | "complete" | "partial";
|
|
890
906
|
planId: string;
|
|
891
907
|
completedSteps: number;
|
|
892
908
|
totalSteps: number;
|
|
893
909
|
};
|
|
910
|
+
type: "plan_execution_complete";
|
|
894
911
|
requestId: string;
|
|
895
912
|
timestamp?: number | undefined;
|
|
896
913
|
}>;
|
|
@@ -919,23 +936,23 @@ export declare const planStepSimulatedEventSchema: z.ZodObject<{
|
|
|
919
936
|
simulationSummary: string;
|
|
920
937
|
}>;
|
|
921
938
|
}, "strip", z.ZodTypeAny, {
|
|
922
|
-
type: "plan_step_simulated";
|
|
923
939
|
data: {
|
|
924
940
|
stepNumber: number;
|
|
925
941
|
planId: string;
|
|
926
942
|
simulationSuccess: boolean;
|
|
927
943
|
simulationSummary: string;
|
|
928
944
|
};
|
|
945
|
+
type: "plan_step_simulated";
|
|
929
946
|
requestId: string;
|
|
930
947
|
timestamp?: number | undefined;
|
|
931
948
|
}, {
|
|
932
|
-
type: "plan_step_simulated";
|
|
933
949
|
data: {
|
|
934
950
|
stepNumber: number;
|
|
935
951
|
planId: string;
|
|
936
952
|
simulationSuccess: boolean;
|
|
937
953
|
simulationSummary: string;
|
|
938
954
|
};
|
|
955
|
+
type: "plan_step_simulated";
|
|
939
956
|
requestId: string;
|
|
940
957
|
timestamp?: number | undefined;
|
|
941
958
|
}>;
|
|
@@ -964,23 +981,23 @@ export declare const planStepVerificationPassedEventSchema: z.ZodObject<{
|
|
|
964
981
|
reason: string;
|
|
965
982
|
}>;
|
|
966
983
|
}, "strip", z.ZodTypeAny, {
|
|
967
|
-
type: "plan_step_verification_passed";
|
|
968
984
|
data: {
|
|
969
985
|
stepNumber: number;
|
|
970
986
|
planId: string;
|
|
971
987
|
confidence: number;
|
|
972
988
|
reason: string;
|
|
973
989
|
};
|
|
990
|
+
type: "plan_step_verification_passed";
|
|
974
991
|
requestId: string;
|
|
975
992
|
timestamp?: number | undefined;
|
|
976
993
|
}, {
|
|
977
|
-
type: "plan_step_verification_passed";
|
|
978
994
|
data: {
|
|
979
995
|
stepNumber: number;
|
|
980
996
|
planId: string;
|
|
981
997
|
confidence: number;
|
|
982
998
|
reason: string;
|
|
983
999
|
};
|
|
1000
|
+
type: "plan_step_verification_passed";
|
|
984
1001
|
requestId: string;
|
|
985
1002
|
timestamp?: number | undefined;
|
|
986
1003
|
}>;
|
|
@@ -1002,12 +1019,12 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
|
|
|
1002
1019
|
message: z.ZodString;
|
|
1003
1020
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
1004
1021
|
}, "strip", z.ZodTypeAny, {
|
|
1005
|
-
message: string;
|
|
1006
1022
|
type: string;
|
|
1023
|
+
message: string;
|
|
1007
1024
|
suggestion?: string | undefined;
|
|
1008
1025
|
}, {
|
|
1009
|
-
message: string;
|
|
1010
1026
|
type: string;
|
|
1027
|
+
message: string;
|
|
1011
1028
|
suggestion?: string | undefined;
|
|
1012
1029
|
}>, "many">;
|
|
1013
1030
|
recommendedAction: z.ZodEnum<["continue", "ask_user", "replan"]>;
|
|
@@ -1015,8 +1032,8 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
|
|
|
1015
1032
|
stepNumber: number;
|
|
1016
1033
|
planId: string;
|
|
1017
1034
|
conflicts: {
|
|
1018
|
-
message: string;
|
|
1019
1035
|
type: string;
|
|
1036
|
+
message: string;
|
|
1020
1037
|
suggestion?: string | undefined;
|
|
1021
1038
|
}[];
|
|
1022
1039
|
confidence: number;
|
|
@@ -1026,8 +1043,8 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
|
|
|
1026
1043
|
stepNumber: number;
|
|
1027
1044
|
planId: string;
|
|
1028
1045
|
conflicts: {
|
|
1029
|
-
message: string;
|
|
1030
1046
|
type: string;
|
|
1047
|
+
message: string;
|
|
1031
1048
|
suggestion?: string | undefined;
|
|
1032
1049
|
}[];
|
|
1033
1050
|
confidence: number;
|
|
@@ -1035,35 +1052,35 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
|
|
|
1035
1052
|
reason: string;
|
|
1036
1053
|
}>;
|
|
1037
1054
|
}, "strip", z.ZodTypeAny, {
|
|
1038
|
-
type: "plan_step_verification_failed";
|
|
1039
1055
|
data: {
|
|
1040
1056
|
stepNumber: number;
|
|
1041
1057
|
planId: string;
|
|
1042
1058
|
conflicts: {
|
|
1043
|
-
message: string;
|
|
1044
1059
|
type: string;
|
|
1060
|
+
message: string;
|
|
1045
1061
|
suggestion?: string | undefined;
|
|
1046
1062
|
}[];
|
|
1047
1063
|
confidence: number;
|
|
1048
1064
|
recommendedAction: "continue" | "replan" | "ask_user";
|
|
1049
1065
|
reason: string;
|
|
1050
1066
|
};
|
|
1067
|
+
type: "plan_step_verification_failed";
|
|
1051
1068
|
requestId: string;
|
|
1052
1069
|
timestamp?: number | undefined;
|
|
1053
1070
|
}, {
|
|
1054
|
-
type: "plan_step_verification_failed";
|
|
1055
1071
|
data: {
|
|
1056
1072
|
stepNumber: number;
|
|
1057
1073
|
planId: string;
|
|
1058
1074
|
conflicts: {
|
|
1059
|
-
message: string;
|
|
1060
1075
|
type: string;
|
|
1076
|
+
message: string;
|
|
1061
1077
|
suggestion?: string | undefined;
|
|
1062
1078
|
}[];
|
|
1063
1079
|
confidence: number;
|
|
1064
1080
|
recommendedAction: "continue" | "replan" | "ask_user";
|
|
1065
1081
|
reason: string;
|
|
1066
1082
|
};
|
|
1083
|
+
type: "plan_step_verification_failed";
|
|
1067
1084
|
requestId: string;
|
|
1068
1085
|
timestamp?: number | undefined;
|
|
1069
1086
|
}>;
|
|
@@ -1089,21 +1106,21 @@ export declare const planExecutionFailedEventSchema: z.ZodObject<{
|
|
|
1089
1106
|
phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning";
|
|
1090
1107
|
}>;
|
|
1091
1108
|
}, "strip", z.ZodTypeAny, {
|
|
1092
|
-
type: "plan_execution_failed";
|
|
1093
1109
|
data: {
|
|
1094
1110
|
error: string;
|
|
1095
1111
|
planId: string;
|
|
1096
1112
|
phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning";
|
|
1097
1113
|
};
|
|
1114
|
+
type: "plan_execution_failed";
|
|
1098
1115
|
requestId: string;
|
|
1099
1116
|
timestamp?: number | undefined;
|
|
1100
1117
|
}, {
|
|
1101
|
-
type: "plan_execution_failed";
|
|
1102
1118
|
data: {
|
|
1103
1119
|
error: string;
|
|
1104
1120
|
planId: string;
|
|
1105
1121
|
phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning";
|
|
1106
1122
|
};
|
|
1123
|
+
type: "plan_execution_failed";
|
|
1107
1124
|
requestId: string;
|
|
1108
1125
|
timestamp?: number | undefined;
|
|
1109
1126
|
}>;
|
|
@@ -1150,17 +1167,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1150
1167
|
iteration: number;
|
|
1151
1168
|
}>;
|
|
1152
1169
|
}, "strip", z.ZodTypeAny, {
|
|
1153
|
-
type: "iteration_start";
|
|
1154
1170
|
data: {
|
|
1155
1171
|
iteration: number;
|
|
1156
1172
|
};
|
|
1173
|
+
type: "iteration_start";
|
|
1157
1174
|
requestId: string;
|
|
1158
1175
|
timestamp?: number | undefined;
|
|
1159
1176
|
}, {
|
|
1160
|
-
type: "iteration_start";
|
|
1161
1177
|
data: {
|
|
1162
1178
|
iteration: number;
|
|
1163
1179
|
};
|
|
1180
|
+
type: "iteration_start";
|
|
1164
1181
|
requestId: string;
|
|
1165
1182
|
timestamp?: number | undefined;
|
|
1166
1183
|
}>, z.ZodObject<{
|
|
@@ -1182,21 +1199,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1182
1199
|
shouldContinue: boolean;
|
|
1183
1200
|
}>;
|
|
1184
1201
|
}, "strip", z.ZodTypeAny, {
|
|
1185
|
-
type: "iteration_end";
|
|
1186
1202
|
data: {
|
|
1187
1203
|
iteration: number;
|
|
1188
1204
|
hasToolCalls: boolean;
|
|
1189
1205
|
shouldContinue: boolean;
|
|
1190
1206
|
};
|
|
1207
|
+
type: "iteration_end";
|
|
1191
1208
|
requestId: string;
|
|
1192
1209
|
timestamp?: number | undefined;
|
|
1193
1210
|
}, {
|
|
1194
|
-
type: "iteration_end";
|
|
1195
1211
|
data: {
|
|
1196
1212
|
iteration: number;
|
|
1197
1213
|
hasToolCalls: boolean;
|
|
1198
1214
|
shouldContinue: boolean;
|
|
1199
1215
|
};
|
|
1216
|
+
type: "iteration_end";
|
|
1200
1217
|
requestId: string;
|
|
1201
1218
|
timestamp?: number | undefined;
|
|
1202
1219
|
}>, z.ZodObject<{
|
|
@@ -1209,46 +1226,53 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1209
1226
|
tools: z.ZodArray<z.ZodObject<{
|
|
1210
1227
|
toolCallId: z.ZodString;
|
|
1211
1228
|
toolName: z.ZodString;
|
|
1229
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1212
1230
|
}, "strip", z.ZodTypeAny, {
|
|
1213
1231
|
toolCallId: string;
|
|
1214
1232
|
toolName: string;
|
|
1233
|
+
args?: Record<string, unknown> | undefined;
|
|
1215
1234
|
}, {
|
|
1216
1235
|
toolCallId: string;
|
|
1217
1236
|
toolName: string;
|
|
1237
|
+
args?: Record<string, unknown> | undefined;
|
|
1218
1238
|
}>, "many">;
|
|
1219
1239
|
}, "strip", z.ZodTypeAny, {
|
|
1220
1240
|
iteration: number;
|
|
1221
1241
|
tools: {
|
|
1222
1242
|
toolCallId: string;
|
|
1223
1243
|
toolName: string;
|
|
1244
|
+
args?: Record<string, unknown> | undefined;
|
|
1224
1245
|
}[];
|
|
1225
1246
|
}, {
|
|
1226
1247
|
iteration: number;
|
|
1227
1248
|
tools: {
|
|
1228
1249
|
toolCallId: string;
|
|
1229
1250
|
toolName: string;
|
|
1251
|
+
args?: Record<string, unknown> | undefined;
|
|
1230
1252
|
}[];
|
|
1231
1253
|
}>;
|
|
1232
1254
|
}, "strip", z.ZodTypeAny, {
|
|
1233
|
-
type: "tool_call_batch";
|
|
1234
1255
|
data: {
|
|
1235
1256
|
iteration: number;
|
|
1236
1257
|
tools: {
|
|
1237
1258
|
toolCallId: string;
|
|
1238
1259
|
toolName: string;
|
|
1260
|
+
args?: Record<string, unknown> | undefined;
|
|
1239
1261
|
}[];
|
|
1240
1262
|
};
|
|
1263
|
+
type: "tool_call_batch";
|
|
1241
1264
|
requestId: string;
|
|
1242
1265
|
timestamp?: number | undefined;
|
|
1243
1266
|
}, {
|
|
1244
|
-
type: "tool_call_batch";
|
|
1245
1267
|
data: {
|
|
1246
1268
|
iteration: number;
|
|
1247
1269
|
tools: {
|
|
1248
1270
|
toolCallId: string;
|
|
1249
1271
|
toolName: string;
|
|
1272
|
+
args?: Record<string, unknown> | undefined;
|
|
1250
1273
|
}[];
|
|
1251
1274
|
};
|
|
1275
|
+
type: "tool_call_batch";
|
|
1252
1276
|
requestId: string;
|
|
1253
1277
|
timestamp?: number | undefined;
|
|
1254
1278
|
}>, z.ZodObject<{
|
|
@@ -1262,80 +1286,90 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1262
1286
|
status: z.ZodLiteral<"pending">;
|
|
1263
1287
|
/** Whether a simulation was performed for this pending tool */
|
|
1264
1288
|
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
1289
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1265
1290
|
}, "strip", z.ZodTypeAny, {
|
|
1266
|
-
status: "pending";
|
|
1267
1291
|
toolCallId: string;
|
|
1268
1292
|
toolName: string;
|
|
1293
|
+
status: "pending";
|
|
1294
|
+
result?: unknown;
|
|
1269
1295
|
simulated?: boolean | undefined;
|
|
1270
1296
|
}, {
|
|
1271
|
-
status: "pending";
|
|
1272
1297
|
toolCallId: string;
|
|
1273
1298
|
toolName: string;
|
|
1299
|
+
status: "pending";
|
|
1300
|
+
result?: unknown;
|
|
1274
1301
|
simulated?: boolean | undefined;
|
|
1275
1302
|
}>, z.ZodObject<{
|
|
1276
1303
|
toolCallId: z.ZodString;
|
|
1277
1304
|
toolName: z.ZodString;
|
|
1278
1305
|
status: z.ZodLiteral<"success">;
|
|
1306
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1279
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1280
|
-
status: "success";
|
|
1281
1308
|
toolCallId: string;
|
|
1282
1309
|
toolName: string;
|
|
1283
|
-
}, {
|
|
1284
1310
|
status: "success";
|
|
1311
|
+
result?: unknown;
|
|
1312
|
+
}, {
|
|
1285
1313
|
toolCallId: string;
|
|
1286
1314
|
toolName: string;
|
|
1315
|
+
status: "success";
|
|
1316
|
+
result?: unknown;
|
|
1287
1317
|
}>, z.ZodObject<{
|
|
1288
1318
|
toolCallId: z.ZodString;
|
|
1289
1319
|
toolName: z.ZodString;
|
|
1290
1320
|
status: z.ZodLiteral<"failure">;
|
|
1291
1321
|
error: z.ZodString;
|
|
1292
1322
|
}, "strip", z.ZodTypeAny, {
|
|
1293
|
-
status: "failure";
|
|
1294
|
-
error: string;
|
|
1295
1323
|
toolCallId: string;
|
|
1296
1324
|
toolName: string;
|
|
1297
|
-
}, {
|
|
1298
1325
|
status: "failure";
|
|
1299
1326
|
error: string;
|
|
1327
|
+
}, {
|
|
1300
1328
|
toolCallId: string;
|
|
1301
1329
|
toolName: string;
|
|
1330
|
+
status: "failure";
|
|
1331
|
+
error: string;
|
|
1302
1332
|
}>]>;
|
|
1303
1333
|
}, "strip", z.ZodTypeAny, {
|
|
1304
|
-
type: "tool_result";
|
|
1305
1334
|
data: {
|
|
1306
|
-
status: "pending";
|
|
1307
1335
|
toolCallId: string;
|
|
1308
1336
|
toolName: string;
|
|
1337
|
+
status: "pending";
|
|
1338
|
+
result?: unknown;
|
|
1309
1339
|
simulated?: boolean | undefined;
|
|
1310
1340
|
} | {
|
|
1311
|
-
status: "success";
|
|
1312
1341
|
toolCallId: string;
|
|
1313
1342
|
toolName: string;
|
|
1343
|
+
status: "success";
|
|
1344
|
+
result?: unknown;
|
|
1314
1345
|
} | {
|
|
1315
|
-
status: "failure";
|
|
1316
|
-
error: string;
|
|
1317
1346
|
toolCallId: string;
|
|
1318
1347
|
toolName: string;
|
|
1348
|
+
status: "failure";
|
|
1349
|
+
error: string;
|
|
1319
1350
|
};
|
|
1351
|
+
type: "tool_result";
|
|
1320
1352
|
requestId: string;
|
|
1321
1353
|
timestamp?: number | undefined;
|
|
1322
1354
|
}, {
|
|
1323
|
-
type: "tool_result";
|
|
1324
1355
|
data: {
|
|
1325
|
-
status: "pending";
|
|
1326
1356
|
toolCallId: string;
|
|
1327
1357
|
toolName: string;
|
|
1358
|
+
status: "pending";
|
|
1359
|
+
result?: unknown;
|
|
1328
1360
|
simulated?: boolean | undefined;
|
|
1329
1361
|
} | {
|
|
1330
|
-
status: "success";
|
|
1331
1362
|
toolCallId: string;
|
|
1332
1363
|
toolName: string;
|
|
1364
|
+
status: "success";
|
|
1365
|
+
result?: unknown;
|
|
1333
1366
|
} | {
|
|
1334
|
-
status: "failure";
|
|
1335
|
-
error: string;
|
|
1336
1367
|
toolCallId: string;
|
|
1337
1368
|
toolName: string;
|
|
1369
|
+
status: "failure";
|
|
1370
|
+
error: string;
|
|
1338
1371
|
};
|
|
1372
|
+
type: "tool_result";
|
|
1339
1373
|
requestId: string;
|
|
1340
1374
|
timestamp?: number | undefined;
|
|
1341
1375
|
}>, z.ZodObject<{
|
|
@@ -1351,17 +1385,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1351
1385
|
reason: string;
|
|
1352
1386
|
}>;
|
|
1353
1387
|
}, "strip", z.ZodTypeAny, {
|
|
1354
|
-
type: "scratchpad_reset";
|
|
1355
1388
|
data: {
|
|
1356
1389
|
reason: string;
|
|
1357
1390
|
};
|
|
1391
|
+
type: "scratchpad_reset";
|
|
1358
1392
|
requestId: string;
|
|
1359
1393
|
timestamp?: number | undefined;
|
|
1360
1394
|
}, {
|
|
1361
|
-
type: "scratchpad_reset";
|
|
1362
1395
|
data: {
|
|
1363
1396
|
reason: string;
|
|
1364
1397
|
};
|
|
1398
|
+
type: "scratchpad_reset";
|
|
1365
1399
|
requestId: string;
|
|
1366
1400
|
timestamp?: number | undefined;
|
|
1367
1401
|
}>, z.ZodObject<{
|
|
@@ -1377,17 +1411,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1377
1411
|
iteration: number;
|
|
1378
1412
|
}>;
|
|
1379
1413
|
}, "strip", z.ZodTypeAny, {
|
|
1380
|
-
type: "llm_start";
|
|
1381
1414
|
data: {
|
|
1382
1415
|
iteration: number;
|
|
1383
1416
|
};
|
|
1417
|
+
type: "llm_start";
|
|
1384
1418
|
requestId: string;
|
|
1385
1419
|
timestamp?: number | undefined;
|
|
1386
1420
|
}, {
|
|
1387
|
-
type: "llm_start";
|
|
1388
1421
|
data: {
|
|
1389
1422
|
iteration: number;
|
|
1390
1423
|
};
|
|
1424
|
+
type: "llm_start";
|
|
1391
1425
|
requestId: string;
|
|
1392
1426
|
timestamp?: number | undefined;
|
|
1393
1427
|
}>, z.ZodObject<{
|
|
@@ -1409,21 +1443,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1409
1443
|
toolCallCount: number;
|
|
1410
1444
|
}>;
|
|
1411
1445
|
}, "strip", z.ZodTypeAny, {
|
|
1412
|
-
type: "llm_end";
|
|
1413
1446
|
data: {
|
|
1414
1447
|
iteration: number;
|
|
1415
1448
|
hasText: boolean;
|
|
1416
1449
|
toolCallCount: number;
|
|
1417
1450
|
};
|
|
1451
|
+
type: "llm_end";
|
|
1418
1452
|
requestId: string;
|
|
1419
1453
|
timestamp?: number | undefined;
|
|
1420
1454
|
}, {
|
|
1421
|
-
type: "llm_end";
|
|
1422
1455
|
data: {
|
|
1423
1456
|
iteration: number;
|
|
1424
1457
|
hasText: boolean;
|
|
1425
1458
|
toolCallCount: number;
|
|
1426
1459
|
};
|
|
1460
|
+
type: "llm_end";
|
|
1427
1461
|
requestId: string;
|
|
1428
1462
|
timestamp?: number | undefined;
|
|
1429
1463
|
}>, z.ZodObject<{
|
|
@@ -1439,17 +1473,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1439
1473
|
delta: string;
|
|
1440
1474
|
}>;
|
|
1441
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1442
|
-
type: "text_delta";
|
|
1443
1476
|
data: {
|
|
1444
1477
|
delta: string;
|
|
1445
1478
|
};
|
|
1479
|
+
type: "text_delta";
|
|
1446
1480
|
requestId: string;
|
|
1447
1481
|
timestamp?: number | undefined;
|
|
1448
1482
|
}, {
|
|
1449
|
-
type: "text_delta";
|
|
1450
1483
|
data: {
|
|
1451
1484
|
delta: string;
|
|
1452
1485
|
};
|
|
1486
|
+
type: "text_delta";
|
|
1453
1487
|
requestId: string;
|
|
1454
1488
|
timestamp?: number | undefined;
|
|
1455
1489
|
}>, z.ZodObject<{
|
|
@@ -1471,21 +1505,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1471
1505
|
hasToolErrors: boolean;
|
|
1472
1506
|
}>;
|
|
1473
1507
|
}, "strip", z.ZodTypeAny, {
|
|
1474
|
-
type: "finish";
|
|
1475
1508
|
data: {
|
|
1476
1509
|
totalIterations: number;
|
|
1477
1510
|
hasPendingTools: boolean;
|
|
1478
1511
|
hasToolErrors: boolean;
|
|
1479
1512
|
};
|
|
1513
|
+
type: "finish";
|
|
1480
1514
|
requestId: string;
|
|
1481
1515
|
timestamp?: number | undefined;
|
|
1482
1516
|
}, {
|
|
1483
|
-
type: "finish";
|
|
1484
1517
|
data: {
|
|
1485
1518
|
totalIterations: number;
|
|
1486
1519
|
hasPendingTools: boolean;
|
|
1487
1520
|
hasToolErrors: boolean;
|
|
1488
1521
|
};
|
|
1522
|
+
type: "finish";
|
|
1489
1523
|
requestId: string;
|
|
1490
1524
|
timestamp?: number | undefined;
|
|
1491
1525
|
}>, z.ZodObject<{
|
|
@@ -1504,19 +1538,19 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1504
1538
|
code?: string | undefined;
|
|
1505
1539
|
}>;
|
|
1506
1540
|
}, "strip", z.ZodTypeAny, {
|
|
1507
|
-
type: "error";
|
|
1508
1541
|
data: {
|
|
1509
1542
|
message: string;
|
|
1510
1543
|
code?: string | undefined;
|
|
1511
1544
|
};
|
|
1545
|
+
type: "error";
|
|
1512
1546
|
requestId: string;
|
|
1513
1547
|
timestamp?: number | undefined;
|
|
1514
1548
|
}, {
|
|
1515
|
-
type: "error";
|
|
1516
1549
|
data: {
|
|
1517
1550
|
message: string;
|
|
1518
1551
|
code?: string | undefined;
|
|
1519
1552
|
};
|
|
1553
|
+
type: "error";
|
|
1520
1554
|
requestId: string;
|
|
1521
1555
|
timestamp?: number | undefined;
|
|
1522
1556
|
}>, z.ZodObject<{
|
|
@@ -1532,17 +1566,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1532
1566
|
messageCount: number;
|
|
1533
1567
|
}>;
|
|
1534
1568
|
}, "strip", z.ZodTypeAny, {
|
|
1535
|
-
type: "plan_generating";
|
|
1536
1569
|
data: {
|
|
1537
1570
|
messageCount: number;
|
|
1538
1571
|
};
|
|
1572
|
+
type: "plan_generating";
|
|
1539
1573
|
requestId: string;
|
|
1540
1574
|
timestamp?: number | undefined;
|
|
1541
1575
|
}, {
|
|
1542
|
-
type: "plan_generating";
|
|
1543
1576
|
data: {
|
|
1544
1577
|
messageCount: number;
|
|
1545
1578
|
};
|
|
1579
|
+
type: "plan_generating";
|
|
1546
1580
|
requestId: string;
|
|
1547
1581
|
timestamp?: number | undefined;
|
|
1548
1582
|
}>, z.ZodObject<{
|
|
@@ -1576,7 +1610,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1576
1610
|
hasConflicts: z.ZodBoolean;
|
|
1577
1611
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1578
1612
|
}, "strip", z.ZodTypeAny, {
|
|
1579
|
-
type: "plan_generated";
|
|
1580
1613
|
data: {
|
|
1581
1614
|
complexity: "low" | "medium" | "high";
|
|
1582
1615
|
planId: string;
|
|
@@ -1588,10 +1621,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1588
1621
|
} & {
|
|
1589
1622
|
[k: string]: unknown;
|
|
1590
1623
|
};
|
|
1624
|
+
type: "plan_generated";
|
|
1591
1625
|
requestId: string;
|
|
1592
1626
|
timestamp?: number | undefined;
|
|
1593
1627
|
}, {
|
|
1594
|
-
type: "plan_generated";
|
|
1595
1628
|
data: {
|
|
1596
1629
|
complexity: "low" | "medium" | "high";
|
|
1597
1630
|
planId: string;
|
|
@@ -1603,6 +1636,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1603
1636
|
} & {
|
|
1604
1637
|
[k: string]: unknown;
|
|
1605
1638
|
};
|
|
1639
|
+
type: "plan_generated";
|
|
1606
1640
|
requestId: string;
|
|
1607
1641
|
timestamp?: number | undefined;
|
|
1608
1642
|
}>, z.ZodObject<{
|
|
@@ -1627,23 +1661,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1627
1661
|
planId: string;
|
|
1628
1662
|
}>;
|
|
1629
1663
|
}, "strip", z.ZodTypeAny, {
|
|
1630
|
-
type: "plan_step_started";
|
|
1631
1664
|
data: {
|
|
1632
1665
|
description: string;
|
|
1633
1666
|
stepNumber: number;
|
|
1634
1667
|
operationType: "read" | "write";
|
|
1635
1668
|
planId: string;
|
|
1636
1669
|
};
|
|
1670
|
+
type: "plan_step_started";
|
|
1637
1671
|
requestId: string;
|
|
1638
1672
|
timestamp?: number | undefined;
|
|
1639
1673
|
}, {
|
|
1640
|
-
type: "plan_step_started";
|
|
1641
1674
|
data: {
|
|
1642
1675
|
description: string;
|
|
1643
1676
|
stepNumber: number;
|
|
1644
1677
|
operationType: "read" | "write";
|
|
1645
1678
|
planId: string;
|
|
1646
1679
|
};
|
|
1680
|
+
type: "plan_step_started";
|
|
1647
1681
|
requestId: string;
|
|
1648
1682
|
timestamp?: number | undefined;
|
|
1649
1683
|
}>, z.ZodObject<{
|
|
@@ -1674,7 +1708,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1674
1708
|
error?: string | undefined;
|
|
1675
1709
|
}>;
|
|
1676
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1677
|
-
type: "plan_step_retrying";
|
|
1678
1711
|
data: {
|
|
1679
1712
|
stepNumber: number;
|
|
1680
1713
|
planId: string;
|
|
@@ -1683,10 +1716,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1683
1716
|
phase: "execution" | "simulation";
|
|
1684
1717
|
error?: string | undefined;
|
|
1685
1718
|
};
|
|
1719
|
+
type: "plan_step_retrying";
|
|
1686
1720
|
requestId: string;
|
|
1687
1721
|
timestamp?: number | undefined;
|
|
1688
1722
|
}, {
|
|
1689
|
-
type: "plan_step_retrying";
|
|
1690
1723
|
data: {
|
|
1691
1724
|
stepNumber: number;
|
|
1692
1725
|
planId: string;
|
|
@@ -1695,6 +1728,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1695
1728
|
phase: "execution" | "simulation";
|
|
1696
1729
|
error?: string | undefined;
|
|
1697
1730
|
};
|
|
1731
|
+
type: "plan_step_retrying";
|
|
1698
1732
|
requestId: string;
|
|
1699
1733
|
timestamp?: number | undefined;
|
|
1700
1734
|
}>, z.ZodObject<{
|
|
@@ -1719,7 +1753,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1719
1753
|
error: z.ZodOptional<z.ZodString>;
|
|
1720
1754
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1721
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1722
|
-
type: "plan_step_completed";
|
|
1723
1756
|
data: {
|
|
1724
1757
|
status: "completed" | "failed" | "skipped";
|
|
1725
1758
|
stepNumber: number;
|
|
@@ -1728,10 +1761,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1728
1761
|
} & {
|
|
1729
1762
|
[k: string]: unknown;
|
|
1730
1763
|
};
|
|
1764
|
+
type: "plan_step_completed";
|
|
1731
1765
|
requestId: string;
|
|
1732
1766
|
timestamp?: number | undefined;
|
|
1733
1767
|
}, {
|
|
1734
|
-
type: "plan_step_completed";
|
|
1735
1768
|
data: {
|
|
1736
1769
|
status: "completed" | "failed" | "skipped";
|
|
1737
1770
|
stepNumber: number;
|
|
@@ -1740,6 +1773,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1740
1773
|
} & {
|
|
1741
1774
|
[k: string]: unknown;
|
|
1742
1775
|
};
|
|
1776
|
+
type: "plan_step_completed";
|
|
1743
1777
|
requestId: string;
|
|
1744
1778
|
timestamp?: number | undefined;
|
|
1745
1779
|
}>, z.ZodObject<{
|
|
@@ -1761,21 +1795,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1761
1795
|
failedStepNumber?: number | undefined;
|
|
1762
1796
|
}>;
|
|
1763
1797
|
}, "strip", z.ZodTypeAny, {
|
|
1764
|
-
type: "plan_invalidated";
|
|
1765
1798
|
data: {
|
|
1766
1799
|
planId: string;
|
|
1767
1800
|
reason: string;
|
|
1768
1801
|
failedStepNumber?: number | undefined;
|
|
1769
1802
|
};
|
|
1803
|
+
type: "plan_invalidated";
|
|
1770
1804
|
requestId: string;
|
|
1771
1805
|
timestamp?: number | undefined;
|
|
1772
1806
|
}, {
|
|
1773
|
-
type: "plan_invalidated";
|
|
1774
1807
|
data: {
|
|
1775
1808
|
planId: string;
|
|
1776
1809
|
reason: string;
|
|
1777
1810
|
failedStepNumber?: number | undefined;
|
|
1778
1811
|
};
|
|
1812
|
+
type: "plan_invalidated";
|
|
1779
1813
|
requestId: string;
|
|
1780
1814
|
timestamp?: number | undefined;
|
|
1781
1815
|
}>, z.ZodObject<{
|
|
@@ -1797,21 +1831,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1797
1831
|
preservedStepCount: number;
|
|
1798
1832
|
}>;
|
|
1799
1833
|
}, "strip", z.ZodTypeAny, {
|
|
1800
|
-
type: "replan_started";
|
|
1801
1834
|
data: {
|
|
1802
1835
|
previousPlanId: string;
|
|
1803
1836
|
reason: string;
|
|
1804
1837
|
preservedStepCount: number;
|
|
1805
1838
|
};
|
|
1839
|
+
type: "replan_started";
|
|
1806
1840
|
requestId: string;
|
|
1807
1841
|
timestamp?: number | undefined;
|
|
1808
1842
|
}, {
|
|
1809
|
-
type: "replan_started";
|
|
1810
1843
|
data: {
|
|
1811
1844
|
previousPlanId: string;
|
|
1812
1845
|
reason: string;
|
|
1813
1846
|
preservedStepCount: number;
|
|
1814
1847
|
};
|
|
1848
|
+
type: "replan_started";
|
|
1815
1849
|
requestId: string;
|
|
1816
1850
|
timestamp?: number | undefined;
|
|
1817
1851
|
}>, z.ZodObject<{
|
|
@@ -1833,7 +1867,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1833
1867
|
newVersion: z.ZodNumber;
|
|
1834
1868
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1835
1869
|
}, "strip", z.ZodTypeAny, {
|
|
1836
|
-
type: "replan_complete";
|
|
1837
1870
|
data: {
|
|
1838
1871
|
previousPlanId: string;
|
|
1839
1872
|
newPlanId: string;
|
|
@@ -1841,10 +1874,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1841
1874
|
} & {
|
|
1842
1875
|
[k: string]: unknown;
|
|
1843
1876
|
};
|
|
1877
|
+
type: "replan_complete";
|
|
1844
1878
|
requestId: string;
|
|
1845
1879
|
timestamp?: number | undefined;
|
|
1846
1880
|
}, {
|
|
1847
|
-
type: "replan_complete";
|
|
1848
1881
|
data: {
|
|
1849
1882
|
previousPlanId: string;
|
|
1850
1883
|
newPlanId: string;
|
|
@@ -1852,6 +1885,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1852
1885
|
} & {
|
|
1853
1886
|
[k: string]: unknown;
|
|
1854
1887
|
};
|
|
1888
|
+
type: "replan_complete";
|
|
1855
1889
|
requestId: string;
|
|
1856
1890
|
timestamp?: number | undefined;
|
|
1857
1891
|
}>, z.ZodObject<{
|
|
@@ -1876,23 +1910,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1876
1910
|
totalSteps: number;
|
|
1877
1911
|
}>;
|
|
1878
1912
|
}, "strip", z.ZodTypeAny, {
|
|
1879
|
-
type: "plan_execution_complete";
|
|
1880
1913
|
data: {
|
|
1881
1914
|
status: "failed" | "complete" | "partial";
|
|
1882
1915
|
planId: string;
|
|
1883
1916
|
completedSteps: number;
|
|
1884
1917
|
totalSteps: number;
|
|
1885
1918
|
};
|
|
1919
|
+
type: "plan_execution_complete";
|
|
1886
1920
|
requestId: string;
|
|
1887
1921
|
timestamp?: number | undefined;
|
|
1888
1922
|
}, {
|
|
1889
|
-
type: "plan_execution_complete";
|
|
1890
1923
|
data: {
|
|
1891
1924
|
status: "failed" | "complete" | "partial";
|
|
1892
1925
|
planId: string;
|
|
1893
1926
|
completedSteps: number;
|
|
1894
1927
|
totalSteps: number;
|
|
1895
1928
|
};
|
|
1929
|
+
type: "plan_execution_complete";
|
|
1896
1930
|
requestId: string;
|
|
1897
1931
|
timestamp?: number | undefined;
|
|
1898
1932
|
}>, z.ZodObject<{
|
|
@@ -1917,23 +1951,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1917
1951
|
simulationSummary: string;
|
|
1918
1952
|
}>;
|
|
1919
1953
|
}, "strip", z.ZodTypeAny, {
|
|
1920
|
-
type: "plan_step_simulated";
|
|
1921
1954
|
data: {
|
|
1922
1955
|
stepNumber: number;
|
|
1923
1956
|
planId: string;
|
|
1924
1957
|
simulationSuccess: boolean;
|
|
1925
1958
|
simulationSummary: string;
|
|
1926
1959
|
};
|
|
1960
|
+
type: "plan_step_simulated";
|
|
1927
1961
|
requestId: string;
|
|
1928
1962
|
timestamp?: number | undefined;
|
|
1929
1963
|
}, {
|
|
1930
|
-
type: "plan_step_simulated";
|
|
1931
1964
|
data: {
|
|
1932
1965
|
stepNumber: number;
|
|
1933
1966
|
planId: string;
|
|
1934
1967
|
simulationSuccess: boolean;
|
|
1935
1968
|
simulationSummary: string;
|
|
1936
1969
|
};
|
|
1970
|
+
type: "plan_step_simulated";
|
|
1937
1971
|
requestId: string;
|
|
1938
1972
|
timestamp?: number | undefined;
|
|
1939
1973
|
}>, z.ZodObject<{
|
|
@@ -1958,23 +1992,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1958
1992
|
reason: string;
|
|
1959
1993
|
}>;
|
|
1960
1994
|
}, "strip", z.ZodTypeAny, {
|
|
1961
|
-
type: "plan_step_verification_passed";
|
|
1962
1995
|
data: {
|
|
1963
1996
|
stepNumber: number;
|
|
1964
1997
|
planId: string;
|
|
1965
1998
|
confidence: number;
|
|
1966
1999
|
reason: string;
|
|
1967
2000
|
};
|
|
2001
|
+
type: "plan_step_verification_passed";
|
|
1968
2002
|
requestId: string;
|
|
1969
2003
|
timestamp?: number | undefined;
|
|
1970
2004
|
}, {
|
|
1971
|
-
type: "plan_step_verification_passed";
|
|
1972
2005
|
data: {
|
|
1973
2006
|
stepNumber: number;
|
|
1974
2007
|
planId: string;
|
|
1975
2008
|
confidence: number;
|
|
1976
2009
|
reason: string;
|
|
1977
2010
|
};
|
|
2011
|
+
type: "plan_step_verification_passed";
|
|
1978
2012
|
requestId: string;
|
|
1979
2013
|
timestamp?: number | undefined;
|
|
1980
2014
|
}>, z.ZodObject<{
|
|
@@ -1992,12 +2026,12 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1992
2026
|
message: z.ZodString;
|
|
1993
2027
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
1994
2028
|
}, "strip", z.ZodTypeAny, {
|
|
1995
|
-
message: string;
|
|
1996
2029
|
type: string;
|
|
2030
|
+
message: string;
|
|
1997
2031
|
suggestion?: string | undefined;
|
|
1998
2032
|
}, {
|
|
1999
|
-
message: string;
|
|
2000
2033
|
type: string;
|
|
2034
|
+
message: string;
|
|
2001
2035
|
suggestion?: string | undefined;
|
|
2002
2036
|
}>, "many">;
|
|
2003
2037
|
recommendedAction: z.ZodEnum<["continue", "ask_user", "replan"]>;
|
|
@@ -2005,8 +2039,8 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2005
2039
|
stepNumber: number;
|
|
2006
2040
|
planId: string;
|
|
2007
2041
|
conflicts: {
|
|
2008
|
-
message: string;
|
|
2009
2042
|
type: string;
|
|
2043
|
+
message: string;
|
|
2010
2044
|
suggestion?: string | undefined;
|
|
2011
2045
|
}[];
|
|
2012
2046
|
confidence: number;
|
|
@@ -2016,8 +2050,8 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2016
2050
|
stepNumber: number;
|
|
2017
2051
|
planId: string;
|
|
2018
2052
|
conflicts: {
|
|
2019
|
-
message: string;
|
|
2020
2053
|
type: string;
|
|
2054
|
+
message: string;
|
|
2021
2055
|
suggestion?: string | undefined;
|
|
2022
2056
|
}[];
|
|
2023
2057
|
confidence: number;
|
|
@@ -2025,35 +2059,35 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2025
2059
|
reason: string;
|
|
2026
2060
|
}>;
|
|
2027
2061
|
}, "strip", z.ZodTypeAny, {
|
|
2028
|
-
type: "plan_step_verification_failed";
|
|
2029
2062
|
data: {
|
|
2030
2063
|
stepNumber: number;
|
|
2031
2064
|
planId: string;
|
|
2032
2065
|
conflicts: {
|
|
2033
|
-
message: string;
|
|
2034
2066
|
type: string;
|
|
2067
|
+
message: string;
|
|
2035
2068
|
suggestion?: string | undefined;
|
|
2036
2069
|
}[];
|
|
2037
2070
|
confidence: number;
|
|
2038
2071
|
recommendedAction: "continue" | "replan" | "ask_user";
|
|
2039
2072
|
reason: string;
|
|
2040
2073
|
};
|
|
2074
|
+
type: "plan_step_verification_failed";
|
|
2041
2075
|
requestId: string;
|
|
2042
2076
|
timestamp?: number | undefined;
|
|
2043
2077
|
}, {
|
|
2044
|
-
type: "plan_step_verification_failed";
|
|
2045
2078
|
data: {
|
|
2046
2079
|
stepNumber: number;
|
|
2047
2080
|
planId: string;
|
|
2048
2081
|
conflicts: {
|
|
2049
|
-
message: string;
|
|
2050
2082
|
type: string;
|
|
2083
|
+
message: string;
|
|
2051
2084
|
suggestion?: string | undefined;
|
|
2052
2085
|
}[];
|
|
2053
2086
|
confidence: number;
|
|
2054
2087
|
recommendedAction: "continue" | "replan" | "ask_user";
|
|
2055
2088
|
reason: string;
|
|
2056
2089
|
};
|
|
2090
|
+
type: "plan_step_verification_failed";
|
|
2057
2091
|
requestId: string;
|
|
2058
2092
|
timestamp?: number | undefined;
|
|
2059
2093
|
}>, z.ZodObject<{
|
|
@@ -2075,21 +2109,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2075
2109
|
phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning";
|
|
2076
2110
|
}>;
|
|
2077
2111
|
}, "strip", z.ZodTypeAny, {
|
|
2078
|
-
type: "plan_execution_failed";
|
|
2079
2112
|
data: {
|
|
2080
2113
|
error: string;
|
|
2081
2114
|
planId: string;
|
|
2082
2115
|
phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning";
|
|
2083
2116
|
};
|
|
2117
|
+
type: "plan_execution_failed";
|
|
2084
2118
|
requestId: string;
|
|
2085
2119
|
timestamp?: number | undefined;
|
|
2086
2120
|
}, {
|
|
2087
|
-
type: "plan_execution_failed";
|
|
2088
2121
|
data: {
|
|
2089
2122
|
error: string;
|
|
2090
2123
|
planId: string;
|
|
2091
2124
|
phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning";
|
|
2092
2125
|
};
|
|
2126
|
+
type: "plan_execution_failed";
|
|
2093
2127
|
requestId: string;
|
|
2094
2128
|
timestamp?: number | undefined;
|
|
2095
2129
|
}>]>;
|
|
@@ -2135,6 +2169,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2135
2169
|
} | undefined;
|
|
2136
2170
|
}>, "many">;
|
|
2137
2171
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
+
type: "BatchTransactions";
|
|
2138
2173
|
value: {
|
|
2139
2174
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2140
2175
|
metadata?: {
|
|
@@ -2142,8 +2177,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2142
2177
|
usdValue?: string | undefined;
|
|
2143
2178
|
} | undefined;
|
|
2144
2179
|
}[];
|
|
2145
|
-
type: "BatchTransactions";
|
|
2146
2180
|
}, {
|
|
2181
|
+
type: "BatchTransactions";
|
|
2147
2182
|
value: {
|
|
2148
2183
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2149
2184
|
metadata?: {
|
|
@@ -2151,7 +2186,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2151
2186
|
usdValue?: string | undefined;
|
|
2152
2187
|
} | undefined;
|
|
2153
2188
|
}[];
|
|
2154
|
-
type: "BatchTransactions";
|
|
2155
2189
|
}>, z.ZodObject<{
|
|
2156
2190
|
type: z.ZodLiteral<"SingleTransaction">;
|
|
2157
2191
|
value: z.ZodObject<{
|
|
@@ -2180,6 +2214,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2180
2214
|
} | undefined;
|
|
2181
2215
|
}>;
|
|
2182
2216
|
}, "strip", z.ZodTypeAny, {
|
|
2217
|
+
type: "SingleTransaction";
|
|
2183
2218
|
value: {
|
|
2184
2219
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2185
2220
|
metadata?: {
|
|
@@ -2187,8 +2222,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2187
2222
|
usdValue?: string | undefined;
|
|
2188
2223
|
} | undefined;
|
|
2189
2224
|
};
|
|
2190
|
-
type: "SingleTransaction";
|
|
2191
2225
|
}, {
|
|
2226
|
+
type: "SingleTransaction";
|
|
2192
2227
|
value: {
|
|
2193
2228
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2194
2229
|
metadata?: {
|
|
@@ -2196,7 +2231,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2196
2231
|
usdValue?: string | undefined;
|
|
2197
2232
|
} | undefined;
|
|
2198
2233
|
};
|
|
2199
|
-
type: "SingleTransaction";
|
|
2200
2234
|
}>, z.ZodObject<{
|
|
2201
2235
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
2202
2236
|
value: z.ZodObject<{
|
|
@@ -2341,6 +2375,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2341
2375
|
})[];
|
|
2342
2376
|
}>;
|
|
2343
2377
|
}, "strip", z.ZodTypeAny, {
|
|
2378
|
+
type: "SignatureRequests";
|
|
2344
2379
|
value: {
|
|
2345
2380
|
signatureRequests: ({
|
|
2346
2381
|
id: string;
|
|
@@ -2366,8 +2401,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2366
2401
|
metadata?: Record<string, unknown> | undefined;
|
|
2367
2402
|
})[];
|
|
2368
2403
|
};
|
|
2369
|
-
type: "SignatureRequests";
|
|
2370
2404
|
}, {
|
|
2405
|
+
type: "SignatureRequests";
|
|
2371
2406
|
value: {
|
|
2372
2407
|
signatureRequests: ({
|
|
2373
2408
|
id: string;
|
|
@@ -2393,7 +2428,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2393
2428
|
metadata?: Record<string, unknown> | undefined;
|
|
2394
2429
|
})[];
|
|
2395
2430
|
};
|
|
2396
|
-
type: "SignatureRequests";
|
|
2397
2431
|
}>, z.ZodObject<{
|
|
2398
2432
|
type: z.ZodLiteral<"ActionSequence">;
|
|
2399
2433
|
value: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -2424,6 +2458,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2424
2458
|
} | undefined;
|
|
2425
2459
|
}>;
|
|
2426
2460
|
}, "strip", z.ZodTypeAny, {
|
|
2461
|
+
type: "SingleTransaction";
|
|
2427
2462
|
value: {
|
|
2428
2463
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2429
2464
|
metadata?: {
|
|
@@ -2431,8 +2466,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2431
2466
|
usdValue?: string | undefined;
|
|
2432
2467
|
} | undefined;
|
|
2433
2468
|
};
|
|
2434
|
-
type: "SingleTransaction";
|
|
2435
2469
|
}, {
|
|
2470
|
+
type: "SingleTransaction";
|
|
2436
2471
|
value: {
|
|
2437
2472
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2438
2473
|
metadata?: {
|
|
@@ -2440,7 +2475,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2440
2475
|
usdValue?: string | undefined;
|
|
2441
2476
|
} | undefined;
|
|
2442
2477
|
};
|
|
2443
|
-
type: "SingleTransaction";
|
|
2444
2478
|
}>, z.ZodObject<{
|
|
2445
2479
|
type: z.ZodLiteral<"BatchTransactions">;
|
|
2446
2480
|
value: z.ZodArray<z.ZodObject<{
|
|
@@ -2469,6 +2503,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2469
2503
|
} | undefined;
|
|
2470
2504
|
}>, "many">;
|
|
2471
2505
|
}, "strip", z.ZodTypeAny, {
|
|
2506
|
+
type: "BatchTransactions";
|
|
2472
2507
|
value: {
|
|
2473
2508
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2474
2509
|
metadata?: {
|
|
@@ -2476,8 +2511,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2476
2511
|
usdValue?: string | undefined;
|
|
2477
2512
|
} | undefined;
|
|
2478
2513
|
}[];
|
|
2479
|
-
type: "BatchTransactions";
|
|
2480
2514
|
}, {
|
|
2515
|
+
type: "BatchTransactions";
|
|
2481
2516
|
value: {
|
|
2482
2517
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2483
2518
|
metadata?: {
|
|
@@ -2485,7 +2520,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2485
2520
|
usdValue?: string | undefined;
|
|
2486
2521
|
} | undefined;
|
|
2487
2522
|
}[];
|
|
2488
|
-
type: "BatchTransactions";
|
|
2489
2523
|
}>, z.ZodObject<{
|
|
2490
2524
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
2491
2525
|
value: z.ZodObject<{
|
|
@@ -2630,6 +2664,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2630
2664
|
})[];
|
|
2631
2665
|
}>;
|
|
2632
2666
|
}, "strip", z.ZodTypeAny, {
|
|
2667
|
+
type: "SignatureRequests";
|
|
2633
2668
|
value: {
|
|
2634
2669
|
signatureRequests: ({
|
|
2635
2670
|
id: string;
|
|
@@ -2655,8 +2690,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2655
2690
|
metadata?: Record<string, unknown> | undefined;
|
|
2656
2691
|
})[];
|
|
2657
2692
|
};
|
|
2658
|
-
type: "SignatureRequests";
|
|
2659
2693
|
}, {
|
|
2694
|
+
type: "SignatureRequests";
|
|
2660
2695
|
value: {
|
|
2661
2696
|
signatureRequests: ({
|
|
2662
2697
|
id: string;
|
|
@@ -2682,10 +2717,11 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2682
2717
|
metadata?: Record<string, unknown> | undefined;
|
|
2683
2718
|
})[];
|
|
2684
2719
|
};
|
|
2685
|
-
type: "SignatureRequests";
|
|
2686
2720
|
}>]>, "many">;
|
|
2687
2721
|
}, "strip", z.ZodTypeAny, {
|
|
2722
|
+
type: "ActionSequence";
|
|
2688
2723
|
value: ({
|
|
2724
|
+
type: "BatchTransactions";
|
|
2689
2725
|
value: {
|
|
2690
2726
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2691
2727
|
metadata?: {
|
|
@@ -2693,8 +2729,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2693
2729
|
usdValue?: string | undefined;
|
|
2694
2730
|
} | undefined;
|
|
2695
2731
|
}[];
|
|
2696
|
-
type: "BatchTransactions";
|
|
2697
2732
|
} | {
|
|
2733
|
+
type: "SingleTransaction";
|
|
2698
2734
|
value: {
|
|
2699
2735
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2700
2736
|
metadata?: {
|
|
@@ -2702,8 +2738,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2702
2738
|
usdValue?: string | undefined;
|
|
2703
2739
|
} | undefined;
|
|
2704
2740
|
};
|
|
2705
|
-
type: "SingleTransaction";
|
|
2706
2741
|
} | {
|
|
2742
|
+
type: "SignatureRequests";
|
|
2707
2743
|
value: {
|
|
2708
2744
|
signatureRequests: ({
|
|
2709
2745
|
id: string;
|
|
@@ -2729,11 +2765,11 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2729
2765
|
metadata?: Record<string, unknown> | undefined;
|
|
2730
2766
|
})[];
|
|
2731
2767
|
};
|
|
2732
|
-
type: "SignatureRequests";
|
|
2733
2768
|
})[];
|
|
2734
|
-
type: "ActionSequence";
|
|
2735
2769
|
}, {
|
|
2770
|
+
type: "ActionSequence";
|
|
2736
2771
|
value: ({
|
|
2772
|
+
type: "BatchTransactions";
|
|
2737
2773
|
value: {
|
|
2738
2774
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2739
2775
|
metadata?: {
|
|
@@ -2741,8 +2777,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2741
2777
|
usdValue?: string | undefined;
|
|
2742
2778
|
} | undefined;
|
|
2743
2779
|
}[];
|
|
2744
|
-
type: "BatchTransactions";
|
|
2745
2780
|
} | {
|
|
2781
|
+
type: "SingleTransaction";
|
|
2746
2782
|
value: {
|
|
2747
2783
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2748
2784
|
metadata?: {
|
|
@@ -2750,8 +2786,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2750
2786
|
usdValue?: string | undefined;
|
|
2751
2787
|
} | undefined;
|
|
2752
2788
|
};
|
|
2753
|
-
type: "SingleTransaction";
|
|
2754
2789
|
} | {
|
|
2790
|
+
type: "SignatureRequests";
|
|
2755
2791
|
value: {
|
|
2756
2792
|
signatureRequests: ({
|
|
2757
2793
|
id: string;
|
|
@@ -2777,9 +2813,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2777
2813
|
metadata?: Record<string, unknown> | undefined;
|
|
2778
2814
|
})[];
|
|
2779
2815
|
};
|
|
2780
|
-
type: "SignatureRequests";
|
|
2781
2816
|
})[];
|
|
2782
|
-
type: "ActionSequence";
|
|
2783
2817
|
}>]>;
|
|
2784
2818
|
} & {
|
|
2785
2819
|
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2982,8 +3016,10 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2982
3016
|
nativeTokenSymbol?: string | undefined;
|
|
2983
3017
|
}>>;
|
|
2984
3018
|
}, "strict", z.ZodTypeAny, {
|
|
2985
|
-
|
|
3019
|
+
toolCallId: string;
|
|
3020
|
+
toolName: string;
|
|
2986
3021
|
input: {
|
|
3022
|
+
type: "BatchTransactions";
|
|
2987
3023
|
value: {
|
|
2988
3024
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2989
3025
|
metadata?: {
|
|
@@ -2991,8 +3027,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
2991
3027
|
usdValue?: string | undefined;
|
|
2992
3028
|
} | undefined;
|
|
2993
3029
|
}[];
|
|
2994
|
-
type: "BatchTransactions";
|
|
2995
3030
|
} | {
|
|
3031
|
+
type: "SingleTransaction";
|
|
2996
3032
|
value: {
|
|
2997
3033
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
2998
3034
|
metadata?: {
|
|
@@ -3000,8 +3036,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3000
3036
|
usdValue?: string | undefined;
|
|
3001
3037
|
} | undefined;
|
|
3002
3038
|
};
|
|
3003
|
-
type: "SingleTransaction";
|
|
3004
3039
|
} | {
|
|
3040
|
+
type: "SignatureRequests";
|
|
3005
3041
|
value: {
|
|
3006
3042
|
signatureRequests: ({
|
|
3007
3043
|
id: string;
|
|
@@ -3027,9 +3063,10 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3027
3063
|
metadata?: Record<string, unknown> | undefined;
|
|
3028
3064
|
})[];
|
|
3029
3065
|
};
|
|
3030
|
-
type: "SignatureRequests";
|
|
3031
3066
|
} | {
|
|
3067
|
+
type: "ActionSequence";
|
|
3032
3068
|
value: ({
|
|
3069
|
+
type: "BatchTransactions";
|
|
3033
3070
|
value: {
|
|
3034
3071
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3035
3072
|
metadata?: {
|
|
@@ -3037,8 +3074,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3037
3074
|
usdValue?: string | undefined;
|
|
3038
3075
|
} | undefined;
|
|
3039
3076
|
}[];
|
|
3040
|
-
type: "BatchTransactions";
|
|
3041
3077
|
} | {
|
|
3078
|
+
type: "SingleTransaction";
|
|
3042
3079
|
value: {
|
|
3043
3080
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3044
3081
|
metadata?: {
|
|
@@ -3046,8 +3083,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3046
3083
|
usdValue?: string | undefined;
|
|
3047
3084
|
} | undefined;
|
|
3048
3085
|
};
|
|
3049
|
-
type: "SingleTransaction";
|
|
3050
3086
|
} | {
|
|
3087
|
+
type: "SignatureRequests";
|
|
3051
3088
|
value: {
|
|
3052
3089
|
signatureRequests: ({
|
|
3053
3090
|
id: string;
|
|
@@ -3073,12 +3110,9 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3073
3110
|
metadata?: Record<string, unknown> | undefined;
|
|
3074
3111
|
})[];
|
|
3075
3112
|
};
|
|
3076
|
-
type: "SignatureRequests";
|
|
3077
3113
|
})[];
|
|
3078
|
-
type: "ActionSequence";
|
|
3079
3114
|
};
|
|
3080
|
-
|
|
3081
|
-
toolName: string;
|
|
3115
|
+
type: "tool-call";
|
|
3082
3116
|
simulated?: boolean | undefined;
|
|
3083
3117
|
simulation?: {
|
|
3084
3118
|
willSucceed: boolean;
|
|
@@ -3127,8 +3161,10 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3127
3161
|
nativeTokenSymbol?: string | undefined;
|
|
3128
3162
|
} | undefined;
|
|
3129
3163
|
}, {
|
|
3130
|
-
|
|
3164
|
+
toolCallId: string;
|
|
3165
|
+
toolName: string;
|
|
3131
3166
|
input: {
|
|
3167
|
+
type: "BatchTransactions";
|
|
3132
3168
|
value: {
|
|
3133
3169
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3134
3170
|
metadata?: {
|
|
@@ -3136,8 +3172,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3136
3172
|
usdValue?: string | undefined;
|
|
3137
3173
|
} | undefined;
|
|
3138
3174
|
}[];
|
|
3139
|
-
type: "BatchTransactions";
|
|
3140
3175
|
} | {
|
|
3176
|
+
type: "SingleTransaction";
|
|
3141
3177
|
value: {
|
|
3142
3178
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3143
3179
|
metadata?: {
|
|
@@ -3145,8 +3181,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3145
3181
|
usdValue?: string | undefined;
|
|
3146
3182
|
} | undefined;
|
|
3147
3183
|
};
|
|
3148
|
-
type: "SingleTransaction";
|
|
3149
3184
|
} | {
|
|
3185
|
+
type: "SignatureRequests";
|
|
3150
3186
|
value: {
|
|
3151
3187
|
signatureRequests: ({
|
|
3152
3188
|
id: string;
|
|
@@ -3172,9 +3208,10 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3172
3208
|
metadata?: Record<string, unknown> | undefined;
|
|
3173
3209
|
})[];
|
|
3174
3210
|
};
|
|
3175
|
-
type: "SignatureRequests";
|
|
3176
3211
|
} | {
|
|
3212
|
+
type: "ActionSequence";
|
|
3177
3213
|
value: ({
|
|
3214
|
+
type: "BatchTransactions";
|
|
3178
3215
|
value: {
|
|
3179
3216
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3180
3217
|
metadata?: {
|
|
@@ -3182,8 +3219,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3182
3219
|
usdValue?: string | undefined;
|
|
3183
3220
|
} | undefined;
|
|
3184
3221
|
}[];
|
|
3185
|
-
type: "BatchTransactions";
|
|
3186
3222
|
} | {
|
|
3223
|
+
type: "SingleTransaction";
|
|
3187
3224
|
value: {
|
|
3188
3225
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3189
3226
|
metadata?: {
|
|
@@ -3191,8 +3228,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3191
3228
|
usdValue?: string | undefined;
|
|
3192
3229
|
} | undefined;
|
|
3193
3230
|
};
|
|
3194
|
-
type: "SingleTransaction";
|
|
3195
3231
|
} | {
|
|
3232
|
+
type: "SignatureRequests";
|
|
3196
3233
|
value: {
|
|
3197
3234
|
signatureRequests: ({
|
|
3198
3235
|
id: string;
|
|
@@ -3218,12 +3255,9 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3218
3255
|
metadata?: Record<string, unknown> | undefined;
|
|
3219
3256
|
})[];
|
|
3220
3257
|
};
|
|
3221
|
-
type: "SignatureRequests";
|
|
3222
3258
|
})[];
|
|
3223
|
-
type: "ActionSequence";
|
|
3224
3259
|
};
|
|
3225
|
-
|
|
3226
|
-
toolName: string;
|
|
3260
|
+
type: "tool-call";
|
|
3227
3261
|
simulated?: boolean | undefined;
|
|
3228
3262
|
simulation?: {
|
|
3229
3263
|
willSucceed: boolean;
|
|
@@ -3317,17 +3351,15 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3317
3351
|
message: z.ZodString;
|
|
3318
3352
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
3319
3353
|
}, "strict", z.ZodTypeAny, {
|
|
3320
|
-
message: string;
|
|
3321
3354
|
type: "execution";
|
|
3355
|
+
message: string;
|
|
3322
3356
|
details?: unknown;
|
|
3323
3357
|
}, {
|
|
3324
|
-
message: string;
|
|
3325
3358
|
type: "execution";
|
|
3359
|
+
message: string;
|
|
3326
3360
|
details?: unknown;
|
|
3327
3361
|
}>]>;
|
|
3328
3362
|
}, "strict", z.ZodTypeAny, {
|
|
3329
|
-
id: string;
|
|
3330
|
-
name: string;
|
|
3331
3363
|
data: {
|
|
3332
3364
|
type: "input";
|
|
3333
3365
|
errors: {
|
|
@@ -3335,13 +3367,13 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3335
3367
|
message: string;
|
|
3336
3368
|
}[];
|
|
3337
3369
|
} | {
|
|
3338
|
-
message: string;
|
|
3339
3370
|
type: "execution";
|
|
3371
|
+
message: string;
|
|
3340
3372
|
details?: unknown;
|
|
3341
3373
|
};
|
|
3342
|
-
}, {
|
|
3343
3374
|
id: string;
|
|
3344
3375
|
name: string;
|
|
3376
|
+
}, {
|
|
3345
3377
|
data: {
|
|
3346
3378
|
type: "input";
|
|
3347
3379
|
errors: {
|
|
@@ -3349,21 +3381,25 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3349
3381
|
message: string;
|
|
3350
3382
|
}[];
|
|
3351
3383
|
} | {
|
|
3352
|
-
message: string;
|
|
3353
3384
|
type: "execution";
|
|
3385
|
+
message: string;
|
|
3354
3386
|
details?: unknown;
|
|
3355
3387
|
};
|
|
3388
|
+
id: string;
|
|
3389
|
+
name: string;
|
|
3356
3390
|
}>, "many">>;
|
|
3357
3391
|
requestId: z.ZodString;
|
|
3358
3392
|
}, "strip", z.ZodTypeAny, {
|
|
3393
|
+
text: string;
|
|
3359
3394
|
type: "result";
|
|
3360
3395
|
status: 200;
|
|
3361
|
-
text: string;
|
|
3362
3396
|
messages: ModelMessage[];
|
|
3363
3397
|
requestId: string;
|
|
3364
3398
|
pendingTools?: {
|
|
3365
|
-
|
|
3399
|
+
toolCallId: string;
|
|
3400
|
+
toolName: string;
|
|
3366
3401
|
input: {
|
|
3402
|
+
type: "BatchTransactions";
|
|
3367
3403
|
value: {
|
|
3368
3404
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3369
3405
|
metadata?: {
|
|
@@ -3371,8 +3407,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3371
3407
|
usdValue?: string | undefined;
|
|
3372
3408
|
} | undefined;
|
|
3373
3409
|
}[];
|
|
3374
|
-
type: "BatchTransactions";
|
|
3375
3410
|
} | {
|
|
3411
|
+
type: "SingleTransaction";
|
|
3376
3412
|
value: {
|
|
3377
3413
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3378
3414
|
metadata?: {
|
|
@@ -3380,8 +3416,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3380
3416
|
usdValue?: string | undefined;
|
|
3381
3417
|
} | undefined;
|
|
3382
3418
|
};
|
|
3383
|
-
type: "SingleTransaction";
|
|
3384
3419
|
} | {
|
|
3420
|
+
type: "SignatureRequests";
|
|
3385
3421
|
value: {
|
|
3386
3422
|
signatureRequests: ({
|
|
3387
3423
|
id: string;
|
|
@@ -3407,9 +3443,10 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3407
3443
|
metadata?: Record<string, unknown> | undefined;
|
|
3408
3444
|
})[];
|
|
3409
3445
|
};
|
|
3410
|
-
type: "SignatureRequests";
|
|
3411
3446
|
} | {
|
|
3447
|
+
type: "ActionSequence";
|
|
3412
3448
|
value: ({
|
|
3449
|
+
type: "BatchTransactions";
|
|
3413
3450
|
value: {
|
|
3414
3451
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3415
3452
|
metadata?: {
|
|
@@ -3417,8 +3454,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3417
3454
|
usdValue?: string | undefined;
|
|
3418
3455
|
} | undefined;
|
|
3419
3456
|
}[];
|
|
3420
|
-
type: "BatchTransactions";
|
|
3421
3457
|
} | {
|
|
3458
|
+
type: "SingleTransaction";
|
|
3422
3459
|
value: {
|
|
3423
3460
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3424
3461
|
metadata?: {
|
|
@@ -3426,8 +3463,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3426
3463
|
usdValue?: string | undefined;
|
|
3427
3464
|
} | undefined;
|
|
3428
3465
|
};
|
|
3429
|
-
type: "SingleTransaction";
|
|
3430
3466
|
} | {
|
|
3467
|
+
type: "SignatureRequests";
|
|
3431
3468
|
value: {
|
|
3432
3469
|
signatureRequests: ({
|
|
3433
3470
|
id: string;
|
|
@@ -3453,12 +3490,9 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3453
3490
|
metadata?: Record<string, unknown> | undefined;
|
|
3454
3491
|
})[];
|
|
3455
3492
|
};
|
|
3456
|
-
type: "SignatureRequests";
|
|
3457
3493
|
})[];
|
|
3458
|
-
type: "ActionSequence";
|
|
3459
3494
|
};
|
|
3460
|
-
|
|
3461
|
-
toolName: string;
|
|
3495
|
+
type: "tool-call";
|
|
3462
3496
|
simulated?: boolean | undefined;
|
|
3463
3497
|
simulation?: {
|
|
3464
3498
|
willSucceed: boolean;
|
|
@@ -3513,8 +3547,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3513
3547
|
toolInput?: unknown;
|
|
3514
3548
|
}[] | undefined;
|
|
3515
3549
|
toolErrors?: {
|
|
3516
|
-
id: string;
|
|
3517
|
-
name: string;
|
|
3518
3550
|
data: {
|
|
3519
3551
|
type: "input";
|
|
3520
3552
|
errors: {
|
|
@@ -3522,20 +3554,24 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3522
3554
|
message: string;
|
|
3523
3555
|
}[];
|
|
3524
3556
|
} | {
|
|
3525
|
-
message: string;
|
|
3526
3557
|
type: "execution";
|
|
3558
|
+
message: string;
|
|
3527
3559
|
details?: unknown;
|
|
3528
3560
|
};
|
|
3561
|
+
id: string;
|
|
3562
|
+
name: string;
|
|
3529
3563
|
}[] | undefined;
|
|
3530
3564
|
}, {
|
|
3565
|
+
text: string;
|
|
3531
3566
|
type: "result";
|
|
3532
3567
|
status: 200;
|
|
3533
|
-
text: string;
|
|
3534
3568
|
messages: ModelMessage[];
|
|
3535
3569
|
requestId: string;
|
|
3536
3570
|
pendingTools?: {
|
|
3537
|
-
|
|
3571
|
+
toolCallId: string;
|
|
3572
|
+
toolName: string;
|
|
3538
3573
|
input: {
|
|
3574
|
+
type: "BatchTransactions";
|
|
3539
3575
|
value: {
|
|
3540
3576
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3541
3577
|
metadata?: {
|
|
@@ -3543,8 +3579,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3543
3579
|
usdValue?: string | undefined;
|
|
3544
3580
|
} | undefined;
|
|
3545
3581
|
}[];
|
|
3546
|
-
type: "BatchTransactions";
|
|
3547
3582
|
} | {
|
|
3583
|
+
type: "SingleTransaction";
|
|
3548
3584
|
value: {
|
|
3549
3585
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3550
3586
|
metadata?: {
|
|
@@ -3552,8 +3588,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3552
3588
|
usdValue?: string | undefined;
|
|
3553
3589
|
} | undefined;
|
|
3554
3590
|
};
|
|
3555
|
-
type: "SingleTransaction";
|
|
3556
3591
|
} | {
|
|
3592
|
+
type: "SignatureRequests";
|
|
3557
3593
|
value: {
|
|
3558
3594
|
signatureRequests: ({
|
|
3559
3595
|
id: string;
|
|
@@ -3579,9 +3615,10 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3579
3615
|
metadata?: Record<string, unknown> | undefined;
|
|
3580
3616
|
})[];
|
|
3581
3617
|
};
|
|
3582
|
-
type: "SignatureRequests";
|
|
3583
3618
|
} | {
|
|
3619
|
+
type: "ActionSequence";
|
|
3584
3620
|
value: ({
|
|
3621
|
+
type: "BatchTransactions";
|
|
3585
3622
|
value: {
|
|
3586
3623
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3587
3624
|
metadata?: {
|
|
@@ -3589,8 +3626,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3589
3626
|
usdValue?: string | undefined;
|
|
3590
3627
|
} | undefined;
|
|
3591
3628
|
}[];
|
|
3592
|
-
type: "BatchTransactions";
|
|
3593
3629
|
} | {
|
|
3630
|
+
type: "SingleTransaction";
|
|
3594
3631
|
value: {
|
|
3595
3632
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3596
3633
|
metadata?: {
|
|
@@ -3598,8 +3635,8 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3598
3635
|
usdValue?: string | undefined;
|
|
3599
3636
|
} | undefined;
|
|
3600
3637
|
};
|
|
3601
|
-
type: "SingleTransaction";
|
|
3602
3638
|
} | {
|
|
3639
|
+
type: "SignatureRequests";
|
|
3603
3640
|
value: {
|
|
3604
3641
|
signatureRequests: ({
|
|
3605
3642
|
id: string;
|
|
@@ -3625,12 +3662,9 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3625
3662
|
metadata?: Record<string, unknown> | undefined;
|
|
3626
3663
|
})[];
|
|
3627
3664
|
};
|
|
3628
|
-
type: "SignatureRequests";
|
|
3629
3665
|
})[];
|
|
3630
|
-
type: "ActionSequence";
|
|
3631
3666
|
};
|
|
3632
|
-
|
|
3633
|
-
toolName: string;
|
|
3667
|
+
type: "tool-call";
|
|
3634
3668
|
simulated?: boolean | undefined;
|
|
3635
3669
|
simulation?: {
|
|
3636
3670
|
willSucceed: boolean;
|
|
@@ -3685,8 +3719,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3685
3719
|
toolInput?: unknown;
|
|
3686
3720
|
}[] | undefined;
|
|
3687
3721
|
toolErrors?: {
|
|
3688
|
-
id: string;
|
|
3689
|
-
name: string;
|
|
3690
3722
|
data: {
|
|
3691
3723
|
type: "input";
|
|
3692
3724
|
errors: {
|
|
@@ -3694,10 +3726,12 @@ export declare const resultEventDataSchema: z.ZodObject<{
|
|
|
3694
3726
|
message: string;
|
|
3695
3727
|
}[];
|
|
3696
3728
|
} | {
|
|
3697
|
-
message: string;
|
|
3698
3729
|
type: "execution";
|
|
3730
|
+
message: string;
|
|
3699
3731
|
details?: unknown;
|
|
3700
3732
|
};
|
|
3733
|
+
id: string;
|
|
3734
|
+
name: string;
|
|
3701
3735
|
}[] | undefined;
|
|
3702
3736
|
}>;
|
|
3703
3737
|
/**
|
|
@@ -3718,19 +3752,19 @@ export declare const errorEventDataSchema: z.ZodObject<{
|
|
|
3718
3752
|
code?: string | undefined;
|
|
3719
3753
|
}>;
|
|
3720
3754
|
}, "strip", z.ZodTypeAny, {
|
|
3721
|
-
type: "error";
|
|
3722
3755
|
data: {
|
|
3723
3756
|
message: string;
|
|
3724
3757
|
code?: string | undefined;
|
|
3725
3758
|
};
|
|
3759
|
+
type: "error";
|
|
3726
3760
|
requestId: string;
|
|
3727
3761
|
timestamp?: number | undefined;
|
|
3728
3762
|
}, {
|
|
3729
|
-
type: "error";
|
|
3730
3763
|
data: {
|
|
3731
3764
|
message: string;
|
|
3732
3765
|
code?: string | undefined;
|
|
3733
3766
|
};
|
|
3767
|
+
type: "error";
|
|
3734
3768
|
requestId: string;
|
|
3735
3769
|
timestamp?: number | undefined;
|
|
3736
3770
|
}>;
|
|
@@ -3791,6 +3825,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3791
3825
|
} | undefined;
|
|
3792
3826
|
}>, "many">;
|
|
3793
3827
|
}, "strip", z.ZodTypeAny, {
|
|
3828
|
+
type: "BatchTransactions";
|
|
3794
3829
|
value: {
|
|
3795
3830
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3796
3831
|
metadata?: {
|
|
@@ -3798,8 +3833,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3798
3833
|
usdValue?: string | undefined;
|
|
3799
3834
|
} | undefined;
|
|
3800
3835
|
}[];
|
|
3801
|
-
type: "BatchTransactions";
|
|
3802
3836
|
}, {
|
|
3837
|
+
type: "BatchTransactions";
|
|
3803
3838
|
value: {
|
|
3804
3839
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3805
3840
|
metadata?: {
|
|
@@ -3807,7 +3842,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3807
3842
|
usdValue?: string | undefined;
|
|
3808
3843
|
} | undefined;
|
|
3809
3844
|
}[];
|
|
3810
|
-
type: "BatchTransactions";
|
|
3811
3845
|
}>, z.ZodObject<{
|
|
3812
3846
|
type: z.ZodLiteral<"SingleTransaction">;
|
|
3813
3847
|
value: z.ZodObject<{
|
|
@@ -3836,6 +3870,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3836
3870
|
} | undefined;
|
|
3837
3871
|
}>;
|
|
3838
3872
|
}, "strip", z.ZodTypeAny, {
|
|
3873
|
+
type: "SingleTransaction";
|
|
3839
3874
|
value: {
|
|
3840
3875
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3841
3876
|
metadata?: {
|
|
@@ -3843,8 +3878,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3843
3878
|
usdValue?: string | undefined;
|
|
3844
3879
|
} | undefined;
|
|
3845
3880
|
};
|
|
3846
|
-
type: "SingleTransaction";
|
|
3847
3881
|
}, {
|
|
3882
|
+
type: "SingleTransaction";
|
|
3848
3883
|
value: {
|
|
3849
3884
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
3850
3885
|
metadata?: {
|
|
@@ -3852,7 +3887,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3852
3887
|
usdValue?: string | undefined;
|
|
3853
3888
|
} | undefined;
|
|
3854
3889
|
};
|
|
3855
|
-
type: "SingleTransaction";
|
|
3856
3890
|
}>, z.ZodObject<{
|
|
3857
3891
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
3858
3892
|
value: z.ZodObject<{
|
|
@@ -3997,6 +4031,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3997
4031
|
})[];
|
|
3998
4032
|
}>;
|
|
3999
4033
|
}, "strip", z.ZodTypeAny, {
|
|
4034
|
+
type: "SignatureRequests";
|
|
4000
4035
|
value: {
|
|
4001
4036
|
signatureRequests: ({
|
|
4002
4037
|
id: string;
|
|
@@ -4022,8 +4057,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4022
4057
|
metadata?: Record<string, unknown> | undefined;
|
|
4023
4058
|
})[];
|
|
4024
4059
|
};
|
|
4025
|
-
type: "SignatureRequests";
|
|
4026
4060
|
}, {
|
|
4061
|
+
type: "SignatureRequests";
|
|
4027
4062
|
value: {
|
|
4028
4063
|
signatureRequests: ({
|
|
4029
4064
|
id: string;
|
|
@@ -4049,7 +4084,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4049
4084
|
metadata?: Record<string, unknown> | undefined;
|
|
4050
4085
|
})[];
|
|
4051
4086
|
};
|
|
4052
|
-
type: "SignatureRequests";
|
|
4053
4087
|
}>, z.ZodObject<{
|
|
4054
4088
|
type: z.ZodLiteral<"ActionSequence">;
|
|
4055
4089
|
value: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -4080,6 +4114,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4080
4114
|
} | undefined;
|
|
4081
4115
|
}>;
|
|
4082
4116
|
}, "strip", z.ZodTypeAny, {
|
|
4117
|
+
type: "SingleTransaction";
|
|
4083
4118
|
value: {
|
|
4084
4119
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4085
4120
|
metadata?: {
|
|
@@ -4087,8 +4122,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4087
4122
|
usdValue?: string | undefined;
|
|
4088
4123
|
} | undefined;
|
|
4089
4124
|
};
|
|
4090
|
-
type: "SingleTransaction";
|
|
4091
4125
|
}, {
|
|
4126
|
+
type: "SingleTransaction";
|
|
4092
4127
|
value: {
|
|
4093
4128
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4094
4129
|
metadata?: {
|
|
@@ -4096,7 +4131,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4096
4131
|
usdValue?: string | undefined;
|
|
4097
4132
|
} | undefined;
|
|
4098
4133
|
};
|
|
4099
|
-
type: "SingleTransaction";
|
|
4100
4134
|
}>, z.ZodObject<{
|
|
4101
4135
|
type: z.ZodLiteral<"BatchTransactions">;
|
|
4102
4136
|
value: z.ZodArray<z.ZodObject<{
|
|
@@ -4125,6 +4159,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4125
4159
|
} | undefined;
|
|
4126
4160
|
}>, "many">;
|
|
4127
4161
|
}, "strip", z.ZodTypeAny, {
|
|
4162
|
+
type: "BatchTransactions";
|
|
4128
4163
|
value: {
|
|
4129
4164
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4130
4165
|
metadata?: {
|
|
@@ -4132,8 +4167,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4132
4167
|
usdValue?: string | undefined;
|
|
4133
4168
|
} | undefined;
|
|
4134
4169
|
}[];
|
|
4135
|
-
type: "BatchTransactions";
|
|
4136
4170
|
}, {
|
|
4171
|
+
type: "BatchTransactions";
|
|
4137
4172
|
value: {
|
|
4138
4173
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4139
4174
|
metadata?: {
|
|
@@ -4141,7 +4176,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4141
4176
|
usdValue?: string | undefined;
|
|
4142
4177
|
} | undefined;
|
|
4143
4178
|
}[];
|
|
4144
|
-
type: "BatchTransactions";
|
|
4145
4179
|
}>, z.ZodObject<{
|
|
4146
4180
|
type: z.ZodLiteral<"SignatureRequests">;
|
|
4147
4181
|
value: z.ZodObject<{
|
|
@@ -4286,6 +4320,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4286
4320
|
})[];
|
|
4287
4321
|
}>;
|
|
4288
4322
|
}, "strip", z.ZodTypeAny, {
|
|
4323
|
+
type: "SignatureRequests";
|
|
4289
4324
|
value: {
|
|
4290
4325
|
signatureRequests: ({
|
|
4291
4326
|
id: string;
|
|
@@ -4311,8 +4346,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4311
4346
|
metadata?: Record<string, unknown> | undefined;
|
|
4312
4347
|
})[];
|
|
4313
4348
|
};
|
|
4314
|
-
type: "SignatureRequests";
|
|
4315
4349
|
}, {
|
|
4350
|
+
type: "SignatureRequests";
|
|
4316
4351
|
value: {
|
|
4317
4352
|
signatureRequests: ({
|
|
4318
4353
|
id: string;
|
|
@@ -4338,10 +4373,11 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4338
4373
|
metadata?: Record<string, unknown> | undefined;
|
|
4339
4374
|
})[];
|
|
4340
4375
|
};
|
|
4341
|
-
type: "SignatureRequests";
|
|
4342
4376
|
}>]>, "many">;
|
|
4343
4377
|
}, "strip", z.ZodTypeAny, {
|
|
4378
|
+
type: "ActionSequence";
|
|
4344
4379
|
value: ({
|
|
4380
|
+
type: "BatchTransactions";
|
|
4345
4381
|
value: {
|
|
4346
4382
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4347
4383
|
metadata?: {
|
|
@@ -4349,8 +4385,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4349
4385
|
usdValue?: string | undefined;
|
|
4350
4386
|
} | undefined;
|
|
4351
4387
|
}[];
|
|
4352
|
-
type: "BatchTransactions";
|
|
4353
4388
|
} | {
|
|
4389
|
+
type: "SingleTransaction";
|
|
4354
4390
|
value: {
|
|
4355
4391
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4356
4392
|
metadata?: {
|
|
@@ -4358,8 +4394,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4358
4394
|
usdValue?: string | undefined;
|
|
4359
4395
|
} | undefined;
|
|
4360
4396
|
};
|
|
4361
|
-
type: "SingleTransaction";
|
|
4362
4397
|
} | {
|
|
4398
|
+
type: "SignatureRequests";
|
|
4363
4399
|
value: {
|
|
4364
4400
|
signatureRequests: ({
|
|
4365
4401
|
id: string;
|
|
@@ -4385,11 +4421,11 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4385
4421
|
metadata?: Record<string, unknown> | undefined;
|
|
4386
4422
|
})[];
|
|
4387
4423
|
};
|
|
4388
|
-
type: "SignatureRequests";
|
|
4389
4424
|
})[];
|
|
4390
|
-
type: "ActionSequence";
|
|
4391
4425
|
}, {
|
|
4426
|
+
type: "ActionSequence";
|
|
4392
4427
|
value: ({
|
|
4428
|
+
type: "BatchTransactions";
|
|
4393
4429
|
value: {
|
|
4394
4430
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4395
4431
|
metadata?: {
|
|
@@ -4397,8 +4433,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4397
4433
|
usdValue?: string | undefined;
|
|
4398
4434
|
} | undefined;
|
|
4399
4435
|
}[];
|
|
4400
|
-
type: "BatchTransactions";
|
|
4401
4436
|
} | {
|
|
4437
|
+
type: "SingleTransaction";
|
|
4402
4438
|
value: {
|
|
4403
4439
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4404
4440
|
metadata?: {
|
|
@@ -4406,8 +4442,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4406
4442
|
usdValue?: string | undefined;
|
|
4407
4443
|
} | undefined;
|
|
4408
4444
|
};
|
|
4409
|
-
type: "SingleTransaction";
|
|
4410
4445
|
} | {
|
|
4446
|
+
type: "SignatureRequests";
|
|
4411
4447
|
value: {
|
|
4412
4448
|
signatureRequests: ({
|
|
4413
4449
|
id: string;
|
|
@@ -4433,9 +4469,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4433
4469
|
metadata?: Record<string, unknown> | undefined;
|
|
4434
4470
|
})[];
|
|
4435
4471
|
};
|
|
4436
|
-
type: "SignatureRequests";
|
|
4437
4472
|
})[];
|
|
4438
|
-
type: "ActionSequence";
|
|
4439
4473
|
}>]>;
|
|
4440
4474
|
} & {
|
|
4441
4475
|
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4638,8 +4672,10 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4638
4672
|
nativeTokenSymbol?: string | undefined;
|
|
4639
4673
|
}>>;
|
|
4640
4674
|
}, "strict", z.ZodTypeAny, {
|
|
4641
|
-
|
|
4675
|
+
toolCallId: string;
|
|
4676
|
+
toolName: string;
|
|
4642
4677
|
input: {
|
|
4678
|
+
type: "BatchTransactions";
|
|
4643
4679
|
value: {
|
|
4644
4680
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4645
4681
|
metadata?: {
|
|
@@ -4647,8 +4683,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4647
4683
|
usdValue?: string | undefined;
|
|
4648
4684
|
} | undefined;
|
|
4649
4685
|
}[];
|
|
4650
|
-
type: "BatchTransactions";
|
|
4651
4686
|
} | {
|
|
4687
|
+
type: "SingleTransaction";
|
|
4652
4688
|
value: {
|
|
4653
4689
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4654
4690
|
metadata?: {
|
|
@@ -4656,8 +4692,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4656
4692
|
usdValue?: string | undefined;
|
|
4657
4693
|
} | undefined;
|
|
4658
4694
|
};
|
|
4659
|
-
type: "SingleTransaction";
|
|
4660
4695
|
} | {
|
|
4696
|
+
type: "SignatureRequests";
|
|
4661
4697
|
value: {
|
|
4662
4698
|
signatureRequests: ({
|
|
4663
4699
|
id: string;
|
|
@@ -4683,9 +4719,10 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4683
4719
|
metadata?: Record<string, unknown> | undefined;
|
|
4684
4720
|
})[];
|
|
4685
4721
|
};
|
|
4686
|
-
type: "SignatureRequests";
|
|
4687
4722
|
} | {
|
|
4723
|
+
type: "ActionSequence";
|
|
4688
4724
|
value: ({
|
|
4725
|
+
type: "BatchTransactions";
|
|
4689
4726
|
value: {
|
|
4690
4727
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4691
4728
|
metadata?: {
|
|
@@ -4693,8 +4730,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4693
4730
|
usdValue?: string | undefined;
|
|
4694
4731
|
} | undefined;
|
|
4695
4732
|
}[];
|
|
4696
|
-
type: "BatchTransactions";
|
|
4697
4733
|
} | {
|
|
4734
|
+
type: "SingleTransaction";
|
|
4698
4735
|
value: {
|
|
4699
4736
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4700
4737
|
metadata?: {
|
|
@@ -4702,8 +4739,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4702
4739
|
usdValue?: string | undefined;
|
|
4703
4740
|
} | undefined;
|
|
4704
4741
|
};
|
|
4705
|
-
type: "SingleTransaction";
|
|
4706
4742
|
} | {
|
|
4743
|
+
type: "SignatureRequests";
|
|
4707
4744
|
value: {
|
|
4708
4745
|
signatureRequests: ({
|
|
4709
4746
|
id: string;
|
|
@@ -4729,12 +4766,9 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4729
4766
|
metadata?: Record<string, unknown> | undefined;
|
|
4730
4767
|
})[];
|
|
4731
4768
|
};
|
|
4732
|
-
type: "SignatureRequests";
|
|
4733
4769
|
})[];
|
|
4734
|
-
type: "ActionSequence";
|
|
4735
4770
|
};
|
|
4736
|
-
|
|
4737
|
-
toolName: string;
|
|
4771
|
+
type: "tool-call";
|
|
4738
4772
|
simulated?: boolean | undefined;
|
|
4739
4773
|
simulation?: {
|
|
4740
4774
|
willSucceed: boolean;
|
|
@@ -4783,8 +4817,10 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4783
4817
|
nativeTokenSymbol?: string | undefined;
|
|
4784
4818
|
} | undefined;
|
|
4785
4819
|
}, {
|
|
4786
|
-
|
|
4820
|
+
toolCallId: string;
|
|
4821
|
+
toolName: string;
|
|
4787
4822
|
input: {
|
|
4823
|
+
type: "BatchTransactions";
|
|
4788
4824
|
value: {
|
|
4789
4825
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4790
4826
|
metadata?: {
|
|
@@ -4792,8 +4828,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4792
4828
|
usdValue?: string | undefined;
|
|
4793
4829
|
} | undefined;
|
|
4794
4830
|
}[];
|
|
4795
|
-
type: "BatchTransactions";
|
|
4796
4831
|
} | {
|
|
4832
|
+
type: "SingleTransaction";
|
|
4797
4833
|
value: {
|
|
4798
4834
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4799
4835
|
metadata?: {
|
|
@@ -4801,8 +4837,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4801
4837
|
usdValue?: string | undefined;
|
|
4802
4838
|
} | undefined;
|
|
4803
4839
|
};
|
|
4804
|
-
type: "SingleTransaction";
|
|
4805
4840
|
} | {
|
|
4841
|
+
type: "SignatureRequests";
|
|
4806
4842
|
value: {
|
|
4807
4843
|
signatureRequests: ({
|
|
4808
4844
|
id: string;
|
|
@@ -4828,9 +4864,10 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4828
4864
|
metadata?: Record<string, unknown> | undefined;
|
|
4829
4865
|
})[];
|
|
4830
4866
|
};
|
|
4831
|
-
type: "SignatureRequests";
|
|
4832
4867
|
} | {
|
|
4868
|
+
type: "ActionSequence";
|
|
4833
4869
|
value: ({
|
|
4870
|
+
type: "BatchTransactions";
|
|
4834
4871
|
value: {
|
|
4835
4872
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4836
4873
|
metadata?: {
|
|
@@ -4838,8 +4875,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4838
4875
|
usdValue?: string | undefined;
|
|
4839
4876
|
} | undefined;
|
|
4840
4877
|
}[];
|
|
4841
|
-
type: "BatchTransactions";
|
|
4842
4878
|
} | {
|
|
4879
|
+
type: "SingleTransaction";
|
|
4843
4880
|
value: {
|
|
4844
4881
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
4845
4882
|
metadata?: {
|
|
@@ -4847,8 +4884,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4847
4884
|
usdValue?: string | undefined;
|
|
4848
4885
|
} | undefined;
|
|
4849
4886
|
};
|
|
4850
|
-
type: "SingleTransaction";
|
|
4851
4887
|
} | {
|
|
4888
|
+
type: "SignatureRequests";
|
|
4852
4889
|
value: {
|
|
4853
4890
|
signatureRequests: ({
|
|
4854
4891
|
id: string;
|
|
@@ -4874,12 +4911,9 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4874
4911
|
metadata?: Record<string, unknown> | undefined;
|
|
4875
4912
|
})[];
|
|
4876
4913
|
};
|
|
4877
|
-
type: "SignatureRequests";
|
|
4878
4914
|
})[];
|
|
4879
|
-
type: "ActionSequence";
|
|
4880
4915
|
};
|
|
4881
|
-
|
|
4882
|
-
toolName: string;
|
|
4916
|
+
type: "tool-call";
|
|
4883
4917
|
simulated?: boolean | undefined;
|
|
4884
4918
|
simulation?: {
|
|
4885
4919
|
willSucceed: boolean;
|
|
@@ -4973,17 +5007,15 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4973
5007
|
message: z.ZodString;
|
|
4974
5008
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
4975
5009
|
}, "strict", z.ZodTypeAny, {
|
|
4976
|
-
message: string;
|
|
4977
5010
|
type: "execution";
|
|
5011
|
+
message: string;
|
|
4978
5012
|
details?: unknown;
|
|
4979
5013
|
}, {
|
|
4980
|
-
message: string;
|
|
4981
5014
|
type: "execution";
|
|
5015
|
+
message: string;
|
|
4982
5016
|
details?: unknown;
|
|
4983
5017
|
}>]>;
|
|
4984
5018
|
}, "strict", z.ZodTypeAny, {
|
|
4985
|
-
id: string;
|
|
4986
|
-
name: string;
|
|
4987
5019
|
data: {
|
|
4988
5020
|
type: "input";
|
|
4989
5021
|
errors: {
|
|
@@ -4991,13 +5023,13 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
4991
5023
|
message: string;
|
|
4992
5024
|
}[];
|
|
4993
5025
|
} | {
|
|
4994
|
-
message: string;
|
|
4995
5026
|
type: "execution";
|
|
5027
|
+
message: string;
|
|
4996
5028
|
details?: unknown;
|
|
4997
5029
|
};
|
|
4998
|
-
}, {
|
|
4999
5030
|
id: string;
|
|
5000
5031
|
name: string;
|
|
5032
|
+
}, {
|
|
5001
5033
|
data: {
|
|
5002
5034
|
type: "input";
|
|
5003
5035
|
errors: {
|
|
@@ -5005,21 +5037,25 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5005
5037
|
message: string;
|
|
5006
5038
|
}[];
|
|
5007
5039
|
} | {
|
|
5008
|
-
message: string;
|
|
5009
5040
|
type: "execution";
|
|
5041
|
+
message: string;
|
|
5010
5042
|
details?: unknown;
|
|
5011
5043
|
};
|
|
5044
|
+
id: string;
|
|
5045
|
+
name: string;
|
|
5012
5046
|
}>, "many">>;
|
|
5013
5047
|
requestId: z.ZodString;
|
|
5014
5048
|
}, "strip", z.ZodTypeAny, {
|
|
5049
|
+
text: string;
|
|
5015
5050
|
type: "result";
|
|
5016
5051
|
status: 200;
|
|
5017
|
-
text: string;
|
|
5018
5052
|
messages: ModelMessage[];
|
|
5019
5053
|
requestId: string;
|
|
5020
5054
|
pendingTools?: {
|
|
5021
|
-
|
|
5055
|
+
toolCallId: string;
|
|
5056
|
+
toolName: string;
|
|
5022
5057
|
input: {
|
|
5058
|
+
type: "BatchTransactions";
|
|
5023
5059
|
value: {
|
|
5024
5060
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5025
5061
|
metadata?: {
|
|
@@ -5027,8 +5063,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5027
5063
|
usdValue?: string | undefined;
|
|
5028
5064
|
} | undefined;
|
|
5029
5065
|
}[];
|
|
5030
|
-
type: "BatchTransactions";
|
|
5031
5066
|
} | {
|
|
5067
|
+
type: "SingleTransaction";
|
|
5032
5068
|
value: {
|
|
5033
5069
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5034
5070
|
metadata?: {
|
|
@@ -5036,8 +5072,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5036
5072
|
usdValue?: string | undefined;
|
|
5037
5073
|
} | undefined;
|
|
5038
5074
|
};
|
|
5039
|
-
type: "SingleTransaction";
|
|
5040
5075
|
} | {
|
|
5076
|
+
type: "SignatureRequests";
|
|
5041
5077
|
value: {
|
|
5042
5078
|
signatureRequests: ({
|
|
5043
5079
|
id: string;
|
|
@@ -5063,9 +5099,10 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5063
5099
|
metadata?: Record<string, unknown> | undefined;
|
|
5064
5100
|
})[];
|
|
5065
5101
|
};
|
|
5066
|
-
type: "SignatureRequests";
|
|
5067
5102
|
} | {
|
|
5103
|
+
type: "ActionSequence";
|
|
5068
5104
|
value: ({
|
|
5105
|
+
type: "BatchTransactions";
|
|
5069
5106
|
value: {
|
|
5070
5107
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5071
5108
|
metadata?: {
|
|
@@ -5073,8 +5110,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5073
5110
|
usdValue?: string | undefined;
|
|
5074
5111
|
} | undefined;
|
|
5075
5112
|
}[];
|
|
5076
|
-
type: "BatchTransactions";
|
|
5077
5113
|
} | {
|
|
5114
|
+
type: "SingleTransaction";
|
|
5078
5115
|
value: {
|
|
5079
5116
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5080
5117
|
metadata?: {
|
|
@@ -5082,8 +5119,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5082
5119
|
usdValue?: string | undefined;
|
|
5083
5120
|
} | undefined;
|
|
5084
5121
|
};
|
|
5085
|
-
type: "SingleTransaction";
|
|
5086
5122
|
} | {
|
|
5123
|
+
type: "SignatureRequests";
|
|
5087
5124
|
value: {
|
|
5088
5125
|
signatureRequests: ({
|
|
5089
5126
|
id: string;
|
|
@@ -5109,12 +5146,9 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5109
5146
|
metadata?: Record<string, unknown> | undefined;
|
|
5110
5147
|
})[];
|
|
5111
5148
|
};
|
|
5112
|
-
type: "SignatureRequests";
|
|
5113
5149
|
})[];
|
|
5114
|
-
type: "ActionSequence";
|
|
5115
5150
|
};
|
|
5116
|
-
|
|
5117
|
-
toolName: string;
|
|
5151
|
+
type: "tool-call";
|
|
5118
5152
|
simulated?: boolean | undefined;
|
|
5119
5153
|
simulation?: {
|
|
5120
5154
|
willSucceed: boolean;
|
|
@@ -5169,8 +5203,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5169
5203
|
toolInput?: unknown;
|
|
5170
5204
|
}[] | undefined;
|
|
5171
5205
|
toolErrors?: {
|
|
5172
|
-
id: string;
|
|
5173
|
-
name: string;
|
|
5174
5206
|
data: {
|
|
5175
5207
|
type: "input";
|
|
5176
5208
|
errors: {
|
|
@@ -5178,20 +5210,24 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5178
5210
|
message: string;
|
|
5179
5211
|
}[];
|
|
5180
5212
|
} | {
|
|
5181
|
-
message: string;
|
|
5182
5213
|
type: "execution";
|
|
5214
|
+
message: string;
|
|
5183
5215
|
details?: unknown;
|
|
5184
5216
|
};
|
|
5217
|
+
id: string;
|
|
5218
|
+
name: string;
|
|
5185
5219
|
}[] | undefined;
|
|
5186
5220
|
}, {
|
|
5221
|
+
text: string;
|
|
5187
5222
|
type: "result";
|
|
5188
5223
|
status: 200;
|
|
5189
|
-
text: string;
|
|
5190
5224
|
messages: ModelMessage[];
|
|
5191
5225
|
requestId: string;
|
|
5192
5226
|
pendingTools?: {
|
|
5193
|
-
|
|
5227
|
+
toolCallId: string;
|
|
5228
|
+
toolName: string;
|
|
5194
5229
|
input: {
|
|
5230
|
+
type: "BatchTransactions";
|
|
5195
5231
|
value: {
|
|
5196
5232
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5197
5233
|
metadata?: {
|
|
@@ -5199,8 +5235,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5199
5235
|
usdValue?: string | undefined;
|
|
5200
5236
|
} | undefined;
|
|
5201
5237
|
}[];
|
|
5202
|
-
type: "BatchTransactions";
|
|
5203
5238
|
} | {
|
|
5239
|
+
type: "SingleTransaction";
|
|
5204
5240
|
value: {
|
|
5205
5241
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5206
5242
|
metadata?: {
|
|
@@ -5208,8 +5244,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5208
5244
|
usdValue?: string | undefined;
|
|
5209
5245
|
} | undefined;
|
|
5210
5246
|
};
|
|
5211
|
-
type: "SingleTransaction";
|
|
5212
5247
|
} | {
|
|
5248
|
+
type: "SignatureRequests";
|
|
5213
5249
|
value: {
|
|
5214
5250
|
signatureRequests: ({
|
|
5215
5251
|
id: string;
|
|
@@ -5235,9 +5271,10 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5235
5271
|
metadata?: Record<string, unknown> | undefined;
|
|
5236
5272
|
})[];
|
|
5237
5273
|
};
|
|
5238
|
-
type: "SignatureRequests";
|
|
5239
5274
|
} | {
|
|
5275
|
+
type: "ActionSequence";
|
|
5240
5276
|
value: ({
|
|
5277
|
+
type: "BatchTransactions";
|
|
5241
5278
|
value: {
|
|
5242
5279
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5243
5280
|
metadata?: {
|
|
@@ -5245,8 +5282,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5245
5282
|
usdValue?: string | undefined;
|
|
5246
5283
|
} | undefined;
|
|
5247
5284
|
}[];
|
|
5248
|
-
type: "BatchTransactions";
|
|
5249
5285
|
} | {
|
|
5286
|
+
type: "SingleTransaction";
|
|
5250
5287
|
value: {
|
|
5251
5288
|
transaction: import("viem").PrepareTransactionRequestReturnType;
|
|
5252
5289
|
metadata?: {
|
|
@@ -5254,8 +5291,8 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5254
5291
|
usdValue?: string | undefined;
|
|
5255
5292
|
} | undefined;
|
|
5256
5293
|
};
|
|
5257
|
-
type: "SingleTransaction";
|
|
5258
5294
|
} | {
|
|
5295
|
+
type: "SignatureRequests";
|
|
5259
5296
|
value: {
|
|
5260
5297
|
signatureRequests: ({
|
|
5261
5298
|
id: string;
|
|
@@ -5281,12 +5318,9 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5281
5318
|
metadata?: Record<string, unknown> | undefined;
|
|
5282
5319
|
})[];
|
|
5283
5320
|
};
|
|
5284
|
-
type: "SignatureRequests";
|
|
5285
5321
|
})[];
|
|
5286
|
-
type: "ActionSequence";
|
|
5287
5322
|
};
|
|
5288
|
-
|
|
5289
|
-
toolName: string;
|
|
5323
|
+
type: "tool-call";
|
|
5290
5324
|
simulated?: boolean | undefined;
|
|
5291
5325
|
simulation?: {
|
|
5292
5326
|
willSucceed: boolean;
|
|
@@ -5341,8 +5375,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5341
5375
|
toolInput?: unknown;
|
|
5342
5376
|
}[] | undefined;
|
|
5343
5377
|
toolErrors?: {
|
|
5344
|
-
id: string;
|
|
5345
|
-
name: string;
|
|
5346
5378
|
data: {
|
|
5347
5379
|
type: "input";
|
|
5348
5380
|
errors: {
|
|
@@ -5350,10 +5382,12 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5350
5382
|
message: string;
|
|
5351
5383
|
}[];
|
|
5352
5384
|
} | {
|
|
5353
|
-
message: string;
|
|
5354
5385
|
type: "execution";
|
|
5386
|
+
message: string;
|
|
5355
5387
|
details?: unknown;
|
|
5356
5388
|
};
|
|
5389
|
+
id: string;
|
|
5390
|
+
name: string;
|
|
5357
5391
|
}[] | undefined;
|
|
5358
5392
|
}>, z.ZodObject<{
|
|
5359
5393
|
type: z.ZodLiteral<"error">;
|
|
@@ -5370,19 +5404,19 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
5370
5404
|
code?: string | undefined;
|
|
5371
5405
|
}>;
|
|
5372
5406
|
}, "strip", z.ZodTypeAny, {
|
|
5373
|
-
type: "error";
|
|
5374
5407
|
data: {
|
|
5375
5408
|
message: string;
|
|
5376
5409
|
code?: string | undefined;
|
|
5377
5410
|
};
|
|
5411
|
+
type: "error";
|
|
5378
5412
|
requestId: string;
|
|
5379
5413
|
timestamp?: number | undefined;
|
|
5380
5414
|
}, {
|
|
5381
|
-
type: "error";
|
|
5382
5415
|
data: {
|
|
5383
5416
|
message: string;
|
|
5384
5417
|
code?: string | undefined;
|
|
5385
5418
|
};
|
|
5419
|
+
type: "error";
|
|
5386
5420
|
requestId: string;
|
|
5387
5421
|
timestamp?: number | undefined;
|
|
5388
5422
|
}>, z.ZodObject<{
|