@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,62 @@
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.ensureDefined = exports.equalsToDate = exports.addDaysToNowDate = exports.randomString = exports.getUrlSubPathFromString = exports.appendQueryParamsToString = exports.getQueryParamsFromString = void 0;
7
+ const crypto_1 = require("crypto");
8
+ const VCLLog_1 = __importDefault(require("./VCLLog"));
9
+ const VCLError_1 = __importDefault(require("../../api/entities/error/VCLError"));
10
+ const getQueryParamsFromString = (srcStr) => {
11
+ const result = new Map();
12
+ try {
13
+ const url = new URL(srcStr.valueOf());
14
+ const entries = url.searchParams.entries();
15
+ for (const i of entries) {
16
+ const [key, value] = i;
17
+ result.set(key, value);
18
+ }
19
+ }
20
+ catch (error) {
21
+ VCLLog_1.default.error(error);
22
+ }
23
+ return result;
24
+ };
25
+ exports.getQueryParamsFromString = getQueryParamsFromString;
26
+ const appendQueryParamsToString = (srcStr, queryParams) => {
27
+ var _a;
28
+ return ((srcStr === null || srcStr === void 0 ? void 0 : srcStr.valueOf()) +
29
+ ((0, exports.getQueryParamsFromString)(decodeURI((_a = srcStr === null || srcStr === void 0 ? void 0 : srcStr.valueOf()) !== null && _a !== void 0 ? _a : '')).size
30
+ ? '&'
31
+ : '?') +
32
+ queryParams);
33
+ };
34
+ exports.appendQueryParamsToString = appendQueryParamsToString;
35
+ const getUrlSubPathFromString = (srcStr, subPathPrefix) => {
36
+ var _a;
37
+ return decodeURI((_a = srcStr === null || srcStr === void 0 ? void 0 : srcStr.valueOf()) !== null && _a !== void 0 ? _a : '')
38
+ .split('/')
39
+ .find((item) => item.startsWith(subPathPrefix));
40
+ };
41
+ exports.getUrlSubPathFromString = getUrlSubPathFromString;
42
+ const randomString = (length) => (0, crypto_1.randomBytes)(length).toString('hex');
43
+ exports.randomString = randomString;
44
+ const addDaysToNowDate = (srcDate, days) => {
45
+ srcDate.setUTCDate(srcDate.getUTCDate() + days);
46
+ return srcDate;
47
+ };
48
+ exports.addDaysToNowDate = addDaysToNowDate;
49
+ const equalsToDate = (date1, date2) => {
50
+ const selfCopy = new Date(Date.UTC(date1.getUTCFullYear(), date1.getUTCMonth(), date1.getUTCDate()));
51
+ const check = new Date(Date.UTC(date2.getUTCFullYear(), date2.getUTCMonth(), date2.getUTCDate()));
52
+ return selfCopy === check;
53
+ };
54
+ exports.equalsToDate = equalsToDate;
55
+ const ensureDefined = (value, name) => {
56
+ if (value == null) {
57
+ throw new VCLError_1.default(`${name} is required`);
58
+ }
59
+ return value;
60
+ };
61
+ exports.ensureDefined = ensureDefined;
62
+ //# sourceMappingURL=HelperFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HelperFunctions.js","sourceRoot":"","sources":["../../../src/impl/utils/HelperFunctions.ts"],"names":[],"mappings":";;;;;;AAOA,mCAAqC;AAErC,sDAA8B;AAC9B,iFAAyD;AAElD,MAAM,wBAAwB,GAAG,CACpC,MAAc,EACK,EAAE;IACrB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEzC,IAAI,CAAC;QACD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QACtC,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;QAE3C,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;YACtB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;YAEvB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,gBAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAnBW,QAAA,wBAAwB,4BAmBnC;AAEK,MAAM,yBAAyB,GAAG,CACrC,MAAuB,EACvB,WAAmB,EACb,EAAE;;IACR,OAAO,CACH,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,EAAE;QACjB,CAAC,IAAA,gCAAwB,EAAC,SAAS,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,EAAE,mCAAI,EAAE,CAAC,CAAC,CAAC,IAAI;YAC9D,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,GAAG,CAAC;QACV,WAAW,CACd,CAAC;AACN,CAAC,CAAC;AAXW,QAAA,yBAAyB,6BAWpC;AAEK,MAAM,uBAAuB,GAAG,CACnC,MAAuB,EACvB,aAAqB,EACN,EAAE;;IACjB,OAAO,SAAS,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,EAAE,mCAAI,EAAE,CAAC;SACpC,KAAK,CAAC,GAAG,CAAC;SACV,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;AACxD,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC;AAEK,MAAM,YAAY,GAAG,CAAC,MAAc,EAAU,EAAE,CACnD,IAAA,oBAAW,EAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAD3B,QAAA,YAAY,gBACe;AAEjC,MAAM,gBAAgB,GAAG,CAAC,OAAa,EAAE,IAAY,EAAQ,EAAE;IAClE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAC;IAChD,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAHW,QAAA,gBAAgB,oBAG3B;AAEK,MAAM,YAAY,GAAG,CAAC,KAAW,EAAE,KAAW,EAAW,EAAE;IAC9D,MAAM,QAAQ,GAAG,IAAI,IAAI,CACrB,IAAI,CAAC,GAAG,CACJ,KAAK,CAAC,cAAc,EAAE,EACtB,KAAK,CAAC,WAAW,EAAE,EACnB,KAAK,CAAC,UAAU,EAAE,CACrB,CACJ,CAAC;IACF,MAAM,KAAK,GAAG,IAAI,IAAI,CAClB,IAAI,CAAC,GAAG,CACJ,KAAK,CAAC,cAAc,EAAE,EACtB,KAAK,CAAC,WAAW,EAAE,EACnB,KAAK,CAAC,UAAU,EAAE,CACrB,CACJ,CAAC;IACF,OAAO,QAAQ,KAAK,KAAK,CAAC;AAC9B,CAAC,CAAC;AAhBW,QAAA,YAAY,gBAgBvB;AAEK,MAAM,aAAa,GAAG,CACzB,KAA2B,EAC3B,IAAY,EACX,EAAE;IACH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,MAAM,IAAI,kBAAQ,CAAC,GAAG,IAAI,cAAc,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
@@ -0,0 +1,10 @@
1
+ import VCLError from '../../api/entities/error/VCLError';
2
+ export default class InitializationWatcher {
3
+ private readonly initAmount;
4
+ private initCount;
5
+ private errors;
6
+ constructor(initAmount: number);
7
+ onInitializedModel(error: VCLError | null, enforceFailure?: boolean): boolean;
8
+ firstError(): VCLError | null;
9
+ private isInitializationComplete;
10
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class InitializationWatcher {
4
+ constructor(initAmount) {
5
+ this.initAmount = initAmount;
6
+ this.initCount = 0;
7
+ this.errors = [];
8
+ }
9
+ onInitializedModel(error, enforceFailure = false) {
10
+ this.initCount += 1;
11
+ if (error) {
12
+ this.errors = [...this.errors, error];
13
+ }
14
+ return this.isInitializationComplete(enforceFailure);
15
+ }
16
+ firstError() {
17
+ return this.errors.length > 0 ? this.errors[0] : null;
18
+ }
19
+ isInitializationComplete(enforceFailure) {
20
+ return this.initCount === this.initAmount || enforceFailure;
21
+ }
22
+ }
23
+ exports.default = InitializationWatcher;
24
+ //# sourceMappingURL=InitializationWatcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitializationWatcher.js","sourceRoot":"","sources":["../../../src/impl/utils/InitializationWatcher.ts"],"names":[],"mappings":";;AAEA,MAAqB,qBAAqB;IAKtC,YAA6B,UAAkB;QAAlB,eAAU,GAAV,UAAU,CAAQ;QAJvC,cAAS,GAAG,CAAC,CAAC;QAEd,WAAM,GAAe,EAAE,CAAC;IAEkB,CAAC;IAEnD,kBAAkB,CACd,KAAsB,EACtB,cAAc,GAAG,KAAK;QAEtB,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC;QACpB,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,IAAI,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IACzD,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1D,CAAC;IAEO,wBAAwB,CAAC,cAAuB;QACpD,OAAO,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,UAAU,IAAI,cAAc,CAAC;IAChE,CAAC;CACJ;AAzBD,wCAyBC"}
@@ -0,0 +1,6 @@
1
+ import Request from '../data/infrastructure/network/Request';
2
+ import { Dictionary } from '../../api/VCLTypes';
3
+ export interface NetworkService {
4
+ sendRequest: (request: Request) => Promise<any>;
5
+ }
6
+ export declare const loadJsonldContext: (issuerVcPayload: Dictionary<any>, networkService: NetworkService) => Promise<any>;
@@ -0,0 +1,68 @@
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.loadJsonldContext = void 0;
16
+ const fp_1 = require("lodash/fp");
17
+ const VCLLog_1 = __importDefault(require("./VCLLog"));
18
+ const Request_1 = __importDefault(require("../data/infrastructure/network/Request"));
19
+ const Urls_1 = require("../data/repositories/Urls");
20
+ const VCLError_1 = __importDefault(require("../../api/entities/error/VCLError"));
21
+ const VCLErrorCode_1 = __importDefault(require("../../api/entities/error/VCLErrorCode"));
22
+ const HttpMethod_1 = require("../data/infrastructure/network/HttpMethod");
23
+ const loadJsonldContext = (issuerVcPayload, networkService) => __awaiter(void 0, void 0, void 0, function* () {
24
+ const extractedContexts = extractContexts(issuerVcPayload) ||
25
+ extractContexts(issuerVcPayload.credentialSubject);
26
+ if (extractedContexts) {
27
+ const jsonldContextPromises = extractedContexts.map((jsonldContextUrl) => __awaiter(void 0, void 0, void 0, function* () {
28
+ try {
29
+ const response = yield networkService.sendRequest({
30
+ endpoint: jsonldContextUrl,
31
+ method: HttpMethod_1.HttpMethod.GET,
32
+ body: null,
33
+ headers: {
34
+ [Urls_1.HeaderKeys.XVnfProtocolVersion]: Urls_1.HeaderValues.XVnfProtocolVersion,
35
+ },
36
+ useCaches: true,
37
+ contentType: Request_1.default.ContentTypeApplicationJson,
38
+ });
39
+ return response.payload;
40
+ }
41
+ catch (error) {
42
+ VCLLog_1.default.error(error, `Failed to load JSON-LD context from ${jsonldContextUrl}`);
43
+ return null;
44
+ }
45
+ }));
46
+ const contexts = yield Promise.all(jsonldContextPromises);
47
+ const validContexts = contexts.filter((context) => context !== null);
48
+ if (validContexts.length > 0)
49
+ return validContexts[0];
50
+ throw new VCLError_1.default('context not found', VCLErrorCode_1.default.InvalidCredentialSubjectContext);
51
+ }
52
+ else if (!issuerVcPayload.credentialSubject) {
53
+ throw new VCLError_1.default('credentialSubject is NULL', VCLErrorCode_1.default.InvalidCredentialSubjectType);
54
+ }
55
+ else {
56
+ throw new VCLError_1.default('credentialSubject[@context] is NULL', VCLErrorCode_1.default.InvalidCredentialSubjectContext);
57
+ }
58
+ });
59
+ exports.loadJsonldContext = loadJsonldContext;
60
+ const extractContexts = (payload) => {
61
+ if (payload && payload['@context']) {
62
+ return (0, fp_1.isArray)(payload['@context'])
63
+ ? payload['@context']
64
+ : [payload['@context']];
65
+ }
66
+ return null;
67
+ };
68
+ //# sourceMappingURL=LoadJsonldContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadJsonldContext.js","sourceRoot":"","sources":["../../../src/impl/utils/LoadJsonldContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,kCAAoC;AACpC,sDAA8B;AAC9B,qFAA6D;AAC7D,oDAAqE;AAErE,iFAAyD;AACzD,yFAAiE;AACjE,0EAAuE;AAMhE,MAAM,iBAAiB,GAAG,CAC7B,eAAgC,EAChC,cAA8B,EAClB,EAAE;IACd,MAAM,iBAAiB,GACnB,eAAe,CAAC,eAAe,CAAC;QAChC,eAAe,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;IACvD,IAAI,iBAAiB,EAAE,CAAC;QACpB,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,GAAG,CAC/C,CAAO,gBAAwB,EAAE,EAAE;YAC/B,IAAI,CAAC;gBACD,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC;oBAC9C,QAAQ,EAAE,gBAAgB;oBAC1B,MAAM,EAAE,uBAAU,CAAC,GAAG;oBACtB,IAAI,EAAE,IAAI;oBACV,OAAO,EAAE;wBACL,CAAC,iBAAU,CAAC,mBAAmB,CAAC,EAC5B,mBAAY,CAAC,mBAAmB;qBACvC;oBACD,SAAS,EAAE,IAAI;oBACf,WAAW,EAAE,iBAAO,CAAC,0BAA0B;iBAClD,CAAC,CAAC;gBACH,OAAO,QAAQ,CAAC,OAAO,CAAC;YAC5B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,gBAAM,CAAC,KAAK,CACR,KAAK,EACL,uCAAuC,gBAAgB,EAAE,CAC5D,CAAC;gBACF,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC,CAAA,CACJ,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAC1D,MAAM,aAAa,GAAU,QAAQ,CAAC,MAAM,CACxC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAChC,CAAC;QAEF,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;QACtD,MAAM,IAAI,kBAAQ,CACd,mBAAmB,EACnB,sBAAY,CAAC,+BAA+B,CAC/C,CAAC;IACN,CAAC;SAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,CAAC;QAC5C,MAAM,IAAI,kBAAQ,CACd,2BAA2B,EAC3B,sBAAY,CAAC,4BAA4B,CAC5C,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,MAAM,IAAI,kBAAQ,CACd,qCAAqC,EACrC,sBAAY,CAAC,+BAA+B,CAC/C,CAAC;IACN,CAAC;AACL,CAAC,CAAA,CAAC;AAtDW,QAAA,iBAAiB,qBAsD5B;AAEF,MAAM,eAAe,GAAG,CAAC,OAAwB,EAAmB,EAAE;IAClE,IAAI,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACjC,OAAO,IAAA,YAAO,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAC/B,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YACrB,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import VCLServiceTypes from '../../api/entities/VCLServiceTypes';
2
+ import VCLVerifiedProfile from '../../api/entities/VCLVerifiedProfile';
3
+ import VCLVerifiedProfileDescriptor from '../../api/entities/VCLVerifiedProfileDescriptor';
4
+ import VerifiedProfileUseCase from '../domain/usecases/VerifiedProfileUseCase';
5
+ import { Nullish } from '../../api/VCLTypes';
6
+ export declare class ProfileServiceTypeVerifier {
7
+ private readonly verifiedProfileUseCase;
8
+ constructor(verifiedProfileUseCase: VerifiedProfileUseCase);
9
+ verifyServiceTypeOfVerifiedProfile(verifiedProfileDescriptor: VCLVerifiedProfileDescriptor, expectedServiceTypes: VCLServiceTypes): Promise<VCLVerifiedProfile>;
10
+ toJsonString(profileName: Nullish<string>, message: Nullish<string>): string;
11
+ verifyServiceType(verifiedProfile: VCLVerifiedProfile, expectedServiceTypes: VCLServiceTypes): Promise<boolean>;
12
+ }
@@ -0,0 +1,57 @@
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.ProfileServiceTypeVerifier = void 0;
16
+ const VCLError_1 = __importDefault(require("../../api/entities/error/VCLError"));
17
+ const VCLStatusCode_1 = __importDefault(require("../../api/entities/error/VCLStatusCode"));
18
+ const VCLErrorCode_1 = __importDefault(require("../../api/entities/error/VCLErrorCode"));
19
+ const VCLLog_1 = __importDefault(require("./VCLLog"));
20
+ class ProfileServiceTypeVerifier {
21
+ constructor(verifiedProfileUseCase) {
22
+ this.verifiedProfileUseCase = verifiedProfileUseCase;
23
+ }
24
+ verifyServiceTypeOfVerifiedProfile(verifiedProfileDescriptor, expectedServiceTypes) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ const verifiedProfile = yield this.verifiedProfileUseCase.getVerifiedProfile(verifiedProfileDescriptor);
27
+ yield this.verifyServiceType(verifiedProfile, expectedServiceTypes);
28
+ return verifiedProfile;
29
+ });
30
+ }
31
+ toJsonString(profileName, message) {
32
+ try {
33
+ const jsonObject = {};
34
+ if (profileName !== null) {
35
+ jsonObject.profileName = profileName;
36
+ }
37
+ if (message !== null) {
38
+ jsonObject.message = message;
39
+ }
40
+ return JSON.stringify(jsonObject);
41
+ }
42
+ catch (e) {
43
+ VCLLog_1.default.error(e);
44
+ }
45
+ return `${profileName} ${message}`;
46
+ }
47
+ verifyServiceType(verifiedProfile, expectedServiceTypes) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ if (verifiedProfile.serviceTypes.containsAtLeastOneOf(expectedServiceTypes)) {
50
+ return true;
51
+ }
52
+ throw new VCLError_1.default(null, VCLErrorCode_1.default.SdkError.toString(), null, this.toJsonString(verifiedProfile.name, `Wrong service type - expected: ${expectedServiceTypes.all}, found: ${verifiedProfile.serviceTypes.all}`), VCLStatusCode_1.default.VerificationError);
53
+ });
54
+ }
55
+ }
56
+ exports.ProfileServiceTypeVerifier = ProfileServiceTypeVerifier;
57
+ //# sourceMappingURL=ProfileServiceTypeVerifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileServiceTypeVerifier.js","sourceRoot":"","sources":["../../../src/impl/utils/ProfileServiceTypeVerifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iFAAyD;AAEzD,2FAAmE;AAInE,yFAAiE;AAEjE,sDAA8B;AAE9B,MAAa,0BAA0B;IACnC,YACqB,sBAA8C;QAA9C,2BAAsB,GAAtB,sBAAsB,CAAwB;IAChE,CAAC;IAEE,kCAAkC,CACpC,yBAAuD,EACvD,oBAAqC;;YAErC,MAAM,eAAe,GACjB,MAAM,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAChD,yBAAyB,CAC5B,CAAC;YAEN,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC;YAEpE,OAAO,eAAe,CAAC;QAC3B,CAAC;KAAA;IAED,YAAY,CACR,WAA4B,EAC5B,OAAwB;QAExB,IAAI,CAAC;YACD,MAAM,UAAU,GAAoB,EAAE,CAAC;YACvC,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;gBACvB,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;YACzC,CAAC;YACD,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;gBACnB,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;YACjC,CAAC;YACD,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACtC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,gBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;QACD,OAAO,GAAG,WAAW,IAAI,OAAO,EAAE,CAAC;IACvC,CAAC;IAEK,iBAAiB,CACnB,eAAmC,EACnC,oBAAqC;;YAErC,IACI,eAAe,CAAC,YAAY,CAAC,oBAAoB,CAC7C,oBAAoB,CACvB,EACH,CAAC;gBACC,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,kBAAQ,CACd,IAAI,EACJ,sBAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAChC,IAAI,EACJ,IAAI,CAAC,YAAY,CACb,eAAe,CAAC,IAAI,EACpB,kCAAkC,oBAAoB,CAAC,GAAG,YAAY,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,CAC3G,EACD,uBAAa,CAAC,iBAAiB,CAClC,CAAC;QACN,CAAC;KAAA;CACJ;AA5DD,gEA4DC"}
@@ -0,0 +1,9 @@
1
+ import { VCLLogService, LogFn } from '../../api/entities/initialization/VCLLogService';
2
+ export default class VCLLog {
3
+ private static _LoggerService;
4
+ static get LoggerService(): VCLLogService;
5
+ static setLoggerService(value: VCLLogService): void;
6
+ static error: LogFn;
7
+ static warn: LogFn;
8
+ static info: LogFn;
9
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ var _a;
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const pino_1 = __importDefault(require("pino"));
8
+ const GlobalConfig_1 = __importDefault(require("../GlobalConfig"));
9
+ class VCLLog {
10
+ static get LoggerService() {
11
+ return this._LoggerService;
12
+ }
13
+ static setLoggerService(value) {
14
+ this._LoggerService = value || (0, pino_1.default)();
15
+ }
16
+ }
17
+ _a = VCLLog;
18
+ VCLLog._LoggerService = (0, pino_1.default)();
19
+ VCLLog.error = (obj, msg, ...args) => {
20
+ _a.LoggerService.error(obj, msg, ...args);
21
+ };
22
+ VCLLog.warn = (obj, msg, ...args) => {
23
+ GlobalConfig_1.default.IsLoggerOn && _a.LoggerService.warn(obj, msg, ...args);
24
+ };
25
+ VCLLog.info = (obj, msg, ...args) => {
26
+ GlobalConfig_1.default.IsLoggerOn && _a.LoggerService.info(obj, msg, ...args);
27
+ };
28
+ exports.default = VCLLog;
29
+ //# sourceMappingURL=VCLLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLLog.js","sourceRoot":"","sources":["../../../src/impl/utils/VCLLog.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAKxB,mEAA2C;AAE3C,MAAqB,MAAM;IAGvB,MAAM,KAAK,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,KAAoB;QACxC,IAAI,CAAC,cAAc,GAAG,KAAK,IAAI,IAAA,cAAI,GAAE,CAAC;IAC1C,CAAC;;;AARc,qBAAc,GAAkB,IAAA,cAAI,GAAE,AAAxB,CAAyB;AAU/C,YAAK,GAAU,CAAC,GAAQ,EAAE,GAAY,EAAE,GAAG,IAAW,EAAE,EAAE;IAE7D,EAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AAChD,CAAC,AAHW,CAGV;AAEK,WAAI,GAAU,CAAC,GAAQ,EAAE,GAAY,EAAE,GAAG,IAAW,EAAE,EAAE;IAE5D,sBAAY,CAAC,UAAU,IAAI,EAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1E,CAAC,AAHU,CAGT;AAEK,WAAI,GAAU,CAAC,GAAQ,EAAE,GAAY,EAAE,GAAG,IAAW,EAAE,EAAE;IAE5D,sBAAY,CAAC,UAAU,IAAI,EAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AAC1E,CAAC,AAHU,CAGT;kBAxBe,MAAM"}
@@ -0,0 +1,64 @@
1
+ import VCLProvider from './api/VCLProvider';
2
+ import VCLSignatureAlgorithm from './api/VCLSignatureAlgorithm';
3
+ import type VCL from './api/VCL';
4
+ import VCLInitializationDescriptor from './api/entities/initialization/VCLInitializationDescriptor';
5
+ import VCLCryptoServicesDescriptor from './api/entities/initialization/VCLCryptoServicesDescriptor';
6
+ import type VCLKeyService from './api/keys/VCLKeyService';
7
+ import type VCLJwtSignService from './api/jwt/VCLJwtSignService';
8
+ import type VCLJwtVerifyService from './api/jwt/VCLJwtVerifyService';
9
+ import VCLEnvironment, { environmentFromString } from './api/VCLEnvironment';
10
+ import VCLXVnfProtocolVersion, { vnfProtocolVersionFromString } from './api/VCLXVnfProtocolVersion';
11
+ import VCLCountry from './api/entities/VCLCountry';
12
+ import VCLCountries from './api/entities/VCLCountries';
13
+ import VCLCountryCodes from './api/entities/VCLCountryCodes';
14
+ import VCLRegion from './api/entities/VCLRegion';
15
+ import VCLRegions from './api/entities/VCLRegions';
16
+ import VCLCredentialManifest from './api/entities/VCLCredentialManifest';
17
+ import VCLCredentialManifestDescriptor from './api/entities/VCLCredentialManifestDescriptor';
18
+ import VCLCredentialManifestDescriptorByDeepLink from './api/entities/VCLCredentialManifestDescriptorByDeepLink';
19
+ import VCLCredentialManifestDescriptorByService from './api/entities/VCLCredentialManifestDescriptorByService';
20
+ import VCLCredentialManifestDescriptorRefresh from './api/entities/VCLCredentialManifestDescriptorRefresh';
21
+ import VCLCredentialType from './api/entities/VCLCredentialType';
22
+ import VCLCredentialTypes from './api/entities/VCLCredentialTypes';
23
+ import VCLCredentialTypeSchema from './api/entities/VCLCredentialTypeSchema';
24
+ import VCLCredentialTypeSchemas from './api/entities/VCLCredentialTypeSchemas';
25
+ import VCLCredentialTypesUIFormSchemaDescriptor from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
26
+ import VCLCredentialTypesUIFormSchema from './api/entities/VCLCredentialTypesUIFormSchema';
27
+ import VCLDeepLink from './api/entities/VCLDeepLink';
28
+ import VCLExchange from './api/entities/VCLExchange';
29
+ import VCLExchangeDescriptor from './api/entities/VCLExchangeDescriptor';
30
+ import VCLFinalizeOffersDescriptor from './api/entities/VCLFinalizeOffersDescriptor';
31
+ import VCLGenerateOffersDescriptor from './api/entities/VCLGenerateOffersDescriptor';
32
+ import VCLJwt from './api/entities/VCLJwt';
33
+ import VCLJwtVerifiableCredentials from './api/entities/VCLJwtVerifiableCredentials';
34
+ import VCLOffer from './api/entities/VCLOffer';
35
+ import VCLOffers from './api/entities/VCLOffers';
36
+ import VCLOrganization from './api/entities/VCLOrganization';
37
+ import VCLOrganizations from './api/entities/VCLOrganizations';
38
+ import { VCLOrganizationsSearchDescriptor, VCLFilter, VCLPage } from './api/entities/VCLOrganizationsSearchDescriptor';
39
+ import VCLPresentationRequest from './api/entities/VCLPresentationRequest';
40
+ import VCLPresentationSubmission from './api/entities/VCLPresentationSubmission';
41
+ import VCLPublicJwk from './api/entities/VCLPublicJwk';
42
+ import VCLPushDelegate from './api/entities/VCLPushDelegate';
43
+ import VCLService from './api/entities/VCLService';
44
+ import VCLServiceType from './api/entities/VCLServiceType';
45
+ import VCLServiceTypes from './api/entities/VCLServiceTypes';
46
+ import { VCLIssuingType, issuingTypeFromString } from './api/entities/VCLIssuingType';
47
+ import VCLSubmissionResult from './api/entities/VCLSubmissionResult';
48
+ import VCLToken from './api/entities/VCLToken';
49
+ import VCLVerifiableCredential from './api/entities/VCLVerifiableCredential';
50
+ import VCLVerifiedProfile from './api/entities/VCLVerifiedProfile';
51
+ import VCLVerifiedProfileDescriptor from './api/entities/VCLVerifiedProfileDescriptor';
52
+ import VCLPresentationRequestDescriptor from './api/entities/VCLPresentationRequestDescriptor';
53
+ import VCLJwtDescriptor from './api/entities/VCLJwtDescriptor';
54
+ import VCLDidJwkDescriptor from './api/entities/VCLDidJwkDescriptor';
55
+ import VCLDidJwk from './api/entities/VCLDidJwk';
56
+ import VCLError from './api/entities/error/VCLError';
57
+ import VCLStatusCode from './api/entities/error/VCLStatusCode';
58
+ import VCLErrorCode from './api/entities/error/VCLErrorCode';
59
+ import { VCLLogService, LogFn } from './api/entities/initialization/VCLLogService';
60
+ import type { Nullish, Dictionary } from './api/VCLTypes';
61
+ import VCLAuthToken from './api/entities/VCLAuthToken';
62
+ import VCLAuthTokenDescriptor from './api/entities/VCLAuthTokenDescriptor';
63
+ export type { VCL, VCLKeyService, VCLJwtSignService, VCLJwtVerifyService, Nullish, Dictionary, VCLLogService, LogFn, };
64
+ export { VCLProvider, VCLSignatureAlgorithm, VCLInitializationDescriptor, VCLCryptoServicesDescriptor, VCLEnvironment, VCLXVnfProtocolVersion, VCLStatusCode, VCLErrorCode, VCLServiceType, VCLServiceTypes, VCLIssuingType, issuingTypeFromString, VCLCountryCodes, VCLError, VCLCountry, VCLCountries, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypes, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLExchange, VCLExchangeDescriptor, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJwt, VCLJwtVerifiableCredentials, VCLOffer, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLFilter, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPublicJwk, VCLPushDelegate, VCLService, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLPresentationRequestDescriptor, VCLJwtDescriptor, VCLDidJwkDescriptor, VCLDidJwk, vnfProtocolVersionFromString, environmentFromString, VCLAuthToken, VCLAuthTokenDescriptor, };
package/dist/index.js ADDED
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.VCLToken = exports.VCLSubmissionResult = exports.VCLService = exports.VCLPushDelegate = exports.VCLPublicJwk = exports.VCLPresentationSubmission = exports.VCLPresentationRequest = exports.VCLPage = exports.VCLFilter = exports.VCLOrganizationsSearchDescriptor = exports.VCLOrganizations = exports.VCLOrganization = exports.VCLOffers = exports.VCLOffer = exports.VCLJwtVerifiableCredentials = exports.VCLJwt = exports.VCLGenerateOffersDescriptor = exports.VCLFinalizeOffersDescriptor = exports.VCLExchangeDescriptor = exports.VCLExchange = exports.VCLDeepLink = exports.VCLCredentialManifestDescriptorRefresh = exports.VCLCredentialTypesUIFormSchemaDescriptor = exports.VCLCredentialTypesUIFormSchema = exports.VCLCredentialTypeSchemas = exports.VCLCredentialTypeSchema = exports.VCLCredentialTypes = exports.VCLCredentialType = exports.VCLCredentialManifestDescriptorByService = exports.VCLCredentialManifestDescriptorByDeepLink = exports.VCLCredentialManifestDescriptor = exports.VCLCredentialManifest = exports.VCLRegions = exports.VCLRegion = exports.VCLCountries = exports.VCLCountry = exports.VCLError = exports.VCLCountryCodes = exports.issuingTypeFromString = exports.VCLIssuingType = exports.VCLServiceTypes = exports.VCLServiceType = exports.VCLErrorCode = exports.VCLStatusCode = exports.VCLXVnfProtocolVersion = exports.VCLEnvironment = exports.VCLCryptoServicesDescriptor = exports.VCLInitializationDescriptor = exports.VCLSignatureAlgorithm = exports.VCLProvider = void 0;
40
+ exports.VCLAuthTokenDescriptor = exports.VCLAuthToken = exports.environmentFromString = exports.vnfProtocolVersionFromString = exports.VCLDidJwk = exports.VCLDidJwkDescriptor = exports.VCLJwtDescriptor = exports.VCLPresentationRequestDescriptor = exports.VCLVerifiedProfileDescriptor = exports.VCLVerifiedProfile = exports.VCLVerifiableCredential = void 0;
41
+ const VCLProvider_1 = __importDefault(require("./api/VCLProvider"));
42
+ exports.VCLProvider = VCLProvider_1.default;
43
+ const VCLSignatureAlgorithm_1 = __importDefault(require("./api/VCLSignatureAlgorithm"));
44
+ exports.VCLSignatureAlgorithm = VCLSignatureAlgorithm_1.default;
45
+ const VCLInitializationDescriptor_1 = __importDefault(require("./api/entities/initialization/VCLInitializationDescriptor"));
46
+ exports.VCLInitializationDescriptor = VCLInitializationDescriptor_1.default;
47
+ const VCLCryptoServicesDescriptor_1 = __importDefault(require("./api/entities/initialization/VCLCryptoServicesDescriptor"));
48
+ exports.VCLCryptoServicesDescriptor = VCLCryptoServicesDescriptor_1.default;
49
+ const VCLEnvironment_1 = __importStar(require("./api/VCLEnvironment"));
50
+ exports.VCLEnvironment = VCLEnvironment_1.default;
51
+ Object.defineProperty(exports, "environmentFromString", { enumerable: true, get: function () { return VCLEnvironment_1.environmentFromString; } });
52
+ const VCLXVnfProtocolVersion_1 = __importStar(require("./api/VCLXVnfProtocolVersion"));
53
+ exports.VCLXVnfProtocolVersion = VCLXVnfProtocolVersion_1.default;
54
+ Object.defineProperty(exports, "vnfProtocolVersionFromString", { enumerable: true, get: function () { return VCLXVnfProtocolVersion_1.vnfProtocolVersionFromString; } });
55
+ const VCLCountry_1 = __importDefault(require("./api/entities/VCLCountry"));
56
+ exports.VCLCountry = VCLCountry_1.default;
57
+ const VCLCountries_1 = __importDefault(require("./api/entities/VCLCountries"));
58
+ exports.VCLCountries = VCLCountries_1.default;
59
+ const VCLCountryCodes_1 = __importDefault(require("./api/entities/VCLCountryCodes"));
60
+ exports.VCLCountryCodes = VCLCountryCodes_1.default;
61
+ const VCLRegion_1 = __importDefault(require("./api/entities/VCLRegion"));
62
+ exports.VCLRegion = VCLRegion_1.default;
63
+ const VCLRegions_1 = __importDefault(require("./api/entities/VCLRegions"));
64
+ exports.VCLRegions = VCLRegions_1.default;
65
+ const VCLCredentialManifest_1 = __importDefault(require("./api/entities/VCLCredentialManifest"));
66
+ exports.VCLCredentialManifest = VCLCredentialManifest_1.default;
67
+ const VCLCredentialManifestDescriptor_1 = __importDefault(require("./api/entities/VCLCredentialManifestDescriptor"));
68
+ exports.VCLCredentialManifestDescriptor = VCLCredentialManifestDescriptor_1.default;
69
+ const VCLCredentialManifestDescriptorByDeepLink_1 = __importDefault(require("./api/entities/VCLCredentialManifestDescriptorByDeepLink"));
70
+ exports.VCLCredentialManifestDescriptorByDeepLink = VCLCredentialManifestDescriptorByDeepLink_1.default;
71
+ const VCLCredentialManifestDescriptorByService_1 = __importDefault(require("./api/entities/VCLCredentialManifestDescriptorByService"));
72
+ exports.VCLCredentialManifestDescriptorByService = VCLCredentialManifestDescriptorByService_1.default;
73
+ const VCLCredentialManifestDescriptorRefresh_1 = __importDefault(require("./api/entities/VCLCredentialManifestDescriptorRefresh"));
74
+ exports.VCLCredentialManifestDescriptorRefresh = VCLCredentialManifestDescriptorRefresh_1.default;
75
+ const VCLCredentialType_1 = __importDefault(require("./api/entities/VCLCredentialType"));
76
+ exports.VCLCredentialType = VCLCredentialType_1.default;
77
+ const VCLCredentialTypes_1 = __importDefault(require("./api/entities/VCLCredentialTypes"));
78
+ exports.VCLCredentialTypes = VCLCredentialTypes_1.default;
79
+ const VCLCredentialTypeSchema_1 = __importDefault(require("./api/entities/VCLCredentialTypeSchema"));
80
+ exports.VCLCredentialTypeSchema = VCLCredentialTypeSchema_1.default;
81
+ const VCLCredentialTypeSchemas_1 = __importDefault(require("./api/entities/VCLCredentialTypeSchemas"));
82
+ exports.VCLCredentialTypeSchemas = VCLCredentialTypeSchemas_1.default;
83
+ const VCLCredentialTypesUIFormSchemaDescriptor_1 = __importDefault(require("./api/entities/VCLCredentialTypesUIFormSchemaDescriptor"));
84
+ exports.VCLCredentialTypesUIFormSchemaDescriptor = VCLCredentialTypesUIFormSchemaDescriptor_1.default;
85
+ const VCLCredentialTypesUIFormSchema_1 = __importDefault(require("./api/entities/VCLCredentialTypesUIFormSchema"));
86
+ exports.VCLCredentialTypesUIFormSchema = VCLCredentialTypesUIFormSchema_1.default;
87
+ const VCLDeepLink_1 = __importDefault(require("./api/entities/VCLDeepLink"));
88
+ exports.VCLDeepLink = VCLDeepLink_1.default;
89
+ const VCLExchange_1 = __importDefault(require("./api/entities/VCLExchange"));
90
+ exports.VCLExchange = VCLExchange_1.default;
91
+ const VCLExchangeDescriptor_1 = __importDefault(require("./api/entities/VCLExchangeDescriptor"));
92
+ exports.VCLExchangeDescriptor = VCLExchangeDescriptor_1.default;
93
+ const VCLFinalizeOffersDescriptor_1 = __importDefault(require("./api/entities/VCLFinalizeOffersDescriptor"));
94
+ exports.VCLFinalizeOffersDescriptor = VCLFinalizeOffersDescriptor_1.default;
95
+ const VCLGenerateOffersDescriptor_1 = __importDefault(require("./api/entities/VCLGenerateOffersDescriptor"));
96
+ exports.VCLGenerateOffersDescriptor = VCLGenerateOffersDescriptor_1.default;
97
+ const VCLJwt_1 = __importDefault(require("./api/entities/VCLJwt"));
98
+ exports.VCLJwt = VCLJwt_1.default;
99
+ const VCLJwtVerifiableCredentials_1 = __importDefault(require("./api/entities/VCLJwtVerifiableCredentials"));
100
+ exports.VCLJwtVerifiableCredentials = VCLJwtVerifiableCredentials_1.default;
101
+ const VCLOffer_1 = __importDefault(require("./api/entities/VCLOffer"));
102
+ exports.VCLOffer = VCLOffer_1.default;
103
+ const VCLOffers_1 = __importDefault(require("./api/entities/VCLOffers"));
104
+ exports.VCLOffers = VCLOffers_1.default;
105
+ const VCLOrganization_1 = __importDefault(require("./api/entities/VCLOrganization"));
106
+ exports.VCLOrganization = VCLOrganization_1.default;
107
+ const VCLOrganizations_1 = __importDefault(require("./api/entities/VCLOrganizations"));
108
+ exports.VCLOrganizations = VCLOrganizations_1.default;
109
+ const VCLOrganizationsSearchDescriptor_1 = require("./api/entities/VCLOrganizationsSearchDescriptor");
110
+ Object.defineProperty(exports, "VCLOrganizationsSearchDescriptor", { enumerable: true, get: function () { return VCLOrganizationsSearchDescriptor_1.VCLOrganizationsSearchDescriptor; } });
111
+ Object.defineProperty(exports, "VCLFilter", { enumerable: true, get: function () { return VCLOrganizationsSearchDescriptor_1.VCLFilter; } });
112
+ Object.defineProperty(exports, "VCLPage", { enumerable: true, get: function () { return VCLOrganizationsSearchDescriptor_1.VCLPage; } });
113
+ const VCLPresentationRequest_1 = __importDefault(require("./api/entities/VCLPresentationRequest"));
114
+ exports.VCLPresentationRequest = VCLPresentationRequest_1.default;
115
+ const VCLPresentationSubmission_1 = __importDefault(require("./api/entities/VCLPresentationSubmission"));
116
+ exports.VCLPresentationSubmission = VCLPresentationSubmission_1.default;
117
+ const VCLPublicJwk_1 = __importDefault(require("./api/entities/VCLPublicJwk"));
118
+ exports.VCLPublicJwk = VCLPublicJwk_1.default;
119
+ const VCLPushDelegate_1 = __importDefault(require("./api/entities/VCLPushDelegate"));
120
+ exports.VCLPushDelegate = VCLPushDelegate_1.default;
121
+ const VCLService_1 = __importDefault(require("./api/entities/VCLService"));
122
+ exports.VCLService = VCLService_1.default;
123
+ const VCLServiceType_1 = __importDefault(require("./api/entities/VCLServiceType"));
124
+ exports.VCLServiceType = VCLServiceType_1.default;
125
+ const VCLServiceTypes_1 = __importDefault(require("./api/entities/VCLServiceTypes"));
126
+ exports.VCLServiceTypes = VCLServiceTypes_1.default;
127
+ const VCLIssuingType_1 = require("./api/entities/VCLIssuingType");
128
+ Object.defineProperty(exports, "VCLIssuingType", { enumerable: true, get: function () { return VCLIssuingType_1.VCLIssuingType; } });
129
+ Object.defineProperty(exports, "issuingTypeFromString", { enumerable: true, get: function () { return VCLIssuingType_1.issuingTypeFromString; } });
130
+ const VCLSubmissionResult_1 = __importDefault(require("./api/entities/VCLSubmissionResult"));
131
+ exports.VCLSubmissionResult = VCLSubmissionResult_1.default;
132
+ const VCLToken_1 = __importDefault(require("./api/entities/VCLToken"));
133
+ exports.VCLToken = VCLToken_1.default;
134
+ const VCLVerifiableCredential_1 = __importDefault(require("./api/entities/VCLVerifiableCredential"));
135
+ exports.VCLVerifiableCredential = VCLVerifiableCredential_1.default;
136
+ const VCLVerifiedProfile_1 = __importDefault(require("./api/entities/VCLVerifiedProfile"));
137
+ exports.VCLVerifiedProfile = VCLVerifiedProfile_1.default;
138
+ const VCLVerifiedProfileDescriptor_1 = __importDefault(require("./api/entities/VCLVerifiedProfileDescriptor"));
139
+ exports.VCLVerifiedProfileDescriptor = VCLVerifiedProfileDescriptor_1.default;
140
+ const VCLPresentationRequestDescriptor_1 = __importDefault(require("./api/entities/VCLPresentationRequestDescriptor"));
141
+ exports.VCLPresentationRequestDescriptor = VCLPresentationRequestDescriptor_1.default;
142
+ const VCLJwtDescriptor_1 = __importDefault(require("./api/entities/VCLJwtDescriptor"));
143
+ exports.VCLJwtDescriptor = VCLJwtDescriptor_1.default;
144
+ const VCLDidJwkDescriptor_1 = __importDefault(require("./api/entities/VCLDidJwkDescriptor"));
145
+ exports.VCLDidJwkDescriptor = VCLDidJwkDescriptor_1.default;
146
+ const VCLDidJwk_1 = __importDefault(require("./api/entities/VCLDidJwk"));
147
+ exports.VCLDidJwk = VCLDidJwk_1.default;
148
+ const VCLError_1 = __importDefault(require("./api/entities/error/VCLError"));
149
+ exports.VCLError = VCLError_1.default;
150
+ const VCLStatusCode_1 = __importDefault(require("./api/entities/error/VCLStatusCode"));
151
+ exports.VCLStatusCode = VCLStatusCode_1.default;
152
+ const VCLErrorCode_1 = __importDefault(require("./api/entities/error/VCLErrorCode"));
153
+ exports.VCLErrorCode = VCLErrorCode_1.default;
154
+ const VCLAuthToken_1 = __importDefault(require("./api/entities/VCLAuthToken"));
155
+ exports.VCLAuthToken = VCLAuthToken_1.default;
156
+ const VCLAuthTokenDescriptor_1 = __importDefault(require("./api/entities/VCLAuthTokenDescriptor"));
157
+ exports.VCLAuthTokenDescriptor = VCLAuthTokenDescriptor_1.default;
158
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@verii/vnf-nodejs-wallet-sdk",
3
+ "version": "1.0.0-pre.1752076816",
4
+ "description": "VNF Wallet SDK Nodejs",
5
+ "repository": "https://github.com/LFDT-Verii/core",
6
+ "author": "Andres Olave",
7
+ "license": "Apache-2.0",
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "lint": "eslint --ext .js,.ts,.tsx .",
15
+ "lint:fix": "eslint --fix --ext .js,.ts,.tsx .",
16
+ "build": "tsc",
17
+ "build:watch": "tsc --watch",
18
+ "prepublishOnly": "tsc --declaration",
19
+ "test": "jest --config ./jest.config.js --runInBand --coverage"
20
+ },
21
+ "engines": {
22
+ "node": ">= 20.0.0"
23
+ },
24
+ "dependencies": {
25
+ "@verii/vc-checks": "1.0.0-pre.1752076816",
26
+ "axios": "^1.7.9",
27
+ "canonicalize": "^2.0.0",
28
+ "jose": "^5.9.6",
29
+ "lodash": "^4.17.21",
30
+ "pino": "^9.6.0",
31
+ "pino-pretty": "^13.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@jest/globals": "29.7.0",
35
+ "@types/jest": "29.5.14",
36
+ "@types/node": "22.16.0",
37
+ "eslint": "8.57.1",
38
+ "eslint-config-prettier": "8.10.0",
39
+ "eslint-import-resolver-typescript": "3.10.1",
40
+ "eslint-plugin-autofix": "1.1.0",
41
+ "eslint-plugin-import": "2.32.0",
42
+ "eslint-plugin-jsx-a11y": "6.10.2",
43
+ "eslint-plugin-prefer-arrow-functions": "3.6.2",
44
+ "eslint-plugin-prettier": "4.2.1",
45
+ "eslint-plugin-unused-imports": "2.0.0",
46
+ "jest": "29.7.0",
47
+ "ts-jest": "29.4.0",
48
+ "typescript": "5.8.3"
49
+ },
50
+ "files": [
51
+ "/dist"
52
+ ],
53
+ "nx": {
54
+ "tags": [
55
+ "lib"
56
+ ]
57
+ },
58
+ "gitHead": "5885ce94149cc0102b2bc9cde18834293174bfaf"
59
+ }