@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
package/src/lib/sdks.ts CHANGED
@@ -23,6 +23,7 @@ import {
23
23
  matchContentType,
24
24
  } from "./http.js";
25
25
  import { Logger } from "./logger.js";
26
+ import { combineSignals } from "./primitives.js";
26
27
  import { retry, RetryConfig } from "./retries.js";
27
28
  import { SecurityState } from "./security.js";
28
29
 
@@ -127,27 +128,55 @@ export class ClientSDK {
127
128
  if (path) {
128
129
  baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
129
130
  reqURL = new URL(path, baseURL);
131
+ if (!reqURL.search && baseURL.search) {
132
+ reqURL.search = baseURL.search;
133
+ }
130
134
  } else {
131
135
  reqURL = baseURL;
132
136
  }
133
137
  reqURL.hash = "";
134
138
 
135
- let finalQuery = query || "";
136
-
137
- const secQuery: string[] = [];
138
- for (const [k, v] of Object.entries(security?.queryParams || {})) {
139
- const q = encodeForm(k, v, { charEncoding: "percent" });
140
- if (typeof q !== "undefined") {
141
- secQuery.push(q);
139
+ // Appends already-encoded query pairs to a query string, replacing any
140
+ // existing pairs with the same key so later sources take precedence.
141
+ const mergeQuery = (current: string, additions: string): string => {
142
+ if (!additions) {
143
+ return current;
142
144
  }
143
- }
144
- if (secQuery.length) {
145
- finalQuery += `&${secQuery.join("&")}`;
146
- }
145
+ const additionKeys = new Set(
146
+ additions
147
+ .split("&")
148
+ .filter((pair) => pair !== "")
149
+ .map((pair) => pair.split("=")[0] ?? ""),
150
+ );
151
+ const kept = current.split("&").filter((pair) => {
152
+ return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
153
+ });
154
+ return [...kept, additions].join("&");
155
+ };
156
+
157
+ const encodeQueryRecord = (record: Record<string, unknown>): string => {
158
+ return Object.entries(record)
159
+ .map(([k, v]) => {
160
+ if (v == null) {
161
+ return undefined;
162
+ }
163
+ const value = v;
164
+ return encodeForm(k, value, {
165
+ explode: Array.isArray(value),
166
+ charEncoding: "percent",
167
+ });
168
+ })
169
+ .filter((pair): pair is string => typeof pair !== "undefined")
170
+ .join("&");
171
+ };
172
+
173
+ const finalQuery = [
174
+ query || "",
175
+ encodeQueryRecord(security?.queryParams || {}),
176
+ ].reduce(mergeQuery, reqURL.search.slice(1));
147
177
 
148
178
  if (finalQuery) {
149
- const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery;
150
- reqURL.search = `?${q}`;
179
+ reqURL.search = `?${finalQuery}`;
151
180
  }
152
181
 
153
182
  const headers = new Headers(opHeaders);
@@ -193,9 +222,8 @@ export class ClientSDK {
193
222
  ...options?.fetchOptions,
194
223
  ...options,
195
224
  };
196
- if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
197
- const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
198
- fetchOptions.signal = timeoutSignal;
225
+ if (!fetchOptions?.signal && conf.timeoutMs != null && conf.timeoutMs > 0) {
226
+ context.timeoutMs = conf.timeoutMs;
199
227
  }
200
228
 
201
229
  if (conf.body instanceof ReadableStream) {
@@ -242,10 +270,19 @@ export class ClientSDK {
242
270
  >
243
271
  > {
244
272
  const { context, isErrorStatusCode } = options;
273
+ const timeoutMs = context.timeoutMs;
245
274
 
246
275
  return retry(
247
276
  async () => {
248
- const req = await this.#hooks.beforeRequest(context, request.clone());
277
+ const cloned = request.clone();
278
+ let attempt = cloned;
279
+ if (timeoutMs != null && timeoutMs > 0) {
280
+ const timeoutSignal = AbortSignal.timeout(timeoutMs);
281
+ const combined = combineSignals(cloned.signal, timeoutSignal)
282
+ ?? timeoutSignal;
283
+ attempt = new Request(cloned, { signal: combined });
284
+ }
285
+ const req = await this.#hooks.beforeRequest(context, attempt);
249
286
  await logRequest(this.#logger, req).catch((e) =>
250
287
  this.#logger?.log("Failed to log request:", e)
251
288
  );
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "26.7.0-dev.3",
22
+ currentVersion: "26.7.0-dev.5",
23
23
  },
24
24
  });
25
25
 
@@ -65,6 +65,7 @@ import { tool$cardsGetMetadata } from "./tools/cardsGetMetadata.js";
65
65
  import { tool$cardsLink } from "./tools/cardsLink.js";
66
66
  import { tool$cardsList } from "./tools/cardsList.js";
67
67
  import { tool$cardsUpdate } from "./tools/cardsUpdate.js";
68
+ import { tool$depositViewCreate } from "./tools/depositViewCreate.js";
68
69
  import { tool$disputesAccept } from "./tools/disputesAccept.js";
69
70
  import { tool$disputesDeleteEvidence } from "./tools/disputesDeleteEvidence.js";
70
71
  import { tool$disputesGet } from "./tools/disputesGet.js";
@@ -182,6 +183,7 @@ import { tool$transfersGetCancellation } from "./tools/transfersGetCancellation.
182
183
  import { tool$transfersGetRefund } from "./tools/transfersGetRefund.js";
183
184
  import { tool$transfersInitiateRefund } from "./tools/transfersInitiateRefund.js";
184
185
  import { tool$transfersList } from "./tools/transfersList.js";
186
+ import { tool$transfersListCancellations } from "./tools/transfersListCancellations.js";
185
187
  import { tool$transfersListRefunds } from "./tools/transfersListRefunds.js";
186
188
  import { tool$transfersUpdate } from "./tools/transfersUpdate.js";
187
189
  import { tool$underwritingGet } from "./tools/underwritingGet.js";
@@ -213,7 +215,7 @@ export function createMCPServer(deps: {
213
215
  }) {
214
216
  const server = new McpServer({
215
217
  name: "Moov",
216
- version: "26.7.0-dev.3",
218
+ version: "26.7.0-dev.5",
217
219
  });
218
220
 
219
221
  const client = new MoovCore({
@@ -378,6 +380,7 @@ export function createMCPServer(deps: {
378
380
  tool(tool$transfersGet);
379
381
  tool(tool$transfersUpdate);
380
382
  tool(tool$transfersCreateCancellation);
383
+ tool(tool$transfersListCancellations);
381
384
  tool(tool$transfersGetCancellation);
382
385
  tool(tool$transfersInitiateRefund);
383
386
  tool(tool$transfersListRefunds);
@@ -432,6 +435,7 @@ export function createMCPServer(deps: {
432
435
  tool(tool$terminalApplicationsGet);
433
436
  tool(tool$terminalApplicationsDelete);
434
437
  tool(tool$terminalApplicationsCreateVersion);
438
+ tool(tool$depositViewCreate);
435
439
 
436
440
  return server;
437
441
  }
@@ -13,21 +13,19 @@ const args = {
13
13
  export const tool$accountsCreate: ToolDefinition<typeof args> = {
14
14
  name: "accounts-create",
15
15
  description:
16
- `You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
17
- information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
16
+ `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/).
18
17
 
19
- If you're requesting the \`wallet\`, \`send-funds\`, \`collect-funds\`, or \`card-issuing\` capabilities, you'll need to:
20
- + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
21
- 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.
22
- If you're creating a business account with the business type \`llc\`, \`partnership\`, or \`privateCorporation\`, you'll need to:
18
+ 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:
19
+ + 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.
20
+ + 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.
21
+
22
+ If you're creating a business account, depending on the business type, you'll also need to:
23
23
  + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
24
24
  + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
25
25
 
26
- 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/).
27
- 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.
26
+ 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.
28
27
 
29
- To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
30
- to specify the \`/accounts.write\` scope.`,
28
+ 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.`,
31
29
  args,
32
30
  tool: async (client, args, ctx) => {
33
31
  const [result, apiCall] = await accountsCreate(
@@ -16,7 +16,7 @@ export const tool$bankAccountsLink: ToolDefinition<typeof args> = {
16
16
  `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.
17
17
 
18
18
  It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
19
- bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
19
+ bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
20
20
  Methods](https://docs.moov.io/api/sources/payment-methods/list/)
21
21
  endpoint to wait for the new payment methods to be available for use.
22
22
 
@@ -13,7 +13,7 @@ const args = {
13
13
  export const tool$capabilitiesDisable: ToolDefinition<typeof args> = {
14
14
  name: "capabilities-disable",
15
15
  description:
16
- `Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
16
+ `Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
17
17
 
18
18
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
19
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -13,7 +13,7 @@ const args = {
13
13
  export const tool$capabilitiesGet: ToolDefinition<typeof args> = {
14
14
  name: "capabilities-get",
15
15
  description:
16
- `Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
16
+ `Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
17
17
 
18
18
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
19
  you'll need to specify the \`/accounts/{accountID}/capabilities.read\` scope.`,
@@ -14,7 +14,7 @@ export const tool$capabilitiesList: ToolDefinition<typeof args> = {
14
14
  name: "capabilities-list",
15
15
  description: `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.`,
@@ -13,7 +13,7 @@ const args = {
13
13
  export const tool$capabilitiesRequest: ToolDefinition<typeof args> = {
14
14
  name: "capabilities-request",
15
15
  description:
16
- `Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
16
+ `Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
17
17
 
18
18
  To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
19
  you'll need to specify the \`/accounts/{accountID}/capabilities.write\` scope.`,
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { depositViewCreate } from "../../funcs/depositViewCreate.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.CreateDepositAccountRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$depositViewCreate: ToolDefinition<typeof args> = {
14
+ name: "deposit-view-create",
15
+ description:
16
+ `Ingest a deposit account into the deposit view from a core banking source system.
17
+
18
+ The request body is a raw byte payload whose format depends on the core banking
19
+ system that produced it. Set the \`X-Source-System\` header to identify that system
20
+ so the payload can be parsed correctly.
21
+
22
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
23
+ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
24
+ args,
25
+ tool: async (client, args, ctx) => {
26
+ const [result, apiCall] = await depositViewCreate(
27
+ client,
28
+ args.request,
29
+ { fetchOptions: { signal: ctx.signal } },
30
+ ).$inspect();
31
+
32
+ if (!result.ok) {
33
+ return {
34
+ content: [{ type: "text", text: result.error.message }],
35
+ isError: true,
36
+ };
37
+ }
38
+
39
+ const value = result.value.result;
40
+
41
+ return formatResult(value, apiCall);
42
+ },
43
+ };
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { transfersListCancellations } from "../../funcs/transfersListCancellations.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListCancellationsRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$transfersListCancellations: ToolDefinition<typeof args> = {
14
+ name: "transfers-list-cancellations",
15
+ description: ` Get a list of cancellations for a transfer.
16
+
17
+ To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
18
+ to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
19
+ args,
20
+ tool: async (client, args, ctx) => {
21
+ const [result, apiCall] = await transfersListCancellations(
22
+ client,
23
+ args.request,
24
+ { fetchOptions: { signal: ctx.signal } },
25
+ ).$inspect();
26
+
27
+ if (!result.ok) {
28
+ return {
29
+ content: [{ type: "text", text: result.error.message }],
30
+ isError: true,
31
+ };
32
+ }
33
+
34
+ const value = result.value.result;
35
+
36
+ return formatResult(value, apiCall);
37
+ },
38
+ };
@@ -13,6 +13,15 @@ import {
13
13
  } from "./capabilityid.js";
14
14
 
15
15
  export type AddCapabilities = {
16
+ /**
17
+ * Capabilities to request for the account. Request granular capability IDs that match your use case.
18
+ *
19
+ * @remarks
20
+ *
21
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
22
+ *
23
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
24
+ */
16
25
  capabilities: Array<CapabilityID>;
17
26
  };
18
27
 
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
10
  import {
10
11
  AmountDecimal,
@@ -13,15 +14,26 @@ import {
13
14
  AmountDecimal$outboundSchema,
14
15
  } from "./amountdecimal.js";
15
16
 
17
+ /**
18
+ * A range of values that an AmountDecimal can take.
19
+ *
20
+ * @remarks
21
+ *
22
+ * If either `minimum` or `maximum` is omitted, the range is "open" on that end:
23
+ *
24
+ * `minimum` specified: `amt >= minimum`
25
+ * `maximum` specified: `amt <= maximum`
26
+ * both specified: `minimum <= amt <= maximum`
27
+ */
16
28
  export type AmountDecimalRange = {
17
29
  /**
18
30
  * Minimum amount allowed in the range
19
31
  */
20
- minimum: AmountDecimal;
32
+ minimum?: AmountDecimal | undefined;
21
33
  /**
22
34
  * Maximum amount allowed in the range
23
35
  */
24
- maximum: AmountDecimal;
36
+ maximum?: AmountDecimal | undefined;
25
37
  };
26
38
 
27
39
  /** @internal */
@@ -30,13 +42,13 @@ export const AmountDecimalRange$inboundSchema: z.ZodType<
30
42
  z.ZodTypeDef,
31
43
  unknown
32
44
  > = z.object({
33
- minimum: AmountDecimal$inboundSchema,
34
- maximum: AmountDecimal$inboundSchema,
45
+ minimum: types.optional(AmountDecimal$inboundSchema),
46
+ maximum: types.optional(AmountDecimal$inboundSchema),
35
47
  });
36
48
  /** @internal */
37
49
  export type AmountDecimalRange$Outbound = {
38
- minimum: AmountDecimal$Outbound;
39
- maximum: AmountDecimal$Outbound;
50
+ minimum?: AmountDecimal$Outbound | undefined;
51
+ maximum?: AmountDecimal$Outbound | undefined;
40
52
  };
41
53
 
42
54
  /** @internal */
@@ -45,8 +57,8 @@ export const AmountDecimalRange$outboundSchema: z.ZodType<
45
57
  z.ZodTypeDef,
46
58
  AmountDecimalRange
47
59
  > = z.object({
48
- minimum: AmountDecimal$outboundSchema,
49
- maximum: AmountDecimal$outboundSchema,
60
+ minimum: AmountDecimal$outboundSchema.optional(),
61
+ maximum: AmountDecimal$outboundSchema.optional(),
50
62
  });
51
63
 
52
64
  export function amountDecimalRangeToJSON(
@@ -14,6 +14,17 @@ import {
14
14
  AmountDecimalUpdate$outboundSchema,
15
15
  } from "./amountdecimalupdate.js";
16
16
 
17
+ /**
18
+ * A range of values that an AmountDecimal can take.
19
+ *
20
+ * @remarks
21
+ *
22
+ * If either `minimum` or `maximum` is omitted, the range is "open" on that end:
23
+ *
24
+ * `minimum` specified: `amt >= minimum`
25
+ * `maximum` specified: `amt <= maximum`
26
+ * both specified: `minimum <= amt <= maximum`
27
+ */
17
28
  export type AmountDecimalRangeUpdate = {
18
29
  /**
19
30
  * Minimum amount allowed in the range
@@ -30,7 +30,13 @@ export type Capability = {
30
30
  *
31
31
  * @remarks
32
32
  *
33
- * 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.
33
+ * **Deprecated capabilities**
34
+ *
35
+ * 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.
36
+ *
37
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
38
+ *
39
+ * 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.
34
40
  */
35
41
  capability: CapabilityID;
36
42
  accountID: string;
@@ -11,7 +11,13 @@ import { OpenEnum } from "../../types/enums.js";
11
11
  *
12
12
  * @remarks
13
13
  *
14
- * 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.
14
+ * **Deprecated capabilities**
15
+ *
16
+ * 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.
17
+ *
18
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
19
+ *
20
+ * 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.
15
21
  */
16
22
  export const CapabilityID = {
17
23
  Transfers: "transfers",
@@ -28,6 +34,7 @@ export const CapabilityID = {
28
34
  Wallet: "wallet",
29
35
  WalletBalance: "wallet.balance",
30
36
  CardIssuing: "card-issuing",
37
+ IssuingCardholder: "issuing.cardholder",
31
38
  ProductionApp: "production-app",
32
39
  PlatformProductionApp: "platform.production-app",
33
40
  PlatformWalletTransfers: "platform.wallet-transfers",
@@ -37,7 +44,13 @@ export const CapabilityID = {
37
44
  *
38
45
  * @remarks
39
46
  *
40
- * 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.
47
+ * **Deprecated capabilities**
48
+ *
49
+ * 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.
50
+ *
51
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
52
+ *
53
+ * 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.
41
54
  */
42
55
  export type CapabilityID = OpenEnum<typeof CapabilityID>;
43
56
 
@@ -36,6 +36,10 @@ export type CardTransactionDetails = {
36
36
  * An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
37
37
  */
38
38
  dynamicDescriptor?: string | undefined;
39
+ /**
40
+ * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
41
+ */
42
+ scheduledDeliveryOn?: Date | undefined;
39
43
  /**
40
44
  * Specifies the nature and initiator of a transaction.
41
45
  *
@@ -51,6 +55,7 @@ export type CardTransactionDetails = {
51
55
  failedOn?: Date | undefined;
52
56
  canceledOn?: Date | undefined;
53
57
  completedOn?: Date | undefined;
58
+ deferredOn?: Date | undefined;
54
59
  /**
55
60
  * The program assigned by the card network that determines the interchange rate for the transfer.
56
61
  *
@@ -76,6 +81,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
76
81
  status: types.optional(CardTransactionStatus$inboundSchema),
77
82
  failureCode: types.optional(CardTransactionFailureCode$inboundSchema),
78
83
  dynamicDescriptor: types.optional(types.string()),
84
+ scheduledDeliveryOn: types.optional(types.date()),
79
85
  transactionSource: types.optional(TransactionSource$inboundSchema),
80
86
  initiatedOn: types.optional(types.date()),
81
87
  confirmedOn: types.optional(types.date()),
@@ -83,6 +89,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
83
89
  failedOn: types.optional(types.date()),
84
90
  canceledOn: types.optional(types.date()),
85
91
  completedOn: types.optional(types.date()),
92
+ deferredOn: types.optional(types.date()),
86
93
  interchangeQualification: types.optional(types.string()),
87
94
  feeProgram: types.optional(types.string()),
88
95
  authorizationCode: types.optional(types.string()),
@@ -92,6 +99,7 @@ export type CardTransactionDetails$Outbound = {
92
99
  status?: string | undefined;
93
100
  failureCode?: string | undefined;
94
101
  dynamicDescriptor?: string | undefined;
102
+ scheduledDeliveryOn?: string | undefined;
95
103
  transactionSource?: string | undefined;
96
104
  initiatedOn?: string | undefined;
97
105
  confirmedOn?: string | undefined;
@@ -99,6 +107,7 @@ export type CardTransactionDetails$Outbound = {
99
107
  failedOn?: string | undefined;
100
108
  canceledOn?: string | undefined;
101
109
  completedOn?: string | undefined;
110
+ deferredOn?: string | undefined;
102
111
  interchangeQualification?: string | undefined;
103
112
  feeProgram?: string | undefined;
104
113
  authorizationCode?: string | undefined;
@@ -113,6 +122,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
113
122
  status: CardTransactionStatus$outboundSchema.optional(),
114
123
  failureCode: CardTransactionFailureCode$outboundSchema.optional(),
115
124
  dynamicDescriptor: z.string().optional(),
125
+ scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
116
126
  transactionSource: TransactionSource$outboundSchema.optional(),
117
127
  initiatedOn: z.date().transform(v => v.toISOString()).optional(),
118
128
  confirmedOn: z.date().transform(v => v.toISOString()).optional(),
@@ -120,6 +130,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
120
130
  failedOn: z.date().transform(v => v.toISOString()).optional(),
121
131
  canceledOn: z.date().transform(v => v.toISOString()).optional(),
122
132
  completedOn: z.date().transform(v => v.toISOString()).optional(),
133
+ deferredOn: z.date().transform(v => v.toISOString()).optional(),
123
134
  interchangeQualification: z.string().optional(),
124
135
  feeProgram: z.string().optional(),
125
136
  authorizationCode: z.string().optional(),
@@ -16,6 +16,7 @@ export const CardTransactionStatus = {
16
16
  Settled: "settled",
17
17
  Failed: "failed",
18
18
  Completed: "completed",
19
+ Deferred: "deferred",
19
20
  } as const;
20
21
  /**
21
22
  * Status of a transaction within the card payment lifecycle.
@@ -66,6 +66,15 @@ export type CreateAccount = {
66
66
  * User provided settings to manage an account.
67
67
  */
68
68
  settings?: Settings | undefined;
69
+ /**
70
+ * Capabilities to request when the account is created. Request granular capability IDs that match your use case.
71
+ *
72
+ * @remarks
73
+ *
74
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
75
+ *
76
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Use granular values such as `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance` instead.
77
+ */
69
78
  capabilities?: Array<CapabilityID> | undefined;
70
79
  /**
71
80
  * The operating mode for an account.
@@ -25,6 +25,12 @@ import {
25
25
  CreatePaymentLinkLineItems$Outbound,
26
26
  CreatePaymentLinkLineItems$outboundSchema,
27
27
  } from "./createpaymentlinklineitems.js";
28
+ import {
29
+ PaymentLinkCustomAmountPaymentDetails,
30
+ PaymentLinkCustomAmountPaymentDetails$inboundSchema,
31
+ PaymentLinkCustomAmountPaymentDetails$Outbound,
32
+ PaymentLinkCustomAmountPaymentDetails$outboundSchema,
33
+ } from "./paymentlinkcustomamountpaymentdetails.js";
28
34
  import {
29
35
  PaymentLinkCustomerOptions,
30
36
  PaymentLinkCustomerOptions$inboundSchema,
@@ -55,7 +61,7 @@ import {
55
61
  *
56
62
  * @remarks
57
63
  *
58
- * A payment link must include either `payment` or `payout` details, but not both. For payout payment links,
64
+ * A payment link must include exactly one of `payment`, `payout`, or `customAmountPayment` details. For payout payment links,
59
65
  * `maxUses` will automatically be set to 1, as these are intended for a one-time disbursement
60
66
  * to a specific recipient.
61
67
  */
@@ -75,8 +81,8 @@ export type CreatePaymentLink = {
75
81
  *
76
82
  * In API versions before `2026.07.00`, this was a required field.
77
83
  *
78
- * In API version `2026.07.00` and beyond, this field is required for `fixed` payment amount types and omitted
79
- * for `open` payment amount types.
84
+ * In API version `2026.07.00` and beyond, this field is required for `payment` and `payout` links and must be
85
+ * omitted for `customAmountPayment` links, where the payor chooses the amount.
80
86
  */
81
87
  amount?: Amount | undefined;
82
88
  /**
@@ -101,6 +107,10 @@ export type CreatePaymentLink = {
101
107
  */
102
108
  payment?: PaymentLinkPaymentDetails | undefined;
103
109
  payout?: PaymentLinkPayoutDetails | undefined;
110
+ /**
111
+ * Options for a custom amount payment link. Mutually exclusive with `payment` and `payout`.
112
+ */
113
+ customAmountPayment?: PaymentLinkCustomAmountPaymentDetails | undefined;
104
114
  /**
105
115
  * An optional collection of line items for a payment link.
106
116
  *
@@ -126,6 +136,9 @@ export const CreatePaymentLink$inboundSchema: z.ZodType<
126
136
  customer: types.optional(PaymentLinkCustomerOptions$inboundSchema),
127
137
  payment: types.optional(PaymentLinkPaymentDetails$inboundSchema),
128
138
  payout: types.optional(PaymentLinkPayoutDetails$inboundSchema),
139
+ customAmountPayment: types.optional(
140
+ PaymentLinkCustomAmountPaymentDetails$inboundSchema,
141
+ ),
129
142
  lineItems: types.optional(CreatePaymentLinkLineItems$inboundSchema),
130
143
  amountDetails: types.optional(CreatePaymentLinkAmountDetails$inboundSchema),
131
144
  });
@@ -140,6 +153,9 @@ export type CreatePaymentLink$Outbound = {
140
153
  customer?: PaymentLinkCustomerOptions$Outbound | undefined;
141
154
  payment?: PaymentLinkPaymentDetails$Outbound | undefined;
142
155
  payout?: PaymentLinkPayoutDetails$Outbound | undefined;
156
+ customAmountPayment?:
157
+ | PaymentLinkCustomAmountPaymentDetails$Outbound
158
+ | undefined;
143
159
  lineItems?: CreatePaymentLinkLineItems$Outbound | undefined;
144
160
  amountDetails?: CreatePaymentLinkAmountDetails$Outbound | undefined;
145
161
  };
@@ -159,6 +175,8 @@ export const CreatePaymentLink$outboundSchema: z.ZodType<
159
175
  customer: PaymentLinkCustomerOptions$outboundSchema.optional(),
160
176
  payment: PaymentLinkPaymentDetails$outboundSchema.optional(),
161
177
  payout: PaymentLinkPayoutDetails$outboundSchema.optional(),
178
+ customAmountPayment: PaymentLinkCustomAmountPaymentDetails$outboundSchema
179
+ .optional(),
162
180
  lineItems: CreatePaymentLinkLineItems$outboundSchema.optional(),
163
181
  amountDetails: CreatePaymentLinkAmountDetails$outboundSchema.optional(),
164
182
  });