@handlebar/governance-schema 0.0.6-dev.7 → 0.0.6-dev.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,11 +36,11 @@ export declare const RunStartedEventSchema: z.ZodObject<{
36
36
  }, z.core.$strip>;
37
37
  enduser: z.ZodOptional<z.ZodObject<{
38
38
  externalId: z.ZodString;
39
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
39
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
40
40
  name: z.ZodOptional<z.ZodString>;
41
41
  group: z.ZodOptional<z.ZodObject<{
42
42
  externalId: z.ZodString;
43
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
43
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
44
44
  name: z.ZodOptional<z.ZodString>;
45
45
  }, z.core.$strip>>;
46
46
  }, z.core.$strip>>;
@@ -169,11 +169,11 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
169
169
  }, z.core.$strip>;
170
170
  enduser: z.ZodOptional<z.ZodObject<{
171
171
  externalId: z.ZodString;
172
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
172
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
173
173
  name: z.ZodOptional<z.ZodString>;
174
174
  group: z.ZodOptional<z.ZodObject<{
175
175
  externalId: z.ZodString;
176
- metadata: z.ZodRecord<z.ZodString, z.ZodString>;
176
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
177
177
  name: z.ZodOptional<z.ZodString>;
178
178
  }, z.core.$strip>>;
179
179
  }, z.core.$strip>>;
@@ -223,7 +223,7 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
223
223
  code: z.ZodCustom<import("./governance-actions").GovernanceCode, import("./governance-actions").GovernanceCode>;
224
224
  matchedRuleIds: z.ZodArray<z.ZodString>;
225
225
  appliedActions: z.ZodArray<z.ZodObject<{
226
- type: z.ZodCustom<"allow" | "hitl" | "block" | "notify" | "log", "allow" | "hitl" | "block" | "notify" | "log">;
226
+ type: z.ZodCustom<"allow" | "block" | "hitl" | "notify" | "log", "allow" | "block" | "hitl" | "notify" | "log">;
227
227
  ruleId: z.ZodString;
228
228
  }, z.core.$strip>>;
229
229
  reason: z.ZodOptional<z.ZodString>;
@@ -337,6 +337,10 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
337
337
  redactedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
338
338
  sizeBytesApprox: z.ZodOptional<z.ZodNumber>;
339
339
  }, z.core.$strip>>;
340
+ debug: z.ZodOptional<z.ZodObject<{
341
+ approxTokens: z.ZodOptional<z.ZodNumber>;
342
+ chars: z.ZodOptional<z.ZodNumber>;
343
+ }, z.core.$strip>>;
340
344
  }, z.core.$strip>;
