@pagopa/io-react-native-wallet 2.5.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -7
- package/lib/commonjs/IoWallet.js +47 -0
- package/lib/commonjs/IoWallet.js.map +1 -0
- package/lib/commonjs/api/index.js +51 -0
- package/lib/commonjs/api/index.js.map +1 -0
- package/lib/commonjs/client/generated/wallet-provider.js +48 -42
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
- package/lib/commonjs/client/index.js +1 -1
- package/lib/commonjs/client/index.js.map +1 -1
- package/lib/commonjs/credential/index.js +1 -9
- package/lib/commonjs/credential/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/README.md +37 -44
- package/lib/commonjs/credential/issuance/api/01-evaluate-issuer-trust.js +6 -0
- package/lib/commonjs/credential/issuance/api/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/02-start-user-authorization.js +6 -0
- package/lib/commonjs/credential/issuance/api/02-start-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/03-complete-user-authorization.js +6 -0
- package/lib/commonjs/credential/issuance/api/03-complete-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/04-authorize-access.js +6 -0
- package/lib/commonjs/credential/issuance/api/04-authorize-access.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/05-obtain-credential.js +6 -0
- package/lib/commonjs/credential/issuance/api/05-obtain-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/06-verify-and-parse-credential.js +6 -0
- package/lib/commonjs/credential/issuance/api/06-verify-and-parse-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js +67 -0
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/index.js +6 -0
- package/lib/commonjs/credential/issuance/api/index.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js +17 -0
- package/lib/commonjs/credential/issuance/api/mrtd-pop/index.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/mrtd-pop/types.js +2 -0
- package/lib/commonjs/credential/issuance/api/mrtd-pop/types.js.map +1 -0
- package/lib/commonjs/credential/issuance/api/types.js +26 -0
- package/lib/commonjs/credential/issuance/api/types.js.map +1 -0
- package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js +55 -0
- package/lib/commonjs/credential/issuance/common/02-start-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +178 -0
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -0
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +183 -0
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -0
- package/lib/commonjs/credential/issuance/common/authorization.js +56 -0
- package/lib/commonjs/credential/issuance/common/authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/common/errors.js +35 -0
- package/lib/commonjs/credential/issuance/common/errors.js.map +1 -0
- package/lib/commonjs/credential/issuance/index.js +8 -68
- package/lib/commonjs/credential/issuance/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +13 -42
- 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 +25 -37
- 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 +24 -46
- package/lib/commonjs/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/index.js +8 -24
- 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 +19 -0
- package/lib/commonjs/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +63 -0
- package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +195 -0
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js +69 -0
- package/lib/commonjs/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +148 -0
- package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js +34 -0
- package/lib/commonjs/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/index.js +28 -0
- package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +28 -0
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/types.js +44 -0
- package/lib/commonjs/credential/issuance/v1.0.0/types.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +24 -0
- package/lib/commonjs/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +92 -0
- package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +187 -0
- package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js +75 -0
- package/lib/commonjs/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +143 -0
- package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js +34 -0
- package/lib/commonjs/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/index.js +28 -0
- package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +73 -0
- package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/types.js +14 -0
- package/lib/commonjs/credential/issuance/v1.3.3/types.js.map +1 -0
- package/lib/commonjs/credential/offer/README.md +103 -119
- package/lib/commonjs/credential/offer/api/01-resolve-credential-offer.js +6 -0
- package/lib/commonjs/credential/offer/api/01-resolve-credential-offer.js.map +1 -0
- package/lib/commonjs/credential/offer/api/02-extract-grant-details.js +6 -0
- package/lib/commonjs/credential/offer/api/02-extract-grant-details.js.map +1 -0
- package/lib/commonjs/credential/offer/api/index.js +17 -0
- package/lib/commonjs/credential/offer/api/index.js.map +1 -0
- package/lib/commonjs/credential/offer/api/types.js +6 -0
- package/lib/commonjs/credential/offer/api/types.js.map +1 -0
- package/lib/commonjs/credential/offer/common/errors.js +22 -0
- package/lib/commonjs/credential/offer/common/errors.js.map +1 -0
- package/lib/commonjs/credential/offer/index.js +7 -7
- package/lib/commonjs/credential/offer/index.js.map +1 -1
- package/lib/commonjs/credential/offer/v1.0.0/index.js +17 -0
- package/lib/commonjs/credential/offer/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js +62 -0
- package/lib/commonjs/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -0
- package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js +25 -0
- package/lib/commonjs/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -0
- package/lib/commonjs/credential/offer/v1.3.3/index.js +14 -0
- package/lib/commonjs/credential/offer/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/credential/presentation/README.md +12 -9
- package/lib/commonjs/credential/presentation/api/01-start-flow.js +6 -0
- package/lib/commonjs/credential/presentation/api/01-start-flow.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/02-evaluate-rp-trust.js +6 -0
- package/lib/commonjs/credential/presentation/api/02-evaluate-rp-trust.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/03-get-request-object.js +6 -0
- package/lib/commonjs/credential/presentation/api/03-get-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/04-verify-request-object.js +6 -0
- package/lib/commonjs/credential/presentation/api/04-verify-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/05-evaluate-dcql-query.js +6 -0
- package/lib/commonjs/credential/presentation/api/05-evaluate-dcql-query.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/06-send-authorization-response.js +6 -0
- package/lib/commonjs/credential/presentation/api/06-send-authorization-response.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js +31 -0
- package/lib/commonjs/credential/presentation/api/RelyingPartyConfig.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/index.js +17 -0
- package/lib/commonjs/credential/presentation/api/index.js.map +1 -0
- package/lib/commonjs/credential/presentation/api/types.js +74 -0
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -0
- package/lib/commonjs/credential/presentation/common/errors.js +121 -0
- package/lib/commonjs/credential/presentation/common/errors.js.map +1 -0
- package/lib/commonjs/credential/presentation/common/utils/dcql.js +164 -0
- package/lib/commonjs/credential/presentation/common/utils/dcql.js.map +1 -0
- package/lib/commonjs/credential/presentation/common/utils/http.js +28 -0
- package/lib/commonjs/credential/presentation/common/utils/http.js.map +1 -0
- package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js +56 -0
- package/lib/commonjs/credential/presentation/common/utils/sd-jwt.js.map +1 -0
- package/lib/commonjs/credential/presentation/common/utils.js +28 -0
- package/lib/commonjs/credential/presentation/common/utils.js.map +1 -0
- package/lib/commonjs/credential/presentation/index.js +7 -80
- package/lib/commonjs/credential/presentation/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js +21 -0
- package/lib/commonjs/credential/presentation/v1.0.0/01-start-flow.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js +21 -0
- package/lib/commonjs/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js +58 -0
- package/lib/commonjs/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/04-verify-request-object.js +86 -0
- package/lib/commonjs/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/05-evaluate-dcql-query.js +85 -0
- package/lib/commonjs/credential/presentation/v1.0.0/05-evaluate-dcql-query.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/06-send-authorization-response.js +165 -0
- package/lib/commonjs/credential/presentation/v1.0.0/06-send-authorization-response.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/index.js +24 -0
- package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +33 -0
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/types.js +46 -0
- package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/utils.js +27 -0
- package/lib/commonjs/credential/presentation/v1.0.0/utils.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js +27 -0
- package/lib/commonjs/credential/presentation/v1.0.0/utils.jwks.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js +23 -0
- package/lib/commonjs/credential/presentation/v1.3.3/01-start-flow.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/02-evaluate-rp-trust.js +22 -0
- package/lib/commonjs/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js +37 -0
- package/lib/commonjs/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js +33 -0
- package/lib/commonjs/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/05-evaluate-dcql-query.js +105 -0
- package/lib/commonjs/credential/presentation/v1.3.3/05-evaluate-dcql-query.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/06-send-authorization-response.js +137 -0
- package/lib/commonjs/credential/presentation/v1.3.3/06-send-authorization-response.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/index.js +24 -0
- package/lib/commonjs/credential/presentation/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +32 -0
- package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js +74 -0
- package/lib/commonjs/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/types.js +19 -0
- package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -0
- package/lib/commonjs/credential/presentation/v1.3.3/utils.mdoc.js +88 -0
- package/lib/commonjs/credential/presentation/v1.3.3/utils.mdoc.js.map +1 -0
- package/lib/commonjs/credential/status/README.md +77 -19
- package/lib/commonjs/credential/status/api/index.js +17 -0
- package/lib/commonjs/credential/status/api/index.js.map +1 -0
- package/lib/commonjs/credential/status/api/status-assertion.js +6 -0
- package/lib/commonjs/credential/status/api/status-assertion.js.map +1 -0
- package/lib/commonjs/credential/status/api/status-list.js +6 -0
- package/lib/commonjs/credential/status/api/status-list.js.map +1 -0
- package/lib/commonjs/credential/status/api/types.js +2 -0
- package/lib/commonjs/credential/status/api/types.js.map +1 -0
- package/lib/commonjs/credential/status/index.js +21 -12
- package/lib/commonjs/credential/status/index.js.map +1 -1
- package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js +71 -0
- package/lib/commonjs/credential/status/v1.0.0/01-status-assertion.js.map +1 -0
- package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +74 -0
- package/lib/commonjs/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -0
- package/lib/commonjs/credential/status/v1.0.0/index.js +20 -0
- package/lib/commonjs/credential/status/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/credential/status/v1.0.0/mappers.js +10 -0
- package/lib/commonjs/credential/status/v1.0.0/mappers.js.map +1 -0
- package/lib/commonjs/credential/status/v1.0.0/types.js +81 -0
- package/lib/commonjs/credential/status/v1.0.0/types.js.map +1 -0
- package/lib/commonjs/credential/status/v1.3.3/01-status-list.js +48 -0
- package/lib/commonjs/credential/status/v1.3.3/01-status-list.js.map +1 -0
- package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js +24 -0
- package/lib/commonjs/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -0
- package/lib/commonjs/credential/status/v1.3.3/index.js +20 -0
- package/lib/commonjs/credential/status/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/credential/trustmark/README.md +5 -1
- package/lib/commonjs/credential/trustmark/api/index.js +6 -0
- package/lib/commonjs/credential/trustmark/api/index.js.map +1 -0
- package/lib/commonjs/credential/trustmark/index.js +10 -3
- package/lib/commonjs/credential/trustmark/index.js.map +1 -1
- package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js +70 -0
- package/lib/commonjs/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -0
- package/lib/commonjs/credential/trustmark/v1.0.0/index.js +12 -0
- package/lib/commonjs/credential/trustmark/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/credential/trustmark/v1.3.3/get-credential-trustmark.js +12 -0
- package/lib/commonjs/credential/trustmark/v1.3.3/get-credential-trustmark.js.map +1 -0
- package/lib/commonjs/credential/trustmark/v1.3.3/index.js +12 -0
- package/lib/commonjs/credential/trustmark/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/README.md +8 -2
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +84 -0
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/api/index.js +6 -0
- package/lib/commonjs/credentials-catalogue/api/index.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/index.js +10 -3
- package/lib/commonjs/credentials-catalogue/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +33 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +12 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js +29 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/mappers.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js +99 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/types.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +47 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +12 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +61 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +156 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js +57 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/utils.js.map +1 -0
- package/lib/commonjs/index.js +21 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mdoc/index.js +22 -3
- package/lib/commonjs/mdoc/index.js.map +1 -1
- package/lib/commonjs/mdoc/utils.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/types.test.js +0 -61
- package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/utils.test.js +3 -12
- package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/index.js +20 -164
- package/lib/commonjs/sd-jwt/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/types.js +26 -50
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/sd-jwt/utils.js +5 -7
- package/lib/commonjs/sd-jwt/utils.js.map +1 -1
- package/lib/commonjs/trust/README.md +24 -11
- package/lib/commonjs/trust/api/TrustAnchorConfig.js +29 -0
- package/lib/commonjs/trust/api/TrustAnchorConfig.js.map +1 -0
- package/lib/commonjs/trust/api/index.js +6 -0
- package/lib/commonjs/trust/api/index.js.map +1 -0
- package/lib/commonjs/trust/common/build-chain.js +118 -0
- package/lib/commonjs/trust/common/build-chain.js.map +1 -0
- package/lib/commonjs/trust/common/errors.js +134 -0
- package/lib/commonjs/trust/common/errors.js.map +1 -0
- package/lib/commonjs/trust/common/types.js +82 -0
- package/lib/commonjs/trust/common/types.js.map +1 -0
- package/lib/commonjs/trust/common/utils.js +139 -0
- package/lib/commonjs/trust/common/utils.js.map +1 -0
- package/lib/commonjs/trust/common/verify-chain.js +193 -0
- package/lib/commonjs/trust/common/verify-chain.js.map +1 -0
- package/lib/commonjs/trust/index.js +9 -8
- package/lib/commonjs/trust/index.js.map +1 -1
- package/lib/commonjs/trust/v1.0.0/build-chain.js +15 -0
- package/lib/commonjs/trust/v1.0.0/build-chain.js.map +1 -0
- package/lib/commonjs/trust/v1.0.0/entities.js +51 -0
- package/lib/commonjs/trust/v1.0.0/entities.js.map +1 -0
- package/lib/commonjs/trust/v1.0.0/index.js +18 -0
- package/lib/commonjs/trust/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/trust/v1.0.0/mappers.js +21 -0
- package/lib/commonjs/trust/v1.0.0/mappers.js.map +1 -0
- package/lib/commonjs/trust/v1.0.0/types.js +159 -0
- package/lib/commonjs/trust/v1.0.0/types.js.map +1 -0
- package/lib/commonjs/trust/v1.0.0/verify-chain.js +19 -0
- package/lib/commonjs/trust/v1.0.0/verify-chain.js.map +1 -0
- package/lib/commonjs/trust/v1.3.3/entities.js +43 -0
- package/lib/commonjs/trust/v1.3.3/entities.js.map +1 -0
- package/lib/commonjs/trust/v1.3.3/types.js +54 -0
- package/lib/commonjs/trust/v1.3.3/types.js.map +1 -0
- package/lib/commonjs/utils/callbacks.js +101 -0
- package/lib/commonjs/utils/callbacks.js.map +1 -0
- package/lib/commonjs/utils/config.js +23 -0
- package/lib/commonjs/utils/config.js.map +1 -0
- package/lib/commonjs/utils/credentials.js +9 -6
- package/lib/commonjs/utils/credentials.js.map +1 -1
- package/lib/commonjs/utils/errors.js +68 -5
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/commonjs/utils/mappers.js +71 -0
- package/lib/commonjs/utils/mappers.js.map +1 -0
- package/lib/commonjs/utils/misc.js +19 -4
- package/lib/commonjs/utils/misc.js.map +1 -1
- package/lib/commonjs/utils/object.js +20 -0
- package/lib/commonjs/utils/object.js.map +1 -0
- package/lib/commonjs/utils/par.js +5 -4
- package/lib/commonjs/utils/par.js.map +1 -1
- package/lib/commonjs/utils/zod.js +3 -1
- package/lib/commonjs/utils/zod.js.map +1 -1
- package/lib/commonjs/wallet-instance/README.md +8 -5
- package/lib/commonjs/wallet-instance/api/index.js +6 -0
- package/lib/commonjs/wallet-instance/api/index.js.map +1 -0
- package/lib/commonjs/wallet-instance/common/wallet-instance.js +75 -0
- package/lib/commonjs/wallet-instance/common/wallet-instance.js.map +1 -0
- package/lib/commonjs/wallet-instance/index.js +13 -81
- package/lib/commonjs/wallet-instance/index.js.map +1 -1
- package/lib/commonjs/wallet-instance/v1.0.0/index.js +15 -0
- package/lib/commonjs/wallet-instance/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/wallet-instance/v1.3.3/index.js +15 -0
- package/lib/commonjs/wallet-instance/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/README.md +8 -2
- package/lib/commonjs/wallet-instance-attestation/api/index.js +6 -0
- package/lib/commonjs/wallet-instance-attestation/api/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/api/types.js +30 -0
- package/lib/commonjs/wallet-instance-attestation/api/types.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/common/types.js +34 -0
- package/lib/commonjs/wallet-instance-attestation/common/types.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/index.js +10 -53
- package/lib/commonjs/wallet-instance-attestation/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js +17 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js +106 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js +19 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js +46 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/types.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js +37 -0
- package/lib/commonjs/wallet-instance-attestation/v1.0.0/utils.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js +19 -0
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/index.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js +12 -0
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -0
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js +42 -0
- package/lib/commonjs/wallet-instance-attestation/v1.3.3/types.js.map +1 -0
- package/lib/module/IoWallet.js +40 -0
- package/lib/module/IoWallet.js.map +1 -0
- package/lib/module/api/index.js +43 -0
- package/lib/module/api/index.js.map +1 -0
- package/lib/module/client/generated/wallet-provider.js +37 -31
- package/lib/module/client/generated/wallet-provider.js.map +1 -1
- package/lib/module/client/index.js +2 -2
- package/lib/module/client/index.js.map +1 -1
- package/lib/module/credential/index.js +1 -5
- package/lib/module/credential/index.js.map +1 -1
- package/lib/module/credential/issuance/README.md +37 -44
- 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 -0
- 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 -0
- 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 -0
- package/lib/module/credential/issuance/api/04-authorize-access.js +2 -0
- package/lib/module/credential/issuance/api/04-authorize-access.js.map +1 -0
- package/lib/module/credential/issuance/api/05-obtain-credential.js +2 -0
- package/lib/module/credential/issuance/api/05-obtain-credential.js.map +1 -0
- 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 -0
- package/lib/module/credential/issuance/api/IssuerConfig.js +60 -0
- package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -0
- package/lib/module/credential/issuance/api/index.js +2 -0
- package/lib/module/credential/issuance/api/index.js.map +1 -0
- package/lib/module/credential/issuance/api/mrtd-pop/index.js +3 -0
- package/lib/module/credential/issuance/api/mrtd-pop/index.js.map +1 -0
- package/lib/module/credential/issuance/api/mrtd-pop/types.js +2 -0
- package/lib/module/credential/issuance/api/mrtd-pop/types.js.map +1 -0
- package/lib/module/credential/issuance/api/types.js +17 -0
- package/lib/module/credential/issuance/api/types.js.map +1 -0
- package/lib/module/credential/issuance/common/02-start-user-authorization.js +47 -0
- package/lib/module/credential/issuance/common/02-start-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js +171 -0
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.mdoc.js.map +1 -0
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +176 -0
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -0
- package/lib/module/credential/issuance/common/authorization.js +48 -0
- package/lib/module/credential/issuance/common/authorization.js.map +1 -0
- package/lib/module/credential/issuance/common/errors.js +28 -0
- package/lib/module/credential/issuance/common/errors.js.map +1 -0
- package/lib/module/credential/issuance/index.js +4 -9
- package/lib/module/credential/issuance/index.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.js +13 -42
- 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 +24 -38
- 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 +22 -46
- package/lib/module/credential/issuance/mrtd-pop/03-validate-challenge.js.map +1 -1
- package/lib/module/credential/issuance/mrtd-pop/index.js +6 -1
- 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 +12 -0
- package/lib/module/credential/issuance/v1.0.0/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +56 -0
- package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +182 -0
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js +60 -0
- package/lib/module/credential/issuance/v1.0.0/04-authorize-access.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +140 -0
- package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js +27 -0
- package/lib/module/credential/issuance/v1.0.0/06-verify-and-parse-credential.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/index.js +21 -0
- package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/mappers.js +21 -0
- package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -0
- package/lib/module/credential/issuance/v1.0.0/types.js +22 -0
- package/lib/module/credential/issuance/v1.0.0/types.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js +17 -0
- package/lib/module/credential/issuance/v1.3.3/01-evaluate-issuer-trust.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +85 -0
- package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +174 -0
- package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js +66 -0
- package/lib/module/credential/issuance/v1.3.3/04-authorize-access.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +135 -0
- package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js +27 -0
- package/lib/module/credential/issuance/v1.3.3/06-verify-and-parse-credential.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/index.js +21 -0
- package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/mappers.js +66 -0
- package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -0
- package/lib/module/credential/issuance/v1.3.3/types.js +5 -0
- package/lib/module/credential/issuance/v1.3.3/types.js.map +1 -0
- package/lib/module/credential/offer/README.md +103 -119
- 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 -0
- 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 -0
- package/lib/module/credential/offer/api/index.js +3 -0
- package/lib/module/credential/offer/api/index.js.map +1 -0
- package/lib/module/credential/offer/api/types.js +2 -0
- package/lib/module/credential/offer/api/types.js.map +1 -0
- package/lib/module/credential/offer/common/errors.js +14 -0
- package/lib/module/credential/offer/common/errors.js.map +1 -0
- package/lib/module/credential/offer/index.js +4 -4
- package/lib/module/credential/offer/index.js.map +1 -1
- package/lib/module/credential/offer/v1.0.0/index.js +10 -0
- package/lib/module/credential/offer/v1.0.0/index.js.map +1 -0
- package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js +55 -0
- package/lib/module/credential/offer/v1.3.3/01-resolve-credential-offer.js.map +1 -0
- package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js +18 -0
- package/lib/module/credential/offer/v1.3.3/02-extract-grant-details.js.map +1 -0
- package/lib/module/credential/offer/v1.3.3/index.js +7 -0
- package/lib/module/credential/offer/v1.3.3/index.js.map +1 -0
- package/lib/module/credential/presentation/README.md +12 -9
- package/lib/module/credential/presentation/api/01-start-flow.js +2 -0
- package/lib/module/credential/presentation/api/01-start-flow.js.map +1 -0
- 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 -0
- 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 -0
- package/lib/module/credential/presentation/api/04-verify-request-object.js +2 -0
- package/lib/module/credential/presentation/api/04-verify-request-object.js.map +1 -0
- package/lib/module/credential/presentation/api/05-evaluate-dcql-query.js +2 -0
- package/lib/module/credential/presentation/api/05-evaluate-dcql-query.js.map +1 -0
- package/lib/module/credential/presentation/api/06-send-authorization-response.js +2 -0
- package/lib/module/credential/presentation/api/06-send-authorization-response.js.map +1 -0
- package/lib/module/credential/presentation/api/RelyingPartyConfig.js +23 -0
- package/lib/module/credential/presentation/api/RelyingPartyConfig.js.map +1 -0
- package/lib/module/credential/presentation/api/index.js +3 -0
- package/lib/module/credential/presentation/api/index.js.map +1 -0
- package/lib/module/credential/presentation/api/types.js +64 -0
- package/lib/module/credential/presentation/api/types.js.map +1 -0
- package/lib/module/credential/presentation/common/errors.js +103 -0
- package/lib/module/credential/presentation/common/errors.js.map +1 -0
- package/lib/module/credential/presentation/common/utils/dcql.js +152 -0
- package/lib/module/credential/presentation/common/utils/dcql.js.map +1 -0
- package/lib/module/credential/presentation/common/utils/http.js +21 -0
- package/lib/module/credential/presentation/common/utils/http.js.map +1 -0
- package/lib/module/credential/presentation/common/utils/sd-jwt.js +49 -0
- package/lib/module/credential/presentation/common/utils/sd-jwt.js.map +1 -0
- package/lib/module/credential/presentation/common/utils.js +21 -0
- package/lib/module/credential/presentation/common/utils.js.map +1 -0
- package/lib/module/credential/presentation/index.js +4 -11
- package/lib/module/credential/presentation/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/01-start-flow.js +14 -0
- package/lib/module/credential/presentation/v1.0.0/01-start-flow.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js +14 -0
- package/lib/module/credential/presentation/v1.0.0/02-evaluate-rp-trust.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js +51 -0
- package/lib/module/credential/presentation/v1.0.0/03-get-request-object.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/04-verify-request-object.js +79 -0
- package/lib/module/credential/presentation/v1.0.0/04-verify-request-object.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/05-evaluate-dcql-query.js +76 -0
- package/lib/module/credential/presentation/v1.0.0/05-evaluate-dcql-query.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/06-send-authorization-response.js +155 -0
- package/lib/module/credential/presentation/v1.0.0/06-send-authorization-response.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/index.js +17 -0
- package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/mappers.js +25 -0
- package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/types.js +36 -0
- package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/utils.js +20 -0
- package/lib/module/credential/presentation/v1.0.0/utils.js.map +1 -0
- package/lib/module/credential/presentation/v1.0.0/utils.jwks.js +20 -0
- package/lib/module/credential/presentation/v1.0.0/utils.jwks.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/01-start-flow.js +16 -0
- package/lib/module/credential/presentation/v1.3.3/01-start-flow.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/02-evaluate-rp-trust.js +15 -0
- package/lib/module/credential/presentation/v1.3.3/02-evaluate-rp-trust.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js +30 -0
- package/lib/module/credential/presentation/v1.3.3/03-get-request-object.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js +26 -0
- package/lib/module/credential/presentation/v1.3.3/04-verify-request-object.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/05-evaluate-dcql-query.js +97 -0
- package/lib/module/credential/presentation/v1.3.3/05-evaluate-dcql-query.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/06-send-authorization-response.js +129 -0
- package/lib/module/credential/presentation/v1.3.3/06-send-authorization-response.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/index.js +17 -0
- package/lib/module/credential/presentation/v1.3.3/index.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/mappers.js +24 -0
- package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js +65 -0
- package/lib/module/credential/presentation/v1.3.3/sdkErrorMapper.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/types.js +9 -0
- package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -0
- package/lib/module/credential/presentation/v1.3.3/utils.mdoc.js +79 -0
- package/lib/module/credential/presentation/v1.3.3/utils.mdoc.js.map +1 -0
- package/lib/module/credential/status/README.md +77 -19
- package/lib/module/credential/status/api/index.js +14 -0
- package/lib/module/credential/status/api/index.js.map +1 -0
- package/lib/module/credential/status/api/status-assertion.js +2 -0
- package/lib/module/credential/status/api/status-assertion.js.map +1 -0
- package/lib/module/credential/status/api/status-list.js +2 -0
- package/lib/module/credential/status/api/status-list.js.map +1 -0
- package/lib/module/credential/status/api/types.js +2 -0
- package/lib/module/credential/status/api/types.js.map +1 -0
- package/lib/module/credential/status/index.js +3 -4
- package/lib/module/credential/status/index.js.map +1 -1
- package/lib/module/credential/status/v1.0.0/01-status-assertion.js +64 -0
- package/lib/module/credential/status/v1.0.0/01-status-assertion.js.map +1 -0
- package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js +67 -0
- package/lib/module/credential/status/v1.0.0/02-verify-and-parse-status-assertion.js.map +1 -0
- package/lib/module/credential/status/v1.0.0/index.js +13 -0
- package/lib/module/credential/status/v1.0.0/index.js.map +1 -0
- package/lib/module/credential/status/v1.0.0/mappers.js +3 -0
- package/lib/module/credential/status/v1.0.0/mappers.js.map +1 -0
- package/lib/module/credential/status/v1.0.0/types.js +71 -0
- package/lib/module/credential/status/v1.0.0/types.js.map +1 -0
- package/lib/module/credential/status/v1.3.3/01-status-list.js +41 -0
- package/lib/module/credential/status/v1.3.3/01-status-list.js.map +1 -0
- package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js +17 -0
- package/lib/module/credential/status/v1.3.3/02-verify-and-parse-status-list.js.map +1 -0
- package/lib/module/credential/status/v1.3.3/index.js +13 -0
- package/lib/module/credential/status/v1.3.3/index.js.map +1 -0
- package/lib/module/credential/trustmark/README.md +5 -1
- package/lib/module/credential/trustmark/api/index.js +2 -0
- package/lib/module/credential/trustmark/api/index.js.map +1 -0
- package/lib/module/credential/trustmark/index.js +2 -2
- package/lib/module/credential/trustmark/index.js.map +1 -1
- package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js +61 -0
- package/lib/module/credential/trustmark/v1.0.0/get-credential-trustmark.js.map +1 -0
- package/lib/module/credential/trustmark/v1.0.0/index.js +5 -0
- package/lib/module/credential/trustmark/v1.0.0/index.js.map +1 -0
- package/lib/module/credential/trustmark/v1.3.3/get-credential-trustmark.js +5 -0
- package/lib/module/credential/trustmark/v1.3.3/get-credential-trustmark.js.map +1 -0
- package/lib/module/credential/trustmark/v1.3.3/index.js +5 -0
- package/lib/module/credential/trustmark/v1.3.3/index.js.map +1 -0
- package/lib/module/credentials-catalogue/README.md +8 -2
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +73 -0
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -0
- package/lib/module/credentials-catalogue/api/index.js +2 -0
- package/lib/module/credentials-catalogue/api/index.js.map +1 -0
- package/lib/module/credentials-catalogue/index.js +2 -1
- package/lib/module/credentials-catalogue/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js +26 -0
- package/lib/module/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.0.0/index.js +5 -0
- package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.0.0/mappers.js +22 -0
- package/lib/module/credentials-catalogue/v1.0.0/mappers.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.0.0/types.js +89 -0
- package/lib/module/credentials-catalogue/v1.0.0/types.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +39 -0
- package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.3.3/index.js +5 -0
- package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.3.3/mappers.js +54 -0
- package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.3.3/types.js +141 -0
- package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.3.3/utils.js +50 -0
- package/lib/module/credentials-catalogue/v1.3.3/utils.js.map +1 -0
- package/lib/module/index.js +9 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/mdoc/index.js +19 -2
- package/lib/module/mdoc/index.js.map +1 -1
- package/lib/module/mdoc/utils.js.map +1 -1
- package/lib/module/sd-jwt/__test__/types.test.js +1 -62
- package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/module/sd-jwt/__test__/utils.test.js +3 -12
- package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -1
- package/lib/module/sd-jwt/index.js +19 -147
- package/lib/module/sd-jwt/index.js.map +1 -1
- package/lib/module/sd-jwt/types.js +21 -44
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/sd-jwt/utils.js +5 -7
- package/lib/module/sd-jwt/utils.js.map +1 -1
- package/lib/module/trust/README.md +24 -11
- package/lib/module/trust/api/TrustAnchorConfig.js +21 -0
- package/lib/module/trust/api/TrustAnchorConfig.js.map +1 -0
- package/lib/module/trust/api/index.js +2 -0
- package/lib/module/trust/api/index.js.map +1 -0
- package/lib/module/trust/common/build-chain.js +111 -0
- package/lib/module/trust/common/build-chain.js.map +1 -0
- package/lib/module/trust/common/errors.js +116 -0
- package/lib/module/trust/common/errors.js.map +1 -0
- package/lib/module/trust/common/types.js +69 -0
- package/lib/module/trust/common/types.js.map +1 -0
- package/lib/module/trust/common/utils.js +126 -0
- package/lib/module/trust/common/utils.js.map +1 -0
- package/lib/module/trust/common/verify-chain.js +188 -0
- package/lib/module/trust/common/verify-chain.js.map +1 -0
- package/lib/module/trust/index.js +3 -5
- package/lib/module/trust/index.js.map +1 -1
- package/lib/module/trust/v1.0.0/build-chain.js +8 -0
- package/lib/module/trust/v1.0.0/build-chain.js.map +1 -0
- package/lib/module/trust/v1.0.0/entities.js +41 -0
- package/lib/module/trust/v1.0.0/entities.js.map +1 -0
- package/lib/module/trust/v1.0.0/index.js +11 -0
- package/lib/module/trust/v1.0.0/index.js.map +1 -0
- package/lib/module/trust/v1.0.0/mappers.js +14 -0
- package/lib/module/trust/v1.0.0/mappers.js.map +1 -0
- package/lib/module/trust/v1.0.0/types.js +150 -0
- package/lib/module/trust/v1.0.0/types.js.map +1 -0
- package/lib/module/trust/v1.0.0/verify-chain.js +12 -0
- package/lib/module/trust/v1.0.0/verify-chain.js.map +1 -0
- package/lib/module/trust/v1.3.3/entities.js +37 -0
- package/lib/module/trust/v1.3.3/entities.js.map +1 -0
- package/lib/module/trust/v1.3.3/types.js +46 -0
- package/lib/module/trust/v1.3.3/types.js.map +1 -0
- package/lib/module/utils/callbacks.js +94 -0
- package/lib/module/utils/callbacks.js.map +1 -0
- package/lib/module/utils/config.js +16 -0
- package/lib/module/utils/config.js.map +1 -0
- package/lib/module/utils/credentials.js +9 -6
- package/lib/module/utils/credentials.js.map +1 -1
- package/lib/module/utils/errors.js +62 -2
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/module/utils/mappers.js +62 -0
- package/lib/module/utils/mappers.js.map +1 -0
- package/lib/module/utils/misc.js +15 -1
- package/lib/module/utils/misc.js.map +1 -1
- package/lib/module/utils/object.js +11 -0
- package/lib/module/utils/object.js.map +1 -0
- package/lib/module/utils/par.js +5 -4
- package/lib/module/utils/par.js.map +1 -1
- package/lib/module/utils/zod.js +1 -0
- package/lib/module/utils/zod.js.map +1 -1
- package/lib/module/wallet-instance/README.md +8 -5
- package/lib/module/wallet-instance/api/index.js +2 -0
- package/lib/module/wallet-instance/api/index.js.map +1 -0
- package/lib/module/wallet-instance/common/wallet-instance.js +65 -0
- package/lib/module/wallet-instance/common/wallet-instance.js.map +1 -0
- package/lib/module/wallet-instance/index.js +2 -78
- package/lib/module/wallet-instance/index.js.map +1 -1
- package/lib/module/wallet-instance/v1.0.0/index.js +8 -0
- package/lib/module/wallet-instance/v1.0.0/index.js.map +1 -0
- package/lib/module/wallet-instance/v1.3.3/index.js +8 -0
- package/lib/module/wallet-instance/v1.3.3/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/README.md +8 -2
- package/lib/module/wallet-instance-attestation/api/index.js +2 -0
- package/lib/module/wallet-instance-attestation/api/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/api/types.js +22 -0
- package/lib/module/wallet-instance-attestation/api/types.js.map +1 -0
- package/lib/module/wallet-instance-attestation/common/types.js +25 -0
- package/lib/module/wallet-instance-attestation/common/types.js.map +1 -0
- package/lib/module/wallet-instance-attestation/index.js +2 -51
- package/lib/module/wallet-instance-attestation/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/v1.0.0/index.js +10 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js +100 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/issuing.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js +11 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/mappers.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/types.js +35 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/types.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/utils.js +31 -0
- package/lib/module/wallet-instance-attestation/v1.0.0/utils.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.3.3/index.js +12 -0
- package/lib/module/wallet-instance-attestation/v1.3.3/index.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js +5 -0
- package/lib/module/wallet-instance-attestation/v1.3.3/issuing.js.map +1 -0
- package/lib/module/wallet-instance-attestation/v1.3.3/types.js +32 -0
- package/lib/module/wallet-instance-attestation/v1.3.3/types.js.map +1 -0
- package/lib/typescript/IoWallet.d.ts +28 -0
- package/lib/typescript/IoWallet.d.ts.map +1 -0
- package/lib/typescript/api/index.d.ts +29 -0
- package/lib/typescript/api/index.d.ts.map +1 -0
- package/lib/typescript/client/generated/wallet-provider.d.ts +141 -138
- package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
- package/lib/typescript/credential/index.d.ts +1 -5
- package/lib/typescript/credential/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/01-evaluate-issuer-trust.d.ts +18 -0
- package/lib/typescript/credential/issuance/api/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +48 -0
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +78 -0
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts +33 -0
- package/lib/typescript/credential/issuance/api/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +36 -0
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts +36 -0
- package/lib/typescript/credential/issuance/api/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +423 -0
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/index.d.ts +14 -0
- package/lib/typescript/credential/issuance/api/index.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts +74 -0
- package/lib/typescript/credential/issuance/api/mrtd-pop/index.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts +34 -0
- package/lib/typescript/credential/issuance/api/mrtd-pop/types.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/api/types.d.ts +64 -0
- package/lib/typescript/credential/issuance/api/types.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts +21 -0
- package/lib/typescript/credential/issuance/common/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts +3 -0
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.mdoc.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts +3 -0
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/common/authorization.d.ts +21 -0
- package/lib/typescript/credential/issuance/common/authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/common/errors.d.ts +19 -0
- package/lib/typescript/credential/issuance/common/errors.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/index.d.ts +5 -11
- package/lib/typescript/credential/issuance/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts +2 -24
- package/lib/typescript/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts +2 -22
- package/lib/typescript/credential/issuance/mrtd-pop/02-init-challenge.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts +3 -38
- package/lib/typescript/credential/issuance/mrtd-pop/03-validate-challenge.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts +2 -6
- package/lib/typescript/credential/issuance/mrtd-pop/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.0.0/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +16 -0
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.0.0/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts +5 -0
- package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.0.0/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +307 -0
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/types.d.ts +43 -0
- package/lib/typescript/credential/issuance/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.3.3/01-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.3.3/02-start-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +16 -0
- package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.3.3/04-authorize-access.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts +5 -0
- package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.3.3/06-verify-and-parse-credential.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +2309 -0
- package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/v1.3.3/types.d.ts +10 -0
- package/lib/typescript/credential/issuance/v1.3.3/types.d.ts.map +1 -0
- package/lib/typescript/credential/offer/api/01-resolve-credential-offer.d.ts +22 -0
- package/lib/typescript/credential/offer/api/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/credential/offer/api/02-extract-grant-details.d.ts +13 -0
- package/lib/typescript/credential/offer/api/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/credential/offer/api/index.d.ts +6 -0
- package/lib/typescript/credential/offer/api/index.d.ts.map +1 -0
- package/lib/typescript/credential/offer/api/types.d.ts +5 -0
- package/lib/typescript/credential/offer/api/types.d.ts.map +1 -0
- package/lib/typescript/credential/offer/common/errors.d.ts +10 -0
- package/lib/typescript/credential/offer/common/errors.d.ts.map +1 -0
- package/lib/typescript/credential/offer/index.d.ts +5 -6
- package/lib/typescript/credential/offer/index.d.ts.map +1 -1
- package/lib/typescript/credential/offer/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/credential/offer/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts +25 -0
- package/lib/typescript/credential/offer/v1.3.3/01-resolve-credential-offer.d.ts.map +1 -0
- package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts +16 -0
- package/lib/typescript/credential/offer/v1.3.3/02-extract-grant-details.d.ts.map +1 -0
- package/lib/typescript/credential/offer/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/credential/offer/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/01-start-flow.d.ts +18 -0
- package/lib/typescript/credential/presentation/api/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/02-evaluate-rp-trust.d.ts +18 -0
- package/lib/typescript/credential/presentation/api/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/03-get-request-object.d.ts +19 -0
- package/lib/typescript/credential/presentation/api/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/04-verify-request-object.d.ts +23 -0
- package/lib/typescript/credential/presentation/api/04-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/05-evaluate-dcql-query.d.ts +41 -0
- package/lib/typescript/credential/presentation/api/05-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/06-send-authorization-response.d.ts +54 -0
- package/lib/typescript/credential/presentation/api/06-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts +185 -0
- package/lib/typescript/credential/presentation/api/RelyingPartyConfig.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/index.d.ts +12 -0
- package/lib/typescript/credential/presentation/api/index.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/api/types.d.ts +207 -0
- package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/common/errors.d.ts +80 -0
- package/lib/typescript/credential/presentation/common/errors.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/common/utils/dcql.d.ts +293 -0
- package/lib/typescript/credential/presentation/common/utils/dcql.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/common/utils/http.d.ts +11 -0
- package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts +14 -0
- package/lib/typescript/credential/presentation/common/utils/sd-jwt.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/common/utils.d.ts +11 -0
- package/lib/typescript/credential/presentation/common/utils.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/index.d.ts +5 -12
- package/lib/typescript/credential/presentation/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.0.0/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.0.0/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.0.0/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/04-verify-request-object.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.0.0/04-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/05-evaluate-dcql-query.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.0.0/05-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/06-send-authorization-response.d.ts +26 -0
- package/lib/typescript/credential/presentation/v1.0.0/06-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +143 -0
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +80 -0
- package/lib/typescript/credential/presentation/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts +11 -0
- package/lib/typescript/credential/presentation/v1.0.0/utils.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts +11 -0
- package/lib/typescript/credential/presentation/v1.0.0/utils.jwks.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.3.3/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.3.3/02-evaluate-rp-trust.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.3.3/03-get-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/04-verify-request-object.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.3.3/04-verify-request-object.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/05-evaluate-dcql-query.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.3.3/05-evaluate-dcql-query.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/06-send-authorization-response.d.ts +18 -0
- package/lib/typescript/credential/presentation/v1.3.3/06-send-authorization-response.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/credential/presentation/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +619 -0
- package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts +13 -0
- package/lib/typescript/credential/presentation/v1.3.3/sdkErrorMapper.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +3730 -0
- package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -0
- package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts +28 -0
- package/lib/typescript/credential/presentation/v1.3.3/utils.mdoc.d.ts.map +1 -0
- package/lib/typescript/credential/status/api/index.d.ts +21 -0
- package/lib/typescript/credential/status/api/index.d.ts.map +1 -0
- package/lib/typescript/credential/status/api/status-assertion.d.ts +49 -0
- package/lib/typescript/credential/status/api/status-assertion.d.ts.map +1 -0
- package/lib/typescript/credential/status/api/status-list.d.ts +40 -0
- package/lib/typescript/credential/status/api/status-list.d.ts.map +1 -0
- package/lib/typescript/credential/status/api/types.d.ts +16 -0
- package/lib/typescript/credential/status/api/types.d.ts.map +1 -0
- package/lib/typescript/credential/status/index.d.ts +3 -6
- package/lib/typescript/credential/status/index.d.ts.map +1 -1
- package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts +3 -0
- package/lib/typescript/credential/status/v1.0.0/01-status-assertion.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts +3 -0
- package/lib/typescript/credential/status/v1.0.0/02-verify-and-parse-status-assertion.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/credential/status/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.0.0/mappers.d.ts +47 -0
- package/lib/typescript/credential/status/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.0.0/types.d.ts +782 -0
- package/lib/typescript/credential/status/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts +3 -0
- package/lib/typescript/credential/status/v1.3.3/01-status-list.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts +3 -0
- package/lib/typescript/credential/status/v1.3.3/02-verify-and-parse-status-list.d.ts.map +1 -0
- package/lib/typescript/credential/status/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/credential/status/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/api/index.d.ts +49 -0
- package/lib/typescript/credential/trustmark/api/index.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/index.d.ts +3 -3
- package/lib/typescript/credential/trustmark/index.d.ts.map +1 -1
- package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts +3 -0
- package/lib/typescript/credential/trustmark/v1.0.0/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/credential/trustmark/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/v1.3.3/get-credential-trustmark.d.ts +3 -0
- package/lib/typescript/credential/trustmark/v1.3.3/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/credential/trustmark/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +613 -0
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/api/index.d.ts +18 -0
- package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/index.d.ts +3 -2
- package/lib/typescript/credentials-catalogue/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts +3 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +54 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts +844 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.d.ts +3 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +168 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +1074 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts +26 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/utils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +9 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/mdoc/index.d.ts +4 -0
- package/lib/typescript/mdoc/index.d.ts.map +1 -1
- package/lib/typescript/mdoc/utils.d.ts +2 -2
- package/lib/typescript/mdoc/utils.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/index.d.ts +58 -278
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/types.d.ts +118 -153
- package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/utils.d.ts.map +1 -1
- package/lib/typescript/trust/api/TrustAnchorConfig.d.ts +247 -0
- package/lib/typescript/trust/api/TrustAnchorConfig.d.ts.map +1 -0
- package/lib/typescript/trust/api/index.d.ts +43 -0
- package/lib/typescript/trust/api/index.d.ts.map +1 -0
- package/lib/typescript/trust/common/build-chain.d.ts +21 -0
- package/lib/typescript/trust/common/build-chain.d.ts.map +1 -0
- package/lib/typescript/trust/common/errors.d.ts +103 -0
- package/lib/typescript/trust/common/errors.d.ts.map +1 -0
- package/lib/typescript/trust/common/types.d.ts +1306 -0
- package/lib/typescript/trust/common/types.d.ts.map +1 -0
- package/lib/typescript/trust/common/utils.d.ts +53 -0
- package/lib/typescript/trust/common/utils.d.ts.map +1 -0
- package/lib/typescript/trust/common/verify-chain.d.ts +27 -0
- package/lib/typescript/trust/common/verify-chain.d.ts.map +1 -0
- package/lib/typescript/trust/index.d.ts +4 -5
- package/lib/typescript/trust/index.d.ts.map +1 -1
- package/lib/typescript/trust/v1.0.0/build-chain.d.ts +54 -0
- package/lib/typescript/trust/v1.0.0/build-chain.d.ts.map +1 -0
- package/lib/typescript/trust/v1.0.0/entities.d.ts +968 -0
- package/lib/typescript/trust/v1.0.0/entities.d.ts.map +1 -0
- package/lib/typescript/trust/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/trust/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/trust/v1.0.0/mappers.d.ts +113 -0
- package/lib/typescript/trust/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/trust/v1.0.0/types.d.ts +12744 -0
- package/lib/typescript/trust/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/trust/v1.0.0/verify-chain.d.ts +57 -0
- package/lib/typescript/trust/v1.0.0/verify-chain.d.ts.map +1 -0
- package/lib/typescript/trust/v1.3.3/entities.d.ts +103 -0
- package/lib/typescript/trust/v1.3.3/entities.d.ts.map +1 -0
- package/lib/typescript/trust/v1.3.3/types.d.ts +14620 -0
- package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -0
- package/lib/typescript/utils/auth.d.ts +2 -2
- package/lib/typescript/utils/callbacks.d.ts +21 -0
- package/lib/typescript/utils/callbacks.d.ts.map +1 -0
- package/lib/typescript/utils/config.d.ts +10 -0
- package/lib/typescript/utils/config.d.ts.map +1 -0
- package/lib/typescript/utils/credentials.d.ts +2 -3
- package/lib/typescript/utils/credentials.d.ts.map +1 -1
- package/lib/typescript/utils/errors.d.ts +41 -6
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/utils/mappers.d.ts +47 -0
- package/lib/typescript/utils/mappers.d.ts.map +1 -0
- package/lib/typescript/utils/misc.d.ts +7 -1
- package/lib/typescript/utils/misc.d.ts.map +1 -1
- package/lib/typescript/utils/object.d.ts +4 -0
- package/lib/typescript/utils/object.d.ts.map +1 -0
- package/lib/typescript/utils/par.d.ts +2 -2
- package/lib/typescript/utils/par.d.ts.map +1 -1
- package/lib/typescript/utils/pop.d.ts +2 -2
- package/lib/typescript/utils/zod.d.ts +2 -0
- package/lib/typescript/utils/zod.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/api/index.d.ts +45 -0
- package/lib/typescript/wallet-instance/api/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance/common/wallet-instance.d.ts +6 -0
- package/lib/typescript/wallet-instance/common/wallet-instance.d.ts.map +1 -0
- package/lib/typescript/wallet-instance/index.d.ts +3 -34
- package/lib/typescript/wallet-instance/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/wallet-instance/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/wallet-instance/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/api/index.d.ts +46 -0
- package/lib/typescript/wallet-instance-attestation/api/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/api/types.d.ts +211 -0
- package/lib/typescript/wallet-instance-attestation/api/types.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/common/types.d.ts +306 -0
- package/lib/typescript/wallet-instance-attestation/common/types.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/index.d.ts +3 -34
- package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts +3 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts +3 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/issuing.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts +91 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/mappers.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts +710 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/types.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts +15 -0
- package/lib/typescript/wallet-instance-attestation/v1.0.0/utils.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts +3 -0
- package/lib/typescript/wallet-instance-attestation/v1.3.3/index.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts +3 -0
- package/lib/typescript/wallet-instance-attestation/v1.3.3/issuing.d.ts.map +1 -0
- package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts +925 -0
- package/lib/typescript/wallet-instance-attestation/v1.3.3/types.d.ts.map +1 -0
- package/package.json +20 -13
- package/src/IoWallet.ts +50 -0
- package/src/api/index.ts +55 -0
- package/src/client/generated/wallet-provider.ts +53 -46
- package/src/client/index.ts +3 -3
- package/src/credential/index.ts +1 -5
- package/src/credential/issuance/README.md +37 -44
- package/src/credential/issuance/api/01-evaluate-issuer-trust.ts +17 -0
- package/src/credential/issuance/api/02-start-user-authorization.ts +50 -0
- package/src/credential/issuance/api/03-complete-user-authorization.ts +102 -0
- package/src/credential/issuance/api/04-authorize-access.ts +37 -0
- package/src/credential/issuance/api/05-obtain-credential.ts +42 -0
- package/src/credential/issuance/api/06-verify-and-parse-credential.ts +42 -0
- package/src/credential/issuance/api/IssuerConfig.ts +65 -0
- package/src/credential/issuance/api/index.ts +21 -0
- package/src/credential/issuance/api/mrtd-pop/index.ts +104 -0
- package/src/credential/issuance/api/mrtd-pop/types.ts +37 -0
- package/src/credential/issuance/api/types.ts +34 -0
- package/src/credential/issuance/common/02-start-user-authorization.ts +86 -0
- package/src/credential/issuance/common/06-verify-and-parse-credential.mdoc.ts +236 -0
- package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +261 -0
- package/src/credential/issuance/common/authorization.ts +89 -0
- package/src/credential/issuance/common/errors.ts +29 -0
- package/src/credential/issuance/index.ts +5 -62
- package/src/credential/issuance/mrtd-pop/01-verify-and-parse-challenge-info.ts +20 -65
- package/src/credential/issuance/mrtd-pop/02-init-challenge.ts +25 -56
- package/src/credential/issuance/mrtd-pop/03-validate-challenge.ts +34 -90
- package/src/credential/issuance/mrtd-pop/index.ts +4 -17
- package/src/credential/issuance/v1.0.0/01-evaluate-issuer-trust.ts +14 -0
- package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +68 -0
- package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +279 -0
- package/src/credential/issuance/v1.0.0/04-authorize-access.ts +93 -0
- package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +212 -0
- package/src/credential/issuance/v1.0.0/06-verify-and-parse-credential.ts +46 -0
- package/src/credential/issuance/v1.0.0/index.ts +28 -0
- package/src/credential/issuance/v1.0.0/mappers.ts +29 -0
- package/src/credential/issuance/v1.0.0/types.ts +28 -0
- package/src/credential/issuance/v1.3.3/01-evaluate-issuer-trust.ts +19 -0
- package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +109 -0
- package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +249 -0
- package/src/credential/issuance/v1.3.3/04-authorize-access.ts +84 -0
- package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +188 -0
- package/src/credential/issuance/v1.3.3/06-verify-and-parse-credential.ts +46 -0
- package/src/credential/issuance/v1.3.3/index.ts +28 -0
- package/src/credential/issuance/v1.3.3/mappers.ts +87 -0
- package/src/credential/issuance/v1.3.3/types.ts +6 -0
- package/src/credential/offer/README.md +103 -119
- package/src/credential/offer/api/01-resolve-credential-offer.ts +23 -0
- package/src/credential/offer/api/02-extract-grant-details.ts +13 -0
- package/src/credential/offer/api/index.ts +8 -0
- package/src/credential/offer/api/types.ts +5 -0
- package/src/credential/offer/common/errors.ts +17 -0
- package/src/credential/offer/index.ts +5 -16
- package/src/credential/offer/v1.0.0/index.ts +11 -0
- package/src/credential/offer/v1.3.3/01-resolve-credential-offer.ts +60 -0
- package/src/credential/offer/v1.3.3/02-extract-grant-details.ts +27 -0
- package/src/credential/offer/v1.3.3/index.ts +8 -0
- package/src/credential/presentation/README.md +12 -9
- package/src/credential/presentation/api/01-start-flow.ts +18 -0
- package/src/credential/presentation/api/02-evaluate-rp-trust.ts +19 -0
- package/src/credential/presentation/api/03-get-request-object.ts +20 -0
- package/src/credential/presentation/api/04-verify-request-object.ts +24 -0
- package/src/credential/presentation/api/05-evaluate-dcql-query.ts +54 -0
- package/src/credential/presentation/api/06-send-authorization-response.ts +67 -0
- package/src/credential/presentation/api/RelyingPartyConfig.ts +25 -0
- package/src/credential/presentation/api/index.ts +18 -0
- package/src/credential/presentation/api/types.ts +129 -0
- package/src/credential/presentation/common/errors.ts +116 -0
- package/src/credential/presentation/common/utils/dcql.ts +188 -0
- package/src/credential/presentation/common/utils/http.ts +30 -0
- package/src/credential/presentation/common/utils/sd-jwt.ts +68 -0
- package/src/credential/presentation/common/utils.ts +30 -0
- package/src/credential/presentation/index.ts +5 -71
- package/src/credential/presentation/v1.0.0/01-start-flow.ts +22 -0
- package/src/credential/presentation/v1.0.0/02-evaluate-rp-trust.ts +14 -0
- package/src/credential/presentation/v1.0.0/03-get-request-object.ts +61 -0
- package/src/credential/presentation/v1.0.0/04-verify-request-object.ts +104 -0
- package/src/credential/presentation/v1.0.0/05-evaluate-dcql-query.ts +97 -0
- package/src/credential/presentation/v1.0.0/06-send-authorization-response.ts +196 -0
- package/src/credential/presentation/v1.0.0/index.ts +22 -0
- package/src/credential/presentation/v1.0.0/mappers.ts +35 -0
- package/src/credential/presentation/v1.0.0/types.ts +40 -0
- package/src/credential/presentation/v1.0.0/utils.jwks.ts +26 -0
- package/src/credential/presentation/v1.0.0/utils.ts +26 -0
- package/src/credential/presentation/v1.3.3/01-start-flow.ts +22 -0
- package/src/credential/presentation/v1.3.3/02-evaluate-rp-trust.ts +15 -0
- package/src/credential/presentation/v1.3.3/03-get-request-object.ts +28 -0
- package/src/credential/presentation/v1.3.3/04-verify-request-object.ts +31 -0
- package/src/credential/presentation/v1.3.3/05-evaluate-dcql-query.ts +119 -0
- package/src/credential/presentation/v1.3.3/06-send-authorization-response.ts +160 -0
- package/src/credential/presentation/v1.3.3/index.ts +22 -0
- package/src/credential/presentation/v1.3.3/mappers.ts +34 -0
- package/src/credential/presentation/v1.3.3/sdkErrorMapper.ts +93 -0
- package/src/credential/presentation/v1.3.3/types.ts +12 -0
- package/src/credential/presentation/v1.3.3/utils.mdoc.ts +98 -0
- package/src/credential/status/README.md +77 -19
- package/src/credential/status/api/index.ts +23 -0
- package/src/credential/status/api/status-assertion.ts +57 -0
- package/src/credential/status/api/status-list.ts +50 -0
- package/src/credential/status/api/types.ts +15 -0
- package/src/credential/status/index.ts +3 -15
- package/src/credential/status/v1.0.0/01-status-assertion.ts +95 -0
- package/src/credential/status/v1.0.0/02-verify-and-parse-status-assertion.ts +87 -0
- package/src/credential/status/v1.0.0/index.ts +14 -0
- package/src/credential/status/v1.0.0/mappers.ts +8 -0
- package/src/credential/status/v1.0.0/types.ts +90 -0
- package/src/credential/status/v1.3.3/01-status-list.ts +50 -0
- package/src/credential/status/v1.3.3/02-verify-and-parse-status-list.ts +19 -0
- package/src/credential/status/v1.3.3/index.ts +14 -0
- package/src/credential/trustmark/README.md +5 -1
- package/src/credential/trustmark/api/index.ts +50 -0
- package/src/credential/trustmark/index.ts +3 -8
- package/src/credential/trustmark/v1.0.0/get-credential-trustmark.ts +89 -0
- package/src/credential/trustmark/v1.0.0/index.ts +6 -0
- package/src/credential/trustmark/v1.3.3/get-credential-trustmark.ts +7 -0
- package/src/credential/trustmark/v1.3.3/index.ts +6 -0
- package/src/credentials-catalogue/README.md +8 -2
- package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +82 -0
- package/src/credentials-catalogue/api/index.ts +21 -0
- package/src/credentials-catalogue/index.ts +3 -2
- package/src/credentials-catalogue/v1.0.0/fetch-and-parse-catalogue.ts +41 -0
- package/src/credentials-catalogue/v1.0.0/index.ts +6 -0
- package/src/credentials-catalogue/v1.0.0/mappers.ts +20 -0
- package/src/credentials-catalogue/v1.0.0/types.ts +97 -0
- package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +52 -0
- package/src/credentials-catalogue/v1.3.3/index.ts +6 -0
- package/src/credentials-catalogue/v1.3.3/mappers.ts +75 -0
- package/src/credentials-catalogue/v1.3.3/types.ts +162 -0
- package/src/credentials-catalogue/v1.3.3/utils.ts +64 -0
- package/src/index.ts +18 -7
- package/src/mdoc/index.ts +43 -2
- package/src/mdoc/utils.ts +4 -2
- package/src/sd-jwt/__test__/types.test.ts +1 -77
- package/src/sd-jwt/__test__/utils.test.ts +3 -13
- package/src/sd-jwt/index.ts +19 -164
- package/src/sd-jwt/types.ts +33 -63
- package/src/sd-jwt/utils.ts +11 -8
- package/src/trust/README.md +24 -11
- package/src/trust/api/TrustAnchorConfig.ts +20 -0
- package/src/trust/api/index.ts +57 -0
- package/src/trust/common/build-chain.ts +161 -0
- package/src/trust/common/errors.ts +138 -0
- package/src/trust/common/types.ts +78 -0
- package/src/trust/common/utils.ts +150 -0
- package/src/trust/common/verify-chain.ts +293 -0
- package/src/trust/index.ts +4 -6
- package/src/trust/v1.0.0/build-chain.ts +8 -0
- package/src/trust/v1.0.0/entities.ts +93 -0
- package/src/trust/v1.0.0/index.ts +15 -0
- package/src/trust/v1.0.0/mappers.ts +15 -0
- package/src/trust/v1.0.0/types.ts +178 -0
- package/src/trust/v1.0.0/verify-chain.ts +12 -0
- package/src/trust/v1.3.3/entities.ts +51 -0
- package/src/trust/v1.3.3/types.ts +68 -0
- package/src/utils/callbacks.ts +84 -0
- package/src/utils/config.ts +18 -0
- package/src/utils/credentials.ts +10 -9
- package/src/utils/errors.ts +72 -9
- package/src/utils/mappers.ts +84 -0
- package/src/utils/misc.ts +16 -2
- package/src/utils/object.ts +15 -0
- package/src/utils/par.ts +3 -5
- package/src/utils/zod.ts +3 -0
- package/src/wallet-instance/README.md +8 -5
- package/src/wallet-instance/api/index.ts +53 -0
- package/src/wallet-instance/common/wallet-instance.ts +96 -0
- package/src/wallet-instance/index.ts +3 -118
- package/src/wallet-instance/v1.0.0/index.ts +14 -0
- package/src/wallet-instance/v1.3.3/index.ts +14 -0
- package/src/wallet-instance-attestation/README.md +8 -2
- package/src/wallet-instance-attestation/api/index.ts +48 -0
- package/src/wallet-instance-attestation/api/types.ts +25 -0
- package/src/wallet-instance-attestation/common/types.ts +25 -0
- package/src/wallet-instance-attestation/index.ts +3 -56
- package/src/wallet-instance-attestation/v1.0.0/index.ts +11 -0
- package/src/wallet-instance-attestation/v1.0.0/issuing.ts +154 -0
- package/src/wallet-instance-attestation/v1.0.0/mappers.ts +24 -0
- package/src/wallet-instance-attestation/v1.0.0/types.ts +59 -0
- package/src/wallet-instance-attestation/v1.0.0/utils.ts +37 -0
- package/src/wallet-instance-attestation/v1.3.3/index.ts +13 -0
- package/src/wallet-instance-attestation/v1.3.3/issuing.ts +7 -0
- package/src/wallet-instance-attestation/v1.3.3/types.ts +48 -0
- package/lib/commonjs/credential/issuance/01-start-flow.js +0 -2
- package/lib/commonjs/credential/issuance/01-start-flow.js.map +0 -1
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js +0 -32
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js.map +0 -1
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js +0 -132
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +0 -1
- package/lib/commonjs/credential/issuance/04-complete-user-authorization.js +0 -259
- package/lib/commonjs/credential/issuance/04-complete-user-authorization.js.map +0 -1
- package/lib/commonjs/credential/issuance/05-authorize-access.js +0 -87
- package/lib/commonjs/credential/issuance/05-authorize-access.js.map +0 -1
- package/lib/commonjs/credential/issuance/06-obtain-credential.js +0 -168
- package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +0 -1
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +0 -388
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +0 -1
- package/lib/commonjs/credential/issuance/errors.js +0 -35
- package/lib/commonjs/credential/issuance/errors.js.map +0 -1
- package/lib/commonjs/credential/issuance/mrtd-pop/types.js +0 -57
- package/lib/commonjs/credential/issuance/mrtd-pop/types.js.map +0 -1
- package/lib/commonjs/credential/issuance/types.js +0 -43
- package/lib/commonjs/credential/issuance/types.js.map +0 -1
- package/lib/commonjs/credential/offer/01-start-flow.js +0 -75
- package/lib/commonjs/credential/offer/01-start-flow.js.map +0 -1
- package/lib/commonjs/credential/offer/02-fetch-credential-offer.js +0 -45
- package/lib/commonjs/credential/offer/02-fetch-credential-offer.js.map +0 -1
- package/lib/commonjs/credential/offer/errors.js +0 -22
- package/lib/commonjs/credential/offer/errors.js.map +0 -1
- package/lib/commonjs/credential/offer/types.js +0 -51
- package/lib/commonjs/credential/offer/types.js.map +0 -1
- package/lib/commonjs/credential/presentation/01-start-flow.js +0 -45
- package/lib/commonjs/credential/presentation/01-start-flow.js.map +0 -1
- package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js +0 -34
- package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js.map +0 -1
- package/lib/commonjs/credential/presentation/03-get-request-object.js +0 -56
- package/lib/commonjs/credential/presentation/03-get-request-object.js.map +0 -1
- package/lib/commonjs/credential/presentation/04-retrieve-rp-jwks.js +0 -32
- package/lib/commonjs/credential/presentation/04-retrieve-rp-jwks.js.map +0 -1
- package/lib/commonjs/credential/presentation/05-verify-request-object.js +0 -95
- package/lib/commonjs/credential/presentation/05-verify-request-object.js.map +0 -1
- package/lib/commonjs/credential/presentation/06-fetch-presentation-definition.js +0 -39
- package/lib/commonjs/credential/presentation/06-fetch-presentation-definition.js.map +0 -1
- package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js +0 -155
- package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js.map +0 -1
- package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js +0 -307
- package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js.map +0 -1
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js +0 -252
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js.map +0 -1
- package/lib/commonjs/credential/presentation/errors.js +0 -121
- package/lib/commonjs/credential/presentation/errors.js.map +0 -1
- package/lib/commonjs/credential/presentation/types.js +0 -157
- package/lib/commonjs/credential/presentation/types.js.map +0 -1
- package/lib/commonjs/credential/status/01-start-flow.js +0 -2
- package/lib/commonjs/credential/status/01-start-flow.js.map +0 -1
- package/lib/commonjs/credential/status/02-status-assertion.js +0 -79
- package/lib/commonjs/credential/status/02-status-assertion.js.map +0 -1
- package/lib/commonjs/credential/status/03-verify-and-parse-status-assertion.js +0 -85
- package/lib/commonjs/credential/status/03-verify-and-parse-status-assertion.js.map +0 -1
- package/lib/commonjs/credential/status/types.js +0 -81
- package/lib/commonjs/credential/status/types.js.map +0 -1
- package/lib/commonjs/credential/trustmark/get-credential-trustmark.js +0 -86
- package/lib/commonjs/credential/trustmark/get-credential-trustmark.js.map +0 -1
- package/lib/commonjs/credentials-catalogue/fetch-and-parse-catalogue.js +0 -42
- package/lib/commonjs/credentials-catalogue/fetch-and-parse-catalogue.js.map +0 -1
- package/lib/commonjs/credentials-catalogue/types.js +0 -99
- package/lib/commonjs/credentials-catalogue/types.js.map +0 -1
- package/lib/commonjs/pid/index.js +0 -11
- package/lib/commonjs/pid/index.js.map +0 -1
- package/lib/commonjs/pid/sd-jwt/converters.js +0 -25
- package/lib/commonjs/pid/sd-jwt/converters.js.map +0 -1
- package/lib/commonjs/pid/sd-jwt/index.js +0 -77
- package/lib/commonjs/pid/sd-jwt/index.js.map +0 -1
- package/lib/commonjs/pid/sd-jwt/types.js +0 -50
- package/lib/commonjs/pid/sd-jwt/types.js.map +0 -1
- package/lib/commonjs/sd-jwt/__test__/converters.test.js +0 -25
- package/lib/commonjs/sd-jwt/__test__/converters.test.js.map +0 -1
- package/lib/commonjs/sd-jwt/__test__/index.test.js +0 -134
- package/lib/commonjs/sd-jwt/__test__/index.test.js.map +0 -1
- package/lib/commonjs/sd-jwt/converters.js +0 -30
- package/lib/commonjs/sd-jwt/converters.js.map +0 -1
- package/lib/commonjs/sd-jwt/errors.js +0 -40
- package/lib/commonjs/sd-jwt/errors.js.map +0 -1
- package/lib/commonjs/sd-jwt/verifier.js +0 -24
- package/lib/commonjs/sd-jwt/verifier.js.map +0 -1
- package/lib/commonjs/trust/build-chain.js +0 -255
- package/lib/commonjs/trust/build-chain.js.map +0 -1
- package/lib/commonjs/trust/errors.js +0 -134
- package/lib/commonjs/trust/errors.js.map +0 -1
- package/lib/commonjs/trust/types.js +0 -234
- package/lib/commonjs/trust/types.js.map +0 -1
- package/lib/commonjs/trust/utils.js +0 -70
- package/lib/commonjs/trust/utils.js.map +0 -1
- package/lib/commonjs/trust/verify-chain.js +0 -188
- package/lib/commonjs/trust/verify-chain.js.map +0 -1
- package/lib/commonjs/wallet-instance-attestation/issuing.js +0 -117
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +0 -1
- package/lib/commonjs/wallet-instance-attestation/types.js +0 -69
- package/lib/commonjs/wallet-instance-attestation/types.js.map +0 -1
- package/lib/module/credential/issuance/01-start-flow.js +0 -2
- package/lib/module/credential/issuance/01-start-flow.js.map +0 -1
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js +0 -25
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js.map +0 -1
- package/lib/module/credential/issuance/03-start-user-authorization.js +0 -125
- package/lib/module/credential/issuance/03-start-user-authorization.js.map +0 -1
- package/lib/module/credential/issuance/04-complete-user-authorization.js +0 -247
- package/lib/module/credential/issuance/04-complete-user-authorization.js.map +0 -1
- package/lib/module/credential/issuance/05-authorize-access.js +0 -78
- package/lib/module/credential/issuance/05-authorize-access.js.map +0 -1
- package/lib/module/credential/issuance/06-obtain-credential.js +0 -160
- package/lib/module/credential/issuance/06-obtain-credential.js.map +0 -1
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js +0 -382
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +0 -1
- package/lib/module/credential/issuance/errors.js +0 -28
- package/lib/module/credential/issuance/errors.js.map +0 -1
- package/lib/module/credential/issuance/mrtd-pop/types.js +0 -46
- package/lib/module/credential/issuance/mrtd-pop/types.js.map +0 -1
- package/lib/module/credential/issuance/types.js +0 -30
- package/lib/module/credential/issuance/types.js.map +0 -1
- package/lib/module/credential/offer/01-start-flow.js +0 -66
- package/lib/module/credential/offer/01-start-flow.js.map +0 -1
- package/lib/module/credential/offer/02-fetch-credential-offer.js +0 -38
- package/lib/module/credential/offer/02-fetch-credential-offer.js.map +0 -1
- package/lib/module/credential/offer/errors.js +0 -14
- package/lib/module/credential/offer/errors.js.map +0 -1
- package/lib/module/credential/offer/types.js +0 -41
- package/lib/module/credential/offer/types.js.map +0 -1
- package/lib/module/credential/presentation/01-start-flow.js +0 -36
- package/lib/module/credential/presentation/01-start-flow.js.map +0 -1
- package/lib/module/credential/presentation/02-evaluate-rp-trust.js +0 -27
- package/lib/module/credential/presentation/02-evaluate-rp-trust.js.map +0 -1
- package/lib/module/credential/presentation/03-get-request-object.js +0 -49
- package/lib/module/credential/presentation/03-get-request-object.js.map +0 -1
- package/lib/module/credential/presentation/04-retrieve-rp-jwks.js +0 -25
- package/lib/module/credential/presentation/04-retrieve-rp-jwks.js.map +0 -1
- package/lib/module/credential/presentation/05-verify-request-object.js +0 -88
- package/lib/module/credential/presentation/05-verify-request-object.js.map +0 -1
- package/lib/module/credential/presentation/06-fetch-presentation-definition.js +0 -32
- package/lib/module/credential/presentation/06-fetch-presentation-definition.js.map +0 -1
- package/lib/module/credential/presentation/07-evaluate-dcql-query.js +0 -148
- package/lib/module/credential/presentation/07-evaluate-dcql-query.js.map +0 -1
- package/lib/module/credential/presentation/07-evaluate-input-descriptor.js +0 -296
- package/lib/module/credential/presentation/07-evaluate-input-descriptor.js.map +0 -1
- package/lib/module/credential/presentation/08-send-authorization-response.js +0 -239
- package/lib/module/credential/presentation/08-send-authorization-response.js.map +0 -1
- package/lib/module/credential/presentation/errors.js +0 -103
- package/lib/module/credential/presentation/errors.js.map +0 -1
- package/lib/module/credential/presentation/types.js +0 -146
- package/lib/module/credential/presentation/types.js.map +0 -1
- package/lib/module/credential/status/01-start-flow.js +0 -2
- package/lib/module/credential/status/01-start-flow.js.map +0 -1
- package/lib/module/credential/status/02-status-assertion.js +0 -72
- package/lib/module/credential/status/02-status-assertion.js.map +0 -1
- package/lib/module/credential/status/03-verify-and-parse-status-assertion.js +0 -78
- package/lib/module/credential/status/03-verify-and-parse-status-assertion.js.map +0 -1
- package/lib/module/credential/status/types.js +0 -71
- package/lib/module/credential/status/types.js.map +0 -1
- package/lib/module/credential/trustmark/get-credential-trustmark.js +0 -77
- package/lib/module/credential/trustmark/get-credential-trustmark.js.map +0 -1
- package/lib/module/credentials-catalogue/fetch-and-parse-catalogue.js +0 -35
- package/lib/module/credentials-catalogue/fetch-and-parse-catalogue.js.map +0 -1
- package/lib/module/credentials-catalogue/types.js +0 -89
- package/lib/module/credentials-catalogue/types.js.map +0 -1
- package/lib/module/pid/index.js +0 -3
- package/lib/module/pid/index.js.map +0 -1
- package/lib/module/pid/sd-jwt/converters.js +0 -19
- package/lib/module/pid/sd-jwt/converters.js.map +0 -1
- package/lib/module/pid/sd-jwt/index.js +0 -66
- package/lib/module/pid/sd-jwt/index.js.map +0 -1
- package/lib/module/pid/sd-jwt/types.js +0 -43
- package/lib/module/pid/sd-jwt/types.js.map +0 -1
- package/lib/module/sd-jwt/__test__/converters.test.js +0 -23
- package/lib/module/sd-jwt/__test__/converters.test.js.map +0 -1
- package/lib/module/sd-jwt/__test__/index.test.js +0 -132
- package/lib/module/sd-jwt/__test__/index.test.js.map +0 -1
- package/lib/module/sd-jwt/converters.js +0 -24
- package/lib/module/sd-jwt/converters.js.map +0 -1
- package/lib/module/sd-jwt/errors.js +0 -32
- package/lib/module/sd-jwt/errors.js.map +0 -1
- package/lib/module/sd-jwt/verifier.js +0 -17
- package/lib/module/sd-jwt/verifier.js.map +0 -1
- package/lib/module/trust/build-chain.js +0 -238
- package/lib/module/trust/build-chain.js.map +0 -1
- package/lib/module/trust/errors.js +0 -116
- package/lib/module/trust/errors.js.map +0 -1
- package/lib/module/trust/types.js +0 -221
- package/lib/module/trust/types.js.map +0 -1
- package/lib/module/trust/utils.js +0 -60
- package/lib/module/trust/utils.js.map +0 -1
- package/lib/module/trust/verify-chain.js +0 -179
- package/lib/module/trust/verify-chain.js.map +0 -1
- package/lib/module/wallet-instance-attestation/issuing.js +0 -110
- package/lib/module/wallet-instance-attestation/issuing.js.map +0 -1
- package/lib/module/wallet-instance-attestation/types.js +0 -58
- package/lib/module/wallet-instance-attestation/types.js.map +0 -1
- package/lib/typescript/credential/issuance/01-start-flow.d.ts +0 -12
- package/lib/typescript/credential/issuance/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts +0 -19
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts +0 -47
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts +0 -79
- package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/05-authorize-access.d.ts +0 -34
- package/lib/typescript/credential/issuance/05-authorize-access.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +0 -36
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts +0 -43
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/errors.d.ts +0 -19
- package/lib/typescript/credential/issuance/errors.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/mrtd-pop/types.d.ts +0 -201
- package/lib/typescript/credential/issuance/mrtd-pop/types.d.ts.map +0 -1
- package/lib/typescript/credential/issuance/types.d.ts +0 -96
- package/lib/typescript/credential/issuance/types.d.ts.map +0 -1
- package/lib/typescript/credential/offer/01-start-flow.d.ts +0 -172
- package/lib/typescript/credential/offer/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/offer/02-fetch-credential-offer.d.ts +0 -20
- package/lib/typescript/credential/offer/02-fetch-credential-offer.d.ts.map +0 -1
- package/lib/typescript/credential/offer/errors.d.ts +0 -10
- package/lib/typescript/credential/offer/errors.d.ts.map +0 -1
- package/lib/typescript/credential/offer/types.d.ts +0 -264
- package/lib/typescript/credential/offer/types.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/01-start-flow.d.ts +0 -39
- package/lib/typescript/credential/presentation/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts +0 -19
- package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/03-get-request-object.d.ts +0 -19
- package/lib/typescript/credential/presentation/03-get-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/04-retrieve-rp-jwks.d.ts +0 -23
- package/lib/typescript/credential/presentation/04-retrieve-rp-jwks.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/05-verify-request-object.d.ts +0 -21
- package/lib/typescript/credential/presentation/05-verify-request-object.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/06-fetch-presentation-definition.d.ts +0 -21
- package/lib/typescript/credential/presentation/06-fetch-presentation-definition.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts +0 -29
- package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts +0 -97
- package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts +0 -98
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/errors.d.ts +0 -73
- package/lib/typescript/credential/presentation/errors.d.ts.map +0 -1
- package/lib/typescript/credential/presentation/types.d.ts +0 -792
- package/lib/typescript/credential/presentation/types.d.ts.map +0 -1
- package/lib/typescript/credential/status/01-start-flow.d.ts +0 -10
- package/lib/typescript/credential/status/01-start-flow.d.ts.map +0 -1
- package/lib/typescript/credential/status/02-status-assertion.d.ts +0 -24
- package/lib/typescript/credential/status/02-status-assertion.d.ts.map +0 -1
- package/lib/typescript/credential/status/03-verify-and-parse-status-assertion.d.ts +0 -22
- package/lib/typescript/credential/status/03-verify-and-parse-status-assertion.d.ts.map +0 -1
- package/lib/typescript/credential/status/types.d.ts +0 -782
- package/lib/typescript/credential/status/types.d.ts.map +0 -1
- package/lib/typescript/credential/trustmark/get-credential-trustmark.d.ts +0 -52
- package/lib/typescript/credential/trustmark/get-credential-trustmark.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/fetch-and-parse-catalogue.d.ts +0 -15
- package/lib/typescript/credentials-catalogue/fetch-and-parse-catalogue.d.ts.map +0 -1
- package/lib/typescript/credentials-catalogue/types.d.ts +0 -844
- package/lib/typescript/credentials-catalogue/types.d.ts.map +0 -1
- package/lib/typescript/pid/index.d.ts +0 -3
- package/lib/typescript/pid/index.d.ts.map +0 -1
- package/lib/typescript/pid/sd-jwt/converters.d.ts +0 -4
- package/lib/typescript/pid/sd-jwt/converters.d.ts.map +0 -1
- package/lib/typescript/pid/sd-jwt/index.d.ts +0 -50
- package/lib/typescript/pid/sd-jwt/index.d.ts.map +0 -1
- package/lib/typescript/pid/sd-jwt/types.d.ts +0 -196
- package/lib/typescript/pid/sd-jwt/types.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/__test__/converters.test.d.ts +0 -2
- package/lib/typescript/sd-jwt/__test__/converters.test.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/__test__/index.test.d.ts +0 -2
- package/lib/typescript/sd-jwt/__test__/index.test.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/converters.d.ts +0 -3
- package/lib/typescript/sd-jwt/converters.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/errors.d.ts +0 -20
- package/lib/typescript/sd-jwt/errors.d.ts.map +0 -1
- package/lib/typescript/sd-jwt/verifier.d.ts +0 -3
- package/lib/typescript/sd-jwt/verifier.d.ts.map +0 -1
- package/lib/typescript/trust/build-chain.d.ts +0 -1299
- package/lib/typescript/trust/build-chain.d.ts.map +0 -1
- package/lib/typescript/trust/errors.d.ts +0 -103
- package/lib/typescript/trust/errors.d.ts.map +0 -1
- package/lib/typescript/trust/types.d.ts +0 -15945
- package/lib/typescript/trust/types.d.ts.map +0 -1
- package/lib/typescript/trust/utils.d.ts +0 -22
- package/lib/typescript/trust/utils.d.ts.map +0 -1
- package/lib/typescript/trust/verify-chain.d.ts +0 -39
- package/lib/typescript/trust/verify-chain.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts +0 -34
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +0 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +0 -715
- package/lib/typescript/wallet-instance-attestation/types.d.ts.map +0 -1
- package/src/credential/issuance/01-start-flow.ts +0 -11
- package/src/credential/issuance/02-evaluate-issuer-trust.ts +0 -33
- package/src/credential/issuance/03-start-user-authorization.ts +0 -196
- package/src/credential/issuance/04-complete-user-authorization.ts +0 -372
- package/src/credential/issuance/05-authorize-access.ts +0 -129
- package/src/credential/issuance/06-obtain-credential.ts +0 -254
- package/src/credential/issuance/07-verify-and-parse-credential.ts +0 -572
- package/src/credential/issuance/errors.ts +0 -29
- package/src/credential/issuance/mrtd-pop/types.ts +0 -65
- package/src/credential/issuance/types.ts +0 -43
- package/src/credential/offer/01-start-flow.ts +0 -89
- package/src/credential/offer/02-fetch-credential-offer.ts +0 -54
- package/src/credential/offer/errors.ts +0 -17
- package/src/credential/offer/types.ts +0 -59
- package/src/credential/presentation/01-start-flow.ts +0 -42
- package/src/credential/presentation/02-evaluate-rp-trust.ts +0 -34
- package/src/credential/presentation/03-get-request-object.ts +0 -61
- package/src/credential/presentation/04-retrieve-rp-jwks.ts +0 -34
- package/src/credential/presentation/05-verify-request-object.ts +0 -121
- package/src/credential/presentation/06-fetch-presentation-definition.ts +0 -48
- package/src/credential/presentation/07-evaluate-dcql-query.ts +0 -198
- package/src/credential/presentation/07-evaluate-input-descriptor.ts +0 -408
- package/src/credential/presentation/08-send-authorization-response.ts +0 -329
- package/src/credential/presentation/errors.ts +0 -112
- package/src/credential/presentation/types.ts +0 -169
- package/src/credential/status/01-start-flow.ts +0 -9
- package/src/credential/status/02-status-assertion.ts +0 -115
- package/src/credential/status/03-verify-and-parse-status-assertion.ts +0 -110
- package/src/credential/status/types.ts +0 -90
- package/src/credential/trustmark/get-credential-trustmark.ts +0 -139
- package/src/credentials-catalogue/fetch-and-parse-catalogue.ts +0 -54
- package/src/credentials-catalogue/types.ts +0 -97
- package/src/pid/index.ts +0 -2
- package/src/pid/sd-jwt/converters.ts +0 -20
- package/src/pid/sd-jwt/index.ts +0 -74
- package/src/pid/sd-jwt/types.ts +0 -46
- package/src/sd-jwt/__test__/converters.test.ts +0 -27
- package/src/sd-jwt/__test__/index.test.ts +0 -152
- package/src/sd-jwt/converters.ts +0 -24
- package/src/sd-jwt/errors.ts +0 -39
- package/src/sd-jwt/verifier.ts +0 -18
- package/src/trust/build-chain.ts +0 -398
- package/src/trust/errors.ts +0 -138
- package/src/trust/types.ts +0 -259
- package/src/trust/utils.ts +0 -70
- package/src/trust/verify-chain.ts +0 -267
- package/src/wallet-instance-attestation/issuing.ts +0 -164
- package/src/wallet-instance-attestation/types.ts +0 -85
|
@@ -1,1299 +0,0 @@
|
|
|
1
|
-
import { CredentialIssuerEntityConfiguration, EntityConfiguration, RelyingPartyEntityConfiguration, TrustAnchorEntityConfiguration, WalletProviderEntityConfiguration } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Fetch and parse the entity configuration document for a given federation entity.
|
|
4
|
-
* This is an inner method to serve public interfaces.
|
|
5
|
-
*
|
|
6
|
-
* To add another entity configuration type (example: Foo entity type):
|
|
7
|
-
* - create its zod schema and type by inherit from the base type (example: FooEntityConfiguration = BaseEntityConfiguration.and(...))
|
|
8
|
-
* - add such type to EntityConfiguration union
|
|
9
|
-
* - add an overload to this function
|
|
10
|
-
* - create a public function which use such type (example: getFooEntityConfiguration = (url, options) => Promise<FooEntityConfiguration>)
|
|
11
|
-
*
|
|
12
|
-
* @param entityBaseUrl The base url of the entity.
|
|
13
|
-
* @param schema The expected schema of the entity configuration, according to the kind of entity we are fetching from.
|
|
14
|
-
* @param options An optional object with additional options.
|
|
15
|
-
* @param options.appFetch An optional instance of the http client to be used.
|
|
16
|
-
* @returns The parsed entity configuration object
|
|
17
|
-
* @throws {IoWalletError} If the http request fails
|
|
18
|
-
* @throws Parse error if the document is not in the expected shape.
|
|
19
|
-
*/
|
|
20
|
-
declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof WalletProviderEntityConfiguration, options?: {
|
|
21
|
-
appFetch?: GlobalFetch["fetch"];
|
|
22
|
-
}): Promise<WalletProviderEntityConfiguration>;
|
|
23
|
-
declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof RelyingPartyEntityConfiguration, options?: {
|
|
24
|
-
appFetch?: GlobalFetch["fetch"];
|
|
25
|
-
}): Promise<RelyingPartyEntityConfiguration>;
|
|
26
|
-
declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof TrustAnchorEntityConfiguration, options?: {
|
|
27
|
-
appFetch?: GlobalFetch["fetch"];
|
|
28
|
-
}): Promise<TrustAnchorEntityConfiguration>;
|
|
29
|
-
declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof CredentialIssuerEntityConfiguration, options?: {
|
|
30
|
-
appFetch?: GlobalFetch["fetch"];
|
|
31
|
-
}): Promise<CredentialIssuerEntityConfiguration>;
|
|
32
|
-
declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof EntityConfiguration, options?: {
|
|
33
|
-
appFetch?: GlobalFetch["fetch"];
|
|
34
|
-
}): Promise<EntityConfiguration>;
|
|
35
|
-
export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
|
36
|
-
header: {
|
|
37
|
-
alg: string;
|
|
38
|
-
kid: string;
|
|
39
|
-
typ: "entity-statement+jwt";
|
|
40
|
-
};
|
|
41
|
-
payload: {
|
|
42
|
-
iss: string;
|
|
43
|
-
sub: string;
|
|
44
|
-
iat: number;
|
|
45
|
-
exp: number;
|
|
46
|
-
jwks: {
|
|
47
|
-
keys: {
|
|
48
|
-
kty: "RSA" | "EC";
|
|
49
|
-
alg?: string | undefined;
|
|
50
|
-
crv?: string | undefined;
|
|
51
|
-
d?: string | undefined;
|
|
52
|
-
dp?: string | undefined;
|
|
53
|
-
dq?: string | undefined;
|
|
54
|
-
e?: string | undefined;
|
|
55
|
-
ext?: boolean | undefined;
|
|
56
|
-
k?: string | undefined;
|
|
57
|
-
key_ops?: string[] | undefined;
|
|
58
|
-
kid?: string | undefined;
|
|
59
|
-
n?: string | undefined;
|
|
60
|
-
p?: string | undefined;
|
|
61
|
-
q?: string | undefined;
|
|
62
|
-
qi?: string | undefined;
|
|
63
|
-
use?: string | undefined;
|
|
64
|
-
x?: string | undefined;
|
|
65
|
-
y?: string | undefined;
|
|
66
|
-
x5c?: string[] | undefined;
|
|
67
|
-
x5t?: string | undefined;
|
|
68
|
-
"x5t#S256"?: string | undefined;
|
|
69
|
-
x5u?: string | undefined;
|
|
70
|
-
}[];
|
|
71
|
-
};
|
|
72
|
-
metadata: {
|
|
73
|
-
federation_entity: {
|
|
74
|
-
federation_fetch_endpoint?: string | undefined;
|
|
75
|
-
federation_list_endpoint?: string | undefined;
|
|
76
|
-
federation_resolve_endpoint?: string | undefined;
|
|
77
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
78
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
79
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
80
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
81
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
82
|
-
organization_name?: string | undefined;
|
|
83
|
-
homepage_uri?: string | undefined;
|
|
84
|
-
policy_uri?: string | undefined;
|
|
85
|
-
logo_uri?: string | undefined;
|
|
86
|
-
contacts?: string[] | undefined;
|
|
87
|
-
} & {
|
|
88
|
-
[k: string]: unknown;
|
|
89
|
-
};
|
|
90
|
-
} & {
|
|
91
|
-
[k: string]: unknown;
|
|
92
|
-
};
|
|
93
|
-
authority_hints?: string[] | undefined;
|
|
94
|
-
} & {
|
|
95
|
-
[k: string]: unknown;
|
|
96
|
-
};
|
|
97
|
-
} & {
|
|
98
|
-
payload: {
|
|
99
|
-
metadata: {
|
|
100
|
-
wallet_provider: {
|
|
101
|
-
jwks: {
|
|
102
|
-
keys: {
|
|
103
|
-
kty: "RSA" | "EC";
|
|
104
|
-
alg?: string | undefined;
|
|
105
|
-
crv?: string | undefined;
|
|
106
|
-
d?: string | undefined;
|
|
107
|
-
dp?: string | undefined;
|
|
108
|
-
dq?: string | undefined;
|
|
109
|
-
e?: string | undefined;
|
|
110
|
-
ext?: boolean | undefined;
|
|
111
|
-
k?: string | undefined;
|
|
112
|
-
key_ops?: string[] | undefined;
|
|
113
|
-
kid?: string | undefined;
|
|
114
|
-
n?: string | undefined;
|
|
115
|
-
p?: string | undefined;
|
|
116
|
-
q?: string | undefined;
|
|
117
|
-
qi?: string | undefined;
|
|
118
|
-
use?: string | undefined;
|
|
119
|
-
x?: string | undefined;
|
|
120
|
-
y?: string | undefined;
|
|
121
|
-
x5c?: string[] | undefined;
|
|
122
|
-
x5t?: string | undefined;
|
|
123
|
-
"x5t#S256"?: string | undefined;
|
|
124
|
-
x5u?: string | undefined;
|
|
125
|
-
}[];
|
|
126
|
-
};
|
|
127
|
-
token_endpoint: string;
|
|
128
|
-
grant_types_supported: string[];
|
|
129
|
-
token_endpoint_auth_methods_supported: string[];
|
|
130
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
131
|
-
aal_values_supported?: string[] | undefined;
|
|
132
|
-
} & {
|
|
133
|
-
[k: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}>;
|
|
138
|
-
export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
|
139
|
-
header: {
|
|
140
|
-
alg: string;
|
|
141
|
-
kid: string;
|
|
142
|
-
typ: "entity-statement+jwt";
|
|
143
|
-
};
|
|
144
|
-
payload: {
|
|
145
|
-
iss: string;
|
|
146
|
-
sub: string;
|
|
147
|
-
iat: number;
|
|
148
|
-
exp: number;
|
|
149
|
-
jwks: {
|
|
150
|
-
keys: {
|
|
151
|
-
kty: "RSA" | "EC";
|
|
152
|
-
alg?: string | undefined;
|
|
153
|
-
crv?: string | undefined;
|
|
154
|
-
d?: string | undefined;
|
|
155
|
-
dp?: string | undefined;
|
|
156
|
-
dq?: string | undefined;
|
|
157
|
-
e?: string | undefined;
|
|
158
|
-
ext?: boolean | undefined;
|
|
159
|
-
k?: string | undefined;
|
|
160
|
-
key_ops?: string[] | undefined;
|
|
161
|
-
kid?: string | undefined;
|
|
162
|
-
n?: string | undefined;
|
|
163
|
-
p?: string | undefined;
|
|
164
|
-
q?: string | undefined;
|
|
165
|
-
qi?: string | undefined;
|
|
166
|
-
use?: string | undefined;
|
|
167
|
-
x?: string | undefined;
|
|
168
|
-
y?: string | undefined;
|
|
169
|
-
x5c?: string[] | undefined;
|
|
170
|
-
x5t?: string | undefined;
|
|
171
|
-
"x5t#S256"?: string | undefined;
|
|
172
|
-
x5u?: string | undefined;
|
|
173
|
-
}[];
|
|
174
|
-
};
|
|
175
|
-
metadata: {
|
|
176
|
-
federation_entity: {
|
|
177
|
-
federation_fetch_endpoint?: string | undefined;
|
|
178
|
-
federation_list_endpoint?: string | undefined;
|
|
179
|
-
federation_resolve_endpoint?: string | undefined;
|
|
180
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
181
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
182
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
183
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
184
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
185
|
-
organization_name?: string | undefined;
|
|
186
|
-
homepage_uri?: string | undefined;
|
|
187
|
-
policy_uri?: string | undefined;
|
|
188
|
-
logo_uri?: string | undefined;
|
|
189
|
-
contacts?: string[] | undefined;
|
|
190
|
-
} & {
|
|
191
|
-
[k: string]: unknown;
|
|
192
|
-
};
|
|
193
|
-
} & {
|
|
194
|
-
[k: string]: unknown;
|
|
195
|
-
};
|
|
196
|
-
authority_hints?: string[] | undefined;
|
|
197
|
-
} & {
|
|
198
|
-
[k: string]: unknown;
|
|
199
|
-
};
|
|
200
|
-
} & {
|
|
201
|
-
payload: {
|
|
202
|
-
jwks: {
|
|
203
|
-
keys: {
|
|
204
|
-
kty: "RSA" | "EC";
|
|
205
|
-
alg?: string | undefined;
|
|
206
|
-
crv?: string | undefined;
|
|
207
|
-
d?: string | undefined;
|
|
208
|
-
dp?: string | undefined;
|
|
209
|
-
dq?: string | undefined;
|
|
210
|
-
e?: string | undefined;
|
|
211
|
-
ext?: boolean | undefined;
|
|
212
|
-
k?: string | undefined;
|
|
213
|
-
key_ops?: string[] | undefined;
|
|
214
|
-
kid?: string | undefined;
|
|
215
|
-
n?: string | undefined;
|
|
216
|
-
p?: string | undefined;
|
|
217
|
-
q?: string | undefined;
|
|
218
|
-
qi?: string | undefined;
|
|
219
|
-
use?: string | undefined;
|
|
220
|
-
x?: string | undefined;
|
|
221
|
-
y?: string | undefined;
|
|
222
|
-
x5c?: string[] | undefined;
|
|
223
|
-
x5t?: string | undefined;
|
|
224
|
-
"x5t#S256"?: string | undefined;
|
|
225
|
-
x5u?: string | undefined;
|
|
226
|
-
}[];
|
|
227
|
-
};
|
|
228
|
-
metadata: {
|
|
229
|
-
openid_credential_issuer: {
|
|
230
|
-
jwks: {
|
|
231
|
-
keys: {
|
|
232
|
-
kty: "RSA" | "EC";
|
|
233
|
-
alg?: string | undefined;
|
|
234
|
-
crv?: string | undefined;
|
|
235
|
-
d?: string | undefined;
|
|
236
|
-
dp?: string | undefined;
|
|
237
|
-
dq?: string | undefined;
|
|
238
|
-
e?: string | undefined;
|
|
239
|
-
ext?: boolean | undefined;
|
|
240
|
-
k?: string | undefined;
|
|
241
|
-
key_ops?: string[] | undefined;
|
|
242
|
-
kid?: string | undefined;
|
|
243
|
-
n?: string | undefined;
|
|
244
|
-
p?: string | undefined;
|
|
245
|
-
q?: string | undefined;
|
|
246
|
-
qi?: string | undefined;
|
|
247
|
-
use?: string | undefined;
|
|
248
|
-
x?: string | undefined;
|
|
249
|
-
y?: string | undefined;
|
|
250
|
-
x5c?: string[] | undefined;
|
|
251
|
-
x5t?: string | undefined;
|
|
252
|
-
"x5t#S256"?: string | undefined;
|
|
253
|
-
x5u?: string | undefined;
|
|
254
|
-
}[];
|
|
255
|
-
};
|
|
256
|
-
display: {
|
|
257
|
-
name: string;
|
|
258
|
-
locale: string;
|
|
259
|
-
}[];
|
|
260
|
-
credential_issuer: string;
|
|
261
|
-
credential_endpoint: string;
|
|
262
|
-
nonce_endpoint: string;
|
|
263
|
-
status_attestation_endpoint: string;
|
|
264
|
-
credential_configurations_supported: Record<string, ({
|
|
265
|
-
vct: string;
|
|
266
|
-
format: "dc+sd-jwt";
|
|
267
|
-
} | {
|
|
268
|
-
format: "mso_mdoc";
|
|
269
|
-
doctype: string;
|
|
270
|
-
}) & {
|
|
271
|
-
scope: string;
|
|
272
|
-
display: {
|
|
273
|
-
name: string;
|
|
274
|
-
locale: string;
|
|
275
|
-
}[];
|
|
276
|
-
claims: {
|
|
277
|
-
path: (string | number | null)[];
|
|
278
|
-
display: {
|
|
279
|
-
name: string;
|
|
280
|
-
locale: string;
|
|
281
|
-
}[];
|
|
282
|
-
}[];
|
|
283
|
-
cryptographic_binding_methods_supported: string[];
|
|
284
|
-
credential_signing_alg_values_supported: string[];
|
|
285
|
-
authentic_source?: string | undefined;
|
|
286
|
-
issuance_errors_supported?: Record<string, {
|
|
287
|
-
display: {
|
|
288
|
-
description: string;
|
|
289
|
-
locale: string;
|
|
290
|
-
title: string;
|
|
291
|
-
}[];
|
|
292
|
-
}> | undefined;
|
|
293
|
-
}>;
|
|
294
|
-
trust_frameworks_supported: string[];
|
|
295
|
-
evidence_supported: string[];
|
|
296
|
-
revocation_endpoint?: string | undefined;
|
|
297
|
-
};
|
|
298
|
-
oauth_authorization_server: {
|
|
299
|
-
request_object_signing_alg_values_supported: string[];
|
|
300
|
-
jwks: {
|
|
301
|
-
keys: {
|
|
302
|
-
kty: "RSA" | "EC";
|
|
303
|
-
alg?: string | undefined;
|
|
304
|
-
crv?: string | undefined;
|
|
305
|
-
d?: string | undefined;
|
|
306
|
-
dp?: string | undefined;
|
|
307
|
-
dq?: string | undefined;
|
|
308
|
-
e?: string | undefined;
|
|
309
|
-
ext?: boolean | undefined;
|
|
310
|
-
k?: string | undefined;
|
|
311
|
-
key_ops?: string[] | undefined;
|
|
312
|
-
kid?: string | undefined;
|
|
313
|
-
n?: string | undefined;
|
|
314
|
-
p?: string | undefined;
|
|
315
|
-
q?: string | undefined;
|
|
316
|
-
qi?: string | undefined;
|
|
317
|
-
use?: string | undefined;
|
|
318
|
-
x?: string | undefined;
|
|
319
|
-
y?: string | undefined;
|
|
320
|
-
x5c?: string[] | undefined;
|
|
321
|
-
x5t?: string | undefined;
|
|
322
|
-
"x5t#S256"?: string | undefined;
|
|
323
|
-
x5u?: string | undefined;
|
|
324
|
-
}[];
|
|
325
|
-
};
|
|
326
|
-
authorization_endpoint: string;
|
|
327
|
-
pushed_authorization_request_endpoint: string;
|
|
328
|
-
token_endpoint: string;
|
|
329
|
-
client_registration_types_supported: string[];
|
|
330
|
-
code_challenge_methods_supported: string[];
|
|
331
|
-
acr_values_supported: string[];
|
|
332
|
-
grant_types_supported: string[];
|
|
333
|
-
issuer: string;
|
|
334
|
-
scopes_supported: string[];
|
|
335
|
-
response_modes_supported: string[];
|
|
336
|
-
token_endpoint_auth_methods_supported: string[];
|
|
337
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
338
|
-
};
|
|
339
|
-
openid_credential_verifier?: {
|
|
340
|
-
jwks: {
|
|
341
|
-
keys: {
|
|
342
|
-
kty: "RSA" | "EC";
|
|
343
|
-
alg?: string | undefined;
|
|
344
|
-
crv?: string | undefined;
|
|
345
|
-
d?: string | undefined;
|
|
346
|
-
dp?: string | undefined;
|
|
347
|
-
dq?: string | undefined;
|
|
348
|
-
e?: string | undefined;
|
|
349
|
-
ext?: boolean | undefined;
|
|
350
|
-
k?: string | undefined;
|
|
351
|
-
key_ops?: string[] | undefined;
|
|
352
|
-
kid?: string | undefined;
|
|
353
|
-
n?: string | undefined;
|
|
354
|
-
p?: string | undefined;
|
|
355
|
-
q?: string | undefined;
|
|
356
|
-
qi?: string | undefined;
|
|
357
|
-
use?: string | undefined;
|
|
358
|
-
x?: string | undefined;
|
|
359
|
-
y?: string | undefined;
|
|
360
|
-
x5c?: string[] | undefined;
|
|
361
|
-
x5t?: string | undefined;
|
|
362
|
-
"x5t#S256"?: string | undefined;
|
|
363
|
-
x5u?: string | undefined;
|
|
364
|
-
}[];
|
|
365
|
-
};
|
|
366
|
-
application_type?: string | undefined;
|
|
367
|
-
client_id?: string | undefined;
|
|
368
|
-
client_name?: string | undefined;
|
|
369
|
-
contacts?: string[] | undefined;
|
|
370
|
-
presentation_definition?: {
|
|
371
|
-
id: string;
|
|
372
|
-
input_descriptors: {
|
|
373
|
-
id: string;
|
|
374
|
-
constraints: {
|
|
375
|
-
fields?: {
|
|
376
|
-
path: string[];
|
|
377
|
-
id?: string | undefined;
|
|
378
|
-
purpose?: string | undefined;
|
|
379
|
-
name?: string | undefined;
|
|
380
|
-
filter?: any;
|
|
381
|
-
optional?: boolean | undefined;
|
|
382
|
-
intent_to_retain?: boolean | undefined;
|
|
383
|
-
}[] | undefined;
|
|
384
|
-
limit_disclosure?: "required" | "preferred" | undefined;
|
|
385
|
-
};
|
|
386
|
-
name?: string | undefined;
|
|
387
|
-
purpose?: string | undefined;
|
|
388
|
-
format?: Record<string, any> | undefined;
|
|
389
|
-
group?: string | undefined;
|
|
390
|
-
}[];
|
|
391
|
-
name?: string | undefined;
|
|
392
|
-
purpose?: string | undefined;
|
|
393
|
-
submission_requirements?: {
|
|
394
|
-
rule: string;
|
|
395
|
-
name?: string | undefined;
|
|
396
|
-
purpose?: string | undefined;
|
|
397
|
-
from?: string | undefined;
|
|
398
|
-
from_nested?: {
|
|
399
|
-
rule: string;
|
|
400
|
-
from: string;
|
|
401
|
-
name?: string | undefined;
|
|
402
|
-
purpose?: string | undefined;
|
|
403
|
-
}[] | undefined;
|
|
404
|
-
count?: number | undefined;
|
|
405
|
-
}[] | undefined;
|
|
406
|
-
} | undefined;
|
|
407
|
-
request_uris?: string[] | undefined;
|
|
408
|
-
authorization_signed_response_alg?: string | undefined;
|
|
409
|
-
authorization_encrypted_response_alg?: string | undefined;
|
|
410
|
-
authorization_encrypted_response_enc?: string | undefined;
|
|
411
|
-
} | undefined;
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
}>;
|
|
415
|
-
export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
|
416
|
-
header: {
|
|
417
|
-
alg: string;
|
|
418
|
-
kid: string;
|
|
419
|
-
typ: "entity-statement+jwt";
|
|
420
|
-
};
|
|
421
|
-
payload: {
|
|
422
|
-
iss: string;
|
|
423
|
-
sub: string;
|
|
424
|
-
iat: number;
|
|
425
|
-
exp: number;
|
|
426
|
-
jwks: {
|
|
427
|
-
keys: {
|
|
428
|
-
kty: "RSA" | "EC";
|
|
429
|
-
alg?: string | undefined;
|
|
430
|
-
crv?: string | undefined;
|
|
431
|
-
d?: string | undefined;
|
|
432
|
-
dp?: string | undefined;
|
|
433
|
-
dq?: string | undefined;
|
|
434
|
-
e?: string | undefined;
|
|
435
|
-
ext?: boolean | undefined;
|
|
436
|
-
k?: string | undefined;
|
|
437
|
-
key_ops?: string[] | undefined;
|
|
438
|
-
kid?: string | undefined;
|
|
439
|
-
n?: string | undefined;
|
|
440
|
-
p?: string | undefined;
|
|
441
|
-
q?: string | undefined;
|
|
442
|
-
qi?: string | undefined;
|
|
443
|
-
use?: string | undefined;
|
|
444
|
-
x?: string | undefined;
|
|
445
|
-
y?: string | undefined;
|
|
446
|
-
x5c?: string[] | undefined;
|
|
447
|
-
x5t?: string | undefined;
|
|
448
|
-
"x5t#S256"?: string | undefined;
|
|
449
|
-
x5u?: string | undefined;
|
|
450
|
-
}[];
|
|
451
|
-
};
|
|
452
|
-
metadata: {
|
|
453
|
-
federation_entity: {
|
|
454
|
-
federation_fetch_endpoint?: string | undefined;
|
|
455
|
-
federation_list_endpoint?: string | undefined;
|
|
456
|
-
federation_resolve_endpoint?: string | undefined;
|
|
457
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
458
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
459
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
460
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
461
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
462
|
-
organization_name?: string | undefined;
|
|
463
|
-
homepage_uri?: string | undefined;
|
|
464
|
-
policy_uri?: string | undefined;
|
|
465
|
-
logo_uri?: string | undefined;
|
|
466
|
-
contacts?: string[] | undefined;
|
|
467
|
-
} & {
|
|
468
|
-
[k: string]: unknown;
|
|
469
|
-
};
|
|
470
|
-
} & {
|
|
471
|
-
[k: string]: unknown;
|
|
472
|
-
};
|
|
473
|
-
authority_hints?: string[] | undefined;
|
|
474
|
-
} & {
|
|
475
|
-
[k: string]: unknown;
|
|
476
|
-
};
|
|
477
|
-
}>;
|
|
478
|
-
export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
|
479
|
-
header: {
|
|
480
|
-
alg: string;
|
|
481
|
-
kid: string;
|
|
482
|
-
typ: "entity-statement+jwt";
|
|
483
|
-
};
|
|
484
|
-
payload: {
|
|
485
|
-
iss: string;
|
|
486
|
-
sub: string;
|
|
487
|
-
iat: number;
|
|
488
|
-
exp: number;
|
|
489
|
-
jwks: {
|
|
490
|
-
keys: {
|
|
491
|
-
kty: "RSA" | "EC";
|
|
492
|
-
alg?: string | undefined;
|
|
493
|
-
crv?: string | undefined;
|
|
494
|
-
d?: string | undefined;
|
|
495
|
-
dp?: string | undefined;
|
|
496
|
-
dq?: string | undefined;
|
|
497
|
-
e?: string | undefined;
|
|
498
|
-
ext?: boolean | undefined;
|
|
499
|
-
k?: string | undefined;
|
|
500
|
-
key_ops?: string[] | undefined;
|
|
501
|
-
kid?: string | undefined;
|
|
502
|
-
n?: string | undefined;
|
|
503
|
-
p?: string | undefined;
|
|
504
|
-
q?: string | undefined;
|
|
505
|
-
qi?: string | undefined;
|
|
506
|
-
use?: string | undefined;
|
|
507
|
-
x?: string | undefined;
|
|
508
|
-
y?: string | undefined;
|
|
509
|
-
x5c?: string[] | undefined;
|
|
510
|
-
x5t?: string | undefined;
|
|
511
|
-
"x5t#S256"?: string | undefined;
|
|
512
|
-
x5u?: string | undefined;
|
|
513
|
-
}[];
|
|
514
|
-
};
|
|
515
|
-
metadata: {
|
|
516
|
-
federation_entity: {
|
|
517
|
-
federation_fetch_endpoint?: string | undefined;
|
|
518
|
-
federation_list_endpoint?: string | undefined;
|
|
519
|
-
federation_resolve_endpoint?: string | undefined;
|
|
520
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
521
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
522
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
523
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
524
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
525
|
-
organization_name?: string | undefined;
|
|
526
|
-
homepage_uri?: string | undefined;
|
|
527
|
-
policy_uri?: string | undefined;
|
|
528
|
-
logo_uri?: string | undefined;
|
|
529
|
-
contacts?: string[] | undefined;
|
|
530
|
-
} & {
|
|
531
|
-
[k: string]: unknown;
|
|
532
|
-
};
|
|
533
|
-
} & {
|
|
534
|
-
[k: string]: unknown;
|
|
535
|
-
};
|
|
536
|
-
authority_hints?: string[] | undefined;
|
|
537
|
-
} & {
|
|
538
|
-
[k: string]: unknown;
|
|
539
|
-
};
|
|
540
|
-
} & {
|
|
541
|
-
payload: {
|
|
542
|
-
metadata: {
|
|
543
|
-
openid_credential_verifier: {
|
|
544
|
-
jwks: {
|
|
545
|
-
keys: {
|
|
546
|
-
kty: "RSA" | "EC";
|
|
547
|
-
alg?: string | undefined;
|
|
548
|
-
crv?: string | undefined;
|
|
549
|
-
d?: string | undefined;
|
|
550
|
-
dp?: string | undefined;
|
|
551
|
-
dq?: string | undefined;
|
|
552
|
-
e?: string | undefined;
|
|
553
|
-
ext?: boolean | undefined;
|
|
554
|
-
k?: string | undefined;
|
|
555
|
-
key_ops?: string[] | undefined;
|
|
556
|
-
kid?: string | undefined;
|
|
557
|
-
n?: string | undefined;
|
|
558
|
-
p?: string | undefined;
|
|
559
|
-
q?: string | undefined;
|
|
560
|
-
qi?: string | undefined;
|
|
561
|
-
use?: string | undefined;
|
|
562
|
-
x?: string | undefined;
|
|
563
|
-
y?: string | undefined;
|
|
564
|
-
x5c?: string[] | undefined;
|
|
565
|
-
x5t?: string | undefined;
|
|
566
|
-
"x5t#S256"?: string | undefined;
|
|
567
|
-
x5u?: string | undefined;
|
|
568
|
-
}[];
|
|
569
|
-
};
|
|
570
|
-
application_type?: string | undefined;
|
|
571
|
-
client_id?: string | undefined;
|
|
572
|
-
client_name?: string | undefined;
|
|
573
|
-
contacts?: string[] | undefined;
|
|
574
|
-
presentation_definition?: {
|
|
575
|
-
id: string;
|
|
576
|
-
input_descriptors: {
|
|
577
|
-
id: string;
|
|
578
|
-
constraints: {
|
|
579
|
-
fields?: {
|
|
580
|
-
path: string[];
|
|
581
|
-
id?: string | undefined;
|
|
582
|
-
purpose?: string | undefined;
|
|
583
|
-
name?: string | undefined;
|
|
584
|
-
filter?: any;
|
|
585
|
-
optional?: boolean | undefined;
|
|
586
|
-
intent_to_retain?: boolean | undefined;
|
|
587
|
-
}[] | undefined;
|
|
588
|
-
limit_disclosure?: "required" | "preferred" | undefined;
|
|
589
|
-
};
|
|
590
|
-
name?: string | undefined;
|
|
591
|
-
purpose?: string | undefined;
|
|
592
|
-
format?: Record<string, any> | undefined;
|
|
593
|
-
group?: string | undefined;
|
|
594
|
-
}[];
|
|
595
|
-
name?: string | undefined;
|
|
596
|
-
purpose?: string | undefined;
|
|
597
|
-
submission_requirements?: {
|
|
598
|
-
rule: string;
|
|
599
|
-
name?: string | undefined;
|
|
600
|
-
purpose?: string | undefined;
|
|
601
|
-
from?: string | undefined;
|
|
602
|
-
from_nested?: {
|
|
603
|
-
rule: string;
|
|
604
|
-
from: string;
|
|
605
|
-
name?: string | undefined;
|
|
606
|
-
purpose?: string | undefined;
|
|
607
|
-
}[] | undefined;
|
|
608
|
-
count?: number | undefined;
|
|
609
|
-
}[] | undefined;
|
|
610
|
-
} | undefined;
|
|
611
|
-
request_uris?: string[] | undefined;
|
|
612
|
-
authorization_signed_response_alg?: string | undefined;
|
|
613
|
-
authorization_encrypted_response_alg?: string | undefined;
|
|
614
|
-
authorization_encrypted_response_enc?: string | undefined;
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
}>;
|
|
619
|
-
export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
|
620
|
-
header: {
|
|
621
|
-
alg: string;
|
|
622
|
-
kid: string;
|
|
623
|
-
typ: "entity-statement+jwt";
|
|
624
|
-
};
|
|
625
|
-
payload: {
|
|
626
|
-
iss: string;
|
|
627
|
-
sub: string;
|
|
628
|
-
iat: number;
|
|
629
|
-
exp: number;
|
|
630
|
-
jwks: {
|
|
631
|
-
keys: {
|
|
632
|
-
kty: "RSA" | "EC";
|
|
633
|
-
alg?: string | undefined;
|
|
634
|
-
crv?: string | undefined;
|
|
635
|
-
d?: string | undefined;
|
|
636
|
-
dp?: string | undefined;
|
|
637
|
-
dq?: string | undefined;
|
|
638
|
-
e?: string | undefined;
|
|
639
|
-
ext?: boolean | undefined;
|
|
640
|
-
k?: string | undefined;
|
|
641
|
-
key_ops?: string[] | undefined;
|
|
642
|
-
kid?: string | undefined;
|
|
643
|
-
n?: string | undefined;
|
|
644
|
-
p?: string | undefined;
|
|
645
|
-
q?: string | undefined;
|
|
646
|
-
qi?: string | undefined;
|
|
647
|
-
use?: string | undefined;
|
|
648
|
-
x?: string | undefined;
|
|
649
|
-
y?: string | undefined;
|
|
650
|
-
x5c?: string[] | undefined;
|
|
651
|
-
x5t?: string | undefined;
|
|
652
|
-
"x5t#S256"?: string | undefined;
|
|
653
|
-
x5u?: string | undefined;
|
|
654
|
-
}[];
|
|
655
|
-
};
|
|
656
|
-
metadata: {
|
|
657
|
-
federation_entity: {
|
|
658
|
-
federation_fetch_endpoint?: string | undefined;
|
|
659
|
-
federation_list_endpoint?: string | undefined;
|
|
660
|
-
federation_resolve_endpoint?: string | undefined;
|
|
661
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
662
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
663
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
664
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
665
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
666
|
-
organization_name?: string | undefined;
|
|
667
|
-
homepage_uri?: string | undefined;
|
|
668
|
-
policy_uri?: string | undefined;
|
|
669
|
-
logo_uri?: string | undefined;
|
|
670
|
-
contacts?: string[] | undefined;
|
|
671
|
-
} & {
|
|
672
|
-
[k: string]: unknown;
|
|
673
|
-
};
|
|
674
|
-
} & {
|
|
675
|
-
[k: string]: unknown;
|
|
676
|
-
};
|
|
677
|
-
authority_hints?: string[] | undefined;
|
|
678
|
-
} & {
|
|
679
|
-
[k: string]: unknown;
|
|
680
|
-
};
|
|
681
|
-
} | ({
|
|
682
|
-
header: {
|
|
683
|
-
alg: string;
|
|
684
|
-
kid: string;
|
|
685
|
-
typ: "entity-statement+jwt";
|
|
686
|
-
};
|
|
687
|
-
payload: {
|
|
688
|
-
iss: string;
|
|
689
|
-
sub: string;
|
|
690
|
-
iat: number;
|
|
691
|
-
exp: number;
|
|
692
|
-
jwks: {
|
|
693
|
-
keys: {
|
|
694
|
-
kty: "RSA" | "EC";
|
|
695
|
-
alg?: string | undefined;
|
|
696
|
-
crv?: string | undefined;
|
|
697
|
-
d?: string | undefined;
|
|
698
|
-
dp?: string | undefined;
|
|
699
|
-
dq?: string | undefined;
|
|
700
|
-
e?: string | undefined;
|
|
701
|
-
ext?: boolean | undefined;
|
|
702
|
-
k?: string | undefined;
|
|
703
|
-
key_ops?: string[] | undefined;
|
|
704
|
-
kid?: string | undefined;
|
|
705
|
-
n?: string | undefined;
|
|
706
|
-
p?: string | undefined;
|
|
707
|
-
q?: string | undefined;
|
|
708
|
-
qi?: string | undefined;
|
|
709
|
-
use?: string | undefined;
|
|
710
|
-
x?: string | undefined;
|
|
711
|
-
y?: string | undefined;
|
|
712
|
-
x5c?: string[] | undefined;
|
|
713
|
-
x5t?: string | undefined;
|
|
714
|
-
"x5t#S256"?: string | undefined;
|
|
715
|
-
x5u?: string | undefined;
|
|
716
|
-
}[];
|
|
717
|
-
};
|
|
718
|
-
metadata: {
|
|
719
|
-
federation_entity: {
|
|
720
|
-
federation_fetch_endpoint?: string | undefined;
|
|
721
|
-
federation_list_endpoint?: string | undefined;
|
|
722
|
-
federation_resolve_endpoint?: string | undefined;
|
|
723
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
724
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
725
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
726
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
727
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
728
|
-
organization_name?: string | undefined;
|
|
729
|
-
homepage_uri?: string | undefined;
|
|
730
|
-
policy_uri?: string | undefined;
|
|
731
|
-
logo_uri?: string | undefined;
|
|
732
|
-
contacts?: string[] | undefined;
|
|
733
|
-
} & {
|
|
734
|
-
[k: string]: unknown;
|
|
735
|
-
};
|
|
736
|
-
} & {
|
|
737
|
-
[k: string]: unknown;
|
|
738
|
-
};
|
|
739
|
-
authority_hints?: string[] | undefined;
|
|
740
|
-
} & {
|
|
741
|
-
[k: string]: unknown;
|
|
742
|
-
};
|
|
743
|
-
} & {
|
|
744
|
-
payload: {
|
|
745
|
-
jwks: {
|
|
746
|
-
keys: {
|
|
747
|
-
kty: "RSA" | "EC";
|
|
748
|
-
alg?: string | undefined;
|
|
749
|
-
crv?: string | undefined;
|
|
750
|
-
d?: string | undefined;
|
|
751
|
-
dp?: string | undefined;
|
|
752
|
-
dq?: string | undefined;
|
|
753
|
-
e?: string | undefined;
|
|
754
|
-
ext?: boolean | undefined;
|
|
755
|
-
k?: string | undefined;
|
|
756
|
-
key_ops?: string[] | undefined;
|
|
757
|
-
kid?: string | undefined;
|
|
758
|
-
n?: string | undefined;
|
|
759
|
-
p?: string | undefined;
|
|
760
|
-
q?: string | undefined;
|
|
761
|
-
qi?: string | undefined;
|
|
762
|
-
use?: string | undefined;
|
|
763
|
-
x?: string | undefined;
|
|
764
|
-
y?: string | undefined;
|
|
765
|
-
x5c?: string[] | undefined;
|
|
766
|
-
x5t?: string | undefined;
|
|
767
|
-
"x5t#S256"?: string | undefined;
|
|
768
|
-
x5u?: string | undefined;
|
|
769
|
-
}[];
|
|
770
|
-
};
|
|
771
|
-
metadata: {
|
|
772
|
-
openid_credential_issuer: {
|
|
773
|
-
jwks: {
|
|
774
|
-
keys: {
|
|
775
|
-
kty: "RSA" | "EC";
|
|
776
|
-
alg?: string | undefined;
|
|
777
|
-
crv?: string | undefined;
|
|
778
|
-
d?: string | undefined;
|
|
779
|
-
dp?: string | undefined;
|
|
780
|
-
dq?: string | undefined;
|
|
781
|
-
e?: string | undefined;
|
|
782
|
-
ext?: boolean | undefined;
|
|
783
|
-
k?: string | undefined;
|
|
784
|
-
key_ops?: string[] | undefined;
|
|
785
|
-
kid?: string | undefined;
|
|
786
|
-
n?: string | undefined;
|
|
787
|
-
p?: string | undefined;
|
|
788
|
-
q?: string | undefined;
|
|
789
|
-
qi?: string | undefined;
|
|
790
|
-
use?: string | undefined;
|
|
791
|
-
x?: string | undefined;
|
|
792
|
-
y?: string | undefined;
|
|
793
|
-
x5c?: string[] | undefined;
|
|
794
|
-
x5t?: string | undefined;
|
|
795
|
-
"x5t#S256"?: string | undefined;
|
|
796
|
-
x5u?: string | undefined;
|
|
797
|
-
}[];
|
|
798
|
-
};
|
|
799
|
-
display: {
|
|
800
|
-
name: string;
|
|
801
|
-
locale: string;
|
|
802
|
-
}[];
|
|
803
|
-
credential_issuer: string;
|
|
804
|
-
credential_endpoint: string;
|
|
805
|
-
nonce_endpoint: string;
|
|
806
|
-
status_attestation_endpoint: string;
|
|
807
|
-
credential_configurations_supported: Record<string, ({
|
|
808
|
-
vct: string;
|
|
809
|
-
format: "dc+sd-jwt";
|
|
810
|
-
} | {
|
|
811
|
-
format: "mso_mdoc";
|
|
812
|
-
doctype: string;
|
|
813
|
-
}) & {
|
|
814
|
-
scope: string;
|
|
815
|
-
display: {
|
|
816
|
-
name: string;
|
|
817
|
-
locale: string;
|
|
818
|
-
}[];
|
|
819
|
-
claims: {
|
|
820
|
-
path: (string | number | null)[];
|
|
821
|
-
display: {
|
|
822
|
-
name: string;
|
|
823
|
-
locale: string;
|
|
824
|
-
}[];
|
|
825
|
-
}[];
|
|
826
|
-
cryptographic_binding_methods_supported: string[];
|
|
827
|
-
credential_signing_alg_values_supported: string[];
|
|
828
|
-
authentic_source?: string | undefined;
|
|
829
|
-
issuance_errors_supported?: Record<string, {
|
|
830
|
-
display: {
|
|
831
|
-
description: string;
|
|
832
|
-
locale: string;
|
|
833
|
-
title: string;
|
|
834
|
-
}[];
|
|
835
|
-
}> | undefined;
|
|
836
|
-
}>;
|
|
837
|
-
trust_frameworks_supported: string[];
|
|
838
|
-
evidence_supported: string[];
|
|
839
|
-
revocation_endpoint?: string | undefined;
|
|
840
|
-
};
|
|
841
|
-
oauth_authorization_server: {
|
|
842
|
-
request_object_signing_alg_values_supported: string[];
|
|
843
|
-
jwks: {
|
|
844
|
-
keys: {
|
|
845
|
-
kty: "RSA" | "EC";
|
|
846
|
-
alg?: string | undefined;
|
|
847
|
-
crv?: string | undefined;
|
|
848
|
-
d?: string | undefined;
|
|
849
|
-
dp?: string | undefined;
|
|
850
|
-
dq?: string | undefined;
|
|
851
|
-
e?: string | undefined;
|
|
852
|
-
ext?: boolean | undefined;
|
|
853
|
-
k?: string | undefined;
|
|
854
|
-
key_ops?: string[] | undefined;
|
|
855
|
-
kid?: string | undefined;
|
|
856
|
-
n?: string | undefined;
|
|
857
|
-
p?: string | undefined;
|
|
858
|
-
q?: string | undefined;
|
|
859
|
-
qi?: string | undefined;
|
|
860
|
-
use?: string | undefined;
|
|
861
|
-
x?: string | undefined;
|
|
862
|
-
y?: string | undefined;
|
|
863
|
-
x5c?: string[] | undefined;
|
|
864
|
-
x5t?: string | undefined;
|
|
865
|
-
"x5t#S256"?: string | undefined;
|
|
866
|
-
x5u?: string | undefined;
|
|
867
|
-
}[];
|
|
868
|
-
};
|
|
869
|
-
authorization_endpoint: string;
|
|
870
|
-
pushed_authorization_request_endpoint: string;
|
|
871
|
-
token_endpoint: string;
|
|
872
|
-
client_registration_types_supported: string[];
|
|
873
|
-
code_challenge_methods_supported: string[];
|
|
874
|
-
acr_values_supported: string[];
|
|
875
|
-
grant_types_supported: string[];
|
|
876
|
-
issuer: string;
|
|
877
|
-
scopes_supported: string[];
|
|
878
|
-
response_modes_supported: string[];
|
|
879
|
-
token_endpoint_auth_methods_supported: string[];
|
|
880
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
881
|
-
};
|
|
882
|
-
openid_credential_verifier?: {
|
|
883
|
-
jwks: {
|
|
884
|
-
keys: {
|
|
885
|
-
kty: "RSA" | "EC";
|
|
886
|
-
alg?: string | undefined;
|
|
887
|
-
crv?: string | undefined;
|
|
888
|
-
d?: string | undefined;
|
|
889
|
-
dp?: string | undefined;
|
|
890
|
-
dq?: string | undefined;
|
|
891
|
-
e?: string | undefined;
|
|
892
|
-
ext?: boolean | undefined;
|
|
893
|
-
k?: string | undefined;
|
|
894
|
-
key_ops?: string[] | undefined;
|
|
895
|
-
kid?: string | undefined;
|
|
896
|
-
n?: string | undefined;
|
|
897
|
-
p?: string | undefined;
|
|
898
|
-
q?: string | undefined;
|
|
899
|
-
qi?: string | undefined;
|
|
900
|
-
use?: string | undefined;
|
|
901
|
-
x?: string | undefined;
|
|
902
|
-
y?: string | undefined;
|
|
903
|
-
x5c?: string[] | undefined;
|
|
904
|
-
x5t?: string | undefined;
|
|
905
|
-
"x5t#S256"?: string | undefined;
|
|
906
|
-
x5u?: string | undefined;
|
|
907
|
-
}[];
|
|
908
|
-
};
|
|
909
|
-
application_type?: string | undefined;
|
|
910
|
-
client_id?: string | undefined;
|
|
911
|
-
client_name?: string | undefined;
|
|
912
|
-
contacts?: string[] | undefined;
|
|
913
|
-
presentation_definition?: {
|
|
914
|
-
id: string;
|
|
915
|
-
input_descriptors: {
|
|
916
|
-
id: string;
|
|
917
|
-
constraints: {
|
|
918
|
-
fields?: {
|
|
919
|
-
path: string[];
|
|
920
|
-
id?: string | undefined;
|
|
921
|
-
purpose?: string | undefined;
|
|
922
|
-
name?: string | undefined;
|
|
923
|
-
filter?: any;
|
|
924
|
-
optional?: boolean | undefined;
|
|
925
|
-
intent_to_retain?: boolean | undefined;
|
|
926
|
-
}[] | undefined;
|
|
927
|
-
limit_disclosure?: "required" | "preferred" | undefined;
|
|
928
|
-
};
|
|
929
|
-
name?: string | undefined;
|
|
930
|
-
purpose?: string | undefined;
|
|
931
|
-
format?: Record<string, any> | undefined;
|
|
932
|
-
group?: string | undefined;
|
|
933
|
-
}[];
|
|
934
|
-
name?: string | undefined;
|
|
935
|
-
purpose?: string | undefined;
|
|
936
|
-
submission_requirements?: {
|
|
937
|
-
rule: string;
|
|
938
|
-
name?: string | undefined;
|
|
939
|
-
purpose?: string | undefined;
|
|
940
|
-
from?: string | undefined;
|
|
941
|
-
from_nested?: {
|
|
942
|
-
rule: string;
|
|
943
|
-
from: string;
|
|
944
|
-
name?: string | undefined;
|
|
945
|
-
purpose?: string | undefined;
|
|
946
|
-
}[] | undefined;
|
|
947
|
-
count?: number | undefined;
|
|
948
|
-
}[] | undefined;
|
|
949
|
-
} | undefined;
|
|
950
|
-
request_uris?: string[] | undefined;
|
|
951
|
-
authorization_signed_response_alg?: string | undefined;
|
|
952
|
-
authorization_encrypted_response_alg?: string | undefined;
|
|
953
|
-
authorization_encrypted_response_enc?: string | undefined;
|
|
954
|
-
} | undefined;
|
|
955
|
-
};
|
|
956
|
-
};
|
|
957
|
-
}) | ({
|
|
958
|
-
header: {
|
|
959
|
-
alg: string;
|
|
960
|
-
kid: string;
|
|
961
|
-
typ: "entity-statement+jwt";
|
|
962
|
-
};
|
|
963
|
-
payload: {
|
|
964
|
-
iss: string;
|
|
965
|
-
sub: string;
|
|
966
|
-
iat: number;
|
|
967
|
-
exp: number;
|
|
968
|
-
jwks: {
|
|
969
|
-
keys: {
|
|
970
|
-
kty: "RSA" | "EC";
|
|
971
|
-
alg?: string | undefined;
|
|
972
|
-
crv?: string | undefined;
|
|
973
|
-
d?: string | undefined;
|
|
974
|
-
dp?: string | undefined;
|
|
975
|
-
dq?: string | undefined;
|
|
976
|
-
e?: string | undefined;
|
|
977
|
-
ext?: boolean | undefined;
|
|
978
|
-
k?: string | undefined;
|
|
979
|
-
key_ops?: string[] | undefined;
|
|
980
|
-
kid?: string | undefined;
|
|
981
|
-
n?: string | undefined;
|
|
982
|
-
p?: string | undefined;
|
|
983
|
-
q?: string | undefined;
|
|
984
|
-
qi?: string | undefined;
|
|
985
|
-
use?: string | undefined;
|
|
986
|
-
x?: string | undefined;
|
|
987
|
-
y?: string | undefined;
|
|
988
|
-
x5c?: string[] | undefined;
|
|
989
|
-
x5t?: string | undefined;
|
|
990
|
-
"x5t#S256"?: string | undefined;
|
|
991
|
-
x5u?: string | undefined;
|
|
992
|
-
}[];
|
|
993
|
-
};
|
|
994
|
-
metadata: {
|
|
995
|
-
federation_entity: {
|
|
996
|
-
federation_fetch_endpoint?: string | undefined;
|
|
997
|
-
federation_list_endpoint?: string | undefined;
|
|
998
|
-
federation_resolve_endpoint?: string | undefined;
|
|
999
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
1000
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
1001
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
1002
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
1003
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
1004
|
-
organization_name?: string | undefined;
|
|
1005
|
-
homepage_uri?: string | undefined;
|
|
1006
|
-
policy_uri?: string | undefined;
|
|
1007
|
-
logo_uri?: string | undefined;
|
|
1008
|
-
contacts?: string[] | undefined;
|
|
1009
|
-
} & {
|
|
1010
|
-
[k: string]: unknown;
|
|
1011
|
-
};
|
|
1012
|
-
} & {
|
|
1013
|
-
[k: string]: unknown;
|
|
1014
|
-
};
|
|
1015
|
-
authority_hints?: string[] | undefined;
|
|
1016
|
-
} & {
|
|
1017
|
-
[k: string]: unknown;
|
|
1018
|
-
};
|
|
1019
|
-
} & {
|
|
1020
|
-
payload: {
|
|
1021
|
-
metadata: {
|
|
1022
|
-
openid_credential_verifier: {
|
|
1023
|
-
jwks: {
|
|
1024
|
-
keys: {
|
|
1025
|
-
kty: "RSA" | "EC";
|
|
1026
|
-
alg?: string | undefined;
|
|
1027
|
-
crv?: string | undefined;
|
|
1028
|
-
d?: string | undefined;
|
|
1029
|
-
dp?: string | undefined;
|
|
1030
|
-
dq?: string | undefined;
|
|
1031
|
-
e?: string | undefined;
|
|
1032
|
-
ext?: boolean | undefined;
|
|
1033
|
-
k?: string | undefined;
|
|
1034
|
-
key_ops?: string[] | undefined;
|
|
1035
|
-
kid?: string | undefined;
|
|
1036
|
-
n?: string | undefined;
|
|
1037
|
-
p?: string | undefined;
|
|
1038
|
-
q?: string | undefined;
|
|
1039
|
-
qi?: string | undefined;
|
|
1040
|
-
use?: string | undefined;
|
|
1041
|
-
x?: string | undefined;
|
|
1042
|
-
y?: string | undefined;
|
|
1043
|
-
x5c?: string[] | undefined;
|
|
1044
|
-
x5t?: string | undefined;
|
|
1045
|
-
"x5t#S256"?: string | undefined;
|
|
1046
|
-
x5u?: string | undefined;
|
|
1047
|
-
}[];
|
|
1048
|
-
};
|
|
1049
|
-
application_type?: string | undefined;
|
|
1050
|
-
client_id?: string | undefined;
|
|
1051
|
-
client_name?: string | undefined;
|
|
1052
|
-
contacts?: string[] | undefined;
|
|
1053
|
-
presentation_definition?: {
|
|
1054
|
-
id: string;
|
|
1055
|
-
input_descriptors: {
|
|
1056
|
-
id: string;
|
|
1057
|
-
constraints: {
|
|
1058
|
-
fields?: {
|
|
1059
|
-
path: string[];
|
|
1060
|
-
id?: string | undefined;
|
|
1061
|
-
purpose?: string | undefined;
|
|
1062
|
-
name?: string | undefined;
|
|
1063
|
-
filter?: any;
|
|
1064
|
-
optional?: boolean | undefined;
|
|
1065
|
-
intent_to_retain?: boolean | undefined;
|
|
1066
|
-
}[] | undefined;
|
|
1067
|
-
limit_disclosure?: "required" | "preferred" | undefined;
|
|
1068
|
-
};
|
|
1069
|
-
name?: string | undefined;
|
|
1070
|
-
purpose?: string | undefined;
|
|
1071
|
-
format?: Record<string, any> | undefined;
|
|
1072
|
-
group?: string | undefined;
|
|
1073
|
-
}[];
|
|
1074
|
-
name?: string | undefined;
|
|
1075
|
-
purpose?: string | undefined;
|
|
1076
|
-
submission_requirements?: {
|
|
1077
|
-
rule: string;
|
|
1078
|
-
name?: string | undefined;
|
|
1079
|
-
purpose?: string | undefined;
|
|
1080
|
-
from?: string | undefined;
|
|
1081
|
-
from_nested?: {
|
|
1082
|
-
rule: string;
|
|
1083
|
-
from: string;
|
|
1084
|
-
name?: string | undefined;
|
|
1085
|
-
purpose?: string | undefined;
|
|
1086
|
-
}[] | undefined;
|
|
1087
|
-
count?: number | undefined;
|
|
1088
|
-
}[] | undefined;
|
|
1089
|
-
} | undefined;
|
|
1090
|
-
request_uris?: string[] | undefined;
|
|
1091
|
-
authorization_signed_response_alg?: string | undefined;
|
|
1092
|
-
authorization_encrypted_response_alg?: string | undefined;
|
|
1093
|
-
authorization_encrypted_response_enc?: string | undefined;
|
|
1094
|
-
};
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
}) | ({
|
|
1098
|
-
header: {
|
|
1099
|
-
alg: string;
|
|
1100
|
-
kid: string;
|
|
1101
|
-
typ: "entity-statement+jwt";
|
|
1102
|
-
};
|
|
1103
|
-
payload: {
|
|
1104
|
-
iss: string;
|
|
1105
|
-
sub: string;
|
|
1106
|
-
iat: number;
|
|
1107
|
-
exp: number;
|
|
1108
|
-
jwks: {
|
|
1109
|
-
keys: {
|
|
1110
|
-
kty: "RSA" | "EC";
|
|
1111
|
-
alg?: string | undefined;
|
|
1112
|
-
crv?: string | undefined;
|
|
1113
|
-
d?: string | undefined;
|
|
1114
|
-
dp?: string | undefined;
|
|
1115
|
-
dq?: string | undefined;
|
|
1116
|
-
e?: string | undefined;
|
|
1117
|
-
ext?: boolean | undefined;
|
|
1118
|
-
k?: string | undefined;
|
|
1119
|
-
key_ops?: string[] | undefined;
|
|
1120
|
-
kid?: string | undefined;
|
|
1121
|
-
n?: string | undefined;
|
|
1122
|
-
p?: string | undefined;
|
|
1123
|
-
q?: string | undefined;
|
|
1124
|
-
qi?: string | undefined;
|
|
1125
|
-
use?: string | undefined;
|
|
1126
|
-
x?: string | undefined;
|
|
1127
|
-
y?: string | undefined;
|
|
1128
|
-
x5c?: string[] | undefined;
|
|
1129
|
-
x5t?: string | undefined;
|
|
1130
|
-
"x5t#S256"?: string | undefined;
|
|
1131
|
-
x5u?: string | undefined;
|
|
1132
|
-
}[];
|
|
1133
|
-
};
|
|
1134
|
-
metadata: {
|
|
1135
|
-
federation_entity: {
|
|
1136
|
-
federation_fetch_endpoint?: string | undefined;
|
|
1137
|
-
federation_list_endpoint?: string | undefined;
|
|
1138
|
-
federation_resolve_endpoint?: string | undefined;
|
|
1139
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
|
1140
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
|
1141
|
-
federation_trust_mark_endpoint?: string | undefined;
|
|
1142
|
-
federation_historical_keys_endpoint?: string | undefined;
|
|
1143
|
-
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
|
1144
|
-
organization_name?: string | undefined;
|
|
1145
|
-
homepage_uri?: string | undefined;
|
|
1146
|
-
policy_uri?: string | undefined;
|
|
1147
|
-
logo_uri?: string | undefined;
|
|
1148
|
-
contacts?: string[] | undefined;
|
|
1149
|
-
} & {
|
|
1150
|
-
[k: string]: unknown;
|
|
1151
|
-
};
|
|
1152
|
-
} & {
|
|
1153
|
-
[k: string]: unknown;
|
|
1154
|
-
};
|
|
1155
|
-
authority_hints?: string[] | undefined;
|
|
1156
|
-
} & {
|
|
1157
|
-
[k: string]: unknown;
|
|
1158
|
-
};
|
|
1159
|
-
} & {
|
|
1160
|
-
payload: {
|
|
1161
|
-
metadata: {
|
|
1162
|
-
wallet_provider: {
|
|
1163
|
-
jwks: {
|
|
1164
|
-
keys: {
|
|
1165
|
-
kty: "RSA" | "EC";
|
|
1166
|
-
alg?: string | undefined;
|
|
1167
|
-
crv?: string | undefined;
|
|
1168
|
-
d?: string | undefined;
|
|
1169
|
-
dp?: string | undefined;
|
|
1170
|
-
dq?: string | undefined;
|
|
1171
|
-
e?: string | undefined;
|
|
1172
|
-
ext?: boolean | undefined;
|
|
1173
|
-
k?: string | undefined;
|
|
1174
|
-
key_ops?: string[] | undefined;
|
|
1175
|
-
kid?: string | undefined;
|
|
1176
|
-
n?: string | undefined;
|
|
1177
|
-
p?: string | undefined;
|
|
1178
|
-
q?: string | undefined;
|
|
1179
|
-
qi?: string | undefined;
|
|
1180
|
-
use?: string | undefined;
|
|
1181
|
-
x?: string | undefined;
|
|
1182
|
-
y?: string | undefined;
|
|
1183
|
-
x5c?: string[] | undefined;
|
|
1184
|
-
x5t?: string | undefined;
|
|
1185
|
-
"x5t#S256"?: string | undefined;
|
|
1186
|
-
x5u?: string | undefined;
|
|
1187
|
-
}[];
|
|
1188
|
-
};
|
|
1189
|
-
token_endpoint: string;
|
|
1190
|
-
grant_types_supported: string[];
|
|
1191
|
-
token_endpoint_auth_methods_supported: string[];
|
|
1192
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
1193
|
-
aal_values_supported?: string[] | undefined;
|
|
1194
|
-
} & {
|
|
1195
|
-
[k: string]: unknown;
|
|
1196
|
-
};
|
|
1197
|
-
};
|
|
1198
|
-
};
|
|
1199
|
-
})>;
|
|
1200
|
-
/**
|
|
1201
|
-
* Fetch and parse the entity statement document for a given federation entity.
|
|
1202
|
-
*
|
|
1203
|
-
* @param accreditationBodyBaseUrl The base url of the accreditation body which holds and signs the required entity statement
|
|
1204
|
-
* @param subordinatedEntityBaseUrl The url that identifies the subordinate entity
|
|
1205
|
-
* @param appFetch An optional instance of the http client to be used.
|
|
1206
|
-
* @returns The parsed entity configuration object
|
|
1207
|
-
* @throws {IoWalletError} If the http request fails
|
|
1208
|
-
*/
|
|
1209
|
-
export declare function getEntityStatement(accreditationBodyBaseUrl: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
|
|
1210
|
-
appFetch?: GlobalFetch["fetch"];
|
|
1211
|
-
}): Promise<{
|
|
1212
|
-
header: {
|
|
1213
|
-
alg: string;
|
|
1214
|
-
kid: string;
|
|
1215
|
-
typ: "entity-statement+jwt";
|
|
1216
|
-
};
|
|
1217
|
-
payload: {
|
|
1218
|
-
iss: string;
|
|
1219
|
-
sub: string;
|
|
1220
|
-
iat: number;
|
|
1221
|
-
exp: number;
|
|
1222
|
-
jwks: {
|
|
1223
|
-
keys: {
|
|
1224
|
-
kty: "RSA" | "EC";
|
|
1225
|
-
alg?: string | undefined;
|
|
1226
|
-
crv?: string | undefined;
|
|
1227
|
-
d?: string | undefined;
|
|
1228
|
-
dp?: string | undefined;
|
|
1229
|
-
dq?: string | undefined;
|
|
1230
|
-
e?: string | undefined;
|
|
1231
|
-
ext?: boolean | undefined;
|
|
1232
|
-
k?: string | undefined;
|
|
1233
|
-
key_ops?: string[] | undefined;
|
|
1234
|
-
kid?: string | undefined;
|
|
1235
|
-
n?: string | undefined;
|
|
1236
|
-
p?: string | undefined;
|
|
1237
|
-
q?: string | undefined;
|
|
1238
|
-
qi?: string | undefined;
|
|
1239
|
-
use?: string | undefined;
|
|
1240
|
-
x?: string | undefined;
|
|
1241
|
-
y?: string | undefined;
|
|
1242
|
-
x5c?: string[] | undefined;
|
|
1243
|
-
x5t?: string | undefined;
|
|
1244
|
-
"x5t#S256"?: string | undefined;
|
|
1245
|
-
x5u?: string | undefined;
|
|
1246
|
-
}[];
|
|
1247
|
-
};
|
|
1248
|
-
trust_marks?: {
|
|
1249
|
-
id: string;
|
|
1250
|
-
trust_mark: string;
|
|
1251
|
-
}[] | undefined;
|
|
1252
|
-
};
|
|
1253
|
-
}>;
|
|
1254
|
-
/**
|
|
1255
|
-
* Fetch the signed entity configuration token for an entity
|
|
1256
|
-
*
|
|
1257
|
-
* @param entityBaseUrl The url of the entity to fetch
|
|
1258
|
-
* @param appFetch (optional) fetch api implementation
|
|
1259
|
-
* @returns The signed Entity Configuration token
|
|
1260
|
-
*/
|
|
1261
|
-
export declare function getSignedEntityConfiguration(entityBaseUrl: string, { appFetch, }?: {
|
|
1262
|
-
appFetch?: GlobalFetch["fetch"];
|
|
1263
|
-
}): Promise<string>;
|
|
1264
|
-
/**
|
|
1265
|
-
* Fetch the entity statement document for a given federation entity.
|
|
1266
|
-
*
|
|
1267
|
-
* @param federationFetchEndpoint The exact endpoint provided by the parent EC's metadata.
|
|
1268
|
-
* @param subordinatedEntityBaseUrl The url that identifies the subordinate entity.
|
|
1269
|
-
* @param appFetch An optional instance of the http client to be used.
|
|
1270
|
-
* @returns The signed entity statement token.
|
|
1271
|
-
* @throws {IoWalletError} If the http request fails.
|
|
1272
|
-
*/
|
|
1273
|
-
export declare function getSignedEntityStatement(federationFetchEndpoint: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
|
|
1274
|
-
appFetch?: GlobalFetch["fetch"];
|
|
1275
|
-
}): Promise<string>;
|
|
1276
|
-
/**
|
|
1277
|
-
* Fetch the federation list document from a given endpoint.
|
|
1278
|
-
*
|
|
1279
|
-
* @param federationListEndpoint The URL of the federation list endpoint.
|
|
1280
|
-
* @param appFetch An optional instance of the http client to be used.
|
|
1281
|
-
* @returns The federation list as an array of strings.
|
|
1282
|
-
* @throws {IoWalletError} If the HTTP request fails.
|
|
1283
|
-
* @throws {FederationError} If the result is not in the expected format.
|
|
1284
|
-
*/
|
|
1285
|
-
export declare function getFederationList(federationListEndpoint: string, { appFetch, }?: {
|
|
1286
|
-
appFetch?: GlobalFetch["fetch"];
|
|
1287
|
-
}): Promise<string[]>;
|
|
1288
|
-
/**
|
|
1289
|
-
* Build a not-verified trust chain for a given Relying Party (RP) entity.
|
|
1290
|
-
*
|
|
1291
|
-
* @param relyingPartyEntityBaseUrl The base URL of the RP entity
|
|
1292
|
-
* @param trustAnchorConfig The entity configuration of the known trust anchor.
|
|
1293
|
-
* @param appFetch An optional instance of the http client to be used.
|
|
1294
|
-
* @returns A list of signed tokens that represent the trust chain, in the order of the chain (from the RP to the Trust Anchor)
|
|
1295
|
-
* @throws {FederationError} When an element of the chain fails to parse or other build steps fail.
|
|
1296
|
-
*/
|
|
1297
|
-
export declare function buildTrustChain(relyingPartyEntityBaseUrl: string, trustAnchorConfig: TrustAnchorEntityConfiguration, appFetch?: GlobalFetch["fetch"]): Promise<string[]>;
|
|
1298
|
-
export {};
|
|
1299
|
-
//# sourceMappingURL=build-chain.d.ts.map
|