@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.
Files changed (534) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +1 -0
  3. package/dist/api/VCL.d.ts +52 -0
  4. package/dist/api/VCL.js +3 -0
  5. package/dist/api/VCL.js.map +1 -0
  6. package/dist/api/VCLEnvironment.d.ts +8 -0
  7. package/dist/api/VCLEnvironment.js +27 -0
  8. package/dist/api/VCLEnvironment.js.map +1 -0
  9. package/dist/api/VCLProvider.d.ts +6 -0
  10. package/dist/api/VCLProvider.js +16 -0
  11. package/dist/api/VCLProvider.js.map +1 -0
  12. package/dist/api/VCLSignatureAlgorithm.d.ts +5 -0
  13. package/dist/api/VCLSignatureAlgorithm.js +9 -0
  14. package/dist/api/VCLSignatureAlgorithm.js.map +1 -0
  15. package/dist/api/VCLTypes.d.ts +2 -0
  16. package/dist/api/VCLTypes.js +3 -0
  17. package/dist/api/VCLTypes.js.map +1 -0
  18. package/dist/api/VCLXVnfProtocolVersion.d.ts +6 -0
  19. package/dist/api/VCLXVnfProtocolVersion.js +21 -0
  20. package/dist/api/VCLXVnfProtocolVersion.js.map +1 -0
  21. package/dist/api/entities/VCLAuthToken.d.ts +12 -0
  22. package/dist/api/entities/VCLAuthToken.js +22 -0
  23. package/dist/api/entities/VCLAuthToken.js.map +1 -0
  24. package/dist/api/entities/VCLAuthTokenDescriptor.d.ts +21 -0
  25. package/dist/api/entities/VCLAuthTokenDescriptor.js +54 -0
  26. package/dist/api/entities/VCLAuthTokenDescriptor.js.map +1 -0
  27. package/dist/api/entities/VCLCountries.d.ts +8 -0
  28. package/dist/api/entities/VCLCountries.js +20 -0
  29. package/dist/api/entities/VCLCountries.js.map +1 -0
  30. package/dist/api/entities/VCLCountry.d.ts +13 -0
  31. package/dist/api/entities/VCLCountry.js +20 -0
  32. package/dist/api/entities/VCLCountry.js.map +1 -0
  33. package/dist/api/entities/VCLCountryCodes.d.ts +253 -0
  34. package/dist/api/entities/VCLCountryCodes.js +257 -0
  35. package/dist/api/entities/VCLCountryCodes.js.map +1 -0
  36. package/dist/api/entities/VCLCredentialManifest.d.ts +35 -0
  37. package/dist/api/entities/VCLCredentialManifest.js +73 -0
  38. package/dist/api/entities/VCLCredentialManifest.js.map +1 -0
  39. package/dist/api/entities/VCLCredentialManifestDescriptor.d.ts +27 -0
  40. package/dist/api/entities/VCLCredentialManifestDescriptor.js +50 -0
  41. package/dist/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
  42. package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +10 -0
  43. package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +14 -0
  44. package/dist/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
  45. package/dist/api/entities/VCLCredentialManifestDescriptorByService.d.ts +12 -0
  46. package/dist/api/entities/VCLCredentialManifestDescriptorByService.js +18 -0
  47. package/dist/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
  48. package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +13 -0
  49. package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js +35 -0
  50. package/dist/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
  51. package/dist/api/entities/VCLCredentialType.d.ts +17 -0
  52. package/dist/api/entities/VCLCredentialType.js +21 -0
  53. package/dist/api/entities/VCLCredentialType.js.map +1 -0
  54. package/dist/api/entities/VCLCredentialTypeSchema.d.ts +5 -0
  55. package/dist/api/entities/VCLCredentialTypeSchema.js +9 -0
  56. package/dist/api/entities/VCLCredentialTypeSchema.js.map +1 -0
  57. package/dist/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
  58. package/dist/api/entities/VCLCredentialTypeSchemas.js +9 -0
  59. package/dist/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
  60. package/dist/api/entities/VCLCredentialTypes.d.ts +9 -0
  61. package/dist/api/entities/VCLCredentialTypes.js +23 -0
  62. package/dist/api/entities/VCLCredentialTypes.js.map +1 -0
  63. package/dist/api/entities/VCLCredentialTypesUIFormSchema.d.ts +9 -0
  64. package/dist/api/entities/VCLCredentialTypesUIFormSchema.js +13 -0
  65. package/dist/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
  66. package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +5 -0
  67. package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +10 -0
  68. package/dist/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
  69. package/dist/api/entities/VCLDeepLink.d.ts +17 -0
  70. package/dist/api/entities/VCLDeepLink.js +48 -0
  71. package/dist/api/entities/VCLDeepLink.js.map +1 -0
  72. package/dist/api/entities/VCLDidDocument.d.ts +14 -0
  73. package/dist/api/entities/VCLDidDocument.js +46 -0
  74. package/dist/api/entities/VCLDidDocument.js.map +1 -0
  75. package/dist/api/entities/VCLDidJwk.d.ts +24 -0
  76. package/dist/api/entities/VCLDidJwk.js +56 -0
  77. package/dist/api/entities/VCLDidJwk.js.map +1 -0
  78. package/dist/api/entities/VCLDidJwkDescriptor.d.ts +8 -0
  79. package/dist/api/entities/VCLDidJwkDescriptor.js +14 -0
  80. package/dist/api/entities/VCLDidJwkDescriptor.js.map +1 -0
  81. package/dist/api/entities/VCLExchange.d.ts +13 -0
  82. package/dist/api/entities/VCLExchange.js +30 -0
  83. package/dist/api/entities/VCLExchange.js.map +1 -0
  84. package/dist/api/entities/VCLExchangeDescriptor.d.ts +11 -0
  85. package/dist/api/entities/VCLExchangeDescriptor.js +20 -0
  86. package/dist/api/entities/VCLExchangeDescriptor.js.map +1 -0
  87. package/dist/api/entities/VCLFinalizeOffersDescriptor.d.ts +25 -0
  88. package/dist/api/entities/VCLFinalizeOffersDescriptor.js +54 -0
  89. package/dist/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
  90. package/dist/api/entities/VCLGenerateOffersDescriptor.d.ts +17 -0
  91. package/dist/api/entities/VCLGenerateOffersDescriptor.js +29 -0
  92. package/dist/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
  93. package/dist/api/entities/VCLIdentificationSubmission.d.ts +8 -0
  94. package/dist/api/entities/VCLIdentificationSubmission.js +15 -0
  95. package/dist/api/entities/VCLIdentificationSubmission.js.map +1 -0
  96. package/dist/api/entities/VCLIssuingType.d.ts +7 -0
  97. package/dist/api/entities/VCLIssuingType.js +24 -0
  98. package/dist/api/entities/VCLIssuingType.js.map +1 -0
  99. package/dist/api/entities/VCLJwt.d.ts +31 -0
  100. package/dist/api/entities/VCLJwt.js +112 -0
  101. package/dist/api/entities/VCLJwt.js.map +1 -0
  102. package/dist/api/entities/VCLJwtDescriptor.d.ts +8 -0
  103. package/dist/api/entities/VCLJwtDescriptor.js +13 -0
  104. package/dist/api/entities/VCLJwtDescriptor.js.map +1 -0
  105. package/dist/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
  106. package/dist/api/entities/VCLJwtVerifiableCredentials.js +10 -0
  107. package/dist/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
  108. package/dist/api/entities/VCLOffer.d.ts +13 -0
  109. package/dist/api/entities/VCLOffer.js +38 -0
  110. package/dist/api/entities/VCLOffer.js.map +1 -0
  111. package/dist/api/entities/VCLOffers.d.ts +17 -0
  112. package/dist/api/entities/VCLOffers.js +36 -0
  113. package/dist/api/entities/VCLOffers.js.map +1 -0
  114. package/dist/api/entities/VCLOrganization.d.ts +12 -0
  115. package/dist/api/entities/VCLOrganization.js +42 -0
  116. package/dist/api/entities/VCLOrganization.js.map +1 -0
  117. package/dist/api/entities/VCLOrganizations.d.ts +6 -0
  118. package/dist/api/entities/VCLOrganizations.js +10 -0
  119. package/dist/api/entities/VCLOrganizations.js.map +1 -0
  120. package/dist/api/entities/VCLOrganizationsSearchDescriptor.d.ts +29 -0
  121. package/dist/api/entities/VCLOrganizationsSearchDescriptor.js +66 -0
  122. package/dist/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
  123. package/dist/api/entities/VCLPlace.d.ts +7 -0
  124. package/dist/api/entities/VCLPlace.js +11 -0
  125. package/dist/api/entities/VCLPlace.js.map +1 -0
  126. package/dist/api/entities/VCLPresentationRequest.d.ts +36 -0
  127. package/dist/api/entities/VCLPresentationRequest.js +57 -0
  128. package/dist/api/entities/VCLPresentationRequest.js.map +1 -0
  129. package/dist/api/entities/VCLPresentationRequestDescriptor.d.ts +18 -0
  130. package/dist/api/entities/VCLPresentationRequestDescriptor.js +32 -0
  131. package/dist/api/entities/VCLPresentationRequestDescriptor.js.map +1 -0
  132. package/dist/api/entities/VCLPresentationSubmission.d.ts +7 -0
  133. package/dist/api/entities/VCLPresentationSubmission.js +14 -0
  134. package/dist/api/entities/VCLPresentationSubmission.js.map +1 -0
  135. package/dist/api/entities/VCLPublicJwk.d.ts +17 -0
  136. package/dist/api/entities/VCLPublicJwk.js +27 -0
  137. package/dist/api/entities/VCLPublicJwk.js.map +1 -0
  138. package/dist/api/entities/VCLPushDelegate.d.ts +9 -0
  139. package/dist/api/entities/VCLPushDelegate.js +18 -0
  140. package/dist/api/entities/VCLPushDelegate.js.map +1 -0
  141. package/dist/api/entities/VCLRegion.d.ts +7 -0
  142. package/dist/api/entities/VCLRegion.js +15 -0
  143. package/dist/api/entities/VCLRegion.js.map +1 -0
  144. package/dist/api/entities/VCLRegions.d.ts +5 -0
  145. package/dist/api/entities/VCLRegions.js +9 -0
  146. package/dist/api/entities/VCLRegions.js.map +1 -0
  147. package/dist/api/entities/VCLService.d.ts +13 -0
  148. package/dist/api/entities/VCLService.js +17 -0
  149. package/dist/api/entities/VCLService.js.map +1 -0
  150. package/dist/api/entities/VCLServiceType.d.ts +14 -0
  151. package/dist/api/entities/VCLServiceType.js +49 -0
  152. package/dist/api/entities/VCLServiceType.js.map +1 -0
  153. package/dist/api/entities/VCLServiceTypes.d.ts +9 -0
  154. package/dist/api/entities/VCLServiceTypes.js +51 -0
  155. package/dist/api/entities/VCLServiceTypes.js.map +1 -0
  156. package/dist/api/entities/VCLSubmission.d.ts +42 -0
  157. package/dist/api/entities/VCLSubmission.js +81 -0
  158. package/dist/api/entities/VCLSubmission.js.map +1 -0
  159. package/dist/api/entities/VCLSubmissionResult.d.ts +13 -0
  160. package/dist/api/entities/VCLSubmissionResult.js +16 -0
  161. package/dist/api/entities/VCLSubmissionResult.js.map +1 -0
  162. package/dist/api/entities/VCLToken.d.ts +9 -0
  163. package/dist/api/entities/VCLToken.js +25 -0
  164. package/dist/api/entities/VCLToken.js.map +1 -0
  165. package/dist/api/entities/VCLVerifiableCredential.d.ts +7 -0
  166. package/dist/api/entities/VCLVerifiableCredential.js +13 -0
  167. package/dist/api/entities/VCLVerifiableCredential.js.map +1 -0
  168. package/dist/api/entities/VCLVerifiedProfile.d.ts +17 -0
  169. package/dist/api/entities/VCLVerifiedProfile.js +37 -0
  170. package/dist/api/entities/VCLVerifiedProfile.js.map +1 -0
  171. package/dist/api/entities/VCLVerifiedProfileDescriptor.d.ts +4 -0
  172. package/dist/api/entities/VCLVerifiedProfileDescriptor.js +9 -0
  173. package/dist/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
  174. package/dist/api/entities/error/VCLError.d.ts +20 -0
  175. package/dist/api/entities/error/VCLError.js +69 -0
  176. package/dist/api/entities/error/VCLError.js.map +1 -0
  177. package/dist/api/entities/error/VCLErrorCode.d.ts +16 -0
  178. package/dist/api/entities/error/VCLErrorCode.js +20 -0
  179. package/dist/api/entities/error/VCLErrorCode.js.map +1 -0
  180. package/dist/api/entities/error/VCLStatusCode.d.ts +6 -0
  181. package/dist/api/entities/error/VCLStatusCode.js +10 -0
  182. package/dist/api/entities/error/VCLStatusCode.js.map +1 -0
  183. package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +9 -0
  184. package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js +12 -0
  185. package/dist/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
  186. package/dist/api/entities/initialization/VCLInitializationDescriptor.d.ts +12 -0
  187. package/dist/api/entities/initialization/VCLInitializationDescriptor.js +19 -0
  188. package/dist/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
  189. package/dist/api/entities/initialization/VCLLogService.d.ts +10 -0
  190. package/dist/api/entities/initialization/VCLLogService.js +3 -0
  191. package/dist/api/entities/initialization/VCLLogService.js.map +1 -0
  192. package/dist/api/jwt/VCLJwtSignService.d.ts +8 -0
  193. package/dist/api/jwt/VCLJwtSignService.js +3 -0
  194. package/dist/api/jwt/VCLJwtSignService.js.map +1 -0
  195. package/dist/api/jwt/VCLJwtVerifyService.d.ts +7 -0
  196. package/dist/api/jwt/VCLJwtVerifyService.js +3 -0
  197. package/dist/api/jwt/VCLJwtVerifyService.js.map +1 -0
  198. package/dist/api/keys/VCLKeyService.d.ts +5 -0
  199. package/dist/api/keys/VCLKeyService.js +3 -0
  200. package/dist/api/keys/VCLKeyService.js.map +1 -0
  201. package/dist/impl/GlobalConfig.d.ts +18 -0
  202. package/dist/impl/GlobalConfig.js +50 -0
  203. package/dist/impl/GlobalConfig.js.map +1 -0
  204. package/dist/impl/VCLImpl.d.ts +89 -0
  205. package/dist/impl/VCLImpl.js +291 -0
  206. package/dist/impl/VCLImpl.js.map +1 -0
  207. package/dist/impl/VclBlocksProvider.d.ts +36 -0
  208. package/dist/impl/VclBlocksProvider.js +98 -0
  209. package/dist/impl/VclBlocksProvider.js.map +1 -0
  210. package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.d.ts +1 -0
  211. package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js +3 -0
  212. package/dist/impl/data/infrastructure/jwt/JwtServiceImpl.js.map +1 -0
  213. package/dist/impl/data/infrastructure/network/HttpMethod.d.ts +4 -0
  214. package/dist/impl/data/infrastructure/network/HttpMethod.js +9 -0
  215. package/dist/impl/data/infrastructure/network/HttpMethod.js.map +1 -0
  216. package/dist/impl/data/infrastructure/network/NetworkServiceImpl.d.ts +8 -0
  217. package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js +65 -0
  218. package/dist/impl/data/infrastructure/network/NetworkServiceImpl.js.map +1 -0
  219. package/dist/impl/data/infrastructure/network/Request.d.ts +16 -0
  220. package/dist/impl/data/infrastructure/network/Request.js +24 -0
  221. package/dist/impl/data/infrastructure/network/Request.js.map +1 -0
  222. package/dist/impl/data/infrastructure/network/Response.d.ts +5 -0
  223. package/dist/impl/data/infrastructure/network/Response.js +10 -0
  224. package/dist/impl/data/infrastructure/network/Response.js.map +1 -0
  225. package/dist/impl/data/models/CountriesModelImpl.d.ts +11 -0
  226. package/dist/impl/data/models/CountriesModelImpl.js +24 -0
  227. package/dist/impl/data/models/CountriesModelImpl.js.map +1 -0
  228. package/dist/impl/data/models/CredentialTypeSchemasModelImpl.d.ts +11 -0
  229. package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js +25 -0
  230. package/dist/impl/data/models/CredentialTypeSchemasModelImpl.js.map +1 -0
  231. package/dist/impl/data/models/CredentialTypesModelImpl.d.ts +11 -0
  232. package/dist/impl/data/models/CredentialTypesModelImpl.js +24 -0
  233. package/dist/impl/data/models/CredentialTypesModelImpl.js.map +1 -0
  234. package/dist/impl/data/repositories/AuthTokenRepositoryImpl.d.ts +11 -0
  235. package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js +63 -0
  236. package/dist/impl/data/repositories/AuthTokenRepositoryImpl.js.map +1 -0
  237. package/dist/impl/data/repositories/CountriesRepositoryImpl.d.ts +10 -0
  238. package/dist/impl/data/repositories/CountriesRepositoryImpl.js +90 -0
  239. package/dist/impl/data/repositories/CountriesRepositoryImpl.js.map +1 -0
  240. package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.d.ts +8 -0
  241. package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js +42 -0
  242. package/dist/impl/data/repositories/CredentialManifestRepositoryImpl.js.map +1 -0
  243. package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.d.ts +9 -0
  244. package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js +75 -0
  245. package/dist/impl/data/repositories/CredentialTypeSchemaRepositoryImpl.js.map +1 -0
  246. package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.d.ts +9 -0
  247. package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js +79 -0
  248. package/dist/impl/data/repositories/CredentialTypesRepositoryImpl.js.map +1 -0
  249. package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.d.ts +12 -0
  250. package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js +125 -0
  251. package/dist/impl/data/repositories/CredentialTypesUIFormSchemaRepositoryImpl.js.map +1 -0
  252. package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.d.ts +10 -0
  253. package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js +41 -0
  254. package/dist/impl/data/repositories/ExchangeProgressRepositoryImpl.js.map +1 -0
  255. package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.d.ts +11 -0
  256. package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js +47 -0
  257. package/dist/impl/data/repositories/FinalizeOffersRepositoryImpl.js.map +1 -0
  258. package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.d.ts +10 -0
  259. package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js +42 -0
  260. package/dist/impl/data/repositories/GenerateOffersRepositoryImpl.js.map +1 -0
  261. package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.d.ts +3 -0
  262. package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js +10 -0
  263. package/dist/impl/data/repositories/IdentificationSubmissionRepositoryImpl.js.map +1 -0
  264. package/dist/impl/data/repositories/JwtServiceRepositoryImpl.d.ts +17 -0
  265. package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js +38 -0
  266. package/dist/impl/data/repositories/JwtServiceRepositoryImpl.js.map +1 -0
  267. package/dist/impl/data/repositories/KeyServiceRepositoryImpl.d.ts +9 -0
  268. package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js +23 -0
  269. package/dist/impl/data/repositories/KeyServiceRepositoryImpl.js.map +1 -0
  270. package/dist/impl/data/repositories/OrganizationsRepositoryImpl.d.ts +10 -0
  271. package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js +78 -0
  272. package/dist/impl/data/repositories/OrganizationsRepositoryImpl.js.map +1 -0
  273. package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.d.ts +8 -0
  274. package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js +41 -0
  275. package/dist/impl/data/repositories/PresentationRequestRepositoryImpl.js.map +1 -0
  276. package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.d.ts +8 -0
  277. package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js +72 -0
  278. package/dist/impl/data/repositories/ResolveDidDocumentRepositoryImpl.js.map +1 -0
  279. package/dist/impl/data/repositories/ResolveKidRepositoryImpl.d.ts +8 -0
  280. package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js +69 -0
  281. package/dist/impl/data/repositories/ResolveKidRepositoryImpl.js.map +1 -0
  282. package/dist/impl/data/repositories/SubmissionRepositoryImpl.d.ts +17 -0
  283. package/dist/impl/data/repositories/SubmissionRepositoryImpl.js +54 -0
  284. package/dist/impl/data/repositories/SubmissionRepositoryImpl.js.map +1 -0
  285. package/dist/impl/data/repositories/Urls.d.ts +24 -0
  286. package/dist/impl/data/repositories/Urls.js +64 -0
  287. package/dist/impl/data/repositories/Urls.js.map +1 -0
  288. package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.d.ts +9 -0
  289. package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js +70 -0
  290. package/dist/impl/data/repositories/VerifiedProfileRepositoryImpl.js.map +1 -0
  291. package/dist/impl/data/usecases/AuthTokenUseCaseImpl.d.ts +9 -0
  292. package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js +32 -0
  293. package/dist/impl/data/usecases/AuthTokenUseCaseImpl.js.map +1 -0
  294. package/dist/impl/data/usecases/CountriesModelUseCaseImpl.d.ts +8 -0
  295. package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js +32 -0
  296. package/dist/impl/data/usecases/CountriesModelUseCaseImpl.js.map +1 -0
  297. package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.d.ts +23 -0
  298. package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js +71 -0
  299. package/dist/impl/data/usecases/CredentialManifestUseCaseImpl.js.map +1 -0
  300. package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.d.ts +10 -0
  301. package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js +51 -0
  302. package/dist/impl/data/usecases/CredentialTypeSchemasUseCaseImpl.js.map +1 -0
  303. package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.d.ts +10 -0
  304. package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js +32 -0
  305. package/dist/impl/data/usecases/CredentialTypesUIFormSchemaUseCaseImpl.js.map +1 -0
  306. package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.d.ts +8 -0
  307. package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js +32 -0
  308. package/dist/impl/data/usecases/CredentialTypesUseCaseImpl.js.map +1 -0
  309. package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.d.ts +9 -0
  310. package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js +32 -0
  311. package/dist/impl/data/usecases/ExchangeProgressUseCaseImpl.js.map +1 -0
  312. package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.d.ts +24 -0
  313. package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js +72 -0
  314. package/dist/impl/data/usecases/FinalizeOffersUseCaseImpl.js.map +1 -0
  315. package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.d.ts +13 -0
  316. package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js +47 -0
  317. package/dist/impl/data/usecases/GenerateOffersUseCaseImpl.js.map +1 -0
  318. package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.d.ts +3 -0
  319. package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js +10 -0
  320. package/dist/impl/data/usecases/IdentificationSubmissionUseCaseImpl.js.map +1 -0
  321. package/dist/impl/data/usecases/JwtServiceUseCaseImpl.d.ts +14 -0
  322. package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js +37 -0
  323. package/dist/impl/data/usecases/JwtServiceUseCaseImpl.js.map +1 -0
  324. package/dist/impl/data/usecases/KeyServiceUseCaseImpl.d.ts +9 -0
  325. package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js +32 -0
  326. package/dist/impl/data/usecases/KeyServiceUseCaseImpl.js.map +1 -0
  327. package/dist/impl/data/usecases/OrganizationsUseCaseImpl.d.ts +9 -0
  328. package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js +32 -0
  329. package/dist/impl/data/usecases/OrganizationsUseCaseImpl.js.map +1 -0
  330. package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.d.ts +20 -0
  331. package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js +57 -0
  332. package/dist/impl/data/usecases/PresentationRequestUseCaseImpl.js.map +1 -0
  333. package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.d.ts +3 -0
  334. package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js +10 -0
  335. package/dist/impl/data/usecases/PresentationSubmissionUseCaseImpl.js.map +1 -0
  336. package/dist/impl/data/usecases/SubmissionUseCaseImpl.d.ts +13 -0
  337. package/dist/impl/data/usecases/SubmissionUseCaseImpl.js +35 -0
  338. package/dist/impl/data/usecases/SubmissionUseCaseImpl.js.map +1 -0
  339. package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.d.ts +8 -0
  340. package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js +32 -0
  341. package/dist/impl/data/usecases/VerifiedProfileUseCaseImpl.js.map +1 -0
  342. package/dist/impl/data/verifiers/CredentialDidVerifierImpl.d.ts +8 -0
  343. package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js +48 -0
  344. package/dist/impl/data/verifiers/CredentialDidVerifierImpl.js.map +1 -0
  345. package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.d.ts +6 -0
  346. package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js +20 -0
  347. package/dist/impl/data/verifiers/CredentialIssuerVerifierEmptyImpl.js.map +1 -0
  348. package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.d.ts +11 -0
  349. package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js +41 -0
  350. package/dist/impl/data/verifiers/CredentialIssuerVerifierImpl.js.map +1 -0
  351. package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.d.ts +8 -0
  352. package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js +43 -0
  353. package/dist/impl/data/verifiers/CredentialManifestByDeepLinkVerifierImpl.js.map +1 -0
  354. package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.d.ts +11 -0
  355. package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js +56 -0
  356. package/dist/impl/data/verifiers/CredentialsByDeepLinkVerifierImpl.js.map +1 -0
  357. package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.d.ts +11 -0
  358. package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js +56 -0
  359. package/dist/impl/data/verifiers/OffersByDeepLinkVerifierImpl.js.map +1 -0
  360. package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.d.ts +8 -0
  361. package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js +43 -0
  362. package/dist/impl/data/verifiers/PresentationRequestByDeepLinkVerifierImpl.js.map +1 -0
  363. package/dist/impl/data/verifiers/VerificationUtils.d.ts +4 -0
  364. package/dist/impl/data/verifiers/VerificationUtils.js +28 -0
  365. package/dist/impl/data/verifiers/VerificationUtils.js.map +1 -0
  366. package/dist/impl/data/verifiers/index.d.ts +8 -0
  367. package/dist/impl/data/verifiers/index.js +21 -0
  368. package/dist/impl/data/verifiers/index.js.map +1 -0
  369. package/dist/impl/domain/infrastructure/db/SecretStoreService.d.ts +7 -0
  370. package/dist/impl/domain/infrastructure/db/SecretStoreService.js +3 -0
  371. package/dist/impl/domain/infrastructure/db/SecretStoreService.js.map +1 -0
  372. package/dist/impl/domain/infrastructure/network/NetworkService.d.ts +6 -0
  373. package/dist/impl/domain/infrastructure/network/NetworkService.js +3 -0
  374. package/dist/impl/domain/infrastructure/network/NetworkService.js.map +1 -0
  375. package/dist/impl/domain/models/CountriesModel.d.ts +5 -0
  376. package/dist/impl/domain/models/CountriesModel.js +3 -0
  377. package/dist/impl/domain/models/CountriesModel.js.map +1 -0
  378. package/dist/impl/domain/models/CredentialTypeSchemasModel.d.ts +5 -0
  379. package/dist/impl/domain/models/CredentialTypeSchemasModel.js +3 -0
  380. package/dist/impl/domain/models/CredentialTypeSchemasModel.js.map +1 -0
  381. package/dist/impl/domain/models/CredentialTypesModel.d.ts +5 -0
  382. package/dist/impl/domain/models/CredentialTypesModel.js +3 -0
  383. package/dist/impl/domain/models/CredentialTypesModel.js.map +1 -0
  384. package/dist/impl/domain/models/IdentificationModel.d.ts +8 -0
  385. package/dist/impl/domain/models/IdentificationModel.js +3 -0
  386. package/dist/impl/domain/models/IdentificationModel.js.map +1 -0
  387. package/dist/impl/domain/models/Initializable.d.ts +4 -0
  388. package/dist/impl/domain/models/Initializable.js +3 -0
  389. package/dist/impl/domain/models/Initializable.js.map +1 -0
  390. package/dist/impl/domain/models/Model.d.ts +4 -0
  391. package/dist/impl/domain/models/Model.js +3 -0
  392. package/dist/impl/domain/models/Model.js.map +1 -0
  393. package/dist/impl/domain/repositories/AuthTokenRepository.d.ts +5 -0
  394. package/dist/impl/domain/repositories/AuthTokenRepository.js +3 -0
  395. package/dist/impl/domain/repositories/AuthTokenRepository.js.map +1 -0
  396. package/dist/impl/domain/repositories/CountriesRepository.d.ts +4 -0
  397. package/dist/impl/domain/repositories/CountriesRepository.js +3 -0
  398. package/dist/impl/domain/repositories/CountriesRepository.js.map +1 -0
  399. package/dist/impl/domain/repositories/CredentialManifestRepository.d.ts +4 -0
  400. package/dist/impl/domain/repositories/CredentialManifestRepository.js +3 -0
  401. package/dist/impl/domain/repositories/CredentialManifestRepository.js.map +1 -0
  402. package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.d.ts +4 -0
  403. package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js +3 -0
  404. package/dist/impl/domain/repositories/CredentialTypeSchemaRepository.js.map +1 -0
  405. package/dist/impl/domain/repositories/CredentialTypesRepository.d.ts +4 -0
  406. package/dist/impl/domain/repositories/CredentialTypesRepository.js +3 -0
  407. package/dist/impl/domain/repositories/CredentialTypesRepository.js.map +1 -0
  408. package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.d.ts +6 -0
  409. package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js +3 -0
  410. package/dist/impl/domain/repositories/CredentialTypesUIFormSchemaRepository.js.map +1 -0
  411. package/dist/impl/domain/repositories/ExchangeProgressRepository.d.ts +5 -0
  412. package/dist/impl/domain/repositories/ExchangeProgressRepository.js +3 -0
  413. package/dist/impl/domain/repositories/ExchangeProgressRepository.js.map +1 -0
  414. package/dist/impl/domain/repositories/FinalizeOffersRepository.d.ts +7 -0
  415. package/dist/impl/domain/repositories/FinalizeOffersRepository.js +3 -0
  416. package/dist/impl/domain/repositories/FinalizeOffersRepository.js.map +1 -0
  417. package/dist/impl/domain/repositories/GenerateOffersRepository.d.ts +6 -0
  418. package/dist/impl/domain/repositories/GenerateOffersRepository.js +3 -0
  419. package/dist/impl/domain/repositories/GenerateOffersRepository.js.map +1 -0
  420. package/dist/impl/domain/repositories/IdentificationSubmissionRepository.d.ts +3 -0
  421. package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js +3 -0
  422. package/dist/impl/domain/repositories/IdentificationSubmissionRepository.js.map +1 -0
  423. package/dist/impl/domain/repositories/JwtServiceRepository.d.ts +11 -0
  424. package/dist/impl/domain/repositories/JwtServiceRepository.js +3 -0
  425. package/dist/impl/domain/repositories/JwtServiceRepository.js.map +1 -0
  426. package/dist/impl/domain/repositories/KeyServiceRepository.d.ts +5 -0
  427. package/dist/impl/domain/repositories/KeyServiceRepository.js +3 -0
  428. package/dist/impl/domain/repositories/KeyServiceRepository.js.map +1 -0
  429. package/dist/impl/domain/repositories/OrganizationsRepository.d.ts +5 -0
  430. package/dist/impl/domain/repositories/OrganizationsRepository.js +3 -0
  431. package/dist/impl/domain/repositories/OrganizationsRepository.js.map +1 -0
  432. package/dist/impl/domain/repositories/PresentationRequestRepository.d.ts +4 -0
  433. package/dist/impl/domain/repositories/PresentationRequestRepository.js +3 -0
  434. package/dist/impl/domain/repositories/PresentationRequestRepository.js.map +1 -0
  435. package/dist/impl/domain/repositories/ResolveDidDocumentRepository.d.ts +4 -0
  436. package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js +3 -0
  437. package/dist/impl/domain/repositories/ResolveDidDocumentRepository.js.map +1 -0
  438. package/dist/impl/domain/repositories/ResolveKidRepository.d.ts +4 -0
  439. package/dist/impl/domain/repositories/ResolveKidRepository.js +3 -0
  440. package/dist/impl/domain/repositories/ResolveKidRepository.js.map +1 -0
  441. package/dist/impl/domain/repositories/SubmissionRepository.d.ts +8 -0
  442. package/dist/impl/domain/repositories/SubmissionRepository.js +3 -0
  443. package/dist/impl/domain/repositories/SubmissionRepository.js.map +1 -0
  444. package/dist/impl/domain/repositories/VerifiedProfileRepository.d.ts +5 -0
  445. package/dist/impl/domain/repositories/VerifiedProfileRepository.js +3 -0
  446. package/dist/impl/domain/repositories/VerifiedProfileRepository.js.map +1 -0
  447. package/dist/impl/domain/usecases/AuthTokenUseCase.d.ts +5 -0
  448. package/dist/impl/domain/usecases/AuthTokenUseCase.js +3 -0
  449. package/dist/impl/domain/usecases/AuthTokenUseCase.js.map +1 -0
  450. package/dist/impl/domain/usecases/CountriesModelUseCase.d.ts +4 -0
  451. package/dist/impl/domain/usecases/CountriesModelUseCase.js +3 -0
  452. package/dist/impl/domain/usecases/CountriesModelUseCase.js.map +1 -0
  453. package/dist/impl/domain/usecases/CredentialManifestUseCase.d.ts +6 -0
  454. package/dist/impl/domain/usecases/CredentialManifestUseCase.js +3 -0
  455. package/dist/impl/domain/usecases/CredentialManifestUseCase.js.map +1 -0
  456. package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.d.ts +4 -0
  457. package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js +3 -0
  458. package/dist/impl/domain/usecases/CredentialTypeSchemasUseCase.js.map +1 -0
  459. package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.d.ts +6 -0
  460. package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js +3 -0
  461. package/dist/impl/domain/usecases/CredentialTypesUIFormSchemaUseCase.js.map +1 -0
  462. package/dist/impl/domain/usecases/CredentialTypesUseCase.d.ts +4 -0
  463. package/dist/impl/domain/usecases/CredentialTypesUseCase.js +3 -0
  464. package/dist/impl/domain/usecases/CredentialTypesUseCase.js.map +1 -0
  465. package/dist/impl/domain/usecases/ExchangeProgressUseCase.d.ts +5 -0
  466. package/dist/impl/domain/usecases/ExchangeProgressUseCase.js +3 -0
  467. package/dist/impl/domain/usecases/ExchangeProgressUseCase.js.map +1 -0
  468. package/dist/impl/domain/usecases/FinalizeOffersUseCase.d.ts +6 -0
  469. package/dist/impl/domain/usecases/FinalizeOffersUseCase.js +3 -0
  470. package/dist/impl/domain/usecases/FinalizeOffersUseCase.js.map +1 -0
  471. package/dist/impl/domain/usecases/GenerateOffersUseCase.d.ts +6 -0
  472. package/dist/impl/domain/usecases/GenerateOffersUseCase.js +3 -0
  473. package/dist/impl/domain/usecases/GenerateOffersUseCase.js.map +1 -0
  474. package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.d.ts +3 -0
  475. package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js +3 -0
  476. package/dist/impl/domain/usecases/IdentificationSubmissionUseCase.js.map +1 -0
  477. package/dist/impl/domain/usecases/JwtServiceUseCase.d.ts +10 -0
  478. package/dist/impl/domain/usecases/JwtServiceUseCase.js +3 -0
  479. package/dist/impl/domain/usecases/JwtServiceUseCase.js.map +1 -0
  480. package/dist/impl/domain/usecases/KeyServiceUseCase.d.ts +5 -0
  481. package/dist/impl/domain/usecases/KeyServiceUseCase.js +3 -0
  482. package/dist/impl/domain/usecases/KeyServiceUseCase.js.map +1 -0
  483. package/dist/impl/domain/usecases/OrganizationsUseCase.d.ts +5 -0
  484. package/dist/impl/domain/usecases/OrganizationsUseCase.js +3 -0
  485. package/dist/impl/domain/usecases/OrganizationsUseCase.js.map +1 -0
  486. package/dist/impl/domain/usecases/PresentationRequestUseCase.d.ts +6 -0
  487. package/dist/impl/domain/usecases/PresentationRequestUseCase.js +3 -0
  488. package/dist/impl/domain/usecases/PresentationRequestUseCase.js.map +1 -0
  489. package/dist/impl/domain/usecases/PresentationSubmissionUseCase.d.ts +3 -0
  490. package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js +3 -0
  491. package/dist/impl/domain/usecases/PresentationSubmissionUseCase.js.map +1 -0
  492. package/dist/impl/domain/usecases/SubmissionUseCase.d.ts +7 -0
  493. package/dist/impl/domain/usecases/SubmissionUseCase.js +3 -0
  494. package/dist/impl/domain/usecases/SubmissionUseCase.js.map +1 -0
  495. package/dist/impl/domain/usecases/VerifiedProfileUseCase.d.ts +5 -0
  496. package/dist/impl/domain/usecases/VerifiedProfileUseCase.js +3 -0
  497. package/dist/impl/domain/usecases/VerifiedProfileUseCase.js.map +1 -0
  498. package/dist/impl/domain/verifiers/CredentialDidVerifier.d.ts +6 -0
  499. package/dist/impl/domain/verifiers/CredentialDidVerifier.js +3 -0
  500. package/dist/impl/domain/verifiers/CredentialDidVerifier.js.map +1 -0
  501. package/dist/impl/domain/verifiers/CredentialIssuerVerifier.d.ts +5 -0
  502. package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js +3 -0
  503. package/dist/impl/domain/verifiers/CredentialIssuerVerifier.js.map +1 -0
  504. package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.d.ts +6 -0
  505. package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js +3 -0
  506. package/dist/impl/domain/verifiers/CredentialManifestByDeepLinkVerifier.js.map +1 -0
  507. package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.d.ts +5 -0
  508. package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js +3 -0
  509. package/dist/impl/domain/verifiers/CredentialsByDeepLinkVerifier.js.map +1 -0
  510. package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.d.ts +5 -0
  511. package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js +3 -0
  512. package/dist/impl/domain/verifiers/OffersByDeepLinkVerifier.js.map +1 -0
  513. package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.d.ts +6 -0
  514. package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js +3 -0
  515. package/dist/impl/domain/verifiers/PresentationRequestByDeepLinkVerifier.js.map +1 -0
  516. package/dist/impl/utils/HelperFunctions.d.ts +8 -0
  517. package/dist/impl/utils/HelperFunctions.js +62 -0
  518. package/dist/impl/utils/HelperFunctions.js.map +1 -0
  519. package/dist/impl/utils/InitializationWatcher.d.ts +10 -0
  520. package/dist/impl/utils/InitializationWatcher.js +24 -0
  521. package/dist/impl/utils/InitializationWatcher.js.map +1 -0
  522. package/dist/impl/utils/LoadJsonldContext.d.ts +6 -0
  523. package/dist/impl/utils/LoadJsonldContext.js +68 -0
  524. package/dist/impl/utils/LoadJsonldContext.js.map +1 -0
  525. package/dist/impl/utils/ProfileServiceTypeVerifier.d.ts +12 -0
  526. package/dist/impl/utils/ProfileServiceTypeVerifier.js +57 -0
  527. package/dist/impl/utils/ProfileServiceTypeVerifier.js.map +1 -0
  528. package/dist/impl/utils/VCLLog.d.ts +9 -0
  529. package/dist/impl/utils/VCLLog.js +29 -0
  530. package/dist/impl/utils/VCLLog.js.map +1 -0
  531. package/dist/index.d.ts +64 -0
  532. package/dist/index.js +158 -0
  533. package/dist/index.js.map +1 -0
  534. package/package.json +59 -0
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=VCLLogService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLLogService.js","sourceRoot":"","sources":["../../../../src/api/entities/initialization/VCLLogService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Nullish } from '../VCLTypes';
2
+ import VCLDidJwk from '../entities/VCLDidJwk';
3
+ import VCLJwt from '../entities/VCLJwt';
4
+ import VCLJwtDescriptor from '../entities/VCLJwtDescriptor';
5
+ import VCLToken from '../entities/VCLToken';
6
+ export default interface VCLJwtSignService {
7
+ sign(jwtDescriptor: VCLJwtDescriptor, didJwk: VCLDidJwk, nonce: Nullish<string>, remoteCryptoServicesToken: Nullish<VCLToken>): Promise<VCLJwt>;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=VCLJwtSignService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLJwtSignService.js","sourceRoot":"","sources":["../../../src/api/jwt/VCLJwtSignService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import VCLJwt from '../entities/VCLJwt';
2
+ import VCLPublicJwk from '../entities/VCLPublicJwk';
3
+ import { Nullish } from '../VCLTypes';
4
+ import VCLToken from '../entities/VCLToken';
5
+ export default interface VCLJwtVerifyService {
6
+ verify(jwt: VCLJwt, publicJwk: Nullish<VCLPublicJwk>, remoteCryptoServicesToken: Nullish<VCLToken>): Promise<boolean>;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=VCLJwtVerifyService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLJwtVerifyService.js","sourceRoot":"","sources":["../../../src/api/jwt/VCLJwtVerifyService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import VCLDidJwk from '../entities/VCLDidJwk';
2
+ import VCLDidJwkDescriptor from '../entities/VCLDidJwkDescriptor';
3
+ export default interface VCLKeyService {
4
+ generateDidJwk(didJwkDescriptor: VCLDidJwkDescriptor): Promise<VCLDidJwk>;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=VCLKeyService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLKeyService.js","sourceRoot":"","sources":["../../../src/api/keys/VCLKeyService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import VCLEnvironment from '../api/VCLEnvironment';
2
+ import VCLXVnfProtocolVersion from '../api/VCLXVnfProtocolVersion';
3
+ export default class GlobalConfig {
4
+ private static _IsDebugOn;
5
+ static get IsDebugOn(): boolean;
6
+ static setIsDebugOn(value: any): void;
7
+ private static _CurrentEnvironment;
8
+ static get CurrentEnvironment(): VCLEnvironment;
9
+ static setCurrentEnvironment(value: any): void;
10
+ private static _XVnfProtocolVersion;
11
+ static get XVnfProtocolVersion(): VCLXVnfProtocolVersion;
12
+ static setXVnfProtocolVersion(value: any): void;
13
+ private static _IsDirectIssuerOn;
14
+ static get IsDirectIssuerOn(): boolean;
15
+ private static setIsDirectIssuerOn;
16
+ static init(isDebugOn?: boolean, currentEnvironment?: VCLEnvironment, xVnfProtocolVersion?: VCLXVnfProtocolVersion, isDirectIssuerOn?: boolean): void;
17
+ static get IsLoggerOn(): boolean;
18
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const VCLEnvironment_1 = __importDefault(require("../api/VCLEnvironment"));
7
+ const VCLXVnfProtocolVersion_1 = __importDefault(require("../api/VCLXVnfProtocolVersion"));
8
+ class GlobalConfig {
9
+ static get IsDebugOn() {
10
+ return this._IsDebugOn;
11
+ }
12
+ static setIsDebugOn(value) {
13
+ this._IsDebugOn = value;
14
+ }
15
+ static get CurrentEnvironment() {
16
+ return this._CurrentEnvironment;
17
+ }
18
+ static setCurrentEnvironment(value) {
19
+ this._CurrentEnvironment = value;
20
+ }
21
+ static get XVnfProtocolVersion() {
22
+ return this._XVnfProtocolVersion;
23
+ }
24
+ static setXVnfProtocolVersion(value) {
25
+ this._XVnfProtocolVersion = value;
26
+ }
27
+ static get IsDirectIssuerOn() {
28
+ return this._IsDirectIssuerOn;
29
+ }
30
+ static setIsDirectIssuerOn(value) {
31
+ this._IsDirectIssuerOn = value;
32
+ }
33
+ static init(isDebugOn = false, currentEnvironment = VCLEnvironment_1.default.Prod, xVnfProtocolVersion = VCLXVnfProtocolVersion_1.default.XVnfProtocolVersion1, isDirectIssuerOn = true) {
34
+ GlobalConfig.setIsDebugOn(isDebugOn);
35
+ GlobalConfig.setCurrentEnvironment(currentEnvironment);
36
+ GlobalConfig.setXVnfProtocolVersion(xVnfProtocolVersion);
37
+ GlobalConfig.setIsDirectIssuerOn(isDirectIssuerOn);
38
+ }
39
+ static get IsLoggerOn() {
40
+ return ((this.CurrentEnvironment !== VCLEnvironment_1.default.Staging &&
41
+ this.CurrentEnvironment !== VCLEnvironment_1.default.Prod) ||
42
+ this.IsDebugOn);
43
+ }
44
+ }
45
+ GlobalConfig._IsDebugOn = false;
46
+ GlobalConfig._CurrentEnvironment = VCLEnvironment_1.default.Prod;
47
+ GlobalConfig._XVnfProtocolVersion = VCLXVnfProtocolVersion_1.default.XVnfProtocolVersion1;
48
+ GlobalConfig._IsDirectIssuerOn = true;
49
+ exports.default = GlobalConfig;
50
+ //# sourceMappingURL=GlobalConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalConfig.js","sourceRoot":"","sources":["../../src/impl/GlobalConfig.ts"],"names":[],"mappings":";;;;;AAAA,2EAAmD;AACnD,2FAAmE;AAEnE,MAAqB,YAAY;IAGtB,MAAM,KAAK,SAAS;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,KAAK;QAC5B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC5B,CAAC;IAIM,MAAM,KAAK,kBAAkB;QAChC,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,qBAAqB,CAAC,KAAK;QACrC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;IACrC,CAAC;IAKM,MAAM,KAAK,mBAAmB;QACjC,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,KAAK;QACtC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;IACtC,CAAC;IAIM,MAAM,KAAK,gBAAgB;QAC9B,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAEO,MAAM,CAAC,mBAAmB,CAAC,KAAK;QACpC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACnC,CAAC;IAEM,MAAM,CAAC,IAAI,CACd,SAAS,GAAG,KAAK,EACjB,qBAAqC,wBAAc,CAAC,IAAI,EACxD,sBAA8C,gCAAsB,CAAC,oBAAoB,EACzF,gBAAgB,GAAG,IAAI;QAEvB,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QACrC,YAAY,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;QACvD,YAAY,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;QACzD,YAAY,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;IAEM,MAAM,KAAK,UAAU;QACxB,OAAO,CACH,CAAC,IAAI,CAAC,kBAAkB,KAAK,wBAAc,CAAC,OAAO;YAC/C,IAAI,CAAC,kBAAkB,KAAK,wBAAc,CAAC,IAAI,CAAC;YACpD,IAAI,CAAC,SAAS,CACjB,CAAC;IACN,CAAC;;AA3Dc,uBAAU,GAAG,KAAK,CAAC;AAUnB,gCAAmB,GAAG,wBAAc,CAAC,IAAI,CAAC;AAU1C,iCAAoB,GAC/B,gCAAsB,CAAC,oBAAoB,CAAC;AAUjC,8BAAiB,GAAG,IAAI,CAAC;kBAhCvB,YAAY"}
@@ -0,0 +1,89 @@
1
+ import VCL from '../api/VCL';
2
+ import VCLCountries from '../api/entities/VCLCountries';
3
+ import VCLCredentialTypes from '../api/entities/VCLCredentialTypes';
4
+ import VCLCredentialTypeSchemas from '../api/entities/VCLCredentialTypeSchemas';
5
+ import VCLCredentialManifestDescriptor from '../api/entities/VCLCredentialManifestDescriptor';
6
+ import VCLCredentialTypesUIFormSchema from '../api/entities/VCLCredentialTypesUIFormSchema';
7
+ import VCLCredentialTypesUIFormSchemaDescriptor from '../api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
8
+ import VCLDidJwk from '../api/entities/VCLDidJwk';
9
+ import VCLError from '../api/entities/error/VCLError';
10
+ import VCLExchangeDescriptor from '../api/entities/VCLExchangeDescriptor';
11
+ import VCLFinalizeOffersDescriptor from '../api/entities/VCLFinalizeOffersDescriptor';
12
+ import VCLGenerateOffersDescriptor from '../api/entities/VCLGenerateOffersDescriptor';
13
+ import VCLInitializationDescriptor from '../api/entities/initialization/VCLInitializationDescriptor';
14
+ import VCLPublicJwk from '../api/entities/VCLPublicJwk';
15
+ import VCLJwt from '../api/entities/VCLJwt';
16
+ import VCLJwtDescriptor from '../api/entities/VCLJwtDescriptor';
17
+ import VCLOffers from '../api/entities/VCLOffers';
18
+ import { VCLOrganizationsSearchDescriptor } from '../api/entities/VCLOrganizationsSearchDescriptor';
19
+ import VCLPresentationRequestDescriptor from '../api/entities/VCLPresentationRequestDescriptor';
20
+ import VCLPresentationSubmission from '../api/entities/VCLPresentationSubmission';
21
+ import VCLSubmissionResult from '../api/entities/VCLSubmissionResult';
22
+ import VCLToken from '../api/entities/VCLToken';
23
+ import VCLVerifiedProfile from '../api/entities/VCLVerifiedProfile';
24
+ import VCLVerifiedProfileDescriptor from '../api/entities/VCLVerifiedProfileDescriptor';
25
+ import CountriesModel from './domain/models/CountriesModel';
26
+ import CredentialTypeSchemasModel from './domain/models/CredentialTypeSchemasModel';
27
+ import CredentialTypesModel from './domain/models/CredentialTypesModel';
28
+ import { ProfileServiceTypeVerifier } from './utils/ProfileServiceTypeVerifier';
29
+ import VerifiedProfileUseCase from './domain/usecases/VerifiedProfileUseCase';
30
+ import JwtServiceUseCase from './domain/usecases/JwtServiceUseCase';
31
+ import IdentificationSubmissionUseCase from './domain/usecases/IdentificationSubmissionUseCase';
32
+ import PresentationRequestUseCase from './domain/usecases/PresentationRequestUseCase';
33
+ import CredentialManifestUseCase from './domain/usecases/CredentialManifestUseCase';
34
+ import GenerateOffersUseCase from './domain/usecases/GenerateOffersUseCase';
35
+ import FinalizeOffersUseCase from './domain/usecases/FinalizeOffersUseCase';
36
+ import PresentationSubmissionUseCase from './domain/usecases/PresentationSubmissionUseCase';
37
+ import ExchangeProgressUseCase from './domain/usecases/ExchangeProgressUseCase';
38
+ import OrganizationsUseCase from './domain/usecases/OrganizationsUseCase';
39
+ import CredentialTypesUIFormSchemaUseCase from './domain/usecases/CredentialTypesUIFormSchemaUseCase';
40
+ import VCLDidJwkDescriptor from '../api/entities/VCLDidJwkDescriptor';
41
+ import KeyServiceUseCase from './domain/usecases/KeyServiceUseCase';
42
+ import { Nullish } from '../api/VCLTypes';
43
+ import VCLAuthTokenDescriptor from '../api/entities/VCLAuthTokenDescriptor';
44
+ import VCLAuthToken from '../api/entities/VCLAuthToken';
45
+ import AuthTokenUseCase from './domain/usecases/AuthTokenUseCase';
46
+ export declare class VCLImpl implements VCL {
47
+ static readonly ModelsToInitializeAmount = 3;
48
+ credentialTypesModel: Nullish<CredentialTypesModel>;
49
+ initializationDescriptor: VCLInitializationDescriptor;
50
+ credentialTypeSchemasModel: Nullish<CredentialTypeSchemasModel>;
51
+ countriesModel: Nullish<CountriesModel>;
52
+ verifiedProfileUseCase: VerifiedProfileUseCase;
53
+ jwtServiceUseCase: JwtServiceUseCase;
54
+ profileServiceTypeVerifier: ProfileServiceTypeVerifier;
55
+ identificationUseCase: IdentificationSubmissionUseCase;
56
+ presentationRequestUseCase: PresentationRequestUseCase;
57
+ credentialManifestUseCase: CredentialManifestUseCase;
58
+ generateOffersUseCase: GenerateOffersUseCase;
59
+ finalizeOffersUseCase: FinalizeOffersUseCase;
60
+ presentationSubmissionUseCase: PresentationSubmissionUseCase;
61
+ exchangeProgressUseCase: ExchangeProgressUseCase;
62
+ organizationsUseCase: OrganizationsUseCase;
63
+ authTokenUseCase: AuthTokenUseCase;
64
+ credentialTypesUIFormSchemaUseCase: CredentialTypesUIFormSchemaUseCase;
65
+ keyServiceUseCase: KeyServiceUseCase;
66
+ private initializationWatcher;
67
+ initialize(initializationDescriptor: VCLInitializationDescriptor): Promise<Nullish<VCLError>>;
68
+ initGlobalConfigurations(initializationDescriptor: VCLInitializationDescriptor): void;
69
+ private initializeUseCases;
70
+ get countries(): Nullish<VCLCountries>;
71
+ get credentialTypes(): Nullish<VCLCredentialTypes>;
72
+ get credentialTypeSchemas(): Nullish<VCLCredentialTypeSchemas>;
73
+ getPresentationRequest: (presentationRequestDescriptor: VCLPresentationRequestDescriptor) => Promise<import("..").VCLPresentationRequest>;
74
+ submitPresentation: (presentationSubmission: VCLPresentationSubmission, authToken?: Nullish<VCLAuthToken>) => Promise<VCLSubmissionResult>;
75
+ getExchangeProgress: (exchangeDescriptor: VCLExchangeDescriptor) => Promise<import("..").VCLExchange>;
76
+ searchForOrganizations: (organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor) => Promise<import("..").VCLOrganizations>;
77
+ getCredentialManifest: (credentialManifestDescriptor: VCLCredentialManifestDescriptor) => Promise<import("..").VCLCredentialManifest>;
78
+ generateOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor) => Promise<VCLOffers>;
79
+ checkForOffers(generateOffersDescriptor: VCLGenerateOffersDescriptor, sessionToken: VCLToken): Promise<VCLOffers>;
80
+ getAuthToken: (authTokenDescriptor: VCLAuthTokenDescriptor) => Promise<VCLAuthToken>;
81
+ finalizeOffers: (finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, sessionToken: VCLToken) => Promise<import("..").VCLJwtVerifiableCredentials>;
82
+ getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor): Promise<VCLCredentialTypesUIFormSchema>;
83
+ getVerifiedProfile: (verifiedProfileDescriptor: VCLVerifiedProfileDescriptor) => Promise<VCLVerifiedProfile>;
84
+ verifyJwt: (jwt: VCLJwt, publicJwk: Nullish<VCLPublicJwk>, remoteCryptoServicesToken: Nullish<VCLToken>) => Promise<boolean>;
85
+ generateSignedJwt: (jwtDescriptor: VCLJwtDescriptor, didJwk: VCLDidJwk, nonce: Nullish<string>, remoteCryptoServicesToken: Nullish<VCLToken>) => Promise<VCLJwt>;
86
+ generateDidJwk: (didJwkDescriptor: VCLDidJwkDescriptor) => Promise<VCLDidJwk>;
87
+ printVersion(): void;
88
+ private invokeGenerateOffersUseCase;
89
+ }
@@ -0,0 +1,291 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.VCLImpl = void 0;
16
+ const fs_1 = __importDefault(require("fs"));
17
+ const path_1 = __importDefault(require("path"));
18
+ const VCLError_1 = __importDefault(require("../api/entities/error/VCLError"));
19
+ const VCLIdentificationSubmission_1 = __importDefault(require("../api/entities/VCLIdentificationSubmission"));
20
+ const VCLServiceType_1 = __importDefault(require("../api/entities/VCLServiceType"));
21
+ const VCLServiceTypes_1 = __importDefault(require("../api/entities/VCLServiceTypes"));
22
+ const VCLVerifiedProfileDescriptor_1 = __importDefault(require("../api/entities/VCLVerifiedProfileDescriptor"));
23
+ const GlobalConfig_1 = __importDefault(require("./GlobalConfig"));
24
+ const VclBlocksProvider_1 = __importDefault(require("./VclBlocksProvider"));
25
+ const InitializationWatcher_1 = __importDefault(require("./utils/InitializationWatcher"));
26
+ const ProfileServiceTypeVerifier_1 = require("./utils/ProfileServiceTypeVerifier");
27
+ const VCLLog_1 = __importDefault(require("./utils/VCLLog"));
28
+ const VCLErrorCode_1 = __importDefault(require("../api/entities/error/VCLErrorCode"));
29
+ class VCLImpl {
30
+ constructor() {
31
+ this.initializationWatcher = new InitializationWatcher_1.default(VCLImpl.ModelsToInitializeAmount);
32
+ this.getPresentationRequest = (presentationRequestDescriptor) => __awaiter(this, void 0, void 0, function* () {
33
+ const { did } = presentationRequestDescriptor;
34
+ if (!did) {
35
+ const err = new VCLError_1.default(`did was not found in ${JSON.stringify(presentationRequestDescriptor)}`);
36
+ logError('getPresentationRequest::verifiedProfile', err);
37
+ throw err;
38
+ }
39
+ try {
40
+ const verifiedProfile = yield this.profileServiceTypeVerifier.verifyServiceTypeOfVerifiedProfile(new VCLVerifiedProfileDescriptor_1.default(did), new VCLServiceTypes_1.default([VCLServiceType_1.default.Inspector]));
41
+ return yield this.presentationRequestUseCase.getPresentationRequest(presentationRequestDescriptor, verifiedProfile);
42
+ }
43
+ catch (error) {
44
+ logError('getPresentationRequest', error);
45
+ throw error;
46
+ }
47
+ });
48
+ this.submitPresentation = (presentationSubmission, authToken) => __awaiter(this, void 0, void 0, function* () {
49
+ try {
50
+ return yield this.presentationSubmissionUseCase.submit(presentationSubmission, authToken);
51
+ }
52
+ catch (error) {
53
+ logError('submit presentation', error);
54
+ throw error;
55
+ }
56
+ });
57
+ this.getExchangeProgress = (exchangeDescriptor) => __awaiter(this, void 0, void 0, function* () {
58
+ try {
59
+ return yield this.exchangeProgressUseCase.getExchangeProgress(exchangeDescriptor);
60
+ }
61
+ catch (error) {
62
+ logError('getExchangeProgress', error);
63
+ throw error;
64
+ }
65
+ });
66
+ this.searchForOrganizations = (organizationsSearchDescriptor) => __awaiter(this, void 0, void 0, function* () {
67
+ try {
68
+ return yield this.organizationsUseCase.searchForOrganizations(organizationsSearchDescriptor);
69
+ }
70
+ catch (error) {
71
+ logError('getExchangeProgress', error);
72
+ throw error;
73
+ }
74
+ });
75
+ this.getCredentialManifest = (credentialManifestDescriptor) => __awaiter(this, void 0, void 0, function* () {
76
+ const { did } = credentialManifestDescriptor;
77
+ if (!did) {
78
+ const error = new VCLError_1.default(`did was not found in ${JSON.stringify(credentialManifestDescriptor)}`, VCLErrorCode_1.default.SdkError.toString(), null);
79
+ logError("credentialManifestDescriptor.did doesn't exist", error);
80
+ throw error;
81
+ }
82
+ let verifiedProfile;
83
+ try {
84
+ verifiedProfile =
85
+ yield this.profileServiceTypeVerifier.verifyServiceTypeOfVerifiedProfile(new VCLVerifiedProfileDescriptor_1.default(did), VCLServiceTypes_1.default.fromIssuingType(credentialManifestDescriptor.issuingType));
86
+ }
87
+ catch (error) {
88
+ logError(`failed to find verified profile by did ${did}`, error);
89
+ throw error;
90
+ }
91
+ try {
92
+ return yield this.credentialManifestUseCase.getCredentialManifest(credentialManifestDescriptor, verifiedProfile);
93
+ }
94
+ catch (error) {
95
+ logError('getCredentialManifest', error);
96
+ throw error;
97
+ }
98
+ });
99
+ this.generateOffers = (generateOffersDescriptor) => __awaiter(this, void 0, void 0, function* () {
100
+ const identificationSubmission = new VCLIdentificationSubmission_1.default(generateOffersDescriptor.credentialManifest, generateOffersDescriptor.identificationVerifiableCredentials);
101
+ let identificationSubmissionResult;
102
+ try {
103
+ identificationSubmissionResult =
104
+ yield this.identificationUseCase.submit(identificationSubmission);
105
+ }
106
+ catch (error) {
107
+ logError('submit identification', error);
108
+ throw error;
109
+ }
110
+ return this.invokeGenerateOffersUseCase(generateOffersDescriptor, identificationSubmissionResult.sessionToken);
111
+ });
112
+ this.getAuthToken = (authTokenDescriptor) => __awaiter(this, void 0, void 0, function* () {
113
+ return this.authTokenUseCase.getAuthToken(authTokenDescriptor);
114
+ });
115
+ this.finalizeOffers = (finalizeOffersDescriptor, sessionToken) => __awaiter(this, void 0, void 0, function* () {
116
+ try {
117
+ return yield this.finalizeOffersUseCase.finalizeOffers(finalizeOffersDescriptor, sessionToken);
118
+ }
119
+ catch (error) {
120
+ logError('finalizeOffers', error);
121
+ throw error;
122
+ }
123
+ });
124
+ this.getVerifiedProfile = (verifiedProfileDescriptor) => __awaiter(this, void 0, void 0, function* () {
125
+ try {
126
+ return yield this.verifiedProfileUseCase.getVerifiedProfile(verifiedProfileDescriptor);
127
+ }
128
+ catch (error) {
129
+ logError('getVerifiedProfile', error);
130
+ throw error;
131
+ }
132
+ });
133
+ this.verifyJwt = (jwt, publicJwk, remoteCryptoServicesToken) => __awaiter(this, void 0, void 0, function* () {
134
+ try {
135
+ return yield this.jwtServiceUseCase.verifyJwt(jwt, publicJwk, remoteCryptoServicesToken);
136
+ }
137
+ catch (error) {
138
+ logError('verifyJwt', error);
139
+ throw error;
140
+ }
141
+ });
142
+ this.generateSignedJwt = (jwtDescriptor, didJwk, nonce, remoteCryptoServicesToken) => __awaiter(this, void 0, void 0, function* () {
143
+ try {
144
+ return yield this.jwtServiceUseCase.generateSignedJwt(jwtDescriptor, didJwk, nonce, remoteCryptoServicesToken);
145
+ }
146
+ catch (error) {
147
+ logError('generateSignedJwt', error);
148
+ throw error;
149
+ }
150
+ });
151
+ this.generateDidJwk = (didJwkDescriptor) => __awaiter(this, void 0, void 0, function* () {
152
+ try {
153
+ return yield this.keyServiceUseCase.generateDidJwk(didJwkDescriptor);
154
+ }
155
+ catch (error) {
156
+ logError('generateDidJwk', error);
157
+ throw error;
158
+ }
159
+ });
160
+ }
161
+ initialize(initializationDescriptor) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ var _a;
164
+ this.initializationDescriptor = initializationDescriptor;
165
+ this.initializationWatcher = new InitializationWatcher_1.default(VCLImpl.ModelsToInitializeAmount);
166
+ this.initGlobalConfigurations(initializationDescriptor);
167
+ this.printVersion();
168
+ const completionHandler = (e) => {
169
+ if (e)
170
+ return e;
171
+ const firstError = this.initializationWatcher.firstError();
172
+ if (!firstError) {
173
+ this.initializeUseCases();
174
+ }
175
+ return firstError;
176
+ };
177
+ this.credentialTypesModel =
178
+ VclBlocksProvider_1.default.provideCredentialTypesModel();
179
+ this.countriesModel = VclBlocksProvider_1.default.provideCountriesModel();
180
+ const initializeCountriesError = yield this.countriesModel.initialize();
181
+ this.initializationWatcher.onInitializedModel(initializeCountriesError);
182
+ const initializeCredentialTypesError = yield this.credentialTypesModel.initialize();
183
+ if (initializeCredentialTypesError &&
184
+ this.initializationWatcher.onInitializedModel(initializeCredentialTypesError, true)) {
185
+ return completionHandler();
186
+ }
187
+ if (this.initializationWatcher.onInitializedModel(null)) {
188
+ return completionHandler();
189
+ }
190
+ if ((_a = this.credentialTypesModel) === null || _a === void 0 ? void 0 : _a.data) {
191
+ const credentialTypes = this.credentialTypesModel.data;
192
+ this.credentialTypeSchemasModel =
193
+ VclBlocksProvider_1.default.provideCredentialTypeSchemasModel(credentialTypes);
194
+ yield this.credentialTypeSchemasModel.initialize();
195
+ if (this.initializationWatcher.onInitializedModel(initializeCredentialTypesError)) {
196
+ return completionHandler();
197
+ }
198
+ }
199
+ else {
200
+ return completionHandler(new VCLError_1.default('Failed to get credential type schemas'));
201
+ }
202
+ });
203
+ }
204
+ initGlobalConfigurations(initializationDescriptor) {
205
+ GlobalConfig_1.default.init(initializationDescriptor.isDebugOn, initializationDescriptor.environment, initializationDescriptor.xVnfProtocolVersion, true);
206
+ VCLLog_1.default.setLoggerService(initializationDescriptor.logService);
207
+ }
208
+ initializeUseCases() {
209
+ this.verifiedProfileUseCase =
210
+ VclBlocksProvider_1.default.provideVerifiedProfileUseCase();
211
+ this.jwtServiceUseCase = VclBlocksProvider_1.default.provideJwtServiceUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
212
+ this.profileServiceTypeVerifier = new ProfileServiceTypeVerifier_1.ProfileServiceTypeVerifier(this.verifiedProfileUseCase);
213
+ this.identificationUseCase =
214
+ VclBlocksProvider_1.default.provideIdentificationSubmissionUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
215
+ this.presentationRequestUseCase =
216
+ VclBlocksProvider_1.default.providePresentationRequestUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
217
+ this.credentialManifestUseCase =
218
+ VclBlocksProvider_1.default.provideCredentialManifestUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
219
+ this.generateOffersUseCase =
220
+ VclBlocksProvider_1.default.provideGenerateOffersUseCase();
221
+ this.finalizeOffersUseCase =
222
+ VclBlocksProvider_1.default.provideFinalizeOffersUseCase(this.credentialTypesModel, this.initializationDescriptor.cryptoServicesDescriptor, GlobalConfig_1.default.IsDirectIssuerOn);
223
+ this.presentationSubmissionUseCase =
224
+ VclBlocksProvider_1.default.providePresentationSubmissionUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
225
+ this.exchangeProgressUseCase =
226
+ VclBlocksProvider_1.default.provideExchangeProgressUseCase();
227
+ this.organizationsUseCase =
228
+ VclBlocksProvider_1.default.provideOrganizationsUseCase();
229
+ this.authTokenUseCase = VclBlocksProvider_1.default.provideAuthTokenUseCase();
230
+ this.credentialTypesUIFormSchemaUseCase =
231
+ VclBlocksProvider_1.default.provideCredentialTypesUIFormSchemaUseCase();
232
+ this.keyServiceUseCase = VclBlocksProvider_1.default.provideKeyServiceUseCase(this.initializationDescriptor.cryptoServicesDescriptor);
233
+ }
234
+ get countries() {
235
+ var _a;
236
+ return (_a = this.countriesModel) === null || _a === void 0 ? void 0 : _a.data;
237
+ }
238
+ get credentialTypes() {
239
+ var _a;
240
+ return (_a = this.credentialTypesModel) === null || _a === void 0 ? void 0 : _a.data;
241
+ }
242
+ get credentialTypeSchemas() {
243
+ var _a;
244
+ return (_a = this.credentialTypeSchemasModel) === null || _a === void 0 ? void 0 : _a.data;
245
+ }
246
+ checkForOffers(generateOffersDescriptor, sessionToken) {
247
+ return this.invokeGenerateOffersUseCase(generateOffersDescriptor, sessionToken);
248
+ }
249
+ getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ var _a;
252
+ const countries = (_a = this.countriesModel) === null || _a === void 0 ? void 0 : _a.data;
253
+ if (countries) {
254
+ try {
255
+ return yield this.credentialTypesUIFormSchemaUseCase.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor, countries);
256
+ }
257
+ catch (error) {
258
+ logError('getCredentialTypesUIFormSchema', error);
259
+ throw error;
260
+ }
261
+ }
262
+ else {
263
+ const error = new VCLError_1.default('No countries for getCredentialTypesUIFormSchema');
264
+ logError('getCredentialTypesUIFormSchema', error);
265
+ throw error;
266
+ }
267
+ });
268
+ }
269
+ printVersion() {
270
+ const packageJsonPath = path_1.default.resolve(__dirname, '../../package.json');
271
+ const packageJson = JSON.parse(fs_1.default.readFileSync(packageJsonPath, 'utf-8'));
272
+ VCLLog_1.default.info(`SDK version: ${packageJson.version}`);
273
+ }
274
+ invokeGenerateOffersUseCase(generateOffersDescriptor, sessionToken) {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ try {
277
+ return yield this.generateOffersUseCase.generateOffers(generateOffersDescriptor, sessionToken);
278
+ }
279
+ catch (error) {
280
+ logError('generateOffers', error);
281
+ throw error;
282
+ }
283
+ });
284
+ }
285
+ }
286
+ exports.VCLImpl = VCLImpl;
287
+ VCLImpl.ModelsToInitializeAmount = 3;
288
+ const logError = (message = '', error) => {
289
+ VCLLog_1.default.error(error, message);
290
+ };
291
+ //# sourceMappingURL=VCLImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLImpl.js","sourceRoot":"","sources":["../../src/impl/VCLImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,4CAAoB;AACpB,gDAAwB;AASxB,8EAAsD;AAItD,8GAAsF;AAStF,oFAA4D;AAC5D,sFAA8D;AAI9D,gHAAwF;AACxF,kEAA0C;AAC1C,4EAAoD;AAIpD,0FAAkE;AAClE,mFAAgF;AAChF,4DAAoC;AACpC,sFAA8D;AAmB9D,MAAa,OAAO;IAApB;QAuCY,0BAAqB,GAAG,IAAI,+BAAqB,CACrD,OAAO,CAAC,wBAAwB,CACnC,CAAC;QAoJF,2BAAsB,GAAG,CACrB,6BAA+D,EACjE,EAAE;YACA,MAAM,EAAE,GAAG,EAAE,GAAG,6BAA6B,CAAC;YAC9C,IAAI,CAAC,GAAG,EAAE,CAAC;gBACP,MAAM,GAAG,GAAG,IAAI,kBAAQ,CACpB,wBAAwB,IAAI,CAAC,SAAS,CAClC,6BAA6B,CAChC,EAAE,CACN,CAAC;gBACF,QAAQ,CAAC,yCAAyC,EAAE,GAAG,CAAC,CAAC;gBACzD,MAAM,GAAG,CAAC;YACd,CAAC;YACD,IAAI,CAAC;gBACD,MAAM,eAAe,GACjB,MAAM,IAAI,CAAC,0BAA0B,CAAC,kCAAkC,CACpE,IAAI,sCAA4B,CAAC,G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BAAM,CAAC;gBACJ,MAAM,KAAK,GAAG,IAAI,kBAAQ,CACtB,iDAAiD,CACpD,CAAC;gBACF,QAAQ,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;gBAClD,MAAM,KAAK,CAAC;YAChB,CAAC;QACL,CAAC;KAAA;IA8DD,YAAY;QACR,MAAM,eAAe,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;QACtE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC1B,YAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAC5C,CAAC;QACF,gBAAM,CAAC,IAAI,CAAC,gBAAgB,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC;IAEa,2BAA2B,CACrC,wBAAqD,EACrD,YAAsB;;YAEtB,IAAI,CAAC;gBACD,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAClD,wBAAwB,EACxB,YAAY,CACf,CAAC;YACN,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBAClB,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;gBAClC,MAAM,KAAK,CAAC;YAChB,CAAC;QACL,CAAC;KAAA;;AAtcL,0BAucC;AAtcmB,gCAAwB,GAAG,CAAC,AAAJ,CAAK;AAwcjD,MAAM,QAAQ,GAAG,CAAC,OAAO,GAAG,EAAE,EAAE,KAAe,EAAE,EAAE;IAC/C,gBAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import VCLCredentialTypes from '../api/entities/VCLCredentialTypes';
2
+ import VCLCryptoServicesDescriptor from '../api/entities/initialization/VCLCryptoServicesDescriptor';
3
+ import CountriesModel from './domain/models/CountriesModel';
4
+ import CredentialTypeSchemasModel from './domain/models/CredentialTypeSchemasModel';
5
+ import CredentialTypesModel from './domain/models/CredentialTypesModel';
6
+ import CredentialManifestUseCase from './domain/usecases/CredentialManifestUseCase';
7
+ import CredentialTypesUIFormSchemaUseCase from './domain/usecases/CredentialTypesUIFormSchemaUseCase';
8
+ import ExchangeProgressUseCase from './domain/usecases/ExchangeProgressUseCase';
9
+ import FinalizeOffersUseCase from './domain/usecases/FinalizeOffersUseCase';
10
+ import GenerateOffersUseCase from './domain/usecases/GenerateOffersUseCase';
11
+ import IdentificationSubmissionUseCase from './domain/usecases/IdentificationSubmissionUseCase';
12
+ import JwtServiceUseCase from './domain/usecases/JwtServiceUseCase';
13
+ import OrganizationsUseCase from './domain/usecases/OrganizationsUseCase';
14
+ import PresentationRequestUseCase from './domain/usecases/PresentationRequestUseCase';
15
+ import PresentationSubmissionUseCase from './domain/usecases/PresentationSubmissionUseCase';
16
+ import VerifiedProfileUseCase from './domain/usecases/VerifiedProfileUseCase';
17
+ import KeyServiceUseCase from './domain/usecases/KeyServiceUseCase';
18
+ import AuthTokenUseCase from './domain/usecases/AuthTokenUseCase';
19
+ export default class VclBlocksProvider {
20
+ static providePresentationRequestUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): PresentationRequestUseCase;
21
+ static provideVerifiedProfileUseCase(): VerifiedProfileUseCase;
22
+ static provideJwtServiceUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): JwtServiceUseCase;
23
+ static provideCredentialManifestUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): CredentialManifestUseCase;
24
+ static provideIdentificationSubmissionUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): IdentificationSubmissionUseCase;
25
+ static provideGenerateOffersUseCase(): GenerateOffersUseCase;
26
+ static provideFinalizeOffersUseCase(credentialTypesModel: CredentialTypesModel, cryptoServicesDescriptor: VCLCryptoServicesDescriptor, isDirectIssuerCheckOn: any): FinalizeOffersUseCase;
27
+ static providePresentationSubmissionUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): PresentationSubmissionUseCase;
28
+ static provideExchangeProgressUseCase(): ExchangeProgressUseCase;
29
+ static provideOrganizationsUseCase(): OrganizationsUseCase;
30
+ static provideCredentialTypesModel(): CredentialTypesModel;
31
+ static provideCountriesModel(): CountriesModel;
32
+ static provideAuthTokenUseCase(): AuthTokenUseCase;
33
+ static provideCredentialTypeSchemasModel(credentialTypes: VCLCredentialTypes): CredentialTypeSchemasModel;
34
+ static provideCredentialTypesUIFormSchemaUseCase(): CredentialTypesUIFormSchemaUseCase;
35
+ static provideKeyServiceUseCase(cryptoServicesDescriptor: VCLCryptoServicesDescriptor): KeyServiceUseCase;
36
+ }