@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
|
@@ -11,8 +11,8 @@ const mapToDecodedWalletInstanceAttestation = (0, _mappers.createMapper)(x => x.
|
|
|
11
11
|
});
|
|
12
12
|
exports.mapToDecodedWalletInstanceAttestation = mapToDecodedWalletInstanceAttestation;
|
|
13
13
|
const mapToWalletAttestations = (0, _mappers.createMapper)(x => x.wallet_attestations.map(wa => ({
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
attestation: wa.wallet_attestation,
|
|
15
|
+
format: wa.format
|
|
16
16
|
})));
|
|
17
17
|
exports.mapToWalletAttestations = mapToWalletAttestations;
|
|
18
18
|
//# sourceMappingURL=mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mappers","require","_types","mapToDecodedWalletInstanceAttestation","createMapper","x","payload","outputSchema","DecodedWalletInstanceAttestation","exports","mapToWalletAttestations","wallet_attestations","map","wa","
|
|
1
|
+
{"version":3,"names":["_mappers","require","_types","mapToDecodedWalletInstanceAttestation","createMapper","x","payload","outputSchema","DecodedWalletInstanceAttestation","exports","mapToWalletAttestations","wallet_attestations","map","wa","attestation","wallet_attestation","format"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.0.0/mappers.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AASO,MAAME,qCAAqC,GAAG,IAAAC,qBAAY,EAG9DC,CAAC,IAAKA,CAAC,CAACC,OAAO,EAAE;EAClBC,YAAY,EAAEC;AAChB,CAAC,CAAC;AAACC,OAAA,CAAAN,qCAAA,GAAAA,qCAAA;AAEI,MAAMO,uBAAuB,GAAG,IAAAN,qBAAY,EAGhDC,CAAC,IACFA,CAAC,CAACM,mBAAmB,CAACC,GAAG,CAAEC,EAAE,KAAM;EACjCC,WAAW,EAAED,EAAE,CAACE,kBAAkB;EAClCC,MAAM,EAAEH,EAAE,CAACG;AACb,CAAC,CAAC,CACJ,CAAC;AAACP,OAAA,CAAAC,uBAAA,GAAAA,uBAAA"}
|
|
@@ -14,10 +14,10 @@ const WalletInstanceAttestationRequestJwt = z.object({
|
|
|
14
14
|
})),
|
|
15
15
|
payload: z.intersection(_types.Jwt.shape.payload, z.object({
|
|
16
16
|
aud: z.string(),
|
|
17
|
-
|
|
17
|
+
hardware_key_tag: z.string(),
|
|
18
18
|
hardware_signature: z.string(),
|
|
19
19
|
integrity_assertion: z.string(),
|
|
20
|
-
|
|
20
|
+
nonce: z.string()
|
|
21
21
|
}))
|
|
22
22
|
});
|
|
23
23
|
|
|
@@ -29,8 +29,8 @@ const WalletInstanceAttestationJwt = z.object({
|
|
|
29
29
|
typ: z.literal("oauth-client-attestation+jwt")
|
|
30
30
|
})),
|
|
31
31
|
payload: z.intersection(_types.Jwt.shape.payload, z.object({
|
|
32
|
-
sub: z.string(),
|
|
33
32
|
aal: z.string(),
|
|
33
|
+
sub: z.string(),
|
|
34
34
|
wallet_link: z.string().optional(),
|
|
35
35
|
wallet_name: z.string().optional()
|
|
36
36
|
}))
|
|
@@ -38,8 +38,8 @@ const WalletInstanceAttestationJwt = z.object({
|
|
|
38
38
|
exports.WalletInstanceAttestationJwt = WalletInstanceAttestationJwt;
|
|
39
39
|
const WalletAttestationResponse = z.object({
|
|
40
40
|
wallet_attestations: z.array(z.object({
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
format: z.enum(["jwt", "dc+sd-jwt", "mso_mdoc"]),
|
|
42
|
+
wallet_attestation: z.string()
|
|
43
43
|
}))
|
|
44
44
|
});
|
|
45
45
|
exports.WalletAttestationResponse = WalletAttestationResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","_interopRequireWildcard","require","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","WalletInstanceAttestationRequestJwt","object","header","intersection","Jwt","shape","typ","literal","payload","aud","string","
|
|
1
|
+
{"version":3,"names":["z","_interopRequireWildcard","require","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","WalletInstanceAttestationRequestJwt","object","header","intersection","Jwt","shape","typ","literal","payload","aud","string","hardware_key_tag","hardware_signature","integrity_assertion","nonce","exports","WalletInstanceAttestationJwt","aal","sub","wallet_link","optional","wallet_name","WalletAttestationResponse","wallet_attestations","array","format","enum","wallet_attestation"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.0.0/types.ts"],"mappings":";;;;;;AAAA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAsC,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAK/B,MAAMW,mCAAmC,GAAG1B,CAAC,CAAC2B,MAAM,CAAC;EAC1DC,MAAM,EAAE5B,CAAC,CAAC6B,YAAY,CACpBC,UAAG,CAACC,KAAK,CAACH,MAAM,EAChB5B,CAAC,CAAC2B,MAAM,CAAC;IACPK,GAAG,EAAEhC,CAAC,CAACiC,OAAO,CAAC,YAAY;EAC7B,CAAC,CACH,CAAC;EACDC,OAAO,EAAElC,CAAC,CAAC6B,YAAY,CACrBC,UAAG,CAACC,KAAK,CAACG,OAAO,EACjBlC,CAAC,CAAC2B,MAAM,CAAC;IACPQ,GAAG,EAAEnC,CAAC,CAACoC,MAAM,CAAC,CAAC;IACfC,gBAAgB,EAAErC,CAAC,CAACoC,MAAM,CAAC,CAAC;IAC5BE,kBAAkB,EAAEtC,CAAC,CAACoC,MAAM,CAAC,CAAC;IAC9BG,mBAAmB,EAAEvC,CAAC,CAACoC,MAAM,CAAC,CAAC;IAC/BI,KAAK,EAAExC,CAAC,CAACoC,MAAM,CAAC;EAClB,CAAC,CACH;AACF,CAAC,CAAC;;AAEF;AACA;AAAAK,OAAA,CAAAf,mCAAA,GAAAA,mCAAA;AAIO,MAAMgB,4BAA4B,GAAG1C,CAAC,CAAC2B,MAAM,CAAC;EACnDC,MAAM,EAAE5B,CAAC,CAAC6B,YAAY,CACpBC,UAAG,CAACC,KAAK,CAACH,MAAM,EAChB5B,CAAC,CAAC2B,MAAM,CAAC;IACPK,GAAG,EAAEhC,CAAC,CAACiC,OAAO,CAAC,8BAA8B;EAC/C,CAAC,CACH,CAAC;EACDC,OAAO,EAAElC,CAAC,CAAC6B,YAAY,CACrBC,UAAG,CAACC,KAAK,CAACG,OAAO,EACjBlC,CAAC,CAAC2B,MAAM,CAAC;IACPgB,GAAG,EAAE3C,CAAC,CAACoC,MAAM,CAAC,CAAC;IACfQ,GAAG,EAAE5C,CAAC,CAACoC,MAAM,CAAC,CAAC;IACfS,WAAW,EAAE7C,CAAC,CAACoC,MAAM,CAAC,CAAC,CAACU,QAAQ,CAAC,CAAC;IAClCC,WAAW,EAAE/C,CAAC,CAACoC,MAAM,CAAC,CAAC,CAACU,QAAQ,CAAC;EACnC,CAAC,CACH;AACF,CAAC,CAAC;AAACL,OAAA,CAAAC,4BAAA,GAAAA,4BAAA;AAKI,MAAMM,yBAAyB,GAAGhD,CAAC,CAAC2B,MAAM,CAAC;EAChDsB,mBAAmB,EAAEjD,CAAC,CAACkD,KAAK,CAC1BlD,CAAC,CAAC2B,MAAM,CAAC;IACPwB,MAAM,EAAEnD,CAAC,CAACoD,IAAI,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IAChDC,kBAAkB,EAAErD,CAAC,CAACoC,MAAM,CAAC;EAC/B,CAAC,CACH;AACF,CAAC,CAAC;AAACK,OAAA,CAAAO,yBAAA,GAAAA,yBAAA"}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.decode = decode;
|
|
7
7
|
exports.verify = verify;
|
|
8
|
-
var _types = require("./types");
|
|
9
8
|
var _ioReactNativeJwt = require("@pagopa/io-react-native-jwt");
|
|
9
|
+
var _types = require("./types");
|
|
10
10
|
/**
|
|
11
11
|
* Decode a given JWT to get the parsed Wallet Instance Attestation object they define.
|
|
12
12
|
* It ensures provided data is in a valid shape.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_ioReactNativeJwt","require","_types","decode","token","decodedJwt","decodeJwt","WalletInstanceAttestationJwt","parse","header","protectedHeader","payload","verify","decoded","pubKey","cnf","jwk","verifyJwt"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.0.0/utils.ts"],"mappings":";;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,MAAMA,CAACC,KAAa,EAAgC;EAClE;EACA,MAAMC,UAAU,GAAG,IAAAC,wBAAS,EAACF,KAAK,CAAC;EACnC;EACA,OAAOG,mCAA4B,CAACC,KAAK,CAAC;IACxCC,MAAM,EAAEJ,UAAU,CAACK,eAAe;IAClCC,OAAO,EAAEN,UAAU,CAACM;EACtB,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACO,eAAeC,MAAMA,CAC1BR,KAAa,EAC0B;EACvC,MAAMS,OAAO,GAAGV,MAAM,CAACC,KAAK,CAAC;EAC7B,MAAMU,MAAM,GAAGD,OAAO,CAACF,OAAO,CAACI,GAAG,CAACC,GAAG;EAEtC,MAAM,IAAAC,wBAAS,EAACb,KAAK,EAAEU,MAAM,CAAC;EAE9B,OAAOD,OAAO;AAChB"}
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.WalletInstanceAttestation = void 0;
|
|
7
7
|
var _mappers = require("../../utils/mappers");
|
|
8
8
|
var _issuing = require("./issuing");
|
|
9
|
-
var _utils = require("./utils");
|
|
10
9
|
var _mappers2 = require("./mappers");
|
|
10
|
+
var _utils = require("./utils");
|
|
11
11
|
const WalletInstanceAttestation = {
|
|
12
|
-
getAttestation: _issuing.getAttestation,
|
|
13
12
|
decode: (0, _mappers.withMapper)(_mappers2.mapToDecodedWalletInstanceAttestation, _utils.decode),
|
|
13
|
+
getAttestation: _issuing.getAttestation,
|
|
14
14
|
verify: (0, _mappers.withMapperAsync)(_mappers2.mapToDecodedWalletInstanceAttestation, _utils.verify)
|
|
15
15
|
};
|
|
16
16
|
exports.WalletInstanceAttestation = WalletInstanceAttestation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_mappers","require","_issuing","_mappers2","_utils","WalletInstanceAttestation","decode","withMapper","mapToDecodedWalletInstanceAttestation","getAttestation","verify","withMapperAsync","exports"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.4.6/index.ts"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEO,MAAMI,yBAAuD,GAAG;EACrEC,MAAM,EAAE,IAAAC,mBAAU,EAACC,+CAAqC,EAAEF,aAAM,CAAC;EACjEG,cAAc,EAAdA,uBAAc;EACdC,MAAM,EAAE,IAAAC,wBAAe,EAACH,+CAAqC,EAAEE,aAAM;AACvE,CAAC;AAACE,OAAA,CAAAP,yBAAA,GAAAA,yBAAA"}
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getAttestation = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
7
|
var _ioReactNativeJwt = require("@pagopa/io-react-native-jwt");
|
|
9
|
-
var
|
|
10
|
-
var _jwk = require("../../utils/jwk");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
11
9
|
var _client = require("../../client");
|
|
10
|
+
var _jwk = require("../../utils/jwk");
|
|
11
|
+
var _logging = require("../../utils/logging");
|
|
12
12
|
var _types = require("./types");
|
|
13
13
|
async function getAttestationRequest(_ref, wiaCryptoContext, integrityContext) {
|
|
14
14
|
let {
|
|
@@ -29,21 +29,21 @@ async function getAttestationRequest(_ref, wiaCryptoContext, integrityContext) {
|
|
|
29
29
|
};
|
|
30
30
|
const hardwareKeyTag = integrityContext.getHardwareKeyTag();
|
|
31
31
|
const {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
authenticatorData,
|
|
33
|
+
signature
|
|
34
34
|
} = await integrityContext.getHardwareSignatureWithAuthData(JSON.stringify(clientData));
|
|
35
35
|
return new _ioReactNativeJwt.SignJWT(wiaCryptoContext).setPayload({
|
|
36
|
+
cnf: {
|
|
37
|
+
jwk: (0, _jwk.fixBase64EncodingOnKey)(publicKey)
|
|
38
|
+
},
|
|
39
|
+
hardware_key_tag: hardwareKeyTag,
|
|
40
|
+
hardware_signature: signature,
|
|
41
|
+
integrity_assertion: authenticatorData,
|
|
36
42
|
iss: hardwareKeyTag,
|
|
37
43
|
nonce: challenge,
|
|
38
44
|
platform: _reactNative.Platform.OS,
|
|
39
|
-
hardware_signature: signature,
|
|
40
|
-
integrity_assertion: authenticatorData,
|
|
41
|
-
hardware_key_tag: hardwareKeyTag,
|
|
42
45
|
wallet_solution_id: walletSolutionId,
|
|
43
|
-
wallet_solution_version: walletSolutionVersion
|
|
44
|
-
cnf: {
|
|
45
|
-
jwk: (0, _jwk.fixBase64EncodingOnKey)(publicKey)
|
|
46
|
-
}
|
|
46
|
+
wallet_solution_version: walletSolutionVersion
|
|
47
47
|
}).setProtectedHeader({
|
|
48
48
|
kid: publicKey.kid,
|
|
49
49
|
typ: "wia-request+jwt"
|
|
@@ -51,13 +51,13 @@ async function getAttestationRequest(_ref, wiaCryptoContext, integrityContext) {
|
|
|
51
51
|
}
|
|
52
52
|
const getAttestation = async (requestParams, _ref2) => {
|
|
53
53
|
let {
|
|
54
|
-
|
|
54
|
+
appFetch = fetch,
|
|
55
55
|
integrityContext,
|
|
56
|
-
|
|
56
|
+
wiaCryptoContext
|
|
57
57
|
} = _ref2;
|
|
58
58
|
const api = (0, _client.getWalletProviderClient)({
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
appFetch,
|
|
60
|
+
walletProviderBaseUrl: requestParams.walletProviderBaseUrl
|
|
61
61
|
});
|
|
62
62
|
const challenge = await api.get("/nonce").then(response => response.nonce);
|
|
63
63
|
_logging.Logger.log(_logging.LogLevel.DEBUG, `Challenge obtained from ${requestParams.walletProviderBaseUrl}: ${challenge} `);
|
|
@@ -67,15 +67,15 @@ const getAttestation = async (requestParams, _ref2) => {
|
|
|
67
67
|
}, wiaCryptoContext, integrityContext);
|
|
68
68
|
_logging.Logger.log(_logging.LogLevel.DEBUG, `Signed attestation request: ${signedAttestationRequest}`);
|
|
69
69
|
const response = await api.post("/wallet-instance-attestations", {
|
|
70
|
+
body: signedAttestationRequest,
|
|
70
71
|
header: {
|
|
71
72
|
"Content-Type": "text/plain"
|
|
72
|
-
}
|
|
73
|
-
body: signedAttestationRequest
|
|
73
|
+
}
|
|
74
74
|
}).then(_types.WalletInstanceAttestationResponse.parse);
|
|
75
75
|
_logging.Logger.log(_logging.LogLevel.DEBUG, `Obtained Wallet Instance Attestation in jwt format: ${response.wallet_instance_attestation}`);
|
|
76
76
|
return [{
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
attestation: response.wallet_instance_attestation,
|
|
78
|
+
format: "jwt"
|
|
79
79
|
}];
|
|
80
80
|
};
|
|
81
81
|
exports.getAttestation = getAttestation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ioReactNativeJwt","require","_reactNative","_client","_jwk","_logging","_types","getAttestationRequest","_ref","wiaCryptoContext","integrityContext","challenge","walletSolutionId","walletSolutionVersion","jwk","getPublicKey","parsedJwk","JWK","parse","keyThumbprint","thumbprint","publicKey","kid","clientData","jwk_thumbprint","hardwareKeyTag","getHardwareKeyTag","authenticatorData","signature","getHardwareSignatureWithAuthData","JSON","stringify","SignJWT","setPayload","cnf","fixBase64EncodingOnKey","hardware_key_tag","hardware_signature","integrity_assertion","iss","nonce","platform","Platform","OS","wallet_solution_id","wallet_solution_version","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","getAttestation","requestParams","_ref2","appFetch","fetch","api","getWalletProviderClient","walletProviderBaseUrl","get","then","response","Logger","log","LogLevel","DEBUG","signedAttestationRequest","post","body","header","WalletInstanceAttestationResponse","wallet_instance_attestation","attestation","format","exports"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.4.6/issuing.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,eAAeM,qBAAqBA,CAAAC,IAAA,EAMlCC,gBAA+B,EAC/BC,gBAAkC,EACjB;EAAA,IAPjB;IACEC,SAAS;IACTC,gBAAgB;IAChBC;EACsD,CAAC,GAAAL,IAAA;EAIzD,MAAMM,GAAG,GAAG,MAAML,gBAAgB,CAACM,YAAY,CAAC,CAAC;EACjD,MAAMC,SAAS,GAAGC,QAAG,CAACC,KAAK,CAACJ,GAAG,CAAC;EAChC,MAAMK,aAAa,GAAG,MAAM,IAAAC,4BAAU,EAACJ,SAAS,CAAC;EACjD,MAAMK,SAAS,GAAG;IAAE,GAAGL,SAAS;IAAEM,GAAG,EAAEH;EAAc,CAAC;EAEtD,MAAMI,UAAU,GAAG;IACjBZ,SAAS;IACTa,cAAc,EAAEL;EAClB,CAAC;EAED,MAAMM,cAAc,GAAGf,gBAAgB,CAACgB,iBAAiB,CAAC,CAAC;EAC3D,MAAM;IAAEC,iBAAiB;IAAEC;EAAU,CAAC,GACpC,MAAMlB,gBAAgB,CAACmB,gCAAgC,CACrDC,IAAI,CAACC,SAAS,CAACR,UAAU,CAC3B,CAAC;EAEH,OAAO,IAAIS,yBAAO,CAACvB,gBAAgB,CAAC,CACjCwB,UAAU,CAAC;IACVC,GAAG,EAAE;MACHpB,GAAG,EAAE,IAAAqB,2BAAsB,EAACd,SAAS;IACvC,CAAC;IACDe,gBAAgB,EAAEX,cAAc;IAChCY,kBAAkB,EAAET,SAAS;IAC7BU,mBAAmB,EAAEX,iBAAiB;IACtCY,GAAG,EAAEd,cAAc;IACnBe,KAAK,EAAE7B,SAAS;IAChB8B,QAAQ,EAAEC,qBAAQ,CAACC,EAAE;IACrBC,kBAAkB,EAAEhC,gBAAgB;IACpCiC,uBAAuB,EAAEhC;EAC3B,CAAC,CAAC,CACDiC,kBAAkB,CAAC;IAClBxB,GAAG,EAAED,SAAS,CAACC,GAAG;IAClByB,GAAG,EAAE;EACP,CAAC,CAAC,CACDC,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,IAAI,CAAC,CACvBC,IAAI,CAAC,CAAC;AACX;AAEO,MAAMC,cAA8D,GACzE,MAAAA,CACEC,aAAa,EAAAC,KAAA,KAEV;EAAA,IADH;IAAEC,QAAQ,GAAGC,KAAK;IAAE7C,gBAAgB;IAAED;EAAiB,CAAC,GAAA4C,KAAA;EAExD,MAAMG,GAAG,GAAG,IAAAC,+BAAuB,EAAC;IAClCH,QAAQ;IACRI,qBAAqB,EAAEN,aAAa,CAACM;EACvC,CAAC,CAAC;EAEF,MAAM/C,SAAS,GAAG,MAAM6C,GAAG,CACxBG,GAAG,CAAC,QAAQ,CAAC,CACbC,IAAI,CAAEC,QAAQ,IAAKA,QAAQ,CAACrB,KAAK,CAAC;EACrCsB,eAAM,CAACC,GAAG,CACRC,iBAAQ,CAACC,KAAK,EACb,2BAA0Bb,aAAa,CAACM,qBAAsB,KAAI/C,SAAU,GAC/E,CAAC;EAED,MAAMuD,wBAAwB,GAAG,MAAM3D,qBAAqB,CAC1D;IAAEI,SAAS;IAAE,GAAGyC;EAAc,CAAC,EAC/B3C,gBAAgB,EAChBC,gBACF,CAAC;EACDoD,eAAM,CAACC,GAAG,CACRC,iBAAQ,CAACC,KAAK,EACb,+BAA8BC,wBAAyB,EAC1D,CAAC;EAED,MAAML,QAAQ,GAAG,MAAML,GAAG,CACvBW,IAAI,CAAC,+BAA+B,EAAE;IACrCC,IAAI,EAAEF,wBAAwB;IAC9BG,MAAM,EAAE;MACN,cAAc,EAAE;IAClB;EACF,CAAC,CAAC,CACDT,IAAI,CAACU,wCAAiC,CAACpD,KAAK,CAAC;EAEhD4C,eAAM,CAACC,GAAG,CACRC,iBAAQ,CAACC,KAAK,EACb,uDAAsDJ,QAAQ,CAACU,2BAA4B,EAC9F,CAAC;EAED,OAAO,CACL;IACEC,WAAW,EAAEX,QAAQ,CAACU,2BAA2B;IACjDE,MAAM,EAAE;EACV,CAAC,CACF;AACH,CAAC;AAACC,OAAA,CAAAvB,cAAA,GAAAA,cAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mappers","require","_types","mapToDecodedWalletInstanceAttestation","createMapper","x","payload","outputSchema","DecodedWalletInstanceAttestation","exports"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.
|
|
1
|
+
{"version":3,"names":["_mappers","require","_types","mapToDecodedWalletInstanceAttestation","createMapper","x","payload","outputSchema","DecodedWalletInstanceAttestation","exports"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.4.6/mappers.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGO,MAAME,qCAAqC,GAAG,IAAAC,qBAAY,EAG9DC,CAAC,IAAKA,CAAC,CAACC,OAAO,EAAE;EAClBC,YAAY,EAAEC;AAChB,CAAC,CAAC;AAACC,OAAA,CAAAN,qCAAA,GAAAA,qCAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","_interopRequireWildcard","require","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","WalletInstanceAttestationJwt","object","header","intersection","Jwt","shape","typ","literal","x5c","array","string","payload","sub","wallet_link","optional","wallet_name","exports","WalletInstanceAttestationResponse","wallet_instance_attestation"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.
|
|
1
|
+
{"version":3,"names":["z","_interopRequireWildcard","require","_types","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","WalletInstanceAttestationJwt","object","header","intersection","Jwt","shape","typ","literal","x5c","array","string","payload","sub","wallet_link","optional","wallet_name","exports","WalletInstanceAttestationResponse","wallet_instance_attestation"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.4.6/types.ts"],"mappings":";;;;;;AAAA,IAAAA,CAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAAsC,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAK/B,MAAMW,4BAA4B,GAAG1B,CAAC,CAAC2B,MAAM,CAAC;EACnDC,MAAM,EAAE5B,CAAC,CAAC6B,YAAY,CACpBC,UAAG,CAACC,KAAK,CAACH,MAAM,EAChB5B,CAAC,CAAC2B,MAAM,CAAC;IACPK,GAAG,EAAEhC,CAAC,CAACiC,OAAO,CAAC,8BAA8B,CAAC;IAC9CC,GAAG,EAAElC,CAAC,CAACmC,KAAK,CAACnC,CAAC,CAACoC,MAAM,CAAC,CAAC;EACzB,CAAC,CACH,CAAC;EACDC,OAAO,EAAErC,CAAC,CAAC6B,YAAY,CACrBC,UAAG,CAACC,KAAK,CAACM,OAAO,EACjBrC,CAAC,CAAC2B,MAAM,CAAC;IACPW,GAAG,EAAEtC,CAAC,CAACoC,MAAM,CAAC,CAAC;IACfG,WAAW,EAAEvC,CAAC,CAACoC,MAAM,CAAC,CAAC,CAACI,QAAQ,CAAC,CAAC;IAClCC,WAAW,EAAEzC,CAAC,CAACoC,MAAM,CAAC,CAAC,CAACI,QAAQ,CAAC;EACnC,CAAC,CACH;AACF,CAAC,CAAC;AAACE,OAAA,CAAAhB,4BAAA,GAAAA,4BAAA;AAKI,MAAMiB,iCAAiC,GAAG3C,CAAC,CAAC2B,MAAM,CAAC;EACxDiB,2BAA2B,EAAE5C,CAAC,CAACoC,MAAM,CAAC;AACxC,CAAC,CAAC;AAACM,OAAA,CAAAC,iCAAA,GAAAA,iCAAA"}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.decode = decode;
|
|
7
7
|
exports.verify = verify;
|
|
8
|
-
var _types = require("./types");
|
|
9
8
|
var _ioReactNativeJwt = require("@pagopa/io-react-native-jwt");
|
|
9
|
+
var _types = require("./types");
|
|
10
10
|
/**
|
|
11
11
|
* Decode a given JWT to get the parsed Wallet Instance Attestation object they define.
|
|
12
12
|
* It ensures provided data is in a valid shape.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_ioReactNativeJwt","require","_types","decode","token","decodedJwt","decodeJwt","WalletInstanceAttestationJwt","parse","header","protectedHeader","payload","verify","decoded","pubKey","cnf","jwk","verifyJwt"],"sourceRoot":"../../../../src","sources":["wallet-instance-attestation/v1.4.6/utils.ts"],"mappings":";;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,MAAMA,CAACC,KAAa,EAAgC;EAClE,MAAMC,UAAU,GAAG,IAAAC,wBAAS,EAACF,KAAK,CAAC;EACnC,OAAOG,mCAA4B,CAACC,KAAK,CAAC;IACxCC,MAAM,EAAEJ,UAAU,CAACK,eAAe;IAClCC,OAAO,EAAEN,UAAU,CAACM;EACtB,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACO,eAAeC,MAAMA,CAC1BR,KAAa,EAC0B;EACvC,MAAMS,OAAO,GAAGV,MAAM,CAACC,KAAK,CAAC;EAC7B,MAAMU,MAAM,GAAGD,OAAO,CAACF,OAAO,CAACI,GAAG,CAACC,GAAG;EAEtC,MAAM,IAAAC,wBAAS,EAACb,KAAK,EAAEU,MAAM,CAAC;EAE9B,OAAOD,OAAO;AAChB"}
|
package/lib/module/IoWallet.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ioWalletApiByVersion } from "./api";
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-unsafe-declaration-merging
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* Instantiate `IoWallet` SDK for a specific IT-Wallet version.
|
|
4
7
|
*
|
|
@@ -7,16 +10,15 @@ import { ioWalletApiByVersion } from "./api";
|
|
|
7
10
|
* @example
|
|
8
11
|
* const wallet = new IoWallet({ version: "1.0.0" })
|
|
9
12
|
* wallet.Credential.Issuance.exampleMethod()
|
|
10
|
-
*/
|
|
13
|
+
*/ // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
11
14
|
export class IoWallet {
|
|
12
|
-
#version;
|
|
13
|
-
|
|
14
15
|
/**
|
|
15
16
|
* Get the IT-Wallet specifications version bound to this instance.
|
|
16
17
|
*/
|
|
17
18
|
get version() {
|
|
18
19
|
return this.#version;
|
|
19
20
|
}
|
|
21
|
+
#version;
|
|
20
22
|
constructor(_ref) {
|
|
21
23
|
let {
|
|
22
24
|
version
|
|
@@ -30,8 +32,8 @@ export class IoWallet {
|
|
|
30
32
|
// Dynamically add features implementations aligned with the specified version
|
|
31
33
|
for (const feature of Object.keys(walletApi)) {
|
|
32
34
|
Object.defineProperty(this, feature, {
|
|
33
|
-
enumerable: true,
|
|
34
35
|
configurable: false,
|
|
36
|
+
enumerable: true,
|
|
35
37
|
value: walletApi[feature]
|
|
36
38
|
});
|
|
37
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ioWalletApiByVersion","IoWallet","version","constructor","_ref","walletApi","Error","feature","Object","keys","defineProperty","
|
|
1
|
+
{"version":3,"names":["ioWalletApiByVersion","IoWallet","version","constructor","_ref","walletApi","Error","feature","Object","keys","defineProperty","configurable","enumerable","value"],"sourceRoot":"../../src","sources":["IoWallet.ts"],"mappings":"AAAA,SAA2BA,oBAAoB,QAAyB,OAAO;;AAE/E;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GARA,CASA;AACA,OAAO,MAAMC,QAAQ,CAAC;EACpB;AACF;AACA;EACE,IAAIC,OAAOA,CAAA,EAAG;IACZ,OAAO,IAAI,CAAC,CAACA,OAAO;EACtB;EAEA,CAACA,OAAO;EAERC,WAAWA,CAAAC,IAAA,EAAmC;IAAA,IAAlC;MAAEF;IAA6B,CAAC,GAAAE,IAAA;IAC1C,IAAI,CAAC,CAACF,OAAO,GAAGA,OAAO;IACvB,MAAMG,SAAS,GAAGL,oBAAoB,CAACE,OAAO,CAAC;IAE/C,IAAI,CAACG,SAAS,EAAE;MACd,MAAM,IAAIC,KAAK,CACZ,yDAAwDJ,OAAQ,kBACnE,CAAC;IACH;;IAEA;IACA,KAAK,MAAMK,OAAO,IAAIC,MAAM,CAACC,IAAI,CAACJ,SAAS,CAAC,EAA2B;MACrEG,MAAM,CAACE,cAAc,CAAC,IAAI,EAAEH,OAAO,EAAE;QACnCI,YAAY,EAAE,KAAK;QACnBC,UAAU,EAAE,IAAI;QAChBC,KAAK,EAAER,SAAS,CAACE,OAAO;MAC1B,CAAC,CAAC;IACJ;EACF;AACF"}
|
package/lib/module/api/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as WalletInstance from "../wallet-instance";
|
|
2
|
-
import * as WIA from "../wallet-instance-attestation";
|
|
3
|
-
import * as WUA from "../wallet-unit-attestation";
|
|
4
|
-
import * as Trust from "../trust";
|
|
5
1
|
import * as CredentialIssuance from "../credential/issuance";
|
|
6
|
-
import * as
|
|
2
|
+
import * as CredentialsOffer from "../credential/offer";
|
|
7
3
|
import * as RemotePresentation from "../credential/presentation";
|
|
8
|
-
import * as
|
|
4
|
+
import * as CredentialStatus from "../credential/status";
|
|
9
5
|
import * as Trustmark from "../credential/trustmark";
|
|
10
|
-
import * as
|
|
6
|
+
import * as CredentialsCatalogue from "../credentials-catalogue";
|
|
7
|
+
import * as KA from "../key-attestation";
|
|
8
|
+
import * as Trust from "../trust";
|
|
9
|
+
import * as WalletInstance from "../wallet-instance";
|
|
10
|
+
import * as WIA from "../wallet-instance-attestation";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The Wallet public API.
|
|
@@ -18,29 +18,28 @@ import * as CredentialsOffer from "../credential/offer";
|
|
|
18
18
|
*/
|
|
19
19
|
export const ioWalletApiByVersion = {
|
|
20
20
|
"1.0.0": {
|
|
21
|
-
WalletInstance: WalletInstance.V1_0_0,
|
|
22
|
-
WalletInstanceAttestation: WIA.V1_0_0,
|
|
23
|
-
WalletUnitAttestation: WUA.V1_0_0,
|
|
24
|
-
Trust: Trust.V1_0_0,
|
|
25
21
|
CredentialIssuance: CredentialIssuance.V1_0_0,
|
|
22
|
+
CredentialsCatalogue: CredentialsCatalogue.V1_0_0,
|
|
23
|
+
CredentialsOffer: CredentialsOffer.V1_0_0,
|
|
26
24
|
CredentialStatus: CredentialStatus.V1_0_0,
|
|
25
|
+
KeyAttestation: KA.V1_0_0,
|
|
27
26
|
RemotePresentation: RemotePresentation.V1_0_0,
|
|
28
|
-
|
|
27
|
+
Trust: Trust.V1_0_0,
|
|
29
28
|
Trustmark: Trustmark.V1_0_0,
|
|
30
|
-
|
|
29
|
+
WalletInstance: WalletInstance.V1_0_0,
|
|
30
|
+
WalletInstanceAttestation: WIA.V1_0_0
|
|
31
31
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
"1.4.6": {
|
|
33
|
+
CredentialIssuance: CredentialIssuance.V1_4_6,
|
|
34
|
+
CredentialsCatalogue: CredentialsCatalogue.V1_4_6,
|
|
35
|
+
CredentialsOffer: CredentialsOffer.V1_4_6,
|
|
36
|
+
CredentialStatus: CredentialStatus.V1_4_6,
|
|
37
|
+
KeyAttestation: KA.V1_4_6,
|
|
38
|
+
RemotePresentation: RemotePresentation.V1_4_6,
|
|
37
39
|
Trust: Trust.V1_0_0,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
CredentialsCatalogue: CredentialsCatalogue.V1_3_3,
|
|
42
|
-
Trustmark: Trustmark.V1_3_3,
|
|
43
|
-
CredentialsOffer: CredentialsOffer.V1_3_3
|
|
40
|
+
Trustmark: Trustmark.V1_4_6,
|
|
41
|
+
WalletInstance: WalletInstance.V1_4_6,
|
|
42
|
+
WalletInstanceAttestation: WIA.V1_4_6
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["CredentialIssuance","CredentialsOffer","RemotePresentation","CredentialStatus","Trustmark","CredentialsCatalogue","KA","Trust","WalletInstance","WIA","ioWalletApiByVersion","V1_0_0","KeyAttestation","WalletInstanceAttestation","V1_4_6"],"sourceRoot":"../../../src","sources":["api/index.ts"],"mappings":"AAAA,OAAO,KAAKA,kBAAkB,MAAM,wBAAwB;AAC5D,OAAO,KAAKC,gBAAgB,MAAM,qBAAqB;AACvD,OAAO,KAAKC,kBAAkB,MAAM,4BAA4B;AAChE,OAAO,KAAKC,gBAAgB,MAAM,sBAAsB;AACxD,OAAO,KAAKC,SAAS,MAAM,yBAAyB;AACpD,OAAO,KAAKC,oBAAoB,MAAM,0BAA0B;AAChE,OAAO,KAAKC,EAAE,MAAM,oBAAoB;AACxC,OAAO,KAAKC,KAAK,MAAM,UAAU;AACjC,OAAO,KAAKC,cAAc,MAAM,oBAAoB;AACpD,OAAO,KAAKC,GAAG,MAAM,gCAAgC;;AAErD;AACA;AACA;;AAgBA;AACA;AACA;AACA,OAAO,MAAMC,oBAAqD,GAAG;EACnE,OAAO,EAAE;IACPV,kBAAkB,EAAEA,kBAAkB,CAACW,MAAM;IAC7CN,oBAAoB,EAAEA,oBAAoB,CAACM,MAAM;IACjDV,gBAAgB,EAAEA,gBAAgB,CAACU,MAAM;IACzCR,gBAAgB,EAAEA,gBAAgB,CAACQ,MAAM;IACzCC,cAAc,EAAEN,EAAE,CAACK,MAAM;IACzBT,kBAAkB,EAAEA,kBAAkB,CAACS,MAAM;IAC7CJ,KAAK,EAAEA,KAAK,CAACI,MAAM;IACnBP,SAAS,EAAEA,SAAS,CAACO,MAAM;IAC3BH,cAAc,EAAEA,cAAc,CAACG,MAAM;IACrCE,yBAAyB,EAAEJ,GAAG,CAACE;EACjC,CAAC;EACD,OAAO,EAAE;IACPX,kBAAkB,EAAEA,kBAAkB,CAACc,MAAM;IAC7CT,oBAAoB,EAAEA,oBAAoB,CAACS,MAAM;IACjDb,gBAAgB,EAAEA,gBAAgB,CAACa,MAAM;IACzCX,gBAAgB,EAAEA,gBAAgB,CAACW,MAAM;IACzCF,cAAc,EAAEN,EAAE,CAACQ,MAAM;IACzBZ,kBAAkB,EAAEA,kBAAkB,CAACY,MAAM;IAC7CP,KAAK,EAAEA,KAAK,CAACI,MAAM;IACnBP,SAAS,EAAEA,SAAS,CAACU,MAAM;IAC3BN,cAAc,EAAEA,cAAc,CAACM,MAAM;IACrCD,yBAAyB,EAAEJ,GAAG,CAACK;EACjC;AACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parseRawHttpResponse } from "../utils/misc";
|
|
2
1
|
import { WalletProviderResponseError } from "../utils/errors";
|
|
3
|
-
import {
|
|
2
|
+
import { parseRawHttpResponse } from "../utils/misc";
|
|
3
|
+
import { createApiClient as createWalletProviderApiClient, ProblemJson } from "./generated/wallet-provider";
|
|
4
4
|
const validateResponse = async response => {
|
|
5
5
|
if (!response.ok) {
|
|
6
6
|
let problemDetail = {};
|
|
@@ -21,16 +21,16 @@ const validateResponse = async response => {
|
|
|
21
21
|
};
|
|
22
22
|
export const getWalletProviderClient = context => {
|
|
23
23
|
const {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
appFetch = fetch,
|
|
25
|
+
walletProviderBaseUrl
|
|
26
26
|
} = context;
|
|
27
27
|
return createWalletProviderApiClient((method, url, params) => appFetch(interpolateUrl(url, params), {
|
|
28
|
-
method,
|
|
29
28
|
body: params !== null && params !== void 0 && params.body ? processBody(params.body) : undefined,
|
|
30
29
|
headers: {
|
|
31
30
|
"Content-Type": "application/json",
|
|
32
31
|
...(params === null || params === void 0 ? void 0 : params.header)
|
|
33
|
-
}
|
|
32
|
+
},
|
|
33
|
+
method
|
|
34
34
|
}).then(validateResponse).then(parseRawHttpResponse), walletProviderBaseUrl);
|
|
35
35
|
};
|
|
36
36
|
const processBody = body => typeof body === "string" ? body : JSON.stringify(body);
|
|
@@ -42,11 +42,9 @@ const processBody = body => typeof body === "string" ? body : JSON.stringify(bod
|
|
|
42
42
|
*/
|
|
43
43
|
export const interpolateUrl = (url, params) => {
|
|
44
44
|
if (!(params !== null && params !== void 0 && params.path)) return url;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
return url;
|
|
45
|
+
return Object.entries(params.path).reduce((interpolatedUrl, _ref) => {
|
|
46
|
+
let [key, value] = _ref;
|
|
47
|
+
return typeof value === "string" ? interpolatedUrl.replace(`{${key}}`, value) : interpolatedUrl;
|
|
48
|
+
}, url);
|
|
51
49
|
};
|
|
52
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["WalletProviderResponseError","parseRawHttpResponse","createApiClient","createWalletProviderApiClient","ProblemJson","validateResponse","response","ok","problemDetail","parse","json","title","message","reason","statusCode","status","getWalletProviderClient","context","appFetch","fetch","walletProviderBaseUrl","method","url","params","interpolateUrl","body","processBody","undefined","headers","header","then","JSON","stringify","path","Object","entries","reduce","interpolatedUrl","_ref","key","value","replace"],"sourceRoot":"../../../src","sources":["client/index.ts"],"mappings":"AAAA,SAASA,2BAA2B,QAAQ,iBAAiB;AAC7D,SAASC,oBAAoB,QAAQ,eAAe;AACpD,SACEC,eAAe,IAAIC,6BAA6B,EAEhDC,WAAW,QAEN,6BAA6B;AAMpC,MAAMC,gBAAgB,GAAG,MAAOC,QAAkB,IAAK;EACrD,IAAI,CAACA,QAAQ,CAACC,EAAE,EAAE;IAChB,IAAIC,aAA0B,GAAG,CAAC,CAAC;IACnC,IAAI;MACFA,aAAa,GAAGJ,WAAW,CAACK,KAAK,CAAC,MAAMH,QAAQ,CAACI,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,MAAM;MACNF,aAAa,GAAG;QACdG,KAAK,EAAE;MACT,CAAC;IACH;IAEA,MAAM,IAAIX,2BAA2B,CAAC;MACpCY,OAAO,EAAEJ,aAAa,CAACG,KAAK,IAAI,uCAAuC;MACvEE,MAAM,EAAEL,aAAa;MACrBM,UAAU,EAAER,QAAQ,CAACS;IACvB,CAAC,CAAC;EACJ;EACA,OAAOT,QAAQ;AACjB,CAAC;AAED,OAAO,MAAMU,uBAAuB,GAAIC,OAGvC,IAAK;EACJ,MAAM;IAAEC,QAAQ,GAAGC,KAAK;IAAEC;EAAsB,CAAC,GAAGH,OAAO;EAE3D,OAAOd,6BAA6B,CAClC,CAACkB,MAAM,EAAEC,GAAG,EAAEC,MAAM,KAClBL,QAAQ,CAACM,cAAc,CAACF,GAAG,EAAEC,MAAM,CAAC,EAAE;IACpCE,IAAI,EAAEF,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEE,IAAI,GAAGC,WAAW,CAACH,MAAM,CAACE,IAAI,CAAC,GAAGE,SAAS;IACzDC,OAAO,EAAE;MACP,cAAc,EAAE,kBAAkB;MAClC,IAAGL,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEM,MAAM;IACnB,CAAC;IACDR;EACF,CAAC,CAAC,CACCS,IAAI,CAACzB,gBAAgB,CAAC,CACtByB,IAAI,CAAkB7B,oBAAoB,CAAC,EAChDmB,qBACF,CAAC;AACH,CAAC;AAED,MAAMM,WAAW,GAAID,IAAa,IAChC,OAAOA,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAGM,IAAI,CAACC,SAAS,CAACP,IAAI,CAAC;;AAExD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMD,cAAc,GAAGA,CAACF,GAAW,EAAEC,MAA2B,KAAK;EAC1E,IAAI,EAACA,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEU,IAAI,GAAE,OAAOX,GAAG;EAE7B,OAAOY,MAAM,CAACC,OAAO,CAACZ,MAAM,CAACU,IAAI,CAAC,CAACG,MAAM,CACvC,CAACC,eAAe,EAAAC,IAAA;IAAA,IAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,GAAAF,IAAA;IAAA,OAC5B,OAAOE,KAAK,KAAK,QAAQ,GACrBH,eAAe,CAACI,OAAO,CAAE,IAAGF,GAAI,GAAE,EAAEC,KAAK,CAAC,GAC1CH,eAAe;EAAA,GACrBf,GACF,CAAC;AACH,CAAC"}
|
|
@@ -8,7 +8,7 @@ Credentials instead require a simpler authorization flow and they require other
|
|
|
8
8
|
|
|
9
9
|
The supported credentials are defined in the entity configuration of the issuer which is evaluted and parsed in the `evaluateIssuerTrust` step. Available credentials are identified with a unique `credential_configuration_id`, that must be used when requesting authorization. The Authorization Server returns an array of **credential identifiers** that map to the `credential_configuration_id` provided: to obtain the credential, one of the credential identifiers (or all of them) must be requested to the credential endpoint.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The IT-Wallet specifications require that the cryptographic keys associated with each credential be stored in a WSCD and attested through a **Key Attestation**, which must be provided to the Issuer when requesting a credential.
|
|
12
12
|
|
|
13
13
|
## Sequence Diagram
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@ graph TD;
|
|
|
22
22
|
C4.1[completeEaaUserAuthorizationWithQueryMode]
|
|
23
23
|
E4[completePidUserAuthorizationWithQueryMode]
|
|
24
24
|
5[authorizeAccess]
|
|
25
|
-
6[
|
|
25
|
+
6[KeyAttestation.getAttestation]
|
|
26
26
|
7[obtainCredential]
|
|
27
27
|
8[verifyAndParseCredential]
|
|
28
28
|
credSel{Is credential an eID?}
|
|
@@ -102,7 +102,7 @@ The expected result from the authentication process is in `form_post.jwt` format
|
|
|
102
102
|
|
|
103
103
|
## Batch issuance
|
|
104
104
|
|
|
105
|
-
To obtain a batch of credentials the Issuance module exposes a dedicated method—`obtainCredentialsBatch`—that returns a list of credentials of the same type with different cryptographic data. For this reason the caller must generate multiple keys and attest them in a single
|
|
105
|
+
To obtain a batch of credentials the Issuance module exposes a dedicated method—`obtainCredentialsBatch`—that returns a list of credentials of the same type with different cryptographic data. For this reason the caller must generate multiple keys and attest them in a single Key Attestation.
|
|
106
106
|
|
|
107
107
|
## Examples
|
|
108
108
|
|
|
@@ -145,11 +145,11 @@ const walletInstanceAttestation =
|
|
|
145
145
|
);
|
|
146
146
|
|
|
147
147
|
const credentialKeyTag = uuidv4().toString();
|
|
148
|
-
let
|
|
148
|
+
let keyAttestation: string | undefined;
|
|
149
149
|
|
|
150
|
-
// Obtains a
|
|
151
|
-
if (wallet.
|
|
152
|
-
|
|
150
|
+
// Obtains a Key Attestation if supported
|
|
151
|
+
if (wallet.KeyAttestation.isSupported) {
|
|
152
|
+
keyAttestation = await wallet.KeyAttestation.getAttestation(); // See the Key Attestation README for more details
|
|
153
153
|
} else {
|
|
154
154
|
await generate(credentialKeyTag); // Let's assume this function generates a new hardware-backed key pair
|
|
155
155
|
}
|
|
@@ -248,7 +248,7 @@ const { credential, format } = await wallet.CredentialIssuance.obtainCredential(
|
|
|
248
248
|
{
|
|
249
249
|
credentialCryptoContext,
|
|
250
250
|
dPopCryptoContext,
|
|
251
|
-
|
|
251
|
+
keyAttestation, // Required in issuance v1.4
|
|
252
252
|
appFetch,
|
|
253
253
|
}
|
|
254
254
|
);
|
|
@@ -410,7 +410,7 @@ const { credential, format } = await wallet.CredentialIssuance.obtainCredential(
|
|
|
410
410
|
{
|
|
411
411
|
credentialCryptoContext,
|
|
412
412
|
dPopCryptoContext,
|
|
413
|
-
|
|
413
|
+
keyAttestation, // Required in issuance v1.4
|
|
414
414
|
appFetch,
|
|
415
415
|
}
|
|
416
416
|
);
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { JWK } from "../../../utils/jwk";
|
|
3
2
|
import { FederationEntityMetadata } from "../../../trust/common/types";
|
|
3
|
+
import { JWK } from "../../../utils/jwk";
|
|
4
4
|
const DisplayConfig = z.object({
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
locale: z.string(),
|
|
6
|
+
name: z.string()
|
|
7
7
|
});
|
|
8
8
|
const ClaimConfig = z.object({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
display: z.array(DisplayConfig).optional(),
|
|
10
|
+
path: z.array(z.union([z.string(), z.number(), z.null()]))
|
|
11
11
|
});
|
|
12
12
|
const IssuanceErrorSupported = z.object({
|
|
13
13
|
display: z.array(z.object({
|
|
14
|
-
title: z.string(),
|
|
15
14
|
description: z.string(),
|
|
16
|
-
locale: z.string()
|
|
15
|
+
locale: z.string(),
|
|
16
|
+
title: z.string()
|
|
17
17
|
}))
|
|
18
18
|
});
|
|
19
19
|
const CredentialConfig = z.intersection(z.discriminatedUnion("format", [z.object({
|
|
20
20
|
format: z.literal("dc+sd-jwt"),
|
|
21
21
|
vct: z.string()
|
|
22
22
|
}), z.object({
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
doctype: z.string(),
|
|
24
|
+
format: z.literal("mso_mdoc")
|
|
25
25
|
})]), z.object({
|
|
26
|
-
scope: z.string(),
|
|
27
|
-
display: z.array(DisplayConfig),
|
|
28
|
-
claims: z.array(ClaimConfig),
|
|
29
26
|
/**
|
|
30
27
|
* @deprecated Use the Credentials Catalogue to get the Auth Source
|
|
31
28
|
*/
|
|
32
29
|
authentic_source: z.string().optional(),
|
|
30
|
+
claims: z.array(ClaimConfig),
|
|
31
|
+
display: z.array(DisplayConfig),
|
|
33
32
|
/**
|
|
34
33
|
* @deprecated Kept for backward compatibility with v0.7.1
|
|
35
34
|
*/
|
|
36
|
-
issuance_errors_supported: z.record(z.string(), IssuanceErrorSupported).optional()
|
|
35
|
+
issuance_errors_supported: z.record(z.string(), IssuanceErrorSupported).optional(),
|
|
36
|
+
scope: z.string()
|
|
37
37
|
}));
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -41,27 +41,27 @@ const CredentialConfig = z.intersection(z.discriminatedUnion("format", [z.object
|
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
43
|
export const IssuerConfig = z.object({
|
|
44
|
-
|
|
44
|
+
authorization_endpoint: z.string(),
|
|
45
45
|
/**
|
|
46
46
|
* Authorization Servers advertised by the Credential Issuer. Present when the
|
|
47
47
|
* Issuer relies on one or more external Authorization Servers; used to validate
|
|
48
48
|
* the `authorization_server` selected by a credential offer.
|
|
49
49
|
*/
|
|
50
50
|
authorization_servers: z.tuple([z.string()], z.string()).optional(),
|
|
51
|
-
pushed_authorization_request_endpoint: z.string(),
|
|
52
|
-
authorization_endpoint: z.string(),
|
|
53
|
-
token_endpoint: z.string(),
|
|
54
|
-
nonce_endpoint: z.string(),
|
|
55
|
-
status_assertion_endpoint: z.string().optional(),
|
|
56
|
-
credential_endpoint: z.string(),
|
|
57
|
-
keys: z.array(JWK),
|
|
58
51
|
credential_configurations_supported: z.record(z.string(), CredentialConfig),
|
|
59
|
-
|
|
52
|
+
credential_endpoint: z.string(),
|
|
60
53
|
credential_issuance_batch_size: z.number().optional(),
|
|
54
|
+
credential_issuer: z.string(),
|
|
61
55
|
encrypted_response_enc_values_supported: z.array(z.string()).optional(),
|
|
56
|
+
federation_entity: FederationEntityMetadata,
|
|
57
|
+
keys: z.array(JWK),
|
|
58
|
+
nonce_endpoint: z.string(),
|
|
59
|
+
pushed_authorization_request_endpoint: z.string(),
|
|
62
60
|
/**
|
|
63
61
|
* @deprecated
|
|
64
62
|
*/
|
|
65
|
-
response_modes_supported: z.array(z.string()).optional()
|
|
63
|
+
response_modes_supported: z.array(z.string()).optional(),
|
|
64
|
+
status_assertion_endpoint: z.string().optional(),
|
|
65
|
+
token_endpoint: z.string()
|
|
66
66
|
});
|
|
67
67
|
//# sourceMappingURL=IssuerConfig.js.map
|