@oatfi/oatfi-sdk-ts 0.11.55 → 0.11.56

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 (285) hide show
  1. package/README.md +4 -0
  2. package/dist/commonjs/funcs/applicationFilesList.js +1 -0
  3. package/dist/commonjs/funcs/applicationFilesList.js.map +1 -1
  4. package/dist/commonjs/funcs/applicationFilesUpload.js +7 -0
  5. package/dist/commonjs/funcs/applicationFilesUpload.js.map +1 -1
  6. package/dist/commonjs/funcs/businessFilesList.js +1 -0
  7. package/dist/commonjs/funcs/businessFilesList.js.map +1 -1
  8. package/dist/commonjs/funcs/businessFilesUpload.js +7 -0
  9. package/dist/commonjs/funcs/businessFilesUpload.js.map +1 -1
  10. package/dist/commonjs/funcs/businessesGetAccountHolderInformation.d.ts +18 -0
  11. package/dist/commonjs/funcs/businessesGetAccountHolderInformation.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/businessesGetAccountHolderInformation.js +138 -0
  13. package/dist/commonjs/funcs/businessesGetAccountHolderInformation.js.map +1 -0
  14. package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.d.ts +18 -0
  15. package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.js +138 -0
  17. package/dist/commonjs/funcs/businessesGetVirtualAccountInformation.js.map +1 -0
  18. package/dist/commonjs/funcs/filesList.js +1 -0
  19. package/dist/commonjs/funcs/filesList.js.map +1 -1
  20. package/dist/commonjs/funcs/filesUpload.js +7 -0
  21. package/dist/commonjs/funcs/filesUpload.js.map +1 -1
  22. package/dist/commonjs/lib/config.d.ts +3 -3
  23. package/dist/commonjs/lib/config.js +3 -3
  24. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  25. package/dist/commonjs/lib/matchers.js +0 -1
  26. package/dist/commonjs/lib/matchers.js.map +1 -1
  27. package/dist/commonjs/lib/security.d.ts.map +1 -1
  28. package/dist/commonjs/lib/security.js +1 -2
  29. package/dist/commonjs/lib/security.js.map +1 -1
  30. package/dist/commonjs/models/accountholdervirtualaccountitemdto.d.ts +30 -0
  31. package/dist/commonjs/models/accountholdervirtualaccountitemdto.d.ts.map +1 -0
  32. package/dist/commonjs/models/accountholdervirtualaccountitemdto.js +64 -0
  33. package/dist/commonjs/models/accountholdervirtualaccountitemdto.js.map +1 -0
  34. package/dist/commonjs/models/createoriginationofferdto.d.ts +0 -6
  35. package/dist/commonjs/models/createoriginationofferdto.d.ts.map +1 -1
  36. package/dist/commonjs/models/createoriginationofferdto.js +0 -3
  37. package/dist/commonjs/models/createoriginationofferdto.js.map +1 -1
  38. package/dist/commonjs/models/createpaymentintentdto.d.ts +5 -0
  39. package/dist/commonjs/models/createpaymentintentdto.d.ts.map +1 -1
  40. package/dist/commonjs/models/createpaymentintentdto.js +2 -0
  41. package/dist/commonjs/models/createpaymentintentdto.js.map +1 -1
  42. package/dist/commonjs/models/financialaccountdatadto.d.ts +5 -0
  43. package/dist/commonjs/models/financialaccountdatadto.d.ts.map +1 -1
  44. package/dist/commonjs/models/financialaccountdatadto.js +4 -0
  45. package/dist/commonjs/models/financialaccountdatadto.js.map +1 -1
  46. package/dist/commonjs/models/financialaccountverificationdto.d.ts +1 -0
  47. package/dist/commonjs/models/financialaccountverificationdto.d.ts.map +1 -1
  48. package/dist/commonjs/models/financialaccountverificationdto.js +1 -0
  49. package/dist/commonjs/models/financialaccountverificationdto.js.map +1 -1
  50. package/dist/commonjs/models/financialaccountverificationresponsedto.d.ts +1 -1
  51. package/dist/commonjs/models/financialaccountverificationresponsedto.d.ts.map +1 -1
  52. package/dist/commonjs/models/financialaccountverificationresponsedto.js +1 -1
  53. package/dist/commonjs/models/financialaccountverificationresponsedto.js.map +1 -1
  54. package/dist/commonjs/models/getaccountholderinformationresponsedto.d.ts +26 -0
  55. package/dist/commonjs/models/getaccountholderinformationresponsedto.d.ts.map +1 -0
  56. package/dist/commonjs/models/getaccountholderinformationresponsedto.js +62 -0
  57. package/dist/commonjs/models/getaccountholderinformationresponsedto.js.map +1 -0
  58. package/dist/commonjs/models/getvirtualaccountinformationresponsedto.d.ts +22 -0
  59. package/dist/commonjs/models/getvirtualaccountinformationresponsedto.d.ts.map +1 -0
  60. package/dist/commonjs/models/getvirtualaccountinformationresponsedto.js +60 -0
  61. package/dist/commonjs/models/getvirtualaccountinformationresponsedto.js.map +1 -0
  62. package/dist/commonjs/models/index.d.ts +5 -1
  63. package/dist/commonjs/models/index.d.ts.map +1 -1
  64. package/dist/commonjs/models/index.js +5 -1
  65. package/dist/commonjs/models/index.js.map +1 -1
  66. package/dist/commonjs/models/lockboxaddressdto.d.ts +33 -0
  67. package/dist/commonjs/models/lockboxaddressdto.d.ts.map +1 -0
  68. package/dist/commonjs/models/{paymentintentdto.js → lockboxaddressdto.js} +18 -7
  69. package/dist/commonjs/models/lockboxaddressdto.js.map +1 -0
  70. package/dist/commonjs/models/operations/applicationfilescontrollerfindall.d.ts +5 -0
  71. package/dist/commonjs/models/operations/applicationfilescontrollerfindall.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/applicationfilescontrollerfindall.js +1 -0
  73. package/dist/commonjs/models/operations/applicationfilescontrollerfindall.js.map +1 -1
  74. package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.d.ts +30 -0
  75. package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.d.ts.map +1 -0
  76. package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.js +59 -0
  77. package/dist/commonjs/models/operations/businessescontrollergetaccountholderinformation.js.map +1 -0
  78. package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.d.ts +30 -0
  79. package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.d.ts.map +1 -0
  80. package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.js +60 -0
  81. package/dist/commonjs/models/operations/businessescontrollergetvirtualaccountinformation.js.map +1 -0
  82. package/dist/commonjs/models/operations/businessfilescontrollerfindall.d.ts +5 -0
  83. package/dist/commonjs/models/operations/businessfilescontrollerfindall.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/businessfilescontrollerfindall.js +1 -0
  85. package/dist/commonjs/models/operations/businessfilescontrollerfindall.js.map +1 -1
  86. package/dist/commonjs/models/operations/filescontrollerfindall.d.ts +5 -0
  87. package/dist/commonjs/models/operations/filescontrollerfindall.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/filescontrollerfindall.js +1 -0
  89. package/dist/commonjs/models/operations/filescontrollerfindall.js.map +1 -1
  90. package/dist/commonjs/models/operations/index.d.ts +2 -0
  91. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/index.js +2 -0
  93. package/dist/commonjs/models/operations/index.js.map +1 -1
  94. package/dist/commonjs/models/paymentintentresponsedto.d.ts +4 -0
  95. package/dist/commonjs/models/paymentintentresponsedto.d.ts.map +1 -1
  96. package/dist/commonjs/models/paymentintentresponsedto.js +2 -0
  97. package/dist/commonjs/models/paymentintentresponsedto.js.map +1 -1
  98. package/dist/commonjs/models/paymentraildatadto.d.ts +5 -0
  99. package/dist/commonjs/models/paymentraildatadto.d.ts.map +1 -1
  100. package/dist/commonjs/models/paymentraildatadto.js +4 -0
  101. package/dist/commonjs/models/paymentraildatadto.js.map +1 -1
  102. package/dist/commonjs/models/updatefinancialaccountdto.d.ts +0 -6
  103. package/dist/commonjs/models/updatefinancialaccountdto.d.ts.map +1 -1
  104. package/dist/commonjs/models/updatefinancialaccountdto.js +0 -2
  105. package/dist/commonjs/models/updatefinancialaccountdto.js.map +1 -1
  106. package/dist/commonjs/models/updatepaymentintentdto.d.ts +5 -0
  107. package/dist/commonjs/models/updatepaymentintentdto.d.ts.map +1 -1
  108. package/dist/commonjs/models/updatepaymentintentdto.js +2 -0
  109. package/dist/commonjs/models/updatepaymentintentdto.js.map +1 -1
  110. package/dist/commonjs/models/updateplatformfinancialaccountdto.d.ts +0 -6
  111. package/dist/commonjs/models/updateplatformfinancialaccountdto.d.ts.map +1 -1
  112. package/dist/commonjs/models/updateplatformfinancialaccountdto.js +0 -2
  113. package/dist/commonjs/models/updateplatformfinancialaccountdto.js.map +1 -1
  114. package/dist/commonjs/models/virtualaccountinfoitemdto.d.ts +34 -0
  115. package/dist/commonjs/models/virtualaccountinfoitemdto.d.ts.map +1 -0
  116. package/dist/commonjs/models/virtualaccountinfoitemdto.js +66 -0
  117. package/dist/commonjs/models/virtualaccountinfoitemdto.js.map +1 -0
  118. package/dist/commonjs/sdk/businesses.d.ts +14 -0
  119. package/dist/commonjs/sdk/businesses.d.ts.map +1 -1
  120. package/dist/commonjs/sdk/businesses.js +20 -0
  121. package/dist/commonjs/sdk/businesses.js.map +1 -1
  122. package/dist/esm/funcs/applicationFilesList.js +1 -0
  123. package/dist/esm/funcs/applicationFilesList.js.map +1 -1
  124. package/dist/esm/funcs/applicationFilesUpload.js +7 -0
  125. package/dist/esm/funcs/applicationFilesUpload.js.map +1 -1
  126. package/dist/esm/funcs/businessFilesList.js +1 -0
  127. package/dist/esm/funcs/businessFilesList.js.map +1 -1
  128. package/dist/esm/funcs/businessFilesUpload.js +7 -0
  129. package/dist/esm/funcs/businessFilesUpload.js.map +1 -1
  130. package/dist/esm/funcs/businessesGetAccountHolderInformation.d.ts +18 -0
  131. package/dist/esm/funcs/businessesGetAccountHolderInformation.d.ts.map +1 -0
  132. package/dist/esm/funcs/businessesGetAccountHolderInformation.js +102 -0
  133. package/dist/esm/funcs/businessesGetAccountHolderInformation.js.map +1 -0
  134. package/dist/esm/funcs/businessesGetVirtualAccountInformation.d.ts +18 -0
  135. package/dist/esm/funcs/businessesGetVirtualAccountInformation.d.ts.map +1 -0
  136. package/dist/esm/funcs/businessesGetVirtualAccountInformation.js +102 -0
  137. package/dist/esm/funcs/businessesGetVirtualAccountInformation.js.map +1 -0
  138. package/dist/esm/funcs/filesList.js +1 -0
  139. package/dist/esm/funcs/filesList.js.map +1 -1
  140. package/dist/esm/funcs/filesUpload.js +7 -0
  141. package/dist/esm/funcs/filesUpload.js.map +1 -1
  142. package/dist/esm/lib/config.d.ts +3 -3
  143. package/dist/esm/lib/config.js +3 -3
  144. package/dist/esm/lib/matchers.d.ts.map +1 -1
  145. package/dist/esm/lib/matchers.js +0 -1
  146. package/dist/esm/lib/matchers.js.map +1 -1
  147. package/dist/esm/lib/security.d.ts.map +1 -1
  148. package/dist/esm/lib/security.js +1 -2
  149. package/dist/esm/lib/security.js.map +1 -1
  150. package/dist/esm/models/accountholdervirtualaccountitemdto.d.ts +30 -0
  151. package/dist/esm/models/accountholdervirtualaccountitemdto.d.ts.map +1 -0
  152. package/dist/esm/models/accountholdervirtualaccountitemdto.js +27 -0
  153. package/dist/esm/models/accountholdervirtualaccountitemdto.js.map +1 -0
  154. package/dist/esm/models/createoriginationofferdto.d.ts +0 -6
  155. package/dist/esm/models/createoriginationofferdto.d.ts.map +1 -1
  156. package/dist/esm/models/createoriginationofferdto.js +0 -3
  157. package/dist/esm/models/createoriginationofferdto.js.map +1 -1
  158. package/dist/esm/models/createpaymentintentdto.d.ts +5 -0
  159. package/dist/esm/models/createpaymentintentdto.d.ts.map +1 -1
  160. package/dist/esm/models/createpaymentintentdto.js +2 -0
  161. package/dist/esm/models/createpaymentintentdto.js.map +1 -1
  162. package/dist/esm/models/financialaccountdatadto.d.ts +5 -0
  163. package/dist/esm/models/financialaccountdatadto.d.ts.map +1 -1
  164. package/dist/esm/models/financialaccountdatadto.js +4 -0
  165. package/dist/esm/models/financialaccountdatadto.js.map +1 -1
  166. package/dist/esm/models/financialaccountverificationdto.d.ts +1 -0
  167. package/dist/esm/models/financialaccountverificationdto.d.ts.map +1 -1
  168. package/dist/esm/models/financialaccountverificationdto.js +1 -0
  169. package/dist/esm/models/financialaccountverificationdto.js.map +1 -1
  170. package/dist/esm/models/financialaccountverificationresponsedto.d.ts +1 -1
  171. package/dist/esm/models/financialaccountverificationresponsedto.d.ts.map +1 -1
  172. package/dist/esm/models/financialaccountverificationresponsedto.js +1 -1
  173. package/dist/esm/models/financialaccountverificationresponsedto.js.map +1 -1
  174. package/dist/esm/models/getaccountholderinformationresponsedto.d.ts +26 -0
  175. package/dist/esm/models/getaccountholderinformationresponsedto.d.ts.map +1 -0
  176. package/dist/esm/models/getaccountholderinformationresponsedto.js +25 -0
  177. package/dist/esm/models/getaccountholderinformationresponsedto.js.map +1 -0
  178. package/dist/esm/models/getvirtualaccountinformationresponsedto.d.ts +22 -0
  179. package/dist/esm/models/getvirtualaccountinformationresponsedto.d.ts.map +1 -0
  180. package/dist/esm/models/getvirtualaccountinformationresponsedto.js +23 -0
  181. package/dist/esm/models/getvirtualaccountinformationresponsedto.js.map +1 -0
  182. package/dist/esm/models/index.d.ts +5 -1
  183. package/dist/esm/models/index.d.ts.map +1 -1
  184. package/dist/esm/models/index.js +5 -1
  185. package/dist/esm/models/index.js.map +1 -1
  186. package/dist/esm/models/lockboxaddressdto.d.ts +33 -0
  187. package/dist/esm/models/lockboxaddressdto.d.ts.map +1 -0
  188. package/dist/esm/models/lockboxaddressdto.js +23 -0
  189. package/dist/esm/models/lockboxaddressdto.js.map +1 -0
  190. package/dist/esm/models/operations/applicationfilescontrollerfindall.d.ts +5 -0
  191. package/dist/esm/models/operations/applicationfilescontrollerfindall.d.ts.map +1 -1
  192. package/dist/esm/models/operations/applicationfilescontrollerfindall.js +1 -0
  193. package/dist/esm/models/operations/applicationfilescontrollerfindall.js.map +1 -1
  194. package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.d.ts +30 -0
  195. package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.d.ts.map +1 -0
  196. package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.js +22 -0
  197. package/dist/esm/models/operations/businessescontrollergetaccountholderinformation.js.map +1 -0
  198. package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.d.ts +30 -0
  199. package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.d.ts.map +1 -0
  200. package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.js +23 -0
  201. package/dist/esm/models/operations/businessescontrollergetvirtualaccountinformation.js.map +1 -0
  202. package/dist/esm/models/operations/businessfilescontrollerfindall.d.ts +5 -0
  203. package/dist/esm/models/operations/businessfilescontrollerfindall.d.ts.map +1 -1
  204. package/dist/esm/models/operations/businessfilescontrollerfindall.js +1 -0
  205. package/dist/esm/models/operations/businessfilescontrollerfindall.js.map +1 -1
  206. package/dist/esm/models/operations/filescontrollerfindall.d.ts +5 -0
  207. package/dist/esm/models/operations/filescontrollerfindall.d.ts.map +1 -1
  208. package/dist/esm/models/operations/filescontrollerfindall.js +1 -0
  209. package/dist/esm/models/operations/filescontrollerfindall.js.map +1 -1
  210. package/dist/esm/models/operations/index.d.ts +2 -0
  211. package/dist/esm/models/operations/index.d.ts.map +1 -1
  212. package/dist/esm/models/operations/index.js +2 -0
  213. package/dist/esm/models/operations/index.js.map +1 -1
  214. package/dist/esm/models/paymentintentresponsedto.d.ts +4 -0
  215. package/dist/esm/models/paymentintentresponsedto.d.ts.map +1 -1
  216. package/dist/esm/models/paymentintentresponsedto.js +2 -0
  217. package/dist/esm/models/paymentintentresponsedto.js.map +1 -1
  218. package/dist/esm/models/paymentraildatadto.d.ts +5 -0
  219. package/dist/esm/models/paymentraildatadto.d.ts.map +1 -1
  220. package/dist/esm/models/paymentraildatadto.js +4 -0
  221. package/dist/esm/models/paymentraildatadto.js.map +1 -1
  222. package/dist/esm/models/updatefinancialaccountdto.d.ts +0 -6
  223. package/dist/esm/models/updatefinancialaccountdto.d.ts.map +1 -1
  224. package/dist/esm/models/updatefinancialaccountdto.js +0 -2
  225. package/dist/esm/models/updatefinancialaccountdto.js.map +1 -1
  226. package/dist/esm/models/updatepaymentintentdto.d.ts +5 -0
  227. package/dist/esm/models/updatepaymentintentdto.d.ts.map +1 -1
  228. package/dist/esm/models/updatepaymentintentdto.js +2 -0
  229. package/dist/esm/models/updatepaymentintentdto.js.map +1 -1
  230. package/dist/esm/models/updateplatformfinancialaccountdto.d.ts +0 -6
  231. package/dist/esm/models/updateplatformfinancialaccountdto.d.ts.map +1 -1
  232. package/dist/esm/models/updateplatformfinancialaccountdto.js +0 -2
  233. package/dist/esm/models/updateplatformfinancialaccountdto.js.map +1 -1
  234. package/dist/esm/models/virtualaccountinfoitemdto.d.ts +34 -0
  235. package/dist/esm/models/virtualaccountinfoitemdto.d.ts.map +1 -0
  236. package/dist/esm/models/virtualaccountinfoitemdto.js +29 -0
  237. package/dist/esm/models/virtualaccountinfoitemdto.js.map +1 -0
  238. package/dist/esm/sdk/businesses.d.ts +14 -0
  239. package/dist/esm/sdk/businesses.d.ts.map +1 -1
  240. package/dist/esm/sdk/businesses.js +20 -0
  241. package/dist/esm/sdk/businesses.js.map +1 -1
  242. package/jsr.json +1 -1
  243. package/package.json +2 -2
  244. package/src/funcs/applicationFilesList.ts +1 -0
  245. package/src/funcs/applicationFilesUpload.ts +11 -0
  246. package/src/funcs/businessFilesList.ts +1 -0
  247. package/src/funcs/businessFilesUpload.ts +11 -0
  248. package/src/funcs/businessesGetAccountHolderInformation.ts +190 -0
  249. package/src/funcs/businessesGetVirtualAccountInformation.ts +190 -0
  250. package/src/funcs/filesList.ts +1 -0
  251. package/src/funcs/filesUpload.ts +11 -0
  252. package/src/lib/config.ts +3 -3
  253. package/src/lib/matchers.ts +3 -2
  254. package/src/lib/security.ts +1 -2
  255. package/src/models/accountholdervirtualaccountitemdto.ts +69 -0
  256. package/src/models/createoriginationofferdto.ts +0 -12
  257. package/src/models/createpaymentintentdto.ts +7 -0
  258. package/src/models/financialaccountdatadto.ts +9 -0
  259. package/src/models/financialaccountverificationdto.ts +1 -0
  260. package/src/models/financialaccountverificationresponsedto.ts +2 -2
  261. package/src/models/getaccountholderinformationresponsedto.ts +62 -0
  262. package/src/models/getvirtualaccountinformationresponsedto.ts +61 -0
  263. package/src/models/index.ts +5 -1
  264. package/src/models/lockboxaddressdto.ts +64 -0
  265. package/src/models/operations/applicationfilescontrollerfindall.ts +6 -0
  266. package/src/models/operations/businessescontrollergetaccountholderinformation.ts +63 -0
  267. package/src/models/operations/businessescontrollergetvirtualaccountinformation.ts +62 -0
  268. package/src/models/operations/businessfilescontrollerfindall.ts +6 -0
  269. package/src/models/operations/filescontrollerfindall.ts +6 -0
  270. package/src/models/operations/index.ts +2 -0
  271. package/src/models/paymentintentresponsedto.ts +6 -0
  272. package/src/models/paymentraildatadto.ts +9 -0
  273. package/src/models/updatefinancialaccountdto.ts +0 -10
  274. package/src/models/updatepaymentintentdto.ts +7 -0
  275. package/src/models/updateplatformfinancialaccountdto.ts +0 -10
  276. package/src/models/virtualaccountinfoitemdto.ts +73 -0
  277. package/src/sdk/businesses.ts +36 -0
  278. package/dist/commonjs/models/paymentintentdto.d.ts +0 -15
  279. package/dist/commonjs/models/paymentintentdto.d.ts.map +0 -1
  280. package/dist/commonjs/models/paymentintentdto.js.map +0 -1
  281. package/dist/esm/models/paymentintentdto.d.ts +0 -15
  282. package/dist/esm/models/paymentintentdto.d.ts.map +0 -1
  283. package/dist/esm/models/paymentintentdto.js +0 -12
  284. package/dist/esm/models/paymentintentdto.js.map +0 -1
  285. package/src/models/paymentintentdto.ts +0 -34
