@illalabs/interfaces 0.10.3 → 0.10.4-canary-beta-d7ede344

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.
@@ -4,20 +4,20 @@ import { z } from "zod";
4
4
  * Telemetry event type enum values.
5
5
  * Used to infer TelemetryEventType in types/telemetry.ts
6
6
  */
7
- export declare const telemetryEventTypes: readonly ["iteration_start", "iteration_end", "tool_call_batch", "tool_input_start", "tool_input_delta", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "finish", "error", "connected", "stream_end", "plan_generating", "plan_generated", "plan_step_started", "plan_step_retrying", "plan_step_completed", "plan_invalidated", "replan_started", "replan_complete", "plan_execution_complete", "plan_expired", "plan_step_simulated", "plan_step_verification_passed", "plan_step_verification_failed", "plan_execution_failed"];
7
+ export declare const telemetryEventTypes: readonly ["iteration_start", "iteration_end", "tool_call_batch", "tool_input_start", "tool_input_delta", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "reasoning_start", "reasoning_delta", "reasoning_end", "finish", "error", "connected", "stream_end", "plan_generating", "plan_generated", "plan_step_started", "plan_step_retrying", "plan_step_completed", "plan_invalidated", "replan_started", "replan_complete", "plan_execution_complete", "plan_expired", "plan_step_simulated", "plan_step_verification_passed", "plan_step_verification_failed", "plan_execution_failed"];
8
8
  /**
9
9
  * Base telemetry event schema with common fields
10
10
  */
11
11
  export declare const baseTelemetryEventSchema: z.ZodObject<{
12
12
  requestId: z.ZodString;
13
- type: z.ZodEnum<["iteration_start", "iteration_end", "tool_call_batch", "tool_input_start", "tool_input_delta", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "finish", "error", "connected", "stream_end", "plan_generating", "plan_generated", "plan_step_started", "plan_step_retrying", "plan_step_completed", "plan_invalidated", "replan_started", "replan_complete", "plan_execution_complete", "plan_expired", "plan_step_simulated", "plan_step_verification_passed", "plan_step_verification_failed", "plan_execution_failed"]>;
13
+ type: z.ZodEnum<["iteration_start", "iteration_end", "tool_call_batch", "tool_input_start", "tool_input_delta", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "reasoning_start", "reasoning_delta", "reasoning_end", "finish", "error", "connected", "stream_end", "plan_generating", "plan_generated", "plan_step_started", "plan_step_retrying", "plan_step_completed", "plan_invalidated", "replan_started", "replan_complete", "plan_execution_complete", "plan_expired", "plan_step_simulated", "plan_step_verification_passed", "plan_step_verification_failed", "plan_execution_failed"]>;
14
14
  timestamp: z.ZodOptional<z.ZodNumber>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_input_start" | "tool_input_delta" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "finish" | "connected" | "stream_end" | "plan_generating" | "plan_generated" | "plan_step_started" | "plan_step_retrying" | "plan_step_completed" | "plan_invalidated" | "replan_started" | "replan_complete" | "plan_execution_complete" | "plan_expired" | "plan_step_simulated" | "plan_step_verification_passed" | "plan_step_verification_failed" | "plan_execution_failed";
16
+ type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_input_start" | "tool_input_delta" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "reasoning_start" | "reasoning_delta" | "reasoning_end" | "finish" | "connected" | "stream_end" | "plan_generating" | "plan_generated" | "plan_step_started" | "plan_step_retrying" | "plan_step_completed" | "plan_invalidated" | "replan_started" | "replan_complete" | "plan_execution_complete" | "plan_expired" | "plan_step_simulated" | "plan_step_verification_passed" | "plan_step_verification_failed" | "plan_execution_failed";
17
17
  requestId: string;
18
18
  timestamp?: number | undefined;
19
19
  }, {
20
- type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_input_start" | "tool_input_delta" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "finish" | "connected" | "stream_end" | "plan_generating" | "plan_generated" | "plan_step_started" | "plan_step_retrying" | "plan_step_completed" | "plan_invalidated" | "replan_started" | "replan_complete" | "plan_execution_complete" | "plan_expired" | "plan_step_simulated" | "plan_step_verification_passed" | "plan_step_verification_failed" | "plan_execution_failed";
20
+ type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_input_start" | "tool_input_delta" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "reasoning_start" | "reasoning_delta" | "reasoning_end" | "finish" | "connected" | "stream_end" | "plan_generating" | "plan_generated" | "plan_step_started" | "plan_step_retrying" | "plan_step_completed" | "plan_invalidated" | "replan_started" | "replan_complete" | "plan_execution_complete" | "plan_expired" | "plan_step_simulated" | "plan_step_verification_passed" | "plan_step_verification_failed" | "plan_execution_failed";
21
21
  requestId: string;
22
22
  timestamp?: number | undefined;
23
23
  }>;
@@ -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";
74
75
  data: {
75
76
  iteration: number;
76
77
  };
77
- type: "iteration_start";
78
78
  requestId: string;
79
79
  timestamp?: number | undefined;
80
80
  }, {
81
+ type: "iteration_start";
81
82
  data: {
82
83
  iteration: number;
83
84
  };
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";
110
111
  data: {
111
112
  iteration: number;
112
113
  hasToolCalls: boolean;
113
114
  shouldContinue: boolean;
114
115
  };
115
- type: "iteration_end";
116
116
  requestId: string;
117
117
  timestamp?: number | undefined;
118
118
  }, {
119
+ type: "iteration_end";
119
120
  data: {
120
121
  iteration: number;
121
122
  hasToolCalls: boolean;
122
123
  shouldContinue: boolean;
123
124
  };
124
- type: "iteration_end";
125
125
  requestId: string;
126
126
  timestamp?: number | undefined;
127
127
  }>;
@@ -164,6 +164,7 @@ export declare const toolCallBatchEventSchema: z.ZodObject<{
164
164
  }[];
165
165
  }>;
166
166
  }, "strip", z.ZodTypeAny, {
167
+ type: "tool_call_batch";
167
168
  data: {
168
169
  iteration: number;
169
170
  tools: {
@@ -172,10 +173,10 @@ export declare const toolCallBatchEventSchema: z.ZodObject<{
172
173
  args?: Record<string, unknown> | undefined;
173
174
  }[];
174
175
  };
175
- type: "tool_call_batch";
176
176
  requestId: string;
177
177
  timestamp?: number | undefined;
178
178
  }, {
179
+ type: "tool_call_batch";
179
180
  data: {
180
181
  iteration: number;
181
182
  tools: {
@@ -184,7 +185,6 @@ export declare const toolCallBatchEventSchema: z.ZodObject<{
184
185
  args?: Record<string, unknown> | undefined;
185
186
  }[];
186
187
  };
187
- type: "tool_call_batch";
188
188
  requestId: string;
189
189
  timestamp?: number | undefined;
190
190
  }>;
@@ -207,19 +207,19 @@ export declare const toolInputStartEventSchema: z.ZodObject<{
207
207
  toolName: string;
208
208
  }>;
209
209
  }, "strip", z.ZodTypeAny, {
210
+ type: "tool_input_start";
210
211
  data: {
211
212
  toolCallId: string;
212
213
  toolName: string;
213
214
  };
214
- type: "tool_input_start";
215
215
  requestId: string;
216
216
  timestamp?: number | undefined;
217
217
  }, {
218
+ type: "tool_input_start";
218
219
  data: {
219
220
  toolCallId: string;
220
221
  toolName: string;
221
222
  };
222
- type: "tool_input_start";
223
223
  requestId: string;
224
224
  timestamp?: number | undefined;
225
225
  }>;
@@ -242,19 +242,19 @@ export declare const toolInputDeltaEventSchema: z.ZodObject<{
242
242
  inputTextDelta: string;
243
243
  }>;
244
244
  }, "strip", z.ZodTypeAny, {
245
+ type: "tool_input_delta";
245
246
  data: {
246
247
  toolCallId: string;
247
248
  inputTextDelta: string;
248
249
  };
249
- type: "tool_input_delta";
250
250
  requestId: string;
251
251
  timestamp?: number | undefined;
252
252
  }, {
253
+ type: "tool_input_delta";
253
254
  data: {
254
255
  toolCallId: string;
255
256
  inputTextDelta: string;
256
257
  };
257
- type: "tool_input_delta";
258
258
  requestId: string;
259
259
  timestamp?: number | undefined;
260
260
  }>;
