@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,62 @@
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.instanceOfSubProviderMetadata = instanceOfSubProviderMetadata;
17
+ exports.SubProviderMetadataFromJSON = SubProviderMetadataFromJSON;
18
+ exports.SubProviderMetadataFromJSONTyped = SubProviderMetadataFromJSONTyped;
19
+ exports.SubProviderMetadataToJSON = SubProviderMetadataToJSON;
20
+ exports.SubProviderMetadataToJSONTyped = SubProviderMetadataToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubProviderMetadata interface.
23
+ */
24
+ function instanceOfSubProviderMetadata(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('description' in value) || value['description'] === undefined)
30
+ return false;
31
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function SubProviderMetadataFromJSON(json) {
36
+ return SubProviderMetadataFromJSONTyped(json, false);
37
+ }
38
+ function SubProviderMetadataFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'name': json['name'],
45
+ 'description': json['description'],
46
+ 'logoUrl': json['logoUrl'],
47
+ };
48
+ }
49
+ function SubProviderMetadataToJSON(json) {
50
+ return SubProviderMetadataToJSONTyped(json, false);
51
+ }
52
+ function SubProviderMetadataToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'name': value['name'],
59
+ 'description': value['description'],
60
+ 'logoUrl': value['logoUrl'],
61
+ };
62
+ }
@@ -0,0 +1,67 @@
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
+ *
14
+ * @export
15
+ * @interface TrinsicTestDatabaseLookupInput
16
+ */
17
+ export interface TrinsicTestDatabaseLookupInput {
18
+ /**
19
+ * The given name to use for the output of the test Session.
20
+ *
21
+ * This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
22
+ * from the user.
23
+ *
24
+ * Can be any non-empty value.
25
+ * @type {string}
26
+ * @memberof TrinsicTestDatabaseLookupInput
27
+ */
28
+ givenName?: string | null;
29
+ /**
30
+ * The family name to use for the output of the test Session.
31
+ *
32
+ * This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
33
+ * from the user.
34
+ *
35
+ * Can be any non-empty value.
36
+ * @type {string}
37
+ * @memberof TrinsicTestDatabaseLookupInput
38
+ */
39
+ familyName?: string | null;
40
+ /**
41
+ * A 6-digit code; must be "123456" for the Session to succeed.
42
+ *
43
+ * This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
44
+ * from the user.
45
+ *
46
+ * Any other value will cause the Session to fail.
47
+ * @type {string}
48
+ * @memberof TrinsicTestDatabaseLookupInput
49
+ */
50
+ identityCode?: string | null;
51
+ /**
52
+ * An optional selfie image, base64-encoded.
53
+ *
54
+ * Will replace the existing test selfie attachment output if provided.
55
+ * @type {string}
56
+ * @memberof TrinsicTestDatabaseLookupInput
57
+ */
58
+ selfieBase64?: string | null;
59
+ }
60
+ /**
61
+ * Check if a given object implements the TrinsicTestDatabaseLookupInput interface.
62
+ */
63
+ export declare function instanceOfTrinsicTestDatabaseLookupInput(value: object): value is TrinsicTestDatabaseLookupInput;
64
+ export declare function TrinsicTestDatabaseLookupInputFromJSON(json: any): TrinsicTestDatabaseLookupInput;
65
+ export declare function TrinsicTestDatabaseLookupInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrinsicTestDatabaseLookupInput;
66
+ export declare function TrinsicTestDatabaseLookupInputToJSON(json: any): TrinsicTestDatabaseLookupInput;
67
+ export declare function TrinsicTestDatabaseLookupInputToJSONTyped(value?: TrinsicTestDatabaseLookupInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfTrinsicTestDatabaseLookupInput = instanceOfTrinsicTestDatabaseLookupInput;
17
+ exports.TrinsicTestDatabaseLookupInputFromJSON = TrinsicTestDatabaseLookupInputFromJSON;
18
+ exports.TrinsicTestDatabaseLookupInputFromJSONTyped = TrinsicTestDatabaseLookupInputFromJSONTyped;
19
+ exports.TrinsicTestDatabaseLookupInputToJSON = TrinsicTestDatabaseLookupInputToJSON;
20
+ exports.TrinsicTestDatabaseLookupInputToJSONTyped = TrinsicTestDatabaseLookupInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TrinsicTestDatabaseLookupInput interface.
23
+ */
24
+ function instanceOfTrinsicTestDatabaseLookupInput(value) {
25
+ return true;
26
+ }
27
+ function TrinsicTestDatabaseLookupInputFromJSON(json) {
28
+ return TrinsicTestDatabaseLookupInputFromJSONTyped(json, false);
29
+ }
30
+ function TrinsicTestDatabaseLookupInputFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
36
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
37
+ 'identityCode': json['identityCode'] == null ? undefined : json['identityCode'],
38
+ 'selfieBase64': json['selfieBase64'] == null ? undefined : json['selfieBase64'],
39
+ };
40
+ }
41
+ function TrinsicTestDatabaseLookupInputToJSON(json) {
42
+ return TrinsicTestDatabaseLookupInputToJSONTyped(json, false);
43
+ }
44
+ function TrinsicTestDatabaseLookupInputToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'givenName': value['givenName'],
50
+ 'familyName': value['familyName'],
51
+ 'identityCode': value['identityCode'],
52
+ 'selfieBase64': value['selfieBase64'],
53
+ };
54
+ }
@@ -0,0 +1,36 @@
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
+ *
14
+ * @export
15
+ * @interface TrinsicTestSubProvidersInput
16
+ */
17
+ export interface TrinsicTestSubProvidersInput {
18
+ /**
19
+ * The ID of the specific IDP to invoke within the test federated provider.
20
+ *
21
+ * Valid options are `sub-provider-a` and `sub-provider-b`.
22
+ *
23
+ * If not specified, the user will be prompted to select one.
24
+ * @type {string}
25
+ * @memberof TrinsicTestSubProvidersInput
26
+ */
27
+ subProviderId?: string | null;
28
+ }
29
+ /**
30
+ * Check if a given object implements the TrinsicTestSubProvidersInput interface.
31
+ */
32
+ export declare function instanceOfTrinsicTestSubProvidersInput(value: object): value is TrinsicTestSubProvidersInput;
33
+ export declare function TrinsicTestSubProvidersInputFromJSON(json: any): TrinsicTestSubProvidersInput;
34
+ export declare function TrinsicTestSubProvidersInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrinsicTestSubProvidersInput;
35
+ export declare function TrinsicTestSubProvidersInputToJSON(json: any): TrinsicTestSubProvidersInput;
36
+ export declare function TrinsicTestSubProvidersInputToJSONTyped(value?: TrinsicTestSubProvidersInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfTrinsicTestSubProvidersInput = instanceOfTrinsicTestSubProvidersInput;
17
+ exports.TrinsicTestSubProvidersInputFromJSON = TrinsicTestSubProvidersInputFromJSON;
18
+ exports.TrinsicTestSubProvidersInputFromJSONTyped = TrinsicTestSubProvidersInputFromJSONTyped;
19
+ exports.TrinsicTestSubProvidersInputToJSON = TrinsicTestSubProvidersInputToJSON;
20
+ exports.TrinsicTestSubProvidersInputToJSONTyped = TrinsicTestSubProvidersInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TrinsicTestSubProvidersInput interface.
23
+ */
24
+ function instanceOfTrinsicTestSubProvidersInput(value) {
25
+ return true;
26
+ }
27
+ function TrinsicTestSubProvidersInputFromJSON(json) {
28
+ return TrinsicTestSubProvidersInputFromJSONTyped(json, false);
29
+ }
30
+ function TrinsicTestSubProvidersInputFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
36
+ };
37
+ }
38
+ function TrinsicTestSubProvidersInputToJSON(json) {
39
+ return TrinsicTestSubProvidersInputToJSONTyped(json, false);
40
+ }
41
+ function TrinsicTestSubProvidersInputToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'subProviderId': value['subProviderId'],
47
+ };
48
+ }
@@ -21,17 +21,18 @@ export * from './GetSessionResultRequest';
21
21
  export * from './GetSessionResultResponse';
