@trinsic/api 2.0.0 → 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 (349) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +1 -1
  4. package/dist/apis/WellKnownApi.d.ts +41 -0
  5. package/dist/apis/WellKnownApi.js +61 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/WellKnownApi.d.ts +41 -0
  9. package/dist/esm/apis/WellKnownApi.js +57 -0
  10. package/dist/esm/apis/index.d.ts +1 -0
  11. package/dist/esm/apis/index.js +1 -0
  12. package/dist/esm/models/AadhaarInput.d.ts +2 -1
  13. package/dist/esm/models/AadhaarInput.js +4 -1
  14. package/dist/esm/models/Address.d.ts +2 -1
  15. package/dist/esm/models/Address.js +4 -1
  16. package/dist/esm/models/AttachmentAccessKeys.d.ts +2 -1
  17. package/dist/esm/models/AttachmentAccessKeys.js +4 -1
  18. package/dist/esm/models/BangladeshNationalIdInput.d.ts +2 -1
  19. package/dist/esm/models/BangladeshNationalIdInput.js +4 -1
  20. package/dist/esm/models/BrazilCpfCheckInput.d.ts +2 -1
  21. package/dist/esm/models/BrazilCpfCheckInput.js +4 -1
  22. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +2 -1
  23. package/dist/esm/models/BrazilDigitalCnhInput.js +4 -1
  24. package/dist/esm/models/CancelSessionResponse.d.ts +2 -1
  25. package/dist/esm/models/CancelSessionResponse.js +4 -1
  26. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
  27. package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +4 -1
  28. package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
  29. package/dist/esm/models/CreateAdvancedProviderSessionResponse.js +4 -1
  30. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +2 -1
  31. package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -1
  32. package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +2 -1
  33. package/dist/esm/models/CreateHostedProviderSessionResponse.js +4 -1
  34. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +2 -1
  35. package/dist/esm/models/CreateWidgetSessionRequest.js +4 -1
  36. package/dist/esm/models/CreateWidgetSessionResponse.d.ts +2 -1
  37. package/dist/esm/models/CreateWidgetSessionResponse.js +4 -1
  38. package/dist/esm/models/DocumentData.d.ts +2 -1
  39. package/dist/esm/models/DocumentData.js +4 -1
  40. package/dist/esm/models/DocumentScanAttachments.d.ts +2 -1
  41. package/dist/esm/models/DocumentScanAttachments.js +4 -1
  42. package/dist/esm/models/DocumentType.d.ts +1 -0
  43. package/dist/esm/models/DocumentType.js +3 -0
  44. package/dist/esm/models/GetAttachmentRequest.d.ts +2 -1
  45. package/dist/esm/models/GetAttachmentRequest.js +4 -1
  46. package/dist/esm/models/GetAttachmentResponse.d.ts +2 -1
  47. package/dist/esm/models/GetAttachmentResponse.js +4 -1
  48. package/dist/esm/models/GetSessionResponse.d.ts +2 -1
  49. package/dist/esm/models/GetSessionResponse.js +4 -1
  50. package/dist/esm/models/GetSessionResultRequest.d.ts +2 -1
  51. package/dist/esm/models/GetSessionResultRequest.js +4 -1
  52. package/dist/esm/models/GetSessionResultResponse.d.ts +2 -1
  53. package/dist/esm/models/GetSessionResultResponse.js +4 -1
  54. package/dist/esm/models/HttpValidationProblemDetails.d.ts +2 -1
  55. package/dist/esm/models/HttpValidationProblemDetails.js +4 -1
  56. package/dist/esm/models/IdentityData.d.ts +2 -1
  57. package/dist/esm/models/IdentityData.js +4 -1
  58. package/dist/esm/models/IdinInput.d.ts +2 -1
  59. package/dist/esm/models/IdinInput.js +4 -1
  60. package/dist/esm/models/IndonesiaNikInput.d.ts +2 -1
  61. package/dist/esm/models/IndonesiaNikInput.js +4 -1
  62. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  63. package/dist/esm/models/IntegrationCapability.js +3 -0
  64. package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
  65. package/dist/esm/models/IntegrationLaunchMethod.js +3 -0
  66. package/dist/esm/models/IntegrationStep.d.ts +3 -2
  67. package/dist/esm/models/IntegrationStep.js +5 -4
  68. package/dist/esm/models/KenyaNidInput.d.ts +2 -1
  69. package/dist/esm/models/KenyaNidInput.js +4 -1
  70. package/dist/esm/models/Language.d.ts +1 -0
  71. package/dist/esm/models/Language.js +3 -0
  72. package/dist/esm/models/ListProviderContractsResponse.d.ts +2 -1
  73. package/dist/esm/models/ListProviderContractsResponse.js +4 -1
  74. package/dist/esm/models/ListProvidersResponse.d.ts +2 -1
  75. package/dist/esm/models/ListProvidersResponse.js +4 -1
  76. package/dist/esm/models/ListSessionsResponse.d.ts +2 -1
  77. package/dist/esm/models/ListSessionsResponse.js +4 -1
  78. package/dist/esm/models/MexicoCurpInput.d.ts +2 -1
  79. package/dist/esm/models/MexicoCurpInput.js +4 -1
  80. package/dist/esm/models/MobileIdInput.d.ts +2 -1
  81. package/dist/esm/models/MobileIdInput.js +4 -1
  82. package/dist/esm/models/NigeriaNinInput.d.ts +2 -1
  83. package/dist/esm/models/NigeriaNinInput.js +4 -1
  84. package/dist/esm/models/OrderDirection.d.ts +1 -0
  85. package/dist/esm/models/OrderDirection.js +3 -0
  86. package/dist/esm/models/PersonData.d.ts +2 -1
  87. package/dist/esm/models/PersonData.js +4 -1
  88. package/dist/esm/models/PhilippineMatchInput.d.ts +2 -1
  89. package/dist/esm/models/PhilippineMatchInput.js +4 -1
  90. package/dist/esm/models/PhilippineQRInput.d.ts +2 -1
  91. package/dist/esm/models/PhilippineQRInput.js +4 -1
  92. package/dist/esm/models/ProblemDetails.d.ts +2 -1
  93. package/dist/esm/models/ProblemDetails.js +4 -1
  94. package/dist/esm/models/ProviderAttachments.d.ts +2 -1
  95. package/dist/esm/models/ProviderAttachments.js +4 -1
  96. package/dist/esm/models/ProviderContract.d.ts +10 -1
  97. package/dist/esm/models/ProviderContract.js +9 -1
  98. package/dist/esm/models/ProviderHealth.d.ts +25 -0
  99. package/dist/esm/models/ProviderHealth.js +43 -0
  100. package/dist/esm/models/ProviderInfo.d.ts +2 -1
  101. package/dist/esm/models/ProviderInfo.js +4 -1
  102. package/dist/esm/models/ProviderInformation.d.ts +2 -1
  103. package/dist/esm/models/ProviderInformation.js +4 -1
  104. package/dist/esm/models/ProviderInput.d.ts +2 -1
  105. package/dist/esm/models/ProviderInput.js +4 -1
  106. package/dist/esm/models/RecommendRequest.d.ts +2 -1
  107. package/dist/esm/models/RecommendRequest.js +4 -1
  108. package/dist/esm/models/RecommendResponse.d.ts +2 -1
  109. package/dist/esm/models/RecommendResponse.js +4 -1
  110. package/dist/esm/models/RecommendationInfo.d.ts +2 -1
  111. package/dist/esm/models/RecommendationInfo.js +4 -1
  112. package/dist/esm/models/RefreshStepContentRequest.d.ts +2 -1
  113. package/dist/esm/models/RefreshStepContentRequest.js +4 -1
  114. package/dist/esm/models/RefreshStepContentResponse.d.ts +2 -1
  115. package/dist/esm/models/RefreshStepContentResponse.js +4 -1
  116. package/dist/esm/models/ResultCollection.d.ts +2 -1
  117. package/dist/esm/models/ResultCollection.js +4 -1
  118. package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
  119. package/dist/esm/models/ResultCollectionMethod.js +3 -0
  120. package/dist/esm/models/Session.d.ts +2 -1
  121. package/dist/esm/models/Session.js +4 -1
  122. package/dist/esm/models/SessionErrorCode.d.ts +1 -0
  123. package/dist/esm/models/SessionErrorCode.js +3 -0
  124. package/dist/esm/models/SessionOrdering.d.ts +1 -0
  125. package/dist/esm/models/SessionOrdering.js +3 -0
  126. package/dist/esm/models/Sex.d.ts +1 -0
  127. package/dist/esm/models/Sex.js +3 -0
  128. package/dist/esm/models/SmartIdInput.d.ts +2 -1
  129. package/dist/esm/models/SmartIdInput.js +4 -1
  130. package/dist/esm/models/SouthAfricaNidInput.d.ts +2 -1
  131. package/dist/esm/models/SouthAfricaNidInput.js +4 -1
  132. package/dist/esm/models/SpidInput.d.ts +2 -1
  133. package/dist/esm/models/SpidInput.js +4 -1
  134. package/dist/esm/models/StepRefreshInfo.d.ts +2 -1
  135. package/dist/esm/models/StepRefreshInfo.js +4 -1
  136. package/dist/esm/models/SubProviderMetadata.d.ts +2 -1
  137. package/dist/esm/models/SubProviderMetadata.js +4 -1
  138. package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +2 -1
  139. package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +4 -1
  140. package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +2 -1
  141. package/dist/esm/models/TrinsicTestSubProvidersInput.js +4 -1
  142. package/dist/esm/models/index.d.ts +1 -0
  143. package/dist/esm/models/index.js +1 -0
  144. package/dist/esm/runtime.d.ts +4 -1
  145. package/dist/esm/runtime.js +9 -1
  146. package/dist/models/AadhaarInput.d.ts +2 -1
  147. package/dist/models/AadhaarInput.js +5 -1
  148. package/dist/models/Address.d.ts +2 -1
  149. package/dist/models/Address.js +5 -1
  150. package/dist/models/AttachmentAccessKeys.d.ts +2 -1
  151. package/dist/models/AttachmentAccessKeys.js +5 -1
  152. package/dist/models/BangladeshNationalIdInput.d.ts +2 -1
  153. package/dist/models/BangladeshNationalIdInput.js +5 -1
  154. package/dist/models/BrazilCpfCheckInput.d.ts +2 -1
  155. package/dist/models/BrazilCpfCheckInput.js +5 -1
  156. package/dist/models/BrazilDigitalCnhInput.d.ts +2 -1
  157. package/dist/models/BrazilDigitalCnhInput.js +5 -1
  158. package/dist/models/CancelSessionResponse.d.ts +2 -1
  159. package/dist/models/CancelSessionResponse.js +5 -1
  160. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +2 -1
  161. package/dist/models/CreateAdvancedProviderSessionRequest.js +5 -1
  162. package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +2 -1
  163. package/dist/models/CreateAdvancedProviderSessionResponse.js +5 -1
  164. package/dist/models/CreateHostedProviderSessionRequest.d.ts +2 -1
  165. package/dist/models/CreateHostedProviderSessionRequest.js +5 -1
  166. package/dist/models/CreateHostedProviderSessionResponse.d.ts +2 -1
  167. package/dist/models/CreateHostedProviderSessionResponse.js +5 -1
  168. package/dist/models/CreateWidgetSessionRequest.d.ts +2 -1
  169. package/dist/models/CreateWidgetSessionRequest.js +5 -1
  170. package/dist/models/CreateWidgetSessionResponse.d.ts +2 -1
  171. package/dist/models/CreateWidgetSessionResponse.js +5 -1
  172. package/dist/models/DocumentData.d.ts +2 -1
  173. package/dist/models/DocumentData.js +5 -1
  174. package/dist/models/DocumentScanAttachments.d.ts +2 -1
  175. package/dist/models/DocumentScanAttachments.js +5 -1
  176. package/dist/models/DocumentType.d.ts +1 -0
  177. package/dist/models/DocumentType.js +4 -0
  178. package/dist/models/GetAttachmentRequest.d.ts +2 -1
  179. package/dist/models/GetAttachmentRequest.js +5 -1
  180. package/dist/models/GetAttachmentResponse.d.ts +2 -1
  181. package/dist/models/GetAttachmentResponse.js +5 -1
  182. package/dist/models/GetSessionResponse.d.ts +2 -1
  183. package/dist/models/GetSessionResponse.js +5 -1
  184. package/dist/models/GetSessionResultRequest.d.ts +2 -1
  185. package/dist/models/GetSessionResultRequest.js +5 -1
  186. package/dist/models/GetSessionResultResponse.d.ts +2 -1
  187. package/dist/models/GetSessionResultResponse.js +5 -1
  188. package/dist/models/HttpValidationProblemDetails.d.ts +2 -1
  189. package/dist/models/HttpValidationProblemDetails.js +5 -1
  190. package/dist/models/IdentityData.d.ts +2 -1
  191. package/dist/models/IdentityData.js +5 -1
  192. package/dist/models/IdinInput.d.ts +2 -1
  193. package/dist/models/IdinInput.js +5 -1
  194. package/dist/models/IndonesiaNikInput.d.ts +2 -1
  195. package/dist/models/IndonesiaNikInput.js +5 -1
  196. package/dist/models/IntegrationCapability.d.ts +1 -0
  197. package/dist/models/IntegrationCapability.js +4 -0
  198. package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
  199. package/dist/models/IntegrationLaunchMethod.js +4 -0
  200. package/dist/models/IntegrationStep.d.ts +3 -2
  201. package/dist/models/IntegrationStep.js +6 -4
  202. package/dist/models/KenyaNidInput.d.ts +2 -1
  203. package/dist/models/KenyaNidInput.js +5 -1
  204. package/dist/models/Language.d.ts +1 -0
  205. package/dist/models/Language.js +4 -0
  206. package/dist/models/ListProviderContractsResponse.d.ts +2 -1
  207. package/dist/models/ListProviderContractsResponse.js +5 -1
  208. package/dist/models/ListProvidersResponse.d.ts +2 -1
  209. package/dist/models/ListProvidersResponse.js +5 -1
  210. package/dist/models/ListSessionsResponse.d.ts +2 -1
  211. package/dist/models/ListSessionsResponse.js +5 -1
  212. package/dist/models/MexicoCurpInput.d.ts +2 -1
  213. package/dist/models/MexicoCurpInput.js +5 -1
  214. package/dist/models/MobileIdInput.d.ts +2 -1
  215. package/dist/models/MobileIdInput.js +5 -1
  216. package/dist/models/NigeriaNinInput.d.ts +2 -1
  217. package/dist/models/NigeriaNinInput.js +5 -1
  218. package/dist/models/OrderDirection.d.ts +1 -0
  219. package/dist/models/OrderDirection.js +4 -0
  220. package/dist/models/PersonData.d.ts +2 -1
  221. package/dist/models/PersonData.js +5 -1
  222. package/dist/models/PhilippineMatchInput.d.ts +2 -1
  223. package/dist/models/PhilippineMatchInput.js +5 -1
  224. package/dist/models/PhilippineQRInput.d.ts +2 -1
  225. package/dist/models/PhilippineQRInput.js +5 -1
  226. package/dist/models/ProblemDetails.d.ts +2 -1
  227. package/dist/models/ProblemDetails.js +5 -1
  228. package/dist/models/ProviderAttachments.d.ts +2 -1
  229. package/dist/models/ProviderAttachments.js +5 -1
  230. package/dist/models/ProviderContract.d.ts +10 -1
  231. package/dist/models/ProviderContract.js +10 -1
  232. package/dist/models/ProviderHealth.d.ts +25 -0
  233. package/dist/models/ProviderHealth.js +51 -0
  234. package/dist/models/ProviderInfo.d.ts +2 -1
  235. package/dist/models/ProviderInfo.js +5 -1
  236. package/dist/models/ProviderInformation.d.ts +2 -1
  237. package/dist/models/ProviderInformation.js +5 -1
  238. package/dist/models/ProviderInput.d.ts +2 -1
  239. package/dist/models/ProviderInput.js +5 -1
  240. package/dist/models/RecommendRequest.d.ts +2 -1
  241. package/dist/models/RecommendRequest.js +5 -1
  242. package/dist/models/RecommendResponse.d.ts +2 -1
  243. package/dist/models/RecommendResponse.js +5 -1
  244. package/dist/models/RecommendationInfo.d.ts +2 -1
  245. package/dist/models/RecommendationInfo.js +5 -1
  246. package/dist/models/RefreshStepContentRequest.d.ts +2 -1
  247. package/dist/models/RefreshStepContentRequest.js +5 -1
  248. package/dist/models/RefreshStepContentResponse.d.ts +2 -1
  249. package/dist/models/RefreshStepContentResponse.js +5 -1
  250. package/dist/models/ResultCollection.d.ts +2 -1
  251. package/dist/models/ResultCollection.js +5 -1
  252. package/dist/models/ResultCollectionMethod.d.ts +1 -0
  253. package/dist/models/ResultCollectionMethod.js +4 -0
  254. package/dist/models/Session.d.ts +2 -1
  255. package/dist/models/Session.js +5 -1
  256. package/dist/models/SessionErrorCode.d.ts +1 -0
  257. package/dist/models/SessionErrorCode.js +4 -0
  258. package/dist/models/SessionOrdering.d.ts +1 -0
  259. package/dist/models/SessionOrdering.js +4 -0
  260. package/dist/models/Sex.d.ts +1 -0
  261. package/dist/models/Sex.js +4 -0
  262. package/dist/models/SmartIdInput.d.ts +2 -1
  263. package/dist/models/SmartIdInput.js +5 -1
  264. package/dist/models/SouthAfricaNidInput.d.ts +2 -1
  265. package/dist/models/SouthAfricaNidInput.js +5 -1
  266. package/dist/models/SpidInput.d.ts +2 -1
  267. package/dist/models/SpidInput.js +5 -1
  268. package/dist/models/StepRefreshInfo.d.ts +2 -1
  269. package/dist/models/StepRefreshInfo.js +5 -1
  270. package/dist/models/SubProviderMetadata.d.ts +2 -1
  271. package/dist/models/SubProviderMetadata.js +5 -1
  272. package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +2 -1
  273. package/dist/models/TrinsicTestDatabaseLookupInput.js +5 -1
  274. package/dist/models/TrinsicTestSubProvidersInput.d.ts +2 -1
  275. package/dist/models/TrinsicTestSubProvidersInput.js +5 -1
  276. package/dist/models/index.d.ts +1 -0
  277. package/dist/models/index.js +1 -0
  278. package/dist/runtime.d.ts +4 -1
  279. package/dist/runtime.js +10 -1
  280. package/package.json +1 -1
  281. package/src/apis/WellKnownApi.ts +82 -0
  282. package/src/apis/index.ts +1 -0
  283. package/src/models/AadhaarInput.ts +6 -1
  284. package/src/models/Address.ts +6 -1
  285. package/src/models/AttachmentAccessKeys.ts +7 -1
  286. package/src/models/BangladeshNationalIdInput.ts +6 -1
  287. package/src/models/BrazilCpfCheckInput.ts +6 -1
  288. package/src/models/BrazilDigitalCnhInput.ts +6 -1
  289. package/src/models/CancelSessionResponse.ts +7 -1
  290. package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -1
  291. package/src/models/CreateAdvancedProviderSessionResponse.ts +8 -1
  292. package/src/models/CreateHostedProviderSessionRequest.ts +7 -1
  293. package/src/models/CreateHostedProviderSessionResponse.ts +6 -1
  294. package/src/models/CreateWidgetSessionRequest.ts +7 -1
  295. package/src/models/CreateWidgetSessionResponse.ts +6 -1
  296. package/src/models/DocumentData.ts +7 -1
  297. package/src/models/DocumentScanAttachments.ts +6 -1
  298. package/src/models/DocumentType.ts +4 -0
  299. package/src/models/GetAttachmentRequest.ts +6 -1
  300. package/src/models/GetAttachmentResponse.ts +6 -1
  301. package/src/models/GetSessionResponse.ts +7 -1
  302. package/src/models/GetSessionResultRequest.ts +6 -1
  303. package/src/models/GetSessionResultResponse.ts +8 -1
  304. package/src/models/HttpValidationProblemDetails.ts +6 -1
  305. package/src/models/IdentityData.ts +9 -1
  306. package/src/models/IdinInput.ts +6 -1
  307. package/src/models/IndonesiaNikInput.ts +6 -1
  308. package/src/models/IntegrationCapability.ts +4 -0
  309. package/src/models/IntegrationLaunchMethod.ts +4 -0
  310. package/src/models/IntegrationStep.ts +10 -4
  311. package/src/models/KenyaNidInput.ts +6 -1
  312. package/src/models/Language.ts +4 -0
  313. package/src/models/ListProviderContractsResponse.ts +7 -1
  314. package/src/models/ListProvidersResponse.ts +7 -1
  315. package/src/models/ListSessionsResponse.ts +7 -1
  316. package/src/models/MexicoCurpInput.ts +6 -1
  317. package/src/models/MobileIdInput.ts +7 -1
  318. package/src/models/NigeriaNinInput.ts +6 -1
  319. package/src/models/OrderDirection.ts +4 -0
  320. package/src/models/PersonData.ts +8 -1
  321. package/src/models/PhilippineMatchInput.ts +6 -1
  322. package/src/models/PhilippineQRInput.ts +6 -1
  323. package/src/models/ProblemDetails.ts +6 -1
  324. package/src/models/ProviderAttachments.ts +7 -1
  325. package/src/models/ProviderContract.ts +26 -1
  326. package/src/models/ProviderHealth.ts +53 -0
  327. package/src/models/ProviderInfo.ts +6 -1
  328. package/src/models/ProviderInformation.ts +6 -1
  329. package/src/models/ProviderInput.ts +23 -1
  330. package/src/models/RecommendRequest.ts +7 -1
  331. package/src/models/RecommendResponse.ts +7 -1
  332. package/src/models/RecommendationInfo.ts +6 -1
  333. package/src/models/RefreshStepContentRequest.ts +6 -1
  334. package/src/models/RefreshStepContentResponse.ts +7 -1
  335. package/src/models/ResultCollection.ts +7 -1
  336. package/src/models/ResultCollectionMethod.ts +4 -0
  337. package/src/models/Session.ts +7 -1
  338. package/src/models/SessionErrorCode.ts +4 -0
  339. package/src/models/SessionOrdering.ts +4 -0
  340. package/src/models/Sex.ts +4 -0
  341. package/src/models/SmartIdInput.ts +6 -1
  342. package/src/models/SouthAfricaNidInput.ts +6 -1
  343. package/src/models/SpidInput.ts +6 -1
  344. package/src/models/StepRefreshInfo.ts +6 -1
  345. package/src/models/SubProviderMetadata.ts +6 -1
  346. package/src/models/TrinsicTestDatabaseLookupInput.ts +6 -1
  347. package/src/models/TrinsicTestSubProvidersInput.ts +6 -1
  348. package/src/models/index.ts +1 -0
  349. package/src/runtime.ts +10 -4
