@velocitycareerlabs/vcl-react-native 1.0.1

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 (308) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +126 -0
  3. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  4. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
  6. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  7. package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
  8. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/7.4.2/gc.properties +0 -0
  10. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/android/.gradle/vcs-1/gc.properties +0 -0
  13. package/android/build.gradle +134 -0
  14. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  15. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  16. package/android/gradle.properties +4 -0
  17. package/android/src/main/AndroidManifest.xml +3 -0
  18. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +320 -0
  19. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativePackage.kt +19 -0
  20. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/ArrayExtensions.kt +88 -0
  21. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/JSONExtensions.kt +66 -0
  22. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +89 -0
  23. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/RNCollectionExtensions.kt +62 -0
  24. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +514 -0
  25. package/ios/Extensions/StringExtensions.swift +21 -0
  26. package/ios/Utils/Converter.swift +507 -0
  27. package/ios/VclReactNative-Bridging-Header.h +2 -0
  28. package/ios/VclReactNative.m +70 -0
  29. package/ios/VclReactNative.swift +249 -0
  30. package/ios/VclReactNative.xcodeproj/project.pbxproj +303 -0
  31. package/lib/commonjs/api/Dictionary.js +2 -0
  32. package/lib/commonjs/api/Dictionary.js.map +1 -0
  33. package/lib/commonjs/api/VCLApi.js +6 -0
  34. package/lib/commonjs/api/VCLApi.js.map +1 -0
  35. package/lib/commonjs/api/VCLEnvironment.js +15 -0
  36. package/lib/commonjs/api/VCLEnvironment.js.map +1 -0
  37. package/lib/commonjs/api/entities/VCLCountries.js +263 -0
  38. package/lib/commonjs/api/entities/VCLCountries.js.map +1 -0
  39. package/lib/commonjs/api/entities/VCLCountry.js +6 -0
  40. package/lib/commonjs/api/entities/VCLCountry.js.map +1 -0
  41. package/lib/commonjs/api/entities/VCLCredentialManifest.js +6 -0
  42. package/lib/commonjs/api/entities/VCLCredentialManifest.js.map +1 -0
  43. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js +6 -0
  44. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
  45. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +6 -0
  46. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
  47. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js +6 -0
  48. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
  49. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js +6 -0
  50. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
  51. package/lib/commonjs/api/entities/VCLCredentialType.js +6 -0
  52. package/lib/commonjs/api/entities/VCLCredentialType.js.map +1 -0
  53. package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js +6 -0
  54. package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js.map +1 -0
  55. package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js +6 -0
  56. package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
  57. package/lib/commonjs/api/entities/VCLCredentialTypes.js +6 -0
  58. package/lib/commonjs/api/entities/VCLCredentialTypes.js.map +1 -0
  59. package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js +6 -0
  60. package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
  61. package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +2 -0
  62. package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
  63. package/lib/commonjs/api/entities/VCLDeepLink.js +2 -0
  64. package/lib/commonjs/api/entities/VCLDeepLink.js.map +1 -0
  65. package/lib/commonjs/api/entities/VCLError.js +2 -0
  66. package/lib/commonjs/api/entities/VCLError.js.map +1 -0
  67. package/lib/commonjs/api/entities/VCLExchange.js +2 -0
  68. package/lib/commonjs/api/entities/VCLExchange.js.map +1 -0
  69. package/lib/commonjs/api/entities/VCLExchangeDescriptor.js +6 -0
  70. package/lib/commonjs/api/entities/VCLExchangeDescriptor.js.map +1 -0
  71. package/lib/commonjs/api/entities/VCLFilter.js +6 -0
  72. package/lib/commonjs/api/entities/VCLFilter.js.map +1 -0
  73. package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js +6 -0
  74. package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
  75. package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js +6 -0
  76. package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
  77. package/lib/commonjs/api/entities/VCLJWT.js +2 -0
  78. package/lib/commonjs/api/entities/VCLJWT.js.map +1 -0
  79. package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js +6 -0
  80. package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
  81. package/lib/commonjs/api/entities/VCLOffers.js +6 -0
  82. package/lib/commonjs/api/entities/VCLOffers.js.map +1 -0
  83. package/lib/commonjs/api/entities/VCLOrganization.js +6 -0
  84. package/lib/commonjs/api/entities/VCLOrganization.js.map +1 -0
  85. package/lib/commonjs/api/entities/VCLOrganizations.js +6 -0
  86. package/lib/commonjs/api/entities/VCLOrganizations.js.map +1 -0
  87. package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js +6 -0
  88. package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
  89. package/lib/commonjs/api/entities/VCLPage.js +2 -0
  90. package/lib/commonjs/api/entities/VCLPage.js.map +1 -0
  91. package/lib/commonjs/api/entities/VCLPresentationRequest.js +6 -0
  92. package/lib/commonjs/api/entities/VCLPresentationRequest.js.map +1 -0
  93. package/lib/commonjs/api/entities/VCLPresentationSubmission.js +6 -0
  94. package/lib/commonjs/api/entities/VCLPresentationSubmission.js.map +1 -0
  95. package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js +6 -0
  96. package/lib/commonjs/api/entities/VCLPresentationSubmissionResult.js.map +1 -0
  97. package/lib/commonjs/api/entities/VCLPublicKey.js +2 -0
  98. package/lib/commonjs/api/entities/VCLPublicKey.js.map +1 -0
  99. package/lib/commonjs/api/entities/VCLPushDelegate.js +2 -0
  100. package/lib/commonjs/api/entities/VCLPushDelegate.js.map +1 -0
  101. package/lib/commonjs/api/entities/VCLRegion.js +6 -0
  102. package/lib/commonjs/api/entities/VCLRegion.js.map +1 -0
  103. package/lib/commonjs/api/entities/VCLRegions.js +6 -0
  104. package/lib/commonjs/api/entities/VCLRegions.js.map +1 -0
  105. package/lib/commonjs/api/entities/VCLService.js +6 -0
  106. package/lib/commonjs/api/entities/VCLService.js.map +1 -0
  107. package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js +6 -0
  108. package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -0
  109. package/lib/commonjs/api/entities/VCLServiceType.js +20 -0
  110. package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -0
  111. package/lib/commonjs/api/entities/VCLSubmissionResult.js +6 -0
  112. package/lib/commonjs/api/entities/VCLSubmissionResult.js.map +1 -0
  113. package/lib/commonjs/api/entities/VCLToken.js +2 -0
  114. package/lib/commonjs/api/entities/VCLToken.js.map +1 -0
  115. package/lib/commonjs/api/entities/VCLVerifiableCredential.js +2 -0
  116. package/lib/commonjs/api/entities/VCLVerifiableCredential.js.map +1 -0
  117. package/lib/commonjs/api/entities/VCLVerifiedProfile.js +6 -0
  118. package/lib/commonjs/api/entities/VCLVerifiedProfile.js.map +1 -0
  119. package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js +2 -0
  120. package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
  121. package/lib/commonjs/index.js +39 -0
  122. package/lib/commonjs/index.js.map +1 -0
  123. package/lib/module/api/Dictionary.js +2 -0
  124. package/lib/module/api/Dictionary.js.map +1 -0
  125. package/lib/module/api/VCLApi.js +2 -0
  126. package/lib/module/api/VCLApi.js.map +1 -0
  127. package/lib/module/api/VCLEnvironment.js +8 -0
  128. package/lib/module/api/VCLEnvironment.js.map +1 -0
  129. package/lib/module/api/entities/VCLCountries.js +256 -0
  130. package/lib/module/api/entities/VCLCountries.js.map +1 -0
  131. package/lib/module/api/entities/VCLCountry.js +2 -0
  132. package/lib/module/api/entities/VCLCountry.js.map +1 -0
  133. package/lib/module/api/entities/VCLCredentialManifest.js +2 -0
  134. package/lib/module/api/entities/VCLCredentialManifest.js.map +1 -0
  135. package/lib/module/api/entities/VCLCredentialManifestDescriptor.js +2 -0
  136. package/lib/module/api/entities/VCLCredentialManifestDescriptor.js.map +1 -0
  137. package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js +2 -0
  138. package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -0
  139. package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js +2 -0
  140. package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -0
  141. package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js +2 -0
  142. package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -0
  143. package/lib/module/api/entities/VCLCredentialType.js +2 -0
  144. package/lib/module/api/entities/VCLCredentialType.js.map +1 -0
  145. package/lib/module/api/entities/VCLCredentialTypeSchema.js +2 -0
  146. package/lib/module/api/entities/VCLCredentialTypeSchema.js.map +1 -0
  147. package/lib/module/api/entities/VCLCredentialTypeSchemas.js +2 -0
  148. package/lib/module/api/entities/VCLCredentialTypeSchemas.js.map +1 -0
  149. package/lib/module/api/entities/VCLCredentialTypes.js +2 -0
  150. package/lib/module/api/entities/VCLCredentialTypes.js.map +1 -0
  151. package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js +2 -0
  152. package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -0
  153. package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js +2 -0
  154. package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -0
  155. package/lib/module/api/entities/VCLDeepLink.js +2 -0
  156. package/lib/module/api/entities/VCLDeepLink.js.map +1 -0
  157. package/lib/module/api/entities/VCLError.js +2 -0
  158. package/lib/module/api/entities/VCLError.js.map +1 -0
  159. package/lib/module/api/entities/VCLExchange.js +2 -0
  160. package/lib/module/api/entities/VCLExchange.js.map +1 -0
  161. package/lib/module/api/entities/VCLExchangeDescriptor.js +2 -0
  162. package/lib/module/api/entities/VCLExchangeDescriptor.js.map +1 -0
  163. package/lib/module/api/entities/VCLFilter.js +2 -0
  164. package/lib/module/api/entities/VCLFilter.js.map +1 -0
  165. package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js +2 -0
  166. package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -0
  167. package/lib/module/api/entities/VCLGenerateOffersDescriptor.js +2 -0
  168. package/lib/module/api/entities/VCLGenerateOffersDescriptor.js.map +1 -0
  169. package/lib/module/api/entities/VCLJWT.js +2 -0
  170. package/lib/module/api/entities/VCLJWT.js.map +1 -0
  171. package/lib/module/api/entities/VCLJwtVerifiableCredentials.js +2 -0
  172. package/lib/module/api/entities/VCLJwtVerifiableCredentials.js.map +1 -0
  173. package/lib/module/api/entities/VCLOffers.js +2 -0
  174. package/lib/module/api/entities/VCLOffers.js.map +1 -0
  175. package/lib/module/api/entities/VCLOrganization.js +2 -0
  176. package/lib/module/api/entities/VCLOrganization.js.map +1 -0
  177. package/lib/module/api/entities/VCLOrganizations.js +2 -0
  178. package/lib/module/api/entities/VCLOrganizations.js.map +1 -0
  179. package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js +2 -0
  180. package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -0
  181. package/lib/module/api/entities/VCLPage.js +2 -0
  182. package/lib/module/api/entities/VCLPage.js.map +1 -0
  183. package/lib/module/api/entities/VCLPresentationRequest.js +2 -0
  184. package/lib/module/api/entities/VCLPresentationRequest.js.map +1 -0
  185. package/lib/module/api/entities/VCLPresentationSubmission.js +2 -0
  186. package/lib/module/api/entities/VCLPresentationSubmission.js.map +1 -0
  187. package/lib/module/api/entities/VCLPresentationSubmissionResult.js +2 -0
  188. package/lib/module/api/entities/VCLPresentationSubmissionResult.js.map +1 -0
  189. package/lib/module/api/entities/VCLPublicKey.js +2 -0
  190. package/lib/module/api/entities/VCLPublicKey.js.map +1 -0
  191. package/lib/module/api/entities/VCLPushDelegate.js +2 -0
  192. package/lib/module/api/entities/VCLPushDelegate.js.map +1 -0
  193. package/lib/module/api/entities/VCLRegion.js +2 -0
  194. package/lib/module/api/entities/VCLRegion.js.map +1 -0
  195. package/lib/module/api/entities/VCLRegions.js +2 -0
  196. package/lib/module/api/entities/VCLRegions.js.map +1 -0
  197. package/lib/module/api/entities/VCLService.js +2 -0
  198. package/lib/module/api/entities/VCLService.js.map +1 -0
  199. package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js +2 -0
  200. package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -0
  201. package/lib/module/api/entities/VCLServiceType.js +13 -0
  202. package/lib/module/api/entities/VCLServiceType.js.map +1 -0
  203. package/lib/module/api/entities/VCLSubmissionResult.js +2 -0
  204. package/lib/module/api/entities/VCLSubmissionResult.js.map +1 -0
  205. package/lib/module/api/entities/VCLToken.js +2 -0
  206. package/lib/module/api/entities/VCLToken.js.map +1 -0
  207. package/lib/module/api/entities/VCLVerifiableCredential.js +2 -0
  208. package/lib/module/api/entities/VCLVerifiableCredential.js.map +1 -0
  209. package/lib/module/api/entities/VCLVerifiedProfile.js +2 -0
  210. package/lib/module/api/entities/VCLVerifiedProfile.js.map +1 -0
  211. package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js +2 -0
  212. package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -0
  213. package/lib/module/index.js +10 -0
  214. package/lib/module/index.js.map +1 -0
  215. package/lib/typescript/api/Dictionary.d.ts +3 -0
  216. package/lib/typescript/api/VCLApi.d.ts +44 -0
  217. package/lib/typescript/api/VCLEnvironment.d.ts +8 -0
  218. package/lib/typescript/api/entities/VCLCountries.d.ts +257 -0
  219. package/lib/typescript/api/entities/VCLCountry.d.ts +8 -0
  220. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +8 -0
  221. package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +5 -0
  222. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +5 -0
  223. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByService.d.ts +5 -0
  224. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +6 -0
  225. package/lib/typescript/api/entities/VCLCredentialType.d.ts +10 -0
  226. package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +4 -0
  227. package/lib/typescript/api/entities/VCLCredentialTypeSchemas.d.ts +5 -0
  228. package/lib/typescript/api/entities/VCLCredentialTypes.d.ts +5 -0
  229. package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +4 -0
  230. package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +4 -0
  231. package/lib/typescript/api/entities/VCLDeepLink.d.ts +3 -0
  232. package/lib/typescript/api/entities/VCLError.d.ts +4 -0
  233. package/lib/typescript/api/entities/VCLExchange.d.ts +6 -0
  234. package/lib/typescript/api/entities/VCLExchangeDescriptor.d.ts +6 -0
  235. package/lib/typescript/api/entities/VCLFilter.d.ts +6 -0
  236. package/lib/typescript/api/entities/VCLFinalizeOffersDescriptor.d.ts +6 -0
  237. package/lib/typescript/api/entities/VCLGenerateOffersDescriptor.d.ts +8 -0
  238. package/lib/typescript/api/entities/VCLJWT.d.ts +3 -0
  239. package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +4 -0
  240. package/lib/typescript/api/entities/VCLOffers.d.ts +7 -0
  241. package/lib/typescript/api/entities/VCLOrganization.d.ts +6 -0
  242. package/lib/typescript/api/entities/VCLOrganizations.d.ts +4 -0
  243. package/lib/typescript/api/entities/VCLOrganizationsSearchDescriptor.d.ts +8 -0
  244. package/lib/typescript/api/entities/VCLPage.d.ts +4 -0
  245. package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +10 -0
  246. package/lib/typescript/api/entities/VCLPresentationSubmission.d.ts +6 -0
  247. package/lib/typescript/api/entities/VCLPresentationSubmissionResult.d.ts +6 -0
  248. package/lib/typescript/api/entities/VCLPublicKey.d.ts +3 -0
  249. package/lib/typescript/api/entities/VCLPushDelegate.d.ts +4 -0
  250. package/lib/typescript/api/entities/VCLRegion.d.ts +6 -0
  251. package/lib/typescript/api/entities/VCLRegions.d.ts +5 -0
  252. package/lib/typescript/api/entities/VCLService.d.ts +4 -0
  253. package/lib/typescript/api/entities/VCLServiceCredentialAgentIssuer.d.ts +3 -0
  254. package/lib/typescript/api/entities/VCLServiceType.d.ts +10 -0
  255. package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +6 -0
  256. package/lib/typescript/api/entities/VCLToken.d.ts +3 -0
  257. package/lib/typescript/api/entities/VCLVerifiableCredential.d.ts +4 -0
  258. package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +8 -0
  259. package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +3 -0
  260. package/lib/typescript/index.d.ts +49 -0
  261. package/package.json +154 -0
  262. package/src/api/Dictionary.tsx +3 -0
  263. package/src/api/VCLApi.tsx +80 -0
  264. package/src/api/VCLEnvironment.tsx +9 -0
  265. package/src/api/entities/VCLCountries.tsx +259 -0
  266. package/src/api/entities/VCLCountry.tsx +9 -0
  267. package/src/api/entities/VCLCredentialManifest.tsx +9 -0
  268. package/src/api/entities/VCLCredentialManifestDescriptor.tsx +6 -0
  269. package/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.tsx +7 -0
  270. package/src/api/entities/VCLCredentialManifestDescriptorByService.tsx +7 -0
  271. package/src/api/entities/VCLCredentialManifestDescriptorRefresh.tsx +8 -0
  272. package/src/api/entities/VCLCredentialType.tsx +11 -0
  273. package/src/api/entities/VCLCredentialTypeSchema.tsx +5 -0
  274. package/src/api/entities/VCLCredentialTypeSchemas.tsx +6 -0
  275. package/src/api/entities/VCLCredentialTypes.tsx +6 -0
  276. package/src/api/entities/VCLCredentialTypesUIFormSchema.tsx +5 -0
  277. package/src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.tsx +4 -0
  278. package/src/api/entities/VCLDeepLink.tsx +3 -0
  279. package/src/api/entities/VCLError.tsx +4 -0
  280. package/src/api/entities/VCLExchange.tsx +6 -0
  281. package/src/api/entities/VCLExchangeDescriptor.tsx +7 -0
  282. package/src/api/entities/VCLFilter.tsx +7 -0
  283. package/src/api/entities/VCLFinalizeOffersDescriptor.tsx +7 -0
  284. package/src/api/entities/VCLGenerateOffersDescriptor.tsx +9 -0
  285. package/src/api/entities/VCLJWT.tsx +3 -0
  286. package/src/api/entities/VCLJwtVerifiableCredentials.tsx +5 -0
  287. package/src/api/entities/VCLOffers.tsx +8 -0
  288. package/src/api/entities/VCLOrganization.tsx +7 -0
  289. package/src/api/entities/VCLOrganizations.tsx +5 -0
  290. package/src/api/entities/VCLOrganizationsSearchDescriptor.tsx +9 -0
  291. package/src/api/entities/VCLPage.tsx +4 -0
  292. package/src/api/entities/VCLPresentationRequest.tsx +11 -0
  293. package/src/api/entities/VCLPresentationSubmission.tsx +7 -0
  294. package/src/api/entities/VCLPresentationSubmissionResult.tsx +7 -0
  295. package/src/api/entities/VCLPublicKey.tsx +3 -0
  296. package/src/api/entities/VCLPushDelegate.tsx +4 -0
  297. package/src/api/entities/VCLRegion.tsx +7 -0
  298. package/src/api/entities/VCLRegions.tsx +6 -0
  299. package/src/api/entities/VCLService.tsx +5 -0
  300. package/src/api/entities/VCLServiceCredentialAgentIssuer.tsx +3 -0
  301. package/src/api/entities/VCLServiceType.tsx +10 -0
  302. package/src/api/entities/VCLSubmissionResult.tsx +7 -0
  303. package/src/api/entities/VCLToken.tsx +3 -0
  304. package/src/api/entities/VCLVerifiableCredential.tsx +4 -0
  305. package/src/api/entities/VCLVerifiedProfile.tsx +9 -0
  306. package/src/api/entities/VCLVerifiedProfileDescriptor.tsx +3 -0
  307. package/src/index.tsx +98 -0
  308. package/vcl-react-native.podspec +22 -0