@@ -274,15 +274,15 @@ export declare const toolResultEventSchema: z.ZodObject<{
274
274
  simulated: z.ZodOptional<z.ZodBoolean>;
275
275
  result: z.ZodOptional<z.ZodUnknown>;
276
276
  }, "strip", z.ZodTypeAny, {
277
+ status: "pending";
277
278
  toolCallId: string;
278
279
  toolName: string;
279
- status: "pending";
280
280
  result?: unknown;
281
281
  simulated?: boolean | undefined;
282
282
  }, {
283
+ status: "pending";
283
284
  toolCallId: string;
284
285
  toolName: string;
285
- status: "pending";
286
286
  result?: unknown;
287
287
  simulated?: boolean | undefined;
288
288
  }>, z.ZodObject<{
@@ -291,14 +291,14 @@ export declare const toolResultEventSchema: z.ZodObject<{
291
291
  status: z.ZodLiteral<"success">;
292
292
  result: z.ZodOptional<z.ZodUnknown>;
293
293
  }, "strip", z.ZodTypeAny, {
294
+ status: "success";
294
295
  toolCallId: string;
295
296
  toolName: string;
296
- status: "success";
297
297
  result?: unknown;
298
298
  }, {
299
+ status: "success";
299
300
  toolCallId: string;
300
301
  toolName: string;
301
- status: "success";
302
302
  result?: unknown;
303
303
  }>, z.ZodObject<{
304
304
  toolCallId: z.ZodString;
@@ -306,56 +306,56 @@ export declare const toolResultEventSchema: z.ZodObject<{
306
306
  status: z.ZodLiteral<"failure">;
307
307
  error: z.ZodString;
308
308
  }, "strip", z.ZodTypeAny, {
309
- toolCallId: string;
310
- toolName: string;
311
309
  status: "failure";
312
310
  error: string;
313
- }, {
314
311
  toolCallId: string;
315
312
  toolName: string;
313
+ }, {
316
314
  status: "failure";
317
315
  error: string;
316
+ toolCallId: string;
317
+ toolName: string;
318
318
  }>]>;
319
319
  }, "strip", z.ZodTypeAny, {
320
+ type: "tool_result";
320
321
  data: {
322
+ status: "pending";
321
323
  toolCallId: string;
322
324
  toolName: string;
323
- status: "pending";
324
325
  result?: unknown;
325
326
  simulated?: boolean | undefined;
326
327
  } | {
328
+ status: "success";
327
329
  toolCallId: string;
328
330
  toolName: string;
329
- status: "success";
330
331
  result?: unknown;
331
332
  } | {
332
- toolCallId: string;
333
- toolName: string;
334
333
  status: "failure";
335
334
  error: string;
335
+ toolCallId: string;
336
+ toolName: string;
336
337
  };
337
- type: "tool_result";
338
338
  requestId: string;
339
339
  timestamp?: number | undefined;
340
340
  }, {
341
+ type: "tool_result";
341
342
  data: {
343
+ status: "pending";
342
344
  toolCallId: string;
343
345
  toolName: string;
344
- status: "pending";
345
346
  result?: unknown;
346
347
  simulated?: boolean | undefined;
347
348
  } | {
349
+ status: "success";
348
350
  toolCallId: string;
349
351
  toolName: string;
350
- status: "success";
351
352
  result?: unknown;
352
353
  } | {
353
- toolCallId: string;
354
- toolName: string;
355
354
  status: "failure";
356
355
  error: string;
356
+ toolCallId: string;
357
+ toolName: string;
357
358
  };
358
- type: "tool_result";
359
359
  requestId: string;
360
360
  timestamp?: number | undefined;
361
361
  }>;
@@ -375,17 +375,17 @@ export declare const scratchpadResetEventSchema: z.ZodObject<{
375
375
  reason: string;
376
376
  }>;
377
377
  }, "strip", z.ZodTypeAny, {
378
+ type: "scratchpad_reset";
378
379
  data: {
379
380
  reason: string;
380
381
  };
381
- type: "scratchpad_reset";
382
382
  requestId: string;
383
383
  timestamp?: number | undefined;
384
384
  }, {
385
+ type: "scratchpad_reset";
385
386
  data: {
386
387
  reason: string;
387
388
  };
388
- type: "scratchpad_reset";
389
389
  requestId: string;
390
390
  timestamp?: number | undefined;
391
391
  }>;
@@ -405,17 +405,17 @@ export declare const llmStartEventSchema: z.ZodObject<{
405
405
  iteration: number;
406
406
  }>;
407
407
  }, "strip", z.ZodTypeAny, {
408
+ type: "llm_start";
408
409
  data: {
409
410
  iteration: number;
410
411
  };
411
- type: "llm_start";
412
412
  requestId: string;
413
413
  timestamp?: number | undefined;
414
414
  }, {
415
+ type: "llm_start";
415
416
  data: {
416
417
  iteration: number;
417
418
  };
418
- type: "llm_start";
419
419
  requestId: string;
420
420
  timestamp?: number | undefined;
421
421
  }>;
@@ -441,21 +441,21 @@ export declare const llmEndEventSchema: z.ZodObject<{
441
441
  toolCallCount: number;
442
442
  }>;
443
443
  }, "strip", z.ZodTypeAny, {
444
+ type: "llm_end";
444
445
  data: {
445
446
  iteration: number;
446
447
  hasText: boolean;
447
448
  toolCallCount: number;
448
449
  };
449
- type: "llm_end";
450
450
  requestId: string;
451
451
  timestamp?: number | undefined;
452
452
  }, {
453
+ type: "llm_end";
453
454
  data: {
454
455
  iteration: number;
455
456
  hasText: boolean;
456
457
  toolCallCount: number;
457
458
  };
458
- type: "llm_end";
459
459
  requestId: string;
460
460
  timestamp?: number | undefined;
461
461
  }>;
@@ -475,17 +475,112 @@ export declare const textDeltaEventSchema: z.ZodObject<{
475
475
  delta: string;
476
476
  }>;
477
477
  }, "strip", z.ZodTypeAny, {
478
+ type: "text_delta";
478
479
  data: {
479
480
  delta: string;
480
481
  };
482
+ requestId: string;
483
+ timestamp?: number | undefined;
484
+ }, {
481
485
  type: "text_delta";
486
+ data: {
487
+ delta: string;
488
+ };
489
+ requestId: string;
490
+ timestamp?: number | undefined;
491
+ }>;
492
+ /**
493
+ * Reasoning start event schema - emitted when reasoning stream starts.
494
+ */
495
+ export declare const reasoningStartEventSchema: z.ZodObject<{
496
+ requestId: z.ZodString;
497
+ timestamp: z.ZodOptional<z.ZodNumber>;
498
+ } & {
499
+ type: z.ZodLiteral<"reasoning_start">;
500
+ data: z.ZodObject<{
501
+ reasoningId: z.ZodString;
502
+ }, "strip", z.ZodTypeAny, {
503
+ reasoningId: string;
504
+ }, {
505
+ reasoningId: string;
506
+ }>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: "reasoning_start";
509
+ data: {
510
+ reasoningId: string;
511
+ };
512
+ requestId: string;
513
+ timestamp?: number | undefined;
514
+ }, {
515
+ type: "reasoning_start";
516
+ data: {
517
+ reasoningId: string;
518
+ };
519
+ requestId: string;
520
+ timestamp?: number | undefined;
521
+ }>;
522
+ /**
523
+ * Reasoning delta event schema - emitted when reasoning text chunk is received.
524
+ */
525
+ export declare const reasoningDeltaEventSchema: z.ZodObject<{
526
+ requestId: z.ZodString;
527
+ timestamp: z.ZodOptional<z.ZodNumber>;
528
+ } & {
529
+ type: z.ZodLiteral<"reasoning_delta">;
530
+ data: z.ZodObject<{
531
+ reasoningId: z.ZodString;
532
+ delta: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ delta: string;
535
+ reasoningId: string;
536
+ }, {
537
+ delta: string;
538
+ reasoningId: string;
539
+ }>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ type: "reasoning_delta";
542
+ data: {
543
+ delta: string;
544
+ reasoningId: string;
545
+ };
482
546
  requestId: string;
483
547
  timestamp?: number | undefined;
484
548
  }, {
549
+ type: "reasoning_delta";
485
550
  data: {
486
551
  delta: string;
552
+ reasoningId: string;
553
+ };
554
+ requestId: string;
555
+ timestamp?: number | undefined;
556
+ }>;
557
+ /**
558
+ * Reasoning end event schema - emitted when reasoning stream ends.
559
+ */
560
+ export declare const reasoningEndEventSchema: z.ZodObject<{
561
+ requestId: z.ZodString;
562
+ timestamp: z.ZodOptional<z.ZodNumber>;
563
+ } & {
564
+ type: z.ZodLiteral<"reasoning_end">;
565
+ data: z.ZodObject<{
566
+ reasoningId: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ reasoningId: string;
569
+ }, {
570
+ reasoningId: string;
571
+ }>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ type: "reasoning_end";
574
+ data: {
575
+ reasoningId: string;
576
+ };
577
+ requestId: string;
578
+ timestamp?: number | undefined;
579
+ }, {
580
+ type: "reasoning_end";
581
+ data: {
582
+ reasoningId: string;
487
583
  };
488
- type: "text_delta";
489
584
  requestId: string;
490
585
  timestamp?: number | undefined;
491
586
  }>;
