@trinsic/api 2.0.0-alpha3 → 2.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 (379) hide show
  1. package/.openapi-generator/FILES +13 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +1 -1
  4. package/dist/apis/AttachmentsApi.d.ts +4 -4
  5. package/dist/apis/AttachmentsApi.js +2 -2
  6. package/dist/apis/NetworkApi.d.ts +28 -5
  7. package/dist/apis/NetworkApi.js +36 -2
  8. package/dist/apis/SessionsApi.d.ts +8 -8
  9. package/dist/apis/SessionsApi.js +4 -4
  10. package/dist/apis/WellKnownApi.d.ts +41 -0
  11. package/dist/apis/WellKnownApi.js +61 -0
  12. package/dist/apis/index.d.ts +1 -0
  13. package/dist/apis/index.js +1 -0
  14. package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
  15. package/dist/esm/apis/AttachmentsApi.js +2 -2
  16. package/dist/esm/apis/NetworkApi.d.ts +28 -5
  17. package/dist/esm/apis/NetworkApi.js +37 -3
  18. package/dist/esm/apis/SessionsApi.d.ts +8 -8
  19. package/dist/esm/apis/SessionsApi.js +4 -4
  20. package/dist/esm/apis/WellKnownApi.d.ts +41 -0
  21. package/dist/esm/apis/WellKnownApi.js +57 -0
  22. package/dist/esm/apis/index.d.ts +1 -0
  23. package/dist/esm/apis/index.js +1 -0
  24. package/dist/esm/models/AadhaarInput.d.ts +2 -1
  25. package/dist/esm/models/AadhaarInput.js +4 -1
  26. package/dist/esm/models/Address.d.ts +2 -1
  27. package/dist/esm/models/Address.js +4 -1
  28. package/dist/esm/models/AttachmentAccessKeys.d.ts +2 -1
  29. package/dist/esm/models/AttachmentAccessKeys.js +4 -1
  30. package/dist/esm/models/BangladeshNationalIdInput.d.ts +2 -1
  31. package/dist/esm/models/BangladeshNationalIdInput.js +4 -1
  32. package/dist/esm/models/BrazilCpfCheckInput.d.ts +2 -1
  33. package/dist/esm/models/BrazilCpfCheckInput.js +4 -1
  34. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +2 -1
  35. package/dist/esm/models/BrazilDigitalCnhInput.js +4 -1
  36. package/dist/esm/models/CancelSessionResponse.d.ts +2 -1
  37. package/dist/esm/models/CancelSessionResponse.js +4 -1
  38. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
  39. package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +4 -1
  40. package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
  41. package/dist/esm/models/CreateAdvancedProviderSessionResponse.js +4 -1
  42. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +2 -1
  43. package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -1
  44. package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +15 -2
  45. package/dist/esm/models/CreateHostedProviderSessionResponse.js +11 -2
  46. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +8 -6
  47. package/dist/esm/models/CreateWidgetSessionRequest.js +7 -4
  48. package/dist/esm/models/CreateWidgetSessionResponse.d.ts +15 -2
  49. package/dist/esm/models/CreateWidgetSessionResponse.js +11 -2
  50. package/dist/esm/models/DocumentData.d.ts +2 -1
  51. package/dist/esm/models/DocumentData.js +4 -1
  52. package/dist/esm/models/DocumentScanAttachments.d.ts +2 -1
  53. package/dist/esm/models/DocumentScanAttachments.js +4 -1
  54. package/dist/esm/models/DocumentType.d.ts +1 -0
  55. package/dist/esm/models/DocumentType.js +3 -0
  56. package/dist/esm/models/GetAttachmentRequest.d.ts +2 -1
  57. package/dist/esm/models/GetAttachmentRequest.js +4 -1
  58. package/dist/esm/models/GetAttachmentResponse.d.ts +2 -1
  59. package/dist/esm/models/GetAttachmentResponse.js +4 -1
  60. package/dist/esm/models/GetSessionResponse.d.ts +2 -1
  61. package/dist/esm/models/GetSessionResponse.js +4 -1
  62. package/dist/esm/models/GetSessionResultRequest.d.ts +2 -1
  63. package/dist/esm/models/GetSessionResultRequest.js +4 -1
  64. package/dist/esm/models/GetSessionResultResponse.d.ts +2 -1
  65. package/dist/esm/models/GetSessionResultResponse.js +4 -1
  66. package/dist/esm/models/HttpValidationProblemDetails.d.ts +2 -1
  67. package/dist/esm/models/HttpValidationProblemDetails.js +4 -1
  68. package/dist/esm/models/IdentityData.d.ts +8 -1
  69. package/dist/esm/models/IdentityData.js +6 -1
  70. package/dist/esm/models/IdinInput.d.ts +34 -0
  71. package/dist/esm/models/IdinInput.js +41 -0
  72. package/dist/esm/models/IndonesiaNikInput.d.ts +2 -1
  73. package/dist/esm/models/IndonesiaNikInput.js +4 -1
  74. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  75. package/dist/esm/models/IntegrationCapability.js +3 -0
  76. package/dist/esm/models/IntegrationLaunchMethod.d.ts +2 -1
  77. package/dist/esm/models/IntegrationLaunchMethod.js +4 -1
  78. package/dist/esm/models/IntegrationStep.d.ts +3 -2
  79. package/dist/esm/models/IntegrationStep.js +5 -4
  80. package/dist/esm/models/KenyaNidInput.d.ts +2 -1
  81. package/dist/esm/models/KenyaNidInput.js +4 -1
  82. package/dist/esm/models/Language.d.ts +27 -0
  83. package/dist/esm/models/Language.js +45 -0
  84. package/dist/esm/models/ListProviderContractsResponse.d.ts +33 -0
  85. package/dist/esm/models/ListProviderContractsResponse.js +44 -0
  86. package/dist/esm/models/ListProvidersResponse.d.ts +2 -1
  87. package/dist/esm/models/ListProvidersResponse.js +4 -1
  88. package/dist/esm/models/ListSessionsResponse.d.ts +2 -1
  89. package/dist/esm/models/ListSessionsResponse.js +4 -1
  90. package/dist/esm/models/MexicoCurpInput.d.ts +2 -1
  91. package/dist/esm/models/MexicoCurpInput.js +4 -1
  92. package/dist/esm/models/MobileIdInput.d.ts +45 -0
  93. package/dist/esm/models/MobileIdInput.js +46 -0
  94. package/dist/esm/models/NigeriaNinInput.d.ts +2 -1
  95. package/dist/esm/models/NigeriaNinInput.js +4 -1
  96. package/dist/esm/models/OrderDirection.d.ts +1 -0
  97. package/dist/esm/models/OrderDirection.js +3 -0
  98. package/dist/esm/models/PersonData.d.ts +2 -1
  99. package/dist/esm/models/PersonData.js +4 -1
  100. package/dist/esm/models/PhilippineMatchInput.d.ts +2 -1
  101. package/dist/esm/models/PhilippineMatchInput.js +4 -1
  102. package/dist/esm/models/PhilippineQRInput.d.ts +2 -1
  103. package/dist/esm/models/PhilippineQRInput.js +4 -1
  104. package/dist/esm/models/ProblemDetails.d.ts +2 -1
  105. package/dist/esm/models/ProblemDetails.js +4 -1
  106. package/dist/esm/models/ProviderAttachments.d.ts +2 -1
  107. package/dist/esm/models/ProviderAttachments.js +4 -1
  108. package/dist/esm/models/ProviderContract.d.ts +155 -0
  109. package/dist/esm/models/ProviderContract.js +105 -0
  110. package/dist/esm/models/ProviderHealth.d.ts +25 -0
  111. package/dist/esm/models/ProviderHealth.js +43 -0
  112. package/dist/esm/models/ProviderInfo.d.ts +2 -7
  113. package/dist/esm/models/ProviderInfo.js +4 -3
  114. package/dist/esm/models/ProviderInformation.d.ts +5 -4
  115. package/dist/esm/models/ProviderInformation.js +5 -6
  116. package/dist/esm/models/ProviderInput.d.ts +64 -17
  117. package/dist/esm/models/ProviderInput.js +27 -6
  118. package/dist/esm/models/RecommendRequest.d.ts +6 -28
  119. package/dist/esm/models/RecommendRequest.js +7 -11
  120. package/dist/esm/models/RecommendResponse.d.ts +2 -1
  121. package/dist/esm/models/RecommendResponse.js +4 -1
  122. package/dist/esm/models/RecommendationInfo.d.ts +56 -0
  123. package/dist/esm/models/RecommendationInfo.js +47 -0
  124. package/dist/esm/models/RefreshStepContentRequest.d.ts +2 -1
  125. package/dist/esm/models/RefreshStepContentRequest.js +4 -1
  126. package/dist/esm/models/RefreshStepContentResponse.d.ts +2 -1
  127. package/dist/esm/models/RefreshStepContentResponse.js +4 -1
  128. package/dist/esm/models/ResultCollection.d.ts +10 -3
  129. package/dist/esm/models/ResultCollection.js +7 -2
  130. package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
  131. package/dist/esm/models/ResultCollectionMethod.js +3 -0
  132. package/dist/esm/models/Session.d.ts +2 -1
  133. package/dist/esm/models/Session.js +4 -1
  134. package/dist/esm/models/SessionErrorCode.d.ts +1 -0
  135. package/dist/esm/models/SessionErrorCode.js +3 -0
  136. package/dist/esm/models/SessionOrdering.d.ts +1 -0
  137. package/dist/esm/models/SessionOrdering.js +3 -0
  138. package/dist/esm/models/Sex.d.ts +1 -0
  139. package/dist/esm/models/Sex.js +3 -0
  140. package/dist/esm/models/SmartIdInput.d.ts +32 -0
  141. package/dist/esm/models/SmartIdInput.js +41 -0
  142. package/dist/esm/models/SouthAfricaNidInput.d.ts +2 -1
  143. package/dist/esm/models/SouthAfricaNidInput.js +4 -1
  144. package/dist/esm/models/SpidInput.d.ts +34 -0
  145. package/dist/esm/models/SpidInput.js +41 -0
  146. package/dist/esm/models/StepRefreshInfo.d.ts +2 -1
  147. package/dist/esm/models/StepRefreshInfo.js +4 -1
  148. package/dist/esm/models/SubProviderMetadata.d.ts +55 -0
  149. package/dist/esm/models/SubProviderMetadata.js +55 -0
  150. package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +67 -0
  151. package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +47 -0
  152. package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +36 -0
  153. package/dist/esm/models/TrinsicTestSubProvidersInput.js +41 -0
  154. package/dist/esm/models/index.d.ts +12 -3
  155. package/dist/esm/models/index.js +12 -3
  156. package/dist/esm/runtime.d.ts +4 -1
  157. package/dist/esm/runtime.js +9 -1
  158. package/dist/models/AadhaarInput.d.ts +2 -1
  159. package/dist/models/AadhaarInput.js +5 -1
  160. package/dist/models/Address.d.ts +2 -1
  161. package/dist/models/Address.js +5 -1
  162. package/dist/models/AttachmentAccessKeys.d.ts +2 -1
  163. package/dist/models/AttachmentAccessKeys.js +5 -1
  164. package/dist/models/BangladeshNationalIdInput.d.ts +2 -1
  165. package/dist/models/BangladeshNationalIdInput.js +5 -1
  166. package/dist/models/BrazilCpfCheckInput.d.ts +2 -1
  167. package/dist/models/BrazilCpfCheckInput.js +5 -1
  168. package/dist/models/BrazilDigitalCnhInput.d.ts +2 -1
  169. package/dist/models/BrazilDigitalCnhInput.js +5 -1
  170. package/dist/models/CancelSessionResponse.d.ts +2 -1
  171. package/dist/models/CancelSessionResponse.js +5 -1
  172. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
  173. package/dist/models/CreateAdvancedProviderSessionRequest.js +5 -1
  174. package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
  175. package/dist/models/CreateAdvancedProviderSessionResponse.js +5 -1
  176. package/dist/models/CreateHostedProviderSessionRequest.d.ts +2 -1
  177. package/dist/models/CreateHostedProviderSessionRequest.js +5 -1
  178. package/dist/models/CreateHostedProviderSessionResponse.d.ts +15 -2
  179. package/dist/models/CreateHostedProviderSessionResponse.js +12 -2
  180. package/dist/models/CreateWidgetSessionRequest.d.ts +8 -6
  181. package/dist/models/CreateWidgetSessionRequest.js +8 -4
  182. package/dist/models/CreateWidgetSessionResponse.d.ts +15 -2
  183. package/dist/models/CreateWidgetSessionResponse.js +12 -2
  184. package/dist/models/DocumentData.d.ts +2 -1
  185. package/dist/models/DocumentData.js +5 -1
  186. package/dist/models/DocumentScanAttachments.d.ts +2 -1
  187. package/dist/models/DocumentScanAttachments.js +5 -1
  188. package/dist/models/DocumentType.d.ts +1 -0
  189. package/dist/models/DocumentType.js +4 -0
  190. package/dist/models/GetAttachmentRequest.d.ts +2 -1
  191. package/dist/models/GetAttachmentRequest.js +5 -1
  192. package/dist/models/GetAttachmentResponse.d.ts +2 -1
  193. package/dist/models/GetAttachmentResponse.js +5 -1
  194. package/dist/models/GetSessionResponse.d.ts +2 -1
  195. package/dist/models/GetSessionResponse.js +5 -1
  196. package/dist/models/GetSessionResultRequest.d.ts +2 -1
  197. package/dist/models/GetSessionResultRequest.js +5 -1
  198. package/dist/models/GetSessionResultResponse.d.ts +2 -1
  199. package/dist/models/GetSessionResultResponse.js +5 -1
  200. package/dist/models/HttpValidationProblemDetails.d.ts +2 -1
  201. package/dist/models/HttpValidationProblemDetails.js +5 -1
  202. package/dist/models/IdentityData.d.ts +8 -1
  203. package/dist/models/IdentityData.js +7 -1
  204. package/dist/models/IdinInput.d.ts +34 -0
  205. package/dist/models/IdinInput.js +48 -0
  206. package/dist/models/IndonesiaNikInput.d.ts +2 -1
  207. package/dist/models/IndonesiaNikInput.js +5 -1
  208. package/dist/models/IntegrationCapability.d.ts +1 -0
  209. package/dist/models/IntegrationCapability.js +4 -0
  210. package/dist/models/IntegrationLaunchMethod.d.ts +2 -1
  211. package/dist/models/IntegrationLaunchMethod.js +5 -1
  212. package/dist/models/IntegrationStep.d.ts +3 -2
  213. package/dist/models/IntegrationStep.js +6 -4
  214. package/dist/models/KenyaNidInput.d.ts +2 -1
  215. package/dist/models/KenyaNidInput.js +5 -1
  216. package/dist/models/Language.d.ts +27 -0
  217. package/dist/models/Language.js +53 -0
  218. package/dist/models/ListProviderContractsResponse.d.ts +33 -0
  219. package/dist/models/ListProviderContractsResponse.js +51 -0
  220. package/dist/models/ListProvidersResponse.d.ts +2 -1
  221. package/dist/models/ListProvidersResponse.js +5 -1
  222. package/dist/models/ListSessionsResponse.d.ts +2 -1
  223. package/dist/models/ListSessionsResponse.js +5 -1
  224. package/dist/models/MexicoCurpInput.d.ts +2 -1
  225. package/dist/models/MexicoCurpInput.js +5 -1
  226. package/dist/models/MobileIdInput.d.ts +45 -0
  227. package/dist/models/MobileIdInput.js +53 -0
  228. package/dist/models/NigeriaNinInput.d.ts +2 -1
  229. package/dist/models/NigeriaNinInput.js +5 -1
  230. package/dist/models/OrderDirection.d.ts +1 -0
  231. package/dist/models/OrderDirection.js +4 -0
  232. package/dist/models/PersonData.d.ts +2 -1
  233. package/dist/models/PersonData.js +5 -1
  234. package/dist/models/PhilippineMatchInput.d.ts +2 -1
  235. package/dist/models/PhilippineMatchInput.js +5 -1
  236. package/dist/models/PhilippineQRInput.d.ts +2 -1
  237. package/dist/models/PhilippineQRInput.js +5 -1
  238. package/dist/models/ProblemDetails.d.ts +2 -1
  239. package/dist/models/ProblemDetails.js +5 -1
  240. package/dist/models/ProviderAttachments.d.ts +2 -1
  241. package/dist/models/ProviderAttachments.js +5 -1
  242. package/dist/models/ProviderContract.d.ts +155 -0
  243. package/dist/models/ProviderContract.js +112 -0
  244. package/dist/models/ProviderHealth.d.ts +25 -0
  245. package/dist/models/ProviderHealth.js +51 -0
  246. package/dist/models/ProviderInfo.d.ts +2 -7
  247. package/dist/models/ProviderInfo.js +5 -3
  248. package/dist/models/ProviderInformation.d.ts +5 -4
  249. package/dist/models/ProviderInformation.js +6 -6
  250. package/dist/models/ProviderInput.d.ts +64 -17
  251. package/dist/models/ProviderInput.js +28 -6
  252. package/dist/models/RecommendRequest.d.ts +6 -28
  253. package/dist/models/RecommendRequest.js +8 -11
  254. package/dist/models/RecommendResponse.d.ts +2 -1
  255. package/dist/models/RecommendResponse.js +5 -1
  256. package/dist/models/RecommendationInfo.d.ts +56 -0
  257. package/dist/models/RecommendationInfo.js +54 -0
  258. package/dist/models/RefreshStepContentRequest.d.ts +2 -1
  259. package/dist/models/RefreshStepContentRequest.js +5 -1
  260. package/dist/models/RefreshStepContentResponse.d.ts +2 -1
  261. package/dist/models/RefreshStepContentResponse.js +5 -1
  262. package/dist/models/ResultCollection.d.ts +10 -3
  263. package/dist/models/ResultCollection.js +8 -2
  264. package/dist/models/ResultCollectionMethod.d.ts +1 -0
  265. package/dist/models/ResultCollectionMethod.js +4 -0
  266. package/dist/models/Session.d.ts +2 -1
  267. package/dist/models/Session.js +5 -1
  268. package/dist/models/SessionErrorCode.d.ts +1 -0
  269. package/dist/models/SessionErrorCode.js +4 -0
  270. package/dist/models/SessionOrdering.d.ts +1 -0
  271. package/dist/models/SessionOrdering.js +4 -0
  272. package/dist/models/Sex.d.ts +1 -0
  273. package/dist/models/Sex.js +4 -0
  274. package/dist/models/SmartIdInput.d.ts +32 -0
  275. package/dist/models/SmartIdInput.js +48 -0
  276. package/dist/models/SouthAfricaNidInput.d.ts +2 -1
  277. package/dist/models/SouthAfricaNidInput.js +5 -1
  278. package/dist/models/SpidInput.d.ts +34 -0
  279. package/dist/models/SpidInput.js +48 -0
  280. package/dist/models/StepRefreshInfo.d.ts +2 -1
  281. package/dist/models/StepRefreshInfo.js +5 -1
  282. package/dist/models/SubProviderMetadata.d.ts +55 -0
  283. package/dist/models/SubProviderMetadata.js +62 -0
  284. package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +67 -0
  285. package/dist/models/TrinsicTestDatabaseLookupInput.js +54 -0
  286. package/dist/models/TrinsicTestSubProvidersInput.d.ts +36 -0
  287. package/dist/models/TrinsicTestSubProvidersInput.js +48 -0
  288. package/dist/models/index.d.ts +12 -3
  289. package/dist/models/index.js +12 -3
  290. package/dist/runtime.d.ts +4 -1
  291. package/dist/runtime.js +10 -1
  292. package/package.json +1 -1
  293. package/src/apis/AttachmentsApi.ts +4 -4
  294. package/src/apis/NetworkApi.ts +58 -4
  295. package/src/apis/SessionsApi.ts +8 -8
  296. package/src/apis/WellKnownApi.ts +82 -0
  297. package/src/apis/index.ts +1 -0
  298. package/src/models/AadhaarInput.ts +6 -1
  299. package/src/models/Address.ts +6 -1
  300. package/src/models/AttachmentAccessKeys.ts +7 -1
  301. package/src/models/BangladeshNationalIdInput.ts +6 -1
  302. package/src/models/BrazilCpfCheckInput.ts +6 -1
  303. package/src/models/BrazilDigitalCnhInput.ts +14 -9
  304. package/src/models/CancelSessionResponse.ts +7 -1
  305. package/src/models/CreateAdvancedProviderSessionRequest.ts +34 -27
  306. package/src/models/CreateAdvancedProviderSessionResponse.ts +8 -1
  307. package/src/models/CreateHostedProviderSessionRequest.ts +7 -1
  308. package/src/models/CreateHostedProviderSessionResponse.ts +30 -9
  309. package/src/models/CreateWidgetSessionRequest.ts +23 -16
  310. package/src/models/CreateWidgetSessionResponse.ts +28 -7
  311. package/src/models/DocumentData.ts +7 -1
  312. package/src/models/DocumentScanAttachments.ts +6 -1
  313. package/src/models/DocumentType.ts +4 -0
  314. package/src/models/GetAttachmentRequest.ts +6 -1
  315. package/src/models/GetAttachmentResponse.ts +6 -1
  316. package/src/models/GetSessionResponse.ts +7 -1
  317. package/src/models/GetSessionResultRequest.ts +6 -1
  318. package/src/models/GetSessionResultResponse.ts +8 -1
  319. package/src/models/HttpValidationProblemDetails.ts +6 -1
  320. package/src/models/IdentityData.ts +17 -1
  321. package/src/models/IdinInput.ts +67 -0
  322. package/src/models/IndonesiaNikInput.ts +6 -1
  323. package/src/models/IntegrationCapability.ts +4 -0
  324. package/src/models/IntegrationLaunchMethod.ts +5 -1
  325. package/src/models/IntegrationStep.ts +10 -4
  326. package/src/models/KenyaNidInput.ts +6 -1
  327. package/src/models/Language.ts +55 -0
  328. package/src/models/ListProviderContractsResponse.ts +74 -0
  329. package/src/models/ListProvidersResponse.ts +7 -1
  330. package/src/models/ListSessionsResponse.ts +7 -1
  331. package/src/models/MexicoCurpInput.ts +6 -1
  332. package/src/models/MobileIdInput.ts +91 -0
  333. package/src/models/NigeriaNinInput.ts +6 -1
  334. package/src/models/OrderDirection.ts +4 -0
  335. package/src/models/PersonData.ts +8 -1
  336. package/src/models/PhilippineMatchInput.ts +6 -1
  337. package/src/models/PhilippineQRInput.ts +6 -1
  338. package/src/models/ProblemDetails.ts +6 -1
  339. package/src/models/ProviderAttachments.ts +7 -1
  340. package/src/models/ProviderContract.ts +260 -0
  341. package/src/models/ProviderHealth.ts +53 -0
  342. package/src/models/ProviderInfo.ts +6 -9
  343. package/src/models/ProviderInformation.ts +9 -7
  344. package/src/models/ProviderInput.ts +151 -41
  345. package/src/models/RecommendRequest.ts +19 -38
  346. package/src/models/RecommendResponse.ts +7 -1
  347. package/src/models/RecommendationInfo.ts +95 -0
  348. package/src/models/RefreshStepContentRequest.ts +6 -1
  349. package/src/models/RefreshStepContentResponse.ts +7 -1
  350. package/src/models/ResultCollection.ts +17 -4
  351. package/src/models/ResultCollectionMethod.ts +4 -0
  352. package/src/models/Session.ts +14 -8
  353. package/src/models/SessionErrorCode.ts +4 -0
  354. package/src/models/SessionOrdering.ts +4 -0
  355. package/src/models/Sex.ts +4 -0
  356. package/src/models/SmartIdInput.ts +65 -0
  357. package/src/models/SouthAfricaNidInput.ts +6 -1
  358. package/src/models/SpidInput.ts +67 -0
  359. package/src/models/StepRefreshInfo.ts +8 -3
  360. package/src/models/SubProviderMetadata.ts +98 -0
  361. package/src/models/TrinsicTestDatabaseLookupInput.ts +106 -0
  362. package/src/models/TrinsicTestSubProvidersInput.ts +69 -0
  363. package/src/models/index.ts +12 -3
  364. package/src/runtime.ts +10 -4
  365. package/dist/esm/models/KnownAddress.d.ts +0 -74
  366. package/dist/esm/models/KnownAddress.js +0 -52
  367. package/dist/esm/models/KnownIdentityData.d.ts +0 -34
  368. package/dist/esm/models/KnownIdentityData.js +0 -39
  369. package/dist/esm/models/KnownPersonData.d.ts +0 -74
  370. package/dist/esm/models/KnownPersonData.js +0 -53
  371. package/dist/models/KnownAddress.d.ts +0 -74
  372. package/dist/models/KnownAddress.js +0 -58
  373. package/dist/models/KnownIdentityData.d.ts +0 -34
  374. package/dist/models/KnownIdentityData.js +0 -45
  375. package/dist/models/KnownPersonData.d.ts +0 -74
  376. package/dist/models/KnownPersonData.js +0 -59
  377. package/src/models/KnownAddress.ts +0 -117
  378. package/src/models/KnownIdentityData.ts +0 -69
  379. package/src/models/KnownPersonData.ts +0 -123
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfProviderContract = instanceOfProviderContract;
17
+ exports.ProviderContractFromJSON = ProviderContractFromJSON;
18
+ exports.ProviderContractFromJSONTyped = ProviderContractFromJSONTyped;
19
+ exports.ProviderContractToJSON = ProviderContractToJSON;
20
+ exports.ProviderContractToJSONTyped = ProviderContractToJSONTyped;
21
+ const ProviderHealth_1 = require("./ProviderHealth");
22
+ const SubProviderMetadata_1 = require("./SubProviderMetadata");
23
+ const ResultCollectionMethod_1 = require("./ResultCollectionMethod");
24
+ const IntegrationLaunchMethod_1 = require("./IntegrationLaunchMethod");
25
+ /**
26
+ * Check if a given object implements the ProviderContract interface.
27
+ */
28
+ function instanceOfProviderContract(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('description' in value) || value['description'] === undefined)
34
+ return false;
35
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
36
+ return false;
37
+ if (!('available' in value) || value['available'] === undefined)
38
+ return false;
39
+ if (!('geography' in value) || value['geography'] === undefined)
40
+ return false;
41
+ if (!('regions' in value) || value['regions'] === undefined)
42
+ return false;
43
+ if (!('launchMethod' in value) || value['launchMethod'] === undefined)
44
+ return false;
45
+ if (!('collectionMethod' in value) || value['collectionMethod'] === undefined)
46
+ return false;
47
+ if (!('resultsMayBeDelayedAfterRedirect' in value) || value['resultsMayBeDelayedAfterRedirect'] === undefined)
48
+ return false;
49
+ if (!('hasRefreshableContent' in value) || value['hasRefreshableContent'] === undefined)
50
+ return false;
51
+ if (!('requiresInput' in value) || value['requiresInput'] === undefined)
52
+ return false;
53
+ if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined)
54
+ return false;
55
+ if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
56
+ return false;
57
+ if (!('status' in value) || value['status'] === undefined)
58
+ return false;
59
+ return true;
60
+ }
61
+ function ProviderContractFromJSON(json) {
62
+ return ProviderContractFromJSONTyped(json, false);
63
+ }
64
+ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'description': json['description'],
72
+ 'logoUrl': json['logoUrl'],
73
+ 'available': json['available'],
74
+ 'geography': json['geography'],
75
+ 'regions': json['regions'],
76
+ 'launchMethod': (0, IntegrationLaunchMethod_1.IntegrationLaunchMethodFromJSON)(json['launchMethod']),
77
+ 'collectionMethod': (0, ResultCollectionMethod_1.ResultCollectionMethodFromJSON)(json['collectionMethod']),
78
+ 'resultsMayBeDelayedAfterRedirect': json['resultsMayBeDelayedAfterRedirect'],
79
+ 'hasRefreshableContent': json['hasRefreshableContent'],
80
+ 'requiresInput': json['requiresInput'],
81
+ 'hasTrinsicInterface': json['hasTrinsicInterface'],
82
+ 'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
83
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
84
+ 'status': (0, ProviderHealth_1.ProviderHealthFromJSON)(json['status']),
85
+ };
86
+ }
87
+ function ProviderContractToJSON(json) {
88
+ return ProviderContractToJSONTyped(json, false);
89
+ }
90
+ function ProviderContractToJSONTyped(value, ignoreDiscriminator = false) {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+ return {
95
+ 'id': value['id'],
96
+ 'name': value['name'],
97
+ 'description': value['description'],
98
+ 'logoUrl': value['logoUrl'],
99
+ 'available': value['available'],
100
+ 'geography': value['geography'],
101
+ 'regions': value['regions'],
102
+ 'launchMethod': (0, IntegrationLaunchMethod_1.IntegrationLaunchMethodToJSON)(value['launchMethod']),
103
+ 'collectionMethod': (0, ResultCollectionMethod_1.ResultCollectionMethodToJSON)(value['collectionMethod']),
104
+ 'resultsMayBeDelayedAfterRedirect': value['resultsMayBeDelayedAfterRedirect'],
105
+ 'hasRefreshableContent': value['hasRefreshableContent'],
106
+ 'requiresInput': value['requiresInput'],
107
+ 'hasTrinsicInterface': value['hasTrinsicInterface'],
108
+ 'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
109
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
110
+ 'status': (0, ProviderHealth_1.ProviderHealthToJSON)(value['status']),
111
+ };
112
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Trinsic API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The health for an integration to be able to successfully perform a verification session.
14
+ * @export
15
+ */
16
+ export declare const ProviderHealth: {
17
+ readonly Online: "Online";
18
+ readonly Offline: "Offline";
19
+ };
20
+ export type ProviderHealth = typeof ProviderHealth[keyof typeof ProviderHealth];
21
+ export declare function instanceOfProviderHealth(value: any): boolean;
22
+ export declare function ProviderHealthFromJSON(json: any): ProviderHealth;
23
+ export declare function ProviderHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderHealth;
24
+ export declare function ProviderHealthToJSON(value?: ProviderHealth | null): any;
25
+ export declare function ProviderHealthToJSONTyped(value: any, ignoreDiscriminator: boolean): ProviderHealth;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProviderHealth = void 0;
17
+ exports.instanceOfProviderHealth = instanceOfProviderHealth;
18
+ exports.ProviderHealthFromJSON = ProviderHealthFromJSON;
19
+ exports.ProviderHealthFromJSONTyped = ProviderHealthFromJSONTyped;
20
+ exports.ProviderHealthToJSON = ProviderHealthToJSON;
21
+ exports.ProviderHealthToJSONTyped = ProviderHealthToJSONTyped;
22
+ /**
23
+ * The health for an integration to be able to successfully perform a verification session.
24
+ * @export
25
+ */
26
+ exports.ProviderHealth = {
27
+ Online: 'Online',
28
+ Offline: 'Offline'
29
+ };
30
+ function instanceOfProviderHealth(value) {
31
+ for (const key in exports.ProviderHealth) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.ProviderHealth, key)) {
33
+ if (exports.ProviderHealth[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function ProviderHealthFromJSON(json) {
41
+ return ProviderHealthFromJSONTyped(json, false);
42
+ }
43
+ function ProviderHealthFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function ProviderHealthToJSON(value) {
47
+ return value;
48
+ }
49
+ function ProviderHealthToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -33,12 +33,6 @@ export interface ProviderInfo {
33
33
  * @memberof ProviderInfo
34
34
  */
35
35
  logoUrl: string;
36
- /**
37
- * List of child provider id's where the provider allows deep-launching of a specific provider.
38
- * @type {Array<string>}
39
- * @memberof ProviderInfo
40
- */
41
- childProviderIds?: Array<string> | null;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the ProviderInfo interface.
@@ -46,4 +40,5 @@ export interface ProviderInfo {
46
40
  export declare function instanceOfProviderInfo(value: object): value is ProviderInfo;
47
41
  export declare function ProviderInfoFromJSON(json: any): ProviderInfo;
48
42
  export declare function ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInfo;
49
- export declare function ProviderInfoToJSON(value?: ProviderInfo | null): any;
43
+ export declare function ProviderInfoToJSON(json: any): ProviderInfo;
44
+ export declare function ProviderInfoToJSONTyped(value?: ProviderInfo | null, ignoreDiscriminator?: boolean): any;
@@ -17,6 +17,7 @@ exports.instanceOfProviderInfo = instanceOfProviderInfo;
17
17
  exports.ProviderInfoFromJSON = ProviderInfoFromJSON;
18
18
  exports.ProviderInfoFromJSONTyped = ProviderInfoFromJSONTyped;
19
19
  exports.ProviderInfoToJSON = ProviderInfoToJSON;
20
+ exports.ProviderInfoToJSONTyped = ProviderInfoToJSONTyped;
20
21
  /**
21
22
  * Check if a given object implements the ProviderInfo interface.
22
23
  */
@@ -40,10 +41,12 @@ function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'id': json['id'],
41
42
  'name': json['name'],
42
43
  'logoUrl': json['logoUrl'],
43
- 'childProviderIds': json['childProviderIds'] == null ? undefined : json['childProviderIds'],
44
44
  };
45
45
  }
46
- function ProviderInfoToJSON(value) {
46
+ function ProviderInfoToJSON(json) {
47
+ return ProviderInfoToJSONTyped(json, false);
48
+ }
49
+ function ProviderInfoToJSONTyped(value, ignoreDiscriminator = false) {
47
50
  if (value == null) {
48
51
  return value;
49
52
  }
@@ -51,6 +54,5 @@ function ProviderInfoToJSON(value) {
51
54
  'id': value['id'],
52
55
  'name': value['name'],
53
56
  'logoUrl': value['logoUrl'],
54
- 'childProviderIds': value['childProviderIds'],
55
57
  };
56
58
  }
@@ -20,19 +20,19 @@ export interface ProviderInformation {
20
20
  * @type {string}
21
21
  * @memberof ProviderInformation
22
22
  */
23
- providerId: string;
23
+ readonly providerId: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof ProviderInformation
28
28
  */
29
- providerDisplayName: string;
29
+ readonly providerDisplayName: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof ProviderInformation
34
34
  */
35
- providerLogo: string;
35
+ readonly providerLogo: string;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the ProviderInformation interface.
@@ -40,4 +40,5 @@ export interface ProviderInformation {
40
40
  export declare function instanceOfProviderInformation(value: object): value is ProviderInformation;
41
41
  export declare function ProviderInformationFromJSON(json: any): ProviderInformation;
42
42
  export declare function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation;
43
- export declare function ProviderInformationToJSON(value?: ProviderInformation | null): any;
43
+ export declare function ProviderInformationToJSON(json: any): ProviderInformation;
44
+ export declare function ProviderInformationToJSONTyped(value?: Omit<ProviderInformation, 'providerId' | 'providerDisplayName' | 'providerLogo'> | null, ignoreDiscriminator?: boolean): any;
@@ -17,6 +17,7 @@ exports.instanceOfProviderInformation = instanceOfProviderInformation;
17
17
  exports.ProviderInformationFromJSON = ProviderInformationFromJSON;
18
18
  exports.ProviderInformationFromJSONTyped = ProviderInformationFromJSONTyped;
19
19
  exports.ProviderInformationToJSON = ProviderInformationToJSON;
20
+ exports.ProviderInformationToJSONTyped = ProviderInformationToJSONTyped;
20
21
  /**
21
22
  * Check if a given object implements the ProviderInformation interface.
22
23
  */
@@ -42,13 +43,12 @@ function ProviderInformationFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'providerLogo': json['providerLogo'],
43
44
  };
44
45
  }
45
- function ProviderInformationToJSON(value) {
46
+ function ProviderInformationToJSON(json) {
47
+ return ProviderInformationToJSONTyped(json, false);
48
+ }
49
+ function ProviderInformationToJSONTyped(value, ignoreDiscriminator = false) {
46
50
  if (value == null) {
47
51
  return value;
48
52
  }
49
- return {
50
- 'providerId': value['providerId'],
51
- 'providerDisplayName': value['providerDisplayName'],
52
- 'providerLogo': value['providerLogo'],
53
- };
53
+ return {};
54
54
  }
@@ -9,17 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PhilippineQRInput } from './PhilippineQRInput';
13
12
  import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
14
- import type { AadhaarInput } from './AadhaarInput';
15
- import type { KenyaNidInput } from './KenyaNidInput';
16
- import type { NigeriaNinInput } from './NigeriaNinInput';
17
13
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
18
14
  import type { MexicoCurpInput } from './MexicoCurpInput';
19
15
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
20
- import type { IndonesiaNikInput } from './IndonesiaNikInput';
16
+ import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
17
+ import type { SpidInput } from './SpidInput';
21
18
  import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
22
19
  import type { PhilippineMatchInput } from './PhilippineMatchInput';
20
+ import type { PhilippineQRInput } from './PhilippineQRInput';
21
+ import type { AadhaarInput } from './AadhaarInput';
22
+ import type { KenyaNidInput } from './KenyaNidInput';
23
+ import type { NigeriaNinInput } from './NigeriaNinInput';
24
+ import type { SmartIdInput } from './SmartIdInput';
25
+ import type { MobileIdInput } from './MobileIdInput';
26
+ import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
27
+ import type { IndonesiaNikInput } from './IndonesiaNikInput';
28
+ import type { IdinInput } from './IdinInput';
23
29
  /**
24
30
  *
25
31
  * @export
@@ -27,71 +33,111 @@ import type { PhilippineMatchInput } from './PhilippineMatchInput';
27
33
  */
28
34
  export interface ProviderInput {
29
35
  /**
30
- * Input for the `f-indonesia-nik` integration
36
+ * Input for the `f-indonesia-nik` provider
31
37
  * @type {IndonesiaNikInput}
32
38
  * @memberof ProviderInput
33
39
  */
34
40
  indonesiaNik?: IndonesiaNikInput | null;
35
41
  /**
36
- * Input for the `f-mexico-curp` integration
42
+ * Input for the `f-mexico-curp` provider
37
43
  * @type {MexicoCurpInput}
38
44
  * @memberof ProviderInput
39
45
  */
40
46
  mexicoCurp?: MexicoCurpInput | null;
41
47
  /**
42
- * Input for the `f-south-africa-nid` integration
48
+ * Input for the `f-south-africa-nid` provider
43
49
  * @type {SouthAfricaNidInput}
44
50
  * @memberof ProviderInput
45
51
  */
46
52
  southAfricaNid?: SouthAfricaNidInput | null;
47
53
  /**
48
- * Input for the `f-kenya-nid` integration
54
+ * Input for the `f-kenya-nid` provider
49
55
  * @type {KenyaNidInput}
50
56
  * @memberof ProviderInput
51
57
  */
52
58
  kenyaNid?: KenyaNidInput | null;
53
59
  /**
54
- * Input for the `f-nigeria-nin` integration
60
+ * Input for the `f-nigeria-nin` provider
55
61
  * @type {NigeriaNinInput}
56
62
  * @memberof ProviderInput
57
63
  */
58
64
  nigeriaNin?: NigeriaNinInput | null;
59
65
  /**
60
- * Input for the `f-india-aadhaar-match` integration
66
+ * Input for the `f-india-aadhaar-match` provider
61
67
  * @type {AadhaarInput}
62
68
  * @memberof ProviderInput
63
69
  */
64
70
  aadhaar?: AadhaarInput | null;
65
71
  /**
66
- * Input for the `bangladesh-nid` integration
72
+ * Input for the `bangladesh-nid` provider
67
73
  * @type {BangladeshNationalIdInput}
68
74
  * @memberof ProviderInput
69
75
  */
70
76
  bangladeshNationalId?: BangladeshNationalIdInput | null;
71
77
  /**
72
- * Input for the `g-brazil-cpf` integration
78
+ * Input for the `g-brazil-cpf` provider
73
79
  * @type {BrazilCpfCheckInput}
74
80
  * @memberof ProviderInput
75
81
  */
76
82
  brazilCpfCheck?: BrazilCpfCheckInput | null;
77
83
  /**
78
- * Input for the `g-brazil-digital-cnh` integration
84
+ * Input for the `g-brazil-digital-cnh` provider
79
85
  * @type {BrazilDigitalCnhInput}
80
86
  * @memberof ProviderInput
81
87
  */
82
88
  brazilDigitalCnh?: BrazilDigitalCnhInput | null;
83
89
  /**
84
- * Input for the `b-philsys-biometric` integration
90
+ * Input for the `b-philsys-biometric` provider
85
91
  * @type {PhilippineMatchInput}
86
92
  * @memberof ProviderInput
87
93
  */
88
94
  philippineMatch?: PhilippineMatchInput | null;
89
95
  /**
90
- * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` integrations
96
+ * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
91
97
  * @type {PhilippineQRInput}
92
98
  * @memberof ProviderInput
93
99
  */
94
100
  philippineQR?: PhilippineQRInput | null;
101
+ /**
102
+ * Input for the `smart-id` provider
103
+ * @type {SmartIdInput}
104
+ * @memberof ProviderInput
105
+ */
106
+ smartId?: SmartIdInput | null;
107
+ /**
108
+ * Input for the `mobile-id` provider
109
+ * @type {MobileIdInput}
110
+ * @memberof ProviderInput
111
+ */
112
+ mobileId?: MobileIdInput | null;
113
+ /**
114
+ * Input for the `idin` provider
115
+ * @type {IdinInput}
116
+ * @memberof ProviderInput
117
+ */
118
+ idin?: IdinInput | null;
119
+ /**
120
+ * Input for the `spid` provider
121
+ * @type {SpidInput}
122
+ * @memberof ProviderInput
123
+ */
124
+ spid?: SpidInput | null;
125
+ /**
126
+ * *TEST MODE ONLY.*
127
+ *
128
+ * Input for the `trinsic-test-database-lookup` provider
129
+ * @type {TrinsicTestDatabaseLookupInput}
130
+ * @memberof ProviderInput
131
+ */
132
+ trinsicTestDatabaseLookup?: TrinsicTestDatabaseLookupInput | null;
133
+ /**
134
+ * *TEST MODE ONLY.*
135
+ *
136
+ * Input for the `trinsic-test-sub-providers` provider
137
+ * @type {TrinsicTestSubProvidersInput}
138
+ * @memberof ProviderInput
139
+ */
140
+ trinsicTestSubProviders?: TrinsicTestSubProvidersInput | null;
95
141
  }
96
142
  /**
97
143
  * Check if a given object implements the ProviderInput interface.
@@ -99,4 +145,5 @@ export interface ProviderInput {
99
145
  export declare function instanceOfProviderInput(value: object): value is ProviderInput;
100
146
  export declare function ProviderInputFromJSON(json: any): ProviderInput;
101
147
  export declare function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInput;
102
- export declare function ProviderInputToJSON(value?: ProviderInput | null): any;
148
+ export declare function ProviderInputToJSON(json: any): ProviderInput;
149
+ export declare function ProviderInputToJSONTyped(value?: ProviderInput | null, ignoreDiscriminator?: boolean): any;
@@ -17,17 +17,24 @@ exports.instanceOfProviderInput = instanceOfProviderInput;
17
17
  exports.ProviderInputFromJSON = ProviderInputFromJSON;
18
18
  exports.ProviderInputFromJSONTyped = ProviderInputFromJSONTyped;
19
19
  exports.ProviderInputToJSON = ProviderInputToJSON;
20
- const PhilippineQRInput_1 = require("./PhilippineQRInput");
20
+ exports.ProviderInputToJSONTyped = ProviderInputToJSONTyped;
21
21
  const BangladeshNationalIdInput_1 = require("./BangladeshNationalIdInput");
22
- const AadhaarInput_1 = require("./AadhaarInput");
23
- const KenyaNidInput_1 = require("./KenyaNidInput");
24
- const NigeriaNinInput_1 = require("./NigeriaNinInput");
25
22
  const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
26
23
  const MexicoCurpInput_1 = require("./MexicoCurpInput");
27
24
  const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
28
- const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
25
+ const TrinsicTestSubProvidersInput_1 = require("./TrinsicTestSubProvidersInput");
26
+ const SpidInput_1 = require("./SpidInput");
29
27
  const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
30
28
  const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
29
+ const PhilippineQRInput_1 = require("./PhilippineQRInput");
30
+ const AadhaarInput_1 = require("./AadhaarInput");
31
+ const KenyaNidInput_1 = require("./KenyaNidInput");
32
+ const NigeriaNinInput_1 = require("./NigeriaNinInput");
33
+ const SmartIdInput_1 = require("./SmartIdInput");
34
+ const MobileIdInput_1 = require("./MobileIdInput");
35
+ const TrinsicTestDatabaseLookupInput_1 = require("./TrinsicTestDatabaseLookupInput");
36
+ const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
37
+ const IdinInput_1 = require("./IdinInput");
31
38
  /**
32
39
  * Check if a given object implements the ProviderInput interface.
33
40
  */
@@ -53,9 +60,18 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
53
60
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputFromJSON)(json['brazilDigitalCnh']),
54
61
  'philippineMatch': json['philippineMatch'] == null ? undefined : (0, PhilippineMatchInput_1.PhilippineMatchInputFromJSON)(json['philippineMatch']),
55
62
  'philippineQR': json['philippineQR'] == null ? undefined : (0, PhilippineQRInput_1.PhilippineQRInputFromJSON)(json['philippineQR']),
63
+ 'smartId': json['smartId'] == null ? undefined : (0, SmartIdInput_1.SmartIdInputFromJSON)(json['smartId']),
64
+ 'mobileId': json['mobileId'] == null ? undefined : (0, MobileIdInput_1.MobileIdInputFromJSON)(json['mobileId']),
65
+ 'idin': json['idin'] == null ? undefined : (0, IdinInput_1.IdinInputFromJSON)(json['idin']),
66
+ 'spid': json['spid'] == null ? undefined : (0, SpidInput_1.SpidInputFromJSON)(json['spid']),
67
+ 'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : (0, TrinsicTestDatabaseLookupInput_1.TrinsicTestDatabaseLookupInputFromJSON)(json['trinsicTestDatabaseLookup']),
68
+ 'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : (0, TrinsicTestSubProvidersInput_1.TrinsicTestSubProvidersInputFromJSON)(json['trinsicTestSubProviders']),
56
69
  };
57
70
  }
58
- function ProviderInputToJSON(value) {
71
+ function ProviderInputToJSON(json) {
72
+ return ProviderInputToJSONTyped(json, false);
73
+ }
74
+ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
59
75
  if (value == null) {
60
76
  return value;
61
77
  }
@@ -71,5 +87,11 @@ function ProviderInputToJSON(value) {
71
87
  'brazilDigitalCnh': (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputToJSON)(value['brazilDigitalCnh']),
72
88
  'philippineMatch': (0, PhilippineMatchInput_1.PhilippineMatchInputToJSON)(value['philippineMatch']),
73
89
  'philippineQR': (0, PhilippineQRInput_1.PhilippineQRInputToJSON)(value['philippineQR']),
90
+ 'smartId': (0, SmartIdInput_1.SmartIdInputToJSON)(value['smartId']),
91
+ 'mobileId': (0, MobileIdInput_1.MobileIdInputToJSON)(value['mobileId']),
92
+ 'idin': (0, IdinInput_1.IdinInputToJSON)(value['idin']),
93
+ 'spid': (0, SpidInput_1.SpidInputToJSON)(value['spid']),
94
+ 'trinsicTestDatabaseLookup': (0, TrinsicTestDatabaseLookupInput_1.TrinsicTestDatabaseLookupInputToJSON)(value['trinsicTestDatabaseLookup']),
95
+ 'trinsicTestSubProviders': (0, TrinsicTestSubProvidersInput_1.TrinsicTestSubProvidersInputToJSON)(value['trinsicTestSubProviders']),
74
96
  };
75
97
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RecommendationInfo } from './RecommendationInfo';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -16,35 +17,11 @@
16
17
  */
17
18
  export interface RecommendRequest {
18
19
  /**
19
- * The phone number of the user you wish to generate a recommendation for. Will be used to look up the user's identity in the network
20
- * @type {string}
20
+ * Information about the user you wish to generate a recommendation for.
21
+ * @type {RecommendationInfo}
21
22
  * @memberof RecommendRequest
22
23
  */
23
- phoneNumber?: string | null;
24
- /**
25
- * A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
26
- * @type {Array<string>}
27
- * @memberof RecommendRequest
28
- */
29
- countries?: Array<string> | null;
30
- /**
31
- * If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
32
- * @type {Array<string>}
33
- * @memberof RecommendRequest
34
- */
35
- subdivisions?: Array<string> | null;
36
- /**
37
- * Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
38
- * @type {Array<string>}
39
- * @memberof RecommendRequest
40
- */
41
- ipAddresses?: Array<string> | null;
42
- /**
43
- * If true, the recommendation will include providers that are disabled for the app
44
- * @type {boolean}
45
- * @memberof RecommendRequest
46
- */
47
- includeDisabledProviders?: boolean | null;
24
+ recommendationInfo?: RecommendationInfo | null;
48
25
  }
49
26
  /**
50
27
  * Check if a given object implements the RecommendRequest interface.
@@ -52,4 +29,5 @@ export interface RecommendRequest {
52
29
  export declare function instanceOfRecommendRequest(value: object): value is RecommendRequest;
53
30
  export declare function RecommendRequestFromJSON(json: any): RecommendRequest;
54
31
  export declare function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendRequest;
55
- export declare function RecommendRequestToJSON(value?: RecommendRequest | null): any;
32
+ export declare function RecommendRequestToJSON(json: any): RecommendRequest;
33
+ export declare function RecommendRequestToJSONTyped(value?: RecommendRequest | null, ignoreDiscriminator?: boolean): any;
@@ -17,6 +17,8 @@ exports.instanceOfRecommendRequest = instanceOfRecommendRequest;
17
17
  exports.RecommendRequestFromJSON = RecommendRequestFromJSON;
18
18
  exports.RecommendRequestFromJSONTyped = RecommendRequestFromJSONTyped;
19
19
  exports.RecommendRequestToJSON = RecommendRequestToJSON;
20
+ exports.RecommendRequestToJSONTyped = RecommendRequestToJSONTyped;
21
+ const RecommendationInfo_1 = require("./RecommendationInfo");
20
22
  /**
21
23
  * Check if a given object implements the RecommendRequest interface.
22
24
  */
@@ -31,22 +33,17 @@ function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
31
33
  return json;
32
34
  }