@@ -18,102 +18,119 @@ import {
18
18
  BangladeshNationalIdInputFromJSON,
19
19
  BangladeshNationalIdInputFromJSONTyped,
20
20
  BangladeshNationalIdInputToJSON,
21
+ BangladeshNationalIdInputToJSONTyped,
21
22
  } from './BangladeshNationalIdInput';
22
23
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
23
24
  import {
24
25
  BrazilCpfCheckInputFromJSON,
25
26
  BrazilCpfCheckInputFromJSONTyped,
26
27
  BrazilCpfCheckInputToJSON,
28
+ BrazilCpfCheckInputToJSONTyped,
27
29
  } from './BrazilCpfCheckInput';
28
30
  import type { MexicoCurpInput } from './MexicoCurpInput';
29
31
  import {
30
32
  MexicoCurpInputFromJSON,
31
33
  MexicoCurpInputFromJSONTyped,
32
34
  MexicoCurpInputToJSON,
35
+ MexicoCurpInputToJSONTyped,
33
36
  } from './MexicoCurpInput';
34
37
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
35
38
  import {
36
39
  BrazilDigitalCnhInputFromJSON,
37
40
  BrazilDigitalCnhInputFromJSONTyped,
38
41
  BrazilDigitalCnhInputToJSON,
42
+ BrazilDigitalCnhInputToJSONTyped,
39
43
  } from './BrazilDigitalCnhInput';