@@ -511,21 +606,21 @@ export declare const finishEventSchema: z.ZodObject<{
511
606
  hasToolErrors: boolean;
512
607
  }>;
513
608
  }, "strip", z.ZodTypeAny, {
609
+ type: "finish";
514
610
  data: {
515
611
  totalIterations: number;
516
612
  hasPendingTools: boolean;
517
613
  hasToolErrors: boolean;
518
614
  };
519
- type: "finish";
520
615
  requestId: string;
521
616
  timestamp?: number | undefined;
522
617
  }, {
618
+ type: "finish";
523
619
  data: {
524
620
  totalIterations: number;
525
621
  hasPendingTools: boolean;
526
622
  hasToolErrors: boolean;
527
623
  };
528
- type: "finish";
529
624
  requestId: string;
530
625
  timestamp?: number | undefined;
531
626
  }>;
@@ -549,19 +644,19 @@ export declare const errorTelemetryEventSchema: z.ZodObject<{
549
644
  code?: string | undefined;
550
645
  }>;
551
646
  }, "strip", z.ZodTypeAny, {
647
+ type: "error";
552
648
  data: {
553
649
  message: string;
554
650
  code?: string | undefined;
555
651
  };
556
- type: "error";
557
652
  requestId: string;
558
653
  timestamp?: number | undefined;
559
654
  }, {
655
+ type: "error";
560
656
  data: {
561
657
  message: string;
562
658
  code?: string | undefined;
563
659
  };
564
- type: "error";
565
660
  requestId: string;
566
661
  timestamp?: number | undefined;
567
662
  }>;
@@ -581,17 +676,17 @@ export declare const planGeneratingEventSchema: z.ZodObject<{
581
676
  messageCount: number;
582
677
  }>;
583
678
  }, "strip", z.ZodTypeAny, {
679
+ type: "plan_generating";
584
680
  data: {
585
681
  messageCount: number;
586
682
  };
587
- type: "plan_generating";
588
683
  requestId: string;
589
684
  timestamp?: number | undefined;
590
685
  }, {
686
+ type: "plan_generating";
591
687
  data: {
592
688
  messageCount: number;
593
689
  };
594
- type: "plan_generating";
595
690
  requestId: string;
596
691
  timestamp?: number | undefined;
597
692
  }>;
@@ -629,6 +724,7 @@ export declare const planGeneratedEventSchema: z.ZodObject<{
629
724
  hasConflicts: z.ZodBoolean;
630
725
  }, z.ZodTypeAny, "passthrough">>;
631
726
  }, "strip", z.ZodTypeAny, {
727
+ type: "plan_generated";
632
728
  data: {
633
729
  complexity: "low" | "medium" | "high";
634
730
  planId: string;
@@ -640,10 +736,10 @@ export declare const planGeneratedEventSchema: z.ZodObject<{
640
736
  } & {
641
737
  [k: string]: unknown;
642
738
  };
643
- type: "plan_generated";
644
739
  requestId: string;
645
740
  timestamp?: number | undefined;
646
741
  }, {
742
+ type: "plan_generated";
647
743
  data: {
648
744
  complexity: "low" | "medium" | "high";
649
745
  planId: string;
@@ -655,7 +751,6 @@ export declare const planGeneratedEventSchema: z.ZodObject<{
655
751
  } & {
656
752
  [k: string]: unknown;
657
753
  };
658
- type: "plan_generated";
659
754
  requestId: string;
660
755
  timestamp?: number | undefined;
661
756
  }>;
@@ -684,23 +779,23 @@ export declare const planStepStartedEventSchema: z.ZodObject<{
684
779
  planId: string;
685
780
  }>;
686
781
  }, "strip", z.ZodTypeAny, {
782
+ type: "plan_step_started";
687
783
  data: {
688
784
  description: string;
689
785
  stepNumber: number;
690
786
  operationType: "read" | "write";
691
787
  planId: string;
692
788
  };
693
- type: "plan_step_started";
694
789
  requestId: string;
695
790
  timestamp?: number | undefined;
696
791
  }, {
792
+ type: "plan_step_started";
697
793
  data: {
698
794
  description: string;
699
795
  stepNumber: number;
700
796
  operationType: "read" | "write";
701
797
  planId: string;
702
798
  };
703
- type: "plan_step_started";
704
799
  requestId: string;
705
800
  timestamp?: number | undefined;
706
801
  }>;
@@ -739,6 +834,7 @@ export declare const planStepRetryingEventSchema: z.ZodObject<{
739
834
  error?: string | undefined;
740
835
  }>;
741
836
  }, "strip", z.ZodTypeAny, {
837
+ type: "plan_step_retrying";
742
838
  data: {
743
839
  stepNumber: number;
744
840
  planId: string;
@@ -747,10 +843,10 @@ export declare const planStepRetryingEventSchema: z.ZodObject<{
747
843
  phase: "execution" | "simulation";
748
844
  error?: string | undefined;
749
845
  };
750
- type: "plan_step_retrying";
751
846
  requestId: string;
752
847
  timestamp?: number | undefined;
753
848
  }, {
849
+ type: "plan_step_retrying";
754
850
  data: {
755
851
  stepNumber: number;
756
852
  planId: string;
@@ -759,7 +855,6 @@ export declare const planStepRetryingEventSchema: z.ZodObject<{
759
855
  phase: "execution" | "simulation";
760
856
  error?: string | undefined;
761
857
  };
762
- type: "plan_step_retrying";
763
858
  requestId: string;
764
859
  timestamp?: number | undefined;
765
860
  }>;
@@ -788,27 +883,27 @@ export declare const planStepCompletedEventSchema: z.ZodObject<{
788
883
  error: z.ZodOptional<z.ZodString>;
789
884
  }, z.ZodTypeAny, "passthrough">>;
790
885
  }, "strip", z.ZodTypeAny, {
886
+ type: "plan_step_completed";
791
887
  data: {
792
- status: "completed" | "failed" | "skipped";
888
+ status: "skipped" | "completed" | "failed";
793
889
  stepNumber: number;
794
890
  planId: string;
795
891
  error?: string | undefined;
796
892
  } & {
797
893
  [k: string]: unknown;
798
894
  };
799
- type: "plan_step_completed";
800
895
  requestId: string;
801
896
  timestamp?: number | undefined;
802
897
  }, {
898
+ type: "plan_step_completed";
803
899
  data: {
804
- status: "completed" | "failed" | "skipped";
900
+ status: "skipped" | "completed" | "failed";
805
901
  stepNumber: number;
806
902
  planId: string;
807
903
  error?: string | undefined;
808
904
  } & {
809
905
  [k: string]: unknown;
810
906
  };
811
- type: "plan_step_completed";
812
907
  requestId: string;
813
908
  timestamp?: number | undefined;
814
909
  }>;
@@ -834,21 +929,21 @@ export declare const planInvalidatedEventSchema: z.ZodObject<{
834
929
  failedStepNumber?: number | undefined;
835
930
  }>;
836
931
  }, "strip", z.ZodTypeAny, {
932
+ type: "plan_invalidated";
837
933
  data: {
838
934
  planId: string;
839
935
  reason: string;
840
936
  failedStepNumber?: number | undefined;
841
937
  };
842
- type: "plan_invalidated";
843
938
  requestId: string;
844
939
  timestamp?: number | undefined;
845
940
  }, {
941
+ type: "plan_invalidated";
846
942
  data: {
847
943
  planId: string;
848
944
  reason: string;
849
945
  failedStepNumber?: number | undefined;
850
946
  };
851
- type: "plan_invalidated";
852
947
  requestId: string;
853
948
  timestamp?: number | undefined;
854
949
  }>;
@@ -874,21 +969,21 @@ export declare const replanStartedEventSchema: z.ZodObject<{
874
969
  preservedStepCount: number;
875
970
  }>;
876
971
  }, "strip", z.ZodTypeAny, {
972
+ type: "replan_started";
877
973
  data: {
878
974
  previousPlanId: string;
879
975
  reason: string;
880
976
  preservedStepCount: number;
881
977
  };
882
- type: "replan_started";
883
978
  requestId: string;
884
979
  timestamp?: number | undefined;
885
980
  }, {
981
+ type: "replan_started";
886
982
  data: {
887
983
  previousPlanId: string;
888
984
  reason: string;
889
985
  preservedStepCount: number;
890
986
  };
891
- type: "replan_started";
892
987
  requestId: string;
893
988
  timestamp?: number | undefined;
894
989
  }>;
@@ -914,6 +1009,7 @@ export declare const replanCompleteEventSchema: z.ZodObject<{
914
1009
  newVersion: z.ZodNumber;
915
1010
  }, z.ZodTypeAny, "passthrough">>;
