@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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const VCLIssuingType_1 = require("./VCLIssuingType");
|
|
4
|
+
const HelperFunctions_1 = require("../../impl/utils/HelperFunctions");
|
|
5
|
+
class VCLCredentialManifestDescriptor {
|
|
6
|
+
constructor(uri = null, issuingType = VCLIssuingType_1.VCLIssuingType.Career, credentialTypes = null, pushDelegate = null, vendorOriginContext = null, deepLink, didJwk, remoteCryptoServicesToken = null) {
|
|
7
|
+
this.uri = uri;
|
|
8
|
+
this.issuingType = issuingType;
|
|
9
|
+
this.credentialTypes = credentialTypes;
|
|
10
|
+
this.pushDelegate = pushDelegate;
|
|
11
|
+
this.vendorOriginContext = vendorOriginContext;
|
|
12
|
+
this.deepLink = deepLink;
|
|
13
|
+
this.didJwk = didJwk;
|
|
14
|
+
this.remoteCryptoServicesToken = remoteCryptoServicesToken;
|
|
15
|
+
}
|
|
16
|
+
get did() {
|
|
17
|
+
var _a;
|
|
18
|
+
return (_a = this.deepLink) === null || _a === void 0 ? void 0 : _a.did;
|
|
19
|
+
}
|
|
20
|
+
get endpoint() {
|
|
21
|
+
const params = this.generateQueryParams();
|
|
22
|
+
if (!params) {
|
|
23
|
+
return this.uri;
|
|
24
|
+
}
|
|
25
|
+
return (0, HelperFunctions_1.appendQueryParamsToString)(this.uri, params);
|
|
26
|
+
}
|
|
27
|
+
generateQueryParams() {
|
|
28
|
+
let pCredentialTypes = null;
|
|
29
|
+
if (this.credentialTypes) {
|
|
30
|
+
pCredentialTypes = this.credentialTypes
|
|
31
|
+
.map((it) => `${VCLCredentialManifestDescriptor.KeyCredentialTypes}=${encodeURIComponent(it)}`)
|
|
32
|
+
.join('&');
|
|
33
|
+
}
|
|
34
|
+
let pPushDelegate = null;
|
|
35
|
+
if (this.pushDelegate) {
|
|
36
|
+
pPushDelegate = `${VCLCredentialManifestDescriptor.KeyPushDelegatePushUrl}=${encodeURIComponent(this.pushDelegate.pushUrl)}&${VCLCredentialManifestDescriptor.KeyPushDelegatePushToken}=${this.pushDelegate.pushToken}`;
|
|
37
|
+
}
|
|
38
|
+
const qParams = [pCredentialTypes, pPushDelegate].filter((it) => it && it !== '');
|
|
39
|
+
return qParams.length > 0 ? qParams.join('&') : null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
VCLCredentialManifestDescriptor.KeyId = 'id';
|
|
43
|
+
VCLCredentialManifestDescriptor.KeyDidPrefix = 'did:';
|
|
44
|
+
VCLCredentialManifestDescriptor.KeyCredentialTypes = 'credential_types';
|
|
45
|
+
VCLCredentialManifestDescriptor.KeyPushDelegatePushUrl = 'push_delegate.push_url';
|
|
46
|
+
VCLCredentialManifestDescriptor.KeyPushDelegatePushToken = 'push_delegate.push_token';
|
|
47
|
+
VCLCredentialManifestDescriptor.KeyCredentialId = 'credentialId';
|
|
48
|
+
VCLCredentialManifestDescriptor.KeyRefresh = 'refresh';
|
|
49
|
+
exports.default = VCLCredentialManifestDescriptor;
|
|
50
|
+
//# sourceMappingURL=VCLCredentialManifestDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialManifestDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialManifestDescriptor.ts"],"names":[],"mappings":";;AACA,qDAAkD;AAKlD,sEAG0C;AAE1C,MAAqB,+BAA+B;IAChD,YACoB,MAAuB,IAAI,EAC3B,cAA8B,+BAAc,CAAC,MAAM,EACnD,kBAAqC,IAAI,EACzC,eAAyC,IAAI,EAC7C,sBAAuC,IAAI,EAC3C,QAA8B,EAC9B,MAAiB,EACjB,4BAA+C,IAAI;QAPnD,QAAG,GAAH,GAAG,CAAwB;QAC3B,gBAAW,GAAX,WAAW,CAAwC;QACnD,oBAAe,GAAf,eAAe,CAA0B;QACzC,iBAAY,GAAZ,YAAY,CAAiC;QAC7C,wBAAmB,GAAnB,mBAAmB,CAAwB;QAC3C,aAAQ,GAAR,QAAQ,CAAsB;QAC9B,WAAM,GAAN,MAAM,CAAW;QACjB,8BAAyB,GAAzB,yBAAyB,CAA0B;IACpE,CAAC;IAEJ,IAAI,GAAG;;QACH,OAAO,MAAA,IAAI,CAAC,QAAQ,0CAAE,GAAG,CAAC;IAC9B,CAAC;IAED,IAAI,QAAQ;QACR,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;QACD,OAAO,IAAA,2CAAyB,EAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;IAED,mBAAmB;QACf,IAAI,gBAAgB,GAAoB,IAAI,CAAC;QAC7C,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACvB,gBAAgB,GAAG,IAAI,CAAC,eAAe;iBAClC,GAAG,CACA,CAAC,EAAE,EAAE,EAAE,CACH,GACI,+BAA+B,CAAC,kBACpC,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE,CACnC;iBACA,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;QAED,IAAI,aAAa,GAAoB,IAAI,CAAC;QAC1C,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,aAAa,GAAG,GACZ,+BAA+B,CAAC,sBACpC,IAAI,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAC7C,+BAA+B,CAAC,wBACpC,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;QACtC,CAAC;QAED,MAAM,OAAO,GAAG,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC,MAAM,CACpD,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAC1B,CAAC;QAEF,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,CAAC;;AAEe,qCAAK,GAAG,IAAI,CAAC;AAEb,4CAAY,GAAG,MAAM,CAAC;AAEtB,kDAAkB,GAAG,kBAAkB,CAAC;AAExC,sDAAsB,GAAG,wBAAwB,CAAC;AAElD,wDAAwB,GAAG,0BAA0B,CAAC;AAEtD,+CAAe,GAAG,cAAc,CAAC;AAEjC,0CAAU,GAAG,SAAS,CAAC;kBAjEtB,+BAA+B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLCredentialManifestDescriptor from './VCLCredentialManifestDescriptor';
|
|
3
|
+
import VCLDeepLink from './VCLDeepLink';
|
|
4
|
+
import { VCLIssuingType } from './VCLIssuingType';
|
|
5
|
+
import VCLPushDelegate from './VCLPushDelegate';
|
|
6
|
+
import VCLDidJwk from './VCLDidJwk';
|
|
7
|
+
import VCLToken from './VCLToken';
|
|
8
|
+
export default class VCLCredentialManifestDescriptorByDeepLink extends VCLCredentialManifestDescriptor {
|
|
9
|
+
constructor(deeplink: VCLDeepLink, issuingType: VCLIssuingType | undefined, pushDelegate: Nullish<VCLPushDelegate>, didJwk: VCLDidJwk, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 VCLCredentialManifestDescriptor_1 = __importDefault(require("./VCLCredentialManifestDescriptor"));
|
|
7
|
+
const VCLIssuingType_1 = require("./VCLIssuingType");
|
|
8
|
+
class VCLCredentialManifestDescriptorByDeepLink extends VCLCredentialManifestDescriptor_1.default {
|
|
9
|
+
constructor(deeplink, issuingType = VCLIssuingType_1.VCLIssuingType.Career, pushDelegate = null, didJwk, remoteCryptoServicesToken = null) {
|
|
10
|
+
super(deeplink.requestUri, issuingType, null, pushDelegate, deeplink.vendorOriginContext, deeplink, didJwk, remoteCryptoServicesToken);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = VCLCredentialManifestDescriptorByDeepLink;
|
|
14
|
+
//# sourceMappingURL=VCLCredentialManifestDescriptorByDeepLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialManifestDescriptorByDeepLink.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialManifestDescriptorByDeepLink.ts"],"names":[],"mappings":";;;;;AACA,wGAAgF;AAEhF,qDAAkD;AAKlD,MAAqB,yCAA0C,SAAQ,yCAA+B;IAClG,YACI,QAAqB,EACrB,cAA8B,+BAAc,CAAC,MAAM,EACnD,eAAyC,IAAI,EAC7C,MAAiB,EACjB,4BAA+C,IAAI;QAEnD,KAAK,CACD,QAAQ,CAAC,UAAU,EACnB,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,EACR,MAAM,EACN,yBAAyB,CAC5B,CAAC;IACN,CAAC;CACJ;AAnBD,4DAmBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLCredentialManifestDescriptor from './VCLCredentialManifestDescriptor';
|
|
3
|
+
import { VCLIssuingType } from './VCLIssuingType';
|
|
4
|
+
import VCLPushDelegate from './VCLPushDelegate';
|
|
5
|
+
import VCLService from './VCLService';
|
|
6
|
+
import VCLToken from './VCLToken';
|
|
7
|
+
import VCLDidJwk from './VCLDidJwk';
|
|
8
|
+
export default class VCLCredentialManifestDescriptorByService extends VCLCredentialManifestDescriptor {
|
|
9
|
+
private readonly didInput;
|
|
10
|
+
constructor(service: VCLService, issuingType: VCLIssuingType | undefined, credentialTypes: Nullish<string[]>, pushDelegate: Nullish<VCLPushDelegate>, didJwk: VCLDidJwk, did: string, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
11
|
+
get did(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 VCLCredentialManifestDescriptor_1 = __importDefault(require("./VCLCredentialManifestDescriptor"));
|
|
7
|
+
const VCLIssuingType_1 = require("./VCLIssuingType");
|
|
8
|
+
class VCLCredentialManifestDescriptorByService extends VCLCredentialManifestDescriptor_1.default {
|
|
9
|
+
constructor(service, issuingType = VCLIssuingType_1.VCLIssuingType.Career, credentialTypes = null, pushDelegate = null, didJwk, did, remoteCryptoServicesToken = null) {
|
|
10
|
+
super(service.serviceEndpoint, issuingType, credentialTypes, pushDelegate, null, null, didJwk, remoteCryptoServicesToken);
|
|
11
|
+
this.didInput = did;
|
|
12
|
+
}
|
|
13
|
+
get did() {
|
|
14
|
+
return this.didInput;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.default = VCLCredentialManifestDescriptorByService;
|
|
18
|
+
//# sourceMappingURL=VCLCredentialManifestDescriptorByService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialManifestDescriptorByService.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialManifestDescriptorByService.ts"],"names":[],"mappings":";;;;;AACA,wGAAgF;AAChF,qDAAkD;AAMlD,MAAqB,wCAAyC,SAAQ,yCAA+B;IAGjG,YACI,OAAmB,EACnB,cAA8B,+BAAc,CAAC,MAAM,EACnD,kBAAqC,IAAI,EACzC,eAAyC,IAAI,EAC7C,MAAiB,EACjB,GAAW,EACX,4BAA+C,IAAI;QAEnD,KAAK,CACD,OAAO,CAAC,eAAe,EACvB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,yBAAyB,CAC5B,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;CACJ;AA5BD,2DA4BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLCredentialManifestDescriptor from './VCLCredentialManifestDescriptor';
|
|
3
|
+
import VCLService from './VCLService';
|
|
4
|
+
import VCLDidJwk from './VCLDidJwk';
|
|
5
|
+
import VCLToken from './VCLToken';
|
|
6
|
+
export default class VCLCredentialManifestDescriptorRefresh extends VCLCredentialManifestDescriptor {
|
|
7
|
+
readonly credentialIds: string[];
|
|
8
|
+
private readonly didInput;
|
|
9
|
+
constructor(service: VCLService, credentialIds: string[], didJwk: VCLDidJwk, did: string, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
10
|
+
get did(): string;
|
|
11
|
+
get endpoint(): Nullish<string>;
|
|
12
|
+
generateQueryParams(): string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 VCLCredentialManifestDescriptor_1 = __importDefault(require("./VCLCredentialManifestDescriptor"));
|
|
7
|
+
const VCLIssuingType_1 = require("./VCLIssuingType");
|
|
8
|
+
class VCLCredentialManifestDescriptorRefresh extends VCLCredentialManifestDescriptor_1.default {
|
|
9
|
+
constructor(service, credentialIds, didJwk, did, remoteCryptoServicesToken = null) {
|
|
10
|
+
super(service.serviceEndpoint, VCLIssuingType_1.VCLIssuingType.Refresh, null, null, null, null, didJwk, remoteCryptoServicesToken);
|
|
11
|
+
this.credentialIds = credentialIds;
|
|
12
|
+
this.didInput = did;
|
|
13
|
+
}
|
|
14
|
+
get did() {
|
|
15
|
+
return this.didInput;
|
|
16
|
+
}
|
|
17
|
+
get endpoint() {
|
|
18
|
+
const queryParams = this.generateQueryParams();
|
|
19
|
+
if (queryParams) {
|
|
20
|
+
const originUri = this.uri;
|
|
21
|
+
const allQueryParams = `${originUri.includes('?') ? '&' : '?'}${VCLCredentialManifestDescriptorRefresh.KeyRefresh}=true&${queryParams}`;
|
|
22
|
+
return this.uri + allQueryParams;
|
|
23
|
+
}
|
|
24
|
+
return `${this.uri}?${VCLCredentialManifestDescriptorRefresh.KeyRefresh}=true`;
|
|
25
|
+
}
|
|
26
|
+
generateQueryParams() {
|
|
27
|
+
const pCredentialIds = this.credentialIds
|
|
28
|
+
.map((it) => `${VCLCredentialManifestDescriptorRefresh.KeyCredentialId}=${encodeURIComponent(it)}`)
|
|
29
|
+
.join('&');
|
|
30
|
+
const qParams = [pCredentialIds].filter((c) => c && c.length);
|
|
31
|
+
return qParams.length ? qParams.join('&') : null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.default = VCLCredentialManifestDescriptorRefresh;
|
|
35
|
+
//# sourceMappingURL=VCLCredentialManifestDescriptorRefresh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialManifestDescriptorRefresh.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialManifestDescriptorRefresh.ts"],"names":[],"mappings":";;;;;AACA,wGAAgF;AAChF,qDAAkD;AAKlD,MAAqB,sCAAuC,SAAQ,yCAA+B;IAG/F,YACI,OAAmB,EACH,aAAuB,EACvC,MAAiB,EACjB,GAAW,EACX,4BAA+C,IAAI;QAEnD,KAAK,CACD,OAAO,CAAC,eAAe,EACvB,+BAAc,CAAC,OAAO,EACtB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,yBAAyB,CAC5B,CAAC;QAdc,kBAAa,GAAb,aAAa,CAAU;QAevC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACR,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC/C,IAAI,WAAW,EAAE,CAAC;YACd,MAAM,SAAS,GAAG,IAAI,CAAC,GAAI,CAAC;YAC5B,MAAM,cAAc,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GACzD,sCAAsC,CAAC,UAC3C,SAAS,WAAW,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC,GAAG,GAAG,cAAc,CAAC;QACrC,CAAC;QAED,OAAO,GAAG,IAAI,CAAC,GAAI,IACf,sCAAsC,CAAC,UAC3C,OAAO,CAAC;IACZ,CAAC;IAED,mBAAmB;QACf,MAAM,cAAc,GAAG,IAAI,CAAC,aAAa;aACpC,GAAG,CACA,CAAC,EAAE,EAAE,EAAE,CACH,GACI,sCAAsC,CAAC,eAC3C,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE,CACnC;aACA,IAAI,CAAC,GAAG,CAAC,CAAC;QAEf,MAAM,OAAO,GAAG,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;QAC9D,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC;CACJ;AAvDD,yDAuDC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
export default class VCLCredentialType {
|
|
3
|
+
payload: Dictionary<any>;
|
|
4
|
+
id: Nullish<string>;
|
|
5
|
+
schema: Nullish<string>;
|
|
6
|
+
createdAt: Nullish<string>;
|
|
7
|
+
schemaName: Nullish<string>;
|
|
8
|
+
credentialType: Nullish<string>;
|
|
9
|
+
recommended: boolean;
|
|
10
|
+
constructor(payload: Dictionary<any>, id?: Nullish<string>, schema?: Nullish<string>, createdAt?: Nullish<string>, schemaName?: Nullish<string>, credentialType?: Nullish<string>, recommended?: boolean);
|
|
11
|
+
static readonly KeyId = "id";
|
|
12
|
+
static readonly KeySchema = "schema";
|
|
13
|
+
static readonly KeyCreatedAt = "createdAt";
|
|
14
|
+
static readonly KeySchemaName = "schemaName";
|
|
15
|
+
static readonly KeyCredentialType = "credentialType";
|
|
16
|
+
static readonly KeyRecommended = "recommended";
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLCredentialType {
|
|
4
|
+
constructor(payload, id = null, schema = null, createdAt = null, schemaName = null, credentialType = null, recommended = false) {
|
|
5
|
+
this.payload = payload;
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.schema = schema;
|
|
8
|
+
this.createdAt = createdAt;
|
|
9
|
+
this.schemaName = schemaName;
|
|
10
|
+
this.credentialType = credentialType;
|
|
11
|
+
this.recommended = recommended;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
VCLCredentialType.KeyId = 'id';
|
|
15
|
+
VCLCredentialType.KeySchema = 'schema';
|
|
16
|
+
VCLCredentialType.KeyCreatedAt = 'createdAt';
|
|
17
|
+
VCLCredentialType.KeySchemaName = 'schemaName';
|
|
18
|
+
VCLCredentialType.KeyCredentialType = 'credentialType';
|
|
19
|
+
VCLCredentialType.KeyRecommended = 'recommended';
|
|
20
|
+
exports.default = VCLCredentialType;
|
|
21
|
+
//# sourceMappingURL=VCLCredentialType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialType.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialType.ts"],"names":[],"mappings":";;AAEA,MAAqB,iBAAiB;IAClC,YACW,OAAwB,EACxB,KAAsB,IAAI,EAC1B,SAA0B,IAAI,EAC9B,YAA6B,IAAI,EACjC,aAA8B,IAAI,EAClC,iBAAkC,IAAI,EACtC,cAAuB,KAAK;QAN5B,YAAO,GAAP,OAAO,CAAiB;QACxB,OAAE,GAAF,EAAE,CAAwB;QAC1B,WAAM,GAAN,MAAM,CAAwB;QAC9B,cAAS,GAAT,SAAS,CAAwB;QACjC,eAAU,GAAV,UAAU,CAAwB;QAClC,mBAAc,GAAd,cAAc,CAAwB;QACtC,gBAAW,GAAX,WAAW,CAAiB;IACpC,CAAC;;AAGY,uBAAK,GAAG,IAAI,CAAC;AAEb,2BAAS,GAAG,QAAQ,CAAC;AAErB,8BAAY,GAAG,WAAW,CAAC;AAE3B,+BAAa,GAAG,YAAY,CAAC;AAE7B,mCAAiB,GAAG,gBAAgB,CAAC;AAErC,gCAAc,GAAG,aAAa,CAAC;kBAtB9B,iBAAiB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLCredentialTypeSchema {
|
|
4
|
+
constructor(payload) {
|
|
5
|
+
this.payload = payload;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
exports.default = VCLCredentialTypeSchema;
|
|
9
|
+
//# sourceMappingURL=VCLCredentialTypeSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialTypeSchema.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialTypeSchema.ts"],"names":[],"mappings":";;AAEA,MAAqB,uBAAuB;IACxC,YAAmB,OAAwB;QAAxB,YAAO,GAAP,OAAO,CAAiB;IAAG,CAAC;CAClD;AAFD,0CAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialTypeSchemas.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialTypeSchemas.ts"],"names":[],"mappings":";;AAGA,MAAqB,wBAAwB;IACzC,YAAmB,GAAwC;QAAxC,QAAG,GAAH,GAAG,CAAqC;IAAG,CAAC;CAClE;AAFD,2CAEC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLCredentialType from './VCLCredentialType';
|
|
3
|
+
export default class VCLCredentialTypes {
|
|
4
|
+
payload: Dictionary<any>;
|
|
5
|
+
all: Nullish<VCLCredentialType[]>;
|
|
6
|
+
constructor(payload: Dictionary<any>, all: Nullish<VCLCredentialType[]>);
|
|
7
|
+
get recommendedTypes(): Nullish<VCLCredentialType[]>;
|
|
8
|
+
static fromPayload(payload: Dictionary<any>): VCLCredentialTypes;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 VCLCredentialType_1 = __importDefault(require("./VCLCredentialType"));
|
|
7
|
+
class VCLCredentialTypes {
|
|
8
|
+
constructor(payload, all) {
|
|
9
|
+
this.payload = payload;
|
|
10
|
+
this.all = all;
|
|
11
|
+
}
|
|
12
|
+
get recommendedTypes() {
|
|
13
|
+
var _a;
|
|
14
|
+
return (_a = this.all) === null || _a === void 0 ? void 0 : _a.filter((item) => item.recommended);
|
|
15
|
+
}
|
|
16
|
+
static fromPayload(payload) {
|
|
17
|
+
return new VCLCredentialTypes(payload, payload.map((item) => {
|
|
18
|
+
return new VCLCredentialType_1.default(item, item[VCLCredentialType_1.default.KeyId], item[VCLCredentialType_1.default.KeySchema], item[VCLCredentialType_1.default.KeyCreatedAt], item[VCLCredentialType_1.default.KeySchemaName], item[VCLCredentialType_1.default.KeyCredentialType], item[VCLCredentialType_1.default.KeyRecommended]);
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = VCLCredentialTypes;
|
|
23
|
+
//# sourceMappingURL=VCLCredentialTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialTypes.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialTypes.ts"],"names":[],"mappings":";;;;;AACA,4EAAoD;AAEpD,MAAqB,kBAAkB;IACnC,YACW,OAAwB,EACxB,GAAiC;QADjC,YAAO,GAAP,OAAO,CAAiB;QACxB,QAAG,GAAH,GAAG,CAA8B;IACzC,CAAC;IAEJ,IAAI,gBAAgB;;QAChB,OAAO,MAAA,IAAI,CAAC,GAAG,0CAAE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAwB;QACvC,OAAO,IAAI,kBAAkB,CACzB,OAAO,EACN,OAA6B,CAAC,GAAG,CAAC,CAAC,IAAqB,EAAE,EAAE;YACzD,OAAO,IAAI,2BAAiB,CACxB,IAAI,EACJ,IAAI,CAAC,2BAAiB,CAAC,KAAK,CAAC,EAC7B,IAAI,CAAC,2BAAiB,CAAC,SAAS,CAAC,EACjC,IAAI,CAAC,2BAAiB,CAAC,YAAY,CAAC,EACpC,IAAI,CAAC,2BAAiB,CAAC,aAAa,CAAC,EACrC,IAAI,CAAC,2BAAiB,CAAC,iBAAiB,CAAC,EACzC,IAAI,CAAC,2BAAiB,CAAC,cAAc,CAAC,CACzC,CAAC;QACN,CAAC,CAAC,CACL,CAAC;IACN,CAAC;CACJ;AA1BD,qCA0BC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
export default class VCLCredentialTypesUIFormSchema {
|
|
3
|
+
payload: Dictionary<any>;
|
|
4
|
+
constructor(payload: Dictionary<any>);
|
|
5
|
+
static readonly KeyAddressRegion = "addressRegion";
|
|
6
|
+
static readonly KeyAddressCountry = "addressCountry";
|
|
7
|
+
static readonly KeyUiEnum = "ui:enum";
|
|
8
|
+
static readonly KeyUiNames = "ui:enumNames";
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLCredentialTypesUIFormSchema {
|
|
4
|
+
constructor(payload) {
|
|
5
|
+
this.payload = payload;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
VCLCredentialTypesUIFormSchema.KeyAddressRegion = 'addressRegion';
|
|
9
|
+
VCLCredentialTypesUIFormSchema.KeyAddressCountry = 'addressCountry';
|
|
10
|
+
VCLCredentialTypesUIFormSchema.KeyUiEnum = 'ui:enum';
|
|
11
|
+
VCLCredentialTypesUIFormSchema.KeyUiNames = 'ui:enumNames';
|
|
12
|
+
exports.default = VCLCredentialTypesUIFormSchema;
|
|
13
|
+
//# sourceMappingURL=VCLCredentialTypesUIFormSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialTypesUIFormSchema.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialTypesUIFormSchema.ts"],"names":[],"mappings":";;AAEA,MAAqB,8BAA8B;IAC/C,YAAmB,OAAwB;QAAxB,YAAO,GAAP,OAAO,CAAiB;IAAG,CAAC;;AAG/B,+CAAgB,GAAG,eAAe,CAAC;AAEnC,gDAAiB,GAAG,gBAAgB,CAAC;AAErC,wCAAS,GAAG,SAAS,CAAC;AAEtB,yCAAU,GAAG,cAAc,CAAC;kBAV3B,8BAA8B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLCredentialTypesUIFormSchemaDescriptor {
|
|
4
|
+
constructor(credentialType, countryCode) {
|
|
5
|
+
this.credentialType = credentialType;
|
|
6
|
+
this.countryCode = countryCode;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = VCLCredentialTypesUIFormSchemaDescriptor;
|
|
10
|
+
//# sourceMappingURL=VCLCredentialTypesUIFormSchemaDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCredentialTypesUIFormSchemaDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.ts"],"names":[],"mappings":";;AAAA,MAAqB,wCAAwC;IACzD,YAAmB,cAAsB,EAAS,WAAmB;QAAlD,mBAAc,GAAd,cAAc,CAAQ;QAAS,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;CAC5E;AAFD,2DAEC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
export default class VCLDeepLink {
|
|
3
|
+
value: string;
|
|
4
|
+
requestUri: Nullish<string>;
|
|
5
|
+
vendorOriginContext: Nullish<string>;
|
|
6
|
+
constructor(value: string);
|
|
7
|
+
private getRequestUri;
|
|
8
|
+
get did(): Nullish<string>;
|
|
9
|
+
private getVendorOriginContext;
|
|
10
|
+
private generateUri;
|
|
11
|
+
retrieveQueryParam(key: string): Nullish<string>;
|
|
12
|
+
static readonly KeyDidPrefix = "did:";
|
|
13
|
+
static readonly KeyRequestUri = "request_uri";
|
|
14
|
+
static readonly KeyVendorOriginContext = "vendorOriginContext";
|
|
15
|
+
static readonly KeyIssuerDid = "issuerDid";
|
|
16
|
+
static readonly KeyInspectorDid = "inspectorDid";
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const HelperFunctions_1 = require("../../impl/utils/HelperFunctions");
|
|
4
|
+
class VCLDeepLink {
|
|
5
|
+
constructor(value) {
|
|
6
|
+
this.value = value;
|
|
7
|
+
this.vendorOriginContext = this.getVendorOriginContext();
|
|
8
|
+
this.requestUri = this.getRequestUri();
|
|
9
|
+
}
|
|
10
|
+
getRequestUri() {
|
|
11
|
+
return this.generateUri(VCLDeepLink.KeyRequestUri);
|
|
12
|
+
}
|
|
13
|
+
get did() {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
return ((_b = (_a = this.retrieveQueryParam(VCLDeepLink.KeyIssuerDid)) !== null && _a !== void 0 ? _a : this.retrieveQueryParam(VCLDeepLink.KeyInspectorDid)) !== null && _b !== void 0 ? _b : (0, HelperFunctions_1.getUrlSubPathFromString)(this.requestUri, VCLDeepLink.KeyDidPrefix));
|
|
16
|
+
}
|
|
17
|
+
getVendorOriginContext() {
|
|
18
|
+
return this.retrieveQueryParam(VCLDeepLink.KeyVendorOriginContext);
|
|
19
|
+
}
|
|
20
|
+
generateUri(uriKey, asSubParams = false) {
|
|
21
|
+
const queryParams = (0, HelperFunctions_1.getQueryParamsFromString)(this.value);
|
|
22
|
+
const uri = queryParams.get(uriKey);
|
|
23
|
+
if (uri) {
|
|
24
|
+
const queryItems = [...queryParams.entries()]
|
|
25
|
+
.filter((it) => it[0] !== uriKey && it[1] !== '')
|
|
26
|
+
.map(([key, value]) => `${key}=${encodeURIComponent(value)}`)
|
|
27
|
+
.join('&');
|
|
28
|
+
if (queryItems.length > 0) {
|
|
29
|
+
return asSubParams
|
|
30
|
+
? `${uri}&${queryItems}`
|
|
31
|
+
: (0, HelperFunctions_1.appendQueryParamsToString)(uri, queryItems);
|
|
32
|
+
}
|
|
33
|
+
return uri;
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
retrieveQueryParam(key) {
|
|
38
|
+
var _a;
|
|
39
|
+
return (_a = (0, HelperFunctions_1.getQueryParamsFromString)(decodeURIComponent(this.value))) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
VCLDeepLink.KeyDidPrefix = 'did:';
|
|
43
|
+
VCLDeepLink.KeyRequestUri = 'request_uri';
|
|
44
|
+
VCLDeepLink.KeyVendorOriginContext = 'vendorOriginContext';
|
|
45
|
+
VCLDeepLink.KeyIssuerDid = 'issuerDid';
|
|
46
|
+
VCLDeepLink.KeyInspectorDid = 'inspectorDid';
|
|
47
|
+
exports.default = VCLDeepLink;
|
|
48
|
+
//# sourceMappingURL=VCLDeepLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLDeepLink.js","sourceRoot":"","sources":["../../../src/api/entities/VCLDeepLink.ts"],"names":[],"mappings":";;AACA,sEAI0C;AAE1C,MAAqB,WAAW;IAK5B,YAAmB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;QAC5B,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACzD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IAC3C,CAAC;IAEO,aAAa;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IACvD,CAAC;IAED,IAAW,GAAG;;QACV,OAAO,CACH,MAAA,MAAA,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,YAAY,CAAC,mCACjD,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,eAAe,CAAC,mCACpD,IAAA,yCAAuB,EAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CACrE,CAAC;IACN,CAAC;IAEO,sBAAsB;QAC1B,OAAO,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IACvE,CAAC;IAEO,WAAW,CAAC,MAAc,EAAE,WAAW,GAAG,KAAK;QACnD,MAAM,WAAW,GAAG,IAAA,0CAAwB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,GAAG,EAAE,CAAC;YACN,MAAM,UAAU,GAAG,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC;iBACxC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;iBAChD,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;iBAC5D,IAAI,CAAC,GAAG,CAAC,CAAC;YACf,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACxB,OAAO,WAAW;oBACd,CAAC,CAAC,GAAG,GAAG,IAAI,UAAU,EAAE;oBACxB,CAAC,CAAC,IAAA,2CAAyB,EAAC,GAAG,EAAE,UAAU,CAAC,CAAC;YACrD,CAAC;YAED,OAAO,GAAG,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,kBAAkB,CAAC,GAAW;;QAC1B,OAAO,MAAA,IAAA,0CAAwB,EAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,0CAAE,GAAG,CAChE,GAAG,CACN,CAAC;IACN,CAAC;;AAGe,wBAAY,GAAG,MAAM,CAAC;AAEtB,yBAAa,GAAG,aAAa,CAAC;AAE9B,kCAAsB,GAAG,qBAAqB,CAAC;AAE/C,wBAAY,GAAG,WAAW,CAAC;AAE3B,2BAAe,GAAG,cAAc,CAAC;kBA7DhC,WAAW"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
import VCLPublicJwk from './VCLPublicJwk';
|
|
3
|
+
export default class VCLDidDocument {
|
|
4
|
+
payload: Dictionary<any>;
|
|
5
|
+
constructor(payload: Dictionary<any>);
|
|
6
|
+
constructor(payloadStr: string);
|
|
7
|
+
getPublicJwk(kid: string): VCLPublicJwk | null;
|
|
8
|
+
get id(): string;
|
|
9
|
+
get alsoKnownAs(): string[];
|
|
10
|
+
static KeyId: string;
|
|
11
|
+
static KeyAlsoKnownAs: string;
|
|
12
|
+
static KeyVerificationMethod: string;
|
|
13
|
+
static KeyPublicKeyJwk: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 VCLPublicJwk_1 = __importDefault(require("./VCLPublicJwk"));
|
|
7
|
+
class VCLDidDocument {
|
|
8
|
+
constructor(payloadOrStr) {
|
|
9
|
+
if (typeof payloadOrStr === 'string') {
|
|
10
|
+
try {
|
|
11
|
+
this.payload = JSON.parse(payloadOrStr);
|
|
12
|
+
}
|
|
13
|
+
catch (_a) {
|
|
14
|
+
this.payload = {};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
this.payload = payloadOrStr;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
getPublicJwk(kid) {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
if (!kid.includes('#'))
|
|
24
|
+
return null;
|
|
25
|
+
const publicJwkId = `#${kid.split('#')[1]}`;
|
|
26
|
+
const verificationMethod = (_b = (_a = this.payload) === null || _a === void 0 ? void 0 : _a[VCLDidDocument.KeyVerificationMethod]) !== null && _b !== void 0 ? _b : [];
|
|
27
|
+
const publicJwkPayload = verificationMethod
|
|
28
|
+
.filter((item) => typeof item === 'object' && item !== null)
|
|
29
|
+
.find((method) => method[VCLDidDocument.KeyId] === publicJwkId);
|
|
30
|
+
const publicJwk = publicJwkPayload === null || publicJwkPayload === void 0 ? void 0 : publicJwkPayload[VCLDidDocument.KeyPublicKeyJwk];
|
|
31
|
+
return publicJwk ? VCLPublicJwk_1.default.fromJSON(publicJwk) : null;
|
|
32
|
+
}
|
|
33
|
+
get id() {
|
|
34
|
+
return this.payload[VCLDidDocument.KeyId] || '';
|
|
35
|
+
}
|
|
36
|
+
get alsoKnownAs() {
|
|
37
|
+
const value = this.payload[VCLDidDocument.KeyAlsoKnownAs];
|
|
38
|
+
return Array.isArray(value) ? value : [];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
VCLDidDocument.KeyId = 'id';
|
|
42
|
+
VCLDidDocument.KeyAlsoKnownAs = 'alsoKnownAs';
|
|
43
|
+
VCLDidDocument.KeyVerificationMethod = 'verificationMethod';
|
|
44
|
+
VCLDidDocument.KeyPublicKeyJwk = 'publicKeyJwk';
|
|
45
|
+
exports.default = VCLDidDocument;
|
|
46
|
+
//# sourceMappingURL=VCLDidDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLDidDocument.js","sourceRoot":"","sources":["../../../src/api/entities/VCLDidDocument.ts"],"names":[],"mappings":";;;;;AACA,kEAA0C;AAS1C,MAAqB,cAAc;IAO/B,YAAY,YAAsC;QAC9C,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;YACnC,IAAI,CAAC;gBACD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YAC5C,CAAC;YAAC,WAAM,CAAC;gBACL,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YACtB,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC;QAChC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,GAAW;;QACpB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAEpC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5C,MAAM,kBAAkB,GACpB,MAAC,MAAA,IAAI,CAAC,OAAO,0CACT,cAAc,CAAC,qBAAqB,CACjB,mCAAI,EAAE,CAAC;QAElC,MAAM,gBAAgB,GAAG,kBAAkB;aACtC,MAAM,CACH,CAAC,IAAI,EAA+B,EAAE,CAClC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,CAChD;aACA,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,CAAC;QAEpE,MAAM,SAAS,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,cAAc,CAAC,eAAe,CAAC,CAAC;QACrE,OAAO,SAAS,CAAC,CAAC,CAAC,sBAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/D,CAAC;IAED,IAAI,EAAE;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACpD,CAAC;IAED,IAAI,WAAW;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QAC1D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7C,CAAC;;AAEM,oBAAK,GAAG,IAAI,CAAC;AAEb,6BAAc,GAAG,aAAa,CAAC;AAE/B,oCAAqB,GAAG,oBAAoB,CAAC;AAE7C,8BAAe,GAAG,cAAc,CAAC;kBAtDvB,cAAc"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { KeyPairKeyObjectResult } from 'crypto';
|
|
2
|
+
import VCLPublicJwk from './VCLPublicJwk';
|
|
3
|
+
import { Dictionary } from '../VCLTypes';
|
|
4
|
+
export default class VCLDidJwk {
|
|
5
|
+
readonly payload: Dictionary<any>;
|
|
6
|
+
readonly did: string;
|
|
7
|
+
readonly publicJwk: VCLPublicJwk;
|
|
8
|
+
readonly kid: string;
|
|
9
|
+
readonly keyId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static readonly DidJwkPrefix = "did:jwk:";
|
|
12
|
+
static readonly DidJwkSuffix = "#0";
|
|
13
|
+
static readonly KeyDid = "did";
|
|
14
|
+
static readonly KeyKid = "kid";
|
|
15
|
+
static readonly KeyKeyId = "keyId";
|
|
16
|
+
static readonly KeyPublicJwk = "publicJwk";
|
|
17
|
+
static Utils: {
|
|
18
|
+
new (): {};
|
|
19
|
+
generateDidJwk: (ecKey: KeyPairKeyObjectResult) => Promise<string>;
|
|
20
|
+
generateKidFromDidJwk: (ecKey: KeyPairKeyObjectResult) => string;
|
|
21
|
+
};
|
|
22
|
+
static fromString(didJwkStr: string): VCLDidJwk;
|
|
23
|
+
static fromJSON(didJwkJson: Dictionary<any>): VCLDidJwk;
|
|
24
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
12
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
13
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
14
|
+
};
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
var _a;
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
const jose_1 = require("jose");
|
|
21
|
+
const canonicalize_1 = __importDefault(require("canonicalize"));
|
|
22
|
+
const VCLPublicJwk_1 = __importDefault(require("./VCLPublicJwk"));
|
|
23
|
+
class VCLDidJwk {
|
|
24
|
+
constructor(payload, did, publicJwk, kid, keyId) {
|
|
25
|
+
this.payload = payload;
|
|
26
|
+
this.did = did;
|
|
27
|
+
this.publicJwk = publicJwk;
|
|
28
|
+
this.kid = kid;
|
|
29
|
+
this.keyId = keyId;
|
|
30
|
+
}
|
|
31
|
+
static fromString(didJwkStr) {
|
|
32
|
+
return VCLDidJwk.fromJSON(JSON.parse(didJwkStr));
|
|
33
|
+
}
|
|
34
|
+
static fromJSON(didJwkJson) {
|
|
35
|
+
return new VCLDidJwk(didJwkJson, didJwkJson[VCLDidJwk.KeyDid], VCLPublicJwk_1.default.fromJSON(didJwkJson[VCLDidJwk.KeyPublicJwk]), didJwkJson[VCLDidJwk.KeyKid], didJwkJson[VCLDidJwk.KeyKeyId]);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
VCLDidJwk.DidJwkPrefix = 'did:jwk:';
|
|
39
|
+
VCLDidJwk.DidJwkSuffix = '#0';
|
|
40
|
+
VCLDidJwk.KeyDid = 'did';
|
|
41
|
+
VCLDidJwk.KeyKid = 'kid';
|
|
42
|
+
VCLDidJwk.KeyKeyId = 'keyId';
|
|
43
|
+
VCLDidJwk.KeyPublicJwk = 'publicJwk';
|
|
44
|
+
VCLDidJwk.Utils = (_a = class {
|
|
45
|
+
},
|
|
46
|
+
__setFunctionName(_a, "Utils"),
|
|
47
|
+
_a.generateDidJwk = (ecKey) => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
|
+
const publicJwk = yield (0, jose_1.exportJWK)(ecKey.publicKey);
|
|
49
|
+
return `${VCLDidJwk.DidJwkPrefix}${jose_1.base64url.encode((0, canonicalize_1.default)(publicJwk))}`;
|
|
50
|
+
}),
|
|
51
|
+
_a.generateKidFromDidJwk = (ecKey) => {
|
|
52
|
+
return `${_a.generateDidJwk(ecKey)}${VCLDidJwk.DidJwkSuffix}`;
|
|
53
|
+
},
|
|
54
|
+
_a);
|
|
55
|
+
exports.default = VCLDidJwk;
|
|
56
|
+
//# sourceMappingURL=VCLDidJwk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLDidJwk.js","sourceRoot":"","sources":["../../../src/api/entities/VCLDidJwk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AACA,+BAA4C;AAE5C,gEAAwC;AACxC,kEAA0C;AAG1C,MAAqB,SAAS;IAC1B,YACoB,OAAwB,EACxB,GAAW,EACX,SAAuB,EACvB,GAAW,EACX,KAAa;QAJb,YAAO,GAAP,OAAO,CAAiB;QACxB,QAAG,GAAH,GAAG,CAAQ;QACX,cAAS,GAAT,SAAS,CAAc;QACvB,QAAG,GAAH,GAAG,CAAQ;QACX,UAAK,GAAL,KAAK,CAAQ;IAC9B,CAAC;IA4BG,MAAM,CAAC,UAAU,CAAC,SAAiB;QACtC,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,UAA2B;QAC9C,OAAO,IAAI,SAAS,CAChB,UAAU,EACV,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,EAC5B,sBAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,EACzD,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,EAC5B,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CACjC,CAAC;IACN,CAAC;;AArCe,sBAAY,GAAG,UAAU,CAAC;AAE1B,sBAAY,GAAG,IAAI,CAAC;AAEpB,gBAAM,GAAG,KAAK,CAAC;AAEf,gBAAM,GAAG,KAAK,CAAC;AAEf,kBAAQ,GAAG,OAAO,CAAC;AAEnB,sBAAY,GAAG,WAAW,CAAC;AAEpC,eAAK,SAAG;KAWd;;IAVU,iBAAc,GAAG,CAAO,KAA6B,EAAE,EAAE;QAC5D,MAAM,SAAS,GAAG,MAAM,IAAA,gBAAS,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACnD,OAAO,GAAG,SAAS,CAAC,YAAY,GAAG,gBAAS,CAAC,MAAM,CAC/C,IAAA,sBAAY,EAAC,SAAS,CAAE,CAC3B,EAAE,CAAC;IACR,CAAC,CAAC;IAEK,wBAAqB,GAAG,CAAC,KAA6B,EAAE,EAAE;QAC7D,OAAO,GAAG,EAAI,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,YAAY,EAAE,CAAC;IACpE,CAAE;QACJ;kBAjCe,SAAS"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLToken from './VCLToken';
|
|
3
|
+
import VCLSignatureAlgorithm from '../VCLSignatureAlgorithm';
|
|
4
|
+
export default class VCLDidJwkDescriptor {
|
|
5
|
+
signatureAlgorithm: VCLSignatureAlgorithm;
|
|
6
|
+
remoteCryptoServicesToken: Nullish<VCLToken>;
|
|
7
|
+
constructor(signatureAlgorithm?: VCLSignatureAlgorithm, remoteCryptoServicesToken?: Nullish<VCLToken>);
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 VCLSignatureAlgorithm_1 = __importDefault(require("../VCLSignatureAlgorithm"));
|
|
7
|
+
class VCLDidJwkDescriptor {
|
|
8
|
+
constructor(signatureAlgorithm = VCLSignatureAlgorithm_1.default.ES256, remoteCryptoServicesToken = null) {
|
|
9
|
+
this.signatureAlgorithm = signatureAlgorithm;
|
|
10
|
+
this.remoteCryptoServicesToken = remoteCryptoServicesToken;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = VCLDidJwkDescriptor;
|
|
14
|
+
//# sourceMappingURL=VCLDidJwkDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLDidJwkDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLDidJwkDescriptor.ts"],"names":[],"mappings":";;;;;AAEA,qFAA6D;AAE7D,MAAqB,mBAAmB;IACpC,YACW,qBAA4C,+BAAqB,CAAC,KAAK,EACvE,4BAA+C,IAAI;QADnD,uBAAkB,GAAlB,kBAAkB,CAAqD;QACvE,8BAAyB,GAAzB,yBAAyB,CAA0B;IAC3D,CAAC;CACP;AALD,sCAKC"}
|