@moovio/sdk 26.7.0-dev.2 → 26.7.0-dev.4

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 (453) hide show
  1. package/README.md +90 -86
  2. package/bin/mcp-server.js +892 -402
  3. package/bin/mcp-server.js.map +96 -86
  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/capabilitiesDisable.d.ts +1 -1
  9. package/funcs/capabilitiesDisable.js +1 -1
  10. package/funcs/capabilitiesGet.d.ts +1 -1
  11. package/funcs/capabilitiesGet.js +1 -1
  12. package/funcs/capabilitiesList.d.ts +1 -1
  13. package/funcs/capabilitiesList.js +1 -1
  14. package/funcs/capabilitiesRequest.d.ts +1 -1
  15. package/funcs/capabilitiesRequest.js +1 -1
  16. package/funcs/cardIssuingGet.js +1 -1
  17. package/funcs/cardIssuingGet.js.map +1 -1
  18. package/funcs/cardIssuingGetFull.js +1 -1
  19. package/funcs/cardIssuingGetFull.js.map +1 -1
  20. package/funcs/cardIssuingList.js +1 -1
  21. package/funcs/cardIssuingList.js.map +1 -1
  22. package/funcs/cardIssuingRequest.js +1 -1
  23. package/funcs/cardIssuingRequest.js.map +1 -1
  24. package/funcs/cardIssuingUpdate.js +1 -1
  25. package/funcs/cardIssuingUpdate.js.map +1 -1
  26. package/funcs/transfersListCancellations.d.ts +17 -0
  27. package/funcs/transfersListCancellations.d.ts.map +1 -0
  28. package/funcs/transfersListCancellations.js +129 -0
  29. package/funcs/transfersListCancellations.js.map +1 -0
  30. package/hooks/types.d.ts +1 -0
  31. package/hooks/types.d.ts.map +1 -1
  32. package/jsr.json +1 -1
  33. package/lib/config.d.ts +3 -3
  34. package/lib/config.js +3 -3
  35. package/lib/encodings.js +12 -12
  36. package/lib/encodings.js.map +1 -1
  37. package/lib/matchers.js +3 -3
  38. package/lib/matchers.js.map +1 -1
  39. package/lib/primitives.d.ts +1 -0
  40. package/lib/primitives.d.ts.map +1 -1
  41. package/lib/primitives.js +18 -0
  42. package/lib/primitives.js.map +1 -1
  43. package/lib/retries.js +7 -0
  44. package/lib/retries.js.map +1 -1
  45. package/lib/sdks.d.ts.map +1 -1
  46. package/lib/sdks.js +50 -16
  47. package/lib/sdks.js.map +1 -1
  48. package/mcp-server/mcp-server.js +1 -1
  49. package/mcp-server/server.d.ts.map +1 -1
  50. package/mcp-server/server.js +3 -1
  51. package/mcp-server/server.js.map +1 -1
  52. package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
  53. package/mcp-server/tools/accountsCreate.js +8 -10
  54. package/mcp-server/tools/accountsCreate.js.map +1 -1
  55. package/mcp-server/tools/capabilitiesDisable.js +1 -1
  56. package/mcp-server/tools/capabilitiesGet.js +1 -1
  57. package/mcp-server/tools/capabilitiesList.js +1 -1
  58. package/mcp-server/tools/capabilitiesRequest.js +1 -1
  59. package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
  60. package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
  61. package/mcp-server/tools/transfersListCancellations.js +65 -0
  62. package/mcp-server/tools/transfersListCancellations.js.map +1 -0
  63. package/models/components/addcapabilities.d.ts +9 -0
  64. package/models/components/addcapabilities.d.ts.map +1 -1
  65. package/models/components/addcapabilities.js.map +1 -1
  66. package/models/components/amountdecimalrange.d.ts +15 -4
  67. package/models/components/amountdecimalrange.d.ts.map +1 -1
  68. package/models/components/amountdecimalrange.js +5 -4
  69. package/models/components/amountdecimalrange.js.map +1 -1
  70. package/models/components/amountdecimalrangeupdate.d.ts +11 -0
  71. package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
  72. package/models/components/amountdecimalrangeupdate.js.map +1 -1
  73. package/models/components/amountdetails.d.ts +26 -0
  74. package/models/components/amountdetails.d.ts.map +1 -0
  75. package/models/components/{createauthorizedusererror.js → amountdetails.js} +15 -17
  76. package/models/components/amountdetails.js.map +1 -0
  77. package/models/components/amountdetailsupdate.d.ts +26 -0
  78. package/models/components/amountdetailsupdate.d.ts.map +1 -0
  79. package/models/components/{createauthorizeduserupdate.js → amountdetailsupdate.js} +15 -17
  80. package/models/components/amountdetailsupdate.js.map +1 -0
  81. package/models/components/amountdetailsvalidationerror.d.ts +19 -0
  82. package/models/components/amountdetailsvalidationerror.d.ts.map +1 -0
  83. package/models/components/{createauthorizeduser.js → amountdetailsvalidationerror.js} +14 -17
  84. package/models/components/amountdetailsvalidationerror.js.map +1 -0
  85. package/models/components/asynccreatedrefund.d.ts +3 -0
  86. package/models/components/asynccreatedrefund.d.ts.map +1 -1
  87. package/models/components/asynccreatedrefund.js +3 -0
  88. package/models/components/asynccreatedrefund.js.map +1 -1
  89. package/models/components/capability.d.ts +7 -1
  90. package/models/components/capability.d.ts.map +1 -1
  91. package/models/components/capability.js.map +1 -1
  92. package/models/components/capabilityid.d.ts +14 -2
  93. package/models/components/capabilityid.d.ts.map +1 -1
  94. package/models/components/capabilityid.js +7 -1
  95. package/models/components/capabilityid.js.map +1 -1
  96. package/models/components/cardacquiringrefund.d.ts +3 -0
  97. package/models/components/cardacquiringrefund.d.ts.map +1 -1
  98. package/models/components/cardacquiringrefund.js +3 -0
  99. package/models/components/cardacquiringrefund.js.map +1 -1
  100. package/models/components/createaccount.d.ts +9 -0
  101. package/models/components/createaccount.d.ts.map +1 -1
  102. package/models/components/createaccount.js.map +1 -1
  103. package/models/components/createinvoice.d.ts +3 -3
  104. package/models/components/createinvoice.d.ts.map +1 -1
  105. package/models/components/createinvoice.js +3 -3
  106. package/models/components/createinvoice.js.map +1 -1
  107. package/models/components/createpaymentlink.d.ts +9 -3
  108. package/models/components/createpaymentlink.d.ts.map +1 -1
  109. package/models/components/createpaymentlink.js +4 -0
  110. package/models/components/createpaymentlink.js.map +1 -1
  111. package/models/components/createpaymentlinkamountdetails.d.ts +5 -0
  112. package/models/components/createpaymentlinkamountdetails.d.ts.map +1 -1
  113. package/models/components/createpaymentlinkamountdetails.js +2 -0
  114. package/models/components/createpaymentlinkamountdetails.js.map +1 -1
  115. package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts +2 -0
  116. package/models/components/createpaymentlinkamountdetailsvalidationerror.d.ts.map +1 -1
  117. package/models/components/createpaymentlinkamountdetailsvalidationerror.js +2 -0
  118. package/models/components/createpaymentlinkamountdetailsvalidationerror.js.map +1 -1
  119. package/models/components/createrefund.d.ts +6 -0
  120. package/models/components/createrefund.d.ts.map +1 -1
  121. package/models/components/createrefund.js +3 -0
  122. package/models/components/createrefund.js.map +1 -1
  123. package/models/components/createreversal.d.ts +6 -0
  124. package/models/components/createreversal.d.ts.map +1 -1
  125. package/models/components/createreversal.js +3 -0
  126. package/models/components/createreversal.js.map +1 -1
  127. package/models/components/createtransferamountdetails.d.ts +5 -0
  128. package/models/components/createtransferamountdetails.d.ts.map +1 -1
  129. package/models/components/createtransferamountdetails.js +2 -0
  130. package/models/components/createtransferamountdetails.js.map +1 -1
  131. package/models/components/createtransferamountdetailsvalidationerror.d.ts +2 -0
  132. package/models/components/createtransferamountdetailsvalidationerror.d.ts.map +1 -1
  133. package/models/components/createtransferamountdetailsvalidationerror.js +2 -0
  134. package/models/components/createtransferamountdetailsvalidationerror.js.map +1 -1
  135. package/models/components/customamountpaymentdetailserror.d.ts +29 -0
  136. package/models/components/customamountpaymentdetailserror.d.ts.map +1 -0
  137. package/models/components/customamountpaymentdetailserror.js +71 -0
  138. package/models/components/customamountpaymentdetailserror.js.map +1 -0
  139. package/models/components/fullissuedcard.d.ts +25 -9
  140. package/models/components/fullissuedcard.d.ts.map +1 -1
  141. package/models/components/fullissuedcard.js +11 -5
  142. package/models/components/fullissuedcard.js.map +1 -1
  143. package/models/components/index.d.ts +12 -4
  144. package/models/components/index.d.ts.map +1 -1
  145. package/models/components/index.js +12 -4
  146. package/models/components/index.js.map +1 -1
  147. package/models/components/invoice.d.ts +4 -3
  148. package/models/components/invoice.d.ts.map +1 -1
  149. package/models/components/invoice.js +3 -2
  150. package/models/components/invoice.js.map +1 -1
  151. package/models/components/issuedcard.d.ts +25 -9
  152. package/models/components/issuedcard.d.ts.map +1 -1
  153. package/models/components/issuedcard.js +11 -5
  154. package/models/components/issuedcard.js.map +1 -1
  155. package/models/components/onboardinginvite.d.ts +1 -1
  156. package/models/components/onboardinginviterequest.d.ts +1 -1
  157. package/models/components/paymentlink.d.ts +13 -2
  158. package/models/components/paymentlink.d.ts.map +1 -1
  159. package/models/components/paymentlink.js +4 -0
  160. package/models/components/paymentlink.js.map +1 -1
  161. package/models/components/paymentlinkamountdetails.d.ts +5 -0
  162. package/models/components/paymentlinkamountdetails.d.ts.map +1 -1
  163. package/models/components/paymentlinkamountdetails.js +2 -0
  164. package/models/components/paymentlinkamountdetails.js.map +1 -1
  165. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +70 -0
  166. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -0
  167. package/models/components/paymentlinkcustomamountpaymentdetails.js +74 -0
  168. package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -0
  169. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +70 -0
  170. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -0
  171. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js +75 -0
  172. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -0
  173. package/models/components/paymentlinkpaymentdetails.d.ts +0 -33
  174. package/models/components/paymentlinkpaymentdetails.d.ts.map +1 -1
  175. package/models/components/paymentlinkpaymentdetails.js +1 -21
  176. package/models/components/paymentlinkpaymentdetails.js.map +1 -1
  177. package/models/components/paymentlinkpaymentdetailsupdate.d.ts +0 -33
  178. package/models/components/paymentlinkpaymentdetailsupdate.d.ts.map +1 -1
  179. package/models/components/paymentlinkpaymentdetailsupdate.js +1 -21
  180. package/models/components/paymentlinkpaymentdetailsupdate.js.map +1 -1
  181. package/models/components/paymentlinktype.d.ts +1 -0
  182. package/models/components/paymentlinktype.d.ts.map +1 -1
  183. package/models/components/paymentlinktype.js +1 -0
  184. package/models/components/paymentlinktype.js.map +1 -1
  185. package/models/components/refundamountdetails.d.ts +21 -0
  186. package/models/components/refundamountdetails.d.ts.map +1 -0
  187. package/models/components/{authorizeduser.js → refundamountdetails.js} +13 -14
  188. package/models/components/refundamountdetails.js.map +1 -0
  189. package/models/components/refundamountdetailsvalidationerror.d.ts +17 -0
  190. package/models/components/refundamountdetailsvalidationerror.d.ts.map +1 -0
  191. package/models/components/refundamountdetailsvalidationerror.js +59 -0
  192. package/models/components/refundamountdetailsvalidationerror.js.map +1 -0
  193. package/models/components/requestcard.d.ts +14 -17
  194. package/models/components/requestcard.d.ts.map +1 -1
  195. package/models/components/requestcard.js +9 -10
  196. package/models/components/requestcard.js.map +1 -1
  197. package/models/components/reversalamountdetails.d.ts +21 -0
  198. package/models/components/reversalamountdetails.d.ts.map +1 -0
  199. package/models/components/reversalamountdetails.js +60 -0
  200. package/models/components/reversalamountdetails.js.map +1 -0
  201. package/models/components/reversalamountdetailsvalidationerror.d.ts +17 -0
  202. package/models/components/reversalamountdetailsvalidationerror.d.ts.map +1 -0
  203. package/models/components/reversalamountdetailsvalidationerror.js +59 -0
  204. package/models/components/reversalamountdetailsvalidationerror.js.map +1 -0
  205. package/models/components/transferamountdetails.d.ts +5 -0
  206. package/models/components/transferamountdetails.d.ts.map +1 -1
  207. package/models/components/transferamountdetails.js +2 -0
  208. package/models/components/transferamountdetails.js.map +1 -1
  209. package/models/components/transferconfig.d.ts +3 -0
  210. package/models/components/transferconfig.d.ts.map +1 -1
  211. package/models/components/transferconfig.js +3 -0
  212. package/models/components/transferconfig.js.map +1 -1
  213. package/models/components/transfercontrols.d.ts +43 -0
  214. package/models/components/transfercontrols.d.ts.map +1 -0
  215. package/models/components/transfercontrols.js +67 -0
  216. package/models/components/transfercontrols.js.map +1 -0
  217. package/models/components/updateinvoice.d.ts +9 -9
  218. package/models/components/updateinvoice.d.ts.map +1 -1
  219. package/models/components/updateinvoice.js +3 -3
  220. package/models/components/updateinvoice.js.map +1 -1
  221. package/models/components/updateissuedcard.d.ts +33 -8
  222. package/models/components/updateissuedcard.d.ts.map +1 -1
  223. package/models/components/updateissuedcard.js +35 -6
  224. package/models/components/updateissuedcard.js.map +1 -1
  225. package/models/components/updatepaymentlink.d.ts +6 -0
  226. package/models/components/updatepaymentlink.d.ts.map +1 -1
  227. package/models/components/updatepaymentlink.js +3 -0
  228. package/models/components/updatepaymentlink.js.map +1 -1
  229. package/models/components/updatepaymentlinkamountdetails.d.ts +5 -0
  230. package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
  231. package/models/components/updatepaymentlinkamountdetails.js +2 -0
  232. package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
  233. package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts +2 -0
  234. package/models/components/updatepaymentlinkamountdetailsvalidationerror.d.ts.map +1 -1
  235. package/models/components/updatepaymentlinkamountdetailsvalidationerror.js +2 -0
  236. package/models/components/updatepaymentlinkamountdetailsvalidationerror.js.map +1 -1
  237. package/models/components/webhookdata.d.ts +3 -2
  238. package/models/components/webhookdata.d.ts.map +1 -1
  239. package/models/components/webhookdata.js +7 -4
  240. package/models/components/webhookdata.js.map +1 -1
  241. package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
  242. package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
  243. package/models/components/webhookdataauthorizationexpiring.js +65 -0
  244. package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
  245. package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
  246. package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
  247. package/models/components/webhookdatacapabilityrequested.js.map +1 -1
  248. package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
  249. package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
  250. package/models/components/webhookdatacapabilityupdated.js.map +1 -1
  251. package/models/components/webhookdatasweepcreated.d.ts +5 -0
  252. package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
  253. package/models/components/webhookdatasweepcreated.js +2 -0
  254. package/models/components/webhookdatasweepcreated.js.map +1 -1
  255. package/models/components/webhookdatasweepupdated.d.ts +5 -0
  256. package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
  257. package/models/components/webhookdatasweepupdated.js +2 -0
  258. package/models/components/webhookdatasweepupdated.js.map +1 -1
  259. package/models/components/webhookeventtype.d.ts +1 -0
  260. package/models/components/webhookeventtype.d.ts.map +1 -1
  261. package/models/components/webhookeventtype.js +1 -0
  262. package/models/components/webhookeventtype.js.map +1 -1
  263. package/models/errors/cardacquiringrefund.d.ts +3 -0
  264. package/models/errors/cardacquiringrefund.d.ts.map +1 -1
  265. package/models/errors/cardacquiringrefund.js +4 -0
  266. package/models/errors/cardacquiringrefund.js.map +1 -1
  267. package/models/errors/createinvoiceerror.d.ts +3 -3
  268. package/models/errors/createinvoiceerror.d.ts.map +1 -1
  269. package/models/errors/createinvoiceerror.js +4 -4
  270. package/models/errors/createinvoiceerror.js.map +1 -1
  271. package/models/errors/createpaymentlinkerror.d.ts +3 -0
  272. package/models/errors/createpaymentlinkerror.d.ts.map +1 -1
  273. package/models/errors/createpaymentlinkerror.js +6 -0
  274. package/models/errors/createpaymentlinkerror.js.map +1 -1
  275. package/models/errors/refundvalidationerror.d.ts +4 -0
  276. package/models/errors/refundvalidationerror.d.ts.map +1 -1
  277. package/models/errors/refundvalidationerror.js +6 -0
  278. package/models/errors/refundvalidationerror.js.map +1 -1
  279. package/models/errors/requestcarderror.d.ts +12 -12
  280. package/models/errors/requestcarderror.d.ts.map +1 -1
  281. package/models/errors/requestcarderror.js +17 -17
  282. package/models/errors/requestcarderror.js.map +1 -1
  283. package/models/errors/reversalvalidationerror.d.ts +4 -0
  284. package/models/errors/reversalvalidationerror.d.ts.map +1 -1
  285. package/models/errors/reversalvalidationerror.js +6 -0
  286. package/models/errors/reversalvalidationerror.js.map +1 -1
  287. package/models/errors/updateinvoiceerror.d.ts +3 -3
  288. package/models/errors/updateinvoiceerror.d.ts.map +1 -1
  289. package/models/errors/updateinvoiceerror.js +4 -4
  290. package/models/errors/updateinvoiceerror.js.map +1 -1
  291. package/models/errors/updateissuedcarderror.d.ts +9 -6
  292. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  293. package/models/errors/updateissuedcarderror.js +12 -9
  294. package/models/errors/updateissuedcarderror.js.map +1 -1
  295. package/models/errors/updatepaymentlinkerror.d.ts +3 -0
  296. package/models/errors/updatepaymentlinkerror.d.ts.map +1 -1
  297. package/models/errors/updatepaymentlinkerror.js +6 -0
  298. package/models/errors/updatepaymentlinkerror.js.map +1 -1
  299. package/models/operations/disablecapability.d.ts +7 -1
  300. package/models/operations/disablecapability.d.ts.map +1 -1
  301. package/models/operations/disablecapability.js.map +1 -1
  302. package/models/operations/getcapability.d.ts +7 -1
  303. package/models/operations/getcapability.d.ts.map +1 -1
  304. package/models/operations/getcapability.js.map +1 -1
  305. package/models/operations/index.d.ts +1 -0
  306. package/models/operations/index.d.ts.map +1 -1
  307. package/models/operations/index.js +1 -0
  308. package/models/operations/index.js.map +1 -1
  309. package/models/operations/listcancellations.d.ts +45 -0
  310. package/models/operations/listcancellations.d.ts.map +1 -0
  311. package/models/operations/listcancellations.js +91 -0
  312. package/models/operations/listcancellations.js.map +1 -0
  313. package/package.json +1 -1
  314. package/sdk/accounts.d.ts +8 -10
  315. package/sdk/accounts.d.ts.map +1 -1
  316. package/sdk/accounts.js +8 -10
  317. package/sdk/accounts.js.map +1 -1
  318. package/sdk/capabilities.d.ts +4 -4
  319. package/sdk/capabilities.js +4 -4
  320. package/sdk/transfers.d.ts +7 -0
  321. package/sdk/transfers.d.ts.map +1 -1
  322. package/sdk/transfers.js +10 -0
  323. package/sdk/transfers.js.map +1 -1
  324. package/src/funcs/accountsCreate.ts +8 -10
  325. package/src/funcs/capabilitiesDisable.ts +1 -1
  326. package/src/funcs/capabilitiesGet.ts +1 -1
  327. package/src/funcs/capabilitiesList.ts +1 -1
  328. package/src/funcs/capabilitiesRequest.ts +1 -1
  329. package/src/funcs/cardIssuingGet.ts +1 -1
  330. package/src/funcs/cardIssuingGetFull.ts +3 -3
  331. package/src/funcs/cardIssuingList.ts +1 -1
  332. package/src/funcs/cardIssuingRequest.ts +1 -1
  333. package/src/funcs/cardIssuingUpdate.ts +1 -1
  334. package/src/funcs/transfersListCancellations.ts +181 -0
  335. package/src/hooks/types.ts +1 -0
  336. package/src/lib/config.ts +3 -3
  337. package/src/lib/encodings.ts +1 -1
  338. package/src/lib/matchers.ts +1 -1
  339. package/src/lib/primitives.ts +16 -0
  340. package/src/lib/retries.ts +8 -0
  341. package/src/lib/sdks.ts +54 -17
  342. package/src/mcp-server/mcp-server.ts +1 -1
  343. package/src/mcp-server/server.ts +3 -1
  344. package/src/mcp-server/tools/accountsCreate.ts +8 -10
  345. package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
  346. package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
  347. package/src/mcp-server/tools/capabilitiesList.ts +1 -1
  348. package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
  349. package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
  350. package/src/models/components/addcapabilities.ts +9 -0
  351. package/src/models/components/amountdecimalrange.ts +20 -8
  352. package/src/models/components/amountdecimalrangeupdate.ts +11 -0
  353. package/src/models/components/amountdetails.ts +64 -0
  354. package/src/models/components/amountdetailsupdate.ts +68 -0
  355. package/src/models/components/amountdetailsvalidationerror.ts +58 -0
  356. package/src/models/components/asynccreatedrefund.ts +10 -0
  357. package/src/models/components/capability.ts +7 -1
  358. package/src/models/components/capabilityid.ts +14 -2
  359. package/src/models/components/cardacquiringrefund.ts +10 -0
  360. package/src/models/components/createaccount.ts +9 -0
  361. package/src/models/components/createinvoice.ts +9 -9
  362. package/src/models/components/createpaymentlink.ts +21 -3
  363. package/src/models/components/createpaymentlinkamountdetails.ts +7 -0
  364. package/src/models/components/createpaymentlinkamountdetailsvalidationerror.ts +4 -0
  365. package/src/models/components/createrefund.ts +13 -0
  366. package/src/models/components/createreversal.ts +13 -0
  367. package/src/models/components/createtransferamountdetails.ts +7 -0
  368. package/src/models/components/createtransferamountdetailsvalidationerror.ts +4 -0
  369. package/src/models/components/customamountpaymentdetailserror.ts +86 -0
  370. package/src/models/components/fullissuedcard.ts +35 -17
  371. package/src/models/components/index.ts +12 -4
  372. package/src/models/components/invoice.ts +11 -5
  373. package/src/models/components/issuedcard.ts +35 -17
  374. package/src/models/components/onboardinginvite.ts +1 -1
  375. package/src/models/components/onboardinginviterequest.ts +1 -1
  376. package/src/models/components/paymentlink.ts +25 -2
  377. package/src/models/components/paymentlinkamountdetails.ts +7 -0
  378. package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +138 -0
  379. package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +149 -0
  380. package/src/models/components/paymentlinkpaymentdetails.ts +0 -60
  381. package/src/models/components/paymentlinkpaymentdetailsupdate.ts +0 -61
  382. package/src/models/components/paymentlinktype.ts +1 -0
  383. package/src/models/components/refundamountdetails.ts +61 -0
  384. package/src/models/components/refundamountdetailsvalidationerror.ts +55 -0
  385. package/src/models/components/requestcard.ts +23 -34
  386. package/src/models/components/reversalamountdetails.ts +61 -0
  387. package/src/models/components/reversalamountdetailsvalidationerror.ts +55 -0
  388. package/src/models/components/transferamountdetails.ts +7 -0
  389. package/src/models/components/transferconfig.ts +10 -0
  390. package/src/models/components/transfercontrols.ts +86 -0
  391. package/src/models/components/updateinvoice.ts +15 -15
  392. package/src/models/components/updateissuedcard.ts +73 -17
  393. package/src/models/components/updatepaymentlink.ts +18 -0
  394. package/src/models/components/updatepaymentlinkamountdetails.ts +7 -0
  395. package/src/models/components/updatepaymentlinkamountdetailsvalidationerror.ts +4 -0
  396. package/src/models/components/webhookdata.ts +18 -8
  397. package/src/models/components/webhookdataauthorizationexpiring.ts +66 -0
  398. package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
  399. package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
  400. package/src/models/components/webhookdatasweepcreated.ts +7 -0
  401. package/src/models/components/webhookdatasweepupdated.ts +7 -0
  402. package/src/models/components/webhookeventtype.ts +1 -0
  403. package/src/models/errors/cardacquiringrefund.ts +6 -0
  404. package/src/models/errors/createinvoiceerror.ts +7 -7
  405. package/src/models/errors/createpaymentlinkerror.ts +13 -0
  406. package/src/models/errors/refundvalidationerror.ts +12 -0
  407. package/src/models/errors/requestcarderror.ts +26 -27
  408. package/src/models/errors/reversalvalidationerror.ts +12 -0
  409. package/src/models/errors/updateinvoiceerror.ts +7 -7
  410. package/src/models/errors/updateissuedcarderror.ts +18 -15
  411. package/src/models/errors/updatepaymentlinkerror.ts +13 -0
  412. package/src/models/operations/disablecapability.ts +7 -1
  413. package/src/models/operations/getcapability.ts +7 -1
  414. package/src/models/operations/index.ts +1 -0
  415. package/src/models/operations/listcancellations.ts +121 -0
  416. package/src/sdk/accounts.ts +8 -10
  417. package/src/sdk/capabilities.ts +4 -4
  418. package/src/sdk/transfers.ts +18 -0
  419. package/src/types/async.ts +8 -7
  420. package/src/types/primitives.ts +0 -24
  421. package/types/async.d.ts.map +1 -1
  422. package/types/async.js +8 -7
  423. package/types/async.js.map +1 -1
  424. package/types/primitives.d.ts +0 -2
  425. package/types/primitives.d.ts.map +1 -1
  426. package/types/primitives.js +0 -23
  427. package/types/primitives.js.map +1 -1
  428. package/lib/dlv.d.ts +0 -14
  429. package/lib/dlv.d.ts.map +0 -1
  430. package/lib/dlv.js +0 -49
  431. package/lib/dlv.js.map +0 -1
  432. package/lib/is-plain-object.d.ts +0 -2
  433. package/lib/is-plain-object.d.ts.map +0 -1
  434. package/lib/is-plain-object.js +0 -41
  435. package/lib/is-plain-object.js.map +0 -1
  436. package/models/components/authorizeduser.d.ts +0 -22
  437. package/models/components/authorizeduser.d.ts.map +0 -1
  438. package/models/components/authorizeduser.js.map +0 -1
  439. package/models/components/createauthorizeduser.d.ts +0 -25
  440. package/models/components/createauthorizeduser.d.ts.map +0 -1
  441. package/models/components/createauthorizeduser.js.map +0 -1
  442. package/models/components/createauthorizedusererror.d.ts +0 -22
  443. package/models/components/createauthorizedusererror.d.ts.map +0 -1
  444. package/models/components/createauthorizedusererror.js.map +0 -1
  445. package/models/components/createauthorizeduserupdate.d.ts +0 -25
  446. package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
  447. package/models/components/createauthorizeduserupdate.js.map +0 -1
  448. package/src/lib/dlv.ts +0 -53
  449. package/src/lib/is-plain-object.ts +0 -43
  450. package/src/models/components/authorizeduser.ts +0 -55
  451. package/src/models/components/createauthorizeduser.ts +0 -69
  452. package/src/models/components/createauthorizedusererror.ts +0 -66
  453. package/src/models/components/createauthorizeduserupdate.ts +0 -69