40
44
  import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
41
45
  import {
42
46
  TrinsicTestSubProvidersInputFromJSON,
43
47
  TrinsicTestSubProvidersInputFromJSONTyped,
44
48
  TrinsicTestSubProvidersInputToJSON,
49
+ TrinsicTestSubProvidersInputToJSONTyped,
45
50
  } from './TrinsicTestSubProvidersInput';
46
51
  import type { SpidInput } from './SpidInput';
47
52
  import {
48
53
  SpidInputFromJSON,
49
54
  SpidInputFromJSONTyped,
50
55
  SpidInputToJSON,
56
+ SpidInputToJSONTyped,
51
57
  } from './SpidInput';
52
58
  import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
53
59
  import {
54
60
  SouthAfricaNidInputFromJSON,
55
61
  SouthAfricaNidInputFromJSONTyped,
56
62
  SouthAfricaNidInputToJSON,
63
+ SouthAfricaNidInputToJSONTyped,
57
64
  } from './SouthAfricaNidInput';
58
65
  import type { PhilippineMatchInput } from './PhilippineMatchInput';
59
66
  import {
60
67
  PhilippineMatchInputFromJSON,
61
68
  PhilippineMatchInputFromJSONTyped,
62
69
  PhilippineMatchInputToJSON,
70
+ PhilippineMatchInputToJSONTyped,
63
71
  } from './PhilippineMatchInput';
