@moovio/sdk 26.7.0-dev.3 → 26.7.0-dev.5

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 (442) hide show
  1. package/README.md +113 -89
  2. package/bin/mcp-server.js +1832 -1174
  3. package/bin/mcp-server.js.map +95 -83
  4. package/funcs/accountsCreate.d.ts +8 -10
  5. package/funcs/accountsCreate.d.ts.map +1 -1
  6. package/funcs/accountsCreate.js +8 -10
  7. package/funcs/accountsCreate.js.map +1 -1
  8. package/funcs/bankAccountsLink.d.ts +1 -1
  9. package/funcs/bankAccountsLink.js +1 -1
  10. package/funcs/capabilitiesDisable.d.ts +1 -1
  11. package/funcs/capabilitiesDisable.js +1 -1
  12. package/funcs/capabilitiesGet.d.ts +1 -1
  13. package/funcs/capabilitiesGet.js +1 -1
  14. package/funcs/capabilitiesList.d.ts +1 -1
  15. package/funcs/capabilitiesList.js +1 -1
  16. package/funcs/capabilitiesRequest.d.ts +1 -1
  17. package/funcs/capabilitiesRequest.js +1 -1
  18. package/funcs/cardIssuingGet.js +1 -1
  19. package/funcs/cardIssuingGet.js.map +1 -1
  20. package/funcs/cardIssuingGetFull.js +1 -1
  21. package/funcs/cardIssuingGetFull.js.map +1 -1
  22. package/funcs/cardIssuingList.js +1 -1
  23. package/funcs/cardIssuingList.js.map +1 -1
  24. package/funcs/cardIssuingRequest.js +1 -1
  25. package/funcs/cardIssuingRequest.js.map +1 -1
  26. package/funcs/cardIssuingUpdate.js +1 -1
  27. package/funcs/cardIssuingUpdate.js.map +1 -1
  28. package/funcs/depositViewCreate.d.ts +22 -0
  29. package/funcs/depositViewCreate.d.ts.map +1 -0
  30. package/funcs/depositViewCreate.js +136 -0
  31. package/funcs/depositViewCreate.js.map +1 -0
  32. package/funcs/transfersListCancellations.d.ts +17 -0
  33. package/funcs/transfersListCancellations.d.ts.map +1 -0
  34. package/funcs/transfersListCancellations.js +129 -0
  35. package/funcs/transfersListCancellations.js.map +1 -0
  36. package/hooks/types.d.ts +1 -0
  37. package/hooks/types.d.ts.map +1 -1
  38. package/jsr.json +1 -1
  39. package/lib/config.d.ts +3 -3
  40. package/lib/config.js +3 -3
  41. package/lib/encodings.js +12 -12
  42. package/lib/encodings.js.map +1 -1
  43. package/lib/matchers.js +3 -3
  44. package/lib/matchers.js.map +1 -1
  45. package/lib/primitives.d.ts +1 -0
  46. package/lib/primitives.d.ts.map +1 -1
  47. package/lib/primitives.js +18 -0
  48. package/lib/primitives.js.map +1 -1
  49. package/lib/retries.js +7 -0
  50. package/lib/retries.js.map +1 -1
  51. package/lib/sdks.d.ts.map +1 -1
  52. package/lib/sdks.js +50 -16
  53. package/lib/sdks.js.map +1 -1
  54. package/mcp-server/mcp-server.js +1 -1
  55. package/mcp-server/server.d.ts.map +1 -1
  56. package/mcp-server/server.js +5 -1
  57. package/mcp-server/server.js.map +1 -1
  58. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  59. package/mcp-server/tools/accountsCreate.js +8 -10
  60. package/mcp-server/tools/accountsCreate.js.map +1 -1
  61. package/mcp-server/tools/bankAccountsLink.js +1 -1
  62. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  63. package/mcp-server/tools/capabilitiesGet.js +1 -1
  64. package/mcp-server/tools/capabilitiesList.js +1 -1
  65. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  66. package/mcp-server/tools/depositViewCreate.d.ts +8 -0
  67. package/mcp-server/tools/depositViewCreate.d.ts.map +1 -0
  68. package/mcp-server/tools/depositViewCreate.js +69 -0
  69. package/mcp-server/tools/depositViewCreate.js.map +1 -0
  70. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  71. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  72. package/mcp-server/tools/transfersListCancellations.js +65 -0
  73. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  74. package/models/components/addcapabilities.d.ts +9 -0
  75. package/models/components/addcapabilities.d.ts.map +1 -1
  76. package/models/components/addcapabilities.js.map +1 -1
  77. package/models/components/amountdecimalrange.d.ts +15 -4
  78. package/models/components/amountdecimalrange.d.ts.map +1 -1
  79. package/models/components/amountdecimalrange.js +5 -4
  80. package/models/components/amountdecimalrange.js.map +1 -1
  81. package/models/components/amountdecimalrangeupdate.d.ts +11 -0
  82. package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
  83. package/models/components/amountdecimalrangeupdate.js.map +1 -1
  84. package/models/components/capability.d.ts +7 -1
  85. package/models/components/capability.d.ts.map +1 -1
  86. package/models/components/capability.js.map +1 -1
  87. package/models/components/capabilityid.d.ts +15 -2
  88. package/models/components/capabilityid.d.ts.map +1 -1
  89. package/models/components/capabilityid.js +8 -1
  90. package/models/components/capabilityid.js.map +1 -1
  91. package/models/components/cardtransactiondetails.d.ts +7 -0
  92. package/models/components/cardtransactiondetails.d.ts.map +1 -1
  93. package/models/components/cardtransactiondetails.js +4 -0
  94. package/models/components/cardtransactiondetails.js.map +1 -1
  95. package/models/components/cardtransactionstatus.d.ts +1 -0
  96. package/models/components/cardtransactionstatus.d.ts.map +1 -1
  97. package/models/components/cardtransactionstatus.js +1 -0
  98. package/models/components/cardtransactionstatus.js.map +1 -1
  99. package/models/components/createaccount.d.ts +9 -0
  100. package/models/components/createaccount.d.ts.map +1 -1
  101. package/models/components/createaccount.js.map +1 -1
  102. package/models/components/createpaymentlink.d.ts +9 -3
  103. package/models/components/createpaymentlink.d.ts.map +1 -1
  104. package/models/components/createpaymentlink.js +4 -0
  105. package/models/components/createpaymentlink.js.map +1 -1
  106. package/models/components/createtransferdestinationcard.d.ts +5 -0
  107. package/models/components/createtransferdestinationcard.d.ts.map +1 -1
  108. package/models/components/createtransferdestinationcard.js +2 -0
  109. package/models/components/createtransferdestinationcard.js.map +1 -1
  110. package/models/components/customamountpaymentdetailserror.d.ts +29 -0
  111. package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
  112. package/models/components/customamountpaymentdetailserror.js +71 -0
  113. package/models/components/customamountpaymentdetailserror.js.map +1 -0
  114. package/models/components/depositaccountingestedresponse.d.ts +39 -0
  115. package/models/components/depositaccountingestedresponse.d.ts.map +1 -0
  116. package/models/components/depositaccountingestedresponse.js +66 -0
  117. package/models/components/depositaccountingestedresponse.js.map +1 -0
  118. package/models/components/fullissuedcard.d.ts +26 -12
  119. package/models/components/fullissuedcard.d.ts.map +1 -1
  120. package/models/components/fullissuedcard.js +11 -5
  121. package/models/components/fullissuedcard.js.map +1 -1
  122. package/models/components/index.d.ts +10 -4
  123. package/models/components/index.d.ts.map +1 -1
  124. package/models/components/index.js +10 -4
  125. package/models/components/index.js.map +1 -1
  126. package/models/components/invoice.d.ts +5 -0
  127. package/models/components/invoice.d.ts.map +1 -1
  128. package/models/components/invoice.js +2 -0
  129. package/models/components/invoice.js.map +1 -1
  130. package/models/components/issuedcard.d.ts +26 -12
  131. package/models/components/issuedcard.d.ts.map +1 -1
  132. package/models/components/issuedcard.js +11 -5
  133. package/models/components/issuedcard.js.map +1 -1
  134. package/models/components/issuedcardstate.d.ts +2 -8
  135. package/models/components/issuedcardstate.d.ts.map +1 -1
  136. package/models/components/issuedcardstate.js +1 -5
  137. package/models/components/issuedcardstate.js.map +1 -1
  138. package/models/components/manualtermsofservice.d.ts +1 -1
  139. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  140. package/models/components/onboardinginvite.d.ts +1 -1
  141. package/models/components/onboardinginviterequest.d.ts +1 -1
  142. package/models/components/patchtransfer.d.ts +5 -2
  143. package/models/components/patchtransfer.d.ts.map +1 -1
  144. package/models/components/patchtransfer.js +2 -2
  145. package/models/components/patchtransfer.js.map +1 -1
  146. package/models/components/patchwallet.d.ts +4 -7
  147. package/models/components/patchwallet.d.ts.map +1 -1
  148. package/models/components/patchwallet.js +4 -4
  149. package/models/components/patchwallet.js.map +1 -1
  150. package/models/components/paymentlink.d.ts +13 -2
  151. package/models/components/paymentlink.d.ts.map +1 -1
  152. package/models/components/paymentlink.js +4 -0
  153. package/models/components/paymentlink.js.map +1 -1
  154. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
  155. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
  156. package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
  157. package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
  158. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
  159. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
  160. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
  161. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
  162. package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
  163. package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
  164. package/models/components/paymentlinkpaymentdetails.js +1 -21
  165. package/models/components/paymentlinkpaymentdetails.js.map +1 -1
  166. package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
  167. package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
  168. package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
  169. package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
  170. package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
  171. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  172. package/models/components/paymentlinkpayoutdetails.js +3 -0
  173. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  174. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
  175. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  176. package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
  177. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  178. package/models/components/paymentlinktype.d.ts +1 -0
  179. package/models/components/paymentlinktype.d.ts.map +1 -1
  180. package/models/components/paymentlinktype.js +1 -0
  181. package/models/components/paymentlinktype.js.map +1 -1
  182. package/models/components/paymentmethodscard.d.ts +8 -0
  183. package/models/components/paymentmethodscard.d.ts.map +1 -1
  184. package/models/components/paymentmethodscard.js +2 -0
  185. package/models/components/paymentmethodscard.js.map +1 -1
  186. package/models/components/payoutdetailserror.d.ts +3 -0
  187. package/models/components/payoutdetailserror.d.ts.map +1 -1
  188. package/models/components/payoutdetailserror.js +3 -0
  189. package/models/components/payoutdetailserror.js.map +1 -1
  190. package/models/components/pushdeliveryspeed.d.ts +18 -0
  191. package/models/components/pushdeliveryspeed.d.ts.map +1 -0
  192. package/models/components/pushdeliveryspeed.js +52 -0
  193. package/models/components/pushdeliveryspeed.js.map +1 -0
  194. package/models/components/pushoptions.d.ts +35 -0
  195. package/models/components/pushoptions.d.ts.map +1 -0
  196. package/models/components/{createauthorizeduser.js → pushoptions.js} +15 -17
  197. package/models/components/pushoptions.js.map +1 -0
  198. package/models/components/pushoptionserror.d.ts +19 -0
  199. package/models/components/pushoptionserror.d.ts.map +1 -0
  200. package/models/components/{authorizeduser.js → pushoptionserror.js} +14 -14
  201. package/models/components/pushoptionserror.js.map +1 -0
  202. package/models/components/pushoptionsupdate.d.ts +35 -0
  203. package/models/components/pushoptionsupdate.d.ts.map +1 -0
  204. package/models/components/{createauthorizedusererror.js → pushoptionsupdate.js} +15 -17
  205. package/models/components/pushoptionsupdate.js.map +1 -0
  206. package/models/components/requestcard.d.ts +14 -17
  207. package/models/components/requestcard.d.ts.map +1 -1
  208. package/models/components/requestcard.js +9 -10
  209. package/models/components/requestcard.js.map +1 -1
  210. package/models/components/sourcesystem.d.ts +29 -0
  211. package/models/components/sourcesystem.d.ts.map +1 -0
  212. package/models/components/sourcesystem.js +58 -0
  213. package/models/components/sourcesystem.js.map +1 -0
  214. package/models/components/termsofservice.d.ts +1 -1
  215. package/models/components/updateissuedcard.d.ts +33 -8
  216. package/models/components/updateissuedcard.d.ts.map +1 -1
  217. package/models/components/updateissuedcard.js +35 -6
  218. package/models/components/updateissuedcard.js.map +1 -1
  219. package/models/components/updatepaymentlink.d.ts +6 -0
  220. package/models/components/updatepaymentlink.d.ts.map +1 -1
  221. package/models/components/updatepaymentlink.js +3 -0
  222. package/models/components/updatepaymentlink.js.map +1 -1
  223. package/models/components/updatepaymentlinkamountdetails.d.ts +60 -5
  224. package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
  225. package/models/components/updatepaymentlinkamountdetails.js +43 -6
  226. package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
  227. package/models/components/webhookdata.d.ts +3 -2
  228. package/models/components/webhookdata.d.ts.map +1 -1
  229. package/models/components/webhookdata.js +7 -4
  230. package/models/components/webhookdata.js.map +1 -1
  231. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  232. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  233. package/models/components/{createauthorizeduserupdate.js → webhookdataauthorizationexpiring.js} +18 -17
  234. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  235. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  236. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  237. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  238. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  239. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  240. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  241. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  242. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  243. package/models/components/webhookdatasweepcreated.js +2 -0
  244. package/models/components/webhookdatasweepcreated.js.map +1 -1
  245. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  246. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  247. package/models/components/webhookdatasweepupdated.js +2 -0
  248. package/models/components/webhookdatasweepupdated.js.map +1 -1
  249. package/models/components/webhookeventtype.d.ts +1 -0
  250. package/models/components/webhookeventtype.d.ts.map +1 -1
  251. package/models/components/webhookeventtype.js +1 -0
  252. package/models/components/webhookeventtype.js.map +1 -1
  253. package/models/errors/createpaymentlinkerror.d.ts +3 -0
  254. package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
  255. package/models/errors/createpaymentlinkerror.js +6 -0
  256. package/models/errors/createpaymentlinkerror.js.map +1 -1
  257. package/models/errors/depositaccountvalidationerror.d.ts +41 -0
  258. package/models/errors/depositaccountvalidationerror.d.ts.map +1 -0
  259. package/models/errors/depositaccountvalidationerror.js +81 -0
  260. package/models/errors/depositaccountvalidationerror.js.map +1 -0
  261. package/models/errors/index.d.ts +1 -0
  262. package/models/errors/index.d.ts.map +1 -1
  263. package/models/errors/index.js +1 -0
  264. package/models/errors/index.js.map +1 -1
  265. package/models/errors/requestcarderror.d.ts +12 -12
  266. package/models/errors/requestcarderror.d.ts.map +1 -1
  267. package/models/errors/requestcarderror.js +17 -17
  268. package/models/errors/requestcarderror.js.map +1 -1
  269. package/models/errors/updateissuedcarderror.d.ts +9 -6
  270. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  271. package/models/errors/updateissuedcarderror.js +12 -9
  272. package/models/errors/updateissuedcarderror.js.map +1 -1
  273. package/models/errors/updatepaymentlinkerror.d.ts +3 -0
  274. package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
  275. package/models/errors/updatepaymentlinkerror.js +6 -0
  276. package/models/errors/updatepaymentlinkerror.js.map +1 -1
  277. package/models/operations/createdepositaccount.d.ts +44 -0
  278. package/models/operations/createdepositaccount.d.ts.map +1 -0
  279. package/models/operations/createdepositaccount.js +113 -0
  280. package/models/operations/createdepositaccount.js.map +1 -0
  281. package/models/operations/disablecapability.d.ts +7 -1
  282. package/models/operations/disablecapability.d.ts.map +1 -1
  283. package/models/operations/disablecapability.js.map +1 -1
  284. package/models/operations/getcapability.d.ts +7 -1
  285. package/models/operations/getcapability.d.ts.map +1 -1
  286. package/models/operations/getcapability.js.map +1 -1
  287. package/models/operations/index.d.ts +2 -0
  288. package/models/operations/index.d.ts.map +1 -1
  289. package/models/operations/index.js +2 -0
  290. package/models/operations/index.js.map +1 -1
  291. package/models/operations/linkbankaccount.d.ts +1 -1
  292. package/models/operations/listcancellations.d.ts +45 -0
  293. package/models/operations/listcancellations.d.ts.map +1 -0
  294. package/models/operations/listcancellations.js +91 -0
  295. package/models/operations/listcancellations.js.map +1 -0
  296. package/models/operations/listissuedcards.d.ts +1 -1
  297. package/package.json +1 -1
  298. package/sdk/accounts.d.ts +8 -10
  299. package/sdk/accounts.d.ts.map +1 -1
  300. package/sdk/accounts.js +8 -10
  301. package/sdk/accounts.js.map +1 -1
  302. package/sdk/bankaccounts.d.ts +1 -1
  303. package/sdk/bankaccounts.js +1 -1
  304. package/sdk/capabilities.d.ts +4 -4
  305. package/sdk/capabilities.js +4 -4
  306. package/sdk/depositview.d.ts +16 -0
  307. package/sdk/depositview.d.ts.map +1 -0
  308. package/sdk/depositview.js +26 -0
  309. package/sdk/depositview.js.map +1 -0
  310. package/sdk/sdk.d.ts +3 -0
  311. package/sdk/sdk.d.ts.map +1 -1
  312. package/sdk/sdk.js +4 -0
  313. package/sdk/sdk.js.map +1 -1
  314. package/sdk/transfers.d.ts +7 -0
  315. package/sdk/transfers.d.ts.map +1 -1
  316. package/sdk/transfers.js +10 -0
  317. package/sdk/transfers.js.map +1 -1
  318. package/src/funcs/accountsCreate.ts +8 -10
  319. package/src/funcs/bankAccountsLink.ts +1 -1
  320. package/src/funcs/capabilitiesDisable.ts +1 -1
  321. package/src/funcs/capabilitiesGet.ts +1 -1
  322. package/src/funcs/capabilitiesList.ts +1 -1
  323. package/src/funcs/capabilitiesRequest.ts +1 -1
  324. package/src/funcs/cardIssuingGet.ts +1 -1
  325. package/src/funcs/cardIssuingGetFull.ts +3 -3
  326. package/src/funcs/cardIssuingList.ts +1 -1
  327. package/src/funcs/cardIssuingRequest.ts +1 -1
  328. package/src/funcs/cardIssuingUpdate.ts +1 -1
  329. package/src/funcs/depositViewCreate.ts +201 -0
  330. package/src/funcs/transfersListCancellations.ts +181 -0
  331. package/src/hooks/types.ts +1 -0
  332. package/src/lib/config.ts +3 -3
  333. package/src/lib/encodings.ts +1 -1
  334. package/src/lib/matchers.ts +1 -1
  335. package/src/lib/primitives.ts +16 -0
  336. package/src/lib/retries.ts +8 -0
  337. package/src/lib/sdks.ts +54 -17
  338. package/src/mcp-server/mcp-server.ts +1 -1
  339. package/src/mcp-server/server.ts +5 -1
  340. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  341. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  342. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  343. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  344. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  345. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  346. package/src/mcp-server/tools/depositViewCreate.ts +43 -0
  347. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  348. package/src/models/components/addcapabilities.ts +9 -0
  349. package/src/models/components/amountdecimalrange.ts +20 -8
  350. package/src/models/components/amountdecimalrangeupdate.ts +11 -0
  351. package/src/models/components/capability.ts +7 -1
  352. package/src/models/components/capabilityid.ts +15 -2
  353. package/src/models/components/cardtransactiondetails.ts +11 -0
  354. package/src/models/components/cardtransactionstatus.ts +1 -0
  355. package/src/models/components/createaccount.ts +9 -0
  356. package/src/models/components/createpaymentlink.ts +21 -3
  357. package/src/models/components/createtransferdestinationcard.ts +7 -0
  358. package/src/models/components/customamountpaymentdetailserror.ts +86 -0
  359. package/src/models/components/depositaccountingestedresponse.ts +86 -0
  360. package/src/models/components/fullissuedcard.ts +36 -20
  361. package/src/models/components/index.ts +10 -4
  362. package/src/models/components/invoice.ts +7 -0
  363. package/src/models/components/issuedcard.ts +36 -20
  364. package/src/models/components/issuedcardstate.ts +2 -8
  365. package/src/models/components/manualtermsofservice.ts +1 -1
  366. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  367. package/src/models/components/onboardinginvite.ts +1 -1
  368. package/src/models/components/onboardinginviterequest.ts +1 -1
  369. package/src/models/components/patchtransfer.ts +7 -4
  370. package/src/models/components/patchwallet.ts +8 -11
  371. package/src/models/components/paymentlink.ts +25 -2
  372. package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
  373. package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
  374. package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
  375. package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
  376. package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
  377. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
  378. package/src/models/components/paymentlinktype.ts +1 -0
  379. package/src/models/components/paymentmethodscard.ts +10 -0
  380. package/src/models/components/payoutdetailserror.ts +10 -0
  381. package/src/models/components/pushdeliveryspeed.ts +32 -0
  382. package/src/models/components/pushoptions.ts +72 -0
  383. package/src/models/components/pushoptionserror.ts +56 -0
  384. package/src/models/components/pushoptionsupdate.ts +76 -0
  385. package/src/models/components/requestcard.ts +23 -34
  386. package/src/models/components/sourcesystem.ts +43 -0
  387. package/src/models/components/termsofservice.ts +1 -1
  388. package/src/models/components/updateissuedcard.ts +73 -17
  389. package/src/models/components/updatepaymentlink.ts +18 -0
  390. package/src/models/components/updatepaymentlinkamountdetails.ts +114 -14
  391. package/src/models/components/webhookdata.ts +18 -8
  392. package/src/models/components/webhookdataauthorizationexpiring.ts +66 -0
  393. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  394. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  395. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  396. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  397. package/src/models/components/webhookeventtype.ts +1 -0
  398. package/src/models/errors/createpaymentlinkerror.ts +13 -0
  399. package/src/models/errors/depositaccountvalidationerror.ts +86 -0
  400. package/src/models/errors/index.ts +1 -0
  401. package/src/models/errors/requestcarderror.ts +26 -27
  402. package/src/models/errors/updateissuedcarderror.ts +18 -15
  403. package/src/models/errors/updatepaymentlinkerror.ts +13 -0
  404. package/src/models/operations/createdepositaccount.ts +146 -0
  405. package/src/models/operations/disablecapability.ts +7 -1
  406. package/src/models/operations/getcapability.ts +7 -1
  407. package/src/models/operations/index.ts +2 -0
  408. package/src/models/operations/linkbankaccount.ts +1 -1
  409. package/src/models/operations/listcancellations.ts +121 -0
  410. package/src/models/operations/listissuedcards.ts +1 -1
  411. package/src/sdk/accounts.ts +8 -10
  412. package/src/sdk/bankaccounts.ts +1 -1
  413. package/src/sdk/capabilities.ts +4 -4
  414. package/src/sdk/depositview.ts +31 -0
  415. package/src/sdk/sdk.ts +6 -0
  416. package/src/sdk/transfers.ts +18 -0
  417. package/lib/dlv.d.ts +0 -14
  418. package/lib/dlv.d.ts.map +0 -1
  419. package/lib/dlv.js +0 -49
  420. package/lib/dlv.js.map +0 -1
  421. package/lib/is-plain-object.d.ts +0 -2
  422. package/lib/is-plain-object.d.ts.map +0 -1
  423. package/lib/is-plain-object.js +0 -41
  424. package/lib/is-plain-object.js.map +0 -1
  425. package/models/components/authorizeduser.d.ts +0 -22
  426. package/models/components/authorizeduser.d.ts.map +0 -1
  427. package/models/components/authorizeduser.js.map +0 -1
  428. package/models/components/createauthorizeduser.d.ts +0 -25
  429. package/models/components/createauthorizeduser.d.ts.map +0 -1
  430. package/models/components/createauthorizeduser.js.map +0 -1
  431. package/models/components/createauthorizedusererror.d.ts +0 -22
  432. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  433. package/models/components/createauthorizedusererror.js.map +0 -1
  434. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  435. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  436. package/models/components/createauthorizeduserupdate.js.map +0 -1
  437. package/src/lib/dlv.ts +0 -53
  438. package/src/lib/is-plain-object.ts +0 -43
  439. package/src/models/components/authorizeduser.ts +0 -55
  440. package/src/models/components/createauthorizeduser.ts +0 -69
  441. package/src/models/components/createauthorizedusererror.ts +0 -66
  442. package/src/models/components/createauthorizeduserupdate.ts +0 -69
