@phosphorco/bb-cross-references 0.3.0 → 0.4.1

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.
@@ -536,3 +536,788 @@ export { recognitionIdentity, recognitionIdentityRecord, RECOGNITION_CODEC_VERSI
536
536
  export { verifiedFileIdentity, verifiedFileIdentityRecord, VerifiedFileTargetSchema, type VerifiedFileTarget } from './recognition.js';
537
537
  export * from './evidence-v2.js';
538
538
  export * from './lookup.js';
539
+ export * from './producer.js';
540
+ export declare const crossReferencesProducerRpcSchemas: {
541
+ readonly "crossReferencesProducer.describe": {
542
+ readonly input: z.ZodNull;
543
+ readonly output: z.ZodObject<{
544
+ protocol: z.ZodLiteral<"cross-references-producer">;
545
+ versions: z.ZodArray<z.ZodNumber>;
546
+ sourceKinds: z.ZodArray<z.ZodLiteral<"thread-brief">>;
547
+ limits: z.ZodObject<{
548
+ inputBytes: z.ZodNumber;
549
+ statusBytes: z.ZodNumber;
550
+ locations: z.ZodNumber;
551
+ perTarget: z.ZodNumber;
552
+ headingBytes: z.ZodNumber;
553
+ limitCodes: z.ZodArray<z.ZodString>;
554
+ }, z.core.$loose>;
555
+ }, z.core.$loose>;
556
+ };
557
+ readonly crossReferencesProducerV1GetState: {
558
+ readonly input: z.ZodObject<{
559
+ version: z.ZodLiteral<1>;
560
+ producerPluginId: z.ZodLiteral<"thread-brief">;
561
+ source: z.ZodObject<{
562
+ provider: z.ZodString;
563
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
564
+ }, z.core.$strict>;
565
+ }, z.core.$strict>;
566
+ readonly output: z.ZodObject<{
567
+ version: z.ZodLiteral<1>;
568
+ projection: z.ZodNullable<z.ZodObject<{
569
+ producerPluginId: z.ZodString;
570
+ source: z.ZodObject<{
571
+ provider: z.ZodString;
572
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
573
+ presentation: z.ZodObject<{
574
+ label: z.ZodString;
575
+ detail: z.ZodOptional<z.ZodString>;
576
+ url: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$loose>;
578
+ }, z.core.$loose>;
579
+ revision: z.ZodNumber;
580
+ mutationId: z.ZodString;
581
+ payloadDigest: z.ZodString;
582
+ tombstone: z.ZodBoolean;
583
+ targets: z.ZodArray<z.ZodObject<{
584
+ provider: z.ZodString;
585
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
586
+ presentation: z.ZodObject<{
587
+ label: z.ZodString;
588
+ detail: z.ZodOptional<z.ZodString>;
589
+ url: z.ZodOptional<z.ZodString>;
590
+ }, z.core.$loose>;
591
+ }, z.core.$loose>>;
592
+ }, z.core.$loose>>;
593
+ evidence: z.ZodNullable<z.ZodObject<{
594
+ kind: z.ZodLiteral<"thread-brief">;
595
+ graphRevision: z.ZodNumber;
596
+ graphPayloadDigest: z.ZodString;
597
+ evidenceDigest: z.ZodString;
598
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
599
+ state: z.ZodEnum<{
600
+ bound: "bound";
601
+ unconfirmed: "unconfirmed";
602
+ }>;
603
+ sourceState: z.ZodEnum<{
604
+ present: "present";
605
+ absent: "absent";
606
+ empty: "empty";
607
+ }>;
608
+ occurrenceCount: z.ZodNumber;
609
+ }, z.core.$loose>>;
610
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
611
+ state: z.ZodLiteral<"over-limit">;
612
+ sourceContentRevision: z.ZodString;
613
+ limits: z.ZodArray<z.ZodEnum<{
614
+ "target-count": "target-count";
615
+ "projection-bytes": "projection-bytes";
616
+ "occurrence-count": "occurrence-count";
617
+ "per-target-occurrences": "per-target-occurrences";
618
+ "heading-bytes": "heading-bytes";
619
+ "envelope-bytes": "envelope-bytes";
620
+ "presentation-label-bytes": "presentation-label-bytes";
621
+ "presentation-detail-bytes": "presentation-detail-bytes";
622
+ "presentation-url-bytes": "presentation-url-bytes";
623
+ "presentation-bytes": "presentation-bytes";
624
+ }>>;
625
+ attemptRevision: z.ZodNumber;
626
+ statusDigest: z.ZodString;
627
+ sourceFile: z.ZodObject<{
628
+ kind: z.ZodLiteral<"thread-storage">;
629
+ threadId: z.ZodString;
630
+ path: z.ZodLiteral<"BRIEF.md">;
631
+ }, z.core.$loose>;
632
+ applicability: z.ZodEnum<{
633
+ current: "current";
634
+ "superseded-by-graph": "superseded-by-graph";
635
+ }>;
636
+ }, z.core.$loose>, z.ZodObject<{
637
+ state: z.ZodLiteral<"identity-unrepresentable">;
638
+ sourceContentRevision: z.ZodString;
639
+ identityReasons: z.ZodArray<z.ZodEnum<{
640
+ "unsafe-required-identity": "unsafe-required-identity";
641
+ "unsupported-required-codec": "unsupported-required-codec";
642
+ "required-identity-bound": "required-identity-bound";
643
+ }>>;
644
+ limits: z.ZodArray<z.ZodEnum<{
645
+ "target-count": "target-count";
646
+ "projection-bytes": "projection-bytes";
647
+ "occurrence-count": "occurrence-count";
648
+ "per-target-occurrences": "per-target-occurrences";
649
+ "heading-bytes": "heading-bytes";
650
+ "envelope-bytes": "envelope-bytes";
651
+ "presentation-label-bytes": "presentation-label-bytes";
652
+ "presentation-detail-bytes": "presentation-detail-bytes";
653
+ "presentation-url-bytes": "presentation-url-bytes";
654
+ "presentation-bytes": "presentation-bytes";
655
+ }>>;
656
+ attemptRevision: z.ZodNumber;
657
+ statusDigest: z.ZodString;
658
+ sourceFile: z.ZodObject<{
659
+ kind: z.ZodLiteral<"thread-storage">;
660
+ threadId: z.ZodString;
661
+ path: z.ZodLiteral<"BRIEF.md">;
662
+ }, z.core.$loose>;
663
+ applicability: z.ZodEnum<{
664
+ current: "current";
665
+ "superseded-by-graph": "superseded-by-graph";
666
+ }>;
667
+ }, z.core.$loose>]>>;
668
+ revisionHighWater: z.ZodNumber;
669
+ }, z.core.$loose>;
670
+ };
671
+ readonly crossReferencesProducerV1Apply: {
672
+ readonly input: z.ZodObject<{
673
+ version: z.ZodLiteral<1>;
674
+ projection: z.ZodPipe<z.ZodObject<{
675
+ protocolVersion: z.ZodLiteral<1>;
676
+ producerPluginId: z.ZodString;
677
+ mutationId: z.ZodString;
678
+ source: z.ZodObject<{
679
+ provider: z.ZodString;
680
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
681
+ presentation: z.ZodObject<{
682
+ label: z.ZodString;
683
+ detail: z.ZodOptional<z.ZodString>;
684
+ url: z.ZodOptional<z.ZodString>;
685
+ }, z.core.$strict>;
686
+ }, z.core.$strict>;
687
+ revision: z.ZodNumber;
688
+ expectedRevision: z.ZodNumber;
689
+ payloadDigest: z.ZodString;
690
+ tombstone: z.ZodBoolean;
691
+ targets: z.ZodArray<z.ZodObject<{
692
+ provider: z.ZodString;
693
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
694
+ presentation: z.ZodObject<{
695
+ label: z.ZodString;
696
+ detail: z.ZodOptional<z.ZodString>;
697
+ url: z.ZodOptional<z.ZodString>;
698
+ }, z.core.$strict>;
699
+ }, z.core.$strict>>;
700
+ }, z.core.$strict>, z.ZodTransform<ApplyProjectionInput, {
701
+ protocolVersion: 1;
702
+ producerPluginId: string;
703
+ mutationId: string;
704
+ source: {
705
+ provider: string;
706
+ keys: Record<string, string>;
707
+ presentation: {
708
+ label: string;
709
+ detail?: string | undefined;
710
+ url?: string | undefined;
711
+ };
712
+ };
713
+ revision: number;
714
+ expectedRevision: number;
715
+ payloadDigest: string;
716
+ tombstone: boolean;
717
+ targets: {
718
+ provider: string;
719
+ keys: Record<string, string>;
720
+ presentation: {
721
+ label: string;
722
+ detail?: string | undefined;
723
+ url?: string | undefined;
724
+ };
725
+ }[];
726
+ }>>;
727
+ evidence: z.ZodObject<{
728
+ kind: z.ZodLiteral<"thread-brief">;
729
+ sourceFile: z.ZodObject<{
730
+ kind: z.ZodLiteral<"thread-storage">;
731
+ threadId: z.ZodString;
732
+ path: z.ZodLiteral<"BRIEF.md">;
733
+ }, z.core.$strict>;
734
+ sourceState: z.ZodEnum<{
735
+ present: "present";
736
+ absent: "absent";
737
+ empty: "empty";
738
+ }>;
739
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
740
+ completeness: z.ZodObject<{
741
+ state: z.ZodLiteral<"complete">;
742
+ codecVersion: z.ZodLiteral<1>;
743
+ }, z.core.$strict>;
744
+ metadataPolicyVersion: z.ZodLiteral<1>;
745
+ frame: z.ZodNullable<z.ZodObject<{
746
+ codec: z.ZodLiteral<"utf8-fatal-bom-consumed-v1">;
747
+ rawBytes: z.ZodNumber;
748
+ bomBytes: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<3>]>;
749
+ fileUtf16Length: z.ZodNumber;
750
+ bodyBase: z.ZodObject<{
751
+ startUtf16: z.ZodNumber;
752
+ startLine: z.ZodNumber;
753
+ utf16Length: z.ZodNumber;
754
+ }, z.core.$strict>;
755
+ lineMapping: z.ZodObject<{
756
+ codec: z.ZodLiteral<"native-file-lines-v1">;
757
+ fileLineCount: z.ZodNumber;
758
+ }, z.core.$strict>;
759
+ }, z.core.$strict>>;
760
+ sourcePresentation: z.ZodObject<{
761
+ label: z.ZodUnion<readonly [z.ZodObject<{
762
+ state: z.ZodLiteral<"safe">;
763
+ text: z.ZodString;
764
+ }, z.core.$strict>, z.ZodObject<{
765
+ state: z.ZodLiteral<"withheld">;
766
+ digest: z.ZodString;
767
+ display: z.ZodLiteral<"Brief">;
768
+ cause: z.ZodEnum<{
769
+ policy: "policy";
770
+ unclassified: "unclassified";
771
+ }>;
772
+ }, z.core.$strict>]>;
773
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
774
+ state: z.ZodLiteral<"safe">;
775
+ text: z.ZodString;
776
+ }, z.core.$strict>, z.ZodObject<{
777
+ state: z.ZodLiteral<"withheld">;
778
+ digest: z.ZodString;
779
+ display: z.ZodLiteral<"Details withheld">;
780
+ cause: z.ZodEnum<{
781
+ policy: "policy";
782
+ unclassified: "unclassified";
783
+ }>;
784
+ }, z.core.$strict>]>;
785
+ url: z.ZodUnion<readonly [z.ZodObject<{
786
+ state: z.ZodLiteral<"absent">;
787
+ }, z.core.$strict>, z.ZodObject<{
788
+ state: z.ZodLiteral<"exact">;
789
+ href: z.ZodString;
790
+ }, z.core.$strict>, z.ZodObject<{
791
+ state: z.ZodLiteral<"withheld">;
792
+ digest: z.ZodString;
793
+ display: z.ZodLiteral<"Destination withheld">;
794
+ cause: z.ZodEnum<{
795
+ policy: "policy";
796
+ unclassified: "unclassified";
797
+ }>;
798
+ }, z.core.$strict>]>;
799
+ }, z.core.$strict>;
800
+ targetDescriptors: z.ZodArray<z.ZodObject<{
801
+ target: z.ZodObject<{
802
+ provider: z.ZodString;
803
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
804
+ }, z.core.$strict>;
805
+ presentation: z.ZodObject<{
806
+ label: z.ZodUnion<readonly [z.ZodObject<{
807
+ state: z.ZodLiteral<"safe">;
808
+ text: z.ZodString;
809
+ }, z.core.$strict>, z.ZodObject<{
810
+ state: z.ZodLiteral<"withheld">;
811
+ digest: z.ZodString;
812
+ display: z.ZodLiteral<"Reference">;
813
+ cause: z.ZodEnum<{
814
+ policy: "policy";
815
+ unclassified: "unclassified";
816
+ }>;
817
+ }, z.core.$strict>]>;
818
+ detail: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
819
+ state: z.ZodLiteral<"safe">;
820
+ text: z.ZodString;
821
+ }, z.core.$strict>, z.ZodObject<{
822
+ state: z.ZodLiteral<"withheld">;
823
+ digest: z.ZodString;
824
+ display: z.ZodLiteral<"Details withheld">;
825
+ cause: z.ZodEnum<{
826
+ policy: "policy";
827
+ unclassified: "unclassified";
828
+ }>;
829
+ }, z.core.$strict>]>;
830
+ url: z.ZodUnion<readonly [z.ZodObject<{
831
+ state: z.ZodLiteral<"absent">;
832
+ }, z.core.$strict>, z.ZodObject<{
833
+ state: z.ZodLiteral<"exact">;
834
+ href: z.ZodString;
835
+ }, z.core.$strict>, z.ZodObject<{
836
+ state: z.ZodLiteral<"withheld">;
837
+ digest: z.ZodString;
838
+ display: z.ZodLiteral<"Destination withheld">;
839
+ cause: z.ZodEnum<{
840
+ policy: "policy";
841
+ unclassified: "unclassified";
842
+ }>;
843
+ }, z.core.$strict>]>;
844
+ }, z.core.$strict>;
845
+ codec: z.ZodUnion<readonly [z.ZodObject<{
846
+ state: z.ZodLiteral<"available">;
847
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
848
+ kind: z.ZodLiteral<"recognition">;
849
+ source: z.ZodObject<{
850
+ provider: z.ZodString;
851
+ id: z.ZodString;
852
+ kind: z.ZodOptional<z.ZodString>;
853
+ }, z.core.$strict>;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"thread">;
856
+ source: z.ZodObject<{
857
+ provider: z.ZodString;
858
+ id: z.ZodString;
859
+ kind: z.ZodOptional<z.ZodString>;
860
+ }, z.core.$strict>;
861
+ verified: z.ZodObject<{
862
+ id: z.ZodString;
863
+ projectId: z.ZodString;
864
+ }, z.core.$strict>;
865
+ }, z.core.$strict>, z.ZodObject<{
866
+ kind: z.ZodLiteral<"file">;
867
+ verified: z.ZodDiscriminatedUnion<[z.ZodObject<{
868
+ kind: z.ZodLiteral<"workspace">;
869
+ environmentId: z.ZodString;
870
+ path: z.ZodString;
871
+ }, z.core.$strict>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"thread-storage">;
873
+ threadId: z.ZodString;
874
+ path: z.ZodString;
875
+ }, z.core.$strict>], "kind">;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ kind: z.ZodLiteral<"url">;
878
+ href: z.ZodString;
879
+ }, z.core.$strict>], "kind">;
880
+ }, z.core.$strict>, z.ZodObject<{
881
+ state: z.ZodLiteral<"withheld">;
882
+ digest: z.ZodString;
883
+ display: z.ZodLiteral<"Identity metadata withheld">;
884
+ cause: z.ZodEnum<{
885
+ policy: "policy";
886
+ unclassified: "unclassified";
887
+ }>;
888
+ }, z.core.$strict>]>;
889
+ }, z.core.$strict>>;
890
+ occurrences: z.ZodArray<z.ZodObject<{
891
+ occurrenceKey: z.ZodString;
892
+ sourceOccurrenceId: z.ZodString;
893
+ target: z.ZodObject<{
894
+ provider: z.ZodString;
895
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
896
+ }, z.core.$strict>;
897
+ locator: z.ZodObject<{
898
+ kind: z.ZodLiteral<"thread-brief">;
899
+ threadId: z.ZodString;
900
+ file: z.ZodObject<{
901
+ kind: z.ZodLiteral<"thread-storage">;
902
+ threadId: z.ZodString;
903
+ path: z.ZodLiteral<"BRIEF.md">;
904
+ }, z.core.$strict>;
905
+ sourceContentRevision: z.ZodString;
906
+ section: z.ZodObject<{
907
+ heading: z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
908
+ state: z.ZodLiteral<"named">;
909
+ text: z.ZodString;
910
+ }, z.core.$strict>, z.ZodObject<{
911
+ state: z.ZodLiteral<"withheld">;
912
+ digest: z.ZodString;
913
+ display: z.ZodLiteral<"Heading withheld">;
914
+ cause: z.ZodEnum<{
915
+ policy: "policy";
916
+ unclassified: "unclassified";
917
+ }>;
918
+ }, z.core.$strict>]>;
919
+ line: z.ZodNumber;
920
+ }, z.core.$strict>;
921
+ location: z.ZodObject<{
922
+ kind: z.ZodLiteral<"line">;
923
+ line: z.ZodNumber;
924
+ column: z.ZodNullable<z.ZodNumber>;
925
+ endLine: z.ZodNullable<z.ZodNumber>;
926
+ }, z.core.$strict>;
927
+ span: z.ZodOptional<z.ZodObject<{
928
+ frame: z.ZodEnum<{
929
+ "file-utf16": "file-utf16";
930
+ "body-utf16": "body-utf16";
931
+ }>;
932
+ start: z.ZodNumber;
933
+ end: z.ZodNumber;
934
+ }, z.core.$strict>>;
935
+ }, z.core.$strict>;
936
+ provenance: z.ZodUnion<readonly [z.ZodObject<{
937
+ state: z.ZodLiteral<"safe">;
938
+ value: z.ZodObject<{
939
+ pluginId: z.ZodString;
940
+ origin: z.ZodEnum<{
941
+ builtin: "builtin";
942
+ contributed: "contributed";
943
+ }>;
944
+ confidence: z.ZodEnum<{
945
+ high: "high";
946
+ medium: "medium";
947
+ low: "low";
948
+ }>;
949
+ recognition: z.ZodObject<{
950
+ basis: z.ZodEnum<{
951
+ explicit: "explicit";
952
+ "text-url": "text-url";
953
+ "existing-link": "existing-link";
954
+ "git-remote": "git-remote";
955
+ context: "context";
956
+ }>;
957
+ explanation: z.ZodString;
958
+ evidence: z.ZodOptional<z.ZodObject<{
959
+ span: z.ZodOptional<z.ZodObject<{
960
+ start: z.ZodNumber;
961
+ end: z.ZodNumber;
962
+ }, z.core.$strict>>;
963
+ link: z.ZodOptional<z.ZodNumber>;
964
+ remote: z.ZodOptional<z.ZodString>;
965
+ }, z.core.$strict>>;
966
+ }, z.core.$strict>;
967
+ source: z.ZodObject<{
968
+ provider: z.ZodString;
969
+ id: z.ZodString;
970
+ kind: z.ZodOptional<z.ZodString>;
971
+ }, z.core.$strict>;
972
+ authoredHref: z.ZodOptional<z.ZodString>;
973
+ verifiedFile: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
974
+ kind: z.ZodLiteral<"workspace">;
975
+ environmentId: z.ZodString;
976
+ path: z.ZodString;
977
+ }, z.core.$strict>, z.ZodObject<{
978
+ kind: z.ZodLiteral<"thread-storage">;
979
+ threadId: z.ZodString;
980
+ path: z.ZodString;
981
+ }, z.core.$strict>], "kind">>;
982
+ }, z.core.$strict>;
983
+ }, z.core.$strict>, z.ZodObject<{
984
+ state: z.ZodLiteral<"withheld">;
985
+ digest: z.ZodString;
986
+ display: z.ZodLiteral<"Recognition details withheld">;
987
+ cause: z.ZodEnum<{
988
+ policy: "policy";
989
+ unclassified: "unclassified";
990
+ }>;
991
+ summary: z.ZodObject<{
992
+ pluginId: z.ZodString;
993
+ origin: z.ZodEnum<{
994
+ builtin: "builtin";
995
+ contributed: "contributed";
996
+ }>;
997
+ confidence: z.ZodEnum<{
998
+ high: "high";
999
+ medium: "medium";
1000
+ low: "low";
1001
+ }>;
1002
+ basis: z.ZodEnum<{
1003
+ explicit: "explicit";
1004
+ "text-url": "text-url";
1005
+ "existing-link": "existing-link";
1006
+ "git-remote": "git-remote";
1007
+ context: "context";
1008
+ }>;
1009
+ }, z.core.$strict>;
1010
+ }, z.core.$strict>]>;
1011
+ authoredUrl: z.ZodUnion<readonly [z.ZodObject<{
1012
+ state: z.ZodLiteral<"exact">;
1013
+ href: z.ZodString;
1014
+ }, z.core.$strict>, z.ZodObject<{
1015
+ state: z.ZodLiteral<"not-url">;
1016
+ }, z.core.$strict>, z.ZodObject<{
1017
+ state: z.ZodLiteral<"unknown">;
1018
+ }, z.core.$strict>, z.ZodObject<{
1019
+ state: z.ZodLiteral<"withheld">;
1020
+ digest: z.ZodString;
1021
+ display: z.ZodLiteral<"Destination withheld">;
1022
+ cause: z.ZodEnum<{
1023
+ policy: "policy";
1024
+ unclassified: "unclassified";
1025
+ }>;
1026
+ }, z.core.$strict>]>;
1027
+ }, z.core.$strict>>;
1028
+ }, z.core.$strict>;
1029
+ evidenceDigest: z.ZodString;
1030
+ }, z.core.$strict>;
1031
+ readonly output: z.ZodObject<{
1032
+ version: z.ZodLiteral<1>;
1033
+ outcome: z.ZodEnum<{
1034
+ applied: "applied";
1035
+ duplicate: "duplicate";
1036
+ equal: "equal";
1037
+ stale: "stale";
1038
+ conflict: "conflict";
1039
+ "cas-mismatch": "cas-mismatch";
1040
+ }>;
1041
+ currentRevision: z.ZodNumber;
1042
+ currentDigest: z.ZodNullable<z.ZodString>;
1043
+ evidenceDisposition: z.ZodEnum<{
1044
+ conflict: "conflict";
1045
+ installed: "installed";
1046
+ replayed: "replayed";
1047
+ "not-applied": "not-applied";
1048
+ }>;
1049
+ state: z.ZodObject<{
1050
+ version: z.ZodLiteral<1>;
1051
+ projection: z.ZodNullable<z.ZodObject<{
1052
+ producerPluginId: z.ZodString;
1053
+ source: z.ZodObject<{
1054
+ provider: z.ZodString;
1055
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1056
+ presentation: z.ZodObject<{
1057
+ label: z.ZodString;
1058
+ detail: z.ZodOptional<z.ZodString>;
1059
+ url: z.ZodOptional<z.ZodString>;
1060
+ }, z.core.$loose>;
1061
+ }, z.core.$loose>;
1062
+ revision: z.ZodNumber;
1063
+ mutationId: z.ZodString;
1064
+ payloadDigest: z.ZodString;
1065
+ tombstone: z.ZodBoolean;
1066
+ targets: z.ZodArray<z.ZodObject<{
1067
+ provider: z.ZodString;
1068
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1069
+ presentation: z.ZodObject<{
1070
+ label: z.ZodString;
1071
+ detail: z.ZodOptional<z.ZodString>;
1072
+ url: z.ZodOptional<z.ZodString>;
1073
+ }, z.core.$loose>;
1074
+ }, z.core.$loose>>;
1075
+ }, z.core.$loose>>;
1076
+ evidence: z.ZodNullable<z.ZodObject<{
1077
+ kind: z.ZodLiteral<"thread-brief">;
1078
+ graphRevision: z.ZodNumber;
1079
+ graphPayloadDigest: z.ZodString;
1080
+ evidenceDigest: z.ZodString;
1081
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1082
+ state: z.ZodEnum<{
1083
+ bound: "bound";
1084
+ unconfirmed: "unconfirmed";
1085
+ }>;
1086
+ sourceState: z.ZodEnum<{
1087
+ present: "present";
1088
+ absent: "absent";
1089
+ empty: "empty";
1090
+ }>;
1091
+ occurrenceCount: z.ZodNumber;
1092
+ }, z.core.$loose>>;
1093
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1094
+ state: z.ZodLiteral<"over-limit">;
1095
+ sourceContentRevision: z.ZodString;
1096
+ limits: z.ZodArray<z.ZodEnum<{
1097
+ "target-count": "target-count";
1098
+ "projection-bytes": "projection-bytes";
1099
+ "occurrence-count": "occurrence-count";
1100
+ "per-target-occurrences": "per-target-occurrences";
1101
+ "heading-bytes": "heading-bytes";
1102
+ "envelope-bytes": "envelope-bytes";
1103
+ "presentation-label-bytes": "presentation-label-bytes";
1104
+ "presentation-detail-bytes": "presentation-detail-bytes";
1105
+ "presentation-url-bytes": "presentation-url-bytes";
1106
+ "presentation-bytes": "presentation-bytes";
1107
+ }>>;
1108
+ attemptRevision: z.ZodNumber;
1109
+ statusDigest: z.ZodString;
1110
+ sourceFile: z.ZodObject<{
1111
+ kind: z.ZodLiteral<"thread-storage">;
1112
+ threadId: z.ZodString;
1113
+ path: z.ZodLiteral<"BRIEF.md">;
1114
+ }, z.core.$loose>;
1115
+ applicability: z.ZodEnum<{
1116
+ current: "current";
1117
+ "superseded-by-graph": "superseded-by-graph";
1118
+ }>;
1119
+ }, z.core.$loose>, z.ZodObject<{
1120
+ state: z.ZodLiteral<"identity-unrepresentable">;
1121
+ sourceContentRevision: z.ZodString;
1122
+ identityReasons: z.ZodArray<z.ZodEnum<{
1123
+ "unsafe-required-identity": "unsafe-required-identity";
1124
+ "unsupported-required-codec": "unsupported-required-codec";
1125
+ "required-identity-bound": "required-identity-bound";
1126
+ }>>;
1127
+ limits: z.ZodArray<z.ZodEnum<{
1128
+ "target-count": "target-count";
1129
+ "projection-bytes": "projection-bytes";
1130
+ "occurrence-count": "occurrence-count";
1131
+ "per-target-occurrences": "per-target-occurrences";
1132
+ "heading-bytes": "heading-bytes";
1133
+ "envelope-bytes": "envelope-bytes";
1134
+ "presentation-label-bytes": "presentation-label-bytes";
1135
+ "presentation-detail-bytes": "presentation-detail-bytes";
1136
+ "presentation-url-bytes": "presentation-url-bytes";
1137
+ "presentation-bytes": "presentation-bytes";
1138
+ }>>;
1139
+ attemptRevision: z.ZodNumber;
1140
+ statusDigest: z.ZodString;
1141
+ sourceFile: z.ZodObject<{
1142
+ kind: z.ZodLiteral<"thread-storage">;
1143
+ threadId: z.ZodString;
1144
+ path: z.ZodLiteral<"BRIEF.md">;
1145
+ }, z.core.$loose>;
1146
+ applicability: z.ZodEnum<{
1147
+ current: "current";
1148
+ "superseded-by-graph": "superseded-by-graph";
1149
+ }>;
1150
+ }, z.core.$loose>]>>;
1151
+ revisionHighWater: z.ZodNumber;
1152
+ }, z.core.$loose>;
1153
+ }, z.core.$loose>;
1154
+ };
1155
+ readonly crossReferencesProducerV1ReportStatus: {
1156
+ readonly input: z.ZodObject<{
1157
+ version: z.ZodLiteral<1>;
1158
+ producerPluginId: z.ZodLiteral<"thread-brief">;
1159
+ source: z.ZodObject<{
1160
+ provider: z.ZodString;
1161
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1162
+ }, z.core.$strict>;
1163
+ sourceFile: z.ZodObject<{
1164
+ kind: z.ZodLiteral<"thread-storage">;
1165
+ threadId: z.ZodString;
1166
+ path: z.ZodLiteral<"BRIEF.md">;
1167
+ }, z.core.$strict>;
1168
+ attemptRevision: z.ZodNumber;
1169
+ expectedRevision: z.ZodNumber;
1170
+ statusDigest: z.ZodString;
1171
+ status: z.ZodDiscriminatedUnion<[z.ZodObject<{
1172
+ state: z.ZodLiteral<"over-limit">;
1173
+ sourceContentRevision: z.ZodString;
1174
+ limits: z.ZodArray<z.ZodEnum<{
1175
+ "target-count": "target-count";
1176
+ "projection-bytes": "projection-bytes";
1177
+ "occurrence-count": "occurrence-count";
1178
+ "per-target-occurrences": "per-target-occurrences";
1179
+ "heading-bytes": "heading-bytes";
1180
+ "envelope-bytes": "envelope-bytes";
1181
+ "presentation-label-bytes": "presentation-label-bytes";
1182
+ "presentation-detail-bytes": "presentation-detail-bytes";
1183
+ "presentation-url-bytes": "presentation-url-bytes";
1184
+ "presentation-bytes": "presentation-bytes";
1185
+ }>>;
1186
+ }, z.core.$strict>, z.ZodObject<{
1187
+ state: z.ZodLiteral<"identity-unrepresentable">;
1188
+ sourceContentRevision: z.ZodString;
1189
+ identityReasons: z.ZodArray<z.ZodEnum<{
1190
+ "unsafe-required-identity": "unsafe-required-identity";
1191
+ "unsupported-required-codec": "unsupported-required-codec";
1192
+ "required-identity-bound": "required-identity-bound";
1193
+ }>>;
1194
+ limits: z.ZodArray<z.ZodEnum<{
1195
+ "target-count": "target-count";
1196
+ "projection-bytes": "projection-bytes";
1197
+ "occurrence-count": "occurrence-count";
1198
+ "per-target-occurrences": "per-target-occurrences";
1199
+ "heading-bytes": "heading-bytes";
1200
+ "envelope-bytes": "envelope-bytes";
1201
+ "presentation-label-bytes": "presentation-label-bytes";
1202
+ "presentation-detail-bytes": "presentation-detail-bytes";
1203
+ "presentation-url-bytes": "presentation-url-bytes";
1204
+ "presentation-bytes": "presentation-bytes";
1205
+ }>>;
1206
+ }, z.core.$strict>], "state">;
1207
+ }, z.core.$strict>;
1208
+ readonly output: z.ZodObject<{
1209
+ version: z.ZodLiteral<1>;
1210
+ outcome: z.ZodEnum<{
1211
+ duplicate: "duplicate";
1212
+ stale: "stale";
1213
+ conflict: "conflict";
1214
+ "cas-mismatch": "cas-mismatch";
1215
+ recorded: "recorded";
1216
+ }>;
1217
+ state: z.ZodObject<{
1218
+ version: z.ZodLiteral<1>;
1219
+ projection: z.ZodNullable<z.ZodObject<{
1220
+ producerPluginId: z.ZodString;
1221
+ source: z.ZodObject<{
1222
+ provider: z.ZodString;
1223
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1224
+ presentation: z.ZodObject<{
1225
+ label: z.ZodString;
1226
+ detail: z.ZodOptional<z.ZodString>;
1227
+ url: z.ZodOptional<z.ZodString>;
1228
+ }, z.core.$loose>;
1229
+ }, z.core.$loose>;
1230
+ revision: z.ZodNumber;
1231
+ mutationId: z.ZodString;
1232
+ payloadDigest: z.ZodString;
1233
+ tombstone: z.ZodBoolean;
1234
+ targets: z.ZodArray<z.ZodObject<{
1235
+ provider: z.ZodString;
1236
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1237
+ presentation: z.ZodObject<{
1238
+ label: z.ZodString;
1239
+ detail: z.ZodOptional<z.ZodString>;
1240
+ url: z.ZodOptional<z.ZodString>;
1241
+ }, z.core.$loose>;
1242
+ }, z.core.$loose>>;
1243
+ }, z.core.$loose>>;
1244
+ evidence: z.ZodNullable<z.ZodObject<{
1245
+ kind: z.ZodLiteral<"thread-brief">;
1246
+ graphRevision: z.ZodNumber;
1247
+ graphPayloadDigest: z.ZodString;
1248
+ evidenceDigest: z.ZodString;
1249
+ sourceContentRevision: z.ZodNullable<z.ZodString>;
1250
+ state: z.ZodEnum<{
1251
+ bound: "bound";
1252
+ unconfirmed: "unconfirmed";
1253
+ }>;
1254
+ sourceState: z.ZodEnum<{
1255
+ present: "present";
1256
+ absent: "absent";
1257
+ empty: "empty";
1258
+ }>;
1259
+ occurrenceCount: z.ZodNumber;
1260
+ }, z.core.$loose>>;
1261
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1262
+ state: z.ZodLiteral<"over-limit">;
1263
+ sourceContentRevision: z.ZodString;
1264
+ limits: z.ZodArray<z.ZodEnum<{
1265
+ "target-count": "target-count";
1266
+ "projection-bytes": "projection-bytes";
1267
+ "occurrence-count": "occurrence-count";
1268
+ "per-target-occurrences": "per-target-occurrences";
1269
+ "heading-bytes": "heading-bytes";
1270
+ "envelope-bytes": "envelope-bytes";
1271
+ "presentation-label-bytes": "presentation-label-bytes";
1272
+ "presentation-detail-bytes": "presentation-detail-bytes";
1273
+ "presentation-url-bytes": "presentation-url-bytes";
1274
+ "presentation-bytes": "presentation-bytes";
1275
+ }>>;
1276
+ attemptRevision: z.ZodNumber;
1277
+ statusDigest: z.ZodString;
1278
+ sourceFile: z.ZodObject<{
1279
+ kind: z.ZodLiteral<"thread-storage">;
1280
+ threadId: z.ZodString;
1281
+ path: z.ZodLiteral<"BRIEF.md">;
1282
+ }, z.core.$loose>;
1283
+ applicability: z.ZodEnum<{
1284
+ current: "current";
1285
+ "superseded-by-graph": "superseded-by-graph";
1286
+ }>;
1287
+ }, z.core.$loose>, z.ZodObject<{
1288
+ state: z.ZodLiteral<"identity-unrepresentable">;
1289
+ sourceContentRevision: z.ZodString;
1290
+ identityReasons: z.ZodArray<z.ZodEnum<{
1291
+ "unsafe-required-identity": "unsafe-required-identity";
1292
+ "unsupported-required-codec": "unsupported-required-codec";
1293
+ "required-identity-bound": "required-identity-bound";
1294
+ }>>;
1295
+ limits: z.ZodArray<z.ZodEnum<{
1296
+ "target-count": "target-count";
1297
+ "projection-bytes": "projection-bytes";
1298
+ "occurrence-count": "occurrence-count";
1299
+ "per-target-occurrences": "per-target-occurrences";
1300
+ "heading-bytes": "heading-bytes";
1301
+ "envelope-bytes": "envelope-bytes";
1302
+ "presentation-label-bytes": "presentation-label-bytes";
1303
+ "presentation-detail-bytes": "presentation-detail-bytes";
1304
+ "presentation-url-bytes": "presentation-url-bytes";
1305
+ "presentation-bytes": "presentation-bytes";
1306
+ }>>;
1307
+ attemptRevision: z.ZodNumber;
1308
+ statusDigest: z.ZodString;
1309
+ sourceFile: z.ZodObject<{
1310
+ kind: z.ZodLiteral<"thread-storage">;
1311
+ threadId: z.ZodString;
1312
+ path: z.ZodLiteral<"BRIEF.md">;
1313
+ }, z.core.$loose>;
1314
+ applicability: z.ZodEnum<{
1315
+ current: "current";
1316
+ "superseded-by-graph": "superseded-by-graph";
1317
+ }>;
1318
+ }, z.core.$loose>]>>;
1319
+ revisionHighWater: z.ZodNumber;
1320
+ }, z.core.$loose>;
1321
+ }, z.core.$loose>;
1322
+ };
1323
+ };