916
1011
  }, "strip", z.ZodTypeAny, {
1012
+ type: "replan_complete";
917
1013
  data: {
918
1014
  previousPlanId: string;
919
1015
  newPlanId: string;
@@ -921,10 +1017,10 @@ export declare const replanCompleteEventSchema: z.ZodObject<{
921
1017
  } & {
922
1018
  [k: string]: unknown;
923
1019
  };
924
- type: "replan_complete";
925
1020
  requestId: string;
926
1021
  timestamp?: number | undefined;
927
1022
  }, {
1023
+ type: "replan_complete";
928
1024
  data: {
929
1025
  previousPlanId: string;
930
1026
  newPlanId: string;
@@ -932,7 +1028,6 @@ export declare const replanCompleteEventSchema: z.ZodObject<{
932
1028
  } & {
933
1029
  [k: string]: unknown;
934
1030
  };
935
- type: "replan_complete";
936
1031
  requestId: string;
937
1032
  timestamp?: number | undefined;
938
1033
  }>;
@@ -961,23 +1056,23 @@ export declare const planExecutionCompleteEventSchema: z.ZodObject<{
961
1056
  totalSteps: number;
962
1057
  }>;
963
1058
  }, "strip", z.ZodTypeAny, {
1059
+ type: "plan_execution_complete";
964
1060
  data: {
965
1061
  status: "failed" | "complete" | "partial";
966
1062
  planId: string;
967
1063
  completedSteps: number;
968
1064
  totalSteps: number;
969
1065
  };
970
- type: "plan_execution_complete";
971
1066
  requestId: string;
972
1067
  timestamp?: number | undefined;
973
1068
  }, {
1069
+ type: "plan_execution_complete";
974
1070
  data: {
975
1071
  status: "failed" | "complete" | "partial";
976
1072
  planId: string;
977
1073
  completedSteps: number;
978
1074
  totalSteps: number;
979
1075
  };
980
- type: "plan_execution_complete";
981
1076
  requestId: string;
982
1077
  timestamp?: number | undefined;
983
1078
  }>;
@@ -1036,6 +1131,7 @@ export declare const planExpiredEventSchema: z.ZodObject<{
1036
1131
  reason?: string | undefined;
1037
1132
  }>;
1038
1133
  }, "strip", z.ZodTypeAny, {
1134
+ type: "plan_expired";
1039
1135
  data: {
1040
1136
  planId: string;
1041
1137
  phase: "expired";
@@ -1046,10 +1142,10 @@ export declare const planExpiredEventSchema: z.ZodObject<{
1046
1142
  planVersion?: number | undefined;
1047
1143
  reason?: string | undefined;
1048
1144
  };
1049
- type: "plan_expired";
1050
1145
  requestId: string;
1051
1146
  timestamp?: number | undefined;
1052
1147
  }, {
1148
+ type: "plan_expired";
1053
1149
  data: {
1054
1150
  planId: string;
1055
1151
  phase: "expired";
@@ -1060,7 +1156,6 @@ export declare const planExpiredEventSchema: z.ZodObject<{
1060
1156
  planVersion?: number | undefined;
1061
1157
  reason?: string | undefined;
1062
1158
  };
1063
- type: "plan_expired";
1064
1159
  requestId: string;
1065
1160
  timestamp?: number | undefined;
1066
1161
  }>;
@@ -1089,23 +1184,23 @@ export declare const planStepSimulatedEventSchema: z.ZodObject<{
1089
1184
  simulationSummary: string;
1090
1185
  }>;
1091
1186
  }, "strip", z.ZodTypeAny, {
1187
+ type: "plan_step_simulated";
1092
1188
  data: {
1093
1189
  stepNumber: number;
1094
1190
  planId: string;
1095
1191
  simulationSuccess: boolean;
1096
1192
  simulationSummary: string;
1097
1193
  };
1098
- type: "plan_step_simulated";
1099
1194
  requestId: string;
1100
1195
  timestamp?: number | undefined;
1101
1196
  }, {
1197
+ type: "plan_step_simulated";
1102
1198
  data: {
1103
1199
  stepNumber: number;
1104
1200
  planId: string;
1105
1201
  simulationSuccess: boolean;
1106
1202
  simulationSummary: string;
1107
1203
  };
1108
- type: "plan_step_simulated";
1109
1204
  requestId: string;
1110
1205
  timestamp?: number | undefined;
1111
1206
  }>;
@@ -1134,23 +1229,23 @@ export declare const planStepVerificationPassedEventSchema: z.ZodObject<{
1134
1229
  reason: string;
1135
1230
  }>;
1136
1231
  }, "strip", z.ZodTypeAny, {
1232
+ type: "plan_step_verification_passed";
1137
1233
  data: {
1138
1234
  stepNumber: number;
1139
1235
  planId: string;
1140
1236
  confidence: number;
1141
1237
  reason: string;
1142
1238
  };
1143
- type: "plan_step_verification_passed";
1144
1239
  requestId: string;
1145
1240
  timestamp?: number | undefined;
1146
1241
  }, {
1242
+ type: "plan_step_verification_passed";
1147
1243
  data: {
1148
1244
  stepNumber: number;
1149
1245
  planId: string;
1150
1246
  confidence: number;
1151
1247
  reason: string;
1152
1248
  };
1153
- type: "plan_step_verification_passed";
1154
1249
  requestId: string;
1155
1250
  timestamp?: number | undefined;
1156
1251
  }>;
@@ -1205,6 +1300,7 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
1205
1300
  reason: string;
1206
1301
  }>;
1207
1302
  }, "strip", z.ZodTypeAny, {
1303
+ type: "plan_step_verification_failed";
1208
1304
  data: {
1209
1305
  stepNumber: number;
1210
1306
  planId: string;
@@ -1217,10 +1313,10 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
1217
1313
  recommendedAction: "continue" | "replan" | "ask_user";
1218
1314
  reason: string;
1219
1315
  };
1220
- type: "plan_step_verification_failed";
1221
1316
  requestId: string;
1222
1317
  timestamp?: number | undefined;
1223
1318
  }, {
1319
+ type: "plan_step_verification_failed";
1224
1320
  data: {
1225
1321
  stepNumber: number;
1226
1322
  planId: string;
@@ -1233,7 +1329,6 @@ export declare const planStepVerificationFailedEventSchema: z.ZodObject<{
1233
1329
  recommendedAction: "continue" | "replan" | "ask_user";
1234
1330
  reason: string;
1235
1331
  };
1236
- type: "plan_step_verification_failed";
1237
1332
  requestId: string;
1238
1333
  timestamp?: number | undefined;
1239
1334
  }>;
@@ -1259,21 +1354,21 @@ export declare const planExecutionFailedEventSchema: z.ZodObject<{
1259
1354
  phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning" | "expired";
1260
1355
  }>;
1261
1356
  }, "strip", z.ZodTypeAny, {
1357
+ type: "plan_execution_failed";
1262
1358
  data: {
1263
1359
  error: string;
1264
1360
  planId: string;
1265
1361
  phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning" | "expired";
1266
1362
  };
1267
- type: "plan_execution_failed";
1268
1363
  requestId: string;
1269
1364
  timestamp?: number | undefined;
1270
1365
  }, {
1366
+ type: "plan_execution_failed";
1271
1367
  data: {
1272
1368
  error: string;
1273
1369
  planId: string;
1274
1370
  phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning" | "expired";
1275
1371
  };
1276
- type: "plan_execution_failed";
1277
1372
  requestId: string;
1278
1373
  timestamp?: number | undefined;
1279
1374
  }>;
@@ -1320,17 +1415,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1320
1415
  iteration: number;
1321
1416
  }>;
1322
1417
  }, "strip", z.ZodTypeAny, {
1418
+ type: "iteration_start";
1323
1419
  data: {
1324
1420
  iteration: number;
1325
1421
  };
1326
- type: "iteration_start";
1327
1422
  requestId: string;
1328
1423
  timestamp?: number | undefined;
1329
1424
  }, {
1425
+ type: "iteration_start";
1330
1426
  data: {
1331
1427
  iteration: number;
1332
1428
  };
1333
- type: "iteration_start";
1334
1429
  requestId: string;
1335
1430
  timestamp?: number | undefined;
1336
1431
  }>, z.ZodObject<{
@@ -1352,21 +1447,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1352
1447
  shouldContinue: boolean;
1353
1448
  }>;
1354
1449
  }, "strip", z.ZodTypeAny, {
1450
+ type: "iteration_end";
1355
1451
  data: {
1356
1452
  iteration: number;
1357
1453
  hasToolCalls: boolean;
1358
1454
  shouldContinue: boolean;
1359
1455
  };
1360
- type: "iteration_end";
1361
1456
  requestId: string;
1362
1457
  timestamp?: number | undefined;
1363
1458
  }, {
1459
+ type: "iteration_end";
1364
1460
  data: {
1365
1461
  iteration: number;
1366
1462
  hasToolCalls: boolean;
1367
1463
  shouldContinue: boolean;
1368
1464
  };
1369
- type: "iteration_end";
1370
1465
  requestId: string;
1371
1466
  timestamp?: number | undefined;
1372
1467
  }>, z.ZodObject<{
@@ -1405,6 +1500,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1405
1500
  }[];
