@pagopa/io-react-native-wallet 1.7.1 → 2.0.0-next.1
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 +47 -1
- package/lib/commonjs/client/generated/wallet-provider.js +49 -20
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
- package/lib/commonjs/credential/index.js +5 -1
- package/lib/commonjs/credential/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js +27 -0
- package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js.map +1 -0
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js +25 -16
- package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/04-complete-user-authorization.js +30 -18
- package/lib/commonjs/credential/issuance/04-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/05-authorize-access.js +17 -12
- package/lib/commonjs/credential/issuance/05-authorize-access.js.map +1 -1
- package/lib/commonjs/credential/issuance/06-obtain-credential.js +36 -29
- package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +27 -207
- package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/README.md +23 -20
- package/lib/commonjs/credential/issuance/const.js +1 -1
- package/lib/commonjs/credential/issuance/const.js.map +1 -1
- package/lib/commonjs/credential/issuance/index.js +3 -3
- package/lib/commonjs/credential/issuance/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/01-start-flow.js +14 -15
- package/lib/commonjs/credential/presentation/01-start-flow.js.map +1 -1
- package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js +6 -4
- package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
- package/lib/commonjs/credential/presentation/03-get-request-object.js +34 -7
- package/lib/commonjs/credential/presentation/03-get-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/04-retrieve-rp-jwks.js +4 -126
- package/lib/commonjs/credential/presentation/04-retrieve-rp-jwks.js.map +1 -1
- package/lib/commonjs/credential/presentation/05-verify-request-object.js +80 -25
- package/lib/commonjs/credential/presentation/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/06-fetch-presentation-definition.js +6 -30
- package/lib/commonjs/credential/presentation/06-fetch-presentation-definition.js.map +1 -1
- package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js +97 -117
- package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js.map +1 -1
- package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js +86 -191
- package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js.map +1 -1
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js +112 -176
- package/lib/commonjs/credential/presentation/08-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/README.md +74 -79
- package/lib/commonjs/credential/presentation/errors.js +42 -21
- package/lib/commonjs/credential/presentation/errors.js.map +1 -1
- package/lib/commonjs/credential/presentation/index.js +13 -13
- package/lib/commonjs/credential/presentation/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/types.js +53 -29
- package/lib/commonjs/credential/presentation/types.js.map +1 -1
- package/lib/commonjs/credential/status/01-start-flow.js +2 -0
- package/lib/commonjs/credential/status/01-start-flow.js.map +1 -0
- package/lib/commonjs/credential/status/02-status-attestation.js +73 -0
- package/lib/commonjs/credential/status/02-status-attestation.js.map +1 -0
- package/lib/commonjs/credential/status/03-verify-and-parse-status-attestation.js +55 -0
- package/lib/commonjs/credential/status/03-verify-and-parse-status-attestation.js.map +1 -0
- package/lib/commonjs/credential/status/README.md +67 -0
- package/lib/commonjs/credential/status/index.js +27 -0
- package/lib/commonjs/credential/status/index.js.map +1 -0
- package/lib/commonjs/credential/status/types.js +48 -0
- package/lib/commonjs/credential/status/types.js.map +1 -0
- package/lib/commonjs/credential/trustmark/README.md +62 -0
- package/lib/commonjs/credential/trustmark/get-credential-trustmark.js +86 -0
- package/lib/commonjs/credential/trustmark/get-credential-trustmark.js.map +1 -0
- package/lib/commonjs/credential/trustmark/index.js +13 -0
- package/lib/commonjs/credential/trustmark/index.js.map +1 -0
- package/lib/commonjs/index.js +5 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/pid/sd-jwt/types.js +18 -2
- package/lib/commonjs/pid/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/index.test.js +22 -34
- package/lib/commonjs/sd-jwt/__test__/index.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/__test__/types.test.js +11 -23
- package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/commonjs/sd-jwt/index.js +1 -7
- package/lib/commonjs/sd-jwt/index.js.map +1 -1
- package/lib/commonjs/sd-jwt/types.js +5 -21
- package/lib/commonjs/sd-jwt/types.js.map +1 -1
- package/lib/commonjs/trust/README.md +147 -0
- package/lib/commonjs/trust/chain.js +153 -0
- package/lib/commonjs/trust/chain.js.map +1 -0
- package/lib/commonjs/trust/errors.js +133 -0
- package/lib/commonjs/trust/errors.js.map +1 -0
- package/lib/commonjs/trust/index.js +288 -0
- package/lib/commonjs/trust/index.js.map +1 -0
- package/lib/commonjs/{entity/trust → trust}/types.js +27 -47
- package/lib/commonjs/trust/types.js.map +1 -0
- package/lib/commonjs/trust/utils.js +70 -0
- package/lib/commonjs/trust/utils.js.map +1 -0
- package/lib/commonjs/utils/crypto.js +5 -112
- package/lib/commonjs/utils/crypto.js.map +1 -1
- package/lib/commonjs/utils/decoder.js +2 -0
- package/lib/commonjs/utils/decoder.js.map +1 -1
- package/lib/commonjs/utils/error-codes.js +22 -2
- package/lib/commonjs/utils/error-codes.js.map +1 -1
- package/lib/commonjs/utils/errors.js +72 -4
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/commonjs/utils/logging.js +68 -0
- package/lib/commonjs/utils/logging.js.map +1 -0
- package/lib/commonjs/utils/misc.js +2 -0
- package/lib/commonjs/utils/misc.js.map +1 -1
- package/lib/commonjs/utils/par.js +17 -10
- package/lib/commonjs/utils/par.js.map +1 -1
- package/lib/commonjs/utils/string.js +1 -12
- package/lib/commonjs/utils/string.js.map +1 -1
- package/lib/commonjs/wallet-instance/index.js +14 -0
- package/lib/commonjs/wallet-instance/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/README.md +8 -3
- package/lib/commonjs/wallet-instance-attestation/issuing.js +15 -8
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/types.js +16 -20
- package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
- package/lib/module/client/generated/wallet-provider.js +40 -15
- package/lib/module/client/generated/wallet-provider.js.map +1 -1
- package/lib/module/credential/index.js +3 -1
- package/lib/module/credential/index.js.map +1 -1
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js +20 -0
- package/lib/module/credential/issuance/02-evaluate-issuer-trust.js.map +1 -0
- package/lib/module/credential/issuance/03-start-user-authorization.js +25 -16
- package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/04-complete-user-authorization.js +30 -18
- package/lib/module/credential/issuance/04-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/05-authorize-access.js +17 -11
- package/lib/module/credential/issuance/05-authorize-access.js.map +1 -1
- package/lib/module/credential/issuance/06-obtain-credential.js +36 -28
- package/lib/module/credential/issuance/06-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js +27 -205
- package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
- package/lib/module/credential/issuance/README.md +23 -20
- package/lib/module/credential/issuance/const.js +1 -1
- package/lib/module/credential/issuance/const.js.map +1 -1
- package/lib/module/credential/issuance/index.js +2 -2
- package/lib/module/credential/issuance/index.js.map +1 -1
- package/lib/module/credential/presentation/01-start-flow.js +14 -15
- package/lib/module/credential/presentation/01-start-flow.js.map +1 -1
- package/lib/module/credential/presentation/02-evaluate-rp-trust.js +5 -3
- package/lib/module/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
- package/lib/module/credential/presentation/03-get-request-object.js +34 -7
- package/lib/module/credential/presentation/03-get-request-object.js.map +1 -1
- package/lib/module/credential/presentation/04-retrieve-rp-jwks.js +2 -124
- package/lib/module/credential/presentation/04-retrieve-rp-jwks.js.map +1 -1
- package/lib/module/credential/presentation/05-verify-request-object.js +78 -23
- package/lib/module/credential/presentation/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/06-fetch-presentation-definition.js +6 -30
- package/lib/module/credential/presentation/06-fetch-presentation-definition.js.map +1 -1
- package/lib/module/credential/presentation/07-evaluate-dcql-query.js +97 -118
- package/lib/module/credential/presentation/07-evaluate-dcql-query.js.map +1 -1
- package/lib/module/credential/presentation/07-evaluate-input-descriptor.js +83 -186
- package/lib/module/credential/presentation/07-evaluate-input-descriptor.js.map +1 -1
- package/lib/module/credential/presentation/08-send-authorization-response.js +107 -170
- package/lib/module/credential/presentation/08-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/README.md +74 -79
- package/lib/module/credential/presentation/errors.js +30 -17
- package/lib/module/credential/presentation/errors.js.map +1 -1
- package/lib/module/credential/presentation/index.js +6 -6
- package/lib/module/credential/presentation/index.js.map +1 -1
- package/lib/module/credential/presentation/types.js +49 -27
- package/lib/module/credential/presentation/types.js.map +1 -1
- package/lib/module/credential/status/01-start-flow.js +2 -0
- package/lib/module/credential/status/01-start-flow.js.map +1 -0
- package/lib/module/credential/status/02-status-attestation.js +66 -0
- package/lib/module/credential/status/02-status-attestation.js.map +1 -0
- package/lib/module/credential/status/03-verify-and-parse-status-attestation.js +49 -0
- package/lib/module/credential/status/03-verify-and-parse-status-attestation.js.map +1 -0
- package/lib/module/credential/status/README.md +67 -0
- package/lib/module/credential/status/index.js +5 -0
- package/lib/module/credential/status/index.js.map +1 -0
- package/lib/module/credential/status/types.js +40 -0
- package/lib/module/credential/status/types.js.map +1 -0
- package/lib/module/credential/trustmark/README.md +62 -0
- package/lib/module/credential/trustmark/get-credential-trustmark.js +77 -0
- package/lib/module/credential/trustmark/get-credential-trustmark.js.map +1 -0
- package/lib/module/credential/trustmark/index.js +3 -0
- package/lib/module/credential/trustmark/index.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/pid/sd-jwt/types.js +16 -1
- package/lib/module/pid/sd-jwt/types.js.map +1 -1
- package/lib/module/sd-jwt/__test__/index.test.js +22 -34
- package/lib/module/sd-jwt/__test__/index.test.js.map +1 -1
- package/lib/module/sd-jwt/__test__/types.test.js +11 -23
- package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
- package/lib/module/sd-jwt/index.js +1 -7
- package/lib/module/sd-jwt/index.js.map +1 -1
- package/lib/module/sd-jwt/types.js +4 -19
- package/lib/module/sd-jwt/types.js.map +1 -1
- package/lib/module/trust/README.md +147 -0
- package/lib/module/trust/chain.js +145 -0
- package/lib/module/trust/chain.js.map +1 -0
- package/lib/module/trust/errors.js +115 -0
- package/lib/module/trust/errors.js.map +1 -0
- package/lib/module/trust/index.js +269 -0
- package/lib/module/trust/index.js.map +1 -0
- package/lib/module/{entity/trust → trust}/types.js +25 -46
- package/lib/module/trust/types.js.map +1 -0
- package/lib/module/trust/utils.js +60 -0
- package/lib/module/trust/utils.js.map +1 -0
- package/lib/module/utils/crypto.js +4 -107
- package/lib/module/utils/crypto.js.map +1 -1
- package/lib/module/utils/decoder.js +3 -0
- package/lib/module/utils/decoder.js.map +1 -1
- package/lib/module/utils/error-codes.js +20 -1
- package/lib/module/utils/error-codes.js.map +1 -1
- package/lib/module/utils/errors.js +61 -4
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/module/utils/logging.js +62 -0
- package/lib/module/utils/logging.js.map +1 -0
- package/lib/module/utils/misc.js +2 -0
- package/lib/module/utils/misc.js.map +1 -1
- package/lib/module/utils/par.js +17 -9
- package/lib/module/utils/par.js.map +1 -1
- package/lib/module/utils/string.js +0 -10
- package/lib/module/utils/string.js.map +1 -1
- package/lib/module/wallet-instance/index.js +13 -0
- package/lib/module/wallet-instance/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/README.md +8 -3
- package/lib/module/wallet-instance-attestation/index.js +2 -2
- package/lib/module/wallet-instance-attestation/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/issuing.js +16 -9
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/wallet-instance-attestation/types.js +14 -18
- package/lib/module/wallet-instance-attestation/types.js.map +1 -1
- package/lib/typescript/client/generated/wallet-provider.d.ts +206 -51
- package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
- package/lib/typescript/credential/index.d.ts +3 -1
- package/lib/typescript/credential/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/01-start-flow.d.ts +1 -1
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts +19 -0
- package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts.map +1 -0
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts +3 -3
- package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts +9 -9
- package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/05-authorize-access.d.ts +3 -3
- package/lib/typescript/credential/issuance/05-authorize-access.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +4 -4
- package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts +3 -15
- package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/const.d.ts +1 -1
- package/lib/typescript/credential/issuance/const.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/index.d.ts +3 -3
- package/lib/typescript/credential/issuance/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/types.d.ts +8 -3
- package/lib/typescript/credential/issuance/types.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/01-start-flow.d.ts +28 -9
- package/lib/typescript/credential/presentation/01-start-flow.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts +2 -1
- package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/03-get-request-object.d.ts +7 -5
- package/lib/typescript/credential/presentation/03-get-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/04-retrieve-rp-jwks.d.ts +4 -30
- package/lib/typescript/credential/presentation/04-retrieve-rp-jwks.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/05-verify-request-object.d.ts +17 -4
- package/lib/typescript/credential/presentation/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/06-fetch-presentation-definition.d.ts +4 -9
- package/lib/typescript/credential/presentation/06-fetch-presentation-definition.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts +13 -12
- package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts +40 -42
- package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts +30 -43
- package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/errors.d.ts +25 -10
- package/lib/typescript/credential/presentation/errors.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/index.d.ts +7 -8
- package/lib/typescript/credential/presentation/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/types.d.ts +137 -307
- package/lib/typescript/credential/presentation/types.d.ts.map +1 -1
- package/lib/typescript/credential/status/01-start-flow.d.ts +10 -0
- package/lib/typescript/credential/status/01-start-flow.d.ts.map +1 -0
- package/lib/typescript/credential/status/02-status-attestation.d.ts +19 -0
- package/lib/typescript/credential/status/02-status-attestation.d.ts.map +1 -0
- package/lib/typescript/credential/status/03-verify-and-parse-status-attestation.d.ts +24 -0
- package/lib/typescript/credential/status/03-verify-and-parse-status-attestation.d.ts.map +1 -0
- package/lib/typescript/credential/status/index.d.ts +7 -0
- package/lib/typescript/credential/status/index.d.ts.map +1 -0
- package/lib/typescript/credential/status/types.d.ts +305 -0
- package/lib/typescript/credential/status/types.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/get-credential-trustmark.d.ts +52 -0
- package/lib/typescript/credential/trustmark/get-credential-trustmark.d.ts.map +1 -0
- package/lib/typescript/credential/trustmark/index.d.ts +4 -0
- package/lib/typescript/credential/trustmark/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/pid/sd-jwt/types.d.ts +103 -25
- package/lib/typescript/pid/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/index.d.ts +20 -72
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/types.d.ts +24 -129
- package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/trust/chain.d.ts +23 -0
- package/lib/typescript/trust/chain.d.ts.map +1 -0
- package/lib/typescript/trust/errors.d.ts +102 -0
- package/lib/typescript/trust/errors.d.ts.map +1 -0
- package/lib/typescript/{entity/trust → trust}/index.d.ts +308 -281
- package/lib/typescript/trust/index.d.ts.map +1 -0
- package/lib/typescript/{entity/trust → trust}/types.d.ts +1714 -1301
- package/lib/typescript/{entity/trust → trust}/types.d.ts.map +1 -1
- package/lib/typescript/trust/utils.d.ts +22 -0
- package/lib/typescript/trust/utils.d.ts.map +1 -0
- package/lib/typescript/utils/crypto.d.ts +0 -32
- package/lib/typescript/utils/crypto.d.ts.map +1 -1
- package/lib/typescript/utils/decoder.d.ts.map +1 -1
- package/lib/typescript/utils/error-codes.d.ts +20 -0
- package/lib/typescript/utils/error-codes.d.ts.map +1 -1
- package/lib/typescript/utils/errors.d.ts +55 -10
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/utils/logging.d.ts +35 -0
- package/lib/typescript/utils/logging.d.ts.map +1 -0
- package/lib/typescript/utils/misc.d.ts.map +1 -1
- package/lib/typescript/utils/par.d.ts +8 -1
- package/lib/typescript/utils/par.d.ts.map +1 -1
- package/lib/typescript/utils/string.d.ts +0 -7
- package/lib/typescript/utils/string.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/index.d.ts +8 -0
- package/lib/typescript/wallet-instance/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/index.d.ts +1 -2
- package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts +4 -2
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +60 -102
- package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
- package/package.json +9 -10
- package/src/client/generated/wallet-provider.ts +52 -17
- package/src/credential/index.ts +4 -1
- package/src/credential/issuance/01-start-flow.ts +1 -1
- package/src/credential/issuance/02-evaluate-issuer-trust.ts +32 -0
- package/src/credential/issuance/03-start-user-authorization.ts +48 -22
- package/src/credential/issuance/04-complete-user-authorization.ts +74 -18
- package/src/credential/issuance/05-authorize-access.ts +29 -11
- package/src/credential/issuance/06-obtain-credential.ts +61 -36
- package/src/credential/issuance/07-verify-and-parse-credential.ts +37 -264
- package/src/credential/issuance/README.md +23 -20
- package/src/credential/issuance/const.ts +1 -1
- package/src/credential/issuance/index.ts +6 -3
- package/src/credential/presentation/01-start-flow.ts +19 -22
- package/src/credential/presentation/02-evaluate-rp-trust.ts +5 -4
- package/src/credential/presentation/03-get-request-object.ts +36 -8
- package/src/credential/presentation/04-retrieve-rp-jwks.ts +6 -148
- package/src/credential/presentation/05-verify-request-object.ts +115 -30
- package/src/credential/presentation/06-fetch-presentation-definition.ts +5 -35
- package/src/credential/presentation/07-evaluate-dcql-query.ts +132 -161
- package/src/credential/presentation/07-evaluate-input-descriptor.ts +136 -254
- package/src/credential/presentation/08-send-authorization-response.ts +178 -260
- package/src/credential/presentation/README.md +74 -79
- package/src/credential/presentation/errors.ts +38 -15
- package/src/credential/presentation/index.ts +18 -19
- package/src/credential/presentation/types.ts +67 -64
- package/src/credential/status/01-start-flow.ts +9 -0
- package/src/credential/status/02-status-attestation.ts +105 -0
- package/src/credential/status/03-verify-and-parse-status-attestation.ts +70 -0
- package/src/credential/status/README.md +67 -0
- package/src/credential/status/index.ts +22 -0
- package/src/credential/status/types.ts +43 -0
- package/src/credential/trustmark/README.md +62 -0
- package/src/credential/trustmark/get-credential-trustmark.ts +139 -0
- package/src/credential/trustmark/index.ts +8 -0
- package/src/index.ts +4 -0
- package/src/pid/sd-jwt/types.ts +18 -1
- package/src/sd-jwt/__test__/index.test.ts +36 -55
- package/src/sd-jwt/__test__/types.test.ts +16 -29
- package/src/sd-jwt/index.ts +1 -5
- package/src/sd-jwt/types.ts +2 -19
- package/src/trust/README.md +147 -0
- package/src/trust/chain.ts +227 -0
- package/src/trust/errors.ts +136 -0
- package/src/{entity/trust → trust}/index.ts +207 -25
- package/src/{entity/trust → trust}/types.ts +24 -37
- package/src/trust/utils.ts +70 -0
- package/src/utils/crypto.ts +4 -106
- package/src/utils/decoder.ts +6 -1
- package/src/utils/error-codes.ts +23 -0
- package/src/utils/errors.ts +119 -15
- package/src/utils/logging.ts +68 -0
- package/src/utils/misc.ts +5 -0
- package/src/utils/par.ts +19 -6
- package/src/utils/string.ts +0 -10
- package/src/wallet-instance/index.ts +30 -1
- package/src/wallet-instance-attestation/README.md +8 -3
- package/src/wallet-instance-attestation/index.ts +2 -2
- package/src/wallet-instance-attestation/issuing.ts +33 -12
- package/src/wallet-instance-attestation/types.ts +18 -22
- package/lib/commonjs/credential/issuance/02-get-issuer-config.js +0 -48
- package/lib/commonjs/credential/issuance/02-get-issuer-config.js.map +0 -1
- package/lib/commonjs/entity/openid-connect/issuer/index.js +0 -25
- package/lib/commonjs/entity/openid-connect/issuer/index.js.map +0 -1
- package/lib/commonjs/entity/openid-connect/issuer/types.js +0 -64
- package/lib/commonjs/entity/openid-connect/issuer/types.js.map +0 -1
- package/lib/commonjs/entity/trust/chain.js +0 -122
- package/lib/commonjs/entity/trust/chain.js.map +0 -1
- package/lib/commonjs/entity/trust/index.js +0 -148
- package/lib/commonjs/entity/trust/index.js.map +0 -1
- package/lib/commonjs/entity/trust/types.js.map +0 -1
- package/lib/commonjs/mdoc/converters.js +0 -26
- package/lib/commonjs/mdoc/converters.js.map +0 -1
- package/lib/commonjs/mdoc/index.js +0 -68
- package/lib/commonjs/mdoc/index.js.map +0 -1
- package/lib/commonjs/utils/credential/issuance/07-verify-and-parse-credentials-inputs.js +0 -469
- package/lib/commonjs/utils/credential/issuance/07-verify-and-parse-credentials-inputs.js.map +0 -1
- package/lib/commonjs/utils/credential/issuance/07-verify-and-parse-credentials-utils.js +0 -90
- package/lib/commonjs/utils/credential/issuance/07-verify-and-parse-credentials-utils.js.map +0 -1
- package/lib/module/credential/issuance/02-get-issuer-config.js +0 -42
- package/lib/module/credential/issuance/02-get-issuer-config.js.map +0 -1
- package/lib/module/entity/openid-connect/issuer/index.js +0 -20
- package/lib/module/entity/openid-connect/issuer/index.js.map +0 -1
- package/lib/module/entity/openid-connect/issuer/types.js +0 -48
- package/lib/module/entity/openid-connect/issuer/types.js.map +0 -1
- package/lib/module/entity/trust/chain.js +0 -113
- package/lib/module/entity/trust/chain.js.map +0 -1
- package/lib/module/entity/trust/index.js +0 -131
- package/lib/module/entity/trust/index.js.map +0 -1
- package/lib/module/entity/trust/types.js.map +0 -1
- package/lib/module/mdoc/converters.js +0 -20
- package/lib/module/mdoc/converters.js.map +0 -1
- package/lib/module/mdoc/index.js +0 -60
- package/lib/module/mdoc/index.js.map +0 -1
- package/lib/module/utils/credential/issuance/07-verify-and-parse-credentials-inputs.js +0 -462
- package/lib/module/utils/credential/issuance/07-verify-and-parse-credentials-inputs.js.map +0 -1
- package/lib/module/utils/credential/issuance/07-verify-and-parse-credentials-utils.js +0 -83
- package/lib/module/utils/credential/issuance/07-verify-and-parse-credentials-utils.js.map +0 -1
- package/lib/typescript/credential/issuance/02-get-issuer-config.d.ts +0 -32
- package/lib/typescript/credential/issuance/02-get-issuer-config.d.ts.map +0 -1
- package/lib/typescript/entity/openid-connect/issuer/index.d.ts +0 -12
- package/lib/typescript/entity/openid-connect/issuer/index.d.ts.map +0 -1
- package/lib/typescript/entity/openid-connect/issuer/types.d.ts +0 -777
- package/lib/typescript/entity/openid-connect/issuer/types.d.ts.map +0 -1
- package/lib/typescript/entity/trust/chain.d.ts +0 -26
- package/lib/typescript/entity/trust/chain.d.ts.map +0 -1
- package/lib/typescript/entity/trust/index.d.ts.map +0 -1
- package/lib/typescript/mdoc/converters.d.ts +0 -8
- package/lib/typescript/mdoc/converters.d.ts.map +0 -1
- package/lib/typescript/mdoc/index.d.ts +0 -10
- package/lib/typescript/mdoc/index.d.ts.map +0 -1
- package/lib/typescript/utils/credential/issuance/07-verify-and-parse-credentials-inputs.d.ts +0 -3
- package/lib/typescript/utils/credential/issuance/07-verify-and-parse-credentials-inputs.d.ts.map +0 -1
- package/lib/typescript/utils/credential/issuance/07-verify-and-parse-credentials-utils.d.ts +0 -42
- package/lib/typescript/utils/credential/issuance/07-verify-and-parse-credentials-utils.d.ts.map +0 -1
- package/src/credential/issuance/02-get-issuer-config.ts +0 -67
- package/src/entity/openid-connect/issuer/index.ts +0 -27
- package/src/entity/openid-connect/issuer/types.ts +0 -76
- package/src/entity/trust/chain.ts +0 -154
- package/src/mdoc/converters.ts +0 -26
- package/src/mdoc/index.ts +0 -95
- package/src/utils/credential/issuance/07-verify-and-parse-credentials-inputs.ts +0 -615
- package/src/utils/credential/issuance/07-verify-and-parse-credentials-utils.ts +0 -171
@@ -1,18 +1,21 @@
|
|
1
|
-
import {
|
1
|
+
import { CredentialIssuerEntityConfiguration, EntityConfiguration, EntityStatement, RelyingPartyEntityConfiguration, TrustAnchorEntityConfiguration, WalletProviderEntityConfiguration } from "./types";
|
2
2
|
import { validateTrustChain } from "./chain";
|
3
|
+
import type { JWK } from "../utils/jwk";
|
4
|
+
import type { X509CertificateOptions } from "@pagopa/io-react-native-crypto";
|
3
5
|
export type { WalletProviderEntityConfiguration, TrustAnchorEntityConfiguration, CredentialIssuerEntityConfiguration, RelyingPartyEntityConfiguration, EntityConfiguration, EntityStatement, };
|
4
6
|
/**
|
5
7
|
* Verify a given trust chain is actually valid.
|
6
8
|
* It can handle fast chain renewal, which means we try to fetch a fresh version of each statement.
|
7
9
|
*
|
8
10
|
* @param trustAnchorEntity The entity configuration of the known trust anchor
|
9
|
-
* @param chain The chain of statements to be
|
10
|
-
* @param
|
11
|
-
* @param
|
11
|
+
* @param chain The chain of statements to be validated
|
12
|
+
* @param x509Options Options for the verification process
|
13
|
+
* @param appFetch (optional) fetch api implementation
|
14
|
+
* @param renewOnFail Whether to attempt to renew the trust chain if the initial validation fails
|
12
15
|
* @returns The result of the chain validation
|
13
|
-
* @throws {
|
16
|
+
* @throws {FederationError} If the chain is not valid
|
14
17
|
*/
|
15
|
-
export declare function verifyTrustChain(trustAnchorEntity: TrustAnchorEntityConfiguration, chain: string[], { appFetch, renewOnFail, }?: {
|
18
|
+
export declare function verifyTrustChain(trustAnchorEntity: TrustAnchorEntityConfiguration, chain: string[], x509Options?: X509CertificateOptions, { appFetch, renewOnFail, }?: {
|
16
19
|
appFetch?: GlobalFetch["fetch"];
|
17
20
|
renewOnFail?: boolean;
|
18
21
|
}): Promise<ReturnType<typeof validateTrustChain>>;
|
@@ -20,7 +23,7 @@ export declare function verifyTrustChain(trustAnchorEntity: TrustAnchorEntityCon
|
|
20
23
|
* Fetch the signed entity configuration token for an entity
|
21
24
|
*
|
22
25
|
* @param entityBaseUrl The url of the entity to fetch
|
23
|
-
* @param
|
26
|
+
* @param appFetch (optional) fetch api implementation
|
24
27
|
* @returns The signed Entity Configuration token
|
25
28
|
*/
|
26
29
|
export declare function getSignedEntityConfiguration(entityBaseUrl: string, { appFetch, }?: {
|
@@ -38,6 +41,7 @@ export declare function getSignedEntityConfiguration(entityBaseUrl: string, { ap
|
|
38
41
|
*
|
39
42
|
* @param entityBaseUrl The base url of the entity.
|
40
43
|
* @param schema The expected schema of the entity configuration, according to the kind of entity we are fetching from.
|
44
|
+
* @param options An optional object with additional options.
|
41
45
|
* @param options.appFetch An optional instance of the http client to be used.
|
42
46
|
* @returns The parsed entity configuration object
|
43
47
|
* @throws {IoWalletError} If the http request fails
|
@@ -66,6 +70,30 @@ export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Param
|
|
66
70
|
};
|
67
71
|
payload: {
|
68
72
|
iss: string;
|
73
|
+
sub: string;
|
74
|
+
iat: number;
|
75
|
+
exp: number;
|
76
|
+
metadata: {
|
77
|
+
federation_entity: {
|
78
|
+
federation_fetch_endpoint?: string | undefined;
|
79
|
+
federation_list_endpoint?: string | undefined;
|
80
|
+
federation_resolve_endpoint?: string | undefined;
|
81
|
+
federation_trust_mark_status_endpoint?: string | undefined;
|
82
|
+
federation_trust_mark_list_endpoint?: string | undefined;
|
83
|
+
federation_trust_mark_endpoint?: string | undefined;
|
84
|
+
federation_historical_keys_endpoint?: string | undefined;
|
85
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
86
|
+
organization_name?: string | undefined;
|
87
|
+
homepage_uri?: string | undefined;
|
88
|
+
policy_uri?: string | undefined;
|
89
|
+
logo_uri?: string | undefined;
|
90
|
+
contacts?: string[] | undefined;
|
91
|
+
} & {
|
92
|
+
[k: string]: unknown;
|
93
|
+
};
|
94
|
+
} & {
|
95
|
+
[k: string]: unknown;
|
96
|
+
};
|
69
97
|
jwks: {
|
70
98
|
keys: {
|
71
99
|
kty: "RSA" | "EC";
|
@@ -92,27 +120,6 @@ export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Param
|
|
92
120
|
x5u?: string | undefined;
|
93
121
|
}[];
|
94
122
|
};
|
95
|
-
iat: number;
|
96
|
-
exp: number;
|
97
|
-
sub: string;
|
98
|
-
metadata: {
|
99
|
-
federation_entity: {
|
100
|
-
federation_fetch_endpoint?: string | undefined;
|
101
|
-
federation_list_endpoint?: string | undefined;
|
102
|
-
federation_resolve_endpoint?: string | undefined;
|
103
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
104
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
105
|
-
organization_name?: string | undefined;
|
106
|
-
homepage_uri?: string | undefined;
|
107
|
-
policy_uri?: string | undefined;
|
108
|
-
logo_uri?: string | undefined;
|
109
|
-
contacts?: string[] | undefined;
|
110
|
-
} & {
|
111
|
-
[k: string]: unknown;
|
112
|
-
};
|
113
|
-
} & {
|
114
|
-
[k: string]: unknown;
|
115
|
-
};
|
116
123
|
authority_hints?: string[] | undefined;
|
117
124
|
} & {
|
118
125
|
[k: string]: unknown;
|
@@ -166,35 +173,9 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
166
173
|
};
|
167
174
|
payload: {
|
168
175
|
iss: string;
|
169
|
-
|
170
|
-
keys: {
|
171
|
-
kty: "RSA" | "EC";
|
172
|
-
alg?: string | undefined;
|
173
|
-
crv?: string | undefined;
|
174
|
-
d?: string | undefined;
|
175
|
-
dp?: string | undefined;
|
176
|
-
dq?: string | undefined;
|
177
|
-
e?: string | undefined;
|
178
|
-
ext?: boolean | undefined;
|
179
|
-
k?: string | undefined;
|
180
|
-
key_ops?: string[] | undefined;
|
181
|
-
kid?: string | undefined;
|
182
|
-
n?: string | undefined;
|
183
|
-
p?: string | undefined;
|
184
|
-
q?: string | undefined;
|
185
|
-
qi?: string | undefined;
|
186
|
-
use?: string | undefined;
|
187
|
-
x?: string | undefined;
|
188
|
-
y?: string | undefined;
|
189
|
-
x5c?: string[] | undefined;
|
190
|
-
x5t?: string | undefined;
|
191
|
-
"x5t#S256"?: string | undefined;
|
192
|
-
x5u?: string | undefined;
|
193
|
-
}[];
|
194
|
-
};
|
176
|
+
sub: string;
|
195
177
|
iat: number;
|
196
178
|
exp: number;
|
197
|
-
sub: string;
|
198
179
|
metadata: {
|
199
180
|
federation_entity: {
|
200
181
|
federation_fetch_endpoint?: string | undefined;
|
@@ -202,6 +183,9 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
202
183
|
federation_resolve_endpoint?: string | undefined;
|
203
184
|
federation_trust_mark_status_endpoint?: string | undefined;
|
204
185
|
federation_trust_mark_list_endpoint?: string | undefined;
|
186
|
+
federation_trust_mark_endpoint?: string | undefined;
|
187
|
+
federation_historical_keys_endpoint?: string | undefined;
|
188
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
205
189
|
organization_name?: string | undefined;
|
206
190
|
homepage_uri?: string | undefined;
|
207
191
|
policy_uri?: string | undefined;
|
@@ -213,12 +197,6 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
213
197
|
} & {
|
214
198
|
[k: string]: unknown;
|
215
199
|
};
|
216
|
-
authority_hints?: string[] | undefined;
|
217
|
-
} & {
|
218
|
-
[k: string]: unknown;
|
219
|
-
};
|
220
|
-
} & {
|
221
|
-
payload: {
|
222
200
|
jwks: {
|
223
201
|
keys: {
|
224
202
|
kty: "RSA" | "EC";
|
@@ -245,47 +223,14 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
245
223
|
x5u?: string | undefined;
|
246
224
|
}[];
|
247
225
|
};
|
226
|
+
authority_hints?: string[] | undefined;
|
227
|
+
} & {
|
228
|
+
[k: string]: unknown;
|
229
|
+
};
|
230
|
+
} & {
|
231
|
+
payload: {
|
248
232
|
metadata: {
|
249
233
|
openid_credential_issuer: {
|
250
|
-
display: {
|
251
|
-
name: string;
|
252
|
-
locale: string;
|
253
|
-
logo?: {
|
254
|
-
url: string;
|
255
|
-
alt_text: string;
|
256
|
-
} | undefined;
|
257
|
-
}[];
|
258
|
-
credential_configurations_supported: Record<string, {
|
259
|
-
display: {
|
260
|
-
name: string;
|
261
|
-
locale: string;
|
262
|
-
logo?: {
|
263
|
-
url: string;
|
264
|
-
alt_text: string;
|
265
|
-
} | undefined;
|
266
|
-
background_color?: string | undefined;
|
267
|
-
text_color?: string | undefined;
|
268
|
-
}[];
|
269
|
-
scope: string;
|
270
|
-
cryptographic_binding_methods_supported: string[];
|
271
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
272
|
-
credential_signing_alg_values_supported: string[];
|
273
|
-
claims?: Record<string, {
|
274
|
-
display: {
|
275
|
-
name: string;
|
276
|
-
locale: string;
|
277
|
-
}[];
|
278
|
-
value_type: string;
|
279
|
-
}> | undefined;
|
280
|
-
authentic_source?: string | undefined;
|
281
|
-
issuance_errors_supported?: Record<string, {
|
282
|
-
display: {
|
283
|
-
title: string;
|
284
|
-
locale: string;
|
285
|
-
description: string;
|
286
|
-
}[];
|
287
|
-
}> | undefined;
|
288
|
-
}>;
|
289
234
|
jwks: {
|
290
235
|
keys: {
|
291
236
|
kty: "RSA" | "EC";
|
@@ -316,9 +261,37 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
316
261
|
credential_endpoint: string;
|
317
262
|
revocation_endpoint: string;
|
318
263
|
status_attestation_endpoint: string;
|
264
|
+
display: {
|
265
|
+
name: string;
|
266
|
+
locale: string;
|
267
|
+
}[];
|
268
|
+
credential_configurations_supported: Record<string, {
|
269
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
270
|
+
display: {
|
271
|
+
name: string;
|
272
|
+
locale: string;
|
273
|
+
}[];
|
274
|
+
scope: string;
|
275
|
+
claims: Record<string, {
|
276
|
+
display: {
|
277
|
+
name: string;
|
278
|
+
locale: string;
|
279
|
+
}[];
|
280
|
+
value_type: string;
|
281
|
+
}>;
|
282
|
+
cryptographic_binding_methods_supported: string[];
|
283
|
+
credential_signing_alg_values_supported: string[];
|
284
|
+
authentic_source?: string | undefined;
|
285
|
+
issuance_errors_supported?: Record<string, {
|
286
|
+
display: {
|
287
|
+
title: string;
|
288
|
+
locale: string;
|
289
|
+
description: string;
|
290
|
+
}[];
|
291
|
+
}> | undefined;
|
292
|
+
}>;
|
319
293
|
};
|
320
294
|
oauth_authorization_server: {
|
321
|
-
pushed_authorization_request_endpoint: string;
|
322
295
|
jwks: {
|
323
296
|
keys: {
|
324
297
|
kty: "RSA" | "EC";
|
@@ -346,8 +319,8 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
346
319
|
}[];
|
347
320
|
};
|
348
321
|
authorization_endpoint: string;
|
322
|
+
pushed_authorization_request_endpoint: string;
|
349
323
|
token_endpoint: string;
|
350
|
-
request_object_signing_alg_values_supported: string[];
|
351
324
|
client_registration_types_supported: string[];
|
352
325
|
code_challenge_methods_supported: string[];
|
353
326
|
acr_values_supported: string[];
|
@@ -357,15 +330,9 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
357
330
|
response_modes_supported: string[];
|
358
331
|
token_endpoint_auth_methods_supported: string[];
|
359
332
|
token_endpoint_auth_signing_alg_values_supported: string[];
|
360
|
-
|
361
|
-
introspection_endpoint?: string | undefined;
|
362
|
-
authorization_details_types_supported?: string[] | undefined;
|
363
|
-
request_parameter_supported?: boolean | undefined;
|
364
|
-
request_uri_parameter_supported?: boolean | undefined;
|
365
|
-
response_types_supported?: string[] | undefined;
|
366
|
-
subject_types_supported?: string[] | undefined;
|
333
|
+
request_object_signing_alg_values_supported: string[];
|
367
334
|
};
|
368
|
-
|
335
|
+
openid_credential_verifier?: {
|
369
336
|
jwks: {
|
370
337
|
keys: {
|
371
338
|
kty: "RSA" | "EC";
|
@@ -433,19 +400,12 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
433
400
|
count?: number | undefined;
|
434
401
|
}[] | undefined;
|
435
402
|
} | undefined;
|
436
|
-
|
403
|
+
request_uris?: string[] | undefined;
|
404
|
+
authorization_signed_response_alg?: string | undefined;
|
405
|
+
authorization_encrypted_response_alg?: string | undefined;
|
406
|
+
authorization_encrypted_response_enc?: string | undefined;
|
437
407
|
} | undefined;
|
438
408
|
};
|
439
|
-
};
|
440
|
-
}>;
|
441
|
-
export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
442
|
-
header: {
|
443
|
-
alg: string;
|
444
|
-
kid: string;
|
445
|
-
typ: "entity-statement+jwt";
|
446
|
-
};
|
447
|
-
payload: {
|
448
|
-
iss: string;
|
449
409
|
jwks: {
|
450
410
|
keys: {
|
451
411
|
kty: "RSA" | "EC";
|
@@ -472,9 +432,19 @@ export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Paramete
|
|
472
432
|
x5u?: string | undefined;
|
473
433
|
}[];
|
474
434
|
};
|
435
|
+
};
|
436
|
+
}>;
|
437
|
+
export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
438
|
+
header: {
|
439
|
+
alg: string;
|
440
|
+
kid: string;
|
441
|
+
typ: "entity-statement+jwt";
|
442
|
+
};
|
443
|
+
payload: {
|
444
|
+
iss: string;
|
445
|
+
sub: string;
|
475
446
|
iat: number;
|
476
447
|
exp: number;
|
477
|
-
sub: string;
|
478
448
|
metadata: {
|
479
449
|
federation_entity: {
|
480
450
|
federation_fetch_endpoint?: string | undefined;
|
@@ -482,6 +452,9 @@ export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Paramete
|
|
482
452
|
federation_resolve_endpoint?: string | undefined;
|
483
453
|
federation_trust_mark_status_endpoint?: string | undefined;
|
484
454
|
federation_trust_mark_list_endpoint?: string | undefined;
|
455
|
+
federation_trust_mark_endpoint?: string | undefined;
|
456
|
+
federation_historical_keys_endpoint?: string | undefined;
|
457
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
485
458
|
organization_name?: string | undefined;
|
486
459
|
homepage_uri?: string | undefined;
|
487
460
|
policy_uri?: string | undefined;
|
@@ -493,19 +466,6 @@ export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Paramete
|
|
493
466
|
} & {
|
494
467
|
[k: string]: unknown;
|
495
468
|
};
|
496
|
-
authority_hints?: string[] | undefined;
|
497
|
-
} & {
|
498
|
-
[k: string]: unknown;
|
499
|
-
};
|
500
|
-
}>;
|
501
|
-
export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
502
|
-
header: {
|
503
|
-
alg: string;
|
504
|
-
kid: string;
|
505
|
-
typ: "entity-statement+jwt";
|
506
|
-
};
|
507
|
-
payload: {
|
508
|
-
iss: string;
|
509
469
|
jwks: {
|
510
470
|
keys: {
|
511
471
|
kty: "RSA" | "EC";
|
@@ -532,9 +492,22 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
|
|
532
492
|
x5u?: string | undefined;
|
533
493
|
}[];
|
534
494
|
};
|
495
|
+
authority_hints?: string[] | undefined;
|
496
|
+
} & {
|
497
|
+
[k: string]: unknown;
|
498
|
+
};
|
499
|
+
}>;
|
500
|
+
export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
|
501
|
+
header: {
|
502
|
+
alg: string;
|
503
|
+
kid: string;
|
504
|
+
typ: "entity-statement+jwt";
|
505
|
+
};
|
506
|
+
payload: {
|
507
|
+
iss: string;
|
508
|
+
sub: string;
|
535
509
|
iat: number;
|
536
510
|
exp: number;
|
537
|
-
sub: string;
|
538
511
|
metadata: {
|
539
512
|
federation_entity: {
|
540
513
|
federation_fetch_endpoint?: string | undefined;
|
@@ -542,6 +515,9 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
|
|
542
515
|
federation_resolve_endpoint?: string | undefined;
|
543
516
|
federation_trust_mark_status_endpoint?: string | undefined;
|
544
517
|
federation_trust_mark_list_endpoint?: string | undefined;
|
518
|
+
federation_trust_mark_endpoint?: string | undefined;
|
519
|
+
federation_historical_keys_endpoint?: string | undefined;
|
520
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
545
521
|
organization_name?: string | undefined;
|
546
522
|
homepage_uri?: string | undefined;
|
547
523
|
policy_uri?: string | undefined;
|
@@ -553,6 +529,32 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
|
|
553
529
|
} & {
|
554
530
|
[k: string]: unknown;
|
555
531
|
};
|
532
|
+
jwks: {
|
533
|
+
keys: {
|
534
|
+
kty: "RSA" | "EC";
|
535
|
+
alg?: string | undefined;
|
536
|
+
crv?: string | undefined;
|
537
|
+
d?: string | undefined;
|
538
|
+
dp?: string | undefined;
|
539
|
+
dq?: string | undefined;
|
540
|
+
e?: string | undefined;
|
541
|
+
ext?: boolean | undefined;
|
542
|
+
k?: string | undefined;
|
543
|
+
key_ops?: string[] | undefined;
|
544
|
+
kid?: string | undefined;
|
545
|
+
n?: string | undefined;
|
546
|
+
p?: string | undefined;
|
547
|
+
q?: string | undefined;
|
548
|
+
qi?: string | undefined;
|
549
|
+
use?: string | undefined;
|
550
|
+
x?: string | undefined;
|
551
|
+
y?: string | undefined;
|
552
|
+
x5c?: string[] | undefined;
|
553
|
+
x5t?: string | undefined;
|
554
|
+
"x5t#S256"?: string | undefined;
|
555
|
+
x5u?: string | undefined;
|
556
|
+
}[];
|
557
|
+
};
|
556
558
|
authority_hints?: string[] | undefined;
|
557
559
|
} & {
|
558
560
|
[k: string]: unknown;
|
@@ -560,7 +562,7 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
|
|
560
562
|
} & {
|
561
563
|
payload: {
|
562
564
|
metadata: {
|
563
|
-
|
565
|
+
openid_credential_verifier: {
|
564
566
|
jwks: {
|
565
567
|
keys: {
|
566
568
|
kty: "RSA" | "EC";
|
@@ -628,7 +630,10 @@ export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Paramet
|
|
628
630
|
count?: number | undefined;
|
629
631
|
}[] | undefined;
|
630
632
|
} | undefined;
|
631
|
-
|
633
|
+
request_uris?: string[] | undefined;
|
634
|
+
authorization_signed_response_alg?: string | undefined;
|
635
|
+
authorization_encrypted_response_alg?: string | undefined;
|
636
|
+
authorization_encrypted_response_enc?: string | undefined;
|
632
637
|
};
|
633
638
|
};
|
634
639
|
};
|
@@ -641,35 +646,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
641
646
|
};
|
642
647
|
payload: {
|
643
648
|
iss: string;
|
644
|
-
|
645
|
-
keys: {
|
646
|
-
kty: "RSA" | "EC";
|
647
|
-
alg?: string | undefined;
|
648
|
-
crv?: string | undefined;
|
649
|
-
d?: string | undefined;
|
650
|
-
dp?: string | undefined;
|
651
|
-
dq?: string | undefined;
|
652
|
-
e?: string | undefined;
|
653
|
-
ext?: boolean | undefined;
|
654
|
-
k?: string | undefined;
|
655
|
-
key_ops?: string[] | undefined;
|
656
|
-
kid?: string | undefined;
|
657
|
-
n?: string | undefined;
|
658
|
-
p?: string | undefined;
|
659
|
-
q?: string | undefined;
|
660
|
-
qi?: string | undefined;
|
661
|
-
use?: string | undefined;
|
662
|
-
x?: string | undefined;
|
663
|
-
y?: string | undefined;
|
664
|
-
x5c?: string[] | undefined;
|
665
|
-
x5t?: string | undefined;
|
666
|
-
"x5t#S256"?: string | undefined;
|
667
|
-
x5u?: string | undefined;
|
668
|
-
}[];
|
669
|
-
};
|
649
|
+
sub: string;
|
670
650
|
iat: number;
|
671
651
|
exp: number;
|
672
|
-
sub: string;
|
673
652
|
metadata: {
|
674
653
|
federation_entity: {
|
675
654
|
federation_fetch_endpoint?: string | undefined;
|
@@ -677,6 +656,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
677
656
|
federation_resolve_endpoint?: string | undefined;
|
678
657
|
federation_trust_mark_status_endpoint?: string | undefined;
|
679
658
|
federation_trust_mark_list_endpoint?: string | undefined;
|
659
|
+
federation_trust_mark_endpoint?: string | undefined;
|
660
|
+
federation_historical_keys_endpoint?: string | undefined;
|
661
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
680
662
|
organization_name?: string | undefined;
|
681
663
|
homepage_uri?: string | undefined;
|
682
664
|
policy_uri?: string | undefined;
|
@@ -688,18 +670,6 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
688
670
|
} & {
|
689
671
|
[k: string]: unknown;
|
690
672
|
};
|
691
|
-
authority_hints?: string[] | undefined;
|
692
|
-
} & {
|
693
|
-
[k: string]: unknown;
|
694
|
-
};
|
695
|
-
} | ({
|
696
|
-
header: {
|
697
|
-
alg: string;
|
698
|
-
kid: string;
|
699
|
-
typ: "entity-statement+jwt";
|
700
|
-
};
|
701
|
-
payload: {
|
702
|
-
iss: string;
|
703
673
|
jwks: {
|
704
674
|
keys: {
|
705
675
|
kty: "RSA" | "EC";
|
@@ -726,9 +696,21 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
726
696
|
x5u?: string | undefined;
|
727
697
|
}[];
|
728
698
|
};
|
699
|
+
authority_hints?: string[] | undefined;
|
700
|
+
} & {
|
701
|
+
[k: string]: unknown;
|
702
|
+
};
|
703
|
+
} | ({
|
704
|
+
header: {
|
705
|
+
alg: string;
|
706
|
+
kid: string;
|
707
|
+
typ: "entity-statement+jwt";
|
708
|
+
};
|
709
|
+
payload: {
|
710
|
+
iss: string;
|
711
|
+
sub: string;
|
729
712
|
iat: number;
|
730
713
|
exp: number;
|
731
|
-
sub: string;
|
732
714
|
metadata: {
|
733
715
|
federation_entity: {
|
734
716
|
federation_fetch_endpoint?: string | undefined;
|
@@ -736,6 +718,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
736
718
|
federation_resolve_endpoint?: string | undefined;
|
737
719
|
federation_trust_mark_status_endpoint?: string | undefined;
|
738
720
|
federation_trust_mark_list_endpoint?: string | undefined;
|
721
|
+
federation_trust_mark_endpoint?: string | undefined;
|
722
|
+
federation_historical_keys_endpoint?: string | undefined;
|
723
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
739
724
|
organization_name?: string | undefined;
|
740
725
|
homepage_uri?: string | undefined;
|
741
726
|
policy_uri?: string | undefined;
|
@@ -747,12 +732,6 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
747
732
|
} & {
|
748
733
|
[k: string]: unknown;
|
749
734
|
};
|
750
|
-
authority_hints?: string[] | undefined;
|
751
|
-
} & {
|
752
|
-
[k: string]: unknown;
|
753
|
-
};
|
754
|
-
} & {
|
755
|
-
payload: {
|
756
735
|
jwks: {
|
757
736
|
keys: {
|
758
737
|
kty: "RSA" | "EC";
|
@@ -779,47 +758,14 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
779
758
|
x5u?: string | undefined;
|
780
759
|
}[];
|
781
760
|
};
|
761
|
+
authority_hints?: string[] | undefined;
|
762
|
+
} & {
|
763
|
+
[k: string]: unknown;
|
764
|
+
};
|
765
|
+
} & {
|
766
|
+
payload: {
|
782
767
|
metadata: {
|
783
768
|
openid_credential_issuer: {
|
784
|
-
display: {
|
785
|
-
name: string;
|
786
|
-
locale: string;
|
787
|
-
logo?: {
|
788
|
-
url: string;
|
789
|
-
alt_text: string;
|
790
|
-
} | undefined;
|
791
|
-
}[];
|
792
|
-
credential_configurations_supported: Record<string, {
|
793
|
-
display: {
|
794
|
-
name: string;
|
795
|
-
locale: string;
|
796
|
-
logo?: {
|
797
|
-
url: string;
|
798
|
-
alt_text: string;
|
799
|
-
} | undefined;
|
800
|
-
background_color?: string | undefined;
|
801
|
-
text_color?: string | undefined;
|
802
|
-
}[];
|
803
|
-
scope: string;
|
804
|
-
cryptographic_binding_methods_supported: string[];
|
805
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
806
|
-
credential_signing_alg_values_supported: string[];
|
807
|
-
claims?: Record<string, {
|
808
|
-
display: {
|
809
|
-
name: string;
|
810
|
-
locale: string;
|
811
|
-
}[];
|
812
|
-
value_type: string;
|
813
|
-
}> | undefined;
|
814
|
-
authentic_source?: string | undefined;
|
815
|
-
issuance_errors_supported?: Record<string, {
|
816
|
-
display: {
|
817
|
-
title: string;
|
818
|
-
locale: string;
|
819
|
-
description: string;
|
820
|
-
}[];
|
821
|
-
}> | undefined;
|
822
|
-
}>;
|
823
769
|
jwks: {
|
824
770
|
keys: {
|
825
771
|
kty: "RSA" | "EC";
|
@@ -850,9 +796,37 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
850
796
|
credential_endpoint: string;
|
851
797
|
revocation_endpoint: string;
|
852
798
|
status_attestation_endpoint: string;
|
799
|
+
display: {
|
800
|
+
name: string;
|
801
|
+
locale: string;
|
802
|
+
}[];
|
803
|
+
credential_configurations_supported: Record<string, {
|
804
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
805
|
+
display: {
|
806
|
+
name: string;
|
807
|
+
locale: string;
|
808
|
+
}[];
|
809
|
+
scope: string;
|
810
|
+
claims: Record<string, {
|
811
|
+
display: {
|
812
|
+
name: string;
|
813
|
+
locale: string;
|
814
|
+
}[];
|
815
|
+
value_type: string;
|
816
|
+
}>;
|
817
|
+
cryptographic_binding_methods_supported: string[];
|
818
|
+
credential_signing_alg_values_supported: string[];
|
819
|
+
authentic_source?: string | undefined;
|
820
|
+
issuance_errors_supported?: Record<string, {
|
821
|
+
display: {
|
822
|
+
title: string;
|
823
|
+
locale: string;
|
824
|
+
description: string;
|
825
|
+
}[];
|
826
|
+
}> | undefined;
|
827
|
+
}>;
|
853
828
|
};
|
854
829
|
oauth_authorization_server: {
|
855
|
-
pushed_authorization_request_endpoint: string;
|
856
830
|
jwks: {
|
857
831
|
keys: {
|
858
832
|
kty: "RSA" | "EC";
|
@@ -880,8 +854,8 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
880
854
|
}[];
|
881
855
|
};
|
882
856
|
authorization_endpoint: string;
|
857
|
+
pushed_authorization_request_endpoint: string;
|
883
858
|
token_endpoint: string;
|
884
|
-
request_object_signing_alg_values_supported: string[];
|
885
859
|
client_registration_types_supported: string[];
|
886
860
|
code_challenge_methods_supported: string[];
|
887
861
|
acr_values_supported: string[];
|
@@ -891,15 +865,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
891
865
|
response_modes_supported: string[];
|
892
866
|
token_endpoint_auth_methods_supported: string[];
|
893
867
|
token_endpoint_auth_signing_alg_values_supported: string[];
|
894
|
-
|
895
|
-
introspection_endpoint?: string | undefined;
|
896
|
-
authorization_details_types_supported?: string[] | undefined;
|
897
|
-
request_parameter_supported?: boolean | undefined;
|
898
|
-
request_uri_parameter_supported?: boolean | undefined;
|
899
|
-
response_types_supported?: string[] | undefined;
|
900
|
-
subject_types_supported?: string[] | undefined;
|
868
|
+
request_object_signing_alg_values_supported: string[];
|
901
869
|
};
|
902
|
-
|
870
|
+
openid_credential_verifier?: {
|
903
871
|
jwks: {
|
904
872
|
keys: {
|
905
873
|
kty: "RSA" | "EC";
|
@@ -967,18 +935,12 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
967
935
|
count?: number | undefined;
|
968
936
|
}[] | undefined;
|
969
937
|
} | undefined;
|
970
|
-
|
938
|
+
request_uris?: string[] | undefined;
|
939
|
+
authorization_signed_response_alg?: string | undefined;
|
940
|
+
authorization_encrypted_response_alg?: string | undefined;
|
941
|
+
authorization_encrypted_response_enc?: string | undefined;
|
971
942
|
} | undefined;
|
972
943
|
};
|
973
|
-
};
|
974
|
-
}) | ({
|
975
|
-
header: {
|
976
|
-
alg: string;
|
977
|
-
kid: string;
|
978
|
-
typ: "entity-statement+jwt";
|
979
|
-
};
|
980
|
-
payload: {
|
981
|
-
iss: string;
|
982
944
|
jwks: {
|
983
945
|
keys: {
|
984
946
|
kty: "RSA" | "EC";
|
@@ -1005,9 +967,18 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1005
967
|
x5u?: string | undefined;
|
1006
968
|
}[];
|
1007
969
|
};
|
970
|
+
};
|
971
|
+
}) | ({
|
972
|
+
header: {
|
973
|
+
alg: string;
|
974
|
+
kid: string;
|
975
|
+
typ: "entity-statement+jwt";
|
976
|
+
};
|
977
|
+
payload: {
|
978
|
+
iss: string;
|
979
|
+
sub: string;
|
1008
980
|
iat: number;
|
1009
981
|
exp: number;
|
1010
|
-
sub: string;
|
1011
982
|
metadata: {
|
1012
983
|
federation_entity: {
|
1013
984
|
federation_fetch_endpoint?: string | undefined;
|
@@ -1015,6 +986,9 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1015
986
|
federation_resolve_endpoint?: string | undefined;
|
1016
987
|
federation_trust_mark_status_endpoint?: string | undefined;
|
1017
988
|
federation_trust_mark_list_endpoint?: string | undefined;
|
989
|
+
federation_trust_mark_endpoint?: string | undefined;
|
990
|
+
federation_historical_keys_endpoint?: string | undefined;
|
991
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
1018
992
|
organization_name?: string | undefined;
|
1019
993
|
homepage_uri?: string | undefined;
|
1020
994
|
policy_uri?: string | undefined;
|
@@ -1026,6 +1000,32 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1026
1000
|
} & {
|
1027
1001
|
[k: string]: unknown;
|
1028
1002
|
};
|
1003
|
+
jwks: {
|
1004
|
+
keys: {
|
1005
|
+
kty: "RSA" | "EC";
|
1006
|
+
alg?: string | undefined;
|
1007
|
+
crv?: string | undefined;
|
1008
|
+
d?: string | undefined;
|
1009
|
+
dp?: string | undefined;
|
1010
|
+
dq?: string | undefined;
|
1011
|
+
e?: string | undefined;
|
1012
|
+
ext?: boolean | undefined;
|
1013
|
+
k?: string | undefined;
|
1014
|
+
key_ops?: string[] | undefined;
|
1015
|
+
kid?: string | undefined;
|
1016
|
+
n?: string | undefined;
|
1017
|
+
p?: string | undefined;
|
1018
|
+
q?: string | undefined;
|
1019
|
+
qi?: string | undefined;
|
1020
|
+
use?: string | undefined;
|
1021
|
+
x?: string | undefined;
|
1022
|
+
y?: string | undefined;
|
1023
|
+
x5c?: string[] | undefined;
|
1024
|
+
x5t?: string | undefined;
|
1025
|
+
"x5t#S256"?: string | undefined;
|
1026
|
+
x5u?: string | undefined;
|
1027
|
+
}[];
|
1028
|
+
};
|
1029
1029
|
authority_hints?: string[] | undefined;
|
1030
1030
|
} & {
|
1031
1031
|
[k: string]: unknown;
|
@@ -1033,7 +1033,7 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1033
1033
|
} & {
|
1034
1034
|
payload: {
|
1035
1035
|
metadata: {
|
1036
|
-
|
1036
|
+
openid_credential_verifier: {
|
1037
1037
|
jwks: {
|
1038
1038
|
keys: {
|
1039
1039
|
kty: "RSA" | "EC";
|
@@ -1101,7 +1101,10 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1101
1101
|
count?: number | undefined;
|
1102
1102
|
}[] | undefined;
|
1103
1103
|
} | undefined;
|
1104
|
-
|
1104
|
+
request_uris?: string[] | undefined;
|
1105
|
+
authorization_signed_response_alg?: string | undefined;
|
1106
|
+
authorization_encrypted_response_alg?: string | undefined;
|
1107
|
+
authorization_encrypted_response_enc?: string | undefined;
|
1105
1108
|
};
|
1106
1109
|
};
|
1107
1110
|
};
|
@@ -1113,6 +1116,30 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1113
1116
|
};
|
1114
1117
|
payload: {
|
1115
1118
|
iss: string;
|
1119
|
+
sub: string;
|
1120
|
+
iat: number;
|
1121
|
+
exp: number;
|
1122
|
+
metadata: {
|
1123
|
+
federation_entity: {
|
1124
|
+
federation_fetch_endpoint?: string | undefined;
|
1125
|
+
federation_list_endpoint?: string | undefined;
|
1126
|
+
federation_resolve_endpoint?: string | undefined;
|
1127
|
+
federation_trust_mark_status_endpoint?: string | undefined;
|
1128
|
+
federation_trust_mark_list_endpoint?: string | undefined;
|
1129
|
+
federation_trust_mark_endpoint?: string | undefined;
|
1130
|
+
federation_historical_keys_endpoint?: string | undefined;
|
1131
|
+
endpoint_auth_signing_alg_values_supported?: string | undefined;
|
1132
|
+
organization_name?: string | undefined;
|
1133
|
+
homepage_uri?: string | undefined;
|
1134
|
+
policy_uri?: string | undefined;
|
1135
|
+
logo_uri?: string | undefined;
|
1136
|
+
contacts?: string[] | undefined;
|
1137
|
+
} & {
|
1138
|
+
[k: string]: unknown;
|
1139
|
+
};
|
1140
|
+
} & {
|
1141
|
+
[k: string]: unknown;
|
1142
|
+
};
|
1116
1143
|
jwks: {
|
1117
1144
|
keys: {
|
1118
1145
|
kty: "RSA" | "EC";
|
@@ -1139,27 +1166,6 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1139
1166
|
x5u?: string | undefined;
|
1140
1167
|
}[];
|
1141
1168
|
};
|
1142
|
-
iat: number;
|
1143
|
-
exp: number;
|
1144
|
-
sub: string;
|
1145
|
-
metadata: {
|
1146
|
-
federation_entity: {
|
1147
|
-
federation_fetch_endpoint?: string | undefined;
|
1148
|
-
federation_list_endpoint?: string | undefined;
|
1149
|
-
federation_resolve_endpoint?: string | undefined;
|
1150
|
-
federation_trust_mark_status_endpoint?: string | undefined;
|
1151
|
-
federation_trust_mark_list_endpoint?: string | undefined;
|
1152
|
-
organization_name?: string | undefined;
|
1153
|
-
homepage_uri?: string | undefined;
|
1154
|
-
policy_uri?: string | undefined;
|
1155
|
-
logo_uri?: string | undefined;
|
1156
|
-
contacts?: string[] | undefined;
|
1157
|
-
} & {
|
1158
|
-
[k: string]: unknown;
|
1159
|
-
};
|
1160
|
-
} & {
|
1161
|
-
[k: string]: unknown;
|
1162
|
-
};
|
1163
1169
|
authority_hints?: string[] | undefined;
|
1164
1170
|
} & {
|
1165
1171
|
[k: string]: unknown;
|
@@ -1208,12 +1214,11 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
1208
1214
|
/**
|
1209
1215
|
* Fetch and parse the entity statement document for a given federation entity.
|
1210
1216
|
*
|
1211
|
-
* @param accreditationBodyBaseUrl The base url of the
|
1217
|
+
* @param accreditationBodyBaseUrl The base url of the accreditation body which holds and signs the required entity statement
|
1212
1218
|
* @param subordinatedEntityBaseUrl The url that identifies the subordinate entity
|
1213
|
-
* @param
|
1219
|
+
* @param appFetch An optional instance of the http client to be used.
|
1214
1220
|
* @returns The parsed entity configuration object
|
1215
1221
|
* @throws {IoWalletError} If the http request fails
|
1216
|
-
* @throws Parse error if the document is not in the expected shape.
|
1217
1222
|
*/
|
1218
1223
|
export declare function getEntityStatement(accreditationBodyBaseUrl: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
|
1219
1224
|
appFetch?: GlobalFetch["fetch"];
|
@@ -1225,6 +1230,9 @@ export declare function getEntityStatement(accreditationBodyBaseUrl: string, sub
|
|
1225
1230
|
};
|
1226
1231
|
payload: {
|
1227
1232
|
iss: string;
|
1233
|
+
sub: string;
|
1234
|
+
iat: number;
|
1235
|
+
exp: number;
|
1228
1236
|
jwks: {
|
1229
1237
|
keys: {
|
1230
1238
|
kty: "RSA" | "EC";
|
@@ -1251,25 +1259,44 @@ export declare function getEntityStatement(accreditationBodyBaseUrl: string, sub
|
|
1251
1259
|
x5u?: string | undefined;
|
1252
1260
|
}[];
|
1253
1261
|
};
|
1254
|
-
|
1255
|
-
exp: number;
|
1256
|
-
sub: string;
|
1257
|
-
trust_marks: {
|
1262
|
+
trust_marks?: {
|
1258
1263
|
id: string;
|
1259
1264
|
trust_mark: string;
|
1260
|
-
}[];
|
1265
|
+
}[] | undefined;
|
1261
1266
|
};
|
1262
1267
|
}>;
|
1263
1268
|
/**
|
1264
1269
|
* Fetch the entity statement document for a given federation entity.
|
1265
1270
|
*
|
1266
|
-
* @param
|
1267
|
-
* @param subordinatedEntityBaseUrl The url that identifies the subordinate entity
|
1268
|
-
* @param
|
1269
|
-
* @returns The signed entity statement token
|
1270
|
-
* @throws {IoWalletError} If the http request fails
|
1271
|
+
* @param federationFetchEndpoint The exact endpoint provided by the parent EC's metadata.
|
1272
|
+
* @param subordinatedEntityBaseUrl The url that identifies the subordinate entity.
|
1273
|
+
* @param appFetch An optional instance of the http client to be used.
|
1274
|
+
* @returns The signed entity statement token.
|
1275
|
+
* @throws {IoWalletError} If the http request fails.
|
1271
1276
|
*/
|
1272
|
-
export declare function getSignedEntityStatement(
|
1277
|
+
export declare function getSignedEntityStatement(federationFetchEndpoint: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
|
1273
1278
|
appFetch?: GlobalFetch["fetch"];
|
1274
1279
|
}): Promise<string>;
|
1280
|
+
/**
|
1281
|
+
* Fetch the federation list document from a given endpoint.
|
1282
|
+
*
|
1283
|
+
* @param federationListEndpoint The URL of the federation list endpoint.
|
1284
|
+
* @param appFetch An optional instance of the http client to be used.
|
1285
|
+
* @returns The federation list as an array of strings.
|
1286
|
+
* @throws {IoWalletError} If the HTTP request fails.
|
1287
|
+
* @throws {FederationError} If the result is not in the expected format.
|
1288
|
+
*/
|
1289
|
+
export declare function getFederationList(federationListEndpoint: string, { appFetch, }?: {
|
1290
|
+
appFetch?: GlobalFetch["fetch"];
|
1291
|
+
}): Promise<string[]>;
|
1292
|
+
/**
|
1293
|
+
* Build a not-verified trust chain for a given Relying Party (RP) entity.
|
1294
|
+
*
|
1295
|
+
* @param relyingPartyEntityBaseUrl The base URL of the RP entity
|
1296
|
+
* @param trustAnchorKey The public key of the Trust Anchor (TA) entity
|
1297
|
+
* @param appFetch An optional instance of the http client to be used.
|
1298
|
+
* @returns A list of signed tokens that represent the trust chain, in the order of the chain (from the RP to the Trust Anchor)
|
1299
|
+
* @throws {FederationError} When an element of the chain fails to parse or other build steps fail.
|
1300
|
+
*/
|
1301
|
+
export declare function buildTrustChain(relyingPartyEntityBaseUrl: string, trustAnchorKey: JWK, appFetch?: GlobalFetch["fetch"]): Promise<string[]>;
|
1275
1302
|
//# sourceMappingURL=index.d.ts.map
|