341
345
  }, z.core.$strip>, z.ZodObject<{
342
346
  schema: z.ZodLiteral<"handlebar.audit.v1">;
@@ -431,15 +435,15 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
431
435
  data: z.ZodObject<{
432
436
  messageId: z.ZodUUID;
433
437
  role: z.ZodEnum<{
434
- tool: "tool";
435
438
  system: "system";
436
439
  developer: "developer";
437
440
  user: "user";
438
441
  assistant: "assistant";
442
+ tool: "tool";
439
443
  }>;
440
444
  kind: z.ZodEnum<{
441
- output: "output";
442
445
  input: "input";
446
+ output: "output";
443
447
  tool_call: "tool_call";
444
448
  tool_result: "tool_result";
445
449
  observation: "observation";
@@ -452,6 +456,1562 @@ export declare const AuditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
452
456
  turnIndex: z.ZodOptional<z.ZodNumber>;
453
457
  name: z.ZodOptional<z.ZodString>;
454
458
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
459
+ "~standard": z.ZodStandardSchemaWithJSON<{
460
+ messageId: z.ZodUUID;
461
+ role: z.ZodEnum<{
462
+ system: "system";
463
+ developer: "developer";
464
+ user: "user";
465
+ assistant: "assistant";
466
+ tool: "tool";
467
+ }>;
468
+ kind: z.ZodEnum<{
469
+ input: "input";
470
+ output: "output";
471
+ tool_call: "tool_call";
472
+ tool_result: "tool_result";
473
+ observation: "observation";
474
+ internal_summary: "internal_summary";
475
+ thinking: "thinking";
476
+ }>;
477
+ content: z.ZodString;
478
+ contentTruncated: z.ZodBoolean;
479
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
480
+ turnIndex: z.ZodOptional<z.ZodNumber>;
481
+ name: z.ZodOptional<z.ZodString>;
482
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
483
+ } & z.ZodObject<{
484
+ debug: z.ZodOptional<z.ZodObject<{
485
+ approxTokens: z.ZodOptional<z.ZodNumber>;
486
+ chars: z.ZodOptional<z.ZodNumber>;
487
+ }, z.core.$strip>>;
488
+ }, z.core.$strip>>;
489
+ shape: {
490
+ debug: z.ZodOptional<z.ZodObject<{
491
+ approxTokens: z.ZodOptional<z.ZodNumber>;
492
+ chars: z.ZodOptional<z.ZodNumber>;
493
+ }, z.core.$strip>>;
494
+ };
495
+ keyof: () => z.ZodEnum<{
496
+ debug: "debug";
497
+ }>;
498
+ catchall: <T extends z.core.SomeType>(schema: T) => z.ZodObject<{
499
+ debug: z.ZodOptional<z.ZodObject<{
500
+ approxTokens: z.ZodOptional<z.ZodNumber>;
501
+ chars: z.ZodOptional<z.ZodNumber>;
502
+ }, z.core.$strip>>;
503
+ }, z.core.$catchall<T>>;
504
+ passthrough: () => z.ZodObject<{
505
+ debug: z.ZodOptional<z.ZodObject<{
506
+ approxTokens: z.ZodOptional<z.ZodNumber>;
507
+ chars: z.ZodOptional<z.ZodNumber>;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$loose>;
510
+ loose: () => z.ZodObject<{
511
+ debug: z.ZodOptional<z.ZodObject<{
512
+ approxTokens: z.ZodOptional<z.ZodNumber>;
513
+ chars: z.ZodOptional<z.ZodNumber>;
514
+ }, z.core.$strip>>;
515
+ }, z.core.$loose>;
516
+ strict: () => z.ZodObject<{
517
+ debug: z.ZodOptional<z.ZodObject<{
518
+ approxTokens: z.ZodOptional<z.ZodNumber>;
519
+ chars: z.ZodOptional<z.ZodNumber>;
520
+ }, z.core.$strip>>;
521
+ }, z.core.$strict>;
522
+ strip: () => z.ZodObject<{
523
+ debug: z.ZodOptional<z.ZodObject<{
524
+ approxTokens: z.ZodOptional<z.ZodNumber>;
525
+ chars: z.ZodOptional<z.ZodNumber>;
526
+ }, z.core.$strip>>;
527
+ }, z.core.$strip>;
528
+ extend: <U extends z.core.$ZodLooseShape>(shape: U) => z.ZodObject<("debug" & keyof U extends never ? {
529
+ debug: z.ZodOptional<z.ZodObject<{
530
+ approxTokens: z.ZodOptional<z.ZodNumber>;
531
+ chars: z.ZodOptional<z.ZodNumber>;
532
+ }, z.core.$strip>>;
533
+ } & U : ({
534
+ debug: z.ZodOptional<z.ZodObject<{
535
+ approxTokens: z.ZodOptional<z.ZodNumber>;
536
+ chars: z.ZodOptional<z.ZodNumber>;
537
+ }, z.core.$strip>>;
538
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
539
+ safeExtend: <U extends z.core.$ZodLooseShape>(shape: z.SafeExtendShape<{
540
+ debug: z.ZodOptional<z.ZodObject<{
541
+ approxTokens: z.ZodOptional<z.ZodNumber>;
542
+ chars: z.ZodOptional<z.ZodNumber>;
543
+ }, z.core.$strip>>;
544
+ }, U> & Partial<Record<"debug", z.core.SomeType>>) => z.ZodObject<("debug" & keyof U extends never ? {
545
+ debug: z.ZodOptional<z.ZodObject<{
546
+ approxTokens: z.ZodOptional<z.ZodNumber>;
547
+ chars: z.ZodOptional<z.ZodNumber>;
548
+ }, z.core.$strip>>;
549
+ } & U : ({
550
+ debug: z.ZodOptional<z.ZodObject<{
551
+ approxTokens: z.ZodOptional<z.ZodNumber>;
552
+ chars: z.ZodOptional<z.ZodNumber>;
553
+ }, z.core.$strip>>;
554
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U ? never : K]: T_1[K]; } : never) & { [K_1 in keyof U]: U[K_1]; }) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
555
+ merge: <U extends z.ZodObject>(other: U) => z.ZodObject<("debug" & keyof U["shape"] extends never ? {
556
+ debug: z.ZodOptional<z.ZodObject<{
557
+ approxTokens: z.ZodOptional<z.ZodNumber>;
558
+ chars: z.ZodOptional<z.ZodNumber>;
559
+ }, z.core.$strip>>;
560
+ } & U["shape"] : ({
561
+ debug: z.ZodOptional<z.ZodObject<{
562
+ approxTokens: z.ZodOptional<z.ZodNumber>;
563
+ chars: z.ZodOptional<z.ZodNumber>;
564
+ }, z.core.$strip>>;
565
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof U["shape"] ? never : K]: T_1[K]; } : never) & (U["shape"] extends infer T_2 extends z.core.util.SomeObject ? { [K_1 in keyof T_2]: T_2[K_1]; } : never)) extends infer T ? { [k in keyof T]: T[k]; } : never, U["_zod"]["config"]>;
566
+ pick: <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>) => z.ZodObject<Pick<{
567
+ debug: z.ZodOptional<z.ZodObject<{
568
+ approxTokens: z.ZodOptional<z.ZodNumber>;
569
+ chars: z.ZodOptional<z.ZodNumber>;
570
+ }, z.core.$strip>>;
571
+ }, Extract<"debug", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
572
+ omit: <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>) => z.ZodObject<Omit<{
573
+ debug: z.ZodOptional<z.ZodObject<{
574
+ approxTokens: z.ZodOptional<z.ZodNumber>;
575
+ chars: z.ZodOptional<z.ZodNumber>;
576
+ }, z.core.$strip>>;
577
+ }, Extract<"debug", keyof M>> extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
578
+ partial: {
579
+ (): z.ZodObject<{
580
+ debug: z.ZodOptional<z.ZodOptional<z.ZodObject<{
581
+ approxTokens: z.ZodOptional<z.ZodNumber>;
582
+ chars: z.ZodOptional<z.ZodNumber>;
583
+ }, z.core.$strip>>>;
584
+ }, z.core.$strip>;
585
+ <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>): z.ZodObject<{
586
+ debug: "debug" extends infer T ? T extends "debug" ? T extends keyof M ? z.ZodOptional<{
587
+ debug: z.ZodOptional<z.ZodObject<{
588
+ approxTokens: z.ZodOptional<z.ZodNumber>;
589
+ chars: z.ZodOptional<z.ZodNumber>;
590
+ }, z.core.$strip>>;
591
+ }[T]> : {
592
+ debug: z.ZodOptional<z.ZodObject<{
593
+ approxTokens: z.ZodOptional<z.ZodNumber>;
594
+ chars: z.ZodOptional<z.ZodNumber>;
595
+ }, z.core.$strip>>;
596
+ }[T] : never : never;
597
+ }, z.core.$strip>;
598
+ };
599
+ required: {
600
+ (): z.ZodObject<{
601
+ debug: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
602
+ approxTokens: z.ZodOptional<z.ZodNumber>;
603
+ chars: z.ZodOptional<z.ZodNumber>;
604
+ }, z.core.$strip>>>;
605
+ }, z.core.$strip>;
606
+ <M extends z.core.util.Mask<"debug">>(mask: M & Record<Exclude<keyof M, "debug">, never>): z.ZodObject<{
607
+ debug: "debug" extends infer T ? T extends "debug" ? T extends keyof M ? z.ZodNonOptional<{
608
+ debug: z.ZodOptional<z.ZodObject<{
609
+ approxTokens: z.ZodOptional<z.ZodNumber>;
610
+ chars: z.ZodOptional<z.ZodNumber>;
611
+ }, z.core.$strip>>;
612
+ }[T]> : {
613
+ debug: z.ZodOptional<z.ZodObject<{
614
+ approxTokens: z.ZodOptional<z.ZodNumber>;
615
+ chars: z.ZodOptional<z.ZodNumber>;
616
+ }, z.core.$strip>>;
617
+ }[T] : never : never;
618
+ }, z.core.$strip>;
619
+ };
620
+ def: z.core.$ZodObjectDef<{
621
+ debug: z.ZodOptional<z.ZodObject<{
622
+ approxTokens: z.ZodOptional<z.ZodNumber>;
623
+ chars: z.ZodOptional<z.ZodNumber>;
624
+ }, z.core.$strip>>;
625
+ }>;
626
+ type: "object";
627
+ _def: z.core.$ZodObjectDef<{
628
+ debug: z.ZodOptional<z.ZodObject<{
629
+ approxTokens: z.ZodOptional<z.ZodNumber>;
630
+ chars: z.ZodOptional<z.ZodNumber>;
631
+ }, z.core.$strip>>;
632
+ }>;
633
+ _output: {
634
+ debug?: {
635
+ approxTokens?: number | undefined;
636
+ chars?: number | undefined;
637
+ } | undefined;
638
+ };
639
+ _input: {
640
+ debug?: {
641
+ approxTokens?: number | undefined;
642
+ chars?: number | undefined;
643
+ } | undefined;
644
+ };
645
+ toJSONSchema: (params?: z.core.ToJSONSchemaParams) => z.core.ZodStandardJSONSchemaPayload<{
646
+ messageId: z.ZodUUID;
647
+ role: z.ZodEnum<{
648
+ system: "system";
649
+ developer: "developer";
650
+ user: "user";
651
+ assistant: "assistant";
652
+ tool: "tool";
653
+ }>;
654
+ kind: z.ZodEnum<{
655
+ input: "input";
656
+ output: "output";
657
+ tool_call: "tool_call";
658
+ tool_result: "tool_result";
659
+ observation: "observation";
660
+ internal_summary: "internal_summary";
661
+ thinking: "thinking";
662
+ }>;
663
+ content: z.ZodString;
664
+ contentTruncated: z.ZodBoolean;
665
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
666
+ turnIndex: z.ZodOptional<z.ZodNumber>;
667
+ name: z.ZodOptional<z.ZodString>;
668
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
669
+ } & z.ZodObject<{
670
+ debug: z.ZodOptional<z.ZodObject<{
671
+ approxTokens: z.ZodOptional<z.ZodNumber>;
672
+ chars: z.ZodOptional<z.ZodNumber>;
673
+ }, z.core.$strip>>;
674
+ }, z.core.$strip>>;
675
+ check: (...checks: (z.core.CheckFn<{
676
+ debug?: {
677
+ approxTokens?: number | undefined;
678
+ chars?: number | undefined;
679
+ } | undefined;
680
+ }> | z.core.$ZodCheck<{
681
+ debug?: {
682
+ approxTokens?: number | undefined;
683
+ chars?: number | undefined;
684
+ } | undefined;
685
+ }>)[]) => {
686
+ messageId: z.ZodUUID;
687
+ role: z.ZodEnum<{
688
+ system: "system";
689
+ developer: "developer";
690
+ user: "user";
691
+ assistant: "assistant";
692
+ tool: "tool";
693
+ }>;
694
+ kind: z.ZodEnum<{
695
+ input: "input";
696
+ output: "output";
697
+ tool_call: "tool_call";
698
+ tool_result: "tool_result";
699
+ observation: "observation";
700
+ internal_summary: "internal_summary";
701
+ thinking: "thinking";
702
+ }>;
703
+ content: z.ZodString;
704
+ contentTruncated: z.ZodBoolean;
705
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
706
+ turnIndex: z.ZodOptional<z.ZodNumber>;
707
+ name: z.ZodOptional<z.ZodString>;
708
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
709
+ } & z.ZodObject<{
710
+ debug: z.ZodOptional<z.ZodObject<{
711
+ approxTokens: z.ZodOptional<z.ZodNumber>;
712
+ chars: z.ZodOptional<z.ZodNumber>;
713
+ }, z.core.$strip>>;
714
+ }, z.core.$strip>;
715
+ with: (...checks: (z.core.CheckFn<{
716
+ debug?: {
717
+ approxTokens?: number | undefined;
718
+ chars?: number | undefined;
719
+ } | undefined;
720
+ }> | z.core.$ZodCheck<{
721
+ debug?: {
722
+ approxTokens?: number | undefined;
723
+ chars?: number | undefined;
724
+ } | undefined;
725
+ }>)[]) => {
726
+ messageId: z.ZodUUID;
727
+ role: z.ZodEnum<{
728
+ system: "system";
729
+ developer: "developer";
730
+ user: "user";
731
+ assistant: "assistant";
732
+ tool: "tool";
733
+ }>;
734
+ kind: z.ZodEnum<{
735
+ input: "input";
736
+ output: "output";
737
+ tool_call: "tool_call";
738
+ tool_result: "tool_result";
739
+ observation: "observation";
740
+ internal_summary: "internal_summary";
741
+ thinking: "thinking";
742
+ }>;
743
+ content: z.ZodString;
744
+ contentTruncated: z.ZodBoolean;
745
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
746
+ turnIndex: z.ZodOptional<z.ZodNumber>;
747
+ name: z.ZodOptional<z.ZodString>;
748
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
749
+ } & z.ZodObject<{
750
+ debug: z.ZodOptional<z.ZodObject<{
751
+ approxTokens: z.ZodOptional<z.ZodNumber>;
752
+ chars: z.ZodOptional<z.ZodNumber>;
753
+ }, z.core.$strip>>;
754
+ }, z.core.$strip>;
755
+ clone: (def?: z.core.$ZodObjectDef<{
756
+ debug: z.ZodOptional<z.ZodObject<{
757
+ approxTokens: z.ZodOptional<z.ZodNumber>;
758
+ chars: z.ZodOptional<z.ZodNumber>;
759
+ }, z.core.$strip>>;
760
+ }> | undefined, params?: {
761
+ parent: boolean;
762
+ } | undefined) => {
763
+ messageId: z.ZodUUID;
764
+ role: z.ZodEnum<{
765
+ system: "system";
766
+ developer: "developer";
767
+ user: "user";
768
+ assistant: "assistant";
769
+ tool: "tool";
770
+ }>;
771
+ kind: z.ZodEnum<{
772
+ input: "input";
773
+ output: "output";
774
+ tool_call: "tool_call";
775
+ tool_result: "tool_result";
776
+ observation: "observation";
777
+ internal_summary: "internal_summary";
778
+ thinking: "thinking";
779
+ }>;
780
+ content: z.ZodString;
781
+ contentTruncated: z.ZodBoolean;
782
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
783
+ turnIndex: z.ZodOptional<z.ZodNumber>;
784
+ name: z.ZodOptional<z.ZodString>;
785
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
+ } & z.ZodObject<{
787
+ debug: z.ZodOptional<z.ZodObject<{
788
+ approxTokens: z.ZodOptional<z.ZodNumber>;
789
+ chars: z.ZodOptional<z.ZodNumber>;
790
+ }, z.core.$strip>>;
791
+ }, z.core.$strip>;
792
+ register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: {
793
+ messageId: z.ZodUUID;
794
+ role: z.ZodEnum<{
795
+ system: "system";
796
+ developer: "developer";
797
+ user: "user";
798
+ assistant: "assistant";
799
+ tool: "tool";
800
+ }>;
801
+ kind: z.ZodEnum<{
802
+ input: "input";
803
+ output: "output";
804
+ tool_call: "tool_call";
805
+ tool_result: "tool_result";
806
+ observation: "observation";
807
+ internal_summary: "internal_summary";
808
+ thinking: "thinking";
809
+ }>;
810
+ content: z.ZodString;
811
+ contentTruncated: z.ZodBoolean;
812
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
813
+ turnIndex: z.ZodOptional<z.ZodNumber>;
814
+ name: z.ZodOptional<z.ZodString>;
815
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
816
+ } & z.ZodObject<{
817
+ debug: z.ZodOptional<z.ZodObject<{
818
+ approxTokens: z.ZodOptional<z.ZodNumber>;
819
+ chars: z.ZodOptional<z.ZodNumber>;
820
+ }, z.core.$strip>>;
821
+ }, z.core.$strip> extends infer T ? T extends {
822
+ messageId: z.ZodUUID;
823
+ role: z.ZodEnum<{
824
+ system: "system";
825
+ developer: "developer";
826
+ user: "user";
827
+ assistant: "assistant";
828
+ tool: "tool";
829
+ }>;
830
+ kind: z.ZodEnum<{
831
+ input: "input";
832
+ output: "output";
833
+ tool_call: "tool_call";
834
+ tool_result: "tool_result";
835
+ observation: "observation";
836
+ internal_summary: "internal_summary";
837
+ thinking: "thinking";
838
+ }>;
839
+ content: z.ZodString;
840
+ contentTruncated: z.ZodBoolean;
841
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
842
+ turnIndex: z.ZodOptional<z.ZodNumber>;
843
+ name: z.ZodOptional<z.ZodString>;
844
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
845
+ } & z.ZodObject<{
846
+ debug: z.ZodOptional<z.ZodObject<{
847
+ approxTokens: z.ZodOptional<z.ZodNumber>;
848
+ chars: z.ZodOptional<z.ZodNumber>;
849
+ }, z.core.$strip>>;
850
+ }, z.core.$strip> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & {
851
+ messageId: z.ZodUUID;
852
+ role: z.ZodEnum<{
853
+ system: "system";
854
+ developer: "developer";
855
+ user: "user";
856
+ assistant: "assistant";
857
+ tool: "tool";
858
+ }>;
859
+ kind: z.ZodEnum<{
860
+ input: "input";
861
+ output: "output";
862
+ tool_call: "tool_call";
863
+ tool_result: "tool_result";
864
+ observation: "observation";
865
+ internal_summary: "internal_summary";
866
+ thinking: "thinking";
867
+ }>;
868
+ content: z.ZodString;
869
+ contentTruncated: z.ZodBoolean;
870
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
871
+ turnIndex: z.ZodOptional<z.ZodNumber>;
872
+ name: z.ZodOptional<z.ZodString>;
873
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
874
+ } & z.ZodObject<{
875
+ debug: z.ZodOptional<z.ZodObject<{
876
+ approxTokens: z.ZodOptional<z.ZodNumber>;
877
+ chars: z.ZodOptional<z.ZodNumber>;
878
+ }, z.core.$strip>>;
879
+ }, z.core.$strip>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & {
880
+ messageId: z.ZodUUID;
881
+ role: z.ZodEnum<{
882
+ system: "system";
883
+ developer: "developer";
884
+ user: "user";
885
+ assistant: "assistant";
886
+ tool: "tool";
887
+ }>;
888
+ kind: z.ZodEnum<{
889
+ input: "input";
890
+ output: "output";
891
+ tool_call: "tool_call";
892
+ tool_result: "tool_result";
893
+ observation: "observation";
894
+ internal_summary: "internal_summary";
895
+ thinking: "thinking";
896
+ }>;
897
+ content: z.ZodString;
898
+ contentTruncated: z.ZodBoolean;
899
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
900
+ turnIndex: z.ZodOptional<z.ZodNumber>;
901
+ name: z.ZodOptional<z.ZodString>;
902
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
903
+ } & z.ZodObject<{
904
+ debug: z.ZodOptional<z.ZodObject<{
905
+ approxTokens: z.ZodOptional<z.ZodNumber>;
906
+ chars: z.ZodOptional<z.ZodNumber>;
907
+ }, z.core.$strip>>;
908
+ }, z.core.$strip>>] : ["Incompatible schema"] : never : never) => {
909
+ messageId: z.ZodUUID;
910
+ role: z.ZodEnum<{
911
+ system: "system";
912
+ developer: "developer";
913
+ user: "user";
914
+ assistant: "assistant";
915
+ tool: "tool";
916
+ }>;
917
+ kind: z.ZodEnum<{
918
+ input: "input";
919
+ output: "output";
920
+ tool_call: "tool_call";
921
+ tool_result: "tool_result";
922
+ observation: "observation";
923
+ internal_summary: "internal_summary";
924
+ thinking: "thinking";
925
+ }>;
926
+ content: z.ZodString;
927
+ contentTruncated: z.ZodBoolean;
928
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
929
+ turnIndex: z.ZodOptional<z.ZodNumber>;
930
+ name: z.ZodOptional<z.ZodString>;
931
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
932
+ } & z.ZodObject<{
933
+ debug: z.ZodOptional<z.ZodObject<{
934
+ approxTokens: z.ZodOptional<z.ZodNumber>;
935
+ chars: z.ZodOptional<z.ZodNumber>;
936
+ }, z.core.$strip>>;
937
+ }, z.core.$strip>;
938
+ brand: <T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T | undefined) => PropertyKey extends T ? {
939
+ messageId: z.ZodUUID;
940
+ role: z.ZodEnum<{
941
+ system: "system";
942
+ developer: "developer";
943
+ user: "user";
944
+ assistant: "assistant";
945
+ tool: "tool";
946
+ }>;
947
+ kind: z.ZodEnum<{
948
+ input: "input";
949
+ output: "output";
950
+ tool_call: "tool_call";
951
+ tool_result: "tool_result";
952
+ observation: "observation";
953
+ internal_summary: "internal_summary";
954
+ thinking: "thinking";
955
+ }>;
956
+ content: z.ZodString;
957
+ contentTruncated: z.ZodBoolean;
958
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
959
+ turnIndex: z.ZodOptional<z.ZodNumber>;
960
+ name: z.ZodOptional<z.ZodString>;
961
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
962
+ } & z.ZodObject<{
963
+ debug: z.ZodOptional<z.ZodObject<{
964
+ approxTokens: z.ZodOptional<z.ZodNumber>;
965
+ chars: z.ZodOptional<z.ZodNumber>;
966
+ }, z.core.$strip>>;
967
+ }, z.core.$strip> : z.core.$ZodBranded<{
968
+ messageId: z.ZodUUID;
969
+ role: z.ZodEnum<{
970
+ system: "system";
971
+ developer: "developer";
972
+ user: "user";
973
+ assistant: "assistant";
974
+ tool: "tool";
975
+ }>;
976
+ kind: z.ZodEnum<{
977
+ input: "input";
978
+ output: "output";
979
+ tool_call: "tool_call";
980
+ tool_result: "tool_result";
981
+ observation: "observation";
982
+ internal_summary: "internal_summary";
983
+ thinking: "thinking";
984
+ }>;
985
+ content: z.ZodString;
986
+ contentTruncated: z.ZodBoolean;
987
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
988
+ turnIndex: z.ZodOptional<z.ZodNumber>;
989
+ name: z.ZodOptional<z.ZodString>;
990
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
991
+ } & z.ZodObject<{
992
+ debug: z.ZodOptional<z.ZodObject<{
993
+ approxTokens: z.ZodOptional<z.ZodNumber>;
994
+ chars: z.ZodOptional<z.ZodNumber>;
995
+ }, z.core.$strip>>;
996
+ }, z.core.$strip>, T, Dir>;
997
+ parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
998
+ debug?: {
999
+ approxTokens?: number | undefined;
1000
+ chars?: number | undefined;
1001
+ } | undefined;
1002
+ };
1003
+ safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
1004
+ debug?: {
1005
+ approxTokens?: number | undefined;
1006
+ chars?: number | undefined;
1007
+ } | undefined;
1008
+ }>;
1009
+ parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
1010
+ debug?: {
1011
+ approxTokens?: number | undefined;
1012
+ chars?: number | undefined;
1013
+ } | undefined;
1014
+ }>;
1015
+ safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1016
+ debug?: {
1017
+ approxTokens?: number | undefined;
1018
+ chars?: number | undefined;
1019
+ } | undefined;
1020
+ }>>;
1021
+ spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1022
+ debug?: {
1023
+ approxTokens?: number | undefined;
1024
+ chars?: number | undefined;
1025
+ } | undefined;
1026
+ }>>;
1027
+ encode: (data: {
1028
+ debug?: {
1029
+ approxTokens?: number | undefined;
1030
+ chars?: number | undefined;
1031
+ } | undefined;
1032
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
1033
+ debug?: {
1034
+ approxTokens?: number | undefined;
1035
+ chars?: number | undefined;
1036
+ } | undefined;
1037
+ };
1038
+ decode: (data: {
1039
+ debug?: {
1040
+ approxTokens?: number | undefined;
1041
+ chars?: number | undefined;
1042
+ } | undefined;
1043
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => {
1044
+ debug?: {
1045
+ approxTokens?: number | undefined;
1046
+ chars?: number | undefined;
1047
+ } | undefined;
1048
+ };
1049
+ encodeAsync: (data: {
1050
+ debug?: {
1051
+ approxTokens?: number | undefined;
1052
+ chars?: number | undefined;
1053
+ } | undefined;
1054
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
1055
+ debug?: {
1056
+ approxTokens?: number | undefined;
1057
+ chars?: number | undefined;
1058
+ } | undefined;
1059
+ }>;
1060
+ decodeAsync: (data: {
1061
+ debug?: {
1062
+ approxTokens?: number | undefined;
1063
+ chars?: number | undefined;
1064
+ } | undefined;
1065
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<{
1066
+ debug?: {
1067
+ approxTokens?: number | undefined;
1068
+ chars?: number | undefined;
1069
+ } | undefined;
1070
+ }>;
1071
+ safeEncode: (data: {
1072
+ debug?: {
1073
+ approxTokens?: number | undefined;
1074
+ chars?: number | undefined;
1075
+ } | undefined;
1076
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
1077
+ debug?: {
1078
+ approxTokens?: number | undefined;
1079
+ chars?: number | undefined;
1080
+ } | undefined;
1081
+ }>;
1082
+ safeDecode: (data: {
1083
+ debug?: {
1084
+ approxTokens?: number | undefined;
1085
+ chars?: number | undefined;
1086
+ } | undefined;
1087
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<{
1088
+ debug?: {
1089
+ approxTokens?: number | undefined;
1090
+ chars?: number | undefined;
1091
+ } | undefined;
1092
+ }>;
1093
+ safeEncodeAsync: (data: {
1094
+ debug?: {
1095
+ approxTokens?: number | undefined;
1096
+ chars?: number | undefined;
1097
+ } | undefined;
1098
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1099
+ debug?: {
1100
+ approxTokens?: number | undefined;
1101
+ chars?: number | undefined;
1102
+ } | undefined;
1103
+ }>>;
1104
+ safeDecodeAsync: (data: {
1105
+ debug?: {
1106
+ approxTokens?: number | undefined;
1107
+ chars?: number | undefined;
1108
+ } | undefined;
1109
+ }, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<{
1110
+ debug?: {
1111
+ approxTokens?: number | undefined;
1112
+ chars?: number | undefined;
1113
+ } | undefined;
1114
+ }>>;
1115
+ refine: <Ch extends (arg: {
1116
+ debug?: {
1117
+ approxTokens?: number | undefined;
1118
+ chars?: number | undefined;
1119
+ } | undefined;
1120
+ }) => unknown | Promise<unknown>>(check: Ch, params?: string | {
1121
+ abort?: boolean | undefined | undefined;
1122
+ when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
1123
+ path?: PropertyKey[] | undefined | undefined;
1124
+ params?: Record<string, any> | undefined;
1125
+ error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
1126
+ message?: string | undefined | undefined;
1127
+ } | undefined) => Ch extends (arg: any) => arg is infer R ? {
1128
+ messageId: z.ZodUUID;
1129
+ role: z.ZodEnum<{
1130
+ system: "system";
1131
+ developer: "developer";
1132
+ user: "user";
1133
+ assistant: "assistant";
1134
+ tool: "tool";
1135
+ }>;
1136
+ kind: z.ZodEnum<{
1137
+ input: "input";
1138
+ output: "output";
1139
+ tool_call: "tool_call";
1140
+ tool_result: "tool_result";
1141
+ observation: "observation";
1142
+ internal_summary: "internal_summary";
1143
+ thinking: "thinking";
1144
+ }>;
1145
+ content: z.ZodString;
1146
+ contentTruncated: z.ZodBoolean;
1147
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1148
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1149
+ name: z.ZodOptional<z.ZodString>;
1150
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1151
+ } & z.ZodObject<{
1152
+ debug: z.ZodOptional<z.ZodObject<{
1153
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1154
+ chars: z.ZodOptional<z.ZodNumber>;
1155
+ }, z.core.$strip>>;
1156
+ }, z.core.$strip> & z.ZodType<R, {
1157
+ debug?: {
1158
+ approxTokens?: number | undefined;
1159
+ chars?: number | undefined;
1160
+ } | undefined;
1161
+ }, z.core.$ZodTypeInternals<R, {
1162
+ debug?: {
1163
+ approxTokens?: number | undefined;
1164
+ chars?: number | undefined;
1165
+ } | undefined;
1166
+ }>> : {
1167
+ messageId: z.ZodUUID;
1168
+ role: z.ZodEnum<{
1169
+ system: "system";
1170
+ developer: "developer";
1171
+ user: "user";
1172
+ assistant: "assistant";
1173
+ tool: "tool";
1174
+ }>;
1175
+ kind: z.ZodEnum<{
1176
+ input: "input";
1177
+ output: "output";
1178
+ tool_call: "tool_call";
1179
+ tool_result: "tool_result";
1180
+ observation: "observation";
1181
+ internal_summary: "internal_summary";
1182
+ thinking: "thinking";
1183
+ }>;
1184
+ content: z.ZodString;
1185
+ contentTruncated: z.ZodBoolean;
1186
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1187
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1188
+ name: z.ZodOptional<z.ZodString>;
1189
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1190
+ } & z.ZodObject<{
1191
+ debug: z.ZodOptional<z.ZodObject<{
1192
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1193
+ chars: z.ZodOptional<z.ZodNumber>;
1194
+ }, z.core.$strip>>;
1195
+ }, z.core.$strip>;
1196
+ superRefine: (refinement: (arg: {
1197
+ debug?: {
1198
+ approxTokens?: number | undefined;
1199
+ chars?: number | undefined;
1200
+ } | undefined;
1201
+ }, ctx: z.core.$RefinementCtx<{
1202
+ debug?: {
1203
+ approxTokens?: number | undefined;
1204
+ chars?: number | undefined;
1205
+ } | undefined;
1206
+ }>) => void | Promise<void>) => {
1207
+ messageId: z.ZodUUID;
1208
+ role: z.ZodEnum<{
1209
+ system: "system";
1210
+ developer: "developer";
1211
+ user: "user";
1212
+ assistant: "assistant";
1213
+ tool: "tool";
1214
+ }>;
1215
+ kind: z.ZodEnum<{
1216
+ input: "input";
1217
+ output: "output";
1218
+ tool_call: "tool_call";
1219
+ tool_result: "tool_result";
1220
+ observation: "observation";
1221
+ internal_summary: "internal_summary";
1222
+ thinking: "thinking";
1223
+ }>;
1224
+ content: z.ZodString;
1225
+ contentTruncated: z.ZodBoolean;
1226
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1227
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1228
+ name: z.ZodOptional<z.ZodString>;
1229
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1230
+ } & z.ZodObject<{
1231
+ debug: z.ZodOptional<z.ZodObject<{
1232
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1233
+ chars: z.ZodOptional<z.ZodNumber>;
1234
+ }, z.core.$strip>>;
1235
+ }, z.core.$strip>;
1236
+ overwrite: (fn: (x: {
1237
+ debug?: {
1238
+ approxTokens?: number | undefined;
1239
+ chars?: number | undefined;
1240
+ } | undefined;
1241
+ }) => {
1242
+ debug?: {
1243
+ approxTokens?: number | undefined;
1244
+ chars?: number | undefined;
1245
+ } | undefined;
1246
+ }) => {
1247
+ messageId: z.ZodUUID;
1248
+ role: z.ZodEnum<{
1249
+ system: "system";
1250
+ developer: "developer";
1251
+ user: "user";
1252
+ assistant: "assistant";
1253
+ tool: "tool";
1254
+ }>;
1255
+ kind: z.ZodEnum<{
1256
+ input: "input";
1257
+ output: "output";
1258
+ tool_call: "tool_call";
1259
+ tool_result: "tool_result";
1260
+ observation: "observation";
1261
+ internal_summary: "internal_summary";
1262
+ thinking: "thinking";
1263
+ }>;
1264
+ content: z.ZodString;
1265
+ contentTruncated: z.ZodBoolean;
1266
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1267
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1268
+ name: z.ZodOptional<z.ZodString>;
1269
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1270
+ } & z.ZodObject<{
1271
+ debug: z.ZodOptional<z.ZodObject<{
1272
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1273
+ chars: z.ZodOptional<z.ZodNumber>;
1274
+ }, z.core.$strip>>;
1275
+ }, z.core.$strip>;
1276
+ optional: () => z.ZodOptional<{
1277
+ messageId: z.ZodUUID;
1278
+ role: z.ZodEnum<{
1279
+ system: "system";
1280
+ developer: "developer";
1281
+ user: "user";
1282
+ assistant: "assistant";
1283
+ tool: "tool";
1284
+ }>;
1285
+ kind: z.ZodEnum<{
1286
+ input: "input";
1287
+ output: "output";
1288
+ tool_call: "tool_call";
1289
+ tool_result: "tool_result";
1290
+ observation: "observation";
1291
+ internal_summary: "internal_summary";
1292
+ thinking: "thinking";
1293
+ }>;
1294
+ content: z.ZodString;
1295
+ contentTruncated: z.ZodBoolean;
1296
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1297
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1298
+ name: z.ZodOptional<z.ZodString>;
1299
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1300
+ } & z.ZodObject<{
1301
+ debug: z.ZodOptional<z.ZodObject<{
1302
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1303
+ chars: z.ZodOptional<z.ZodNumber>;
1304
+ }, z.core.$strip>>;
1305
+ }, z.core.$strip>>;
1306
+ exactOptional: () => z.ZodExactOptional<{
1307
+ messageId: z.ZodUUID;
1308
+ role: z.ZodEnum<{
1309
+ system: "system";
1310
+ developer: "developer";
1311
+ user: "user";
1312
+ assistant: "assistant";
1313
+ tool: "tool";
1314
+ }>;
1315
+ kind: z.ZodEnum<{
1316
+ input: "input";
1317
+ output: "output";
1318
+ tool_call: "tool_call";
1319
+ tool_result: "tool_result";
1320
+ observation: "observation";
1321
+ internal_summary: "internal_summary";
1322
+ thinking: "thinking";
1323
+ }>;
1324
+ content: z.ZodString;
1325
+ contentTruncated: z.ZodBoolean;
1326
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1327
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1328
+ name: z.ZodOptional<z.ZodString>;
1329
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1330
+ } & z.ZodObject<{
1331
+ debug: z.ZodOptional<z.ZodObject<{
1332
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1333
+ chars: z.ZodOptional<z.ZodNumber>;
1334
+ }, z.core.$strip>>;
1335
+ }, z.core.$strip>>;
1336
+ nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<{
1337
+ messageId: z.ZodUUID;
1338
+ role: z.ZodEnum<{
1339
+ system: "system";
1340
+ developer: "developer";
1341
+ user: "user";
1342
+ assistant: "assistant";
1343
+ tool: "tool";
1344
+ }>;
1345
+ kind: z.ZodEnum<{
1346
+ input: "input";
1347
+ output: "output";
1348
+ tool_call: "tool_call";
1349
+ tool_result: "tool_result";
1350
+ observation: "observation";
1351
+ internal_summary: "internal_summary";
1352
+ thinking: "thinking";
1353
+ }>;
1354
+ content: z.ZodString;
1355
+ contentTruncated: z.ZodBoolean;
1356
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1357
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1358
+ name: z.ZodOptional<z.ZodString>;
1359
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1360
+ } & z.ZodObject<{
1361
+ debug: z.ZodOptional<z.ZodObject<{
1362
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1363
+ chars: z.ZodOptional<z.ZodNumber>;
1364
+ }, z.core.$strip>>;
1365
+ }, z.core.$strip>>;
1366
+ nullable: () => z.ZodNullable<{
1367
+ messageId: z.ZodUUID;
1368
+ role: z.ZodEnum<{
1369
+ system: "system";
1370
+ developer: "developer";
1371
+ user: "user";
1372
+ assistant: "assistant";
1373
+ tool: "tool";
1374
+ }>;
1375
+ kind: z.ZodEnum<{
1376
+ input: "input";
1377
+ output: "output";
1378
+ tool_call: "tool_call";
1379
+ tool_result: "tool_result";
1380
+ observation: "observation";
1381
+ internal_summary: "internal_summary";
1382
+ thinking: "thinking";
1383
+ }>;
1384
+ content: z.ZodString;
1385
+ contentTruncated: z.ZodBoolean;
1386
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1387
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1388
+ name: z.ZodOptional<z.ZodString>;
1389
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1390
+ } & z.ZodObject<{
1391
+ debug: z.ZodOptional<z.ZodObject<{
1392
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1393
+ chars: z.ZodOptional<z.ZodNumber>;
1394
+ }, z.core.$strip>>;
1395
+ }, z.core.$strip>>;
1396
+ nullish: () => z.ZodOptional<z.ZodNullable<{
1397
+ messageId: z.ZodUUID;
1398
+ role: z.ZodEnum<{
1399
+ system: "system";
1400
+ developer: "developer";
1401
+ user: "user";
1402
+ assistant: "assistant";
1403
+ tool: "tool";
1404
+ }>;
1405
+ kind: z.ZodEnum<{
1406
+ input: "input";
1407
+ output: "output";
1408
+ tool_call: "tool_call";
1409
+ tool_result: "tool_result";
1410
+ observation: "observation";
1411
+ internal_summary: "internal_summary";
1412
+ thinking: "thinking";
1413
+ }>;
1414
+ content: z.ZodString;
1415
+ contentTruncated: z.ZodBoolean;
1416
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1417
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1418
+ name: z.ZodOptional<z.ZodString>;
1419
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1420
+ } & z.ZodObject<{
1421
+ debug: z.ZodOptional<z.ZodObject<{
1422
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1423
+ chars: z.ZodOptional<z.ZodNumber>;
1424
+ }, z.core.$strip>>;
1425
+ }, z.core.$strip>>>;
1426
+ default: {
1427
+ (def: {
1428
+ debug?: {
1429
+ approxTokens?: number | undefined;
1430
+ chars?: number | undefined;
1431
+ } | undefined;
1432
+ }): z.ZodDefault<{
1433
+ messageId: z.ZodUUID;
1434
+ role: z.ZodEnum<{
1435
+ system: "system";
1436
+ developer: "developer";
1437
+ user: "user";
1438
+ assistant: "assistant";
1439
+ tool: "tool";
1440
+ }>;
1441
+ kind: z.ZodEnum<{
1442
+ input: "input";
1443
+ output: "output";
1444
+ tool_call: "tool_call";
1445
+ tool_result: "tool_result";
1446
+ observation: "observation";
1447
+ internal_summary: "internal_summary";
1448
+ thinking: "thinking";
1449
+ }>;
1450
+ content: z.ZodString;
1451
+ contentTruncated: z.ZodBoolean;
1452
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1453
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1454
+ name: z.ZodOptional<z.ZodString>;
1455
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1456
+ } & z.ZodObject<{
1457
+ debug: z.ZodOptional<z.ZodObject<{
1458
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1459
+ chars: z.ZodOptional<z.ZodNumber>;
1460
+ }, z.core.$strip>>;
1461
+ }, z.core.$strip>>;
1462
+ (def: () => {
1463
+ debug?: {
1464
+ approxTokens?: number | undefined;
1465
+ chars?: number | undefined;
1466
+ } | undefined;
1467
+ }): z.ZodDefault<{
1468
+ messageId: z.ZodUUID;
1469
+ role: z.ZodEnum<{
1470
+ system: "system";
1471
+ developer: "developer";
1472
+ user: "user";
1473
+ assistant: "assistant";
1474
+ tool: "tool";
1475
+ }>;
1476
+ kind: z.ZodEnum<{
1477
+ input: "input";
1478
+ output: "output";
1479
+ tool_call: "tool_call";
1480
+ tool_result: "tool_result";
1481
+ observation: "observation";
1482
+ internal_summary: "internal_summary";
1483
+ thinking: "thinking";
1484
+ }>;
1485
+ content: z.ZodString;
1486
+ contentTruncated: z.ZodBoolean;
1487
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1488
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1489
+ name: z.ZodOptional<z.ZodString>;
1490
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1491
+ } & z.ZodObject<{
1492
+ debug: z.ZodOptional<z.ZodObject<{
1493
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1494
+ chars: z.ZodOptional<z.ZodNumber>;
1495
+ }, z.core.$strip>>;
1496
+ }, z.core.$strip>>;
1497
+ };
1498
+ prefault: {
1499
+ (def: () => {
1500
+ debug?: {
1501
+ approxTokens?: number | undefined;
1502
+ chars?: number | undefined;
1503
+ } | undefined;
1504
+ }): z.ZodPrefault<{
1505
+ messageId: z.ZodUUID;
1506
+ role: z.ZodEnum<{
1507
+ system: "system";
1508
+ developer: "developer";
1509
+ user: "user";
1510
+ assistant: "assistant";
1511
+ tool: "tool";
1512
+ }>;
1513
+ kind: z.ZodEnum<{
1514
+ input: "input";
1515
+ output: "output";
1516
+ tool_call: "tool_call";
1517
+ tool_result: "tool_result";
1518
+ observation: "observation";
1519
+ internal_summary: "internal_summary";
1520
+ thinking: "thinking";
1521
+ }>;
1522
+ content: z.ZodString;
1523
+ contentTruncated: z.ZodBoolean;
1524
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1525
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1526
+ name: z.ZodOptional<z.ZodString>;
1527
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1528
+ } & z.ZodObject<{
1529
+ debug: z.ZodOptional<z.ZodObject<{
1530
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1531
+ chars: z.ZodOptional<z.ZodNumber>;
1532
+ }, z.core.$strip>>;
1533
+ }, z.core.$strip>>;
1534
+ (def: {
1535
+ debug?: {
1536
+ approxTokens?: number | undefined;
1537
+ chars?: number | undefined;
1538
+ } | undefined;
1539
+ }): z.ZodPrefault<{
1540
+ messageId: z.ZodUUID;
1541
+ role: z.ZodEnum<{
1542
+ system: "system";
1543
+ developer: "developer";
1544
+ user: "user";
1545
+ assistant: "assistant";
1546
+ tool: "tool";
1547
+ }>;
1548
+ kind: z.ZodEnum<{
1549
+ input: "input";
1550
+ output: "output";
1551
+ tool_call: "tool_call";
1552
+ tool_result: "tool_result";
1553
+ observation: "observation";
1554
+ internal_summary: "internal_summary";
1555
+ thinking: "thinking";
1556
+ }>;
1557
+ content: z.ZodString;
1558
+ contentTruncated: z.ZodBoolean;
1559
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1560
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1561
+ name: z.ZodOptional<z.ZodString>;
1562
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1563
+ } & z.ZodObject<{
1564
+ debug: z.ZodOptional<z.ZodObject<{
1565
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1566
+ chars: z.ZodOptional<z.ZodNumber>;
1567
+ }, z.core.$strip>>;
1568
+ }, z.core.$strip>>;
1569
+ };
1570
+ array: () => z.ZodArray<{
1571
+ messageId: z.ZodUUID;
1572
+ role: z.ZodEnum<{
1573
+ system: "system";
1574
+ developer: "developer";
1575
+ user: "user";
1576
+ assistant: "assistant";
1577
+ tool: "tool";
1578
+ }>;
1579
+ kind: z.ZodEnum<{
1580
+ input: "input";
1581
+ output: "output";
1582
+ tool_call: "tool_call";
1583
+ tool_result: "tool_result";
1584
+ observation: "observation";
1585
+ internal_summary: "internal_summary";
1586
+ thinking: "thinking";
1587
+ }>;
1588
+ content: z.ZodString;
1589
+ contentTruncated: z.ZodBoolean;
1590
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1591
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1592
+ name: z.ZodOptional<z.ZodString>;
1593
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1594
+ } & z.ZodObject<{
1595
+ debug: z.ZodOptional<z.ZodObject<{
1596
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1597
+ chars: z.ZodOptional<z.ZodNumber>;
1598
+ }, z.core.$strip>>;
1599
+ }, z.core.$strip>>;
1600
+ or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[{
1601
+ messageId: z.ZodUUID;
1602
+ role: z.ZodEnum<{
1603
+ system: "system";
1604
+ developer: "developer";
1605
+ user: "user";
1606
+ assistant: "assistant";
1607
+ tool: "tool";
1608
+ }>;
1609
+ kind: z.ZodEnum<{
1610
+ input: "input";
1611
+ output: "output";
1612
+ tool_call: "tool_call";
1613
+ tool_result: "tool_result";
1614
+ observation: "observation";
1615
+ internal_summary: "internal_summary";
1616
+ thinking: "thinking";
1617
+ }>;
1618
+ content: z.ZodString;
1619
+ contentTruncated: z.ZodBoolean;
1620
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1621
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1622
+ name: z.ZodOptional<z.ZodString>;
1623
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1624
+ } & z.ZodObject<{
1625
+ debug: z.ZodOptional<z.ZodObject<{
1626
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1627
+ chars: z.ZodOptional<z.ZodNumber>;
1628
+ }, z.core.$strip>>;
1629
+ }, z.core.$strip>, T]>;
1630
+ and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<{
1631
+ messageId: z.ZodUUID;
1632
+ role: z.ZodEnum<{
1633
+ system: "system";
1634
+ developer: "developer";
1635
+ user: "user";
1636
+ assistant: "assistant";
1637
+ tool: "tool";
1638
+ }>;
1639
+ kind: z.ZodEnum<{
1640
+ input: "input";
1641
+ output: "output";
1642
+ tool_call: "tool_call";
1643
+ tool_result: "tool_result";
1644
+ observation: "observation";
1645
+ internal_summary: "internal_summary";
1646
+ thinking: "thinking";
1647
+ }>;
1648
+ content: z.ZodString;
1649
+ contentTruncated: z.ZodBoolean;
1650
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1651
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1652
+ name: z.ZodOptional<z.ZodString>;
1653
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1654
+ } & z.ZodObject<{
1655
+ debug: z.ZodOptional<z.ZodObject<{
1656
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1657
+ chars: z.ZodOptional<z.ZodNumber>;
1658
+ }, z.core.$strip>>;
1659
+ }, z.core.$strip>, T>;
1660
+ transform: <NewOut>(transform: (arg: {
1661
+ debug?: {
1662
+ approxTokens?: number | undefined;
1663
+ chars?: number | undefined;
1664
+ } | undefined;
1665
+ }, ctx: z.core.$RefinementCtx<{
1666
+ debug?: {
1667
+ approxTokens?: number | undefined;
1668
+ chars?: number | undefined;
1669
+ } | undefined;
1670
+ }>) => NewOut | Promise<NewOut>) => z.ZodPipe<{
1671
+ messageId: z.ZodUUID;
1672
+ role: z.ZodEnum<{
1673
+ system: "system";
1674
+ developer: "developer";
1675
+ user: "user";
1676
+ assistant: "assistant";
1677
+ tool: "tool";
1678
+ }>;
1679
+ kind: z.ZodEnum<{
1680
+ input: "input";
1681
+ output: "output";
1682
+ tool_call: "tool_call";
1683
+ tool_result: "tool_result";
1684
+ observation: "observation";
1685
+ internal_summary: "internal_summary";
1686
+ thinking: "thinking";
1687
+ }>;
1688
+ content: z.ZodString;
1689
+ contentTruncated: z.ZodBoolean;
1690
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1691
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1692
+ name: z.ZodOptional<z.ZodString>;
1693
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1694
+ } & z.ZodObject<{
1695
+ debug: z.ZodOptional<z.ZodObject<{
1696
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1697
+ chars: z.ZodOptional<z.ZodNumber>;
1698
+ }, z.core.$strip>>;
1699
+ }, z.core.$strip>, z.ZodTransform<Awaited<NewOut>, {
1700
+ debug?: {
1701
+ approxTokens?: number | undefined;
1702
+ chars?: number | undefined;
1703
+ } | undefined;
1704
+ }>>;
1705
+ catch: {
1706
+ (def: {
1707
+ debug?: {
1708
+ approxTokens?: number | undefined;
1709
+ chars?: number | undefined;
1710
+ } | undefined;
1711
+ }): z.ZodCatch<{
1712
+ messageId: z.ZodUUID;
1713
+ role: z.ZodEnum<{
1714
+ system: "system";
1715
+ developer: "developer";
1716
+ user: "user";
1717
+ assistant: "assistant";
1718
+ tool: "tool";
1719
+ }>;
1720
+ kind: z.ZodEnum<{
1721
+ input: "input";
1722
+ output: "output";
1723
+ tool_call: "tool_call";
1724
+ tool_result: "tool_result";
1725
+ observation: "observation";
1726
+ internal_summary: "internal_summary";
1727
+ thinking: "thinking";
1728
+ }>;
1729
+ content: z.ZodString;
1730
+ contentTruncated: z.ZodBoolean;
1731
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1732
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1733
+ name: z.ZodOptional<z.ZodString>;
1734
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1735
+ } & z.ZodObject<{
1736
+ debug: z.ZodOptional<z.ZodObject<{
1737
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1738
+ chars: z.ZodOptional<z.ZodNumber>;
1739
+ }, z.core.$strip>>;
1740
+ }, z.core.$strip>>;
1741
+ (def: (ctx: z.core.$ZodCatchCtx) => {
1742
+ debug?: {
1743
+ approxTokens?: number | undefined;
1744
+ chars?: number | undefined;
1745
+ } | undefined;
1746
+ }): z.ZodCatch<{
1747
+ messageId: z.ZodUUID;
1748
+ role: z.ZodEnum<{
1749
+ system: "system";
1750
+ developer: "developer";
1751
+ user: "user";
1752
+ assistant: "assistant";
1753
+ tool: "tool";
1754
+ }>;
1755
+ kind: z.ZodEnum<{
1756
+ input: "input";
1757
+ output: "output";
1758
+ tool_call: "tool_call";
1759
+ tool_result: "tool_result";
1760
+ observation: "observation";
1761
+ internal_summary: "internal_summary";
1762
+ thinking: "thinking";
1763
+ }>;
1764
+ content: z.ZodString;
1765
+ contentTruncated: z.ZodBoolean;
1766
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1767
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1768
+ name: z.ZodOptional<z.ZodString>;
1769
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1770
+ } & z.ZodObject<{
1771
+ debug: z.ZodOptional<z.ZodObject<{
1772
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1773
+ chars: z.ZodOptional<z.ZodNumber>;
1774
+ }, z.core.$strip>>;
1775
+ }, z.core.$strip>>;
1776
+ };
1777
+ pipe: <T extends z.core.$ZodType<any, {
1778
+ debug?: {
1779
+ approxTokens?: number | undefined;
1780
+ chars?: number | undefined;
1781
+ } | undefined;
1782
+ }, z.core.$ZodTypeInternals<any, {
1783
+ debug?: {
1784
+ approxTokens?: number | undefined;
1785
+ chars?: number | undefined;
1786
+ } | undefined;
1787
+ }>>>(target: T | z.core.$ZodType<any, {
1788
+ debug?: {
1789
+ approxTokens?: number | undefined;
1790
+ chars?: number | undefined;
1791
+ } | undefined;
1792
+ }, z.core.$ZodTypeInternals<any, {
1793
+ debug?: {
1794
+ approxTokens?: number | undefined;
1795
+ chars?: number | undefined;
1796
+ } | undefined;
1797
+ }>>) => z.ZodPipe<{
1798
+ messageId: z.ZodUUID;
1799
+ role: z.ZodEnum<{
1800
+ system: "system";
1801
+ developer: "developer";
1802
+ user: "user";
1803
+ assistant: "assistant";
1804
+ tool: "tool";
1805
+ }>;
1806
+ kind: z.ZodEnum<{
1807
+ input: "input";
1808
+ output: "output";
1809
+ tool_call: "tool_call";
1810
+ tool_result: "tool_result";
1811
+ observation: "observation";
1812
+ internal_summary: "internal_summary";
1813
+ thinking: "thinking";
1814
+ }>;
1815
+ content: z.ZodString;
1816
+ contentTruncated: z.ZodBoolean;
1817
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1818
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1819
+ name: z.ZodOptional<z.ZodString>;
1820
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1821
+ } & z.ZodObject<{
1822
+ debug: z.ZodOptional<z.ZodObject<{
1823
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1824
+ chars: z.ZodOptional<z.ZodNumber>;
1825
+ }, z.core.$strip>>;
1826
+ }, z.core.$strip>, T>;
1827
+ readonly: () => z.ZodReadonly<{
1828
+ messageId: z.ZodUUID;
1829
+ role: z.ZodEnum<{
1830
+ system: "system";
1831
+ developer: "developer";
1832
+ user: "user";
1833
+ assistant: "assistant";
1834
+ tool: "tool";
1835
+ }>;
1836
+ kind: z.ZodEnum<{
1837
+ input: "input";
1838
+ output: "output";
1839
+ tool_call: "tool_call";
1840
+ tool_result: "tool_result";
1841
+ observation: "observation";
1842
+ internal_summary: "internal_summary";
1843
+ thinking: "thinking";
1844
+ }>;
1845
+ content: z.ZodString;
1846
+ contentTruncated: z.ZodBoolean;
1847
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1848
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1849
+ name: z.ZodOptional<z.ZodString>;
1850
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1851
+ } & z.ZodObject<{
1852
+ debug: z.ZodOptional<z.ZodObject<{
1853
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1854
+ chars: z.ZodOptional<z.ZodNumber>;
1855
+ }, z.core.$strip>>;
1856
+ }, z.core.$strip>>;
1857
+ describe: (description: string) => {
1858
+ messageId: z.ZodUUID;
1859
+ role: z.ZodEnum<{
1860
+ system: "system";
1861
+ developer: "developer";
1862
+ user: "user";
1863
+ assistant: "assistant";
1864
+ tool: "tool";
1865
+ }>;
1866
+ kind: z.ZodEnum<{
1867
+ input: "input";
1868
+ output: "output";
1869
+ tool_call: "tool_call";
1870
+ tool_result: "tool_result";
1871
+ observation: "observation";
1872
+ internal_summary: "internal_summary";
1873
+ thinking: "thinking";
1874
+ }>;
1875
+ content: z.ZodString;
1876
+ contentTruncated: z.ZodBoolean;
1877
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1878
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1879
+ name: z.ZodOptional<z.ZodString>;
1880
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1881
+ } & z.ZodObject<{
1882
+ debug: z.ZodOptional<z.ZodObject<{
1883
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1884
+ chars: z.ZodOptional<z.ZodNumber>;
1885
+ }, z.core.$strip>>;
1886
+ }, z.core.$strip>;
1887
+ description?: string | undefined;
1888
+ meta: {
1889
+ (): {
1890
+ [x: string]: unknown;
1891
+ id?: string | undefined | undefined;
1892
+ title?: string | undefined | undefined;
1893
+ description?: string | undefined | undefined;
1894
+ deprecated?: boolean | undefined | undefined;
1895
+ } | undefined;
1896
+ (data: {
1897
+ [x: string]: unknown;
1898
+ id?: string | undefined | undefined;
1899
+ title?: string | undefined | undefined;
1900
+ description?: string | undefined | undefined;
1901
+ deprecated?: boolean | undefined | undefined;
1902
+ }): {
1903
+ messageId: z.ZodUUID;
1904
+ role: z.ZodEnum<{
1905
+ system: "system";
1906
+ developer: "developer";
1907
+ user: "user";
1908
+ assistant: "assistant";
1909
+ tool: "tool";
1910
+ }>;
1911
+ kind: z.ZodEnum<{
1912
+ input: "input";
1913
+ output: "output";
1914
+ tool_call: "tool_call";
1915
+ tool_result: "tool_result";
1916
+ observation: "observation";
1917
+ internal_summary: "internal_summary";
1918
+ thinking: "thinking";
1919
+ }>;
1920
+ content: z.ZodString;
1921
+ contentTruncated: z.ZodBoolean;
1922
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1923
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1924
+ name: z.ZodOptional<z.ZodString>;
1925
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1926
+ } & z.ZodObject<{
1927
+ debug: z.ZodOptional<z.ZodObject<{
1928
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1929
+ chars: z.ZodOptional<z.ZodNumber>;
1930
+ }, z.core.$strip>>;
1931
+ }, z.core.$strip>;
1932
+ };
1933
+ isOptional: () => boolean;
1934
+ isNullable: () => boolean;
1935
+ apply: <T>(fn: (schema: {
1936
+ messageId: z.ZodUUID;
1937
+ role: z.ZodEnum<{
1938
+ system: "system";
1939
+ developer: "developer";
1940
+ user: "user";
1941
+ assistant: "assistant";
1942
+ tool: "tool";
1943
+ }>;
1944
+ kind: z.ZodEnum<{
1945
+ input: "input";
1946
+ output: "output";
1947
+ tool_call: "tool_call";
1948
+ tool_result: "tool_result";
1949
+ observation: "observation";
1950
+ internal_summary: "internal_summary";
1951
+ thinking: "thinking";
1952
+ }>;
1953
+ content: z.ZodString;
1954
+ contentTruncated: z.ZodBoolean;
1955
+ parentMessageId: z.ZodOptional<z.ZodUUID>;
1956
+ turnIndex: z.ZodOptional<z.ZodNumber>;
1957
+ name: z.ZodOptional<z.ZodString>;
1958
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1959
+ } & z.ZodObject<{
1960
+ debug: z.ZodOptional<z.ZodObject<{
1961
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1962
+ chars: z.ZodOptional<z.ZodNumber>;
1963
+ }, z.core.$strip>>;
1964
+ }, z.core.$strip>) => T) => T;
1965
+ _zod: z.core.$ZodObjectInternals<{
1966
+ debug: z.ZodOptional<z.ZodObject<{
1967
+ approxTokens: z.ZodOptional<z.ZodNumber>;
1968
+ chars: z.ZodOptional<z.ZodNumber>;
1969
+ }, z.core.$strip>>;
1970
+ }, z.core.$strip>;
1971
+ }, z.core.$strip>;
1972
+ }, z.core.$strip>, z.ZodObject<{
1973
+ schema: z.ZodLiteral<"handlebar.audit.v1">;
1974
+ ts: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDate>;
1975
+ runId: z.ZodString;
1976
+ stepIndex: z.ZodOptional<z.ZodNumber>;
1977
+ decisionId: z.ZodOptional<z.ZodString>;
1978
+ enduserExternalId: z.ZodOptional<z.ZodString>;
1979
+ otel: z.ZodOptional<z.ZodObject<{
1980
+ traceId: z.ZodOptional<z.ZodString>;
1981
+ spanId: z.ZodOptional<z.ZodString>;
1982
+ }, z.core.$strip>>;
1983
+ sample: z.ZodOptional<z.ZodObject<{
1984
+ rate: z.ZodOptional<z.ZodNumber>;
1985
+ reason: z.ZodOptional<z.ZodString>;
1986
+ }, z.core.$strip>>;
1987
+ redaction: z.ZodOptional<z.ZodObject<{
1988
+ level: z.ZodOptional<z.ZodEnum<{
1989
+ none: "none";
1990
+ partial: "partial";
1991
+ strict: "strict";
1992
+ }>>;
1993
+ }, z.core.$strip>>;
1994
+ kind: z.ZodLiteral<"llm.result">;
1995
+ data: z.ZodObject<{
1996
+ model: z.ZodObject<{
1997
+ model: z.ZodString;
1998
+ provider: z.ZodOptional<z.ZodString>;
1999
+ }, z.core.$strip>;
2000
+ tokens: z.ZodObject<{
2001
+ in: z.ZodNumber;
2002
+ out: z.ZodNumber;
2003
+ }, z.core.$strip>;
2004
+ debug: z.ZodOptional<z.ZodObject<{
2005
+ inTokenAttribution: z.ZodObject<{
2006
+ system: z.ZodOptional<z.ZodNumber>;
2007
+ user: z.ZodOptional<z.ZodNumber>;
2008
+ assistant: z.ZodOptional<z.ZodNumber>;
2009
+ tool: z.ZodOptional<z.ZodNumber>;
2010
+ other: z.ZodOptional<z.ZodNumber>;
2011
+ }, z.core.$strip>;
2012
+ }, z.core.$strip>>;
2013
+ messageCount: z.ZodNumber;
2014
+ durationMs: z.ZodOptional<z.ZodNumber>;
455
2015
  }, z.core.$strip>;
456
2016
  }, z.core.$strip>], "kind">;
457
2017
  export type AuditEvent = z.infer<typeof AuditEventSchema>;