1406
1501
  }>;
1407
1502
  }, "strip", z.ZodTypeAny, {
1503
+ type: "tool_call_batch";
1408
1504
  data: {
1409
1505
  iteration: number;
1410
1506
  tools: {
@@ -1413,10 +1509,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1413
1509
  args?: Record<string, unknown> | undefined;
1414
1510
  }[];
1415
1511
  };
1416
- type: "tool_call_batch";
1417
1512
  requestId: string;
1418
1513
  timestamp?: number | undefined;
1419
1514
  }, {
1515
+ type: "tool_call_batch";
1420
1516
  data: {
1421
1517
  iteration: number;
1422
1518
  tools: {
@@ -1425,7 +1521,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1425
1521
  args?: Record<string, unknown> | undefined;
1426
1522
  }[];
1427
1523
  };
1428
- type: "tool_call_batch";
1429
1524
  requestId: string;
1430
1525
  timestamp?: number | undefined;
1431
1526
  }>, z.ZodObject<{
@@ -1444,19 +1539,19 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1444
1539
  toolName: string;
1445
1540
  }>;
1446
1541
  }, "strip", z.ZodTypeAny, {
1542
+ type: "tool_input_start";
1447
1543
  data: {
1448
1544
  toolCallId: string;
1449
1545
  toolName: string;
1450
1546
  };
1451
- type: "tool_input_start";
1452
1547
  requestId: string;
1453
1548
  timestamp?: number | undefined;
1454
1549
  }, {
1550
+ type: "tool_input_start";
1455
1551
  data: {
1456
1552
  toolCallId: string;
1457
1553
  toolName: string;
1458
1554
  };
1459
- type: "tool_input_start";
1460
1555
  requestId: string;
1461
1556
  timestamp?: number | undefined;
1462
1557
  }>, z.ZodObject<{
@@ -1475,19 +1570,19 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1475
1570
  inputTextDelta: string;
1476
1571
  }>;
1477
1572
  }, "strip", z.ZodTypeAny, {
1573
+ type: "tool_input_delta";
1478
1574
  data: {
1479
1575
  toolCallId: string;
1480
1576
  inputTextDelta: string;
1481
1577
  };
1482
- type: "tool_input_delta";
1483
1578
  requestId: string;
1484
1579
  timestamp?: number | undefined;
1485
1580
  }, {
1581
+ type: "tool_input_delta";
1486
1582
  data: {
1487
1583
  toolCallId: string;
1488
1584
  inputTextDelta: string;
1489
1585
  };
1490
- type: "tool_input_delta";
1491
1586
  requestId: string;
1492
1587
  timestamp?: number | undefined;
1493
1588
  }>, z.ZodObject<{
@@ -1503,15 +1598,15 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1503
1598
  simulated: z.ZodOptional<z.ZodBoolean>;
1504
1599
  result: z.ZodOptional<z.ZodUnknown>;
1505
1600
  }, "strip", z.ZodTypeAny, {
1601
+ status: "pending";
1506
1602
  toolCallId: string;
1507
1603
  toolName: string;
1508
- status: "pending";
1509
1604
  result?: unknown;
1510
1605
  simulated?: boolean | undefined;
1511
1606
  }, {
1607
+ status: "pending";
1512
1608
  toolCallId: string;
1513
1609
  toolName: string;
1514
- status: "pending";
1515
1610
  result?: unknown;
1516
1611
  simulated?: boolean | undefined;
1517
1612
  }>, z.ZodObject<{
@@ -1520,14 +1615,14 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1520
1615
  status: z.ZodLiteral<"success">;
1521
1616
  result: z.ZodOptional<z.ZodUnknown>;
1522
1617
  }, "strip", z.ZodTypeAny, {
1618
+ status: "success";
1523
1619
  toolCallId: string;
1524
1620
  toolName: string;
1525
- status: "success";
1526
1621
  result?: unknown;
1527
1622
  }, {
1623
+ status: "success";
1528
1624
  toolCallId: string;
1529
1625
  toolName: string;
1530
- status: "success";
1531
1626
  result?: unknown;
1532
1627
  }>, z.ZodObject<{
1533
1628
  toolCallId: z.ZodString;
@@ -1535,56 +1630,56 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1535
1630
  status: z.ZodLiteral<"failure">;
1536
1631
  error: z.ZodString;
1537
1632
  }, "strip", z.ZodTypeAny, {
1538
- toolCallId: string;
1539
- toolName: string;
1540
1633
  status: "failure";
1541
1634
  error: string;
1542
- }, {
1543
1635
  toolCallId: string;
1544
1636
  toolName: string;
1637
+ }, {
1545
1638
  status: "failure";
1546
1639
  error: string;
1640
+ toolCallId: string;
1641
+ toolName: string;
1547
1642
  }>]>;
1548
1643
  }, "strip", z.ZodTypeAny, {
1644
+ type: "tool_result";
1549
1645
  data: {
1646
+ status: "pending";
1550
1647
  toolCallId: string;
1551
1648
  toolName: string;
1552
- status: "pending";
1553
1649
  result?: unknown;
1554
1650
  simulated?: boolean | undefined;
1555
1651
  } | {
1652
+ status: "success";
1556
1653
  toolCallId: string;
1557
1654
  toolName: string;
1558
- status: "success";
1559
1655
  result?: unknown;
1560
1656
  } | {
1561
- toolCallId: string;
1562
- toolName: string;
1563
1657
  status: "failure";
1564
1658
  error: string;
1659
+ toolCallId: string;
1660
+ toolName: string;
1565
1661
  };
1566
- type: "tool_result";
1567
1662
  requestId: string;
1568
1663
  timestamp?: number | undefined;
1569
1664
  }, {
1665
+ type: "tool_result";
1570
1666
  data: {
1667
+ status: "pending";
1571
1668
  toolCallId: string;
1572
1669
  toolName: string;
1573
- status: "pending";
1574
1670
  result?: unknown;
1575
1671
  simulated?: boolean | undefined;
1576
1672
  } | {
1673
+ status: "success";
1577
1674
  toolCallId: string;
1578
1675
  toolName: string;
1579
- status: "success";
1580
1676
  result?: unknown;
1581
1677
  } | {
1582
- toolCallId: string;
1583
- toolName: string;
1584
1678
  status: "failure";
1585
1679
  error: string;
1680
+ toolCallId: string;
1681
+ toolName: string;
1586
1682
  };
1587
- type: "tool_result";
1588
1683
  requestId: string;
1589
1684
  timestamp?: number | undefined;
1590
1685
  }>, z.ZodObject<{
@@ -1600,17 +1695,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1600
1695
  reason: string;
1601
1696
  }>;
1602
1697
  }, "strip", z.ZodTypeAny, {
1698
+ type: "scratchpad_reset";
1603
1699
  data: {
1604
1700
  reason: string;
1605
1701
  };
1606
- type: "scratchpad_reset";
1607
1702
  requestId: string;
1608
1703
  timestamp?: number | undefined;
1609
1704
  }, {
1705
+ type: "scratchpad_reset";
1610
1706
  data: {
1611
1707
  reason: string;
1612
1708
  };
1613
- type: "scratchpad_reset";
1614
1709
  requestId: string;
1615
1710
  timestamp?: number | undefined;
1616
1711
  }>, z.ZodObject<{
@@ -1626,17 +1721,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1626
1721
  iteration: number;
1627
1722
  }>;
1628
1723
  }, "strip", z.ZodTypeAny, {
1724
+ type: "llm_start";
1629
1725
  data: {
1630
1726
  iteration: number;
1631
1727
  };
1632
- type: "llm_start";
1633
1728
  requestId: string;
1634
1729
  timestamp?: number | undefined;
1635
1730
  }, {
1731
+ type: "llm_start";
1636
1732
  data: {
1637
1733
  iteration: number;
1638
1734
  };
1639
- type: "llm_start";
1640
1735
  requestId: string;
1641
1736
  timestamp?: number | undefined;
1642
1737
  }>, z.ZodObject<{
@@ -1658,21 +1753,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1658
1753
  toolCallCount: number;
1659
1754
  }>;
1660
1755
  }, "strip", z.ZodTypeAny, {
1756
+ type: "llm_end";
1661
1757
  data: {
1662
1758
  iteration: number;
1663
1759
  hasText: boolean;
1664
1760
  toolCallCount: number;
1665
1761
  };
1666
- type: "llm_end";
1667
1762
  requestId: string;
1668
1763
  timestamp?: number | undefined;
1669
1764
  }, {
1765
+ type: "llm_end";
1670
1766
  data: {
1671
1767
  iteration: number;
1672
1768
  hasText: boolean;
1673
1769
  toolCallCount: number;
1674
1770
  };
1675
- type: "llm_end";
1676
1771
  requestId: string;
1677
1772
  timestamp?: number | undefined;
1678
1773
  }>, z.ZodObject<{
@@ -1688,17 +1783,100 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1688
1783
  delta: string;
1689
1784
  }>;
