@pagopa/io-react-native-wallet 3.7.3 → 3.8.2
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 +15 -7
- package/lib/commonjs/IoWallet.js +5 -6
- package/lib/commonjs/IoWallet.js.map +1 -1
- package/lib/commonjs/api/index.js +12 -14
- package/lib/commonjs/api/index.js.map +1 -1
- package/lib/commonjs/client/generated/wallet-provider.js +35 -61
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
- package/lib/commonjs/client/index.js +7 -10
- package/lib/commonjs/client/index.js.map +1 -1
- package/lib/commonjs/credential/index.js +2 -3
- package/lib/commonjs/credential/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/04-authorize-access.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/05-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/06-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js +14 -8
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js +1 -1
- package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/mrtd-pop/types.js.map +1 -1
- package/lib/commonjs/credential/issuance/api/types.js +3 -6
- package/lib/commonjs/credential/issuance/api/types.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +2 -2
- 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 +44 -88
- 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 +16 -20
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/errors.js +1 -1
- package/lib/commonjs/credential/issuance/common/errors.js.map +1 -1
- package/lib/commonjs/credential/issuance/index.js +6 -7
- package/lib/commonjs/credential/issuance/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +5 -6
- 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 +3 -3
- 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 +2 -2
- package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/index.js +6 -8
- 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 +3 -4
- 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 +5 -5
- 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 +28 -36
- 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 +8 -9
- 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 +7 -8
- 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 +7 -8
- 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 +9 -10
- package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +3 -4
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/types.js +5 -9
- package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js +3 -4
- package/lib/commonjs/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/02-start-user-authorization.js +5 -5
- package/lib/commonjs/credential/issuance/v1.4.6/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js +31 -39
- package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/04-authorize-access.js +3 -3
- package/lib/commonjs/credential/issuance/v1.4.6/04-authorize-access.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/05-obtain-credential.js +37 -48
- package/lib/commonjs/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/06-verify-and-parse-credential.js +7 -8
- package/lib/commonjs/credential/issuance/v1.4.6/06-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/index.js +9 -10
- package/lib/commonjs/credential/issuance/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/mappers.js +20 -27
- package/lib/commonjs/credential/issuance/v1.4.6/mappers.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/types.js +2 -4
- package/lib/commonjs/credential/issuance/v1.4.6/types.js.map +1 -1
- package/lib/commonjs/credential/offer/api/01-resolve-credential-offer.js.map +1 -1
- package/lib/commonjs/credential/offer/api/02-extract-grant-details.js.map +1 -1
- package/lib/commonjs/credential/offer/api/03-validate-credential-offer.js.map +1 -1
- package/lib/commonjs/credential/offer/api/index.js +1 -1
- package/lib/commonjs/credential/offer/api/index.js.map +1 -1
- package/lib/commonjs/credential/offer/api/types.js.map +1 -1
- package/lib/commonjs/credential/offer/common/errors.js +1 -1
- package/lib/commonjs/credential/offer/common/errors.js.map +1 -1
- package/lib/commonjs/credential/offer/index.js +6 -7
- package/lib/commonjs/credential/offer/index.js.map +1 -1
- package/lib/commonjs/credential/offer/v1.0.0/index.js +2 -3
- package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/offer/v1.4.6/01-resolve-credential-offer.js +3 -4
- package/lib/commonjs/credential/offer/v1.4.6/01-resolve-credential-offer.js.map +1 -1
- package/lib/commonjs/credential/offer/v1.4.6/02-extract-grant-details.js +3 -3
- package/lib/commonjs/credential/offer/v1.4.6/02-extract-grant-details.js.map +1 -1
- package/lib/commonjs/credential/offer/v1.4.6/03-validate-credential-offer.js +6 -7
- package/lib/commonjs/credential/offer/v1.4.6/03-validate-credential-offer.js.map +1 -1
- package/lib/commonjs/credential/offer/v1.4.6/index.js +4 -5
- package/lib/commonjs/credential/offer/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/01-start-flow.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/02-evaluate-rp-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/03-get-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/04-verify-certificate-chain.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/06-evaluate-dcql-query.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +3 -5
- package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/index.js +1 -1
- package/lib/commonjs/credential/presentation/api/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/types.js +7 -10
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/errors.js +3 -6
- package/lib/commonjs/credential/presentation/common/errors.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/dcql.js +22 -41
- package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/http.js +7 -11
- package/lib/commonjs/credential/presentation/common/utils/http.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/mdoc.js +17 -28
- package/lib/commonjs/credential/presentation/common/utils/mdoc.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +7 -12
- package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -1
- package/lib/commonjs/credential/presentation/index.js +6 -7
- package/lib/commonjs/credential/presentation/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +2 -2
- 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 +5 -6
- 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 +8 -9
- 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 +12 -16
- 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 +14 -23
- 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 +22 -28
- 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 +7 -8
- package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +18 -24
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/types.js +7 -10
- package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/utils.js +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 +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/01-start-flow.js +3 -6
- package/lib/commonjs/credential/presentation/v1.4.6/01-start-flow.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/02-evaluate-rp-trust.js +5 -6
- package/lib/commonjs/credential/presentation/v1.4.6/02-evaluate-rp-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/03-get-request-object.js +6 -7
- package/lib/commonjs/credential/presentation/v1.4.6/03-get-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/04-verify-certificate-chain.js +5 -6
- package/lib/commonjs/credential/presentation/v1.4.6/04-verify-certificate-chain.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js +11 -13
- package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/06-evaluate-dcql-query.js +15 -25
- package/lib/commonjs/credential/presentation/v1.4.6/06-evaluate-dcql-query.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.js +29 -38
- package/lib/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/index.js +8 -9
- package/lib/commonjs/credential/presentation/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/mappers.js +20 -26
- package/lib/commonjs/credential/presentation/v1.4.6/mappers.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/sdkErrorMapper.js +9 -13
- package/lib/commonjs/credential/presentation/v1.4.6/sdkErrorMapper.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/types.js +3 -6
- package/lib/commonjs/credential/presentation/v1.4.6/types.js.map +1 -1
- package/lib/commonjs/credential/status/api/index.js +1 -1
- package/lib/commonjs/credential/status/api/index.js.map +1 -1
- package/lib/commonjs/credential/status/api/status-assertion.js.map +1 -1
- package/lib/commonjs/credential/status/api/status-list.js.map +1 -1
- package/lib/commonjs/credential/status/api/types.js +3 -5
- package/lib/commonjs/credential/status/api/types.js.map +1 -1
- package/lib/commonjs/credential/status/index.js +8 -8
- package/lib/commonjs/credential/status/index.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +5 -5
- 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 +9 -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 +3 -4
- package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/mappers.js +2 -3
- package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/types.js +10 -14
- package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/status/v1.4.6/01-status-list.js +14 -19
- package/lib/commonjs/credential/status/v1.4.6/01-status-list.js.map +1 -1
- package/lib/commonjs/credential/status/v1.4.6/02-verify-and-parse-status-list.js +1 -1
- package/lib/commonjs/credential/status/v1.4.6/02-verify-and-parse-status-list.js.map +1 -1
- package/lib/commonjs/credential/status/v1.4.6/03-get-status.js +1 -1
- package/lib/commonjs/credential/status/v1.4.6/03-get-status.js.map +1 -1
- package/lib/commonjs/credential/status/v1.4.6/index.js +4 -5
- package/lib/commonjs/credential/status/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/credential/trustmark/api/index.js.map +1 -1
- package/lib/commonjs/credential/trustmark/index.js +4 -4
- package/lib/commonjs/credential/trustmark/index.js.map +1 -1
- package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +12 -14
- 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 +2 -3
- package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/trustmark/v1.4.6/get-credential-trustmark.js +1 -1
- package/lib/commonjs/credential/trustmark/v1.4.6/get-credential-trustmark.js.map +1 -1
- package/lib/commonjs/credential/trustmark/v1.4.6/index.js +2 -3
- package/lib/commonjs/credential/trustmark/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +10 -17
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/api/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/index.js +4 -4
- package/lib/commonjs/credentials-catalogue/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +7 -8
- 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 +3 -4
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +19 -24
- package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +4 -7
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js +7 -8
- package/lib/commonjs/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/fetch-translations.js +9 -11
- package/lib/commonjs/credentials-catalogue/v1.4.6/fetch-translations.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/index.js +4 -5
- package/lib/commonjs/credentials-catalogue/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/mappers.js +22 -28
- package/lib/commonjs/credentials-catalogue/v1.4.6/mappers.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/types.js +10 -19
- package/lib/commonjs/credentials-catalogue/v1.4.6/types.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/utils.js +7 -9
- package/lib/commonjs/credentials-catalogue/v1.4.6/utils.js.map +1 -1
- package/lib/commonjs/index.js +19 -20
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/key-attestation/api/index.js.map +1 -1
- package/lib/commonjs/key-attestation/api/types.js +4 -6
- package/lib/commonjs/key-attestation/api/types.js.map +1 -1
- package/lib/commonjs/key-attestation/index.js +4 -4
- package/lib/commonjs/key-attestation/index.js.map +1 -1
- package/lib/commonjs/key-attestation/v1.0.0/index.js +1 -2
- package/lib/commonjs/key-attestation/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/key-attestation/v1.4.6/index.js +5 -6
- package/lib/commonjs/key-attestation/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/key-attestation/v1.4.6/issuing.js +15 -17
- package/lib/commonjs/key-attestation/v1.4.6/issuing.js.map +1 -1
- package/lib/commonjs/key-attestation/v1.4.6/mappers.js +3 -4
- package/lib/commonjs/key-attestation/v1.4.6/mappers.js.map +1 -1
- package/lib/commonjs/key-attestation/v1.4.6/types.js +5 -8
- package/lib/commonjs/key-attestation/v1.4.6/types.js.map +1 -1
- package/lib/commonjs/key-attestation/v1.4.6/utils.js +1 -1
- package/lib/commonjs/key-attestation/v1.4.6/utils.js.map +1 -1
- package/lib/commonjs/mdoc/const.js +2 -4
- package/lib/commonjs/mdoc/const.js.map +1 -1
- package/lib/commonjs/mdoc/converter.js +0 -1
- package/lib/commonjs/mdoc/converter.js.map +1 -1
- package/lib/commonjs/mdoc/index.js +7 -9
- package/lib/commonjs/mdoc/index.js.map +1 -1
- package/lib/commonjs/mdoc/utils.js +4 -6
- package/lib/commonjs/mdoc/utils.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/sd-jwt/index.js +4 -5
- package/lib/commonjs/sd-jwt/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/types.js +8 -10
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/sd-jwt/utils.js +5 -6
- package/lib/commonjs/sd-jwt/utils.js.map +1 -1
- package/lib/commonjs/trust/api/TrustAnchorConfig.js +4 -6
- package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -1
- package/lib/commonjs/trust/api/index.js.map +1 -1
- package/lib/commonjs/trust/common/build-chain.js +8 -11
- package/lib/commonjs/trust/common/build-chain.js.map +1 -1
- package/lib/commonjs/trust/common/errors.js +3 -5
- package/lib/commonjs/trust/common/errors.js.map +1 -1
- package/lib/commonjs/trust/common/types.js +10 -16
- package/lib/commonjs/trust/common/types.js.map +1 -1
- package/lib/commonjs/trust/common/utils.js +12 -15
- package/lib/commonjs/trust/common/utils.js.map +1 -1
- package/lib/commonjs/trust/common/verify-chain.js +20 -25
- package/lib/commonjs/trust/common/verify-chain.js.map +1 -1
- package/lib/commonjs/trust/index.js +4 -5
- package/lib/commonjs/trust/index.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/build-chain.js +4 -5
- package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/entities.js +5 -6
- package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/index.js +6 -7
- package/lib/commonjs/trust/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/mappers.js +2 -3
- package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/types.js +13 -15
- package/lib/commonjs/trust/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/verify-chain.js +4 -5
- package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -1
- package/lib/commonjs/trust/v1.4.6/entities.js +5 -6
- package/lib/commonjs/trust/v1.4.6/entities.js.map +1 -1
- package/lib/commonjs/trust/v1.4.6/types.js +10 -12
- package/lib/commonjs/trust/v1.4.6/types.js.map +1 -1
- package/lib/commonjs/utils/auth.js +5 -8
- package/lib/commonjs/utils/auth.js.map +1 -1
- package/lib/commonjs/utils/callbacks.js +20 -25
- package/lib/commonjs/utils/callbacks.js.map +1 -1
- package/lib/commonjs/utils/config.js +2 -4
- package/lib/commonjs/utils/config.js.map +1 -1
- package/lib/commonjs/utils/credentials.js +3 -4
- package/lib/commonjs/utils/credentials.js.map +1 -1
- package/lib/commonjs/utils/crypto.js +2 -2
- 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 +2 -4
- package/lib/commonjs/utils/dpop.js.map +1 -1
- package/lib/commonjs/utils/error-codes.js +3 -6
- package/lib/commonjs/utils/error-codes.js.map +1 -1
- package/lib/commonjs/utils/errors.js +29 -41
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/commonjs/utils/integrity.js.map +1 -1
- package/lib/commonjs/utils/jwk.js +2 -4
- package/lib/commonjs/utils/jwk.js.map +1 -1
- package/lib/commonjs/utils/logging.js +1 -2
- package/lib/commonjs/utils/logging.js.map +1 -1
- package/lib/commonjs/utils/mappers.js +4 -4
- package/lib/commonjs/utils/mappers.js.map +1 -1
- package/lib/commonjs/utils/misc.js +4 -8
- package/lib/commonjs/utils/misc.js.map +1 -1
- package/lib/commonjs/utils/object.js.map +1 -1
- package/lib/commonjs/utils/par.js +73 -81
- package/lib/commonjs/utils/par.js.map +1 -1
- package/lib/commonjs/utils/parser.js.map +1 -1
- package/lib/commonjs/utils/pop.js +2 -4
- package/lib/commonjs/utils/pop.js.map +1 -1
- package/lib/commonjs/utils/string.js +3 -8
- package/lib/commonjs/utils/string.js.map +1 -1
- package/lib/commonjs/utils/x509.js +6 -7
- package/lib/commonjs/utils/x509.js.map +1 -1
- package/lib/commonjs/utils/zod.js +2 -4
- package/lib/commonjs/utils/zod.js.map +1 -1
- package/lib/commonjs/wallet-instance/api/index.js.map +1 -1
- package/lib/commonjs/wallet-instance/common/wallet-instance.js +7 -7
- package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -1
- package/lib/commonjs/wallet-instance/index.js +4 -4
- package/lib/commonjs/wallet-instance/index.js.map +1 -1
- package/lib/commonjs/wallet-instance/v1.0.0/index.js +2 -3
- package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/wallet-instance/v1.4.6/index.js +2 -3
- package/lib/commonjs/wallet-instance/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/api/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/api/types.js +4 -6
- package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/common/types.js +4 -6
- package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/index.js +4 -4
- package/lib/commonjs/wallet-instance-attestation/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +5 -6
- 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 +12 -13
- 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 +4 -6
- 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 +6 -9
- 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.4.6/index.js +5 -6
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/issuing.js +15 -17
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/issuing.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/mappers.js +3 -4
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/mappers.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/types.js +4 -7
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/types.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/utils.js +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.4.6/utils.js.map +1 -1
- package/lib/module/IoWallet.js +8 -6
- package/lib/module/IoWallet.js.map +1 -1
- package/lib/module/api/index.js +12 -10
- package/lib/module/api/index.js.map +1 -1
- package/lib/module/client/generated/wallet-provider.js +13 -7
- package/lib/module/client/generated/wallet-provider.js.map +1 -1
- package/lib/module/client/index.js +9 -10
- package/lib/module/client/index.js.map +1 -1
- package/lib/module/credential/index.js +3 -1
- package/lib/module/credential/index.js.map +1 -1
- package/lib/module/credential/issuance/api/01-evaluate-issuer-trust.js +2 -0
- package/lib/module/credential/issuance/api/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/module/credential/issuance/api/02-start-user-authorization.js +2 -0
- package/lib/module/credential/issuance/api/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/api/03-complete-user-authorization.js +2 -0
- package/lib/module/credential/issuance/api/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/api/04-authorize-access.js +2 -0
- package/lib/module/credential/issuance/api/04-authorize-access.js.map +1 -1
- package/lib/module/credential/issuance/api/05-obtain-credential.js +2 -0
- package/lib/module/credential/issuance/api/05-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/api/06-verify-and-parse-credential.js +2 -0
- package/lib/module/credential/issuance/api/06-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/api/IssuerConfig.js +15 -6
- package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
- package/lib/module/credential/issuance/api/index.js +2 -0
- package/lib/module/credential/issuance/api/index.js.map +1 -1
- package/lib/module/credential/issuance/api/mrtd-pop/index.js +3 -1
- package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -1
- package/lib/module/credential/issuance/api/mrtd-pop/types.js +1 -1
- package/lib/module/credential/issuance/api/mrtd-pop/types.js.map +1 -1
- package/lib/module/credential/issuance/api/types.js +2 -0
- package/lib/module/credential/issuance/api/types.js.map +1 -1
- package/lib/module/credential/issuance/common/02-start-user-authorization.js +4 -2
- 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 +45 -87
- 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 +18 -20
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
- package/lib/module/credential/issuance/common/errors.js +3 -1
- package/lib/module/credential/issuance/common/errors.js.map +1 -1
- package/lib/module/credential/issuance/index.js +5 -3
- package/lib/module/credential/issuance/index.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +7 -6
- 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 +5 -3
- 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 +4 -2
- package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/index.js +6 -4
- 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 +5 -4
- 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 +7 -5
- 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 +28 -34
- 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 +9 -7
- 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 +9 -8
- 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 +7 -6
- 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 -7
- package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/mappers.js +4 -2
- package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/types.js +3 -1
- package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js +5 -4
- package/lib/module/credential/issuance/v1.4.6/01-evaluate-issuer-trust.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/02-start-user-authorization.js +7 -5
- package/lib/module/credential/issuance/v1.4.6/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js +31 -37
- package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/04-authorize-access.js +5 -3
- package/lib/module/credential/issuance/v1.4.6/04-authorize-access.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/05-obtain-credential.js +39 -48
- package/lib/module/credential/issuance/v1.4.6/05-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/06-verify-and-parse-credential.js +7 -6
- package/lib/module/credential/issuance/v1.4.6/06-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/index.js +9 -7
- package/lib/module/credential/issuance/v1.4.6/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/mappers.js +21 -25
- package/lib/module/credential/issuance/v1.4.6/mappers.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/types.js +2 -0
- package/lib/module/credential/issuance/v1.4.6/types.js.map +1 -1
- package/lib/module/credential/offer/api/01-resolve-credential-offer.js +2 -0
- package/lib/module/credential/offer/api/01-resolve-credential-offer.js.map +1 -1
- package/lib/module/credential/offer/api/02-extract-grant-details.js +2 -0
- package/lib/module/credential/offer/api/02-extract-grant-details.js.map +1 -1
- package/lib/module/credential/offer/api/03-validate-credential-offer.js +2 -0
- package/lib/module/credential/offer/api/03-validate-credential-offer.js.map +1 -1
- package/lib/module/credential/offer/api/index.js +3 -1
- package/lib/module/credential/offer/api/index.js.map +1 -1
- package/lib/module/credential/offer/api/types.js +2 -0
- package/lib/module/credential/offer/api/types.js.map +1 -1
- package/lib/module/credential/offer/common/errors.js +3 -1
- package/lib/module/credential/offer/common/errors.js.map +1 -1
- package/lib/module/credential/offer/index.js +5 -3
- package/lib/module/credential/offer/index.js.map +1 -1
- package/lib/module/credential/offer/v1.0.0/index.js +3 -1
- package/lib/module/credential/offer/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/offer/v1.4.6/01-resolve-credential-offer.js +5 -4
- package/lib/module/credential/offer/v1.4.6/01-resolve-credential-offer.js.map +1 -1
- package/lib/module/credential/offer/v1.4.6/02-extract-grant-details.js +5 -3
- package/lib/module/credential/offer/v1.4.6/02-extract-grant-details.js.map +1 -1
- package/lib/module/credential/offer/v1.4.6/03-validate-credential-offer.js +8 -7
- package/lib/module/credential/offer/v1.4.6/03-validate-credential-offer.js.map +1 -1
- package/lib/module/credential/offer/v1.4.6/index.js +5 -3
- package/lib/module/credential/offer/v1.4.6/index.js.map +1 -1
- package/lib/module/credential/presentation/api/01-start-flow.js +2 -0
- package/lib/module/credential/presentation/api/01-start-flow.js.map +1 -1
- package/lib/module/credential/presentation/api/02-evaluate-rp-trust.js +2 -0
- package/lib/module/credential/presentation/api/02-evaluate-rp-trust.js.map +1 -1
- package/lib/module/credential/presentation/api/03-get-request-object.js +2 -0
- package/lib/module/credential/presentation/api/03-get-request-object.js.map +1 -1
- package/lib/module/credential/presentation/api/04-verify-certificate-chain.js +2 -0
- package/lib/module/credential/presentation/api/04-verify-certificate-chain.js.map +1 -1
- package/lib/module/credential/presentation/api/05-verify-request-object.js +2 -0
- package/lib/module/credential/presentation/api/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/api/06-evaluate-dcql-query.js +2 -0
- package/lib/module/credential/presentation/api/06-evaluate-dcql-query.js.map +1 -1
- package/lib/module/credential/presentation/api/07-send-authorization-response.js +2 -0
- package/lib/module/credential/presentation/api/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/api/RelyingPartyConfig.js +3 -1
- package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -1
- package/lib/module/credential/presentation/api/index.js +3 -1
- package/lib/module/credential/presentation/api/index.js.map +1 -1
- package/lib/module/credential/presentation/api/types.js +2 -0
- package/lib/module/credential/presentation/api/types.js.map +1 -1
- package/lib/module/credential/presentation/common/errors.js +5 -6
- package/lib/module/credential/presentation/common/errors.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/dcql.js +24 -41
- package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/http.js +9 -11
- package/lib/module/credential/presentation/common/utils/http.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/mdoc.js +19 -28
- package/lib/module/credential/presentation/common/utils/mdoc.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/sd-jwt.js +9 -12
- package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -1
- package/lib/module/credential/presentation/index.js +5 -3
- package/lib/module/credential/presentation/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +4 -2
- 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 +7 -6
- 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 +10 -9
- 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 +13 -15
- 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 +15 -21
- 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 +22 -26
- 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 +8 -6
- package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/mappers.js +20 -22
- package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/types.js +4 -2
- package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/utils.js +3 -1
- package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +3 -1
- package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/01-start-flow.js +5 -6
- package/lib/module/credential/presentation/v1.4.6/01-start-flow.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/02-evaluate-rp-trust.js +7 -6
- package/lib/module/credential/presentation/v1.4.6/02-evaluate-rp-trust.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/03-get-request-object.js +8 -7
- package/lib/module/credential/presentation/v1.4.6/03-get-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/04-verify-certificate-chain.js +7 -6
- package/lib/module/credential/presentation/v1.4.6/04-verify-certificate-chain.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js +13 -13
- package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/06-evaluate-dcql-query.js +16 -23
- package/lib/module/credential/presentation/v1.4.6/06-evaluate-dcql-query.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/07-send-authorization-response.js +29 -36
- package/lib/module/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/index.js +9 -7
- package/lib/module/credential/presentation/v1.4.6/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/mappers.js +22 -24
- package/lib/module/credential/presentation/v1.4.6/mappers.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/sdkErrorMapper.js +11 -13
- package/lib/module/credential/presentation/v1.4.6/sdkErrorMapper.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/types.js +2 -0
- package/lib/module/credential/presentation/v1.4.6/types.js.map +1 -1
- package/lib/module/credential/status/api/index.js +3 -1
- package/lib/module/credential/status/api/index.js.map +1 -1
- package/lib/module/credential/status/api/status-assertion.js +2 -0
- package/lib/module/credential/status/api/status-assertion.js.map +1 -1
- package/lib/module/credential/status/api/status-list.js +2 -0
- package/lib/module/credential/status/api/status-list.js.map +1 -1
- package/lib/module/credential/status/api/types.js +3 -1
- package/lib/module/credential/status/api/types.js.map +1 -1
- package/lib/module/credential/status/index.js +5 -3
- package/lib/module/credential/status/index.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/01-status-assertion.js +7 -5
- 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 +11 -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 +4 -2
- package/lib/module/credential/status/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/mappers.js +3 -1
- package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/types.js +4 -2
- package/lib/module/credential/status/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/status/v1.4.6/01-status-list.js +16 -19
- package/lib/module/credential/status/v1.4.6/01-status-list.js.map +1 -1
- package/lib/module/credential/status/v1.4.6/02-verify-and-parse-status-list.js +3 -1
- package/lib/module/credential/status/v1.4.6/02-verify-and-parse-status-list.js.map +1 -1
- package/lib/module/credential/status/v1.4.6/03-get-status.js +3 -1
- package/lib/module/credential/status/v1.4.6/03-get-status.js.map +1 -1
- package/lib/module/credential/status/v1.4.6/index.js +5 -3
- package/lib/module/credential/status/v1.4.6/index.js.map +1 -1
- package/lib/module/credential/trustmark/api/index.js +2 -0
- package/lib/module/credential/trustmark/api/index.js.map +1 -1
- package/lib/module/credential/trustmark/index.js +4 -2
- package/lib/module/credential/trustmark/index.js.map +1 -1
- package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +13 -12
- 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 +3 -1
- package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/trustmark/v1.4.6/get-credential-trustmark.js +3 -1
- package/lib/module/credential/trustmark/v1.4.6/get-credential-trustmark.js.map +1 -1
- package/lib/module/credential/trustmark/v1.4.6/index.js +3 -1
- package/lib/module/credential/trustmark/v1.4.6/index.js.map +1 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +3 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/api/index.js +2 -0
- package/lib/module/credentials-catalogue/api/index.js.map +1 -1
- package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +2 -0
- package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -1
- package/lib/module/credentials-catalogue/index.js +4 -2
- package/lib/module/credentials-catalogue/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +9 -8
- 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 +4 -2
- package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/mappers.js +21 -23
- package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/types.js +3 -1
- package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js +9 -8
- package/lib/module/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/fetch-translations.js +11 -11
- package/lib/module/credentials-catalogue/v1.4.6/fetch-translations.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/index.js +5 -3
- package/lib/module/credentials-catalogue/v1.4.6/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/mappers.js +24 -27
- package/lib/module/credentials-catalogue/v1.4.6/mappers.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/types.js +3 -1
- package/lib/module/credentials-catalogue/v1.4.6/types.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/utils.js +8 -7
- package/lib/module/credentials-catalogue/v1.4.6/utils.js.map +1 -1
- package/lib/module/index.js +20 -18
- package/lib/module/index.js.map +1 -1
- package/lib/module/key-attestation/api/index.js +2 -0
- package/lib/module/key-attestation/api/index.js.map +1 -1
- package/lib/module/key-attestation/api/types.js +4 -2
- package/lib/module/key-attestation/api/types.js.map +1 -1
- package/lib/module/key-attestation/index.js +4 -2
- package/lib/module/key-attestation/index.js.map +1 -1
- package/lib/module/key-attestation/v1.0.0/index.js +2 -0
- package/lib/module/key-attestation/v1.0.0/index.js.map +1 -1
- package/lib/module/key-attestation/v1.4.6/index.js +6 -4
- package/lib/module/key-attestation/v1.4.6/index.js.map +1 -1
- package/lib/module/key-attestation/v1.4.6/issuing.js +16 -16
- package/lib/module/key-attestation/v1.4.6/issuing.js.map +1 -1
- package/lib/module/key-attestation/v1.4.6/mappers.js +4 -2
- package/lib/module/key-attestation/v1.4.6/mappers.js.map +1 -1
- package/lib/module/key-attestation/v1.4.6/types.js +4 -3
- package/lib/module/key-attestation/v1.4.6/types.js.map +1 -1
- package/lib/module/key-attestation/v1.4.6/utils.js +3 -1
- package/lib/module/key-attestation/v1.4.6/utils.js.map +1 -1
- package/lib/module/mdoc/const.js +2 -0
- package/lib/module/mdoc/const.js.map +1 -1
- package/lib/module/mdoc/converter.js +2 -1
- package/lib/module/mdoc/converter.js.map +1 -1
- package/lib/module/mdoc/index.js +9 -9
- package/lib/module/mdoc/index.js.map +1 -1
- package/lib/module/mdoc/utils.js +6 -6
- package/lib/module/mdoc/utils.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/sd-jwt/index.js +6 -5
- package/lib/module/sd-jwt/index.js.map +1 -1
- package/lib/module/sd-jwt/types.js +4 -2
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/sd-jwt/utils.js +7 -6
- package/lib/module/sd-jwt/utils.js.map +1 -1
- package/lib/module/trust/api/TrustAnchorConfig.js +4 -2
- package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -1
- package/lib/module/trust/api/index.js +2 -0
- package/lib/module/trust/api/index.js.map +1 -1
- package/lib/module/trust/common/build-chain.js +10 -11
- package/lib/module/trust/common/build-chain.js.map +1 -1
- package/lib/module/trust/common/errors.js +5 -5
- package/lib/module/trust/common/errors.js.map +1 -1
- package/lib/module/trust/common/types.js +4 -2
- package/lib/module/trust/common/types.js.map +1 -1
- package/lib/module/trust/common/utils.js +14 -15
- package/lib/module/trust/common/utils.js.map +1 -1
- package/lib/module/trust/common/verify-chain.js +23 -26
- package/lib/module/trust/common/verify-chain.js.map +1 -1
- package/lib/module/trust/index.js +4 -2
- package/lib/module/trust/index.js.map +1 -1
- package/lib/module/trust/v1.0.0/build-chain.js +5 -3
- package/lib/module/trust/v1.0.0/build-chain.js.map +1 -1
- package/lib/module/trust/v1.0.0/entities.js +7 -6
- package/lib/module/trust/v1.0.0/entities.js.map +1 -1
- package/lib/module/trust/v1.0.0/index.js +7 -5
- package/lib/module/trust/v1.0.0/index.js.map +1 -1
- package/lib/module/trust/v1.0.0/mappers.js +3 -1
- package/lib/module/trust/v1.0.0/mappers.js.map +1 -1
- package/lib/module/trust/v1.0.0/types.js +5 -3
- package/lib/module/trust/v1.0.0/types.js.map +1 -1
- package/lib/module/trust/v1.0.0/verify-chain.js +5 -3
- package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -1
- package/lib/module/trust/v1.4.6/entities.js +7 -6
- package/lib/module/trust/v1.4.6/entities.js.map +1 -1
- package/lib/module/trust/v1.4.6/types.js +4 -2
- package/lib/module/trust/v1.4.6/types.js.map +1 -1
- package/lib/module/utils/auth.js +2 -0
- package/lib/module/utils/auth.js.map +1 -1
- package/lib/module/utils/callbacks.js +21 -23
- package/lib/module/utils/callbacks.js.map +1 -1
- package/lib/module/utils/config.js +2 -0
- package/lib/module/utils/config.js.map +1 -1
- package/lib/module/utils/credentials.js +5 -4
- package/lib/module/utils/credentials.js.map +1 -1
- package/lib/module/utils/crypto.js +4 -2
- package/lib/module/utils/crypto.js.map +1 -1
- package/lib/module/utils/decoder.js +4 -2
- package/lib/module/utils/decoder.js.map +1 -1
- package/lib/module/utils/dpop.js +2 -0
- package/lib/module/utils/dpop.js.map +1 -1
- package/lib/module/utils/error-codes.js +2 -0
- package/lib/module/utils/error-codes.js.map +1 -1
- package/lib/module/utils/errors.js +27 -35
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/module/utils/integrity.js +1 -1
- package/lib/module/utils/integrity.js.map +1 -1
- package/lib/module/utils/jwk.js +2 -0
- package/lib/module/utils/jwk.js.map +1 -1
- package/lib/module/utils/logging.js +2 -0
- package/lib/module/utils/logging.js.map +1 -1
- package/lib/module/utils/mappers.js +6 -4
- package/lib/module/utils/mappers.js.map +1 -1
- package/lib/module/utils/misc.js +7 -8
- package/lib/module/utils/misc.js.map +1 -1
- package/lib/module/utils/object.js +2 -0
- package/lib/module/utils/object.js.map +1 -1
- package/lib/module/utils/par.js +71 -73
- package/lib/module/utils/par.js.map +1 -1
- package/lib/module/utils/parser.js +2 -0
- package/lib/module/utils/parser.js.map +1 -1
- package/lib/module/utils/pop.js +2 -0
- package/lib/module/utils/pop.js.map +1 -1
- package/lib/module/utils/string.js +5 -8
- package/lib/module/utils/string.js.map +1 -1
- package/lib/module/utils/x509.js +8 -7
- package/lib/module/utils/x509.js.map +1 -1
- package/lib/module/utils/zod.js +2 -0
- package/lib/module/utils/zod.js.map +1 -1
- package/lib/module/wallet-instance/api/index.js +2 -0
- package/lib/module/wallet-instance/api/index.js.map +1 -1
- package/lib/module/wallet-instance/common/wallet-instance.js +5 -3
- package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -1
- package/lib/module/wallet-instance/index.js +4 -2
- package/lib/module/wallet-instance/index.js.map +1 -1
- package/lib/module/wallet-instance/v1.0.0/index.js +3 -1
- package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -1
- package/lib/module/wallet-instance/v1.4.6/index.js +3 -1
- package/lib/module/wallet-instance/v1.4.6/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/api/index.js +2 -0
- package/lib/module/wallet-instance-attestation/api/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/api/types.js +4 -2
- package/lib/module/wallet-instance-attestation/api/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/common/types.js +4 -2
- package/lib/module/wallet-instance-attestation/common/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/index.js +4 -2
- package/lib/module/wallet-instance-attestation/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/index.js +6 -4
- 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 +13 -12
- 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 +4 -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 +4 -1
- 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 +3 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/index.js +6 -4
- package/lib/module/wallet-instance-attestation/v1.4.6/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/issuing.js +16 -16
- package/lib/module/wallet-instance-attestation/v1.4.6/issuing.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/mappers.js +4 -2
- package/lib/module/wallet-instance-attestation/v1.4.6/mappers.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/types.js +3 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/types.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/utils.js +3 -1
- package/lib/module/wallet-instance-attestation/v1.4.6/utils.js.map +1 -1
- package/lib/typescript/commonjs/IoWallet.d.ts.map +1 -0
- package/lib/typescript/commonjs/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/client/generated/wallet-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/client/index.d.ts +13 -0
- package/lib/typescript/commonjs/client/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/01-evaluate-issuer-trust.d.ts +22 -0
- package/lib/typescript/commonjs/credential/issuance/api/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/02-start-user-authorization.d.ts +53 -0
- package/lib/typescript/commonjs/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/03-complete-user-authorization.d.ts +97 -0
- package/lib/typescript/commonjs/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/04-authorize-access.d.ts +33 -0
- package/lib/typescript/commonjs/credential/issuance/api/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/05-obtain-credential.d.ts +58 -0
- package/lib/typescript/commonjs/credential/issuance/api/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/IssuerConfig.d.ts +90 -0
- package/lib/typescript/commonjs/credential/issuance/api/IssuerConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/mrtd-pop/index.d.ts +74 -0
- package/lib/typescript/commonjs/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/api/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/common/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/mrtd-pop/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/mappers.d.ts +307 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/05-obtain-credential.d.ts +26 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/mappers.d.ts +1824 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/issuance/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/api/01-resolve-credential-offer.d.ts +22 -0
- package/lib/typescript/commonjs/credential/offer/api/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/api/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/api/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/common/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/v1.4.6/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/v1.4.6/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/v1.4.6/03-validate-credential-offer.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/offer/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/02-evaluate-rp-trust.d.ts +18 -0
- package/lib/typescript/commonjs/credential/presentation/api/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/03-get-request-object.d.ts +19 -0
- package/lib/typescript/commonjs/credential/presentation/api/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/04-verify-certificate-chain.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/07-send-authorization-response.d.ts +54 -0
- package/lib/typescript/commonjs/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/api/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/common/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/common/utils/dcql.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/common/utils/http.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/common/utils/mdoc.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/04-verify-certificate-chain.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/sdkErrorMapper.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/api/status-assertion.d.ts +49 -0
- package/lib/typescript/commonjs/credential/status/api/status-assertion.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/api/status-list.d.ts +75 -0
- package/lib/typescript/commonjs/credential/status/api/status-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/api/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.4.6/01-status-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.4.6/03-get-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/status/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/trustmark/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/trustmark/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/trustmark/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/trustmark/v1.4.6/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/commonjs/credential/trustmark/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/api/index.d.ts +51 -0
- package/lib/typescript/commonjs/credentials-catalogue/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/fetch-translations.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/utils.d.ts +37 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/api/index.d.ts +39 -0
- package/lib/typescript/commonjs/key-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/api/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/v1.4.6/issuing.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/key-attestation/v1.4.6/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/mdoc/const.d.ts.map +1 -0
- package/lib/typescript/commonjs/mdoc/converter.d.ts.map +1 -0
- package/lib/typescript/commonjs/mdoc/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/mdoc/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/sd-jwt/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/sd-jwt/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/sd-jwt/utils.d.ts +19 -0
- package/lib/typescript/commonjs/sd-jwt/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/api/TrustAnchorConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/api/index.d.ts +43 -0
- package/lib/typescript/commonjs/trust/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/common/build-chain.d.ts +21 -0
- package/lib/typescript/commonjs/trust/common/build-chain.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/common/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/common/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/common/utils.d.ts +53 -0
- package/lib/typescript/commonjs/trust/common/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/common/verify-chain.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.0.0/build-chain.d.ts +2 -0
- package/lib/typescript/commonjs/trust/v1.0.0/build-chain.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.0.0/entities.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.0.0/verify-chain.d.ts +5 -0
- package/lib/typescript/commonjs/trust/v1.0.0/verify-chain.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.4.6/entities.d.ts.map +1 -0
- package/lib/typescript/commonjs/trust/v1.4.6/types.d.ts +958 -0
- package/lib/typescript/commonjs/trust/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/auth.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/callbacks.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/config.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/credentials.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/crypto.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/decoder.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/dpop.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/error-codes.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/integrity.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/jwk.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/logging.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/misc.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/object.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/par.d.ts +50 -0
- package/lib/typescript/commonjs/utils/par.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/parser.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/pop.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/string.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/x509.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/zod.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance/api/index.d.ts +45 -0
- package/lib/typescript/commonjs/wallet-instance/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance/common/wallet-instance.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/api/index.d.ts +47 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/api/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/common/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.4.6/issuing.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/wallet-instance-attestation/v1.4.6/utils.d.ts.map +1 -0
- package/lib/typescript/module/IoWallet.d.ts +28 -0
- package/lib/typescript/module/IoWallet.d.ts.map +1 -0
- package/lib/typescript/module/api/index.d.ts +31 -0
- package/lib/typescript/module/api/index.d.ts.map +1 -0
- package/lib/typescript/module/client/generated/wallet-provider.d.ts +401 -0
- package/lib/typescript/module/client/generated/wallet-provider.d.ts.map +1 -0
- package/lib/typescript/module/client/index.d.ts +13 -0
- package/lib/typescript/module/client/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/index.d.ts +3 -0
- package/lib/typescript/module/credential/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/01-evaluate-issuer-trust.d.ts +22 -0
- package/lib/typescript/module/credential/issuance/api/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/02-start-user-authorization.d.ts +53 -0
- package/lib/typescript/module/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/03-complete-user-authorization.d.ts +97 -0
- package/lib/typescript/module/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/04-authorize-access.d.ts +33 -0
- package/lib/typescript/module/credential/issuance/api/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/05-obtain-credential.d.ts +58 -0
- package/lib/typescript/module/credential/issuance/api/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/06-verify-and-parse-credential.d.ts +40 -0
- package/lib/typescript/module/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/IssuerConfig.d.ts +90 -0
- package/lib/typescript/module/credential/issuance/api/IssuerConfig.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/index.d.ts +15 -0
- package/lib/typescript/module/credential/issuance/api/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/mrtd-pop/index.d.ts +74 -0
- package/lib/typescript/module/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/mrtd-pop/types.d.ts +34 -0
- package/lib/typescript/module/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/api/types.d.ts +25 -0
- package/lib/typescript/module/credential/issuance/api/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/common/02-start-user-authorization.d.ts +21 -0
- package/lib/typescript/module/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/common/errors.d.ts +18 -0
- package/lib/typescript/module/credential/issuance/common/errors.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/index.d.ts +6 -0
- package/lib/typescript/module/credential/issuance/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/02-init-challenge.d.ts +14 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +15 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/index.d.ts +4 -0
- package/lib/typescript/module/credential/issuance/mrtd-pop/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/02-start-user-authorization.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +17 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/04-authorize-access.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/05-obtain-credential.d.ts +6 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/mappers.d.ts +307 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/types.d.ts +21 -0
- package/lib/typescript/module/credential/issuance/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/02-start-user-authorization.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/03-complete-user-authorization.d.ts +17 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/04-authorize-access.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/05-obtain-credential.d.ts +26 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/06-verify-and-parse-credential.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/mappers.d.ts +1824 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/types.d.ts +6 -0
- package/lib/typescript/module/credential/issuance/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/api/01-resolve-credential-offer.d.ts +22 -0
- package/lib/typescript/module/credential/offer/api/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/api/02-extract-grant-details.d.ts +13 -0
- package/lib/typescript/module/credential/offer/api/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/api/03-validate-credential-offer.d.ts +19 -0
- package/lib/typescript/module/credential/offer/api/03-validate-credential-offer.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/api/index.d.ts +7 -0
- package/lib/typescript/module/credential/offer/api/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/api/types.d.ts +5 -0
- package/lib/typescript/module/credential/offer/api/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/common/errors.d.ts +8 -0
- package/lib/typescript/module/credential/offer/common/errors.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/index.d.ts +6 -0
- package/lib/typescript/module/credential/offer/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/credential/offer/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/v1.4.6/01-resolve-credential-offer.d.ts +19 -0
- package/lib/typescript/module/credential/offer/v1.4.6/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/v1.4.6/02-extract-grant-details.d.ts +16 -0
- package/lib/typescript/module/credential/offer/v1.4.6/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/v1.4.6/03-validate-credential-offer.d.ts +15 -0
- package/lib/typescript/module/credential/offer/v1.4.6/03-validate-credential-offer.d.ts.map +1 -0
- package/lib/typescript/module/credential/offer/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/credential/offer/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/01-start-flow.d.ts +18 -0
- package/lib/typescript/module/credential/presentation/api/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/02-evaluate-rp-trust.d.ts +18 -0
- package/lib/typescript/module/credential/presentation/api/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/03-get-request-object.d.ts +19 -0
- package/lib/typescript/module/credential/presentation/api/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/04-verify-certificate-chain.d.ts +24 -0
- package/lib/typescript/module/credential/presentation/api/04-verify-certificate-chain.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/05-verify-request-object.d.ts +23 -0
- package/lib/typescript/module/credential/presentation/api/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/06-evaluate-dcql-query.d.ts +40 -0
- package/lib/typescript/module/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/07-send-authorization-response.d.ts +54 -0
- package/lib/typescript/module/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/RelyingPartyConfig.d.ts +40 -0
- package/lib/typescript/module/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/index.d.ts +13 -0
- package/lib/typescript/module/credential/presentation/api/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/api/types.d.ts +147 -0
- package/lib/typescript/module/credential/presentation/api/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/common/errors.d.ts +80 -0
- package/lib/typescript/module/credential/presentation/common/errors.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/common/utils/dcql.d.ts +78 -0
- package/lib/typescript/module/credential/presentation/common/utils/dcql.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/common/utils/http.d.ts +11 -0
- package/lib/typescript/module/credential/presentation/common/utils/http.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/common/utils/mdoc.d.ts +28 -0
- package/lib/typescript/module/credential/presentation/common/utils/mdoc.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/common/utils/sd-jwt.d.ts +14 -0
- package/lib/typescript/module/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/index.d.ts +6 -0
- package/lib/typescript/module/credential/presentation/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/01-start-flow.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/03-get-request-object.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/05-verify-request-object.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/07-send-authorization-response.d.ts +26 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/mappers.d.ts +149 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/types.d.ts +49 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/utils.d.ts +11 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/utils.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/utils.jwks.d.ts +11 -0
- package/lib/typescript/module/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/01-start-flow.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/02-evaluate-rp-trust.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/03-get-request-object.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/04-verify-certificate-chain.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/04-verify-certificate-chain.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/05-verify-request-object.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/06-evaluate-dcql-query.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/06-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/07-send-authorization-response.d.ts +18 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/mappers.d.ts +239 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/sdkErrorMapper.d.ts +13 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/sdkErrorMapper.d.ts.map +1 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/types.d.ts +106 -0
- package/lib/typescript/module/credential/presentation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/api/index.d.ts +23 -0
- package/lib/typescript/module/credential/status/api/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/api/status-assertion.d.ts +49 -0
- package/lib/typescript/module/credential/status/api/status-assertion.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/api/status-list.d.ts +75 -0
- package/lib/typescript/module/credential/status/api/status-list.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/api/types.d.ts +36 -0
- package/lib/typescript/module/credential/status/api/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/index.d.ts +4 -0
- package/lib/typescript/module/credential/status/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.0.0/01-status-assertion.d.ts +3 -0
- package/lib/typescript/module/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts +3 -0
- package/lib/typescript/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/credential/status/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.0.0/mappers.d.ts +47 -0
- package/lib/typescript/module/credential/status/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.0.0/types.d.ts +156 -0
- package/lib/typescript/module/credential/status/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.4.6/01-status-list.d.ts +5 -0
- package/lib/typescript/module/credential/status/v1.4.6/01-status-list.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts +3 -0
- package/lib/typescript/module/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.4.6/03-get-status.d.ts +3 -0
- package/lib/typescript/module/credential/status/v1.4.6/03-get-status.d.ts.map +1 -0
- package/lib/typescript/module/credential/status/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/credential/status/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/trustmark/api/index.d.ts +49 -0
- package/lib/typescript/module/credential/trustmark/api/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/trustmark/index.d.ts +4 -0
- package/lib/typescript/module/credential/trustmark/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts +3 -0
- package/lib/typescript/module/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/module/credential/trustmark/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/credential/trustmark/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/credential/trustmark/v1.4.6/get-credential-trustmark.d.ts +3 -0
- package/lib/typescript/module/credential/trustmark/v1.4.6/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/module/credential/trustmark/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/credential/trustmark/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +319 -0
- package/lib/typescript/module/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/api/index.d.ts +51 -0
- package/lib/typescript/module/credentials-catalogue/api/index.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/common/get-status-l10n-ids.d.ts +9 -0
- package/lib/typescript/module/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/index.d.ts +4 -0
- package/lib/typescript/module/credentials-catalogue/index.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts +3 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/mappers.d.ts +125 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/types.d.ts +148 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.d.ts +3 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/fetch-translations.d.ts +3 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/fetch-translations.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/mappers.d.ts +326 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/types.d.ts +354 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/utils.d.ts +37 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/utils.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +25 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/api/index.d.ts +39 -0
- package/lib/typescript/module/key-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/api/types.d.ts +56 -0
- package/lib/typescript/module/key-attestation/api/types.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/index.d.ts +4 -0
- package/lib/typescript/module/key-attestation/index.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/key-attestation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/key-attestation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/v1.4.6/issuing.d.ts +3 -0
- package/lib/typescript/module/key-attestation/v1.4.6/issuing.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/v1.4.6/mappers.d.ts +85 -0
- package/lib/typescript/module/key-attestation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/v1.4.6/types.d.ts +58 -0
- package/lib/typescript/module/key-attestation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/module/key-attestation/v1.4.6/utils.d.ts +7 -0
- package/lib/typescript/module/key-attestation/v1.4.6/utils.d.ts.map +1 -0
- package/lib/typescript/module/mdoc/const.d.ts +3 -0
- package/lib/typescript/module/mdoc/const.d.ts.map +1 -0
- package/lib/typescript/module/mdoc/converter.d.ts +8 -0
- package/lib/typescript/module/mdoc/converter.d.ts.map +1 -0
- package/lib/typescript/module/mdoc/index.d.ts +10 -0
- package/lib/typescript/module/mdoc/index.d.ts.map +1 -0
- package/lib/typescript/module/mdoc/utils.d.ts +33 -0
- package/lib/typescript/module/mdoc/utils.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/sd-jwt/index.d.ts +92 -0
- package/lib/typescript/module/sd-jwt/index.d.ts.map +1 -0
- package/lib/typescript/module/sd-jwt/types.d.ts +104 -0
- package/lib/typescript/module/sd-jwt/types.d.ts.map +1 -0
- package/lib/typescript/module/sd-jwt/utils.d.ts +19 -0
- package/lib/typescript/module/sd-jwt/utils.d.ts.map +1 -0
- package/lib/typescript/module/trust/api/TrustAnchorConfig.d.ts +58 -0
- package/lib/typescript/module/trust/api/TrustAnchorConfig.d.ts.map +1 -0
- package/lib/typescript/module/trust/api/index.d.ts +43 -0
- package/lib/typescript/module/trust/api/index.d.ts.map +1 -0
- package/lib/typescript/module/trust/common/build-chain.d.ts +21 -0
- package/lib/typescript/module/trust/common/build-chain.d.ts.map +1 -0
- package/lib/typescript/module/trust/common/errors.d.ts +103 -0
- package/lib/typescript/module/trust/common/errors.d.ts.map +1 -0
- package/lib/typescript/module/trust/common/types.d.ts +140 -0
- package/lib/typescript/module/trust/common/types.d.ts.map +1 -0
- package/lib/typescript/module/trust/common/utils.d.ts +53 -0
- package/lib/typescript/module/trust/common/utils.d.ts.map +1 -0
- package/lib/typescript/module/trust/common/verify-chain.d.ts +27 -0
- package/lib/typescript/module/trust/common/verify-chain.d.ts.map +1 -0
- package/lib/typescript/module/trust/index.d.ts +5 -0
- package/lib/typescript/module/trust/index.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.0.0/build-chain.d.ts +2 -0
- package/lib/typescript/module/trust/v1.0.0/build-chain.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.0.0/entities.d.ts +945 -0
- package/lib/typescript/module/trust/v1.0.0/entities.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/trust/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.0.0/mappers.d.ts +109 -0
- package/lib/typescript/module/trust/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.0.0/types.d.ts +968 -0
- package/lib/typescript/module/trust/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.0.0/verify-chain.d.ts +5 -0
- package/lib/typescript/module/trust/v1.0.0/verify-chain.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.4.6/entities.d.ts +100 -0
- package/lib/typescript/module/trust/v1.4.6/entities.d.ts.map +1 -0
- package/lib/typescript/module/trust/v1.4.6/types.d.ts +958 -0
- package/lib/typescript/module/trust/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/module/utils/auth.d.ts +41 -0
- package/lib/typescript/module/utils/auth.d.ts.map +1 -0
- package/lib/typescript/module/utils/callbacks.d.ts +28 -0
- package/lib/typescript/module/utils/callbacks.d.ts.map +1 -0
- package/lib/typescript/module/utils/config.d.ts +10 -0
- package/lib/typescript/module/utils/config.d.ts.map +1 -0
- package/lib/typescript/module/utils/credentials.d.ts +16 -0
- package/lib/typescript/module/utils/credentials.d.ts.map +1 -0
- package/lib/typescript/module/utils/crypto.d.ts +70 -0
- package/lib/typescript/module/utils/crypto.d.ts.map +1 -0
- package/lib/typescript/module/utils/decoder.d.ts +6 -0
- package/lib/typescript/module/utils/decoder.d.ts.map +1 -0
- package/lib/typescript/module/utils/dpop.d.ts +22 -0
- package/lib/typescript/module/utils/dpop.d.ts.map +1 -0
- package/lib/typescript/module/utils/error-codes.d.ts +57 -0
- package/lib/typescript/module/utils/error-codes.d.ts.map +1 -0
- package/lib/typescript/module/utils/errors.d.ts +196 -0
- package/lib/typescript/module/utils/errors.d.ts.map +1 -0
- package/lib/typescript/module/utils/integrity.d.ts +21 -0
- package/lib/typescript/module/utils/integrity.d.ts.map +1 -0
- package/lib/typescript/module/utils/jwk.d.ts +78 -0
- package/lib/typescript/module/utils/jwk.d.ts.map +1 -0
- package/lib/typescript/module/utils/logging.d.ts +35 -0
- package/lib/typescript/module/utils/logging.d.ts.map +1 -0
- package/lib/typescript/module/utils/mappers.d.ts +47 -0
- package/lib/typescript/module/utils/mappers.d.ts.map +1 -0
- package/lib/typescript/module/utils/misc.d.ts +36 -0
- package/lib/typescript/module/utils/misc.d.ts.map +1 -0
- package/lib/typescript/module/utils/object.d.ts +4 -0
- package/lib/typescript/module/utils/object.d.ts.map +1 -0
- package/lib/typescript/module/utils/par.d.ts +50 -0
- package/lib/typescript/module/utils/par.d.ts.map +1 -0
- package/lib/typescript/module/utils/parser.d.ts +9 -0
- package/lib/typescript/module/utils/parser.d.ts.map +1 -0
- package/lib/typescript/module/utils/pop.d.ts +18 -0
- package/lib/typescript/module/utils/pop.d.ts.map +1 -0
- package/lib/typescript/module/utils/string.d.ts +31 -0
- package/lib/typescript/module/utils/string.d.ts.map +1 -0
- package/lib/typescript/module/utils/x509.d.ts +10 -0
- package/lib/typescript/module/utils/x509.d.ts.map +1 -0
- package/lib/typescript/module/utils/zod.d.ts +17 -0
- package/lib/typescript/module/utils/zod.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance/api/index.d.ts +45 -0
- package/lib/typescript/module/wallet-instance/api/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance/common/wallet-instance.d.ts +6 -0
- package/lib/typescript/module/wallet-instance/common/wallet-instance.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance/index.d.ts +4 -0
- package/lib/typescript/module/wallet-instance/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/wallet-instance/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/wallet-instance/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/api/index.d.ts +47 -0
- package/lib/typescript/module/wallet-instance-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/api/types.d.ts +54 -0
- package/lib/typescript/module/wallet-instance-attestation/api/types.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/common/types.d.ts +47 -0
- package/lib/typescript/module/wallet-instance-attestation/common/types.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/index.d.ts +4 -0
- package/lib/typescript/module/wallet-instance-attestation/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/issuing.d.ts +3 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/mappers.d.ts +91 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/types.d.ts +120 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/utils.d.ts +15 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/index.d.ts +3 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/index.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/issuing.d.ts +3 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/issuing.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/mappers.d.ts +84 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/mappers.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/types.d.ts +59 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/types.d.ts.map +1 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/utils.d.ts +15 -0
- package/lib/typescript/module/wallet-instance-attestation/v1.4.6/utils.d.ts.map +1 -0
- package/package.json +115 -114
- package/src/client/index.ts +1 -1
- package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +1 -1
- package/src/credential/issuance/api/02-start-user-authorization.ts +1 -1
- package/src/credential/issuance/api/03-complete-user-authorization.ts +3 -3
- package/src/credential/issuance/api/04-authorize-access.ts +1 -1
- package/src/credential/issuance/api/05-obtain-credential.ts +2 -2
- package/src/credential/issuance/api/IssuerConfig.ts +9 -3
- package/src/credential/issuance/api/mrtd-pop/index.ts +2 -2
- package/src/credential/issuance/common/errors.ts +2 -2
- package/src/credential/issuance/v1.4.6/05-obtain-credential.ts +1 -1
- package/src/credential/issuance/v1.4.6/mappers.ts +1 -0
- package/src/credential/offer/api/01-resolve-credential-offer.ts +1 -1
- package/src/credential/offer/common/errors.ts +2 -2
- 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/07-send-authorization-response.ts +1 -1
- package/src/credential/presentation/common/errors.ts +6 -6
- package/src/credential/presentation/v1.4.6/sdkErrorMapper.ts +6 -4
- package/src/credential/status/api/status-assertion.ts +1 -1
- package/src/credential/status/api/status-list.ts +2 -2
- package/src/credential/status/v1.4.6/01-status-list.ts +1 -1
- package/src/credentials-catalogue/api/index.ts +1 -1
- package/src/credentials-catalogue/v1.4.6/utils.ts +2 -2
- package/src/key-attestation/api/index.ts +7 -1
- package/src/sd-jwt/utils.ts +1 -1
- package/src/trust/api/index.ts +3 -3
- package/src/trust/common/build-chain.ts +1 -1
- package/src/trust/common/errors.ts +10 -10
- package/src/trust/common/utils.ts +1 -1
- package/src/trust/common/verify-chain.ts +1 -1
- package/src/utils/errors.ts +7 -7
- package/src/utils/par.ts +1 -1
- package/src/wallet-instance/api/index.ts +4 -4
- package/src/wallet-instance-attestation/api/index.ts +7 -1
- package/lib/commonjs/sd-jwt/__test__/types.test.js +0 -32
- package/lib/commonjs/sd-jwt/__test__/types.test.js.map +0 -1
- package/lib/commonjs/sd-jwt/__test__/utils.test.js +0 -16
- package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +0 -1
- package/lib/module/sd-jwt/__test__/types.test.js +0 -30
- package/lib/module/sd-jwt/__test__/types.test.js.map +0 -1
- package/lib/module/sd-jwt/__test__/utils.test.js +0 -14
- package/lib/module/sd-jwt/__test__/utils.test.js.map +0 -1
- package/lib/typescript/IoWallet.d.ts.map +0 -1
- package/lib/typescript/api/index.d.ts.map +0 -1
- package/lib/typescript/client/generated/wallet-provider.d.ts.map +0 -1
- package/lib/typescript/client/index.d.ts +0 -13
- package/lib/typescript/client/index.d.ts.map +0 -1
- package/lib/typescript/credential/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/01-evaluate-issuer-trust.d.ts +0 -22
- package/lib/typescript/credential/issuance/api/01-evaluate-issuer-trust.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +0 -53
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +0 -97
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +0 -33
- package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +0 -58
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +0 -89
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +0 -74
- package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/api/types.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/common/errors.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +0 -306
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/02-start-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/03-complete-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/04-authorize-access.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/05-obtain-credential.d.ts +0 -26
- package/lib/typescript/credential/issuance/v1.4.6/05-obtain-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/06-verify-and-parse-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/mappers.d.ts +0 -1783
- package/lib/typescript/credential/issuance/v1.4.6/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/v1.4.6/types.d.ts.map +0 -1
- package/lib/typescript/credential/offer/api/01-resolve-credential-offer.d.ts +0 -22
- package/lib/typescript/credential/offer/api/01-resolve-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/api/02-extract-grant-details.d.ts.map +0 -1
- package/lib/typescript/credential/offer/api/03-validate-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/api/index.d.ts.map +0 -1
- package/lib/typescript/credential/offer/api/types.d.ts.map +0 -1
- package/lib/typescript/credential/offer/common/errors.d.ts.map +0 -1
- package/lib/typescript/credential/offer/index.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.4.6/01-resolve-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.4.6/02-extract-grant-details.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.4.6/03-validate-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/02-evaluate-rp-trust.d.ts +0 -18
- package/lib/typescript/credential/presentation/api/02-evaluate-rp-trust.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/03-get-request-object.d.ts +0 -19
- package/lib/typescript/credential/presentation/api/03-get-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/06-evaluate-dcql-query.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +0 -54
- package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/index.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/api/types.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/common/errors.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/common/utils/mdoc.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/index.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/06-evaluate-dcql-query.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/02-evaluate-rp-trust.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/03-get-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/04-verify-certificate-chain.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/06-evaluate-dcql-query.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/sdkErrorMapper.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/v1.4.6/types.d.ts.map +0 -1
- package/lib/typescript/credential/status/api/index.d.ts.map +0 -1
- package/lib/typescript/credential/status/api/status-assertion.d.ts +0 -49
- package/lib/typescript/credential/status/api/status-assertion.d.ts.map +0 -1
- package/lib/typescript/credential/status/api/status-list.d.ts +0 -75
- package/lib/typescript/credential/status/api/status-list.d.ts.map +0 -1
- package/lib/typescript/credential/status/api/types.d.ts.map +0 -1
- package/lib/typescript/credential/status/index.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.4.6/01-status-list.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.4.6/02-verify-and-parse-status-list.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.4.6/03-get-status.d.ts.map +0 -1
- package/lib/typescript/credential/status/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/api/index.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/index.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/v1.4.6/get-credential-trustmark.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/api/index.d.ts +0 -51
- package/lib/typescript/credentials-catalogue/api/index.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/index.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/fetch-and-parse-catalogue.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/fetch-translations.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/mappers.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/types.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/v1.4.6/utils.d.ts +0 -37
- package/lib/typescript/credentials-catalogue/v1.4.6/utils.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/key-attestation/api/index.d.ts +0 -39
- package/lib/typescript/key-attestation/api/index.d.ts.map +0 -1
- package/lib/typescript/key-attestation/api/types.d.ts.map +0 -1
- package/lib/typescript/key-attestation/index.d.ts.map +0 -1
- package/lib/typescript/key-attestation/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/key-attestation/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/key-attestation/v1.4.6/issuing.d.ts.map +0 -1
- package/lib/typescript/key-attestation/v1.4.6/mappers.d.ts.map +0 -1
- package/lib/typescript/key-attestation/v1.4.6/types.d.ts.map +0 -1
- package/lib/typescript/key-attestation/v1.4.6/utils.d.ts.map +0 -1
- package/lib/typescript/mdoc/const.d.ts.map +0 -1
- package/lib/typescript/mdoc/converter.d.ts.map +0 -1
- package/lib/typescript/mdoc/index.d.ts.map +0 -1
- package/lib/typescript/mdoc/utils.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/__test__/types.test.d.ts +0 -2
- package/lib/typescript/sd-jwt/__test__/types.test.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/__test__/utils.test.d.ts +0 -2
- package/lib/typescript/sd-jwt/__test__/utils.test.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/index.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/types.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/utils.d.ts +0 -19
- package/lib/typescript/sd-jwt/utils.d.ts.map +0 -1
- package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +0 -1
- package/lib/typescript/trust/api/index.d.ts +0 -43
- package/lib/typescript/trust/api/index.d.ts.map +0 -1
- package/lib/typescript/trust/common/build-chain.d.ts +0 -21
- package/lib/typescript/trust/common/build-chain.d.ts.map +0 -1
- package/lib/typescript/trust/common/errors.d.ts.map +0 -1
- package/lib/typescript/trust/common/types.d.ts.map +0 -1
- package/lib/typescript/trust/common/utils.d.ts +0 -53
- package/lib/typescript/trust/common/utils.d.ts.map +0 -1
- package/lib/typescript/trust/common/verify-chain.d.ts.map +0 -1
- package/lib/typescript/trust/index.d.ts.map +0 -1
- package/lib/typescript/trust/v1.0.0/build-chain.d.ts +0 -2
- package/lib/typescript/trust/v1.0.0/build-chain.d.ts.map +0 -1
- package/lib/typescript/trust/v1.0.0/entities.d.ts.map +0 -1
- package/lib/typescript/trust/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +0 -1
- package/lib/typescript/trust/v1.0.0/types.d.ts.map +0 -1
- package/lib/typescript/trust/v1.0.0/verify-chain.d.ts +0 -5
- package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +0 -1
- package/lib/typescript/trust/v1.4.6/entities.d.ts.map +0 -1
- package/lib/typescript/trust/v1.4.6/types.d.ts +0 -942
- package/lib/typescript/trust/v1.4.6/types.d.ts.map +0 -1
- package/lib/typescript/utils/auth.d.ts.map +0 -1
- package/lib/typescript/utils/callbacks.d.ts.map +0 -1
- package/lib/typescript/utils/config.d.ts.map +0 -1
- package/lib/typescript/utils/credentials.d.ts.map +0 -1
- package/lib/typescript/utils/crypto.d.ts.map +0 -1
- package/lib/typescript/utils/decoder.d.ts.map +0 -1
- package/lib/typescript/utils/dpop.d.ts.map +0 -1
- package/lib/typescript/utils/error-codes.d.ts.map +0 -1
- package/lib/typescript/utils/errors.d.ts.map +0 -1
- package/lib/typescript/utils/integrity.d.ts.map +0 -1
- package/lib/typescript/utils/jwk.d.ts.map +0 -1
- package/lib/typescript/utils/logging.d.ts.map +0 -1
- package/lib/typescript/utils/mappers.d.ts.map +0 -1
- package/lib/typescript/utils/misc.d.ts.map +0 -1
- package/lib/typescript/utils/object.d.ts.map +0 -1
- package/lib/typescript/utils/par.d.ts +0 -50
- package/lib/typescript/utils/par.d.ts.map +0 -1
- package/lib/typescript/utils/parser.d.ts.map +0 -1
- package/lib/typescript/utils/pop.d.ts.map +0 -1
- package/lib/typescript/utils/string.d.ts.map +0 -1
- package/lib/typescript/utils/x509.d.ts.map +0 -1
- package/lib/typescript/utils/zod.d.ts.map +0 -1
- package/lib/typescript/wallet-instance/api/index.d.ts +0 -45
- package/lib/typescript/wallet-instance/api/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +0 -1
- package/lib/typescript/wallet-instance/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/api/index.d.ts +0 -46
- package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.4.6/index.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.4.6/issuing.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.4.6/mappers.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.4.6/types.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/v1.4.6/utils.d.ts.map +0 -1
- package/src/sd-jwt/__test__/types.test.ts +0 -37
- package/src/sd-jwt/__test__/utils.test.ts +0 -15
- /package/lib/typescript/{IoWallet.d.ts → commonjs/IoWallet.d.ts} +0 -0
- /package/lib/typescript/{api → commonjs/api}/index.d.ts +0 -0
- /package/lib/typescript/{client → commonjs/client}/generated/wallet-provider.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/api/06-verify-and-parse-credential.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/api/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/api/mrtd-pop/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/api/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/common/02-start-user-authorization.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/common/06-verify-and-parse-credential.mdoc.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/common/errors.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/mrtd-pop/02-init-challenge.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/mrtd-pop/03-validate-challenge.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/mrtd-pop/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/02-start-user-authorization.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/03-complete-user-authorization.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/04-authorize-access.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/05-obtain-credential.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/06-verify-and-parse-credential.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.0.0/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/01-evaluate-issuer-trust.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/02-start-user-authorization.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/03-complete-user-authorization.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/04-authorize-access.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/06-verify-and-parse-credential.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/issuance/v1.4.6/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/api/02-extract-grant-details.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/api/03-validate-credential-offer.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/api/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/api/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/common/errors.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/v1.4.6/01-resolve-credential-offer.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/v1.4.6/02-extract-grant-details.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/v1.4.6/03-validate-credential-offer.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/offer/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/01-start-flow.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/04-verify-certificate-chain.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/05-verify-request-object.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/06-evaluate-dcql-query.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/RelyingPartyConfig.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/api/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/common/errors.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/common/utils/dcql.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/common/utils/http.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/common/utils/mdoc.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/common/utils/sd-jwt.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/01-start-flow.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/02-evaluate-rp-trust.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/03-get-request-object.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/05-verify-request-object.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/06-evaluate-dcql-query.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/07-send-authorization-response.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/mappers.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/utils.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.0.0/utils.jwks.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/01-start-flow.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/02-evaluate-rp-trust.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/03-get-request-object.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/04-verify-certificate-chain.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/05-verify-request-object.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/06-evaluate-dcql-query.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/07-send-authorization-response.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/mappers.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/sdkErrorMapper.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/presentation/v1.4.6/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/api/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/api/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.0.0/01-status-assertion.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.0.0/mappers.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.0.0/types.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.4.6/01-status-list.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.4.6/02-verify-and-parse-status-list.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.4.6/03-get-status.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/status/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/trustmark/api/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/trustmark/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/trustmark/v1.0.0/get-credential-trustmark.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/trustmark/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/trustmark/v1.4.6/get-credential-trustmark.d.ts +0 -0
- /package/lib/typescript/{credential → commonjs/credential}/trustmark/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/api/DigitalCredentialsCatalogue.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/common/get-status-l10n-ids.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/index.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.0.0/fetch-and-parse-catalogue.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.0.0/mappers.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.0.0/types.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.4.6/fetch-and-parse-catalogue.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.4.6/fetch-translations.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.4.6/mappers.d.ts +0 -0
- /package/lib/typescript/{credentials-catalogue → commonjs/credentials-catalogue}/v1.4.6/types.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → commonjs/index.d.ts} +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/api/types.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/index.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/v1.4.6/issuing.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/v1.4.6/mappers.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/v1.4.6/types.d.ts +0 -0
- /package/lib/typescript/{key-attestation → commonjs/key-attestation}/v1.4.6/utils.d.ts +0 -0
- /package/lib/typescript/{mdoc → commonjs/mdoc}/const.d.ts +0 -0
- /package/lib/typescript/{mdoc → commonjs/mdoc}/converter.d.ts +0 -0
- /package/lib/typescript/{mdoc → commonjs/mdoc}/index.d.ts +0 -0
- /package/lib/typescript/{mdoc → commonjs/mdoc}/utils.d.ts +0 -0
- /package/lib/typescript/{sd-jwt → commonjs/sd-jwt}/index.d.ts +0 -0
- /package/lib/typescript/{sd-jwt → commonjs/sd-jwt}/types.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/api/TrustAnchorConfig.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/common/errors.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/common/types.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/common/verify-chain.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/index.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/v1.0.0/entities.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/v1.0.0/mappers.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/v1.0.0/types.d.ts +0 -0
- /package/lib/typescript/{trust → commonjs/trust}/v1.4.6/entities.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/auth.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/callbacks.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/config.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/credentials.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/crypto.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/decoder.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/dpop.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/error-codes.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/errors.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/integrity.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/jwk.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/logging.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/mappers.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/misc.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/object.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/parser.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/pop.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/string.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/x509.d.ts +0 -0
- /package/lib/typescript/{utils → commonjs/utils}/zod.d.ts +0 -0
- /package/lib/typescript/{wallet-instance → commonjs/wallet-instance}/common/wallet-instance.d.ts +0 -0
- /package/lib/typescript/{wallet-instance → commonjs/wallet-instance}/index.d.ts +0 -0
- /package/lib/typescript/{wallet-instance → commonjs/wallet-instance}/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{wallet-instance → commonjs/wallet-instance}/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/api/types.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/common/types.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/index.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.0.0/index.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.0.0/issuing.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.0.0/mappers.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.0.0/types.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.0.0/utils.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.4.6/index.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.4.6/issuing.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.4.6/mappers.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.4.6/types.d.ts +0 -0
- /package/lib/typescript/{wallet-instance-attestation → commonjs/wallet-instance-attestation}/v1.4.6/utils.d.ts +0 -0
package/lib/module/mdoc/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { CBOR, COSE, ISO18013_7 } from "@pagopa/io-react-native-iso18013";
|
|
2
4
|
import { removePadding } from "@pagopa/io-react-native-jwt";
|
|
3
5
|
import { b64utob64 } from "jsrsasign";
|
|
4
|
-
import { MissingX509CertsError } from "../trust/common/errors";
|
|
5
|
-
import { convertBase64DerToPem, getSigninJwkFromCert } from "../utils/crypto";
|
|
6
|
-
import { IoWalletError } from "../utils/errors";
|
|
7
|
-
import { verifyX509Chain } from "../utils/x509";
|
|
8
|
-
export * from "./utils";
|
|
6
|
+
import { MissingX509CertsError } from "../trust/common/errors.js";
|
|
7
|
+
import { convertBase64DerToPem, getSigninJwkFromCert } from "../utils/crypto.js";
|
|
8
|
+
import { IoWalletError } from "../utils/errors.js";
|
|
9
|
+
import { verifyX509Chain } from "../utils/x509.js";
|
|
10
|
+
export * from "./utils.js";
|
|
9
11
|
export const verify = async (token, x509CertRoot) => {
|
|
10
|
-
var _issuerSigned$issuerA;
|
|
11
12
|
// get decoded data
|
|
12
13
|
const issuerSigned = await CBOR.decodeIssuerSigned(token);
|
|
13
14
|
if (!issuerSigned) {
|
|
14
15
|
throw new IoWalletError("Invalid mDoc");
|
|
15
16
|
}
|
|
16
|
-
if (!
|
|
17
|
+
if (!issuerSigned.issuerAuth.unprotectedHeader?.x5chain && (!Array.isArray(issuerSigned.issuerAuth.unprotectedHeader.x5chain) || issuerSigned.issuerAuth.unprotectedHeader.x5chain.length === 0)) {
|
|
17
18
|
throw new MissingX509CertsError("Missing x509 certificates");
|
|
18
19
|
}
|
|
19
20
|
const x5chain = issuerSigned.issuerAuth.unprotectedHeader.x5chain.map(b64utob64);
|
|
@@ -53,8 +54,7 @@ const verifyMdocSignature = async (coseSign1, cert) => {
|
|
|
53
54
|
const signatureCorrect = await COSE.verify(coseSign1, jwk);
|
|
54
55
|
if (!signatureCorrect) throw new Error("Invalid mDoc signature");
|
|
55
56
|
};
|
|
56
|
-
export const prepareVpTokenMdoc = async (requestNonce, generatedNonce, clientId, responseUri, docType, keyTag,
|
|
57
|
-
let [verifiableCredential, presentationFrame] = _ref;
|
|
57
|
+
export const prepareVpTokenMdoc = async (requestNonce, generatedNonce, clientId, responseUri, docType, keyTag, [verifiableCredential, presentationFrame]) => {
|
|
58
58
|
/* verifiableCredential is a IssuerSigned structure */
|
|
59
59
|
const documents = [{
|
|
60
60
|
alias: keyTag,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CBOR","COSE","ISO18013_7","removePadding","b64utob64","MissingX509CertsError","convertBase64DerToPem","getSigninJwkFromCert","IoWalletError","verifyX509Chain","verify","token","x509CertRoot","
|
|
1
|
+
{"version":3,"names":["CBOR","COSE","ISO18013_7","removePadding","b64utob64","MissingX509CertsError","convertBase64DerToPem","getSigninJwkFromCert","IoWalletError","verifyX509Chain","verify","token","x509CertRoot","issuerSigned","decodeIssuerSigned","issuerAuth","unprotectedHeader","x5chain","Array","isArray","length","map","coseSign1","rawValue","firstCert","verifyMdocSignature","cert","pemcert","jwk","x","y","signatureCorrect","Error","prepareVpTokenMdoc","requestNonce","generatedNonce","clientId","responseUri","docType","keyTag","verifiableCredential","presentationFrame","documents","alias","issuerSignedContent","vp_token","generateOID4VPDeviceResponse"],"sourceRoot":"../../../src","sources":["mdoc/index.ts"],"mappings":"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","ignoreList":[]}
|
package/lib/module/mdoc/utils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { CBOR } from "@pagopa/io-react-native-iso18013";
|
|
2
|
-
import { Verification } from "../sd-jwt/types";
|
|
3
|
-
import { MDOC_VERIFICATION_IDENTIFIER } from "./const";
|
|
4
|
+
import { Verification } from "../sd-jwt/types.js";
|
|
5
|
+
import { MDOC_VERIFICATION_IDENTIFIER } from "./const.js";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* @param namespace The mdoc credential `namespace`
|
|
@@ -18,9 +20,8 @@ export const getParsedCredentialClaimKey = (namespace, key) => `${namespace}:${k
|
|
|
18
20
|
* @returns The verification claim or undefined if it wasn't found
|
|
19
21
|
*/
|
|
20
22
|
export const getVerificationFromParsedCredential = parsedCredential => {
|
|
21
|
-
var _parsedCredential$ver;
|
|
22
23
|
const verificationKey = Object.keys(parsedCredential).find(key => key.endsWith(MDOC_VERIFICATION_IDENTIFIER));
|
|
23
|
-
const verification = verificationKey ?
|
|
24
|
+
const verification = verificationKey ? parsedCredential[verificationKey]?.value : undefined;
|
|
24
25
|
return verification ? Verification.parse(verification) : undefined;
|
|
25
26
|
};
|
|
26
27
|
|
|
@@ -33,10 +34,9 @@ export const getVerificationFromParsedCredential = parsedCredential => {
|
|
|
33
34
|
* @returns The verification claim or undefined if it wasn't found
|
|
34
35
|
*/
|
|
35
36
|
export const getVerification = async token => {
|
|
36
|
-
var _flattenedClaims$find;
|
|
37
37
|
const issuerSigned = await CBOR.decodeIssuerSigned(token);
|
|
38
38
|
const flattenedClaims = Object.values(issuerSigned.nameSpaces).flat();
|
|
39
|
-
const verification = flattenedClaims
|
|
39
|
+
const verification = flattenedClaims?.find(x => x.elementIdentifier === MDOC_VERIFICATION_IDENTIFIER)?.elementValue;
|
|
40
40
|
return verification ? Verification.parse(verification) : undefined;
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CBOR","Verification","MDOC_VERIFICATION_IDENTIFIER","getParsedCredentialClaimKey","namespace","key","getVerificationFromParsedCredential","parsedCredential","
|
|
1
|
+
{"version":3,"names":["CBOR","Verification","MDOC_VERIFICATION_IDENTIFIER","getParsedCredentialClaimKey","namespace","key","getVerificationFromParsedCredential","parsedCredential","verificationKey","Object","keys","find","endsWith","verification","value","undefined","parse","getVerification","token","issuerSigned","decodeIssuerSigned","flattenedClaims","values","nameSpaces","flat","x","elementIdentifier","elementValue"],"sourceRoot":"../../../src","sources":["mdoc/utils.ts"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,kCAAkC;AAKvD,SAASC,YAAY,QAAQ,oBAAiB;AAC9C,SAASC,4BAA4B,QAAQ,YAAS;;AAEtD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,GAAGA,CAACC,SAAiB,EAAEC,GAAW,KACxE,GAAGD,SAAS,IAAIC,GAAG,EAAE;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mCAAmC,GAC9CC,gBAEqB,IAClB;EACH,MAAMC,eAAe,GAAGC,MAAM,CAACC,IAAI,CAACH,gBAAgB,CAAC,CAACI,IAAI,CAAEN,GAAG,IAC7DA,GAAG,CAACO,QAAQ,CAACV,4BAA4B,CAC3C,CAAC;EACD,MAAMW,YAAY,GAAGL,eAAe,GAChCD,gBAAgB,CAACC,eAAe,CAAC,EAAEM,KAAK,GACxCC,SAAS;EACb,OAAOF,YAAY,GAAGZ,YAAY,CAACe,KAAK,CAACH,YAAY,CAAC,GAAGE,SAAS;AACpE,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,eAAe,GAAG,MAAOC,KAAa,IAAK;EACtD,MAAMC,YAAY,GAAG,MAAMnB,IAAI,CAACoB,kBAAkB,CAACF,KAAK,CAAC;EAEzD,MAAMG,eAAe,GAAGZ,MAAM,CAACa,MAAM,CAACH,YAAY,CAACI,UAAU,CAAC,CAACC,IAAI,CAAC,CAAC;EAErE,MAAMX,YAAY,GAAGQ,eAAe,EAAEV,IAAI,CACvCc,CAAC,IAAKA,CAAC,CAACC,iBAAiB,KAAKxB,4BACjC,CAAC,EAAEyB,YAAY;EAEf,OAAOd,YAAY,GAAGZ,YAAY,CAACe,KAAK,CAACH,YAAY,CAAC,GAAGE,SAAS;AACpE,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { sha256ToBase64, SignJWT } from "@pagopa/io-react-native-jwt";
|
|
2
4
|
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
3
5
|
import { decodeSdJwtSync } from "@sd-jwt/decode";
|
|
4
6
|
import { present } from "@sd-jwt/present";
|
|
5
|
-
import { fixLegacyCredentialSdJwt } from "../utils/credentials";
|
|
6
|
-
import { SdJwt4VCBase } from "./types";
|
|
7
|
-
export * from "./utils";
|
|
7
|
+
import { fixLegacyCredentialSdJwt } from "../utils/credentials.js";
|
|
8
|
+
import { SdJwt4VCBase } from "./types.js";
|
|
9
|
+
export * from "./utils.js";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Decode a given SD-JWT with Disclosures to get the parsed SD-JWT object they define.
|
|
@@ -46,8 +48,7 @@ export const decode = token => {
|
|
|
46
48
|
* 2. A KB-JWT is then signed, including sd_hash and `nonce`.
|
|
47
49
|
* 3. The `vp_token` is composed of the disclosed VP and the KB-JWT.
|
|
48
50
|
*/
|
|
49
|
-
export const prepareVpToken = async (nonce, client_id,
|
|
50
|
-
let [verifiableCredential, presentationFrame, cryptoContext] = _ref;
|
|
51
|
+
export const prepareVpToken = async (nonce, client_id, [verifiableCredential, presentationFrame, cryptoContext]) => {
|
|
51
52
|
// Produce a VP token with only requested claims from the verifiable credential
|
|
52
53
|
const vp = await present(fixLegacyCredentialSdJwt(verifiableCredential), presentationFrame, digest);
|
|
53
54
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sha256ToBase64","SignJWT","digest","decodeSdJwtSync","present","fixLegacyCredentialSdJwt","SdJwt4VCBase","decode","token","decoded","sdJwt","parse","header","jwt","payload","disclosures","map","disclosure","salt","key","value","encoded","_digest","prepareVpToken","nonce","client_id","
|
|
1
|
+
{"version":3,"names":["sha256ToBase64","SignJWT","digest","decodeSdJwtSync","present","fixLegacyCredentialSdJwt","SdJwt4VCBase","decode","token","decoded","sdJwt","parse","header","jwt","payload","disclosures","map","disclosure","salt","key","value","encoded","_digest","prepareVpToken","nonce","client_id","verifiableCredential","presentationFrame","cryptoContext","vp","sd_hash","kbJwt","setProtectedHeader","alg","typ","setPayload","setAudience","setIssuedAt","sign","vp_token","join"],"sourceRoot":"../../../src","sources":["sd-jwt/index.ts"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,OAAO,QAAQ,6BAA6B;AACrE,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,eAAe,QAAQ,gBAAgB;AAChD,SAASC,OAAO,QAAQ,iBAAiB;AAIzC,SAASC,wBAAwB,QAAQ,yBAAsB;AAC/D,SAASC,YAAY,QAAQ,YAAS;AAEtC,cAAc,YAAS;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAIC,KAAa,IAAK;EACvC,MAAMC,OAAO,GAAGN,eAAe,CAACE,wBAAwB,CAACG,KAAK,CAAC,EAAEN,MAAM,CAAC;EAExE,MAAMQ,KAAK,GAAGJ,YAAY,CAACK,KAAK,CAAC;IAC/BC,MAAM,EAAEH,OAAO,CAACI,GAAG,CAACD,MAAM;IAC1BE,OAAO,EAAEL,OAAO,CAACI,GAAG,CAACC;EACvB,CAAC,CAAC;EACF,MAAMC,WAAW,GAAGN,OAAO,CAACM,WAAW,CAACC,GAAG,CAAEC,UAAU,KAAM;IAC3DR,OAAO,EAAE,CAACQ,UAAU,CAACC,IAAI,EAAED,UAAU,CAACE,GAAG,EAAEF,UAAU,CAACG,KAAK,CAAC;IAC5DC,OAAO,EAAEJ,UAAU,CAACK;EACtB,CAAC,CAAC,CAAC;EACH,OAAO;IAAEP,WAAW;IAAEL;EAAM,CAAC;AAC/B,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMa,cAAc,GAAG,MAAAA,CAC5BC,KAAa,EACbC,SAAiB,EACjB,CAACC,oBAAoB,EAAEC,iBAAiB,EAAEC,aAAa,CAAe,KAGlE;EACJ;EACA,MAAMC,EAAE,GAAG,MAAMzB,OAAO,CACtBC,wBAAwB,CAACqB,oBAAoB,CAAC,EAC9CC,iBAAiB,EACjBzB,MACF,CAAC;;EAED;EACA,MAAM4B,OAAO,GAAG,MAAM9B,cAAc,CAAC6B,EAAE,CAAC;EAExC,MAAME,KAAK,GAAG,MAAM,IAAI9B,OAAO,CAAC2B,aAAa,CAAC,CAC3CI,kBAAkB,CAAC;IAClBC,GAAG,EAAE,OAAO;IACZC,GAAG,EAAE;EACP,CAAC,CAAC,CACDC,UAAU,CAAC;IACVX,KAAK,EAAEA,KAAK;IACZM;EACF,CAAC,CAAC,CACDM,WAAW,CAACX,SAAS,CAAC,CACtBY,WAAW,CAAC,CAAC,CACbC,IAAI,CAAC,CAAC;EACT;EACA,MAAMC,QAAQ,GAAG,CAACV,EAAE,EAAEE,KAAK,CAAC,CAACS,IAAI,CAAC,EAAE,CAAC;EAErC,OAAO;IAAED;EAAS,CAAC;AACrB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { z } from "zod";
|
|
2
|
-
import { JWK } from "../utils/jwk";
|
|
3
|
-
import { UnixTime } from "../utils/zod";
|
|
4
|
+
import { JWK } from "../utils/jwk.js";
|
|
5
|
+
import { UnixTime } from "../utils/zod.js";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* For backward compatibility reasons it is still necessary to support the legacy SD-JWT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","JWK","UnixTime","LEGACY_SD_JWT","StatusAssertion","object","credential_hash_alg","literal","StatusList","idx","number","uri","string","SdJwt4VCBase","header","alg","kid","trust_chain","array","optional","typ","enum","vctm","x5c","payload","_sd","_sd_alg","cnf","jwk","exp","iat","iss","status","union","status_list","status_assertion","sub","vct","Verification","assurance_level","trust_framework","TypeMetadata","data_source","authentic_source","contacts","homepage_uri","url","logo_uri","organization_code","organization_name","description","name"],"sourceRoot":"../../../src","sources":["sd-jwt/types.ts"],"mappings":"AAAA,SAASA,CAAC,QAAQ,KAAK;AAEvB,SAASC,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"names":["z","JWK","UnixTime","LEGACY_SD_JWT","StatusAssertion","object","credential_hash_alg","literal","StatusList","idx","number","uri","string","SdJwt4VCBase","header","alg","kid","trust_chain","array","optional","typ","enum","vctm","x5c","payload","_sd","_sd_alg","cnf","jwk","exp","iat","iss","status","union","status_list","status_assertion","sub","vct","Verification","assurance_level","trust_framework","TypeMetadata","data_source","authentic_source","contacts","homepage_uri","url","logo_uri","organization_code","organization_name","description","name"],"sourceRoot":"../../../src","sources":["sd-jwt/types.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { sha256ToBase64 } from "@pagopa/io-react-native-jwt";
|
|
2
4
|
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
3
5
|
import { decodeSdJwtSync, getClaimsSync } from "@sd-jwt/decode";
|
|
4
|
-
import { fixLegacyCredentialSdJwt } from "../utils/credentials";
|
|
5
|
-
import { IoWalletError, IssuerResponseError, ValidationFailed } from "../utils/errors";
|
|
6
|
-
import { hasStatusOrThrow } from "../utils/misc";
|
|
7
|
-
import { TypeMetadata, Verification } from "./types";
|
|
6
|
+
import { fixLegacyCredentialSdJwt } from "../utils/credentials.js";
|
|
7
|
+
import { IoWalletError, IssuerResponseError, ValidationFailed } from "../utils/errors.js";
|
|
8
|
+
import { hasStatusOrThrow } from "../utils/misc.js";
|
|
9
|
+
import { TypeMetadata, Verification } from "./types.js";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Retrieve the Type Metadata for a credential and verify its integrity.
|
|
@@ -14,8 +16,7 @@ import { TypeMetadata, Verification } from "./types";
|
|
|
14
16
|
* @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
|
|
15
17
|
* @returns The credential metadata {@link TypeMetadata}
|
|
16
18
|
*/
|
|
17
|
-
export const fetchTypeMetadata = async
|
|
18
|
-
let context = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
19
|
+
export const fetchTypeMetadata = async (issuerUrl, vct, vctIntegrity, context = {}) => {
|
|
19
20
|
const {
|
|
20
21
|
appFetch = fetch
|
|
21
22
|
} = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["sha256ToBase64","digest","decodeSdJwtSync","getClaimsSync","fixLegacyCredentialSdJwt","IoWalletError","IssuerResponseError","ValidationFailed","hasStatusOrThrow","TypeMetadata","Verification","fetchTypeMetadata","issuerUrl","vct","vctIntegrity","context","
|
|
1
|
+
{"version":3,"names":["sha256ToBase64","digest","decodeSdJwtSync","getClaimsSync","fixLegacyCredentialSdJwt","IoWalletError","IssuerResponseError","ValidationFailed","hasStatusOrThrow","TypeMetadata","Verification","fetchTypeMetadata","issuerUrl","vct","vctIntegrity","context","appFetch","fetch","url","URL","searchParams","append","metadata","toString","headers","then","res","json","parse","alg","hash","split","metadataHash","JSON","stringify","message","reason","getVerification","credentialSdJwt","decoded","claims","jwt","payload","disclosures","verification","undefined"],"sourceRoot":"../../../src","sources":["sd-jwt/utils.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,eAAe,EAAEC,aAAa,QAAQ,gBAAgB;AAE/D,SAASC,wBAAwB,QAAQ,yBAAsB;AAC/D,SACEC,aAAa,EACbC,mBAAmB,EACnBC,gBAAgB,QACX,oBAAiB;AACxB,SAASC,gBAAgB,QAAQ,kBAAe;AAChD,SAASC,YAAY,EAAEC,YAAY,QAAQ,YAAS;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAAAA,CAC/BC,SAAiB,EACjBC,GAAW,EACXC,YAAoB,EACpBC,OAEC,GAAG,CAAC,CAAC,KACoB;EAC1B,MAAM;IAAEC,QAAQ,GAAGC;EAAM,CAAC,GAAGF,OAAO;EAEpC,MAAMG,GAAG,GAAG,IAAIC,GAAG,CAAC,4BAA4B,EAAEP,SAAS,CAAC;EAC5DM,GAAG,CAACE,YAAY,CAACC,MAAM,CAAC,KAAK,EAAER,GAAG,CAAC;EAEnC,MAAMS,QAAQ,GAAG,MAAMN,QAAQ,CAACE,GAAG,CAACK,QAAQ,CAAC,CAAC,EAAE;IAC9CC,OAAO,EAAE;MACP,cAAc,EAAE;IAClB;EACF,CAAC,CAAC,CACCC,IAAI,CAACjB,gBAAgB,CAAC,GAAG,EAAEF,mBAAmB,CAAC,CAAC,CAChDmB,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACC,IAAI,CAAC,CAAC,CAAC,CACzBF,IAAI,CAAChB,YAAY,CAACmB,KAAK,CAAC;EAE3B,MAAM,CAACC,GAAG,EAAEC,IAAI,CAAC,GAAGhB,YAAY,CAACiB,KAAK,CAAC,QAAQ,CAAC;EAEhD,IAAIF,GAAG,KAAK,QAAQ,EAAE;IACpB,MAAM,IAAIxB,aAAa,CAAC,GAAGwB,GAAG,6BAA6B,CAAC;EAC9D;;EAEA;EACA,MAAMG,YAAY,GAAG,MAAMhC,cAAc,CAACiC,IAAI,CAACC,SAAS,CAACZ,QAAQ,CAAC,CAAC;EAEnE,IAAIU,YAAY,KAAKF,IAAI,EAAE;IACzB,MAAM,IAAIvB,gBAAgB,CAAC;MACzB4B,OAAO,EAAE,gCAAgC;MACzCC,MAAM,EAAE;IACV,CAAC,CAAC;EACJ;EAEA,OAAOd,QAAQ;AACjB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMe,eAAe,GAC1BC,eAAuB,IACM;EAC7B,MAAMC,OAAO,GAAGrC,eAAe,CAC7BE,wBAAwB,CAACkC,eAAe,CAAC,EACzCrC,MACF,CAAC;EAED,MAAMuC,MAAM,GAAGrC,aAAa,CAC1BoC,OAAO,CAACE,GAAG,CAACC,OAAO,EACnBH,OAAO,CAACI,WAAW,EACnB1C,MACF,CAAC;EAED,OAAOuC,MAAM,CAACI,YAAY,GACtBlC,YAAY,CAACkB,KAAK,CAACY,MAAM,CAACI,YAAY,CAAC,GACvCC,SAAS;AACf,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import * as z from "zod";
|
|
2
|
-
import { JWK } from "../../utils/jwk";
|
|
3
|
-
import { FederationEntityMetadata } from "../common/types";
|
|
4
|
+
import { JWK } from "../../utils/jwk.js";
|
|
5
|
+
import { FederationEntityMetadata } from "../common/types.js";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Common Trust Anchor configuration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","JWK","FederationEntityMetadata","TrustAnchorConfig","object","federation_entity","jwt","header","alg","string","kid","typ","literal","keys","array"],"sourceRoot":"../../../../src","sources":["trust/api/TrustAnchorConfig.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AAExB,SAASC,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"names":["z","JWK","FederationEntityMetadata","TrustAnchorConfig","object","federation_entity","jwt","header","alg","string","kid","typ","literal","keys","array"],"sourceRoot":"../../../../src","sources":["trust/api/TrustAnchorConfig.ts"],"mappings":";;AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AAExB,SAASC,GAAG,QAAQ,oBAAiB;AACrC,SAASC,wBAAwB,QAAQ,oBAAiB;;AAE1D;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,iBAAiB,GAAGH,CAAC,CAACI,MAAM,CAAC;EACxCC,iBAAiB,EAAEH,wBAAwB;EAC3CI,GAAG,EAAEN,CAAC,CAACI,MAAM,CAAC;IACZG,MAAM,EAAEP,CAAC,CAACI,MAAM,CAAC;MACfI,GAAG,EAAER,CAAC,CAACS,MAAM,CAAC,CAAC;MACfC,GAAG,EAAEV,CAAC,CAACS,MAAM,CAAC,CAAC;MACfE,GAAG,EAAEX,CAAC,CAACY,OAAO,CAAC,sBAAsB;IACvC,CAAC;EACH,CAAC,CAAC;EACFC,IAAI,EAAEb,CAAC,CAACc,KAAK,CAACb,GAAG;AACnB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["trust/api/index.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["trust/api/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { BuildTrustChainError, MissingFederationFetchEndpointError, RelyingPartyNotAuthorizedError, TrustAnchorKidMissingError } from "./errors.js";
|
|
4
|
+
import { decode, getFederationList, getSignedEntityConfiguration, getSignedEntityStatement, verify } from "./utils.js";
|
|
3
5
|
/**
|
|
4
6
|
* Factory function to create `buildTrustChain`.
|
|
5
7
|
* @param config Version specific Entity shapes
|
|
6
8
|
* @returns `buildTrustChain` function compliant with the public API
|
|
7
9
|
*/
|
|
8
10
|
export function createBuildTrustChain(config) {
|
|
9
|
-
return async function buildTrustChain(relyingPartyEntityBaseUrl, trustAnchorConfig) {
|
|
10
|
-
let appFetch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : fetch;
|
|
11
|
+
return async function buildTrustChain(relyingPartyEntityBaseUrl, trustAnchorConfig, appFetch = fetch) {
|
|
11
12
|
// 1: Verify if the RP is authorized by the Trust Anchor's federation list
|
|
12
13
|
// Extract the Trust Anchor's signing key and federation_list_endpoint
|
|
13
14
|
// (we assume the TA has only one key, as per spec)
|
|
@@ -51,13 +52,11 @@ export function createBuildTrustChain(config) {
|
|
|
51
52
|
* @param config Version specific Entity shapes
|
|
52
53
|
* @returns `gatherTrustChain` function.
|
|
53
54
|
*/
|
|
54
|
-
export function createGatherTrustChain(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return async function gatherTrustChain(entityBaseUrl, appFetch) {
|
|
60
|
-
let isLeaf = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
55
|
+
export function createGatherTrustChain({
|
|
56
|
+
EntityConfigurationShape,
|
|
57
|
+
EntityStatementShape
|
|
58
|
+
}) {
|
|
59
|
+
return async function gatherTrustChain(entityBaseUrl, appFetch, isLeaf = true) {
|
|
61
60
|
const chain = [];
|
|
62
61
|
|
|
63
62
|
// Fetch self-signed EC (only needed for the leaf)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BuildTrustChainError","MissingFederationFetchEndpointError","RelyingPartyNotAuthorizedError","TrustAnchorKidMissingError","decode","getFederationList","getSignedEntityConfiguration","getSignedEntityStatement","verify","createBuildTrustChain","config","buildTrustChain","relyingPartyEntityBaseUrl","trustAnchorConfig","appFetch","
|
|
1
|
+
{"version":3,"names":["BuildTrustChainError","MissingFederationFetchEndpointError","RelyingPartyNotAuthorizedError","TrustAnchorKidMissingError","decode","getFederationList","getSignedEntityConfiguration","getSignedEntityStatement","verify","createBuildTrustChain","config","buildTrustChain","relyingPartyEntityBaseUrl","trustAnchorConfig","appFetch","fetch","trustAnchorKey","keys","federationListEndpoint","federation_entity","federation_list_endpoint","federationList","includes","relyingPartyUrl","gatherTrustChain","createGatherTrustChain","trustChain","chainTrustAnchorJwt","length","kid","EntityConfigurationShape","EntityStatementShape","entityBaseUrl","isLeaf","chain","entityECJwt","entityEC","parse","push","authorityHints","payload","authority_hints","parentEntityBaseUrl","Error","parentECJwt","parentEC","federationFetchEndpoint","metadata","federation_fetch_endpoint","missingInEntityUrl","entityStatementJwt","parentChain","concat"],"sourceRoot":"../../../../src","sources":["trust/common/build-chain.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
// Ensure this path is correct
|
|
2
4
|
|
|
3
|
-
import { IoWalletError, serializeAttrs } from "../../utils/errors";
|
|
5
|
+
import { IoWalletError, serializeAttrs } from "../../utils/errors.js";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Base class for all federation-specific errors.
|
|
@@ -71,8 +73,7 @@ export class RelyingPartyNotAuthorizedError extends FederationError {
|
|
|
71
73
|
*/
|
|
72
74
|
export class TrustAnchorKidMissingError extends FederationError {
|
|
73
75
|
code = "ERR_FED_TRUST_ANCHOR_KID_MISSING";
|
|
74
|
-
constructor() {
|
|
75
|
-
let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "Missing 'kid' in provided Trust Anchor key.";
|
|
76
|
+
constructor(message = "Missing 'kid' in provided Trust Anchor key.") {
|
|
76
77
|
super(message, undefined);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -82,8 +83,7 @@ export class TrustAnchorKidMissingError extends FederationError {
|
|
|
82
83
|
*/
|
|
83
84
|
export class TrustChainEmptyError extends FederationError {
|
|
84
85
|
code = "ERR_FED_TRUST_CHAIN_EMPTY";
|
|
85
|
-
constructor() {
|
|
86
|
-
let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "Trust chain cannot be empty.";
|
|
86
|
+
constructor(message = "Trust chain cannot be empty.") {
|
|
87
87
|
super(message, undefined);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IoWalletError","serializeAttrs","FederationError","constructor","message","details","name","BuildTrustChainError","code","FederationListParseError","MissingFederationFetchEndpointError","MissingX509CertsError","undefined","RelyingPartyNotAuthorizedError","TrustAnchorKidMissingError","
|
|
1
|
+
{"version":3,"names":["IoWalletError","serializeAttrs","FederationError","constructor","message","details","name","BuildTrustChainError","code","FederationListParseError","MissingFederationFetchEndpointError","MissingX509CertsError","undefined","RelyingPartyNotAuthorizedError","TrustAnchorKidMissingError","TrustChainEmptyError","TrustChainRenewalError","TrustChainTokenMissingError","X509ValidationError"],"sourceRoot":"../../../../src","sources":["trust/common/errors.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import * as z from "zod";
|
|
2
|
-
import { JWK } from "../../utils/jwk";
|
|
3
|
-
import { UnixTime } from "../../utils/zod";
|
|
4
|
+
import { JWK } from "../../utils/jwk.js";
|
|
5
|
+
import { UnixTime } from "../../utils/zod.js";
|
|
4
6
|
export const TrustMark = z.object({
|
|
5
7
|
id: z.string(),
|
|
6
8
|
trust_mark: z.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["z","JWK","UnixTime","TrustMark","object","id","string","trust_mark","EntityStatement","header","alg","kid","typ","literal","payload","exp","number","iat","iss","jwks","keys","array","sub","trust_marks","optional","EntityConfigurationHeader","FederationEntityMetadata","contacts","endpoint_auth_signing_alg_values_supported","federation_fetch_endpoint","federation_historical_keys_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_endpoint","federation_trust_mark_list_endpoint","federation_trust_mark_status_endpoint","homepage_uri","logo_uri","organization_name","policy_uri","loose","BaseEntityConfiguration","authority_hints","metadata","federation_entity","FederationListResponse"],"sourceRoot":"../../../../src","sources":["trust/common/types.ts"],"mappings":"AAAA,OAAO,KAAKA,CAAC,MAAM,KAAK;AAExB,SAASC,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"names":["z","JWK","UnixTime","TrustMark","object","id","string","trust_mark","EntityStatement","header","alg","kid","typ","literal","payload","exp","number","iat","iss","jwks","keys","array","sub","trust_marks","optional","EntityConfigurationHeader","FederationEntityMetadata","contacts","endpoint_auth_signing_alg_values_supported","federation_fetch_endpoint","federation_historical_keys_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_endpoint","federation_trust_mark_list_endpoint","federation_trust_mark_status_endpoint","homepage_uri","logo_uri","organization_name","policy_uri","loose","BaseEntityConfiguration","authority_hints","metadata","federation_entity","FederationListResponse"],"sourceRoot":"../../../../src","sources":["trust/common/types.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { decode as decodeJwt, verify as verifyJwt } from "@pagopa/io-react-native-jwt";
|
|
2
|
-
import { hasStatusOrThrow } from "../../utils/misc";
|
|
3
|
-
import { FederationError, FederationListParseError } from "./errors";
|
|
4
|
-
import { FederationListResponse } from "./types";
|
|
4
|
+
import { hasStatusOrThrow } from "../../utils/misc.js";
|
|
5
|
+
import { FederationError, FederationListParseError } from "./errors.js";
|
|
6
|
+
import { FederationListResponse } from "./types.js";
|
|
5
7
|
// Verify a token signature
|
|
6
8
|
// The kid is extracted from the token header
|
|
7
9
|
export const verify = async (token, kid, jwks) => {
|
|
@@ -43,10 +45,9 @@ export const decode = token => {
|
|
|
43
45
|
* @throws {IoWalletError} If the HTTP request fails.
|
|
44
46
|
* @throws {FederationError} If the result is not in the expected format.
|
|
45
47
|
*/
|
|
46
|
-
export async function getFederationList(federationListEndpoint
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
48
|
+
export async function getFederationList(federationListEndpoint, {
|
|
49
|
+
appFetch = fetch
|
|
50
|
+
} = {}) {
|
|
50
51
|
return await appFetch(federationListEndpoint, {
|
|
51
52
|
method: "GET"
|
|
52
53
|
}).then(hasStatusOrThrow(200)).then(res => res.json()).then(json => {
|
|
@@ -68,10 +69,9 @@ export async function getFederationList(federationListEndpoint) {
|
|
|
68
69
|
* @param appFetch (optional) fetch api implementation
|
|
69
70
|
* @returns The signed Entity Configuration token
|
|
70
71
|
*/
|
|
71
|
-
export async function getSignedEntityConfiguration(entityBaseUrl
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
72
|
+
export async function getSignedEntityConfiguration(entityBaseUrl, {
|
|
73
|
+
appFetch = fetch
|
|
74
|
+
} = {}) {
|
|
75
75
|
const wellKnownUrl = `${entityBaseUrl}/.well-known/openid-federation`;
|
|
76
76
|
return await appFetch(wellKnownUrl, {
|
|
77
77
|
method: "GET"
|
|
@@ -87,10 +87,9 @@ export async function getSignedEntityConfiguration(entityBaseUrl) {
|
|
|
87
87
|
* @returns The signed entity statement token.
|
|
88
88
|
* @throws {IoWalletError} If the http request fails.
|
|
89
89
|
*/
|
|
90
|
-
export async function getSignedEntityStatement(federationFetchEndpoint, subordinatedEntityBaseUrl
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
90
|
+
export async function getSignedEntityStatement(federationFetchEndpoint, subordinatedEntityBaseUrl, {
|
|
91
|
+
appFetch = fetch
|
|
92
|
+
} = {}) {
|
|
94
93
|
const url = new URL(federationFetchEndpoint);
|
|
95
94
|
url.searchParams.set("sub", subordinatedEntityBaseUrl);
|
|
96
95
|
return await appFetch(url.toString(), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["decode","decodeJwt","verify","verifyJwt","hasStatusOrThrow","FederationError","FederationListParseError","FederationListResponse","token","kid","jwks","jwk","find","k","Error","payload","protectedHeader","header","getFederationList","federationListEndpoint","appFetch","fetch","
|
|
1
|
+
{"version":3,"names":["decode","decodeJwt","verify","verifyJwt","hasStatusOrThrow","FederationError","FederationListParseError","FederationListResponse","token","kid","jwks","jwk","find","k","Error","payload","protectedHeader","header","getFederationList","federationListEndpoint","appFetch","fetch","method","then","res","json","result","safeParse","success","error","message","parseError","toString","url","data","getSignedEntityConfiguration","entityBaseUrl","wellKnownUrl","text","getSignedEntityStatement","federationFetchEndpoint","subordinatedEntityBaseUrl","URL","searchParams","set","getTrustAnchorX509Certificate","trustAnchorEntity","taHeaderKid","jwt","taSigningJwk","keys","key","reason","trustAnchorKid","x5c","length"],"sourceRoot":"../../../../src","sources":["trust/common/utils.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { verifyCertificateChain } from "@pagopa/io-react-native-crypto";
|
|
2
|
-
import { FederationError, MissingFederationFetchEndpointError, MissingX509CertsError, TrustChainEmptyError, TrustChainRenewalError, TrustChainTokenMissingError, X509ValidationError } from "./errors";
|
|
3
|
-
import { decode, getTrustAnchorX509Certificate, verify } from "./utils";
|
|
4
|
-
import { getSignedEntityConfiguration, getSignedEntityStatement } from "./utils";
|
|
4
|
+
import { FederationError, MissingFederationFetchEndpointError, MissingX509CertsError, TrustChainEmptyError, TrustChainRenewalError, TrustChainTokenMissingError, X509ValidationError } from "./errors.js";
|
|
5
|
+
import { decode, getTrustAnchorX509Certificate, verify } from "./utils.js";
|
|
6
|
+
import { getSignedEntityConfiguration, getSignedEntityStatement } from "./utils.js";
|
|
5
7
|
/**
|
|
6
8
|
* Factory function to create `verifyTrustChain`.
|
|
7
9
|
* @param config Version specific Entity shapes
|
|
8
10
|
* @returns `verifyTrustChain` function compliant with the public API
|
|
9
11
|
*/
|
|
10
12
|
export function createVerifyTrustChain(config) {
|
|
11
|
-
return async function verifyTrustChain(trustAnchorEntity, chain
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
renewOnFail = true
|
|
20
|
-
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
13
|
+
return async function verifyTrustChain(trustAnchorEntity, chain, x509Options = {
|
|
14
|
+
connectTimeout: 10000,
|
|
15
|
+
readTimeout: 10000,
|
|
16
|
+
requireCrl: true
|
|
17
|
+
}, {
|
|
18
|
+
appFetch = fetch,
|
|
19
|
+
renewOnFail = true
|
|
20
|
+
} = {}) {
|
|
21
21
|
const validateTrustChain = createValidateTrustChain(config);
|
|
22
22
|
const renewTrustChain = createRenewTrustChain(config);
|
|
23
23
|
try {
|
|
@@ -38,11 +38,10 @@ export function createVerifyTrustChain(config) {
|
|
|
38
38
|
* @param config Version specific Entity shapes
|
|
39
39
|
* @returns `renewTrustChain` function
|
|
40
40
|
*/
|
|
41
|
-
function createRenewTrustChain(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} = _ref;
|
|
41
|
+
function createRenewTrustChain({
|
|
42
|
+
EntityConfigurationShape,
|
|
43
|
+
EntityStatementShape
|
|
44
|
+
}) {
|
|
46
45
|
/**
|
|
47
46
|
* Given a trust chain, obtain a new trust chain by fetching each element's fresh version
|
|
48
47
|
*
|
|
@@ -51,8 +50,7 @@ function createRenewTrustChain(_ref) {
|
|
|
51
50
|
* @returns A list of signed token that represent the trust chain, in the same order of the provided chain
|
|
52
51
|
* @throws {FederationError} If the chain is not valid
|
|
53
52
|
*/
|
|
54
|
-
return async function renewTrustChain(chain) {
|
|
55
|
-
let appFetch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : fetch;
|
|
53
|
+
return async function renewTrustChain(chain, appFetch = fetch) {
|
|
56
54
|
return Promise.all(chain.map(async (token, index) => {
|
|
57
55
|
const decoded = decode(token);
|
|
58
56
|
const entityStatementResult = EntityStatementShape.safeParse(decoded);
|
|
@@ -92,12 +90,11 @@ function createRenewTrustChain(_ref) {
|
|
|
92
90
|
* @param config Version specific Entity shapes
|
|
93
91
|
* @returns `validateTrustChain` function compliant with the public API
|
|
94
92
|
*/
|
|
95
|
-
function createValidateTrustChain(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
} = _ref2;
|
|
93
|
+
function createValidateTrustChain({
|
|
94
|
+
FirstElementShape,
|
|
95
|
+
LastElementShape,
|
|
96
|
+
MiddleElementShape
|
|
97
|
+
}) {
|
|
101
98
|
/**
|
|
102
99
|
* Validates a provided trust chain against a known trust anchor, including X.509 certificate checks.
|
|
103
100
|
*
|