@c4a/context 0.7.0 → 0.7.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.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/docs/getting-started.md +30 -24
- package/docs/guides/agent-guide.md +41 -46
- package/docs/reference/code-extractors.md +7 -22
- package/docs/reference/indexer-provider-protocol.md +17 -28
- package/docs/reference/project-api.md +39 -38
- package/index.d.ts +2 -2
- package/index.js +127 -349
- package/indexerArtifactResult.d.ts +2 -3
- package/indexerCandidateCompile.d.ts +184 -0
- package/{indexerOverlayTrust.d.ts → indexerContractOverlay.d.ts} +13 -559
- package/indexerOverlayQuestionAmendment.d.ts +6 -6
- package/indexerOverlayQuestionApplyProposal.d.ts +8 -8
- package/indexerProvider.d.ts +0 -63
- package/package.json +1 -1
|
@@ -832,594 +832,48 @@ export declare function validateIndexerContractOverlay(input: {
|
|
|
832
832
|
effectiveProfile: IndexerProfileContractEntry;
|
|
833
833
|
report: IndexerOverlayConformanceReport;
|
|
834
834
|
};
|
|
835
|
-
export declare const
|
|
836
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-
|
|
837
|
-
overlay: z.ZodObject<{
|
|
838
|
-
protocol: z.ZodLiteral<"context.indexer.contract-overlay/v1">;
|
|
839
|
-
id: z.ZodEffects<z.ZodString, string, string>;
|
|
840
|
-
version: z.ZodString;
|
|
841
|
-
digest: z.ZodString;
|
|
842
|
-
}, "strict", z.ZodTypeAny, {
|
|
843
|
-
id: string;
|
|
844
|
-
protocol: "context.indexer.contract-overlay/v1";
|
|
845
|
-
digest: string;
|
|
846
|
-
version: string;
|
|
847
|
-
}, {
|
|
848
|
-
id: string;
|
|
849
|
-
protocol: "context.indexer.contract-overlay/v1";
|
|
850
|
-
digest: string;
|
|
851
|
-
version: string;
|
|
852
|
-
}>;
|
|
853
|
-
base: z.ZodObject<{
|
|
854
|
-
profile: z.ZodEffects<z.ZodString, string, string>;
|
|
855
|
-
version: z.ZodString;
|
|
856
|
-
contract_digest: z.ZodString;
|
|
857
|
-
}, "strict", z.ZodTypeAny, {
|
|
858
|
-
contract_digest: string;
|
|
859
|
-
version: string;
|
|
860
|
-
profile: string;
|
|
861
|
-
}, {
|
|
862
|
-
contract_digest: string;
|
|
863
|
-
version: string;
|
|
864
|
-
profile: string;
|
|
865
|
-
}>;
|
|
866
|
-
operator_contract: z.ZodObject<{
|
|
867
|
-
version: z.ZodString;
|
|
868
|
-
digest: z.ZodString;
|
|
869
|
-
}, "strict", z.ZodTypeAny, {
|
|
870
|
-
digest: string;
|
|
871
|
-
version: string;
|
|
872
|
-
}, {
|
|
873
|
-
digest: string;
|
|
874
|
-
version: string;
|
|
875
|
-
}>;
|
|
876
|
-
issuer: z.ZodEffects<z.ZodString, string, string>;
|
|
877
|
-
key_id: z.ZodEffects<z.ZodString, string, string>;
|
|
878
|
-
algorithm: z.ZodLiteral<"ed25519">;
|
|
879
|
-
signature: z.ZodString;
|
|
880
|
-
attestation_digest: z.ZodString;
|
|
881
|
-
}, "strict", z.ZodTypeAny, {
|
|
882
|
-
protocol: "context.indexer.overlay-attestation/v1";
|
|
883
|
-
issuer: string;
|
|
884
|
-
overlay: {
|
|
885
|
-
id: string;
|
|
886
|
-
protocol: "context.indexer.contract-overlay/v1";
|
|
887
|
-
digest: string;
|
|
888
|
-
version: string;
|
|
889
|
-
};
|
|
890
|
-
base: {
|
|
891
|
-
contract_digest: string;
|
|
892
|
-
version: string;
|
|
893
|
-
profile: string;
|
|
894
|
-
};
|
|
895
|
-
operator_contract: {
|
|
896
|
-
digest: string;
|
|
897
|
-
version: string;
|
|
898
|
-
};
|
|
899
|
-
key_id: string;
|
|
900
|
-
algorithm: "ed25519";
|
|
901
|
-
signature: string;
|
|
902
|
-
attestation_digest: string;
|
|
903
|
-
}, {
|
|
904
|
-
protocol: "context.indexer.overlay-attestation/v1";
|
|
905
|
-
issuer: string;
|
|
906
|
-
overlay: {
|
|
907
|
-
id: string;
|
|
908
|
-
protocol: "context.indexer.contract-overlay/v1";
|
|
909
|
-
digest: string;
|
|
910
|
-
version: string;
|
|
911
|
-
};
|
|
912
|
-
base: {
|
|
913
|
-
contract_digest: string;
|
|
914
|
-
version: string;
|
|
915
|
-
profile: string;
|
|
916
|
-
};
|
|
917
|
-
operator_contract: {
|
|
918
|
-
digest: string;
|
|
919
|
-
version: string;
|
|
920
|
-
};
|
|
921
|
-
key_id: string;
|
|
922
|
-
algorithm: "ed25519";
|
|
923
|
-
signature: string;
|
|
924
|
-
attestation_digest: string;
|
|
925
|
-
}>;
|
|
926
|
-
export type IndexerOverlayAttestation = z.infer<typeof indexerOverlayAttestationSchema>;
|
|
927
|
-
export declare function indexerOverlayAttestationSigningPayload(attestation: Omit<IndexerOverlayAttestation, "signature" | "attestation_digest">): string;
|
|
928
|
-
export declare function indexerOverlayAttestationDigest(attestation: Omit<IndexerOverlayAttestation, "attestation_digest">): string;
|
|
929
|
-
export declare const indexerOverlayTrustBundleSchema: z.ZodEffects<z.ZodObject<{
|
|
930
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-trust-bundle/v1">;
|
|
931
|
-
policy_id: z.ZodEffects<z.ZodString, string, string>;
|
|
932
|
-
policy_version: z.ZodString;
|
|
933
|
-
issuers: z.ZodArray<z.ZodObject<{
|
|
934
|
-
id: z.ZodEffects<z.ZodString, string, string>;
|
|
935
|
-
keys: z.ZodArray<z.ZodObject<{
|
|
936
|
-
key_id: z.ZodEffects<z.ZodString, string, string>;
|
|
937
|
-
algorithm: z.ZodLiteral<"ed25519">;
|
|
938
|
-
public_key: z.ZodString;
|
|
939
|
-
not_before: z.ZodString;
|
|
940
|
-
not_after: z.ZodString;
|
|
941
|
-
}, "strict", z.ZodTypeAny, {
|
|
942
|
-
key_id: string;
|
|
943
|
-
algorithm: "ed25519";
|
|
944
|
-
public_key: string;
|
|
945
|
-
not_before: string;
|
|
946
|
-
not_after: string;
|
|
947
|
-
}, {
|
|
948
|
-
key_id: string;
|
|
949
|
-
algorithm: "ed25519";
|
|
950
|
-
public_key: string;
|
|
951
|
-
not_before: string;
|
|
952
|
-
not_after: string;
|
|
953
|
-
}>, "many">;
|
|
954
|
-
}, "strict", z.ZodTypeAny, {
|
|
955
|
-
keys: {
|
|
956
|
-
key_id: string;
|
|
957
|
-
algorithm: "ed25519";
|
|
958
|
-
public_key: string;
|
|
959
|
-
not_before: string;
|
|
960
|
-
not_after: string;
|
|
961
|
-
}[];
|
|
962
|
-
id: string;
|
|
963
|
-
}, {
|
|
964
|
-
keys: {
|
|
965
|
-
key_id: string;
|
|
966
|
-
algorithm: "ed25519";
|
|
967
|
-
public_key: string;
|
|
968
|
-
not_before: string;
|
|
969
|
-
not_after: string;
|
|
970
|
-
}[];
|
|
971
|
-
id: string;
|
|
972
|
-
}>, "many">;
|
|
973
|
-
revocations: z.ZodArray<z.ZodObject<{
|
|
974
|
-
issuer: z.ZodEffects<z.ZodString, string, string>;
|
|
975
|
-
key_id: z.ZodEffects<z.ZodString, string, string>;
|
|
976
|
-
revoked_at: z.ZodString;
|
|
977
|
-
}, "strict", z.ZodTypeAny, {
|
|
978
|
-
issuer: string;
|
|
979
|
-
key_id: string;
|
|
980
|
-
revoked_at: string;
|
|
981
|
-
}, {
|
|
982
|
-
issuer: string;
|
|
983
|
-
key_id: string;
|
|
984
|
-
revoked_at: string;
|
|
985
|
-
}>, "many">;
|
|
986
|
-
policy_digest: z.ZodString;
|
|
987
|
-
}, "strict", z.ZodTypeAny, {
|
|
988
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
989
|
-
policy_digest: string;
|
|
990
|
-
policy_id: string;
|
|
991
|
-
policy_version: string;
|
|
992
|
-
issuers: {
|
|
993
|
-
keys: {
|
|
994
|
-
key_id: string;
|
|
995
|
-
algorithm: "ed25519";
|
|
996
|
-
public_key: string;
|
|
997
|
-
not_before: string;
|
|
998
|
-
not_after: string;
|
|
999
|
-
}[];
|
|
1000
|
-
id: string;
|
|
1001
|
-
}[];
|
|
1002
|
-
revocations: {
|
|
1003
|
-
issuer: string;
|
|
1004
|
-
key_id: string;
|
|
1005
|
-
revoked_at: string;
|
|
1006
|
-
}[];
|
|
1007
|
-
}, {
|
|
1008
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1009
|
-
policy_digest: string;
|
|
1010
|
-
policy_id: string;
|
|
1011
|
-
policy_version: string;
|
|
1012
|
-
issuers: {
|
|
1013
|
-
keys: {
|
|
1014
|
-
key_id: string;
|
|
1015
|
-
algorithm: "ed25519";
|
|
1016
|
-
public_key: string;
|
|
1017
|
-
not_before: string;
|
|
1018
|
-
not_after: string;
|
|
1019
|
-
}[];
|
|
1020
|
-
id: string;
|
|
1021
|
-
}[];
|
|
1022
|
-
revocations: {
|
|
1023
|
-
issuer: string;
|
|
1024
|
-
key_id: string;
|
|
1025
|
-
revoked_at: string;
|
|
1026
|
-
}[];
|
|
1027
|
-
}>, {
|
|
1028
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1029
|
-
policy_digest: string;
|
|
1030
|
-
policy_id: string;
|
|
1031
|
-
policy_version: string;
|
|
1032
|
-
issuers: {
|
|
1033
|
-
keys: {
|
|
1034
|
-
key_id: string;
|
|
1035
|
-
algorithm: "ed25519";
|
|
1036
|
-
public_key: string;
|
|
1037
|
-
not_before: string;
|
|
1038
|
-
not_after: string;
|
|
1039
|
-
}[];
|
|
1040
|
-
id: string;
|
|
1041
|
-
}[];
|
|
1042
|
-
revocations: {
|
|
1043
|
-
issuer: string;
|
|
1044
|
-
key_id: string;
|
|
1045
|
-
revoked_at: string;
|
|
1046
|
-
}[];
|
|
1047
|
-
}, {
|
|
1048
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1049
|
-
policy_digest: string;
|
|
1050
|
-
policy_id: string;
|
|
1051
|
-
policy_version: string;
|
|
1052
|
-
issuers: {
|
|
1053
|
-
keys: {
|
|
1054
|
-
key_id: string;
|
|
1055
|
-
algorithm: "ed25519";
|
|
1056
|
-
public_key: string;
|
|
1057
|
-
not_before: string;
|
|
1058
|
-
not_after: string;
|
|
1059
|
-
}[];
|
|
1060
|
-
id: string;
|
|
1061
|
-
}[];
|
|
1062
|
-
revocations: {
|
|
1063
|
-
issuer: string;
|
|
1064
|
-
key_id: string;
|
|
1065
|
-
revoked_at: string;
|
|
1066
|
-
}[];
|
|
1067
|
-
}>;
|
|
1068
|
-
export type IndexerOverlayTrustBundle = z.infer<typeof indexerOverlayTrustBundleSchema>;
|
|
1069
|
-
export declare function indexerOverlayTrustBundleDigest(bundle: Omit<IndexerOverlayTrustBundle, "policy_digest">): string;
|
|
1070
|
-
export declare const indexerOverlayTrustBundleEnvelopeSchema: z.ZodObject<{
|
|
1071
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-trust-bundle-envelope/v1">;
|
|
1072
|
-
adapter: z.ZodEffects<z.ZodString, string, string>;
|
|
1073
|
-
adapter_version: z.ZodString;
|
|
1074
|
-
management_authority_digest: z.ZodString;
|
|
1075
|
-
bundle: z.ZodEffects<z.ZodObject<{
|
|
1076
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-trust-bundle/v1">;
|
|
1077
|
-
policy_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1078
|
-
policy_version: z.ZodString;
|
|
1079
|
-
issuers: z.ZodArray<z.ZodObject<{
|
|
1080
|
-
id: z.ZodEffects<z.ZodString, string, string>;
|
|
1081
|
-
keys: z.ZodArray<z.ZodObject<{
|
|
1082
|
-
key_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1083
|
-
algorithm: z.ZodLiteral<"ed25519">;
|
|
1084
|
-
public_key: z.ZodString;
|
|
1085
|
-
not_before: z.ZodString;
|
|
1086
|
-
not_after: z.ZodString;
|
|
1087
|
-
}, "strict", z.ZodTypeAny, {
|
|
1088
|
-
key_id: string;
|
|
1089
|
-
algorithm: "ed25519";
|
|
1090
|
-
public_key: string;
|
|
1091
|
-
not_before: string;
|
|
1092
|
-
not_after: string;
|
|
1093
|
-
}, {
|
|
1094
|
-
key_id: string;
|
|
1095
|
-
algorithm: "ed25519";
|
|
1096
|
-
public_key: string;
|
|
1097
|
-
not_before: string;
|
|
1098
|
-
not_after: string;
|
|
1099
|
-
}>, "many">;
|
|
1100
|
-
}, "strict", z.ZodTypeAny, {
|
|
1101
|
-
keys: {
|
|
1102
|
-
key_id: string;
|
|
1103
|
-
algorithm: "ed25519";
|
|
1104
|
-
public_key: string;
|
|
1105
|
-
not_before: string;
|
|
1106
|
-
not_after: string;
|
|
1107
|
-
}[];
|
|
1108
|
-
id: string;
|
|
1109
|
-
}, {
|
|
1110
|
-
keys: {
|
|
1111
|
-
key_id: string;
|
|
1112
|
-
algorithm: "ed25519";
|
|
1113
|
-
public_key: string;
|
|
1114
|
-
not_before: string;
|
|
1115
|
-
not_after: string;
|
|
1116
|
-
}[];
|
|
1117
|
-
id: string;
|
|
1118
|
-
}>, "many">;
|
|
1119
|
-
revocations: z.ZodArray<z.ZodObject<{
|
|
1120
|
-
issuer: z.ZodEffects<z.ZodString, string, string>;
|
|
1121
|
-
key_id: z.ZodEffects<z.ZodString, string, string>;
|
|
1122
|
-
revoked_at: z.ZodString;
|
|
1123
|
-
}, "strict", z.ZodTypeAny, {
|
|
1124
|
-
issuer: string;
|
|
1125
|
-
key_id: string;
|
|
1126
|
-
revoked_at: string;
|
|
1127
|
-
}, {
|
|
1128
|
-
issuer: string;
|
|
1129
|
-
key_id: string;
|
|
1130
|
-
revoked_at: string;
|
|
1131
|
-
}>, "many">;
|
|
1132
|
-
policy_digest: z.ZodString;
|
|
1133
|
-
}, "strict", z.ZodTypeAny, {
|
|
1134
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1135
|
-
policy_digest: string;
|
|
1136
|
-
policy_id: string;
|
|
1137
|
-
policy_version: string;
|
|
1138
|
-
issuers: {
|
|
1139
|
-
keys: {
|
|
1140
|
-
key_id: string;
|
|
1141
|
-
algorithm: "ed25519";
|
|
1142
|
-
public_key: string;
|
|
1143
|
-
not_before: string;
|
|
1144
|
-
not_after: string;
|
|
1145
|
-
}[];
|
|
1146
|
-
id: string;
|
|
1147
|
-
}[];
|
|
1148
|
-
revocations: {
|
|
1149
|
-
issuer: string;
|
|
1150
|
-
key_id: string;
|
|
1151
|
-
revoked_at: string;
|
|
1152
|
-
}[];
|
|
1153
|
-
}, {
|
|
1154
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1155
|
-
policy_digest: string;
|
|
1156
|
-
policy_id: string;
|
|
1157
|
-
policy_version: string;
|
|
1158
|
-
issuers: {
|
|
1159
|
-
keys: {
|
|
1160
|
-
key_id: string;
|
|
1161
|
-
algorithm: "ed25519";
|
|
1162
|
-
public_key: string;
|
|
1163
|
-
not_before: string;
|
|
1164
|
-
not_after: string;
|
|
1165
|
-
}[];
|
|
1166
|
-
id: string;
|
|
1167
|
-
}[];
|
|
1168
|
-
revocations: {
|
|
1169
|
-
issuer: string;
|
|
1170
|
-
key_id: string;
|
|
1171
|
-
revoked_at: string;
|
|
1172
|
-
}[];
|
|
1173
|
-
}>, {
|
|
1174
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1175
|
-
policy_digest: string;
|
|
1176
|
-
policy_id: string;
|
|
1177
|
-
policy_version: string;
|
|
1178
|
-
issuers: {
|
|
1179
|
-
keys: {
|
|
1180
|
-
key_id: string;
|
|
1181
|
-
algorithm: "ed25519";
|
|
1182
|
-
public_key: string;
|
|
1183
|
-
not_before: string;
|
|
1184
|
-
not_after: string;
|
|
1185
|
-
}[];
|
|
1186
|
-
id: string;
|
|
1187
|
-
}[];
|
|
1188
|
-
revocations: {
|
|
1189
|
-
issuer: string;
|
|
1190
|
-
key_id: string;
|
|
1191
|
-
revoked_at: string;
|
|
1192
|
-
}[];
|
|
1193
|
-
}, {
|
|
1194
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1195
|
-
policy_digest: string;
|
|
1196
|
-
policy_id: string;
|
|
1197
|
-
policy_version: string;
|
|
1198
|
-
issuers: {
|
|
1199
|
-
keys: {
|
|
1200
|
-
key_id: string;
|
|
1201
|
-
algorithm: "ed25519";
|
|
1202
|
-
public_key: string;
|
|
1203
|
-
not_before: string;
|
|
1204
|
-
not_after: string;
|
|
1205
|
-
}[];
|
|
1206
|
-
id: string;
|
|
1207
|
-
}[];
|
|
1208
|
-
revocations: {
|
|
1209
|
-
issuer: string;
|
|
1210
|
-
key_id: string;
|
|
1211
|
-
revoked_at: string;
|
|
1212
|
-
}[];
|
|
1213
|
-
}>;
|
|
1214
|
-
}, "strict", z.ZodTypeAny, {
|
|
1215
|
-
adapter: string;
|
|
1216
|
-
protocol: "context.indexer.overlay-trust-bundle-envelope/v1";
|
|
1217
|
-
bundle: {
|
|
1218
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1219
|
-
policy_digest: string;
|
|
1220
|
-
policy_id: string;
|
|
1221
|
-
policy_version: string;
|
|
1222
|
-
issuers: {
|
|
1223
|
-
keys: {
|
|
1224
|
-
key_id: string;
|
|
1225
|
-
algorithm: "ed25519";
|
|
1226
|
-
public_key: string;
|
|
1227
|
-
not_before: string;
|
|
1228
|
-
not_after: string;
|
|
1229
|
-
}[];
|
|
1230
|
-
id: string;
|
|
1231
|
-
}[];
|
|
1232
|
-
revocations: {
|
|
1233
|
-
issuer: string;
|
|
1234
|
-
key_id: string;
|
|
1235
|
-
revoked_at: string;
|
|
1236
|
-
}[];
|
|
1237
|
-
};
|
|
1238
|
-
adapter_version: string;
|
|
1239
|
-
management_authority_digest: string;
|
|
1240
|
-
}, {
|
|
1241
|
-
adapter: string;
|
|
1242
|
-
protocol: "context.indexer.overlay-trust-bundle-envelope/v1";
|
|
1243
|
-
bundle: {
|
|
1244
|
-
protocol: "context.indexer.overlay-trust-bundle/v1";
|
|
1245
|
-
policy_digest: string;
|
|
1246
|
-
policy_id: string;
|
|
1247
|
-
policy_version: string;
|
|
1248
|
-
issuers: {
|
|
1249
|
-
keys: {
|
|
1250
|
-
key_id: string;
|
|
1251
|
-
algorithm: "ed25519";
|
|
1252
|
-
public_key: string;
|
|
1253
|
-
not_before: string;
|
|
1254
|
-
not_after: string;
|
|
1255
|
-
}[];
|
|
1256
|
-
id: string;
|
|
1257
|
-
}[];
|
|
1258
|
-
revocations: {
|
|
1259
|
-
issuer: string;
|
|
1260
|
-
key_id: string;
|
|
1261
|
-
revoked_at: string;
|
|
1262
|
-
}[];
|
|
1263
|
-
};
|
|
1264
|
-
adapter_version: string;
|
|
1265
|
-
management_authority_digest: string;
|
|
1266
|
-
}>;
|
|
1267
|
-
export type IndexerOverlayTrustBundleEnvelope = z.infer<typeof indexerOverlayTrustBundleEnvelopeSchema>;
|
|
1268
|
-
export declare const indexerOverlayTrustReceiptSchema: z.ZodDiscriminatedUnion<"trust_class", [z.ZodObject<{
|
|
1269
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-trust-receipt/v1">;
|
|
1270
|
-
trust_class: z.ZodLiteral<"enterprise-signed">;
|
|
1271
|
-
project_ref: z.ZodNull;
|
|
1272
|
-
overlay_digest: z.ZodString;
|
|
1273
|
-
attestation_digest: z.ZodString;
|
|
1274
|
-
base_contract_digest: z.ZodString;
|
|
1275
|
-
provider_integrity: z.ZodString;
|
|
1276
|
-
operator_contract_digest: z.ZodString;
|
|
1277
|
-
conformance_report_digest: z.ZodString;
|
|
1278
|
-
trust_adapter: z.ZodEffects<z.ZodString, string, string>;
|
|
1279
|
-
trust_adapter_version: z.ZodString;
|
|
1280
|
-
trust_management_authority_digest: z.ZodString;
|
|
1281
|
-
trust_policy_digest: z.ZodString;
|
|
1282
|
-
authorization_receipt_digest: z.ZodNull;
|
|
1283
|
-
receipt_digest: z.ZodString;
|
|
1284
|
-
}, "strict", z.ZodTypeAny, {
|
|
1285
|
-
protocol: "context.indexer.overlay-trust-receipt/v1";
|
|
1286
|
-
receipt_digest: string;
|
|
1287
|
-
operator_contract_digest: string;
|
|
1288
|
-
project_ref: null;
|
|
1289
|
-
provider_integrity: string;
|
|
1290
|
-
authorization_receipt_digest: null;
|
|
1291
|
-
overlay_digest: string;
|
|
1292
|
-
base_contract_digest: string;
|
|
1293
|
-
attestation_digest: string;
|
|
1294
|
-
trust_class: "enterprise-signed";
|
|
1295
|
-
conformance_report_digest: string;
|
|
1296
|
-
trust_adapter: string;
|
|
1297
|
-
trust_adapter_version: string;
|
|
1298
|
-
trust_management_authority_digest: string;
|
|
1299
|
-
trust_policy_digest: string;
|
|
1300
|
-
}, {
|
|
1301
|
-
protocol: "context.indexer.overlay-trust-receipt/v1";
|
|
1302
|
-
receipt_digest: string;
|
|
1303
|
-
operator_contract_digest: string;
|
|
1304
|
-
project_ref: null;
|
|
1305
|
-
provider_integrity: string;
|
|
1306
|
-
authorization_receipt_digest: null;
|
|
1307
|
-
overlay_digest: string;
|
|
1308
|
-
base_contract_digest: string;
|
|
1309
|
-
attestation_digest: string;
|
|
1310
|
-
trust_class: "enterprise-signed";
|
|
1311
|
-
conformance_report_digest: string;
|
|
1312
|
-
trust_adapter: string;
|
|
1313
|
-
trust_adapter_version: string;
|
|
1314
|
-
trust_management_authority_digest: string;
|
|
1315
|
-
trust_policy_digest: string;
|
|
1316
|
-
}>, z.ZodObject<{
|
|
1317
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-trust-receipt/v1">;
|
|
1318
|
-
trust_class: z.ZodLiteral<"project-authorized-exact-digest">;
|
|
835
|
+
export declare const indexerOverlayValidationReceiptSchema: z.ZodObject<{
|
|
836
|
+
protocol: z.ZodLiteral<"context.indexer.overlay-validation-receipt/v1">;
|
|
1319
837
|
project_ref: z.ZodString;
|
|
1320
838
|
overlay_digest: z.ZodString;
|
|
1321
|
-
attestation_digest: z.ZodNullable<z.ZodString>;
|
|
1322
839
|
base_contract_digest: z.ZodString;
|
|
1323
840
|
provider_integrity: z.ZodString;
|
|
1324
841
|
operator_contract_digest: z.ZodString;
|
|
1325
842
|
conformance_report_digest: z.ZodString;
|
|
1326
|
-
trust_adapter: z.ZodNull;
|
|
1327
|
-
trust_adapter_version: z.ZodNull;
|
|
1328
|
-
trust_management_authority_digest: z.ZodNull;
|
|
1329
|
-
trust_policy_digest: z.ZodNull;
|
|
1330
|
-
authorization_receipt_digest: z.ZodString;
|
|
1331
843
|
receipt_digest: z.ZodString;
|
|
1332
844
|
}, "strict", z.ZodTypeAny, {
|
|
1333
|
-
protocol: "context.indexer.overlay-
|
|
845
|
+
protocol: "context.indexer.overlay-validation-receipt/v1";
|
|
1334
846
|
receipt_digest: string;
|
|
1335
847
|
operator_contract_digest: string;
|
|
1336
848
|
project_ref: string;
|
|
1337
849
|
provider_integrity: string;
|
|
1338
|
-
authorization_receipt_digest: string;
|
|
1339
850
|
overlay_digest: string;
|
|
1340
851
|
base_contract_digest: string;
|
|
1341
|
-
attestation_digest: string | null;
|
|
1342
|
-
trust_class: "project-authorized-exact-digest";
|
|
1343
852
|
conformance_report_digest: string;
|
|
1344
|
-
trust_adapter: null;
|
|
1345
|
-
trust_adapter_version: null;
|
|
1346
|
-
trust_management_authority_digest: null;
|
|
1347
|
-
trust_policy_digest: null;
|
|
1348
853
|
}, {
|
|
1349
|
-
protocol: "context.indexer.overlay-
|
|
854
|
+
protocol: "context.indexer.overlay-validation-receipt/v1";
|
|
1350
855
|
receipt_digest: string;
|
|
1351
856
|
operator_contract_digest: string;
|
|
1352
857
|
project_ref: string;
|
|
1353
858
|
provider_integrity: string;
|
|
1354
|
-
authorization_receipt_digest: string;
|
|
1355
859
|
overlay_digest: string;
|
|
1356
860
|
base_contract_digest: string;
|
|
1357
|
-
attestation_digest: string | null;
|
|
1358
|
-
trust_class: "project-authorized-exact-digest";
|
|
1359
861
|
conformance_report_digest: string;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}>]>;
|
|
1365
|
-
export type IndexerOverlayTrustReceipt = z.infer<typeof indexerOverlayTrustReceiptSchema>;
|
|
1366
|
-
export declare function indexerOverlayTrustReceiptDigest(receipt: Omit<IndexerOverlayTrustReceipt, "receipt_digest">): string;
|
|
1367
|
-
export declare function validateIndexerOverlayAttestation(value: unknown, overlay: IndexerContractOverlay, base: IndexerProfileContract, operators: IndexerOperatorContract): IndexerOverlayAttestation;
|
|
1368
|
-
export declare function validateIndexerOverlayTrustBundleEnvelope(value: unknown): IndexerOverlayTrustBundleEnvelope;
|
|
1369
|
-
export declare function verifyEnterpriseIndexerOverlayTrust(input: {
|
|
862
|
+
}>;
|
|
863
|
+
export type IndexerOverlayValidationReceipt = z.infer<typeof indexerOverlayValidationReceiptSchema>;
|
|
864
|
+
export declare function indexerOverlayValidationReceiptDigest(receipt: Omit<IndexerOverlayValidationReceipt, "receipt_digest">): string;
|
|
865
|
+
export declare function createIndexerOverlayValidationReceipt(input: {
|
|
1370
866
|
overlayValidation: ReturnType<typeof validateIndexerContractOverlay>;
|
|
1371
867
|
baseContract: IndexerProfileContract;
|
|
1372
868
|
operatorContract: IndexerOperatorContract;
|
|
1373
869
|
providerIntegrity: string;
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
export declare const indexerOverlayProjectAuthorizationSchema: z.ZodObject<{
|
|
1379
|
-
protocol: z.ZodLiteral<"context.indexer.overlay-project-authorization/v1">;
|
|
1380
|
-
project_ref: z.ZodString;
|
|
1381
|
-
overlay_digest: z.ZodString;
|
|
1382
|
-
attestation_digest: z.ZodNullable<z.ZodString>;
|
|
1383
|
-
base_contract_digest: z.ZodString;
|
|
1384
|
-
provider_integrity: z.ZodString;
|
|
1385
|
-
operator_contract_digest: z.ZodString;
|
|
1386
|
-
conformance_report_digest: z.ZodString;
|
|
1387
|
-
authority_ref: z.ZodString;
|
|
1388
|
-
authority_scope_digest: z.ZodString;
|
|
1389
|
-
authorization_receipt_digest: z.ZodString;
|
|
1390
|
-
}, "strict", z.ZodTypeAny, {
|
|
1391
|
-
protocol: "context.indexer.overlay-project-authorization/v1";
|
|
1392
|
-
authority_ref: string;
|
|
1393
|
-
operator_contract_digest: string;
|
|
1394
|
-
project_ref: string;
|
|
1395
|
-
provider_integrity: string;
|
|
1396
|
-
authority_scope_digest: string;
|
|
1397
|
-
authorization_receipt_digest: string;
|
|
1398
|
-
overlay_digest: string;
|
|
1399
|
-
base_contract_digest: string;
|
|
1400
|
-
attestation_digest: string | null;
|
|
1401
|
-
conformance_report_digest: string;
|
|
1402
|
-
}, {
|
|
1403
|
-
protocol: "context.indexer.overlay-project-authorization/v1";
|
|
1404
|
-
authority_ref: string;
|
|
1405
|
-
operator_contract_digest: string;
|
|
1406
|
-
project_ref: string;
|
|
1407
|
-
provider_integrity: string;
|
|
1408
|
-
authority_scope_digest: string;
|
|
1409
|
-
authorization_receipt_digest: string;
|
|
1410
|
-
overlay_digest: string;
|
|
1411
|
-
base_contract_digest: string;
|
|
1412
|
-
attestation_digest: string | null;
|
|
1413
|
-
conformance_report_digest: string;
|
|
1414
|
-
}>;
|
|
1415
|
-
export type IndexerOverlayProjectAuthorization = z.infer<typeof indexerOverlayProjectAuthorizationSchema>;
|
|
1416
|
-
export declare function indexerOverlayProjectAuthorizationDigest(authorization: Omit<IndexerOverlayProjectAuthorization, "authorization_receipt_digest">): string;
|
|
1417
|
-
export declare function authorizeProjectIndexerOverlay(input: {
|
|
870
|
+
projectRef: string;
|
|
871
|
+
}): IndexerOverlayValidationReceipt;
|
|
872
|
+
export declare function validateIndexerOverlayValidationReceipt(input: {
|
|
873
|
+
value: unknown;
|
|
1418
874
|
overlayValidation: ReturnType<typeof validateIndexerContractOverlay>;
|
|
1419
875
|
baseContract: IndexerProfileContract;
|
|
1420
876
|
operatorContract: IndexerOperatorContract;
|
|
1421
877
|
providerIntegrity: string;
|
|
1422
878
|
projectRef: string;
|
|
1423
|
-
|
|
1424
|
-
authorization: unknown;
|
|
1425
|
-
}): IndexerOverlayTrustReceipt;
|
|
879
|
+
}): IndexerOverlayValidationReceipt;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type RequirementContractionComparison } from "./indexerRequirementComparison.js";
|
|
3
3
|
import { type IndexerRegistry } from "./indexerRegistry.js";
|
|
4
|
-
import { validateIndexerContractOverlay, type
|
|
4
|
+
import { validateIndexerContractOverlay, type IndexerOverlayValidationReceipt } from "./indexerContractOverlay.js";
|
|
5
5
|
import type { IndexerOperatorContract, IndexerProfileContract } from "./indexerProfileContract.js";
|
|
6
6
|
import { type IndexerResolvedMaterialQuestion } from "./indexerQuestionAuthority.js";
|
|
7
7
|
export declare const indexerOverlayQuestionAmendmentSchema: z.ZodObject<{
|
|
@@ -1756,7 +1756,7 @@ export declare const indexerOverlayQuestionAmendmentSchema: z.ZodObject<{
|
|
|
1756
1756
|
}>;
|
|
1757
1757
|
target_registry_digest: z.ZodString;
|
|
1758
1758
|
overlay_digest: z.ZodString;
|
|
1759
|
-
|
|
1759
|
+
overlay_validation_receipt_digest: z.ZodString;
|
|
1760
1760
|
conformance_report_digest: z.ZodString;
|
|
1761
1761
|
added_target_domains: z.ZodArray<z.ZodObject<{
|
|
1762
1762
|
id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -2221,7 +2221,7 @@ export declare const indexerOverlayQuestionAmendmentSchema: z.ZodObject<{
|
|
|
2221
2221
|
}[] | undefined;
|
|
2222
2222
|
};
|
|
2223
2223
|
target_registry_digest: string;
|
|
2224
|
-
|
|
2224
|
+
overlay_validation_receipt_digest: string;
|
|
2225
2225
|
added_target_domains: {
|
|
2226
2226
|
id: string;
|
|
2227
2227
|
contract_digest: string;
|
|
@@ -2431,7 +2431,7 @@ export declare const indexerOverlayQuestionAmendmentSchema: z.ZodObject<{
|
|
|
2431
2431
|
}[] | undefined;
|
|
2432
2432
|
};
|
|
2433
2433
|
target_registry_digest: string;
|
|
2434
|
-
|
|
2434
|
+
overlay_validation_receipt_digest: string;
|
|
2435
2435
|
added_target_domains: {
|
|
2436
2436
|
id: string;
|
|
2437
2437
|
contract_digest: string;
|
|
@@ -2478,7 +2478,7 @@ export interface IndexerOverlayQuestionAuthorityProof {
|
|
|
2478
2478
|
requirement_id: string;
|
|
2479
2479
|
provider_integrity: string;
|
|
2480
2480
|
overlay_validation: ReturnType<typeof validateIndexerContractOverlay>;
|
|
2481
|
-
|
|
2481
|
+
validation_receipt: IndexerOverlayValidationReceipt;
|
|
2482
2482
|
}
|
|
2483
2483
|
export declare function resolveIndexerOverlayQuestionBindingAuthority(input: {
|
|
2484
2484
|
registry: IndexerRegistry;
|
|
@@ -2495,7 +2495,7 @@ export declare function buildIndexerOverlayQuestionAmendment(input: {
|
|
|
2495
2495
|
base_contract: IndexerProfileContract;
|
|
2496
2496
|
operator_contract: IndexerOperatorContract;
|
|
2497
2497
|
provider_integrity: string;
|
|
2498
|
-
|
|
2498
|
+
validation_receipt: unknown;
|
|
2499
2499
|
}): IndexerOverlayQuestionAmendment;
|
|
2500
2500
|
export declare function validateIndexerOverlayQuestionAmendment(value: unknown): IndexerOverlayQuestionAmendment;
|
|
2501
2501
|
export declare const indexerRequirementAmendmentConfirmationSchema: z.ZodObject<{
|