22
22
  export * from './HttpValidationProblemDetails';
23
23
  export * from './IdentityData';
24
+ export * from './IdinInput';
24
25
  export * from './IndonesiaNikInput';
25
26
  export * from './IntegrationCapability';
26
27
  export * from './IntegrationLaunchMethod';
27
28
  export * from './IntegrationStep';
28
29
  export * from './KenyaNidInput';
29
- export * from './KnownAddress';
30
- export * from './KnownIdentityData';
31
- export * from './KnownPersonData';
30
+ export * from './Language';
31
+ export * from './ListProviderContractsResponse';
32
32
  export * from './ListProvidersResponse';
33
33
  export * from './ListSessionsResponse';
34
34
  export * from './MexicoCurpInput';
35
+ export * from './MobileIdInput';
35
36
  export * from './NigeriaNinInput';
36
37
  export * from './OrderDirection';
37
38
  export * from './PersonData';
@@ -39,11 +40,14 @@ export * from './PhilippineMatchInput';
39
40
  export * from './PhilippineQRInput';
40
41
  export * from './ProblemDetails';
41
42
  export * from './ProviderAttachments';
43
+ export * from './ProviderContract';
44
+ export * from './ProviderHealth';
42
45
  export * from './ProviderInfo';
43
46
  export * from './ProviderInformation';
