@pagopa/io-react-native-wallet 3.6.3 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/commonjs/IoWallet.js +5 -3
- package/lib/commonjs/IoWallet.js.map +1 -1
- package/lib/commonjs/api/index.js +23 -24
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/client/index.js +9 -11
- package/lib/commonjs/client/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/README.md +9 -9
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js +23 -23
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/types.js +3 -3
- package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +3 -0
- package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +13 -13
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/errors.js +0 -3
- package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
- package/lib/commonjs/credential/issuance/index.js +2 -2
- package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
- package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
- package/lib/commonjs/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
- package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/index.js +6 -6
- package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
- package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +18 -18
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +10 -10
- package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +24 -15
- package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/index.js +8 -8
- package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +7 -7
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +3 -3
- package/lib/commonjs/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +30 -30
- package/lib/commonjs/credential/issuance/v1.4.6/02-start-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +37 -39
- package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js +16 -16
- package/lib/commonjs/credential/issuance/v1.4.6/04-authorize-access.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +36 -32
- package/lib/commonjs/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/index.js +8 -8
- package/lib/commonjs/credential/issuance/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +18 -17
- package/lib/commonjs/credential/issuance/v1.4.6/mappers.js.map +1 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/commonjs/credential/offer/README.md +10 -6
- package/lib/commonjs/credential/offer/common/errors.js +0 -6
- package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
- package/lib/commonjs/credential/offer/index.js +2 -2
- package/lib/commonjs/credential/offer/v1.0.0/index.js +3 -3
- package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +5 -5
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js.map +1 -1
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +6 -6
- package/lib/commonjs/credential/offer/v1.4.6/02-extract-grant-details.js.map +1 -0
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +7 -7
- package/lib/commonjs/credential/offer/v1.4.6/03-validate-credential-offer.js.map +1 -0
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/index.js +1 -1
- package/lib/commonjs/credential/offer/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +8 -8
- package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/types.js +13 -13
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/errors.js +24 -23
- package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/dcql.js +38 -35
- package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/mdoc.js +20 -22
- package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +10 -10
- package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
- package/lib/commonjs/credential/presentation/index.js +2 -2
- package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
- package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
- package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +17 -12
- package/lib/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +20 -20
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/index.js +4 -4
- package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +6 -6
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/types.js +12 -12
- package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +11 -5
- package/lib/commonjs/credential/presentation/v1.4.6/01-start-flow.js.map +1 -0
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +3 -3
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.js +14 -12
- package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +24 -16
- package/lib/commonjs/credential/presentation/v1.4.6/06-evaluate-dcql-query.js.map +1 -0
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +31 -26
- package/lib/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -0
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/index.js +5 -5
- package/lib/commonjs/credential/presentation/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +11 -11
- package/lib/commonjs/credential/presentation/v1.4.6/mappers.js.map +1 -0
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +2 -2
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js +3 -3
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/commonjs/credential/status/README.md +2 -2
- package/lib/commonjs/credential/status/api/types.js +6 -6
- package/lib/commonjs/credential/status/api/types.js.map +1 -1
- package/lib/commonjs/credential/status/index.js +3 -3
- package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +15 -12
- package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
- package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/index.js +1 -1
- package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/types.js +18 -18
- package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js +4 -4
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js.map +1 -1
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map +1 -1
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js +4 -4
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js.map +1 -1
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/index.js +3 -3
- package/lib/commonjs/credential/status/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/credential/trustmark/index.js +2 -2
- package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +7 -7
- package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
- package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js +1 -1
- package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js.map +1 -1
- package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +55 -55
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
- package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/index.js +2 -2
- package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
- package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +0 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +36 -36
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js +12 -12
- package/lib/commonjs/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +21 -20
- package/lib/commonjs/credentials-catalogue/v1.4.6/mappers.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +98 -98
- package/lib/commonjs/credentials-catalogue/v1.4.6/types.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +10 -10
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
- package/lib/commonjs/index.js +23 -17
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/{wallet-unit-attestation → key-attestation}/README.md +9 -9
- package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js.map +1 -1
- package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/types.js +9 -9
- package/lib/commonjs/key-attestation/api/types.js.map +1 -0
- package/lib/commonjs/{wallet-unit-attestation → key-attestation}/index.js +4 -4
- package/lib/commonjs/key-attestation/index.js.map +1 -0
- package/lib/commonjs/key-attestation/v1.0.0/index.js +11 -0
- package/lib/commonjs/key-attestation/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/index.js +7 -7
- package/lib/commonjs/key-attestation/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.js +34 -31
- package/lib/commonjs/key-attestation/v1.4.6/issuing.js.map +1 -0
- package/lib/commonjs/key-attestation/v1.4.6/mappers.js +13 -0
- package/lib/commonjs/key-attestation/v1.4.6/mappers.js.map +1 -0
- package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/types.js +6 -6
- package/lib/commonjs/key-attestation/v1.4.6/types.js.map +1 -0
- package/lib/commonjs/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.js +2 -2
- package/lib/commonjs/key-attestation/v1.4.6/utils.js.map +1 -0
- package/lib/commonjs/mdoc/index.js +13 -5
- package/lib/commonjs/mdoc/index.js.map +1 -1
- package/lib/commonjs/mdoc/utils.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/types.test.js +9 -9
- package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -3
- package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/index.js +9 -9
- package/lib/commonjs/sd-jwt/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/types.js +19 -19
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/sd-jwt/utils.js +10 -11
- package/lib/commonjs/sd-jwt/utils.js.map +1 -1
- package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -4
- package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
- package/lib/commonjs/trust/common/build-chain.js +5 -2
- package/lib/commonjs/trust/common/build-chain.js.map +1 -1
- package/lib/commonjs/trust/common/errors.js +51 -44
- package/lib/commonjs/trust/common/errors.js.map +1 -1
- package/lib/commonjs/trust/common/types.js +22 -22
- package/lib/commonjs/trust/common/types.js.map +1 -1
- package/lib/commonjs/trust/common/utils.js +45 -45
- package/lib/commonjs/trust/common/utils.js.map +1 -1
- package/lib/commonjs/trust/common/verify-chain.js +96 -96
- package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/build-chain.js +2 -2
- package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/entities.js +1 -1
- package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/index.js +3 -3
- package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/mappers.js +2 -2
- package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/types.js +46 -46
- package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/verify-chain.js +3 -3
- package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
- package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js +2 -2
- package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js.map +1 -1
- package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js +2 -2
- package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/commonjs/utils/auth.js +2 -2
- package/lib/commonjs/utils/auth.js.map +1 -1
- package/lib/commonjs/utils/callbacks.js +47 -51
- package/lib/commonjs/utils/callbacks.js.map +1 -1
- package/lib/commonjs/utils/config.js +2 -10
- package/lib/commonjs/utils/config.js.map +1 -1
- package/lib/commonjs/utils/credentials.js +3 -3
- package/lib/commonjs/utils/credentials.js.map +1 -1
- package/lib/commonjs/utils/crypto.js +23 -25
- package/lib/commonjs/utils/crypto.js.map +1 -1
- package/lib/commonjs/utils/decoder.js +2 -2
- package/lib/commonjs/utils/decoder.js.map +1 -1
- package/lib/commonjs/utils/dpop.js +5 -5
- package/lib/commonjs/utils/dpop.js.map +1 -1
- package/lib/commonjs/utils/error-codes.js +19 -19
- package/lib/commonjs/utils/error-codes.js.map +1 -1
- package/lib/commonjs/utils/errors.js +51 -50
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/commonjs/utils/jwk.js +5 -6
- package/lib/commonjs/utils/jwk.js.map +1 -1
- package/lib/commonjs/utils/logging.js +15 -14
- package/lib/commonjs/utils/logging.js.map +1 -1
- package/lib/commonjs/utils/mappers.js +6 -8
- package/lib/commonjs/utils/mappers.js.map +1 -1
- package/lib/commonjs/utils/misc.js +6 -5
- package/lib/commonjs/utils/misc.js.map +1 -1
- package/lib/commonjs/utils/par.js +28 -28
- package/lib/commonjs/utils/par.js.map +1 -1
- package/lib/commonjs/utils/pop.js +5 -5
- package/lib/commonjs/utils/pop.js.map +1 -1
- package/lib/commonjs/utils/string.js.map +1 -1
- package/lib/commonjs/utils/x509.js +2 -2
- package/lib/commonjs/utils/x509.js.map +1 -1
- package/lib/commonjs/utils/zod.js +1 -1
- package/lib/commonjs/utils/zod.js.map +1 -1
- package/lib/commonjs/wallet-instance/common/wallet-instance.js +5 -5
- package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
- package/lib/commonjs/wallet-instance/index.js +2 -2
- package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -2
- package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/wallet-instance/{v1.3.3 → v1.4.6}/index.js +2 -2
- package/lib/commonjs/wallet-instance/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/api/types.js +7 -7
- package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/common/types.js +7 -7
- package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/index.js +2 -2
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +2 -2
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +5 -5
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +2 -2
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js +20 -20
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/issuing.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +1 -1
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
- package/lib/module/IoWallet.js +6 -4
- package/lib/module/IoWallet.js.map +1 -1
- package/lib/module/api/index.js +23 -24
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/client/index.js +10 -12
- package/lib/module/client/index.js.map +1 -1
- package/lib/module/credential/issuance/README.md +9 -9
- package/lib/module/credential/issuance/api/IssuerConfig.js +23 -23
- package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
- package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
- package/lib/module/credential/issuance/api/types.js +3 -3
- package/lib/module/credential/issuance/api/types.js.map +1 -1
- package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -1
- package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +11 -8
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -1
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +6 -6
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
- package/lib/module/credential/issuance/common/errors.js +0 -3
- package/lib/module/credential/issuance/common/errors.js.map +1 -1
- package/lib/module/credential/issuance/index.js +1 -1
- package/lib/module/credential/issuance/index.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +4 -4
- package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js +14 -14
- package/lib/module/credential/issuance/mrtd-pop/02-init-challenge.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js +20 -20
- package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/index.js +8 -8
- package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +13 -13
- package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +17 -17
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +11 -11
- package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +25 -16
- package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/index.js +9 -9
- package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/mappers.js +7 -7
- package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +3 -3
- package/lib/module/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +31 -31
- package/lib/module/credential/issuance/v1.4.6/02-start-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +29 -31
- package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js +16 -16
- package/lib/module/credential/issuance/v1.4.6/04-authorize-access.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +38 -34
- package/lib/module/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/index.js +9 -9
- package/lib/module/credential/issuance/v1.4.6/index.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +18 -17
- package/lib/module/credential/issuance/v1.4.6/mappers.js.map +1 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/module/credential/offer/README.md +10 -6
- package/lib/module/credential/offer/common/errors.js +0 -6
- package/lib/module/credential/offer/common/errors.js.map +1 -1
- package/lib/module/credential/offer/index.js +1 -1
- package/lib/module/credential/offer/index.js.map +1 -1
- package/lib/module/credential/offer/v1.0.0/index.js +3 -3
- package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +6 -6
- package/lib/module/credential/offer/v1.4.6/01-resolve-credential-offer.js.map +1 -0
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +5 -5
- package/lib/module/credential/offer/v1.4.6/02-extract-grant-details.js.map +1 -0
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +8 -8
- package/lib/module/credential/offer/v1.4.6/03-validate-credential-offer.js.map +1 -0
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js +1 -1
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/module/credential/presentation/api/RelyingPartyConfig.js +8 -8
- package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
- package/lib/module/credential/presentation/api/types.js +13 -13
- package/lib/module/credential/presentation/api/types.js.map +1 -1
- package/lib/module/credential/presentation/common/errors.js +21 -21
- package/lib/module/credential/presentation/common/errors.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/dcql.js +38 -35
- package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/mdoc.js +20 -22
- package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/sd-jwt.js +10 -10
- package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
- package/lib/module/credential/presentation/index.js +1 -1
- package/lib/module/credential/presentation/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +1 -1
- package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +2 -2
- package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +3 -3
- package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js +16 -11
- package/lib/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +12 -12
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/index.js +5 -5
- package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/mappers.js +6 -6
- package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/types.js +12 -12
- package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/utils.js +1 -0
- package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +1 -0
- package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +11 -5
- package/lib/module/credential/presentation/v1.4.6/01-start-flow.js.map +1 -0
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.js.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +3 -3
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.js +16 -13
- package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -0
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +25 -17
- package/lib/module/credential/presentation/v1.4.6/06-evaluate-dcql-query.js.map +1 -0
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +31 -26
- package/lib/module/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -0
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js +6 -6
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +11 -11
- package/lib/module/credential/presentation/v1.4.6/mappers.js.map +1 -0
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +4 -3
- package/lib/module/credential/presentation/v1.4.6/sdkErrorMapper.js.map +1 -0
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/types.js +3 -3
- package/lib/module/credential/presentation/v1.4.6/types.js.map +1 -0
- package/lib/module/credential/status/README.md +2 -2
- package/lib/module/credential/status/api/index.js.map +1 -1
- package/lib/module/credential/status/api/types.js +6 -6
- package/lib/module/credential/status/api/types.js.map +1 -1
- package/lib/module/credential/status/index.js +1 -1
- package/lib/module/credential/status/index.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/01-status-assertion.js +15 -12
- package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +17 -10
- package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/index.js +1 -1
- package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/types.js +17 -17
- package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js +4 -4
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.js.map +1 -1
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map +1 -1
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js +5 -4
- package/lib/module/credential/status/v1.4.6/03-get-status.js.map +1 -0
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/index.js +3 -3
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/module/credential/trustmark/index.js +1 -1
- package/lib/module/credential/trustmark/index.js.map +1 -1
- package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +8 -8
- package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -1
- package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js +1 -1
- package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.js.map +1 -1
- package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +55 -55
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -2
- package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
- package/lib/module/credentials-catalogue/index.js +1 -1
- package/lib/module/credentials-catalogue/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +2 -2
- package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/index.js +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/mappers.js +0 -1
- package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/types.js +36 -36
- package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js +12 -12
- package/lib/module/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js.map +1 -0
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js.map +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/index.js.map +1 -0
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +22 -21
- package/lib/module/credentials-catalogue/v1.4.6/mappers.js.map +1 -0
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +98 -98
- package/lib/module/credentials-catalogue/v1.4.6/types.js.map +1 -0
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +10 -10
- package/lib/module/credentials-catalogue/v1.4.6/utils.js.map +1 -0
- package/lib/module/index.js +10 -10
- package/lib/module/index.js.map +1 -1
- package/{src/wallet-unit-attestation → lib/module/key-attestation}/README.md +9 -9
- package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js.map +1 -1
- package/lib/module/{wallet-unit-attestation → key-attestation}/api/types.js +7 -7
- package/lib/module/key-attestation/api/types.js.map +1 -0
- package/lib/module/key-attestation/index.js +3 -0
- package/lib/module/key-attestation/index.js.map +1 -0
- package/lib/module/key-attestation/v1.0.0/index.js +4 -0
- package/lib/module/key-attestation/v1.0.0/index.js.map +1 -0
- package/lib/module/key-attestation/v1.4.6/index.js +10 -0
- package/lib/module/key-attestation/v1.4.6/index.js.map +1 -0
- package/lib/module/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.js +35 -32
- package/lib/module/key-attestation/v1.4.6/issuing.js.map +1 -0
- package/lib/module/key-attestation/v1.4.6/mappers.js +6 -0
- package/lib/module/key-attestation/v1.4.6/mappers.js.map +1 -0
- package/lib/module/key-attestation/v1.4.6/types.js +14 -0
- package/lib/module/key-attestation/v1.4.6/types.js.map +1 -0
- package/lib/module/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.js +3 -3
- package/lib/module/key-attestation/v1.4.6/utils.js.map +1 -0
- package/lib/module/mdoc/index.js +13 -5
- package/lib/module/mdoc/index.js.map +1 -1
- package/lib/module/mdoc/utils.js.map +1 -1
- package/lib/module/sd-jwt/__test__/types.test.js +9 -9
- package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/module/sd-jwt/__test__/utils.test.js +3 -3
- package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
- package/lib/module/sd-jwt/index.js +9 -9
- package/lib/module/sd-jwt/index.js.map +1 -1
- package/lib/module/sd-jwt/types.js +19 -19
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/sd-jwt/utils.js +10 -11
- package/lib/module/sd-jwt/utils.js.map +1 -1
- package/lib/module/trust/api/TrustAnchorConfig.js +4 -4
- package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
- package/lib/module/trust/common/build-chain.js +5 -2
- package/lib/module/trust/common/build-chain.js.map +1 -1
- package/lib/module/trust/common/errors.js +46 -37
- package/lib/module/trust/common/errors.js.map +1 -1
- package/lib/module/trust/common/types.js +22 -22
- package/lib/module/trust/common/types.js.map +1 -1
- package/lib/module/trust/common/utils.js +45 -45
- package/lib/module/trust/common/utils.js.map +1 -1
- package/lib/module/trust/common/verify-chain.js +96 -96
- package/lib/module/trust/common/verify-chain.js.map +1 -1
- package/lib/module/trust/v1.0.0/build-chain.js +2 -2
- package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
- package/lib/module/trust/v1.0.0/entities.js +1 -1
- package/lib/module/trust/v1.0.0/entities.js.map +1 -1
- package/lib/module/trust/v1.0.0/index.js +3 -3
- package/lib/module/trust/v1.0.0/index.js.map +1 -1
- package/lib/module/trust/v1.0.0/mappers.js +2 -2
- package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
- package/lib/module/trust/v1.0.0/types.js +46 -46
- package/lib/module/trust/v1.0.0/types.js.map +1 -1
- package/lib/module/trust/v1.0.0/verify-chain.js +3 -3
- package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
- package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js +2 -2
- package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js.map +1 -1
- package/lib/module/trust/{v1.3.3 → v1.4.6}/types.js +2 -2
- package/lib/module/trust/v1.4.6/types.js.map +1 -0
- package/lib/module/utils/auth.js +2 -2
- package/lib/module/utils/auth.js.map +1 -1
- package/lib/module/utils/callbacks.js +47 -51
- package/lib/module/utils/callbacks.js.map +1 -1
- package/lib/module/utils/config.js +0 -7
- package/lib/module/utils/config.js.map +1 -1
- package/lib/module/utils/credentials.js +3 -3
- package/lib/module/utils/credentials.js.map +1 -1
- package/lib/module/utils/crypto.js +23 -25
- package/lib/module/utils/crypto.js.map +1 -1
- package/lib/module/utils/decoder.js +3 -3
- package/lib/module/utils/decoder.js.map +1 -1
- package/lib/module/utils/dpop.js +5 -5
- package/lib/module/utils/dpop.js.map +1 -1
- package/lib/module/utils/error-codes.js +19 -19
- package/lib/module/utils/error-codes.js.map +1 -1
- package/lib/module/utils/errors.js +47 -46
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/module/utils/jwk.js +4 -5
- package/lib/module/utils/jwk.js.map +1 -1
- package/lib/module/utils/logging.js +15 -14
- package/lib/module/utils/logging.js.map +1 -1
- package/lib/module/utils/mappers.js +6 -8
- package/lib/module/utils/mappers.js.map +1 -1
- package/lib/module/utils/misc.js +7 -6
- package/lib/module/utils/misc.js.map +1 -1
- package/lib/module/utils/par.js +28 -28
- package/lib/module/utils/par.js.map +1 -1
- package/lib/module/utils/pop.js +5 -5
- package/lib/module/utils/pop.js.map +1 -1
- package/lib/module/utils/string.js.map +1 -1
- package/lib/module/utils/x509.js +2 -2
- package/lib/module/utils/x509.js.map +1 -1
- package/lib/module/utils/zod.js +1 -1
- package/lib/module/utils/zod.js.map +1 -1
- package/lib/module/wallet-instance/common/wallet-instance.js +6 -6
- package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
- package/lib/module/wallet-instance/index.js +1 -1
- package/lib/module/wallet-instance/index.js.map +1 -1
- package/lib/module/wallet-instance/v1.0.0/index.js +3 -3
- package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
- package/lib/module/wallet-instance/v1.4.6/index.js +8 -0
- package/lib/module/wallet-instance/v1.4.6/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/api/types.js +7 -7
- package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/common/types.js +7 -7
- package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/index.js +1 -1
- package/lib/module/wallet-instance-attestation/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/index.js +2 -2
- package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +15 -15
- package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +2 -2
- package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/types.js +5 -5
- package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +2 -2
- package/lib/module/wallet-instance-attestation/v1.4.6/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js +20 -20
- package/lib/module/wallet-instance-attestation/v1.4.6/issuing.js.map +1 -0
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +1 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/utils.js.map +1 -0
- package/lib/typescript/IoWallet.d.ts +4 -4
- package/lib/typescript/IoWallet.d.ts.map +1 -1
- package/lib/typescript/api/index.d.ts +14 -14
- package/lib/typescript/api/index.d.ts.map +1 -1
- package/lib/typescript/client/index.d.ts +2 -2
- package/lib/typescript/client/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +8 -8
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +30 -30
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +2 -2
- package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +8 -8
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +1 -1
- package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +52 -52
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/index.d.ts +2 -2
- package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +30 -30
- package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +25 -25
- package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/types.d.ts +8 -11
- package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +2 -2
- package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/common/errors.d.ts +0 -1
- package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/index.d.ts +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -2
- package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +2 -2
- package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +130 -130
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.4.6/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.d.ts +1 -1
- package/lib/typescript/credential/issuance/v1.4.6/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.4.6/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.d.ts +8 -8
- package/lib/typescript/credential/issuance/v1.4.6/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.4.6/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/mappers.d.ts +52 -45
- package/lib/typescript/credential/issuance/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
- package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts +1 -1
- package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -1
- package/lib/typescript/credential/offer/api/index.d.ts +1 -1
- package/lib/typescript/credential/offer/api/index.d.ts.map +1 -1
- package/lib/typescript/credential/offer/common/errors.d.ts +0 -2
- package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -1
- package/lib/typescript/credential/offer/index.d.ts +1 -1
- package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.d.ts +1 -1
- package/lib/typescript/credential/offer/v1.4.6/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.d.ts +1 -1
- package/lib/typescript/credential/offer/v1.4.6/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.d.ts +1 -1
- package/lib/typescript/credential/offer/v1.4.6/03-validate-credential-offer.d.ts.map +1 -0
- package/lib/typescript/credential/offer/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +3 -3
- package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts +12 -12
- package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +17 -17
- package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +19 -19
- package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/index.d.ts +1 -1
- package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/types.d.ts +75 -75
- package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/common/errors.d.ts +24 -24
- package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +5 -5
- package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/index.d.ts +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +51 -51
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +10 -10
- package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.4.6/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.4.6/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.4.6/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.4.6/04-verify-certificate-chain.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.4.6/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/mappers.d.ts +44 -42
- package/lib/typescript/credential/presentation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/types.d.ts +4 -3
- package/lib/typescript/credential/presentation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/credential/status/api/index.d.ts +3 -3
- package/lib/typescript/credential/status/api/index.d.ts.map +1 -1
- package/lib/typescript/credential/status/api/status-assertion.d.ts +3 -3
- package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -1
- package/lib/typescript/credential/status/api/status-list.d.ts +11 -11
- package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -1
- package/lib/typescript/credential/status/api/types.d.ts +12 -12
- package/lib/typescript/credential/status/api/types.d.ts.map +1 -1
- package/lib/typescript/credential/status/index.d.ts +1 -1
- package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -1
- package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -1
- package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +7 -7
- package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/status/v1.0.0/types.d.ts +27 -27
- package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -1
- package/lib/typescript/credential/status/v1.4.6/01-status-list.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.4.6/03-get-status.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/api/index.d.ts +11 -11
- package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -1
- package/lib/typescript/credential/trustmark/index.d.ts +1 -1
- package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -1
- package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.d.ts.map +1 -1
- package/lib/typescript/credential/trustmark/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +171 -168
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/api/index.d.ts +11 -11
- package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/index.d.ts +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +72 -71
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +91 -91
- package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/fetch-translations.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.d.ts +158 -157
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/types.d.ts +190 -190
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts +3 -3
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +12 -12
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/index.d.ts +24 -24
- package/lib/typescript/key-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/types.d.ts +13 -13
- package/lib/typescript/key-attestation/api/types.d.ts.map +1 -0
- package/lib/typescript/key-attestation/index.d.ts +4 -0
- package/lib/typescript/key-attestation/index.d.ts.map +1 -0
- package/lib/typescript/key-attestation/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/key-attestation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/key-attestation/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/key-attestation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts +3 -0
- package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts.map +1 -0
- package/lib/typescript/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/mappers.d.ts +12 -12
- package/lib/typescript/key-attestation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/types.d.ts +10 -10
- package/lib/typescript/key-attestation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/key-attestation/v1.4.6/utils.d.ts +7 -0
- package/lib/typescript/key-attestation/v1.4.6/utils.d.ts.map +1 -0
- package/lib/typescript/mdoc/index.d.ts.map +1 -1
- package/lib/typescript/mdoc/utils.d.ts +2 -2
- package/lib/typescript/mdoc/utils.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/index.d.ts +10 -10
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/types.d.ts +17 -17
- package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/utils.d.ts +4 -3
- package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
- package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +17 -17
- package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -1
- package/lib/typescript/trust/api/index.d.ts +11 -11
- package/lib/typescript/trust/api/index.d.ts.map +1 -1
- package/lib/typescript/trust/common/build-chain.d.ts +3 -3
- package/lib/typescript/trust/common/build-chain.d.ts.map +1 -1
- package/lib/typescript/trust/common/errors.d.ts +43 -43
- package/lib/typescript/trust/common/errors.d.ts.map +1 -1
- package/lib/typescript/trust/common/types.d.ts +37 -37
- package/lib/typescript/trust/common/types.d.ts.map +1 -1
- package/lib/typescript/trust/common/utils.d.ts +17 -17
- package/lib/typescript/trust/common/utils.d.ts.map +1 -1
- package/lib/typescript/trust/common/verify-chain.d.ts +9 -9
- package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -1
- package/lib/typescript/trust/v1.0.0/entities.d.ts +325 -325
- package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -1
- package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/trust/v1.0.0/mappers.d.ts +42 -42
- package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/trust/v1.0.0/types.d.ts +331 -331
- package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -1
- package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -1
- package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts +25 -24
- package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts.map +1 -1
- package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.d.ts +210 -206
- package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
- package/lib/typescript/utils/auth.d.ts +1 -1
- package/lib/typescript/utils/callbacks.d.ts +1 -1
- package/lib/typescript/utils/callbacks.d.ts.map +1 -1
- package/lib/typescript/utils/config.d.ts +0 -4
- package/lib/typescript/utils/config.d.ts.map +1 -1
- package/lib/typescript/utils/credentials.d.ts.map +1 -1
- package/lib/typescript/utils/crypto.d.ts +1 -1
- package/lib/typescript/utils/crypto.d.ts.map +1 -1
- package/lib/typescript/utils/decoder.d.ts +1 -1
- package/lib/typescript/utils/decoder.d.ts.map +1 -1
- package/lib/typescript/utils/dpop.d.ts +3 -3
- package/lib/typescript/utils/dpop.d.ts.map +1 -1
- package/lib/typescript/utils/error-codes.d.ts +18 -18
- package/lib/typescript/utils/error-codes.d.ts.map +1 -1
- package/lib/typescript/utils/errors.d.ts +49 -51
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/utils/integrity.d.ts +9 -9
- package/lib/typescript/utils/integrity.d.ts.map +1 -1
- package/lib/typescript/utils/jwk.d.ts +3 -3
- package/lib/typescript/utils/jwk.d.ts.map +1 -1
- package/lib/typescript/utils/logging.d.ts +10 -10
- package/lib/typescript/utils/logging.d.ts.map +1 -1
- package/lib/typescript/utils/mappers.d.ts.map +1 -1
- package/lib/typescript/utils/misc.d.ts +2 -2
- package/lib/typescript/utils/misc.d.ts.map +1 -1
- package/lib/typescript/utils/par.d.ts +13 -13
- package/lib/typescript/utils/par.d.ts.map +1 -1
- package/lib/typescript/utils/parser.d.ts +2 -2
- package/lib/typescript/utils/parser.d.ts.map +1 -1
- package/lib/typescript/utils/pop.d.ts +2 -2
- package/lib/typescript/utils/pop.d.ts.map +1 -1
- package/lib/typescript/utils/string.d.ts.map +1 -1
- package/lib/typescript/utils/x509.d.ts.map +1 -1
- package/lib/typescript/utils/zod.d.ts +5 -5
- package/lib/typescript/utils/zod.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/api/index.d.ts +19 -19
- package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/index.d.ts +1 -1
- package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/api/index.d.ts +15 -15
- package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/api/types.d.ts +10 -10
- package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/common/types.d.ts +5 -5
- package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/index.d.ts +1 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +12 -12
- package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +14 -14
- package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.4.6/issuing.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.d.ts +10 -10
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.d.ts +5 -5
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
- package/package.json +15 -12
- package/src/IoWallet.ts +11 -9
- package/src/api/index.ts +31 -32
- package/src/client/index.ts +14 -13
- package/src/credential/issuance/README.md +9 -9
- package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
- package/src/credential/issuance/api/02-start-user-authorization.ts +9 -8
- package/src/credential/issuance/api/03-complete-user-authorization.ts +41 -40
- package/src/credential/issuance/api/04-authorize-access.ts +4 -3
- package/src/credential/issuance/api/05-obtain-credential.ts +11 -10
- package/src/credential/issuance/api/06-verify-and-parse-credential.ts +3 -2
- package/src/credential/issuance/api/IssuerConfig.ts +20 -19
- package/src/credential/issuance/api/index.ts +4 -4
- package/src/credential/issuance/api/mrtd-pop/index.ts +39 -38
- package/src/credential/issuance/api/mrtd-pop/types.ts +27 -27
- package/src/credential/issuance/api/types.ts +9 -8
- package/src/credential/issuance/common/02-start-user-authorization.ts +20 -14
- package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +39 -34
- package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +32 -29
- package/src/credential/issuance/common/errors.ts +0 -4
- package/src/credential/issuance/index.ts +1 -1
- package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +7 -5
- package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +22 -20
- package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +24 -21
- package/src/credential/issuance/mrtd-pop/index.ts +8 -7
- package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +3 -2
- package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +15 -14
- package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +45 -43
- package/src/credential/issuance/v1.0.0/04-authorize-access.ts +17 -15
- package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +39 -22
- package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +5 -4
- package/src/credential/issuance/v1.0.0/index.ts +11 -10
- package/src/credential/issuance/v1.0.0/mappers.ts +12 -11
- package/src/credential/issuance/v1.0.0/types.ts +2 -1
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.ts +6 -4
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.ts +33 -30
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.ts +55 -54
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.ts +20 -18
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.ts +57 -53
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.ts +5 -4
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/index.ts +11 -10
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/mappers.ts +25 -22
- package/src/credential/offer/README.md +10 -6
- package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
- package/src/credential/offer/api/03-validate-credential-offer.ts +2 -1
- package/src/credential/offer/api/index.ts +2 -2
- package/src/credential/offer/common/errors.ts +0 -8
- package/src/credential/offer/index.ts +1 -1
- package/src/credential/offer/v1.0.0/index.ts +5 -4
- package/src/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.ts +8 -6
- package/src/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.ts +9 -7
- package/src/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.ts +9 -7
- package/src/credential/offer/{v1.3.3 → v1.4.6}/index.ts +2 -1
- package/src/credential/presentation/api/01-start-flow.ts +4 -4
- package/src/credential/presentation/api/02-evaluate-rp-trust.ts +1 -1
- package/src/credential/presentation/api/03-get-request-object.ts +1 -1
- package/src/credential/presentation/api/04-verify-certificate-chain.ts +1 -1
- package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
- package/src/credential/presentation/api/06-evaluate-dcql-query.ts +14 -14
- package/src/credential/presentation/api/07-send-authorization-response.ts +21 -19
- package/src/credential/presentation/api/RelyingPartyConfig.ts +8 -7
- package/src/credential/presentation/api/index.ts +4 -4
- package/src/credential/presentation/api/types.ts +70 -68
- package/src/credential/presentation/common/errors.ts +32 -35
- package/src/credential/presentation/common/utils/dcql.ts +34 -30
- package/src/credential/presentation/common/utils/http.ts +2 -2
- package/src/credential/presentation/common/utils/mdoc.ts +17 -15
- package/src/credential/presentation/common/utils/sd-jwt.ts +19 -16
- package/src/credential/presentation/index.ts +1 -1
- package/src/credential/presentation/v1.0.0/01-start-flow.ts +4 -3
- package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +3 -2
- package/src/credential/presentation/v1.0.0/03-get-request-object.ts +6 -5
- package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +14 -12
- package/src/credential/presentation/v1.0.0/06-evaluate-dcql-query.ts +26 -15
- package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +23 -21
- package/src/credential/presentation/v1.0.0/index.ts +6 -5
- package/src/credential/presentation/v1.0.0/mappers.ts +9 -8
- package/src/credential/presentation/v1.0.0/types.ts +11 -10
- package/src/credential/presentation/v1.0.0/utils.jwks.ts +4 -3
- package/src/credential/presentation/v1.0.0/utils.ts +4 -3
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.ts +13 -7
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.ts +3 -2
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.ts +4 -2
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.ts +9 -7
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.ts +25 -22
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.ts +37 -23
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.ts +40 -32
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/index.ts +7 -6
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/mappers.ts +13 -12
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.ts +9 -7
- package/src/credential/status/README.md +2 -2
- package/src/credential/status/api/index.ts +4 -4
- package/src/credential/status/api/status-assertion.ts +7 -6
- package/src/credential/status/api/status-list.ts +17 -17
- package/src/credential/status/api/types.ts +12 -11
- package/src/credential/status/index.ts +1 -1
- package/src/credential/status/v1.0.0/01-status-assertion.ts +22 -16
- package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +27 -17
- package/src/credential/status/v1.0.0/index.ts +2 -1
- package/src/credential/status/v1.0.0/mappers.ts +2 -1
- package/src/credential/status/v1.0.0/types.ts +17 -16
- package/src/credential/status/{v1.3.3 → v1.4.6}/01-status-list.ts +9 -7
- package/src/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.ts +3 -1
- package/src/credential/status/{v1.3.3 → v1.4.6}/03-get-status.ts +8 -6
- package/src/credential/status/{v1.3.3 → v1.4.6}/index.ts +3 -2
- package/src/credential/trustmark/api/index.ts +11 -11
- package/src/credential/trustmark/index.ts +1 -1
- package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +14 -13
- package/src/credential/trustmark/v1.0.0/index.ts +2 -1
- package/src/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.ts +1 -1
- package/src/credential/trustmark/{v1.3.3 → v1.4.6}/index.ts +2 -1
- package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +49 -47
- package/src/credentials-catalogue/api/index.ts +14 -12
- package/src/credentials-catalogue/common/get-status-l10n-ids.ts +4 -4
- package/src/credentials-catalogue/index.ts +1 -1
- package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +7 -6
- package/src/credentials-catalogue/v1.0.0/index.ts +2 -1
- package/src/credentials-catalogue/v1.0.0/mappers.ts +2 -3
- package/src/credentials-catalogue/v1.0.0/types.ts +33 -32
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.ts +15 -15
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.ts +4 -3
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/index.ts +2 -1
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.ts +28 -27
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/types.ts +87 -86
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.ts +16 -14
- package/src/index.ts +26 -24
- package/{lib/module/wallet-unit-attestation → src/key-attestation}/README.md +9 -9
- package/src/{wallet-unit-attestation → key-attestation}/api/index.ts +26 -28
- package/src/{wallet-unit-attestation → key-attestation}/api/types.ts +14 -15
- package/src/key-attestation/index.ts +3 -0
- package/src/key-attestation/v1.0.0/index.ts +5 -0
- package/src/key-attestation/v1.4.6/index.ts +12 -0
- package/src/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/issuing.ts +44 -36
- package/src/key-attestation/v1.4.6/mappers.ts +10 -0
- package/src/key-attestation/v1.4.6/types.ts +20 -0
- package/src/{wallet-unit-attestation/v1.3.3 → key-attestation/v1.4.6}/utils.ts +5 -4
- package/src/mdoc/index.ts +26 -11
- package/src/mdoc/utils.ts +6 -4
- package/src/sd-jwt/__test__/types.test.ts +6 -6
- package/src/sd-jwt/__test__/utils.test.ts +2 -2
- package/src/sd-jwt/index.ts +10 -8
- package/src/sd-jwt/types.ts +16 -15
- package/src/sd-jwt/utils.ts +17 -12
- package/src/trust/api/TrustAnchorConfig.ts +3 -2
- package/src/trust/api/index.ts +19 -16
- package/src/trust/common/build-chain.ts +28 -18
- package/src/trust/common/errors.ts +58 -50
- package/src/trust/common/types.ts +22 -21
- package/src/trust/common/utils.ts +65 -64
- package/src/trust/common/verify-chain.ts +140 -138
- package/src/trust/v1.0.0/build-chain.ts +1 -1
- package/src/trust/v1.0.0/entities.ts +18 -16
- package/src/trust/v1.0.0/index.ts +5 -4
- package/src/trust/v1.0.0/mappers.ts +3 -2
- package/src/trust/v1.0.0/types.ts +43 -42
- package/src/trust/v1.0.0/verify-chain.ts +3 -2
- package/src/trust/{v1.3.3 → v1.4.6}/entities.ts +7 -5
- package/src/trust/{v1.3.3 → v1.4.6}/types.ts +10 -9
- package/src/utils/auth.ts +1 -1
- package/src/utils/callbacks.ts +38 -38
- package/src/utils/config.ts +0 -7
- package/src/utils/credentials.ts +7 -5
- package/src/utils/crypto.ts +36 -36
- package/src/utils/decoder.ts +7 -5
- package/src/utils/dpop.ts +5 -6
- package/src/utils/error-codes.ts +20 -20
- package/src/utils/errors.ts +89 -87
- package/src/utils/integrity.ts +11 -11
- package/src/utils/jwk.ts +4 -4
- package/src/utils/logging.ts +21 -20
- package/src/utils/mappers.ts +14 -11
- package/src/utils/misc.ts +15 -12
- package/src/utils/par.ts +30 -29
- package/src/utils/parser.ts +4 -4
- package/src/utils/pop.ts +4 -5
- package/src/utils/string.ts +2 -2
- package/src/utils/x509.ts +5 -4
- package/src/utils/zod.ts +4 -4
- package/src/wallet-instance/api/index.ts +24 -24
- package/src/wallet-instance/common/wallet-instance.ts +8 -7
- package/src/wallet-instance/index.ts +1 -1
- package/src/wallet-instance/v1.0.0/index.ts +5 -4
- package/src/wallet-instance/{v1.3.3 → v1.4.6}/index.ts +5 -4
- package/src/wallet-instance-attestation/api/index.ts +18 -17
- package/src/wallet-instance-attestation/api/types.ts +12 -11
- package/src/wallet-instance-attestation/common/types.ts +7 -6
- package/src/wallet-instance-attestation/index.ts +1 -1
- package/src/wallet-instance-attestation/v1.0.0/index.ts +3 -2
- package/src/wallet-instance-attestation/v1.0.0/issuing.ts +22 -20
- package/src/wallet-instance-attestation/v1.0.0/mappers.ts +2 -2
- package/src/wallet-instance-attestation/v1.0.0/types.ts +10 -9
- package/src/wallet-instance-attestation/v1.0.0/utils.ts +3 -2
- package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.ts +4 -3
- package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.ts +25 -23
- package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.ts +3 -2
- package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.ts +3 -2
- package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +0 -1
- package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +0 -1
- package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +0 -1
- package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +0 -1
- package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +0 -1
- package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +0 -1
- package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +0 -1
- package/lib/commonjs/credential/offer/v1.3.3/03-validate-credential-offer.js.map +0 -1
- package/lib/commonjs/credential/offer/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +0 -1
- package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +0 -1
- package/lib/commonjs/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +0 -1
- package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +0 -1
- package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +0 -1
- package/lib/commonjs/credential/status/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +0 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +0 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +0 -1
- package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/api/types.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/index.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js +0 -11
- package/lib/commonjs/wallet-unit-attestation/v1.0.0/index.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/v1.3.3/index.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/v1.3.3/issuing.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js +0 -13
- package/lib/commonjs/wallet-unit-attestation/v1.3.3/mappers.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/v1.3.3/types.js.map +0 -1
- package/lib/commonjs/wallet-unit-attestation/v1.3.3/utils.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/index.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/mappers.js.map +0 -1
- package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +0 -1
- package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +0 -1
- package/lib/module/credential/offer/v1.3.3/03-validate-credential-offer.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/06-evaluate-dcql-query.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/mappers.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +0 -1
- package/lib/module/credential/presentation/v1.3.3/types.js.map +0 -1
- package/lib/module/credential/status/v1.3.3/03-get-status.js.map +0 -1
- package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +0 -1
- package/lib/module/credentials-catalogue/v1.3.3/index.js.map +0 -1
- package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +0 -1
- package/lib/module/credentials-catalogue/v1.3.3/types.js.map +0 -1
- package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +0 -1
- package/lib/module/trust/v1.3.3/types.js.map +0 -1
- package/lib/module/wallet-instance/v1.3.3/index.js +0 -8
- package/lib/module/wallet-instance/v1.3.3/index.js.map +0 -1
- package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +0 -1
- package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +0 -1
- package/lib/module/wallet-instance-attestation/v1.3.3/utils.js.map +0 -1
- package/lib/module/wallet-unit-attestation/api/types.js.map +0 -1
- package/lib/module/wallet-unit-attestation/index.js +0 -3
- package/lib/module/wallet-unit-attestation/index.js.map +0 -1
- package/lib/module/wallet-unit-attestation/v1.0.0/index.js +0 -4
- package/lib/module/wallet-unit-attestation/v1.0.0/index.js.map +0 -1
- package/lib/module/wallet-unit-attestation/v1.3.3/index.js +0 -10
- package/lib/module/wallet-unit-attestation/v1.3.3/index.js.map +0 -1
- package/lib/module/wallet-unit-attestation/v1.3.3/issuing.js.map +0 -1
- package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js +0 -6
- package/lib/module/wallet-unit-attestation/v1.3.3/mappers.js.map +0 -1
- package/lib/module/wallet-unit-attestation/v1.3.3/types.js +0 -14
- package/lib/module/wallet-unit-attestation/v1.3.3/types.js.map +0 -1
- package/lib/module/wallet-unit-attestation/v1.3.3/utils.js.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.3.3/03-validate-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/04-verify-certificate-chain.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/06-evaluate-dcql-query.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.3.3/03-get-status.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/api/index.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/api/types.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/index.d.ts +0 -4
- package/lib/typescript/wallet-unit-attestation/index.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts +0 -3
- package/lib/typescript/wallet-unit-attestation/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts +0 -3
- package/lib/typescript/wallet-unit-attestation/v1.3.3/index.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts +0 -3
- package/lib/typescript/wallet-unit-attestation/v1.3.3/issuing.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/v1.3.3/mappers.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/v1.3.3/types.d.ts.map +0 -1
- package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts +0 -7
- package/lib/typescript/wallet-unit-attestation/v1.3.3/utils.d.ts.map +0 -1
- package/src/wallet-unit-attestation/index.ts +0 -3
- package/src/wallet-unit-attestation/v1.0.0/index.ts +0 -5
- package/src/wallet-unit-attestation/v1.3.3/index.ts +0 -11
- package/src/wallet-unit-attestation/v1.3.3/mappers.ts +0 -10
- package/src/wallet-unit-attestation/v1.3.3/types.ts +0 -21
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js +0 -0
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
- package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js +0 -0
- package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
- package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js +0 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.js +0 -0
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js +0 -0
- package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
- package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.js +0 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.d.ts +0 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.d.ts +0 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.d.ts +0 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.d.ts +0 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/types.d.ts +0 -0
- package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.d.ts +0 -0
- package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/01-status-list.d.ts +0 -0
- package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.d.ts +0 -0
- package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/03-get-status.d.ts +0 -0
- package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.d.ts +0 -0
- package/lib/typescript/credential/trustmark/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.d.ts +0 -0
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.d.ts +0 -0
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/wallet-instance/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.d.ts +0 -0
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.d.ts +0 -0
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts +0 -0
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/types.ts +0 -0
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/types.ts +3 -3
- /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { TrustAnchorConfig } from "../api/TrustAnchorConfig";
|
|
2
|
+
|
|
1
3
|
import { createMapper } from "../../utils/mappers";
|
|
2
4
|
import { TrustAnchorEntityConfiguration } from "./types";
|
|
3
|
-
import type { TrustAnchorConfig } from "../api/TrustAnchorConfig";
|
|
4
5
|
|
|
5
6
|
export const mapToTrustAnchorConfig = createMapper<
|
|
6
7
|
TrustAnchorEntityConfiguration,
|
|
@@ -8,8 +9,8 @@ export const mapToTrustAnchorConfig = createMapper<
|
|
|
8
9
|
>((x) => {
|
|
9
10
|
const { federation_entity } = x.payload.metadata;
|
|
10
11
|
return {
|
|
12
|
+
federation_entity,
|
|
11
13
|
jwt: { header: x.header },
|
|
12
14
|
keys: x.payload.jwks.keys,
|
|
13
|
-
federation_entity,
|
|
14
15
|
};
|
|
15
16
|
});
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
1
|
import { jsonWebKeySchema } from "@pagopa/io-wallet-oid-federation";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
|
|
3
4
|
import { JWK } from "../../utils/jwk";
|
|
4
5
|
import { BaseEntityConfiguration } from "../common/types";
|
|
5
6
|
|
|
6
7
|
const RelyingPartyMetadata = z.object({
|
|
7
8
|
application_type: z.string().optional(),
|
|
9
|
+
authorization_encrypted_response_alg: z.string().optional(),
|
|
10
|
+
authorization_encrypted_response_enc: z.string().optional(),
|
|
11
|
+
authorization_signed_response_alg: z.string().optional(),
|
|
8
12
|
client_id: z.string().optional(),
|
|
9
13
|
client_name: z.string().optional(),
|
|
14
|
+
contacts: z.array(z.string()).optional(),
|
|
10
15
|
jwks: z.object({
|
|
11
16
|
keys: z.array(jsonWebKeySchema),
|
|
12
17
|
}),
|
|
13
|
-
contacts: z.array(z.string()).optional(),
|
|
14
18
|
request_uris: z.array(z.string()).optional(),
|
|
15
|
-
authorization_signed_response_alg: z.string().optional(),
|
|
16
|
-
authorization_encrypted_response_alg: z.string().optional(),
|
|
17
|
-
authorization_encrypted_response_enc: z.string().optional(),
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
// Display metadata for a credential, used by the issuer to
|
|
21
22
|
// instruct the Wallet Solution on how to render the credential correctly
|
|
22
23
|
type CredentialDisplayMetadata = z.infer<typeof CredentialDisplayMetadata>;
|
|
23
24
|
const CredentialDisplayMetadata = z.object({
|
|
24
|
-
name: z.string(),
|
|
25
25
|
locale: z.string(),
|
|
26
|
+
name: z.string(),
|
|
26
27
|
});
|
|
27
28
|
|
|
28
29
|
// Metadata for displaying issuer information
|
|
@@ -30,24 +31,24 @@ type CredentialIssuerDisplayMetadata = z.infer<
|
|
|
30
31
|
typeof CredentialIssuerDisplayMetadata
|
|
31
32
|
>;
|
|
32
33
|
const CredentialIssuerDisplayMetadata = z.object({
|
|
33
|
-
name: z.string(),
|
|
34
34
|
locale: z.string(),
|
|
35
|
+
name: z.string(),
|
|
35
36
|
});
|
|
36
37
|
|
|
37
38
|
type ClaimsMetadata = z.infer<typeof ClaimsMetadata>;
|
|
38
39
|
const ClaimsMetadata = z.object({
|
|
39
|
-
path: z.array(z.union([z.string(), z.number(), z.null()])), // https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-15.html#name-claims-path-pointer
|
|
40
40
|
display: z.array(CredentialDisplayMetadata),
|
|
41
|
+
path: z.array(z.union([z.string(), z.number(), z.null()])), // https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-15.html#name-claims-path-pointer
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
type IssuanceErrorSupported = z.infer<typeof IssuanceErrorSupported>;
|
|
44
45
|
const IssuanceErrorSupported = z.object({
|
|
45
46
|
display: z.array(
|
|
46
47
|
z.object({
|
|
47
|
-
title: z.string(),
|
|
48
48
|
description: z.string(),
|
|
49
49
|
locale: z.string(),
|
|
50
|
-
|
|
50
|
+
title: z.string(),
|
|
51
|
+
}),
|
|
51
52
|
),
|
|
52
53
|
});
|
|
53
54
|
|
|
@@ -56,19 +57,19 @@ type SupportedCredentialMetadata = z.infer<typeof SupportedCredentialMetadata>;
|
|
|
56
57
|
const SupportedCredentialMetadata = z.intersection(
|
|
57
58
|
z.discriminatedUnion("format", [
|
|
58
59
|
z.object({ format: z.literal("dc+sd-jwt"), vct: z.string() }),
|
|
59
|
-
z.object({
|
|
60
|
+
z.object({ doctype: z.string(), format: z.literal("mso_mdoc") }),
|
|
60
61
|
]),
|
|
61
62
|
z.object({
|
|
62
|
-
|
|
63
|
-
display: z.array(CredentialDisplayMetadata),
|
|
63
|
+
authentic_source: z.string().optional(),
|
|
64
64
|
claims: z.array(ClaimsMetadata),
|
|
65
|
-
cryptographic_binding_methods_supported: z.array(z.string()),
|
|
66
65
|
credential_signing_alg_values_supported: z.array(z.string()),
|
|
67
|
-
|
|
66
|
+
cryptographic_binding_methods_supported: z.array(z.string()),
|
|
67
|
+
display: z.array(CredentialDisplayMetadata),
|
|
68
68
|
issuance_errors_supported: z
|
|
69
69
|
.record(z.string(), IssuanceErrorSupported)
|
|
70
70
|
.optional(),
|
|
71
|
-
|
|
71
|
+
scope: z.string(),
|
|
72
|
+
}),
|
|
72
73
|
);
|
|
73
74
|
|
|
74
75
|
// Entity configuration for a Trust Anchor (it has no specific metadata section)
|
|
@@ -86,36 +87,36 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
86
87
|
payload: z.object({
|
|
87
88
|
jwks: z.object({ keys: z.array(JWK) }),
|
|
88
89
|
metadata: z.object({
|
|
89
|
-
openid_credential_issuer: z.object({
|
|
90
|
-
credential_issuer: z.string(),
|
|
91
|
-
credential_endpoint: z.string(),
|
|
92
|
-
revocation_endpoint: z.string().optional(),
|
|
93
|
-
nonce_endpoint: z.string(),
|
|
94
|
-
status_attestation_endpoint: z.string(),
|
|
95
|
-
display: z.array(CredentialIssuerDisplayMetadata),
|
|
96
|
-
credential_configurations_supported: z.record(
|
|
97
|
-
z.string(),
|
|
98
|
-
SupportedCredentialMetadata
|
|
99
|
-
),
|
|
100
|
-
jwks: z.object({ keys: z.array(JWK) }),
|
|
101
|
-
trust_frameworks_supported: z.array(z.string()),
|
|
102
|
-
evidence_supported: z.array(z.string()),
|
|
103
|
-
}),
|
|
104
90
|
oauth_authorization_server: z.object({
|
|
91
|
+
acr_values_supported: z.array(z.string()),
|
|
105
92
|
authorization_endpoint: z.string(),
|
|
106
|
-
pushed_authorization_request_endpoint: z.string(),
|
|
107
|
-
token_endpoint: z.string(),
|
|
108
93
|
client_registration_types_supported: z.array(z.string()),
|
|
109
94
|
code_challenge_methods_supported: z.array(z.string()),
|
|
110
|
-
acr_values_supported: z.array(z.string()),
|
|
111
95
|
grant_types_supported: z.array(z.string()),
|
|
112
96
|
issuer: z.string(),
|
|
113
97
|
jwks: z.object({ keys: z.array(JWK) }),
|
|
114
|
-
|
|
98
|
+
pushed_authorization_request_endpoint: z.string(),
|
|
99
|
+
request_object_signing_alg_values_supported: z.array(z.string()),
|
|
115
100
|
response_modes_supported: z.array(z.string()),
|
|
101
|
+
scopes_supported: z.array(z.string()),
|
|
102
|
+
token_endpoint: z.string(),
|
|
116
103
|
token_endpoint_auth_methods_supported: z.array(z.string()),
|
|
117
104
|
token_endpoint_auth_signing_alg_values_supported: z.array(z.string()),
|
|
118
|
-
|
|
105
|
+
}),
|
|
106
|
+
openid_credential_issuer: z.object({
|
|
107
|
+
credential_configurations_supported: z.record(
|
|
108
|
+
z.string(),
|
|
109
|
+
SupportedCredentialMetadata,
|
|
110
|
+
),
|
|
111
|
+
credential_endpoint: z.string(),
|
|
112
|
+
credential_issuer: z.string(),
|
|
113
|
+
display: z.array(CredentialIssuerDisplayMetadata),
|
|
114
|
+
evidence_supported: z.array(z.string()),
|
|
115
|
+
jwks: z.object({ keys: z.array(JWK) }),
|
|
116
|
+
nonce_endpoint: z.string(),
|
|
117
|
+
revocation_endpoint: z.string().optional(),
|
|
118
|
+
status_attestation_endpoint: z.string(),
|
|
119
|
+
trust_frameworks_supported: z.array(z.string()),
|
|
119
120
|
}),
|
|
120
121
|
/**
|
|
121
122
|
* Credential Issuers act as Relying Party when they require the presentation of other credentials.
|
|
@@ -124,7 +125,7 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
124
125
|
openid_credential_verifier: RelyingPartyMetadata.optional(),
|
|
125
126
|
}),
|
|
126
127
|
}),
|
|
127
|
-
})
|
|
128
|
+
}),
|
|
128
129
|
);
|
|
129
130
|
|
|
130
131
|
// Entity configuration for a Relying Party
|
|
@@ -138,7 +139,7 @@ export const RelyingPartyEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
138
139
|
openid_credential_verifier: RelyingPartyMetadata,
|
|
139
140
|
}),
|
|
140
141
|
}),
|
|
141
|
-
})
|
|
142
|
+
}),
|
|
142
143
|
);
|
|
143
144
|
|
|
144
145
|
// Entity configuration for a Wallet Provider
|
|
@@ -151,19 +152,19 @@ export const WalletProviderEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
151
152
|
metadata: z.object({
|
|
152
153
|
wallet_provider: z
|
|
153
154
|
.object({
|
|
154
|
-
token_endpoint: z.string(),
|
|
155
155
|
aal_values_supported: z.array(z.string()).optional(),
|
|
156
156
|
grant_types_supported: z.array(z.string()),
|
|
157
|
+
jwks: z.object({ keys: z.array(JWK) }),
|
|
158
|
+
token_endpoint: z.string(),
|
|
157
159
|
token_endpoint_auth_methods_supported: z.array(z.string()),
|
|
158
160
|
token_endpoint_auth_signing_alg_values_supported: z.array(
|
|
159
|
-
z.string()
|
|
161
|
+
z.string(),
|
|
160
162
|
),
|
|
161
|
-
jwks: z.object({ keys: z.array(JWK) }),
|
|
162
163
|
})
|
|
163
164
|
.loose(),
|
|
164
165
|
}),
|
|
165
166
|
}),
|
|
166
|
-
})
|
|
167
|
+
}),
|
|
167
168
|
);
|
|
168
169
|
|
|
169
170
|
// Maps any entity configuration by the union of every possible shapes
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
|
|
2
3
|
import { EntityStatement } from "../common/types";
|
|
3
4
|
import { createVerifyTrustChain } from "../common/verify-chain";
|
|
4
5
|
import { EntityConfiguration, TrustAnchorEntityConfiguration } from "./types";
|
|
5
6
|
|
|
6
7
|
export const verifyTrustChain = createVerifyTrustChain({
|
|
7
|
-
EntityStatementShape: EntityStatement,
|
|
8
8
|
EntityConfigurationShape: EntityConfiguration,
|
|
9
|
+
EntityStatementShape: EntityStatement,
|
|
9
10
|
FirstElementShape: EntityConfiguration,
|
|
10
|
-
MiddleElementShape: EntityStatement,
|
|
11
11
|
LastElementShape: z.union([EntityStatement, TrustAnchorEntityConfiguration]),
|
|
12
|
+
MiddleElementShape: EntityStatement,
|
|
12
13
|
});
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type z from "zod";
|
|
2
|
+
|
|
3
|
+
import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
|
|
4
|
+
|
|
2
5
|
import {
|
|
3
6
|
type FetchOptions,
|
|
4
7
|
getSignedEntityConfiguration,
|
|
5
8
|
} from "../common/utils";
|
|
6
9
|
import { EntityConfiguration, RelyingPartyEntityConfiguration } from "./types";
|
|
7
|
-
import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Fetch and parse the entity configuration document for a given federation entity.
|
|
11
13
|
* This is an inner method to serve public interfaces.
|
|
12
|
-
* @version 1.
|
|
14
|
+
* @version 1.4.6
|
|
13
15
|
*
|
|
14
16
|
* To add another entity configuration type (example: Foo entity type):
|
|
15
17
|
* - create its zod schema and type by inherit from the base type (example: FooEntityConfiguration = BaseEntityConfiguration.and(...))
|
|
@@ -27,7 +29,7 @@ import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
|
|
|
27
29
|
async function fetchAndParseEntityConfiguration<T extends EntityConfiguration>(
|
|
28
30
|
entityBaseUrl: string,
|
|
29
31
|
schema: z.ZodType<T>,
|
|
30
|
-
{ appFetch = fetch }: FetchOptions = {}
|
|
32
|
+
{ appFetch = fetch }: FetchOptions = {},
|
|
31
33
|
): Promise<T> {
|
|
32
34
|
const responseText = await getSignedEntityConfiguration(entityBaseUrl, {
|
|
33
35
|
appFetch,
|
|
@@ -42,10 +44,10 @@ async function fetchAndParseEntityConfiguration<T extends EntityConfiguration>(
|
|
|
42
44
|
|
|
43
45
|
export const getRelyingPartyEntityConfiguration = (
|
|
44
46
|
entityBaseUrl: string,
|
|
45
|
-
options?: FetchOptions
|
|
47
|
+
options?: FetchOptions,
|
|
46
48
|
) =>
|
|
47
49
|
fetchAndParseEntityConfiguration(
|
|
48
50
|
entityBaseUrl,
|
|
49
51
|
RelyingPartyEntityConfiguration,
|
|
50
|
-
options
|
|
52
|
+
options,
|
|
51
53
|
);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { JWK } from "../../utils/jwk";
|
|
3
|
-
import { BaseEntityConfiguration } from "../common/types";
|
|
4
1
|
import {
|
|
5
|
-
itWalletCredentialIssuerMetadataV1_3,
|
|
6
2
|
itWalletAuthorizationServerMetadataV1_3,
|
|
7
|
-
|
|
3
|
+
itWalletCredentialIssuerMetadataV1_3,
|
|
8
4
|
itWalletCredentialVerifierMetadataV1_3,
|
|
5
|
+
itWalletSolutionEntityMetadataV1_3,
|
|
9
6
|
} from "@pagopa/io-wallet-oid-federation";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
import { JWK } from "../../utils/jwk";
|
|
10
|
+
import { BaseEntityConfiguration } from "../common/types";
|
|
10
11
|
|
|
11
12
|
// Entity configuration for a Credential Issuer
|
|
12
13
|
export type CredentialIssuerEntityConfiguration = z.infer<
|
|
@@ -17,13 +18,13 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
17
18
|
payload: z.object({
|
|
18
19
|
jwks: z.object({ keys: z.array(JWK) }),
|
|
19
20
|
metadata: z.object({
|
|
20
|
-
openid_credential_issuer: itWalletCredentialIssuerMetadataV1_3,
|
|
21
21
|
oauth_authorization_server: itWalletAuthorizationServerMetadataV1_3,
|
|
22
|
+
openid_credential_issuer: itWalletCredentialIssuerMetadataV1_3,
|
|
22
23
|
openid_credential_verifier:
|
|
23
24
|
itWalletCredentialVerifierMetadataV1_3.optional(),
|
|
24
25
|
}),
|
|
25
26
|
}),
|
|
26
|
-
})
|
|
27
|
+
}),
|
|
27
28
|
);
|
|
28
29
|
|
|
29
30
|
// Entity configuration for a Relying Party
|
|
@@ -37,7 +38,7 @@ export const RelyingPartyEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
37
38
|
openid_credential_verifier: itWalletCredentialVerifierMetadataV1_3,
|
|
38
39
|
}),
|
|
39
40
|
}),
|
|
40
|
-
})
|
|
41
|
+
}),
|
|
41
42
|
);
|
|
42
43
|
|
|
43
44
|
// Entity configuration for a Wallet Provider
|
|
@@ -51,7 +52,7 @@ export const WalletProviderEntityConfiguration = BaseEntityConfiguration.and(
|
|
|
51
52
|
wallet_solution: itWalletSolutionEntityMetadataV1_3,
|
|
52
53
|
}),
|
|
53
54
|
}),
|
|
54
|
-
})
|
|
55
|
+
}),
|
|
55
56
|
);
|
|
56
57
|
|
|
57
58
|
// Maps any entity configuration by the union of every possible shapes
|
package/src/utils/auth.ts
CHANGED
package/src/utils/callbacks.ts
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
+
type CryptoContext,
|
|
2
3
|
EncryptJwe,
|
|
3
4
|
getJwkFromHeader,
|
|
4
5
|
SignJWT,
|
|
5
|
-
type CryptoContext,
|
|
6
6
|
} from "@pagopa/io-react-native-jwt";
|
|
7
7
|
import { verify } from "@pagopa/io-react-native-jwt";
|
|
8
8
|
import { type CallbackContext, type JwtSigner } from "@pagopa/io-wallet-oauth2";
|
|
9
9
|
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
10
10
|
import { X509 } from "jsrsasign";
|
|
11
|
-
|
|
12
|
-
import { assert, generateRandomBytes } from "./misc";
|
|
11
|
+
|
|
13
12
|
import type { JWK } from "./jwk";
|
|
14
|
-
import { getJwkFromCertificateChain, getJwkFromTrustChain } from "./crypto";
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
>;
|
|
14
|
+
import { getJwkFromCertificateChain, getJwkFromTrustChain } from "./crypto";
|
|
15
|
+
import { IoWalletError } from "./errors";
|
|
16
|
+
import { assert, generateRandomBytes } from "./misc";
|
|
20
17
|
|
|
21
18
|
// Fix incompatibility between ArrayBuffer types
|
|
22
19
|
type DigestFixed = (
|
|
23
|
-
data:
|
|
24
|
-
algorithm?: string
|
|
20
|
+
data: ArrayBuffer | ArrayBufferView | string,
|
|
21
|
+
algorithm?: string,
|
|
25
22
|
) => Uint8Array;
|
|
26
23
|
|
|
24
|
+
type PartialCallbackContext = Omit<
|
|
25
|
+
CallbackContext,
|
|
26
|
+
"clientAuthentication" | "signJwt"
|
|
27
|
+
>;
|
|
28
|
+
|
|
27
29
|
/**
|
|
28
30
|
* Extract the signing JWK from one of the supported signer methods.
|
|
29
31
|
* @param signer - The JWT signer.
|
|
@@ -31,17 +33,17 @@ type DigestFixed = (
|
|
|
31
33
|
*/
|
|
32
34
|
const getJwkFromSigner = async (signer: JwtSigner): Promise<JWK> => {
|
|
33
35
|
switch (signer.method) {
|
|
34
|
-
case "x5c":
|
|
35
|
-
return getJwkFromCertificateChain(signer.x5c);
|
|
36
36
|
case "federation": {
|
|
37
37
|
assert(
|
|
38
38
|
signer.trustChain && signer.trustChain.length > 0,
|
|
39
|
-
"Trust chain is required for federation signer"
|
|
39
|
+
"Trust chain is required for federation signer",
|
|
40
40
|
);
|
|
41
41
|
return getJwkFromTrustChain(signer.trustChain, signer.kid);
|
|
42
42
|
}
|
|
43
43
|
case "jwk":
|
|
44
44
|
return signer.publicJwk as JWK;
|
|
45
|
+
case "x5c":
|
|
46
|
+
return getJwkFromCertificateChain(signer.x5c);
|
|
45
47
|
default:
|
|
46
48
|
throw new IoWalletError(`Unsupported signer method: ${signer.method}`);
|
|
47
49
|
}
|
|
@@ -53,25 +55,15 @@ const getJwkFromSigner = async (signer: JwtSigner): Promise<JWK> => {
|
|
|
53
55
|
* as they require parameters that depends on the use case.
|
|
54
56
|
*/
|
|
55
57
|
export const partialCallbacks: PartialCallbackContext = {
|
|
56
|
-
generateRandom: generateRandomBytes,
|
|
57
|
-
hash: digest as DigestFixed,
|
|
58
|
-
encryptJwe: async ({ publicJwk, alg, enc, kid }, data) => ({
|
|
59
|
-
// @ts-expect-error `alg` and `enc` are strings, but EncryptJwe expects specific string literals
|
|
60
|
-
jwe: await new EncryptJwe(data, { alg, enc, kid }).encrypt(publicJwk),
|
|
61
|
-
encryptionJwk: publicJwk,
|
|
62
|
-
}),
|
|
63
|
-
verifyJwt: async (jwtSigner, jwt) => {
|
|
64
|
-
try {
|
|
65
|
-
const signerJwk = await getJwkFromSigner(jwtSigner);
|
|
66
|
-
await verify(jwt.compact, signerJwk);
|
|
67
|
-
return { verified: true, signerJwk };
|
|
68
|
-
} catch {
|
|
69
|
-
return { verified: false };
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
58
|
decryptJwe: () => {
|
|
73
59
|
throw new IoWalletError("decryptJwe is not implemented");
|
|
74
60
|
},
|
|
61
|
+
encryptJwe: async ({ alg, enc, kid, publicJwk }, data) => ({
|
|
62
|
+
encryptionJwk: publicJwk,
|
|
63
|
+
// @ts-expect-error `alg` and `enc` are strings, but EncryptJwe expects specific string literals
|
|
64
|
+
jwe: await new EncryptJwe(data, { alg, enc, kid }).encrypt(publicJwk),
|
|
65
|
+
}),
|
|
66
|
+
generateRandom: generateRandomBytes,
|
|
75
67
|
getX509CertificateMetadata: (certificate) => {
|
|
76
68
|
const x509 = new X509();
|
|
77
69
|
x509.readCertPEM(certificate);
|
|
@@ -88,6 +80,16 @@ export const partialCallbacks: PartialCallbackContext = {
|
|
|
88
80
|
|
|
89
81
|
return { sanDnsNames, sanUriNames };
|
|
90
82
|
},
|
|
83
|
+
hash: digest as DigestFixed,
|
|
84
|
+
verifyJwt: async (jwtSigner, jwt) => {
|
|
85
|
+
try {
|
|
86
|
+
const signerJwk = await getJwkFromSigner(jwtSigner);
|
|
87
|
+
await verify(jwt.compact, signerJwk);
|
|
88
|
+
return { signerJwk, verified: true };
|
|
89
|
+
} catch {
|
|
90
|
+
return { verified: false };
|
|
91
|
+
}
|
|
92
|
+
},
|
|
91
93
|
};
|
|
92
94
|
|
|
93
95
|
type JWSHeader = Parameters<typeof getJwkFromHeader>[0];
|
|
@@ -102,18 +104,17 @@ type JWSHeader = Parameters<typeof getJwkFromHeader>[0];
|
|
|
102
104
|
* @returns Function that implements `verifyJwt` callback
|
|
103
105
|
*/
|
|
104
106
|
export const createVerifyJwtFromJwks = (
|
|
105
|
-
jwks: JWK[]
|
|
106
|
-
): CallbackContext["verifyJwt"] =>
|
|
107
|
-
|
|
107
|
+
jwks: JWK[],
|
|
108
|
+
): CallbackContext["verifyJwt"] =>
|
|
109
|
+
async function verifyJwt(_, jwt) {
|
|
108
110
|
try {
|
|
109
111
|
const signerJwk = getJwkFromHeader(jwt.header as JWSHeader, jwks);
|
|
110
112
|
await verify(jwt.compact, signerJwk);
|
|
111
|
-
return { verified: true
|
|
113
|
+
return { signerJwk, verified: true };
|
|
112
114
|
} catch {
|
|
113
115
|
return { verified: false };
|
|
114
116
|
}
|
|
115
117
|
};
|
|
116
|
-
};
|
|
117
118
|
|
|
118
119
|
/**
|
|
119
120
|
* Create a signJwt implementation that signs a JWT using the provided CryptoContext.
|
|
@@ -121,9 +122,9 @@ export const createVerifyJwtFromJwks = (
|
|
|
121
122
|
* @returns Function that implements `signJwt` callback
|
|
122
123
|
*/
|
|
123
124
|
export const createSignJwtFromCryptoContext = (
|
|
124
|
-
cryptoContext: CryptoContext
|
|
125
|
-
): CallbackContext["signJwt"] =>
|
|
126
|
-
|
|
125
|
+
cryptoContext: CryptoContext,
|
|
126
|
+
): CallbackContext["signJwt"] =>
|
|
127
|
+
async function signJwt(jwtSigner, { header, payload }) {
|
|
127
128
|
return {
|
|
128
129
|
jwt: await new SignJWT(cryptoContext)
|
|
129
130
|
.setProtectedHeader(header)
|
|
@@ -135,4 +136,3 @@ export const createSignJwtFromCryptoContext = (
|
|
|
135
136
|
: await cryptoContext.getPublicKey(),
|
|
136
137
|
};
|
|
137
138
|
};
|
|
138
|
-
};
|
package/src/utils/config.ts
CHANGED
|
@@ -10,13 +10,6 @@ export const sdkConfigV1_0 = new IoWalletSdkConfig({
|
|
|
10
10
|
itWalletSpecsVersion: ItWalletSpecsVersion.V1_0,
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* IO Wallet SDK configuration object for v1.3 specs.
|
|
15
|
-
*/
|
|
16
|
-
export const sdkConfigV1_3 = new IoWalletSdkConfig({
|
|
17
|
-
itWalletSpecsVersion: ItWalletSpecsVersion.V1_3,
|
|
18
|
-
});
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* IO Wallet SDK configuration object for v1.4 specs.
|
|
22
15
|
*/
|
package/src/utils/credentials.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { decodeSdJwtSync } from "@sd-jwt/decode";
|
|
2
|
-
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
3
1
|
import { thumbprint } from "@pagopa/io-react-native-jwt";
|
|
2
|
+
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
3
|
+
import { decodeSdJwtSync } from "@sd-jwt/decode";
|
|
4
|
+
|
|
4
5
|
import type { CredentialFormat } from "../credential/issuance";
|
|
5
6
|
import type { JWK } from "./jwk";
|
|
6
|
-
|
|
7
|
+
|
|
7
8
|
import {
|
|
8
9
|
LEGACY_SD_JWT,
|
|
9
10
|
SdJwt4VCBase,
|
|
10
11
|
type SupportedSdJwtLegacyFormat,
|
|
11
12
|
} from "../sd-jwt/types";
|
|
13
|
+
import { IoWalletError } from "./errors";
|
|
12
14
|
|
|
13
15
|
const SD_JWT = ["dc+sd-jwt", LEGACY_SD_JWT];
|
|
14
16
|
|
|
@@ -20,13 +22,13 @@ const SD_JWT = ["dc+sd-jwt", LEGACY_SD_JWT];
|
|
|
20
22
|
*/
|
|
21
23
|
export const extractJwkFromCredential = async (
|
|
22
24
|
credential: string,
|
|
23
|
-
format: CredentialFormat | SupportedSdJwtLegacyFormat
|
|
25
|
+
format: CredentialFormat | SupportedSdJwtLegacyFormat,
|
|
24
26
|
): Promise<JWK> => {
|
|
25
27
|
if (SD_JWT.includes(format)) {
|
|
26
28
|
// 1. SD-JWT case
|
|
27
29
|
const decoded = decodeSdJwtSync(
|
|
28
30
|
fixLegacyCredentialSdJwt(credential),
|
|
29
|
-
digest
|
|
31
|
+
digest,
|
|
30
32
|
);
|
|
31
33
|
const { cnf } = decoded.jwt.payload as SdJwt4VCBase["payload"];
|
|
32
34
|
if (cnf.jwk) {
|
package/src/utils/crypto.ts
CHANGED
|
@@ -4,16 +4,18 @@ import {
|
|
|
4
4
|
getPublicKeyFixed,
|
|
5
5
|
sign,
|
|
6
6
|
} from "@pagopa/io-react-native-crypto";
|
|
7
|
-
import { v4 as uuidv4 } from "uuid";
|
|
8
7
|
import {
|
|
8
|
+
type CryptoContext,
|
|
9
9
|
decode,
|
|
10
10
|
thumbprint,
|
|
11
|
-
type CryptoContext,
|
|
12
11
|
} from "@pagopa/io-react-native-jwt";
|
|
13
|
-
import type { BaseEntityConfiguration } from "../trust/common/types";
|
|
14
|
-
import { JWK, JWKS } from "./jwk";
|
|
15
12
|
import { KEYUTIL, KJUR, RSAKey, X509 } from "jsrsasign";
|
|
13
|
+
import { v4 as uuidv4 } from "uuid";
|
|
14
|
+
|
|
15
|
+
import type { BaseEntityConfiguration } from "../trust/common/types";
|
|
16
|
+
|
|
16
17
|
import { IoWalletError } from "./errors";
|
|
18
|
+
import { JWK, JWKS } from "./jwk";
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
21
|
* Extension of the {@link CryptoContext} that adds key generation with optional key attestation.
|
|
@@ -29,8 +31,8 @@ export type KeyAttestationCryptoContext = CryptoContext & {
|
|
|
29
31
|
* @returns An object with a success flag and a key attestation, if it was generated.
|
|
30
32
|
*/
|
|
31
33
|
generateKeyWithAttestation(
|
|
32
|
-
challenge: string
|
|
33
|
-
): Promise<{ success: boolean
|
|
34
|
+
challenge: string,
|
|
35
|
+
): Promise<{ attestation?: string; success: boolean }>;
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
/**
|
|
@@ -40,29 +42,27 @@ export type KeyAttestationCryptoContext = CryptoContext & {
|
|
|
40
42
|
*
|
|
41
43
|
* @returns the crypto context
|
|
42
44
|
*/
|
|
43
|
-
export const createCryptoContextFor = (keytag: string): CryptoContext => {
|
|
44
|
-
|
|
45
|
-
async
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
};
|
|
45
|
+
export const createCryptoContextFor = (keytag: string): CryptoContext => ({
|
|
46
|
+
async getPublicKey() {
|
|
47
|
+
return getPublicKeyFixed(keytag).then(async (jwk) => ({
|
|
48
|
+
...jwk,
|
|
49
|
+
// Keys in the TEE are not stored with their KID, which is supposed to be assigned when they are included in JWK sets.
|
|
50
|
+
// (that is, KID is not a propoerty of the key itself, but it's property used to identify a key in a set).
|
|
51
|
+
// We assume the convention we use the thumbprint of the public key as KID, thus for easy development we decided to evaluate KID here
|
|
52
|
+
// However the values is an arbitrary string that might be anything
|
|
53
|
+
kid: await thumbprint(jwk),
|
|
54
|
+
}));
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Get a signature for a provided value.
|
|
58
|
+
* If the key pair doesn't exist yet, an error is raised.
|
|
59
|
+
* @param value
|
|
60
|
+
* @returns The signature for the value
|
|
61
|
+
*/
|
|
62
|
+
async getSignature(value: string) {
|
|
63
|
+
return sign(value, keytag);
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Executes the input function injecting an ephemeral crypto context.
|
|
@@ -73,7 +73,7 @@ export const createCryptoContextFor = (keytag: string): CryptoContext => {
|
|
|
73
73
|
* @returns The returned value of the input procedure.
|
|
74
74
|
*/
|
|
75
75
|
export const withEphemeralKey = async <R>(
|
|
76
|
-
fn: (ephemeralContext: CryptoContext) => Promise<R
|
|
76
|
+
fn: (ephemeralContext: CryptoContext) => Promise<R>,
|
|
77
77
|
): Promise<R> => {
|
|
78
78
|
// Use an ephemeral key to be destroyed after use
|
|
79
79
|
const keytag = `ephemeral-${uuidv4()}`;
|
|
@@ -110,7 +110,7 @@ export const getSigninJwkFromCert = (pemCert: string): JWK => {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
throw new IoWalletError(
|
|
113
|
-
"Unable to find the signing key inside the PEM certificate"
|
|
113
|
+
"Unable to find the signing key inside the PEM certificate",
|
|
114
114
|
);
|
|
115
115
|
};
|
|
116
116
|
|
|
@@ -122,12 +122,12 @@ export const getSigninJwkFromCert = (pemCert: string): JWK => {
|
|
|
122
122
|
* @throws Will throw an error if no suitable keys are found.
|
|
123
123
|
*/
|
|
124
124
|
export const getJwkFromCertificateChain = async (
|
|
125
|
-
certChain: string[]
|
|
125
|
+
certChain: string[],
|
|
126
126
|
): Promise<JWK> => {
|
|
127
127
|
const [leafCert] = certChain;
|
|
128
128
|
if (!leafCert) {
|
|
129
129
|
throw new IoWalletError(
|
|
130
|
-
"The provided certificate chain is invalid or malformed"
|
|
130
|
+
"The provided certificate chain is invalid or malformed",
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
const pemCert = convertBase64DerToPem(leafCert);
|
|
@@ -144,7 +144,7 @@ export const getJwkFromCertificateChain = async (
|
|
|
144
144
|
*/
|
|
145
145
|
export const getJwkFromTrustChain = (
|
|
146
146
|
trustChain: string[],
|
|
147
|
-
signerKid: string
|
|
147
|
+
signerKid: string,
|
|
148
148
|
): JWK => {
|
|
149
149
|
const [entityConfigurationJwt] = trustChain;
|
|
150
150
|
if (!entityConfigurationJwt) {
|
|
@@ -164,7 +164,7 @@ export const getJwkFromTrustChain = (
|
|
|
164
164
|
// Check metadata entries for additional JWKS like openid_credential_verifier
|
|
165
165
|
if (baseEntityConfig.metadata) {
|
|
166
166
|
for (const metadata of Object.values(
|
|
167
|
-
baseEntityConfig.metadata as Record<string, { jwks?: JWKS }
|
|
167
|
+
baseEntityConfig.metadata as Record<string, { jwks?: JWKS }>,
|
|
168
168
|
)) {
|
|
169
169
|
if (metadata.jwks) {
|
|
170
170
|
keys.push(...JWKS.parse(metadata.jwks).keys);
|
|
@@ -175,7 +175,7 @@ export const getJwkFromTrustChain = (
|
|
|
175
175
|
const federationJwk = keys.find((key) => key.kid === signerKid);
|
|
176
176
|
if (!federationJwk)
|
|
177
177
|
throw new IoWalletError(
|
|
178
|
-
"No suitable key was found in the provided trust chain"
|
|
178
|
+
"No suitable key was found in the provided trust chain",
|
|
179
179
|
);
|
|
180
180
|
return federationJwk;
|
|
181
181
|
};
|