1690
1785
  }, "strip", z.ZodTypeAny, {
1786
+ type: "text_delta";
1691
1787
  data: {
1692
1788
  delta: string;
1693
1789
  };
1790
+ requestId: string;
1791
+ timestamp?: number | undefined;
1792
+ }, {
1694
1793
  type: "text_delta";
1794
+ data: {
1795
+ delta: string;
1796
+ };
1797
+ requestId: string;
1798
+ timestamp?: number | undefined;
1799
+ }>, z.ZodObject<{
1800
+ requestId: z.ZodString;
1801
+ timestamp: z.ZodOptional<z.ZodNumber>;
1802
+ } & {
1803
+ type: z.ZodLiteral<"reasoning_start">;
1804
+ data: z.ZodObject<{
1805
+ reasoningId: z.ZodString;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ reasoningId: string;
1808
+ }, {
1809
+ reasoningId: string;
1810
+ }>;
1811
+ }, "strip", z.ZodTypeAny, {
1812
+ type: "reasoning_start";
1813
+ data: {
1814
+ reasoningId: string;
1815
+ };
1695
1816
  requestId: string;
1696
1817
  timestamp?: number | undefined;
1697
1818
  }, {
1819
+ type: "reasoning_start";
1698
1820
  data: {
1821
+ reasoningId: string;
1822
+ };
1823
+ requestId: string;
1824
+ timestamp?: number | undefined;
1825
+ }>, z.ZodObject<{
1826
+ requestId: z.ZodString;
1827
+ timestamp: z.ZodOptional<z.ZodNumber>;
1828
+ } & {
1829
+ type: z.ZodLiteral<"reasoning_delta">;
1830
+ data: z.ZodObject<{
1831
+ reasoningId: z.ZodString;
1832
+ delta: z.ZodString;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ delta: string;
1835
+ reasoningId: string;
1836
+ }, {
1699
1837
  delta: string;
1838
+ reasoningId: string;
1839
+ }>;
1840
+ }, "strip", z.ZodTypeAny, {
1841
+ type: "reasoning_delta";
1842
+ data: {
1843
+ delta: string;
1844
+ reasoningId: string;
1845
+ };
1846
+ requestId: string;
1847
+ timestamp?: number | undefined;
1848
+ }, {
1849
+ type: "reasoning_delta";
1850
+ data: {
1851
+ delta: string;
1852
+ reasoningId: string;
1853
+ };
1854
+ requestId: string;
1855
+ timestamp?: number | undefined;
1856
+ }>, z.ZodObject<{
1857
+ requestId: z.ZodString;
1858
+ timestamp: z.ZodOptional<z.ZodNumber>;
1859
+ } & {
1860
+ type: z.ZodLiteral<"reasoning_end">;
1861
+ data: z.ZodObject<{
1862
+ reasoningId: z.ZodString;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ reasoningId: string;
1865
+ }, {
1866
+ reasoningId: string;
1867
+ }>;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ type: "reasoning_end";
1870
+ data: {
1871
+ reasoningId: string;
1872
+ };
1873
+ requestId: string;
1874
+ timestamp?: number | undefined;
1875
+ }, {
1876
+ type: "reasoning_end";
1877
+ data: {
1878
+ reasoningId: string;
1700
1879
  };
1701
- type: "text_delta";
1702
1880
  requestId: string;
1703
1881
  timestamp?: number | undefined;
1704
1882
  }>, z.ZodObject<{
@@ -1720,21 +1898,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1720
1898
  hasToolErrors: boolean;
1721
1899
  }>;
1722
1900
  }, "strip", z.ZodTypeAny, {
1901
+ type: "finish";
1723
1902
  data: {
1724
1903
  totalIterations: number;
1725
1904
  hasPendingTools: boolean;
1726
1905
  hasToolErrors: boolean;
1727
1906
  };
1728
- type: "finish";
1729
1907
  requestId: string;
1730
1908
  timestamp?: number | undefined;
1731
1909
  }, {
1910
+ type: "finish";
1732
1911
  data: {
1733
1912
  totalIterations: number;
1734
1913
  hasPendingTools: boolean;
1735
1914
  hasToolErrors: boolean;
1736
1915
  };
1737
- type: "finish";
1738
1916
  requestId: string;
1739
1917
  timestamp?: number | undefined;
1740
1918
  }>, z.ZodObject<{
@@ -1753,19 +1931,19 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1753
1931
  code?: string | undefined;
1754
1932
  }>;
1755
1933
  }, "strip", z.ZodTypeAny, {
1934
+ type: "error";
1756
1935
  data: {
1757
1936
  message: string;
1758
1937
  code?: string | undefined;
1759
1938
  };
1760
- type: "error";
1761
1939
  requestId: string;
1762
1940
  timestamp?: number | undefined;
1763
1941
  }, {
1942
+ type: "error";
1764
1943
  data: {
1765
1944
  message: string;
1766
1945
  code?: string | undefined;
1767
1946
  };
1768
- type: "error";
1769
1947
  requestId: string;
1770
1948
  timestamp?: number | undefined;
1771
1949
  }>, z.ZodObject<{
@@ -1781,17 +1959,17 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1781
1959
  messageCount: number;
1782
1960
  }>;
1783
1961
  }, "strip", z.ZodTypeAny, {
1962
+ type: "plan_generating";
1784
1963
  data: {
1785
1964
  messageCount: number;
1786
1965
  };
1787
- type: "plan_generating";
1788
1966
  requestId: string;
1789
1967
  timestamp?: number | undefined;
1790
1968
  }, {
1969
+ type: "plan_generating";
1791
1970
  data: {
1792
1971
  messageCount: number;
1793
1972
  };
1794
- type: "plan_generating";
1795
1973
  requestId: string;
1796
1974
  timestamp?: number | undefined;
1797
1975
  }>, z.ZodObject<{
@@ -1825,6 +2003,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1825
2003
  hasConflicts: z.ZodBoolean;
1826
2004
  }, z.ZodTypeAny, "passthrough">>;
1827
2005
  }, "strip", z.ZodTypeAny, {
2006
+ type: "plan_generated";
1828
2007
  data: {
1829
2008
  complexity: "low" | "medium" | "high";
1830
2009
  planId: string;
@@ -1836,10 +2015,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1836
2015
  } & {
1837
2016
  [k: string]: unknown;
1838
2017
  };
1839
- type: "plan_generated";
1840
2018
  requestId: string;
1841
2019
  timestamp?: number | undefined;
1842
2020
  }, {
2021
+ type: "plan_generated";
1843
2022
  data: {
1844
2023
  complexity: "low" | "medium" | "high";
1845
2024
  planId: string;
@@ -1851,7 +2030,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1851
2030
  } & {
1852
2031
  [k: string]: unknown;
1853
2032
  };
1854
- type: "plan_generated";
1855
2033
  requestId: string;
1856
2034
  timestamp?: number | undefined;
1857
2035
  }>, z.ZodObject<{
@@ -1876,23 +2054,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1876
2054
  planId: string;
1877
2055
  }>;
1878
2056
  }, "strip", z.ZodTypeAny, {
2057
+ type: "plan_step_started";
1879
2058
  data: {
1880
2059
  description: string;
1881
2060
  stepNumber: number;
1882
2061
  operationType: "read" | "write";
1883
2062
  planId: string;
1884
2063
  };
1885
- type: "plan_step_started";
1886
2064
  requestId: string;
1887
2065
  timestamp?: number | undefined;
1888
2066
  }, {
2067
+ type: "plan_step_started";
1889
2068
  data: {
1890
2069
  description: string;
1891
2070
  stepNumber: number;
1892
2071
  operationType: "read" | "write";
1893
2072
  planId: string;
1894
2073
  };
1895
- type: "plan_step_started";
1896
2074
  requestId: string;
1897
2075
  timestamp?: number | undefined;
1898
2076
  }>, z.ZodObject<{
@@ -1923,6 +2101,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1923
2101
  error?: string | undefined;
1924
2102
  }>;
