UNPKG

@sphereon/did-auth-siop

Version:

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

288 lines 6.13 kB
export const RPRegistrationMetadataPayloadSchemaObj = { "$id": "RPRegistrationMetadataPayloadSchema", "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/RPRegistrationMetadataPayload", "definitions": { "RPRegistrationMetadataPayload": { "type": "object", "properties": { "client_id": { "anyOf": [ { "type": "string" }, {} ] }, "id_token_signing_alg_values_supported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "request_object_signing_alg_values_supported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SigningAlgo" } }, { "$ref": "#/definitions/SigningAlgo" } ] }, "response_types_supported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/ResponseType" } }, { "$ref": "#/definitions/ResponseType" } ] }, "scopes_supported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/Scope" } }, { "$ref": "#/definitions/Scope" } ] }, "subject_types_supported": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/SubjectType" } }, { "$ref": "#/definitions/SubjectType" } ] }, "subject_syntax_types_supported": { "type": "array", "items": { "type": "string" } }, "vp_formats": { "anyOf": [ { "$ref": "#/definitions/Format" }, {} ] }, "client_name": { "anyOf": [ { "type": "string" }, {} ] }, "logo_uri": { "anyOf": [ { "type": "string" }, {} ] }, "client_purpose": { "anyOf": [ {}, { "type": "string" } ] } } }, "SigningAlgo": { "type": "string", "enum": [ "EdDSA", "RS256", "PS256", "ES256", "ES256K" ] }, "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" ] }, "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 } } };