@@ -0,0 +1,259 @@
1
+ import type { VCLCountry } from './VCLCountry';
2
+
3
+ export interface VCLCountries {
4
+ all: VCLCountry[];
5
+ }
6
+
7
+ export enum VCLCountryCodes {
8
+ BD = 'BD',
9
+ BE = 'BE',
10
+ BF = 'BF',
11
+ BG = 'BG',
12
+ BA = 'BA',
13
+ BB = 'BB',
14
+ WF = 'WF',
15
+ BL = 'BL',
16
+ BM = 'BM',
17
+ BN = 'BN',
18
+ BO = 'BO',
19
+ BH = 'BH',
20
+ BI = 'BI',
21
+ BJ = 'BJ',
22
+ BT = 'BT',
23
+ JM = 'JM',
24
+ BV = 'BV',
25
+ BW = 'BW',
26
+ WS = 'WS',
27
+ BQ = 'BQ',
28
+ BR = 'BR',
29
+ BS = 'BS',
30
+ JE = 'JE',
31
+ BY = 'BY',
32
+ BZ = 'BZ',
33
+ RU = 'RU',
34
+ RW = 'RW',
35
+ RS = 'RS',
36
+ TL = 'TL',
37
+ RE = 'RE',
38
+ TM = 'TM',
39
+ TJ = 'TJ',
40
+ RO = 'RO',
41
+ TK = 'TK',
42
+ GW = 'GW',
43
+ GU = 'GU',
44
+ GT = 'GT',
45
+ GS = 'GS',
46
+ GR = 'GR',
47
+ GQ = 'GQ',
48
+ GP = 'GP',
49
+ JP = 'JP',
50
+ GY = 'GY',
51
+ GG = 'GG',
52
+ GF = 'GF',
53
+ GE = 'GE',
54
+ GD = 'GD',
55
+ GB = 'GB',
56
+ GA = 'GA',
57
+ SV = 'SV',
58
+ GN = 'GN',
59
+ GM = 'GM',
60
+ GL = 'GL',
61
+ GI = 'GI',
62
+ GH = 'GH',
63
+ OM = 'OM',
64
+ TN = 'TN',
65
+ JO = 'JO',
66
+ HR = 'HR',
67
+ HT = 'HT',
68
+ HU = 'HU',
69
+ HK = 'HK',
70
+ HN = 'HN',
71
+ HM = 'HM',
72
+ VE = 'VE',
73
+ PR = 'PR',
74
+ PS = 'PS',
75
+ PW = 'PW',
76
+ PT = 'PT',
77
+ SJ = 'SJ',
78
+ PY = 'PY',
79
+ IQ = 'IQ',
80
+ PA = 'PA',
81
+ PF = 'PF',
82
+ PG = 'PG',
83
+ PE = 'PE',
84
+ PK = 'PK',
85
+ PH = 'PH',
86
+ PN = 'PN',
87
+ PL = 'PL',
88
+ PM = 'PM',
89
+ ZM = 'ZM',
90
+ EH = 'EH',
91
+ EE = 'EE',
92
+ EG = 'EG',
93
+ ZA = 'ZA',
94
+ EC = 'EC',
95
+ IT = 'IT',
96
+ VN = 'VN',
97
+ SB = 'SB',
98
+ ET = 'ET',
99
+ SO = 'SO',
100
+ ZW = 'ZW',
101
+ SA = 'SA',
102
+ ES = 'ES',
103
+ ER = 'ER',
104
+ ME = 'ME',
105
+ MD = 'MD',
106
+ MG = 'MG',
107
+ MF = 'MF',
108
+ MA = 'MA',
109
+ MC = 'MC',
110
+ UZ = 'UZ',
111
+ MM = 'MM',
112
+ ML = 'ML',
113
+ MO = 'MO',
114
+ MN = 'MN',
115
+ MH = 'MH',
116
+ MK = 'MK',
117
+ MU = 'MU',
118
+ MT = 'MT',
119
+ MW = 'MW',
120
+ MV = 'MV',
121
+ MQ = 'MQ',
122
+ MP = 'MP',
123
+ MS = 'MS',
124
+ MR = 'MR',
125
+ IM = 'IM',
126
+ UG = 'UG',
127
+ TZ = 'TZ',
128
+ MY = 'NY',
129
+ MX = 'MX',
130
+ IL = 'IL',
131
+ FR = 'FR',
132
+ IO = 'IO',
133
+ SH = 'SH',
134
+ FI = 'FI',
135
+ FJ = 'FJ',
136
+ FK = 'FK',
137
+ FM = 'FM',
138
+ FO = 'FO',
139
+ NI = 'NI',
140
+ NL = 'NL',
141
+ NO = 'NO',
142
+ NA = 'NA',
143
+ VU = 'VU',
144
+ NC = 'NC',
145
+ NE = 'NE',
146
+ NF = 'NF',
147
+ NG = 'NG',
148
+ NZ = 'NZ',
149
+ NP = 'NP',
150
+ NR = 'NR',
151
+ NU = 'NU',
152
+ CK = 'CK',
153
+ XK = 'XK',
154
+ CI = 'CI',
155
+ CH = 'CH',
156
+ CO = 'CO',
157
+ CN = 'CN',
158
+ CM = 'CM',
159
+ CL = 'CL',
160
+ CC = 'CC',
161
+ CA = 'CA',
162
+ CG = 'CG',
163
+ CF = 'CF',
164
+ CD = 'CD',
165
+ CZ = 'CZ',
166
+ CY = 'CY',
167
+ CX = 'CX',
168
+ CR = 'CR',
169
+ CW = 'CW',
170
+ CV = 'CV',
171
+ CU = 'CU',
172
+ SZ = 'SZ',
173
+ SY = 'SY',
174
+ SX = 'SX',
175
+ KG = 'KG',
176
+ KE = 'KE',
177
+ SS = 'SS',
178
+ SR = 'SR',
179
+ KI = 'KI',
180
+ KH = 'KH',
181
+ KN = 'KN',
182
+ KM = 'KM',
183
+ ST = 'ST',
184
+ SK = 'SK',
185
+ KR = 'KR',
186
+ SI = 'SI',
187
+ KP = 'KP',
188
+ KW = 'KW',
189
+ SN = 'SN',
190
+ SM = 'SM',
191
+ SL = 'SL',
192
+ SC = 'SC',
193
+ KZ = 'KZ',
194
+ KY = 'KY',
195
+ SG = 'SG',
196
+ SE = 'SE',
197
+ SD = 'SD',
198
+ DO = 'DO',
199
+ DM = 'DM',
200
+ DJ = 'DJ',
201
+ DK = 'DK',
202
+ VG = 'VG',
203
+ DE = 'DE',
204
+ YE = 'YE',
205
+ DZ = 'DZ',
206
+ US = 'US',
207
+ UY = 'UY',
208
+ YT = 'YT',
209
+ UM = 'UM',
210
+ LB = 'LB',
211
+ LC = 'LC',
212
+ LA = 'LA',
213
+ TV = 'TV',
214
+ TW = 'TW',
215
+ TT = 'TT',
216
+ TR = 'TR',
217
+ LK = 'LK',
218
+ LI = 'LI',
219
+ LV = 'LV',
220
+ TO = 'TO',
221
+ LT = 'LT',
222
+ LU = 'LU',
223
+ LR = 'LR',
224
+ LS = 'LS',
225
+ TH = 'TH',
226
+ TF = 'TF',
227
+ TG = 'TG',
228
+ TD = 'TD',
229
+ TC = 'TC',
230
+ LY = 'LY',
231
+ VA = 'VA',
232
+ VC = 'VC',
233
+ AE = 'AE',
234
+ AD = 'AD',
235
+ AG = 'AG',
236
+ AF = 'AF',
237
+ AI = 'AI',
238
+ VI = 'VI',
239
+ IS = 'IS',
240
+ IR = 'IR',
241
+ AM = 'AM',
242
+ AL = 'AL',
243
+ AO = 'AO',
244
+ AQ = 'AQ',
245
+ AS = 'AS',
246
+ AR = 'AR',
247
+ AU = 'AU',
248
+ AT = 'AT',
249
+ AW = 'AW',
250
+ IN = 'IN',
251
+ AX = 'AX',
252
+ AZ = 'AZ',
253
+ IE = 'IE',
254
+ ID = 'ID',
255
+ UA = 'UA',
256
+ QA = 'QA',
257
+ MZ = 'MZ',
258
+ UK = 'UK',
259
+ }
@@ -0,0 +1,9 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+ import type { VCLRegions } from './VCLRegions';
3
+
4
+ export interface VCLCountry {
5
+ payload: Dictionary<string>;
6
+ code: string;
7
+ name: string;
8
+ regions: VCLRegions;
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { VCLJWT } from './VCLJWT';
2
+
3
+ export interface VCLCredentialManifest {
4
+ jwt: VCLJWT;
5
+ iss: string;
6
+ did: string;
7
+ exchangeId: string;
8
+ presentationDefinitionId: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ import type { VCLPushDelegate } from './VCLPushDelegate';
2
+
3
+ export interface VCLCredentialManifestDescriptor {
4
+ credentialTypes?: string[];
5
+ pushDelegate?: VCLPushDelegate;
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
2
+ import type { VCLDeepLink } from './VCLDeepLink';
3
+
4
+ export interface VCLCredentialManifestDescriptorByDeepLink
5
+ extends VCLCredentialManifestDescriptor {
6
+ deepLink: VCLDeepLink;
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
2
+ import type { VCLService } from './VCLService';
3
+
4
+ export interface VCLCredentialManifestDescriptorByService
5
+ extends VCLCredentialManifestDescriptor {
6
+ service: VCLService;
7
+ }
@@ -0,0 +1,8 @@
1
+ import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
2
+ import type { VCLService } from './VCLService';
3
+
4
+ export interface VCLCredentialManifestDescriptorRefresh
5
+ extends VCLCredentialManifestDescriptor {
6
+ service: VCLService;
7
+ credentialIds: string[];
8
+ }
@@ -0,0 +1,11 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLCredentialType {
4
+ payload: Dictionary<string>;
5
+ id: string;
6
+ schema: string;
7
+ createdAt: string;
8
+ schemaName: string;
9
+ credentialType: string;
10
+ recommended: boolean;
11
+ }
@@ -0,0 +1,5 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLCredentialTypeSchema {
4
+ payload: Dictionary<string>;
5
+ }
@@ -0,0 +1,6 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+ import type { VCLCredentialTypeSchema } from './VCLCredentialTypeSchema';
3
+
4
+ export interface VCLCredentialTypeSchemas {
5
+ all: Dictionary<VCLCredentialTypeSchema>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLCredentialTypes {
4
+ all: Dictionary<string>[];
5
+ recommendedTypes: Dictionary<string>[];
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLCredentialTypesUIFormSchema {
4
+ payload: Dictionary<string>;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface VCLCredentialTypesUIFormSchemaDescriptor {
2
+ credentialType: string;
3
+ countryCode: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface VCLDeepLink {
2
+ value: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface VCLError {
2
+ description: string;
3
+ code: number;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface VCLExchange {
2
+ id: string;
3
+ type: string;
4
+ disclosureComplete: boolean;
5
+ exchangeComplete: boolean;
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLPresentationSubmission } from './VCLPresentationSubmission';
2
+ import type { VCLSubmissionResult } from './VCLSubmissionResult';
3
+
4
+ export interface VCLExchangeDescriptor {
5
+ presentationSubmission: VCLPresentationSubmission;
6
+ submissionResult: VCLSubmissionResult;
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLServiceType } from './VCLServiceType';
2
+
3
+ export interface VCLFilter {
4
+ did?: string;
5
+ serviceTypes?: VCLServiceType[];
6
+ credentialTypes?: string[];
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLCredentialManifest } from './VCLCredentialManifest';
2
+
3
+ export interface VCLFinalizeOffersDescriptor {
4
+ credentialManifest: VCLCredentialManifest;
5
+ rejectedOfferIds: string[];
6
+ approvedOfferIds: string[];
7
+ }
@@ -0,0 +1,9 @@
1
+ import type { VCLCredentialManifest } from './VCLCredentialManifest';
2
+ import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
3
+
4
+ export interface VCLGenerateOffersDescriptor {
5
+ credentialManifest: VCLCredentialManifest;
6
+ types?: string[];
7
+ offerHashes?: string[];
8
+ identificationVerifiableCredentials: VCLVerifiableCredential[];
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface VCLJWT {
2
+ encodedJwt: string; // 3 base64Url strings splitted by a dot
3
+ }
@@ -0,0 +1,5 @@
1
+ import type { VCLJWT } from './VCLJWT';
2
+
3
+ export interface VCLJwtVerifiableCredentials {
4
+ all: VCLJWT[];
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+ import type { VCLToken } from './VCLToken';
3
+
4
+ export interface VCLOffers {
5
+ all: Dictionary<string>[];
6
+ responseCode: number;
7
+ token: VCLToken;
8
+ }
@@ -0,0 +1,7 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+ import type { VCLServiceCredentialAgentIssuer } from './VCLServiceCredentialAgentIssuer';
3
+
4
+ export interface VCLOrganization {
5
+ payload: Dictionary<string>;
6
+ serviceCredentialAgentIssuers: VCLServiceCredentialAgentIssuer[];
7
+ }
@@ -0,0 +1,5 @@
1
+ import type { VCLOrganization } from './VCLOrganization';
2
+
3
+ export interface VCLOrganizations {
4
+ all: VCLOrganization[];
5
+ }
@@ -0,0 +1,9 @@
1
+ import type { VCLFilter } from './VCLFilter';
2
+ import type { VCLPage } from './VCLPage';
3
+
4
+ export interface VCLOrganizationsSearchDescriptor {
5
+ filter?: VCLFilter;
6
+ page?: VCLPage;
7
+ sort?: string[][];
8
+ query?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface VCLPage {
2
+ size?: string;
3
+ skip?: string;
4
+ }
@@ -0,0 +1,11 @@
1
+ import type { VCLJWT } from './VCLJWT';
2
+ import type { VCLPublicKey } from './VCLPublicKey';
3
+
4
+ export interface VCLPresentationRequest {
5
+ exchangeId: string;
6
+ jwt: VCLJWT;
7
+ publicKey: VCLPublicKey;
8
+ keyID: string;
9
+ presentationDefinitionId: string;
10
+ iss: string;
11
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLPresentationRequest } from './VCLPresentationRequest';
2
+ import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
3
+
4
+ export interface VCLPresentationSubmission {
5
+ presentationRequest: VCLPresentationRequest;
6
+ verifiableCredentials: VCLVerifiableCredential[];
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLExchange } from './VCLExchange';
2
+ import type { VCLToken } from './VCLToken';
3
+
4
+ export interface VCLPresentationSubmissionResult {
5
+ token: VCLToken;
6
+ exchange: VCLExchange;
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface VCLPublicKey {
2
+ jwkStr: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface VCLPushDelegate {
2
+ pushToken: string;
3
+ pushUrl: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLRegion {
4
+ payload: Dictionary<string>;
5
+ code: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+ import type { VCLRegion } from './VCLRegion';
3
+
4
+ export interface VCLRegions {
5
+ all: Dictionary<VCLRegion>;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLService {
4
+ payload: Dictionary<string>;
5
+ }
@@ -0,0 +1,3 @@
1
+ import type { VCLService } from './VCLService';
2
+
3
+ export interface VCLServiceCredentialAgentIssuer extends VCLService {}
@@ -0,0 +1,10 @@
1
+ export enum VCLServiceType {
2
+ Issuer = 'Issuer',
3
+ Inspector = 'Inspector',
4
+ CredentialAgentOperator = 'CredentialAgentOperator',
5
+ NodeOperator = 'NodeOperator',
6
+ TrustRoot = 'TrustRoot',
7
+ NotaryIssuer = 'NotaryIssuer',
8
+ IdentityIssuer = 'IdentityIssuer',
9
+ HolderAppProvider = 'HolderAppProvider',
10
+ }
@@ -0,0 +1,7 @@
1
+ import type { VCLExchange } from './VCLExchange';
2
+ import type { VCLToken } from './VCLToken';
3
+
4
+ export interface VCLSubmissionResult {
5
+ token: VCLToken;
6
+ exchange: VCLExchange;
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface VCLToken {
2
+ value: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface VCLVerifiableCredential {
2
+ inputDescriptor: string;
3
+ jwtVc: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ import type { Dictionary } from '../Dictionary';
2
+
3
+ export interface VCLVerifiedProfile {
4
+ payload: Dictionary<string>;
5
+ credentialSubject: Dictionary<string>;
6
+ name: string;
7
+ logo: string;
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface VCLVerifiedProfileDescriptor {
2
+ did: string;
3
+ }