1925
2103
  }, "strip", z.ZodTypeAny, {
2104
+ type: "plan_step_retrying";
1926
2105
  data: {
1927
2106
  stepNumber: number;
1928
2107
  planId: string;
@@ -1931,10 +2110,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1931
2110
  phase: "execution" | "simulation";
1932
2111
  error?: string | undefined;
1933
2112
  };
1934
- type: "plan_step_retrying";
1935
2113
  requestId: string;
1936
2114
  timestamp?: number | undefined;
1937
2115
  }, {
2116
+ type: "plan_step_retrying";
1938
2117
  data: {
1939
2118
  stepNumber: number;
1940
2119
  planId: string;
@@ -1943,7 +2122,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1943
2122
  phase: "execution" | "simulation";
1944
2123
  error?: string | undefined;
1945
2124
  };
1946
- type: "plan_step_retrying";
1947
2125
  requestId: string;
1948
2126
  timestamp?: number | undefined;
1949
2127
  }>, z.ZodObject<{
@@ -1968,27 +2146,27 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1968
2146
  error: z.ZodOptional<z.ZodString>;
1969
2147
  }, z.ZodTypeAny, "passthrough">>;
1970
2148
  }, "strip", z.ZodTypeAny, {
2149
+ type: "plan_step_completed";
1971
2150
  data: {
1972
- status: "completed" | "failed" | "skipped";
2151
+ status: "skipped" | "completed" | "failed";
1973
2152
  stepNumber: number;
1974
2153
  planId: string;
1975
2154
  error?: string | undefined;
1976
2155
  } & {
1977
2156
  [k: string]: unknown;
1978
2157
  };
1979
- type: "plan_step_completed";
1980
2158
  requestId: string;
1981
2159
  timestamp?: number | undefined;
1982
2160
  }, {
2161
+ type: "plan_step_completed";
1983
2162
  data: {
1984
- status: "completed" | "failed" | "skipped";
2163
+ status: "skipped" | "completed" | "failed";
1985
2164
  stepNumber: number;
1986
2165
  planId: string;
1987
2166
  error?: string | undefined;
1988
2167
  } & {
1989
2168
  [k: string]: unknown;
1990
2169
  };
1991
- type: "plan_step_completed";
1992
2170
  requestId: string;
1993
2171
  timestamp?: number | undefined;
1994
2172
  }>, z.ZodObject<{
@@ -2010,21 +2188,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2010
2188
  failedStepNumber?: number | undefined;
2011
2189
  }>;
2012
2190
  }, "strip", z.ZodTypeAny, {
2191
+ type: "plan_invalidated";
2013
2192
  data: {
2014
2193
  planId: string;
2015
2194
  reason: string;
2016
2195
  failedStepNumber?: number | undefined;
2017
2196
  };
2018
- type: "plan_invalidated";
2019
2197
  requestId: string;
2020
2198
  timestamp?: number | undefined;
2021
2199
  }, {
2200
+ type: "plan_invalidated";
2022
2201
  data: {
2023
2202
  planId: string;
2024
2203
  reason: string;
2025
2204
  failedStepNumber?: number | undefined;
2026
2205
  };
2027
- type: "plan_invalidated";
2028
2206
  requestId: string;
2029
2207
  timestamp?: number | undefined;
2030
2208
  }>, z.ZodObject<{
@@ -2046,21 +2224,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2046
2224
  preservedStepCount: number;
2047
2225
  }>;
2048
2226
  }, "strip", z.ZodTypeAny, {
2227
+ type: "replan_started";
2049
2228
  data: {
2050
2229
  previousPlanId: string;
2051
2230
  reason: string;
2052
2231
  preservedStepCount: number;
2053
2232
  };
2054
- type: "replan_started";
2055
2233
  requestId: string;
2056
2234
  timestamp?: number | undefined;
2057
2235
  }, {
2236
+ type: "replan_started";
2058
2237
  data: {
2059
2238
  previousPlanId: string;
2060
2239
  reason: string;
2061
2240
  preservedStepCount: number;
2062
2241
  };
2063
- type: "replan_started";
2064
2242
  requestId: string;
2065
2243
  timestamp?: number | undefined;
2066
2244
  }>, z.ZodObject<{
@@ -2082,6 +2260,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2082
2260
  newVersion: z.ZodNumber;
2083
2261
  }, z.ZodTypeAny, "passthrough">>;
2084
2262
  }, "strip", z.ZodTypeAny, {
2263
+ type: "replan_complete";
2085
2264
  data: {
2086
2265
  previousPlanId: string;
2087
2266
  newPlanId: string;
@@ -2089,10 +2268,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2089
2268
  } & {
2090
2269
  [k: string]: unknown;
2091
2270
  };
2092
- type: "replan_complete";
2093
2271
  requestId: string;
2094
2272
  timestamp?: number | undefined;
2095
2273
  }, {
2274
+ type: "replan_complete";
2096
2275
  data: {
2097
2276
  previousPlanId: string;
2098
2277
  newPlanId: string;
@@ -2100,7 +2279,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2100
2279
  } & {
2101
2280
  [k: string]: unknown;
2102
2281
  };
2103
- type: "replan_complete";
2104
2282
  requestId: string;
2105
2283
  timestamp?: number | undefined;
2106
2284
  }>, z.ZodObject<{
@@ -2125,23 +2303,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2125
2303
  totalSteps: number;
2126
2304
  }>;
2127
2305
  }, "strip", z.ZodTypeAny, {
2306
+ type: "plan_execution_complete";
2128
2307
  data: {
2129
2308
  status: "failed" | "complete" | "partial";
2130
2309
  planId: string;
2131
2310
  completedSteps: number;
2132
2311
  totalSteps: number;
2133
2312
  };
2134
- type: "plan_execution_complete";
2135
2313
  requestId: string;
2136
2314
  timestamp?: number | undefined;
2137
2315
  }, {
2316
+ type: "plan_execution_complete";
2138
2317
  data: {
2139
2318
  status: "failed" | "complete" | "partial";
2140
2319
  planId: string;
2141
2320
  completedSteps: number;
2142
2321
  totalSteps: number;
2143
2322
  };
2144
- type: "plan_execution_complete";
2145
2323
  requestId: string;
2146
2324
  timestamp?: number | undefined;
2147
2325
  }>, z.ZodObject<{
@@ -2196,6 +2374,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2196
2374
  reason?: string | undefined;
2197
2375
  }>;
2198
2376
  }, "strip", z.ZodTypeAny, {
2377
+ type: "plan_expired";
2199
2378
  data: {
2200
2379
  planId: string;
2201
2380
  phase: "expired";
@@ -2206,10 +2385,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2206
2385
  planVersion?: number | undefined;
2207
2386
  reason?: string | undefined;
2208
2387
  };
2209
- type: "plan_expired";
2210
2388
  requestId: string;
2211
2389
  timestamp?: number | undefined;
2212
2390
  }, {
2391
+ type: "plan_expired";
2213
2392
  data: {
2214
2393
  planId: string;
2215
2394
  phase: "expired";
@@ -2220,7 +2399,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2220
2399
  planVersion?: number | undefined;
2221
2400
  reason?: string | undefined;
2222
2401
  };
2223
- type: "plan_expired";
2224
2402
  requestId: string;
2225
2403
  timestamp?: number | undefined;
2226
2404
  }>, z.ZodObject<{
@@ -2245,23 +2423,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2245
2423
  simulationSummary: string;
2246
2424
  }>;
2247
2425
  }, "strip", z.ZodTypeAny, {
2426
+ type: "plan_step_simulated";
2248
2427
  data: {
2249
2428
  stepNumber: number;
2250
2429
  planId: string;
2251
2430
  simulationSuccess: boolean;
2252
2431
  simulationSummary: string;
2253
2432
  };
2254
- type: "plan_step_simulated";
2255
2433
  requestId: string;
2256
2434
  timestamp?: number | undefined;
2257
2435
  }, {
2436
+ type: "plan_step_simulated";
2258
2437
  data: {
2259
2438
  stepNumber: number;
2260
2439
  planId: string;
2261
2440
  simulationSuccess: boolean;
2262
2441
  simulationSummary: string;
2263
2442
  };
2264
- type: "plan_step_simulated";
2265
2443
  requestId: string;
2266
2444
  timestamp?: number | undefined;
2267
2445
  }>, z.ZodObject<{
@@ -2286,23 +2464,23 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2286
2464
  reason: string;
2287
2465
  }>;
2288
2466
  }, "strip", z.ZodTypeAny, {
2467
+ type: "plan_step_verification_passed";
2289
2468
  data: {
2290
2469
  stepNumber: number;
2291
2470
  planId: string;
2292
2471
  confidence: number;
2293
2472
  reason: string;
2294
2473
  };
2295
- type: "plan_step_verification_passed";
2296
2474
  requestId: string;
2297
2475
  timestamp?: number | undefined;
2298
2476
  }, {
2477
+ type: "plan_step_verification_passed";
2299
2478
  data: {
2300
2479
  stepNumber: number;
2301
2480
  planId: string;
2302
2481
  confidence: number;
2303
2482
  reason: string;
2304
2483
  };
2305
- type: "plan_step_verification_passed";
2306
2484
  requestId: string;
2307
2485
  timestamp?: number | undefined;
2308
2486
  }>, z.ZodObject<{
@@ -2353,6 +2531,7 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2353
2531
  reason: string;
2354
2532
  }>;
