@credo-ts/openid4vc 0.6.1-pr-2091-20241119140918 → 0.6.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/build/OpenId4VcApi.d.mts +24 -0
- package/build/OpenId4VcApi.d.mts.map +1 -0
- package/build/OpenId4VcApi.mjs +35 -0
- package/build/OpenId4VcApi.mjs.map +1 -0
- package/build/OpenId4VcModule.d.mts +30 -0
- package/build/OpenId4VcModule.d.mts.map +1 -0
- package/build/OpenId4VcModule.mjs +42 -0
- package/build/OpenId4VcModule.mjs.map +1 -0
- package/build/OpenId4VcModuleConfig.d.mts +44 -0
- package/build/OpenId4VcModuleConfig.d.mts.map +1 -0
- package/build/OpenId4VcModuleConfig.mjs +24 -0
- package/build/OpenId4VcModuleConfig.mjs.map +1 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs +10 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateMetadata.mjs +7 -0
- package/build/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorateParam.mjs +9 -0
- package/build/index.d.mts +42 -0
- package/build/index.mjs +37 -0
- package/build/openid4vc-holder/OpenId4VcHolderApi.d.mts +238 -0
- package/build/openid4vc-holder/OpenId4VcHolderApi.d.mts.map +1 -0
- package/build/openid4vc-holder/OpenId4VcHolderApi.mjs +174 -0
- package/build/openid4vc-holder/OpenId4VcHolderApi.mjs.map +1 -0
- package/build/openid4vc-holder/OpenId4VcHolderModule.d.mts +17 -0
- package/build/openid4vc-holder/OpenId4VcHolderModule.d.mts.map +1 -0
- package/build/openid4vc-holder/OpenId4VcHolderModule.mjs +23 -0
- package/build/openid4vc-holder/OpenId4VcHolderModule.mjs.map +1 -0
- package/build/openid4vc-holder/OpenId4VciHolderService.d.mts +69 -0
- package/build/openid4vc-holder/OpenId4VciHolderService.d.mts.map +1 -0
- package/build/openid4vc-holder/OpenId4VciHolderService.mjs +751 -0
- package/build/openid4vc-holder/OpenId4VciHolderService.mjs.map +1 -0
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.d.mts +398 -0
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.d.mts.map +1 -0
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.mjs +16 -0
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.mjs.map +1 -0
- package/build/openid4vc-holder/OpenId4vpHolderService.d.mts +130 -0
- package/build/openid4vc-holder/OpenId4vpHolderService.d.mts.map +1 -0
- package/build/openid4vc-holder/OpenId4vpHolderService.mjs +278 -0
- package/build/openid4vc-holder/OpenId4vpHolderService.mjs.map +1 -0
- package/build/openid4vc-holder/OpenId4vpHolderServiceOptions.d.mts +112 -0
- package/build/openid4vc-holder/OpenId4vpHolderServiceOptions.d.mts.map +1 -0
- package/build/openid4vc-holder/index.d.mts +6 -0
- package/build/openid4vc-holder/index.mjs +5 -0
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.d.mts +16 -0
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.mjs +18 -0
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.mjs.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.d.mts +137 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.mjs +108 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.mjs.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.d.mts +19 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.mjs +9 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.mjs.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.d.mts +27 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.mjs +150 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.mjs.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.d.mts +279 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.mjs +179 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.mjs.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerService.d.mts +182 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerService.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerService.mjs +881 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerService.mjs.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerServiceOptions.d.mts +340 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerServiceOptions.d.mts.map +1 -0
- package/build/openid4vc-issuer/OpenId4VcIssuerServiceOptions.mjs +1 -0
- package/build/openid4vc-issuer/index.d.mts +11 -0
- package/build/openid4vc-issuer/index.mjs +11 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.d.mts +300 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.d.mts.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.mjs +102 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.mjs.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.d.mts +10 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.d.mts.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.mjs +22 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.mjs.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.d.mts +84 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.d.mts.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.mjs +89 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.mjs.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.d.mts +12 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.d.mts.map +1 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.mjs +28 -0
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.mjs.map +1 -0
- package/build/openid4vc-issuer/repository/index.d.mts +4 -0
- package/build/openid4vc-issuer/repository/index.mjs +4 -0
- package/build/openid4vc-issuer/router/accessTokenEndpoint.mjs +199 -0
- package/build/openid4vc-issuer/router/accessTokenEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/authorizationChallengeEndpoint.mjs +241 -0
- package/build/openid4vc-issuer/router/authorizationChallengeEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/authorizationEndpoint.mjs +51 -0
- package/build/openid4vc-issuer/router/authorizationEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/authorizationServerMetadataEndpoint.mjs +25 -0
- package/build/openid4vc-issuer/router/authorizationServerMetadataEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/credentialEndpoint.mjs +142 -0
- package/build/openid4vc-issuer/router/credentialEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/credentialOfferEndpoint.mjs +38 -0
- package/build/openid4vc-issuer/router/credentialOfferEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/deferredCredentialEndpoint.mjs +84 -0
- package/build/openid4vc-issuer/router/deferredCredentialEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/index.mjs +12 -0
- package/build/openid4vc-issuer/router/issuerMetadataEndpoint.mjs +43 -0
- package/build/openid4vc-issuer/router/issuerMetadataEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/jwksEndpoint.mjs +18 -0
- package/build/openid4vc-issuer/router/jwksEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/nonceEndpoint.mjs +29 -0
- package/build/openid4vc-issuer/router/nonceEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/pushedAuthorizationRequestEndpoint.mjs +164 -0
- package/build/openid4vc-issuer/router/pushedAuthorizationRequestEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/router/redirectEndpoint.mjs +124 -0
- package/build/openid4vc-issuer/router/redirectEndpoint.mjs.map +1 -0
- package/build/openid4vc-issuer/util/txCode.mjs +18 -0
- package/build/openid4vc-issuer/util/txCode.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.d.mts +10 -0
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.d.mts.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.mjs +12 -0
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.d.mts +60 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.d.mts.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.mjs +83 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.d.mts +19 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.d.mts.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.mjs +9 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.d.mts +25 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.d.mts.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.mjs +91 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.d.mts +55 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.d.mts.map +1 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.mjs +36 -0
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VpVerifierService.d.mts +60 -0
- package/build/openid4vc-verifier/OpenId4VpVerifierService.d.mts.map +1 -0
- package/build/openid4vc-verifier/OpenId4VpVerifierService.mjs +714 -0
- package/build/openid4vc-verifier/OpenId4VpVerifierService.mjs.map +1 -0
- package/build/openid4vc-verifier/OpenId4VpVerifierServiceOptions.d.mts +194 -0
- package/build/openid4vc-verifier/OpenId4VpVerifierServiceOptions.d.mts.map +1 -0
- package/build/openid4vc-verifier/index.d.mts +12 -0
- package/build/openid4vc-verifier/index.mjs +11 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.d.mts +129 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.d.mts.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.mjs +64 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.mjs.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.d.mts +10 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.d.mts.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.mjs +22 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.mjs.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.d.mts +33 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.d.mts.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.mjs +32 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.mjs.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.d.mts +12 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.d.mts.map +1 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.mjs +28 -0
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.mjs.map +1 -0
- package/build/openid4vc-verifier/repository/index.d.mts +4 -0
- package/build/openid4vc-verifier/repository/index.mjs +4 -0
- package/build/openid4vc-verifier/router/authorizationEndpoint.mjs +117 -0
- package/build/openid4vc-verifier/router/authorizationEndpoint.mjs.map +1 -0
- package/build/openid4vc-verifier/router/authorizationRequestEndpoint.mjs +39 -0
- package/build/openid4vc-verifier/router/authorizationRequestEndpoint.mjs.map +1 -0
- package/build/openid4vc-verifier/router/index.mjs +1 -0
- package/build/shared/callbacks.d.mts +47 -0
- package/build/shared/callbacks.d.mts.map +1 -0
- package/build/shared/callbacks.mjs +279 -0
- package/build/shared/callbacks.mjs.map +1 -0
- package/build/shared/index.d.mts +7 -0
- package/build/shared/index.mjs +4 -0
- package/build/shared/issuerMetadataUtils.d.mts +22 -0
- package/build/shared/issuerMetadataUtils.d.mts.map +1 -0
- package/build/shared/issuerMetadataUtils.mjs +30 -0
- package/build/shared/issuerMetadataUtils.mjs.map +1 -0
- package/build/shared/models/CredentialHolderBinding.d.mts +71 -0
- package/build/shared/models/CredentialHolderBinding.d.mts.map +1 -0
- package/build/shared/models/CredentialHolderBinding.mjs +1 -0
- package/build/shared/models/OpenId4VcJwtIssuer.d.mts +46 -0
- package/build/shared/models/OpenId4VcJwtIssuer.d.mts.map +1 -0
- package/build/shared/models/OpenId4VcJwtIssuer.mjs +1 -0
- package/build/shared/models/OpenId4VciAuthorizationServerConfig.d.mts +71 -0
- package/build/shared/models/OpenId4VciAuthorizationServerConfig.d.mts.map +1 -0
- package/build/shared/models/OpenId4VciCredentialFormatProfile.d.mts +12 -0
- package/build/shared/models/OpenId4VciCredentialFormatProfile.d.mts.map +1 -0
- package/build/shared/models/OpenId4VciCredentialFormatProfile.mjs +14 -0
- package/build/shared/models/OpenId4VciCredentialFormatProfile.mjs.map +1 -0
- package/build/shared/models/index.d.mts +30 -0
- package/build/shared/models/index.d.mts.map +1 -0
- package/build/shared/models/index.mjs +6 -0
- package/build/shared/router/context.mjs +52 -0
- package/build/shared/router/context.mjs.map +1 -0
- package/build/shared/router/express.browser.d.mts +5 -0
- package/build/shared/router/express.browser.d.mts.map +1 -0
- package/build/shared/router/express.browser.mjs +8 -0
- package/build/shared/router/express.browser.mjs.map +1 -0
- package/build/shared/router/express.mjs +10 -0
- package/build/shared/router/express.mjs.map +1 -0
- package/build/shared/router/express.native.d.mts +5 -0
- package/build/shared/router/express.native.d.mts.map +1 -0
- package/build/shared/router/express.native.mjs +8 -0
- package/build/shared/router/express.native.mjs.map +1 -0
- package/build/shared/router/index.mjs +3 -0
- package/build/shared/router/tenants.mjs +36 -0
- package/build/shared/router/tenants.mjs.map +1 -0
- package/build/shared/transactionData.mjs +19 -0
- package/build/shared/transactionData.mjs.map +1 -0
- package/build/shared/utils.mjs +90 -0
- package/build/shared/utils.mjs.map +1 -0
- package/package.json +30 -23
- package/build/index.d.ts +0 -4
- package/build/index.js +0 -21
- package/build/index.js.map +0 -1
- package/build/openid4vc-holder/OpenId4VcHolderApi.d.ts +0 -124
- package/build/openid4vc-holder/OpenId4VcHolderApi.js +0 -155
- package/build/openid4vc-holder/OpenId4VcHolderApi.js.map +0 -1
- package/build/openid4vc-holder/OpenId4VcHolderModule.d.ts +0 -13
- package/build/openid4vc-holder/OpenId4VcHolderModule.js +0 -35
- package/build/openid4vc-holder/OpenId4VcHolderModule.js.map +0 -1
- package/build/openid4vc-holder/OpenId4VciHolderService.d.ts +0 -72
- package/build/openid4vc-holder/OpenId4VciHolderService.js +0 -569
- package/build/openid4vc-holder/OpenId4VciHolderService.js.map +0 -1
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.d.ts +0 -238
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.js +0 -14
- package/build/openid4vc-holder/OpenId4VciHolderServiceOptions.js.map +0 -1
- package/build/openid4vc-holder/OpenId4vcSiopHolderService.d.ts +0 -32
- package/build/openid4vc-holder/OpenId4vcSiopHolderService.js +0 -302
- package/build/openid4vc-holder/OpenId4vcSiopHolderService.js.map +0 -1
- package/build/openid4vc-holder/OpenId4vcSiopHolderServiceOptions.d.ts +0 -38
- package/build/openid4vc-holder/OpenId4vcSiopHolderServiceOptions.js +0 -3
- package/build/openid4vc-holder/OpenId4vcSiopHolderServiceOptions.js.map +0 -1
- package/build/openid4vc-holder/index.d.ts +0 -6
- package/build/openid4vc-holder/index.js +0 -23
- package/build/openid4vc-holder/index.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.d.ts +0 -12
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.js +0 -19
- package/build/openid4vc-issuer/OpenId4VcIssuanceSessionState.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.d.ts +0 -101
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.js +0 -110
- package/build/openid4vc-issuer/OpenId4VcIssuerApi.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.d.ts +0 -13
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.js +0 -8
- package/build/openid4vc-issuer/OpenId4VcIssuerEvents.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.d.ts +0 -21
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.js +0 -121
- package/build/openid4vc-issuer/OpenId4VcIssuerModule.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.d.ts +0 -190
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.js +0 -141
- package/build/openid4vc-issuer/OpenId4VcIssuerModuleConfig.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuerService.d.ts +0 -116
- package/build/openid4vc-issuer/OpenId4VcIssuerService.js +0 -698
- package/build/openid4vc-issuer/OpenId4VcIssuerService.js.map +0 -1
- package/build/openid4vc-issuer/OpenId4VcIssuerServiceOptions.d.ts +0 -229
- package/build/openid4vc-issuer/OpenId4VcIssuerServiceOptions.js +0 -3
- package/build/openid4vc-issuer/OpenId4VcIssuerServiceOptions.js.map +0 -1
- package/build/openid4vc-issuer/index.d.ts +0 -8
- package/build/openid4vc-issuer/index.js +0 -27
- package/build/openid4vc-issuer/index.js.map +0 -1
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.d.ts +0 -160
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.js +0 -88
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.js.map +0 -1
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.d.ts +0 -5
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.js +0 -29
- package/build/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.js.map +0 -1
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.d.ts +0 -56
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.js +0 -83
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRecord.js.map +0 -1
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.d.ts +0 -8
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.js +0 -35
- package/build/openid4vc-issuer/repository/OpenId4VcIssuerRepository.js.map +0 -1
- package/build/openid4vc-issuer/repository/index.d.ts +0 -4
- package/build/openid4vc-issuer/repository/index.js +0 -21
- package/build/openid4vc-issuer/repository/index.js.map +0 -1
- package/build/openid4vc-issuer/router/accessTokenEndpoint.d.ts +0 -5
- package/build/openid4vc-issuer/router/accessTokenEndpoint.js +0 -164
- package/build/openid4vc-issuer/router/accessTokenEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/authorizationChallengeEndpoint.d.ts +0 -3
- package/build/openid4vc-issuer/router/authorizationChallengeEndpoint.js +0 -213
- package/build/openid4vc-issuer/router/authorizationChallengeEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/authorizationServerMetadataEndpoint.d.ts +0 -6
- package/build/openid4vc-issuer/router/authorizationServerMetadataEndpoint.js +0 -25
- package/build/openid4vc-issuer/router/authorizationServerMetadataEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/credentialEndpoint.d.ts +0 -3
- package/build/openid4vc-issuer/router/credentialEndpoint.js +0 -176
- package/build/openid4vc-issuer/router/credentialEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/credentialOfferEndpoint.d.ts +0 -3
- package/build/openid4vc-issuer/router/credentialOfferEndpoint.js +0 -45
- package/build/openid4vc-issuer/router/credentialOfferEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/index.d.ts +0 -9
- package/build/openid4vc-issuer/router/index.js +0 -20
- package/build/openid4vc-issuer/router/index.js.map +0 -1
- package/build/openid4vc-issuer/router/issuerMetadataEndpoint.d.ts +0 -2
- package/build/openid4vc-issuer/router/issuerMetadataEndpoint.js +0 -26
- package/build/openid4vc-issuer/router/issuerMetadataEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/jwksEndpoint.d.ts +0 -3
- package/build/openid4vc-issuer/router/jwksEndpoint.js +0 -20
- package/build/openid4vc-issuer/router/jwksEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/nonceEndpoint.d.ts +0 -3
- package/build/openid4vc-issuer/router/nonceEndpoint.js +0 -26
- package/build/openid4vc-issuer/router/nonceEndpoint.js.map +0 -1
- package/build/openid4vc-issuer/router/requestContext.d.ts +0 -5
- package/build/openid4vc-issuer/router/requestContext.js +0 -3
- package/build/openid4vc-issuer/router/requestContext.js.map +0 -1
- package/build/openid4vc-issuer/util/txCode.d.ts +0 -3
- package/build/openid4vc-issuer/util/txCode.js +0 -18
- package/build/openid4vc-issuer/util/txCode.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcSiopVerifierService.d.ts +0 -55
- package/build/openid4vc-verifier/OpenId4VcSiopVerifierService.js +0 -498
- package/build/openid4vc-verifier/OpenId4VcSiopVerifierService.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcSiopVerifierServiceOptions.d.ts +0 -77
- package/build/openid4vc-verifier/OpenId4VcSiopVerifierServiceOptions.js +0 -3
- package/build/openid4vc-verifier/OpenId4VcSiopVerifierServiceOptions.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.d.ts +0 -6
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.js +0 -11
- package/build/openid4vc-verifier/OpenId4VcVerificationSessionState.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.d.ts +0 -61
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.js +0 -108
- package/build/openid4vc-verifier/OpenId4VcVerifierApi.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.d.ts +0 -13
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.js +0 -8
- package/build/openid4vc-verifier/OpenId4VcVerifierEvents.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.d.ts +0 -21
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.js +0 -109
- package/build/openid4vc-verifier/OpenId4VcVerifierModule.js.map +0 -1
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.d.ts +0 -31
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.js +0 -28
- package/build/openid4vc-verifier/OpenId4VcVerifierModuleConfig.js.map +0 -1
- package/build/openid4vc-verifier/index.d.ts +0 -8
- package/build/openid4vc-verifier/index.js +0 -25
- package/build/openid4vc-verifier/index.js.map +0 -1
- package/build/openid4vc-verifier/repository/OpenId4VcRelyingPartyEventEmitter.d.ts +0 -49
- package/build/openid4vc-verifier/repository/OpenId4VcRelyingPartyEventEmitter.js +0 -234
- package/build/openid4vc-verifier/repository/OpenId4VcRelyingPartyEventEmitter.js.map +0 -1
- package/build/openid4vc-verifier/repository/OpenId4VcRelyingPartySessionManager.d.ts +0 -19
- package/build/openid4vc-verifier/repository/OpenId4VcRelyingPartySessionManager.js +0 -146
- package/build/openid4vc-verifier/repository/OpenId4VcRelyingPartySessionManager.js.map +0 -1
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.d.ts +0 -71
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.js +0 -46
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRecord.js.map +0 -1
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.d.ts +0 -5
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.js +0 -29
- package/build/openid4vc-verifier/repository/OpenId4VcVerificationSessionRepository.js.map +0 -1
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.d.ts +0 -29
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.js +0 -29
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRecord.js.map +0 -1
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.d.ts +0 -8
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.js +0 -35
- package/build/openid4vc-verifier/repository/OpenId4VcVerifierRepository.js.map +0 -1
- package/build/openid4vc-verifier/repository/index.d.ts +0 -4
- package/build/openid4vc-verifier/repository/index.js +0 -21
- package/build/openid4vc-verifier/repository/index.js.map +0 -1
- package/build/openid4vc-verifier/router/authorizationEndpoint.d.ts +0 -11
- package/build/openid4vc-verifier/router/authorizationEndpoint.js +0 -102
- package/build/openid4vc-verifier/router/authorizationEndpoint.js.map +0 -1
- package/build/openid4vc-verifier/router/authorizationRequestEndpoint.d.ts +0 -11
- package/build/openid4vc-verifier/router/authorizationRequestEndpoint.js +0 -63
- package/build/openid4vc-verifier/router/authorizationRequestEndpoint.js.map +0 -1
- package/build/openid4vc-verifier/router/index.d.ts +0 -2
- package/build/openid4vc-verifier/router/index.js +0 -6
- package/build/openid4vc-verifier/router/index.js.map +0 -1
- package/build/openid4vc-verifier/router/requestContext.d.ts +0 -5
- package/build/openid4vc-verifier/router/requestContext.js +0 -3
- package/build/openid4vc-verifier/router/requestContext.js.map +0 -1
- package/build/shared/callbacks.d.ts +0 -18
- package/build/shared/callbacks.js +0 -81
- package/build/shared/callbacks.js.map +0 -1
- package/build/shared/index.d.ts +0 -2
- package/build/shared/index.js +0 -19
- package/build/shared/index.js.map +0 -1
- package/build/shared/issuerMetadataUtils.d.ts +0 -158
- package/build/shared/issuerMetadataUtils.js +0 -38
- package/build/shared/issuerMetadataUtils.js.map +0 -1
- package/build/shared/models/CredentialHolderBinding.d.ts +0 -13
- package/build/shared/models/CredentialHolderBinding.js +0 -3
- package/build/shared/models/CredentialHolderBinding.js.map +0 -1
- package/build/shared/models/OpenId4VcJwtIssuer.d.ts +0 -28
- package/build/shared/models/OpenId4VcJwtIssuer.js +0 -3
- package/build/shared/models/OpenId4VcJwtIssuer.js.map +0 -1
- package/build/shared/models/OpenId4VciAuthorizationServerConfig.d.ts +0 -10
- package/build/shared/models/OpenId4VciAuthorizationServerConfig.js +0 -3
- package/build/shared/models/OpenId4VciAuthorizationServerConfig.js.map +0 -1
- package/build/shared/models/OpenId4VciCredentialFormatProfile.d.ts +0 -7
- package/build/shared/models/OpenId4VciCredentialFormatProfile.js +0 -12
- package/build/shared/models/OpenId4VciCredentialFormatProfile.js.map +0 -1
- package/build/shared/models/index.d.ts +0 -24
- package/build/shared/models/index.js +0 -25
- package/build/shared/models/index.js.map +0 -1
- package/build/shared/router/context.d.ts +0 -17
- package/build/shared/router/context.js +0 -76
- package/build/shared/router/context.js.map +0 -1
- package/build/shared/router/express.d.ts +0 -2
- package/build/shared/router/express.js +0 -15
- package/build/shared/router/express.js.map +0 -1
- package/build/shared/router/express.native.d.ts +0 -1
- package/build/shared/router/express.native.js +0 -7
- package/build/shared/router/express.native.js.map +0 -1
- package/build/shared/router/index.d.ts +0 -3
- package/build/shared/router/index.js +0 -20
- package/build/shared/router/index.js.map +0 -1
- package/build/shared/router/tenants.d.ts +0 -13
- package/build/shared/router/tenants.js +0 -49
- package/build/shared/router/tenants.js.map +0 -1
- package/build/shared/transform.d.ts +0 -5
- package/build/shared/transform.js +0 -73
- package/build/shared/transform.js.map +0 -1
- package/build/shared/utils.d.ts +0 -22
- package/build/shared/utils.js +0 -154
- package/build/shared/utils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenId4VcIssuerService.js","sourceRoot":"","sources":["../../src/openid4vc-issuer/OpenId4VcIssuerService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAkBA,6CAUyB;AACzB,+CAO0B;AAC1B,yCAkBuB;AAEvB,8DAA4D;AAC5D,sCAA6D;AAC7D,mDAA6F;AAC7F,uEAAoH;AACpH,6CAAsE;AACtE,2CAAqG;AAErG,mFAA+E;AAC/E,mEAA0G;AAC1G,+EAA2E;AAC3E,6CAKqB;AACrB,0CAA8C;AAE9C;;GAEG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAMjC,YACE,oBAA0C,EAC1C,qBAAkD,EAClD,yBAAoD,EACpD,kCAAsE;QAEtE,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAA;QAChD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAA;QAClD,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAA;QAC1D,IAAI,CAAC,kCAAkC,GAAG,kCAAkC,CAAA;IAC9E,CAAC;IAEM,KAAK,CAAC,8BAA8B,CACzC,YAA0B,EAC1B,OAA4F;QAE5F,MAAM,EAAE,2BAA2B,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAA;QAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC7C,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;QAEzE,MAAM,wBAAwB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AAE,kBAAW,CAAC,KAAK;gBACzB,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;gBAC9C,SAAS,EAAE,SAAS;aACrB,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAv5BY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,iBAAU,GAAE;qCAQa,2BAAoB;QACnB,yDAA2B;QACvB,sCAAyB;QAChB,+CAAkC;GAV7D,sBAAsB,CAu5BlC"}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import type { OpenId4VcIssuanceSessionRecord, OpenId4VcIssuerRecordProps } from './repository';
|
|
2
|
-
import type { OpenId4VcSiopCreateAuthorizationRequestReturn, OpenId4VcSiopVerifiedAuthorizationResponsePresentationExchange, OpenId4VcVerificationSessionRecord } from '../openid4vc-verifier';
|
|
3
|
-
import type { OpenId4VcCredentialHolderBindingWithKey, OpenId4VciCredentialConfigurationsSupportedWithFormats, OpenId4VciCredentialOfferPayload, OpenId4VciCredentialRequest, OpenId4VciCredentialRequestFormatSpecific, OpenId4VciCredentialIssuerMetadataDisplay, OpenId4VciTxCode } from '../shared';
|
|
4
|
-
import type { OpenId4VciAuthorizationServerConfig } from '../shared/models/OpenId4VciAuthorizationServerConfig';
|
|
5
|
-
import type { AccessTokenProfileJwtPayload, TokenIntrospectionResponse } from '@animo-id/oauth2';
|
|
6
|
-
import type { AgentContext, ClaimFormat, W3cCredential, SdJwtVcSignOptions, JwaSignatureAlgorithm, MdocSignOptions, KeyType } from '@credo-ts/core';
|
|
7
|
-
export interface OpenId4VciCredentialRequestAuthorization {
|
|
8
|
-
authorizationServer: string;
|
|
9
|
-
accessToken: {
|
|
10
|
-
payload: AccessTokenProfileJwtPayload | TokenIntrospectionResponse;
|
|
11
|
-
value: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export interface OpenId4VciPreAuthorizedCodeFlowConfig {
|
|
15
|
-
preAuthorizedCode?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The user pin required flag indicates whether the user needs to enter a pin to authorize the transaction.
|
|
18
|
-
*/
|
|
19
|
-
txCode?: OpenId4VciTxCode;
|
|
20
|
-
authorizationServerUrl?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface OpenId4VciAuthorizationCodeFlowConfig {
|
|
23
|
-
/**
|
|
24
|
-
* OPTIONAL. String value created by the Credential Issuer and opaque to the Wallet
|
|
25
|
-
* that is used to bind the subsequent Authorization Request with the Credential Issuer
|
|
26
|
-
* to a context set up during previous steps.
|
|
27
|
-
* If not provided, a value will be generated.
|
|
28
|
-
*/
|
|
29
|
-
issuerState?: string;
|
|
30
|
-
/**
|
|
31
|
-
* OPTIONAL string that the Wallet can use to identify the Authorization Server to use with this grant
|
|
32
|
-
* type when authorization_servers parameter in the Credential Issuer metadata has multiple entries.
|
|
33
|
-
*/
|
|
34
|
-
authorizationServerUrl?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Whether presentation using OpenID4VP is required as part of the authorization flow. The presentation
|
|
37
|
-
* request will be created dynamically when the wallet initiates the authorization flow using the
|
|
38
|
-
* `getVerificationSessionForIssuanceSessionAuthorization` callback in the issuer module config.
|
|
39
|
-
*
|
|
40
|
-
* You can dynamically create the verification session based on the provided issuace session, or you
|
|
41
|
-
* can have a more generic implementation based on credential configurations and scopes that are being
|
|
42
|
-
* requested.
|
|
43
|
-
*
|
|
44
|
-
* In case this parameter is set to true, `authorizationServerUrl` MUST be undefined or match the
|
|
45
|
-
* `credential_issuer` value, as only Credo can handle this flow.
|
|
46
|
-
*
|
|
47
|
-
* In case this parameter is set to true, and `getVerificationSessionForIssuanceSessionAuthorization` is
|
|
48
|
-
* not configured on the issuer module an error will be thrown.
|
|
49
|
-
*
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
requirePresentationDuringIssuance?: boolean;
|
|
53
|
-
}
|
|
54
|
-
interface OpenId4VciCreateCredentialOfferOptionsBase {
|
|
55
|
-
offeredCredentials: string[];
|
|
56
|
-
/**
|
|
57
|
-
* baseUri for the credential offer uri. By default `openid-credential-offer://` will be used
|
|
58
|
-
* if no value is provided. If a value is provided, make sure it contains the scheme as well as `://`.
|
|
59
|
-
*/
|
|
60
|
-
baseUri?: string;
|
|
61
|
-
/**
|
|
62
|
-
* @default v1.draft11-13
|
|
63
|
-
*/
|
|
64
|
-
version?: 'v1.draft11-13' | 'v1.draft13';
|
|
65
|
-
}
|
|
66
|
-
export interface OpenId4VciCreateStatelessCredentialOfferOptions extends OpenId4VciCreateCredentialOfferOptionsBase {
|
|
67
|
-
authorizationCodeFlowConfig: Required<Pick<OpenId4VciAuthorizationCodeFlowConfig, 'authorizationServerUrl'>>;
|
|
68
|
-
/**
|
|
69
|
-
* For stateless credential offers we need an external authorization server, which also means we need to
|
|
70
|
-
* support `authorization_servers`, therefore only draft 13 offers are supported
|
|
71
|
-
*
|
|
72
|
-
* @default v1.draft13
|
|
73
|
-
*/
|
|
74
|
-
version?: 'v1.draft13';
|
|
75
|
-
}
|
|
76
|
-
export interface OpenId4VciCreateCredentialOfferOptions extends OpenId4VciCreateCredentialOfferOptionsBase {
|
|
77
|
-
preAuthorizedCodeFlowConfig?: OpenId4VciPreAuthorizedCodeFlowConfig;
|
|
78
|
-
authorizationCodeFlowConfig?: OpenId4VciAuthorizationCodeFlowConfig;
|
|
79
|
-
/**
|
|
80
|
-
* Metadata about the issuance, that will be stored in the issuance session record and
|
|
81
|
-
* passed to the credential request to credential mapper. This can be used to e.g. store an
|
|
82
|
-
* user identifier so user data can be fetched in the credential mapper, or the actual credential
|
|
83
|
-
* data.
|
|
84
|
-
*/
|
|
85
|
-
issuanceMetadata?: Record<string, unknown>;
|
|
86
|
-
}
|
|
87
|
-
export interface OpenId4VciCreateCredentialResponseOptions {
|
|
88
|
-
credentialRequest: OpenId4VciCredentialRequest;
|
|
89
|
-
authorization: OpenId4VciCredentialRequestAuthorization;
|
|
90
|
-
/**
|
|
91
|
-
* You can optionally provide a credential request to credential mapper that will be
|
|
92
|
-
* dynamically invoked to return credential data based on the credential request.
|
|
93
|
-
*
|
|
94
|
-
* If not provided, the `credentialRequestToCredentialMapper` from the agent config
|
|
95
|
-
* will be used.
|
|
96
|
-
*/
|
|
97
|
-
credentialRequestToCredentialMapper?: OpenId4VciCredentialRequestToCredentialMapper;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Callback that is called when a verification session needs to be created to complete
|
|
101
|
-
* authorization of credential issuance.
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
export type OpenId4VciGetVerificationSessionForIssuanceSessionAuthorization = (options: {
|
|
106
|
-
agentContext: AgentContext;
|
|
107
|
-
issuanceSession: OpenId4VcIssuanceSessionRecord;
|
|
108
|
-
/**
|
|
109
|
-
* The credential configurations for which authorization has been requested based on the **scope**
|
|
110
|
-
* values. It doesn't mean the wallet will request all credentials to be issued.
|
|
111
|
-
*/
|
|
112
|
-
requestedCredentialConfigurations: OpenId4VciCredentialConfigurationsSupportedWithFormats;
|
|
113
|
-
/**
|
|
114
|
-
* The scopes which were requested and are also present in the credential configurations supported
|
|
115
|
-
* that were offered. It will match with the scope values in the `requestedCredentialConfiguration`
|
|
116
|
-
* parameter
|
|
117
|
-
*/
|
|
118
|
-
scopes: string[];
|
|
119
|
-
}) => Promise<OpenId4VcSiopCreateAuthorizationRequestReturn & {
|
|
120
|
-
/**
|
|
121
|
-
* The scopes which will be granted by successfully completing the verification
|
|
122
|
-
* session.
|
|
123
|
-
*
|
|
124
|
-
* @todo do we need more granular support? I.e. every input descriptor can satisfy a
|
|
125
|
-
* different scope?
|
|
126
|
-
*/
|
|
127
|
-
scopes: string[];
|
|
128
|
-
}>;
|
|
129
|
-
export interface OpenId4VciCredentialRequestToCredentialMapperOptions {
|
|
130
|
-
agentContext: AgentContext;
|
|
131
|
-
/**
|
|
132
|
-
* Authorization associated with the credential request
|
|
133
|
-
*/
|
|
134
|
-
authorization: OpenId4VciCredentialRequestAuthorization;
|
|
135
|
-
/**
|
|
136
|
-
* If an openid4vp verification was done as part of the authorization flow this parameter will be defined.
|
|
137
|
-
*
|
|
138
|
-
* The contents can be used to populate credential data
|
|
139
|
-
*/
|
|
140
|
-
verification?: {
|
|
141
|
-
session: OpenId4VcVerificationSessionRecord;
|
|
142
|
-
presentationExchange: OpenId4VcSiopVerifiedAuthorizationResponsePresentationExchange;
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* The issuance session associated with the credential request. You can extract the
|
|
146
|
-
* issuance metadata from this record if passed in the offer creation method.
|
|
147
|
-
*/
|
|
148
|
-
issuanceSession: OpenId4VcIssuanceSessionRecord;
|
|
149
|
-
/**
|
|
150
|
-
* The credential request received from the wallet
|
|
151
|
-
*/
|
|
152
|
-
credentialRequest: OpenId4VciCredentialRequest;
|
|
153
|
-
/**
|
|
154
|
-
* Contains format specific credential request data. Currently it will
|
|
155
|
-
* always be defined, but may be undefined once `credential_identifier`
|
|
156
|
-
* in the credential request will be supported
|
|
157
|
-
*/
|
|
158
|
-
credentialRequestFormat?: OpenId4VciCredentialRequestFormatSpecific;
|
|
159
|
-
/**
|
|
160
|
-
* The offer associated with the credential request
|
|
161
|
-
*/
|
|
162
|
-
credentialOffer: OpenId4VciCredentialOfferPayload;
|
|
163
|
-
/**
|
|
164
|
-
* Verified key binding material entries that should be included in the credential(s)
|
|
165
|
-
* A separate credential should be returned for each holder binding.
|
|
166
|
-
*
|
|
167
|
-
* Can either be bound to did or a JWK (in case of for ex. SD-JWT).
|
|
168
|
-
*/
|
|
169
|
-
holderBindings: OpenId4VcCredentialHolderBindingWithKey[];
|
|
170
|
-
/**
|
|
171
|
-
* The credential configurations supported entries from the issuer metadata
|
|
172
|
-
* that were offered and match the incoming request.
|
|
173
|
-
*/
|
|
174
|
-
credentialConfigurationsSupported: OpenId4VciCredentialConfigurationsSupportedWithFormats;
|
|
175
|
-
/**
|
|
176
|
-
* v13: The ids of the credential configurations that were offered and match the request
|
|
177
|
-
*
|
|
178
|
-
* NOTE: This will probably become a single entry, as it will be matched on id
|
|
179
|
-
*/
|
|
180
|
-
credentialConfigurationIds: [string, ...string[]];
|
|
181
|
-
}
|
|
182
|
-
export type OpenId4VciCredentialRequestToCredentialMapper = (options: OpenId4VciCredentialRequestToCredentialMapperOptions) => Promise<OpenId4VciSignCredentials> | OpenId4VciSignCredentials;
|
|
183
|
-
export type OpenId4VciSignCredentials = OpenId4VciSignSdJwtCredentials | OpenId4VciSignW3cCredentials | OpenId4VciSignMdocCredentials;
|
|
184
|
-
export interface OpenId4VciSignSdJwtCredentials {
|
|
185
|
-
credentialConfigurationId: string;
|
|
186
|
-
format: ClaimFormat.SdJwtVc | `${ClaimFormat.SdJwtVc}`;
|
|
187
|
-
credentials: SdJwtVcSignOptions[];
|
|
188
|
-
}
|
|
189
|
-
export interface OpenId4VciSignMdocCredentials {
|
|
190
|
-
credentialConfigurationId: string;
|
|
191
|
-
format: ClaimFormat.MsoMdoc | `${ClaimFormat.MsoMdoc}`;
|
|
192
|
-
credentials: MdocSignOptions[];
|
|
193
|
-
}
|
|
194
|
-
export interface OpenId4VciSignW3cCredentials {
|
|
195
|
-
credentialConfigurationId: string;
|
|
196
|
-
format: ClaimFormat.JwtVc | `${ClaimFormat.JwtVc}` | ClaimFormat.LdpVc | `${ClaimFormat.LdpVc}`;
|
|
197
|
-
credentials: Array<{
|
|
198
|
-
verificationMethod: string;
|
|
199
|
-
credential: W3cCredential;
|
|
200
|
-
}>;
|
|
201
|
-
}
|
|
202
|
-
export interface OpenId4VciBatchCredentialIssuanceOptions {
|
|
203
|
-
/**
|
|
204
|
-
* The maximum batch size
|
|
205
|
-
*/
|
|
206
|
-
batchSize: number;
|
|
207
|
-
}
|
|
208
|
-
export type OpenId4VciCreateIssuerOptions = {
|
|
209
|
-
/**
|
|
210
|
-
* Id of the issuer, not the id of the issuer record. Will be exposed publicly
|
|
211
|
-
*/
|
|
212
|
-
issuerId?: string;
|
|
213
|
-
/**
|
|
214
|
-
* Key type to use for signing access tokens
|
|
215
|
-
*
|
|
216
|
-
* @default KeyType.Ed25519
|
|
217
|
-
*/
|
|
218
|
-
accessTokenSignerKeyType?: KeyType;
|
|
219
|
-
display?: OpenId4VciCredentialIssuerMetadataDisplay[];
|
|
220
|
-
authorizationServerConfigs?: OpenId4VciAuthorizationServerConfig[];
|
|
221
|
-
dpopSigningAlgValuesSupported?: [JwaSignatureAlgorithm, ...JwaSignatureAlgorithm[]];
|
|
222
|
-
credentialConfigurationsSupported: OpenId4VciCredentialConfigurationsSupportedWithFormats;
|
|
223
|
-
/**
|
|
224
|
-
* Indicate support for batch issuane of credentials
|
|
225
|
-
*/
|
|
226
|
-
batchCredentialIssuance?: OpenId4VciBatchCredentialIssuanceOptions;
|
|
227
|
-
};
|
|
228
|
-
export type OpenId4VcUpdateIssuerRecordOptions = Pick<OpenId4VcIssuerRecordProps, 'issuerId' | 'display' | 'dpopSigningAlgValuesSupported' | 'credentialConfigurationsSupported' | 'batchCredentialIssuance'>;
|
|
229
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenId4VcIssuerServiceOptions.js","sourceRoot":"","sources":["../../src/openid4vc-issuer/OpenId4VcIssuerServiceOptions.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './OpenId4VcIssuerApi';
|
|
2
|
-
export * from './OpenId4VcIssuerModule';
|
|
3
|
-
export * from './OpenId4VcIssuerService';
|
|
4
|
-
export * from './OpenId4VcIssuerModuleConfig';
|
|
5
|
-
export * from './OpenId4VcIssuerServiceOptions';
|
|
6
|
-
export * from './OpenId4VcIssuerEvents';
|
|
7
|
-
export * from './OpenId4VcIssuanceSessionState';
|
|
8
|
-
export { OpenId4VcIssuerRecord, OpenId4VcIssuerRecordProps, OpenId4VcIssuerRecordTags } from './repository';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.OpenId4VcIssuerRecord = void 0;
|
|
18
|
-
__exportStar(require("./OpenId4VcIssuerApi"), exports);
|
|
19
|
-
__exportStar(require("./OpenId4VcIssuerModule"), exports);
|
|
20
|
-
__exportStar(require("./OpenId4VcIssuerService"), exports);
|
|
21
|
-
__exportStar(require("./OpenId4VcIssuerModuleConfig"), exports);
|
|
22
|
-
__exportStar(require("./OpenId4VcIssuerServiceOptions"), exports);
|
|
23
|
-
__exportStar(require("./OpenId4VcIssuerEvents"), exports);
|
|
24
|
-
__exportStar(require("./OpenId4VcIssuanceSessionState"), exports);
|
|
25
|
-
var repository_1 = require("./repository");
|
|
26
|
-
Object.defineProperty(exports, "OpenId4VcIssuerRecord", { enumerable: true, get: function () { return repository_1.OpenId4VcIssuerRecord; } });
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/openid4vc-issuer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,0DAAuC;AACvC,2DAAwC;AACxC,gEAA6C;AAC7C,kEAA+C;AAC/C,0DAAuC;AACvC,kEAA+C;AAC/C,2CAA2G;AAAlG,mHAAA,qBAAqB,OAAA"}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import type { OpenId4VciCredentialOfferPayload } from '../../shared';
|
|
2
|
-
import type { RecordTags, TagsBase } from '@credo-ts/core';
|
|
3
|
-
import { PkceCodeChallengeMethod } from '@animo-id/oauth2';
|
|
4
|
-
import { BaseRecord } from '@credo-ts/core';
|
|
5
|
-
import { OpenId4VcIssuanceSessionState } from '../OpenId4VcIssuanceSessionState';
|
|
6
|
-
export type OpenId4VcIssuanceSessionRecordTags = RecordTags<OpenId4VcIssuanceSessionRecord>;
|
|
7
|
-
export interface OpenId4VcIssuanceSessionAuthorization {
|
|
8
|
-
code?: string;
|
|
9
|
-
/**
|
|
10
|
-
* @todo: I saw in google's library that for codes they encrypt an id with expiration time.
|
|
11
|
-
* You now the code was created by you because you can decrypt it, and you don't have to store
|
|
12
|
-
* additional metadata on your server. It's similar to the signed / encrypted nonce
|
|
13
|
-
*/
|
|
14
|
-
codeExpiresAt?: Date;
|
|
15
|
-
/**
|
|
16
|
-
* String value created by the Credential Issuer and opaque to the Wallet that
|
|
17
|
-
* is used to bind the subsequent Authorization Request with the Credential Issuer to a context set up during previous steps.
|
|
18
|
-
*/
|
|
19
|
-
issuerState?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Scopes that are granted when the authorization is complete.
|
|
22
|
-
*/
|
|
23
|
-
scopes?: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Subject the issuance session is bound to. For internal authorization this will be defined
|
|
26
|
-
* from the moment the token is issued. For external authorization this will be defined after
|
|
27
|
-
* the first time the credential endpoint has been called.
|
|
28
|
-
*/
|
|
29
|
-
subject?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface OpenId4VcIssuanceSessionPresentation {
|
|
32
|
-
/**
|
|
33
|
-
* Whether presentation during issuance is required.
|
|
34
|
-
*/
|
|
35
|
-
required: true;
|
|
36
|
-
/**
|
|
37
|
-
* Auth session for the presentation during issuance flow
|
|
38
|
-
*/
|
|
39
|
-
authSession?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The id of the `OpenId4VcVerificationSessionRecord` record this issuance session is linked to
|
|
42
|
-
*/
|
|
43
|
-
openId4VcVerificationSessionId?: string;
|
|
44
|
-
}
|
|
45
|
-
export type DefaultOpenId4VcIssuanceSessionRecordTags = {
|
|
46
|
-
issuerId: string;
|
|
47
|
-
cNonce?: string;
|
|
48
|
-
state: OpenId4VcIssuanceSessionState;
|
|
49
|
-
credentialOfferUri?: string;
|
|
50
|
-
preAuthorizedCode?: string;
|
|
51
|
-
authorizationCode?: string;
|
|
52
|
-
issuerState?: string;
|
|
53
|
-
authorizationSubject?: string;
|
|
54
|
-
presentationAuthSession?: string;
|
|
55
|
-
};
|
|
56
|
-
export interface OpenId4VcIssuanceSessionRecordProps {
|
|
57
|
-
id?: string;
|
|
58
|
-
createdAt?: Date;
|
|
59
|
-
tags?: TagsBase;
|
|
60
|
-
state: OpenId4VcIssuanceSessionState;
|
|
61
|
-
issuerId: string;
|
|
62
|
-
/**
|
|
63
|
-
* Client id will mostly be used when doing auth flow
|
|
64
|
-
*/
|
|
65
|
-
clientId?: string;
|
|
66
|
-
preAuthorizedCode?: string;
|
|
67
|
-
userPin?: string;
|
|
68
|
-
pkce?: {
|
|
69
|
-
codeChallengeMethod: PkceCodeChallengeMethod;
|
|
70
|
-
codeChallenge: string;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* When authorization code flow is used, this links the authorization
|
|
74
|
-
*/
|
|
75
|
-
authorization?: OpenId4VcIssuanceSessionAuthorization;
|
|
76
|
-
/**
|
|
77
|
-
* When presentation during issuance is required this should link the
|
|
78
|
-
* `OpenId4VcVerificationSessionRecord` and state
|
|
79
|
-
*/
|
|
80
|
-
presentation?: OpenId4VcIssuanceSessionPresentation;
|
|
81
|
-
credentialOfferUri?: string;
|
|
82
|
-
credentialOfferPayload: OpenId4VciCredentialOfferPayload;
|
|
83
|
-
issuanceMetadata?: Record<string, unknown>;
|
|
84
|
-
errorMessage?: string;
|
|
85
|
-
}
|
|
86
|
-
export declare class OpenId4VcIssuanceSessionRecord extends BaseRecord<DefaultOpenId4VcIssuanceSessionRecordTags> {
|
|
87
|
-
static readonly type = "OpenId4VcIssuanceSessionRecord";
|
|
88
|
-
readonly type = "OpenId4VcIssuanceSessionRecord";
|
|
89
|
-
/**
|
|
90
|
-
* The id of the issuer that this session is for.
|
|
91
|
-
*/
|
|
92
|
-
issuerId: string;
|
|
93
|
-
/**
|
|
94
|
-
* The state of the issuance session.
|
|
95
|
-
*/
|
|
96
|
-
state: OpenId4VcIssuanceSessionState;
|
|
97
|
-
/**
|
|
98
|
-
* The credentials that were issued during this session.
|
|
99
|
-
*/
|
|
100
|
-
issuedCredentials: string[];
|
|
101
|
-
/**
|
|
102
|
-
* Pre authorized code used for the issuance session. Only used when a pre-authorized credential
|
|
103
|
-
* offer is created.
|
|
104
|
-
*/
|
|
105
|
-
preAuthorizedCode?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Optional user pin that needs to be provided by the user in the access token request.
|
|
108
|
-
*/
|
|
109
|
-
userPin?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Client id of the exchange
|
|
112
|
-
*/
|
|
113
|
-
clientId?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Proof Key Code Exchange
|
|
116
|
-
*/
|
|
117
|
-
pkce?: {
|
|
118
|
-
codeChallengeMethod: PkceCodeChallengeMethod;
|
|
119
|
-
codeChallenge: string;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* Authorization code flow specific metadata values
|
|
123
|
-
*/
|
|
124
|
-
authorization?: OpenId4VcIssuanceSessionAuthorization;
|
|
125
|
-
/**
|
|
126
|
-
* Presentation during issuance specific metadata values
|
|
127
|
-
*/
|
|
128
|
-
presentation?: OpenId4VcIssuanceSessionPresentation;
|
|
129
|
-
/**
|
|
130
|
-
* User-defined metadata that will be provided to the credential request to credential mapper
|
|
131
|
-
* to allow to retrieve the needed credential input data. Can be the credential data itself,
|
|
132
|
-
* or some other data that is needed to retrieve the credential data.
|
|
133
|
-
*/
|
|
134
|
-
issuanceMetadata?: Record<string, unknown>;
|
|
135
|
-
/**
|
|
136
|
-
* The credential offer that was used to create the issuance session.
|
|
137
|
-
*/
|
|
138
|
-
credentialOfferPayload: OpenId4VciCredentialOfferPayload;
|
|
139
|
-
/**
|
|
140
|
-
* URI of the credential offer. This is the url that cn can be used to retrieve
|
|
141
|
-
* the credential offer
|
|
142
|
-
*/
|
|
143
|
-
credentialOfferUri?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Optional error message of the error that occurred during the issuance session. Will be set when state is {@link OpenId4VcIssuanceSessionState.Error}
|
|
146
|
-
*/
|
|
147
|
-
errorMessage?: string;
|
|
148
|
-
constructor(props: OpenId4VcIssuanceSessionRecordProps);
|
|
149
|
-
assertState(expectedStates: OpenId4VcIssuanceSessionState | OpenId4VcIssuanceSessionState[]): void;
|
|
150
|
-
getTags(): {
|
|
151
|
-
issuerId: string;
|
|
152
|
-
credentialOfferUri: string | undefined;
|
|
153
|
-
state: OpenId4VcIssuanceSessionState;
|
|
154
|
-
preAuthorizedCode: string | undefined;
|
|
155
|
-
issuerState: string | undefined;
|
|
156
|
-
authorizationCode: string | undefined;
|
|
157
|
-
authorizationSubject: string | undefined;
|
|
158
|
-
presentationAuthSession: string | undefined;
|
|
159
|
-
};
|
|
160
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.OpenId4VcIssuanceSessionRecord = void 0;
|
|
13
|
-
const core_1 = require("@credo-ts/core");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const OpenId4VcIssuanceSessionState_1 = require("../OpenId4VcIssuanceSessionState");
|
|
16
|
-
class OpenId4VcIssuanceSessionRecord extends core_1.BaseRecord {
|
|
17
|
-
constructor(props) {
|
|
18
|
-
var _a, _b, _c;
|
|
19
|
-
super();
|
|
20
|
-
this.type = OpenId4VcIssuanceSessionRecord.type;
|
|
21
|
-
/**
|
|
22
|
-
* The credentials that were issued during this session.
|
|
23
|
-
*/
|
|
24
|
-
this.issuedCredentials = [];
|
|
25
|
-
if (props) {
|
|
26
|
-
this.id = (_a = props.id) !== null && _a !== void 0 ? _a : core_1.utils.uuid();
|
|
27
|
-
this.createdAt = (_b = props.createdAt) !== null && _b !== void 0 ? _b : new Date();
|
|
28
|
-
this._tags = (_c = props.tags) !== null && _c !== void 0 ? _c : {};
|
|
29
|
-
this.issuerId = props.issuerId;
|
|
30
|
-
this.clientId = props.clientId;
|
|
31
|
-
this.userPin = props.userPin;
|
|
32
|
-
this.preAuthorizedCode = props.preAuthorizedCode;
|
|
33
|
-
this.pkce = props.pkce;
|
|
34
|
-
this.authorization = props.authorization;
|
|
35
|
-
this.credentialOfferUri = props.credentialOfferUri;
|
|
36
|
-
this.credentialOfferPayload = props.credentialOfferPayload;
|
|
37
|
-
this.issuanceMetadata = props.issuanceMetadata;
|
|
38
|
-
this.state = props.state;
|
|
39
|
-
this.errorMessage = props.errorMessage;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
assertState(expectedStates) {
|
|
43
|
-
if (!Array.isArray(expectedStates)) {
|
|
44
|
-
expectedStates = [expectedStates];
|
|
45
|
-
}
|
|
46
|
-
if (!expectedStates.includes(this.state)) {
|
|
47
|
-
throw new core_1.CredoError(`OpenId4VcIssuanceSessionRecord is in invalid state ${this.state}. Valid states are: ${expectedStates.join(', ')}.`);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
getTags() {
|
|
51
|
-
var _a, _b, _c, _d;
|
|
52
|
-
return Object.assign(Object.assign({}, this._tags), { issuerId: this.issuerId, credentialOfferUri: this.credentialOfferUri, state: this.state,
|
|
53
|
-
// Pre-auth flow
|
|
54
|
-
preAuthorizedCode: this.preAuthorizedCode,
|
|
55
|
-
// Auth flow
|
|
56
|
-
issuerState: (_a = this.authorization) === null || _a === void 0 ? void 0 : _a.issuerState, authorizationCode: (_b = this.authorization) === null || _b === void 0 ? void 0 : _b.code, authorizationSubject: (_c = this.authorization) === null || _c === void 0 ? void 0 : _c.subject,
|
|
57
|
-
// Presentation during issuance
|
|
58
|
-
presentationAuthSession: (_d = this.presentation) === null || _d === void 0 ? void 0 : _d.authSession });
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.OpenId4VcIssuanceSessionRecord = OpenId4VcIssuanceSessionRecord;
|
|
62
|
-
OpenId4VcIssuanceSessionRecord.type = 'OpenId4VcIssuanceSessionRecord';
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_transformer_1.Transform)(({ value }) => {
|
|
65
|
-
// CredentialIssued is an old state that is no longer used. It should be mapped to Error.
|
|
66
|
-
if (value === 'CredentialIssued') {
|
|
67
|
-
return OpenId4VcIssuanceSessionState_1.OpenId4VcIssuanceSessionState.Error;
|
|
68
|
-
}
|
|
69
|
-
return value;
|
|
70
|
-
}),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], OpenId4VcIssuanceSessionRecord.prototype, "state", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, class_transformer_1.Transform)(({ type, value }) => {
|
|
75
|
-
if (type === class_transformer_1.TransformationType.PLAIN_TO_CLASS && (0, core_1.isJsonObject)(value) && typeof value.codeExpiresAt === 'string') {
|
|
76
|
-
return Object.assign(Object.assign({}, value), { codeExpiresAt: new Date(value.codeExpiresAt) });
|
|
77
|
-
}
|
|
78
|
-
if (type === class_transformer_1.TransformationType.CLASS_TO_CLASS && (0, core_1.isJsonObject)(value) && value.codeExpiresAt instanceof Date) {
|
|
79
|
-
return Object.assign(Object.assign({}, value), { codeExpiresAt: new Date(value.codeExpiresAt.getTime()) });
|
|
80
|
-
}
|
|
81
|
-
if (type === class_transformer_1.TransformationType.CLASS_TO_PLAIN && (0, core_1.isJsonObject)(value) && value.codeExpiresAt instanceof Date) {
|
|
82
|
-
return Object.assign(Object.assign({}, value), { codeExpiresAt: value.codeExpiresAt.toISOString() });
|
|
83
|
-
}
|
|
84
|
-
return value;
|
|
85
|
-
}),
|
|
86
|
-
__metadata("design:type", Object)
|
|
87
|
-
], OpenId4VcIssuanceSessionRecord.prototype, "authorization", void 0);
|
|
88
|
-
//# sourceMappingURL=OpenId4VcIssuanceSessionRecord.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenId4VcIssuanceSessionRecord.js","sourceRoot":"","sources":["../../../src/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,yCAA4E;AAC5E,yDAAiE;AAEjE,oFAAgF;AA+GhF,MAAa,8BAA+B,SAAQ,iBAAqD;IA0GvG,YAAmB,KAA0C;;QAC3D,KAAK,EAAE,CAAA;QAzGO,SAAI,GAAG,8BAA8B,CAAC,IAAI,CAAA;QAoB1D;;WAEG;QACI,sBAAiB,GAAa,EAAE,CAAA;QAoFrC,IAAI,KAAK,EAAE,CAAC;YACV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YAAY,IAAI,EAAE,CAAC;YAC7G,uCACK,KAAK,KACR,aAAa,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,IACvD;QACH,CAAC;QACD,IAAI,IAAI,KAAK,sCAAkB,CAAC,cAAc,IAAI,IAAA,mBAAY,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,YAAY,IAAI,EAAE,CAAC;YAC7G,uCACK,KAAK,KACR,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,IACjD;QACH,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC,CAAC;;qEAC0D"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Repository, StorageService, EventEmitter } from '@credo-ts/core';
|
|
2
|
-
import { OpenId4VcIssuanceSessionRecord } from './OpenId4VcIssuanceSessionRecord';
|
|
3
|
-
export declare class OpenId4VcIssuanceSessionRepository extends Repository<OpenId4VcIssuanceSessionRecord> {
|
|
4
|
-
constructor(storageService: StorageService<OpenId4VcIssuanceSessionRecord>, eventEmitter: EventEmitter);
|
|
5
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.OpenId4VcIssuanceSessionRepository = void 0;
|
|
16
|
-
const core_1 = require("@credo-ts/core");
|
|
17
|
-
const OpenId4VcIssuanceSessionRecord_1 = require("./OpenId4VcIssuanceSessionRecord");
|
|
18
|
-
let OpenId4VcIssuanceSessionRepository = class OpenId4VcIssuanceSessionRepository extends core_1.Repository {
|
|
19
|
-
constructor(storageService, eventEmitter) {
|
|
20
|
-
super(OpenId4VcIssuanceSessionRecord_1.OpenId4VcIssuanceSessionRecord, storageService, eventEmitter);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.OpenId4VcIssuanceSessionRepository = OpenId4VcIssuanceSessionRepository;
|
|
24
|
-
exports.OpenId4VcIssuanceSessionRepository = OpenId4VcIssuanceSessionRepository = __decorate([
|
|
25
|
-
(0, core_1.injectable)(),
|
|
26
|
-
__param(0, (0, core_1.inject)(core_1.InjectionSymbols.StorageService)),
|
|
27
|
-
__metadata("design:paramtypes", [Object, core_1.EventEmitter])
|
|
28
|
-
], OpenId4VcIssuanceSessionRepository);
|
|
29
|
-
//# sourceMappingURL=OpenId4VcIssuanceSessionRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpenId4VcIssuanceSessionRepository.js","sourceRoot":"","sources":["../../../src/openid4vc-issuer/repository/OpenId4VcIssuanceSessionRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAA+G;AAE/G,qFAAiF;AAG1E,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,iBAA0C;IAChG,YAC2C,cAA8D,EACvG,YAA0B;QAE1B,KAAK,CAAC,+DAA8B,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;CACF,CAAA;AAPY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,iBAAU,GAAE;IAGR,WAAA,IAAA,aAAM,EAAC,uBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,mBAAY;GAHjB,kCAAkC,CAO9C"}
|