33
35
  return {
34
- 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
35
- 'countries': json['countries'] == null ? undefined : json['countries'],
36
- 'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
37
- 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
38
- 'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
36
+ 'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
39
37
  };
40
38
  }
41
- function RecommendRequestToJSON(value) {
39
+ function RecommendRequestToJSON(json) {
40
+ return RecommendRequestToJSONTyped(json, false);
41
+ }
42
+ function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
43
  if (value == null) {
43
44
  return value;
44
45
  }
45
46
  return {
46
- 'phoneNumber': value['phoneNumber'],
47
- 'countries': value['countries'],
48
- 'subdivisions': value['subdivisions'],
49
- 'ipAddresses': value['ipAddresses'],
50
- 'includeDisabledProviders': value['includeDisabledProviders'],
47
+ 'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
51
48
  };
52
49
  }
@@ -41,4 +41,5 @@ export interface RecommendResponse {
41
41
  export declare function instanceOfRecommendResponse(value: object): value is RecommendResponse;
42
42
  export declare function RecommendResponseFromJSON(json: any): RecommendResponse;
43
43
  export declare function RecommendResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendResponse;
44
- export declare function RecommendResponseToJSON(value?: RecommendResponse | null): any;
44
+ export declare function RecommendResponseToJSON(json: any): RecommendResponse;
45
+ export declare function RecommendResponseToJSONTyped(value?: RecommendResponse | null, ignoreDiscriminator?: boolean): any;
@@ -17,6 +17,7 @@ exports.instanceOfRecommendResponse = instanceOfRecommendResponse;
17
17
  exports.RecommendResponseFromJSON = RecommendResponseFromJSON;
18
18
  exports.RecommendResponseFromJSONTyped = RecommendResponseFromJSONTyped;
19
19
  exports.RecommendResponseToJSON = RecommendResponseToJSON;
20
+ exports.RecommendResponseToJSONTyped = RecommendResponseToJSONTyped;
20
21
  const ProviderInformation_1 = require("./ProviderInformation");
21
22
  /**
22
23
  * Check if a given object implements the RecommendResponse interface.
@@ -43,7 +44,10 @@ function RecommendResponseFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'remainder': (json['remainder'].map(ProviderInformation_1.ProviderInformationFromJSON)),
44
45
  };
45
46
  }
46
- function RecommendResponseToJSON(value) {
47
+ function RecommendResponseToJSON(json) {
48
+ return RecommendResponseToJSONTyped(json, false);
49
+ }
50
+ function RecommendResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
51
  if (value == null) {
48
52
  return value;
49
53
  }