2355
2533
  }, "strip", z.ZodTypeAny, {
2534
+ type: "plan_step_verification_failed";
2356
2535
  data: {
2357
2536
  stepNumber: number;
2358
2537
  planId: string;
@@ -2365,10 +2544,10 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2365
2544
  recommendedAction: "continue" | "replan" | "ask_user";
2366
2545
  reason: string;
2367
2546
  };
2368
- type: "plan_step_verification_failed";
2369
2547
  requestId: string;
2370
2548
  timestamp?: number | undefined;
2371
2549
  }, {
2550
+ type: "plan_step_verification_failed";
2372
2551
  data: {
2373
2552
  stepNumber: number;
2374
2553
  planId: string;
@@ -2381,7 +2560,6 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2381
2560
  recommendedAction: "continue" | "replan" | "ask_user";
2382
2561
  reason: string;
2383
2562
  };
2384
- type: "plan_step_verification_failed";
2385
2563
  requestId: string;
2386
2564
  timestamp?: number | undefined;
2387
2565
  }>, z.ZodObject<{
@@ -2403,21 +2581,21 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
2403
2581
  phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning" | "expired";
2404
2582
  }>;
2405
2583
  }, "strip", z.ZodTypeAny, {
2584
+ type: "plan_execution_failed";
2406
2585
  data: {
2407
2586
  error: string;
2408
2587
  planId: string;
2409
2588
  phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning" | "expired";
2410
2589
  };
2411
- type: "plan_execution_failed";
2412
2590
  requestId: string;
2413
2591
  timestamp?: number | undefined;
2414
2592
  }, {
2593
+ type: "plan_execution_failed";
2415
2594
  data: {
2416
2595
  error: string;
2417
2596
  planId: string;
2418
2597
  phase: "completed" | "failed" | "awaiting_user_execution" | "idle" | "generating_plan" | "awaiting_plan_acceptance" | "executing" | "awaiting_user_decision" | "replanning" | "expired";
2419
2598
  };
2420
- type: "plan_execution_failed";
2421
2599
  requestId: string;
2422
2600
  timestamp?: number | undefined;
2423
2601
  }>]>;
@@ -8351,6 +8529,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
8351
8529
  nativeTokenSymbol?: string | undefined;
8352
8530
  }>>;
8353
8531
  }, "strict", z.ZodTypeAny, {
8532
+ type: "tool-call";
8354
8533
  toolCallId: string;
8355
8534
  toolName: string;
8356
8535
  input: {
@@ -9224,7 +9403,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
9224
9403
  amountUSDValue?: string | undefined;
9225
9404
  } | undefined;
9226
9405
  };
9227
- type: "tool-call";
9228
9406
  simulated?: boolean | undefined;
9229
9407
  simulation?: {
9230
9408
  willSucceed: boolean;
@@ -9273,6 +9451,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
9273
9451
  nativeTokenSymbol?: string | undefined;
9274
9452
  } | undefined;
9275
9453
  }, {
9454
+ type: "tool-call";
9276
9455
  toolCallId: string;
9277
9456
  toolName: string;
9278
9457
  input: {
@@ -10146,7 +10325,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
10146
10325
  amountUSDValue?: string | undefined;
10147
10326
  } | undefined;
10148
10327
  };
10149
- type: "tool-call";
10150
10328
  simulated?: boolean | undefined;
10151
10329
  simulation?: {
10152
10330
  willSucceed: boolean;
@@ -10285,6 +10463,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
10285
10463
  messages: ModelMessage[];
10286
10464
  requestId: string;
10287
10465
  pendingTools?: {
10466
+ type: "tool-call";
10288
10467
  toolCallId: string;
10289
10468
  toolName: string;
10290
10469
  input: {
@@ -11158,7 +11337,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
11158
11337
  amountUSDValue?: string | undefined;
11159
11338
  } | undefined;
11160
11339
  };
11161
- type: "tool-call";
11162
11340
  simulated?: boolean | undefined;
11163
11341
  simulation?: {
11164
11342
  willSucceed: boolean;
@@ -11234,6 +11412,7 @@ export declare const resultEventDataSchema: z.ZodObject<{
11234
11412
  messages: ModelMessage[];
11235
11413
  requestId: string;
11236
11414
  pendingTools?: {
11415
+ type: "tool-call";
11237
11416
  toolCallId: string;
11238
11417
  toolName: string;
11239
11418
  input: {
@@ -12107,7 +12286,6 @@ export declare const resultEventDataSchema: z.ZodObject<{
12107
12286
  amountUSDValue?: string | undefined;
12108
12287
  } | undefined;
12109
12288
  };
12110
- type: "tool-call";
12111
12289
  simulated?: boolean | undefined;
12112
12290
  simulation?: {
12113
12291
  willSucceed: boolean;
@@ -12195,19 +12373,19 @@ export declare const errorEventDataSchema: z.ZodObject<{
12195
12373
  code?: string | undefined;
12196
12374
  }>;
12197
12375
  }, "strip", z.ZodTypeAny, {
12376
+ type: "error";
12198
12377
  data: {
12199
12378
  message: string;
12200
12379
  code?: string | undefined;
12201
12380
  };
12202
- type: "error";
12203
12381
  requestId: string;
12204
12382
  timestamp?: number | undefined;
12205
12383
  }, {
12384
+ type: "error";
12206
12385
  data: {
12207
12386
  message: string;
12208
12387
  code?: string | undefined;
12209
12388
  };
12210
- type: "error";
12211
12389
  requestId: string;
12212
12390
  timestamp?: number | undefined;
12213
12391
  }>;
@@ -18156,6 +18334,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
18156
18334
  nativeTokenSymbol?: string | undefined;
18157
18335
  }>>;
18158
18336
  }, "strict", z.ZodTypeAny, {
18337
+ type: "tool-call";
18159
18338
  toolCallId: string;
18160
18339
  toolName: string;
18161
18340
  input: {
@@ -19029,7 +19208,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
19029
19208
  amountUSDValue?: string | undefined;
19030
19209
  } | undefined;
19031
19210
  };
19032
- type: "tool-call";
19033
19211
  simulated?: boolean | undefined;
19034
19212
  simulation?: {
19035
19213
  willSucceed: boolean;
@@ -19078,6 +19256,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
19078
19256
  nativeTokenSymbol?: string | undefined;
19079
19257
  } | undefined;
19080
19258
  }, {
19259
+ type: "tool-call";
19081
19260
  toolCallId: string;
19082
19261
  toolName: string;
19083
19262
  input: {
@@ -19951,7 +20130,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
19951
20130
  amountUSDValue?: string | undefined;
19952
20131
  } | undefined;
19953
20132
  };
19954
- type: "tool-call";
19955
20133
  simulated?: boolean | undefined;
19956
20134
  simulation?: {
19957
20135
  willSucceed: boolean;
@@ -20090,6 +20268,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
20090
20268
  messages: ModelMessage[];
20091
20269
  requestId: string;
20092
20270
  pendingTools?: {
20271
+ type: "tool-call";
20093
20272
  toolCallId: string;
20094
20273
  toolName: string;
20095
20274
  input: {
@@ -20963,7 +21142,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
20963
21142
  amountUSDValue?: string | undefined;
20964
21143
  } | undefined;
20965
21144
  };
20966
- type: "tool-call";
20967
21145
  simulated?: boolean | undefined;
20968
21146
  simulation?: {
20969
21147
  willSucceed: boolean;
@@ -21039,6 +21217,7 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
21039
21217
  messages: ModelMessage[];
21040
21218
  requestId: string;
21041
21219
  pendingTools?: {
21220
+ type: "tool-call";
21042
21221
  toolCallId: string;
21043
21222
  toolName: string;
21044
21223
  input: {
@@ -21912,7 +22091,6 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
21912
22091
  amountUSDValue?: string | undefined;
21913
22092
  } | undefined;
21914
22093
  };
21915
- type: "tool-call";
21916
22094
  simulated?: boolean | undefined;
21917
22095
  simulation?: {
21918
22096
  willSucceed: boolean;
@@ -21996,19 +22174,19 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
21996
22174
  code?: string | undefined;
21997
22175
  }>;
21998
22176
  }, "strip", z.ZodTypeAny, {
22177
+ type: "error";
21999
22178
  data: {
22000
22179
  message: string;
22001
22180
  code?: string | undefined;
22002
22181
  };
22003
- type: "error";
22004
22182
  requestId: string;
22005
22183
  timestamp?: number | undefined;
22006
22184
  }, {
22185
+ type: "error";
22007
22186
  data: {
22008
22187
  message: string;
22009
22188
  code?: string | undefined;
22010
22189
  };
22011
- type: "error";
22012
22190
  requestId: string;
22013
22191
  timestamp?: number | undefined;
22014
22192
  }>, z.ZodObject<{