@@ -0,0 +1,190 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OatFiSDKCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { OatFiSDKError } from "../models/errors/oatfisdkerror.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as models from "../models/index.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Retrieve account holder information
30
+ *
31
+ * @remarks
32
+ * Retrieve account holder information and virtual accounts related to the business
33
+ */
34
+ export function businessesGetAccountHolderInformation(
35
+ client: OatFiSDKCore,
36
+ request: operations.BusinessesControllerGetAccountHolderInformationRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ models.GetAccountHolderInformationResponseDto,
41
+ | OatFiSDKError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ request,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: OatFiSDKCore,
60
+ request: operations.BusinessesControllerGetAccountHolderInformationRequest,
61
+ options?: RequestOptions,
62
+ ): Promise<
63
+ [
64
+ Result<
65
+ models.GetAccountHolderInformationResponseDto,
66
+ | OatFiSDKError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const parsed = safeParse(
79
+ request,
80
+ (value) =>
81
+ operations
82
+ .BusinessesControllerGetAccountHolderInformationRequest$outboundSchema
83
+ .parse(value),
84
+ "Input validation failed",
85
+ );
86
+ if (!parsed.ok) {
87
+ return [parsed, { status: "invalid" }];
88
+ }
89
+ const payload = parsed.value;
90
+ const body = null;
91
+
92
+ const pathParams = {
93
+ id: encodeSimple("id", payload.id, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+
99
+ const path = pathToFunc("/v3/businesses/{id}/account-holder-information")(
100
+ pathParams,
101
+ );
102
+
103
+ const query = encodeFormQuery({
104
+ "counter_party_business_external_id":
105
+ payload.counter_party_business_external_id,
106
+ "page_number": payload.page_number,
107
+ "page_size": payload.page_size,
108
+ });
109
+
110
+ const headers = new Headers(compactMap({
111
+ Accept: "application/json",
112
+ }));
113
+
114
+ const secConfig = await extractSecurity(client._options.bearer);
115
+ const securityInput = secConfig == null ? {} : { bearer: secConfig };
116
+ const requestSecurity = resolveGlobalSecurity(securityInput);
117
+
118
+ const context = {
119
+ options: client._options,
120
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
121
+ operationID: "BusinessesController_getAccountHolderInformation",
122
+ oAuth2Scopes: null,
123
+
124
+ resolvedSecurity: requestSecurity,
125
+
126
+ securitySource: client._options.bearer,
127
+ retryConfig: options?.retries
128
+ || client._options.retryConfig
129
+ || {
130
+ strategy: "backoff",
131
+ backoff: {
132
+ initialInterval: 500,
133
+ maxInterval: 60000,
134
+ exponent: 1.5,
135
+ maxElapsedTime: 120000,
136
+ },
137
+ retryConnectionErrors: true,
138
+ }
139
+ || { strategy: "none" },
140
+ retryCodes: options?.retryCodes || ["5XX"],
141
+ };
142
+
143
+ const requestRes = client._createRequest(context, {
144
+ security: requestSecurity,
145
+ method: "GET",
146
+ baseURL: options?.serverURL,
147
+ path: path,
148
+ headers: headers,
149
+ query: query,
150
+ body: body,
151
+ userAgent: client._options.userAgent,
152
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
153
+ }, options);
154
+ if (!requestRes.ok) {
155
+ return [requestRes, { status: "invalid" }];
156
+ }
157
+ const req = requestRes.value;
158
+
159
+ const doResult = await client._do(req, {
160
+ context,
161
+ errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
162
+ retryConfig: context.retryConfig,
163
+ retryCodes: context.retryCodes,
164
+ });
165
+ if (!doResult.ok) {
166
+ return [doResult, { status: "request-error", request: req }];
167
+ }
168
+ const response = doResult.value;
169
+
170
+ const [result] = await M.match<
171
+ models.GetAccountHolderInformationResponseDto,
172
+ | OatFiSDKError
173
+ | ResponseValidationError
174
+ | ConnectionError
175
+ | RequestAbortedError
176
+ | RequestTimeoutError
177
+ | InvalidRequestError
178
+ | UnexpectedClientError
179
+ | SDKValidationError
180
+ >(
181
+ M.json(200, models.GetAccountHolderInformationResponseDto$inboundSchema),
182
+ M.fail([400, 401, 403, 404, "4XX"]),
183
+ M.fail("5XX"),
184
+ )(response, req);
185
+ if (!result.ok) {
186
+ return [result, { status: "complete", request: req, response }];
187
+ }
188
+
189
+ return [result, { status: "complete", request: req, response }];
190
+ }
@@ -0,0 +1,190 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OatFiSDKCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { OatFiSDKError } from "../models/errors/oatfisdkerror.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as models from "../models/index.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Retrieve virtual account information
30
+ *
31
+ * @remarks
32
+ * Retrieve virtual accounts related to a business (Oatfi Payments only)
33
+ */
34
+ export function businessesGetVirtualAccountInformation(
35
+ client: OatFiSDKCore,
36
+ request: operations.BusinessesControllerGetVirtualAccountInformationRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ models.GetVirtualAccountInformationResponseDto,
41
+ | OatFiSDKError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ request,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: OatFiSDKCore,
60
+ request: operations.BusinessesControllerGetVirtualAccountInformationRequest,
61
+ options?: RequestOptions,
62
+ ): Promise<
63
+ [
64
+ Result<
65
+ models.GetVirtualAccountInformationResponseDto,
66
+ | OatFiSDKError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const parsed = safeParse(
79
+ request,
80
+ (value) =>
81
+ operations
82
+ .BusinessesControllerGetVirtualAccountInformationRequest$outboundSchema
83
+ .parse(value),
84
+ "Input validation failed",
85
+ );
86
+ if (!parsed.ok) {
87
+ return [parsed, { status: "invalid" }];
88
+ }
89
+ const payload = parsed.value;
90
+ const body = null;
91
+
92
+ const pathParams = {
93
+ id: encodeSimple("id", payload.id, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+
99
+ const path = pathToFunc("/v3/businesses/{id}/virtual-account-information")(
100
+ pathParams,
101
+ );
102
+
103
+ const query = encodeFormQuery({
104
+ "account_holder_business_external_id":
105
+ payload.account_holder_business_external_id,
106
+ "page_number": payload.page_number,
107
+ "page_size": payload.page_size,
108
+ });
109
+
110
+ const headers = new Headers(compactMap({
111
+ Accept: "application/json",
112
+ }));
113
+
114
+ const secConfig = await extractSecurity(client._options.bearer);
115
+ const securityInput = secConfig == null ? {} : { bearer: secConfig };
116
+ const requestSecurity = resolveGlobalSecurity(securityInput);
117
+
118
+ const context = {
119
+ options: client._options,
120
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
121
+ operationID: "BusinessesController_getVirtualAccountInformation",
122
+ oAuth2Scopes: null,
123
+
124
+ resolvedSecurity: requestSecurity,
125
+
126
+ securitySource: client._options.bearer,
127
+ retryConfig: options?.retries
128
+ || client._options.retryConfig
129
+ || {
130
+ strategy: "backoff",
131
+ backoff: {
132
+ initialInterval: 500,
133
+ maxInterval: 60000,
134
+ exponent: 1.5,
135
+ maxElapsedTime: 120000,
136
+ },
137
+ retryConnectionErrors: true,
138
+ }
139
+ || { strategy: "none" },
140
+ retryCodes: options?.retryCodes || ["5XX"],
141
+ };
142
+
143
+ const requestRes = client._createRequest(context, {
144
+ security: requestSecurity,
145
+ method: "GET",
146
+ baseURL: options?.serverURL,
147
+ path: path,
148
+ headers: headers,
149
+ query: query,
150
+ body: body,
151
+ userAgent: client._options.userAgent,
152
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
153
+ }, options);
154
+ if (!requestRes.ok) {
155
+ return [requestRes, { status: "invalid" }];
156
+ }
157
+ const req = requestRes.value;
158
+
159
+ const doResult = await client._do(req, {
160
+ context,
161
+ errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
162
+ retryConfig: context.retryConfig,
163
+ retryCodes: context.retryCodes,
164
+ });
165
+ if (!doResult.ok) {
166
+ return [doResult, { status: "request-error", request: req }];
167
+ }
168
+ const response = doResult.value;
169
+
170
+ const [result] = await M.match<
171
+ models.GetVirtualAccountInformationResponseDto,
172
+ | OatFiSDKError
173
+ | ResponseValidationError
174
+ | ConnectionError
175
+ | RequestAbortedError
176
+ | RequestTimeoutError
177
+ | InvalidRequestError
178
+ | UnexpectedClientError
179
+ | SDKValidationError
180
+ >(
181
+ M.json(200, models.GetVirtualAccountInformationResponseDto$inboundSchema),
182
+ M.fail([400, 401, 403, 404, "4XX"]),
183
+ M.fail("5XX"),
184
+ )(response, req);
185
+ if (!result.ok) {
186
+ return [result, { status: "complete", request: req, response }];
187
+ }
188
+
189
+ return [result, { status: "complete", request: req, response }];
190
+ }
@@ -104,6 +104,7 @@ async function $do(
104
104
  "ending_before": payload?.ending_before,
105
105
  "file_type": payload?.file_type,
106
106
  "limit": payload?.limit,
107
+ "q": payload?.q,
107
108
  "resource_id": payload?.resource_id,
108
109
  "resource_type": payload?.resource_type,
109
110
  "starting_after": payload?.starting_after,
@@ -103,6 +103,17 @@ async function $do(
103
103
  || "application/octet-stream";
104
104
  const blob = new Blob([buffer], { type: contentType });
105
105
  appendForm(body, "files[]", blob, fileItem.fileName);
106
+ } else if (fileItem.content instanceof Uint8Array) {
107
+ const contentType = getContentTypeFromFileName(fileItem.fileName)
108
+ || "application/octet-stream";
109
+ appendForm(
110
+ body,
111
+ "files[]",
112
+ new Blob([new Uint8Array(fileItem.content).buffer], {
113
+ type: contentType,
114
+ }),
115
+ fileItem.fileName,
116
+ );
106
117
  } else {
107
118
  const contentType = getContentTypeFromFileName(fileItem.fileName)
108
119
  || "application/octet-stream";
package/src/lib/config.ts CHANGED
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "3.0.0",
72
- sdkVersion: "0.11.55",
73
- genVersion: "2.845.1",
72
+ sdkVersion: "0.11.56",
73
+ genVersion: "2.849.8",
74
74
  userAgent:
75
- "speakeasy-sdk/typescript 0.11.55 2.845.1 3.0.0 @oatfi/oatfi-sdk-ts",
75
+ "speakeasy-sdk/typescript 0.11.56 2.849.8 3.0.0 @oatfi/oatfi-sdk-ts",
76
76
  } as const;
@@ -251,8 +251,9 @@ export function match<T, E>(
251
251
  raw = body;
252
252
  break;
253
253
  default:
254
- encoding satisfies never;
255
- throw new Error(`Unsupported response type: ${encoding}`);
254
+ throw new Error(
255
+ `Unsupported response type: ${encoding satisfies never}`,
256
+ );
256
257
  }
257
258
 
258
259
  if (matcher.enc === "fail") {
@@ -198,8 +198,7 @@ export function resolveSecurity(
198
198
  applyBearer(state, spec);
199
199
  break;
200
200
  default:
201
- spec satisfies never;
202
- throw SecurityError.unrecognizedType(type);
201
+ throw SecurityError.unrecognizedType((spec satisfies never, type));
203
202
  }
204
203
  });
205
204
 
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+ import {
11
+ LockboxAddressDto,
12
+ LockboxAddressDto$inboundSchema,
13
+ } from "./lockboxaddressdto.js";
14
+
15
+ export type AccountHolderVirtualAccountItemDto = {
16
+ /**
17
+ * Payment method ID
18
+ */
19
+ paymentMethodId: string;
20
+ /**
21
+ * Counter party holder business external ID
22
+ */
23
+ counterPartyHolderBusinessExternalId: string;
24
+ /**
25
+ * Account number
26
+ */
27
+ accountNumber: string;
28
+ /**
29
+ * Routing number
30
+ */
31
+ routingNumber: string;
32
+ /**
33
+ * Lockbox address
34
+ */
35
+ lockboxAddress?: LockboxAddressDto | undefined;
36
+ };
37
+
38
+ /** @internal */
39
+ export const AccountHolderVirtualAccountItemDto$inboundSchema: z.ZodType<
40
+ AccountHolderVirtualAccountItemDto,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.object({
44
+ payment_method_id: z.string(),
45
+ counter_party_holder_business_external_id: z.string(),
46
+ account_number: z.string(),
47
+ routing_number: z.string(),
48
+ lockbox_address: LockboxAddressDto$inboundSchema.optional(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ "payment_method_id": "paymentMethodId",
52
+ "counter_party_holder_business_external_id":
53
+ "counterPartyHolderBusinessExternalId",
54
+ "account_number": "accountNumber",
55
+ "routing_number": "routingNumber",
56
+ "lockbox_address": "lockboxAddress",
57
+ });
58
+ });
59
+
60
+ export function accountHolderVirtualAccountItemDtoFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<AccountHolderVirtualAccountItemDto, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) =>
66
+ AccountHolderVirtualAccountItemDto$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'AccountHolderVirtualAccountItemDto' from JSON`,
68
+ );
69
+ }
@@ -4,11 +4,6 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
- import {
8
- PaymentIntentDto,
9
- PaymentIntentDto$Outbound,
10
- PaymentIntentDto$outboundSchema,
11
- } from "./paymentintentdto.js";
12
7
 
13
8
  /**
14
9
  * Metadata to associate with the offer request
@@ -68,10 +63,6 @@ export type CreateOriginationOfferDto = {
68
63
  * The repayment date timestamp
69
64
  */
70
65
  repaymentDate?: number | undefined;
71
- /**
72
- * Array of payment intents
73
- */
74
- paymentIntents?: Array<PaymentIntentDto> | undefined;
75
66
  /**
76
67
  * Metadata to associate with the offer request
77
68
  */
@@ -113,7 +104,6 @@ export type CreateOriginationOfferDto$Outbound = {
113
104
  payment_intent_id?: string | undefined;
114
105
  due_date?: number | undefined;
115
106
  repayment_date?: number | undefined;
116
- payment_intents?: Array<PaymentIntentDto$Outbound> | undefined;
117
107
  metadata?: CreateOriginationOfferDtoMetadata$Outbound | undefined;
118
108
  };
119
109
 
@@ -136,7 +126,6 @@ export const CreateOriginationOfferDto$outboundSchema: z.ZodType<
136
126
  paymentIntentId: z.string().optional(),
137
127
  dueDate: z.number().optional(),
138
128
  repaymentDate: z.number().optional(),
139
- paymentIntents: z.array(PaymentIntentDto$outboundSchema).optional(),
140
129
  metadata: z.lazy(() => CreateOriginationOfferDtoMetadata$outboundSchema)
141
130
  .optional(),
142
131
  }).transform((v) => {
@@ -152,7 +141,6 @@ export const CreateOriginationOfferDto$outboundSchema: z.ZodType<
152
141
  paymentIntentId: "payment_intent_id",
153
142
  dueDate: "due_date",
154
143
  repaymentDate: "repayment_date",
155
- paymentIntents: "payment_intents",
156
144
  });
157
145
  });
158
146
 
@@ -65,6 +65,10 @@ export type CreatePaymentIntentDto = {
65
65
  * External identifier of the payee entity.
66
66
  */
67
67
  payee?: string | undefined;
68
+ /**
69
+ * Array of loan IDs to associate with this payment intent.
70
+ */
71
+ loanIds?: Array<string> | undefined;
68
72
  };
69
73
 
70
74
  /** @internal */
@@ -85,6 +89,7 @@ export type CreatePaymentIntentDto$Outbound = {
85
89
  approved_by_payor?: boolean | undefined;
86
90
  payor?: string | undefined;
87
91
  payee?: string | undefined;
92
+ loan_ids?: Array<string> | undefined;
88
93
  };
89
94
 
90
95
  /** @internal */
@@ -104,6 +109,7 @@ export const CreatePaymentIntentDto$outboundSchema: z.ZodType<
104
109
  approvedByPayor: z.boolean().optional(),
105
110
  payor: z.string().optional(),
106
111
  payee: z.string().optional(),
112
+ loanIds: z.array(z.string()).optional(),
107
113
  }).transform((v) => {
108
114
  return remap$(v, {
109
115
  externalId: "external_id",
@@ -112,6 +118,7 @@ export const CreatePaymentIntentDto$outboundSchema: z.ZodType<
112
118
  dueDate: "due_date",
113
119
  paymentDate: "payment_date",
114
120
  approvedByPayor: "approved_by_payor",
121
+ loanIds: "loan_ids",
115
122
  });
116
123
  });
117
124
 
@@ -137,6 +137,10 @@ export type FinancialAccountDataDto = {
137
137
  * Routing Number
138
138
  */
139
139
  oatfiRoutingNumber?: string | undefined;
140
+ /**
141
+ * Plaid processor token for transaction data extraction. Used by partners who already collect Plaid access from their borrowers.
142
+ */
143
+ processorPlaidToken?: string | undefined;
140
144
  };
141
145
 
142
146
  /** @internal */
@@ -288,6 +292,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
288
292
  account_number_id: z.string().optional(),
289
293
  oatfi_account_number: z.string().optional(),
290
294
  oatfi_routing_number: z.string().optional(),
295
+ processor_plaid_token: z.string().optional(),
291
296
  }).transform((v) => {
292
297
  return remap$(v, {
293
298
  "account_id": "accountId",
@@ -306,6 +311,7 @@ export const FinancialAccountDataDto$inboundSchema: z.ZodType<
306
311
  "account_number_id": "accountNumberId",
307
312
  "oatfi_account_number": "oatfiAccountNumber",
308
313
  "oatfi_routing_number": "oatfiRoutingNumber",
314
+ "processor_plaid_token": "processorPlaidToken",
309
315
  });
310
316
  });
311
317
  /** @internal */
@@ -326,6 +332,7 @@ export type FinancialAccountDataDto$Outbound = {
326
332
  account_number_id?: string | undefined;
327
333
  oatfi_account_number?: string | undefined;
328
334
  oatfi_routing_number?: string | undefined;
335
+ processor_plaid_token?: string | undefined;
329
336
  };
330
337
 
331
338
  /** @internal */
@@ -352,6 +359,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
352
359
  accountNumberId: z.string().optional(),
353
360
  oatfiAccountNumber: z.string().optional(),
354
361
  oatfiRoutingNumber: z.string().optional(),
362
+ processorPlaidToken: z.string().optional(),
355
363
  }).transform((v) => {
356
364
  return remap$(v, {
357
365
  accountId: "account_id",
@@ -370,6 +378,7 @@ export const FinancialAccountDataDto$outboundSchema: z.ZodType<
370
378
  accountNumberId: "account_number_id",
371
379
  oatfiAccountNumber: "oatfi_account_number",
372
380
  oatfiRoutingNumber: "oatfi_routing_number",
381
+ processorPlaidToken: "processor_plaid_token",
373
382
  });
374
383
  });
375
384
 
@@ -13,6 +13,7 @@ export const ConsentSource = {
13
13
  Embedded: "EMBEDDED",
14
14
  Hosted: "HOSTED",
15
15
  PartnerApi: "PARTNER_API",
16
+ PartnerAdmin: "PARTNER_ADMIN",
16
17
  } as const;
17
18
  /**
18
19
  * Source of consent
@@ -16,7 +16,7 @@ export type FinancialAccountVerificationResponseDto = {
16
16
  /**
17
17
  * Source of consent
18
18
  */
19
- consentSource: string;
19
+ consentSource?: string | undefined;
20
20
  /**
21
21
  * Timestamp when consent was given
22
22
  */
@@ -46,7 +46,7 @@ export const FinancialAccountVerificationResponseDto$inboundSchema: z.ZodType<
46
46
  unknown
47
47
  > = z.object({
48
48
  consent_given: z.boolean(),
49
- consent_source: z.string(),
49
+ consent_source: z.string().optional(),
50
50
  consent_timestamp: z.string().datetime({ offset: true }).transform(v =>
51
51
  new Date(v)
52
52
  ).optional(),