64
72
  import type { PhilippineQRInput } from './PhilippineQRInput';
65
73
  import {
66
74
  PhilippineQRInputFromJSON,
67
75
  PhilippineQRInputFromJSONTyped,
68
76
  PhilippineQRInputToJSON,
77
+ PhilippineQRInputToJSONTyped,
69
78
  } from './PhilippineQRInput';
70
79
  import type { AadhaarInput } from './AadhaarInput';
71
80
  import {
72
81
  AadhaarInputFromJSON,
73
82
  AadhaarInputFromJSONTyped,
74
83
  AadhaarInputToJSON,
84
+ AadhaarInputToJSONTyped,
75
85
  } from './AadhaarInput';
76
86
  import type { KenyaNidInput } from './KenyaNidInput';
77
87
  import {
78
88
  KenyaNidInputFromJSON,
79
89
  KenyaNidInputFromJSONTyped,
80
90
  KenyaNidInputToJSON,
91
+ KenyaNidInputToJSONTyped,
81
92
  } from './KenyaNidInput';
82
93
  import type { NigeriaNinInput } from './NigeriaNinInput';
83
94
  import {
84
95
  NigeriaNinInputFromJSON,
85
96
  NigeriaNinInputFromJSONTyped,
86
97
  NigeriaNinInputToJSON,
98
+ NigeriaNinInputToJSONTyped,
87
99
  } from './NigeriaNinInput';
