@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","
|
|
1
|
+
{"version":3,"names":["z","FederationEntityMetadata","JWK","DisplayConfig","object","locale","string","name","ClaimConfig","display","array","optional","path","union","number","null","IssuanceErrorSupported","description","title","CredentialConfig","intersection","discriminatedUnion","format","literal","vct","doctype","authentic_source","claims","issuance_errors_supported","record","scope","IssuerConfig","authorization_endpoint","authorization_servers","tuple","credential_configurations_supported","credential_endpoint","credential_issuance_batch_size","credential_issuer","encrypted_response_enc_values_supported","federation_entity","keys","nonce_endpoint","pushed_authorization_request_endpoint","response_modes_supported","status_assertion_endpoint","token_endpoint"],"sourceRoot":"../../../../../src","sources":["credential/issuance/api/IssuerConfig.ts"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAEvB,SAASC,wBAAwB,QAAQ,6BAA6B;AACtE,SAASC,GAAG,QAAQ,oBAAoB;AAExC,MAAMC,aAAa,GAAGH,CAAC,CAACI,MAAM,CAAC;EAC7BC,MAAM,EAAEL,CAAC,CAACM,MAAM,CAAC,CAAC;EAClBC,IAAI,EAAEP,CAAC,CAACM,MAAM,CAAC;AACjB,CAAC,CAAC;AAEF,MAAME,WAAW,GAAGR,CAAC,CAACI,MAAM,CAAC;EAC3BK,OAAO,EAAET,CAAC,CAACU,KAAK,CAACP,aAAa,CAAC,CAACQ,QAAQ,CAAC,CAAC;EAC1CC,IAAI,EAAEZ,CAAC,CAACU,KAAK,CAACV,CAAC,CAACa,KAAK,CAAC,CAACb,CAAC,CAACM,MAAM,CAAC,CAAC,EAAEN,CAAC,CAACc,MAAM,CAAC,CAAC,EAAEd,CAAC,CAACe,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,MAAMC,sBAAsB,GAAGhB,CAAC,CAACI,MAAM,CAAC;EACtCK,OAAO,EAAET,CAAC,CAACU,KAAK,CACdV,CAAC,CAACI,MAAM,CAAC;IACPa,WAAW,EAAEjB,CAAC,CAACM,MAAM,CAAC,CAAC;IACvBD,MAAM,EAAEL,CAAC,CAACM,MAAM,CAAC,CAAC;IAClBY,KAAK,EAAElB,CAAC,CAACM,MAAM,CAAC;EAClB,CAAC,CACH;AACF,CAAC,CAAC;AAEF,MAAMa,gBAAgB,GAAGnB,CAAC,CAACoB,YAAY,CACrCpB,CAAC,CAACqB,kBAAkB,CAAC,QAAQ,EAAE,CAC7BrB,CAAC,CAACI,MAAM,CAAC;EAAEkB,MAAM,EAAEtB,CAAC,CAACuB,OAAO,CAAC,WAAW,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C,CAACH,QAAQ,CAAC,CAAC;EACrD2B,iBAAiB,EAAEtC,CAAC,CAACM,MAAM,CAAC,CAAC;EAC7BiC,uCAAuC,EAAEvC,CAAC,CAACU,KAAK,CAACV,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;EACvE6B,iBAAiB,EAAEvC,wBAAwB;EAC3CwC,IAAI,EAAEzC,CAAC,CAACU,KAAK,CAACR,GAAG,CAAC;EAClBwC,cAAc,EAAE1C,CAAC,CAACM,MAAM,CAAC,CAAC;EAC1BqC,qCAAqC,EAAE3C,CAAC,CAACM,MAAM,CAAC,CAAC;EACjD;AACF;AACA;EACEsC,wBAAwB,EAAE5C,CAAC,CAACU,KAAK,CAACV,CAAC,CAACM,MAAM,CAAC,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;EACxDkC,yBAAyB,EAAE7C,CAAC,CAACM,MAAM,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;EAChDmC,cAAc,EAAE9C,CAAC,CAACM,MAAM,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["credential/issuance/api/mrtd-pop/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["credential/issuance/api/mrtd-pop/index.ts"],"mappings":"AAwGA,cAAc,SAAS;AAAC"}
|
|
@@ -3,15 +3,15 @@ import * as z from "zod";
|
|
|
3
3
|
// The credential as a collection of attributes in plain value
|
|
4
4
|
|
|
5
5
|
export const AuthorizationDetail = z.object({
|
|
6
|
-
type: z.literal("openid_credential"),
|
|
7
6
|
credential_configuration_id: z.string(),
|
|
8
|
-
credential_identifiers: z.array(z.string())
|
|
7
|
+
credential_identifiers: z.array(z.string()),
|
|
8
|
+
type: z.literal("openid_credential")
|
|
9
9
|
});
|
|
10
10
|
export const TokenResponse = z.object({
|
|
11
11
|
access_token: z.string(),
|
|
12
|
-
refresh_token: z.string().optional(),
|
|
13
12
|
authorization_details: z.array(AuthorizationDetail),
|
|
14
13
|
expires_in: z.number().optional(),
|
|
14
|
+
refresh_token: z.string().optional(),
|
|
15
15
|
token_type: z.string()
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","AuthorizationDetail","object","
|
|
1
|
+
{"version":3,"names":["z","AuthorizationDetail","object","credential_configuration_id","string","credential_identifiers","array","type","literal","TokenResponse","access_token","authorization_details","expires_in","number","optional","refresh_token","token_type"],"sourceRoot":"../../../../../src","sources":["credential/issuance/api/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;;AAMxB;;AAeA,OAAO,MAAMC,mBAAmB,GAAGD,CAAC,CAACE,MAAM,CAAC;EAC1CC,2BAA2B,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EACvCC,sBAAsB,EAAEL,CAAC,CAACM,KAAK,CAACN,CAAC,CAACI,MAAM,CAAC,CAAC,CAAC;EAC3CG,IAAI,EAAEP,CAAC,CAACQ,OAAO,CAAC,mBAAmB;AACrC,CAAC,CAAC;AAGF,OAAO,MAAMC,aAAa,GAAGT,CAAC,CAACE,MAAM,CAAC;EACpCQ,YAAY,EAAEV,CAAC,CAACI,MAAM,CAAC,CAAC;EACxBO,qBAAqB,EAAEX,CAAC,CAACM,KAAK,CAACL,mBAAmB,CAAC;EACnDW,UAAU,EAAEZ,CAAC,CAACa,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACjCC,aAAa,EAAEf,CAAC,CAACI,MAAM,CAAC,CAAC,CAACU,QAAQ,CAAC,CAAC;EACpCE,UAAU,EAAEhB,CAAC,CAACI,MAAM,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IoWalletError } from "../../../utils/errors";
|
|
2
|
-
import {
|
|
2
|
+
import { Logger, LogLevel } from "../../../utils/logging";
|
|
3
3
|
/**
|
|
4
4
|
* Ensures that the credential type requested is supported by the issuer and contained in the
|
|
5
5
|
* issuer configuration.
|
|
@@ -37,6 +37,9 @@ export const selectResponseMode = (issuerConf, credentialIds) => {
|
|
|
37
37
|
throw new IoWalletError("Requested credentials have incompatible response_mode and cannot be requested with the same PAR request");
|
|
38
38
|
}
|
|
39
39
|
const [responseMode] = responseModeSet.values();
|
|
40
|
+
if (!responseMode) {
|
|
41
|
+
throw new IoWalletError(`No response mode found for requested credential IDs '${credentialIds}'`);
|
|
42
|
+
}
|
|
40
43
|
Logger.log(LogLevel.DEBUG, `Selected response mode ${responseMode} for credential IDs ${credentialIds}`);
|
|
41
44
|
const responseModeSupported = issuerConf.response_modes_supported;
|
|
42
45
|
if (responseModeSupported && !responseModeSupported.includes(responseMode)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IoWalletError","
|
|
1
|
+
{"version":3,"names":["IoWalletError","Logger","LogLevel","selectCredentialDefinition","issuerConf","credentialId","credential_configurations_supported","result","Object","keys","filter","e","includes","map","credential_configuration_id","type","log","ERROR","JSON","stringify","selectResponseMode","credentialIds","responseModeSet","Set","add","match","size","values","responseMode","DEBUG","responseModeSupported","response_modes_supported"],"sourceRoot":"../../../../../src","sources":["credential/issuance/common/02-start-user-authorization.ts"],"mappings":"AAEA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,MAAM,EAAEC,QAAQ,QAAQ,wBAAwB;AAKzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,GAAGA,CACxCC,UAAwB,EACxBC,YAAoB,KACI;EACxB,MAAMC,mCAAmC,GACvCF,UAAU,CAACE,mCAAmC;EAEhD,MAAM,CAACC,MAAM,CAAC,GAAGC,MAAM,CAACC,IAAI,CAACH,mCAAmC,CAAC,CAC9DI,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,QAAQ,CAACP,YAAY,CAAC,CA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AID,qBAAqB,IAAI,CAACA,qBAAqB,CAAClB,QAAQ,CAACgB,YAAY,CAAC,EAAE;IAC1E3B,MAAM,CAACe,GAAG,CACRd,QAAQ,CAACe,KAAK,EACb,2BAA0BW,YAAa,kEAAiEV,IAAI,CAACC,SAAS,CAACW,qBAAqB,CAAE,EACjJ,CAAC;IACD,MAAM,IAAI9B,aAAa,CACpB,qCAAoCqB,aAAc,GACrD,CAAC;EACH;EAEA,OAAOO,YAAY;AACrB,CAAC"}
|
|
@@ -46,8 +46,8 @@ const parseCredentialMDoc = function (credentialConfig, _ref) {
|
|
|
46
46
|
const displayableClaims = credentialConfig.claims.filter(c => c.display !== undefined);
|
|
47
47
|
const attrDefinitions = displayableClaims.map(_ref2 => {
|
|
48
48
|
let {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
display,
|
|
50
|
+
path: [namespace, attribute]
|
|
51
51
|
} = _ref2;
|
|
52
52
|
return [namespace, attribute, display];
|
|
53
53
|
});
|
|
@@ -111,7 +111,6 @@ const parseCredentialMDoc = function (credentialConfig, _ref) {
|
|
|
111
111
|
return {
|
|
112
112
|
...acc,
|
|
113
113
|
[getParsedCredentialClaimKey(attrDefNamespace, attrKey)]: {
|
|
114
|
-
value,
|
|
115
114
|
name: display.reduce((names, _ref12) => {
|
|
116
115
|
let {
|
|
117
116
|
locale,
|
|
@@ -121,7 +120,8 @@ const parseCredentialMDoc = function (credentialConfig, _ref) {
|
|
|
121
120
|
...names,
|
|
122
121
|
[locale]: name
|
|
123
122
|
};
|
|
124
|
-
}, {})
|
|
123
|
+
}, {}),
|
|
124
|
+
value
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}, {});
|
|
@@ -132,8 +132,8 @@ const parseCredentialMDoc = function (credentialConfig, _ref) {
|
|
|
132
132
|
}).map(_ref14 => {
|
|
133
133
|
let [namespace, key, value] = _ref14;
|
|
134
134
|
return [getParsedCredentialClaimKey(namespace, key), {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
name: key,
|
|
136
|
+
value
|
|
137
137
|
}];
|
|
138
138
|
}));
|
|
139
139
|
return {
|
|
@@ -154,17 +154,20 @@ export const verifyAndParseCredentialMDoc = async (issuerConf, credential, crede
|
|
|
154
154
|
}
|
|
155
155
|
const decoded = await verifyCredentialMDoc(credential, x509CertRoot, credentialCryptoContext);
|
|
156
156
|
const credentialConfig = issuerConf.credential_configurations_supported[credentialConfigurationId];
|
|
157
|
+
if (!credentialConfig) {
|
|
158
|
+
throw new IoWalletError(`Missing credential configuration for ${credentialConfigurationId}`);
|
|
159
|
+
}
|
|
157
160
|
const parsedCredential = parseCredentialMDoc(credentialConfig, decoded, ignoreMissingAttributes, includeUndefinedAttributes);
|
|
158
161
|
const {
|
|
159
162
|
signed,
|
|
160
163
|
validUntil
|
|
161
164
|
} = decoded.issuerSigned.issuerAuth.payload.validityInfo;
|
|
162
165
|
return {
|
|
163
|
-
parsedCredential,
|
|
164
166
|
credential,
|
|
165
167
|
credentialConfigurationId,
|
|
166
168
|
expiration: validUntil,
|
|
167
|
-
issuedAt: signed
|
|
169
|
+
issuedAt: signed,
|
|
170
|
+
parsedCredential
|
|
168
171
|
};
|
|
169
172
|
};
|
|
170
173
|
//# sourceMappingURL=06-verify-and-parse-credential.mdoc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getParsedCredentialClaimKey","verify","verifyMdoc","IoWalletError","isSameThumbprint","verifyCredentialMDoc","rawCredential","x509CertRoot","holderBindingContext","decodedCredential","holderBindingKey","Promise","all","getPublicKey","key","issuerSigned","issuerAuth","payload","deviceKeyInfo","deviceKey","parseCredentialMDoc","credentialConfig","_ref","ignoreMissingAttributes","arguments","length","undefined","includeUndefinedAttributes","claims","displayableClaims","filter","c","display","attrDefinitions","map","_ref2","path","namespace","attribute","nameSpaces","flatNamespaces","Object","entries","flatMap","_ref3","values","v","elementIdentifier","elementValue","attrsNotInDisclosures","_ref4","attrDefNamespace","attrKey","some","_ref5","claim","missing","_ref6","join","received","_ref7","definedValues","_ref8","_flatNamespaces$find","value","find","_ref9","name","_ref10","_","__","definition","reduce","acc","_ref11","names","_ref12","locale","undefinedValues","fromEntries","_ref13","_ref14","verifyAndParseCredentialMDoc","issuerConf","credential","credentialConfigurationId","_ref15","credentialCryptoContext","decoded","credential_configurations_supported","parsedCredential","signed","validUntil","validityInfo","expiration","issuedAt"],"sourceRoot":"../../../../../src","sources":["credential/issuance/common/06-verify-and-parse-credential.mdoc.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["getParsedCredentialClaimKey","verify","verifyMdoc","IoWalletError","isSameThumbprint","verifyCredentialMDoc","rawCredential","x509CertRoot","holderBindingContext","decodedCredential","holderBindingKey","Promise","all","getPublicKey","key","issuerSigned","issuerAuth","payload","deviceKeyInfo","deviceKey","parseCredentialMDoc","credentialConfig","_ref","ignoreMissingAttributes","arguments","length","undefined","includeUndefinedAttributes","claims","displayableClaims","filter","c","display","attrDefinitions","map","_ref2","path","namespace","attribute","nameSpaces","flatNamespaces","Object","entries","flatMap","_ref3","values","v","elementIdentifier","elementValue","attrsNotInDisclosures","_ref4","attrDefNamespace","attrKey","some","_ref5","claim","missing","_ref6","join","received","_ref7","definedValues","_ref8","_flatNamespaces$find","value","find","_ref9","name","_ref10","_","__","definition","reduce","acc","_ref11","names","_ref12","locale","undefinedValues","fromEntries","_ref13","_ref14","verifyAndParseCredentialMDoc","issuerConf","credential","credentialConfigurationId","_ref15","credentialCryptoContext","decoded","credential_configurations_supported","parsedCredential","signed","validUntil","validityInfo","expiration","issuedAt"],"sourceRoot":"../../../../../src","sources":["credential/issuance/common/06-verify-and-parse-credential.mdoc.ts"],"mappings":"AAOA,SACEA,2BAA2B,EAC3BC,MAAM,IAAIC,UAAU,QACf,eAAe;AACtB,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,gBAAgB,QAAQ,oBAAoB;AAerD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AAC;EAED,MAAMlE,gBAAgB,GACpB8D,UAAU,CAACM,mCAAmC,CAACJ,yBAAyB,CAAC;EAC3E,IAAI,CAAChE,gBAAgB,EAAE;IACrB,MAAM,IAAIlB,aAAa,CACpB,wCAAuCkF,yBAA0B,EACpE,CAAC;EACH;EACA,MAAMK,gBAAgB,GAAGtE,mBAAmB,CAC1CC,gBAAgB,EAChBmE,OAAO,EACPjE,uBAAuB,EACvBI,0BACF,CAAC;EAED,MAAM;IAAEgE,MAAM;IAAEC;EAAW,CAAC,GAC1BJ,OAAO,CAACzE,YAAY,CAACC,UAAU,CAACC,OAAO,CAAC4E,YAAY;EAEtD,OAAO;IACLT,UAAU;IACVC,yBAAyB;IACzBS,UAAU,EAAEF,UAAU;IACtBG,QAAQ,EAAEJ,MAAM;IAChBD;EACF,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { verify as verifyJwt } from "@pagopa/io-react-native-jwt";
|
|
2
2
|
import { SDJwtInstance } from "@sd-jwt/core";
|
|
3
3
|
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
4
|
-
import {
|
|
4
|
+
import { MissingX509CertsError } from "../../../trust/common/errors";
|
|
5
|
+
import { fixLegacyCredentialSdJwt } from "../../../utils/credentials";
|
|
5
6
|
import { IoWalletError } from "../../../utils/errors";
|
|
6
|
-
import { LogLevel, Logger } from "../../../utils/logging";
|
|
7
7
|
import { isSameThumbprint } from "../../../utils/jwk";
|
|
8
|
-
import {
|
|
8
|
+
import { Logger, LogLevel } from "../../../utils/logging";
|
|
9
|
+
import { isPathEqual, isPrefixOf } from "../../../utils/parser";
|
|
9
10
|
import { verifyX509Chain } from "../../../utils/x509";
|
|
10
|
-
import { MissingX509CertsError } from "../../../trust/common/errors";
|
|
11
11
|
/**
|
|
12
12
|
* Parse a Sd-Jwt credential according to the issuer configuration
|
|
13
13
|
* @param credentialConfig - the list of supported credentials, as defined in the issuer configuration with their claims metadata
|
|
@@ -202,9 +202,9 @@ export const verifyAndParseCredentialSdJwt = async (issuerConf, credential, cred
|
|
|
202
202
|
const expiration = new Date(parsedCredentialRaw.exp * 1000);
|
|
203
203
|
Logger.log(LogLevel.DEBUG, `Parsed credential: ${JSON.stringify(parsedCredential)}\nIssued at: ${issuedAt}`);
|
|
204
204
|
return {
|
|
205
|
-
parsedCredential,
|
|
206
205
|
expiration,
|
|
207
|
-
issuedAt
|
|
206
|
+
issuedAt,
|
|
207
|
+
parsedCredential
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
//# sourceMappingURL=06-verify-and-parse-credential.sdjwt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["verify","verifyJwt","SDJwtInstance","digest","
|
|
1
|
+
{"version":3,"names":["verify","verifyJwt","SDJwtInstance","digest","MissingX509CertsError","fixLegacyCredentialSdJwt","IoWalletError","isSameThumbprint","Logger","LogLevel","isPathEqual","isPrefixOf","verifyX509Chain","parseCredentialSdJwt","credentialConfig","parsedCredentialRaw","ignoreMissingAttributes","arguments","length","undefined","includeUndefinedAttributes","displayableClaims","claims","filter","c","display","missingPaths","rootKeysToVerify","Set","map","path","p","rootKey","push","missing","join","received","Object","keys","getDisplayNames","match","find","nameMap","entry","locale","name","processLevel","currentData","currentPath","Array","isArray","item","dataObj","result","processedKeys","configKeysAtThisLevel","claim","nextPart","includes","key","stringKey","toString","dataValue","newPath","localizedNames","value","add","entries","has","sdJwtInstanceVerifier","data","signature","options","issuerKeys","clockTolerance","skewSeconds","verifyCredentialSdJwt","rawCredential","holderBindingContext","sdJwtInstance","hasher","verifier","verifiedCredential","holderBindingKey","Promise","all","getPublicKey","cnf","payload","jwk","message","kid","log","ERROR","decode","verifyAndParseCredentialSdJwt","issuerConf","credential","credentialConfigurationId","_ref","x509CertRoot","credentialCryptoContext","validateCertificateChain","decoded","DEBUG","JSON","stringify","_decoded$jwt","x5c","jwt","header","credential_configurations_supported","getClaims","parsedCredential","issuedAt","iat","Date","exp","expiration"],"sour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,OAAO;IACLI,UAAU;IACVJ,QAAQ;IACRD;EACF,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IoWalletError","serializeAttrs","AuthorizationError","code","
|
|
1
|
+
{"version":3,"names":["IoWalletError","serializeAttrs","AuthorizationError","code","AuthorizationIdpError","constructor","error","errorDescription"],"sourceRoot":"../../../../../src","sources":["credential/issuance/common/errors.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,cAAc,QAAQ,uBAAuB;;AAErE;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,SAASF,aAAa,CAAC;EACpDG,IAAI,GAAG,mCAAmC;AAC5C;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,SAASJ,aAAa,CAAC;EACvDG,IAAI,GAAG,sDAAsD;EAK7DE,WAAWA,CAACC,KAAa,EAAEC,gBAAyB,EAAE;IACpD,KAAK,CAACN,cAAc,CAAC;MAAEK,KAAK;MAAEC;IAAiB,CAAC,CAAC,CAAC;IAClD,IAAI,CAACD,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,gBAAgB,GAAGA,gBAAgB;EAC1C;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Errors","Issuance","V1_0_0","
|
|
1
|
+
{"version":3,"names":["Errors","Issuance","V1_0_0","V1_4_6"],"sourceRoot":"../../../../src","sources":["credential/issuance/index.ts"],"mappings":"AAAA,OAAO,KAAKA,MAAM,MAAM,iBAAiB;AACzC,SAASA,MAAM;AAEf,SAASC,QAAQ,IAAIC,MAAM,QAAQ,UAAU;AAC7C,SAASD,QAAQ,IAAIE,MAAM,QAAQ,UAAU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { verifyMrtdChallenge } from "@pagopa/io-wallet-oauth2";
|
|
2
|
-
import { IoWalletError } from "../../../utils/errors";
|
|
3
2
|
import { createVerifyJwtFromJwks } from "../../../utils/callbacks";
|
|
3
|
+
import { IoWalletError } from "../../../utils/errors";
|
|
4
4
|
export const verifyAndParseChallengeInfo = async (issuerConf, challengeInfoJwt, _ref) => {
|
|
5
5
|
let {
|
|
6
6
|
wiaCryptoContext
|
|
@@ -10,11 +10,11 @@ export const verifyAndParseChallengeInfo = async (issuerConf, challengeInfoJwt,
|
|
|
10
10
|
throw new IoWalletError("Could not extract client_id from Wallet Attestation");
|
|
11
11
|
}
|
|
12
12
|
const verified = await verifyMrtdChallenge({
|
|
13
|
-
challengeJwt: challengeInfoJwt,
|
|
14
|
-
clientId,
|
|
15
13
|
callbacks: {
|
|
16
14
|
verifyJwt: createVerifyJwtFromJwks(issuerConf.keys)
|
|
17
|
-
}
|
|
15
|
+
},
|
|
16
|
+
challengeJwt: challengeInfoJwt,
|
|
17
|
+
clientId
|
|
18
18
|
});
|
|
19
19
|
return verified.payload;
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["verifyMrtdChallenge","
|
|
1
|
+
{"version":3,"names":["verifyMrtdChallenge","createVerifyJwtFromJwks","IoWalletError","verifyAndParseChallengeInfo","issuerConf","challengeInfoJwt","_ref","wiaCryptoContext","clientId","getPublicKey","then","x","kid","verified","callbacks","verifyJwt","keys","challengeJwt","payload"],"sourceRoot":"../../../../../src","sources":["credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,0BAA0B;AAI9D,SAASC,uBAAuB,QAAQ,0BAA0B;AAClE,SAASC,aAAa,QAAQ,uBAAuB;AAErD,OAAO,MAAMC,2BAAsE,GACjF,MAAAA,CAAOC,UAAU,EAAEC,gBAAgB,EAAAC,IAAA,KAA2B;EAAA,IAAzB;IAAEC;EAAiB,CAAC,GAAAD,IAAA;EACvD,MAAME,QAAQ,GAAG,MAAMD,gBAAgB,CAACE,YAAY,CAAC,CAAC,CAACC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACC,GAAG,CAAC;EAEzE,IAAI,CAACJ,QAAQ,EAAE;IACb,MAAM,IAAIN,aAAa,CACrB,qDACF,CAAC;EACH;EAEA,MAAMW,QAAQ,GAAG,MAAMb,mBAAmB,CAAC;IACzCc,SAAS,EAAE;MACTC,SAAS,EAAEd,uBAAuB,CAACG,UAAU,CAACY,IAAI;IACpD,CAAC;IACDC,YAAY,EAAEZ,gBAAgB;IAC9BG;EACF,CAAC,CAAC;EAEF,OAAOK,QAAQ,CAACK,OAAO;AACzB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createClientAttestationPopJwt, fetchMrtdPopInit } from "@pagopa/io-wallet-oauth2";
|
|
2
2
|
import { UnexpectedStatusCodeError as SdkUnexpectedStatusCodeError } from "@pagopa/io-wallet-utils";
|
|
3
|
-
import { Logger, LogLevel } from "../../../utils/logging";
|
|
4
|
-
import { IssuerResponseError, IssuerResponseErrorCodes, ResponseErrorBuilder } from "../../../utils/errors";
|
|
5
3
|
import { createSignJwtFromCryptoContext, createVerifyJwtFromJwks, partialCallbacks } from "../../../utils/callbacks";
|
|
4
|
+
import { IssuerResponseError, IssuerResponseErrorCodes, ResponseErrorBuilder } from "../../../utils/errors";
|
|
5
|
+
import { Logger, LogLevel } from "../../../utils/logging";
|
|
6
6
|
/**
|
|
7
7
|
* Factory function to create `initChallenge` for MRTD PoP flow.
|
|
8
8
|
* The factory is needed to inject version specific SDK configuration.
|
|
@@ -17,35 +17,35 @@ export function createInitChallenge(config) {
|
|
|
17
17
|
wiaCryptoContext
|
|
18
18
|
} = context;
|
|
19
19
|
const clientAttestationDPoP = await createClientAttestationPopJwt({
|
|
20
|
-
|
|
20
|
+
authorizationServer: issuerConf.credential_issuer,
|
|
21
21
|
callbacks: {
|
|
22
22
|
generateRandom: partialCallbacks.generateRandom,
|
|
23
23
|
signJwt: createSignJwtFromCryptoContext(wiaCryptoContext)
|
|
24
24
|
},
|
|
25
25
|
clientAttestation: walletInstanceAttestation,
|
|
26
|
-
|
|
26
|
+
config: config.sdkConfig,
|
|
27
27
|
signer: {
|
|
28
|
-
method: "jwk",
|
|
29
28
|
alg: "ES256",
|
|
29
|
+
method: "jwk",
|
|
30
30
|
publicJwk: await wiaCryptoContext.getPublicKey()
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const initResult = await fetchMrtdPopInit({
|
|
34
|
-
|
|
34
|
+
callbacks: {
|
|
35
|
+
fetch: appFetch,
|
|
36
|
+
verifyJwt: createVerifyJwtFromJwks(issuerConf.keys)
|
|
37
|
+
},
|
|
38
|
+
clientAttestationDPoP,
|
|
35
39
|
mrtdAuthSession: mrtd_auth_session,
|
|
36
40
|
mrtdPopJwtNonce: mrtd_pop_jwt_nonce,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
callbacks: {
|
|
40
|
-
verifyJwt: createVerifyJwtFromJwks(issuerConf.keys),
|
|
41
|
-
fetch: appFetch
|
|
42
|
-
}
|
|
41
|
+
popInitEndpoint: initUrl,
|
|
42
|
+
walletAttestation: walletInstanceAttestation
|
|
43
43
|
}).catch(handleInitChallengeError);
|
|
44
44
|
return {
|
|
45
45
|
challenge: initResult.challenge,
|
|
46
46
|
mrtd_pop_nonce: initResult.mrtdPopNonce,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
mrz: initResult.mrz,
|
|
48
|
+
pop_verify_endpoint: initResult.popVerifyEndpoint
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createClientAttestationPopJwt","fetchMrtdPopInit","UnexpectedStatusCodeError","SdkUnexpectedStatusCodeError","
|
|
1
|
+
{"version":3,"names":["createClientAttestationPopJwt","fetchMrtdPopInit","UnexpectedStatusCodeError","SdkUnexpectedStatusCodeError","createSignJwtFromCryptoContext","createVerifyJwtFromJwks","partialCallbacks","IssuerResponseError","IssuerResponseErrorCodes","ResponseErrorBuilder","Logger","LogLevel","createInitChallenge","config","initChallenge","issuerConf","initUrl","mrtd_auth_session","mrtd_pop_jwt_nonce","context","appFetch","fetch","walletInstanceAttestation","wiaCryptoContext","clientAttestationDPoP","authorizationServer","credential_issuer","callbacks","generateRandom","signJwt","clientAttestation","sdkConfig","signer","alg","method","publicJwk","getPublicKey","initResult","verifyJwt","keys","mrtdAuthSession","mrtdPopJwtNonce","popInitEndpoint","walletAttestation","catch","handleInitChallengeError","challenge","mrtd_pop_nonce","mrtdPopNonce","mrz","pop_verify_endpoint","popVerifyEndpoint","e","log","ERROR","handle","code","MrtdChallengeInitRequestFailed","message","buildFrom"],"sourceRoot":"../../../../../src","sources":["credential/issuance/mrtd-pop/02-init-challenge.ts"],"mappings":"AAAA,SACEA,6BAA6B,EAC7BC,gBAAgB,QACX,0BAA0B;AACjC,SAEEC,yBAAyB,IAAIC,4BAA4B,QACpD,yBAAyB;AAIhC,SACEC,8BAA8B,EAC9BC,uBAAuB,EACvBC,gBAAgB,QACX,0BAA0B;AACjC,SACEC,mBAAmB,EACnBC,wBAAwB,EACxBC,oBAAoB,QACf,uBAAuB;AAC9B,SAASC,MAAM,EAAEC,QAAQ,QAAQ,wBAAwB;AAMzD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CACjCC,MAAc,EACe;EAC7B,OAAO,eAAeC,aAAaA,CACjCC,UAAU,EACVC,OAAO,EACPC,iBAAiB,EACjBC,kBAAkB,EAClBC,OAAO,EACP;IACA,MAAM;MACJC,QAAQ,GAAGC,KAAK;MAChBC,yBAAyB;MACzBC;IACF,CAAC,GAAGJ,OAAO;IAEX,MAAMK,qBAAqB,GAAG,MAAMxB,6BAA6B,CAAC;MAChEyB,mBAAmB,EAAEV,UAAU,CAACW,iBAAiB;MACjDC,SAAS,EAAE;QACTC,cAAc,EAAEtB,gBAAgB,CAACsB,cAAc;QAC/CC,OAAO,EAAEzB,8BAA8B,CAACmB,gBAAgB;MAC1D,CAAC;MACDO,iBAAiB,EAAER,yBAAyB;MAC5CT,MAAM,EAAEA,MAAM,CAACkB,SAAS;MACxBC,MAAM,EAAE;QACNC,GAAG,EAAE,OAAO;QACZC,MAAM,EAAE,KAAK;QACbC,SAAS,EAAE,MAAMZ,gBAAgB,CAACa,YAAY,CAAC;MACjD;IACF,CAAC,CAAC;IAEF,MAAMC,UAAU,GAAG,MAAMpC,gBAAgB,CAAC;MACxC0B,SAAS,EAAE;QACTN,KAAK,EAAED,QAAQ;QACfkB,SAAS,EAAEjC,uBAAuB,CAACU,UAAU,CAACwB,IAAI;MACpD,CAAC;MACDf,qBAAqB;MACrBgB,eAAe,EAAEvB,iBAAiB;MAClCwB,eAAe,EAAEvB,kBAAkB;MACnCwB,eAAe,EAAE1B,OAAO;MACxB2B,iBAAiB,EAAErB;IACrB,CAAC,CAAC,CAACsB,KAAK,CAACC,wBAAwB,CAAC;IAElC,OAAO;MACLC,SAAS,EAAET,UAAU,CAACS,SAAS;MAC/BC,cAAc,EAAEV,UAAU,CAACW,YAAY;MACvCC,GAAG,EAAEZ,UAAU,CAACY,GAAG;MACnBC,mBAAmB,EAAEb,UAAU,CAACc;IAClC,CAAC;EACH,CAAC;AACH;AAEA,MAAMN,wBAAwB,GAAIO,CAAU,IAAK;EAC/C1C,MAAM,CAAC2C,GAAG,CAAC1C,QAAQ,CAAC2C,KAAK,EAAG,iCAAgCF,CAAE,EAAC,CAAC;EAEhE,IAAI,EAAEA,CAAC,YAAYjD,4BAA4B,CAAC,EAAE;IAChD,MAAMiD,CAAC;EACT;EAEA,MAAM,IAAI3C,oBAAoB,CAACF,mBAAmB,CAAC,CAChDgD,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAEhD,wBAAwB,CAACiD,8BAA8B;IAC7DC,OAAO,EAAE;EACX,CAAC,CAAC,CACDC,SAAS,CAACP,CAAC,CAAC;AACjB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SignJWT } from "@pagopa/io-react-native-jwt";
|
|
2
2
|
import { createClientAttestationPopJwt, fetchMrtdPopVerify } from "@pagopa/io-wallet-oauth2";
|
|
3
|
-
import { sdkUnexpectedStatusCodeToIssuerError } from "../../../utils/errors";
|
|
4
3
|
import { createSignJwtFromCryptoContext, partialCallbacks } from "../../../utils/callbacks";
|
|
4
|
+
import { sdkUnexpectedStatusCodeToIssuerError } from "../../../utils/errors";
|
|
5
5
|
/**
|
|
6
6
|
* Factory function to create `validateChallenge` for MRTD PoP flow.
|
|
7
7
|
* The factory is needed to inject version specific SDK configuration.
|
|
@@ -18,51 +18,51 @@ export function createValidateChallenge(config) {
|
|
|
18
18
|
const aud = issuerConf.credential_issuer;
|
|
19
19
|
const wiaPublicJwk = await wiaCryptoContext.getPublicKey();
|
|
20
20
|
const clientAttestationDPoP = await createClientAttestationPopJwt({
|
|
21
|
-
|
|
21
|
+
authorizationServer: aud,
|
|
22
22
|
callbacks: {
|
|
23
23
|
generateRandom: partialCallbacks.generateRandom,
|
|
24
24
|
signJwt: createSignJwtFromCryptoContext(wiaCryptoContext)
|
|
25
25
|
},
|
|
26
26
|
clientAttestation: walletInstanceAttestation,
|
|
27
|
-
|
|
27
|
+
config: config.sdkConfig,
|
|
28
28
|
signer: {
|
|
29
|
-
method: "jwk",
|
|
30
29
|
alg: "ES256",
|
|
30
|
+
method: "jwk",
|
|
31
31
|
publicJwk: wiaPublicJwk
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
const mrtdValidationJwt = await new SignJWT(wiaCryptoContext).setProtectedHeader({
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
kid: wiaPublicJwk.kid,
|
|
36
|
+
typ: "mrtd-ias+jwt"
|
|
37
37
|
}).setPayload({
|
|
38
|
-
iss: wiaPublicJwk.kid,
|
|
39
38
|
aud,
|
|
40
39
|
document_type: "cie",
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
ias,
|
|
41
|
+
iss: wiaPublicJwk.kid,
|
|
42
|
+
mrtd
|
|
43
43
|
}).setIssuedAt().setExpirationTime("5m").sign();
|
|
44
44
|
const verifyResult = await fetchMrtdPopVerify({
|
|
45
|
-
popVerifyEndpoint: verifyUrl,
|
|
46
|
-
mrtdAuthSession: mrtd_auth_session,
|
|
47
|
-
mrtdPopNonce: mrtd_pop_nonce,
|
|
48
|
-
clientAttestationDPoP,
|
|
49
|
-
mrtdValidationJwt,
|
|
50
|
-
walletAttestation: walletInstanceAttestation,
|
|
51
45
|
callbacks: {
|
|
52
46
|
fetch: appFetch,
|
|
53
47
|
...partialCallbacks
|
|
54
|
-
}
|
|
48
|
+
},
|
|
49
|
+
clientAttestationDPoP,
|
|
50
|
+
mrtdAuthSession: mrtd_auth_session,
|
|
51
|
+
mrtdPopNonce: mrtd_pop_nonce,
|
|
52
|
+
mrtdValidationJwt,
|
|
53
|
+
popVerifyEndpoint: verifyUrl,
|
|
54
|
+
walletAttestation: walletInstanceAttestation
|
|
55
55
|
}).catch(sdkUnexpectedStatusCodeToIssuerError);
|
|
56
56
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
mrtd_val_pop_nonce: verifyResult.mrtdValPopNonce,
|
|
58
|
+
redirect_uri: verifyResult.redirectUri
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
export const buildChallengeCallbackUrl = async (redirectUri, valPopNonce, authSession) => {
|
|
63
63
|
const params = new URLSearchParams({
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
mrtd_auth_session: authSession,
|
|
65
|
+
mrtd_val_pop_nonce: valPopNonce
|
|
66
66
|
});
|
|
67
67
|
const callbackUrl = `${redirectUri}?${params}`;
|
|
68
68
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SignJWT","createClientAttestationPopJwt","fetchMrtdPopVerify","
|
|
1
|
+
{"version":3,"names":["SignJWT","createClientAttestationPopJwt","fetchMrtdPopVerify","createSignJwtFromCryptoContext","partialCallbacks","sdkUnexpectedStatusCodeToIssuerError","createValidateChallenge","config","validateChallenge","issuerConf","verifyUrl","mrtd_auth_session","mrtd_pop_nonce","mrtd","ias","context","appFetch","fetch","walletInstanceAttestation","wiaCryptoContext","aud","credential_issuer","wiaPublicJwk","getPublicKey","clientAttestationDPoP","authorizationServer","callbacks","generateRandom","signJwt","clientAttestation","sdkConfig","signer","alg","method","publicJwk","mrtdValidationJwt","setProtectedHeader","kid","typ","setPayload","document_type","iss","setIssuedAt","setExpirationTime","sign","verifyResult","mrtdAuthSession","mrtdPopNonce","popVerifyEndpoint","walletAttestation","catch","mrtd_val_pop_nonce","mrtdValPopNonce","redirect_uri","redirectUri","buildChallengeCallbackUrl","valPopNonce","authSession","params","URLSearchParams","callbackUrl"],"sourceRoot":"../../../../../src","sources":["credential/issuance/mrtd-pop/03-validate-challenge.ts"],"mappings":"AAEA,SAASA,OAAO,QAAQ,6BAA6B;AACrD,SACEC,6BAA6B,EAC7BC,kBAAkB,QACb,0BAA0B;AAIjC,SACEC,8BAA8B,EAC9BC,gBAAgB,QACX,0BAA0B;AACjC,SAASC,oCAAoC,QAAQ,uBAAuB;AAM5E;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CACrCC,MAAc,EACmB;EACjC,OAAO,eAAeC,iBAAiBA,CACrCC,UAAU,EACVC,SAAS,EACTC,iBAAiB,EACjBC,cAAc,EACdC,IAAI,EACJC,GAAG,EACHC,OAAO,EACP;IACA,MAAM;MACJC,QAAQ,GAAGC,KAAK;MAChBC,yBAAyB;MACzBC;IACF,CAAC,GAAGJ,OAAO;IAEX,MAAMK,GAAG,GAAGX,UAAU,CAACY,iBAAiB;IAExC,MAAMC,YAAY,GAAG,MAAMH,gBAAgB,CAACI,YAAY,CAAC,CAAC;IAE1D,MAAMC,qBAAqB,GAAG,MAAMvB,6BAA6B,CAAC;MAChEwB,mBAAmB,EAAEL,GAAG;MACxBM,SAAS,EAAE;QACTC,cAAc,EAAEvB,gBAAgB,CAACuB,cAAc;QAC/CC,OAAO,EAAEzB,8BAA8B,CAACgB,gBAAgB;MAC1D,CAAC;MACDU,iBAAiB,EAAEX,yBAA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O,EAAC;EAC9C,OAAO;IAAEE;EAAY,CAAC;AACxB,CAAC"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { sdkConfigV1_0,
|
|
1
|
+
import { sdkConfigV1_0, sdkConfigV1_4 } from "../../../utils/config";
|
|
2
2
|
import { verifyAndParseChallengeInfo } from "./01-verify-and-parse-challenge-info";
|
|
3
3
|
import { createInitChallenge } from "./02-init-challenge";
|
|
4
|
-
import {
|
|
4
|
+
import { buildChallengeCallbackUrl, createValidateChallenge } from "./03-validate-challenge";
|
|
5
5
|
export const MRTDPoPv1_0 = {
|
|
6
|
-
|
|
6
|
+
buildChallengeCallbackUrl,
|
|
7
7
|
initChallenge: createInitChallenge({
|
|
8
8
|
sdkConfig: sdkConfigV1_0
|
|
9
9
|
}),
|
|
10
10
|
validateChallenge: createValidateChallenge({
|
|
11
11
|
sdkConfig: sdkConfigV1_0
|
|
12
12
|
}),
|
|
13
|
-
|
|
13
|
+
verifyAndParseChallengeInfo
|
|
14
14
|
};
|
|
15
15
|
export const MRTDPoPv1_3 = {
|
|
16
|
-
|
|
16
|
+
buildChallengeCallbackUrl,
|
|
17
17
|
initChallenge: createInitChallenge({
|
|
18
|
-
sdkConfig:
|
|
18
|
+
sdkConfig: sdkConfigV1_4
|
|
19
19
|
}),
|
|
20
20
|
validateChallenge: createValidateChallenge({
|
|
21
|
-
sdkConfig:
|
|
21
|
+
sdkConfig: sdkConfigV1_4
|
|
22
22
|
}),
|
|
23
|
-
|
|
23
|
+
verifyAndParseChallengeInfo
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sdkConfigV1_0","
|
|
1
|
+
{"version":3,"names":["sdkConfigV1_0","sdkConfigV1_4","verifyAndParseChallengeInfo","createInitChallenge","buildChallengeCallbackUrl","createValidateChallenge","MRTDPoPv1_0","initChallenge","sdkConfig","validateChallenge","MRTDPoPv1_3"],"sourceRoot":"../../../../../src","sources":["credential/issuance/mrtd-pop/index.ts"],"mappings":"AAEA,SAASA,aAAa,EAAEC,aAAa,QAAQ,uBAAuB;AACpE,SAASC,2BAA2B,QAAQ,sCAAsC;AAClF,SAASC,mBAAmB,QAAQ,qBAAqB;AACzD,SACEC,yBAAyB,EACzBC,uBAAuB,QAClB,yBAAyB;AAEhC,OAAO,MAAMC,WAAuB,GAAG;EACrCF,yBAAyB;EACzBG,aAAa,EAAEJ,mBAAmB,CAAC;IAAEK,SAAS,EAAER;EAAc,CAAC,CAAC;EAChES,iBAAiB,EAAEJ,uBAAuB,CAAC;IAAEG,SAAS,EAAER;EAAc,CAAC,CAAC;EACxEE;AACF,CAAC;AAED,OAAO,MAAMQ,WAAuB,GAAG;EACrCN,yBAAyB;EACzBG,aAAa,EAAEJ,mBAAmB,CAAC;IAAEK,SAAS,EAAEP;EAAc,CAAC,CAAC;EAChEQ,iBAAiB,EAAEJ,uBAAuB,CAAC;IAAEG,SAAS,EAAEP;EAAc,CAAC,CAAC;EACxEC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getCredentialIssuerEntityConfiguration","mapToIssuerConfig","evaluateIssuerTrust","issuerUrl","context","arguments","length","undefined","issuerConf","appFetch"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["getCredentialIssuerEntityConfiguration","mapToIssuerConfig","evaluateIssuerTrust","issuerUrl","context","arguments","length","undefined","issuerConf","appFetch"],"sourceRoot":"../../../../../src","sources":["credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts"],"mappings":"AAEA,SAASA,sCAAsC,QAAQ,gCAAgC;AACvF,SAASC,iBAAiB,QAAQ,WAAW;AAE7C,OAAO,MAAMC,mBAAuD,GAAG,eAAAA,CACrEC,SAAS,EAEN;EAAA,IADHC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEZ,MAAMG,UAAU,GAAG,MAAMR,sCAAsC,CAACG,SAAS,EAAE;IACzEM,QAAQ,EAAEL,OAAO,CAACK;EACpB,CAAC,CAAC;EAEF,OAAO;IAAED,UAAU,EAAEP,iBAAiB,CAACO,UAAU;EAAE,CAAC;AACtD,CAAC"}
|