44
47
  export * from './ProviderInput';
45
48
  export * from './RecommendRequest';
46
49
  export * from './RecommendResponse';
50
+ export * from './RecommendationInfo';
47
51
  export * from './RefreshStepContentRequest';
48
52
  export * from './RefreshStepContentResponse';
49
53
  export * from './ResultCollection';
@@ -52,5 +56,10 @@ export * from './Session';
52
56
  export * from './SessionErrorCode';
53
57
  export * from './SessionOrdering';
54
58
  export * from './Sex';
59
+ export * from './SmartIdInput';
55
60
  export * from './SouthAfricaNidInput';
61
+ export * from './SpidInput';
56
62
  export * from './StepRefreshInfo';
63
+ export * from './SubProviderMetadata';
64
+ export * from './TrinsicTestDatabaseLookupInput';
65
+ export * from './TrinsicTestSubProvidersInput';
@@ -39,17 +39,18 @@ __exportStar(require("./GetSessionResultRequest"), exports);
39
39
  __exportStar(require("./GetSessionResultResponse"), exports);
40
40
  __exportStar(require("./HttpValidationProblemDetails"), exports);
41
41
  __exportStar(require("./IdentityData"), exports);
42
+ __exportStar(require("./IdinInput"), exports);
42
43
  __exportStar(require("./IndonesiaNikInput"), exports);
43
44
  __exportStar(require("./IntegrationCapability"), exports);
44
45
  __exportStar(require("./IntegrationLaunchMethod"), exports);
45
46
  __exportStar(require("./IntegrationStep"), exports);
46
47
  __exportStar(require("./KenyaNidInput"), exports);
47
- __exportStar(require("./KnownAddress"), exports);
48
- __exportStar(require("./KnownIdentityData"), exports);
49
- __exportStar(require("./KnownPersonData"), exports);
48
+ __exportStar(require("./Language"), exports);
49
+ __exportStar(require("./ListProviderContractsResponse"), exports);
50
50
  __exportStar(require("./ListProvidersResponse"), exports);
51
51
  __exportStar(require("./ListSessionsResponse"), exports);
52
52
  __exportStar(require("./MexicoCurpInput"), exports);
53
+ __exportStar(require("./MobileIdInput"), exports);
53
54
  __exportStar(require("./NigeriaNinInput"), exports);
54
55
  __exportStar(require("./OrderDirection"), exports);
55
56
  __exportStar(require("./PersonData"), exports);
@@ -57,11 +58,14 @@ __exportStar(require("./PhilippineMatchInput"), exports);
57
58
  __exportStar(require("./PhilippineQRInput"), exports);
58
59
  __exportStar(require("./ProblemDetails"), exports);
59
60
  __exportStar(require("./ProviderAttachments"), exports);