88
100
  import type { SmartIdInput } from './SmartIdInput';
89
101
  import {
90
102
  SmartIdInputFromJSON,
91
103
  SmartIdInputFromJSONTyped,
92
104
  SmartIdInputToJSON,
105
+ SmartIdInputToJSONTyped,
93
106
  } from './SmartIdInput';
94
107
  import type { MobileIdInput } from './MobileIdInput';
95
108
  import {
96
109
  MobileIdInputFromJSON,
97
110
  MobileIdInputFromJSONTyped,
98
111
  MobileIdInputToJSON,
112
+ MobileIdInputToJSONTyped,
99
113
  } from './MobileIdInput';
100
114
  import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
101
115
  import {
102
116
  TrinsicTestDatabaseLookupInputFromJSON,
103
117
  TrinsicTestDatabaseLookupInputFromJSONTyped,
104
118
  TrinsicTestDatabaseLookupInputToJSON,
119
+ TrinsicTestDatabaseLookupInputToJSONTyped,
105
120
  } from './TrinsicTestDatabaseLookupInput';
106
121
  import type { IndonesiaNikInput } from './IndonesiaNikInput';
107
122
  import {
108
123
  IndonesiaNikInputFromJSON,
109
124
  IndonesiaNikInputFromJSONTyped,
110
125
  IndonesiaNikInputToJSON,
126
+ IndonesiaNikInputToJSONTyped,
111
127
  } from './IndonesiaNikInput';
