UNPKG

@sphereon/did-auth-siop

Version:

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

1 lines 1.41 MB
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.14.0_postcss@8.5.6_tsx@4.20.6_typescript@5.8.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js","../lib/schemas/validation/schemaValidation.cjs","../lib/index.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/types/Json.types.ts","../lib/types/Revocation.types.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/helpers/ClientIdentifierUtils.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/authorization-request/RequestRegistration.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/AuthorizationRequestPayloadD28.schema.ts","../lib/schemas/AuthorizationRequestPayloadV1.schema.ts","../lib/schemas/AuthorizationResponseOpts.schema.ts","../lib/schemas/DiscoveryMetadataPayload.schema.ts","../lib/schemas/RPRegistrationMetadataPayload.schema.ts","../lib/schemas/validation/index.ts","../lib/schemas/universal-oid4vp/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/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.AuthorizationRequestPayloadV1Schema = validate10;\nconst schema11 = {\"$id\":\"AuthorizationRequestPayloadV1Schema\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/AuthorizationRequestPayloadV1\",\"definitions\":{\"AuthorizationRequestPayloadV1\":{\"type\":\"object\",\"properties\":{\"id_token_type\":{\"type\":\"string\"},\"client_metadata\":{\"$ref\":\"#/definitions/RPRegistrationMetadataPayload\"},\"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/ClaimPayloadCommon\"},\"response_uri\":{\"type\":\"string\"},\"dcql_query\":{\"type\":\"object\"},\"request_uri_method\":{\"$ref\":\"#/definitions/RequestUriMethod\"},\"transaction_data\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"verifier_info\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RelyingPartyAttestation\"}}}},\"RPRegistrationMetadataPayload\":{\"type\":\"object\",\"properties\":{\"client_id\":{\"type\":\"string\"},\"client_purpose\":{\"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_supported\":{\"type\":\"object\",\"properties\":{\"jwt\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vc\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vc_json\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vp\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vp_json\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"ldp\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\"],\"additionalProperties\":false},\"ldp_vc\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\"],\"additionalProperties\":false},\"ldp_vp\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\"],\"additionalProperties\":false},\"di\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\",\"cryptosuite\"],\"additionalProperties\":false},\"di_vc\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\",\"cryptosuite\"],\"additionalProperties\":false},\"di_vp\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\",\"cryptosuite\"],\"additionalProperties\":false},\"vc+sd-jwt\":{\"type\":\"object\",\"properties\":{\"sd-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"kb-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"dc+sd-jwt\":{\"type\":\"object\",\"properties\":{\"sd-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"kb-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"mso_mdoc\":{\"type\":\"object\",\"properties\":{\"issuerauth_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"deviceauth_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}}},\"additionalProperties\":false}},\"additionalProperties\":false},\"client_name\":{\"type\":\"string\"},\"logo_uri\":{\"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\"]},\"ResponseMode\":{\"type\":\"string\",\"enum\":[\"fragment\",\"form_post\",\"post\",\"direct_post\",\"query\",\"direct_post.jwt\",\"query.jwt\",\"fragment.jwt\"]},\"ClaimPayloadCommon\":{\"type\":\"object\"},\"RequestUriMethod\":{\"type\":\"string\",\"enum\":[\"get\",\"post\"]},\"RelyingPartyAttestation\":{\"type\":\"object\",\"properties\":{\"format\":{\"type\":\"string\"},\"data\":{\"type\":\"string\"},\"credential_ids\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"format\",\"data\"],\"additionalProperties\":false}}};\nconst schema12 = {\"type\":\"object\",\"properties\":{\"id_token_type\":{\"type\":\"string\"},\"client_metadata\":{\"$ref\":\"#/definitions/RPRegistrationMetadataPayload\"},\"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/ClaimPayloadCommon\"},\"response_uri\":{\"type\":\"string\"},\"dcql_query\":{\"type\":\"object\"},\"request_uri_method\":{\"$ref\":\"#/definitions/RequestUriMethod\"},\"transaction_data\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"verifier_info\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/RelyingPartyAttestation\"}}}};\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 schema22 = {\"type\":\"object\"};\nconst schema23 = {\"type\":\"string\",\"enum\":[\"get\",\"post\"]};\nconst schema24 = {\"type\":\"object\",\"properties\":{\"format\":{\"type\":\"string\"},\"data\":{\"type\":\"string\"},\"credential_ids\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"format\",\"data\"],\"additionalProperties\":false};\nconst schema13 = {\"type\":\"object\",\"properties\":{\"client_id\":{\"type\":\"string\"},\"client_purpose\":{\"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_supported\":{\"type\":\"object\",\"properties\":{\"jwt\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vc\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vc_json\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vp\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"jwt_vp_json\":{\"type\":\"object\",\"properties\":{\"alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"alg_values\"],\"additionalProperties\":false},\"ldp\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\"],\"additionalProperties\":false},\"ldp_vc\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\"],\"additionalProperties\":false},\"ldp_vp\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\"],\"additionalProperties\":false},\"di\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\",\"cryptosuite\"],\"additionalProperties\":false},\"di_vc\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\",\"cryptosuite\"],\"additionalProperties\":false},\"di_vp\":{\"type\":\"object\",\"properties\":{\"proof_type_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"cryptosuite\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"proof_type_values\",\"cryptosuite\"],\"additionalProperties\":false},\"vc+sd-jwt\":{\"type\":\"object\",\"properties\":{\"sd-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"kb-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"dc+sd-jwt\":{\"type\":\"object\",\"properties\":{\"sd-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"kb-jwt_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"additionalProperties\":false},\"mso_mdoc\":{\"type\":\"object\",\"properties\":{\"issuerauth_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"deviceauth_alg_values\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}}},\"additionalProperties\":false}},\"additionalProperties\":false},\"client_name\":{\"type\":\"string\"},\"logo_uri\":{\"type\":\"string\"}}};\nconst schema16 = {\"type\":\"string\",\"enum\":[\"openid\",\"openid did_authn\",\"profile\",\"email\",\"address\",\"phone\"]};\nconst schema18 = {\"type\":\"string\",\"enum\":[\"public\",\"pairwise\"]};\nconst func2 = Object.prototype.hasOwnProperty;\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;\nif(typeof data.client_id !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/client_id\",schemaPath:\"#/properties/client_id/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid0 = _errs1 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.client_purpose !== undefined){\nconst _errs3 = errors;\nif(typeof data.client_purpose !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/client_purpose\",schemaPath:\"#/properties/client_purpose/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid0 = _errs3 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.id_token_signing_alg_values_supported !== undefined){\nlet data2 = data.id_token_signing_alg_values_supported;\nconst _errs5 = errors;\nconst _errs6 = errors;\nlet valid1 = false;\nconst _errs7 = errors;\nif(errors === _errs7){\nif(Array.isArray(data2)){\nvar valid2 = true;\nconst len0 = data2.length;\nfor(let i0=0; i0<len0; i0++){\nlet data3 = data2[i0];\nconst _errs9 = errors;\nif(typeof data3 !== \"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(!(((((data3 === \"EdDSA\") || (data3 === \"RS256\")) || (data3 === \"PS256\")) || (data3 === \"ES256\")) || (data3 === \"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 = _errs9 === 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 = _errs7 === errors;\nvalid1 = valid1 || _valid0;\nif(!valid1){\nconst _errs11 = errors;\nif(typeof data2 !== \"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(!(((((data2 === \"EdDSA\") || (data2 === \"RS256\")) || (data2 === \"PS256\")) || (data2 === \"ES256\")) || (data2 === \"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 = _errs11 === 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 = _errs6;\nif(vErrors !== null){\nif(_errs6){\nvErrors.length = _errs6;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs5 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.request_object_signing_alg_values_supported !== undefined){\nlet data4 = data.request_object_signing_alg_values_supported;\nconst _errs13 = errors;\nconst _errs14 = errors;\nlet valid3 = false;\nconst _errs15 = errors;\nif(errors === _errs15){\nif(Array.isArray(data4)){\nvar valid4 = true;\nconst len1 = data4.length;\nfor(let i1=0; i1<len1; i1++){\nlet data5 = data4[i1];\nconst _errs17 = errors;\nif(typeof data5 !== \"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(!(((((data5 === \"EdDSA\") || (data5 === \"RS256\")) || (data5 === \"PS256\")) || (data5 === \"ES256\")) || (data5 === \"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 = _errs17 === 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 = _errs15 === errors;\nvalid3 = valid3 || _valid1;\nif(!valid3){\nconst _errs19 = errors;\nif(typeof data4 !== \"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(!(((((data4 === \"EdDSA\") || (data4 === \"RS256\")) || (data4 === \"PS256\")) || (data4 === \"ES256\")) || (data4 === \"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 = _errs19 === 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 = _errs14;\nif(vErrors !== null){\nif(_errs14){\nvErrors.length = _errs14;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs13 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.response_types_supported !== undefined){\nlet data6 = data.response_types_supported;\nconst _errs21 = errors;\nconst _errs22 = errors;\nlet valid5 = false;\nconst _errs23 = errors;\nif(errors === _errs23){\nif(Array.isArray(data6)){\nvar valid6 = true;\nconst len2 = data6.length;\nfor(let i2=0; i2<len2; i2++){\nlet data7 = data6[i2];\nconst _errs25 = errors;\nif(typeof data7 !== \"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(!((data7 === \"id_token\") || (data7 === \"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 = _errs25 === 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 = _errs23 === errors;\nvalid5 = valid5 || _valid2;\nif(!valid5){\nconst _errs28 = errors;\nif(typeof data6 !== \"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(!((data6 === \"id_token\") || (data6 === \"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 = _errs28 === 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 = _errs22;\nif(vErrors !== null){\nif(_errs22){\nvErrors.length = _errs22;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs21 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.scopes_supported !== undefined){\nlet data8 = data.scopes_supported;\nconst _errs31 = errors;\nconst _errs32 = errors;\nlet valid9 = false;\nconst _errs33 = errors;\nif(errors === _errs33){\nif(Array.isArray(data8)){\nvar valid10 = true;\nconst len3 = data8.length;\nfor(let i3=0; i3<len3; i3++){\nlet data9 = data8[i3];\nconst _errs35 = errors;\nif(typeof data9 !== \"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(!((((((data9 === \"openid\") || (data9 === \"openid did_authn\")) || (data9 === \"profile\")) || (data9 === \"email\")) || (data9 === \"address\")) || (data9 === \"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 = _errs35 === 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 = _errs33 === errors;\nvalid9 = valid9 || _valid3;\nif(!valid9){\nconst _errs38 = errors;\nif(typeof data8 !== \"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(!((((((data8 === \"openid\") || (data8 === \"openid did_authn\")) || (data8 === \"profile\")) || (data8 === \"email\")) || (data8 === \"address\")) || (data8 === \"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 = _errs38 === 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 = _errs32;\nif(vErrors !== null){\nif(_errs32){\nvErrors.length = _errs32;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs31 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.subject_types_supported !== undefined){\nlet data10 = data.subject_types_supported;\nconst _errs41 = errors;\nconst _errs42 = errors;\nlet valid13 = false;\nconst _errs43 = errors;\nif(errors === _errs43){\nif(Array.isArray(data10)){\nvar valid14 = true;\nconst len4 = data10.length;\nfor(let i4=0; i4<len4; i4++){\nlet data11 = data10[i4];\nconst _errs45 = errors;\nif(typeof data11 !== \"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(!((data11 === \"public\") || (data11 === \"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 = _errs45 === 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 = _errs43 === errors;\nvalid13 = valid13 || _valid4;\nif(!valid13){\nconst _errs48 = errors;\nif(typeof data10 !== \"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(!((data10 === \"public\") || (data10 === \"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 = _errs48 === 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 = _errs42;\nif(vErrors !== null){\nif(_errs42){\nvErrors.length = _errs42;\n}\nelse {\nvErrors = null;\n}\n}\n}\nvar valid0 = _errs41 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.subject_syntax_types_supported !== undefined){\nlet data12 = data.subject_syntax_types_supported;\nconst _errs51 = errors;\nif(errors === _errs51){\nif(Array.isArray(data12)){\nvar valid17 = true;\nconst len5 = data12.length;\nfor(let i5=0; i5<len5; i5++){\nconst _errs53 = errors;\nif(typeof data12[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 = _errs53 === 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 = _errs51 === errors;\n}\nelse {\nvar valid0 = true;\n}\nif(valid0){\nif(data.vp_formats_supported !== undefined){\nlet data14 = data.vp_formats_supported;\nconst _errs55 = errors;\nif(errors === _errs55){\nif(data14 && typeof data14 == \"object\" && !Array.isArray(data14)){\nconst _errs57 = errors;\nfor(const key0 in data14){\nif(!(func2.call(schema13.properties.vp_formats_supported.properties, key0))){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported\",schemaPath:\"#/properties/vp_formats_supported/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key0},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs57 === errors){\nif(data14.jwt !== undefined){\nlet data15 = data14.jwt;\nconst _errs58 = errors;\nif(errors === _errs58){\nif(data15 && typeof data15 == \"object\" && !Array.isArray(data15)){\nlet missing0;\nif((data15.alg_values === undefined) && (missing0 = \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt/required\",keyword:\"required\",params:{missingProperty: missing0},message:\"must have required property '\"+missing0+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs60 = errors;\nfor(const key1 in data15){\nif(!(key1 === \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key1},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs60 === errors){\nif(data15.alg_values !== undefined){\nlet data16 = data15.alg_values;\nconst _errs61 = errors;\nif(errors === _errs61){\nif(Array.isArray(data16)){\nvar valid20 = true;\nconst len6 = data16.length;\nfor(let i6=0; i6<len6; i6++){\nconst _errs63 = errors;\nif(typeof data16[i6] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt/alg_values/\" + i6,schemaPath:\"#/properties/vp_formats_supported/properties/jwt/properties/alg_values/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid20 = _errs63 === errors;\nif(!valid20){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt/alg_values\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt/properties/alg_values/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid18 = _errs58 === errors;\n}\nelse {\nvar valid18 = true;\n}\nif(valid18){\nif(data14.jwt_vc !== undefined){\nlet data18 = data14.jwt_vc;\nconst _errs65 = errors;\nif(errors === _errs65){\nif(data18 && typeof data18 == \"object\" && !Array.isArray(data18)){\nlet missing1;\nif((data18.alg_values === undefined) && (missing1 = \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc/required\",keyword:\"required\",params:{missingProperty: missing1},message:\"must have required property '\"+missing1+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs67 = errors;\nfor(const key2 in data18){\nif(!(key2 === \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key2},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs67 === errors){\nif(data18.alg_values !== undefined){\nlet data19 = data18.alg_values;\nconst _errs68 = errors;\nif(errors === _errs68){\nif(Array.isArray(data19)){\nvar valid22 = true;\nconst len7 = data19.length;\nfor(let i7=0; i7<len7; i7++){\nconst _errs70 = errors;\nif(typeof data19[i7] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc/alg_values/\" + i7,schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc/properties/alg_values/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid22 = _errs70 === errors;\nif(!valid22){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc/alg_values\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc/properties/alg_values/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid18 = _errs65 === errors;\n}\nelse {\nvar valid18 = true;\n}\nif(valid18){\nif(data14.jwt_vc_json !== undefined){\nlet data21 = data14.jwt_vc_json;\nconst _errs72 = errors;\nif(errors === _errs72){\nif(data21 && typeof data21 == \"object\" && !Array.isArray(data21)){\nlet missing2;\nif((data21.alg_values === undefined) && (missing2 = \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc_json\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc_json/required\",keyword:\"required\",params:{missingProperty: missing2},message:\"must have required property '\"+missing2+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs74 = errors;\nfor(const key3 in data21){\nif(!(key3 === \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc_json\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc_json/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key3},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs74 === errors){\nif(data21.alg_values !== undefined){\nlet data22 = data21.alg_values;\nconst _errs75 = errors;\nif(errors === _errs75){\nif(Array.isArray(data22)){\nvar valid24 = true;\nconst len8 = data22.length;\nfor(let i8=0; i8<len8; i8++){\nconst _errs77 = errors;\nif(typeof data22[i8] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc_json/alg_values/\" + i8,schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc_json/properties/alg_values/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid24 = _errs77 === errors;\nif(!valid24){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc_json/alg_values\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc_json/properties/alg_values/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vc_json\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vc_json/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid18 = _errs72 === errors;\n}\nelse {\nvar valid18 = true;\n}\nif(valid18){\nif(data14.jwt_vp !== undefined){\nlet data24 = data14.jwt_vp;\nconst _errs79 = errors;\nif(errors === _errs79){\nif(data24 && typeof data24 == \"object\" && !Array.isArray(data24)){\nlet missing3;\nif((data24.alg_values === undefined) && (missing3 = \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp/required\",keyword:\"required\",params:{missingProperty: missing3},message:\"must have required property '\"+missing3+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs81 = errors;\nfor(const key4 in data24){\nif(!(key4 === \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key4},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs81 === errors){\nif(data24.alg_values !== undefined){\nlet data25 = data24.alg_values;\nconst _errs82 = errors;\nif(errors === _errs82){\nif(Array.isArray(data25)){\nvar valid26 = true;\nconst len9 = data25.length;\nfor(let i9=0; i9<len9; i9++){\nconst _errs84 = errors;\nif(typeof data25[i9] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp/alg_values/\" + i9,schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp/properties/alg_values/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid26 = _errs84 === errors;\nif(!valid26){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp/alg_values\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp/properties/alg_values/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid18 = _errs79 === errors;\n}\nelse {\nvar valid18 = true;\n}\nif(valid18){\nif(data14.jwt_vp_json !== undefined){\nlet data27 = data14.jwt_vp_json;\nconst _errs86 = errors;\nif(errors === _errs86){\nif(data27 && typeof data27 == \"object\" && !Array.isArray(data27)){\nlet missing4;\nif((data27.alg_values === undefined) && (missing4 = \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp_json\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp_json/required\",keyword:\"required\",params:{missingProperty: missing4},message:\"must have required property '\"+missing4+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs88 = errors;\nfor(const key5 in data27){\nif(!(key5 === \"alg_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp_json\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp_json/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key5},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs88 === errors){\nif(data27.alg_values !== undefined){\nlet data28 = data27.alg_values;\nconst _errs89 = errors;\nif(errors === _errs89){\nif(Array.isArray(data28)){\nvar valid28 = true;\nconst len10 = data28.length;\nfor(let i10=0; i10<len10; i10++){\nconst _errs91 = errors;\nif(typeof data28[i10] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp_json/alg_values/\" + i10,schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp_json/properties/alg_values/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid28 = _errs91 === errors;\nif(!valid28){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp_json/alg_values\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp_json/properties/alg_values/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/jwt_vp_json\",schemaPath:\"#/properties/vp_formats_supported/properties/jwt_vp_json/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid18 = _errs86 === errors;\n}\nelse {\nvar valid18 = true;\n}\nif(valid18){\nif(data14.ldp !== undefined){\nlet data30 = data14.ldp;\nconst _errs93 = errors;\nif(errors === _errs93){\nif(data30 && typeof data30 == \"object\" && !Array.isArray(data30)){\nlet missing5;\nif((data30.proof_type_values === undefined) && (missing5 = \"proof_type_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp\",schemaPath:\"#/properties/vp_formats_supported/properties/ldp/required\",keyword:\"required\",params:{missingProperty: missing5},message:\"must have required property '\"+missing5+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs95 = errors;\nfor(const key6 in data30){\nif(!(key6 === \"proof_type_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp\",schemaPath:\"#/properties/vp_formats_supported/properties/ldp/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key6},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs95 === errors){\nif(data30.proof_type_values !== undefined){\nlet data31 = data30.proof_type_values;\nconst _errs96 = errors;\nif(errors === _errs96){\nif(Array.isArray(data31)){\nvar valid30 = true;\nconst len11 = data31.length;\nfor(let i11=0; i11<len11; i11++){\nconst _errs98 = errors;\nif(typeof data31[i11] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp/proof_type_values/\" + i11,schemaPath:\"#/properties/vp_formats_supported/properties/ldp/properties/proof_type_values/items/type\",keyword:\"type\",params:{type: \"string\"},message:\"must be string\"}];\nreturn false;\n}\nvar valid30 = _errs98 === errors;\nif(!valid30){\nbreak;\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp/proof_type_values\",schemaPath:\"#/properties/vp_formats_supported/properties/ldp/properties/proof_type_values/type\",keyword:\"type\",params:{type: \"array\"},message:\"must be array\"}];\nreturn false;\n}\n}\n}\n}\n}\n}\nelse {\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp\",schemaPath:\"#/properties/vp_formats_supported/properties/ldp/type\",keyword:\"type\",params:{type: \"object\"},message:\"must be object\"}];\nreturn false;\n}\n}\nvar valid18 = _errs93 === errors;\n}\nelse {\nvar valid18 = true;\n}\nif(valid18){\nif(data14.ldp_vc !== undefined){\nlet data33 = data14.ldp_vc;\nconst _errs100 = errors;\nif(errors === _errs100){\nif(data33 && typeof data33 == \"object\" && !Array.isArray(data33)){\nlet missing6;\nif((data33.proof_type_values === undefined) && (missing6 = \"proof_type_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp_vc\",schemaPath:\"#/properties/vp_formats_supported/properties/ldp_vc/required\",keyword:\"required\",params:{missingProperty: missing6},message:\"must have required property '\"+missing6+\"'\"}];\nreturn false;\n}\nelse {\nconst _errs102 = errors;\nfor(const key7 in data33){\nif(!(key7 === \"proof_type_values\")){\nvalidate12.errors = [{instancePath:instancePath+\"/vp_formats_supported/ldp_vc\",schemaPath:\"#/properties/vp_formats_supported/properties/ldp_vc/additionalProperties\",keyword:\"additionalProperties\",params:{additionalProperty: key7},message:\"must NOT have additional properties\"}];\nreturn false;\nbreak;\n}\n}\nif(_errs102 === errors){\nif(data33.proof_type_values !== undefined){\nlet data34 = data33.proof_type_values;\nconst _errs103 = errors;\nif(errors === _errs103){\nif(Array.isArray(data34)){\nvar valid32 = true;\nconst len12 = data34.length;\nfor(let i12=0; i12<len12; i12++){\nconst _errs105 = errors;\nif(typeof data34[i12] !== \"string\"){\nvalidate12.errors = [{instancePath:instancePa