@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,9 @@
|
|
|
1
|
+
import { VCLIssuingType } from './VCLIssuingType';
|
|
2
|
+
import VCLServiceType from './VCLServiceType';
|
|
3
|
+
export default class VCLServiceTypes {
|
|
4
|
+
all: VCLServiceType[];
|
|
5
|
+
constructor(all: VCLServiceType[]);
|
|
6
|
+
static fromIssuingType(issuingType: VCLIssuingType): VCLServiceTypes;
|
|
7
|
+
containsAtLeastOneOf(serviceTypes: VCLServiceTypes): boolean;
|
|
8
|
+
contains(serviceType: VCLServiceType): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 VCLIssuingType_1 = require("./VCLIssuingType");
|
|
7
|
+
const VCLServiceType_1 = __importDefault(require("./VCLServiceType"));
|
|
8
|
+
class VCLServiceTypes {
|
|
9
|
+
constructor(all) {
|
|
10
|
+
this.all = all;
|
|
11
|
+
}
|
|
12
|
+
static fromIssuingType(issuingType) {
|
|
13
|
+
let all = [];
|
|
14
|
+
switch (issuingType) {
|
|
15
|
+
case VCLIssuingType_1.VCLIssuingType.Career:
|
|
16
|
+
all = [
|
|
17
|
+
VCLServiceType_1.default.Issuer,
|
|
18
|
+
VCLServiceType_1.default.CareerIssuer,
|
|
19
|
+
VCLServiceType_1.default.NotaryIssuer,
|
|
20
|
+
];
|
|
21
|
+
break;
|
|
22
|
+
case VCLIssuingType_1.VCLIssuingType.Identity:
|
|
23
|
+
all = [VCLServiceType_1.default.IdentityIssuer];
|
|
24
|
+
break;
|
|
25
|
+
case VCLIssuingType_1.VCLIssuingType.Refresh:
|
|
26
|
+
all = [
|
|
27
|
+
VCLServiceType_1.default.Issuer,
|
|
28
|
+
VCLServiceType_1.default.CareerIssuer,
|
|
29
|
+
VCLServiceType_1.default.NotaryIssuer,
|
|
30
|
+
VCLServiceType_1.default.IdentityIssuer,
|
|
31
|
+
];
|
|
32
|
+
break;
|
|
33
|
+
case VCLIssuingType_1.VCLIssuingType.Undefined:
|
|
34
|
+
all = [VCLServiceType_1.default.Undefined];
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
all = [VCLServiceType_1.default.Undefined];
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
return new VCLServiceTypes(all);
|
|
41
|
+
}
|
|
42
|
+
containsAtLeastOneOf(serviceTypes) {
|
|
43
|
+
return !!this.all.find((it) => serviceTypes.contains(it));
|
|
44
|
+
}
|
|
45
|
+
contains(serviceType) {
|
|
46
|
+
return (this.all.includes(serviceType) &&
|
|
47
|
+
serviceType !== VCLServiceType_1.default.Undefined);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.default = VCLServiceTypes;
|
|
51
|
+
//# sourceMappingURL=VCLServiceTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLServiceTypes.js","sourceRoot":"","sources":["../../../src/api/entities/VCLServiceTypes.ts"],"names":[],"mappings":";;;;;AAAA,qDAAkD;AAClD,sEAA8C;AAE9C,MAAqB,eAAe;IAChC,YAAmB,GAAqB;QAArB,QAAG,GAAH,GAAG,CAAkB;IAAG,CAAC;IAE5C,MAAM,CAAC,eAAe,CAAC,WAA2B;QAC9C,IAAI,GAAG,GAAqB,EAAE,CAAC;QAE/B,QAAQ,WAAW,EAAE,CAAC;YAClB,KAAK,+BAAc,CAAC,MAAM;gBACtB,GAAG,GAAG;oBACF,wBAAc,CAAC,MAAM;oBACrB,wBAAc,CAAC,YAAY;oBAC3B,wBAAc,CAAC,YAAY;iBAC9B,CAAC;gBACF,MAAM;YACV,KAAK,+BAAc,CAAC,QAAQ;gBACxB,GAAG,GAAG,CAAC,wBAAc,CAAC,cAAc,CAAC,CAAC;gBACtC,MAAM;YACV,KAAK,+BAAc,CAAC,OAAO;gBACvB,GAAG,GAAG;oBACF,wBAAc,CAAC,MAAM;oBACrB,wBAAc,CAAC,YAAY;oBAC3B,wBAAc,CAAC,YAAY;oBAC3B,wBAAc,CAAC,cAAc;iBAChC,CAAC;gBACF,MAAM;YACV,KAAK,+BAAc,CAAC,SAAS;gBACzB,GAAG,GAAG,CAAC,wBAAc,CAAC,SAAS,CAAC,CAAC;gBACjC,MAAM;YACV;gBACI,GAAG,GAAG,CAAC,wBAAc,CAAC,SAAS,CAAC,CAAC;gBACjC,MAAM;QACd,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,oBAAoB,CAAC,YAA6B;QAC9C,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,QAAQ,CAAC,WAA2B;QAChC,OAAO,CACH,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC9B,WAAW,KAAK,wBAAc,CAAC,SAAS,CAC3C,CAAC;IACN,CAAC;CACJ;AA7CD,kCA6CC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLJwt from './VCLJwt';
|
|
3
|
+
import VCLPushDelegate from './VCLPushDelegate';
|
|
4
|
+
import VCLVerifiableCredential from './VCLVerifiableCredential';
|
|
5
|
+
import VCLToken from './VCLToken';
|
|
6
|
+
import VCLDidJwk from './VCLDidJwk';
|
|
7
|
+
export default class VCLSubmission {
|
|
8
|
+
readonly submitUri: string;
|
|
9
|
+
readonly exchangeId: string;
|
|
10
|
+
readonly presentationDefinitionId: string;
|
|
11
|
+
readonly verifiableCredentials: VCLVerifiableCredential[];
|
|
12
|
+
readonly pushDelegate: Nullish<VCLPushDelegate>;
|
|
13
|
+
readonly vendorOriginContext: Nullish<string>;
|
|
14
|
+
readonly didJwk: VCLDidJwk;
|
|
15
|
+
readonly remoteCryptoServicesToken: Nullish<VCLToken>;
|
|
16
|
+
constructor(submitUri: string, exchangeId: string, presentationDefinitionId: string, verifiableCredentials: VCLVerifiableCredential[], pushDelegate: Nullish<VCLPushDelegate>, vendorOriginContext: Nullish<string>, didJwk: VCLDidJwk, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
17
|
+
readonly jti: string;
|
|
18
|
+
readonly submissionId: string;
|
|
19
|
+
generatePayload(iss?: Nullish<string>): Dictionary<any>;
|
|
20
|
+
generateRequestBody(jwt: VCLJwt): Dictionary<any>;
|
|
21
|
+
static readonly KeyJti = "jti";
|
|
22
|
+
static readonly KeyIss = "iss";
|
|
23
|
+
static readonly KeyId = "id";
|
|
24
|
+
static readonly KeyVp = "vp";
|
|
25
|
+
static readonly KeyDid = "did";
|
|
26
|
+
static readonly KeyPushDelegate = "push_delegate";
|
|
27
|
+
static readonly KeyType = "type";
|
|
28
|
+
static readonly KeyPresentationSubmission = "presentation_submission";
|
|
29
|
+
static readonly KeyDefinitionId = "definition_id";
|
|
30
|
+
static readonly KeyDescriptorMap = "descriptor_map";
|
|
31
|
+
static readonly KeyExchangeId = "exchange_id";
|
|
32
|
+
static readonly KeyJwtVp = "jwt_vp";
|
|
33
|
+
static readonly KeyPath = "path";
|
|
34
|
+
static readonly KeyFormat = "format";
|
|
35
|
+
static readonly KeyVerifiableCredential = "verifiableCredential";
|
|
36
|
+
static readonly KeyVendorOriginContext = "vendorOriginContext";
|
|
37
|
+
static readonly KeyInputDescriptor = "input_descriptor";
|
|
38
|
+
static readonly ValueJwtVc = "jwt_vc";
|
|
39
|
+
static readonly ValueVerifiablePresentation = "VerifiablePresentation";
|
|
40
|
+
static readonly KeyContext = "@context";
|
|
41
|
+
static readonly ValueContextList: string[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 crypto_1 = __importDefault(require("crypto"));
|
|
7
|
+
class VCLSubmission {
|
|
8
|
+
constructor(submitUri, exchangeId, presentationDefinitionId, verifiableCredentials, pushDelegate = null, vendorOriginContext = null, didJwk, remoteCryptoServicesToken = null) {
|
|
9
|
+
this.submitUri = submitUri;
|
|
10
|
+
this.exchangeId = exchangeId;
|
|
11
|
+
this.presentationDefinitionId = presentationDefinitionId;
|
|
12
|
+
this.verifiableCredentials = verifiableCredentials;
|
|
13
|
+
this.pushDelegate = pushDelegate;
|
|
14
|
+
this.vendorOriginContext = vendorOriginContext;
|
|
15
|
+
this.didJwk = didJwk;
|
|
16
|
+
this.remoteCryptoServicesToken = remoteCryptoServicesToken;
|
|
17
|
+
this.jti = crypto_1.default.randomUUID().toString();
|
|
18
|
+
this.submissionId = crypto_1.default.randomUUID().toString();
|
|
19
|
+
}
|
|
20
|
+
generatePayload(iss = null) {
|
|
21
|
+
const result = {
|
|
22
|
+
[VCLSubmission.KeyJti]: this.jti,
|
|
23
|
+
[VCLSubmission.KeyIss]: iss,
|
|
24
|
+
[VCLSubmission.KeyVp]: {
|
|
25
|
+
[VCLSubmission.KeyType]: VCLSubmission.ValueVerifiablePresentation,
|
|
26
|
+
[VCLSubmission.KeyPresentationSubmission]: {
|
|
27
|
+
[VCLSubmission.KeyId]: this.submissionId,
|
|
28
|
+
[VCLSubmission.KeyDefinitionId]: this.presentationDefinitionId,
|
|
29
|
+
[VCLSubmission.KeyDescriptorMap]: this.verifiableCredentials.map((credential, index) => ({
|
|
30
|
+
[VCLSubmission.KeyId]: credential.inputDescriptor,
|
|
31
|
+
[VCLSubmission.KeyPath]: `$.verifiableCredential[${index}]`,
|
|
32
|
+
[VCLSubmission.KeyFormat]: VCLSubmission.ValueJwtVc,
|
|
33
|
+
})),
|
|
34
|
+
},
|
|
35
|
+
[VCLSubmission.KeyVerifiableCredential]: this.verifiableCredentials.map((c) => c.jwtVc),
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
if (this.vendorOriginContext) {
|
|
39
|
+
result[VCLSubmission.KeyVp][VCLSubmission.KeyVendorOriginContext] =
|
|
40
|
+
this.vendorOriginContext;
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
generateRequestBody(jwt) {
|
|
45
|
+
const result = {
|
|
46
|
+
[VCLSubmission.KeyExchangeId]: this.exchangeId,
|
|
47
|
+
[VCLSubmission.KeyJwtVp]: jwt.signedJwt.serialize(),
|
|
48
|
+
[VCLSubmission.KeyContext]: VCLSubmission.ValueContextList,
|
|
49
|
+
};
|
|
50
|
+
if (this.pushDelegate) {
|
|
51
|
+
result[VCLSubmission.KeyPushDelegate] =
|
|
52
|
+
this.pushDelegate.toJsonObject();
|
|
53
|
+
}
|
|
54
|
+
return result;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
VCLSubmission.KeyJti = 'jti';
|
|
58
|
+
VCLSubmission.KeyIss = 'iss';
|
|
59
|
+
VCLSubmission.KeyId = 'id';
|
|
60
|
+
VCLSubmission.KeyVp = 'vp';
|
|
61
|
+
VCLSubmission.KeyDid = 'did';
|
|
62
|
+
VCLSubmission.KeyPushDelegate = 'push_delegate';
|
|
63
|
+
VCLSubmission.KeyType = 'type';
|
|
64
|
+
VCLSubmission.KeyPresentationSubmission = 'presentation_submission';
|
|
65
|
+
VCLSubmission.KeyDefinitionId = 'definition_id';
|
|
66
|
+
VCLSubmission.KeyDescriptorMap = 'descriptor_map';
|
|
67
|
+
VCLSubmission.KeyExchangeId = 'exchange_id';
|
|
68
|
+
VCLSubmission.KeyJwtVp = 'jwt_vp';
|
|
69
|
+
VCLSubmission.KeyPath = 'path';
|
|
70
|
+
VCLSubmission.KeyFormat = 'format';
|
|
71
|
+
VCLSubmission.KeyVerifiableCredential = 'verifiableCredential';
|
|
72
|
+
VCLSubmission.KeyVendorOriginContext = 'vendorOriginContext';
|
|
73
|
+
VCLSubmission.KeyInputDescriptor = 'input_descriptor';
|
|
74
|
+
VCLSubmission.ValueJwtVc = 'jwt_vc';
|
|
75
|
+
VCLSubmission.ValueVerifiablePresentation = 'VerifiablePresentation';
|
|
76
|
+
VCLSubmission.KeyContext = '@context';
|
|
77
|
+
VCLSubmission.ValueContextList = [
|
|
78
|
+
'https://www.w3.org/2018/credentials/v1',
|
|
79
|
+
];
|
|
80
|
+
exports.default = VCLSubmission;
|
|
81
|
+
//# sourceMappingURL=VCLSubmission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLSubmission.js","sourceRoot":"","sources":["../../../src/api/entities/VCLSubmission.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAQ5B,MAAqB,aAAa;IAC9B,YACoB,SAAiB,EACjB,UAAkB,EAClB,wBAAgC,EAChC,qBAAgD,EAChD,eAAyC,IAAI,EAC7C,sBAAuC,IAAI,EAC3C,MAAiB,EACjB,4BAA+C,IAAI;QAPnD,cAAS,GAAT,SAAS,CAAQ;QACjB,eAAU,GAAV,UAAU,CAAQ;QAClB,6BAAwB,GAAxB,wBAAwB,CAAQ;QAChC,0BAAqB,GAArB,qBAAqB,CAA2B;QAChD,iBAAY,GAAZ,YAAY,CAAiC;QAC7C,wBAAmB,GAAnB,mBAAmB,CAAwB;QAC3C,WAAM,GAAN,MAAM,CAAW;QACjB,8BAAyB,GAAzB,yBAAyB,CAA0B;QAG9D,QAAG,GAAG,gBAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;QAErC,iBAAY,GAAG,gBAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;IAJpD,CAAC;IAMG,eAAe,CAAC,MAAuB,IAAI;QAC9C,MAAM,MAAM,GAAoB;YAC5B,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG;YAChC,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,GAAG;YAC3B,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;gBACnB,CAAC,aAAa,CAAC,OAAO,CAAC,EACnB,aAAa,CAAC,2BAA2B;gBAC7C,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;oBACvC,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,YAAY;oBACxC,CAAC,aAAa,CAAC,eAAe,CAAC,EAC3B,IAAI,CAAC,wBAAwB;oBACjC,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAC5B,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;wBACnD,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe;wBACjD,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,0BAA0B,KAAK,GAAG;wBAC3D,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,UAAU;qBACtD,CAAC,CAAC;iBACV;gBACD,CAAC,aAAa,CAAC,uBAAuB,CAAC,EACnC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;aACrD;SACJ,CAAC;QACF,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,sBAAsB,CAAC;gBAC7D,IAAI,CAAC,mBAAmB,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,mBAAmB,CAAC,GAAW;QAC3B,MAAM,MAAM,GAAoB;YAC5B,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,UAAU;YAC9C,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE;YACnD,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,gBAAgB;SAC7D,CAAC;QAEF,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC;gBACjC,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;QACzC,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;;AAEe,oBAAM,GAAG,KAAK,AAAR,CAAS;AAEf,oBAAM,GAAG,KAAK,AAAR,CAAS;AAEf,mBAAK,GAAG,IAAI,AAAP,CAAQ;AAEb,mBAAK,GAAG,IAAI,AAAP,CAAQ;AAEb,oBAAM,GAAG,KAAK,AAAR,CAAS;AAEf,6BAAe,GAAG,eAAe,AAAlB,CAAmB;AAElC,qBAAO,GAAG,MAAM,AAAT,CAAU;AAEjB,uCAAyB,GAAG,yBAAyB,AAA5B,CAA6B;AAEtD,6BAAe,GAAG,eAAe,AAAlB,CAAmB;AAElC,8BAAgB,GAAG,gBAAgB,AAAnB,CAAoB;AAEpC,2BAAa,GAAG,aAAa,AAAhB,CAAiB;AAE9B,sBAAQ,GAAG,QAAQ,AAAX,CAAY;AAEpB,qBAAO,GAAG,MAAM,AAAT,CAAU;AAEjB,uBAAS,GAAG,QAAQ,AAAX,CAAY;AAErB,qCAAuB,GAAG,sBAAsB,AAAzB,CAA0B;AAEjD,oCAAsB,GAAG,qBAAqB,AAAxB,CAAyB;AAE/C,gCAAkB,GAAG,kBAAkB,AAArB,CAAsB;AAExC,wBAAU,GAAG,QAAQ,AAAX,CAAY;AAEtB,yCAA2B,GAAG,wBAAwB,AAA3B,CAA4B;AAEvD,wBAAU,GAAG,UAAU,AAAb,CAAc;AAExB,8BAAgB,GAAG;IAC/B,wCAAwC;CAC3C,AAF+B,CAE9B;kBAtGe,aAAa"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import VCLExchange from './VCLExchange';
|
|
2
|
+
import VCLToken from './VCLToken';
|
|
3
|
+
export default class VCLSubmissionResult {
|
|
4
|
+
readonly sessionToken: VCLToken;
|
|
5
|
+
readonly exchange: VCLExchange;
|
|
6
|
+
readonly jti: string;
|
|
7
|
+
readonly submissionId: string;
|
|
8
|
+
constructor(sessionToken: VCLToken, exchange: VCLExchange, jti: string, submissionId: string);
|
|
9
|
+
static readonly KeyToken = "token";
|
|
10
|
+
static readonly KeyExchange = "exchange";
|
|
11
|
+
static readonly KeyJti = "jti";
|
|
12
|
+
static readonly KeySubmissionId = "submissionId";
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLSubmissionResult {
|
|
4
|
+
constructor(sessionToken, exchange, jti, submissionId) {
|
|
5
|
+
this.sessionToken = sessionToken;
|
|
6
|
+
this.exchange = exchange;
|
|
7
|
+
this.jti = jti;
|
|
8
|
+
this.submissionId = submissionId;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
VCLSubmissionResult.KeyToken = 'token';
|
|
12
|
+
VCLSubmissionResult.KeyExchange = 'exchange';
|
|
13
|
+
VCLSubmissionResult.KeyJti = 'jti';
|
|
14
|
+
VCLSubmissionResult.KeySubmissionId = 'submissionId';
|
|
15
|
+
exports.default = VCLSubmissionResult;
|
|
16
|
+
//# sourceMappingURL=VCLSubmissionResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLSubmissionResult.js","sourceRoot":"","sources":["../../../src/api/entities/VCLSubmissionResult.ts"],"names":[],"mappings":";;AAGA,MAAqB,mBAAmB;IACpC,YACoB,YAAsB,EACtB,QAAqB,EACrB,GAAW,EACX,YAAoB;QAHpB,iBAAY,GAAZ,YAAY,CAAU;QACtB,aAAQ,GAAR,QAAQ,CAAa;QACrB,QAAG,GAAH,GAAG,CAAQ;QACX,iBAAY,GAAZ,YAAY,CAAQ;IACrC,CAAC;;AAEY,4BAAQ,GAAG,OAAO,CAAC;AAEnB,+BAAW,GAAG,UAAU,CAAC;AAEzB,0BAAM,GAAG,KAAK,CAAC;AAEf,mCAAe,GAAG,cAAc,CAAC;kBAdhC,mBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLJwt from './VCLJwt';
|
|
3
|
+
export default class VCLToken {
|
|
4
|
+
readonly value: string;
|
|
5
|
+
readonly jwtValue: VCLJwt;
|
|
6
|
+
constructor(value: string | VCLJwt);
|
|
7
|
+
get expiresIn(): Nullish<bigint>;
|
|
8
|
+
static readonly KeyExp = "exp";
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 VCLJwt_1 = __importDefault(require("./VCLJwt"));
|
|
7
|
+
class VCLToken {
|
|
8
|
+
constructor(value) {
|
|
9
|
+
var _a;
|
|
10
|
+
if (typeof value === 'string') {
|
|
11
|
+
this.value = value;
|
|
12
|
+
this.jwtValue = VCLJwt_1.default.fromEncodedJwt(value);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
this.value = (_a = value === null || value === void 0 ? void 0 : value.encodedJwt) !== null && _a !== void 0 ? _a : '';
|
|
16
|
+
this.jwtValue = value !== null && value !== void 0 ? value : VCLJwt_1.default.fromEncodedJwt('');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
get expiresIn() {
|
|
20
|
+
return BigInt(this.jwtValue.payload[VCLToken.KeyExp]);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
VCLToken.KeyExp = 'exp';
|
|
24
|
+
exports.default = VCLToken;
|
|
25
|
+
//# sourceMappingURL=VCLToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLToken.js","sourceRoot":"","sources":["../../../src/api/entities/VCLToken.ts"],"names":[],"mappings":";;;;;AACA,sDAA8B;AAE9B,MAAqB,QAAQ;IAWzB,YAAY,KAAsB;;QAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,gBAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QACjD,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,KAAK,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,mCAAI,EAAE,CAAC;YACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,gBAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;IAKD,IAAW,SAAS;QAChB,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;;AAEe,eAAM,GAAG,KAAK,CAAC;kBA5Bd,QAAQ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
export default class VCLVerifiableCredential {
|
|
3
|
+
readonly inputDescriptor: string;
|
|
4
|
+
readonly jwtVc: string;
|
|
5
|
+
constructor(inputDescriptor: string, jwtVc: string);
|
|
6
|
+
static fromJSON(json: Dictionary<any>): VCLVerifiableCredential;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLVerifiableCredential {
|
|
4
|
+
constructor(inputDescriptor, jwtVc) {
|
|
5
|
+
this.inputDescriptor = inputDescriptor;
|
|
6
|
+
this.jwtVc = jwtVc;
|
|
7
|
+
}
|
|
8
|
+
static fromJSON(json) {
|
|
9
|
+
return new VCLVerifiableCredential(json.inputDescriptor, json.jwtVc);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = VCLVerifiableCredential;
|
|
13
|
+
//# sourceMappingURL=VCLVerifiableCredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLVerifiableCredential.js","sourceRoot":"","sources":["../../../src/api/entities/VCLVerifiableCredential.ts"],"names":[],"mappings":";;AAEA,MAAqB,uBAAuB;IACxC,YACoB,eAAuB,EACvB,KAAa;QADb,oBAAe,GAAf,eAAe,CAAQ;QACvB,UAAK,GAAL,KAAK,CAAQ;IAC9B,CAAC;IAEG,MAAM,CAAC,QAAQ,CAAC,IAAqB;QACxC,OAAO,IAAI,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACzE,CAAC;CACJ;AATD,0CASC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLServiceTypes from './VCLServiceTypes';
|
|
3
|
+
export default class VCLVerifiedProfile {
|
|
4
|
+
readonly payload: Dictionary<any>;
|
|
5
|
+
credentialSubject: Nullish<Dictionary<any>>;
|
|
6
|
+
name: Nullish<string>;
|
|
7
|
+
logo: Nullish<string>;
|
|
8
|
+
id: Nullish<string>;
|
|
9
|
+
serviceTypes: VCLServiceTypes;
|
|
10
|
+
constructor(payload: Dictionary<any>);
|
|
11
|
+
retrieveServiceTypes(serviceCategoriesJsonArr: any[]): VCLServiceTypes;
|
|
12
|
+
static readonly KeyCredentialSubject = "credentialSubject";
|
|
13
|
+
static readonly KeyName = "name";
|
|
14
|
+
static readonly KeyLogo = "logo";
|
|
15
|
+
static readonly KeyId = "id";
|
|
16
|
+
static readonly KeyServiceType = "permittedVelocityServiceCategory";
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 VCLServiceType_1 = __importDefault(require("./VCLServiceType"));
|
|
7
|
+
const VCLServiceTypes_1 = __importDefault(require("./VCLServiceTypes"));
|
|
8
|
+
class VCLVerifiedProfile {
|
|
9
|
+
constructor(payload) {
|
|
10
|
+
this.payload = payload;
|
|
11
|
+
this.credentialSubject =
|
|
12
|
+
this.payload[VCLVerifiedProfile.KeyCredentialSubject];
|
|
13
|
+
this.name = this.credentialSubject
|
|
14
|
+
? this.credentialSubject[VCLVerifiedProfile.KeyName]
|
|
15
|
+
: null;
|
|
16
|
+
this.logo = this.credentialSubject
|
|
17
|
+
? this.credentialSubject[VCLVerifiedProfile.KeyLogo]
|
|
18
|
+
: null;
|
|
19
|
+
this.id = this.credentialSubject
|
|
20
|
+
? this.credentialSubject[VCLVerifiedProfile.KeyId]
|
|
21
|
+
: null;
|
|
22
|
+
this.serviceTypes = this.retrieveServiceTypes(this.credentialSubject
|
|
23
|
+
? this.credentialSubject[VCLVerifiedProfile.KeyServiceType]
|
|
24
|
+
: []);
|
|
25
|
+
}
|
|
26
|
+
retrieveServiceTypes(serviceCategoriesJsonArr) {
|
|
27
|
+
const result = (serviceCategoriesJsonArr !== null && serviceCategoriesJsonArr !== void 0 ? serviceCategoriesJsonArr : []).map((category) => VCLServiceType_1.default[category]);
|
|
28
|
+
return new VCLServiceTypes_1.default(result);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
VCLVerifiedProfile.KeyCredentialSubject = 'credentialSubject';
|
|
32
|
+
VCLVerifiedProfile.KeyName = 'name';
|
|
33
|
+
VCLVerifiedProfile.KeyLogo = 'logo';
|
|
34
|
+
VCLVerifiedProfile.KeyId = 'id';
|
|
35
|
+
VCLVerifiedProfile.KeyServiceType = 'permittedVelocityServiceCategory';
|
|
36
|
+
exports.default = VCLVerifiedProfile;
|
|
37
|
+
//# sourceMappingURL=VCLVerifiedProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLVerifiedProfile.js","sourceRoot":"","sources":["../../../src/api/entities/VCLVerifiedProfile.ts"],"names":[],"mappings":";;;;;AACA,sEAA8C;AAC9C,wEAAgD;AAEhD,MAAqB,kBAAkB;IAWnC,YAA4B,OAAwB;QAAxB,YAAO,GAAP,OAAO,CAAiB;QAChD,IAAI,CAAC,iBAAiB;YAClB,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,iBAAiB;YAC9B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,OAAO,CAAC;YACpD,CAAC,CAAC,IAAI,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,iBAAiB;YAC9B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,OAAO,CAAC;YACpD,CAAC,CAAC,IAAI,CAAC;QACX,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,iBAAiB;YAC5B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,CAAC;YAClD,CAAC,CAAC,IAAI,CAAC;QACX,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,oBAAoB,CACzC,IAAI,CAAC,iBAAiB;YAClB,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,cAAc,CAAC;YAC3D,CAAC,CAAC,EAAE,CACX,CAAC;IACN,CAAC;IAED,oBAAoB,CAAC,wBAA+B;QAChD,MAAM,MAAM,GAAG,CAAC,wBAAwB,aAAxB,wBAAwB,cAAxB,wBAAwB,GAAI,EAAE,CAAC,CAAC,GAAG,CAC/C,CAAC,QAAQ,EAAE,EAAE,CACT,wBAAc,CAAC,QAAuC,CAAC,CAC9D,CAAC;QACF,OAAO,IAAI,yBAAe,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;;AAEe,uCAAoB,GAAG,mBAAmB,CAAC;AAE3C,0BAAO,GAAG,MAAM,CAAC;AAEjB,0BAAO,GAAG,MAAM,CAAC;AAEjB,wBAAK,GAAG,IAAI,CAAC;AAEb,iCAAc,GAAG,kCAAkC,CAAC;kBA9CnD,kBAAkB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLVerifiedProfileDescriptor {
|
|
4
|
+
constructor(did) {
|
|
5
|
+
this.did = did;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
exports.default = VCLVerifiedProfileDescriptor;
|
|
9
|
+
//# sourceMappingURL=VCLVerifiedProfileDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLVerifiedProfileDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLVerifiedProfileDescriptor.ts"],"names":[],"mappings":";;AAAA,MAAqB,4BAA4B;IAC7C,YAA4B,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;CAC9C;AAFD,+CAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../../VCLTypes';
|
|
2
|
+
export default class VCLError extends Error {
|
|
3
|
+
payload: Nullish<string>;
|
|
4
|
+
error: Nullish<string>;
|
|
5
|
+
requestId: Nullish<string>;
|
|
6
|
+
errorCode: string;
|
|
7
|
+
statusCode: Nullish<number>;
|
|
8
|
+
constructor(error?: Nullish<string>, errorCode?: string, requestId?: Nullish<string>, message?: Nullish<string>, statusCode?: Nullish<number>);
|
|
9
|
+
static fromPayload(payload: string): VCLError;
|
|
10
|
+
static fromJson(payloadJson: Dictionary<any>): VCLError;
|
|
11
|
+
static fromError(error: any, statusCode?: Nullish<number>): VCLError;
|
|
12
|
+
private static findErrorCode;
|
|
13
|
+
get jsonObject(): Dictionary<any>;
|
|
14
|
+
static readonly KeyPayload: string;
|
|
15
|
+
static readonly KeyError: string;
|
|
16
|
+
static readonly KeyErrorCode: string;
|
|
17
|
+
static readonly KeyRequestId: string;
|
|
18
|
+
static readonly KeyMessage: string;
|
|
19
|
+
static readonly KeyStatusCode: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 VCLErrorCode_1 = __importDefault(require("./VCLErrorCode"));
|
|
7
|
+
class VCLError extends Error {
|
|
8
|
+
constructor(error = null, errorCode = VCLErrorCode_1.default.SdkError.toString(), requestId = null, message = null, statusCode = null) {
|
|
9
|
+
super(message !== null && message !== void 0 ? message : '');
|
|
10
|
+
this.payload = null;
|
|
11
|
+
this.error = null;
|
|
12
|
+
this.requestId = null;
|
|
13
|
+
this.errorCode = VCLErrorCode_1.default.SdkError.toString();
|
|
14
|
+
this.statusCode = null;
|
|
15
|
+
this.error = error;
|
|
16
|
+
this.errorCode = errorCode;
|
|
17
|
+
this.requestId = requestId;
|
|
18
|
+
this.statusCode = statusCode;
|
|
19
|
+
this.payload = JSON.stringify(this.jsonObject);
|
|
20
|
+
this.name = 'VCLError';
|
|
21
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
22
|
+
}
|
|
23
|
+
static fromPayload(payload) {
|
|
24
|
+
const payloadJson = JSON.parse(payload);
|
|
25
|
+
return VCLError.fromJson(payloadJson);
|
|
26
|
+
}
|
|
27
|
+
static fromJson(payloadJson) {
|
|
28
|
+
var _a;
|
|
29
|
+
const result = new VCLError(payloadJson === null || payloadJson === void 0 ? void 0 : payloadJson[VCLError.KeyError], (_a = payloadJson === null || payloadJson === void 0 ? void 0 : payloadJson[VCLError.KeyErrorCode]) !== null && _a !== void 0 ? _a : VCLErrorCode_1.default.SdkError.toString(), payloadJson === null || payloadJson === void 0 ? void 0 : payloadJson[VCLError.KeyRequestId], payloadJson === null || payloadJson === void 0 ? void 0 : payloadJson[VCLError.KeyMessage], payloadJson === null || payloadJson === void 0 ? void 0 : payloadJson[VCLError.KeyStatusCode]);
|
|
30
|
+
result.payload = JSON.stringify(payloadJson);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
static fromError(error, statusCode = null) {
|
|
34
|
+
if (error instanceof VCLError) {
|
|
35
|
+
return error;
|
|
36
|
+
}
|
|
37
|
+
return new VCLError(JSON.stringify(error), VCLError.findErrorCode(error), error.requestId, error.message, statusCode !== null && statusCode !== void 0 ? statusCode : error.statusCode);
|
|
38
|
+
}
|
|
39
|
+
static findErrorCode(error) {
|
|
40
|
+
if (error) {
|
|
41
|
+
if (error.errorCode) {
|
|
42
|
+
return error.errorCode;
|
|
43
|
+
}
|
|
44
|
+
if (Object.values(VCLErrorCode_1.default).includes(error.message)) {
|
|
45
|
+
return error.message;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return VCLErrorCode_1.default.SdkError;
|
|
49
|
+
}
|
|
50
|
+
get jsonObject() {
|
|
51
|
+
var _a;
|
|
52
|
+
return {
|
|
53
|
+
[VCLError.KeyPayload]: this.payload,
|
|
54
|
+
[VCLError.KeyError]: this.error,
|
|
55
|
+
[VCLError.KeyRequestId]: this.requestId,
|
|
56
|
+
[VCLError.KeyErrorCode]: (_a = this.errorCode) !== null && _a !== void 0 ? _a : VCLErrorCode_1.default.SdkError.toString(),
|
|
57
|
+
[VCLError.KeyMessage]: this.message,
|
|
58
|
+
[VCLError.KeyStatusCode]: this.statusCode,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
VCLError.KeyPayload = 'payload';
|
|
63
|
+
VCLError.KeyError = 'error';
|
|
64
|
+
VCLError.KeyErrorCode = 'errorCode';
|
|
65
|
+
VCLError.KeyRequestId = 'requestId';
|
|
66
|
+
VCLError.KeyMessage = 'message';
|
|
67
|
+
VCLError.KeyStatusCode = 'statusCode';
|
|
68
|
+
exports.default = VCLError;
|
|
69
|
+
//# sourceMappingURL=VCLError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLError.js","sourceRoot":"","sources":["../../../../src/api/entities/error/VCLError.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare enum VCLErrorCode {
|
|
2
|
+
RemoteServicesUrlsNotFount = "remote_services_urls_not_found",
|
|
3
|
+
InjectedServicesNotFount = "injected_services_not_found",
|
|
4
|
+
CredentialTypeNotRegistered = "credential_type_not_registered",
|
|
5
|
+
IssuerRequiresIdentityPermission = "issuer_requires_identity_permission",
|
|
6
|
+
IssuerRequiresNotaryPermission = "issuer_requires_notary_permission",
|
|
7
|
+
InvalidCredentialSubjectType = "invalid_credential_subject_type",
|
|
8
|
+
InvalidCredentialSubjectContext = "invalid_credential_subject_context",
|
|
9
|
+
IssuerUnexpectedPermissionFailure = "issuer_unexpected_permission_failure",
|
|
10
|
+
MismatchedRequestIssuerDid = "mismatched_request_issuer_did",
|
|
11
|
+
MismatchedOfferIssuerDid = "mismatched_offer_issuer_did",
|
|
12
|
+
MismatchedCredentialIssuerDid = "mismatched_credential_issuer_did",
|
|
13
|
+
MismatchedPresentationRequestInspectorDid = "mismatched_presentation_request_inspector_did",
|
|
14
|
+
SdkError = "sdk_error"
|
|
15
|
+
}
|
|
16
|
+
export default VCLErrorCode;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var VCLErrorCode;
|
|
4
|
+
(function (VCLErrorCode) {
|
|
5
|
+
VCLErrorCode["RemoteServicesUrlsNotFount"] = "remote_services_urls_not_found";
|
|
6
|
+
VCLErrorCode["InjectedServicesNotFount"] = "injected_services_not_found";
|
|
7
|
+
VCLErrorCode["CredentialTypeNotRegistered"] = "credential_type_not_registered";
|
|
8
|
+
VCLErrorCode["IssuerRequiresIdentityPermission"] = "issuer_requires_identity_permission";
|
|
9
|
+
VCLErrorCode["IssuerRequiresNotaryPermission"] = "issuer_requires_notary_permission";
|
|
10
|
+
VCLErrorCode["InvalidCredentialSubjectType"] = "invalid_credential_subject_type";
|
|
11
|
+
VCLErrorCode["InvalidCredentialSubjectContext"] = "invalid_credential_subject_context";
|
|
12
|
+
VCLErrorCode["IssuerUnexpectedPermissionFailure"] = "issuer_unexpected_permission_failure";
|
|
13
|
+
VCLErrorCode["MismatchedRequestIssuerDid"] = "mismatched_request_issuer_did";
|
|
14
|
+
VCLErrorCode["MismatchedOfferIssuerDid"] = "mismatched_offer_issuer_did";
|
|
15
|
+
VCLErrorCode["MismatchedCredentialIssuerDid"] = "mismatched_credential_issuer_did";
|
|
16
|
+
VCLErrorCode["MismatchedPresentationRequestInspectorDid"] = "mismatched_presentation_request_inspector_did";
|
|
17
|
+
VCLErrorCode["SdkError"] = "sdk_error";
|
|
18
|
+
})(VCLErrorCode || (VCLErrorCode = {}));
|
|
19
|
+
exports.default = VCLErrorCode;
|
|
20
|
+
//# sourceMappingURL=VCLErrorCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLErrorCode.js","sourceRoot":"","sources":["../../../../src/api/entities/error/VCLErrorCode.ts"],"names":[],"mappings":";;AACA,IAAK,YAoBJ;AApBD,WAAK,YAAY;IAEb,6EAA6D,CAAA;IAC7D,wEAAwD,CAAA;IAGxD,8EAA8D,CAAA;IAC9D,wFAAwE,CAAA;IACxE,oFAAoE,CAAA;IACpE,gFAAgE,CAAA;IAChE,sFAAsE,CAAA;IACtE,0FAA0E,CAAA;IAG1E,4EAA4D,CAAA;IAC5D,wEAAwD,CAAA;IACxD,kFAAkE,CAAA;IAClE,2GAA2F,CAAA;IAE3F,sCAAsB,CAAA;AAC1B,CAAC,EApBI,YAAY,KAAZ,YAAY,QAoBhB;AACD,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var VCLStatusCode;
|
|
4
|
+
(function (VCLStatusCode) {
|
|
5
|
+
VCLStatusCode[VCLStatusCode["NetworkError"] = 1] = "NetworkError";
|
|
6
|
+
VCLStatusCode[VCLStatusCode["VerificationError"] = 403] = "VerificationError";
|
|
7
|
+
VCLStatusCode[VCLStatusCode["Undefined"] = -1] = "Undefined";
|
|
8
|
+
})(VCLStatusCode || (VCLStatusCode = {}));
|
|
9
|
+
exports.default = VCLStatusCode;
|
|
10
|
+
//# sourceMappingURL=VCLStatusCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLStatusCode.js","sourceRoot":"","sources":["../../../../src/api/entities/error/VCLStatusCode.ts"],"names":[],"mappings":";;AACA,IAAK,aAIJ;AAJD,WAAK,aAAa;IACd,iEAAgB,CAAA;IAChB,6EAAuB,CAAA;IACvB,4DAAc,CAAA;AAClB,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AACD,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import VCLJwtSignService from '../../jwt/VCLJwtSignService';
|
|
2
|
+
import VCLJwtVerifyService from '../../jwt/VCLJwtVerifyService';
|
|
3
|
+
import VCLKeyService from '../../keys/VCLKeyService';
|
|
4
|
+
export default class VCLCryptoServicesDescriptor {
|
|
5
|
+
readonly keyService: VCLKeyService;
|
|
6
|
+
readonly jwtSignService: VCLJwtSignService;
|
|
7
|
+
readonly jwtVerifyService: VCLJwtVerifyService;
|
|
8
|
+
constructor(keyService: VCLKeyService, jwtSignService: VCLJwtSignService, jwtVerifyService: VCLJwtVerifyService);
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const HelperFunctions_1 = require("../../../impl/utils/HelperFunctions");
|
|
4
|
+
class VCLCryptoServicesDescriptor {
|
|
5
|
+
constructor(keyService, jwtSignService, jwtVerifyService) {
|
|
6
|
+
this.keyService = (0, HelperFunctions_1.ensureDefined)(keyService, 'keyService');
|
|
7
|
+
this.jwtSignService = (0, HelperFunctions_1.ensureDefined)(jwtSignService, 'jwtSignService');
|
|
8
|
+
this.jwtVerifyService = (0, HelperFunctions_1.ensureDefined)(jwtVerifyService, 'jwtVerifyService');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.default = VCLCryptoServicesDescriptor;
|
|
12
|
+
//# sourceMappingURL=VCLCryptoServicesDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCryptoServicesDescriptor.js","sourceRoot":"","sources":["../../../../src/api/entities/initialization/VCLCryptoServicesDescriptor.ts"],"names":[],"mappings":";;AAGA,yEAAoE;AAEpE,MAAqB,2BAA2B;IAO5C,YACI,UAAyB,EACzB,cAAiC,EACjC,gBAAqC;QAErC,IAAI,CAAC,UAAU,GAAG,IAAA,+BAAa,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,GAAG,IAAA,+BAAa,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QACtE,IAAI,CAAC,gBAAgB,GAAG,IAAA,+BAAa,EACjC,gBAAgB,EAChB,kBAAkB,CACrB,CAAC;IACN,CAAC;CACJ;AAnBD,8CAmBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import VCLEnvironment from '../../VCLEnvironment';
|
|
2
|
+
import VCLCryptoServicesDescriptor from './VCLCryptoServicesDescriptor';
|
|
3
|
+
import VCLXVnfProtocolVersion from '../../VCLXVnfProtocolVersion';
|
|
4
|
+
import { VCLLogService } from './VCLLogService';
|
|
5
|
+
export default class VCLInitializationDescriptor {
|
|
6
|
+
readonly environment: VCLEnvironment;
|
|
7
|
+
readonly xVnfProtocolVersion: VCLXVnfProtocolVersion;
|
|
8
|
+
readonly cryptoServicesDescriptor: VCLCryptoServicesDescriptor;
|
|
9
|
+
readonly isDebugOn: boolean;
|
|
10
|
+
readonly logService: VCLLogService;
|
|
11
|
+
constructor(environment: VCLEnvironment | undefined, xVnfProtocolVersion: VCLXVnfProtocolVersion | undefined, cryptoServicesDescriptor: VCLCryptoServicesDescriptor, isDebugOn?: boolean, logService?: VCLLogService);
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 pino_1 = __importDefault(require("pino"));
|
|
7
|
+
const VCLEnvironment_1 = __importDefault(require("../../VCLEnvironment"));
|
|
8
|
+
const VCLXVnfProtocolVersion_1 = __importDefault(require("../../VCLXVnfProtocolVersion"));
|
|
9
|
+
class VCLInitializationDescriptor {
|
|
10
|
+
constructor(environment = VCLEnvironment_1.default.Prod, xVnfProtocolVersion = VCLXVnfProtocolVersion_1.default.XVnfProtocolVersion1, cryptoServicesDescriptor, isDebugOn = false, logService = (0, pino_1.default)()) {
|
|
11
|
+
this.environment = environment;
|
|
12
|
+
this.xVnfProtocolVersion = xVnfProtocolVersion;
|
|
13
|
+
this.cryptoServicesDescriptor = cryptoServicesDescriptor;
|
|
14
|
+
this.isDebugOn = isDebugOn;
|
|
15
|
+
this.logService = logService;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = VCLInitializationDescriptor;
|
|
19
|
+
//# sourceMappingURL=VCLInitializationDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLInitializationDescriptor.js","sourceRoot":"","sources":["../../../../src/api/entities/initialization/VCLInitializationDescriptor.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,0EAAkD;AAElD,0FAAkE;AAGlE,MAAqB,2BAA2B;IAC5C,YACoB,cAA8B,wBAAc,CAAC,IAAI,EACjD,sBAA8C,gCAAsB,CAAC,oBAAoB,EACzF,wBAAqD,EACrD,YAAqB,KAAK,EAC1B,aAA4B,IAAA,cAAI,GAAE;QAJlC,gBAAW,GAAX,WAAW,CAAsC;QACjD,wBAAmB,GAAnB,mBAAmB,CAAsE;QACzF,6BAAwB,GAAxB,wBAAwB,CAA6B;QACrD,cAAS,GAAT,SAAS,CAAiB;QAC1B,eAAU,GAAV,UAAU,CAAwB;IACnD,CAAC;CACP;AARD,8CAQC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface VCLLogService {
|
|
2
|
+
error: LogFn;
|
|
3
|
+
warn: LogFn;
|
|
4
|
+
info: LogFn;
|
|
5
|
+
}
|
|
6
|
+
export interface LogFn {
|
|
7
|
+
<T extends object>(obj: T, msg?: string, ...args: any[]): void;
|
|
8
|
+
(obj: unknown, msg?: string, ...args: any[]): void;
|
|
9
|
+
(msg: string, ...args: any[]): void;
|
|
10
|
+
}
|