112
128
  import type { IdinInput } from './IdinInput';
113
129
  import {
114
130
  IdinInputFromJSON,
115
131
  IdinInputFromJSONTyped,
116
132
  IdinInputToJSON,
133
+ IdinInputToJSONTyped,
117
134
  } from './IdinInput';
118
135
 
119
136
  /**
@@ -267,10 +284,15 @@ export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boole
267
284
  };
268
285
  }
269
286
 
270
- export function ProviderInputToJSON(value?: ProviderInput | null): any {
287
+ export function ProviderInputToJSON(json: any): ProviderInput {
288
+ return ProviderInputToJSONTyped(json, false);
289
+ }
290
+
291
+ export function ProviderInputToJSONTyped(value?: ProviderInput | null, ignoreDiscriminator: boolean = false): any {
271
292
  if (value == null) {
272
293
  return value;
273
294
  }
295
+
274
296
  return {
275
297
 
276
298
  'indonesiaNik': IndonesiaNikInputToJSON(value['indonesiaNik']),
@@ -18,6 +18,7 @@ import {
18
18
  RecommendationInfoFromJSON,
19
19
  RecommendationInfoFromJSONTyped,
20
20
  RecommendationInfoToJSON,
21
+ RecommendationInfoToJSONTyped,
21
22
  } from './RecommendationInfo';
22
23
 
23
24
  /**
@@ -55,10 +56,15 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
55
56
  };
56
57
  }
57
58
 
58
- export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
59
+ export function RecommendRequestToJSON(json: any): RecommendRequest {
60
+ return RecommendRequestToJSONTyped(json, false);
61
+ }
62
+
63
+ export function RecommendRequestToJSONTyped(value?: RecommendRequest | null, ignoreDiscriminator: boolean = false): any {
59
64
  if (value == null) {
60
65
  return value;
61
66
  }
67
+
62
68
  return {
63
69
 
64
70
  'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
@@ -18,6 +18,7 @@ import {
18
18
  ProviderInformationFromJSON,
19
19
  ProviderInformationFromJSONTyped,
20
20
  ProviderInformationToJSON,
21
+ ProviderInformationToJSONTyped,
21
22
  } from './ProviderInformation';
22
23
 
23
24
  /**
@@ -72,10 +73,15 @@ export function RecommendResponseFromJSONTyped(json: any, ignoreDiscriminator: b
72
73
  };
73
74
  }
74
75
 
75
- export function RecommendResponseToJSON(value?: RecommendResponse | null): any {
76
+ export function RecommendResponseToJSON(json: any): RecommendResponse {
77
+ return RecommendResponseToJSONTyped(json, false);
78
+ }
79
+
80
+ export function RecommendResponseToJSONTyped(value?: RecommendResponse | null, ignoreDiscriminator: boolean = false): any {
76
81
  if (value == null) {
77
82
  return value;
78
83
  }
84
+
79
85
  return {
80
86
 
81
87
  'recognized': ((value['recognized'] as Array<any>).map(ProviderInformationToJSON)),
@@ -75,10 +75,15 @@ export function RecommendationInfoFromJSONTyped(json: any, ignoreDiscriminator:
75
75
  };
76
76
  }
77
77
 
78
- export function RecommendationInfoToJSON(value?: RecommendationInfo | null): any {
78
+ export function RecommendationInfoToJSON(json: any): RecommendationInfo {
79
+ return RecommendationInfoToJSONTyped(json, false);
80
+ }
81
+
82
+ export function RecommendationInfoToJSONTyped(value?: RecommendationInfo | null, ignoreDiscriminator: boolean = false): any {
79
83
  if (value == null) {
80
84
  return value;
81
85
  }
86
+
82
87
  return {
83
88
 
84
89
  'phoneNumber': value['phoneNumber'],
@@ -48,10 +48,15 @@ export function RefreshStepContentRequestFromJSONTyped(json: any, ignoreDiscrimi
48
48
  };
49
49
  }
50
50
 
51
- export function RefreshStepContentRequestToJSON(value?: RefreshStepContentRequest | null): any {
51
+ export function RefreshStepContentRequestToJSON(json: any): RefreshStepContentRequest {
52
+ return RefreshStepContentRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function RefreshStepContentRequestToJSONTyped(value?: RefreshStepContentRequest | null, ignoreDiscriminator: boolean = false): any {
52
56
  if (value == null) {
53
57
  return value;
54
58
  }
59
+
55
60
  return {
56
61
 
57
62
  'resultsAccessKey': value['resultsAccessKey'],
@@ -18,6 +18,7 @@ import {
18
18
  IntegrationStepFromJSON,
19
19
  IntegrationStepFromJSONTyped,
20
20
  IntegrationStepToJSON,
21
+ IntegrationStepToJSONTyped,
21
22
  } from './IntegrationStep';
22
23
 
23
24
  /**
@@ -56,10 +57,15 @@ export function RefreshStepContentResponseFromJSONTyped(json: any, ignoreDiscrim
56
57
  };
57
58
  }
58
59
 
59
- export function RefreshStepContentResponseToJSON(value?: RefreshStepContentResponse | null): any {
60
+ export function RefreshStepContentResponseToJSON(json: any): RefreshStepContentResponse {
61
+ return RefreshStepContentResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function RefreshStepContentResponseToJSONTyped(value?: RefreshStepContentResponse | null, ignoreDiscriminator: boolean = false): any {
60
65
  if (value == null) {
61
66
  return value;
62
67
  }
68
+
63
69
  return {
64
70
 
65
71
  'nextStep': IntegrationStepToJSON(value['nextStep']),
@@ -18,6 +18,7 @@ import {
18
18
  ResultCollectionMethodFromJSON,
19
19
  ResultCollectionMethodFromJSONTyped,
20
20
  ResultCollectionMethodToJSON,
21
+ ResultCollectionMethodToJSONTyped,
21
22
  } from './ResultCollectionMethod';
22
23
 
23
24
  /**
@@ -72,10 +73,15 @@ export function ResultCollectionFromJSONTyped(json: any, ignoreDiscriminator: bo
72
73
  };
73
74
  }
74
75
 
75
- export function ResultCollectionToJSON(value?: ResultCollection | null): any {
76
+ export function ResultCollectionToJSON(json: any): ResultCollection {
77
+ return ResultCollectionToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ResultCollectionToJSONTyped(value?: ResultCollection | null, ignoreDiscriminator: boolean = false): any {
76
81
  if (value == null) {
77
82
  return value;
78
83
  }
84
+
79
85
  return {
80
86
 
81
87
  'method': ResultCollectionMethodToJSON(value['method']),
@@ -47,3 +47,7 @@ export function ResultCollectionMethodToJSON(value?: ResultCollectionMethod | nu
47
47
  return value as any;
48
48
  }
49
49
 
50
+ export function ResultCollectionMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): ResultCollectionMethod {
51
+ return value as ResultCollectionMethod;
52
+ }
53
+
@@ -18,6 +18,7 @@ import {
18
18
  SessionErrorCodeFromJSON,
19
19
  SessionErrorCodeFromJSONTyped,
20
20
  SessionErrorCodeToJSON,
21
+ SessionErrorCodeToJSONTyped,
21
22
  } from './SessionErrorCode';
22
23
 
23
24
  /**
@@ -104,10 +105,15 @@ export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
104
105
  };
105
106
  }
106
107
 
107
- export function SessionToJSON(value?: Session | null): any {
108
+ export function SessionToJSON(json: any): Session {
109
+ return SessionToJSONTyped(json, false);
110
+ }
111
+
112
+ export function SessionToJSONTyped(value?: Session | null, ignoreDiscriminator: boolean = false): any {
108
113
  if (value == null) {
109
114
  return value;
110
115
  }
116
+
111
117
  return {
112
118
 
113
119
  'id': value['id'],
@@ -55,3 +55,7 @@ export function SessionErrorCodeToJSON(value?: SessionErrorCode | null): any {
55
55
  return value as any;
56
56
  }
57
57
 
58
+ export function SessionErrorCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): SessionErrorCode {
59
+ return value as SessionErrorCode;
60
+ }
61
+
@@ -48,3 +48,7 @@ export function SessionOrderingToJSON(value?: SessionOrdering | null): any {
48
48
  return value as any;
49
49
  }
50
50
 
51
+ export function SessionOrderingToJSONTyped(value: any, ignoreDiscriminator: boolean): SessionOrdering {
52
+ return value as SessionOrdering;
53
+ }
54
+
package/src/models/Sex.ts CHANGED
@@ -49,3 +49,7 @@ export function SexToJSON(value?: Sex | null): any {
49
49
  return value as any;
50
50
  }
51
51
 
52
+ export function SexToJSONTyped(value: any, ignoreDiscriminator: boolean): Sex {
53
+ return value as Sex;
54
+ }
55
+
@@ -48,10 +48,15 @@ export function SmartIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolea
48
48
  };
49
49
  }
50
50
 
51
- export function SmartIdInputToJSON(value?: SmartIdInput | null): any {
51
+ export function SmartIdInputToJSON(json: any): SmartIdInput {
52
+ return SmartIdInputToJSONTyped(json, false);
53
+ }
54
+
55
+ export function SmartIdInputToJSONTyped(value?: SmartIdInput | null, ignoreDiscriminator: boolean = false): any {
52
56
  if (value == null) {
53
57
  return value;
54
58
  }
59
+
55
60
  return {
56
61
 
57
62
  'smartIdDocumentNumber': value['smartIdDocumentNumber'],
@@ -73,10 +73,15 @@ export function SouthAfricaNidInputFromJSONTyped(json: any, ignoreDiscriminator:
73
73
  };
74
74
  }
75
75
 
76
- export function SouthAfricaNidInputToJSON(value?: SouthAfricaNidInput | null): any {
76
+ export function SouthAfricaNidInputToJSON(json: any): SouthAfricaNidInput {
77
+ return SouthAfricaNidInputToJSONTyped(json, false);
78
+ }
79
+
80
+ export function SouthAfricaNidInputToJSONTyped(value?: SouthAfricaNidInput | null, ignoreDiscriminator: boolean = false): any {
77
81
  if (value == null) {
78
82
  return value;
79
83
  }
84
+
80
85
  return {
81
86
 
82
87
  'fullName': value['fullName'],
@@ -50,10 +50,15 @@ export function SpidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean):
50
50
  };
51
51
  }
52
52
 
53
- export function SpidInputToJSON(value?: SpidInput | null): any {
53
+ export function SpidInputToJSON(json: any): SpidInput {
54
+ return SpidInputToJSONTyped(json, false);
55
+ }
56
+
57
+ export function SpidInputToJSONTyped(value?: SpidInput | null, ignoreDiscriminator: boolean = false): any {
54
58
  if (value == null) {
55
59
  return value;
56
60
  }
61
+
57
62
  return {
58
63
 
59
64
  'subProviderId': value['subProviderId'],
@@ -67,10 +67,15 @@ export function StepRefreshInfoFromJSONTyped(json: any, ignoreDiscriminator: boo
67
67
  };
68
68
  }
69
69
 
70
- export function StepRefreshInfoToJSON(value?: StepRefreshInfo | null): any {
70
+ export function StepRefreshInfoToJSON(json: any): StepRefreshInfo {
71
+ return StepRefreshInfoToJSONTyped(json, false);
72
+ }
73
+
74
+ export function StepRefreshInfoToJSONTyped(value?: StepRefreshInfo | null, ignoreDiscriminator: boolean = false): any {
71
75
  if (value == null) {
72
76
  return value;
73
77
  }
78
+
74
79
  return {
75
80
 
76
81
  'expiresAt': ((value['expiresAt']).toISOString()),
@@ -78,10 +78,15 @@ export function SubProviderMetadataFromJSONTyped(json: any, ignoreDiscriminator:
78
78
  };
79
79
  }
80
80
 
81
- export function SubProviderMetadataToJSON(value?: SubProviderMetadata | null): any {
81
+ export function SubProviderMetadataToJSON(json: any): SubProviderMetadata {
82
+ return SubProviderMetadataToJSONTyped(json, false);
83
+ }
84
+
85
+ export function SubProviderMetadataToJSONTyped(value?: SubProviderMetadata | null, ignoreDiscriminator: boolean = false): any {
82
86
  if (value == null) {
83
87
  return value;
84
88
  }
89
+
85
90
  return {
86
91
 
87
92
  'id': value['id'],
@@ -86,10 +86,15 @@ export function TrinsicTestDatabaseLookupInputFromJSONTyped(json: any, ignoreDis
86
86
  };
87
87
  }
88
88
 
89
- export function TrinsicTestDatabaseLookupInputToJSON(value?: TrinsicTestDatabaseLookupInput | null): any {
89
+ export function TrinsicTestDatabaseLookupInputToJSON(json: any): TrinsicTestDatabaseLookupInput {
90
+ return TrinsicTestDatabaseLookupInputToJSONTyped(json, false);
91
+ }
92
+
93
+ export function TrinsicTestDatabaseLookupInputToJSONTyped(value?: TrinsicTestDatabaseLookupInput | null, ignoreDiscriminator: boolean = false): any {
90
94
  if (value == null) {
91
95
  return value;
92
96
  }
97
+
93
98
  return {
94
99
 
95
100
  'givenName': value['givenName'],
@@ -52,10 +52,15 @@ export function TrinsicTestSubProvidersInputFromJSONTyped(json: any, ignoreDiscr
52
52
  };
53
53
  }
54
54
 
55
- export function TrinsicTestSubProvidersInputToJSON(value?: TrinsicTestSubProvidersInput | null): any {
55
+ export function TrinsicTestSubProvidersInputToJSON(json: any): TrinsicTestSubProvidersInput {
56
+ return TrinsicTestSubProvidersInputToJSONTyped(json, false);
57
+ }
58
+
59
+ export function TrinsicTestSubProvidersInputToJSONTyped(value?: TrinsicTestSubProvidersInput | null, ignoreDiscriminator: boolean = false): any {
56
60
  if (value == null) {
57
61
  return value;
58
62
  }
63
+
59
64
  return {
60
65
 
61
66
  'subProviderId': value['subProviderId'],
@@ -43,6 +43,7 @@ export * from './PhilippineQRInput';
43
43
  export * from './ProblemDetails';
44
44
  export * from './ProviderAttachments';
45
45
  export * from './ProviderContract';
46
+ export * from './ProviderHealth';
46
47
  export * from './ProviderInfo';
47
48
  export * from './ProviderInformation';
48
49
  export * from './ProviderInput';
package/src/runtime.ts CHANGED
@@ -337,11 +337,17 @@ function querystringSingleKey(key: string, value: string | number | null | undef
337
337
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
338
338
  }
339
339
 
340
+ export function exists(json: any, key: string) {
341
+ const value = json[key];
342
+ return value !== null && value !== undefined;
343
+ }
344
+
340
345
  export function mapValues(data: any, fn: (item: any) => any) {
341
- return Object.keys(data).reduce(
342
- (acc, key) => ({ ...acc, [key]: fn(data[key]) }),
343
- {}
344
- );
346
+ const result: { [key: string]: any } = {};
347
+ for (const key of Object.keys(data)) {
348
+ result[key] = fn(data[key]);
349
+ }
350
+ return result;
345
351
  }
346
352
 
347
353
  export function canConsumeForm(consumes: Consume[]): boolean {