@verii/vnf-nodejs-wallet-sdk 1.0.0-pre.1752076816
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/LICENSE +177 -0
- package/README.md +1 -0
- package/dist/api/VCL.d.ts +52 -0
- package/dist/api/VCL.js +3 -0
- package/dist/api/VCL.js.map +1 -0
- package/dist/api/VCLEnvironment.d.ts +8 -0
- package/dist/api/VCLEnvironment.js +27 -0
- package/dist/api/VCLEnvironment.js.map +1 -0
- package/dist/api/VCLProvider.d.ts +6 -0
- package/dist/api/VCLProvider.js +16 -0
- package/dist/api/VCLProvider.js.map +1 -0
- package/dist/api/VCLSignatureAlgorithm.d.ts +5 -0
- package/dist/api/VCLSignatureAlgorithm.js +9 -0
- package/dist/api/VCLSignatureAlgorithm.js.map +1 -0
- package/dist/api/VCLTypes.d.ts +2 -0
- package/dist/api/VCLTypes.js +3 -0
- package/dist/api/VCLTypes.js.map +1 -0
- package/dist/api/VCLXVnfProtocolVersion.d.ts +6 -0
- package/dist/api/VCLXVnfProtocolVersion.js +21 -0
- package/dist/api/VCLXVnfProtocolVersion.js.map +1 -0
- package/dist/api/entities/VCLAuthToken.d.ts +12 -0
- package/dist/api/entities/VCLAuthToken.js +22 -0
- package/dist/api/entities/VCLAuthToken.js.map +1 -0
- package/dist/api/entities/VCLAuthTokenDescriptor.d.ts +21 -0
- package/dist/api/entities/VCLAuthTokenDescriptor.js +54 -0
- package/dist/api/entities/VCLAuthTokenDescriptor.js.map +1 -0
- package/dist/api/entities/VCLCountries.d.ts +8 -0
- package/dist/api/entities/VCLCountries.js +20 -0
- package/dist/api/entities/VCLCountries.js.map +1 -0
- package/dist/api/entities/VCLCountry.d.ts +13 -0
- package/dist/api/entities/VCLCountry.js +20 -0
- package/dist/api/entities/VCLCountry.js.map +1 -0
- package/dist/api/entities/VCLCountryCodes.d.ts +253 -0
- package/dist/api/entities/VCLCountryCodes.js +257 -0
- package/dist/api/entities/VCLCountryCodes.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifest.d.ts +35 -0
- package/dist/api/entities/VCLCredentialManifest.js +73 -0
- package/dist/api/entities/VCLCredentialManifest.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptor.d.ts +27 -0
- package/dist/api/entities/VCLCredentialManifestDescriptor.js +50 -0
- package/dist/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +10 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +14 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByService.d.ts +12 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByService.js +18 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +13 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js +35 -0
- package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
- package/dist/api/entities/VCLCredentialType.d.ts +17 -0
- package/dist/api/entities/VCLCredentialType.js +21 -0
- package/dist/api/entities/VCLCredentialType.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypeSchema.d.ts +5 -0
- package/dist/api/entities/VCLCredentialTypeSchema.js +9 -0
- package/dist/api/entities/VCLCredentialTypeSchema.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
- package/dist/api/entities/VCLCredentialTypeSchemas.js +9 -0
- package/dist/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypes.d.ts +9 -0
- package/dist/api/entities/VCLCredentialTypes.js +23 -0
- package/dist/api/entities/VCLCredentialTypes.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchema.d.ts +9 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchema.js +13 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +5 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +10 -0
- package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
- package/dist/api/entities/VCLDeepLink.d.ts +17 -0
- package/dist/api/entities/VCLDeepLink.js +48 -0
- package/dist/api/entities/VCLDeepLink.js.map +1 -0
- package/dist/api/entities/VCLDidDocument.d.ts +14 -0
- package/dist/api/entities/VCLDidDocument.js +46 -0
- package/dist/api/entities/VCLDidDocument.js.map +1 -0
- package/dist/api/entities/VCLDidJwk.d.ts +24 -0
- package/dist/api/entities/VCLDidJwk.js +56 -0
- package/dist/api/entities/VCLDidJwk.js.map +1 -0
- package/dist/api/entities/VCLDidJwkDescriptor.d.ts +8 -0
- package/dist/api/entities/VCLDidJwkDescriptor.js +14 -0
- package/dist/api/entities/VCLDidJwkDescriptor.js.map +1 -0
- package/dist/api/entities/VCLExchange.d.ts +13 -0
- package/dist/api/entities/VCLExchange.js +30 -0
- package/dist/api/entities/VCLExchange.js.map +1 -0
- package/dist/api/entities/VCLExchangeDescriptor.d.ts +11 -0
- package/dist/api/entities/VCLExchangeDescriptor.js +20 -0
- package/dist/api/entities/VCLExchangeDescriptor.js.map +1 -0
- package/dist/api/entities/VCLFinalizeOffersDescriptor.d.ts +25 -0
- package/dist/api/entities/VCLFinalizeOffersDescriptor.js +54 -0
- package/dist/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
- package/dist/api/entities/VCLGenerateOffersDescriptor.d.ts +17 -0
- package/dist/api/entities/VCLGenerateOffersDescriptor.js +29 -0
- package/dist/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
- package/dist/api/entities/VCLIdentificationSubmission.d.ts +8 -0
- package/dist/api/entities/VCLIdentificationSubmission.js +15 -0
- package/dist/api/entities/VCLIdentificationSubmission.js.map +1 -0
- package/dist/api/entities/VCLIssuingType.d.ts +7 -0
- package/dist/api/entities/VCLIssuingType.js +24 -0
- package/dist/api/entities/VCLIssuingType.js.map +1 -0
- package/dist/api/entities/VCLJwt.d.ts +31 -0
- package/dist/api/entities/VCLJwt.js +112 -0
- package/dist/api/entities/VCLJwt.js.map +1 -0
- package/dist/api/entities/VCLJwtDescriptor.d.ts +8 -0
- package/dist/api/entities/VCLJwtDescriptor.js +13 -0
- package/dist/api/entities/VCLJwtDescriptor.js.map +1 -0
- package/dist/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
- package/dist/api/entities/VCLJwtVerifiableCredentials.js +10 -0
- package/dist/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
- package/dist/api/entities/VCLOffer.d.ts +13 -0
- package/dist/api/entities/VCLOffer.js +38 -0
- package/dist/api/entities/VCLOffer.js.map +1 -0
- package/dist/api/entities/VCLOffers.d.ts +17 -0
- package/dist/api/entities/VCLOffers.js +36 -0
- package/dist/api/entities/VCLOffers.js.map +1 -0
- package/dist/api/entities/VCLOrganization.d.ts +12 -0
- package/dist/api/entities/VCLOrganization.js +42 -0
- package/dist/api/entities/VCLOrganization.js.map +1 -0
- package/dist/api/entities/VCLOrganizations.d.ts +6 -0
- package/dist/api/entities/VCLOrganizations.js +10 -0
- package/dist/api/entities/VCLOrganizations.js.map +1 -0
- package/dist/api/entities/VCLOrganizationsSearchDescriptor.d.ts +29 -0
- package/dist/api/entities/VCLOrganizationsSearchDescriptor.js +66 -0
- package/dist/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
- package/dist/api/entities/VCLPlace.d.ts +7 -0
- package/dist/api/entities/VCLPlace.js +11 -0
- package/dist/api/entities/VCLPlace.js.map +1 -0
- package/dist/api/entities/VCLPresentationRequest.d.ts +36 -0
- package/dist/api/entities/VCLPresentationRequest.js +57 -0
- package/dist/api/entities/VCLPresentationRequest.js.map +1 -0
- package/dist/api/entities/VCLPresentationRequestDescriptor.d.ts +18 -0
- package/dist/api/entities/VCLPresentationRequestDescriptor.js +32 -0
- package/dist/api/entities/VCLPresentationRequestDescriptor.js.map +1 -0
- package/dist/api/entities/VCLPresentationSubmission.d.ts +7 -0
- package/dist/api/entities/VCLPresentationSubmission.js +14 -0
- package/dist/api/entities/VCLPresentationSubmission.js.map +1 -0
- package/dist/api/entities/VCLPublicJwk.d.ts +17 -0
- package/dist/api/entities/VCLPublicJwk.js +27 -0
- package/dist/api/entities/VCLPublicJwk.js.map +1 -0
- package/dist/api/entities/VCLPushDelegate.d.ts +9 -0
- package/dist/api/entities/VCLPushDelegate.js +18 -0
- package/dist/api/entities/VCLPushDelegate.js.map +1 -0
- package/dist/api/entities/VCLRegion.d.ts +7 -0
- package/dist/api/entities/VCLRegion.js +15 -0
- package/dist/api/entities/VCLRegion.js.map +1 -0
- package/dist/api/entities/VCLRegions.d.ts +5 -0
- package/dist/api/entities/VCLRegions.js +9 -0
- package/dist/api/entities/VCLRegions.js.map +1 -0
- package/dist/api/entities/VCLService.d.ts +13 -0
- package/dist/api/entities/VCLService.js +17 -0
- package/dist/api/entities/VCLService.js.map +1 -0
- package/dist/api/entities/VCLServiceType.d.ts +14 -0
- package/dist/api/entities/VCLServiceType.js +49 -0
- package/dist/api/entities/VCLServiceType.js.map +1 -0
- package/dist/api/entities/VCLServiceTypes.d.ts +9 -0
- package/dist/api/entities/VCLServiceTypes.js +51 -0
- package/dist/api/entities/VCLServiceTypes.js.map +1 -0
- package/dist/api/entities/VCLSubmission.d.ts +42 -0
- package/dist/api/entities/VCLSubmission.js +81 -0
- package/dist/api/entities/VCLSubmission.js.map +1 -0
- package/dist/api/entities/VCLSubmissionResult.d.ts +13 -0
- package/dist/api/entities/VCLSubmissionResult.js +16 -0
- package/dist/api/entities/VCLSubmissionResult.js.map +1 -0
- package/dist/api/entities/VCLToken.d.ts +9 -0
- package/dist/api/entities/VCLToken.js +25 -0
- package/dist/api/entities/VCLToken.js.map +1 -0
- package/dist/api/entities/VCLVerifiableCredential.d.ts +7 -0
- package/dist/api/entities/VCLVerifiableCredential.js +13 -0
- package/dist/api/entities/VCLVerifiableCredential.js.map +1 -0
- package/dist/api/entities/VCLVerifiedProfile.d.ts +17 -0
- package/dist/api/entities/VCLVerifiedProfile.js +37 -0
- package/dist/api/entities/VCLVerifiedProfile.js.map +1 -0
- package/dist/api/entities/VCLVerifiedProfileDescriptor.d.ts +4 -0
- package/dist/api/entities/VCLVerifiedProfileDescriptor.js +9 -0
- package/dist/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
- package/dist/api/entities/error/VCLError.d.ts +20 -0
- package/dist/api/entities/error/VCLError.js +69 -0
- package/dist/api/entities/error/VCLError.js.map +1 -0
- package/dist/api/entities/error/VCLErrorCode.d.ts +16 -0
- package/dist/api/entities/error/VCLErrorCode.js +20 -0
- package/dist/api/entities/error/VCLErrorCode.js.map +1 -0
- package/dist/api/entities/error/VCLStatusCode.d.ts +6 -0
- package/dist/api/entities/error/VCLStatusCode.js +10 -0
- package/dist/api/entities/error/VCLStatusCode.js.map +1 -0
- package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +9 -0
- package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js +12 -0
- package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
- package/dist/api/entities/initialization/VCLInitializationDescriptor.d.ts +12 -0
- package/dist/api/entities/initialization/VCLInitializationDescriptor.js +19 -0
- package/dist/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
- package/dist/api/entities/initialization/VCLLogService.d.ts +10 -0
- package/dist/api/entities/initialization/VCLLogService.js +3 -0
- package/dist/api/entities/initialization/VCLLogService.js.map +1 -0
- package/dist/api/jwt/VCLJwtSignService.d.ts +8 -0
- package/dist/api/jwt/VCLJwtSignService.js +3 -0
- package/dist/api/jwt/VCLJwtSignService.js.map +1 -0
- package/dist/api/jwt/VCLJwtVerifyService.d.ts +7 -0
- package/dist/api/jwt/VCLJwtVerifyService.js +3 -0
- package/dist/api/jwt/VCLJwtVerifyService.js.map +1 -0
- package/dist/api/keys/VCLKeyService.d.ts +5 -0
- package/dist/api/keys/VCLKeyService.js +3 -0
- package/dist/api/keys/VCLKeyService.js.map +1 -0
- package/dist/impl/GlobalConfig.d.ts +18 -0
- package/dist/impl/GlobalConfig.js +50 -0
- package/dist/impl/GlobalConfig.js.map +1 -0
- package/dist/impl/VCLImpl.d.ts +89 -0
- package/dist/impl/VCLImpl.js +291 -0
- package/dist/impl/VCLImpl.js.map +1 -0
- package/dist/impl/VclBlocksProvider.d.ts +36 -0
- package/dist/impl/VclBlocksProvider.js +98 -0
- package/dist/impl/VclBlocksProvider.js.map +1 -0
- package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.d.ts +1 -0
- package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js +3 -0
- package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js.map +1 -0
- package/dist/impl/data/infrastructure/network/HttpMethod.d.ts +4 -0
- package/dist/impl/data/infrastructure/network/HttpMethod.js +9 -0
- package/dist/impl/data/infrastructure/network/HttpMethod.js.map +1 -0
- package/dist/impl/data/infrastructure/network/NetworkServiceImpl.d.ts +8 -0
- package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js +65 -0
- package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js.map +1 -0
- package/dist/impl/data/infrastructure/network/Request.d.ts +16 -0
- package/dist/impl/data/infrastructure/network/Request.js +24 -0
- package/dist/impl/data/infrastructure/network/Request.js.map +1 -0
- package/dist/impl/data/infrastructure/network/Response.d.ts +5 -0
- package/dist/impl/data/infrastructure/network/Response.js +10 -0
- package/dist/impl/data/infrastructure/network/Response.js.map +1 -0
- package/dist/impl/data/models/CountriesModelImpl.d.ts +11 -0
- package/dist/impl/data/models/CountriesModelImpl.js +24 -0
- package/dist/impl/data/models/CountriesModelImpl.js.map +1 -0
- package/dist/impl/data/models/CredentialTypeSchemasModelImpl.d.ts +11 -0
- package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js +25 -0
- package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js.map +1 -0
- package/dist/impl/data/models/CredentialTypesModelImpl.d.ts +11 -0
- package/dist/impl/data/models/CredentialTypesModelImpl.js +24 -0
- package/dist/impl/data/models/CredentialTypesModelImpl.js.map +1 -0
- package/dist/impl/data/repositories/AuthTokenRepositoryImpl.d.ts +11 -0
- package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js +63 -0
- package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CountriesRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/CountriesRepositoryImpl.js +90 -0
- package/dist/impl/data/repositories/CountriesRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js +42 -0
- package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js +75 -0
- package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js +79 -0
- package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.d.ts +12 -0
- package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js +125 -0
- package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js +41 -0
- package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.d.ts +11 -0
- package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js +47 -0
- package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js +42 -0
- package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.d.ts +3 -0
- package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js +10 -0
- package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/JwtServiceRepositoryImpl.d.ts +17 -0
- package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js +38 -0
- package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/KeyServiceRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js +23 -0
- package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/OrganizationsRepositoryImpl.d.ts +10 -0
- package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js +78 -0
- package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js +41 -0
- package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js +72 -0
- package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/ResolveKidRepositoryImpl.d.ts +8 -0
- package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js +69 -0
- package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/SubmissionRepositoryImpl.d.ts +17 -0
- package/dist/impl/data/repositories/SubmissionRepositoryImpl.js +54 -0
- package/dist/impl/data/repositories/SubmissionRepositoryImpl.js.map +1 -0
- package/dist/impl/data/repositories/Urls.d.ts +24 -0
- package/dist/impl/data/repositories/Urls.js +64 -0
- package/dist/impl/data/repositories/Urls.js.map +1 -0
- package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.d.ts +9 -0
- package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js +70 -0
- package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js.map +1 -0
- package/dist/impl/data/usecases/AuthTokenUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CountriesModelUseCaseImpl.d.ts +8 -0
- package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.d.ts +23 -0
- package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js +71 -0
- package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.d.ts +10 -0
- package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js +51 -0
- package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.d.ts +10 -0
- package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.d.ts +8 -0
- package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.d.ts +24 -0
- package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js +72 -0
- package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.d.ts +13 -0
- package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js +47 -0
- package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.d.ts +3 -0
- package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js +10 -0
- package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/JwtServiceUseCaseImpl.d.ts +14 -0
- package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js +37 -0
- package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/KeyServiceUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/OrganizationsUseCaseImpl.d.ts +9 -0
- package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.d.ts +20 -0
- package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js +57 -0
- package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.d.ts +3 -0
- package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js +10 -0
- package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/SubmissionUseCaseImpl.d.ts +13 -0
- package/dist/impl/data/usecases/SubmissionUseCaseImpl.js +35 -0
- package/dist/impl/data/usecases/SubmissionUseCaseImpl.js.map +1 -0
- package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.d.ts +8 -0
- package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js +32 -0
- package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialDidVerifierImpl.d.ts +8 -0
- package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js +48 -0
- package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.d.ts +6 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js +20 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.d.ts +11 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js +41 -0
- package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.d.ts +8 -0
- package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js +43 -0
- package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.d.ts +11 -0
- package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js +56 -0
- package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.d.ts +11 -0
- package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js +56 -0
- package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.d.ts +8 -0
- package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js +43 -0
- package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js.map +1 -0
- package/dist/impl/data/verifiers/VerificationUtils.d.ts +4 -0
- package/dist/impl/data/verifiers/VerificationUtils.js +28 -0
- package/dist/impl/data/verifiers/VerificationUtils.js.map +1 -0
- package/dist/impl/data/verifiers/index.d.ts +8 -0
- package/dist/impl/data/verifiers/index.js +21 -0
- package/dist/impl/data/verifiers/index.js.map +1 -0
- package/dist/impl/domain/infrastructure/db/SecretStoreService.d.ts +7 -0
- package/dist/impl/domain/infrastructure/db/SecretStoreService.js +3 -0
- package/dist/impl/domain/infrastructure/db/SecretStoreService.js.map +1 -0
- package/dist/impl/domain/infrastructure/network/NetworkService.d.ts +6 -0
- package/dist/impl/domain/infrastructure/network/NetworkService.js +3 -0
- package/dist/impl/domain/infrastructure/network/NetworkService.js.map +1 -0
- package/dist/impl/domain/models/CountriesModel.d.ts +5 -0
- package/dist/impl/domain/models/CountriesModel.js +3 -0
- package/dist/impl/domain/models/CountriesModel.js.map +1 -0
- package/dist/impl/domain/models/CredentialTypeSchemasModel.d.ts +5 -0
- package/dist/impl/domain/models/CredentialTypeSchemasModel.js +3 -0
- package/dist/impl/domain/models/CredentialTypeSchemasModel.js.map +1 -0
- package/dist/impl/domain/models/CredentialTypesModel.d.ts +5 -0
- package/dist/impl/domain/models/CredentialTypesModel.js +3 -0
- package/dist/impl/domain/models/CredentialTypesModel.js.map +1 -0
- package/dist/impl/domain/models/IdentificationModel.d.ts +8 -0
- package/dist/impl/domain/models/IdentificationModel.js +3 -0
- package/dist/impl/domain/models/IdentificationModel.js.map +1 -0
- package/dist/impl/domain/models/Initializable.d.ts +4 -0
- package/dist/impl/domain/models/Initializable.js +3 -0
- package/dist/impl/domain/models/Initializable.js.map +1 -0
- package/dist/impl/domain/models/Model.d.ts +4 -0
- package/dist/impl/domain/models/Model.js +3 -0
- package/dist/impl/domain/models/Model.js.map +1 -0
- package/dist/impl/domain/repositories/AuthTokenRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/AuthTokenRepository.js +3 -0
- package/dist/impl/domain/repositories/AuthTokenRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CountriesRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CountriesRepository.js +3 -0
- package/dist/impl/domain/repositories/CountriesRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialManifestRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CredentialManifestRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialManifestRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialTypesRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/CredentialTypesRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialTypesRepository.js.map +1 -0
- package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.d.ts +6 -0
- package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js +3 -0
- package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js.map +1 -0
- package/dist/impl/domain/repositories/ExchangeProgressRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/ExchangeProgressRepository.js +3 -0
- package/dist/impl/domain/repositories/ExchangeProgressRepository.js.map +1 -0
- package/dist/impl/domain/repositories/FinalizeOffersRepository.d.ts +7 -0
- package/dist/impl/domain/repositories/FinalizeOffersRepository.js +3 -0
- package/dist/impl/domain/repositories/FinalizeOffersRepository.js.map +1 -0
- package/dist/impl/domain/repositories/GenerateOffersRepository.d.ts +6 -0
- package/dist/impl/domain/repositories/GenerateOffersRepository.js +3 -0
- package/dist/impl/domain/repositories/GenerateOffersRepository.js.map +1 -0
- package/dist/impl/domain/repositories/IdentificationSubmissionRepository.d.ts +3 -0
- package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js +3 -0
- package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js.map +1 -0
- package/dist/impl/domain/repositories/JwtServiceRepository.d.ts +11 -0
- package/dist/impl/domain/repositories/JwtServiceRepository.js +3 -0
- package/dist/impl/domain/repositories/JwtServiceRepository.js.map +1 -0
- package/dist/impl/domain/repositories/KeyServiceRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/KeyServiceRepository.js +3 -0
- package/dist/impl/domain/repositories/KeyServiceRepository.js.map +1 -0
- package/dist/impl/domain/repositories/OrganizationsRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/OrganizationsRepository.js +3 -0
- package/dist/impl/domain/repositories/OrganizationsRepository.js.map +1 -0
- package/dist/impl/domain/repositories/PresentationRequestRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/PresentationRequestRepository.js +3 -0
- package/dist/impl/domain/repositories/PresentationRequestRepository.js.map +1 -0
- package/dist/impl/domain/repositories/ResolveDidDocumentRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js +3 -0
- package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js.map +1 -0
- package/dist/impl/domain/repositories/ResolveKidRepository.d.ts +4 -0
- package/dist/impl/domain/repositories/ResolveKidRepository.js +3 -0
- package/dist/impl/domain/repositories/ResolveKidRepository.js.map +1 -0
- package/dist/impl/domain/repositories/SubmissionRepository.d.ts +8 -0
- package/dist/impl/domain/repositories/SubmissionRepository.js +3 -0
- package/dist/impl/domain/repositories/SubmissionRepository.js.map +1 -0
- package/dist/impl/domain/repositories/VerifiedProfileRepository.d.ts +5 -0
- package/dist/impl/domain/repositories/VerifiedProfileRepository.js +3 -0
- package/dist/impl/domain/repositories/VerifiedProfileRepository.js.map +1 -0
- package/dist/impl/domain/usecases/AuthTokenUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/AuthTokenUseCase.js +3 -0
- package/dist/impl/domain/usecases/AuthTokenUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CountriesModelUseCase.d.ts +4 -0
- package/dist/impl/domain/usecases/CountriesModelUseCase.js +3 -0
- package/dist/impl/domain/usecases/CountriesModelUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialManifestUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/CredentialManifestUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialManifestUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.d.ts +4 -0
- package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/CredentialTypesUseCase.d.ts +4 -0
- package/dist/impl/domain/usecases/CredentialTypesUseCase.js +3 -0
- package/dist/impl/domain/usecases/CredentialTypesUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/ExchangeProgressUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/ExchangeProgressUseCase.js +3 -0
- package/dist/impl/domain/usecases/ExchangeProgressUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/FinalizeOffersUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/FinalizeOffersUseCase.js +3 -0
- package/dist/impl/domain/usecases/FinalizeOffersUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/GenerateOffersUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/GenerateOffersUseCase.js +3 -0
- package/dist/impl/domain/usecases/GenerateOffersUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.d.ts +3 -0
- package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js +3 -0
- package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/JwtServiceUseCase.d.ts +10 -0
- package/dist/impl/domain/usecases/JwtServiceUseCase.js +3 -0
- package/dist/impl/domain/usecases/JwtServiceUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/KeyServiceUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/KeyServiceUseCase.js +3 -0
- package/dist/impl/domain/usecases/KeyServiceUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/OrganizationsUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/OrganizationsUseCase.js +3 -0
- package/dist/impl/domain/usecases/OrganizationsUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/PresentationRequestUseCase.d.ts +6 -0
- package/dist/impl/domain/usecases/PresentationRequestUseCase.js +3 -0
- package/dist/impl/domain/usecases/PresentationRequestUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/PresentationSubmissionUseCase.d.ts +3 -0
- package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js +3 -0
- package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/SubmissionUseCase.d.ts +7 -0
- package/dist/impl/domain/usecases/SubmissionUseCase.js +3 -0
- package/dist/impl/domain/usecases/SubmissionUseCase.js.map +1 -0
- package/dist/impl/domain/usecases/VerifiedProfileUseCase.d.ts +5 -0
- package/dist/impl/domain/usecases/VerifiedProfileUseCase.js +3 -0
- package/dist/impl/domain/usecases/VerifiedProfileUseCase.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialDidVerifier.d.ts +6 -0
- package/dist/impl/domain/verifiers/CredentialDidVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialDidVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialIssuerVerifier.d.ts +5 -0
- package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.d.ts +6 -0
- package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.d.ts +5 -0
- package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.d.ts +5 -0
- package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.d.ts +6 -0
- package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js +3 -0
- package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js.map +1 -0
- package/dist/impl/utils/HelperFunctions.d.ts +8 -0
- package/dist/impl/utils/HelperFunctions.js +62 -0
- package/dist/impl/utils/HelperFunctions.js.map +1 -0
- package/dist/impl/utils/InitializationWatcher.d.ts +10 -0
- package/dist/impl/utils/InitializationWatcher.js +24 -0
- package/dist/impl/utils/InitializationWatcher.js.map +1 -0
- package/dist/impl/utils/LoadJsonldContext.d.ts +6 -0
- package/dist/impl/utils/LoadJsonldContext.js +68 -0
- package/dist/impl/utils/LoadJsonldContext.js.map +1 -0
- package/dist/impl/utils/ProfileServiceTypeVerifier.d.ts +12 -0
- package/dist/impl/utils/ProfileServiceTypeVerifier.js +57 -0
- package/dist/impl/utils/ProfileServiceTypeVerifier.js.map +1 -0
- package/dist/impl/utils/VCLLog.d.ts +9 -0
- package/dist/impl/utils/VCLLog.js +29 -0
- package/dist/impl/utils/VCLLog.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +158 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLLogService.js","sourceRoot":"","sources":["../../../../src/api/entities/initialization/VCLLogService.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLDidJwk from '../entities/VCLDidJwk';
|
|
3
|
+
import VCLJwt from '../entities/VCLJwt';
|
|
4
|
+
import VCLJwtDescriptor from '../entities/VCLJwtDescriptor';
|
|
5
|
+
import VCLToken from '../entities/VCLToken';
|
|
6
|
+
export default interface VCLJwtSignService {
|
|
7
|
+
sign(jwtDescriptor: VCLJwtDescriptor, didJwk: VCLDidJwk, nonce: Nullish<string>, remoteCryptoServicesToken: Nullish<VCLToken>): Promise<VCLJwt>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLJwtSignService.js","sourceRoot":"","sources":["../../../src/api/jwt/VCLJwtSignService.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import VCLJwt from '../entities/VCLJwt';
|
|
2
|
+
import VCLPublicJwk from '../entities/VCLPublicJwk';
|
|
3
|
+
import { Nullish } from '../VCLTypes';
|
|
4
|
+
import VCLToken from '../entities/VCLToken';
|
|
5
|
+
export default interface VCLJwtVerifyService {
|
|
6
|
+
verify(jwt: VCLJwt, publicJwk: Nullish<VCLPublicJwk>, remoteCryptoServicesToken: Nullish<VCLToken>): Promise<boolean>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLJwtVerifyService.js","sourceRoot":"","sources":["../../../src/api/jwt/VCLJwtVerifyService.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLKeyService.js","sourceRoot":"","sources":["../../../src/api/keys/VCLKeyService.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import VCLEnvironment from '../api/VCLEnvironment';
|
|
2
|
+
import VCLXVnfProtocolVersion from '../api/VCLXVnfProtocolVersion';
|
|
3
|
+
export default class GlobalConfig {
|
|
4
|
+
private static _IsDebugOn;
|
|
5
|
+
static get IsDebugOn(): boolean;
|
|
6
|
+
static setIsDebugOn(value: any): void;
|
|
7
|
+
private static _CurrentEnvironment;
|
|
8
|
+
static get CurrentEnvironment(): VCLEnvironment;
|
|
9
|
+
static setCurrentEnvironment(value: any): void;
|
|
10
|
+
private static _XVnfProtocolVersion;
|
|
11
|
+
static get XVnfProtocolVersion(): VCLXVnfProtocolVersion;
|
|
12
|
+
static setXVnfProtocolVersion(value: any): void;
|
|
13
|
+
private static _IsDirectIssuerOn;
|
|
14
|
+
static get IsDirectIssuerOn(): boolean;
|
|
15
|
+
private static setIsDirectIssuerOn;
|
|
16
|
+
static init(isDebugOn?: boolean, currentEnvironment?: VCLEnvironment, xVnfProtocolVersion?: VCLXVnfProtocolVersion, isDirectIssuerOn?: boolean): void;
|
|
17
|
+
static get IsLoggerOn(): boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const VCLEnvironment_1 = __importDefault(require("../api/VCLEnvironment"));
|
|
7
|
+
const VCLXVnfProtocolVersion_1 = __importDefault(require("../api/VCLXVnfProtocolVersion"));
|
|
8
|
+
class GlobalConfig {
|
|
9
|
+
static get IsDebugOn() {
|
|
10
|
+
return this._IsDebugOn;
|
|
11
|
+
}
|
|
12
|
+
static setIsDebugOn(value) {
|
|
13
|
+
this._IsDebugOn = value;
|
|
14
|
+
}
|
|
15
|
+
static get CurrentEnvironment() {
|
|
16
|
+
return this._CurrentEnvironment;
|
|
17
|
+
}
|
|
18
|
+
static setCurrentEnvironment(value) {
|
|
19
|
+
this._CurrentEnvironment = value;
|
|
20
|
+
}
|
|
21
|
+
static get XVnfProtocolVersion() {
|
|
22
|
+
return this._XVnfProtocolVersion;
|
|
23
|
+
}
|
|
24
|
+
static setXVnfProtocolVersion(value) {
|
|
25
|
+
this._XVnfProtocolVersion = value;
|
|
26
|
+
}
|
|
27
|
+
static get IsDirectIssuerOn() {
|
|
28
|
+
return this._IsDirectIssuerOn;
|
|
29
|
+
}
|
|
30
|
+
static setIsDirectIssuerOn(value) {
|
|
31
|
+
this._IsDirectIssuerOn = value;
|
|
32
|
+
}
|
|
33
|
+
static init(isDebugOn = false, currentEnvironment = VCLEnvironment_1.default.Prod, xVnfProtocolVersion = VCLXVnfProtocolVersion_1.default.XVnfProtocolVersion1, isDirectIssuerOn = true) {
|
|
34
|
+
GlobalConfig.setIsDebugOn(isDebugOn);
|
|
35
|
+
GlobalConfig.setCurrentEnvironment(currentEnvironment);
|
|
36
|
+
GlobalConfig.setXVnfProtocolVersion(xVnfProtocolVersion);
|
|
37
|
+
GlobalConfig.setIsDirectIssuerOn(isDirectIssuerOn);
|
|
38
|
+
}
|
|
39
|
+
static get IsLoggerOn() {
|
|
40
|
+
return ((this.CurrentEnvironment !== VCLEnvironment_1.default.Staging &&
|
|
41
|
+
this.CurrentEnvironment !== VCLEnvironment_1.default.Prod) ||
|
|
42
|
+
this.IsDebugOn);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
GlobalConfig._IsDebugOn = false;
|
|
46
|
+
GlobalConfig._CurrentEnvironment = VCLEnvironment_1.default.Prod;
|
|
47
|
+
GlobalConfig._XVnfProtocolVersion = VCLXVnfProtocolVersion_1.default.XVnfProtocolVersion1;
|
|
48
|
+
GlobalConfig._IsDirectIssuerOn = true;
|
|
49
|
+
exports.default = GlobalConfig;
|
|
50
|
+
//# sourceMappingURL=GlobalConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalConfig.js","sourceRoot":"","sources":["../../src/impl/GlobalConfig.ts"],"names":[],"mappings":";;;;;AAAA,2EAAmD;AACnD,2FAAmE;AAEnE,MAAqB,YAAY;IAGtB,MAAM,KAAK,SAAS;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,KAAK;QAC5B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC5B,CAAC;IAIM,MAAM,KAAK,kBAAkB;QAChC,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,qBAAqB,CAAC,KAAK;QACrC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;IACrC,CAAC;IAKM,MAAM,KAAK,mBAAmB;QACjC,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,KAAK;QACtC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACtC,CAAC;IAIM,MAAM,KAAK,gBAAgB;QAC9B,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAEO,MAAM,CAAC,mBAAmB,CAAC,KAAK;QACpC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACnC,CAAC;IAEM,MAAM,CAAC,IAAI,CACd,SAAS,GAAG,KAAK,EACjB,qBAAqC,wBAAc,CAAC,IAAI,EACxD,sBAA8C,gCAAsB,CAAC,oBAAoB,EACzF,gBAAgB,GAAG,IAAI;QAEvB,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QACrC,YAAY,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACvD,YAAY,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;QACzD,YAAY,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,KAAK,UAAU;QACxB,OAAO,CACH,CAAC,IAAI,CAAC,kBAAkB,KAAK,wBAAc,CAAC,OAAO;YAC/C,IAAI,CAAC,kBAAkB,KAAK,wBAAc,CAAC,IAAI,CAAC;YACpD,IAAI,CAAC,SAAS,CACjB,CAAC;IACN,CAAC;;AA3Dc,uBAAU,GAAG,KAAK,CAAC;AAUnB,gCAAmB,GAAG,wBAAc,CAAC,IAAI,CAAC;AAU1C,iCAAoB,GAC/B,gCAAsB,CAAC,oBAAoB,CAAC;AAUjC,8BAAiB,GAAG,IAAI,CAAC;kBAhCvB,YAAY"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import VCL from '../api/VCL';
|
|
2
|
+
import VCLCountries from '../api/entities/VCLCountries';
|
|
3
|
+
import VCLCredentialTypes from '../api/entities/VCLCredentialTypes';
|
|
4
|
+
import VCLCredentialTypeSchemas from '../api/entities/VCLCredentialTypeSchemas';
|
|
5
|
+
import VCLCredentialManifestDescriptor from '../api/entities/VCLCredentialManifestDescriptor';
|
|
6
|
+
import VCLCredentialTypesUIFormSchema from '../api/entities/VCLCredentialTypesUIFormSchema';
|
|
7
|
+
import VCLCredentialTypesUIFormSchemaDescriptor from '../api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
|
|
8
|
+
import VCLDidJwk from '../api/entities/VCLDidJwk';
|
|
9
|
+
import VCLError from '../api/entities/error/VCLError';
|
|
10
|
+
import VCLExchangeDescriptor from '../api/entities/VCLExchangeDescriptor';
|
|
11
|
+
import VCLFinalizeOffersDescriptor from '../api/entities/VCLFinalizeOffersDescriptor';
|
|
12
|
+
import VCLGenerateOffersDescriptor from '../api/entities/VCLGenerateOffersDescriptor';
|
|
13
|
+
import VCLInitializationDescriptor from '../api/entities/initialization/VCLInitializationDescriptor';
|
|
14
|
+
import VCLPublicJwk from '../api/entities/VCLPublicJwk';
|
|
15
|
+
import VCLJwt from '../api/entities/VCLJwt';
|
|
16
|
+
import VCLJwtDescriptor from '../api/entities/VCLJwtDescriptor';
|
|
17
|
+
import VCLOffers from '../api/entities/VCLOffers';
|
|
18
|
+
import { VCLOrganizationsSearchDescriptor } from '../api/entities/VCLOrganizationsSearchDescriptor';
|
|
19
|
+
import VCLPresentationRequestDescriptor from '../api/entities/VCLPresentationRequestDescriptor';
|
|
20
|
+
import VCLPresentationSubmission from '../api/entities/VCLPresentationSubmission';
|
|
21
|
+
import VCLSubmissionResult from '../api/entities/VCLSubmissionResult';
|
|
22
|
+
import VCLToken from '../api/entities/VCLToken';
|
|
23
|
+
import VCLVerifiedProfile from '../api/entities/VCLVerifiedProfile';
|
|
24
|
+
import VCLVerifiedProfileDescriptor from '../api/entities/VCLVerifiedProfileDescriptor';
|
|
25
|
+
import CountriesModel from './domain/models/CountriesModel';
|
|
26
|
+
import CredentialTypeSchemasModel from './domain/models/CredentialTypeSchemasModel';
|
|
27
|
+
import CredentialTypesModel from './domain/models/CredentialTypesModel';
|
|
28
|
+
import { ProfileServiceTypeVerifier } from './utils/ProfileServiceTypeVerifier';
|
|
29
|
+
import VerifiedProfileUseCase from './domain/usecases/VerifiedProfileUseCase';
|
|
30
|
+
import JwtServiceUseCase from './domain/usecases/JwtServiceUseCase';
|
|
31
|
+
import IdentificationSubmissionUseCase from './domain/usecases/IdentificationSubmissionUseCase';
|
|
32
|
+
import PresentationRequestUseCase from './domain/usecases/PresentationRequestUseCase';
|
|
33
|
+
import CredentialManifestUseCase from './domain/usecases/CredentialManifestUseCase';
|
|
34
|
+
import GenerateOffersUseCase from './domain/usecases/GenerateOffersUseCase';
|
|
35
|
+
import FinalizeOffersUseCase from './domain/usecases/FinalizeOffersUseCase';
|
|
36
|
+
import PresentationSubmissionUseCase from './domain/usecases/PresentationSubmissionUseCase';
|
|
37
|
+
import ExchangeProgressUseCase from './domain/usecases/ExchangeProgressUseCase';
|
|
38
|
+
import OrganizationsUseCase from './domain/usecases/OrganizationsUseCase';
|
|
39
|
+
import CredentialTypesUIFormSchemaUseCase from './domain/usecases/CredentialTypesUIFormSchemaUseCase';
|
|
40
|
+
import VCLDidJwkDescriptor from '../api/entities/VCLDidJwkDescriptor';
|
|
41
|
+
import KeyServiceUseCase from './domain/usecases/KeyServiceUseCase';
|
|
42
|
+
import { Nullish } from '../api/VCLTypes';
|
|
43
|
+
import VCLAuthTokenDescriptor from '../api/entities/VCLAuthTokenDescriptor';
|
|
44
|
+
import VCLAuthToken from '../api/entities/VCLAuthToken';
|
|
45
|
+
import AuthTokenUseCase from './domain/usecases/AuthTokenUseCase';
|
|
46
|
+
export declare class VCLImpl implements VCL {
|
|
47
|
+
static readonly ModelsToInitializeAmount = 3;
|
|
48
|
+
credentialTypesModel: Nullish<CredentialTypesModel>;
|
|
49
|
+
initializationDescriptor: VCLInitializationDescriptor;
|
|
50
|
+
credentialTypeSchemasModel: Nullish<CredentialTypeSchemasModel>;
|
|
51
|
+
countriesModel: Nullish<CountriesModel>;
|
|
52
|
+
verifiedProfileUseCase: VerifiedProfileUseCase;
|
|
53
|
+
jwtServiceUseCase: JwtServiceUseCase;
|
|
54
|
+
profileServiceTypeVerifier: ProfileServiceTypeVerifier;
|
|
55
|
+
identificationUseCase: IdentificationSubmissionUseCase;
|
|
56
|
+
presentationRequestUseCase: PresentationRequestUseCase;
|
|
57
|
+
credentialManifestUseCase: CredentialManifestUseCase;
|
|
58
|
+
generateOffersUseCase: GenerateOffersUseCase;
|
|
59
|
+
finalizeOffersUseCase: FinalizeOffersUseCase;
|
|
60
|
+
presentationSubmissionUseCase: PresentationSubmissionUseCase;
|
|
61
|
+
exchangeProgressUseCase: ExchangeProgressUseCase;
|
|
62
|
+
organizationsUseCase: OrganizationsUseCase;
|
|
63
|
+
authTokenUseCase: AuthTokenUseCase;
|
|
64
|
+
credentialTypesUIFormSchemaUseCase: CredentialTypesUIFormSchemaUseCase;
|
|
65
|
+
keyServiceUseCase: KeyServiceUseCase;
|
|
66
|
+
private initializationWatcher;
|
|
67
|
+
initialize(initializationDescriptor: VCLInitializationDescriptor): Promise<Nullish<VCLError>>;
|
|
68
|
+
initGlobalConfigurations(initializationDescriptor: VCLInitializationDescriptor): void;
|
|
69
|
+
private initializeUseCases;
|
|
70
|
+
get countries(): Nullish<VCLCountries>;
|
|
71
|
+
get credentialTypes(): Nullish<VCLCredentialTypes>;
|
|
72
|
+
get credentialTypeSchemas(): Nullish<VCLCredentialTypeSchemas>;
|
|
73
|
+
getPresentationRequest: (presentationRequestDescriptor: VCLPresentationRequestDescriptor) => Promise<import("..").VCLPresentationRequest>;
|
|
74
|
+
submitPresentation: (presentationSubmission: VCLPresentationSubmission, authToken?: Nullish<VCLAuthToken>) => Promise<VCLSubmissionResult>;
|
|
75
|
+
getExchangeProgress: (exchangeDescriptor: VCLExchangeDescriptor) => Promise<import("..").VCLExchange>;
|
|
76
|
+
searchForOrganizations: (organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor) => Promise<import("..").VCLOrganizations>;
|
|
77
|
+
getCredentialManifest: (credentialManifestDescriptor: VCLCredentialManifestDescriptor) => Promise<import("..").VCLCredentialManifest>;
|
|
78
|
+
generateOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor) => Promise<VCLOffers>;
|
|
79
|
+
checkForOffers(generateOffersDescriptor: VCLGenerateOffersDescriptor, sessionToken: VCLToken): Promise<VCLOffers>;
|
|
80
|
+
getAuthToken: (authTokenDescriptor: VCLAuthTokenDescriptor) => Promise<VCLAuthToken>;
|
|
81
|
+
finalizeOffers: (finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, sessionToken: VCLToken) => Promise<import("..").VCLJwtVerifiableCredentials>;
|
|
82
|
+
getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor): Promise<VCLCredentialTypesUIFormSchema>;
|
|
83
|
+
getVerifiedProfile: (verifiedProfileDescriptor: VCLVerifiedProfileDescriptor) => Promise<VCLVerifiedProfile>;
|
|
84
|
+
verifyJwt: (jwt: VCLJwt, publicJwk: Nullish<VCLPublicJwk>, remoteCryptoServicesToken: Nullish<VCLToken>) => Promise<boolean>;
|
|
85
|
+
generateSignedJwt: (jwtDescriptor: VCLJwtDescriptor, didJwk: VCLDidJwk, nonce: Nullish<string>, remoteCryptoServicesToken: Nullish<VCLToken>) => Promise<VCLJwt>;
|
|
86
|
+
generateDidJwk: (didJwkDescriptor: VCLDidJwkDescriptor) => Promise<VCLDidJwk>;
|
|
87
|
+
printVersion(): void;
|
|
88
|
+
private invokeGenerateOffersUseCase;
|
|
89
|
+
}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.VCLImpl = void 0;
|
|
16
|
+
const fs_1 = __importDefault(require("fs"));
|
|
17
|
+
const path_1 = __importDefault(require("path"));
|
|
18
|
+
const VCLError_1 = __importDefault(require("../api/entities/error/VCLError"));
|
|
19
|
+
const VCLIdentificationSubmission_1 = __importDefault(require("../api/entities/VCLIdentificationSubmission"));
|
|
20
|
+
const VCLServiceType_1 = __importDefault(require("../api/entities/VCLServiceType"));
|
|
21
|
+
const VCLServiceTypes_1 = __importDefault(require("../api/entities/VCLServiceTypes"));
|
|
22
|
+
const VCLVerifiedProfileDescriptor_1 = __importDefault(require("../api/entities/VCLVerifiedProfileDescriptor"));
|
|
23
|
+
const GlobalConfig_1 = __importDefault(require("./GlobalConfig"));
|
|
24
|
+
const VclBlocksProvider_1 = __importDefault(require("./VclBlocksProvider"));
|
|
25
|
+
const InitializationWatcher_1 = __importDefault(require("./utils/InitializationWatcher"));
|
|
26
|
+
const ProfileServiceTypeVerifier_1 = require("./utils/ProfileServiceTypeVerifier");
|
|
27
|
+
const VCLLog_1 = __importDefault(require("./utils/VCLLog"));
|
|
28
|
+
const VCLErrorCode_1 = __importDefault(require("../api/entities/error/VCLErrorCode"));
|
|
29
|
+
class VCLImpl {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.initializationWatcher = new InitializationWatcher_1.default(VCLImpl.ModelsToInitializeAmount);
|
|
32
|
+
this.getPresentationRequest = (presentationRequestDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const { did } = presentationRequestDescriptor;
|
|
34
|
+
if (!did) {
|
|
35
|
+
const err = new VCLError_1.default(`did was not found in ${JSON.stringify(presentationRequestDescriptor)}`);
|
|
36
|
+
logError('getPresentationRequest::verifiedProfile', err);
|
|
37
|
+
throw err;
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
const verifiedProfile = yield this.profileServiceTypeVerifier.verifyServiceTypeOfVerifiedProfile(new VCLVerifiedProfileDescriptor_1.default(did), new VCLServiceTypes_1.default([VCLServiceType_1.default.Inspector]));
|
|
41
|
+
return yield this.presentationRequestUseCase.getPresentationRequest(presentationRequestDescriptor, verifiedProfile);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
logError('getPresentationRequest', error);
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.submitPresentation = (presentationSubmission, authToken) => __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
try {
|
|
50
|
+
return yield this.presentationSubmissionUseCase.submit(presentationSubmission, authToken);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
logError('submit presentation', error);
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
this.getExchangeProgress = (exchangeDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
try {
|
|
59
|
+
return yield this.exchangeProgressUseCase.getExchangeProgress(exchangeDescriptor);
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
logError('getExchangeProgress', error);
|
|
63
|
+
throw error;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
this.searchForOrganizations = (organizationsSearchDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
try {
|
|
68
|
+
return yield this.organizationsUseCase.searchForOrganizations(organizationsSearchDescriptor);
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
logError('getExchangeProgress', error);
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
this.getCredentialManifest = (credentialManifestDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const { did } = credentialManifestDescriptor;
|
|
77
|
+
if (!did) {
|
|
78
|
+
const error = new VCLError_1.default(`did was not found in ${JSON.stringify(credentialManifestDescriptor)}`, VCLErrorCode_1.default.SdkError.toString(), null);
|
|
79
|
+
logError("credentialManifestDescriptor.did doesn't exist", error);
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
82
|
+
let verifiedProfile;
|
|
83
|
+
try {
|
|
84
|
+
verifiedProfile =
|
|
85
|
+
yield this.profileServiceTypeVerifier.verifyServiceTypeOfVerifiedProfile(new VCLVerifiedProfileDescriptor_1.default(did), VCLServiceTypes_1.default.fromIssuingType(credentialManifestDescriptor.issuingType));
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
logError(`failed to find verified profile by did ${did}`, error);
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
try {
|
|
92
|
+
return yield this.credentialManifestUseCase.getCredentialManifest(credentialManifestDescriptor, verifiedProfile);
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
logError('getCredentialManifest', error);
|
|
96
|
+
throw error;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
this.generateOffers = (generateOffersDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const identificationSubmission = new VCLIdentificationSubmission_1.default(generateOffersDescriptor.credentialManifest, generateOffersDescriptor.identificationVerifiableCredentials);
|
|
101
|
+
let identificationSubmissionResult;
|
|
102
|
+
try {
|
|
103
|
+
identificationSubmissionResult =
|
|
104
|
+
yield this.identificationUseCase.submit(identificationSubmission);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
logError('submit identification', error);
|
|
108
|
+
throw error;
|
|
109
|
+
}
|
|
110
|
+
return this.invokeGenerateOffersUseCase(generateOffersDescriptor, identificationSubmissionResult.sessionToken);
|
|
111
|
+
});
|
|
112
|
+
this.getAuthToken = (authTokenDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
return this.authTokenUseCase.getAuthToken(authTokenDescriptor);
|
|
114
|
+
});
|
|
115
|
+
this.finalizeOffers = (finalizeOffersDescriptor, sessionToken) => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
try {
|
|
117
|
+
return yield this.finalizeOffersUseCase.finalizeOffers(finalizeOffersDescriptor, sessionToken);
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
logError('finalizeOffers', error);
|
|
121
|
+
throw error;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
this.getVerifiedProfile = (verifiedProfileDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
try {
|
|
126
|
+
return yield this.verifiedProfileUseCase.getVerifiedProfile(verifiedProfileDescriptor);
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
logError('getVerifiedProfile', error);
|
|
130
|
+
throw error;
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
this.verifyJwt = (jwt, publicJwk, remoteCryptoServicesToken) => __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
try {
|
|
135
|
+
return yield this.jwtServiceUseCase.verifyJwt(jwt, publicJwk, remoteCryptoServicesToken);
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
logError('verifyJwt', error);
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
this.generateSignedJwt = (jwtDescriptor, didJwk, nonce, remoteCryptoServicesToken) => __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
try {
|
|
144
|
+
return yield this.jwtServiceUseCase.generateSignedJwt(jwtDescriptor, didJwk, nonce, remoteCryptoServicesToken);
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
logError('generateSignedJwt', error);
|
|
148
|
+
throw error;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
this.generateDidJwk = (didJwkDescriptor) => __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
try {
|
|
153
|
+
return yield this.keyServiceUseCase.generateDidJwk(didJwkDescriptor);
|
|
154
|
+
}
|
|
155
|
+
catch (error) {
|
|
156
|
+
logError('generateDidJwk', error);
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
initialize(initializationDescriptor) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
var _a;
|
|
164
|
+
this.initializationDescriptor = initializationDescriptor;
|
|
165
|
+
this.initializationWatcher = new InitializationWatcher_1.default(VCLImpl.ModelsToInitializeAmount);
|
|
166
|
+
this.initGlobalConfigurations(initializationDescriptor);
|
|
167
|
+
this.printVersion();
|
|
168
|
+
const completionHandler = (e) => {
|
|
169
|
+
if (e)
|
|
170
|
+
return e;
|
|
171
|
+
const firstError = this.initializationWatcher.firstError();
|
|
172
|
+
if (!firstError) {
|
|
173
|
+
this.initializeUseCases();
|
|
174
|
+
}
|
|
175
|
+
return firstError;
|
|
176
|
+
};
|
|
177
|
+
this.credentialTypesModel =
|
|
178
|
+
VclBlocksProvider_1.default.provideCredentialTypesModel();
|
|
179
|
+
this.countriesModel = VclBlocksProvider_1.default.provideCountriesModel();
|
|
180
|
+
const initializeCountriesError = yield this.countriesModel.initialize();
|
|
181
|
+
this.initializationWatcher.onInitializedModel(initializeCountriesError);
|
|
182
|
+
const initializeCredentialTypesError = yield this.credentialTypesModel.initialize();
|
|
183
|
+
if (initializeCredentialTypesError &&
|
|
184
|
+
this.initializationWatcher.onInitializedModel(initializeCredentialTypesError, true)) {
|
|
185
|
+
return completionHandler();
|
|
186
|
+
}
|
|
187
|
+
if (this.initializationWatcher.onInitializedModel(null)) {
|
|
188
|
+
return completionHandler();
|
|
189
|
+
}
|
|
190
|
+
if ((_a = this.credentialTypesModel) === null || _a === void 0 ? void 0 : _a.data) {
|
|
191
|
+
const credentialTypes = this.credentialTypesModel.data;
|
|
192
|
+
this.credentialTypeSchemasModel =
|
|
193
|
+
VclBlocksProvider_1.default.provideCredentialTypeSchemasModel(credentialTypes);
|
|
194
|
+
yield this.credentialTypeSchemasModel.initialize();
|
|
195
|
+
if (this.initializationWatcher.onInitializedModel(initializeCredentialTypesError)) {
|
|
196
|
+
return completionHandler();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
return completionHandler(new VCLError_1.default('Failed to get credential type schemas'));
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
initGlobalConfigurations(initializationDescriptor) {
|
|
205
|
+
GlobalConfig_1.default.init(initializationDescriptor.isDebugOn, initializationDescriptor.environment, initializationDescriptor.xVnfProtocolVersion, true);
|
|
206
|
+
VCLLog_1.default.setLoggerService(initializationDescriptor.logService);
|
|
207
|
+
}
|
|
208
|
+
initializeUseCases() {
|
|
209
|
+
this.verifiedProfileUseCase =
|
|
210
|
+
VclBlocksProvider_1.default.provideVerifiedProfileUseCase();
|
|
211
|
+
this.jwtServiceUseCase = VclBlocksProvider_1.default.provideJwtServiceUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
|
|
212
|
+
this.profileServiceTypeVerifier = new ProfileServiceTypeVerifier_1.ProfileServiceTypeVerifier(this.verifiedProfileUseCase);
|
|
213
|
+
this.identificationUseCase =
|
|
214
|
+
VclBlocksProvider_1.default.provideIdentificationSubmissionUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
|
|
215
|
+
this.presentationRequestUseCase =
|
|
216
|
+
VclBlocksProvider_1.default.providePresentationRequestUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
|
|
217
|
+
this.credentialManifestUseCase =
|
|
218
|
+
VclBlocksProvider_1.default.provideCredentialManifestUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
|
|
219
|
+
this.generateOffersUseCase =
|
|
220
|
+
VclBlocksProvider_1.default.provideGenerateOffersUseCase();
|
|
221
|
+
this.finalizeOffersUseCase =
|
|
222
|
+
VclBlocksProvider_1.default.provideFinalizeOffersUseCase(this.credentialTypesModel, this.initializationDescriptor.cryptoServicesDescriptor, GlobalConfig_1.default.IsDirectIssuerOn);
|
|
223
|
+
this.presentationSubmissionUseCase =
|
|
224
|
+
VclBlocksProvider_1.default.providePresentationSubmissionUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
|
|
225
|
+
this.exchangeProgressUseCase =
|
|
226
|
+
VclBlocksProvider_1.default.provideExchangeProgressUseCase();
|
|
227
|
+
this.organizationsUseCase =
|
|
228
|
+
VclBlocksProvider_1.default.provideOrganizationsUseCase();
|
|
229
|
+
this.authTokenUseCase = VclBlocksProvider_1.default.provideAuthTokenUseCase();
|
|
230
|
+
this.credentialTypesUIFormSchemaUseCase =
|
|
231
|
+
VclBlocksProvider_1.default.provideCredentialTypesUIFormSchemaUseCase();
|
|
232
|
+
this.keyServiceUseCase = VclBlocksProvider_1.default.provideKeyServiceUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
|
|
233
|
+
}
|
|
234
|
+
get countries() {
|
|
235
|
+
var _a;
|
|
236
|
+
return (_a = this.countriesModel) === null || _a === void 0 ? void 0 : _a.data;
|
|
237
|
+
}
|
|
238
|
+
get credentialTypes() {
|
|
239
|
+
var _a;
|
|
240
|
+
return (_a = this.credentialTypesModel) === null || _a === void 0 ? void 0 : _a.data;
|
|
241
|
+
}
|
|
242
|
+
get credentialTypeSchemas() {
|
|
243
|
+
var _a;
|
|
244
|
+
return (_a = this.credentialTypeSchemasModel) === null || _a === void 0 ? void 0 : _a.data;
|
|
245
|
+
}
|
|
246
|
+
checkForOffers(generateOffersDescriptor, sessionToken) {
|
|
247
|
+
return this.invokeGenerateOffersUseCase(generateOffersDescriptor, sessionToken);
|
|
248
|
+
}
|
|
249
|
+
getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
var _a;
|
|
252
|
+
const countries = (_a = this.countriesModel) === null || _a === void 0 ? void 0 : _a.data;
|
|
253
|
+
if (countries) {
|
|
254
|
+
try {
|
|
255
|
+
return yield this.credentialTypesUIFormSchemaUseCase.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor, countries);
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
logError('getCredentialTypesUIFormSchema', error);
|
|
259
|
+
throw error;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
const error = new VCLError_1.default('No countries for getCredentialTypesUIFormSchema');
|
|
264
|
+
logError('getCredentialTypesUIFormSchema', error);
|
|
265
|
+
throw error;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
printVersion() {
|
|
270
|
+
const packageJsonPath = path_1.default.resolve(__dirname, '../../package.json');
|
|
271
|
+
const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, 'utf-8'));
|
|
272
|
+
VCLLog_1.default.info(`SDK version: ${packageJson.version}`);
|
|
273
|
+
}
|
|
274
|
+
invokeGenerateOffersUseCase(generateOffersDescriptor, sessionToken) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
try {
|
|
277
|
+
return yield this.generateOffersUseCase.generateOffers(generateOffersDescriptor, sessionToken);
|
|
278
|
+
}
|
|
279
|
+
catch (error) {
|
|
280
|
+
logError('generateOffers', error);
|
|
281
|
+
throw error;
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
exports.VCLImpl = VCLImpl;
|
|
287
|
+
VCLImpl.ModelsToInitializeAmount = 3;
|
|
288
|
+
const logError = (message = '', error) => {
|
|
289
|
+
VCLLog_1.default.error(error, message);
|
|
290
|
+
};
|
|
291
|
+
//# sourceMappingURL=VCLImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLImpl.js","sourceRoot":"","sources":["../../src/impl/VCLImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,4CAAoB;AACpB,gDAAwB;AASxB,8EAAsD;AAItD,8GAAsF;AAStF,oFAA4D;AAC5D,sFAA8D;AAI9D,gHAAwF;AACxF,kEAA0C;AAC1C,4EAAoD;AAIpD,0FAAkE;AAClE,mFAAgF;AAChF,4DAAoC;AACpC,sFAA8D;AAmB9D,MAAa,OAAO;IAApB;QAuCY,0BAAqB,GAAG,IAAI,+BAAqB,CACrD,OAAO,CAAC,wBAAwB,CACnC,CAAC;QAoJF,2BAAsB,GAAG,CACrB,6BAA+D,EACjE,EAAE;YACA,MAAM,EAAE,GAAG,EAAE,GAAG,6BA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AE,EAAE,KAAe,EAAE,EAAE;IAC/C,gBAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import VCLCredentialTypes from '../api/entities/VCLCredentialTypes';
|
|
2
|
+
import VCLCryptoServicesDescriptor from '../api/entities/initialization/VCLCryptoServicesDescriptor';
|
|
3
|
+
import CountriesModel from './domain/models/CountriesModel';
|
|
4
|
+
import CredentialTypeSchemasModel from './domain/models/CredentialTypeSchemasModel';
|
|
5
|
+
import CredentialTypesModel from './domain/models/CredentialTypesModel';
|
|
6
|
+
import CredentialManifestUseCase from './domain/usecases/CredentialManifestUseCase';
|
|
7
|
+
import CredentialTypesUIFormSchemaUseCase from './domain/usecases/CredentialTypesUIFormSchemaUseCase';
|
|
8
|
+
import ExchangeProgressUseCase from './domain/usecases/ExchangeProgressUseCase';
|
|
9
|
+
import FinalizeOffersUseCase from './domain/usecases/FinalizeOffersUseCase';
|
|
10
|
+
import GenerateOffersUseCase from './domain/usecases/GenerateOffersUseCase';
|
|
11
|
+
import IdentificationSubmissionUseCase from './domain/usecases/IdentificationSubmissionUseCase';
|
|
12
|
+
import JwtServiceUseCase from './domain/usecases/JwtServiceUseCase';
|
|
13
|
+
import OrganizationsUseCase from './domain/usecases/OrganizationsUseCase';
|
|
14
|
+
import PresentationRequestUseCase from './domain/usecases/PresentationRequestUseCase';
|
|
15
|
+
import PresentationSubmissionUseCase from './domain/usecases/PresentationSubmissionUseCase';
|
|
16
|
+
import VerifiedProfileUseCase from './domain/usecases/VerifiedProfileUseCase';
|
|
17
|
+
import KeyServiceUseCase from './domain/usecases/KeyServiceUseCase';
|
|
18
|
+
import AuthTokenUseCase from './domain/usecases/AuthTokenUseCase';
|
|
19
|
+
export default class VclBlocksProvider {
|
|
20
|
+
static providePresentationRequestUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): PresentationRequestUseCase;
|
|
21
|
+
static provideVerifiedProfileUseCase(): VerifiedProfileUseCase;
|
|
22
|
+
static provideJwtServiceUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): JwtServiceUseCase;
|
|
23
|
+
static provideCredentialManifestUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): CredentialManifestUseCase;
|
|
24
|
+
static provideIdentificationSubmissionUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): IdentificationSubmissionUseCase;
|
|
25
|
+
static provideGenerateOffersUseCase(): GenerateOffersUseCase;
|
|
26
|
+
static provideFinalizeOffersUseCase(credentialTypesModel: CredentialTypesModel, cryptoServicesDescriptor: VCLCryptoServicesDescriptor, isDirectIssuerCheckOn: any): FinalizeOffersUseCase;
|
|
27
|
+
static providePresentationSubmissionUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): PresentationSubmissionUseCase;
|
|
28
|
+
static provideExchangeProgressUseCase(): ExchangeProgressUseCase;
|
|
29
|
+
static provideOrganizationsUseCase(): OrganizationsUseCase;
|
|
30
|
+
static provideCredentialTypesModel(): CredentialTypesModel;
|
|
31
|
+
static provideCountriesModel(): CountriesModel;
|
|
32
|
+
static provideAuthTokenUseCase(): AuthTokenUseCase;
|
|
33
|
+
static provideCredentialTypeSchemasModel(credentialTypes: VCLCredentialTypes): CredentialTypeSchemasModel;
|
|
34
|
+
static provideCredentialTypesUIFormSchemaUseCase(): CredentialTypesUIFormSchemaUseCase;
|
|
35
|
+
static provideKeyServiceUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): KeyServiceUseCase;
|
|
36
|
+
}
|