@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,13 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
export default class VCLExchange {
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
disclosureComplete: boolean;
|
|
6
|
+
exchangeComplete: boolean;
|
|
7
|
+
constructor(id: string, type: string, disclosureComplete: boolean, exchangeComplete: boolean);
|
|
8
|
+
constructor(payload: Dictionary<any>);
|
|
9
|
+
static readonly KeyId: string;
|
|
10
|
+
static readonly KeyType: string;
|
|
11
|
+
static readonly KeyDisclosureComplete: string;
|
|
12
|
+
static readonly KeyExchangeComplete: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLExchange {
|
|
4
|
+
constructor(...args) {
|
|
5
|
+
if (args.length === 1 && typeof args[0] === 'object') {
|
|
6
|
+
const payload = args[0];
|
|
7
|
+
this.id = payload[VCLExchange.KeyId];
|
|
8
|
+
this.type = payload[VCLExchange.KeyType];
|
|
9
|
+
this.disclosureComplete =
|
|
10
|
+
payload[VCLExchange.KeyDisclosureComplete];
|
|
11
|
+
this.exchangeComplete = payload[VCLExchange.KeyExchangeComplete];
|
|
12
|
+
}
|
|
13
|
+
else if (args.length === 4) {
|
|
14
|
+
const [id, type, disclosureComplete, exchangeComplete] = args;
|
|
15
|
+
this.id = id;
|
|
16
|
+
this.type = type;
|
|
17
|
+
this.disclosureComplete = disclosureComplete;
|
|
18
|
+
this.exchangeComplete = exchangeComplete;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
throw new Error('Invalid constructor arguments for VCLExchange');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
VCLExchange.KeyId = 'id';
|
|
26
|
+
VCLExchange.KeyType = 'type';
|
|
27
|
+
VCLExchange.KeyDisclosureComplete = 'disclosureComplete';
|
|
28
|
+
VCLExchange.KeyExchangeComplete = 'exchangeComplete';
|
|
29
|
+
exports.default = VCLExchange;
|
|
30
|
+
//# sourceMappingURL=VCLExchange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLExchange.js","sourceRoot":"","sources":["../../../src/api/entities/VCLExchange.ts"],"names":[],"mappings":";;AAEA,MAAqB,WAAW;IAoB5B,YAAY,GAAG,IAAW;QACtB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;YACnD,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACrC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACzC,IAAI,CAAC,kBAAkB;gBACnB,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;YAC/C,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;QACrE,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,GAAG,IAAI,CAAC;YAC9D,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;YAC7C,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QAC7C,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACrE,CAAC;IACL,CAAC;;AAEe,iBAAK,GAAW,IAAI,CAAC;AAErB,mBAAO,GAAW,MAAM,CAAC;AAEzB,iCAAqB,GAAW,oBAAoB,CAAC;AAErD,+BAAmB,GAAW,kBAAkB,CAAC;kBA7ChD,WAAW"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import VCLPresentationSubmission from './VCLPresentationSubmission';
|
|
2
|
+
import VCLSubmissionResult from './VCLSubmissionResult';
|
|
3
|
+
export default class VCLExchangeDescriptor {
|
|
4
|
+
readonly presentationSubmission: VCLPresentationSubmission;
|
|
5
|
+
readonly submissionResult: VCLSubmissionResult;
|
|
6
|
+
constructor(presentationSubmission: VCLPresentationSubmission, submissionResult: VCLSubmissionResult);
|
|
7
|
+
get processUri(): string;
|
|
8
|
+
get exchangeId(): string;
|
|
9
|
+
get sessionToken(): import("./VCLToken").default;
|
|
10
|
+
static readonly KeyExchangeId = "exchange_id";
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLExchangeDescriptor {
|
|
4
|
+
constructor(presentationSubmission, submissionResult) {
|
|
5
|
+
this.presentationSubmission = presentationSubmission;
|
|
6
|
+
this.submissionResult = submissionResult;
|
|
7
|
+
}
|
|
8
|
+
get processUri() {
|
|
9
|
+
return this.presentationSubmission.progressUri;
|
|
10
|
+
}
|
|
11
|
+
get exchangeId() {
|
|
12
|
+
return this.submissionResult.exchange.id;
|
|
13
|
+
}
|
|
14
|
+
get sessionToken() {
|
|
15
|
+
return this.submissionResult.sessionToken;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
VCLExchangeDescriptor.KeyExchangeId = 'exchange_id';
|
|
19
|
+
exports.default = VCLExchangeDescriptor;
|
|
20
|
+
//# sourceMappingURL=VCLExchangeDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLExchangeDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLExchangeDescriptor.ts"],"names":[],"mappings":";;AAGA,MAAqB,qBAAqB;IACtC,YACoB,sBAAiD,EACjD,gBAAqC;QADrC,2BAAsB,GAAtB,sBAAsB,CAA2B;QACjD,qBAAgB,GAAhB,gBAAgB,CAAqB;IACtD,CAAC;IAEJ,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC;IACnD,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC7C,CAAC;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;IAC9C,CAAC;;AAEe,mCAAa,GAAG,aAAa,CAAC;kBAlB7B,qBAAqB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLCredentialManifest from './VCLCredentialManifest';
|
|
3
|
+
import VCLJwt from './VCLJwt';
|
|
4
|
+
export default class VCLFinalizeOffersDescriptor {
|
|
5
|
+
readonly credentialManifest: VCLCredentialManifest;
|
|
6
|
+
readonly challenge: Nullish<string>;
|
|
7
|
+
readonly approvedOfferIds: string[];
|
|
8
|
+
readonly rejectedOfferIds: string[];
|
|
9
|
+
constructor(credentialManifest: VCLCredentialManifest, challenge: Nullish<string>, approvedOfferIds: string[], rejectedOfferIds: string[]);
|
|
10
|
+
get didJwk(): import("./VCLDidJwk").default;
|
|
11
|
+
get remoteCryptoServicesToken(): Nullish<import("./VCLToken").default>;
|
|
12
|
+
get issuerId(): string;
|
|
13
|
+
get aud(): string;
|
|
14
|
+
get exchangeId(): string;
|
|
15
|
+
get finalizeOffersUri(): string;
|
|
16
|
+
get serviceTypes(): import("./VCLServiceTypes").default;
|
|
17
|
+
payload: Dictionary<any>;
|
|
18
|
+
generateRequestBody(proof?: Nullish<VCLJwt>): Dictionary<any>;
|
|
19
|
+
static readonly KeyExchangeId = "exchangeId";
|
|
20
|
+
static readonly KeyApprovedOfferIds = "approvedOfferIds";
|
|
21
|
+
static readonly KeyRejectedOfferIds = "rejectedOfferIds";
|
|
22
|
+
static readonly KeyJwt = "jwt";
|
|
23
|
+
static readonly KeyProof = "proof";
|
|
24
|
+
static readonly KeyProofType = "proof_type";
|
|
25
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLFinalizeOffersDescriptor {
|
|
4
|
+
constructor(credentialManifest, challenge, approvedOfferIds, rejectedOfferIds) {
|
|
5
|
+
this.credentialManifest = credentialManifest;
|
|
6
|
+
this.challenge = challenge;
|
|
7
|
+
this.approvedOfferIds = approvedOfferIds;
|
|
8
|
+
this.rejectedOfferIds = rejectedOfferIds;
|
|
9
|
+
this.payload = {
|
|
10
|
+
[VCLFinalizeOffersDescriptor.KeyExchangeId]: this.exchangeId,
|
|
11
|
+
[VCLFinalizeOffersDescriptor.KeyApprovedOfferIds]: this.approvedOfferIds,
|
|
12
|
+
[VCLFinalizeOffersDescriptor.KeyRejectedOfferIds]: this.rejectedOfferIds,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
get didJwk() {
|
|
16
|
+
return this.credentialManifest.didJwk;
|
|
17
|
+
}
|
|
18
|
+
get remoteCryptoServicesToken() {
|
|
19
|
+
return this.credentialManifest.remoteCryptoServicesToken;
|
|
20
|
+
}
|
|
21
|
+
get issuerId() {
|
|
22
|
+
return this.credentialManifest.issuerId;
|
|
23
|
+
}
|
|
24
|
+
get aud() {
|
|
25
|
+
return this.credentialManifest.aud;
|
|
26
|
+
}
|
|
27
|
+
get exchangeId() {
|
|
28
|
+
return this.credentialManifest.exchangeId;
|
|
29
|
+
}
|
|
30
|
+
get finalizeOffersUri() {
|
|
31
|
+
return this.credentialManifest.finalizeOffersUri;
|
|
32
|
+
}
|
|
33
|
+
get serviceTypes() {
|
|
34
|
+
return this.credentialManifest.verifiedProfile.serviceTypes;
|
|
35
|
+
}
|
|
36
|
+
generateRequestBody(proof = null) {
|
|
37
|
+
const retVal = Object.assign({}, this.payload);
|
|
38
|
+
if (proof) {
|
|
39
|
+
retVal[VCLFinalizeOffersDescriptor.KeyProof] = {
|
|
40
|
+
[VCLFinalizeOffersDescriptor.KeyProofType]: VCLFinalizeOffersDescriptor.KeyJwt,
|
|
41
|
+
[VCLFinalizeOffersDescriptor.KeyJwt]: proof.encodedJwt,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return retVal;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
VCLFinalizeOffersDescriptor.KeyExchangeId = 'exchangeId';
|
|
48
|
+
VCLFinalizeOffersDescriptor.KeyApprovedOfferIds = 'approvedOfferIds';
|
|
49
|
+
VCLFinalizeOffersDescriptor.KeyRejectedOfferIds = 'rejectedOfferIds';
|
|
50
|
+
VCLFinalizeOffersDescriptor.KeyJwt = 'jwt';
|
|
51
|
+
VCLFinalizeOffersDescriptor.KeyProof = 'proof';
|
|
52
|
+
VCLFinalizeOffersDescriptor.KeyProofType = 'proof_type';
|
|
53
|
+
exports.default = VCLFinalizeOffersDescriptor;
|
|
54
|
+
//# sourceMappingURL=VCLFinalizeOffersDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLFinalizeOffersDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":";;AAIA,MAAqB,2BAA2B;IAC5C,YACoB,kBAAyC,EACzC,SAA0B,EAC1B,gBAA0B,EAC1B,gBAA0B;QAH1B,uBAAkB,GAAlB,kBAAkB,CAAuB;QACzC,cAAS,GAAT,SAAS,CAAiB;QAC1B,qBAAgB,GAAhB,gBAAgB,CAAU;QAC1B,qBAAgB,GAAhB,gBAAgB,CAAU;QA+B9C,YAAO,GAAoB;YACvB,CAAC,2BAA2B,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,UAAU;YAC5D,CAAC,2BAA2B,CAAC,mBAAmB,CAAC,EAC7C,IAAI,CAAC,gBAAgB;YACzB,CAAC,2BAA2B,CAAC,mBAAmB,CAAC,EAC7C,IAAI,CAAC,gBAAgB;SAC5B,CAAC;IApCC,CAAC;IAEJ,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;IAC1C,CAAC;IAED,IAAI,yBAAyB;QACzB,OAAO,IAAI,CAAC,kBAAkB,CAAC,yBAAyB,CAAC;IAC7D,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC;IAC5C,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC;IACvC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC;IAC9C,CAAC;IAED,IAAI,iBAAiB;QACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC;IACrD,CAAC;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAUD,mBAAmB,CAAC,QAAyB,IAAI;QAC7C,MAAM,MAAM,qBAAQ,IAAI,CAAC,OAAO,CAAE,CAAC;QAEnC,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,CAAC,2BAA2B,CAAC,QAAQ,CAAC,GAAG;gBAC3C,CAAC,2BAA2B,CAAC,YAAY,CAAC,EACtC,2BAA2B,CAAC,MAAM;gBACtC,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU;aACzD,CAAC;QACN,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;;AAEe,yCAAa,GAAG,YAAY,AAAf,CAAgB;AAE7B,+CAAmB,GAAG,kBAAkB,AAArB,CAAsB;AAEzC,+CAAmB,GAAG,kBAAkB,AAArB,CAAsB;AAEzC,kCAAM,GAAG,KAAK,AAAR,CAAS;AAEf,oCAAQ,GAAG,OAAO,AAAV,CAAW;AAEnB,wCAAY,GAAG,YAAY,AAAf,CAAgB;kBAnE3B,2BAA2B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLCredentialManifest from './VCLCredentialManifest';
|
|
3
|
+
import VCLVerifiableCredential from './VCLVerifiableCredential';
|
|
4
|
+
export default class VCLGenerateOffersDescriptor {
|
|
5
|
+
readonly credentialManifest: VCLCredentialManifest;
|
|
6
|
+
readonly types: Nullish<string[]>;
|
|
7
|
+
readonly offerHashes: Nullish<string[]>;
|
|
8
|
+
readonly identificationVerifiableCredentials: VCLVerifiableCredential[];
|
|
9
|
+
constructor(credentialManifest: VCLCredentialManifest, types: Nullish<string[]>, offerHashes: Nullish<string[]>, identificationVerifiableCredentials: VCLVerifiableCredential[]);
|
|
10
|
+
payload: Dictionary<any>;
|
|
11
|
+
get exchangeId(): string;
|
|
12
|
+
get checkOffersUri(): string;
|
|
13
|
+
get did(): string;
|
|
14
|
+
static readonly KeyExchangeId = "exchangeId";
|
|
15
|
+
static readonly KeyTypes = "types";
|
|
16
|
+
static readonly KeyOfferHashes = "offerHashes";
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLGenerateOffersDescriptor {
|
|
4
|
+
constructor(credentialManifest, types = null, offerHashes = null, identificationVerifiableCredentials) {
|
|
5
|
+
this.credentialManifest = credentialManifest;
|
|
6
|
+
this.types = types;
|
|
7
|
+
this.offerHashes = offerHashes;
|
|
8
|
+
this.identificationVerifiableCredentials = identificationVerifiableCredentials;
|
|
9
|
+
this.payload = {
|
|
10
|
+
[VCLGenerateOffersDescriptor.KeyExchangeId]: this.exchangeId,
|
|
11
|
+
[VCLGenerateOffersDescriptor.KeyTypes]: this.types,
|
|
12
|
+
[VCLGenerateOffersDescriptor.KeyOfferHashes]: this.offerHashes,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
get exchangeId() {
|
|
16
|
+
return this.credentialManifest.exchangeId;
|
|
17
|
+
}
|
|
18
|
+
get checkOffersUri() {
|
|
19
|
+
return this.credentialManifest.checkOffersUri;
|
|
20
|
+
}
|
|
21
|
+
get did() {
|
|
22
|
+
return this.credentialManifest.did;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
VCLGenerateOffersDescriptor.KeyExchangeId = 'exchangeId';
|
|
26
|
+
VCLGenerateOffersDescriptor.KeyTypes = 'types';
|
|
27
|
+
VCLGenerateOffersDescriptor.KeyOfferHashes = 'offerHashes';
|
|
28
|
+
exports.default = VCLGenerateOffersDescriptor;
|
|
29
|
+
//# sourceMappingURL=VCLGenerateOffersDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLGenerateOffersDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLGenerateOffersDescriptor.ts"],"names":[],"mappings":";;AAIA,MAAqB,2BAA2B;IAC5C,YACoB,kBAAyC,EACzC,QAA2B,IAAI,EAC/B,cAAiC,IAAI,EACrC,mCAA8D;QAH9D,uBAAkB,GAAlB,kBAAkB,CAAuB;QACzC,UAAK,GAAL,KAAK,CAA0B;QAC/B,gBAAW,GAAX,WAAW,CAA0B;QACrC,wCAAmC,GAAnC,mCAAmC,CAA2B;QAGlF,YAAO,GAAoB;YACvB,CAAC,2BAA2B,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,UAAU;YAC5D,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,KAAK;YAClD,CAAC,2BAA2B,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,WAAW;SACjE,CAAC;IANC,CAAC;IAQJ,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC;IAC9C,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC;IAClD,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC;IACvC,CAAC;;AAEe,yCAAa,GAAG,YAAY,AAAf,CAAgB;AAE7B,oCAAQ,GAAG,OAAO,AAAV,CAAW;AAEnB,0CAAc,GAAG,aAAa,AAAhB,CAAiB;kBA9B9B,2BAA2B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import VCLCredentialManifest from './VCLCredentialManifest';
|
|
2
|
+
import VCLSubmission from './VCLSubmission';
|
|
3
|
+
import VCLVerifiableCredential from './VCLVerifiableCredential';
|
|
4
|
+
export default class VCLIdentificationSubmission extends VCLSubmission {
|
|
5
|
+
readonly credentialManifest: VCLCredentialManifest;
|
|
6
|
+
readonly verifiableCredentials: VCLVerifiableCredential[];
|
|
7
|
+
constructor(credentialManifest: VCLCredentialManifest, verifiableCredentials: VCLVerifiableCredential[]);
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 VCLSubmission_1 = __importDefault(require("./VCLSubmission"));
|
|
7
|
+
class VCLIdentificationSubmission extends VCLSubmission_1.default {
|
|
8
|
+
constructor(credentialManifest, verifiableCredentials) {
|
|
9
|
+
super(credentialManifest.submitPresentationUri, credentialManifest.exchangeId, credentialManifest.presentationDefinitionId, verifiableCredentials, null, credentialManifest.vendorOriginContext, credentialManifest.didJwk, credentialManifest.remoteCryptoServicesToken);
|
|
10
|
+
this.credentialManifest = credentialManifest;
|
|
11
|
+
this.verifiableCredentials = verifiableCredentials;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.default = VCLIdentificationSubmission;
|
|
15
|
+
//# sourceMappingURL=VCLIdentificationSubmission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLIdentificationSubmission.js","sourceRoot":"","sources":["../../../src/api/entities/VCLIdentificationSubmission.ts"],"names":[],"mappings":";;;;;AACA,oEAA4C;AAG5C,MAAqB,2BAA4B,SAAQ,uBAAa;IAClE,YACoB,kBAAyC,EACzC,qBAAgD;QAEhE,KAAK,CACD,kBAAkB,CAAC,qBAAqB,EACxC,kBAAkB,CAAC,UAAU,EAC7B,kBAAkB,CAAC,wBAAwB,EAC3C,qBAAqB,EACrB,IAAI,EACJ,kBAAkB,CAAC,mBAAmB,EACtC,kBAAkB,CAAC,MAAM,EACzB,kBAAkB,CAAC,yBAAyB,CAC/C,CAAC;QAZc,uBAAkB,GAAlB,kBAAkB,CAAuB;QACzC,0BAAqB,GAArB,qBAAqB,CAA2B;IAYpE,CAAC;CACJ;AAhBD,8CAgBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.issuingTypeFromString = exports.VCLIssuingType = void 0;
|
|
4
|
+
var VCLIssuingType;
|
|
5
|
+
(function (VCLIssuingType) {
|
|
6
|
+
VCLIssuingType["Career"] = "Career";
|
|
7
|
+
VCLIssuingType["Identity"] = "Identity";
|
|
8
|
+
VCLIssuingType["Refresh"] = "Refresh";
|
|
9
|
+
VCLIssuingType["Undefined"] = "Undefined";
|
|
10
|
+
})(VCLIssuingType || (exports.VCLIssuingType = VCLIssuingType = {}));
|
|
11
|
+
const issuingTypeFromString = (value) => {
|
|
12
|
+
if (value.includes(VCLIssuingType.Career)) {
|
|
13
|
+
return VCLIssuingType.Career;
|
|
14
|
+
}
|
|
15
|
+
if (value.includes(VCLIssuingType.Identity)) {
|
|
16
|
+
return VCLIssuingType.Identity;
|
|
17
|
+
}
|
|
18
|
+
if (value.includes(VCLIssuingType.Refresh)) {
|
|
19
|
+
return VCLIssuingType.Refresh;
|
|
20
|
+
}
|
|
21
|
+
return VCLIssuingType.Undefined;
|
|
22
|
+
};
|
|
23
|
+
exports.issuingTypeFromString = issuingTypeFromString;
|
|
24
|
+
//# sourceMappingURL=VCLIssuingType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLIssuingType.js","sourceRoot":"","sources":["../../../src/api/entities/VCLIssuingType.ts"],"names":[],"mappings":";;;AACA,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;AAC3B,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAEM,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAkB,EAAE;IACnE,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;QACxC,OAAO,cAAc,CAAC,MAAM,CAAC;IACjC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1C,OAAO,cAAc,CAAC,QAAQ,CAAC;IACnC,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,cAAc,CAAC,OAAO,CAAC;IAClC,CAAC;IACD,OAAO,cAAc,CAAC,SAAS,CAAC;AACpC,CAAC,CAAC;AAXW,QAAA,qBAAqB,yBAWhC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
export default class VCLJwt {
|
|
3
|
+
signedJwt: SignedJWT;
|
|
4
|
+
encodedJwt: string;
|
|
5
|
+
header: Dictionary<any>;
|
|
6
|
+
payload: Dictionary<any>;
|
|
7
|
+
signature: string;
|
|
8
|
+
constructor(signedJwt: SignedJWT);
|
|
9
|
+
static fromEncodedJwt(encodedJwt: string): VCLJwt;
|
|
10
|
+
get kid(): string;
|
|
11
|
+
get jwk(): Dictionary<any>;
|
|
12
|
+
getHeader(): Dictionary<any>;
|
|
13
|
+
getPayload(): Dictionary<any>;
|
|
14
|
+
getSignature(): string;
|
|
15
|
+
get iss(): Nullish<string>;
|
|
16
|
+
get aud(): Nullish<string>;
|
|
17
|
+
get sub(): Nullish<string>;
|
|
18
|
+
get jti(): Nullish<string>;
|
|
19
|
+
get iat(): Nullish<string>;
|
|
20
|
+
get nbf(): Nullish<string>;
|
|
21
|
+
get exp(): Nullish<string>;
|
|
22
|
+
get nonce(): Nullish<string>;
|
|
23
|
+
}
|
|
24
|
+
export declare class SignedJWT {
|
|
25
|
+
readonly header: string;
|
|
26
|
+
readonly payload: string;
|
|
27
|
+
readonly signature: string;
|
|
28
|
+
constructor(header: string, payload: string, signature: string);
|
|
29
|
+
static parse(s: string): Nullish<SignedJWT>;
|
|
30
|
+
serialize(): string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
exports.SignedJWT = void 0;
|
|
7
|
+
const VCLLog_1 = __importDefault(require("../../impl/utils/VCLLog"));
|
|
8
|
+
class VCLJwt {
|
|
9
|
+
constructor(signedJwt) {
|
|
10
|
+
this.signedJwt = signedJwt;
|
|
11
|
+
this.signedJwt = signedJwt;
|
|
12
|
+
this.encodedJwt = signedJwt.serialize();
|
|
13
|
+
this.header = this.getHeader();
|
|
14
|
+
this.payload = this.getPayload();
|
|
15
|
+
this.signature = this.getSignature();
|
|
16
|
+
}
|
|
17
|
+
static fromEncodedJwt(encodedJwt) {
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
let item = new VCLJwt(new SignedJWT('', '', ''));
|
|
20
|
+
try {
|
|
21
|
+
const encodedJwtArr = encodedJwt.split('.');
|
|
22
|
+
item = new VCLJwt(new SignedJWT((_a = encodedJwtArr[0]) !== null && _a !== void 0 ? _a : '', (_b = encodedJwtArr[1]) !== null && _b !== void 0 ? _b : '', (_c = encodedJwtArr[2]) !== null && _c !== void 0 ? _c : ''));
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
VCLLog_1.default.error(e);
|
|
26
|
+
}
|
|
27
|
+
return item;
|
|
28
|
+
}
|
|
29
|
+
get kid() {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
return (_b = (_a = this.header.kid) !== null && _a !== void 0 ? _a : this.jwk.kid) !== null && _b !== void 0 ? _b : '';
|
|
32
|
+
}
|
|
33
|
+
get jwk() {
|
|
34
|
+
var _a;
|
|
35
|
+
return (_a = this.header.jwk) !== null && _a !== void 0 ? _a : {};
|
|
36
|
+
}
|
|
37
|
+
getHeader() {
|
|
38
|
+
const buff = Buffer.from(this.signedJwt.header, 'base64');
|
|
39
|
+
const text = buff.toString('utf-8');
|
|
40
|
+
return JSON.parse(text || '{}');
|
|
41
|
+
}
|
|
42
|
+
getPayload() {
|
|
43
|
+
const buff = Buffer.from(this.signedJwt.payload, 'base64');
|
|
44
|
+
const text = buff.toString('utf-8');
|
|
45
|
+
return JSON.parse(text || '{}');
|
|
46
|
+
}
|
|
47
|
+
getSignature() {
|
|
48
|
+
return this.signedJwt.signature;
|
|
49
|
+
}
|
|
50
|
+
get iss() {
|
|
51
|
+
return this.payload[CodingKeys.KeyIss];
|
|
52
|
+
}
|
|
53
|
+
get aud() {
|
|
54
|
+
return this.payload[CodingKeys.KeyAud];
|
|
55
|
+
}
|
|
56
|
+
get sub() {
|
|
57
|
+
return this.payload[CodingKeys.KeySub];
|
|
58
|
+
}
|
|
59
|
+
get jti() {
|
|
60
|
+
return this.payload[CodingKeys.KeyJti];
|
|
61
|
+
}
|
|
62
|
+
get iat() {
|
|
63
|
+
return this.payload[CodingKeys.KeyIat];
|
|
64
|
+
}
|
|
65
|
+
get nbf() {
|
|
66
|
+
return this.payload[CodingKeys.KeyNbf];
|
|
67
|
+
}
|
|
68
|
+
get exp() {
|
|
69
|
+
return this.payload[CodingKeys.KeyExp];
|
|
70
|
+
}
|
|
71
|
+
get nonce() {
|
|
72
|
+
return this.payload[CodingKeys.KeyNonce];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.default = VCLJwt;
|
|
76
|
+
class SignedJWT {
|
|
77
|
+
constructor(header, payload, signature) {
|
|
78
|
+
this.header = header;
|
|
79
|
+
this.payload = payload;
|
|
80
|
+
this.signature = signature;
|
|
81
|
+
}
|
|
82
|
+
static parse(s) {
|
|
83
|
+
var _a, _b, _c;
|
|
84
|
+
const splitted = s.split('.');
|
|
85
|
+
return new SignedJWT((_a = splitted[0]) !== null && _a !== void 0 ? _a : '', (_b = splitted[1]) !== null && _b !== void 0 ? _b : '', (_c = splitted[2]) !== null && _c !== void 0 ? _c : '');
|
|
86
|
+
}
|
|
87
|
+
serialize() {
|
|
88
|
+
const items = [this.header, this.payload, this.signature].filter((item) => item.length);
|
|
89
|
+
return items.join('.');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.SignedJWT = SignedJWT;
|
|
93
|
+
class CodingKeys {
|
|
94
|
+
}
|
|
95
|
+
CodingKeys.KeyTyp = 'typ';
|
|
96
|
+
CodingKeys.KeyAlg = 'alg';
|
|
97
|
+
CodingKeys.KeyKid = 'kid';
|
|
98
|
+
CodingKeys.KeyJwk = 'jwk';
|
|
99
|
+
CodingKeys.KeyX = 'x';
|
|
100
|
+
CodingKeys.KeyY = 'y';
|
|
101
|
+
CodingKeys.KeyHeader = 'header';
|
|
102
|
+
CodingKeys.KeyPayload = 'payload';
|
|
103
|
+
CodingKeys.KeySignature = 'signature';
|
|
104
|
+
CodingKeys.KeyIss = 'iss';
|
|
105
|
+
CodingKeys.KeyAud = 'aud';
|
|
106
|
+
CodingKeys.KeySub = 'sub';
|
|
107
|
+
CodingKeys.KeyJti = 'jti';
|
|
108
|
+
CodingKeys.KeyIat = 'iat';
|
|
109
|
+
CodingKeys.KeyNbf = 'nbf';
|
|
110
|
+
CodingKeys.KeyExp = 'exp';
|
|
111
|
+
CodingKeys.KeyNonce = 'nonce';
|
|
112
|
+
//# sourceMappingURL=VCLJwt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLJwt.js","sourceRoot":"","sources":["../../../src/api/entities/VCLJwt.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
export default class VCLJwtDescriptor {
|
|
3
|
+
payload: Nullish<Dictionary<any>>;
|
|
4
|
+
jti: string;
|
|
5
|
+
iss: string;
|
|
6
|
+
aud: Nullish<string>;
|
|
7
|
+
constructor(payload: Nullish<Dictionary<any>>, jti: string | undefined, iss: string, aud?: Nullish<string>);
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const crypto_1 = require("crypto");
|
|
4
|
+
class VCLJwtDescriptor {
|
|
5
|
+
constructor(payload, jti = (0, crypto_1.randomUUID)().toString(), iss, aud = null) {
|
|
6
|
+
this.payload = payload;
|
|
7
|
+
this.jti = jti;
|
|
8
|
+
this.iss = iss;
|
|
9
|
+
this.aud = aud;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = VCLJwtDescriptor;
|
|
13
|
+
//# sourceMappingURL=VCLJwtDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLJwtDescriptor.js","sourceRoot":"","sources":["../../../src/api/entities/VCLJwtDescriptor.ts"],"names":[],"mappings":";;AAAA,mCAAoC;AAGpC,MAAqB,gBAAgB;IACjC,YAMW,OAAiC,EAMjC,MAAc,IAAA,mBAAU,GAAE,CAAC,QAAQ,EAAE,EAMrC,GAAW,EAMX,MAAuB,IAAI;QAlB3B,YAAO,GAAP,OAAO,CAA0B;QAMjC,QAAG,GAAH,GAAG,CAAkC;QAMrC,QAAG,GAAH,GAAG,CAAQ;QAMX,QAAG,GAAH,GAAG,CAAwB;IACnC,CAAC;CACP;AA3BD,mCA2BC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VCLJwtVerifiableCredentials {
|
|
4
|
+
constructor(passedCredentials, failedCredentials) {
|
|
5
|
+
this.passedCredentials = passedCredentials;
|
|
6
|
+
this.failedCredentials = failedCredentials;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = VCLJwtVerifiableCredentials;
|
|
10
|
+
//# sourceMappingURL=VCLJwtVerifiableCredentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLJwtVerifiableCredentials.js","sourceRoot":"","sources":["../../../src/api/entities/VCLJwtVerifiableCredentials.ts"],"names":[],"mappings":";;AAEA,MAAqB,2BAA2B;IAC5C,YACoB,iBAA2B,EAC3B,iBAA2B;QAD3B,sBAAiB,GAAjB,iBAAiB,CAAU;QAC3B,sBAAiB,GAAjB,iBAAiB,CAAU;IAC5C,CAAC;CACP;AALD,8CAKC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
export default class VCLOffer {
|
|
3
|
+
payload: Dictionary<any>;
|
|
4
|
+
constructor(payload: Dictionary<any>);
|
|
5
|
+
get issuerId(): string;
|
|
6
|
+
get id(): string;
|
|
7
|
+
static CodingKeys: {
|
|
8
|
+
new (): {};
|
|
9
|
+
readonly KeyId: string;
|
|
10
|
+
readonly KeyDid: string;
|
|
11
|
+
readonly KeyIssuer: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
3
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
4
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
5
|
+
};
|
|
6
|
+
var _a;
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
class VCLOffer {
|
|
9
|
+
constructor(payload) {
|
|
10
|
+
this.payload = payload;
|
|
11
|
+
}
|
|
12
|
+
get issuerId() {
|
|
13
|
+
var _b;
|
|
14
|
+
const issuerObject = this.payload
|
|
15
|
+
? this.payload[VCLOffer.CodingKeys.KeyIssuer]
|
|
16
|
+
: null;
|
|
17
|
+
return issuerObject && issuerObject[VCLOffer.CodingKeys.KeyId]
|
|
18
|
+
? issuerObject[VCLOffer.CodingKeys.KeyId]
|
|
19
|
+
: this.payload
|
|
20
|
+
? (_b = this.payload[VCLOffer.CodingKeys.KeyIssuer]) !== null && _b !== void 0 ? _b : ''
|
|
21
|
+
: '';
|
|
22
|
+
}
|
|
23
|
+
get id() {
|
|
24
|
+
var _b;
|
|
25
|
+
return this.payload
|
|
26
|
+
? (_b = this.payload[VCLOffer.CodingKeys.KeyId]) !== null && _b !== void 0 ? _b : ''
|
|
27
|
+
: '';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
VCLOffer.CodingKeys = (_a = class {
|
|
31
|
+
},
|
|
32
|
+
__setFunctionName(_a, "CodingKeys"),
|
|
33
|
+
_a.KeyId = 'id',
|
|
34
|
+
_a.KeyDid = 'did',
|
|
35
|
+
_a.KeyIssuer = 'issuer',
|
|
36
|
+
_a);
|
|
37
|
+
exports.default = VCLOffer;
|
|
38
|
+
//# sourceMappingURL=VCLOffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLOffer.js","sourceRoot":"","sources":["../../../src/api/entities/VCLOffer.ts"],"names":[],"mappings":";;;;;;;AAGA,MAAqB,QAAQ;IAGzB,YAAY,OAAwB;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ;;QACR,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;YAC7C,CAAC,CAAC,IAAI,CAAC;QAEX,OAAO,YAAY,IAAI,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;YAC1D,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,OAAO;gBACd,CAAC,CAAC,MAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,mCAAI,EAAE;gBACnD,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;IAED,IAAI,EAAE;;QACF,OAAO,IAAI,CAAC,OAAO;YACf,CAAC,CAAC,MAAA,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,mCAAI,EAAE;YAC/C,CAAC,CAAC,EAAE,CAAC;IACb,CAAC;;AAEM,mBAAU,SAAG;KAMnB;;IALmB,QAAK,GAAW,IAAK;IAErB,SAAM,GAAW,KAAM;IAEvB,YAAS,GAAW,QAAS;QAC/C;kBA/Be,QAAQ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dictionary, Nullish } from '../VCLTypes';
|
|
2
|
+
import VCLToken from './VCLToken';
|
|
3
|
+
import VCLOffer from './VCLOffer';
|
|
4
|
+
export default class VCLOffers {
|
|
5
|
+
readonly payload: Dictionary<any>;
|
|
6
|
+
readonly all: VCLOffer[];
|
|
7
|
+
readonly responseCode: number;
|
|
8
|
+
readonly sessionToken: VCLToken;
|
|
9
|
+
readonly challenge: Nullish<string>;
|
|
10
|
+
constructor(payload: Dictionary<any>, all: VCLOffer[], responseCode: number, sessionToken: VCLToken, challenge?: Nullish<string>);
|
|
11
|
+
static readonly fromPayload: (payload: Dictionary<any>, responseCode: number, sessionToken: VCLToken) => VCLOffers;
|
|
12
|
+
static readonly offersFromJsonArray: (offersJsonArray: Dictionary<any>[]) => VCLOffer[];
|
|
13
|
+
static CodingKeys: {
|
|
14
|
+
KeyOffers: string;
|
|
15
|
+
KeyChallenge: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 VCLOffer_1 = __importDefault(require("./VCLOffer"));
|
|
7
|
+
class VCLOffers {
|
|
8
|
+
constructor(payload, all, responseCode, sessionToken, challenge = null) {
|
|
9
|
+
this.payload = payload;
|
|
10
|
+
this.all = all;
|
|
11
|
+
this.responseCode = responseCode;
|
|
12
|
+
this.sessionToken = sessionToken;
|
|
13
|
+
this.challenge = challenge;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
VCLOffers.fromPayload = (payload, responseCode, sessionToken) => {
|
|
17
|
+
var _a;
|
|
18
|
+
if (payload) {
|
|
19
|
+
if (Array.isArray(payload)) {
|
|
20
|
+
return new VCLOffers({ [VCLOffers.CodingKeys.KeyOffers]: payload }, VCLOffers.offersFromJsonArray(payload), responseCode, sessionToken);
|
|
21
|
+
}
|
|
22
|
+
return new VCLOffers(payload, VCLOffers.offersFromJsonArray((_a = payload[VCLOffers.CodingKeys.KeyOffers]) !== null && _a !== void 0 ? _a : []), responseCode, sessionToken, payload[VCLOffers.CodingKeys.KeyChallenge]);
|
|
23
|
+
}
|
|
24
|
+
return new VCLOffers({}, [], responseCode, sessionToken);
|
|
25
|
+
};
|
|
26
|
+
VCLOffers.offersFromJsonArray = (offersJsonArray) => {
|
|
27
|
+
return offersJsonArray
|
|
28
|
+
.filter((offerJsonObject) => offerJsonObject != null)
|
|
29
|
+
.map((offerJsonObject) => new VCLOffer_1.default(offerJsonObject));
|
|
30
|
+
};
|
|
31
|
+
VCLOffers.CodingKeys = {
|
|
32
|
+
KeyOffers: 'offers',
|
|
33
|
+
KeyChallenge: 'challenge',
|
|
34
|
+
};
|
|
35
|
+
exports.default = VCLOffers;
|
|
36
|
+
//# sourceMappingURL=VCLOffers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLOffers.js","sourceRoot":"","sources":["../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":";;;;;AAEA,0DAAkC;AAElC,MAAqB,SAAS;IAC1B,YACoB,OAAwB,EACxB,GAAe,EACf,YAAoB,EACpB,YAAsB,EACtB,YAA6B,IAAI;QAJjC,YAAO,GAAP,OAAO,CAAiB;QACxB,QAAG,GAAH,GAAG,CAAY;QACf,iBAAY,GAAZ,YAAY,CAAQ;QACpB,iBAAY,GAAZ,YAAY,CAAU;QACtB,cAAS,GAAT,SAAS,CAAwB;IAClD,CAAC;;AAEY,qBAAW,GAAG,CAC1B,OAAwB,EACxB,YAAoB,EACpB,YAAsB,EACb,EAAE;;IACX,IAAI,OAAO,EAAE,CAAC;QACV,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,OAAO,IAAI,SAAS,CAChB,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,EAC7C,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,EACtC,YAAY,EACZ,YAAY,CACf,CAAC;QACN,CAAC;QACD,OAAO,IAAI,SAAS,CAChB,OAAO,EACP,SAAS,CAAC,mBAAmB,CACzB,MAAA,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,mCAAI,EAAE,CAChD,EACD,YAAY,EACZ,YAAY,EACZ,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAC7C,CAAC;IACN,CAAC;IACD,OAAO,IAAI,SAAS,CAAC,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAC7D,CAAC,CAAC;AAEc,6BAAmB,GAAG,CAClC,eAAkC,EACxB,EAAE;IACZ,OAAO,eAAe;SACjB,MAAM,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,IAAI,IAAI,CAAC;SACpD,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC,IAAI,kBAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC;AAEK,oBAAU,GAAG;IAChB,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,WAAW;CAC5B,CAAC;kBA/Ce,SAAS"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Dictionary } from '../VCLTypes';
|
|
2
|
+
import VCLService from './VCLService';
|
|
3
|
+
export default class VCLOrganization {
|
|
4
|
+
readonly payload: Dictionary<any>;
|
|
5
|
+
readonly did: string;
|
|
6
|
+
get serviceCredentialAgentIssuers(): VCLService[];
|
|
7
|
+
constructor(payload: Dictionary<any>);
|
|
8
|
+
private parseServiceCredentialAgentIssuers;
|
|
9
|
+
static readonly KeyService = "service";
|
|
10
|
+
static readonly KeyAlsoKnownAs = "knownAs";
|
|
11
|
+
static readonly KeyId = "id";
|
|
12
|
+
}
|