@@ -0,0 +1,181 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { MoovError } from "../models/errors/mooverror.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Get a list of cancellations for a transfer.
30
+ *
31
+ * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
32
+ * to specify the `/accounts/{accountID}/transfers.read` scope.
33
+ */
34
+ export function transfersListCancellations(
35
+ client: MoovCore,
36
+ request: operations.ListCancellationsRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ operations.ListCancellationsResponse,
41
+ | MoovError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ request,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: MoovCore,
60
+ request: operations.ListCancellationsRequest,
61
+ options?: RequestOptions,
62
+ ): Promise<
63
+ [
64
+ Result<
65
+ operations.ListCancellationsResponse,
66
+ | MoovError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const parsed = safeParse(
79
+ request,
80
+ (value) => operations.ListCancellationsRequest$outboundSchema.parse(value),
81
+ "Input validation failed",
82
+ );
83
+ if (!parsed.ok) {
84
+ return [parsed, { status: "invalid" }];
85
+ }
86
+ const payload = parsed.value;
87
+ const body = null;
88
+
89
+ const pathParams = {
90
+ accountID: encodeSimple("accountID", payload.accountID, {
91
+ explode: false,
92
+ charEncoding: "percent",
93
+ }),
94
+ transferID: encodeSimple("transferID", payload.transferID, {
95
+ explode: false,
96
+ charEncoding: "percent",
97
+ }),
98
+ };
99
+ const path = pathToFunc(
100
+ "/accounts/{accountID}/transfers/{transferID}/cancellations",
101
+ )(pathParams);
102
+
103
+ const headers = new Headers(compactMap({
104
+ Accept: "application/json",
105
+ }));
106
+
107
+ const securityInput = await extractSecurity(client._options.security);
108
+ const requestSecurity = resolveGlobalSecurity(securityInput);
109
+
110
+ const context = {
111
+ options: client._options,
112
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
113
+ operationID: "listCancellations",
114
+ oAuth2Scopes: null,
115
+
116
+ resolvedSecurity: requestSecurity,
117
+
118
+ securitySource: client._options.security,
119
+ retryConfig: options?.retries
120
+ || client._options.retryConfig
121
+ || { strategy: "none" },
122
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
123
+ };
124
+
125
+ const requestRes = client._createRequest(context, {
126
+ security: requestSecurity,
127
+ method: "GET",
128
+ baseURL: options?.serverURL,
129
+ path: path,
130
+ headers: headers,
131
+ body: body,
132
+ userAgent: client._options.userAgent,
133
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
134
+ }, options);
135
+ if (!requestRes.ok) {
136
+ return [requestRes, { status: "invalid" }];
137
+ }
138
+ const req = requestRes.value;
139
+
140
+ const doResult = await client._do(req, {
141
+ context,
142
+ isErrorStatusCode: (statusCode: number) =>
143
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
144
+ retryConfig: context.retryConfig,
145
+ retryCodes: context.retryCodes,
146
+ });
147
+ if (!doResult.ok) {
148
+ return [doResult, { status: "request-error", request: req }];
149
+ }
150
+ const response = doResult.value;
151
+
152
+ const responseFields = {
153
+ HttpMeta: { Response: response, Request: req },
154
+ };
155
+
156
+ const [result] = await M.match<
157
+ operations.ListCancellationsResponse,
158
+ | MoovError
159
+ | ResponseValidationError
160
+ | ConnectionError
161
+ | RequestAbortedError
162
+ | RequestTimeoutError
163
+ | InvalidRequestError
164
+ | UnexpectedClientError
165
+ | SDKValidationError
166
+ >(
167
+ M.json(200, operations.ListCancellationsResponse$inboundSchema, {
168
+ hdrs: true,
169
+ key: "Result",
170
+ }),
171
+ M.fail([401, 403, 429]),
172
+ M.fail([500, 504]),
173
+ M.fail("4XX"),
174
+ M.fail("5XX"),
175
+ )(response, req, { extraFields: responseFields });
176
+ if (!result.ok) {
177
+ return [result, { status: "complete", request: req, response }];
178
+ }
179
+
180
+ return [result, { status: "complete", request: req, response }];
181
+ }
@@ -15,6 +15,7 @@ export type HookContext = {
15
15
  retryConfig: RetryConfig;
16
16
  resolvedSecurity: SecurityState | null;
17
17
  options: SDKOptions;
18
+ timeoutMs?: number;
18
19
  };