61
+ __exportStar(require("./ProviderContract"), exports);
62
+ __exportStar(require("./ProviderHealth"), exports);
60
63
  __exportStar(require("./ProviderInfo"), exports);
61
64
  __exportStar(require("./ProviderInformation"), exports);
62
65
  __exportStar(require("./ProviderInput"), exports);
63
66
  __exportStar(require("./RecommendRequest"), exports);
64
67
  __exportStar(require("./RecommendResponse"), exports);
68
+ __exportStar(require("./RecommendationInfo"), exports);
65
69
  __exportStar(require("./RefreshStepContentRequest"), exports);
66
70
  __exportStar(require("./RefreshStepContentResponse"), exports);
67
71
  __exportStar(require("./ResultCollection"), exports);
@@ -70,5 +74,10 @@ __exportStar(require("./Session"), exports);
70
74
  __exportStar(require("./SessionErrorCode"), exports);
71
75
  __exportStar(require("./SessionOrdering"), exports);
72
76
  __exportStar(require("./Sex"), exports);
77
+ __exportStar(require("./SmartIdInput"), exports);
73
78
  __exportStar(require("./SouthAfricaNidInput"), exports);
79
+ __exportStar(require("./SpidInput"), exports);
74
80
  __exportStar(require("./StepRefreshInfo"), exports);