@@ -8,19 +8,19 @@ import * as components from "../components/index.js";
8
8
  import { MoovError } from "./mooverror.js";
9
9
 
10
10
  export type RequestCardErrorData = {
11
- fundingWalletID?: string | undefined;
12
- formFactor?: string | undefined;
13
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
14
- memo?: string | undefined;
11
+ authorizedUserAccountID?: string | undefined;
12
+ nickname?: string | undefined;
13
+ metadata?: string | undefined;
14
+ billingAddress?: components.AddressError | undefined;
15
15
  expiration?: components.CardExpirationError | undefined;
16
16
  controls?: components.IssuingControlsError | undefined;
17
17
  };
18
18
 
19
19
  export class RequestCardError extends MoovError {
20
- fundingWalletID?: string | undefined;
21
- formFactor?: string | undefined;
22
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
23
- memo?: string | undefined;
20
+ authorizedUserAccountID?: string | undefined;
21
+ nickname?: string | undefined;
22
+ metadata?: string | undefined;
23
+ billingAddress?: components.AddressError | undefined;
24
24
  expiration?: components.CardExpirationError | undefined;
25
25
  controls?: components.IssuingControlsError | undefined;
26
26
 
@@ -36,10 +36,12 @@ export class RequestCardError extends MoovError {
36
36
  : `API error occurred: ${JSON.stringify(err)}`;
37
37
  super(message, httpMeta);
38
38
  this.data$ = err;
39
- if (err.fundingWalletID != null) this.fundingWalletID = err.fundingWalletID;
40
- if (err.formFactor != null) this.formFactor = err.formFactor;
41
- if (err.authorizedUser != null) this.authorizedUser = err.authorizedUser;
42
- if (err.memo != null) this.memo = err.memo;
39
+ if (err.authorizedUserAccountID != null) {
40
+ this.authorizedUserAccountID = err.authorizedUserAccountID;
41
+ }
42
+ if (err.nickname != null) this.nickname = err.nickname;
43
+ if (err.metadata != null) this.metadata = err.metadata;
44
+ if (err.billingAddress != null) this.billingAddress = err.billingAddress;
43
45
  if (err.expiration != null) this.expiration = err.expiration;
44
46
  if (err.controls != null) this.controls = err.controls;
45
47
 
@@ -53,12 +55,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
53
55
  z.ZodTypeDef,
54
56
  unknown
55
57
  > = z.object({
56
- fundingWalletID: types.optional(types.string()),
57
- formFactor: types.optional(types.string()),
58
- authorizedUser: types.optional(
59
- components.CreateAuthorizedUserError$inboundSchema,
60
- ),
61
- memo: types.optional(types.string()),
58
+ authorizedUserAccountID: types.optional(types.string()),
59
+ nickname: types.optional(types.string()),
60
+ metadata: types.optional(types.string()),
61
+ billingAddress: types.optional(components.AddressError$inboundSchema),
62
62
  expiration: types.optional(components.CardExpirationError$inboundSchema),
63
63
  controls: types.optional(components.IssuingControlsError$inboundSchema),
64
64
  request$: z.instanceof(Request),
@@ -75,10 +75,10 @@ export const RequestCardError$inboundSchema: z.ZodType<
75
75
 
76
76
  /** @internal */
77
77
  export type RequestCardError$Outbound = {
78
- fundingWalletID?: string | undefined;
79
- formFactor?: string | undefined;
80
- authorizedUser?: components.CreateAuthorizedUserError$Outbound | undefined;
81
- memo?: string | undefined;
78
+ authorizedUserAccountID?: string | undefined;
79
+ nickname?: string | undefined;
80
+ metadata?: string | undefined;
81
+ billingAddress?: components.AddressError$Outbound | undefined;
82
82
  expiration?: components.CardExpirationError$Outbound | undefined;
83
83
  controls?: components.IssuingControlsError$Outbound | undefined;
84
84
  };
@@ -91,11 +91,10 @@ export const RequestCardError$outboundSchema: z.ZodType<
91
91
  > = z.instanceof(RequestCardError)
92
92
  .transform(v => v.data$)
93
93
  .pipe(z.object({
94
- fundingWalletID: z.string().optional(),
95
- formFactor: z.string().optional(),
96
- authorizedUser: components.CreateAuthorizedUserError$outboundSchema
97
- .optional(),
98
- memo: z.string().optional(),
94
+ authorizedUserAccountID: z.string().optional(),
95
+ nickname: z.string().optional(),
96
+ metadata: z.string().optional(),
97
+ billingAddress: components.AddressError$outboundSchema.optional(),
99
98
  expiration: components.CardExpirationError$outboundSchema.optional(),
100
99
  controls: components.IssuingControlsError$outboundSchema.optional(),
101
100
  }));
@@ -9,14 +9,16 @@ import { MoovError } from "./mooverror.js";
9
9
 
10
10
  export type UpdateIssuedCardErrorData = {
11
11
  state?: string | undefined;
12
- memo?: string | undefined;
13
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
12
+ nickname?: string | undefined;
13
+ metadata?: string | undefined;
14
+ billingAddress?: components.AddressError | undefined;
14
15
  };
15
16
 
16
17
  export class UpdateIssuedCardError extends MoovError {
17
18
  state?: string | undefined;
18
- memo?: string | undefined;
19
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
19
+ nickname?: string | undefined;
20
+ metadata?: string | undefined;
21
+ billingAddress?: components.AddressError | undefined;
20
22
 
21
23
  /** The original data that was passed to this error instance. */
22
24
  data$: UpdateIssuedCardErrorData;
@@ -31,8 +33,9 @@ export class UpdateIssuedCardError extends MoovError {
31
33
  super(message, httpMeta);
32
34
  this.data$ = err;
33
35
  if (err.state != null) this.state = err.state;
34
- if (err.memo != null) this.memo = err.memo;
35
- if (err.authorizedUser != null) this.authorizedUser = err.authorizedUser;
36
+ if (err.nickname != null) this.nickname = err.nickname;
37
+ if (err.metadata != null) this.metadata = err.metadata;
38
+ if (err.billingAddress != null) this.billingAddress = err.billingAddress;
36
39
 
37
40
  this.name = "UpdateIssuedCardError";
38
41
  }
@@ -45,10 +48,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
45
48
  unknown
46
49
  > = z.object({
47
50
  state: types.optional(types.string()),
48
- memo: types.optional(types.string()),
49
- authorizedUser: types.optional(
50
- components.CreateAuthorizedUserError$inboundSchema,
51
- ),
51
+ nickname: types.optional(types.string()),
52
+ metadata: types.optional(types.string()),
53
+ billingAddress: types.optional(components.AddressError$inboundSchema),
52
54
  request$: z.instanceof(Request),
53
55
  response$: z.instanceof(Response),
54
56
  body$: z.string(),
@@ -64,8 +66,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
64
66
  /** @internal */
65
67
  export type UpdateIssuedCardError$Outbound = {
66
68
  state?: string | undefined;
67
- memo?: string | undefined;
68
- authorizedUser?: components.CreateAuthorizedUserError$Outbound | undefined;
69
+ nickname?: string | undefined;
70
+ metadata?: string | undefined;
71
+ billingAddress?: components.AddressError$Outbound | undefined;
69
72
  };
70
73
 
71
74
  /** @internal */
@@ -77,7 +80,7 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
77
80
  .transform(v => v.data$)
78
81
  .pipe(z.object({
79
82
  state: z.string().optional(),
80
- memo: z.string().optional(),
81
- authorizedUser: components.CreateAuthorizedUserError$outboundSchema
82
- .optional(),
83
+ nickname: z.string().optional(),
84
+ metadata: z.string().optional(),
85
+ billingAddress: components.AddressError$outboundSchema.optional(),
83
86
  }));
@@ -13,6 +13,7 @@ export type UpdatePaymentLinkErrorData = {
13
13
  display?: components.DisplayOptionsError | undefined;
14
14
  payment?: components.PaymentDetailsError | undefined;
15
15
  payout?: components.PayoutDetailsError | undefined;
16
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
16
17
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
17
18
  amountDetails?:
18
19
  | components.UpdatePaymentLinkAmountDetailsValidationError
@@ -25,6 +26,7 @@ export class UpdatePaymentLinkError extends MoovError {
25
26
  display?: components.DisplayOptionsError | undefined;
26
27
  payment?: components.PaymentDetailsError | undefined;
27
28
  payout?: components.PayoutDetailsError | undefined;
29
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
28
30
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
29
31
  amountDetails?:
30
32
  | components.UpdatePaymentLinkAmountDetailsValidationError
@@ -47,6 +49,9 @@ export class UpdatePaymentLinkError extends MoovError {
47
49
  if (err.display != null) this.display = err.display;
48
50
  if (err.payment != null) this.payment = err.payment;
49
51
  if (err.payout != null) this.payout = err.payout;
52
+ if (err.customAmountPayment != null) {
53
+ this.customAmountPayment = err.customAmountPayment;
54
+ }
50
55
  if (err.lineItems != null) this.lineItems = err.lineItems;
51
56
  if (err.amountDetails != null) this.amountDetails = err.amountDetails;
52
57
 
@@ -65,6 +70,9 @@ export const UpdatePaymentLinkError$inboundSchema: z.ZodType<
65
70
  display: types.optional(components.DisplayOptionsError$inboundSchema),
66
71
  payment: types.optional(components.PaymentDetailsError$inboundSchema),
67
72
  payout: types.optional(components.PayoutDetailsError$inboundSchema),
73
+ customAmountPayment: types.optional(
74
+ components.CustomAmountPaymentDetailsError$inboundSchema,
75
+ ),
68
76
  lineItems: types.optional(
69
77
  components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
70
78
  ),
@@ -90,6 +98,9 @@ export type UpdatePaymentLinkError$Outbound = {
90
98
  display?: components.DisplayOptionsError$Outbound | undefined;
91
99
  payment?: components.PaymentDetailsError$Outbound | undefined;
92
100
  payout?: components.PayoutDetailsError$Outbound | undefined;
101
+ customAmountPayment?:
102
+ | components.CustomAmountPaymentDetailsError$Outbound
103
+ | undefined;
93
104
  lineItems?:
94
105
  | components.CreatePaymentLinkLineItemsValidationError$Outbound
95
106
  | undefined;
@@ -111,6 +122,8 @@ export const UpdatePaymentLinkError$outboundSchema: z.ZodType<
111
122
  display: components.DisplayOptionsError$outboundSchema.optional(),
112
123
  payment: components.PaymentDetailsError$outboundSchema.optional(),
113
124
  payout: components.PayoutDetailsError$outboundSchema.optional(),
125
+ customAmountPayment: components
126
+ .CustomAmountPaymentDetailsError$outboundSchema.optional(),
114
127
  lineItems: components
115
128
  .CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
116
129
  amountDetails: components
@@ -0,0 +1,146 @@
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 * as types from "../../types/primitives.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type CreateDepositAccountRequest = {
14
+ accountID: string;
15
+ /**
16
+ * Identifies the core banking source system that produced the request body.
17
+ */
18
+ xSourceSystem: components.SourceSystem;
19
+ requestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
20
+ };
21
+
22
+ export type CreateDepositAccountResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ result: components.DepositAccountIngestedResponse;
25
+ };
26
+
27
+ /** @internal */
28
+ export const CreateDepositAccountRequest$inboundSchema: z.ZodType<
29
+ CreateDepositAccountRequest,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ accountID: types.string(),
34
+ "X-Source-System": components.SourceSystem$inboundSchema,
35
+ RequestBody: z.union([
36
+ z.instanceof(ReadableStream<Uint8Array>),
37
+ z.instanceof(Blob),
38
+ z.instanceof(ArrayBuffer),
39
+ z.instanceof(Uint8Array),
40
+ ]),
41
+ }).transform((v) => {
42
+ return remap$(v, {
43
+ "X-Source-System": "xSourceSystem",
44
+ "RequestBody": "requestBody",
45
+ });
46
+ });
47
+ /** @internal */
48
+ export type CreateDepositAccountRequest$Outbound = {
49
+ accountID: string;
50
+ "X-Source-System": string;
51
+ RequestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
52
+ };
53
+
54
+ /** @internal */
55
+ export const CreateDepositAccountRequest$outboundSchema: z.ZodType<
56
+ CreateDepositAccountRequest$Outbound,
57
+ z.ZodTypeDef,
58
+ CreateDepositAccountRequest
59
+ > = z.object({
60
+ accountID: z.string(),
61
+ xSourceSystem: components.SourceSystem$outboundSchema,
62
+ requestBody: z.union([
63
+ z.instanceof(ReadableStream<Uint8Array>),
64
+ z.instanceof(Blob),
65
+ z.instanceof(ArrayBuffer),
66
+ z.instanceof(Uint8Array),
67
+ ]),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ xSourceSystem: "X-Source-System",
71
+ requestBody: "RequestBody",
72
+ });
73
+ });
74
+
75
+ export function createDepositAccountRequestToJSON(
76
+ createDepositAccountRequest: CreateDepositAccountRequest,
77
+ ): string {
78
+ return JSON.stringify(
79
+ CreateDepositAccountRequest$outboundSchema.parse(
80
+ createDepositAccountRequest,
81
+ ),
82
+ );
83
+ }
84
+ export function createDepositAccountRequestFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<CreateDepositAccountRequest, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => CreateDepositAccountRequest$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'CreateDepositAccountRequest' from JSON`,
91
+ );
92
+ }
93
+
94
+ /** @internal */
95
+ export const CreateDepositAccountResponse$inboundSchema: z.ZodType<
96
+ CreateDepositAccountResponse,
97
+ z.ZodTypeDef,
98
+ unknown
99
+ > = z.object({
100
+ Headers: z.record(z.array(z.string())).default({}),
101
+ Result: components.DepositAccountIngestedResponse$inboundSchema,
102
+ }).transform((v) => {
103
+ return remap$(v, {
104
+ "Headers": "headers",
105
+ "Result": "result",
106
+ });
107
+ });
108
+ /** @internal */
109
+ export type CreateDepositAccountResponse$Outbound = {
110
+ Headers: { [k: string]: Array<string> };
111
+ Result: components.DepositAccountIngestedResponse$Outbound;
112
+ };
113
+
114
+ /** @internal */
115
+ export const CreateDepositAccountResponse$outboundSchema: z.ZodType<
116
+ CreateDepositAccountResponse$Outbound,
117
+ z.ZodTypeDef,
118
+ CreateDepositAccountResponse
119
+ > = z.object({
120
+ headers: z.record(z.array(z.string())),
121
+ result: components.DepositAccountIngestedResponse$outboundSchema,
122
+ }).transform((v) => {
123
+ return remap$(v, {
124
+ headers: "Headers",
125
+ result: "Result",
126
+ });
127
+ });
128
+
129
+ export function createDepositAccountResponseToJSON(
130
+ createDepositAccountResponse: CreateDepositAccountResponse,
131
+ ): string {
132
+ return JSON.stringify(
133
+ CreateDepositAccountResponse$outboundSchema.parse(
134
+ createDepositAccountResponse,
135
+ ),
136
+ );
137
+ }
138
+ export function createDepositAccountResponseFromJSON(
139
+ jsonString: string,
140
+ ): SafeParseResult<CreateDepositAccountResponse, SDKValidationError> {
141
+ return safeParse(
142
+ jsonString,
143
+ (x) => CreateDepositAccountResponse$inboundSchema.parse(JSON.parse(x)),
144
+ `Failed to parse 'CreateDepositAccountResponse' from JSON`,
145
+ );
146
+ }
@@ -17,7 +17,13 @@ export type DisableCapabilityRequest = {
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
20
+ * **Deprecated capabilities**
21
+ *
22
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
23
+ *
24
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
25
+ *
26
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
21
27
  */
22
28
  capabilityID: components.CapabilityID;
23
29
  };
@@ -17,7 +17,13 @@ export type GetCapabilityRequest = {
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
20
+ * **Deprecated capabilities**
21
+ *
22
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
23
+ *
24
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
25
+ *
26
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
21
27
  */
22
28
  capabilityID: components.CapabilityID;
23
29
  };
@@ -14,6 +14,7 @@ export * from "./createaccount.js";
14
14
  export * from "./createapplepaysession.js";
15
15
  export * from "./createbrand.js";
16
16
  export * from "./createcancellation.js";
17
+ export * from "./createdepositaccount.js";
17
18
  export * from "./createfeeplanagreements.js";
18
19
  export * from "./createinvoice.js";
19
20
  export * from "./createinvoicepayment.js";
@@ -112,6 +113,7 @@ export * from "./listaccounts.js";
112
113
  export * from "./listaccountterminalapplications.js";
113
114
  export * from "./listadjustments.js";
114
115
  export * from "./listbankaccounts.js";
116
+ export * from "./listcancellations.js";
115
117
  export * from "./listcapabilities.js";
116
118
  export * from "./listcards.js";
117
119
  export * from "./listconnectedaccountsforaccount.js";
@@ -17,7 +17,7 @@ export type LinkBankAccountRequest = {
17
17
  * @remarks
18
18
  *
19
19
  * When this header is set to `payment-method`, the response will include any payment methods that were created for the newly
20
- * linked card in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
20
+ * linked bank account in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.
21
21
  */
22
22
  xWaitFor?: components.BankAccountWaitFor | undefined;
23
23
  accountID: string;
@@ -0,0 +1,121 @@
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 * as types from "../../types/primitives.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type ListCancellationsRequest = {
14
+ /**
15
+ * Moov account ID of the partner or transfer's source or destination.
16
+ */
17
+ accountID: string;
18
+ /**
19
+ * Identifier for the transfer.
20
+ */
21
+ transferID: string;
22
+ };
23
+
24
+ export type ListCancellationsResponse = {
25
+ headers: { [k: string]: Array<string> };
26
+ result: Array<components.Cancellation>;
27
+ };
28
+
29
+ /** @internal */
30
+ export const ListCancellationsRequest$inboundSchema: z.ZodType<
31
+ ListCancellationsRequest,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ accountID: types.string(),
36
+ transferID: types.string(),
37
+ });
38
+ /** @internal */
39
+ export type ListCancellationsRequest$Outbound = {
40
+ accountID: string;
41
+ transferID: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const ListCancellationsRequest$outboundSchema: z.ZodType<
46
+ ListCancellationsRequest$Outbound,
47
+ z.ZodTypeDef,
48
+ ListCancellationsRequest
49
+ > = z.object({
50
+ accountID: z.string(),
51
+ transferID: z.string(),
52
+ });
53
+
54
+ export function listCancellationsRequestToJSON(
55
+ listCancellationsRequest: ListCancellationsRequest,
56
+ ): string {
57
+ return JSON.stringify(
58
+ ListCancellationsRequest$outboundSchema.parse(listCancellationsRequest),
59
+ );
60
+ }
61
+ export function listCancellationsRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<ListCancellationsRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => ListCancellationsRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'ListCancellationsRequest' from JSON`,
68
+ );
69
+ }
70
+
71
+ /** @internal */
72
+ export const ListCancellationsResponse$inboundSchema: z.ZodType<
73
+ ListCancellationsResponse,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({
77
+ Headers: z.record(z.array(z.string())).default({}),
78
+ Result: z.array(components.Cancellation$inboundSchema),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ "Headers": "headers",
82
+ "Result": "result",
83
+ });
84
+ });
85
+ /** @internal */
86
+ export type ListCancellationsResponse$Outbound = {
87
+ Headers: { [k: string]: Array<string> };
88
+ Result: Array<components.Cancellation$Outbound>;
89
+ };
90
+
91
+ /** @internal */
92
+ export const ListCancellationsResponse$outboundSchema: z.ZodType<
93
+ ListCancellationsResponse$Outbound,
94
+ z.ZodTypeDef,
95
+ ListCancellationsResponse
96
+ > = z.object({
97
+ headers: z.record(z.array(z.string())),
98
+ result: z.array(components.Cancellation$outboundSchema),
99
+ }).transform((v) => {
100
+ return remap$(v, {
101
+ headers: "Headers",
102
+ result: "Result",
103
+ });
104
+ });
105
+
106
+ export function listCancellationsResponseToJSON(
107
+ listCancellationsResponse: ListCancellationsResponse,
108
+ ): string {
109
+ return JSON.stringify(
110
+ ListCancellationsResponse$outboundSchema.parse(listCancellationsResponse),
111
+ );
112
+ }
113
+ export function listCancellationsResponseFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<ListCancellationsResponse, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => ListCancellationsResponse$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'ListCancellationsResponse' from JSON`,
120
+ );
121
+ }
@@ -18,7 +18,7 @@ export type ListIssuedCardsRequest = {
18
18
  skip?: number | undefined;
19
19
  count?: number | undefined;
20
20
  /**
21
- * Optional, comma-separated states to filter the Moov list issued cards response. For example `active,pending-verification`
21
+ * Optional, comma-separated states to filter the Moov list issued cards response. For example `active,closed`
22
22
  */
23
23
  states?: Array<components.IssuedCardState> | undefined;
24
24
  };
@@ -20,21 +20,19 @@ import { unwrapAsync } from "../types/fp.js";
20
20
 
21
21
  export class Accounts extends ClientSDK {
22
22
  /**
23
- * You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
24
- * information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
23
+ * You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
25
24
  *
26
- * If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
27
- * + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
28
- * This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
29
- * If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
25
+ * The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
26
+ * + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
27
+ * + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
28
+ *
29
+ * If you're creating a business account, depending on the business type, you'll also need to:
30
30
  * + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
31
31
  * + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
32
32
  *
33
- * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
34
- * Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
33
+ * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
35
34
  *
36
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
37
- * to specify the `/accounts.write` scope.
35
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
38
36
  */
39
37
  async create(
40
38
  request: components.CreateAccount,
@@ -20,7 +20,7 @@ export class BankAccounts extends ClientSDK {
20
20
  * Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
21
21
  *
22
22
  * It is strongly recommended that callers include the `X-Wait-For` header, set to `payment-method`, if the newly linked
23
- * bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
23
+ * bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
24
24
  * Methods](https://docs.moov.io/api/sources/payment-methods/list/)
25
25
  * endpoint to wait for the new payment methods to be available for use.
26
26
  *
@@ -14,7 +14,7 @@ export class Capabilities extends ClientSDK {
14
14
  /**
15
15
  * Retrieve all the capabilities an account has requested.
16
16
  *
17
- * Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
17
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
18
18
  *
19
19
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
20
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -31,7 +31,7 @@ export class Capabilities extends ClientSDK {
31
31
  }
32
32
 
33
33
  /**
34
- * Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
34
+ * Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
35
35
  *
36
36
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
37
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -48,7 +48,7 @@ export class Capabilities extends ClientSDK {
48
48
  }
49
49
 
50
50
  /**
51
- * Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
51
+ * Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
52
52
  *
53
53
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
54
54
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -65,7 +65,7 @@ export class Capabilities extends ClientSDK {
65
65
  }
66
66
 
67
67
  /**
68
- * Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
68
+ * Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
69
69
  *
70
70
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71
71
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { depositViewCreate } from "../funcs/depositViewCreate.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class DepositView extends ClientSDK {
11
+ /**
12
+ * Ingest a deposit account into the deposit view from a core banking source system.
13
+ *
14
+ * The request body is a raw byte payload whose format depends on the core banking
15
+ * system that produced it. Set the `X-Source-System` header to identify that system
16
+ * so the payload can be parsed correctly.
17
+ *
18
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
+ * you'll need to specify the `/accounts/{accountID}/profile.write` scope.
20
+ */
21
+ async create(
22
+ request: operations.CreateDepositAccountRequest,
23
+ options?: RequestOptions,
24
+ ): Promise<operations.CreateDepositAccountResponse> {
25
+ return unwrapAsync(depositViewCreate(
26
+ this,
27
+ request,
28
+ options,
29
+ ));
30
+ }
31
+ }