@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
|
@@ -8,29 +8,29 @@ export const mapToRelyingPartyConfig = createMapper(_ref => {
|
|
|
8
8
|
openid_credential_verifier
|
|
9
9
|
} = payload.metadata;
|
|
10
10
|
return {
|
|
11
|
-
|
|
12
|
-
jwks: openid_credential_verifier.jwks,
|
|
11
|
+
encrypted_response_enc_values_supported: openid_credential_verifier.encrypted_response_enc_values_supported,
|
|
13
12
|
federation_entity,
|
|
14
|
-
|
|
13
|
+
jwks: openid_credential_verifier.jwks,
|
|
14
|
+
subject: payload.sub
|
|
15
15
|
};
|
|
16
16
|
});
|
|
17
17
|
export const mapToRequestObject = createMapper(_ref2 => {
|
|
18
18
|
let {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
header,
|
|
20
|
+
payload
|
|
21
21
|
} = _ref2;
|
|
22
22
|
return {
|
|
23
|
-
iss: payload.iss ?? "",
|
|
24
23
|
client_id: payload.client_id,
|
|
24
|
+
client_metadata: payload.client_metadata,
|
|
25
25
|
dcql_query: payload.dcql_query,
|
|
26
|
+
iss: payload.iss ?? "",
|
|
26
27
|
nonce: payload.nonce,
|
|
27
|
-
response_uri: payload.response_uri,
|
|
28
|
-
state: payload.state,
|
|
29
28
|
response_mode: payload.response_mode,
|
|
30
29
|
response_type: payload.response_type,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
trust_chain: header.trust_chain
|
|
30
|
+
response_uri: payload.response_uri,
|
|
31
|
+
state: payload.state,
|
|
32
|
+
trust_chain: header.trust_chain,
|
|
33
|
+
x5c: header.x5c
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createMapper","mapToRelyingPartyConfig","_ref","payload","federation_entity","openid_credential_verifier","metadata","encrypted_response_enc_values_supported","jwks","subject","sub","mapToRequestObject","_ref2","header","client_id","client_metadata","dcql_query","iss","nonce","response_mode","response_type","response_uri","state","trust_chain","x5c"],"sourceRoot":"../../../../../src","sources":["credential/presentation/v1.4.6/mappers.ts"],"mappings":"AAIA,SAASA,YAAY,QAAQ,wBAAwB;AAGrD,OAAO,MAAMC,uBAAuB,GAAGD,YAAY,CAGjDE,IAAA,IAAiB;EAAA,IAAhB;IAAEC;EAAQ,CAAC,GAAAD,IAAA;EACZ,MAAM;IAAEE,iBAAiB;IAAEC;EAA2B,CAAC,GAAGF,OAAO,CAACG,QAAQ;EAE1E,OAAO;IACLC,uCAAuC,EACrCF,0BAA0B,CAACE,uCAAuC;IACpEH,iBAAiB;IACjBI,IAAI,EAAEH,0BAA0B,CAACG,IAAI;IACrCC,OAAO,EAAEN,OAAO,CAACO;EACnB,CAAC;AACH,CAAC,CAAC;AAEF,OAAO,MAAMC,kBAAkB,GAAGX,YAAY,CAC5CY,KAAA;EAAA,IAAC;IAAEC,MAAM;IAAEV;EAAQ,CAAC,GAAAS,KAAA;EAAA,OAAM;IACxBE,SAAS,EAAEX,OAAO,CAACW,SAAS;IAC5BC,eAAe,EAAEZ,OAAO,CAACY,eAAe;IACxCC,UAAU,EAAEb,OAAO,CAACa,UAAU;IAC9BC,GAAG,EAAEd,OAAO,CAACc,GAAG,IAAI,EAAE;IACtBC,KAAK,EAAEf,OAAO,CAACe,KAAK;IACpBC,aAAa,EAAEhB,OAAO,CAACgB,aAAa;IACpCC,aAAa,EAAEjB,OAAO,CAACiB,aAAa;IACpCC,YAAY,EAAElB,OAAO,CAACkB,YAAY;IAClCC,KAAK,EAAEnB,OAAO,CAACmB,KAAK;IACpBC,WAAW,EAAEV,MAAM,CAACU,WAAW;IAC/BC,GAAG,EAAEX,MAAM,CAACW;EACd,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ValidationError as SdkValidationError } from "@openid4vc/utils";
|
|
2
|
-
import { FetchAuthorizationResponseError as SdkFetchAuthorizationResponseError, CreateAuthorizationResponseError as SdkCreateAuthorizationResponseError } from "@pagopa/io-wallet-oid4vp";
|
|
3
|
-
import { RelyingPartyResponseError, RelyingPartyResponseErrorCodes, ResponseErrorBuilder } from "../../../utils/errors";
|
|
4
2
|
import { Oauth2JwtParseError as SdkOauth2JwtParseError } from "@pagopa/io-wallet-oauth2";
|
|
5
|
-
import {
|
|
3
|
+
import { CreateAuthorizationResponseError as SdkCreateAuthorizationResponseError, FetchAuthorizationResponseError as SdkFetchAuthorizationResponseError } from "@pagopa/io-wallet-oid4vp";
|
|
6
4
|
import { UnexpectedStatusCodeError as SdkUnexpectedStatusCodeError } from "@pagopa/io-wallet-utils";
|
|
5
|
+
import { RelyingPartyResponseError, RelyingPartyResponseErrorCodes, ResponseErrorBuilder } from "../../../utils/errors";
|
|
6
|
+
import { InvalidRequestObjectError } from "../common/errors";
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Helper to create a generic RelyingPartyResponseError
|
|
9
10
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ValidationError","SdkValidationError","Oauth2JwtParseError","SdkOauth2JwtParseError","CreateAuthorizationResponseError","SdkCreateAuthorizationResponseError","FetchAuthorizationResponseError","SdkFetchAuthorizationResponseError","UnexpectedStatusCodeError","SdkUnexpectedStatusCodeError","RelyingPartyResponseError","RelyingPartyResponseErrorCodes","ResponseErrorBuilder","InvalidRequestObjectError","toRelyingPartyResponseError","message","statusCode","code","arguments","length","undefined","RelyingPartyGenericError","reason","mapSdkFetchAuthRequestError","err","mapSdkRequestObjectError","Error","String","mapSdkAuthorizationResponseError","handle","InvalidAuthorizationResponse","buildFrom"],"sourceRoot":"../../../../../src","sources":["credential/presentation/v1.4.6/sdkErrorMapper.ts"],"mappings":"AAEA,SAASA,eAAe,IAAIC,kBAAkB,QAAQ,kBAAkB;AACxE,SAASC,mBAAmB,IAAIC,sBAAsB,QAAQ,0BAA0B;AACxF,SACEC,gCAAgC,IAAIC,mCAAmC,EACvEC,+BAA+B,IAAIC,kCAAkC,QAChE,0BAA0B;AACjC,SAASC,yBAAyB,IAAIC,4BAA4B,QAAQ,yBAAyB;AAEnG,SACEC,yBAAyB,EACzBC,8BAA8B,EAC9BC,oBAAoB,QACf,uBAAuB;AAC9B,SAASC,yBAAyB,QAAQ,kBAAkB;;AAE5D;AACA;AACA;AACA,MAAMC,2BAA2B,GAAG,SAAAA,CAClCC,OAAe,EACfC,UAAkB;EAAA,IAClBC,IAAmC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGP,8BAA8B,CAACU,wBAAwB;EAAA,OAE7F,IAAIX,yBAAyB,CAAC;IAC5BO,IAAI;IACJF,OAAO;IACPO,MAAM,EAAEP,OAAO;IACfC;EACF,CAAC,CAAC;AAAA;;AAEJ;AACA;AACA;AACA,OAAO,MAAMO,2BAA2B,GAAIC,GAAY,IAAK;EAC3D,IAAIA,GAAG,YAAYf,4BAA4B,EAAE;IAC/C,MAAMK,2BAA2B,CAACU,GAAG,CAACT,OAAO,EAAES,GAAG,CAACR,UAAU,CAAC;EAChE;EAEA,MAAMQ,GAAG;AACX,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAID,GAAY,IAAK;EACxD,IAAIA,GAAG,YAAYvB,kBAAkB,EAAE;IACrC,MAAM,IAAIY,yBAAyB,CACjC,yCAAyC,EACzCW,GAAG,CAACT,OACN,CAAC;EACH;EAEA,IAAIS,GAAG,YAAYrB,sBAAsB,EAAE;IACzC,MAAM,IAAIU,yBAAyB,CACjC,uCACF,CAAC;EACH;EAEA,MAAME,OAAO,GAAGS,GAAG,YAAYE,KAAK,GAAGF,GAAG,CAACT,OAAO,GAAGY,MAAM,CAACH,GAAG,CAAC;EAChE,MAAM,IAAIX,yBAAyB,CAACE,OAAO,CAAC;AAC9C,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMa,gCAAgC,GAAIJ,GAAY,IAAK;EAChE,IAAIA,GAAG,YAAYf,4BAA4B,EAAE;IAC/C,MAAM,IAAIG,oBAAoB,CAACF,yBAAyB,CAAC,CACtDmB,MAAM,CAAC,GAAG,EAAE;MACXZ,IAAI,EAAEN,8BAA8B,CAACmB,4BAA4B;MACjEf,OAAO,EACL;IACJ,CAAC,CAAC,CACDc,MAAM,CAAC,GAAG,EAAE;MACXZ,IAAI,EAAEN,8BAA8B,CAACmB,4BAA4B;MACjEf,OAAO,EAAE;IACX,CAAC,CAAC,CACDc,MAAM,CAAC,GAAG,EAAE;MACXZ,IAAI,EAAEN,8BAA8B,CAACU,wBAAwB;MAC7DN,OAAO,EAAE;IACX,CAAC,CAAC,CACDgB,SAAS,CAACP,GAAG,CAAC;EACnB;EAEA,IACEA,GAAG,YAAYnB,mCAAmC,IAClDmB,GAAG,YAAYjB,kCAAkC,EACjD;IACA,MAAMO,2BAA2B,CAACU,GAAG,CAACT,OAAO,EAAES,GAAG,CAACR,UAAU,IAAI,GAAG,CAAC;EACvE;EAEA,MAAMQ,GAAG;AACX,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
1
|
import { zOpenid4vpAuthorizationRequestHeaderV1_3, zOpenid4vpAuthorizationRequestPayload } from "@pagopa/io-wallet-oid4vp";
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
export const RawRequestObject = z.object({
|
|
4
4
|
header: zOpenid4vpAuthorizationRequestHeaderV1_3,
|
|
5
5
|
payload: zOpenid4vpAuthorizationRequestPayload
|
|
6
6
|
});
|
|
7
7
|
export const AuthorizationResponse = z.object({
|
|
8
|
-
|
|
8
|
+
redirect_uri: z.string().optional(),
|
|
9
9
|
response_code: z.string().optional(),
|
|
10
|
-
|
|
10
|
+
status: z.string().optional()
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["zOpenid4vpAuthorizationRequestHeaderV1_3","zOpenid4vpAuthorizationRequestPayload","z","RawRequestObject","object","header","payload","AuthorizationResponse","redirect_uri","string","optional","response_code","status"],"sourceRoot":"../../../../../src","sources":["credential/presentation/v1.4.6/types.ts"],"mappings":"AAAA,SACEA,wCAAwC,EACxCC,qCAAqC,QAChC,0BAA0B;AACjC,OAAO,KAAKC,CAAC,MAAM,KAAK;AAGxB,OAAO,MAAMC,gBAAgB,GAAGD,CAAC,CAACE,MAAM,CAAC;EACvCC,MAAM,EAAEL,wCAAwC;EAChDM,OAAO,EAAEL;AACX,CAAC,CAAC;AAGF,OAAO,MAAMM,qBAAqB,GAAGL,CAAC,CAACE,MAAM,CAAC;EAC5CI,YAAY,EAAEN,CAAC,CAACO,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACnCC,aAAa,EAAET,CAAC,CAACO,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACpCE,MAAM,EAAEV,CAAC,CAACO,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC;AAC9B,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This flow is used to obtain the credential status from its credential issuer. The following methods are currently supported:
|
|
4
4
|
- Status Assertion (v1.0.0)
|
|
5
|
-
- Token Status List (v1.
|
|
5
|
+
- Token Status List (v1.4.6)
|
|
6
6
|
|
|
7
7
|
Each step in the flow is imported from the related file which is named with a sequential number.
|
|
8
8
|
|
|
@@ -100,7 +100,7 @@ return {
|
|
|
100
100
|
```ts
|
|
101
101
|
import { IoWallet } from "@pagopa/io-react-native-wallet";
|
|
102
102
|
|
|
103
|
-
const wallet = new IoWallet({ version: "1.
|
|
103
|
+
const wallet = new IoWallet({ version: "1.4.6" });
|
|
104
104
|
|
|
105
105
|
const credentialIssuerUrl = "https://issuer.example.com";
|
|
106
106
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["credential/status/api/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["credential/status/api/index.ts"],"mappings":"AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,cAAc,SAAS;AAAC"}
|
|
@@ -7,16 +7,16 @@ import { UnixTime } from "../../../utils/zod";
|
|
|
7
7
|
|
|
8
8
|
const StatusListBits = z.union([z.literal(1), z.literal(2), z.literal(4), z.literal(8)]);
|
|
9
9
|
export const StatusListContent = z.object({
|
|
10
|
+
aggregation_uri: z.url().optional(),
|
|
10
11
|
bits: StatusListBits,
|
|
11
|
-
lst: z.string().min(1)
|
|
12
|
-
aggregation_uri: z.url().optional()
|
|
12
|
+
lst: z.string().min(1)
|
|
13
13
|
});
|
|
14
14
|
export const StatusList = z.object({
|
|
15
|
-
|
|
15
|
+
exp: UnixTime.optional(),
|
|
16
16
|
iat: UnixTime,
|
|
17
17
|
iss: z.url().optional(),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
status_list: StatusListContent,
|
|
19
|
+
sub: z.url(),
|
|
20
|
+
ttl: z.number().positive().optional()
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","UnixTime","StatusListBits","union","literal","StatusListContent","object","
|
|
1
|
+
{"version":3,"names":["z","UnixTime","StatusListBits","union","literal","StatusListContent","object","aggregation_uri","url","optional","bits","lst","string","min","StatusList","exp","iat","iss","status_list","sub","ttl","number","positive"],"sourceRoot":"../../../../../src","sources":["credential/status/api/types.ts"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAEvB,SAASC,QAAQ,QAAQ,oBAAoB;;AAE7C;AACA;AACA;;AAcA,MAAMC,cAAc,GAAGF,CAAC,CAACG,KAAK,CAAC,CAC7BH,CAAC,CAACI,OAAO,CAAC,CAAC,CAAC,EACZJ,CAAC,CAACI,OAAO,CAAC,CAAC,CAAC,EACZJ,CAAC,CAACI,OAAO,CAAC,CAAC,CAAC,EACZJ,CAAC,CAACI,OAAO,CAAC,CAAC,CAAC,CACb,CAAC;AAGF,OAAO,MAAMC,iBAAiB,GAAGL,CAAC,CAACM,MAAM,CAAC;EACxCC,eAAe,EAAEP,CAAC,CAACQ,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACnCC,IAAI,EAAER,cAAc;EACpBS,GAAG,EAAEX,CAAC,CAACY,MAAM,CAAC,CAAC,CAACC,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC;AAGF,OAAO,MAAMC,UAAU,GAAGd,CAAC,CAACM,MAAM,CAAC;EACjCS,GAAG,EAAEd,QAAQ,CAACQ,QAAQ,CAAC,CAAC;EACxBO,GAAG,EAAEf,QAAQ;EACbgB,GAAG,EAAEjB,CAAC,CAACQ,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EACvBS,WAAW,EAAEb,iBAAiB;EAC9Bc,GAAG,EAAEnB,CAAC,CAACQ,GAAG,CAAC,CAAC;EACZY,GAAG,EAAEpB,CAAC,CAACqB,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,CAACb,QAAQ,CAAC;AACtC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CredentialStatus","V1_0_0","
|
|
1
|
+
{"version":3,"names":["CredentialStatus","V1_0_0","V1_4_6"],"sourceRoot":"../../../../src","sources":["credential/status/index.ts"],"mappings":"AAAA,cAAc,OAAO;AACrB,SAASA,gBAAgB,IAAIC,MAAM,QAAQ,UAAU;AACrD,SAASD,gBAAgB,IAAIE,MAAM,QAAQ,UAAU"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { getCredentialHashWithouDiscloures, hasStatusOrThrow } from "../../../utils/misc";
|
|
2
1
|
import { SignJWT } from "@pagopa/io-react-native-jwt";
|
|
3
2
|
import { v4 as uuidv4 } from "uuid";
|
|
4
|
-
import {
|
|
3
|
+
import { extractJwkFromCredential } from "../../../utils/credentials";
|
|
5
4
|
import { IoWalletError, IssuerResponseError, IssuerResponseErrorCodes, ResponseErrorBuilder, UnexpectedStatusCodeError } from "../../../utils/errors";
|
|
6
5
|
import { Logger, LogLevel } from "../../../utils/logging";
|
|
7
|
-
import {
|
|
6
|
+
import { getCredentialHashWithouDiscloures, hasStatusOrThrow } from "../../../utils/misc";
|
|
7
|
+
import { StatusAssertionResponse } from "./types";
|
|
8
8
|
export const getStatusAssertion = async (issuerConf, credential, format, ctx) => {
|
|
9
9
|
const {
|
|
10
|
+
appFetch = fetch,
|
|
10
11
|
credentialCryptoContext,
|
|
11
|
-
wiaCryptoContext
|
|
12
|
-
appFetch = fetch
|
|
12
|
+
wiaCryptoContext
|
|
13
13
|
} = ctx;
|
|
14
14
|
const jwk = await extractJwkFromCredential(credential, format);
|
|
15
15
|
const issuerJwk = await wiaCryptoContext.getPublicKey();
|
|
@@ -19,28 +19,31 @@ export const getStatusAssertion = async (issuerConf, credential, format, ctx) =>
|
|
|
19
19
|
throw new IoWalletError("Status assertion endpoint not found in the Issuer configuration");
|
|
20
20
|
}
|
|
21
21
|
const credentialPop = await new SignJWT(credentialCryptoContext).setPayload({
|
|
22
|
-
iss: issuerJwk.kid,
|
|
23
22
|
aud: statusAttUrl,
|
|
24
|
-
jti: uuidv4().toString(),
|
|
25
23
|
credential_hash: credentialHash,
|
|
26
|
-
credential_hash_alg: "sha-256"
|
|
24
|
+
credential_hash_alg: "sha-256",
|
|
25
|
+
iss: issuerJwk.kid,
|
|
26
|
+
jti: uuidv4().toString()
|
|
27
27
|
}).setProtectedHeader({
|
|
28
28
|
alg: "ES256",
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
kid: jwk.kid,
|
|
30
|
+
typ: "status-assertion-request+jwt"
|
|
31
31
|
}).setIssuedAt().setExpirationTime("5m").sign();
|
|
32
32
|
const body = {
|
|
33
33
|
status_assertion_requests: [credentialPop]
|
|
34
34
|
};
|
|
35
35
|
Logger.log(LogLevel.DEBUG, `Credential pop: ${credentialPop}`);
|
|
36
36
|
const result = await appFetch(statusAttUrl, {
|
|
37
|
-
|
|
37
|
+
body: JSON.stringify(body),
|
|
38
38
|
headers: {
|
|
39
39
|
"Content-Type": "application/json"
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
method: "POST"
|
|
42
42
|
}).then(hasStatusOrThrow(200)).then(raw => raw.json()).then(json => StatusAssertionResponse.parse(json)).catch(handleStatusAssertionError);
|
|
43
43
|
const [statusAttestationJwt] = result.status_assertion_responses;
|
|
44
|
+
if (!statusAttestationJwt) {
|
|
45
|
+
throw new IoWalletError("Status assertion response is empty");
|
|
46
|
+
}
|
|
44
47
|
return {
|
|
45
48
|
statusAssertion: statusAttestationJwt
|
|
46
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["SignJWT","v4","uuidv4","extractJwkFromCredential","IoWalletError","IssuerResponseError","IssuerResponseErrorCodes","ResponseErrorBuilder","UnexpectedStatusCodeError","Logger","LogLevel","getCredentialHashWithouDiscloures","hasStatusOrThrow","StatusAssertionResponse","getStatusAssertion","issuerConf","credential","format","ctx","appFetch","fetch","credentialCryptoContext","wiaCryptoContext","jwk","issuerJwk","getPublicKey","credentialHash","statusAttUrl","status_assertion_endpoint","credentialPop","setPayload","aud","credential_hash","credential_hash_alg","iss","kid","jti","toString","setProtectedHeader","alg","typ","setIssuedAt","setExpirationTime","sign","body","status_assertion_requests","log","DEBUG","result","JSON","stringify","headers","method","then","raw","json","parse","catch","handleStatusAssertionError","statusAttestationJwt","status_assertion_responses","statusAssertion","e","handle","code","StatusAttestationRequestFailed","message","buildFrom"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.0.0/01-status-assertion.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,6BAA6B;AACrD,SAASC,EAAE,IAAIC,MAAM,QAAQ,MAAM;AAInC,SAASC,wBAAwB,QAAQ,4BAA4B;AACrE,SACEC,aAAa,EACbC,mBAAmB,EACnBC,wBAAwB,EACxBC,oBAAoB,EACpBC,yBAAyB,QACpB,uBAAuB;AAC9B,SAASC,MAAM,EAAEC,QAAQ,QAAQ,wBAAwB;AACzD,SACEC,iCAAiC,EACjCC,gBAAgB,QACX,qBAAqB;AAC5B,SAASC,uBAAuB,QAAQ,SAAS;AAEjD,OAAO,MAAMC,kBAA6C,GAAG,MAAAA,CAC3DC,UAAU,EACVC,UAAU,EACVC,MAAM,EACNC,GAAG,KACA;EACH,MAAM;IAAEC,QAAQ,GAAGC,KAAK;IAAEC,uBAAuB;IAAEC;EAAiB,CAAC,GAAGJ,GAAG;EAE3E,MAAMK,GAAG,GAAG,MAAMpB,wBAAwB,CAACa,UAAU,EAAEC,MAAM,CAAC;EAC9D,MAAMO,SAAS,GAAG,MAAMF,gBAAgB,CAACG,YAAY,CAAC,CAAC;EACvD,MAAMC,cAAc,GAAG,MAAMf,iCAAiC,CAACK,UAAU,CAAC;EAC1E,MAAMW,YAAY,GAAGZ,UAAU,CAACa,yBAAyB;EAEzD,IAAI,CAACD,YAAY,EAAE;IACjB,MAAM,IAAIvB,aAAa,CACrB,iEACF,CAAC;EACH;EAEA,MAAMyB,aAAa,GAAG,MAAM,IAAI7B,OAAO,CAACqB,uBAAuB,CAAC,CAC7DS,UAAU,CAAC;IACVC,GAAG,EAAEJ,YAAY;IACjBK,eAAe,EAAEN,cAAc;IAC/BO,mBAAmB,EAAE,SAAS;IAC9BC,GAAG,EAAEV,SAAS,CAACW,GAAG;IAClBC,GAAG,EAAElC,MAAM,CAAC,CAAC,CAACmC,QAAQ,CAAC;EACzB,CAAC,CAAC,CACDC,kBAAkB,CAAC;IAClBC,GAAG,EAAE,OAAO;IACZJ,GAAG,EAAEZ,GAAG,CAACY,GAAG;IACZK,GAAG,EAAE;EACP,CAAC,CAAC,CACDC,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,IAAI,CAAC,CACvBC,IAAI,CAAC,CAAC;EAET,MAAMC,IAAI,GAAG;IACXC,yBAAyB,EAAE,CAAChB,aAAa;EAC3C,CAAC;EAEDpB,MAAM,CAACqC,GAAG,CAACpC,QAAQ,CAACqC,KAAK,EAAG,mBAAkBlB,aAAc,EAAC,CAAC;EAE9D,MAAMmB,MAAM,GAAG,MAAM7B,QAAQ,CAACQ,YAAY,EAAE;IAC1CiB,IAAI,EAAEK,IAAI,CAACC,SAAS,CAACN,IAAI,CAAC;IAC1BO,OAAO,EAAE;MACP,cAAc,EAAE;IAClB,CAAC;IACDC,MAAM,EAAE;EACV,CAAC,CAAC,CACCC,IAAI,CAACzC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAC3ByC,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACC,IAAI,CAAC,CAAC,CAAC,CACzBF,IAAI,CAAEE,IAAI,IAAK1C,uBAAuB,CAAC2C,KAAK,CAACD,IAAI,CAAC,CAAC,CACnDE,KAAK,CAACC,0BAA0B,CAAC;EAEpC,MAAM,CAACC,oBAAoB,CAAC,GAAGX,MAAM,CAACY,0BAA0B;EAEhE,IAAI,CAACD,oBAAoB,EAAE;IACzB,MAAM,IAAIvD,aAAa,CAAC,oCAAoC,CAAC;EAC/D;EAEA,OAAO;IAAEyD,eAAe,EAAEF;EAAqB,CAAC;AAClD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,MAAMD,0BAA0B,GAAII,CAAU,IAAK;EACjD,IAAI,EAAEA,CAAC,YAAYtD,yBAAyB,CAAC,EAAE;IAC7C,MAAMsD,CAAC;EACT;EAEA,MAAM,IAAIvD,oBAAoB,CAACF,mBAAmB,CAAC,CAChD0D,MAAM,CAAC,GAAG,EAAE;IACXC,IAAI,EAAE1D,wBAAwB,CAAC2D,8BAA8B;IAC7DC,OAAO,EAAG;EACZ,CAAC,CAAC,CACDC,SAAS,CAACL,CAAC,CAAC;AACjB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IoWalletError, IssuerResponseError, IssuerResponseErrorCodes } from "../../../utils/errors";
|
|
2
1
|
import { decode as decodeJwt, verify } from "@pagopa/io-react-native-jwt";
|
|
3
|
-
import { ParsedStatusAssertionResponse, StatusType } from "./types";
|
|
4
|
-
import { Logger, LogLevel } from "../../../utils/logging";
|
|
5
2
|
import { extractJwkFromCredential } from "../../../utils/credentials";
|
|
3
|
+
import { IoWalletError, IssuerResponseError, IssuerResponseErrorCodes } from "../../../utils/errors";
|
|
6
4
|
import { isSameThumbprint } from "../../../utils/jwk";
|
|
5
|
+
import { Logger, LogLevel } from "../../../utils/logging";
|
|
7
6
|
import { mapToParsedStatusAssertion } from "./mappers";
|
|
7
|
+
import { ParsedStatusAssertionResponse, StatusType } from "./types";
|
|
8
8
|
export const verifyAndParseStatusAssertion = async (issuerConf, rawStatusAssertion, credential, format) => {
|
|
9
9
|
const {
|
|
10
10
|
statusAssertion
|
|
@@ -22,8 +22,8 @@ export const verifyAndParseStatusAssertion = async (issuerConf, rawStatusAsserti
|
|
|
22
22
|
throw new IssuerResponseError({
|
|
23
23
|
code: IssuerResponseErrorCodes.CredentialInvalidStatus,
|
|
24
24
|
message: "The status assertion contains an error",
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
reason: buildErrorReason(parsedStatusAssertion),
|
|
26
|
+
statusCode: 200
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
const {
|
|
@@ -40,8 +40,8 @@ export const verifyAndParseStatusAssertion = async (issuerConf, rawStatusAsserti
|
|
|
40
40
|
throw new IssuerResponseError({
|
|
41
41
|
code: IssuerResponseErrorCodes.CredentialInvalidStatus,
|
|
42
42
|
message: "Invalid status found for the given credential",
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
reason: buildErrorReason(parsedStatusAssertion),
|
|
44
|
+
statusCode: 200
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
@@ -59,9 +59,16 @@ const buildErrorReason = _ref => {
|
|
|
59
59
|
let {
|
|
60
60
|
payload
|
|
61
61
|
} = _ref;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
if ("error" in payload) return payload;
|
|
63
|
+
const {
|
|
64
|
+
credential_status_detail
|
|
65
|
+
} = payload;
|
|
66
|
+
if (!credential_status_detail) {
|
|
67
|
+
throw new IoWalletError("Missing credential_status_detail in an invalid status assertion");
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
error: credential_status_detail.state,
|
|
71
|
+
error_description: credential_status_detail.description
|
|
65
72
|
};
|
|
66
73
|
};
|
|
67
74
|
//# sourceMappingURL=02-verify-and-parse-status-assertion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["decode","decodeJwt","verify","extractJwkFromCredential","IoWalletError","IssuerResponseError","IssuerResponseErrorCodes","isSameThumbprint","Logger","LogLevel","mapToParsedStatusAssertion","ParsedStatusAssertionResponse","StatusType","verifyAndParseStatusAssertion","issuerConf","rawStatusAssertion","credential","format","statusAssertion","keys","decodedJwt","parsedStatusAssertion","parse","header","protectedHeader","payload","log","DEBUG","JSON","stringify","isStatusAssertionError","code","CredentialInvalidStatus","message","reason","buildErrorReason","statusCode","cnf","credential_status_type","holderBindingKey","jwk","errorMessage","kid","ERROR","VALID","assertion","typ","_ref","credential_status_detail","error","state","error_description","description"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts"],"mappings":"AAAA,SAASA,MAAM,IAAIC,SAAS,EAAEC,MAAM,QAAQ,6BAA6B;AAIzE,SAASC,wBAAwB,QAAQ,4BAA4B;AACrE,SACEC,aAAa,EACbC,mBAAmB,EACnBC,wBAAwB,QACnB,uBAAuB;AAC9B,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,MAAM,EAAEC,QAAQ,QAAQ,wBAAwB;AACzD,SAASC,0BAA0B,QAAQ,WAAW;AACtD,SAGEC,6BAA6B,EAC7BC,UAAU,QACL,SAAS;AAEhB,OAAO,MAAMC,6BAAmE,GAC9E,MAAAA,CAAOC,UAAU,EAAEC,kBAAkB,EAAEC,UAAU,EAAEC,MAAM,KAAK;EAC5D,MAAM;IAAEC;EAAgB,CAAC,GAAGH,kBAAkB;EAE9C,MAAMb,MAAM,CAACgB,eAAe,EAAEJ,UAAU,CAACK,IAAI,CAAC;EAE9C,MAAMC,UAAU,GAAGnB,SAAS,CAACiB,eAAe,CAAC;EAC7C,MAAMG,qBAAqB,GAAGV,6BAA6B,CAACW,KAAK,CAAC;IAChEC,MAAM,EAAEH,UAAU,CAACI,eAAe;IAClCC,OAAO,EAAEL,UAAU,CAACK;EACtB,CAAC,CAAC;EAEFjB,MAAM,CAACkB,GAAG,CACRjB,QAAQ,CAACkB,KAAK,EACb,4BAA2BC,IAAI,CAACC,SAAS,CAACR,qBAAqB,CAAE,EACpE,CAAC;;EAED;EACA,IAAIS,sBAAsB,CAACT,qBAAqB,CAAC,EAAE;IACjD,MAAM,IAAIhB,mBAAmB,CAAC;MAC5B0B,IAAI,EAAEzB,wBAAwB,CAAC0B,uBAAuB;MACtDC,OAAO,EAAE,wCAAwC;MACjDC,MAAM,EAAEC,gBAAgB,CAACd,qBAAqB,CAAC;MAC/Ce,UAAU,EAAE;IACd,CAAC,CAAC;EACJ;EAEA,MAAM;IAAEC,GAAG;IAAEC;EAAuB,CAAC,GAAGjB,qBAAqB,CAACI,OAAO;EACrE,MAAMc,gBAAgB,GAAG,MAAMpC,wBAAwB,CAACa,UAAU,EAAEC,MAAM,CAAC;EAE3E,IAAI,EAAE,MAAMV,gBAAgB,CAAC8B,GAAG,CAACG,GAAG,EAAED,gBAAgB,CAAC,CAAC,EAAE;IACxD,MAAME,YAAY,GAAI,iFAAgFJ,GAAG,CAACG,GAAG,CAACE,GAAI,QAAOH,gBAAgB,CAACG,GAAI,eAAc;IAC5JlC,MAAM,CAACkB,GAAG,CAACjB,QAAQ,CAACkC,KAAK,EAAEF,YAAY,CAAC;IACxC,MAAM,IAAIrC,aAAa,CAACqC,YAAY,CAAC;EACvC;EAEA,IAAIH,sBAAsB,KAAK1B,UAAU,CAACgC,KAAK,EAAE;IAC/C,MAAM,IAAIvC,mBAAmB,CAAC;MAC5B0B,IAAI,EAAEzB,wBAAwB,CAAC0B,uBAAuB;MACtDC,OAAO,EAAE,+CAA+C;MACxDC,MAAM,EAAEC,gBAAgB,CAACd,qBAAqB,CAAC;MAC/Ce,UAAU,EAAE;IACd,CAAC,CAAC;EACJ;EAEA,OAAO;IACLf,qBAAqB,EAAEX,0BAA0B,CAACW,qBAAqB;EACzE,CAAC;AACH,CAAC;AAEH,MAAMS,sBAAsB,GAC1Be,SAAwC,IAExCA,SAAS,CAACtB,MAAM,CAACuB,GAAG,KAAK,4BAA4B;;AAEvD;AACA;AACA;AACA;AACA;AACA,MAAMX,gBAAgB,GAAGY,IAAA,IAEsC;EAAA,IAFrC;IACxBtB;EAC6B,CAAC,GAAAsB,IAAA;EAC9B,IAAI,OAAO,IAAItB,OAAO,EAAE,OAAOA,OAAO;EAEtC,MAAM;IAAEuB;EAAyB,CAAC,GAAGvB,OAAO;EAC5C,IAAI,CAACuB,wBAAwB,EAAE;IAC7B,MAAM,IAAI5C,aAAa,CACrB,iEACF,CAAC;EACH;EAEA,OAAO;IACL6C,KAAK,EAAED,wBAAwB,CAACE,KAAK;IACrCC,iBAAiB,EAAEH,wBAAwB,CAACI;EAC9C,CAAC;AACH,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { getStatusAssertion } from "./01-status-assertion";
|
|
|
2
2
|
import { verifyAndParseStatusAssertion } from "./02-verify-and-parse-status-assertion";
|
|
3
3
|
export const CredentialStatus = {
|
|
4
4
|
statusAssertion: {
|
|
5
|
-
isSupported: true,
|
|
6
5
|
get: getStatusAssertion,
|
|
6
|
+
isSupported: true,
|
|
7
7
|
verifyAndParse: verifyAndParseStatusAssertion
|
|
8
8
|
},
|
|
9
9
|
statusList: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getStatusAssertion","verifyAndParseStatusAssertion","CredentialStatus","statusAssertion","
|
|
1
|
+
{"version":3,"names":["getStatusAssertion","verifyAndParseStatusAssertion","CredentialStatus","statusAssertion","get","isSupported","verifyAndParse","statusList"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.0.0/index.ts"],"mappings":"AAEA,SAASA,kBAAkB,QAAQ,uBAAuB;AAC1D,SAASC,6BAA6B,QAAQ,wCAAwC;AAEtF,OAAO,MAAMC,gBAAqC,GAAG;EACnDC,eAAe,EAAE;IACfC,GAAG,EAAEJ,kBAAkB;IACvBK,WAAW,EAAE,IAAI;IACjBC,cAAc,EAAEL;EAClB,CAAC;EACDM,UAAU,EAAE;IACVF,WAAW,EAAE;EACf;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createMapper","mapToParsedStatusAssertion","x","payload"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.0.0/mappers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["createMapper","mapToParsedStatusAssertion","x","payload"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.0.0/mappers.ts"],"mappings":"AAGA,SAASA,YAAY,QAAQ,wBAAwB;AAErD,OAAO,MAAMC,0BAA0B,GAAGD,YAAY,CAGnDE,CAAC,IAAKA,CAAC,CAACC,OAAO,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UnixTime } from "../../../utils/zod";
|
|
2
|
-
import { JWK } from "../../../utils/jwk";
|
|
3
1
|
import * as z from "zod";
|
|
2
|
+
import { JWK } from "../../../utils/jwk";
|
|
3
|
+
import { UnixTime } from "../../../utils/zod";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Shape from parsing a status assertion response in case of 201.
|
|
@@ -19,24 +19,24 @@ export const StatusAssertionResponse = z.object({
|
|
|
19
19
|
*/
|
|
20
20
|
export const ParsedStatusAssertionJwt = z.object({
|
|
21
21
|
header: z.object({
|
|
22
|
-
typ: z.literal("status-assertion+jwt"),
|
|
23
22
|
alg: z.string(),
|
|
24
|
-
kid: z.string().optional()
|
|
23
|
+
kid: z.string().optional(),
|
|
24
|
+
typ: z.literal("status-assertion+jwt")
|
|
25
25
|
}),
|
|
26
26
|
payload: z.object({
|
|
27
|
-
iss: z.string(),
|
|
28
|
-
credential_status_type: z.string(),
|
|
29
|
-
credential_status_detail: z.object({
|
|
30
|
-
state: z.string(),
|
|
31
|
-
description: z.string()
|
|
32
|
-
}).optional(),
|
|
33
|
-
credential_hash_alg: z.string(),
|
|
34
|
-
credential_hash: z.string(),
|
|
35
27
|
cnf: z.object({
|
|
36
28
|
jwk: JWK
|
|
37
29
|
}),
|
|
30
|
+
credential_hash: z.string(),
|
|
31
|
+
credential_hash_alg: z.string(),
|
|
32
|
+
credential_status_detail: z.object({
|
|
33
|
+
description: z.string(),
|
|
34
|
+
state: z.string()
|
|
35
|
+
}).optional(),
|
|
36
|
+
credential_status_type: z.string(),
|
|
38
37
|
exp: UnixTime,
|
|
39
|
-
iat: UnixTime
|
|
38
|
+
iat: UnixTime,
|
|
39
|
+
iss: z.string()
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
/**
|
|
@@ -45,13 +45,13 @@ export const ParsedStatusAssertionJwt = z.object({
|
|
|
45
45
|
*/
|
|
46
46
|
export const ParsedStatusAssertionErrorJwt = z.object({
|
|
47
47
|
header: z.object({
|
|
48
|
-
typ: z.literal("status-assertion-error+jwt"),
|
|
49
48
|
alg: z.string(),
|
|
50
|
-
kid: z.string().optional()
|
|
49
|
+
kid: z.string().optional(),
|
|
50
|
+
typ: z.literal("status-assertion-error+jwt")
|
|
51
51
|
}),
|
|
52
52
|
payload: z.object({
|
|
53
|
-
credential_hash_alg: z.string(),
|
|
54
53
|
credential_hash: z.string(),
|
|
54
|
+
credential_hash_alg: z.string(),
|
|
55
55
|
error: z.string(),
|
|
56
56
|
error_description: z.string()
|
|
57
57
|
})
|
|
@@ -63,9 +63,9 @@ export const ParsedStatusAssertionErrorJwt = z.object({
|
|
|
63
63
|
|
|
64
64
|
export const ParsedStatusAssertionResponse = z.union([ParsedStatusAssertionJwt, ParsedStatusAssertionErrorJwt]);
|
|
65
65
|
export let StatusType = /*#__PURE__*/function (StatusType) {
|
|
66
|
-
StatusType["VALID"] = "0x00";
|
|
67
66
|
StatusType["INVALID"] = "0x01";
|
|
68
67
|
StatusType["SUSPENDED"] = "0x02";
|
|
68
|
+
StatusType["VALID"] = "0x00";
|
|
69
69
|
return StatusType;
|
|
70
70
|
}({});
|
|
71
71
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["z","JWK","UnixTime","StatusAssertionResponse","object","status_assertion_responses","array","string","ParsedStatusAssertionJwt","header","alg","kid","optional","typ","literal","payload","cnf","jwk","credential_hash","credential_hash_alg","credential_status_detail","description","state","credential_status_type","exp","iat","iss","ParsedStatusAssertionErrorJwt","error","error_description","ParsedStatusAssertionResponse","union","StatusType"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.0.0/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AAExB,SAASC,GAAG,QAAQ,oBAAoB;AACxC,SAASC,QAAQ,QAAQ,oBAAoB;;AAE7C;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGH,CAAC,CAACI,MAAM,CAAC;EAC9CC,0BAA0B,EAAEL,CAAC,CAACM,KAAK,CAACN,CAAC,CAACO,MAAM,CAAC,CAAC;AAChD,CAAC,CAAC;;AAIF;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGR,CAAC,CAACI,MAAM,CAAC;EAC/CK,MAAM,EAAET,CAAC,CAACI,MAAM,CAAC;IACfM,GAAG,EAAEV,CAAC,CAACO,MAAM,CAAC,CAAC;IACfI,GAAG,EAAEX,CAAC,CAACO,MAAM,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;IAC1BC,GAAG,EAAEb,CAAC,CAACc,OAAO,CAAC,sBAAsB;EACvC,CAAC,CAAC;EACFC,OAAO,EAAEf,CAAC,CAACI,MAAM,CAAC;IAChBY,GAAG,EAAEhB,CAAC,CAACI,MAAM,CAAC;MACZa,GAAG,EAAEhB;IACP,CAAC,CAAC;IACFiB,eAAe,EAAElB,CAAC,CAACO,MAAM,CAAC,CAAC;IAC3BY,mBAAmB,EAAEnB,CAAC,CAACO,MAAM,CAAC,CAAC;IAC/Ba,wBAAwB,EAAEpB,CAAC,CACxBI,MAAM,CAAC;MACNiB,WAAW,EAAErB,CAAC,CAACO,MAAM,CAAC,CAAC;MACvBe,KAAK,EAAEtB,CAAC,CAACO,MAAM,CAAC;IAClB,CAAC,CAAC,CACDK,QAAQ,CAAC,CAAC;IACbW,sBAAsB,EAAEvB,CAAC,CAACO,MAAM,CAAC,CAAC;IAClCiB,GAAG,EAAEtB,QAAQ;IACbuB,GAAG,EAAEvB,QAAQ;IACbwB,GAAG,EAAE1B,CAAC,CAACO,MAAM,CAAC;EAChB,CAAC;AACH,CAAC,CAAC;AAMF;AACA;AACA;AACA;AACA,OAAO,MAAMoB,6BAA6B,GAAG3B,CAAC,CAACI,MAAM,CAAC;EACpDK,MAAM,EAAET,CAAC,CAACI,MAAM,CAAC;IACfM,GAAG,EAAEV,CAAC,CAACO,MAAM,CAAC,CAAC;IACfI,GAAG,EAAEX,CAAC,CAACO,MAAM,CAAC,CAAC,CAACK,QAAQ,CAAC,CAAC;IAC1BC,GAAG,EAAEb,CAAC,CAACc,OAAO,CAAC,4BAA4B;EAC7C,CAAC,CAAC;EACFC,OAAO,EAAEf,CAAC,CAACI,MAAM,CAAC;IAChBc,eAAe,EAAElB,CAAC,CAACO,MAAM,CAAC,CAAC;IAC3BY,mBAAmB,EAAEnB,CAAC,CAACO,MAAM,CAAC,CAAC;IAC/BqB,KAAK,EAAE5B,CAAC,CAACO,MAAM,CAAC,CAAC;IACjBsB,iBAAiB,EAAE7B,CAAC,CAACO,MAAM,CAAC;EAC9B,CAAC;AACH,CAAC,CAAC;;AAEF;AACA;AACA;;AAIA,OAAO,MAAMuB,6BAA6B,GAAG9B,CAAC,CAAC+B,KAAK,CAAC,CACnDvB,wBAAwB,EACxBmB,6BAA6B,CAC9B,CAAC;AAEF,WAAYK,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA"}
|
|
@@ -52,15 +52,15 @@ export const getStatusListByUri = async function (uri) {
|
|
|
52
52
|
};
|
|
53
53
|
export const getStatusList = async (credential, format, context) => {
|
|
54
54
|
const {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
idx,
|
|
56
|
+
uri
|
|
57
57
|
} = await getStatusListEntry(credential, format);
|
|
58
58
|
const statusList = await getStatusListByUri(uri, context);
|
|
59
59
|
return {
|
|
60
|
-
|
|
60
|
+
format: "jwt",
|
|
61
61
|
idx,
|
|
62
62
|
statusList,
|
|
63
|
-
|
|
63
|
+
uri
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
//# sourceMappingURL=01-status-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CBOR","decode","decodeJwt","getStatusListFromJWT","IoWalletError","hasStatusOrThrow","getStatusListEntry","credential","format","statusListEntry","_decoded$issuerAuth","decoded","issuerAuth","payload","status","status_list","fetchStatusList","uri","appFetch","options","arguments","length","undefined","headers","Accept","cacheDisabled","then","response","text","getStatusListByUri","fetch","statusList","exp","Math","floor","Date","now","getStatusList","context","idx"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.
|
|
1
|
+
{"version":3,"names":["CBOR","decode","decodeJwt","getStatusListFromJWT","IoWalletError","hasStatusOrThrow","getStatusListEntry","credential","format","statusListEntry","_decoded$issuerAuth","decoded","issuerAuth","payload","status","status_list","fetchStatusList","uri","appFetch","options","arguments","length","undefined","headers","Accept","cacheDisabled","then","response","text","getStatusListByUri","fetch","statusList","exp","Math","floor","Date","now","getStatusList","context","idx"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.4.6/01-status-list.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,kCAAkC;AACvD,SAASC,MAAM,IAAIC,SAAS,QAAQ,6BAA6B;AACjE,SACEC,oBAAoB,QAEf,yBAAyB;AAIhC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,gBAAgB,QAAQ,qBAAqB;AAEtD,OAAO,MAAMC,kBAAuD,GAAG,MAAAA,CACrEC,UAAU,EACVC,MAAM,KACH;EACH,IAAIC,eAA4C;EAEhD,IAAID,MAAM,KAAK,UAAU,EAAE;IAAA,IAAAE,mBAAA;IACzB;IACA,MAAMC,OAAO,GAAG,MAAMX,IAAI,CAACC,MAAM,CAACM,UAAU,CAAC;IAC7CE,eAAe,IAAAC,mBAAA,GAAGC,OAAO,CAACC,UAAU,cAAAF,mBAAA,gBAAAA,mBAAA,GAAlBA,mBAAA,CAAoBG,OAAO,cAAAH,mBAAA,gBAAAA,mBAAA,GAA3BA,mBAAA,CAA6BI,MAAM,cAAAJ,mBAAA,uBAAnCA,mBAAA,CAAqCK,WAAW;EACpE;EAEA,IAAIP,MAAM,KAAK,WAAW,EAAE;IAC1BC,eAAe,GAAGN,oBAAoB,CAACI,UAAU,CAAC;EACpD;EAEA,IAAI,CAACE,eAAe,EAAE;IACpB,MAAM,IAAIL,aAAa,CAAC,+CAA+C,CAAC;EAC1E;EAEA,OAAOK,eAAe;AACxB,CAAC;AAED,MAAMO,eAAe,GAAG,SAAAA,CACtBC,GAAW,EACXC,QAA8B;EAAA,IAC9BC,OAAoC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAAA,OAEzCF,QAAQ,CAACD,GAAG,EAAE;IACZM,OAAO,EAAE;MACPC,MAAM,EAAE,4BAA4B;MACpC,IAAIL,OAAO,CAACM,aAAa,IAAI;QAAE,eAAe,EAAE;MAAW,CAAC;IAC9D;EACF,CAAC,CAAC,CACCC,IAAI,CAACrB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAC3BqB,IAAI,CAAEC,QAAQ,IAAKA,QAAQ,CAACC,IAAI,CAAC,CAAC,CAAC;AAAA;AAExC,OAAO,MAAMC,kBAA6C,GAAG,eAAAA,CAC3DZ,GAAG,EAEA;EAAA,IADH;IAAEC,QAAQ,GAAGY;EAAM,CAAC,GAAAV,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAEzB;EACA,IAAIW,UAAU,GAAG,MAAMf,eAAe,CAACC,GAAG,EAAEC,QAAQ,CAAC;EACrD,MAAMP,OAAO,GAAGT,SAAS,CAAC6B,UAAU,CAAC;EAErC,MAAM;IAAEC;EAAI,CAAC,GAAGrB,OAAO,CAACE,OAAO;;EAE/B;EACA;EACA,IAAImB,GAAG,IAAIA,GAAG,GAAGC,IAAI,CAACC,KAAK,CAACC,IAAI,CAACC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE;IAC9CL,UAAU,GAAG,MAAMf,eAAe,CAACC,GAAG,EAAEC,QAAQ,EAAE;MAAEO,aAAa,EAAE;IAAK,CAAC,CAAC;EAC5E;EAEA,OAAOM,UAAU;AACnB,CAAC;AAED,OAAO,MAAMM,aAAmC,GAAG,MAAAA,CACjD9B,UAAU,EACVC,MAAM,EACN8B,OAAO,KACJ;EACH,MAAM;IAAEC,GAAG;IAAEtB;EAAI,CAAC,GAAG,MAAMX,kBAAkB,CAACC,UAAU,EAAEC,MAAM,CAAC;EACjE,MAAMuB,UAAU,GAAG,MAAMF,kBAAkB,CAACZ,GAAG,EAAEqB,OAAO,CAAC;EACzD,OAAO;IAAE9B,MAAM,EAAE,KAAK;IAAE+B,GAAG;IAAER,UAAU;IAAEd;EAAI,CAAC;AAChD,CAAC"}
|
package/lib/module/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["decode","decodeJwt","verify","StatusList","verifyAndParseStatusList","keys","statusList","parse","payload"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.
|
|
1
|
+
{"version":3,"names":["decode","decodeJwt","verify","StatusList","verifyAndParseStatusList","keys","statusList","parse","payload"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.4.6/02-verify-and-parse-status-list.ts"],"mappings":"AAAA,SAASA,MAAM,IAAIC,SAAS,EAAEC,MAAM,QAAQ,6BAA6B;AAIzE,SAASC,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,wBAAyD,GAAG,MAAAA,CACvEC,IAAI,EACJC,UAAU,KACP;EACH,MAAMJ,MAAM,CAACI,UAAU,EAAED,IAAI,CAAC;EAC9B,OAAOF,UAAU,CAACI,KAAK,CAACN,SAAS,CAACK,UAAU,CAAC,CAACE,OAAO,CAAC;AACxD,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { StatusList as JwtStatusList } from "@sd-jwt/jwt-status-list";
|
|
2
2
|
import { IoWalletError } from "../../../utils/errors";
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Mapping of status bits to their corresponding meaning as defined in the specification.
|
|
5
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
6
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/credential-revocation.html#token-status-lists
|
|
6
7
|
*/
|
|
7
8
|
const CredentialStatusMap = {
|
|
8
9
|
0x00: "VALID",
|
|
9
10
|
0x01: "INVALID",
|
|
10
11
|
0x02: "SUSPENDED",
|
|
11
12
|
0x03: "UPDATE",
|
|
12
|
-
|
|
13
|
+
0x0f: "ATTRIBUTE_UPDATE"
|
|
13
14
|
};
|
|
14
15
|
const formatStatusBit = statusBit => `0x${statusBit.toString(16).padStart(2, "0").toUpperCase()}`;
|
|
15
16
|
export const getStatus = (statusList, idx) => {
|
|
@@ -20,8 +21,8 @@ export const getStatus = (statusList, idx) => {
|
|
|
20
21
|
throw new IoWalletError(`Unsupported credential status bit: ${formatStatusBit(statusBit)}`);
|
|
21
22
|
}
|
|
22
23
|
return {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
rawStatus: formatStatusBit(statusBit),
|
|
25
|
+
status
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
//# sourceMappingURL=03-get-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StatusList","JwtStatusList","IoWalletError","CredentialStatusMap","formatStatusBit","statusBit","toString","padStart","toUpperCase","getStatus","statusList","idx","decodedStatusList","decompressStatusList","lst","bits","status","rawStatus"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.4.6/03-get-status.ts"],"mappings":"AAAA,SAASA,UAAU,IAAIC,aAAa,QAAQ,yBAAyB;AAIrE,SAASC,aAAa,QAAQ,uBAAuB;;AAErD;AACA;AACA;AACA;AACA,MAAMC,mBAAmB,GAAG;EAC1B,IAAI,EAAE,OAAO;EACb,IAAI,EAAE,SAAS;EACf,IAAI,EAAE,WAAW;EACjB,IAAI,EAAE,QAAQ;EACd,IAAI,EAAE;AACR,CAAU;AAIV,MAAMC,eAAe,GAAIC,SAAiB,IACvC,KAAIA,SAAS,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAACC,WAAW,CAAC,CAAE,EAAC;AAE9D,OAAO,MAAMC,SAAqC,GAAGA,CAACC,UAAU,EAAEC,GAAG,KAAK;EACxE,MAAMC,iBAAiB,GAAGX,aAAa,CAACY,oBAAoB,CAC1DH,UAAU,CAACI,GAAG,EACdJ,UAAU,CAACK,IACb,CAAC;EACD,MAAMV,SAAS,GAAGO,iBAAiB,CAACH,SAAS,CAACE,GAAG,CAAwB;EACzE,MAAMK,MAAM,GAAGb,mBAAmB,CAACE,SAAS,CAAC;EAE7C,IAAI,CAACW,MAAM,EAAE;IACX,MAAM,IAAId,aAAa,CACpB,sCAAqCE,eAAe,CAACC,SAAS,CAAE,EACnE,CAAC;EACH;EAEA,OAAO;IACLY,SAAS,EAAEb,eAAe,CAACC,SAAS,CAAC;IACrCW;EACF,CAAC;AACH,CAAC"}
|
|
@@ -6,12 +6,12 @@ export const CredentialStatus = {
|
|
|
6
6
|
isSupported: false
|
|
7
7
|
},
|
|
8
8
|
statusList: {
|
|
9
|
-
isSupported: true,
|
|
10
9
|
get: getStatusList,
|
|
11
10
|
getByUri: getStatusListByUri,
|
|
12
|
-
verifyAndParse: verifyAndParseStatusList,
|
|
13
11
|
getStatus,
|
|
14
|
-
getStatusListEntry
|
|
12
|
+
getStatusListEntry,
|
|
13
|
+
isSupported: true,
|
|
14
|
+
verifyAndParse: verifyAndParseStatusList
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getStatusList","getStatusListByUri","getStatusListEntry","verifyAndParseStatusList","getStatus","CredentialStatus","statusAssertion","isSupported","statusList","get","getByUri","verifyAndParse"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.
|
|
1
|
+
{"version":3,"names":["getStatusList","getStatusListByUri","getStatusListEntry","verifyAndParseStatusList","getStatus","CredentialStatus","statusAssertion","isSupported","statusList","get","getByUri","verifyAndParse"],"sourceRoot":"../../../../../src","sources":["credential/status/v1.4.6/index.ts"],"mappings":"AAEA,SACEA,aAAa,EACbC,kBAAkB,EAClBC,kBAAkB,QACb,kBAAkB;AACzB,SAASC,wBAAwB,QAAQ,mCAAmC;AAC5E,SAASC,SAAS,QAAQ,iBAAiB;AAE3C,OAAO,MAAMC,gBAAqC,GAAG;EACnDC,eAAe,EAAE;IACfC,WAAW,EAAE;EACf,CAAC;EACDC,UAAU,EAAE;IACVC,GAAG,EAAET,aAAa;IAClBU,QAAQ,EAAET,kBAAkB;IAC5BG,SAAS;IACTF,kBAAkB;IAClBK,WAAW,EAAE,IAAI;IACjBI,cAAc,EAAER;EAClB;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Trustmark","V1_0_0","
|
|
1
|
+
{"version":3,"names":["Trustmark","V1_0_0","V1_4_6"],"sourceRoot":"../../../../src","sources":["credential/trustmark/index.ts"],"mappings":"AACA,SAASA,SAAS,IAAIC,MAAM,QAAQ,UAAU;AAC9C,SAASD,SAAS,IAAIE,MAAM,QAAQ,UAAU"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as WalletInstanceAttestation from "../../../wallet-instance-attestation/v1.0.0/utils";
|
|
1
|
+
import { decode as decodeJwt, SignJWT, thumbprint } from "@pagopa/io-react-native-jwt";
|
|
3
2
|
import { IoWalletError } from "../../../utils/errors";
|
|
3
|
+
import { Logger, LogLevel } from "../../../utils/logging";
|
|
4
4
|
import { obfuscateString } from "../../../utils/string";
|
|
5
|
-
import
|
|
5
|
+
import * as WalletInstanceAttestation from "../../../wallet-instance-attestation/v1.0.0/utils";
|
|
6
6
|
export const getCredentialTrustmark = async _ref => {
|
|
7
7
|
let {
|
|
8
|
-
walletInstanceAttestation,
|
|
9
|
-
wiaCryptoContext,
|
|
10
8
|
credentialType,
|
|
11
9
|
docNumber,
|
|
12
|
-
expirationTime = "2m"
|
|
10
|
+
expirationTime = "2m",
|
|
11
|
+
walletInstanceAttestation,
|
|
12
|
+
wiaCryptoContext
|
|
13
13
|
} = _ref;
|
|
14
14
|
/**
|
|
15
15
|
* Check that the public key used to sign the trustmark is the one used for the WIA
|
|
@@ -54,8 +54,8 @@ export const getCredentialTrustmark = async _ref => {
|
|
|
54
54
|
}).setIssuedAt().setExpirationTime(expirationTime).sign();
|
|
55
55
|
const decodedTrustmark = decodeJwt(signedTrustmarkJwt);
|
|
56
56
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
expirationTime: decodedTrustmark.payload.exp ?? 0,
|
|
58
|
+
jwt: signedTrustmarkJwt
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
//# sourceMappingURL=get-credential-trustmark.js.map
|