UNPKG

@sphereon/did-auth-siop

Version:

Self Issued OpenID V2 (SIOPv2) and OpenID 4 Verifiable Presentations (OID4VP)

1,963 lines (1,962 loc) 59.5 kB
export const AuthorizationResponseOptsSchemaObj = { "$id": "AuthorizationResponseOptsSchema", "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/AuthorizationResponseOpts", "definitions": { "AuthorizationResponseOpts": { "type": "object", "properties": { "responseURI": { "type": "string" }, "responseURIType": { "$ref": "#/definitions/ResponseURIType" }, "registration": { "$ref": "#/definitions/ResponseRegistrationOpts" }, "version": { "$ref": "#/definitions/SupportedVersion" }, "audience": { "type": "string" }, "createJwtCallback": { "$ref": "#/definitions/CreateJwtCallback" }, "jwtIssuer": { "$ref": "#/definitions/JwtIssuer" }, "responseMode": { "$ref": "#/definitions/ResponseMode" }, "responseType": { "type": "array", "items": { "$ref": "#/definitions/ResponseType" }, "minItems": 1, "maxItems": 1 }, "expiresIn": { "type": "number" }, "accessToken": { "type": "string" }, "tokenType": { "type": "string" }, "refreshToken": { "type": "string" }, "presentationExchange": { "$ref": "#/definitions/PresentationExchangeResponseOpts" }, "dcqlResponse": { "$ref": "#/definitions/DcqlResponseOpts" }, "isFirstParty": { "type": "boolean" } }, "required": [ "createJwtCallback" ], "additionalProperties": false }, "ResponseURIType": { "type": "string", "enum": [ "response_uri", "redirect_uri" ] }, "ResponseRegistrationOpts": { "anyOf": [ { "type": "object", "properties": { "passBy": { "$ref": "#/definitions/PassBy" }, "reference_uri": { "type": "string" }, "targets": { "$ref": "#/definitions/PropertyTargets" }, "id_token_encrypted_response_alg": { "$ref": "#/definitions/EncKeyAlgorithm" }, "id_token_encrypted_response_enc": { "$ref": "#/definitions/EncSymmetricAlgorithmCode" }, "authorizationEndpoint": { "anyOf": [ { "$ref": "#/definitions/Schema" }, { "type": "string" } ] }, "issuer": { "anyOf": [ { "$ref": "#/definitions/ResponseIss" }, { "type": "string" } ] }, "responseTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseType" } }, { "$ref": "#/definitions/ResponseType" } ] }, "scopesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/Scope" } }, { "$ref": "#/definitions/Scope" } ] }, "subjectTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SubjectType" } }, { "$ref": "#/definitions/SubjectType" } ] }, "idTokenSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "requestObjectSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "subject_syntax_types_supported": { "type": "array", "items": { "type": "string" } }, "tokenEndpoint": { "type": "string" }, "userinfoEndpoint": { "type": "string" }, "jwksUri": { "type": "string" }, "registrationEndpoint": { "type": "string" }, "responseModesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseMode" } }, { "$ref": "#/definitions/ResponseMode" } ] }, "grantTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/GrantType" } }, { "$ref": "#/definitions/GrantType" } ] }, "acrValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/AuthenticationContextReferences" } }, { "$ref": "#/definitions/AuthenticationContextReferences" } ] }, "idTokenEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "idTokenEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "userinfoSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "userinfoEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "userinfoEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "requestObjectEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "requestObjectEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "tokenEndpointAuthMethodsSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/TokenEndpointAuthMethod" } }, { "$ref": "#/definitions/TokenEndpointAuthMethod" } ] }, "tokenEndpointAuthSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "displayValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "claimTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ClaimType" } }, { "$ref": "#/definitions/ClaimType" } ] }, "claimsSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "serviceDocumentation": { "type": "string" }, "claimsLocalesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "uiLocalesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "claimsParameterSupported": { "type": "boolean" }, "requestParameterSupported": { "type": "boolean" }, "requestUriParameterSupported": { "type": "boolean" }, "requireRequestUriRegistration": { "type": "boolean" }, "opPolicyUri": { "type": "string" }, "opTosUri": { "type": "string" }, "client_id": { "type": "string" }, "redirectUris": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "clientName": { "type": "string" }, "clientUri": { "type": "string" }, "scope": { "type": "string" }, "contacts": { "type": "array", "items": { "type": "string" } }, "tosUri": { "type": "string" }, "policyUri": { "type": "string" }, "jwks": { "$ref": "#/definitions/JWKS" }, "softwareId": { "type": "string" }, "softwareVersion": { "type": "string" }, "tokenEndpointAuthMethod": { "type": "string" }, "applicationType": { "type": "string" }, "responseTypes": { "type": "string" }, "grantTypes": { "type": "string" }, "vpFormats": { "$ref": "#/definitions/Format" }, "logo_uri": { "type": "string" }, "clientPurpose": { "type": "string" } }, "required": [ "passBy" ] }, { "type": "object", "properties": { "passBy": { "$ref": "#/definitions/PassBy" }, "reference_uri": { "type": "string" }, "targets": { "$ref": "#/definitions/PropertyTargets" }, "id_token_encrypted_response_alg": { "$ref": "#/definitions/EncKeyAlgorithm" }, "id_token_encrypted_response_enc": { "$ref": "#/definitions/EncSymmetricAlgorithmCode" }, "authorizationEndpoint": { "anyOf": [ { "$ref": "#/definitions/Schema" }, { "type": "string" } ] }, "issuer": { "anyOf": [ { "$ref": "#/definitions/ResponseIss" }, { "type": "string" } ] }, "responseTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseType" } }, { "$ref": "#/definitions/ResponseType" } ] }, "scopesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/Scope" } }, { "$ref": "#/definitions/Scope" } ] }, "subjectTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SubjectType" } }, { "$ref": "#/definitions/SubjectType" } ] }, "idTokenSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "requestObjectSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "subject_syntax_types_supported": { "type": "array", "items": { "type": "string" } }, "tokenEndpoint": { "type": "string" }, "userinfoEndpoint": { "type": "string" }, "jwksUri": { "type": "string" }, "registrationEndpoint": { "type": "string" }, "responseModesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseMode" } }, { "$ref": "#/definitions/ResponseMode" } ] }, "grantTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/GrantType" } }, { "$ref": "#/definitions/GrantType" } ] }, "acrValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/AuthenticationContextReferences" } }, { "$ref": "#/definitions/AuthenticationContextReferences" } ] }, "idTokenEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "idTokenEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "userinfoSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "userinfoEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "userinfoEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "requestObjectEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "requestObjectEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "tokenEndpointAuthMethodsSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/TokenEndpointAuthMethod" } }, { "$ref": "#/definitions/TokenEndpointAuthMethod" } ] }, "tokenEndpointAuthSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "displayValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "claimTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ClaimType" } }, { "$ref": "#/definitions/ClaimType" } ] }, "claimsSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "serviceDocumentation": { "type": "string" }, "claimsLocalesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "uiLocalesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "claimsParameterSupported": { "type": "boolean" }, "requestParameterSupported": { "type": "boolean" }, "requestUriParameterSupported": { "type": "boolean" }, "requireRequestUriRegistration": { "type": "boolean" }, "opPolicyUri": { "type": "string" }, "opTosUri": { "type": "string" }, "client_id": { "type": "string" }, "redirectUris": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "clientName": { "type": "string" }, "clientUri": { "type": "string" }, "scope": { "type": "string" }, "contacts": { "type": "array", "items": { "type": "string" } }, "tosUri": { "type": "string" }, "policyUri": { "type": "string" }, "jwks": { "$ref": "#/definitions/JWKS" }, "softwareId": { "type": "string" }, "softwareVersion": { "type": "string" }, "tokenEndpointAuthMethod": { "type": "string" }, "applicationType": { "type": "string" }, "responseTypes": { "type": "string" }, "grantTypes": { "type": "string" }, "vpFormats": { "$ref": "#/definitions/Format" } }, "required": [ "passBy" ] }, { "type": "object", "properties": { "passBy": { "$ref": "#/definitions/PassBy" }, "reference_uri": { "type": "string" }, "targets": { "$ref": "#/definitions/PropertyTargets" }, "id_token_encrypted_response_alg": { "$ref": "#/definitions/EncKeyAlgorithm" }, "id_token_encrypted_response_enc": { "$ref": "#/definitions/EncSymmetricAlgorithmCode" }, "authorizationEndpoint": { "anyOf": [ { "$ref": "#/definitions/Schema" }, { "type": "string" } ] }, "issuer": { "anyOf": [ { "$ref": "#/definitions/ResponseIss" }, { "type": "string" } ] }, "responseTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseType" } }, { "$ref": "#/definitions/ResponseType" } ] }, "scopesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/Scope" } }, { "$ref": "#/definitions/Scope" } ] }, "subjectTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SubjectType" } }, { "$ref": "#/definitions/SubjectType" } ] }, "idTokenSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "requestObjectSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "subject_syntax_types_supported": { "type": "array", "items": { "type": "string" } }, "tokenEndpoint": { "type": "string" }, "userinfoEndpoint": { "type": "string" }, "jwksUri": { "type": "string" }, "registrationEndpoint": { "type": "string" }, "responseModesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseMode" } }, { "$ref": "#/definitions/ResponseMode" } ] }, "grantTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/GrantType" } }, { "$ref": "#/definitions/GrantType" } ] }, "acrValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/AuthenticationContextReferences" } }, { "$ref": "#/definitions/AuthenticationContextReferences" } ] }, "idTokenEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "idTokenEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "userinfoSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "userinfoEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "userinfoEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "requestObjectEncryptionAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "requestObjectEncryptionEncValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "tokenEndpointAuthMethodsSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/TokenEndpointAuthMethod" } }, { "$ref": "#/definitions/TokenEndpointAuthMethod" } ] }, "tokenEndpointAuthSigningAlgValuesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "displayValuesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "claimTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ClaimType" } }, { "$ref": "#/definitions/ClaimType" } ] }, "claimsSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "serviceDocumentation": { "type": "string" }, "claimsLocalesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "uiLocalesSupported": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] }, "claimsParameterSupported": { "type": "boolean" }, "requestParameterSupported": { "type": "boolean" }, "requestUriParameterSupported": { "type": "boolean" }, "requireRequestUriRegistration": { "type": "boolean" }, "opPolicyUri": { "type": "string" }, "opTosUri": { "type": "string" }, "idTokenTypesSupported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/IdTokenType" } }, { "$ref": "#/definitions/IdTokenType" } ] }, "vpFormatsSupported": { "$ref": "#/definitions/Format" } }, "required": [ "passBy" ] } ] }, "PassBy": { "type": "string", "enum": [ "NONE", "REFERENCE", "VALUE" ] }, "PropertyTargets": { "anyOf": [ { "$ref": "#/definitions/PropertyTarget" }, { "type": "array", "items": { "$ref": "#/definitions/PropertyTarget" } } ] }, "PropertyTarget": { "type": "string", "enum": [ "authorization-request", "request-object" ], "description": "Determines where a property will end up. Methods that support this argument are optional. If you do not provide any value it will default to all targets." }, "EncKeyAlgorithm": { "type": "string", "const": "ECDH-ES" }, "EncSymmetricAlgorithmCode": { "type": "string", "const": "XC20P" }, "Schema": { "type": "string", "enum": [ "openid:", "openid-vc:" ] }, "ResponseIss": { "type": "string", "enum": [ "https://self-issued.me", "https://self-issued.me/v2", "https://self-issued.me/v2/openid-vc" ] }, "ResponseType": { "type": "string", "enum": [ "id_token", "vp_token" ] }, "Scope": { "type": "string", "enum": [ "openid", "openid did_authn", "profile", "email", "address", "phone" ] }, "SubjectType": { "type": "string", "enum": [ "public", "pairwise" ] }, "SigningAlgo": { "type": "string", "enum": [ "EdDSA", "RS256", "PS256", "ES256", "ES256K" ] }, "ResponseMode": { "type": "string", "enum": [ "fragment", "form_post", "post", "direct_post", "query", "direct_post.jwt", "query.jwt", "fragment.jwt" ] }, "GrantType": { "type": "string", "enum": [ "authorization_code", "implicit" ] }, "AuthenticationContextReferences": { "type": "string", "enum": [ "phr", "phrh" ] }, "TokenEndpointAuthMethod": { "type": "string", "enum": [ "client_secret_post", "client_secret_basic", "client_secret_jwt", "private_key_jwt" ] }, "ClaimType": { "type": "string", "enum": [ "normal", "aggregated", "distributed" ] }, "JWKS": { "type": "object", "properties": { "keys": { "type": "array", "items": { "$ref": "#/definitions/JWK" } } }, "required": [ "keys" ], "additionalProperties": false }, "JWK": { "type": "object", "properties": { "kty": { "type": "string" }, "crv": { "type": "string" }, "x": { "type": "string" }, "y": { "type": "string" }, "e": { "type": "string" }, "n": { "type": "string" }, "alg": { "type": "string" }, "d": { "type": "string" }, "dp": { "type": "string" }, "dq": { "type": "string" }, "ext": { "type": "boolean" }, "k": { "type": "string" }, "key_ops": { "type": "array", "items": { "type": "string" } }, "kid": { "type": "string" }, "oth": { "type": "array", "items": { "type": "object", "properties": { "d": { "type": "string" }, "r": { "type": "string" }, "t": { "type": "string" } }, "additionalProperties": false } }, "p": { "type": "string" }, "q": { "type": "string" }, "qi": { "type": "string" }, "use": { "type": "string" }, "x5c": { "type": "array", "items": { "type": "string" } }, "x5t": { "type": "string" }, "x5t#S256": { "type": "string" }, "x5u": { "type": "string" } }, "additionalProperties": {} }, "Format": { "type": "object", "properties": { "jwt": { "$ref": "#/definitions/JwtObject" }, "jwt_vc": { "$ref": "#/definitions/JwtObject" }, "jwt_vc_json": { "$ref": "#/definitions/JwtObject" }, "jwt_vp": { "$ref": "#/definitions/JwtObject" }, "jwt_vp_json": { "$ref": "#/definitions/JwtObject" }, "ldp": { "$ref": "#/definitions/LdpObject" }, "ldp_vc": { "$ref": "#/definitions/LdpObject" }, "ldp_vp": { "$ref": "#/definitions/LdpObject" }, "di": { "$ref": "#/definitions/DiObject" }, "di_vc": { "$ref": "#/definitions/DiObject" }, "di_vp": { "$ref": "#/definitions/DiObject" }, "vc+sd-jwt": { "$ref": "#/definitions/SdJwtObject" }, "mso_mdoc": { "$ref": "#/definitions/MsoMdocObject" } }, "additionalProperties": false }, "JwtObject": { "type": "object", "properties": { "alg": { "type": "array", "items": { "type": "string" } } }, "required": [ "alg" ], "additionalProperties": false }, "LdpObject": { "type": "object", "properties": { "proof_type": { "type": "array", "items": { "type": "string" } } }, "required": [ "proof_type" ], "additionalProperties": false }, "DiObject": { "type": "object", "properties": { "proof_type": { "type": "array", "items": { "type": "string" } }, "cryptosuite": { "type": "array", "items": { "type": "string" } } }, "required": [ "proof_type", "cryptosuite" ], "additionalProperties": false }, "SdJwtObject": { "type": "object", "properties": { "sd-jwt_alg_values": { "type": "array", "items": { "type": "string" } }, "kb-jwt_alg_values": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false }, "MsoMdocObject": { "type": "object", "properties": { "alg": { "type": "array", "items": { "type": "string" } } }, "required": [ "alg" ], "additionalProperties": false }, "IdTokenType": { "type": "string", "enum": [ "subject_signed", "attester_signed" ] }, "SupportedVersion": { "type": "number", "enum": [ 70, 110, 180, 200, 71 ] }, "CreateJwtCallback": { "$ref": "#/definitions/CreateJwtCallback%3CJwtIssuerWithContext%3E" }, "CreateJwtCallback<JwtIssuerWithContext>": { "properties": { "isFunction": { "type": "boolean", "const": true } } }, "JwtIssuer": { "anyOf": [ { "$ref": "#/definitions/JwtIssuerDid" }, { "$ref": "#/definitions/JwtIssuerX5c" }, { "$ref": "#/definitions/JwtIssuerJwk" }, { "$ref": "#/definitions/JwtIssuerCustom" } ] }, "JwtIssuerDid": { "type": "object", "properties": { "method": { "type": "string", "const": "did" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional options for the issuance context" }, "didUrl": { "type": "string" }, "alg": { "anyOf": [ { "$ref": "#/definitions/SigningAlgo" }, { "type": "string" } ] } }, "required": [ "alg", "didUrl", "method" ], "additionalProperties": false }, "JwtIssuerX5c": { "type": "object", "properties": { "method": { "type": "string", "const": "x5c" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional options for the issuance context" }, "alg": { "anyOf": [ { "$ref": "#/definitions/SigningAlgo" }, { "type": "string" } ] }, "x5c": { "type": "array", "items": { "type": "string" }, "description": "Array of base64-encoded certificate strings in the DER-format.\n\nThe certificate containing the public key corresponding to the key used to digitally sign the JWS MUST be the first certificate." }, "issuer": { "type": "string", "description": "The issuer jwt\n\nThis value will be used as the iss value of the issue jwt. It is also used as the client_id. And will also be set as the redirect_uri\n\nIt must match an entry in the x5c certificate leaf entry dnsName / uriName" } }, "required": [ "alg", "issuer", "method", "x5c" ], "additionalProperties": false }, "JwtIssuerJwk": { "type": "object", "properties": { "method": { "type": "string", "const": "jwk" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional options for the issuance context" }, "alg": { "anyOf": [ { "$ref": "#/definitions/SigningAlgo" }, { "type": "string" } ] }, "jwk": { "$ref": "#/definitions/JWK" } }, "required": [ "alg", "jwk", "method" ], "additionalProperties": false }, "JwtIssuerCustom": { "type": "object", "properties": { "method": { "type": "string", "const": "custom" }, "options": { "type": "object", "additionalProperties": {}, "description": "Additional options for the issuance context" } }, "required": [ "method" ], "additionalProperties": false }, "PresentationExchangeResponseOpts": { "type": "object", "properties": { "verifiablePresentations": { "type": "array", "items": { "anyOf": [ { "$ref": "#/definitions/W3CVerifiablePresentation" }, { "$ref": "#/definitions/CompactSdJwtVc" }, { "$ref": "#/definitions/MdocOid4vpMdocVpToken" } ] } }, "vpTokenLocation": { "$ref": "#/definitions/VPTokenLocation" }, "presentationSubmission": { "$ref": "#/definitions/PresentationSubmission" }, "restrictToFormats": { "$ref": "#/definitions/Format" }, "restrictToDIDMethods": { "type": "array", "items": { "type": "string" } } }, "required": [ "verifiablePresentations" ], "additionalProperties": false }, "W3CVerifiablePresentation": { "anyOf": [ { "$ref": "#/definitions/IVerifiablePresentation" }, { "$ref": "#/definitions/CompactJWT" } ], "description": "Represents a signed Verifiable Presentation (includes proof), in either JSON or compact JWT format. See {@link https://www.w3.org/TR/vc-data-model/#presentations VC data model } See {@link https://www.w3.org/TR/vc-data-model/#proof-formats proof formats }" }, "IVerifiablePresentation": { "type": "object", "properties": { "proof": { "anyOf": [ { "$ref": "#/definitions/IProof" }, { "type": "array", "items": { "$ref": "#/definitions/IProof" } } ] }, "id": { "type": "string" }, "@context": { "anyOf": [ { "$ref": "#/definitions/ICredentialContextType" }, { "type": "array", "items": { "$ref": "#/definitions/ICredentialContextType" } } ] }, "type": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } }