UNPKG

@sphereon/ssi-sdk-ext.identifier-resolution

Version:

1 lines 294 kB
{"version":3,"sources":["../plugin.schema.json","../src/index.ts","../src/types/common.ts","../src/types/externalIdentifierTypes.ts","../src/types/managedIdentifierTypes.ts","../src/types/IIdentifierResolution.ts","../src/agent/IdentifierResolution.ts","../src/functions/managedIdentifierFunctions.ts","../src/functions/externalIdentifierFunctions.ts","../src/functions/externalOIDFIdentifier.ts","../src/functions/LegacySupport.ts"],"sourcesContent":["{\n \"IIdentifierResolution\": {\n \"components\": {\n \"schemas\": {\n \"ExternalIdentifierOpts\": {\n \"anyOf\": [\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"jwk\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n },\n \"x5c\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierX5cOpts\"\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"x5c\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n },\n \"verify\": {\n \"type\": \"boolean\"\n },\n \"verificationTime\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"trustAnchors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"allowNoTrustAnchorsFound\": {\n \"type\": \"boolean\"\n },\n \"trustRootWhenNoAnchors\": {\n \"type\": \"boolean\"\n },\n \"allowSingleNoCAChainElement\": {\n \"type\": \"boolean\"\n },\n \"blindlyTrustedAnchors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"disallowReversedChain\": {\n \"type\": \"boolean\"\n },\n \"client\": {\n \"type\": \"object\",\n \"properties\": {\n \"clientId\": {\n \"type\": \"string\"\n },\n \"clientIdScheme\": {\n \"$ref\": \"#/components/schemas/ClientIdScheme\"\n }\n },\n \"required\": [\n \"clientId\",\n \"clientIdScheme\"\n ],\n \"additionalProperties\": false\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"did\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n },\n \"noVerificationMethodFallback\": {\n \"type\": \"boolean\"\n },\n \"vmRelationship\": {\n \"$ref\": \"#/components/schemas/DIDDocumentSection\"\n },\n \"localResolution\": {\n \"type\": \"boolean\"\n },\n \"uniresolverResolution\": {\n \"type\": \"boolean\"\n },\n \"resolverResolution\": {\n \"type\": \"boolean\"\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"kid\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"cose_key\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"entity_id\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n },\n \"trustAnchors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\n \"identifier\"\n ]\n }\n ]\n },\n \"ExternalIdentifierType\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n ],\n \"description\": \"Use whenever we need to resolve an external identifier. We can pass in kids, DIDs, and x5chains\\n\\nThe functions below can be used to check the type, and they also provide the proper runtime types\"\n },\n \"JWK\": {\n \"type\": \"object\",\n \"properties\": {\n \"kty\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/components/schemas/JwkKeyType\"\n },\n {\n \"$ref\": \"#/components/schemas/JwkKeyTypeString\"\n }\n ]\n },\n \"crv\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/components/schemas/JoseCurve\"\n },\n {\n \"$ref\": \"#/components/schemas/JoseCurveString\"\n }\n ]\n },\n \"alg\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/components/schemas/JoseSignatureAlgorithm\"\n },\n {\n \"$ref\": \"#/components/schemas/JoseSignatureAlgorithmString\"\n }\n ]\n },\n \"x\": {\n \"type\": \"string\"\n },\n \"y\": {\n \"type\": \"string\"\n },\n \"e\": {\n \"type\": \"string\"\n },\n \"n\": {\n \"type\": \"string\"\n },\n \"d\": {\n \"type\": \"string\"\n },\n \"dp\": {\n \"type\": \"string\"\n },\n \"dq\": {\n \"type\": \"string\"\n },\n \"ext\": {\n \"type\": \"boolean\"\n },\n \"k\": {\n \"type\": \"string\"\n },\n \"key_ops\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/components/schemas/JoseKeyOperation\"\n },\n {\n \"$ref\": \"#/components/schemas/JoseKeyOperationString\"\n }\n ]\n }\n },\n \"kid\": {\n \"type\": \"string\"\n },\n \"oth\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"d\": {\n \"type\": \"string\"\n },\n \"r\": {\n \"type\": \"string\"\n },\n \"t\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n },\n \"p\": {\n \"type\": \"string\"\n },\n \"q\": {\n \"type\": \"string\"\n },\n \"qi\": {\n \"type\": \"string\"\n },\n \"use\": {\n \"type\": \"string\"\n },\n \"x5c\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"JWK \\\"x5c\\\" (X.509 Certificate Chain) Parameter.\"\n },\n \"x5t\": {\n \"type\": \"string\",\n \"description\": \"JWK \\\"x5t\\\" (X.509 Certificate SHA-1 Thumbprint) Parameter.\"\n },\n \"x5t#S256\": {\n \"type\": \"string\",\n \"description\": \"\\\"x5t#S256\\\" (X.509 Certificate SHA-256 Thumbprint) Parameter.\"\n },\n \"x5u\": {\n \"type\": \"string\",\n \"description\": \"JWK \\\"x5u\\\" (X.509 URL) Parameter.\"\n },\n \"iv\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"kty\"\n ]\n },\n \"JwkKeyType\": {\n \"type\": \"string\",\n \"enum\": [\n \"EC\",\n \"RSA\",\n \"oct\",\n \"OKP\"\n ]\n },\n \"JwkKeyTypeString\": {\n \"type\": \"string\",\n \"enum\": [\n \"EC\",\n \"RSA\",\n \"oct\",\n \"OKP\"\n ]\n },\n \"JoseCurve\": {\n \"type\": \"string\",\n \"enum\": [\n \"P-256\",\n \"P-384\",\n \"P-521\",\n \"X25519\",\n \"X448\",\n \"EdDSA\",\n \"Ed25519\",\n \"Ed448\",\n \"secp256k1\"\n ]\n },\n \"JoseCurveString\": {\n \"type\": \"string\",\n \"enum\": [\n \"P-256\",\n \"P-384\",\n \"P-521\",\n \"X25519\",\n \"X448\",\n \"EdDSA\",\n \"Ed25519\",\n \"Ed448\",\n \"secp256k1\"\n ]\n },\n \"JoseSignatureAlgorithm\": {\n \"type\": \"string\",\n \"enum\": [\n \"RS256\",\n \"RS384\",\n \"RS512\",\n \"ES256\",\n \"ES256K\",\n \"ES384\",\n \"ES512\",\n \"EdDSA\",\n \"HS256\",\n \"HS384\",\n \"HS512\",\n \"PS256\",\n \"PS384\",\n \"PS512\",\n \"none\"\n ]\n },\n \"JoseSignatureAlgorithmString\": {\n \"type\": \"string\",\n \"enum\": [\n \"RS256\",\n \"RS384\",\n \"RS512\",\n \"ES256\",\n \"ES256K\",\n \"ES384\",\n \"ES512\",\n \"EdDSA\",\n \"HS256\",\n \"HS384\",\n \"HS512\",\n \"PS256\",\n \"PS384\",\n \"PS512\",\n \"none\"\n ]\n },\n \"JoseKeyOperation\": {\n \"type\": \"string\",\n \"enum\": [\n \"sign\",\n \"verify\",\n \"encrypt\",\n \"decrypt\",\n \"wrapKey\",\n \"unwrapKey\",\n \"deriveKey\",\n \"deriveBits\"\n ]\n },\n \"JoseKeyOperationString\": {\n \"type\": \"string\",\n \"enum\": [\n \"sign\",\n \"verify\",\n \"encrypt\",\n \"decrypt\",\n \"wrapKey\",\n \"unwrapKey\",\n \"deriveKey\",\n \"deriveBits\"\n ]\n },\n \"ExternalIdentifierX5cOpts\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"x5c\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n },\n \"verify\": {\n \"type\": \"boolean\"\n },\n \"verificationTime\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"trustAnchors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"allowNoTrustAnchorsFound\": {\n \"type\": \"boolean\"\n },\n \"trustRootWhenNoAnchors\": {\n \"type\": \"boolean\"\n },\n \"allowSingleNoCAChainElement\": {\n \"type\": \"boolean\"\n },\n \"blindlyTrustedAnchors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"disallowReversedChain\": {\n \"type\": \"boolean\"\n },\n \"client\": {\n \"type\": \"object\",\n \"properties\": {\n \"clientId\": {\n \"type\": \"string\"\n },\n \"clientIdScheme\": {\n \"$ref\": \"#/components/schemas/ClientIdScheme\"\n }\n },\n \"required\": [\n \"clientId\",\n \"clientIdScheme\"\n ],\n \"additionalProperties\": false\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n \"ClientIdScheme\": {\n \"type\": \"string\",\n \"enum\": [\n \"x509_san_dns\",\n \"x509_san_uri\"\n ]\n },\n \"DIDDocumentSection\": {\n \"type\": \"string\",\n \"enum\": [\n \"verificationMethod\",\n \"publicKey\",\n \"service\",\n \"authentication\",\n \"assertionMethod\",\n \"keyAgreement\",\n \"capabilityInvocation\",\n \"capabilityDelegation\"\n ],\n \"description\": \"Refers to a section of a DID document. Either the list of verification methods or services or one of the verification relationships.\\n\\nSee {@link https://www.w3.org/TR/did-core/#verification-relationships | verification relationships }\"\n },\n \"ExternalIdentifierResult\": {\n \"anyOf\": [\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierMethod\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"did\": {\n \"type\": \"string\"\n },\n \"didDocument\": {\n \"$ref\": \"#/components/schemas/DIDDocument\"\n },\n \"didJwks\": {\n \"$ref\": \"#/components/schemas/DidDocumentJwks\"\n },\n \"didResolutionResult\": {\n \"$ref\": \"#/components/schemas/Omit<DIDResolutionResult,\\\"didDocument\\\">\"\n },\n \"didParsed\": {\n \"$ref\": \"#/components/schemas/IParsedDID\"\n }\n },\n \"required\": [\n \"did\",\n \"didParsed\",\n \"didResolutionResult\",\n \"jwks\",\n \"method\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierMethod\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"x5c\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"issuerJWK\": {\n \"$ref\": \"#/components/schemas/JWK\"\n },\n \"verificationResult\": {\n \"$ref\": \"#/components/schemas/X509ValidationResult\"\n },\n \"certificates\": {\n \"type\": \"array\",\n \"items\": {}\n }\n },\n \"required\": [\n \"certificates\",\n \"issuerJWK\",\n \"jwks\",\n \"method\",\n \"x5c\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierMethod\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"jwk\": {\n \"$ref\": \"#/components/schemas/JWK\"\n },\n \"x5c\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierX5cResult\"\n }\n },\n \"required\": [\n \"jwk\",\n \"jwks\",\n \"method\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierMethod\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"trustedAnchors\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/TrustedAnchor\"\n }\n },\n \"errorList\": {\n \"$ref\": \"#/components/schemas/Record<TrustedAnchor,ErrorMessage>\"\n },\n \"jwtPayload\": {\n \"$ref\": \"#/components/schemas/JwtPayload\"\n },\n \"trustEstablished\": {\n \"type\": \"boolean\"\n }\n },\n \"required\": [\n \"jwks\",\n \"method\",\n \"trustEstablished\",\n \"trustedAnchors\"\n ]\n },\n {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierMethod\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"coseKey\": {\n \"$ref\": \"#/components/schemas/ICoseKeyJson\"\n },\n \"x5c\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierX5cResult\"\n }\n },\n \"required\": [\n \"coseKey\",\n \"jwks\",\n \"method\"\n ]\n }\n ]\n },\n \"ExternalIdentifierMethod\": {\n \"type\": \"string\",\n \"enum\": [\n \"did\",\n \"jwk\",\n \"x5c\",\n \"kid\",\n \"cose_key\",\n \"oidc-discovery\",\n \"jwks-url\",\n \"oid4vci-issuer\",\n \"entity_id\"\n ]\n },\n \"ExternalJwkInfo\": {\n \"type\": \"object\",\n \"properties\": {\n \"jwk\": {\n \"$ref\": \"#/components/schemas/JWK\"\n },\n \"jwkThumbprint\": {\n \"type\": \"string\"\n },\n \"kid\": {\n \"type\": \"string\"\n },\n \"publicKeyHex\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"jwk\",\n \"jwkThumbprint\",\n \"publicKeyHex\"\n ],\n \"additionalProperties\": false\n },\n \"DIDDocument\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"authentication\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n ]\n }\n },\n \"assertionMethod\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n ]\n }\n },\n \"keyAgreement\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n ]\n }\n },\n \"capabilityInvocation\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n ]\n }\n },\n \"capabilityDelegation\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n ]\n }\n },\n \"@context\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"const\": \"https://www.w3.org/ns/did/v1\"\n },\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n ]\n },\n \"id\": {\n \"type\": \"string\"\n },\n \"alsoKnownAs\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"controller\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n ]\n },\n \"verificationMethod\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n },\n \"service\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/Service\"\n }\n },\n \"publicKey\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n },\n \"deprecated\": true\n }\n },\n \"required\": [\n \"id\"\n ],\n \"description\": \"Represents a DID document.\"\n },\n \"VerificationMethod\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"type\": {\n \"type\": \"string\"\n },\n \"controller\": {\n \"type\": \"string\"\n },\n \"publicKeyBase58\": {\n \"type\": \"string\"\n },\n \"publicKeyBase64\": {\n \"type\": \"string\"\n },\n \"publicKeyJwk\": {\n \"$ref\": \"#/components/schemas/JsonWebKey\"\n },\n \"publicKeyHex\": {\n \"type\": \"string\"\n },\n \"publicKeyMultibase\": {\n \"type\": \"string\"\n },\n \"blockchainAccountId\": {\n \"type\": \"string\"\n },\n \"ethereumAddress\": {\n \"type\": \"string\"\n },\n \"conditionOr\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n },\n \"conditionAnd\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n },\n \"threshold\": {\n \"type\": \"number\"\n },\n \"conditionThreshold\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n }\n },\n \"conditionWeightedThreshold\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ConditionWeightedThreshold\"\n }\n },\n \"conditionDelegated\": {\n \"type\": \"string\"\n },\n \"relationshipParent\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"relationshipChild\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"relationshipSibling\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\n \"id\",\n \"type\",\n \"controller\"\n ],\n \"additionalProperties\": false,\n \"description\": \"Represents the properties of a Verification Method listed in a DID document.\\n\\nThis data type includes public key representations that are no longer present in the spec but are still used by several DID methods / resolvers and kept for backward compatibility.\"\n },\n \"JsonWebKey\": {\n \"type\": \"object\",\n \"properties\": {\n \"alg\": {\n \"type\": \"string\"\n },\n \"crv\": {\n \"type\": \"string\"\n },\n \"e\": {\n \"type\": \"string\"\n },\n \"ext\": {\n \"type\": \"boolean\"\n },\n \"key_ops\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"kid\": {\n \"type\": \"string\"\n },\n \"kty\": {\n \"type\": \"string\"\n },\n \"n\": {\n \"type\": \"string\"\n },\n \"use\": {\n \"type\": \"string\"\n },\n \"x\": {\n \"type\": \"string\"\n },\n \"y\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"kty\"\n ],\n \"description\": \"Encapsulates a JSON web key type that includes only the public properties that can be used in DID documents.\\n\\nThe private properties are intentionally omitted to discourage the use (and accidental disclosure) of private keys in DID documents.\"\n },\n \"ConditionWeightedThreshold\": {\n \"type\": \"object\",\n \"properties\": {\n \"condition\": {\n \"$ref\": \"#/components/schemas/VerificationMethod\"\n },\n \"weight\": {\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"condition\",\n \"weight\"\n ],\n \"additionalProperties\": false\n },\n \"Service\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"type\": {\n \"type\": \"string\"\n },\n \"serviceEndpoint\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/components/schemas/ServiceEndpoint\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ServiceEndpoint\"\n }\n }\n ]\n }\n },\n \"required\": [\n \"id\",\n \"type\",\n \"serviceEndpoint\"\n ],\n \"description\": \"Represents a Service entry in a {@link https://www.w3.org/TR/did-core/#did-document-properties | DID document } .\"\n },\n \"ServiceEndpoint\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/components/schemas/Record<string,any>\"\n }\n ],\n \"description\": \"Represents an endpoint of a Service entry in a DID document.\"\n },\n \"Record<string,any>\": {\n \"type\": \"object\"\n },\n \"DidDocumentJwks\": {\n \"$ref\": \"#/components/schemas/Record<Exclude<DIDDocumentSection,(\\\"publicKey\\\"|\\\"service\\\")>,def-interface-.ts-36208-36933-.ts-0-64696[]>\"\n },\n \"Record<Exclude<DIDDocumentSection,(\\\"publicKey\\\"|\\\"service\\\")>,def-interface-.ts-36208-36933-.ts-0-64696[]>\": {\n \"type\": \"object\",\n \"properties\": {\n \"verificationMethod\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n },\n \"authentication\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n },\n \"assertionMethod\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n },\n \"keyAgreement\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n },\n \"capabilityInvocation\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n },\n \"capabilityDelegation\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/JWK\"\n }\n }\n },\n \"required\": [\n \"verificationMethod\",\n \"authentication\",\n \"assertionMethod\",\n \"keyAgreement\",\n \"capabilityInvocation\",\n \"capabilityDelegation\"\n ],\n \"additionalProperties\": false\n },\n \"Omit<DIDResolutionResult,\\\"didDocument\\\">\": {\n \"$ref\": \"#/components/schemas/Pick<DIDResolutionResult,Exclude<(\\\"@context\\\"|\\\"didResolutionMetadata\\\"|\\\"didDocument\\\"|\\\"didDocumentMetadata\\\"),\\\"didDocument\\\">>\"\n },\n \"Pick<DIDResolutionResult,Exclude<(\\\"@context\\\"|\\\"didResolutionMetadata\\\"|\\\"didDocument\\\"|\\\"didDocumentMetadata\\\"),\\\"didDocument\\\">>\": {\n \"type\": \"object\",\n \"properties\": {\n \"@context\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"const\": \"https://w3id.org/did-resolution/v1\"\n },\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n ]\n },\n \"didResolutionMetadata\": {\n \"$ref\": \"#/components/schemas/DIDResolutionMetadata\"\n },\n \"didDocumentMetadata\": {\n \"$ref\": \"#/components/schemas/DIDDocumentMetadata\"\n }\n },\n \"required\": [\n \"didResolutionMetadata\",\n \"didDocumentMetadata\"\n ],\n \"additionalProperties\": false\n },\n \"DIDResolutionMetadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"contentType\": {\n \"type\": \"string\"\n },\n \"error\": {\n \"type\": \"string\"\n }\n },\n \"description\": \"Encapsulates the resolution metadata resulting from a {@link Resolvable.resolve } operation.\"\n },\n \"DIDDocumentMetadata\": {\n \"type\": \"object\",\n \"properties\": {\n \"created\": {\n \"type\": \"string\"\n },\n \"updated\": {\n \"type\": \"string\"\n },\n \"deactivated\": {\n \"type\": \"boolean\"\n },\n \"versionId\": {\n \"type\": \"string\"\n },\n \"nextUpdate\": {\n \"type\": \"string\"\n },\n \"nextVersionId\": {\n \"type\": \"string\"\n },\n \"equivalentId\": {\n \"type\": \"string\"\n },\n \"canonicalId\": {\n \"type\": \"string\"\n }\n },\n \"description\": \"Represents metadata about the DID document resulting from a {@link Resolvable.resolve } operation.\"\n },\n \"IParsedDID\": {\n \"type\": \"object\",\n \"properties\": {\n \"did\": {\n \"type\": \"string\"\n },\n \"didUrl\": {\n \"type\": \"string\"\n },\n \"method\": {\n \"type\": \"string\"\n },\n \"id\": {\n \"type\": \"string\"\n },\n \"path\": {\n \"type\": \"string\"\n },\n \"fragment\": {\n \"type\": \"string\"\n },\n \"query\": {\n \"type\": \"string\"\n },\n \"params\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\n \"did\",\n \"didUrl\",\n \"method\",\n \"id\"\n ],\n \"additionalProperties\": false\n },\n \"X509ValidationResult\": {\n \"type\": \"object\",\n \"properties\": {\n \"error\": {\n \"type\": \"boolean\"\n },\n \"critical\": {\n \"type\": \"boolean\"\n },\n \"message\": {\n \"type\": \"string\"\n },\n \"detailMessage\": {\n \"type\": \"string\"\n },\n \"verificationTime\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"certificateChain\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/CertificateInfo\"\n }\n },\n \"trustAnchor\": {\n \"$ref\": \"#/components/schemas/CertificateInfo\"\n },\n \"client\": {\n \"type\": \"object\",\n \"properties\": {\n \"clientId\": {\n \"type\": \"string\"\n },\n \"clientIdScheme\": {\n \"$ref\": \"#/components/schemas/ClientIdScheme\"\n }\n },\n \"required\": [\n \"clientId\",\n \"clientIdScheme\"\n ],\n \"additionalProperties\": false\n }\n },\n \"required\": [\n \"error\",\n \"critical\",\n \"message\",\n \"verificationTime\"\n ],\n \"additionalProperties\": false\n },\n \"CertificateInfo\": {\n \"type\": \"object\",\n \"properties\": {\n \"certificate\": {},\n \"notBefore\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"notAfter\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"publicKeyJWK\": {},\n \"issuer\": {\n \"type\": \"object\",\n \"properties\": {\n \"dn\": {\n \"$ref\": \"#/components/schemas/DNInfo\"\n }\n },\n \"required\": [\n \"dn\"\n ],\n \"additionalProperties\": false\n },\n \"subject\": {\n \"type\": \"object\",\n \"properties\": {\n \"dn\": {\n \"$ref\": \"#/components/schemas/DNInfo\"\n },\n \"subjectAlternativeNames\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/SubjectAlternativeName\"\n }\n }\n },\n \"required\": [\n \"dn\",\n \"subjectAlternativeNames\"\n ],\n \"additionalProperties\": false\n }\n },\n \"required\": [\n \"notBefore\",\n \"notAfter\",\n \"issuer\",\n \"subject\"\n ],\n \"additionalProperties\": false\n },\n \"DNInfo\": {\n \"type\": \"object\",\n \"properties\": {\n \"DN\": {\n \"type\": \"string\"\n },\n \"attributes\": {\n \"$ref\": \"#/components/schemas/Record<string,string>\"\n }\n },\n \"required\": [\n \"DN\",\n \"attributes\"\n ],\n \"additionalProperties\": false\n },\n \"Record<string,string>\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"string\"\n }\n },\n \"SubjectAlternativeName\": {\n \"type\": \"object\",\n \"properties\": {\n \"value\": {\n \"type\": \"string\"\n },\n \"type\": {\n \"$ref\": \"#/components/schemas/SubjectAlternativeGeneralName\"\n }\n },\n \"required\": [\n \"value\",\n \"type\"\n ],\n \"additionalProperties\": false\n },\n \"SubjectAlternativeGeneralName\": {\n \"type\": \"number\",\n \"enum\": [\n 1,\n 2,\n 6,\n 7\n ],\n \"description\": \"otherName [0] OtherName, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER }\"\n },\n \"ExternalIdentifierX5cResult\": {\n \"type\": \"object\",\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"x5c\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"x5c\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"issuerJWK\": {\n \"$ref\": \"#/components/schemas/JWK\"\n },\n \"verificationResult\": {\n \"$ref\": \"#/components/schemas/X509ValidationResult\"\n },\n \"certificates\": {\n \"type\": \"array\",\n \"items\": {}\n }\n },\n \"required\": [\n \"certificates\",\n \"issuerJWK\",\n \"jwks\",\n \"method\",\n \"x5c\"\n ],\n \"additionalProperties\": false\n },\n \"TrustedAnchor\": {\n \"type\": \"string\"\n },\n \"Record<TrustedAnchor,ErrorMessage>\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/components/schemas/ErrorMessage\"\n }\n },\n \"ErrorMessage\": {\n \"type\": \"string\"\n },\n \"JwtPayload\": {\n \"type\": \"object\",\n \"properties\": {\n \"iss\": {\n \"type\": \"string\"\n },\n \"sub\": {\n \"type\": \"string\"\n },\n \"aud\": {\n \"anyOf\": [\n {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n {\n \"type\": \"string\"\n }\n ]\n },\n \"exp\": {\n \"type\": \"number\"\n },\n \"nbf\": {\n \"type\": \"number\"\n },\n \"iat\": {\n \"type\": \"number\"\n },\n \"jti\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": {}\n },\n \"ICoseKeyJson\": {\n \"type\": \"object\",\n \"properties\": {\n \"kty\": {\n \"$ref\": \"#/components/schemas/ICoseKeyType\"\n },\n \"kid\": {\n \"type\": \"string\"\n },\n \"alg\": {\n \"$ref\": \"#/components/schemas/ICoseSignatureAlgorithm\"\n },\n \"key_ops\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ICoseKeyOperation\"\n }\n },\n \"baseIV\": {\n \"type\": \"string\"\n },\n \"crv\": {\n \"$ref\": \"#/components/schemas/ICoseCurve\"\n },\n \"x\": {\n \"type\": \"string\"\n },\n \"y\": {\n \"type\": \"string\"\n },\n \"d\": {\n \"type\": \"string\"\n },\n \"x5chain\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\n \"kty\"\n ],\n \"additionalProperties\": {},\n \"description\": \"See our mdl-mdoc and crypto library for more information https://github.com/Sphereon-Opensource/mdoc-cbor-crypto-multiplatform\\n\\nConversion functions are available in above library. Conversion functions are also available for TS in our\"\n },\n \"ICoseKeyType\": {\n \"type\": \"number\",\n \"enum\": [\n 1,\n 2,\n 3,\n 4,\n 0\n ]\n },\n \"ICoseSignatureAlgorithm\": {\n \"type\": \"number\",\n \"enum\": [\n -7,\n -47,\n -35,\n -36,\n -8,\n 4,\n 5,\n 6,\n 7,\n -37,\n -38,\n -39\n ]\n },\n \"ICoseKeyOperation\": {\n \"type\": \"number\",\n \"enum\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10\n ]\n },\n \"ICoseCurve\": {\n \"type\": \"number\",\n \"enum\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n -1\n ]\n },\n \"ExternalIdentifierCoseKeyOpts\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"cose_key\"\n },\n \"identifier\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierType\"\n }\n },\n \"required\": [\n \"identifier\"\n ]\n },\n \"ExternalIdentifierCoseKeyResult\": {\n \"type\": \"object\",\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"const\": \"cose_key\"\n },\n \"jwks\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/ExternalJwkInfo\"\n }\n },\n \"coseKey\": {\n \"$ref\": \"#/components/schemas/ICoseKeyJson\"\n },\n \"x5c\": {\n \"$ref\": \"#/components/schemas/ExternalIdentifierX5cResult\"\n }\n },\n \"required\": [\n \"coseKey\",\n \"jwks\",\n \"method\"\n ],\n \"additionalProperties\": false\n },\n \"Externa