19
20
 
20
21
  export type Awaitable<T> = T | Promise<T>;
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "v2026.07.00",
76
- sdkVersion: "26.7.0-dev.2",
77
- genVersion: "2.884.4",
76
+ sdkVersion: "26.7.0-dev.4",
77
+ genVersion: "2.910.1",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 26.7.0-dev.2 2.884.4 v2026.07.00 @moovio/sdk",
79
+ "speakeasy-sdk/typescript 26.7.0-dev.4 2.910.1 v2026.07.00 @moovio/sdk",
80
80
  } as const;
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { bytesToBase64 } from "./base64.js";
6
- import { isPlainObject } from "./is-plain-object.js";
6
+ import { isPlainObject } from "./primitives.js";
7
7
 
8
8
  export class EncodingError extends Error {
9
9
  constructor(message: string) {
@@ -6,7 +6,7 @@ import { APIError } from "../models/errors/apierror.js";
6
6
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
7
  import { ERR, OK, Result } from "../types/fp.js";
8
8
  import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js";
9
- import { isPlainObject } from "./is-plain-object.js";
9
+ import { isPlainObject } from "./primitives.js";
10
10
 
11
11
  export type Encoding =
12
12
  | "jsonl"
@@ -148,3 +148,19 @@ export function allRequired<V extends Record<string, unknown>>(
148
148
 
149
149
  return v as ReturnType<typeof allRequired<V>>;
150
150
  }
151
+
152
+ export function isPlainObject(
153
+ value: unknown,
154
+ ): value is Record<string, unknown> {
155
+ if (value === null || typeof value !== "object") return false;
156
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
157
+ const proto = Object.getPrototypeOf(value);
158
+ if (proto === null || proto === Object.prototype) return true;
159
+ // cross-realm plain objects (vm contexts, iframes) inherit from a
160
+ // different realm's Object.prototype, which itself has a null prototype
161
+ try {
162
+ return Object.getPrototypeOf(proto) === null;
163
+ } catch {
164
+ return false;
165
+ }
166
+ }
@@ -194,6 +194,14 @@ async function retryBackoff(
194
194
  }
195
195
 
196
196
  function retryIntervalFromResponse(res: Response): number {
197
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
198
+ if (retryAfterMsVal) {
199
+ const parsedMs = Number(retryAfterMsVal);
200
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
201
+ return parsedMs;
202
+ }
203
+ }
204
+
197
205
  const retryVal = res.headers.get("retry-after") || "";
198
206
  if (!retryVal) {
199
207
  return 0;
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.2",
22
+ currentVersion: "26.7.0-dev.4",
23
23
  },
24
24
  });
