@tearleads/client-sdk 0.1.247 → 0.1.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tearleads.js +4 -2
- package/Tearleads.js.map +1 -1
- package/client/organizations/index.js +5 -3
- package/client/organizations/index.js.map +1 -1
- package/client/organizations/organizationGroupPresentation.d.ts +1 -1
- package/client/organizations/organizationGroupPresentation.js.map +1 -1
- package/client/organizations/organizationLeaveRequestVerifier.js +21 -0
- package/client/organizations/organizationLeaveRequestVerifier.js.map +1 -0
- package/client/organizations/{organizationReadModels.d.ts → organizationReadModelCoordinator.d.ts} +18 -16
- package/client/organizations/organizationReadModelCoordinator.js +2 -0
- package/client/organizations/organizationReadModelCoordinator.js.map +1 -0
- package/client/organizations/organizationReadModelPresentation.js +51 -0
- package/client/organizations/organizationReadModelPresentation.js.map +1 -0
- package/client/organizations/organizationReadModelScopes.js +37 -0
- package/client/organizations/organizationReadModelScopes.js.map +1 -0
- package/client/organizations/organizationReadModels.js +131 -88
- package/client/organizations/organizationReadModels.js.map +1 -1
- package/client/organizations/organizationsTypes.d.ts +13 -5
- package/client/organizations/organizationsTypes.js.map +1 -1
- package/client/organizations/principalMutations.d.ts +18 -2
- package/client/organizations/principalMutations.js +29 -15
- package/client/organizations/principalMutations.js.map +1 -1
- package/client/runtime/principalMutationApi.d.ts +2 -0
- package/client/runtime/principalMutationApi.js +2 -0
- package/client/runtime/principalMutationApi.js.map +1 -1
- package/client/runtime/principalMutationDispatch.js +47 -10
- package/client/runtime/principalMutationDispatch.js.map +1 -1
- package/client/runtime/workflowRuntime.js +5 -4
- package/client/runtime/workflowRuntime.js.map +1 -1
- package/data/containers/shared/mutationRequestOptions.d.ts +2 -0
- package/data/containers/shared/mutationRequestOptions.js.map +1 -1
- package/data/containers/shared/types.d.ts +12 -2
- package/data/containers/shared/types.js.map +1 -1
- package/data/persistence/organizations/organizationReadModelRepository.js +20 -2
- package/data/persistence/organizations/organizationReadModelRepository.js.map +1 -1
- package/data/persistence/principalPolicy/heldOrganizationDirectories.js +53 -0
- package/data/persistence/principalPolicy/heldOrganizationDirectories.js.map +1 -0
- package/data/persistence/verifiedManifestBundlePersistence.d.ts +8 -3
- package/data/persistence/verifiedManifestBundlePersistence.js +34 -15
- package/data/persistence/verifiedManifestBundlePersistence.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +4 -1
- package/internal/api-client/client/containerMutations.d.ts +2 -2
- package/internal/api-client/client/containerMutations.js +2 -1
- package/internal/api-client/client/containerMutations.js.map +1 -1
- package/internal/api-client/client/principalPolicies.d.ts +3 -0
- package/internal/api-client/heldDirectoryCitations.d.ts +19 -0
- package/internal/api-client/heldDirectoryCitations.js +37 -0
- package/internal/api-client/heldDirectoryCitations.js.map +1 -0
- package/internal/api-client/index.d.ts +1 -1
- package/internal/api-client/index.js.map +1 -1
- package/internal/api-client/principalPolicyRequests.d.ts +2 -0
- package/internal/api-client/principalPolicyRequests.js +6 -4
- package/internal/api-client/principalPolicyRequests.js.map +1 -1
- package/internal/api-client/routes/containers/mutations.js +3 -3
- package/internal/api-client/routes/containers/mutations.js.map +1 -1
- package/internal/api-client/routes/organizations/createGroup.js +3 -5
- package/internal/api-client/routes/organizations/createGroup.js.map +1 -1
- package/internal/api-client/routes/principals/policy.js +2 -5
- package/internal/api-client/routes/principals/policy.js.map +1 -1
- package/internal/api-client/types.d.ts +6 -0
- package/internal/api-client/types.js.map +1 -1
- package/internal/api-client/verifiedManifestCitations.d.ts +16 -6
- package/internal/api-client/verifiedManifestCitations.js +32 -13
- package/internal/api-client/verifiedManifestCitations.js.map +1 -1
- package/internal/api-client/writerProjectionRequests.js +5 -3
- package/internal/api-client/writerProjectionRequests.js.map +1 -1
- package/internal/validators/knownManifestsRefinements.js +1 -1
- package/internal/validators/knownManifestsRefinements.js.map +1 -1
- package/internal/validators/operation/containerMutations.d.ts +20 -3
- package/internal/validators/operation/containerMutations.js +18 -20
- package/internal/validators/operation/containerMutations.js.map +1 -1
- package/internal/validators/operation/index.d.ts +1 -1
- package/internal/validators/operation/index.js +1 -1
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/organizations.d.ts +17 -1
- package/internal/validators/operation/organizations.js +4 -2
- package/internal/validators/operation/organizations.js.map +1 -1
- package/internal/validators/operation/principals.d.ts +17 -1
- package/internal/validators/operation/principals.js +5 -2
- package/internal/validators/operation/principals.js.map +1 -1
- package/internal/validators/operation/writerProjections.d.ts +11 -11
- package/internal/validators/operation/writerProjections.js +1 -1
- package/internal/validators/operation/writerProjections.js.map +1 -1
- package/internal/validators/request/index.d.ts +1 -1
- package/internal/validators/request/index.js +1 -1
- package/internal/validators/request/index.js.map +1 -1
- package/internal/validators/request/organization.d.ts +15 -0
- package/internal/validators/request/organization.js +8 -0
- package/internal/validators/request/organization.js.map +1 -1
- package/internal/validators/response/areas/organizations.d.ts +3 -2
- package/internal/validators/response/areas/organizations.js +3 -2
- package/internal/validators/response/areas/organizations.js.map +1 -1
- package/internal/validators/response/areas/principals.d.ts +3 -2
- package/internal/validators/response/areas/principals.js +2 -2
- package/internal/validators/response/areas/principals.js.map +1 -1
- package/internal/validators/response/committedReadModel.d.ts +697 -0
- package/internal/validators/response/committedReadModel.js +52 -0
- package/internal/validators/response/committedReadModel.js.map +1 -0
- package/internal/validators/response/container.d.ts +56 -4
- package/internal/validators/response/container.js +5 -5
- package/internal/validators/response/container.js.map +1 -1
- package/internal/validators/response/documentMutation.d.ts +4 -4
- package/internal/validators/response/documentMutation.js +2 -2
- package/internal/validators/response/documentMutation.js.map +1 -1
- package/internal/validators/response/organization.d.ts +0 -191
- package/internal/validators/response/organization.js +0 -7
- package/internal/validators/response/organization.js.map +1 -1
- package/internal/validators/response/organizationReadModel.d.ts +167 -0
- package/internal/validators/response/organizationReadModel.js +5 -0
- package/internal/validators/response/organizationReadModel.js.map +1 -1
- package/internal/validators/response/policyEvidenceWire.d.ts +17 -0
- package/internal/validators/response/policyEvidenceWire.js +36 -0
- package/internal/validators/response/policyEvidenceWire.js.map +1 -0
- package/internal/validators/response/principal.d.ts +0 -403
- package/internal/validators/response/principal.js +0 -8
- package/internal/validators/response/principal.js.map +1 -1
- package/internal/validators/response/projectionPolicyEvidence.d.ts +175 -0
- package/internal/validators/response/projectionPolicyEvidence.js +13 -0
- package/internal/validators/response/projectionPolicyEvidence.js.map +1 -1
- package/internal/validators/response/writerProjectionWire.d.ts +11 -7
- package/internal/validators/response/writerProjectionWire.js +19 -10
- package/internal/validators/response/writerProjectionWire.js.map +1 -1
- package/internal/validators/util/index.d.ts +1 -1
- package/internal/validators/util/index.js +1 -1
- package/internal/validators/util/index.js.map +1 -1
- package/internal/validators/util/knownManifestWire.d.ts +9 -3
- package/internal/validators/util/knownManifestWire.js +24 -8
- package/internal/validators/util/knownManifestWire.js.map +1 -1
- package/package.json +1 -1
- package/workflows/container-contents/container-state/organizationHost.d.ts +9 -0
- package/workflows/container-contents/container-state/organizationHost.js.map +1 -1
- package/workflows/container-contents/container-state/remote.js +6 -0
- package/workflows/container-contents/container-state/remote.js.map +1 -1
- package/workflows/containers/child/share/index.d.ts +4 -2
- package/workflows/containers/child/share/index.js +37 -20
- package/workflows/containers/child/share/index.js.map +1 -1
- package/workflows/organizations/containerContentsHost.js +20 -1
- package/workflows/organizations/containerContentsHost.js.map +1 -1
- package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js +5 -1
- package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js.map +1 -1
- package/workflows/organizations/groups/createCurrentOrganizationGroup.js +8 -1
- package/workflows/organizations/groups/createCurrentOrganizationGroup.js.map +1 -1
- package/workflows/organizations/index.d.ts +1 -0
- package/workflows/organizations/index.js +1 -0
- package/workflows/organizations/index.js.map +1 -1
- package/workflows/organizations/readModel/committedReadModel.d.ts +66 -0
- package/workflows/organizations/readModel/committedReadModel.js +150 -0
- package/workflows/organizations/readModel/committedReadModel.js.map +1 -0
- package/workflows/organizations/readModel/readModelProjection.d.ts +15 -2
- package/workflows/organizations/readModel/readModelProjection.js +26 -4
- package/workflows/organizations/readModel/readModelProjection.js.map +1 -1
|
@@ -772,408 +772,6 @@ export declare const PrincipalPolicyMutationResponseSchema: z.ZodType<{
|
|
|
772
772
|
};
|
|
773
773
|
}>>;
|
|
774
774
|
export type PrincipalPolicyMutationResponse = z.infer<typeof PrincipalPolicyMutationResponseSchema>;
|
|
775
|
-
export declare const CommitOrganizationGroupPolicyResponseSchema: z.ZodType<{
|
|
776
|
-
groupPolicy: {
|
|
777
|
-
containerMutations: {
|
|
778
|
-
containerKek: {
|
|
779
|
-
containerKeyEpoch: number;
|
|
780
|
-
containerKeyEpochId: string;
|
|
781
|
-
keyEpochHash: string;
|
|
782
|
-
keyringHash: string | null;
|
|
783
|
-
keyTargetHash: string;
|
|
784
|
-
parentContainerKeyEpochId: string | null;
|
|
785
|
-
};
|
|
786
|
-
bundleDigest: string;
|
|
787
|
-
containerId: string;
|
|
788
|
-
createdAt: string;
|
|
789
|
-
eventHash: string;
|
|
790
|
-
manifestHead: {
|
|
791
|
-
epoch: number;
|
|
792
|
-
manifestHash: string;
|
|
793
|
-
};
|
|
794
|
-
organizationId: string;
|
|
795
|
-
parentId: string | null;
|
|
796
|
-
updatedAt: string;
|
|
797
|
-
systemSlot?: string | null | undefined;
|
|
798
|
-
}[];
|
|
799
|
-
createdAt: string;
|
|
800
|
-
head: {
|
|
801
|
-
keyEpoch: number;
|
|
802
|
-
keyFingerprint: string;
|
|
803
|
-
principalId: string;
|
|
804
|
-
principalType: "group" | "organization";
|
|
805
|
-
stateHash: string;
|
|
806
|
-
version: number;
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
organizationPolicy: {
|
|
810
|
-
containerMutations: {
|
|
811
|
-
containerKek: {
|
|
812
|
-
containerKeyEpoch: number;
|
|
813
|
-
containerKeyEpochId: string;
|
|
814
|
-
keyEpochHash: string;
|
|
815
|
-
keyringHash: string | null;
|
|
816
|
-
keyTargetHash: string;
|
|
817
|
-
parentContainerKeyEpochId: string | null;
|
|
818
|
-
};
|
|
819
|
-
bundleDigest: string;
|
|
820
|
-
containerId: string;
|
|
821
|
-
createdAt: string;
|
|
822
|
-
eventHash: string;
|
|
823
|
-
manifestHead: {
|
|
824
|
-
epoch: number;
|
|
825
|
-
manifestHash: string;
|
|
826
|
-
};
|
|
827
|
-
organizationId: string;
|
|
828
|
-
parentId: string | null;
|
|
829
|
-
updatedAt: string;
|
|
830
|
-
systemSlot?: string | null | undefined;
|
|
831
|
-
}[];
|
|
832
|
-
createdAt: string;
|
|
833
|
-
head: {
|
|
834
|
-
keyEpoch: number;
|
|
835
|
-
keyFingerprint: string;
|
|
836
|
-
principalId: string;
|
|
837
|
-
principalType: "group" | "organization";
|
|
838
|
-
stateHash: string;
|
|
839
|
-
version: number;
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
memberPolicy?: {
|
|
843
|
-
containerMutations: {
|
|
844
|
-
containerKek: {
|
|
845
|
-
containerKeyEpoch: number;
|
|
846
|
-
containerKeyEpochId: string;
|
|
847
|
-
keyEpochHash: string;
|
|
848
|
-
keyringHash: string | null;
|
|
849
|
-
keyTargetHash: string;
|
|
850
|
-
parentContainerKeyEpochId: string | null;
|
|
851
|
-
};
|
|
852
|
-
bundleDigest: string;
|
|
853
|
-
containerId: string;
|
|
854
|
-
createdAt: string;
|
|
855
|
-
eventHash: string;
|
|
856
|
-
manifestHead: {
|
|
857
|
-
epoch: number;
|
|
858
|
-
manifestHash: string;
|
|
859
|
-
};
|
|
860
|
-
organizationId: string;
|
|
861
|
-
parentId: string | null;
|
|
862
|
-
updatedAt: string;
|
|
863
|
-
systemSlot?: string | null | undefined;
|
|
864
|
-
}[];
|
|
865
|
-
createdAt: string;
|
|
866
|
-
head: {
|
|
867
|
-
keyEpoch: number;
|
|
868
|
-
keyFingerprint: string;
|
|
869
|
-
principalId: string;
|
|
870
|
-
principalType: "group" | "organization";
|
|
871
|
-
stateHash: string;
|
|
872
|
-
version: number;
|
|
873
|
-
};
|
|
874
|
-
} | undefined;
|
|
875
|
-
}, {
|
|
876
|
-
groupPolicy: {
|
|
877
|
-
containerMutations: {
|
|
878
|
-
containerKek: {
|
|
879
|
-
containerKeyEpoch: number;
|
|
880
|
-
containerKeyEpochId: string;
|
|
881
|
-
keyEpochHash: string;
|
|
882
|
-
keyringHash: string | null;
|
|
883
|
-
keyTargetHash: string;
|
|
884
|
-
parentContainerKeyEpochId: string | null;
|
|
885
|
-
};
|
|
886
|
-
bundleDigest: string;
|
|
887
|
-
containerId: string;
|
|
888
|
-
createdAt: string;
|
|
889
|
-
eventHash: string;
|
|
890
|
-
manifestHead: {
|
|
891
|
-
epoch: number;
|
|
892
|
-
manifestHash: string;
|
|
893
|
-
};
|
|
894
|
-
organizationId: string;
|
|
895
|
-
parentId: string | null;
|
|
896
|
-
updatedAt: string;
|
|
897
|
-
systemSlot?: string | null | undefined;
|
|
898
|
-
}[];
|
|
899
|
-
createdAt: string;
|
|
900
|
-
head: {
|
|
901
|
-
keyEpoch: number;
|
|
902
|
-
keyFingerprint: string;
|
|
903
|
-
principalId: string;
|
|
904
|
-
principalType: "group" | "organization";
|
|
905
|
-
stateHash: string;
|
|
906
|
-
version: number;
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
organizationPolicy: {
|
|
910
|
-
containerMutations: {
|
|
911
|
-
containerKek: {
|
|
912
|
-
containerKeyEpoch: number;
|
|
913
|
-
containerKeyEpochId: string;
|
|
914
|
-
keyEpochHash: string;
|
|
915
|
-
keyringHash: string | null;
|
|
916
|
-
keyTargetHash: string;
|
|
917
|
-
parentContainerKeyEpochId: string | null;
|
|
918
|
-
};
|
|
919
|
-
bundleDigest: string;
|
|
920
|
-
containerId: string;
|
|
921
|
-
createdAt: string;
|
|
922
|
-
eventHash: string;
|
|
923
|
-
manifestHead: {
|
|
924
|
-
epoch: number;
|
|
925
|
-
manifestHash: string;
|
|
926
|
-
};
|
|
927
|
-
organizationId: string;
|
|
928
|
-
parentId: string | null;
|
|
929
|
-
updatedAt: string;
|
|
930
|
-
systemSlot?: string | null | undefined;
|
|
931
|
-
}[];
|
|
932
|
-
createdAt: string;
|
|
933
|
-
head: {
|
|
934
|
-
keyEpoch: number;
|
|
935
|
-
keyFingerprint: string;
|
|
936
|
-
principalId: string;
|
|
937
|
-
principalType: "group" | "organization";
|
|
938
|
-
stateHash: string;
|
|
939
|
-
version: number;
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
memberPolicy?: {
|
|
943
|
-
containerMutations: {
|
|
944
|
-
containerKek: {
|
|
945
|
-
containerKeyEpoch: number;
|
|
946
|
-
containerKeyEpochId: string;
|
|
947
|
-
keyEpochHash: string;
|
|
948
|
-
keyringHash: string | null;
|
|
949
|
-
keyTargetHash: string;
|
|
950
|
-
parentContainerKeyEpochId: string | null;
|
|
951
|
-
};
|
|
952
|
-
bundleDigest: string;
|
|
953
|
-
containerId: string;
|
|
954
|
-
createdAt: string;
|
|
955
|
-
eventHash: string;
|
|
956
|
-
manifestHead: {
|
|
957
|
-
epoch: number;
|
|
958
|
-
manifestHash: string;
|
|
959
|
-
};
|
|
960
|
-
organizationId: string;
|
|
961
|
-
parentId: string | null;
|
|
962
|
-
updatedAt: string;
|
|
963
|
-
systemSlot?: string | null | undefined;
|
|
964
|
-
}[];
|
|
965
|
-
createdAt: string;
|
|
966
|
-
head: {
|
|
967
|
-
keyEpoch: number;
|
|
968
|
-
keyFingerprint: string;
|
|
969
|
-
principalId: string;
|
|
970
|
-
principalType: "group" | "organization";
|
|
971
|
-
stateHash: string;
|
|
972
|
-
version: number;
|
|
973
|
-
};
|
|
974
|
-
} | undefined;
|
|
975
|
-
}, z.core.$ZodTypeInternals<{
|
|
976
|
-
groupPolicy: {
|
|
977
|
-
containerMutations: {
|
|
978
|
-
containerKek: {
|
|
979
|
-
containerKeyEpoch: number;
|
|
980
|
-
containerKeyEpochId: string;
|
|
981
|
-
keyEpochHash: string;
|
|
982
|
-
keyringHash: string | null;
|
|
983
|
-
keyTargetHash: string;
|
|
984
|
-
parentContainerKeyEpochId: string | null;
|
|
985
|
-
};
|
|
986
|
-
bundleDigest: string;
|
|
987
|
-
containerId: string;
|
|
988
|
-
createdAt: string;
|
|
989
|
-
eventHash: string;
|
|
990
|
-
manifestHead: {
|
|
991
|
-
epoch: number;
|
|
992
|
-
manifestHash: string;
|
|
993
|
-
};
|
|
994
|
-
organizationId: string;
|
|
995
|
-
parentId: string | null;
|
|
996
|
-
updatedAt: string;
|
|
997
|
-
systemSlot?: string | null | undefined;
|
|
998
|
-
}[];
|
|
999
|
-
createdAt: string;
|
|
1000
|
-
head: {
|
|
1001
|
-
keyEpoch: number;
|
|
1002
|
-
keyFingerprint: string;
|
|
1003
|
-
principalId: string;
|
|
1004
|
-
principalType: "group" | "organization";
|
|
1005
|
-
stateHash: string;
|
|
1006
|
-
version: number;
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
organizationPolicy: {
|
|
1010
|
-
containerMutations: {
|
|
1011
|
-
containerKek: {
|
|
1012
|
-
containerKeyEpoch: number;
|
|
1013
|
-
containerKeyEpochId: string;
|
|
1014
|
-
keyEpochHash: string;
|
|
1015
|
-
keyringHash: string | null;
|
|
1016
|
-
keyTargetHash: string;
|
|
1017
|
-
parentContainerKeyEpochId: string | null;
|
|
1018
|
-
};
|
|
1019
|
-
bundleDigest: string;
|
|
1020
|
-
containerId: string;
|
|
1021
|
-
createdAt: string;
|
|
1022
|
-
eventHash: string;
|
|
1023
|
-
manifestHead: {
|
|
1024
|
-
epoch: number;
|
|
1025
|
-
manifestHash: string;
|
|
1026
|
-
};
|
|
1027
|
-
organizationId: string;
|
|
1028
|
-
parentId: string | null;
|
|
1029
|
-
updatedAt: string;
|
|
1030
|
-
systemSlot?: string | null | undefined;
|
|
1031
|
-
}[];
|
|
1032
|
-
createdAt: string;
|
|
1033
|
-
head: {
|
|
1034
|
-
keyEpoch: number;
|
|
1035
|
-
keyFingerprint: string;
|
|
1036
|
-
principalId: string;
|
|
1037
|
-
principalType: "group" | "organization";
|
|
1038
|
-
stateHash: string;
|
|
1039
|
-
version: number;
|
|
1040
|
-
};
|
|
1041
|
-
};
|
|
1042
|
-
memberPolicy?: {
|
|
1043
|
-
containerMutations: {
|
|
1044
|
-
containerKek: {
|
|
1045
|
-
containerKeyEpoch: number;
|
|
1046
|
-
containerKeyEpochId: string;
|
|
1047
|
-
keyEpochHash: string;
|
|
1048
|
-
keyringHash: string | null;
|
|
1049
|
-
keyTargetHash: string;
|
|
1050
|
-
parentContainerKeyEpochId: string | null;
|
|
1051
|
-
};
|
|
1052
|
-
bundleDigest: string;
|
|
1053
|
-
containerId: string;
|
|
1054
|
-
createdAt: string;
|
|
1055
|
-
eventHash: string;
|
|
1056
|
-
manifestHead: {
|
|
1057
|
-
epoch: number;
|
|
1058
|
-
manifestHash: string;
|
|
1059
|
-
};
|
|
1060
|
-
organizationId: string;
|
|
1061
|
-
parentId: string | null;
|
|
1062
|
-
updatedAt: string;
|
|
1063
|
-
systemSlot?: string | null | undefined;
|
|
1064
|
-
}[];
|
|
1065
|
-
createdAt: string;
|
|
1066
|
-
head: {
|
|
1067
|
-
keyEpoch: number;
|
|
1068
|
-
keyFingerprint: string;
|
|
1069
|
-
principalId: string;
|
|
1070
|
-
principalType: "group" | "organization";
|
|
1071
|
-
stateHash: string;
|
|
1072
|
-
version: number;
|
|
1073
|
-
};
|
|
1074
|
-
} | undefined;
|
|
1075
|
-
}, {
|
|
1076
|
-
groupPolicy: {
|
|
1077
|
-
containerMutations: {
|
|
1078
|
-
containerKek: {
|
|
1079
|
-
containerKeyEpoch: number;
|
|
1080
|
-
containerKeyEpochId: string;
|
|
1081
|
-
keyEpochHash: string;
|
|
1082
|
-
keyringHash: string | null;
|
|
1083
|
-
keyTargetHash: string;
|
|
1084
|
-
parentContainerKeyEpochId: string | null;
|
|
1085
|
-
};
|
|
1086
|
-
bundleDigest: string;
|
|
1087
|
-
containerId: string;
|
|
1088
|
-
createdAt: string;
|
|
1089
|
-
eventHash: string;
|
|
1090
|
-
manifestHead: {
|
|
1091
|
-
epoch: number;
|
|
1092
|
-
manifestHash: string;
|
|
1093
|
-
};
|
|
1094
|
-
organizationId: string;
|
|
1095
|
-
parentId: string | null;
|
|
1096
|
-
updatedAt: string;
|
|
1097
|
-
systemSlot?: string | null | undefined;
|
|
1098
|
-
}[];
|
|
1099
|
-
createdAt: string;
|
|
1100
|
-
head: {
|
|
1101
|
-
keyEpoch: number;
|
|
1102
|
-
keyFingerprint: string;
|
|
1103
|
-
principalId: string;
|
|
1104
|
-
principalType: "group" | "organization";
|
|
1105
|
-
stateHash: string;
|
|
1106
|
-
version: number;
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
organizationPolicy: {
|
|
1110
|
-
containerMutations: {
|
|
1111
|
-
containerKek: {
|
|
1112
|
-
containerKeyEpoch: number;
|
|
1113
|
-
containerKeyEpochId: string;
|
|
1114
|
-
keyEpochHash: string;
|
|
1115
|
-
keyringHash: string | null;
|
|
1116
|
-
keyTargetHash: string;
|
|
1117
|
-
parentContainerKeyEpochId: string | null;
|
|
1118
|
-
};
|
|
1119
|
-
bundleDigest: string;
|
|
1120
|
-
containerId: string;
|
|
1121
|
-
createdAt: string;
|
|
1122
|
-
eventHash: string;
|
|
1123
|
-
manifestHead: {
|
|
1124
|
-
epoch: number;
|
|
1125
|
-
manifestHash: string;
|
|
1126
|
-
};
|
|
1127
|
-
organizationId: string;
|
|
1128
|
-
parentId: string | null;
|
|
1129
|
-
updatedAt: string;
|
|
1130
|
-
systemSlot?: string | null | undefined;
|
|
1131
|
-
}[];
|
|
1132
|
-
createdAt: string;
|
|
1133
|
-
head: {
|
|
1134
|
-
keyEpoch: number;
|
|
1135
|
-
keyFingerprint: string;
|
|
1136
|
-
principalId: string;
|
|
1137
|
-
principalType: "group" | "organization";
|
|
1138
|
-
stateHash: string;
|
|
1139
|
-
version: number;
|
|
1140
|
-
};
|
|
1141
|
-
};
|
|
1142
|
-
memberPolicy?: {
|
|
1143
|
-
containerMutations: {
|
|
1144
|
-
containerKek: {
|
|
1145
|
-
containerKeyEpoch: number;
|
|
1146
|
-
containerKeyEpochId: string;
|
|
1147
|
-
keyEpochHash: string;
|
|
1148
|
-
keyringHash: string | null;
|
|
1149
|
-
keyTargetHash: string;
|
|
1150
|
-
parentContainerKeyEpochId: string | null;
|
|
1151
|
-
};
|
|
1152
|
-
bundleDigest: string;
|
|
1153
|
-
containerId: string;
|
|
1154
|
-
createdAt: string;
|
|
1155
|
-
eventHash: string;
|
|
1156
|
-
manifestHead: {
|
|
1157
|
-
epoch: number;
|
|
1158
|
-
manifestHash: string;
|
|
1159
|
-
};
|
|
1160
|
-
organizationId: string;
|
|
1161
|
-
parentId: string | null;
|
|
1162
|
-
updatedAt: string;
|
|
1163
|
-
systemSlot?: string | null | undefined;
|
|
1164
|
-
}[];
|
|
1165
|
-
createdAt: string;
|
|
1166
|
-
head: {
|
|
1167
|
-
keyEpoch: number;
|
|
1168
|
-
keyFingerprint: string;
|
|
1169
|
-
principalId: string;
|
|
1170
|
-
principalType: "group" | "organization";
|
|
1171
|
-
stateHash: string;
|
|
1172
|
-
version: number;
|
|
1173
|
-
};
|
|
1174
|
-
} | undefined;
|
|
1175
|
-
}>>;
|
|
1176
|
-
export type CommitOrganizationGroupPolicyResponse = z.infer<typeof CommitOrganizationGroupPolicyResponseSchema>;
|
|
1177
775
|
export declare const PrincipalPolicyErrorResponseSchema: z.ZodType<{
|
|
1178
776
|
error: string;
|
|
1179
777
|
code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
|
|
@@ -1282,5 +880,4 @@ export declare const PrincipalPolicyStaleErrorResponseSchema: z.ZodType<{
|
|
|
1282
880
|
export type PrincipalPolicyStaleErrorResponse = z.infer<typeof PrincipalPolicyStaleErrorResponseSchema>;
|
|
1283
881
|
export declare function isPrincipalPolicyBundleResponse(value: unknown): value is PrincipalPolicyBundleResponse;
|
|
1284
882
|
export declare function isPrincipalPolicyMutationResponse(value: unknown): value is PrincipalPolicyMutationResponse;
|
|
1285
|
-
export declare function isCommitOrganizationGroupPolicyResponse(value: unknown): value is CommitOrganizationGroupPolicyResponse;
|
|
1286
883
|
export declare function isPrincipalPolicyStaleErrorResponse(value: unknown): value is PrincipalPolicyStaleErrorResponse;
|
|
@@ -32,11 +32,6 @@ export const PrincipalPolicyMutationResponseSchema = loosePlainObject({
|
|
|
32
32
|
createdAt: z.string(),
|
|
33
33
|
head: ReferencedPrincipalStateResponseSchema,
|
|
34
34
|
});
|
|
35
|
-
export const CommitOrganizationGroupPolicyResponseSchema = loosePlainObject({
|
|
36
|
-
groupPolicy: PrincipalPolicyMutationResponseSchema,
|
|
37
|
-
memberPolicy: PrincipalPolicyMutationResponseSchema.optional(),
|
|
38
|
-
organizationPolicy: PrincipalPolicyMutationResponseSchema,
|
|
39
|
-
});
|
|
40
35
|
export const PrincipalPolicyErrorResponseSchema = BillingErrorResponseSchema;
|
|
41
36
|
/**
|
|
42
37
|
* A group policy change rematerializes its granted containers, and a rekey or
|
|
@@ -73,9 +68,6 @@ export function isPrincipalPolicyBundleResponse(value) {
|
|
|
73
68
|
export function isPrincipalPolicyMutationResponse(value) {
|
|
74
69
|
return PrincipalPolicyMutationResponseSchema.safeParse(value).success;
|
|
75
70
|
}
|
|
76
|
-
export function isCommitOrganizationGroupPolicyResponse(value) {
|
|
77
|
-
return CommitOrganizationGroupPolicyResponseSchema.safeParse(value).success;
|
|
78
|
-
}
|
|
79
71
|
export function isPrincipalPolicyStaleErrorResponse(value) {
|
|
80
72
|
return PrincipalPolicyStaleErrorResponseSchema.safeParse(value).success;
|
|
81
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"principal.js","sourceRoot":"","sources":["principal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CA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,UAAU,+BAA+B,CAC7C,KAAc;IAEd,OAAO,mCAAmC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,KAAc;IAEd,OAAO,qCAAqC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { arraySchema, loosePlainObject, nonEmptyStringSchema } from \"../schema\";\nimport { MAX_ROTATION_CONTAINER_REKEYS } from \"../util\";\nimport { PRINCIPAL_POLICY_REPAIR_HEAD_LIMIT } from \"../util/principalHistoryWire\";\nimport { ContainerMutationResponseSchema } from \"./container\";\nimport { CONTAINER_MUTATION_STATE_STALE_ERROR_CODE } from \"./containerMutationStateStaleError\";\nimport { CONTAINER_DESCENDANT_REKEYS_REQUIRED_ERROR_CODE } from \"./descendantRekeysRequiredError\";\nimport { BillingErrorResponseSchema } from \"./organizationBilling\";\nimport { ReferencedPrincipalStateResponseSchema } from \"./principalReference\";\n\nimport {\n CurrentPrincipalMemberEnvelopesResponseSchema,\n PrincipalContainerGrantResponseSchema,\n PrincipalPolicyStateChainEntryResponseSchema,\n PrincipalProjectionMemberResponseSchema,\n PrincipalStatePayloadResponseSchema,\n PrincipalStateResponseSchema,\n} from \"./principalSnapshot\";\n\nexport {\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principalSnapshot\";\n\nexport const principalPolicyCurrentResponseShape = {\n currentGrants: arraySchema(PrincipalContainerGrantResponseSchema),\n currentMemberEnvelopes: CurrentPrincipalMemberEnvelopesResponseSchema,\n currentPayload: PrincipalStatePayloadResponseSchema,\n currentProjection: arraySchema(PrincipalProjectionMemberResponseSchema),\n currentState: PrincipalStateResponseSchema,\n};\n\nexport const PrincipalPolicyBundleResponseSchema = loosePlainObject({\n ...principalPolicyCurrentResponseShape,\n previousStates: arraySchema(PrincipalPolicyStateChainEntryResponseSchema),\n});\n\nexport type PrincipalPolicyBundleResponse = z.infer<\n typeof PrincipalPolicyBundleResponseSchema\n>;\n\n/**\n * Acknowledges a policy the caller authored without echoing it: the head the\n * write committed, the server-assigned `createdAt` of the stored state and\n * payload, and the hash-form acknowledgement of each container mutation it\n * carried. The caller rebuilds the acknowledged artifacts from its own signed\n * request and refuses a head it did not author.\n */\nexport const PrincipalPolicyMutationResponseSchema = loosePlainObject({\n containerMutations: arraySchema(ContainerMutationResponseSchema),\n createdAt: z.string(),\n head: ReferencedPrincipalStateResponseSchema,\n});\n\nexport type PrincipalPolicyMutationResponse = z.infer<\n typeof PrincipalPolicyMutationResponseSchema\n>;\n\nexport const PrincipalPolicyErrorResponseSchema = BillingErrorResponseSchema;\n\nexport type PrincipalPolicyErrorResponse = z.infer<\n typeof PrincipalPolicyErrorResponseSchema\n>;\n\n/**\n * A group policy change rematerializes its granted containers, and a rekey or\n * revoke among them is a rotation like any other: one that would leave a level\n * above a directly granted container pinned to a retired epoch is refused, and\n * this names the descendant rekeys the batch must carry, parent-first.\n */\nconst PrincipalPolicyDescendantRekeysRequiredResponseSchema = loosePlainObject({\n code: z.literal(CONTAINER_DESCENDANT_REKEYS_REQUIRED_ERROR_CODE),\n error: z.string().min(1),\n requiredContainerIds: arraySchema(\n nonEmptyStringSchema,\n MAX_ROTATION_CONTAINER_REKEYS,\n ),\n});\n\n/**\n * The commit's conflict envelope alone: only a group commit carries container\n * mutations, so only it can be refused for what they strand. The principal\n * policy read and the organization policy write keep the plain envelope.\n */\nexport const CommitOrganizationGroupPolicyConflictResponseSchema = z.union([\n PrincipalPolicyErrorResponseSchema,\n PrincipalPolicyDescendantRekeysRequiredResponseSchema,\n loosePlainObject({\n code: z.literal(CONTAINER_MUTATION_STATE_STALE_ERROR_CODE),\n error: z.string().min(1),\n }),\n]);\n\nexport const PrincipalPolicyStaleErrorResponseSchema = loosePlainObject({\n code: z.literal(\"principal_policy_stale\"),\n error: z.string().min(1),\n principalHeads: arraySchema(\n ReferencedPrincipalStateResponseSchema,\n PRINCIPAL_POLICY_REPAIR_HEAD_LIMIT,\n ),\n});\n\nexport type PrincipalPolicyStaleErrorResponse = z.infer<\n typeof PrincipalPolicyStaleErrorResponseSchema\n>;\n\nexport function isPrincipalPolicyBundleResponse(\n value: unknown,\n): value is PrincipalPolicyBundleResponse {\n return PrincipalPolicyBundleResponseSchema.safeParse(value).success;\n}\n\nexport function isPrincipalPolicyMutationResponse(\n value: unknown,\n): value is PrincipalPolicyMutationResponse {\n return PrincipalPolicyMutationResponseSchema.safeParse(value).success;\n}\n\nexport function isPrincipalPolicyStaleErrorResponse(\n value: unknown,\n): value is PrincipalPolicyStaleErrorResponse {\n return PrincipalPolicyStaleErrorResponseSchema.safeParse(value).success;\n}\n"]}
|
|
@@ -170,3 +170,178 @@ export declare const ProjectionPolicyEvidenceResponseSchema: z.ZodType<{
|
|
|
170
170
|
}[];
|
|
171
171
|
}>>;
|
|
172
172
|
export type ProjectionPolicyEvidenceResponse = z.infer<typeof ProjectionPolicyEvidenceResponseSchema>;
|
|
173
|
+
/**
|
|
174
|
+
* The served evidence: a directory payload is `null` exactly when the
|
|
175
|
+
* request cited its organization state as held (`d:` in
|
|
176
|
+
* `x-known-manifests`); decoding fills it from the cited bytes.
|
|
177
|
+
*/
|
|
178
|
+
export declare const ProjectionPolicyEvidenceWireResponseSchema: z.ZodType<{
|
|
179
|
+
organization: {
|
|
180
|
+
head: {
|
|
181
|
+
keyEpoch: number;
|
|
182
|
+
keyFingerprint: string;
|
|
183
|
+
principalId: string;
|
|
184
|
+
principalType: "group" | "organization";
|
|
185
|
+
stateHash: string;
|
|
186
|
+
version: number;
|
|
187
|
+
};
|
|
188
|
+
grant: string;
|
|
189
|
+
} | null;
|
|
190
|
+
organizationPayloads: {
|
|
191
|
+
reference: {
|
|
192
|
+
keyEpoch: number;
|
|
193
|
+
keyFingerprint: string;
|
|
194
|
+
principalId: string;
|
|
195
|
+
principalType: "group" | "organization";
|
|
196
|
+
stateHash: string;
|
|
197
|
+
version: number;
|
|
198
|
+
};
|
|
199
|
+
payload: {
|
|
200
|
+
cipherSuite: "aes-256-gcm";
|
|
201
|
+
ciphertext: string;
|
|
202
|
+
ciphertextHash: string;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
principalId: string;
|
|
205
|
+
principalType: "group" | "organization";
|
|
206
|
+
stateHash: string;
|
|
207
|
+
} | null;
|
|
208
|
+
}[];
|
|
209
|
+
groups: {
|
|
210
|
+
head: {
|
|
211
|
+
keyEpoch: number;
|
|
212
|
+
keyFingerprint: string;
|
|
213
|
+
principalId: string;
|
|
214
|
+
principalType: "group" | "organization";
|
|
215
|
+
stateHash: string;
|
|
216
|
+
version: number;
|
|
217
|
+
};
|
|
218
|
+
grant: string;
|
|
219
|
+
}[];
|
|
220
|
+
}, {
|
|
221
|
+
organization: {
|
|
222
|
+
head: {
|
|
223
|
+
keyEpoch: number;
|
|
224
|
+
keyFingerprint: string;
|
|
225
|
+
principalId: string;
|
|
226
|
+
principalType: "group" | "organization";
|
|
227
|
+
stateHash: string;
|
|
228
|
+
version: number;
|
|
229
|
+
};
|
|
230
|
+
grant: string;
|
|
231
|
+
} | null;
|
|
232
|
+
organizationPayloads: {
|
|
233
|
+
reference: {
|
|
234
|
+
keyEpoch: number;
|
|
235
|
+
keyFingerprint: string;
|
|
236
|
+
principalId: string;
|
|
237
|
+
principalType: "group" | "organization";
|
|
238
|
+
stateHash: string;
|
|
239
|
+
version: number;
|
|
240
|
+
};
|
|
241
|
+
payload: {
|
|
242
|
+
cipherSuite: "aes-256-gcm";
|
|
243
|
+
ciphertext: string;
|
|
244
|
+
ciphertextHash: string;
|
|
245
|
+
createdAt: string;
|
|
246
|
+
principalId: string;
|
|
247
|
+
principalType: "group" | "organization";
|
|
248
|
+
stateHash: string;
|
|
249
|
+
} | null;
|
|
250
|
+
}[];
|
|
251
|
+
groups: {
|
|
252
|
+
head: {
|
|
253
|
+
keyEpoch: number;
|
|
254
|
+
keyFingerprint: string;
|
|
255
|
+
principalId: string;
|
|
256
|
+
principalType: "group" | "organization";
|
|
257
|
+
stateHash: string;
|
|
258
|
+
version: number;
|
|
259
|
+
};
|
|
260
|
+
grant: string;
|
|
261
|
+
}[];
|
|
262
|
+
}, z.core.$ZodTypeInternals<{
|
|
263
|
+
organization: {
|
|
264
|
+
head: {
|
|
265
|
+
keyEpoch: number;
|
|
266
|
+
keyFingerprint: string;
|
|
267
|
+
principalId: string;
|
|
268
|
+
principalType: "group" | "organization";
|
|
269
|
+
stateHash: string;
|
|
270
|
+
version: number;
|
|
271
|
+
};
|
|
272
|
+
grant: string;
|
|
273
|
+
} | null;
|
|
274
|
+
organizationPayloads: {
|
|
275
|
+
reference: {
|
|
276
|
+
keyEpoch: number;
|
|
277
|
+
keyFingerprint: string;
|
|
278
|
+
principalId: string;
|
|
279
|
+
principalType: "group" | "organization";
|
|
280
|
+
stateHash: string;
|
|
281
|
+
version: number;
|
|
282
|
+
};
|
|
283
|
+
payload: {
|
|
284
|
+
cipherSuite: "aes-256-gcm";
|
|
285
|
+
ciphertext: string;
|
|
286
|
+
ciphertextHash: string;
|
|
287
|
+
createdAt: string;
|
|
288
|
+
principalId: string;
|
|
289
|
+
principalType: "group" | "organization";
|
|
290
|
+
stateHash: string;
|
|
291
|
+
} | null;
|
|
292
|
+
}[];
|
|
293
|
+
groups: {
|
|
294
|
+
head: {
|
|
295
|
+
keyEpoch: number;
|
|
296
|
+
keyFingerprint: string;
|
|
297
|
+
principalId: string;
|
|
298
|
+
principalType: "group" | "organization";
|
|
299
|
+
stateHash: string;
|
|
300
|
+
version: number;
|
|
301
|
+
};
|
|
302
|
+
grant: string;
|
|
303
|
+
}[];
|
|
304
|
+
}, {
|
|
305
|
+
organization: {
|
|
306
|
+
head: {
|
|
307
|
+
keyEpoch: number;
|
|
308
|
+
keyFingerprint: string;
|
|
309
|
+
principalId: string;
|
|
310
|
+
principalType: "group" | "organization";
|
|
311
|
+
stateHash: string;
|
|
312
|
+
version: number;
|
|
313
|
+
};
|
|
314
|
+
grant: string;
|
|
315
|
+
} | null;
|
|
316
|
+
organizationPayloads: {
|
|
317
|
+
reference: {
|
|
318
|
+
keyEpoch: number;
|
|
319
|
+
keyFingerprint: string;
|
|
320
|
+
principalId: string;
|
|
321
|
+
principalType: "group" | "organization";
|
|
322
|
+
stateHash: string;
|
|
323
|
+
version: number;
|
|
324
|
+
};
|
|
325
|
+
payload: {
|
|
326
|
+
cipherSuite: "aes-256-gcm";
|
|
327
|
+
ciphertext: string;
|
|
328
|
+
ciphertextHash: string;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
principalId: string;
|
|
331
|
+
principalType: "group" | "organization";
|
|
332
|
+
stateHash: string;
|
|
333
|
+
} | null;
|
|
334
|
+
}[];
|
|
335
|
+
groups: {
|
|
336
|
+
head: {
|
|
337
|
+
keyEpoch: number;
|
|
338
|
+
keyFingerprint: string;
|
|
339
|
+
principalId: string;
|
|
340
|
+
principalType: "group" | "organization";
|
|
341
|
+
stateHash: string;
|
|
342
|
+
version: number;
|
|
343
|
+
};
|
|
344
|
+
grant: string;
|
|
345
|
+
}[];
|
|
346
|
+
}>>;
|
|
347
|
+
export type ProjectionPolicyEvidenceWireResponse = z.infer<typeof ProjectionPolicyEvidenceWireResponseSchema>;
|
|
@@ -11,4 +11,17 @@ export const ProjectionPolicyEvidenceResponseSchema = loosePlainObject({
|
|
|
11
11
|
})),
|
|
12
12
|
groups: arraySchema(PrincipalPolicyHistorySourceResponseSchema),
|
|
13
13
|
});
|
|
14
|
+
/**
|
|
15
|
+
* The served evidence: a directory payload is `null` exactly when the
|
|
16
|
+
* request cited its organization state as held (`d:` in
|
|
17
|
+
* `x-known-manifests`); decoding fills it from the cited bytes.
|
|
18
|
+
*/
|
|
19
|
+
export const ProjectionPolicyEvidenceWireResponseSchema = loosePlainObject({
|
|
20
|
+
organization: PrincipalPolicyHistorySourceResponseSchema.nullable(),
|
|
21
|
+
organizationPayloads: arraySchema(loosePlainObject({
|
|
22
|
+
reference: ReferencedPrincipalStateResponseSchema,
|
|
23
|
+
payload: PrincipalStatePayloadResponseSchema.nullable(),
|
|
24
|
+
})),
|
|
25
|
+
groups: arraySchema(PrincipalPolicyHistorySourceResponseSchema),
|
|
26
|
+
});
|
|
14
27
|
//# sourceMappingURL=projectionPolicyEvidence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectionPolicyEvidence.js","sourceRoot":"","sources":["projectionPolicyEvidence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAE1E,kFAAkF;AAClF,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,YAAY,EAAE,0CAA0C,CAAC,QAAQ,EAAE;IACnE,oBAAoB,EAAE,WAAW,CAC/B,gBAAgB,CAAC;QACf,SAAS,EAAE,sCAAsC;QACjD,OAAO,EAAE,mCAAmC;KAC7C,CAAC,CACH;IACD,MAAM,EAAE,WAAW,CAAC,0CAA0C,CAAC;CAChE,CAAC,CAAC","sourcesContent":["import type { z } from \"zod\";\nimport { arraySchema, loosePlainObject } from \"../schema\";\nimport { PrincipalPolicyHistorySourceResponseSchema } from \"./principalPolicySnapshotPage\";\nimport { ReferencedPrincipalStateResponseSchema } from \"./principalReference\";\nimport { PrincipalStatePayloadResponseSchema } from \"./principalSnapshot\";\n\n/** Pinned public history sources plus the signed directory payloads they need. */\nexport const ProjectionPolicyEvidenceResponseSchema = loosePlainObject({\n organization: PrincipalPolicyHistorySourceResponseSchema.nullable(),\n organizationPayloads: arraySchema(\n loosePlainObject({\n reference: ReferencedPrincipalStateResponseSchema,\n payload: PrincipalStatePayloadResponseSchema,\n }),\n ),\n groups: arraySchema(PrincipalPolicyHistorySourceResponseSchema),\n});\n\nexport type ProjectionPolicyEvidenceResponse = z.infer<\n typeof ProjectionPolicyEvidenceResponseSchema\n>;\n"]}
|
|
1
|
+
{"version":3,"file":"projectionPolicyEvidence.js","sourceRoot":"","sources":["projectionPolicyEvidence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,0CAA0C,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAE1E,kFAAkF;AAClF,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,YAAY,EAAE,0CAA0C,CAAC,QAAQ,EAAE;IACnE,oBAAoB,EAAE,WAAW,CAC/B,gBAAgB,CAAC;QACf,SAAS,EAAE,sCAAsC;QACjD,OAAO,EAAE,mCAAmC;KAC7C,CAAC,CACH;IACD,MAAM,EAAE,WAAW,CAAC,0CAA0C,CAAC;CAChE,CAAC,CAAC;AAMH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;IACzE,YAAY,EAAE,0CAA0C,CAAC,QAAQ,EAAE;IACnE,oBAAoB,EAAE,WAAW,CAC/B,gBAAgB,CAAC;QACf,SAAS,EAAE,sCAAsC;QACjD,OAAO,EAAE,mCAAmC,CAAC,QAAQ,EAAE;KACxD,CAAC,CACH;IACD,MAAM,EAAE,WAAW,CAAC,0CAA0C,CAAC;CAChE,CAAC,CAAC","sourcesContent":["import type { z } from \"zod\";\nimport { arraySchema, loosePlainObject } from \"../schema\";\nimport { PrincipalPolicyHistorySourceResponseSchema } from \"./principalPolicySnapshotPage\";\nimport { ReferencedPrincipalStateResponseSchema } from \"./principalReference\";\nimport { PrincipalStatePayloadResponseSchema } from \"./principalSnapshot\";\n\n/** Pinned public history sources plus the signed directory payloads they need. */\nexport const ProjectionPolicyEvidenceResponseSchema = loosePlainObject({\n organization: PrincipalPolicyHistorySourceResponseSchema.nullable(),\n organizationPayloads: arraySchema(\n loosePlainObject({\n reference: ReferencedPrincipalStateResponseSchema,\n payload: PrincipalStatePayloadResponseSchema,\n }),\n ),\n groups: arraySchema(PrincipalPolicyHistorySourceResponseSchema),\n});\n\nexport type ProjectionPolicyEvidenceResponse = z.infer<\n typeof ProjectionPolicyEvidenceResponseSchema\n>;\n\n/**\n * The served evidence: a directory payload is `null` exactly when the\n * request cited its organization state as held (`d:` in\n * `x-known-manifests`); decoding fills it from the cited bytes.\n */\nexport const ProjectionPolicyEvidenceWireResponseSchema = loosePlainObject({\n organization: PrincipalPolicyHistorySourceResponseSchema.nullable(),\n organizationPayloads: arraySchema(\n loosePlainObject({\n reference: ReferencedPrincipalStateResponseSchema,\n payload: PrincipalStatePayloadResponseSchema.nullable(),\n }),\n ),\n groups: arraySchema(PrincipalPolicyHistorySourceResponseSchema),\n});\n\nexport type ProjectionPolicyEvidenceWireResponse = z.infer<\n typeof ProjectionPolicyEvidenceWireResponseSchema\n>;\n"]}
|