@sphereon/did-auth-siop
Version:
Self Issued OpenID V2 (SIOPv2) and OpenID 4 Verifiable Presentations (OID4VP)
1 lines • 3.36 MB
Source Map (JSON)
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.11.29_postcss@8.5.3_tsx@4.19.4_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js","../lib/schemas/validation/schemaValidation.cjs","../lib/index.ts","../lib/authorization-request/RequestRegistration.ts","../lib/helpers/index.ts","../lib/helpers/Metadata.ts","../lib/types/index.ts","../lib/types/Errors.ts","../lib/types/JWT.types.ts","../lib/types/SIOP.types.ts","../lib/types/Events.ts","../lib/types/SessionManager.ts","../lib/types/VpJwtIssuer.ts","../lib/types/VpJwtVerifier.ts","../lib/helpers/Encodings.ts","../lib/helpers/HttpUtils.ts","../lib/helpers/ObjectUtils.ts","../lib/helpers/Revocation.ts","../lib/helpers/State.ts","../lib/helpers/ExtractJwks.ts","../lib/helpers/LanguageTagUtils.ts","../lib/authorization-response/PresentationExchange.ts","../lib/authorization-response/types.ts","../lib/authorization-request/index.ts","../lib/authorization-request/AuthorizationRequest.ts","../lib/authorization-response/index.ts","../lib/authorization-response/AuthorizationResponse.ts","../lib/authorization-request/Opts.ts","../lib/request-object/Opts.ts","../lib/id-token/index.ts","../lib/id-token/IDToken.ts","../lib/authorization-response/Opts.ts","../lib/id-token/Payload.ts","../lib/helpers/SIOPSpecVersion.ts","../lib/schemas/index.ts","../lib/schemas/AuthorizationRequestPayloadVID1.schema.ts","../lib/schemas/AuthorizationRequestPayloadVD11.schema.ts","../lib/schemas/AuthorizationResponseOpts.schema.ts","../lib/schemas/DiscoveryMetadataPayload.schema.ts","../lib/schemas/RPRegistrationMetadataPayload.schema.ts","../lib/schemas/validation/index.ts","../lib/authorization-response/Dcql.ts","../lib/authorization-response/OpenID4VP.ts","../lib/authorization-response/Payload.ts","../lib/request-object/index.ts","../lib/request-object/RequestObject.ts","../lib/request-object/Payload.ts","../lib/request-object/types.ts","../lib/authorization-response/ResponseRegistration.ts","../lib/authorization-request/Payload.ts","../lib/rp/Opts.ts","../lib/authorization-request/types.ts","../lib/authorization-request/URI.ts","../lib/rp/index.ts","../lib/rp/RP.ts","../lib/rp/RPBuilder.ts","../lib/rp/InMemoryRPSessionManager.ts","../lib/rp/types.ts","../lib/op/index.ts","../lib/op/OP.ts","../lib/op/OPBuilder.ts","../lib/op/Opts.ts"],"sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","\"use strict\";\nexports.AuthorizationRequestPayloadVID1Schema = validate10;\nconst schema11 = {\"$id\":\"AuthorizationRequestPayloadVID1Schema\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/AuthorizationRequestPayloadVID1\",\"definitions\":{\"AuthorizationRequestPayloadVID1\":{\"type\":\"object\",\"properties\":{\"registration\":{\"$ref\":\"#/definitions/RPRegistrationMetadataPayload\"},\"registration_uri\":{\"type\":\"string\"},\"iss\":{\"type\":\"string\"},\"sub\":{\"type\":\"string\"},\"aud\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"iat\":{\"type\":\"number\"},\"nbf\":{\"type\":\"number\"},\"type\":{\"type\":\"string\"},\"exp\":{\"type\":\"number\"},\"rexp\":{\"type\":\"number\"},\"jti\":{\"type\":\"string\"},\"scope\":{\"type\":\"string\"},\"response_type\":{\"anyOf\":[{\"$ref\":\"#/definitions/ResponseType\"},{\"type\":\"string\"}]},\"client_id\":{\"type\":\"string\"},\"redirect_uri\":{\"type\":\"string\"},\"id_token_hint\":{\"type\":\"string\"},\"nonce\":{\"type\":\"string\"},\"state\":{\"type\":\"string\"},\"response_mode\":{\"$ref\":\"#/definitions/ResponseMode\"},\"request\":{\"type\":\"string\"},\"request_uri\":{\"type\":\"string\"},\"claims\":{\"$ref\":\"#/definitions/ClaimPayloadVID1\"}}},\"RPRegistrationMetadataPayload\":{\"type\":\"object\",\"properties\":{\"client_id\":{\"anyOf\":[{\"type\":\"string\"},{}]},\"id_token_signing_alg_values_supported\":{\"anyOf\":[{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}},{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}]},\"request_object_signing_alg_values_supported\":{\"anyOf\":[{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}},{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}]},\"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\"}]}}},\"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},\"ResponseMode\":{\"type\":\"string\",\"enum\":[\"fragment\",\"form_post\",\"post\",\"direct_post\",\"query\",\"direct_post.jwt\",\"query.jwt\",\"fragment.jwt\"]},\"ClaimPayloadVID1\":{\"type\":\"object\",\"properties\":{\"id_token\":{\"$ref\":\"#/definitions/IdTokenClaimPayload\"},\"vp_token\":{\"$ref\":\"#/definitions/VpTokenClaimPayload\"}}},\"IdTokenClaimPayload\":{\"type\":\"object\"},\"VpTokenClaimPayload\":{\"type\":\"object\",\"properties\":{\"presentation_definition\":{\"anyOf\":[{\"$ref\":\"#/definitions/PresentationDefinitionV1\"},{\"$ref\":\"#/definitions/PresentationDefinitionV2\"}]},\"presentation_definition_uri\":{\"type\":\"string\"},\"dcql_query\":{\"type\":\"string\"}},\"additionalProperties\":false},\"PresentationDefinitionV1\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"purpose\":{\"type\":\"string\"},\"format\":{\"$ref\":\"#/definitions/Format\"},\"submission_requirements\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/SubmissionRequirement\"}},\"input_descriptors\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/InputDescriptorV1\"}}},\"required\":[\"id\",\"input_descriptors\"],\"additionalProperties\":false},\"SubmissionRequirement\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"purpose\":{\"type\":\"string\"},\"rule\":{\"$ref\":\"#/definitions/Rules\"},\"count\":{\"type\":\"number\"},\"min\":{\"type\":\"number\"},\"max\":{\"type\":\"number\"},\"from\":{\"type\":\"string\"},\"from_nested\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/SubmissionRequirement\"}}},\"required\":[\"rule\"],\"additionalProperties\":false},\"Rules\":{\"type\":\"string\",\"enum\":[\"all\",\"pick\"]},\"InputDescriptorV1\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"purpose\":{\"type\":\"string\"},\"group\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Schema\"}},\"issuance\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Issuance\"}},\"constraints\":{\"$ref\":\"#/definitions/ConstraintsV1\"}},\"required\":[\"id\",\"schema\"],\"additionalProperties\":false},\"Schema\":{\"type\":\"object\",\"properties\":{\"uri\":{\"type\":\"string\"},\"required\":{\"type\":\"boolean\"}},\"required\":[\"uri\"],\"additionalProperties\":false},\"Issuance\":{\"type\":\"object\",\"properties\":{\"manifest\":{\"type\":\"string\"}},\"additionalProperties\":{}},\"ConstraintsV1\":{\"type\":\"object\",\"properties\":{\"limit_disclosure\":{\"$ref\":\"#/definitions/Optionality\"},\"statuses\":{\"$ref\":\"#/definitions/Statuses\"},\"fields\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/FieldV1\"}},\"subject_is_issuer\":{\"$ref\":\"#/definitions/Optionality\"},\"is_holder\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/HolderSubject\"}},\"same_subject\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/HolderSubject\"}}},\"additionalProperties\":false},\"Optionality\":{\"type\":\"string\",\"enum\":[\"required\",\"preferred\"]},\"Statuses\":{\"type\":\"object\",\"properties\":{\"active\":{\"$ref\":\"#/definitions/PdStatus\"},\"suspended\":{\"$ref\":\"#/definitions/PdStatus\"},\"revoked\":{\"$ref\":\"#/definitions/PdStatus\"}},\"additionalProperties\":false},\"PdStatus\":{\"type\":\"object\",\"properties\":{\"directive\":{\"$ref\":\"#/definitions/Directives\"}},\"additionalProperties\":false},\"Directives\":{\"type\":\"string\",\"enum\":[\"required\",\"allowed\",\"disallowed\"]},\"FieldV1\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"path\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"purpose\":{\"type\":\"string\"},\"filter\":{\"$ref\":\"#/definitions/FilterV1\"},\"predicate\":{\"$ref\":\"#/definitions/Optionality\"}},\"required\":[\"path\"],\"additionalProperties\":false},\"FilterV1\":{\"type\":\"object\",\"properties\":{\"const\":{\"$ref\":\"#/definitions/OneOfNumberStringBoolean\"},\"enum\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/OneOfNumberStringBoolean\"}},\"exclusiveMinimum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"exclusiveMaximum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"format\":{\"type\":\"string\"},\"minLength\":{\"type\":\"number\"},\"maxLength\":{\"type\":\"number\"},\"minimum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"maximum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"not\":{\"type\":\"object\"},\"pattern\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"additionalProperties\":false},\"OneOfNumberStringBoolean\":{\"type\":[\"boolean\",\"number\",\"string\"]},\"OneOfNumberString\":{\"type\":[\"number\",\"string\"]},\"HolderSubject\":{\"type\":\"object\",\"properties\":{\"field_id\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"directive\":{\"$ref\":\"#/definitions/Optionality\"}},\"required\":[\"field_id\",\"directive\"],\"additionalProperties\":false},\"PresentationDefinitionV2\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"purpose\":{\"type\":\"string\"},\"format\":{\"$ref\":\"#/definitions/Format\"},\"submission_requirements\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/SubmissionRequirement\"}},\"input_descriptors\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/InputDescriptorV2\"}},\"frame\":{\"type\":\"object\"}},\"required\":[\"id\",\"input_descriptors\"],\"additionalProperties\":false},\"InputDescriptorV2\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"purpose\":{\"type\":\"string\"},\"format\":{\"$ref\":\"#/definitions/Format\"},\"group\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"issuance\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Issuance\"}},\"constraints\":{\"$ref\":\"#/definitions/ConstraintsV2\"}},\"required\":[\"id\",\"constraints\"],\"additionalProperties\":false},\"ConstraintsV2\":{\"type\":\"object\",\"properties\":{\"limit_disclosure\":{\"$ref\":\"#/definitions/Optionality\"},\"statuses\":{\"$ref\":\"#/definitions/Statuses\"},\"fields\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/FieldV2\"}},\"subject_is_issuer\":{\"$ref\":\"#/definitions/Optionality\"},\"is_holder\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/HolderSubject\"}},\"same_subject\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/HolderSubject\"}}},\"additionalProperties\":false},\"FieldV2\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"path\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"purpose\":{\"type\":\"string\"},\"filter\":{\"$ref\":\"#/definitions/FilterV2\"},\"predicate\":{\"$ref\":\"#/definitions/Optionality\"},\"intent_to_retain\":{\"type\":\"boolean\"},\"name\":{\"type\":\"string\"},\"optional\":{\"type\":\"boolean\"}},\"required\":[\"path\"],\"additionalProperties\":false},\"FilterV2\":{\"type\":\"object\",\"properties\":{\"const\":{\"$ref\":\"#/definitions/OneOfNumberStringBoolean\"},\"enum\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/OneOfNumberStringBoolean\"}},\"exclusiveMinimum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"exclusiveMaximum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"format\":{\"type\":\"string\"},\"formatMaximum\":{\"type\":\"string\"},\"formatMinimum\":{\"type\":\"string\"},\"formatExclusiveMaximum\":{\"type\":\"string\"},\"formatExclusiveMinimum\":{\"type\":\"string\"},\"minLength\":{\"type\":\"number\"},\"maxLength\":{\"type\":\"number\"},\"minimum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"maximum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"not\":{\"type\":\"object\"},\"pattern\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"},\"contains\":{\"$ref\":\"#/definitions/FilterV2\"},\"items\":{\"$ref\":\"#/definitions/FilterV2Items\"}},\"additionalProperties\":false},\"FilterV2Items\":{\"type\":\"object\",\"properties\":{\"const\":{\"$ref\":\"#/definitions/OneOfNumberStringBoolean\"},\"enum\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/OneOfNumberStringBoolean\"}},\"exclusiveMinimum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"exclusiveMaximum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"format\":{\"type\":\"string\"},\"formatMaximum\":{\"type\":\"string\"},\"formatMinimum\":{\"type\":\"string\"},\"formatExclusiveMaximum\":{\"type\":\"string\"},\"formatExclusiveMinimum\":{\"type\":\"string\"},\"minLength\":{\"type\":\"number\"},\"maxLength\":{\"type\":\"number\"},\"minimum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"maximum\":{\"$ref\":\"#/definitions/OneOfNumberString\"},\"not\":{\"type\":\"object\"},\"pattern\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"},\"contains\":{\"$ref\":\"#/definitions/FilterV2\"},\"items\":{\"$ref\":\"#/definitions/FilterV2Items\"}},\"additionalProperties\":false}}};\nconst schema12 = {\"type\":\"object\",\"properties\":{\"registration\":{\"$ref\":\"#/definitions/RPRegistrationMetadataPayload\"},\"registration_uri\":{\"type\":\"string\"},\"iss\":{\"type\":\"string\"},\"sub\":{\"type\":\"string\"},\"aud\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"iat\":{\"type\":\"number\"},\"nbf\":{\"type\":\"number\"},\"type\":{\"type\":\"string\"},\"exp\":{\"type\":\"number\"},\"rexp\":{\"type\":\"number\"},\"jti\":{\"type\":\"string\"},\"scope\":{\"type\":\"string\"},\"response_type\":{\"anyOf\":[{\"$ref\":\"#/definitions/ResponseType\"},{\"type\":\"string\"}]},\"client_id\":{\"type\":\"string\"},\"redirect_uri\":{\"type\":\"string\"},\"id_token_hint\":{\"type\":\"string\"},\"nonce\":{\"type\":\"string\"},\"state\":{\"type\":\"string\"},\"response_mode\":{\"$ref\":\"#/definitions/ResponseMode\"},\"request\":{\"type\":\"string\"},\"request_uri\":{\"type\":\"string\"},\"claims\":{\"$ref\":\"#/definitions/ClaimPayloadVID1\"}}};\nconst schema14 = {\"type\":\"string\",\"enum\":[\"id_token\",\"vp_token\"]};\nconst schema21 = {\"type\":\"string\",\"enum\":[\"fragment\",\"form_post\",\"post\",\"direct_post\",\"query\",\"direct_post.jwt\",\"query.jwt\",\"fragment.jwt\"]};\nconst schema13 = {\"type\":\"object\",\"properties\":{\"client_id\":{\"anyOf\":[{\"type\":\"string\"},{}]},\"id_token_signing_alg_values_supported\":{\"anyOf\":[{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}},{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}]},\"request_object_signing_alg_values_supported\":{\"anyOf\":[{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}},{\"type\":\"string\",\"enum\":[\"EdDSA\",\"RS256\",\"PS256\",\"ES256\",\"ES256K\"]}]},\"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\"}]}}};\nconst schema16 = {\"type\":\"string\",\"enum\":[\"openid\",\"openid did_authn\",\"profile\",\"email\",\"address\",\"phone\"]};\nconst schema18 = {\"type\":\"string\",\"enum\":[\"public\",\"pairwise\"]};\n\nfunction validate12(data, {instancePath=\"\", parentData, parentDataProperty, rootData=data}={}){\nlet vErrors = null;\nlet errors = 0;\nif(errors === 0){\nif(data && typeof data == \"object\" && !Array.isArray(data)){\nif(data.client_id !== undefined){\nconst _errs1 = errors;\nvar valid0 = _errs1 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.id_token_signing_alg_values_supported !== undefined){\nlet data1 = data.id_token_signing_alg_values_supported;\nconst _errs3 = errors;\nconst _errs4 = errors;\nlet valid1 = false;\nconst _errs5 = errors;\nif(errors === _errs5){\nif(Array.isArray(data1)){\nvar valid2 = true;\nconst len0 = data1.length;\nfor(let i0=0; i0<len0; i0++){\nlet data2 = data1[i0];\nconst _errs7 = errors;\nif(typeof data2 !== \"string\"){\nconst err0 = {instancePath:instancePath+\"/id_token_signing_alg_values_supported/\" + i0,schemaPath:\"#/properties/id_token_signing_alg_values_supported/anyOf/0/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err0];\n}\nelse {\nvErrors.push(err0);\n}\nerrors++;\n}\nif(!(((((data2 === \"EdDSA\") || (data2 === \"RS256\")) || (data2 === \"PS256\")) || (data2 === \"ES256\")) || (data2 === \"ES256K\"))){\nconst err1 = {instancePath:instancePath+\"/id_token_signing_alg_values_supported/\" + i0,schemaPath:\"#/properties/id_token_signing_alg_values_supported/anyOf/0/items/enum\",keyword:\"enum\",params:{allowedValues: schema13.properties.id_token_signing_alg_values_supported.anyOf[0].items.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err1];\n}\nelse {\nvErrors.push(err1);\n}\nerrors++;\n}\nvar valid2 = _errs7 === errors;\nif(!valid2){\nbreak;\n}\n}\n}\nelse {\nconst err2 = {instancePath:instancePath+\"/id_token_signing_alg_values_supported\",schemaPath:\"#/properties/id_token_signing_alg_values_supported/anyOf/0/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"};\nif(vErrors === null){\nvErrors = [err2];\n}\nelse {\nvErrors.push(err2);\n}\nerrors++;\n}\n}\nvar _valid0 = _errs5 === errors;\nvalid1 = valid1 || _valid0;\nif(!valid1){\nconst _errs9 = errors;\nif(typeof data1 !== \"string\"){\nconst err3 = {instancePath:instancePath+\"/id_token_signing_alg_values_supported\",schemaPath:\"#/properties/id_token_signing_alg_values_supported/anyOf/1/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err3];\n}\nelse {\nvErrors.push(err3);\n}\nerrors++;\n}\nif(!(((((data1 === \"EdDSA\") || (data1 === \"RS256\")) || (data1 === \"PS256\")) || (data1 === \"ES256\")) || (data1 === \"ES256K\"))){\nconst err4 = {instancePath:instancePath+\"/id_token_signing_alg_values_supported\",schemaPath:\"#/properties/id_token_signing_alg_values_supported/anyOf/1/enum\",keyword:\"enum\",params:{allowedValues: schema13.properties.id_token_signing_alg_values_supported.anyOf[1].enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err4];\n}\nelse {\nvErrors.push(err4);\n}\nerrors++;\n}\nvar _valid0 = _errs9 === errors;\nvalid1 = valid1 || _valid0;\n}\nif(!valid1){\nconst err5 = {instancePath:instancePath+\"/id_token_signing_alg_values_supported\",schemaPath:\"#/properties/id_token_signing_alg_values_supported/anyOf\",keyword:\"anyOf\",params:{},message:\"must match a schema in anyOf\"};\nif(vErrors === null){\nvErrors = [err5];\n}\nelse {\nvErrors.push(err5);\n}\nerrors++;\nvalidate12.errors = vErrors;\nreturn false;\n}\nelse {\nerrors = _errs4;\nif(vErrors !== null){\nif(_errs4){\nvErrors.length = _errs4;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs3 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.request_object_signing_alg_values_supported !== undefined){\nlet data3 = data.request_object_signing_alg_values_supported;\nconst _errs11 = errors;\nconst _errs12 = errors;\nlet valid3 = false;\nconst _errs13 = errors;\nif(errors === _errs13){\nif(Array.isArray(data3)){\nvar valid4 = true;\nconst len1 = data3.length;\nfor(let i1=0; i1<len1; i1++){\nlet data4 = data3[i1];\nconst _errs15 = errors;\nif(typeof data4 !== \"string\"){\nconst err6 = {instancePath:instancePath+\"/request_object_signing_alg_values_supported/\" + i1,schemaPath:\"#/properties/request_object_signing_alg_values_supported/anyOf/0/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err6];\n}\nelse {\nvErrors.push(err6);\n}\nerrors++;\n}\nif(!(((((data4 === \"EdDSA\") || (data4 === \"RS256\")) || (data4 === \"PS256\")) || (data4 === \"ES256\")) || (data4 === \"ES256K\"))){\nconst err7 = {instancePath:instancePath+\"/request_object_signing_alg_values_supported/\" + i1,schemaPath:\"#/properties/request_object_signing_alg_values_supported/anyOf/0/items/enum\",keyword:\"enum\",params:{allowedValues: schema13.properties.request_object_signing_alg_values_supported.anyOf[0].items.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err7];\n}\nelse {\nvErrors.push(err7);\n}\nerrors++;\n}\nvar valid4 = _errs15 === errors;\nif(!valid4){\nbreak;\n}\n}\n}\nelse {\nconst err8 = {instancePath:instancePath+\"/request_object_signing_alg_values_supported\",schemaPath:\"#/properties/request_object_signing_alg_values_supported/anyOf/0/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"};\nif(vErrors === null){\nvErrors = [err8];\n}\nelse {\nvErrors.push(err8);\n}\nerrors++;\n}\n}\nvar _valid1 = _errs13 === errors;\nvalid3 = valid3 || _valid1;\nif(!valid3){\nconst _errs17 = errors;\nif(typeof data3 !== \"string\"){\nconst err9 = {instancePath:instancePath+\"/request_object_signing_alg_values_supported\",schemaPath:\"#/properties/request_object_signing_alg_values_supported/anyOf/1/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err9];\n}\nelse {\nvErrors.push(err9);\n}\nerrors++;\n}\nif(!(((((data3 === \"EdDSA\") || (data3 === \"RS256\")) || (data3 === \"PS256\")) || (data3 === \"ES256\")) || (data3 === \"ES256K\"))){\nconst err10 = {instancePath:instancePath+\"/request_object_signing_alg_values_supported\",schemaPath:\"#/properties/request_object_signing_alg_values_supported/anyOf/1/enum\",keyword:\"enum\",params:{allowedValues: schema13.properties.request_object_signing_alg_values_supported.anyOf[1].enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err10];\n}\nelse {\nvErrors.push(err10);\n}\nerrors++;\n}\nvar _valid1 = _errs17 === errors;\nvalid3 = valid3 || _valid1;\n}\nif(!valid3){\nconst err11 = {instancePath:instancePath+\"/request_object_signing_alg_values_supported\",schemaPath:\"#/properties/request_object_signing_alg_values_supported/anyOf\",keyword:\"anyOf\",params:{},message:\"must match a schema in anyOf\"};\nif(vErrors === null){\nvErrors = [err11];\n}\nelse {\nvErrors.push(err11);\n}\nerrors++;\nvalidate12.errors = vErrors;\nreturn false;\n}\nelse {\nerrors = _errs12;\nif(vErrors !== null){\nif(_errs12){\nvErrors.length = _errs12;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs11 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.response_types_supported !== undefined){\nlet data5 = data.response_types_supported;\nconst _errs19 = errors;\nconst _errs20 = errors;\nlet valid5 = false;\nconst _errs21 = errors;\nif(errors === _errs21){\nif(Array.isArray(data5)){\nvar valid6 = true;\nconst len2 = data5.length;\nfor(let i2=0; i2<len2; i2++){\nlet data6 = data5[i2];\nconst _errs23 = errors;\nif(typeof data6 !== \"string\"){\nconst err12 = {instancePath:instancePath+\"/response_types_supported/\" + i2,schemaPath:\"#/definitions/ResponseType/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err12];\n}\nelse {\nvErrors.push(err12);\n}\nerrors++;\n}\nif(!((data6 === \"id_token\") || (data6 === \"vp_token\"))){\nconst err13 = {instancePath:instancePath+\"/response_types_supported/\" + i2,schemaPath:\"#/definitions/ResponseType/enum\",keyword:\"enum\",params:{allowedValues: schema14.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err13];\n}\nelse {\nvErrors.push(err13);\n}\nerrors++;\n}\nvar valid6 = _errs23 === errors;\nif(!valid6){\nbreak;\n}\n}\n}\nelse {\nconst err14 = {instancePath:instancePath+\"/response_types_supported\",schemaPath:\"#/properties/response_types_supported/anyOf/0/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"};\nif(vErrors === null){\nvErrors = [err14];\n}\nelse {\nvErrors.push(err14);\n}\nerrors++;\n}\n}\nvar _valid2 = _errs21 === errors;\nvalid5 = valid5 || _valid2;\nif(!valid5){\nconst _errs26 = errors;\nif(typeof data5 !== \"string\"){\nconst err15 = {instancePath:instancePath+\"/response_types_supported\",schemaPath:\"#/definitions/ResponseType/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err15];\n}\nelse {\nvErrors.push(err15);\n}\nerrors++;\n}\nif(!((data5 === \"id_token\") || (data5 === \"vp_token\"))){\nconst err16 = {instancePath:instancePath+\"/response_types_supported\",schemaPath:\"#/definitions/ResponseType/enum\",keyword:\"enum\",params:{allowedValues: schema14.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err16];\n}\nelse {\nvErrors.push(err16);\n}\nerrors++;\n}\nvar _valid2 = _errs26 === errors;\nvalid5 = valid5 || _valid2;\n}\nif(!valid5){\nconst err17 = {instancePath:instancePath+\"/response_types_supported\",schemaPath:\"#/properties/response_types_supported/anyOf\",keyword:\"anyOf\",params:{},message:\"must match a schema in anyOf\"};\nif(vErrors === null){\nvErrors = [err17];\n}\nelse {\nvErrors.push(err17);\n}\nerrors++;\nvalidate12.errors = vErrors;\nreturn false;\n}\nelse {\nerrors = _errs20;\nif(vErrors !== null){\nif(_errs20){\nvErrors.length = _errs20;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs19 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.scopes_supported !== undefined){\nlet data7 = data.scopes_supported;\nconst _errs29 = errors;\nconst _errs30 = errors;\nlet valid9 = false;\nconst _errs31 = errors;\nif(errors === _errs31){\nif(Array.isArray(data7)){\nvar valid10 = true;\nconst len3 = data7.length;\nfor(let i3=0; i3<len3; i3++){\nlet data8 = data7[i3];\nconst _errs33 = errors;\nif(typeof data8 !== \"string\"){\nconst err18 = {instancePath:instancePath+\"/scopes_supported/\" + i3,schemaPath:\"#/definitions/Scope/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err18];\n}\nelse {\nvErrors.push(err18);\n}\nerrors++;\n}\nif(!((((((data8 === \"openid\") || (data8 === \"openid did_authn\")) || (data8 === \"profile\")) || (data8 === \"email\")) || (data8 === \"address\")) || (data8 === \"phone\"))){\nconst err19 = {instancePath:instancePath+\"/scopes_supported/\" + i3,schemaPath:\"#/definitions/Scope/enum\",keyword:\"enum\",params:{allowedValues: schema16.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err19];\n}\nelse {\nvErrors.push(err19);\n}\nerrors++;\n}\nvar valid10 = _errs33 === errors;\nif(!valid10){\nbreak;\n}\n}\n}\nelse {\nconst err20 = {instancePath:instancePath+\"/scopes_supported\",schemaPath:\"#/properties/scopes_supported/anyOf/0/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"};\nif(vErrors === null){\nvErrors = [err20];\n}\nelse {\nvErrors.push(err20);\n}\nerrors++;\n}\n}\nvar _valid3 = _errs31 === errors;\nvalid9 = valid9 || _valid3;\nif(!valid9){\nconst _errs36 = errors;\nif(typeof data7 !== \"string\"){\nconst err21 = {instancePath:instancePath+\"/scopes_supported\",schemaPath:\"#/definitions/Scope/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err21];\n}\nelse {\nvErrors.push(err21);\n}\nerrors++;\n}\nif(!((((((data7 === \"openid\") || (data7 === \"openid did_authn\")) || (data7 === \"profile\")) || (data7 === \"email\")) || (data7 === \"address\")) || (data7 === \"phone\"))){\nconst err22 = {instancePath:instancePath+\"/scopes_supported\",schemaPath:\"#/definitions/Scope/enum\",keyword:\"enum\",params:{allowedValues: schema16.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err22];\n}\nelse {\nvErrors.push(err22);\n}\nerrors++;\n}\nvar _valid3 = _errs36 === errors;\nvalid9 = valid9 || _valid3;\n}\nif(!valid9){\nconst err23 = {instancePath:instancePath+\"/scopes_supported\",schemaPath:\"#/properties/scopes_supported/anyOf\",keyword:\"anyOf\",params:{},message:\"must match a schema in anyOf\"};\nif(vErrors === null){\nvErrors = [err23];\n}\nelse {\nvErrors.push(err23);\n}\nerrors++;\nvalidate12.errors = vErrors;\nreturn false;\n}\nelse {\nerrors = _errs30;\nif(vErrors !== null){\nif(_errs30){\nvErrors.length = _errs30;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs29 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.subject_types_supported !== undefined){\nlet data9 = data.subject_types_supported;\nconst _errs39 = errors;\nconst _errs40 = errors;\nlet valid13 = false;\nconst _errs41 = errors;\nif(errors === _errs41){\nif(Array.isArray(data9)){\nvar valid14 = true;\nconst len4 = data9.length;\nfor(let i4=0; i4<len4; i4++){\nlet data10 = data9[i4];\nconst _errs43 = errors;\nif(typeof data10 !== \"string\"){\nconst err24 = {instancePath:instancePath+\"/subject_types_supported/\" + i4,schemaPath:\"#/definitions/SubjectType/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err24];\n}\nelse {\nvErrors.push(err24);\n}\nerrors++;\n}\nif(!((data10 === \"public\") || (data10 === \"pairwise\"))){\nconst err25 = {instancePath:instancePath+\"/subject_types_supported/\" + i4,schemaPath:\"#/definitions/SubjectType/enum\",keyword:\"enum\",params:{allowedValues: schema18.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err25];\n}\nelse {\nvErrors.push(err25);\n}\nerrors++;\n}\nvar valid14 = _errs43 === errors;\nif(!valid14){\nbreak;\n}\n}\n}\nelse {\nconst err26 = {instancePath:instancePath+\"/subject_types_supported\",schemaPath:\"#/properties/subject_types_supported/anyOf/0/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"};\nif(vErrors === null){\nvErrors = [err26];\n}\nelse {\nvErrors.push(err26);\n}\nerrors++;\n}\n}\nvar _valid4 = _errs41 === errors;\nvalid13 = valid13 || _valid4;\nif(!valid13){\nconst _errs46 = errors;\nif(typeof data9 !== \"string\"){\nconst err27 = {instancePath:instancePath+\"/subject_types_supported\",schemaPath:\"#/definitions/SubjectType/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"};\nif(vErrors === null){\nvErrors = [err27];\n}\nelse {\nvErrors.push(err27);\n}\nerrors++;\n}\nif(!((data9 === \"public\") || (data9 === \"pairwise\"))){\nconst err28 = {instancePath:instancePath+\"/subject_types_supported\",schemaPath:\"#/definitions/SubjectType/enum\",keyword:\"enum\",params:{allowedValues: schema18.enum},message:\"must be equal to one of the allowed values\"};\nif(vErrors === null){\nvErrors = [err28];\n}\nelse {\nvErrors.push(err28);\n}\nerrors++;\n}\nvar _valid4 = _errs46 === errors;\nvalid13 = valid13 || _valid4;\n}\nif(!valid13){\nconst err29 = {instancePath:instancePath+\"/subject_types_supported\",schemaPath:\"#/properties/subject_types_supported/anyOf\",keyword:\"anyOf\",params:{},message:\"must match a schema in anyOf\"};\nif(vErrors === null){\nvErrors = [err29];\n}\nelse {\nvErrors.push(err29);\n}\nerrors++;\nvalidate12.errors = vErrors;\nreturn false;\n}\nelse {\nerrors = _errs40;\nif(vErrors !== null){\nif(_errs40){\nvErrors.length = _errs40;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs39 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.subject_syntax_types_supported !== undefined){\nlet data11 = data.subject_syntax_types_supported;\nconst _errs49 = errors;\nif(errors === _errs49){\nif(Array.isArray(data11)){\nvar valid17 = true;\nconst len5 = data11.length;\nfor(let i5=0; i5<len5; i5++){\nconst _errs51 = errors;\nif(typeof data11[i5] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/subject_syntax_types_supported/\" + i5,schemaPath:\"#/properties/subject_syntax_types_supported/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid17 = _errs51 === errors;\nif(!valid17){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/subject_syntax_types_supported\",schemaPath:\"#/properties/subject_syntax_types_supported/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\nvar valid0 = _errs49 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.vp_formats !== undefined){\nconst _errs53 = errors;\nvar valid0 = _errs53 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.client_name !== undefined){\nconst _errs55 = errors;\nvar valid0 = _errs55 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.logo_uri !== undefined){\nconst _errs57 = errors;\nvar valid0 = _errs57 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.client_purpose !== undefined){\nconst _errs59 = errors;\nvar valid0 = _errs59 === errors;\n}\nelse {\nvar valid0 = true;\n}\n}\n}\n}\n}\n}\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath,schemaPath:\"#/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvalidate12.errors = vErrors;\nreturn errors === 0;\n}\n\nconst schema22 = {\"type\":\"object\",\"properties\":{\"id_token\":{\"$ref\":\"#/definitions/IdTokenClaimPayload\"},\"vp_token\":{\"$ref\":\"#/definitions/VpTokenClaimPayload\"}}};\nconst schema23 = {\"type\":\"object\"};\nconst schema24 = {\"type\":\"object\",\"properties\":{\"presentation_definition\":{\"anyOf\":[{\"$ref\":\"#/definitions/PresentationDefinitionV1\"},{\"$ref\":\"#/definitions/PresentationDefinitionV2\"}]},\"presentation_definition_uri\":{\"type\":\"string\"},\"dcql_query\":{\"type\":\"string\"}},\"additionalProperties\":false};\nconst schema25 = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"purpose\":{\"type\":\"string\"},\"format\":{\"$ref\":\"#/definitions/Format\"},\"submission_requirements\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/SubmissionRequirement\"}},\"input_descriptors\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/InputDescriptorV1\"}}},\"required\":[\"id\",\"input_descriptors\"],\"additionalProperties\":false};\nconst schema26 = {\"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};\nconst schema27 = {\"type\":\"object\",\"properties\":{\"alg\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg\"],\"additionalProperties\":false};\nconst schema32 = {\"type\":\"object\",\"properties\":{\"proof_type\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type\"],\"additionalProperties\":false};\nconst schema35 = {\"type\":\"object\",\"properties\":{\"proof_type\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type\",\"cryptosuite\"],\"additionalProperties\":false};\nconst schema38 = {\"type\":\"object\",\"properties\":{\"sd-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"kb-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false};\nconst schema39 = {\"type\":\"object\",\"properties\":{\"alg\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg\"],\"additionalProperties\":false};\nconst func2 = Object.prototype.hasOwnProperty;\n\nfunction validate17(data, {instancePath=\"\", parentData, parentDataProperty, rootData=data}={}){\nlet vErrors = null;\nlet errors = 0;\nif(errors === 0){\nif(data && typeof data == \"object\" && !Array.isArray(data)){\nconst _errs1 = errors;\nfor(const key0 in data){\nif(!(func2.call(schema26.properties, key0))){\nvalidate17.errors = [{instancePath,schemaPath:\"#/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key0},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs1 === errors){\nif(data.jwt !== undefined){\nlet data0 = data.jwt;\nconst _errs2 = errors;\nconst _errs3 = errors;\nif(errors === _errs3){\nif(data0 && typeof data0 == \"object\" && !Array.isArray(data0)){\nlet missing0;\nif((data0.alg === undefined) && (missing0 = \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt\",schemaPath:\"#/definitions/JwtObject/required\",keyword:\"required\",params:{missingProperty: missing0},message:\"must have required property '\"+missing0+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs5 = errors;\nfor(const key1 in data0){\nif(!(key1 === \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt\",schemaPath:\"#/definitions/JwtObject/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key1},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs5 === errors){\nif(data0.alg !== undefined){\nlet data1 = data0.alg;\nconst _errs6 = errors;\nif(errors === _errs6){\nif(Array.isArray(data1)){\nvar valid3 = true;\nconst len0 = data1.length;\nfor(let i0=0; i0<len0; i0++){\nconst _errs8 = errors;\nif(typeof data1[i0] !== \"string\"){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt/alg/\" + i0,schemaPath:\"#/definitions/JwtObject/properties/alg/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid3 = _errs8 === errors;\nif(!valid3){\nbreak;\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt/alg\",schemaPath:\"#/definitions/JwtObject/properties/alg/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt\",schemaPath:\"#/definitions/JwtObject/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid0 = _errs2 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.jwt_vc !== undefined){\nlet data3 = data.jwt_vc;\nconst _errs10 = errors;\nconst _errs11 = errors;\nif(errors === _errs11){\nif(data3 && typeof data3 == \"object\" && !Array.isArray(data3)){\nlet missing1;\nif((data3.alg === undefined) && (missing1 = \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc\",schemaPath:\"#/definitions/JwtObject/required\",keyword:\"required\",params:{missingProperty: missing1},message:\"must have required property '\"+missing1+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs13 = errors;\nfor(const key2 in data3){\nif(!(key2 === \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc\",schemaPath:\"#/definitions/JwtObject/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key2},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs13 === errors){\nif(data3.alg !== undefined){\nlet data4 = data3.alg;\nconst _errs14 = errors;\nif(errors === _errs14){\nif(Array.isArray(data4)){\nvar valid6 = true;\nconst len1 = data4.length;\nfor(let i1=0; i1<len1; i1++){\nconst _errs16 = errors;\nif(typeof data4[i1] !== \"string\"){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc/alg/\" + i1,schemaPath:\"#/definitions/JwtObject/properties/alg/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid6 = _errs16 === errors;\nif(!valid6){\nbreak;\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc/alg\",schemaPath:\"#/definitions/JwtObject/properties/alg/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc\",schemaPath:\"#/definitions/JwtObject/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid0 = _errs10 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.jwt_vc_json !== undefined){\nlet data6 = data.jwt_vc_json;\nconst _errs18 = errors;\nconst _errs19 = errors;\nif(errors === _errs19){\nif(data6 && typeof data6 == \"object\" && !Array.isArray(data6)){\nlet missing2;\nif((data6.alg === undefined) && (missing2 = \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc_json\",schemaPath:\"#/definitions/JwtObject/required\",keyword:\"required\",params:{missingProperty: missing2},message:\"must have required property '\"+missing2+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs21 = errors;\nfor(const key3 in data6){\nif(!(key3 === \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc_json\",schemaPath:\"#/definitions/JwtObject/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key3},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs21 === errors){\nif(data6.alg !== undefined){\nlet data7 = data6.alg;\nconst _errs22 = errors;\nif(errors === _errs22){\nif(Array.isArray(data7)){\nvar valid9 = true;\nconst len2 = data7.length;\nfor(let i2=0; i2<len2; i2++){\nconst _errs24 = errors;\nif(typeof data7[i2] !== \"string\"){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc_json/alg/\" + i2,schemaPath:\"#/definitions/JwtObject/properties/alg/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid9 = _errs24 === errors;\nif(!valid9){\nbreak;\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc_json/alg\",schemaPath:\"#/definitions/JwtObject/properties/alg/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vc_json\",schemaPath:\"#/definitions/JwtObject/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid0 = _errs18 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.jwt_vp !== undefined){\nlet data9 = data.jwt_vp;\nconst _errs26 = errors;\nconst _errs27 = errors;\nif(errors === _errs27){\nif(data9 && typeof data9 == \"object\" && !Array.isArray(data9)){\nlet missing3;\nif((data9.alg === undefined) && (missing3 = \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp\",schemaPath:\"#/definitions/JwtObject/required\",keyword:\"required\",params:{missingProperty: missing3},message:\"must have required property '\"+missing3+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs29 = errors;\nfor(const key4 in data9){\nif(!(key4 === \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp\",schemaPath:\"#/definitions/JwtObject/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key4},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs29 === errors){\nif(data9.alg !== undefined){\nlet data10 = data9.alg;\nconst _errs30 = errors;\nif(errors === _errs30){\nif(Array.isArray(data10)){\nvar valid12 = true;\nconst len3 = data10.length;\nfor(let i3=0; i3<len3; i3++){\nconst _errs32 = errors;\nif(typeof data10[i3] !== \"string\"){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp/alg/\" + i3,schemaPath:\"#/definitions/JwtObject/properties/alg/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid12 = _errs32 === errors;\nif(!valid12){\nbreak;\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp/alg\",schemaPath:\"#/definitions/JwtObject/properties/alg/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp\",schemaPath:\"#/definitions/JwtObject/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid0 = _errs26 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.jwt_vp_json !== undefined){\nlet data12 = data.jwt_vp_json;\nconst _errs34 = errors;\nconst _errs35 = errors;\nif(errors === _errs35){\nif(data12 && typeof data12 == \"object\" && !Array.isArray(data12)){\nlet missing4;\nif((data12.alg === undefined) && (missing4 = \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp_json\",schemaPath:\"#/definitions/JwtObject/required\",keyword:\"required\",params:{missingProperty: missing4},message:\"must have required property '\"+missing4+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs37 = errors;\nfor(const key5 in data12){\nif(!(key5 === \"alg\")){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp_json\",schemaPath:\"#/definitions/JwtObject/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key5},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs37 === errors){\nif(data12.alg !== undefined){\nlet data13 = data12.alg;\nconst _errs38 = errors;\nif(errors === _errs38){\nif(Array.isArray(data13)){\nvar valid15 = true;\nconst len4 = data13.length;\nfor(let i4=0; i4<len4; i4++){\nconst _errs40 = errors;\nif(typeof data13[i4] !== \"string\"){\nvalidate17.errors = [{instancePath:instancePath+\"/jwt_vp_json/alg/\" + i4,schemaPath:\"#/definitions/JwtObject/prop