25
25
 
@@ -182,6 +182,7 @@ import { tool$transfersGetCancellation } from "./tools/transfersGetCancellation.
182
182
  import { tool$transfersGetRefund } from "./tools/transfersGetRefund.js";
183
183
  import { tool$transfersInitiateRefund } from "./tools/transfersInitiateRefund.js";
184
184
  import { tool$transfersList } from "./tools/transfersList.js";
185
+ import { tool$transfersListCancellations } from "./tools/transfersListCancellations.js";
185
186
  import { tool$transfersListRefunds } from "./tools/transfersListRefunds.js";
186
187
  import { tool$transfersUpdate } from "./tools/transfersUpdate.js";
187
188
  import { tool$underwritingGet } from "./tools/underwritingGet.js";
@@ -213,7 +214,7 @@ export function createMCPServer(deps: {
213
214
  }) {
214
215
  const server = new McpServer({
215
216
  name: "Moov",
216
- version: "26.7.0-dev.2",
217
+ version: "26.7.0-dev.4",
217
218
  });
218
219
 
219
220
  const client = new MoovCore({
@@ -378,6 +379,7 @@ export function createMCPServer(deps: {
378
379
  tool(tool$transfersGet);
379
380
  tool(tool$transfersUpdate);
380
381
  tool(tool$transfersCreateCancellation);
382
+ tool(tool$transfersListCancellations);
381
383
  tool(tool$transfersGetCancellation);
382
384
  tool(tool$transfersInitiateRefund);
383
385
  tool(tool$transfersListRefunds);
@@ -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(
@@ -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,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