@pagopa/io-react-native-wallet 3.6.4 → 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/api/index.js +13 -14
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/README.md +9 -9
- package/lib/commonjs/credential/issuance/index.js +2 -2
- package/lib/commonjs/credential/issuance/mrtd-pop/index.js +2 -2
- package/lib/commonjs/credential/issuance/mrtd-pop/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +2 -2
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +2 -4
- 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 +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +9 -9
- 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.map +1 -1
- package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- 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/index.js +2 -2
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +2 -2
- 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 +2 -2
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js.map +1 -1
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +2 -2
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js.map +1 -1
- package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/types.js +2 -2
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/index.js +2 -2
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.js +9 -3
- 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.map +1 -1
- 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 +9 -11
- 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.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/credential/status/README.md +2 -2
- package/lib/commonjs/credential/status/index.js +3 -3
- 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 +2 -2
- 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.map +1 -1
- package/lib/commonjs/credential/trustmark/index.js +2 -2
- 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 +3 -3
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/index.js +2 -2
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +3 -3
- 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 +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js.map +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.map +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +5 -5
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +2 -2
- package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
- package/lib/commonjs/index.js +9 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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/sd-jwt/types.js +2 -2
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/sd-jwt/utils.js +7 -8
- package/lib/commonjs/sd-jwt/utils.js.map +1 -1
- package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/entities.js +1 -1
- 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.map +1 -1
- package/lib/commonjs/utils/config.js +2 -10
- package/lib/commonjs/utils/config.js.map +1 -1
- package/lib/commonjs/wallet-instance/index.js +2 -2
- package/lib/commonjs/wallet-instance/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/index.js +2 -2
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js.map +1 -1
- 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.map +1 -1
- package/lib/module/api/index.js +13 -14
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/credential/issuance/README.md +9 -9
- 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/index.js +3 -3
- package/lib/module/credential/issuance/mrtd-pop/index.js.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js +3 -3
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.js +3 -5
- 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 +2 -2
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.js.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.js +10 -10
- 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.map +1 -1
- package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- 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/index.js +1 -1
- package/lib/module/credential/offer/index.js.map +1 -1
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js +3 -3
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.js.map +1 -1
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js +3 -3
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.js.map +1 -1
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js +3 -3
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.js.map +1 -1
- package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/module/credential/presentation/api/types.js +2 -2
- package/lib/module/credential/presentation/api/types.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.3.3 → v1.4.6}/01-start-flow.js +9 -3
- 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.map +1 -1
- 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 +11 -12
- 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.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js +2 -2
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.js.map +1 -1
- 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.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js.map +1 -1
- package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/module/credential/status/README.md +2 -2
- 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.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 +2 -2
- package/lib/module/credential/status/{v1.3.3 → v1.4.6}/03-get-status.js.map +1 -1
- 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.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 +3 -3
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.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/types.js +3 -3
- 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 +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.js.map +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.map +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js.map +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js +5 -5
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/types.js.map +1 -1
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js +2 -2
- package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/{wallet-unit-attestation → 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 +2 -2
- 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 +5 -5
- 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/sd-jwt/types.js +2 -2
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/sd-jwt/utils.js +7 -8
- package/lib/module/sd-jwt/utils.js.map +1 -1
- package/lib/module/trust/{v1.3.3 → v1.4.6}/entities.js +1 -1
- 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.map +1 -1
- package/lib/module/utils/config.js +0 -7
- package/lib/module/utils/config.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.3.3 → v1.4.6}/index.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.3.3 → v1.4.6}/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.js.map +1 -1
- 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.map +1 -1
- package/lib/typescript/api/index.d.ts +3 -3
- package/lib/typescript/api/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +3 -3
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/index.d.ts +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/{v1.3.3 → v1.4.6}/mappers.d.ts +7 -0
- 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/index.d.ts +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.3.3 → v1.4.6}/01-resolve-credential-offer.d.ts.map +1 -1
- 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.3.3 → v1.4.6}/02-extract-grant-details.d.ts.map +1 -1
- 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.3.3 → v1.4.6}/03-validate-credential-offer.d.ts.map +1 -1
- package/lib/typescript/credential/offer/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/types.d.ts +3 -3
- package/lib/typescript/credential/presentation/index.d.ts +1 -1
- package/lib/typescript/credential/presentation/v1.4.6/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.d.ts.map +1 -1
- 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 +3 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/mappers.d.ts.map +1 -1
- 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 +2 -1
- package/lib/typescript/credential/presentation/{v1.3.3 → v1.4.6}/types.d.ts.map +1 -1
- package/lib/typescript/credential/status/index.d.ts +1 -1
- package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/01-status-list.d.ts.map +1 -1
- 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.3.3 → v1.4.6}/03-get-status.d.ts.map +1 -1
- package/lib/typescript/credential/status/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/credential/trustmark/index.d.ts +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.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +7 -7
- package/lib/typescript/credentials-catalogue/index.d.ts +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +5 -5
- 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.3.3 → v1.4.6}/fetch-translations.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- 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 +4 -4
- 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 +2 -2
- package/lib/typescript/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/index.d.ts +10 -10
- package/lib/typescript/key-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/{wallet-unit-attestation → key-attestation}/api/types.d.ts +3 -3
- 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 +1 -1
- 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 +4 -4
- 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/sd-jwt/types.d.ts +2 -2
- package/lib/typescript/sd-jwt/utils.d.ts +3 -2
- package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
- package/lib/typescript/trust/{v1.3.3 → v1.4.6}/entities.d.ts +1 -0
- 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 +4 -0
- package/lib/typescript/trust/{v1.3.3 → v1.4.6}/types.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/wallet-instance/index.d.ts +1 -1
- package/lib/typescript/wallet-instance/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/index.d.ts +1 -1
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/api/index.ts +14 -15
- package/src/credential/issuance/README.md +9 -9
- package/src/credential/issuance/api/05-obtain-credential.ts +3 -3
- package/src/credential/issuance/index.ts +1 -1
- package/src/credential/issuance/mrtd-pop/index.ts +3 -3
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/02-start-user-authorization.ts +3 -3
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/03-complete-user-authorization.ts +3 -5
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/04-authorize-access.ts +2 -2
- package/src/credential/issuance/{v1.3.3 → v1.4.6}/05-obtain-credential.ts +10 -12
- package/src/credential/offer/README.md +10 -6
- package/src/credential/offer/index.ts +1 -1
- package/src/credential/offer/{v1.3.3 → v1.4.6}/01-resolve-credential-offer.ts +3 -3
- package/src/credential/offer/{v1.3.3 → v1.4.6}/02-extract-grant-details.ts +3 -3
- package/src/credential/offer/{v1.3.3 → v1.4.6}/03-validate-credential-offer.ts +3 -3
- package/src/credential/presentation/api/types.ts +2 -2
- package/src/credential/presentation/index.ts +1 -1
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/01-start-flow.ts +8 -4
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/02-evaluate-rp-trust.ts +1 -1
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/05-verify-request-object.ts +12 -19
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/07-send-authorization-response.ts +2 -2
- package/src/credential/presentation/{v1.3.3 → v1.4.6}/mappers.ts +1 -1
- package/src/credential/status/README.md +2 -2
- package/src/credential/status/index.ts +1 -1
- package/src/credential/status/{v1.3.3 → v1.4.6}/03-get-status.ts +2 -2
- package/src/credential/trustmark/index.ts +1 -1
- package/src/credential/trustmark/{v1.3.3 → v1.4.6}/get-credential-trustmark.ts +1 -1
- package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +3 -3
- package/src/credentials-catalogue/index.ts +1 -1
- package/src/credentials-catalogue/v1.0.0/types.ts +3 -3
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-and-parse-catalogue.ts +1 -1
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/types.ts +5 -5
- package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/utils.ts +2 -2
- package/src/index.ts +4 -2
- package/src/{wallet-unit-attestation → key-attestation}/README.md +9 -9
- package/src/{wallet-unit-attestation → key-attestation}/api/index.ts +10 -12
- package/src/{wallet-unit-attestation → key-attestation}/api/types.ts +3 -5
- 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 +7 -7
- 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 +4 -4
- package/src/sd-jwt/types.ts +2 -2
- package/src/sd-jwt/utils.ts +7 -3
- package/src/trust/{v1.3.3 → v1.4.6}/entities.ts +1 -1
- package/src/utils/config.ts +0 -7
- package/src/wallet-instance/index.ts +1 -1
- package/src/wallet-instance-attestation/index.ts +1 -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/05-obtain-credential.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/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/03-complete-user-authorization.js.map +0 -1
- package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.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/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/mappers.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/05-verify-request-object.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/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 -12
- package/src/wallet-unit-attestation/v1.3.3/mappers.ts +0 -10
- package/src/wallet-unit-attestation/v1.3.3/types.ts +0 -22
- /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.js +0 -0
- /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}/index.js +0 -0
- /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- /package/lib/commonjs/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
- /package/lib/commonjs/credential/offer/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +0 -0
- /package/lib/commonjs/credential/presentation/{v1.3.3 → v1.4.6}/types.js +0 -0
- /package/lib/commonjs/credential/status/{v1.3.3 → v1.4.6}/01-status-list.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/status/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +0 -0
- /package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- /package/lib/commonjs/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
- /package/lib/commonjs/trust/{v1.3.3 → v1.4.6}/types.js +0 -0
- /package/lib/commonjs/wallet-instance/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.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/commonjs/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.js +0 -0
- /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/01-evaluate-issuer-trust.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}/index.js +0 -0
- /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- /package/lib/module/credential/issuance/{v1.3.3 → v1.4.6}/types.js +0 -0
- /package/lib/module/credential/offer/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.js +0 -0
- /package/lib/module/credential/presentation/{v1.3.3 → v1.4.6}/types.js +0 -0
- /package/lib/module/credential/status/{v1.3.3 → v1.4.6}/01-status-list.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/status/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/credential/trustmark/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.js +0 -0
- /package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.js +0 -0
- /package/lib/module/{wallet-unit-attestation → key-attestation}/api/index.js +0 -0
- /package/lib/module/trust/{v1.3.3 → v1.4.6}/types.js +0 -0
- /package/lib/module/wallet-instance/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.js +0 -0
- /package/lib/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.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/module/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.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}/03-complete-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}/05-obtain-credential.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/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.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}/mappers.d.ts +0 -0
- /package/lib/typescript/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.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}/01-evaluate-issuer-trust.ts +0 -0
- /package/src/credential/issuance/{v1.3.3 → v1.4.6}/06-verify-and-parse-credential.ts +0 -0
- /package/src/credential/issuance/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/credential/issuance/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
- /package/src/credential/issuance/{v1.3.3 → v1.4.6}/types.ts +0 -0
- /package/src/credential/offer/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/credential/presentation/{v1.3.3 → v1.4.6}/03-get-request-object.ts +0 -0
- /package/src/credential/presentation/{v1.3.3 → v1.4.6}/04-verify-certificate-chain.ts +0 -0
- /package/src/credential/presentation/{v1.3.3 → v1.4.6}/06-evaluate-dcql-query.ts +0 -0
- /package/src/credential/presentation/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/credential/presentation/{v1.3.3 → v1.4.6}/sdkErrorMapper.ts +0 -0
- /package/src/credential/presentation/{v1.3.3 → v1.4.6}/types.ts +0 -0
- /package/src/credential/status/{v1.3.3 → v1.4.6}/01-status-list.ts +0 -0
- /package/src/credential/status/{v1.3.3 → v1.4.6}/02-verify-and-parse-status-list.ts +0 -0
- /package/src/credential/status/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/credential/trustmark/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/fetch-translations.ts +0 -0
- /package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/credentials-catalogue/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
- /package/src/trust/{v1.3.3 → v1.4.6}/types.ts +0 -0
- /package/src/wallet-instance/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/index.ts +0 -0
- /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/issuing.ts +0 -0
- /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/mappers.ts +0 -0
- /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/types.ts +0 -0
- /package/src/wallet-instance-attestation/{v1.3.3 → v1.4.6}/utils.ts +0 -0
|
@@ -10,14 +10,14 @@ export type PresentationParams = z.infer<typeof PresentationParams>;
|
|
|
10
10
|
export const PresentationParams = z.object({
|
|
11
11
|
client_id: z.string().nonempty(),
|
|
12
12
|
request: z.string().optional(),
|
|
13
|
-
request_uri: z.
|
|
13
|
+
request_uri: z.url().optional(),
|
|
14
14
|
request_uri_method: z.enum(["get", "post"]).optional(),
|
|
15
15
|
state: z.string().optional(),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export type WalletMetadata = z.infer<typeof WalletMetadata>;
|
|
19
19
|
export const WalletMetadata = z.object({
|
|
20
|
-
authorization_endpoint: z.
|
|
20
|
+
authorization_endpoint: z.url(),
|
|
21
21
|
client_id_prefixes_supported: z.array(z.string()).optional(),
|
|
22
22
|
client_id_schemes_supported: z.array(z.string()).optional(),
|
|
23
23
|
request_object_signing_alg_values_supported: z.array(z.string()).optional(),
|
|
@@ -8,16 +8,20 @@ import { InvalidQRCodeError } from "../common/errors";
|
|
|
8
8
|
export const startFlowFromQR: RemotePresentationApi["startFlowFromQR"] = (
|
|
9
9
|
params,
|
|
10
10
|
) => {
|
|
11
|
-
const
|
|
11
|
+
const nonNullParams = Object.fromEntries(
|
|
12
|
+
Object.entries(params).filter(([_, value]) => value !== null),
|
|
13
|
+
);
|
|
14
|
+
const parsed = PresentationParams.safeParse({
|
|
15
|
+
...nonNullParams,
|
|
16
|
+
request_uri_method: nonNullParams.request_uri_method ?? "get",
|
|
17
|
+
});
|
|
12
18
|
|
|
13
19
|
if (!parsed.success) {
|
|
14
20
|
throw new InvalidQRCodeError(parsed.error.message);
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
try {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return validatedParams;
|
|
24
|
+
return validateAuthorizationRequestParams(parsed.data);
|
|
21
25
|
} catch (e) {
|
|
22
26
|
throw new InvalidQRCodeError(e instanceof Error ? e.message : String(e));
|
|
23
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RemotePresentationApi } from "../api";
|
|
2
2
|
|
|
3
|
-
import { getRelyingPartyEntityConfiguration } from "../../../trust/v1.
|
|
3
|
+
import { getRelyingPartyEntityConfiguration } from "../../../trust/v1.4.6/entities";
|
|
4
4
|
import { mapToRelyingPartyConfig } from "./mappers";
|
|
5
5
|
|
|
6
6
|
export const evaluateRelyingPartyTrust: RemotePresentationApi["evaluateRelyingPartyTrust"] =
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientIdPrefix,
|
|
3
|
+
createX509HashClientId,
|
|
3
4
|
extractClientIdPrefix,
|
|
4
5
|
parseAuthorizeRequest as sdkParseAuthorizeRequest,
|
|
5
6
|
} from "@pagopa/io-wallet-oid4vp";
|
|
6
|
-
import QuickCrypto from "react-native-quick-crypto";
|
|
7
7
|
|
|
8
8
|
import type { RelyingPartyConfig, RemotePresentationApi } from "../api";
|
|
9
9
|
import type { RawRequestObject } from "./types";
|
|
10
10
|
|
|
11
11
|
import { partialCallbacks } from "../../../utils/callbacks";
|
|
12
|
-
import {
|
|
12
|
+
import { sdkConfigV1_4 } from "../../../utils/config";
|
|
13
13
|
import { IoWalletError } from "../../../utils/errors";
|
|
14
14
|
import { InvalidRequestObjectError } from "../common/errors";
|
|
15
15
|
import { mapToRequestObject } from "./mappers";
|
|
@@ -21,7 +21,7 @@ export const verifyRequestObject: RemotePresentationApi["verifyRequestObject"] =
|
|
|
21
21
|
callbacks: {
|
|
22
22
|
verifyJwt: partialCallbacks.verifyJwt,
|
|
23
23
|
},
|
|
24
|
-
config:
|
|
24
|
+
config: sdkConfigV1_4,
|
|
25
25
|
requestObjectJwt: requestObjectEncodedJwt,
|
|
26
26
|
}).catch(mapSdkRequestObjectError);
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ export const verifyRequestObject: RemotePresentationApi["verifyRequestObject"] =
|
|
|
30
30
|
const { clientId, prefix } = extractClientIdPrefix(fullClientId);
|
|
31
31
|
|
|
32
32
|
if (prefix === ClientIdPrefix.X509_HASH) {
|
|
33
|
-
validateX509HashClient(rawRequestObject.header.x5c
|
|
33
|
+
await validateX509HashClient(fullClientId, rawRequestObject.header.x5c);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
if (
|
|
@@ -73,23 +73,16 @@ const validateOpenIDFederationClient = (
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const validateX509HashClient = (
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
const validateX509HashClient = async (
|
|
77
|
+
fullClientId: string,
|
|
78
|
+
certificateChain: string[] = [],
|
|
79
79
|
) => {
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"Certificate chain is empty, cannot validate x509_hash",
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const calculatedHash = QuickCrypto.createHash("sha-256")
|
|
89
|
-
.update(cert, "base64")
|
|
90
|
-
.digest("base64url");
|
|
80
|
+
const calculatedHash = await createX509HashClientId({
|
|
81
|
+
certificateChain,
|
|
82
|
+
hash: partialCallbacks.hash,
|
|
83
|
+
});
|
|
91
84
|
|
|
92
|
-
if (
|
|
85
|
+
if (fullClientId !== calculatedHash) {
|
|
93
86
|
throw new InvalidRequestObjectError(
|
|
94
87
|
"x509_hash does not match the hash of the x5c leaf certificate",
|
|
95
88
|
);
|
|
@@ -8,7 +8,7 @@ import type { RemotePresentationApi } from "../api";
|
|
|
8
8
|
import { prepareVpTokenMdoc } from "../../../mdoc";
|
|
9
9
|
import { prepareVpToken } from "../../../sd-jwt";
|
|
10
10
|
import { partialCallbacks } from "../../../utils/callbacks";
|
|
11
|
-
import {
|
|
11
|
+
import { sdkConfigV1_4 } from "../../../utils/config";
|
|
12
12
|
import { createCryptoContextFor } from "../../../utils/crypto";
|
|
13
13
|
import {
|
|
14
14
|
IoWalletError,
|
|
@@ -139,7 +139,7 @@ export const sendAuthorizationResponse: RemotePresentationApi["sendAuthorization
|
|
|
139
139
|
encryptJwe: partialCallbacks.encryptJwe,
|
|
140
140
|
generateRandom: partialCallbacks.generateRandom,
|
|
141
141
|
},
|
|
142
|
-
config:
|
|
142
|
+
config: sdkConfigV1_4,
|
|
143
143
|
requestObject,
|
|
144
144
|
rpJwks,
|
|
145
145
|
vp_token,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RelyingPartyConfig } from "../api/RelyingPartyConfig";
|
|
2
2
|
import type { RequestObject } from "../api/types";
|
|
3
3
|
|
|
4
|
-
import { RelyingPartyEntityConfiguration } from "../../../trust/v1.
|
|
4
|
+
import { RelyingPartyEntityConfiguration } from "../../../trust/v1.4.6/types";
|
|
5
5
|
import { createMapper } from "../../../utils/mappers";
|
|
6
6
|
import { RawRequestObject } from "./types";
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This flow is used to obtain the credential status from its credential issuer. The following methods are currently supported:
|
|
4
4
|
- Status Assertion (v1.0.0)
|
|
5
|
-
- Token Status List (v1.
|
|
5
|
+
- Token Status List (v1.4.6)
|
|
6
6
|
|
|
7
7
|
Each step in the flow is imported from the related file which is named with a sequential number.
|
|
8
8
|
|
|
@@ -100,7 +100,7 @@ return {
|
|
|
100
100
|
```ts
|
|
101
101
|
import { IoWallet } from "@pagopa/io-react-native-wallet";
|
|
102
102
|
|
|
103
|
-
const wallet = new IoWallet({ version: "1.
|
|
103
|
+
const wallet = new IoWallet({ version: "1.4.6" });
|
|
104
104
|
|
|
105
105
|
const credentialIssuerUrl = "https://issuer.example.com";
|
|
106
106
|
|
|
@@ -6,14 +6,14 @@ import { IoWalletError } from "../../../utils/errors";
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Mapping of status bits to their corresponding meaning as defined in the specification.
|
|
9
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
9
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/credential-revocation.html#token-status-lists
|
|
10
10
|
*/
|
|
11
11
|
const CredentialStatusMap = {
|
|
12
12
|
0x00: "VALID",
|
|
13
13
|
0x01: "INVALID",
|
|
14
14
|
0x02: "SUSPENDED",
|
|
15
15
|
0x03: "UPDATE",
|
|
16
|
-
|
|
16
|
+
0x0f: "ATTRIBUTE_UPDATE",
|
|
17
17
|
} as const;
|
|
18
18
|
|
|
19
19
|
type CredentialStatusBit = keyof typeof CredentialStatusMap;
|
|
@@ -3,5 +3,5 @@ import { type TrustmarkApi as Api } from "../api";
|
|
|
3
3
|
|
|
4
4
|
export const getCredentialTrustmark: Api["getCredentialTrustmark"] =
|
|
5
5
|
async () => {
|
|
6
|
-
throw new UnimplementedFeatureError("getCredentialTrustmark", "1.
|
|
6
|
+
throw new UnimplementedFeatureError("getCredentialTrustmark", "1.4.6");
|
|
7
7
|
};
|
|
@@ -73,9 +73,9 @@ export const CredentialFormat = z.object({
|
|
|
73
73
|
configuration_id: z.string(),
|
|
74
74
|
docType: z.string().optional(),
|
|
75
75
|
format: z.enum(["dc+sd-jwt", "mso_mdoc"]),
|
|
76
|
-
schema_uri: z.
|
|
76
|
+
schema_uri: z.url().optional(),
|
|
77
77
|
"schema_uri#integrity": z.string().optional(),
|
|
78
|
-
vct: z.
|
|
78
|
+
vct: z.url().optional(),
|
|
79
79
|
});
|
|
80
80
|
export type CredentialFormat = z.infer<typeof CredentialFormat>;
|
|
81
81
|
|
|
@@ -161,7 +161,7 @@ export const DigitalCredentialsCatalogue = z.object({
|
|
|
161
161
|
iat: UnixTime,
|
|
162
162
|
localization: LocalizationInfo.optional(),
|
|
163
163
|
taxonomy: Taxonomy.optional(),
|
|
164
|
-
taxonomy_uri: z.
|
|
164
|
+
taxonomy_uri: z.url(),
|
|
165
165
|
});
|
|
166
166
|
export type DigitalCredentialsCatalogue = z.infer<
|
|
167
167
|
typeof DigitalCredentialsCatalogue
|
|
@@ -39,9 +39,9 @@ const CredentialFormat = z.object({
|
|
|
39
39
|
configuration_id: z.string(),
|
|
40
40
|
docType: z.string().optional(),
|
|
41
41
|
format: z.enum(["dc+sd-jwt", "mso_mdoc"]),
|
|
42
|
-
schema_uri: z.
|
|
42
|
+
schema_uri: z.url().optional(),
|
|
43
43
|
"schema_uri#integrity": z.string().optional(),
|
|
44
|
-
vct: z.
|
|
44
|
+
vct: z.url().optional(),
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
const Claim = z.object({
|
|
@@ -90,7 +90,7 @@ export const DigitalCredentialsCatalogueJwt = z.object({
|
|
|
90
90
|
credentials: z.array(DigitalCredential),
|
|
91
91
|
exp: UnixTime,
|
|
92
92
|
iat: UnixTime,
|
|
93
|
-
taxonomy_uri: z.
|
|
93
|
+
taxonomy_uri: z.url(),
|
|
94
94
|
}),
|
|
95
95
|
});
|
|
96
96
|
export type DigitalCredentialsCatalogueJwt = z.infer<
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getTrustAnchorEntityConfiguration } from "../../trust/v1.0.0/entities"; // TODO: use trust from v1.
|
|
1
|
+
import { getTrustAnchorEntityConfiguration } from "../../trust/v1.0.0/entities"; // TODO: use trust from v1.4.6
|
|
2
2
|
import { type CredentialsCatalogueApi as Api } from "../api";
|
|
3
3
|
import { mapToCredentialsCatalogue } from "./mappers";
|
|
4
4
|
import {
|
|
@@ -148,7 +148,7 @@ const JwtHeader = z.object({
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Schema registry, available at a dedicated endpoint.
|
|
151
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
151
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#schema-registry
|
|
152
152
|
*/
|
|
153
153
|
export const SchemaRegistry = z.object({
|
|
154
154
|
last_modified: z.string().optional(),
|
|
@@ -160,7 +160,7 @@ export type SchemaRegistry = z.infer<typeof SchemaRegistry>;
|
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Authentic Source registry, available at a dedicated endpoint.
|
|
163
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
163
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#authentic-source-registry
|
|
164
164
|
*/
|
|
165
165
|
export const AuthenticSourceRegistry = z.object({
|
|
166
166
|
authentic_sources: z.array(AuthenticSource),
|
|
@@ -180,7 +180,7 @@ export type AuthenticSourceRegistry = z.infer<typeof AuthenticSourceRegistry>;
|
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* The Digital Credentials Catalogue published by the Trust Anchor.
|
|
183
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
183
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#digital-credentials-catalog
|
|
184
184
|
*/
|
|
185
185
|
export const DigitalCredentialsCatalogueJwt = z.object({
|
|
186
186
|
header: JwtHeader,
|
|
@@ -209,7 +209,7 @@ export type DigitalCredentialsCatalogueJwt = z.infer<
|
|
|
209
209
|
/**
|
|
210
210
|
* Registry discovery info, used to discover all the Registry Infrastructure endpoints.
|
|
211
211
|
* This is the entrypoint to build the full catalogue.
|
|
212
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
212
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#registry-discovery-endpoint
|
|
213
213
|
*/
|
|
214
214
|
const RegistryDiscoveryEndpoints = z.object({
|
|
215
215
|
authentic_sources: z.string(),
|
|
@@ -263,7 +263,7 @@ const TaxonomyDomain = z.object({
|
|
|
263
263
|
/**
|
|
264
264
|
* Taxonomy registry, available at a dedicated endpoint.
|
|
265
265
|
* Provides a hierarchical classification of domains, classes, and purposes.
|
|
266
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
266
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html#taxonomy
|
|
267
267
|
*/
|
|
268
268
|
export const TaxonomyRegistry = z.object({
|
|
269
269
|
description_l10n_id: z.string(),
|
|
@@ -14,7 +14,7 @@ type FetchRegistryParams<T> = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Utility to fetch an entity from the Registry Infrastructure.
|
|
16
16
|
* The function supports `application/json` and signed JOSE/JWT responses.
|
|
17
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
17
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html
|
|
18
18
|
*
|
|
19
19
|
* @param url The url to fetch from
|
|
20
20
|
* @param params.schema The Zod schema to validate the response
|
|
@@ -73,7 +73,7 @@ export const fetchRegistry = async <T>(
|
|
|
73
73
|
/**
|
|
74
74
|
* Fetch a locale bundle file from the Registry Infrastructure.
|
|
75
75
|
* Bundle files are flat JSON objects mapping l10n_id keys to translated strings.
|
|
76
|
-
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.
|
|
76
|
+
* @see https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/registry.html
|
|
77
77
|
*
|
|
78
78
|
* @param baseUri The base URI from a registry's localization object
|
|
79
79
|
* @param locale The locale code (e.g. "it", "en")
|
package/src/index.ts
CHANGED
|
@@ -10,11 +10,13 @@ import * as RemotePresentation from "./credential/presentation";
|
|
|
10
10
|
import * as CredentialStatus from "./credential/status";
|
|
11
11
|
import * as Trustmark from "./credential/trustmark";
|
|
12
12
|
import * as CredentialsCatalogue from "./credentials-catalogue";
|
|
13
|
+
import * as KeyAttestation from "./key-attestation";
|
|
13
14
|
import * as Mdoc from "./mdoc";
|
|
14
15
|
import * as SdJwt from "./sd-jwt";
|
|
15
16
|
import * as Trust from "./trust";
|
|
16
17
|
import {
|
|
17
18
|
createCryptoContextFor,
|
|
19
|
+
getJwkFromCertificateChain,
|
|
18
20
|
type KeyAttestationCryptoContext,
|
|
19
21
|
} from "./utils/crypto";
|
|
20
22
|
import * as Errors from "./utils/errors";
|
|
@@ -23,7 +25,6 @@ import * as Logging from "./utils/logging";
|
|
|
23
25
|
import { AuthorizationDetail, AuthorizationDetails } from "./utils/par";
|
|
24
26
|
import * as WalletInstance from "./wallet-instance";
|
|
25
27
|
import * as WalletInstanceAttestation from "./wallet-instance-attestation";
|
|
26
|
-
import * as WalletUnitAttestation from "./wallet-unit-attestation";
|
|
27
28
|
|
|
28
29
|
export {
|
|
29
30
|
AuthorizationDetail,
|
|
@@ -35,6 +36,8 @@ export {
|
|
|
35
36
|
CredentialStatus,
|
|
36
37
|
Errors,
|
|
37
38
|
fixBase64EncodingOnKey,
|
|
39
|
+
getJwkFromCertificateChain,
|
|
40
|
+
KeyAttestation,
|
|
38
41
|
Logging,
|
|
39
42
|
Mdoc,
|
|
40
43
|
RemotePresentation,
|
|
@@ -43,7 +46,6 @@ export {
|
|
|
43
46
|
Trustmark,
|
|
44
47
|
WalletInstance,
|
|
45
48
|
WalletInstanceAttestation,
|
|
46
|
-
WalletUnitAttestation,
|
|
47
49
|
};
|
|
48
50
|
|
|
49
51
|
export type {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Key Attestation
|
|
2
2
|
|
|
3
|
-
This flow is used to obtain a [**
|
|
4
|
-
- `keyAttestationCryptoContext` one or more objects that extend the `CryptoContext` with a function to generate a WSCD-stored key with an optional key attestation
|
|
3
|
+
This flow is used to obtain a [**Key Attestation**](https://italia.github.io/eid-wallet-it-docs/releases/1.4.6/en/wallet-solution-requirements.html#key-attestation-requirements) (KA). The Key Attestation is bound to one or more cryptographic keys, that must be provided by the consumer application:
|
|
4
|
+
- `keyAttestationCryptoContext` one or more objects that extend the `CryptoContext` with a function to generate a WSCD-stored key with an optional [Android key attestation](https://developer.android.com/privacy-and-security/security-key-attestation); these are the keys that will be attested in the KA.
|
|
5
5
|
- `integrityContext` object that is used to verify the integrity of the device where the app is running. The key tag must be the same used when creating the Wallet Instance.
|
|
6
6
|
|
|
7
7
|
#### Note
|
|
8
|
-
Before invoking `
|
|
8
|
+
Before invoking `KeyAttestation`'s functions, it is necessary to check whether the feature is supported by the current IoWallet instance.
|
|
9
9
|
```ts
|
|
10
|
-
const wallet = new IoWallet({ version: "1.
|
|
10
|
+
const wallet = new IoWallet({ version: "1.4.6" });
|
|
11
11
|
|
|
12
|
-
if (wallet.
|
|
12
|
+
if (wallet.KeyAttestation.isSupported) {
|
|
13
13
|
// Get the WUA
|
|
14
14
|
}
|
|
15
15
|
```
|
|
@@ -46,11 +46,11 @@ const keysToAttest: KeyAttestationCryptoContext[] = [
|
|
|
46
46
|
];
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Obtain a new
|
|
49
|
+
* Obtain a new Key Attestation.
|
|
50
50
|
* WARNING: The integrity context must be the same used when creating the Wallet Instance with the same keytag.
|
|
51
51
|
*/
|
|
52
|
-
const wallet = new IoWallet({ version: "1.
|
|
53
|
-
const issuedAttestation = await wallet.
|
|
52
|
+
const wallet = new IoWallet({ version: "1.4.6" });
|
|
53
|
+
const issuedAttestation = await wallet.KeyAttestation.getAttestation(
|
|
54
54
|
{
|
|
55
55
|
walletProviderBaseUrl: WALLET_PROVIDER_BASE_URL,
|
|
56
56
|
walletSolutionId: "exampleId",
|
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
import type { KeyAttestationCryptoContext } from "../../utils/crypto";
|
|
2
2
|
import type { IntegrityContext } from "../../utils/integrity";
|
|
3
3
|
import type {
|
|
4
|
-
|
|
4
|
+
DecodedKeyAttestation,
|
|
5
5
|
WalletAttestation,
|
|
6
6
|
WalletAttestationRequestParams,
|
|
7
7
|
} from "./types";
|
|
8
8
|
|
|
9
|
-
export type
|
|
10
|
-
| UnsupportedApi
|
|
11
|
-
| WalletUnitAttestationSupportedApi;
|
|
9
|
+
export type KeyAttestationApi = KeyAttestationSupportedApi | UnsupportedApi;
|
|
12
10
|
|
|
13
|
-
export interface
|
|
11
|
+
export interface KeyAttestationSupportedApi {
|
|
14
12
|
/**
|
|
15
|
-
* Decode a given JWT to get the parsed
|
|
13
|
+
* Decode a given JWT to get the parsed Key Attestation object they define.
|
|
16
14
|
* It ensures provided data is in a valid shape.
|
|
17
15
|
*
|
|
18
16
|
* It DOES NOT verify token signature.
|
|
19
17
|
*
|
|
20
|
-
* @param token The encoded token that represents a valid jwt for
|
|
21
|
-
* @returns The validated
|
|
18
|
+
* @param token The encoded token that represents a valid jwt for Key Attestation
|
|
19
|
+
* @returns The validated Key Attestation object
|
|
22
20
|
* @throws A decoding error if the token doesn't resolve in a valid JWT
|
|
23
|
-
* @throws A validation error if the provided data doesn't result in a valid
|
|
21
|
+
* @throws A validation error if the provided data doesn't result in a valid Key Attestation
|
|
24
22
|
*/
|
|
25
|
-
decode(token: string):
|
|
23
|
+
decode(token: string): DecodedKeyAttestation;
|
|
26
24
|
|
|
27
25
|
/**
|
|
28
|
-
* Request a
|
|
26
|
+
* Request a Key Attestation (KA) to the Wallet provider with one or more keys to attest.
|
|
29
27
|
* Each key must be provided as a {@link KeyAttestationCryptoContext}.
|
|
30
28
|
*
|
|
31
29
|
* @param requestParams Wallet Provider data for the Wallet Attestation request
|
|
32
30
|
* @param ctx.keysToAttest The list of KeyAttestationCryptoContext's of the keys to attest
|
|
33
31
|
* @param ctx.integrityContext The hardware key pair associated with the Wallet Instance
|
|
34
32
|
* @param ctx.appFetch (optional) Http client
|
|
35
|
-
* @returns The generated
|
|
33
|
+
* @returns The generated Key Attestation with the attested keys
|
|
36
34
|
*/
|
|
37
35
|
getAttestation(
|
|
38
36
|
requestParams: WalletAttestationRequestParams,
|
|
@@ -11,13 +11,11 @@ const Status = z.object({
|
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Common
|
|
14
|
+
* Common Key Attestation shape. This object is
|
|
15
15
|
* an abstraction over the version-specific JWTs.
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
18
|
-
|
|
19
|
-
>;
|
|
20
|
-
export const DecodedWalletUnitAttestation = z.object({
|
|
17
|
+
export type DecodedKeyAttestation = z.infer<typeof DecodedKeyAttestation>;
|
|
18
|
+
export const DecodedKeyAttestation = z.object({
|
|
21
19
|
attested_keys: z.array(JWK),
|
|
22
20
|
exp: UnixTime,
|
|
23
21
|
iat: UnixTime,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { KeyAttestationApi } from "../api";
|
|
2
|
+
|
|
3
|
+
import { withMapper } from "../../utils/mappers";
|
|
4
|
+
import { getAttestation } from "./issuing";
|
|
5
|
+
import { mapToDecodedKeyAttestation } from "./mappers";
|
|
6
|
+
import { decode } from "./utils";
|
|
7
|
+
|
|
8
|
+
export const KeyAttestation: KeyAttestationApi = {
|
|
9
|
+
decode: withMapper(mapToDecodedKeyAttestation, decode),
|
|
10
|
+
getAttestation,
|
|
11
|
+
isSupported: true,
|
|
12
|
+
};
|
|
@@ -2,13 +2,13 @@ import { SignJWT, thumbprint } from "@pagopa/io-react-native-jwt";
|
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
3
|
|
|
4
4
|
import type { KeyAttestationCryptoContext } from "../../utils/crypto";
|
|
5
|
-
import type {
|
|
5
|
+
import type { KeyAttestationSupportedApi } from "../api";
|
|
6
6
|
|
|
7
7
|
import { getWalletProviderClient } from "../../client";
|
|
8
8
|
import { IoWalletError } from "../../utils/errors";
|
|
9
9
|
import { fixBase64EncodingOnKey, JWK } from "../../utils/jwk";
|
|
10
10
|
import { Logger, LogLevel } from "../../utils/logging";
|
|
11
|
-
import {
|
|
11
|
+
import { KeyAttestationResponse } from "./types";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Create a Key Attestation Request in JWT format for the provided key.
|
|
@@ -25,13 +25,13 @@ const createKeyAttestationRequest = async (
|
|
|
25
25
|
|
|
26
26
|
if (!success) {
|
|
27
27
|
throw new IoWalletError(
|
|
28
|
-
"generateKeyWithAttestation failed to generate a cryptographic key for the
|
|
28
|
+
"generateKeyWithAttestation failed to generate a cryptographic key for the Key Attestation request",
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (Platform.OS === "android" && !attestation) {
|
|
33
33
|
throw new IoWalletError(
|
|
34
|
-
"Missing key attestation:
|
|
34
|
+
"Missing Android key attestation: the generated key pair must be hardware-backed",
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -58,7 +58,7 @@ const createKeyAttestationRequest = async (
|
|
|
58
58
|
return { cryptoContext, keyAttestationRequestJwt: requestJwt, publicKey };
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
export const getAttestation:
|
|
61
|
+
export const getAttestation: KeyAttestationSupportedApi["getAttestation"] =
|
|
62
62
|
async (
|
|
63
63
|
{ walletProviderBaseUrl, walletSolutionId, walletSolutionVersion },
|
|
64
64
|
{ appFetch = fetch, integrityContext, keysToAttest: keysToAttestContexts },
|
|
@@ -141,11 +141,11 @@ export const getAttestation: WalletUnitAttestationSupportedApi["getAttestation"]
|
|
|
141
141
|
"Content-Type": "text/plain",
|
|
142
142
|
},
|
|
143
143
|
})
|
|
144
|
-
.then(
|
|
144
|
+
.then(KeyAttestationResponse.parse);
|
|
145
145
|
|
|
146
146
|
Logger.log(
|
|
147
147
|
LogLevel.DEBUG,
|
|
148
|
-
`Obtained
|
|
148
|
+
`Obtained Key Attestation: ${response.key_attestation}`,
|
|
149
149
|
);
|
|
150
150
|
|
|
151
151
|
return {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createMapper } from "../../utils/mappers";
|
|
2
|
+
import { DecodedKeyAttestation } from "../api/types";
|
|
3
|
+
import { KeyAttestationJwt } from "./types";
|
|
4
|
+
|
|
5
|
+
export const mapToDecodedKeyAttestation = createMapper<
|
|
6
|
+
KeyAttestationJwt,
|
|
7
|
+
DecodedKeyAttestation
|
|
8
|
+
>((x) => x.payload, {
|
|
9
|
+
outputSchema: DecodedKeyAttestation,
|
|
10
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
|
|
3
|
+
import { Jwt } from "../../wallet-instance-attestation/common/types";
|
|
4
|
+
import { DecodedKeyAttestation } from "../api/types";
|
|
5
|
+
|
|
6
|
+
export type KeyAttestationJwt = z.infer<typeof KeyAttestationJwt>;
|
|
7
|
+
export const KeyAttestationJwt = z.object({
|
|
8
|
+
header: z.intersection(
|
|
9
|
+
Jwt.shape.header,
|
|
10
|
+
z.object({
|
|
11
|
+
typ: z.literal("key-attestation+jwt"),
|
|
12
|
+
}),
|
|
13
|
+
),
|
|
14
|
+
payload: DecodedKeyAttestation, // The payload type matches the public API
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export type KeyAttestationResponse = z.infer<typeof KeyAttestationResponse>;
|
|
18
|
+
export const KeyAttestationResponse = z.object({
|
|
19
|
+
key_attestation: z.string(),
|
|
20
|
+
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { decode as decodeJwt } from "@pagopa/io-react-native-jwt";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { KeyAttestationJwt } from "./types";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Decode a given JWT to get the parsed
|
|
6
|
+
* Decode a given JWT to get the parsed Key Attestation object they define.
|
|
7
7
|
* It ensures the provided data is in a valid shape, but it DOES NOT verify the signature.
|
|
8
8
|
*/
|
|
9
|
-
export function decode(token: string):
|
|
9
|
+
export function decode(token: string): KeyAttestationJwt {
|
|
10
10
|
const decodedJwt = decodeJwt(token);
|
|
11
|
-
return
|
|
11
|
+
return KeyAttestationJwt.parse({
|
|
12
12
|
header: decodedJwt.protectedHeader,
|
|
13
13
|
payload: decodedJwt.payload,
|
|
14
14
|
});
|
package/src/sd-jwt/types.ts
CHANGED
|
@@ -77,8 +77,8 @@ export const TypeMetadata = z.object({
|
|
|
77
77
|
data_source: z.object({
|
|
78
78
|
authentic_source: z.object({
|
|
79
79
|
contacts: z.array(z.string()),
|
|
80
|
-
homepage_uri: z.
|
|
81
|
-
logo_uri: z.
|
|
80
|
+
homepage_uri: z.url(),
|
|
81
|
+
logo_uri: z.url(),
|
|
82
82
|
organization_code: z.string(),
|
|
83
83
|
organization_name: z.string(),
|
|
84
84
|
}),
|