@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
@@ -17,6 +17,7 @@ exports.instanceOfTrinsicTestSubProvidersInput = instanceOfTrinsicTestSubProvide
17
17
  exports.TrinsicTestSubProvidersInputFromJSON = TrinsicTestSubProvidersInputFromJSON;
18
18
  exports.TrinsicTestSubProvidersInputFromJSONTyped = TrinsicTestSubProvidersInputFromJSONTyped;
19
19
  exports.TrinsicTestSubProvidersInputToJSON = TrinsicTestSubProvidersInputToJSON;
20
+ exports.TrinsicTestSubProvidersInputToJSONTyped = TrinsicTestSubProvidersInputToJSONTyped;
20
21
  /**
21
22
  * Check if a given object implements the TrinsicTestSubProvidersInput interface.
22
23
  */
@@ -34,7 +35,10 @@ function TrinsicTestSubProvidersInputFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
35
36
  };
36
37
  }
37
- function TrinsicTestSubProvidersInputToJSON(value) {
38
+ function TrinsicTestSubProvidersInputToJSON(json) {
39
+ return TrinsicTestSubProvidersInputToJSONTyped(json, false);
40
+ }
41
+ function TrinsicTestSubProvidersInputToJSONTyped(value, ignoreDiscriminator = false) {
38
42
  if (value == null) {
39
43
  return value;
40
44
  }
@@ -41,6 +41,7 @@ export * from './PhilippineQRInput';
41
41
  export * from './ProblemDetails';
42
42
  export * from './ProviderAttachments';
43
43
  export * from './ProviderContract';
44
+ export * from './ProviderHealth';
44
45
  export * from './ProviderInfo';
45
46
  export * from './ProviderInformation';
46
47
  export * from './ProviderInput';
@@ -59,6 +59,7 @@ __exportStar(require("./PhilippineQRInput"), exports);
59
59
  __exportStar(require("./ProblemDetails"), exports);
60
60
  __exportStar(require("./ProviderAttachments"), exports);
61
61
  __exportStar(require("./ProviderContract"), exports);
62
+ __exportStar(require("./ProviderHealth"), exports);
62
63
  __exportStar(require("./ProviderInfo"), exports);
63
64
  __exportStar(require("./ProviderInformation"), exports);
64
65
  __exportStar(require("./ProviderInput"), exports);
package/dist/runtime.d.ts CHANGED
@@ -123,7 +123,10 @@ export interface RequestOpts {
123
123
  body?: HTTPBody;
124
124
  }
125
125
  export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
- export declare function mapValues(data: any, fn: (item: any) => any): {};
126
+ export declare function exists(json: any, key: string): boolean;
127
+ export declare function mapValues(data: any, fn: (item: any) => any): {
128
+ [key: string]: any;
129
+ };
127
130
  export declare function canConsumeForm(consumes: Consume[]): boolean;
128
131
  export interface Consume {
129
132
  contentType: string;
package/dist/runtime.js CHANGED
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
26
  exports.querystring = querystring;
27
+ exports.exists = exists;
27
28
  exports.mapValues = mapValues;
28
29
  exports.canConsumeForm = canConsumeForm;
29
30
  exports.BASE_PATH = "https://api.trinsic.id".replace(/\/+$/, "");
@@ -281,8 +282,16 @@ function querystringSingleKey(key, value, keyPrefix = '') {
281
282
  }
282
283
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
283
284
  }
285
+ function exists(json, key) {
286
+ const value = json[key];
287
+ return value !== null && value !== undefined;
288
+ }
284
289
  function mapValues(data, fn) {
285
- return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
290
+ const result = {};
291
+ for (const key of Object.keys(data)) {
292
+ result[key] = fn(data[key]);
293
+ }
294
+ return result;
286
295
  }
287
296
  function canConsumeForm(consumes) {
288
297
  for (const consume of consumes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Trinsic API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ProblemDetails,
19
+ } from '../models/index';
20
+ import {
21
+ ProblemDetailsFromJSON,
22
+ ProblemDetailsToJSON,
23
+ } from '../models/index';
24
+
25
+ /**
26
+ * WellKnownApi - interface
27
+ *
28
+ * @export
29
+ * @interface WellKnownApiInterface
30
+ */
31
+ export interface WellKnownApiInterface {
32
+ /**
33
+ *
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ * @memberof WellKnownApiInterface
37
+ */
38
+ interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
39
+
40
+ /**
41
+ */
42
+ interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
43
+
44
+ }
45
+
46
+ /**
47
+ *
48
+ */
49
+ export class WellKnownApi extends runtime.BaseAPI implements WellKnownApiInterface {
50
+
51
+ /**
52
+ */
53
+ async interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
54
+ const queryParameters: any = {};
55
+
56
+ const headerParameters: runtime.HTTPHeaders = {};
57
+
58
+ if (this.configuration && this.configuration.accessToken) {
59
+ const token = this.configuration.accessToken;
60
+ const tokenString = await token("Bearer", []);
61
+
62
+ if (tokenString) {
63
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
64
+ }
65
+ }
66
+ const response = await this.request({
67
+ path: `/api/integrations/v1/interac/.well-known/jwks.json`,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+
73
+ return new runtime.VoidApiResponse(response);
74
+ }
75
+
76
+ /**
77
+ */
78
+ async interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
79
+ await this.interacJwkRaw(initOverrides);
80
+ }
81
+
82
+ }
package/src/apis/index.ts CHANGED
@@ -3,3 +3,4 @@
3
3
  export * from './AttachmentsApi';
4
4
  export * from './NetworkApi';
5
5
  export * from './SessionsApi';
6
+ export * from './WellKnownApi';
@@ -55,10 +55,15 @@ export function AadhaarInputFromJSONTyped(json: any, ignoreDiscriminator: boolea
55
55
  };
56
56
  }
57
57
 
58
- export function AadhaarInputToJSON(value?: AadhaarInput | null): any {
58
+ export function AadhaarInputToJSON(json: any): AadhaarInput {
59
+ return AadhaarInputToJSONTyped(json, false);
60
+ }
61
+
62
+ export function AadhaarInputToJSONTyped(value?: AadhaarInput | null, ignoreDiscriminator: boolean = false): any {
59
63
  if (value == null) {
60
64
  return value;
61
65
  }
66
+
62
67
  return {
63
68
 
64
69
  'fullName': value['fullName'],
@@ -97,10 +97,15 @@ export function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
97
97
  };
98
98
  }
99
99
 
100
- export function AddressToJSON(value?: Address | null): any {
100
+ export function AddressToJSON(json: any): Address {
101
+ return AddressToJSONTyped(json, false);
102
+ }
103
+
104
+ export function AddressToJSONTyped(value?: Address | null, ignoreDiscriminator: boolean = false): any {
101
105
  if (value == null) {
102
106
  return value;
103
107
  }
108
+
104
109
  return {
105
110
 
106
111
  'line1': value['line1'],
@@ -18,6 +18,7 @@ import {
18
18
  ProviderAttachmentsFromJSON,
19
19
  ProviderAttachmentsFromJSONTyped,
20
20
  ProviderAttachmentsToJSON,
21
+ ProviderAttachmentsToJSONTyped,
21
22
  } from './ProviderAttachments';
22
23
 
23
24
  /**
@@ -84,10 +85,15 @@ export function AttachmentAccessKeysFromJSONTyped(json: any, ignoreDiscriminator
84
85
  };
85
86
  }
86
87
 
87
- export function AttachmentAccessKeysToJSON(value?: AttachmentAccessKeys | null): any {
88
+ export function AttachmentAccessKeysToJSON(json: any): AttachmentAccessKeys {
89
+ return AttachmentAccessKeysToJSONTyped(json, false);
90
+ }
91
+
92
+ export function AttachmentAccessKeysToJSONTyped(value?: AttachmentAccessKeys | null, ignoreDiscriminator: boolean = false): any {
88
93
  if (value == null) {
89
94
  return value;
90
95
  }
96
+
91
97
  return {
92
98
 
93
99
  'selfie': value['selfie'],
@@ -69,10 +69,15 @@ export function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscrimi
69
69
  };
70
70
  }
71
71
 
72
- export function BangladeshNationalIdInputToJSON(value?: BangladeshNationalIdInput | null): any {
72
+ export function BangladeshNationalIdInputToJSON(json: any): BangladeshNationalIdInput {
73
+ return BangladeshNationalIdInputToJSONTyped(json, false);
74
+ }
75
+
76
+ export function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalIdInput | null, ignoreDiscriminator: boolean = false): any {
73
77
  if (value == null) {
74
78
  return value;
75
79
  }
80
+
76
81
  return {
77
82
 
78
83
  'nationalIdNumber': value['nationalIdNumber'],
@@ -49,10 +49,15 @@ export function BrazilCpfCheckInputFromJSONTyped(json: any, ignoreDiscriminator:
49
49
  };
50
50
  }
51
51
 
52
- export function BrazilCpfCheckInputToJSON(value?: BrazilCpfCheckInput | null): any {
52
+ export function BrazilCpfCheckInputToJSON(json: any): BrazilCpfCheckInput {
53
+ return BrazilCpfCheckInputToJSONTyped(json, false);
54
+ }
55
+
56
+ export function BrazilCpfCheckInputToJSONTyped(value?: BrazilCpfCheckInput | null, ignoreDiscriminator: boolean = false): any {
53
57
  if (value == null) {
54
58
  return value;
55
59
  }
60
+
56
61
  return {
57
62
 
58
63
  'cpfNumber': value['cpfNumber'],
@@ -78,10 +78,15 @@ export function BrazilDigitalCnhInputFromJSONTyped(json: any, ignoreDiscriminato
78
78
  };
79
79
  }
80
80
 
81
- export function BrazilDigitalCnhInputToJSON(value?: BrazilDigitalCnhInput | null): any {
81
+ export function BrazilDigitalCnhInputToJSON(json: any): BrazilDigitalCnhInput {
82
+ return BrazilDigitalCnhInputToJSONTyped(json, false);
83
+ }
84
+
85
+ export function BrazilDigitalCnhInputToJSONTyped(value?: BrazilDigitalCnhInput | null, ignoreDiscriminator: boolean = false): any {
82
86
  if (value == null) {
83
87
  return value;
84
88
  }
89
+
85
90
  return {
86
91
 
87
92
  'cpfNumber': value['cpfNumber'],
@@ -18,6 +18,7 @@ import {
18
18
  SessionFromJSON,
19
19
  SessionFromJSONTyped,
20
20
  SessionToJSON,
21
+ SessionToJSONTyped,
21
22
  } from './Session';
22
23
 
23
24
  /**
@@ -56,10 +57,15 @@ export function CancelSessionResponseFromJSONTyped(json: any, ignoreDiscriminato
56
57
  };
57
58
  }
58
59
 
59
- export function CancelSessionResponseToJSON(value?: CancelSessionResponse | null): any {
60
+ export function CancelSessionResponseToJSON(json: any): CancelSessionResponse {
61
+ return CancelSessionResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function CancelSessionResponseToJSONTyped(value?: CancelSessionResponse | null, ignoreDiscriminator: boolean = false): any {
60
65
  if (value == null) {
61
66
  return value;
62
67
  }
68
+
63
69
  return {
64
70
 
65
71
  'session': SessionToJSON(value['session']),
@@ -18,12 +18,14 @@ import {
18
18
  IntegrationCapabilityFromJSON,
19
19
  IntegrationCapabilityFromJSONTyped,
20
20
  IntegrationCapabilityToJSON,
21
+ IntegrationCapabilityToJSONTyped,
21
22
  } from './IntegrationCapability';
22
23
  import type { ProviderInput } from './ProviderInput';
23
24
  import {
24
25
  ProviderInputFromJSON,
25
26
  ProviderInputFromJSONTyped,
26
27
  ProviderInputToJSON,
28
+ ProviderInputToJSONTyped,
27
29
  } from './ProviderInput';
28
30
 
29
31
  /**
@@ -117,10 +119,15 @@ export function CreateAdvancedProviderSessionRequestFromJSONTyped(json: any, ign
117
119
  };
118
120
  }
119
121
 
120
- export function CreateAdvancedProviderSessionRequestToJSON(value?: CreateAdvancedProviderSessionRequest | null): any {
122
+ export function CreateAdvancedProviderSessionRequestToJSON(json: any): CreateAdvancedProviderSessionRequest {
123
+ return CreateAdvancedProviderSessionRequestToJSONTyped(json, false);
124
+ }
125
+
126
+ export function CreateAdvancedProviderSessionRequestToJSONTyped(value?: CreateAdvancedProviderSessionRequest | null, ignoreDiscriminator: boolean = false): any {
121
127
  if (value == null) {
122
128
  return value;
123
129
  }
130
+
124
131
  return {
125
132
 
126
133
  'provider': value['provider'],
@@ -18,12 +18,14 @@ import {
18
18
  ResultCollectionFromJSON,
19
19
  ResultCollectionFromJSONTyped,
20
20
  ResultCollectionToJSON,
21
+ ResultCollectionToJSONTyped,
21
22
  } from './ResultCollection';
22
23
  import type { IntegrationStep } from './IntegrationStep';
23
24
  import {
24
25
  IntegrationStepFromJSON,
25
26
  IntegrationStepFromJSONTyped,
26
27
  IntegrationStepToJSON,
28
+ IntegrationStepToJSONTyped,
27
29
  } from './IntegrationStep';
28
30
 
29
31
  /**
@@ -78,10 +80,15 @@ export function CreateAdvancedProviderSessionResponseFromJSONTyped(json: any, ig
78
80
  };
79
81
  }
80
82
 
81
- export function CreateAdvancedProviderSessionResponseToJSON(value?: CreateAdvancedProviderSessionResponse | null): any {
83
+ export function CreateAdvancedProviderSessionResponseToJSON(json: any): CreateAdvancedProviderSessionResponse {
84
+ return CreateAdvancedProviderSessionResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function CreateAdvancedProviderSessionResponseToJSONTyped(value?: CreateAdvancedProviderSessionResponse | null, ignoreDiscriminator: boolean = false): any {
82
88
  if (value == null) {
83
89
  return value;
84
90
  }
91
+
85
92
  return {
86
93
 
87
94
  'sessionId': value['sessionId'],
@@ -18,6 +18,7 @@ import {
18
18
  ProviderInputFromJSON,
19
19
  ProviderInputFromJSONTyped,
20
20
  ProviderInputToJSON,
21
+ ProviderInputToJSONTyped,
21
22
  } from './ProviderInput';
22
23
 
23
24
  /**
@@ -71,10 +72,15 @@ export function CreateHostedProviderSessionRequestFromJSONTyped(json: any, ignor
71
72
  };
72
73
  }
73
74
 
74
- export function CreateHostedProviderSessionRequestToJSON(value?: CreateHostedProviderSessionRequest | null): any {
75
+ export function CreateHostedProviderSessionRequestToJSON(json: any): CreateHostedProviderSessionRequest {
76
+ return CreateHostedProviderSessionRequestToJSONTyped(json, false);
77
+ }
78
+
79
+ export function CreateHostedProviderSessionRequestToJSONTyped(value?: CreateHostedProviderSessionRequest | null, ignoreDiscriminator: boolean = false): any {
75
80
  if (value == null) {
76
81
  return value;
77
82
  }
83
+
78
84
  return {
79
85
 
80
86
  'provider': value['provider'],
@@ -77,10 +77,15 @@ export function CreateHostedProviderSessionResponseFromJSONTyped(json: any, igno
77
77
  };
78
78
  }
79
79
 
80
- export function CreateHostedProviderSessionResponseToJSON(value?: CreateHostedProviderSessionResponse | null): any {
80
+ export function CreateHostedProviderSessionResponseToJSON(json: any): CreateHostedProviderSessionResponse {
81
+ return CreateHostedProviderSessionResponseToJSONTyped(json, false);
82
+ }
83
+
84
+ export function CreateHostedProviderSessionResponseToJSONTyped(value?: CreateHostedProviderSessionResponse | null, ignoreDiscriminator: boolean = false): any {
81
85
  if (value == null) {
82
86
  return value;
83
87
  }
88
+
84
89
  return {
85
90
 
86
91
  'sessionId': value['sessionId'],
@@ -18,6 +18,7 @@ import {
18
18
  RecommendationInfoFromJSON,
19
19
  RecommendationInfoFromJSONTyped,
20
20
  RecommendationInfoToJSON,
21
+ RecommendationInfoToJSONTyped,
21
22
  } from './RecommendationInfo';
22
23
 
23
24
  /**
@@ -75,10 +76,15 @@ export function CreateWidgetSessionRequestFromJSONTyped(json: any, ignoreDiscrim
75
76
  };
76
77
  }
77
78
 
78
- export function CreateWidgetSessionRequestToJSON(value?: CreateWidgetSessionRequest | null): any {
79
+ export function CreateWidgetSessionRequestToJSON(json: any): CreateWidgetSessionRequest {
80
+ return CreateWidgetSessionRequestToJSONTyped(json, false);
81
+ }
82
+
83
+ export function CreateWidgetSessionRequestToJSONTyped(value?: CreateWidgetSessionRequest | null, ignoreDiscriminator: boolean = false): any {
79
84
  if (value == null) {
80
85
  return value;
81
86
  }
87
+
82
88
  return {
83
89
 
84
90
  'redirectUrl': value['redirectUrl'],
@@ -75,10 +75,15 @@ export function CreateWidgetSessionResponseFromJSONTyped(json: any, ignoreDiscri
75
75
  };
76
76
  }
77
77
 
78
- export function CreateWidgetSessionResponseToJSON(value?: CreateWidgetSessionResponse | null): any {
78
+ export function CreateWidgetSessionResponseToJSON(json: any): CreateWidgetSessionResponse {
79
+ return CreateWidgetSessionResponseToJSONTyped(json, false);
80
+ }
81
+
82
+ export function CreateWidgetSessionResponseToJSONTyped(value?: CreateWidgetSessionResponse | null, ignoreDiscriminator: boolean = false): any {
79
83
  if (value == null) {
80
84
  return value;
81
85
  }
86
+
82
87
  return {
83
88
 
84
89
  'sessionId': value['sessionId'],
@@ -18,6 +18,7 @@ import {
18
18
  DocumentTypeFromJSON,
19
19
  DocumentTypeFromJSONTyped,
20
20
  DocumentTypeToJSON,
21
+ DocumentTypeToJSONTyped,
21
22
  } from './DocumentType';
22
23
 
23
24
  /**
@@ -92,10 +93,15 @@ export function DocumentDataFromJSONTyped(json: any, ignoreDiscriminator: boolea
92
93
  };
93
94
  }
94
95
 
95
- export function DocumentDataToJSON(value?: DocumentData | null): any {
96
+ export function DocumentDataToJSON(json: any): DocumentData {
97
+ return DocumentDataToJSONTyped(json, false);
98
+ }
99
+
100
+ export function DocumentDataToJSONTyped(value?: DocumentData | null, ignoreDiscriminator: boolean = false): any {
96
101
  if (value == null) {
97
102
  return value;
98
103
  }
104
+
99
105
  return {
100
106
 
101
107
  'type': DocumentTypeToJSON(value['type']),
@@ -48,10 +48,15 @@ export function DocumentScanAttachmentsFromJSONTyped(json: any, ignoreDiscrimina
48
48
  };
49
49
  }
50
50
 
51
- export function DocumentScanAttachmentsToJSON(value?: DocumentScanAttachments | null): any {
51
+ export function DocumentScanAttachmentsToJSON(json: any): DocumentScanAttachments {
52
+ return DocumentScanAttachmentsToJSONTyped(json, false);
53
+ }
54
+
55
+ export function DocumentScanAttachmentsToJSONTyped(value?: DocumentScanAttachments | null, ignoreDiscriminator: boolean = false): any {
52
56
  if (value == null) {
53
57
  return value;
54
58
  }
59
+
55
60
  return {
56
61
 
57
62
  'report': value['report'],
@@ -49,3 +49,7 @@ export function DocumentTypeToJSON(value?: DocumentType | null): any {
49
49
  return value as any;
50
50
  }
51
51
 
52
+ export function DocumentTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentType {
53
+ return value as DocumentType;
54
+ }
55
+
@@ -49,10 +49,15 @@ export function GetAttachmentRequestFromJSONTyped(json: any, ignoreDiscriminator
49
49
  };
50
50
  }
51
51
 
52
- export function GetAttachmentRequestToJSON(value?: GetAttachmentRequest | null): any {
52
+ export function GetAttachmentRequestToJSON(json: any): GetAttachmentRequest {
53
+ return GetAttachmentRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetAttachmentRequestToJSONTyped(value?: GetAttachmentRequest | null, ignoreDiscriminator: boolean = false): any {
53
57
  if (value == null) {
54
58
  return value;
55
59
  }
60
+
56
61
  return {
57
62
 
58
63
  'attachmentAccessKey': value['attachmentAccessKey'],
@@ -57,10 +57,15 @@ export function GetAttachmentResponseFromJSONTyped(json: any, ignoreDiscriminato
57
57
  };
58
58
  }
59
59
 
60
- export function GetAttachmentResponseToJSON(value?: GetAttachmentResponse | null): any {
60
+ export function GetAttachmentResponseToJSON(json: any): GetAttachmentResponse {
61
+ return GetAttachmentResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetAttachmentResponseToJSONTyped(value?: GetAttachmentResponse | null, ignoreDiscriminator: boolean = false): any {
61
65
  if (value == null) {
62
66
  return value;
63
67
  }
68
+
64
69
  return {
65
70
 
66
71
  'content': value['content'],
@@ -18,6 +18,7 @@ import {
18
18
  SessionFromJSON,
19
19
  SessionFromJSONTyped,
20
20
  SessionToJSON,
21
+ SessionToJSONTyped,
21
22
  } from './Session';
22
23
 
23
24
  /**
@@ -56,10 +57,15 @@ export function GetSessionResponseFromJSONTyped(json: any, ignoreDiscriminator:
56
57
  };
57
58
  }
58
59
 
59
- export function GetSessionResponseToJSON(value?: GetSessionResponse | null): any {
60
+ export function GetSessionResponseToJSON(json: any): GetSessionResponse {
61
+ return GetSessionResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetSessionResponseToJSONTyped(value?: GetSessionResponse | null, ignoreDiscriminator: boolean = false): any {
60
65
  if (value == null) {
61
66
  return value;
62
67
  }
68
+
63
69
  return {
64
70
 
65
71
  'session': SessionToJSON(value['session']),
@@ -49,10 +49,15 @@ export function GetSessionResultRequestFromJSONTyped(json: any, ignoreDiscrimina
49
49
  };
50
50
  }
51
51
 
52
- export function GetSessionResultRequestToJSON(value?: GetSessionResultRequest | null): any {
52
+ export function GetSessionResultRequestToJSON(json: any): GetSessionResultRequest {
53
+ return GetSessionResultRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetSessionResultRequestToJSONTyped(value?: GetSessionResultRequest | null, ignoreDiscriminator: boolean = false): any {
53
57
  if (value == null) {
54
58
  return value;
55
59
  }
60
+
56
61
  return {
57
62
 
58
63
  'resultsAccessKey': value['resultsAccessKey'],
@@ -18,12 +18,14 @@ import {
18
18
  IdentityDataFromJSON,
19
19
  IdentityDataFromJSONTyped,
20
20
  IdentityDataToJSON,
21
+ IdentityDataToJSONTyped,
21
22
  } from './IdentityData';
22
23
  import type { Session } from './Session';
23
24
  import {
24
25
  SessionFromJSON,
25
26
  SessionFromJSONTyped,
26
27
  SessionToJSON,
28
+ SessionToJSONTyped,
27
29
  } from './Session';
28
30
 
29
31
  /**
@@ -69,10 +71,15 @@ export function GetSessionResultResponseFromJSONTyped(json: any, ignoreDiscrimin
69
71
  };
70
72
  }
71
73
 
72
- export function GetSessionResultResponseToJSON(value?: GetSessionResultResponse | null): any {
74
+ export function GetSessionResultResponseToJSON(json: any): GetSessionResultResponse {
75
+ return GetSessionResultResponseToJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetSessionResultResponseToJSONTyped(value?: GetSessionResultResponse | null, ignoreDiscriminator: boolean = false): any {
73
79
  if (value == null) {
74
80
  return value;
75
81
  }
82
+
76
83
  return {
77
84
 
78
85
  'session': SessionToJSON(value['session']),
@@ -83,10 +83,15 @@ export function HttpValidationProblemDetailsFromJSONTyped(json: any, ignoreDiscr
83
83
  };
84
84
  }
85
85
 
86
- export function HttpValidationProblemDetailsToJSON(value?: HttpValidationProblemDetails | null): any {
86
+ export function HttpValidationProblemDetailsToJSON(json: any): HttpValidationProblemDetails {
87
+ return HttpValidationProblemDetailsToJSONTyped(json, false);
88
+ }
89
+
90
+ export function HttpValidationProblemDetailsToJSONTyped(value?: HttpValidationProblemDetails | null, ignoreDiscriminator: boolean = false): any {
87
91
  if (value == null) {
88
92
  return value;
89
93
  }
94
+
90
95
  return {
91
96
 
92
97
  'type': value['type'],