@pagopa/io-react-native-wallet 1.7.1 → 2.0.0-next.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 +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/{entity/trust → trust}/chain.js +49 -55
- package/lib/commonjs/trust/chain.js.map +1 -0
- package/lib/commonjs/trust/errors.js +110 -0
- package/lib/commonjs/trust/errors.js.map +1 -0
- package/lib/commonjs/trust/index.js +282 -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 +41 -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/chain.js +108 -0
- package/lib/module/trust/chain.js.map +1 -0
- package/lib/module/trust/errors.js +94 -0
- package/lib/module/trust/errors.js.map +1 -0
- package/lib/module/trust/index.js +263 -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 +33 -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 +30 -82
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/types.d.ts +29 -134
- package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
- package/lib/typescript/{entity/trust → trust}/chain.d.ts +5 -10
- package/lib/typescript/trust/chain.d.ts.map +1 -0
- package/lib/typescript/trust/errors.d.ts +80 -0
- package/lib/typescript/trust/errors.d.ts.map +1 -0
- package/lib/typescript/{entity/trust → trust}/index.d.ts +211 -186
- package/lib/typescript/trust/index.d.ts.map +1 -0
- package/lib/typescript/{entity/trust → trust}/types.d.ts +1533 -1120
- package/lib/typescript/{entity/trust → trust}/types.d.ts.map +1 -1
- package/lib/typescript/trust/utils.d.ts +12 -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 +78 -120
- package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
- package/package.json +8 -9
- 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/chain.ts +151 -0
- package/src/trust/errors.ts +105 -0
- package/src/{entity/trust → trust}/index.ts +198 -23
- package/src/{entity/trust → trust}/types.ts +24 -37
- package/src/trust/utils.ts +35 -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.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.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,777 +0,0 @@
|
|
1
|
-
import * as z from "zod";
|
2
|
-
export type CredentialDisplay = z.infer<typeof CredentialDisplay>;
|
3
|
-
export declare const CredentialDisplay: z.ZodObject<{
|
4
|
-
name: z.ZodString;
|
5
|
-
locale: z.ZodString;
|
6
|
-
logo: z.ZodOptional<z.ZodObject<{
|
7
|
-
url: z.ZodString;
|
8
|
-
alt_text: z.ZodString;
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
10
|
-
url: string;
|
11
|
-
alt_text: string;
|
12
|
-
}, {
|
13
|
-
url: string;
|
14
|
-
alt_text: string;
|
15
|
-
}>>;
|
16
|
-
background_color: z.ZodOptional<z.ZodString>;
|
17
|
-
text_color: z.ZodOptional<z.ZodString>;
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
19
|
-
name: string;
|
20
|
-
locale: string;
|
21
|
-
logo?: {
|
22
|
-
url: string;
|
23
|
-
alt_text: string;
|
24
|
-
} | undefined;
|
25
|
-
background_color?: string | undefined;
|
26
|
-
text_color?: string | undefined;
|
27
|
-
}, {
|
28
|
-
name: string;
|
29
|
-
locale: string;
|
30
|
-
logo?: {
|
31
|
-
url: string;
|
32
|
-
alt_text: string;
|
33
|
-
} | undefined;
|
34
|
-
background_color?: string | undefined;
|
35
|
-
text_color?: string | undefined;
|
36
|
-
}>;
|
37
|
-
export declare const CredentialClaimDisplay: z.ZodObject<{
|
38
|
-
name: z.ZodString;
|
39
|
-
locale: z.ZodString;
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
41
|
-
name: string;
|
42
|
-
locale: string;
|
43
|
-
}, {
|
44
|
-
name: string;
|
45
|
-
locale: string;
|
46
|
-
}>;
|
47
|
-
export declare const CredentialFormat: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"mso_mdoc">]>;
|
48
|
-
export type CredentialClaim = z.infer<typeof CredentialClaim>;
|
49
|
-
export declare const CredentialClaim: z.ZodObject<{
|
50
|
-
mandatory: z.ZodBoolean;
|
51
|
-
display: z.ZodArray<z.ZodObject<{
|
52
|
-
name: z.ZodString;
|
53
|
-
locale: z.ZodString;
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
55
|
-
name: string;
|
56
|
-
locale: string;
|
57
|
-
}, {
|
58
|
-
name: string;
|
59
|
-
locale: string;
|
60
|
-
}>, "many">;
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
62
|
-
mandatory: boolean;
|
63
|
-
display: {
|
64
|
-
name: string;
|
65
|
-
locale: string;
|
66
|
-
}[];
|
67
|
-
}, {
|
68
|
-
mandatory: boolean;
|
69
|
-
display: {
|
70
|
-
name: string;
|
71
|
-
locale: string;
|
72
|
-
}[];
|
73
|
-
}>;
|
74
|
-
export type CredentialSdJwtClaims = z.infer<typeof CredentialSdJwtClaims>;
|
75
|
-
export declare const CredentialSdJwtClaims: z.ZodRecord<z.ZodString, z.ZodObject<{
|
76
|
-
mandatory: z.ZodBoolean;
|
77
|
-
display: z.ZodArray<z.ZodObject<{
|
78
|
-
name: z.ZodString;
|
79
|
-
locale: z.ZodString;
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
81
|
-
name: string;
|
82
|
-
locale: string;
|
83
|
-
}, {
|
84
|
-
name: string;
|
85
|
-
locale: string;
|
86
|
-
}>, "many">;
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
88
|
-
mandatory: boolean;
|
89
|
-
display: {
|
90
|
-
name: string;
|
91
|
-
locale: string;
|
92
|
-
}[];
|
93
|
-
}, {
|
94
|
-
mandatory: boolean;
|
95
|
-
display: {
|
96
|
-
name: string;
|
97
|
-
locale: string;
|
98
|
-
}[];
|
99
|
-
}>>;
|
100
|
-
export type CredentialConfigurationSupported = z.infer<typeof CredentialConfigurationSupported>;
|
101
|
-
export declare const CredentialConfigurationSupported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
102
|
-
cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
|
103
|
-
vct: z.ZodOptional<z.ZodString>;
|
104
|
-
scope: z.ZodOptional<z.ZodString>;
|
105
|
-
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
|
106
|
-
display: z.ZodArray<z.ZodObject<{
|
107
|
-
name: z.ZodString;
|
108
|
-
locale: z.ZodString;
|
109
|
-
logo: z.ZodOptional<z.ZodObject<{
|
110
|
-
url: z.ZodString;
|
111
|
-
alt_text: z.ZodString;
|
112
|
-
}, "strip", z.ZodTypeAny, {
|
113
|
-
url: string;
|
114
|
-
alt_text: string;
|
115
|
-
}, {
|
116
|
-
url: string;
|
117
|
-
alt_text: string;
|
118
|
-
}>>;
|
119
|
-
background_color: z.ZodOptional<z.ZodString>;
|
120
|
-
text_color: z.ZodOptional<z.ZodString>;
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
122
|
-
name: string;
|
123
|
-
locale: string;
|
124
|
-
logo?: {
|
125
|
-
url: string;
|
126
|
-
alt_text: string;
|
127
|
-
} | undefined;
|
128
|
-
background_color?: string | undefined;
|
129
|
-
text_color?: string | undefined;
|
130
|
-
}, {
|
131
|
-
name: string;
|
132
|
-
locale: string;
|
133
|
-
logo?: {
|
134
|
-
url: string;
|
135
|
-
alt_text: string;
|
136
|
-
} | undefined;
|
137
|
-
background_color?: string | undefined;
|
138
|
-
text_color?: string | undefined;
|
139
|
-
}>, "many">;
|
140
|
-
format: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"mso_mdoc">]>;
|
141
|
-
claims: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
142
|
-
mandatory: z.ZodBoolean;
|
143
|
-
display: z.ZodArray<z.ZodObject<{
|
144
|
-
name: z.ZodString;
|
145
|
-
locale: z.ZodString;
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
147
|
-
name: string;
|
148
|
-
locale: string;
|
149
|
-
}, {
|
150
|
-
name: string;
|
151
|
-
locale: string;
|
152
|
-
}>, "many">;
|
153
|
-
}, "strip", z.ZodTypeAny, {
|
154
|
-
mandatory: boolean;
|
155
|
-
display: {
|
156
|
-
name: string;
|
157
|
-
locale: string;
|
158
|
-
}[];
|
159
|
-
}, {
|
160
|
-
mandatory: boolean;
|
161
|
-
display: {
|
162
|
-
name: string;
|
163
|
-
locale: string;
|
164
|
-
}[];
|
165
|
-
}>>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
166
|
-
mandatory: z.ZodBoolean;
|
167
|
-
display: z.ZodArray<z.ZodObject<{
|
168
|
-
name: z.ZodString;
|
169
|
-
locale: z.ZodString;
|
170
|
-
}, "strip", z.ZodTypeAny, {
|
171
|
-
name: string;
|
172
|
-
locale: string;
|
173
|
-
}, {
|
174
|
-
name: string;
|
175
|
-
locale: string;
|
176
|
-
}>, "many">;
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
178
|
-
mandatory: boolean;
|
179
|
-
display: {
|
180
|
-
name: string;
|
181
|
-
locale: string;
|
182
|
-
}[];
|
183
|
-
}, {
|
184
|
-
mandatory: boolean;
|
185
|
-
display: {
|
186
|
-
name: string;
|
187
|
-
locale: string;
|
188
|
-
}[];
|
189
|
-
}>>>]>>;
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
191
|
-
display: {
|
192
|
-
name: string;
|
193
|
-
locale: string;
|
194
|
-
logo?: {
|
195
|
-
url: string;
|
196
|
-
alt_text: string;
|
197
|
-
} | undefined;
|
198
|
-
background_color?: string | undefined;
|
199
|
-
text_color?: string | undefined;
|
200
|
-
}[];
|
201
|
-
cryptographic_suites_supported: string[];
|
202
|
-
cryptographic_binding_methods_supported: string[];
|
203
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
204
|
-
vct?: string | undefined;
|
205
|
-
scope?: string | undefined;
|
206
|
-
claims?: Record<string, {
|
207
|
-
mandatory: boolean;
|
208
|
-
display: {
|
209
|
-
name: string;
|
210
|
-
locale: string;
|
211
|
-
}[];
|
212
|
-
}> | Record<string, Record<string, {
|
213
|
-
mandatory: boolean;
|
214
|
-
display: {
|
215
|
-
name: string;
|
216
|
-
locale: string;
|
217
|
-
}[];
|
218
|
-
}>> | undefined;
|
219
|
-
}, {
|
220
|
-
display: {
|
221
|
-
name: string;
|
222
|
-
locale: string;
|
223
|
-
logo?: {
|
224
|
-
url: string;
|
225
|
-
alt_text: string;
|
226
|
-
} | undefined;
|
227
|
-
background_color?: string | undefined;
|
228
|
-
text_color?: string | undefined;
|
229
|
-
}[];
|
230
|
-
cryptographic_suites_supported: string[];
|
231
|
-
cryptographic_binding_methods_supported: string[];
|
232
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
233
|
-
vct?: string | undefined;
|
234
|
-
scope?: string | undefined;
|
235
|
-
claims?: Record<string, {
|
236
|
-
mandatory: boolean;
|
237
|
-
display: {
|
238
|
-
name: string;
|
239
|
-
locale: string;
|
240
|
-
}[];
|
241
|
-
}> | Record<string, Record<string, {
|
242
|
-
mandatory: boolean;
|
243
|
-
display: {
|
244
|
-
name: string;
|
245
|
-
locale: string;
|
246
|
-
}[];
|
247
|
-
}>> | undefined;
|
248
|
-
}>>;
|
249
|
-
export type CredentialIssuerKeys = z.infer<typeof CredentialIssuerKeys>;
|
250
|
-
export declare const CredentialIssuerKeys: z.ZodObject<{
|
251
|
-
keys: z.ZodArray<z.ZodObject<{
|
252
|
-
alg: z.ZodOptional<z.ZodString>;
|
253
|
-
crv: z.ZodOptional<z.ZodString>;
|
254
|
-
d: z.ZodOptional<z.ZodString>;
|
255
|
-
dp: z.ZodOptional<z.ZodString>;
|
256
|
-
dq: z.ZodOptional<z.ZodString>;
|
257
|
-
e: z.ZodOptional<z.ZodString>;
|
258
|
-
ext: z.ZodOptional<z.ZodBoolean>;
|
259
|
-
k: z.ZodOptional<z.ZodString>;
|
260
|
-
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
261
|
-
kid: z.ZodOptional<z.ZodString>;
|
262
|
-
kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
|
263
|
-
n: z.ZodOptional<z.ZodString>;
|
264
|
-
p: z.ZodOptional<z.ZodString>;
|
265
|
-
q: z.ZodOptional<z.ZodString>;
|
266
|
-
qi: z.ZodOptional<z.ZodString>;
|
267
|
-
use: z.ZodOptional<z.ZodString>;
|
268
|
-
x: z.ZodOptional<z.ZodString>;
|
269
|
-
y: z.ZodOptional<z.ZodString>;
|
270
|
-
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
271
|
-
x5t: z.ZodOptional<z.ZodString>;
|
272
|
-
"x5t#S256": z.ZodOptional<z.ZodString>;
|
273
|
-
x5u: z.ZodOptional<z.ZodString>;
|
274
|
-
}, "strip", z.ZodTypeAny, {
|
275
|
-
kty: "RSA" | "EC";
|
276
|
-
alg?: string | undefined;
|
277
|
-
crv?: string | undefined;
|
278
|
-
d?: string | undefined;
|
279
|
-
dp?: string | undefined;
|
280
|
-
dq?: string | undefined;
|
281
|
-
e?: string | undefined;
|
282
|
-
ext?: boolean | undefined;
|
283
|
-
k?: string | undefined;
|
284
|
-
key_ops?: string[] | undefined;
|
285
|
-
kid?: string | undefined;
|
286
|
-
n?: string | undefined;
|
287
|
-
p?: string | undefined;
|
288
|
-
q?: string | undefined;
|
289
|
-
qi?: string | undefined;
|
290
|
-
use?: string | undefined;
|
291
|
-
x?: string | undefined;
|
292
|
-
y?: string | undefined;
|
293
|
-
x5c?: string[] | undefined;
|
294
|
-
x5t?: string | undefined;
|
295
|
-
"x5t#S256"?: string | undefined;
|
296
|
-
x5u?: string | undefined;
|
297
|
-
}, {
|
298
|
-
kty: "RSA" | "EC";
|
299
|
-
alg?: string | undefined;
|
300
|
-
crv?: string | undefined;
|
301
|
-
d?: string | undefined;
|
302
|
-
dp?: string | undefined;
|
303
|
-
dq?: string | undefined;
|
304
|
-
e?: string | undefined;
|
305
|
-
ext?: boolean | undefined;
|
306
|
-
k?: string | undefined;
|
307
|
-
key_ops?: string[] | undefined;
|
308
|
-
kid?: string | undefined;
|
309
|
-
n?: string | undefined;
|
310
|
-
p?: string | undefined;
|
311
|
-
q?: string | undefined;
|
312
|
-
qi?: string | undefined;
|
313
|
-
use?: string | undefined;
|
314
|
-
x?: string | undefined;
|
315
|
-
y?: string | undefined;
|
316
|
-
x5c?: string[] | undefined;
|
317
|
-
x5t?: string | undefined;
|
318
|
-
"x5t#S256"?: string | undefined;
|
319
|
-
x5u?: string | undefined;
|
320
|
-
}>, "many">;
|
321
|
-
}, "strip", z.ZodTypeAny, {
|
322
|
-
keys: {
|
323
|
-
kty: "RSA" | "EC";
|
324
|
-
alg?: string | undefined;
|
325
|
-
crv?: string | undefined;
|
326
|
-
d?: string | undefined;
|
327
|
-
dp?: string | undefined;
|
328
|
-
dq?: string | undefined;
|
329
|
-
e?: string | undefined;
|
330
|
-
ext?: boolean | undefined;
|
331
|
-
k?: string | undefined;
|
332
|
-
key_ops?: string[] | undefined;
|
333
|
-
kid?: string | undefined;
|
334
|
-
n?: string | undefined;
|
335
|
-
p?: string | undefined;
|
336
|
-
q?: string | undefined;
|
337
|
-
qi?: string | undefined;
|
338
|
-
use?: string | undefined;
|
339
|
-
x?: string | undefined;
|
340
|
-
y?: string | undefined;
|
341
|
-
x5c?: string[] | undefined;
|
342
|
-
x5t?: string | undefined;
|
343
|
-
"x5t#S256"?: string | undefined;
|
344
|
-
x5u?: string | undefined;
|
345
|
-
}[];
|
346
|
-
}, {
|
347
|
-
keys: {
|
348
|
-
kty: "RSA" | "EC";
|
349
|
-
alg?: string | undefined;
|
350
|
-
crv?: string | undefined;
|
351
|
-
d?: string | undefined;
|
352
|
-
dp?: string | undefined;
|
353
|
-
dq?: string | undefined;
|
354
|
-
e?: string | undefined;
|
355
|
-
ext?: boolean | undefined;
|
356
|
-
k?: string | undefined;
|
357
|
-
key_ops?: string[] | undefined;
|
358
|
-
kid?: string | undefined;
|
359
|
-
n?: string | undefined;
|
360
|
-
p?: string | undefined;
|
361
|
-
q?: string | undefined;
|
362
|
-
qi?: string | undefined;
|
363
|
-
use?: string | undefined;
|
364
|
-
x?: string | undefined;
|
365
|
-
y?: string | undefined;
|
366
|
-
x5c?: string[] | undefined;
|
367
|
-
x5t?: string | undefined;
|
368
|
-
"x5t#S256"?: string | undefined;
|
369
|
-
x5u?: string | undefined;
|
370
|
-
}[];
|
371
|
-
}>;
|
372
|
-
export type CredentialIssuerConfiguration = z.infer<typeof CredentialIssuerConfiguration>;
|
373
|
-
export declare const CredentialIssuerConfiguration: z.ZodObject<{
|
374
|
-
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
375
|
-
cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
|
376
|
-
vct: z.ZodOptional<z.ZodString>;
|
377
|
-
scope: z.ZodOptional<z.ZodString>;
|
378
|
-
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
|
379
|
-
display: z.ZodArray<z.ZodObject<{
|
380
|
-
name: z.ZodString;
|
381
|
-
locale: z.ZodString;
|
382
|
-
logo: z.ZodOptional<z.ZodObject<{
|
383
|
-
url: z.ZodString;
|
384
|
-
alt_text: z.ZodString;
|
385
|
-
}, "strip", z.ZodTypeAny, {
|
386
|
-
url: string;
|
387
|
-
alt_text: string;
|
388
|
-
}, {
|
389
|
-
url: string;
|
390
|
-
alt_text: string;
|
391
|
-
}>>;
|
392
|
-
background_color: z.ZodOptional<z.ZodString>;
|
393
|
-
text_color: z.ZodOptional<z.ZodString>;
|
394
|
-
}, "strip", z.ZodTypeAny, {
|
395
|
-
name: string;
|
396
|
-
locale: string;
|
397
|
-
logo?: {
|
398
|
-
url: string;
|
399
|
-
alt_text: string;
|
400
|
-
} | undefined;
|
401
|
-
background_color?: string | undefined;
|
402
|
-
text_color?: string | undefined;
|
403
|
-
}, {
|
404
|
-
name: string;
|
405
|
-
locale: string;
|
406
|
-
logo?: {
|
407
|
-
url: string;
|
408
|
-
alt_text: string;
|
409
|
-
} | undefined;
|
410
|
-
background_color?: string | undefined;
|
411
|
-
text_color?: string | undefined;
|
412
|
-
}>, "many">;
|
413
|
-
format: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"mso_mdoc">]>;
|
414
|
-
claims: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
415
|
-
mandatory: z.ZodBoolean;
|
416
|
-
display: z.ZodArray<z.ZodObject<{
|
417
|
-
name: z.ZodString;
|
418
|
-
locale: z.ZodString;
|
419
|
-
}, "strip", z.ZodTypeAny, {
|
420
|
-
name: string;
|
421
|
-
locale: string;
|
422
|
-
}, {
|
423
|
-
name: string;
|
424
|
-
locale: string;
|
425
|
-
}>, "many">;
|
426
|
-
}, "strip", z.ZodTypeAny, {
|
427
|
-
mandatory: boolean;
|
428
|
-
display: {
|
429
|
-
name: string;
|
430
|
-
locale: string;
|
431
|
-
}[];
|
432
|
-
}, {
|
433
|
-
mandatory: boolean;
|
434
|
-
display: {
|
435
|
-
name: string;
|
436
|
-
locale: string;
|
437
|
-
}[];
|
438
|
-
}>>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
439
|
-
mandatory: z.ZodBoolean;
|
440
|
-
display: z.ZodArray<z.ZodObject<{
|
441
|
-
name: z.ZodString;
|
442
|
-
locale: z.ZodString;
|
443
|
-
}, "strip", z.ZodTypeAny, {
|
444
|
-
name: string;
|
445
|
-
locale: string;
|
446
|
-
}, {
|
447
|
-
name: string;
|
448
|
-
locale: string;
|
449
|
-
}>, "many">;
|
450
|
-
}, "strip", z.ZodTypeAny, {
|
451
|
-
mandatory: boolean;
|
452
|
-
display: {
|
453
|
-
name: string;
|
454
|
-
locale: string;
|
455
|
-
}[];
|
456
|
-
}, {
|
457
|
-
mandatory: boolean;
|
458
|
-
display: {
|
459
|
-
name: string;
|
460
|
-
locale: string;
|
461
|
-
}[];
|
462
|
-
}>>>]>>;
|
463
|
-
}, "strip", z.ZodTypeAny, {
|
464
|
-
display: {
|
465
|
-
name: string;
|
466
|
-
locale: string;
|
467
|
-
logo?: {
|
468
|
-
url: string;
|
469
|
-
alt_text: string;
|
470
|
-
} | undefined;
|
471
|
-
background_color?: string | undefined;
|
472
|
-
text_color?: string | undefined;
|
473
|
-
}[];
|
474
|
-
cryptographic_suites_supported: string[];
|
475
|
-
cryptographic_binding_methods_supported: string[];
|
476
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
477
|
-
vct?: string | undefined;
|
478
|
-
scope?: string | undefined;
|
479
|
-
claims?: Record<string, {
|
480
|
-
mandatory: boolean;
|
481
|
-
display: {
|
482
|
-
name: string;
|
483
|
-
locale: string;
|
484
|
-
}[];
|
485
|
-
}> | Record<string, Record<string, {
|
486
|
-
mandatory: boolean;
|
487
|
-
display: {
|
488
|
-
name: string;
|
489
|
-
locale: string;
|
490
|
-
}[];
|
491
|
-
}>> | undefined;
|
492
|
-
}, {
|
493
|
-
display: {
|
494
|
-
name: string;
|
495
|
-
locale: string;
|
496
|
-
logo?: {
|
497
|
-
url: string;
|
498
|
-
alt_text: string;
|
499
|
-
} | undefined;
|
500
|
-
background_color?: string | undefined;
|
501
|
-
text_color?: string | undefined;
|
502
|
-
}[];
|
503
|
-
cryptographic_suites_supported: string[];
|
504
|
-
cryptographic_binding_methods_supported: string[];
|
505
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
506
|
-
vct?: string | undefined;
|
507
|
-
scope?: string | undefined;
|
508
|
-
claims?: Record<string, {
|
509
|
-
mandatory: boolean;
|
510
|
-
display: {
|
511
|
-
name: string;
|
512
|
-
locale: string;
|
513
|
-
}[];
|
514
|
-
}> | Record<string, Record<string, {
|
515
|
-
mandatory: boolean;
|
516
|
-
display: {
|
517
|
-
name: string;
|
518
|
-
locale: string;
|
519
|
-
}[];
|
520
|
-
}>> | undefined;
|
521
|
-
}>>;
|
522
|
-
pushed_authorization_request_endpoint: z.ZodString;
|
523
|
-
dpop_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
|
524
|
-
jwks: z.ZodObject<{
|
525
|
-
keys: z.ZodArray<z.ZodObject<{
|
526
|
-
alg: z.ZodOptional<z.ZodString>;
|
527
|
-
crv: z.ZodOptional<z.ZodString>;
|
528
|
-
d: z.ZodOptional<z.ZodString>;
|
529
|
-
dp: z.ZodOptional<z.ZodString>;
|
530
|
-
dq: z.ZodOptional<z.ZodString>;
|
531
|
-
e: z.ZodOptional<z.ZodString>;
|
532
|
-
ext: z.ZodOptional<z.ZodBoolean>;
|
533
|
-
k: z.ZodOptional<z.ZodString>;
|
534
|
-
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
535
|
-
kid: z.ZodOptional<z.ZodString>;
|
536
|
-
kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
|
537
|
-
n: z.ZodOptional<z.ZodString>;
|
538
|
-
p: z.ZodOptional<z.ZodString>;
|
539
|
-
q: z.ZodOptional<z.ZodString>;
|
540
|
-
qi: z.ZodOptional<z.ZodString>;
|
541
|
-
use: z.ZodOptional<z.ZodString>;
|
542
|
-
x: z.ZodOptional<z.ZodString>;
|
543
|
-
y: z.ZodOptional<z.ZodString>;
|
544
|
-
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
545
|
-
x5t: z.ZodOptional<z.ZodString>;
|
546
|
-
"x5t#S256": z.ZodOptional<z.ZodString>;
|
547
|
-
x5u: z.ZodOptional<z.ZodString>;
|
548
|
-
}, "strip", z.ZodTypeAny, {
|
549
|
-
kty: "RSA" | "EC";
|
550
|
-
alg?: string | undefined;
|
551
|
-
crv?: string | undefined;
|
552
|
-
d?: string | undefined;
|
553
|
-
dp?: string | undefined;
|
554
|
-
dq?: string | undefined;
|
555
|
-
e?: string | undefined;
|
556
|
-
ext?: boolean | undefined;
|
557
|
-
k?: string | undefined;
|
558
|
-
key_ops?: string[] | undefined;
|
559
|
-
kid?: string | undefined;
|
560
|
-
n?: string | undefined;
|
561
|
-
p?: string | undefined;
|
562
|
-
q?: string | undefined;
|
563
|
-
qi?: string | undefined;
|
564
|
-
use?: string | undefined;
|
565
|
-
x?: string | undefined;
|
566
|
-
y?: string | undefined;
|
567
|
-
x5c?: string[] | undefined;
|
568
|
-
x5t?: string | undefined;
|
569
|
-
"x5t#S256"?: string | undefined;
|
570
|
-
x5u?: string | undefined;
|
571
|
-
}, {
|
572
|
-
kty: "RSA" | "EC";
|
573
|
-
alg?: string | undefined;
|
574
|
-
crv?: string | undefined;
|
575
|
-
d?: string | undefined;
|
576
|
-
dp?: string | undefined;
|
577
|
-
dq?: string | undefined;
|
578
|
-
e?: string | undefined;
|
579
|
-
ext?: boolean | undefined;
|
580
|
-
k?: string | undefined;
|
581
|
-
key_ops?: string[] | undefined;
|
582
|
-
kid?: string | undefined;
|
583
|
-
n?: string | undefined;
|
584
|
-
p?: string | undefined;
|
585
|
-
q?: string | undefined;
|
586
|
-
qi?: string | undefined;
|
587
|
-
use?: string | undefined;
|
588
|
-
x?: string | undefined;
|
589
|
-
y?: string | undefined;
|
590
|
-
x5c?: string[] | undefined;
|
591
|
-
x5t?: string | undefined;
|
592
|
-
"x5t#S256"?: string | undefined;
|
593
|
-
x5u?: string | undefined;
|
594
|
-
}>, "many">;
|
595
|
-
}, "strip", z.ZodTypeAny, {
|
596
|
-
keys: {
|
597
|
-
kty: "RSA" | "EC";
|
598
|
-
alg?: string | undefined;
|
599
|
-
crv?: string | undefined;
|
600
|
-
d?: string | undefined;
|
601
|
-
dp?: string | undefined;
|
602
|
-
dq?: string | undefined;
|
603
|
-
e?: string | undefined;
|
604
|
-
ext?: boolean | undefined;
|
605
|
-
k?: string | undefined;
|
606
|
-
key_ops?: string[] | undefined;
|
607
|
-
kid?: string | undefined;
|
608
|
-
n?: string | undefined;
|
609
|
-
p?: string | undefined;
|
610
|
-
q?: string | undefined;
|
611
|
-
qi?: string | undefined;
|
612
|
-
use?: string | undefined;
|
613
|
-
x?: string | undefined;
|
614
|
-
y?: string | undefined;
|
615
|
-
x5c?: string[] | undefined;
|
616
|
-
x5t?: string | undefined;
|
617
|
-
"x5t#S256"?: string | undefined;
|
618
|
-
x5u?: string | undefined;
|
619
|
-
}[];
|
620
|
-
}, {
|
621
|
-
keys: {
|
622
|
-
kty: "RSA" | "EC";
|
623
|
-
alg?: string | undefined;
|
624
|
-
crv?: string | undefined;
|
625
|
-
d?: string | undefined;
|
626
|
-
dp?: string | undefined;
|
627
|
-
dq?: string | undefined;
|
628
|
-
e?: string | undefined;
|
629
|
-
ext?: boolean | undefined;
|
630
|
-
k?: string | undefined;
|
631
|
-
key_ops?: string[] | undefined;
|
632
|
-
kid?: string | undefined;
|
633
|
-
n?: string | undefined;
|
634
|
-
p?: string | undefined;
|
635
|
-
q?: string | undefined;
|
636
|
-
qi?: string | undefined;
|
637
|
-
use?: string | undefined;
|
638
|
-
x?: string | undefined;
|
639
|
-
y?: string | undefined;
|
640
|
-
x5c?: string[] | undefined;
|
641
|
-
x5t?: string | undefined;
|
642
|
-
"x5t#S256"?: string | undefined;
|
643
|
-
x5u?: string | undefined;
|
644
|
-
}[];
|
645
|
-
}>;
|
646
|
-
credential_issuer: z.ZodString;
|
647
|
-
authorization_endpoint: z.ZodString;
|
648
|
-
token_endpoint: z.ZodString;
|
649
|
-
credential_endpoint: z.ZodString;
|
650
|
-
}, "strip", z.ZodTypeAny, {
|
651
|
-
credential_configurations_supported: Record<string, {
|
652
|
-
display: {
|
653
|
-
name: string;
|
654
|
-
locale: string;
|
655
|
-
logo?: {
|
656
|
-
url: string;
|
657
|
-
alt_text: string;
|
658
|
-
} | undefined;
|
659
|
-
background_color?: string | undefined;
|
660
|
-
text_color?: string | undefined;
|
661
|
-
}[];
|
662
|
-
cryptographic_suites_supported: string[];
|
663
|
-
cryptographic_binding_methods_supported: string[];
|
664
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
665
|
-
vct?: string | undefined;
|
666
|
-
scope?: string | undefined;
|
667
|
-
claims?: Record<string, {
|
668
|
-
mandatory: boolean;
|
669
|
-
display: {
|
670
|
-
name: string;
|
671
|
-
locale: string;
|
672
|
-
}[];
|
673
|
-
}> | Record<string, Record<string, {
|
674
|
-
mandatory: boolean;
|
675
|
-
display: {
|
676
|
-
name: string;
|
677
|
-
locale: string;
|
678
|
-
}[];
|
679
|
-
}>> | undefined;
|
680
|
-
}>;
|
681
|
-
pushed_authorization_request_endpoint: string;
|
682
|
-
dpop_signing_alg_values_supported: string[];
|
683
|
-
jwks: {
|
684
|
-
keys: {
|
685
|
-
kty: "RSA" | "EC";
|
686
|
-
alg?: string | undefined;
|
687
|
-
crv?: string | undefined;
|
688
|
-
d?: string | undefined;
|
689
|
-
dp?: string | undefined;
|
690
|
-
dq?: string | undefined;
|
691
|
-
e?: string | undefined;
|
692
|
-
ext?: boolean | undefined;
|
693
|
-
k?: string | undefined;
|
694
|
-
key_ops?: string[] | undefined;
|
695
|
-
kid?: string | undefined;
|
696
|
-
n?: string | undefined;
|
697
|
-
p?: string | undefined;
|
698
|
-
q?: string | undefined;
|
699
|
-
qi?: string | undefined;
|
700
|
-
use?: string | undefined;
|
701
|
-
x?: string | undefined;
|
702
|
-
y?: string | undefined;
|
703
|
-
x5c?: string[] | undefined;
|
704
|
-
x5t?: string | undefined;
|
705
|
-
"x5t#S256"?: string | undefined;
|
706
|
-
x5u?: string | undefined;
|
707
|
-
}[];
|
708
|
-
};
|
709
|
-
credential_issuer: string;
|
710
|
-
authorization_endpoint: string;
|
711
|
-
token_endpoint: string;
|
712
|
-
credential_endpoint: string;
|
713
|
-
}, {
|
714
|
-
credential_configurations_supported: Record<string, {
|
715
|
-
display: {
|
716
|
-
name: string;
|
717
|
-
locale: string;
|
718
|
-
logo?: {
|
719
|
-
url: string;
|
720
|
-
alt_text: string;
|
721
|
-
} | undefined;
|
722
|
-
background_color?: string | undefined;
|
723
|
-
text_color?: string | undefined;
|
724
|
-
}[];
|
725
|
-
cryptographic_suites_supported: string[];
|
726
|
-
cryptographic_binding_methods_supported: string[];
|
727
|
-
format: "vc+sd-jwt" | "mso_mdoc";
|
728
|
-
vct?: string | undefined;
|
729
|
-
scope?: string | undefined;
|
730
|
-
claims?: Record<string, {
|
731
|
-
mandatory: boolean;
|
732
|
-
display: {
|
733
|
-
name: string;
|
734
|
-
locale: string;
|
735
|
-
}[];
|
736
|
-
}> | Record<string, Record<string, {
|
737
|
-
mandatory: boolean;
|
738
|
-
display: {
|
739
|
-
name: string;
|
740
|
-
locale: string;
|
741
|
-
}[];
|
742
|
-
}>> | undefined;
|
743
|
-
}>;
|
744
|
-
pushed_authorization_request_endpoint: string;
|
745
|
-
dpop_signing_alg_values_supported: string[];
|
746
|
-
jwks: {
|
747
|
-
keys: {
|
748
|
-
kty: "RSA" | "EC";
|
749
|
-
alg?: string | undefined;
|
750
|
-
crv?: string | undefined;
|
751
|
-
d?: string | undefined;
|
752
|
-
dp?: string | undefined;
|
753
|
-
dq?: string | undefined;
|
754
|
-
e?: string | undefined;
|
755
|
-
ext?: boolean | undefined;
|
756
|
-
k?: string | undefined;
|
757
|
-
key_ops?: string[] | undefined;
|
758
|
-
kid?: string | undefined;
|
759
|
-
n?: string | undefined;
|
760
|
-
p?: string | undefined;
|
761
|
-
q?: string | undefined;
|
762
|
-
qi?: string | undefined;
|
763
|
-
use?: string | undefined;
|
764
|
-
x?: string | undefined;
|
765
|
-
y?: string | undefined;
|
766
|
-
x5c?: string[] | undefined;
|
767
|
-
x5t?: string | undefined;
|
768
|
-
"x5t#S256"?: string | undefined;
|
769
|
-
x5u?: string | undefined;
|
770
|
-
}[];
|
771
|
-
};
|
772
|
-
credential_issuer: string;
|
773
|
-
authorization_endpoint: string;
|
774
|
-
token_endpoint: string;
|
775
|
-
credential_endpoint: string;
|
776
|
-
}>;
|
777
|
-
//# sourceMappingURL=types.d.ts.map
|