81
+ __exportStar(require("./SubProviderMetadata"), exports);
82
+ __exportStar(require("./TrinsicTestDatabaseLookupInput"), exports);
83
+ __exportStar(require("./TrinsicTestSubProvidersInput"), 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-alpha3",
3
+ "version": "2.0.1",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
@@ -40,7 +40,7 @@ export interface GetAttachmentOperationRequest {
40
40
  */
41
41
  export interface AttachmentsApiInterface {
42
42
  /**
43
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
43
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
44
44
  * @summary Get Attachment
45
45
  * @param {GetAttachmentRequest} [getAttachmentRequest]
46
46
  * @param {*} [options] Override http request option.
@@ -50,7 +50,7 @@ export interface AttachmentsApiInterface {
50
50
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
51
51
 
52
52
  /**
53
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
53
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
54
54
  * Get Attachment
55
55
  */
56
56
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -63,7 +63,7 @@ export interface AttachmentsApiInterface {
63
63
  export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
64
64
 
65
65
  /**
66
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
66
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
67
67
  * Get Attachment
68
68
  */
69
69
  async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>> {
@@ -93,7 +93,7 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
93
93
  }
94
94
 
95
95
  /**
96
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
96
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
97
97
  * Get Attachment
98
98
  */
99
99
  async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse> {
@@ -15,12 +15,15 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ListProviderContractsResponse,
18
19
  ListProvidersResponse,
19
20
  ProblemDetails,
20
21
  RecommendRequest,
21
22
  RecommendResponse,
22
23
  } from '../models/index';
23
24
  import {
25
+ ListProviderContractsResponseFromJSON,
26
+ ListProviderContractsResponseToJSON,
24
27
  ListProvidersResponseFromJSON,
25
28
  ListProvidersResponseToJSON,
26
29
  ProblemDetailsFromJSON,
@@ -42,9 +45,24 @@ export interface RecommendProvidersRequest {
42
45
  * @interface NetworkApiInterface
43
46
  */
44
47
  export interface NetworkApiInterface {
48
+ /**
49
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
50
+ * @summary List Provider Contracts
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ * @memberof NetworkApiInterface
54
+ */
55
+ listProviderContractsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>>;
56
+
57
+ /**
58
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
59
+ * List Provider Contracts
60
+ */
61
+ listProviderContracts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
62
+
45
63
  /**
46
64
  * List all identity providers available for use
47
- * @summary List Identity Providers
65
+ * @summary List Providers
48
66
  * @param {*} [options] Override http request option.
49
67
  * @throws {RequiredError}
50
68
  * @memberof NetworkApiInterface
@@ -53,7 +71,7 @@ export interface NetworkApiInterface {
53
71
 
54
72
  /**
55
73
  * List all identity providers available for use
56
- * List Identity Providers
74
+ * List Providers
57
75
  */
58
76
  listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
59
77
 
@@ -80,9 +98,45 @@ export interface NetworkApiInterface {
80
98
  */
81
99
  export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
82
100
 
101
+ /**
102
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
103
+ * List Provider Contracts
104
+ */
105
+ async listProviderContractsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>> {
106
+ const queryParameters: any = {};
107
+
108
+ const headerParameters: runtime.HTTPHeaders = {};
109
+
110
+ if (this.configuration && this.configuration.accessToken) {
111
+ const token = this.configuration.accessToken;
112
+ const tokenString = await token("Bearer", []);
113
+
114
+ if (tokenString) {
115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
116
+ }
117
+ }
118
+ const response = await this.request({
119
+ path: `/api/v1/network/providers/contracts`,
120
+ method: 'GET',
121
+ headers: headerParameters,
122
+ query: queryParameters,
123
+ }, initOverrides);
124
+
125
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListProviderContractsResponseFromJSON(jsonValue));
126
+ }
127
+
128
+ /**
129
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
130
+ * List Provider Contracts
131
+ */
132
+ async listProviderContracts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse> {
133
+ const response = await this.listProviderContractsRaw(initOverrides);
134
+ return await response.value();
135
+ }
136
+
83
137
  /**
84
138
  * List all identity providers available for use
85
- * List Identity Providers
139
+ * List Providers
86
140
  */
87
141
  async listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
88
142
  const queryParameters: any = {};
@@ -109,7 +163,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
109
163
 
110
164
  /**
111
165
  * List all identity providers available for use
112
- * List Identity Providers
166
+ * List Providers
113
167
  */
114
168
  async listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
115
169
  const response = await this.listProvidersRaw(initOverrides);
@@ -132,7 +132,7 @@ export interface SessionsApiInterface {
132
132
  cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
133
133
 
134
134
  /**
135
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
135
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
136
136
  * @summary Create Advanced Provider Session
137
137
  * @param {CreateAdvancedProviderSessionRequest} [createAdvancedProviderSessionRequest]
138
138
  * @param {*} [options] Override http request option.
@@ -142,7 +142,7 @@ export interface SessionsApiInterface {
142
142
  createAdvancedProviderSessionRaw(requestParameters: CreateAdvancedProviderSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAdvancedProviderSessionResponse>>;
143
143
 
144
144
  /**
145
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
145
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
146
146
  * Create Advanced Provider Session
147
147
  */
148
148
  createAdvancedProviderSession(createAdvancedProviderSessionRequest?: CreateAdvancedProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAdvancedProviderSessionResponse>;
@@ -231,7 +231,7 @@ export interface SessionsApiInterface {
231
231
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
232
232
 
233
233
  /**
234
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
234
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
235
235
  * @summary Redact Session
236
236
  * @param {string} sessionId
237
237
  * @param {*} [options] Override http request option.
@@ -241,7 +241,7 @@ export interface SessionsApiInterface {
241
241
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
242
242
 
243
243
  /**
244
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
244
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
245
245
  * Redact Session
246
246
  */
247
247
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -314,7 +314,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
314
314
  }
315
315
 
316
316
  /**
317
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
317
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
318
318
  * Create Advanced Provider Session
319
319
  */
320
320
  async createAdvancedProviderSessionRaw(requestParameters: CreateAdvancedProviderSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAdvancedProviderSessionResponse>> {
@@ -344,7 +344,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
344
344
  }
345
345
 
346
346
  /**
347
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
347
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
348
348
  * Create Advanced Provider Session
349
349
  */
350
350
  async createAdvancedProviderSession(createAdvancedProviderSessionRequest?: CreateAdvancedProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAdvancedProviderSessionResponse> {
@@ -570,7 +570,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
570
570
  }
571
571
 
572
572
  /**
573
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
573
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
574
574
  * Redact Session
575
575
  */
576
576
  async redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -604,7 +604,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
604
604
  }
605
605
 
606
606
  /**
607
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
607
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
608
608
  * Redact Session
609
609
  */
610
610
  async redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {