@moovio/sdk 0.0.0-dev.26 → 0.0.0-dev.28

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 (329) hide show
  1. package/README.md +133 -59
  2. package/bin/mcp-server.js +1317 -365
  3. package/bin/mcp-server.js.map +66 -35
  4. package/funcs/avatarsDelete.d.ts +23 -0
  5. package/funcs/avatarsDelete.d.ts.map +1 -0
  6. package/funcs/avatarsDelete.js +135 -0
  7. package/funcs/avatarsDelete.js.map +1 -0
  8. package/funcs/avatarsUpload.d.ts +23 -0
  9. package/funcs/avatarsUpload.d.ts.map +1 -0
  10. package/funcs/avatarsUpload.js +155 -0
  11. package/funcs/avatarsUpload.js.map +1 -0
  12. package/funcs/productsList.js +1 -0
  13. package/funcs/productsList.js.map +1 -1
  14. package/funcs/productsListCategories.d.ts +14 -0
  15. package/funcs/productsListCategories.d.ts.map +1 -0
  16. package/funcs/productsListCategories.js +107 -0
  17. package/funcs/productsListCategories.js.map +1 -0
  18. package/funcs/transfersGetRiskOutcomes.d.ts +19 -0
  19. package/funcs/transfersGetRiskOutcomes.d.ts.map +1 -0
  20. package/funcs/transfersGetRiskOutcomes.js +131 -0
  21. package/funcs/transfersGetRiskOutcomes.js.map +1 -0
  22. package/hooks/oauth2scopes.d.ts +5 -0
  23. package/hooks/oauth2scopes.d.ts.map +1 -0
  24. package/hooks/oauth2scopes.js +6 -0
  25. package/hooks/oauth2scopes.js.map +1 -0
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +3 -3
  28. package/lib/config.js +3 -3
  29. package/lib/http.d.ts +1 -1
  30. package/lib/http.d.ts.map +1 -1
  31. package/lib/http.js +1 -1
  32. package/lib/http.js.map +1 -1
  33. package/lib/security.d.ts +5 -4
  34. package/lib/security.d.ts.map +1 -1
  35. package/lib/security.js +6 -7
  36. package/lib/security.js.map +1 -1
  37. package/mcp-server/mcp-server.js +1 -1
  38. package/mcp-server/server.d.ts.map +1 -1
  39. package/mcp-server/server.js +5 -1
  40. package/mcp-server/server.js.map +1 -1
  41. package/mcp-server/tools/productsListCategories.d.ts +3 -0
  42. package/mcp-server/tools/productsListCategories.d.ts.map +1 -0
  43. package/mcp-server/tools/productsListCategories.js +24 -0
  44. package/mcp-server/tools/productsListCategories.js.map +1 -0
  45. package/mcp-server/tools/transfersGetRiskOutcomes.d.ts +8 -0
  46. package/mcp-server/tools/transfersGetRiskOutcomes.d.ts.map +1 -0
  47. package/mcp-server/tools/transfersGetRiskOutcomes.js +67 -0
  48. package/mcp-server/tools/transfersGetRiskOutcomes.js.map +1 -0
  49. package/models/components/allowedscheduleerror.d.ts +24 -0
  50. package/models/components/allowedscheduleerror.d.ts.map +1 -0
  51. package/models/components/allowedscheduleerror.js +62 -0
  52. package/models/components/allowedscheduleerror.js.map +1 -0
  53. package/models/components/avataruploadrequest.d.ts +35 -0
  54. package/models/components/avataruploadrequest.d.ts.map +1 -0
  55. package/models/components/avataruploadrequest.js +88 -0
  56. package/models/components/avataruploadrequest.js.map +1 -0
  57. package/models/components/capabilityid.d.ts +1 -0
  58. package/models/components/capabilityid.d.ts.map +1 -1
  59. package/models/components/capabilityid.js +1 -0
  60. package/models/components/capabilityid.js.map +1 -1
  61. package/models/components/cardbrandfees.d.ts +5 -0
  62. package/models/components/cardbrandfees.d.ts.map +1 -1
  63. package/models/components/cardbrandfees.js +2 -0
  64. package/models/components/cardbrandfees.js.map +1 -1
  65. package/models/components/contributingrule.d.ts +23 -0
  66. package/models/components/contributingrule.d.ts.map +1 -0
  67. package/models/components/contributingrule.js +59 -0
  68. package/models/components/contributingrule.js.map +1 -0
  69. package/models/components/createtransfer.d.ts +6 -0
  70. package/models/components/createtransfer.d.ts.map +1 -1
  71. package/models/components/createtransfer.js +3 -0
  72. package/models/components/createtransfer.js.map +1 -1
  73. package/models/components/feepaidby.d.ts +18 -0
  74. package/models/components/feepaidby.d.ts.map +1 -0
  75. package/models/components/feepaidby.js +52 -0
  76. package/models/components/feepaidby.js.map +1 -0
  77. package/models/components/filedetails.d.ts +1 -1
  78. package/models/components/filepurpose.d.ts +2 -2
  79. package/models/components/filepurpose.js +1 -1
  80. package/models/components/fullissuedcard.d.ts +6 -3
  81. package/models/components/fullissuedcard.d.ts.map +1 -1
  82. package/models/components/fullissuedcard.js +3 -3
  83. package/models/components/fullissuedcard.js.map +1 -1
  84. package/models/components/incurredfee.d.ts +6 -0
  85. package/models/components/incurredfee.d.ts.map +1 -1
  86. package/models/components/incurredfee.js +3 -0
  87. package/models/components/incurredfee.js.map +1 -1
  88. package/models/components/index.d.ts +23 -0
  89. package/models/components/index.d.ts.map +1 -1
  90. package/models/components/index.js +23 -0
  91. package/models/components/index.js.map +1 -1
  92. package/models/components/issuedcard.d.ts +6 -3
  93. package/models/components/issuedcard.d.ts.map +1 -1
  94. package/models/components/issuedcard.js +3 -3
  95. package/models/components/issuedcard.js.map +1 -1
  96. package/models/components/issuedcontrols.d.ts +76 -0
  97. package/models/components/issuedcontrols.d.ts.map +1 -0
  98. package/models/components/issuedcontrols.js +92 -0
  99. package/models/components/issuedcontrols.js.map +1 -0
  100. package/models/components/issuedvelocitylimit.d.ts +59 -0
  101. package/models/components/issuedvelocitylimit.d.ts.map +1 -0
  102. package/models/components/issuedvelocitylimit.js +74 -0
  103. package/models/components/issuedvelocitylimit.js.map +1 -0
  104. package/models/components/issuingcontrols.d.ts +47 -0
  105. package/models/components/issuingcontrols.d.ts.map +1 -1
  106. package/models/components/issuingcontrols.js +33 -1
  107. package/models/components/issuingcontrols.js.map +1 -1
  108. package/models/components/issuingcontrolserror.d.ts +11 -0
  109. package/models/components/issuingcontrolserror.d.ts.map +1 -1
  110. package/models/components/issuingcontrolserror.js +12 -0
  111. package/models/components/issuingcontrolserror.js.map +1 -1
  112. package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
  113. package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
  114. package/models/components/issuingcontrolsrestrictionmode.js +52 -0
  115. package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
  116. package/models/components/issuingintervallimit.d.ts +9 -6
  117. package/models/components/issuingintervallimit.d.ts.map +1 -1
  118. package/models/components/issuingintervallimit.js +7 -4
  119. package/models/components/issuingintervallimit.js.map +1 -1
  120. package/models/components/issuingmerchantcategory.d.ts +42 -0
  121. package/models/components/issuingmerchantcategory.d.ts.map +1 -0
  122. package/models/components/issuingmerchantcategory.js +76 -0
  123. package/models/components/issuingmerchantcategory.js.map +1 -0
  124. package/models/components/issuingscheduleday.d.ts +17 -0
  125. package/models/components/issuingscheduleday.d.ts.map +1 -0
  126. package/models/components/issuingscheduleday.js +54 -0
  127. package/models/components/issuingscheduleday.js.map +1 -0
  128. package/models/components/issuingvelocitylimit.d.ts +8 -3
  129. package/models/components/issuingvelocitylimit.d.ts.map +1 -1
  130. package/models/components/issuingvelocitylimit.js +4 -2
  131. package/models/components/issuingvelocitylimit.js.map +1 -1
  132. package/models/components/issuingvelocitylimiterror.d.ts +2 -0
  133. package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
  134. package/models/components/issuingvelocitylimiterror.js +2 -0
  135. package/models/components/issuingvelocitylimiterror.js.map +1 -1
  136. package/models/components/merchantcategoryrestrictions.d.ts +41 -0
  137. package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
  138. package/models/components/merchantcategoryrestrictions.js +68 -0
  139. package/models/components/merchantcategoryrestrictions.js.map +1 -0
  140. package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
  141. package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
  142. package/models/components/merchantcategoryrestrictionserror.js +66 -0
  143. package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
  144. package/models/components/merchantentry.d.ts +33 -0
  145. package/models/components/merchantentry.d.ts.map +1 -0
  146. package/models/components/merchantentry.js +63 -0
  147. package/models/components/merchantentry.js.map +1 -0
  148. package/models/components/merchantentryerror.d.ts +19 -0
  149. package/models/components/merchantentryerror.d.ts.map +1 -0
  150. package/models/components/merchantentryerror.js +61 -0
  151. package/models/components/merchantentryerror.js.map +1 -0
  152. package/models/components/merchantrestrictions.d.ts +30 -0
  153. package/models/components/merchantrestrictions.d.ts.map +1 -0
  154. package/models/components/merchantrestrictions.js +62 -0
  155. package/models/components/merchantrestrictions.js.map +1 -0
  156. package/models/components/merchantrestrictionserror.d.ts +24 -0
  157. package/models/components/merchantrestrictionserror.d.ts.map +1 -0
  158. package/models/components/merchantrestrictionserror.js +62 -0
  159. package/models/components/merchantrestrictionserror.js.map +1 -0
  160. package/models/components/onboardinginvite.d.ts +1 -1
  161. package/models/components/partnerriskoutcomesresponse.d.ts +33 -0
  162. package/models/components/partnerriskoutcomesresponse.d.ts.map +1 -0
  163. package/models/components/partnerriskoutcomesresponse.js +62 -0
  164. package/models/components/partnerriskoutcomesresponse.js.map +1 -0
  165. package/models/components/paymentlinkpayoutdetails.d.ts +14 -0
  166. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  167. package/models/components/paymentlinkpayoutdetails.js +3 -0
  168. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  169. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +14 -0
  170. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  171. package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
  172. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  173. package/models/components/payoutdetailserror.d.ts +2 -0
  174. package/models/components/payoutdetailserror.d.ts.map +1 -1
  175. package/models/components/payoutdetailserror.js +2 -0
  176. package/models/components/payoutdetailserror.js.map +1 -1
  177. package/models/components/product.d.ts +6 -0
  178. package/models/components/product.d.ts.map +1 -1
  179. package/models/components/product.js +3 -0
  180. package/models/components/product.js.map +1 -1
  181. package/models/components/productcategories.d.ts +21 -0
  182. package/models/components/productcategories.d.ts.map +1 -0
  183. package/models/components/productcategories.js +59 -0
  184. package/models/components/productcategories.js.map +1 -0
  185. package/models/components/productcategory.d.ts +43 -0
  186. package/models/components/productcategory.d.ts.map +1 -0
  187. package/models/components/productcategory.js +67 -0
  188. package/models/components/productcategory.js.map +1 -0
  189. package/models/components/productrequest.d.ts +5 -0
  190. package/models/components/productrequest.d.ts.map +1 -1
  191. package/models/components/productrequest.js +2 -0
  192. package/models/components/productrequest.js.map +1 -1
  193. package/models/components/schedulewindow.d.ts +34 -0
  194. package/models/components/schedulewindow.d.ts.map +1 -0
  195. package/models/components/schedulewindow.js +64 -0
  196. package/models/components/schedulewindow.js.map +1 -0
  197. package/models/components/schedulewindowerror.d.ts +21 -0
  198. package/models/components/schedulewindowerror.d.ts.map +1 -0
  199. package/models/components/schedulewindowerror.js +63 -0
  200. package/models/components/schedulewindowerror.js.map +1 -0
  201. package/models/components/transferfeepaidby.d.ts +24 -0
  202. package/models/components/transferfeepaidby.d.ts.map +1 -0
  203. package/models/components/transferfeepaidby.js +60 -0
  204. package/models/components/transferfeepaidby.js.map +1 -0
  205. package/models/components/updateissuedcard.d.ts +6 -0
  206. package/models/components/updateissuedcard.d.ts.map +1 -1
  207. package/models/components/updateissuedcard.js +3 -0
  208. package/models/components/updateissuedcard.js.map +1 -1
  209. package/models/components/updateissuingcontrols.d.ts +130 -0
  210. package/models/components/updateissuingcontrols.d.ts.map +1 -0
  211. package/models/components/updateissuingcontrols.js +130 -0
  212. package/models/components/updateissuingcontrols.js.map +1 -0
  213. package/models/components/updateissuingcontrolserror.d.ts +33 -0
  214. package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
  215. package/models/components/updateissuingcontrolserror.js +72 -0
  216. package/models/components/updateissuingcontrolserror.js.map +1 -0
  217. package/models/errors/productrequestvalidationerror.d.ts +3 -0
  218. package/models/errors/productrequestvalidationerror.d.ts.map +1 -1
  219. package/models/errors/productrequestvalidationerror.js +4 -0
  220. package/models/errors/productrequestvalidationerror.js.map +1 -1
  221. package/models/errors/updateissuedcarderror.d.ts +3 -0
  222. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  223. package/models/errors/updateissuedcarderror.js +4 -0
  224. package/models/errors/updateissuedcarderror.js.map +1 -1
  225. package/models/operations/deleteavatar.d.ts +52 -0
  226. package/models/operations/deleteavatar.d.ts.map +1 -0
  227. package/models/operations/deleteavatar.js +102 -0
  228. package/models/operations/deleteavatar.js.map +1 -0
  229. package/models/operations/gettransferriskoutcomes.d.ts +48 -0
  230. package/models/operations/gettransferriskoutcomes.d.ts.map +1 -0
  231. package/models/operations/gettransferriskoutcomes.js +99 -0
  232. package/models/operations/gettransferriskoutcomes.js.map +1 -0
  233. package/models/operations/index.d.ts +4 -0
  234. package/models/operations/index.d.ts.map +1 -1
  235. package/models/operations/index.js +4 -0
  236. package/models/operations/index.js.map +1 -1
  237. package/models/operations/listproductcategories.d.ts +24 -0
  238. package/models/operations/listproductcategories.d.ts.map +1 -0
  239. package/models/operations/listproductcategories.js +72 -0
  240. package/models/operations/listproductcategories.js.map +1 -0
  241. package/models/operations/listproducts.d.ts +9 -0
  242. package/models/operations/listproducts.d.ts.map +1 -1
  243. package/models/operations/listproducts.js +2 -0
  244. package/models/operations/listproducts.js.map +1 -1
  245. package/models/operations/uploadavatar.d.ts +55 -0
  246. package/models/operations/uploadavatar.d.ts.map +1 -0
  247. package/models/operations/uploadavatar.js +113 -0
  248. package/models/operations/uploadavatar.js.map +1 -0
  249. package/package.json +1 -1
  250. package/sdk/avatars.d.ts +24 -0
  251. package/sdk/avatars.d.ts.map +1 -1
  252. package/sdk/avatars.js +30 -0
  253. package/sdk/avatars.js.map +1 -1
  254. package/sdk/products.d.ts +4 -0
  255. package/sdk/products.d.ts.map +1 -1
  256. package/sdk/products.js +7 -0
  257. package/sdk/products.js.map +1 -1
  258. package/sdk/transfers.d.ts +9 -0
  259. package/sdk/transfers.d.ts.map +1 -1
  260. package/sdk/transfers.js +12 -0
  261. package/sdk/transfers.js.map +1 -1
  262. package/src/funcs/avatarsDelete.ts +194 -0
  263. package/src/funcs/avatarsUpload.ts +231 -0
  264. package/src/funcs/productsList.ts +1 -0
  265. package/src/funcs/productsListCategories.ts +149 -0
  266. package/src/funcs/transfersGetRiskOutcomes.ts +182 -0
  267. package/src/hooks/oauth2scopes.ts +8 -0
  268. package/src/lib/config.ts +3 -3
  269. package/src/lib/http.ts +3 -1
  270. package/src/lib/security.ts +10 -5
  271. package/src/mcp-server/mcp-server.ts +1 -1
  272. package/src/mcp-server/server.ts +5 -1
  273. package/src/mcp-server/tools/productsListCategories.ts +29 -0
  274. package/src/mcp-server/tools/transfersGetRiskOutcomes.ts +41 -0
  275. package/src/models/components/allowedscheduleerror.ts +62 -0
  276. package/src/models/components/avataruploadrequest.ts +113 -0
  277. package/src/models/components/capabilityid.ts +1 -0
  278. package/src/models/components/cardbrandfees.ts +7 -0
  279. package/src/models/components/contributingrule.ts +58 -0
  280. package/src/models/components/createtransfer.ts +13 -0
  281. package/src/models/components/feepaidby.ts +32 -0
  282. package/src/models/components/filedetails.ts +1 -1
  283. package/src/models/components/filepurpose.ts +2 -2
  284. package/src/models/components/fullissuedcard.ts +12 -9
  285. package/src/models/components/incurredfee.ts +12 -0
  286. package/src/models/components/index.ts +23 -0
  287. package/src/models/components/issuedcard.ts +12 -9
  288. package/src/models/components/issuedcontrols.ts +180 -0
  289. package/src/models/components/issuedvelocitylimit.ts +112 -0
  290. package/src/models/components/issuingcontrols.ts +107 -0
  291. package/src/models/components/issuingcontrolserror.ts +39 -0
  292. package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
  293. package/src/models/components/issuingintervallimit.ts +18 -10
  294. package/src/models/components/issuingmerchantcategory.ts +56 -0
  295. package/src/models/components/issuingscheduleday.ts +26 -0
  296. package/src/models/components/issuingvelocitylimit.ts +12 -5
  297. package/src/models/components/issuingvelocitylimiterror.ts +4 -0
  298. package/src/models/components/merchantcategoryrestrictions.ts +97 -0
  299. package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
  300. package/src/models/components/merchantentry.ts +68 -0
  301. package/src/models/components/merchantentryerror.ts +56 -0
  302. package/src/models/components/merchantrestrictions.ts +75 -0
  303. package/src/models/components/merchantrestrictionserror.ts +62 -0
  304. package/src/models/components/onboardinginvite.ts +1 -1
  305. package/src/models/components/partnerriskoutcomesresponse.ts +77 -0
  306. package/src/models/components/paymentlinkpayoutdetails.ts +16 -0
  307. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +16 -0
  308. package/src/models/components/payoutdetailserror.ts +4 -0
  309. package/src/models/components/product.ts +13 -0
  310. package/src/models/components/productcategories.ts +60 -0
  311. package/src/models/components/productcategory.ts +84 -0
  312. package/src/models/components/productrequest.ts +7 -0
  313. package/src/models/components/schedulewindow.ts +73 -0
  314. package/src/models/components/schedulewindowerror.ts +60 -0
  315. package/src/models/components/transferfeepaidby.ts +63 -0
  316. package/src/models/components/updateissuedcard.ts +13 -0
  317. package/src/models/components/updateissuingcontrols.ts +351 -0
  318. package/src/models/components/updateissuingcontrolserror.ts +101 -0
  319. package/src/models/errors/productrequestvalidationerror.ts +6 -0
  320. package/src/models/errors/updateissuedcarderror.ts +6 -0
  321. package/src/models/operations/deleteavatar.ts +154 -0
  322. package/src/models/operations/gettransferriskoutcomes.ts +136 -0
  323. package/src/models/operations/index.ts +4 -0
  324. package/src/models/operations/listproductcategories.ts +69 -0
  325. package/src/models/operations/listproducts.ts +11 -0
  326. package/src/models/operations/uploadavatar.ts +167 -0
  327. package/src/sdk/avatars.ts +50 -0
  328. package/src/sdk/products.ts +13 -0
  329. package/src/sdk/transfers.ts +20 -0
@@ -0,0 +1,182 @@
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
+ * Retrieve the risk rules that contributed to a transfer's risk decision.
30
+ *
31
+ * This endpoint has limited availability and must be enabled for your account by Moov.
32
+ *
33
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
34
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
35
+ */
36
+ export function transfersGetRiskOutcomes(
37
+ client: MoovCore,
38
+ request: operations.GetTransferRiskOutcomesRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.GetTransferRiskOutcomesResponse,
43
+ | MoovError
44
+ | ResponseValidationError
45
+ | ConnectionError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | InvalidRequestError
49
+ | UnexpectedClientError
50
+ | SDKValidationError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: MoovCore,
62
+ request: operations.GetTransferRiskOutcomesRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.GetTransferRiskOutcomesResponse,
68
+ | MoovError
69
+ | ResponseValidationError
70
+ | ConnectionError
71
+ | RequestAbortedError
72
+ | RequestTimeoutError
73
+ | InvalidRequestError
74
+ | UnexpectedClientError
75
+ | SDKValidationError
76
+ >,
77
+ APICall,
78
+ ]
79
+ > {
80
+ const parsed = safeParse(
81
+ request,
82
+ (value) =>
83
+ operations.GetTransferRiskOutcomesRequest$outboundSchema.parse(value),
84
+ "Input validation failed",
85
+ );
86
+ if (!parsed.ok) {
87
+ return [parsed, { status: "invalid" }];
88
+ }
89
+ const payload = parsed.value;
90
+ const body = null;
91
+
92
+ const pathParams = {
93
+ transferID: encodeSimple("transferID", payload.transferID, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+ const path = pathToFunc("/transfers/{transferID}/risk-outcomes")(pathParams);
99
+
100
+ const headers = new Headers(compactMap({
101
+ Accept: "application/json",
102
+ "X-Account-ID": encodeSimple("X-Account-ID", payload["X-Account-ID"], {
103
+ explode: false,
104
+ charEncoding: "none",
105
+ }),
106
+ }));
107
+
108
+ const securityInput = await extractSecurity(client._options.security);
109
+ const requestSecurity = resolveGlobalSecurity(securityInput);
110
+
111
+ const context = {
112
+ options: client._options,
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
114
+ operationID: "getTransferRiskOutcomes",
115
+ oAuth2Scopes: null,
116
+
117
+ resolvedSecurity: requestSecurity,
118
+
119
+ securitySource: client._options.security,
120
+ retryConfig: options?.retries
121
+ || client._options.retryConfig
122
+ || { strategy: "none" },
123
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
+ };
125
+
126
+ const requestRes = client._createRequest(context, {
127
+ security: requestSecurity,
128
+ method: "GET",
129
+ baseURL: options?.serverURL,
130
+ path: path,
131
+ headers: headers,
132
+ body: body,
133
+ userAgent: client._options.userAgent,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ isErrorStatusCode: (statusCode: number) =>
144
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
145
+ retryConfig: context.retryConfig,
146
+ retryCodes: context.retryCodes,
147
+ });
148
+ if (!doResult.ok) {
149
+ return [doResult, { status: "request-error", request: req }];
150
+ }
151
+ const response = doResult.value;
152
+
153
+ const responseFields = {
154
+ HttpMeta: { Response: response, Request: req },
155
+ };
156
+
157
+ const [result] = await M.match<
158
+ operations.GetTransferRiskOutcomesResponse,
159
+ | MoovError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.json(200, operations.GetTransferRiskOutcomesResponse$inboundSchema, {
169
+ hdrs: true,
170
+ key: "Result",
171
+ }),
172
+ M.fail([401, 403, 404, 429]),
173
+ M.fail([500, 504]),
174
+ M.fail("4XX"),
175
+ M.fail("5XX"),
176
+ )(response, req, { extraFields: responseFields });
177
+ if (!result.ok) {
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
180
+
181
+ return [result, { status: "complete", request: req, response }];
182
+ }
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ /**
6
+ * Available scopes for the OAuth2Auth OAuth 2.0 scheme (clientCredentials flow).
7
+ */
8
+ export type OAuth2AuthOAuth2Scope = "/accounts.write";
package/src/lib/config.ts CHANGED
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "dev",
76
- sdkVersion: "0.0.0-dev.26",
77
- genVersion: "2.916.2",
78
- userAgent: "speakeasy-sdk/typescript 0.0.0-dev.26 2.916.2 dev @moovio/sdk",
76
+ sdkVersion: "0.0.0-dev.28",
77
+ genVersion: "2.924.0",
78
+ userAgent: "speakeasy-sdk/typescript 0.0.0-dev.28 2.924.0 dev @moovio/sdk",
79
79
  } as const;
package/src/lib/http.ts CHANGED
@@ -45,8 +45,10 @@ export class HTTPClient {
45
45
  private requestHooks: BeforeRequestHook[] = [];
46
46
  private requestErrorHooks: RequestErrorHook[] = [];
47
47
  private responseHooks: ResponseHook[] = [];
48
+ private options: HTTPClientOptions;
48
49
 
49
- constructor(private options: HTTPClientOptions = {}) {
50
+ constructor(options: HTTPClientOptions = {}) {
51
+ this.options = options;
50
52
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
51
53
  }
52
54
 
@@ -12,17 +12,22 @@ type OAuth2PasswordFlow = {
12
12
  tokenURL: string;
13
13
  };
14
14
 
15
- export enum SecurityErrorCode {
16
- Incomplete = "incomplete",
17
- UnrecognisedSecurityType = "unrecognized_security_type",
18
- }
15
+ export const SecurityErrorCode = {
16
+ Incomplete: "incomplete",
17
+ UnrecognisedSecurityType: "unrecognized_security_type",
18
+ } as const;
19
+ export type SecurityErrorCode =
20
+ (typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
19
21
 
20
22
  export class SecurityError extends Error {
23
+ public code: SecurityErrorCode;
24
+
21
25
  constructor(
22
- public code: SecurityErrorCode,
26
+ code: SecurityErrorCode,
23
27
  message: string,
24
28
  ) {
25
29
  super(message);
30
+ this.code = code;
26
31
  this.name = "SecurityError";
27
32
  }
28
33
 
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.0.0-dev.26",
22
+ currentVersion: "0.0.0-dev.28",
23
23
  },
24
24
  });
25
25
 
@@ -134,6 +134,7 @@ import { tool$productsCreate } from "./tools/productsCreate.js";
134
134
  import { tool$productsDisable } from "./tools/productsDisable.js";
135
135
  import { tool$productsGet } from "./tools/productsGet.js";
136
136
  import { tool$productsList } from "./tools/productsList.js";
137
+ import { tool$productsListCategories } from "./tools/productsListCategories.js";
137
138
  import { tool$productsUpdate } from "./tools/productsUpdate.js";
138
139
  import { tool$receiptsCreate } from "./tools/receiptsCreate.js";
139
140
  import { tool$receiptsList } from "./tools/receiptsList.js";
@@ -181,6 +182,7 @@ import { tool$transfersGenerateOptions } from "./tools/transfersGenerateOptions.
181
182
  import { tool$transfersGet } from "./tools/transfersGet.js";
182
183
  import { tool$transfersGetCancellation } from "./tools/transfersGetCancellation.js";
183
184
  import { tool$transfersGetRefund } from "./tools/transfersGetRefund.js";
185
+ import { tool$transfersGetRiskOutcomes } from "./tools/transfersGetRiskOutcomes.js";
184
186
  import { tool$transfersInitiateRefund } from "./tools/transfersInitiateRefund.js";
185
187
  import { tool$transfersList } from "./tools/transfersList.js";
186
188
  import { tool$transfersListCancellations } from "./tools/transfersListCancellations.js";
@@ -215,7 +217,7 @@ export function createMCPServer(deps: {
215
217
  }) {
216
218
  const server = new McpServer({
217
219
  name: "Moov",
218
- version: "0.0.0-dev.26",
220
+ version: "0.0.0-dev.28",
219
221
  });
220
222
 
221
223
  const client = new MoovCore({
@@ -338,6 +340,7 @@ export function createMCPServer(deps: {
338
340
  tool(tool$productsGet);
339
341
  tool(tool$productsUpdate);
340
342
  tool(tool$productsDisable);
343
+ tool(tool$productsListCategories);
341
344
  tool(tool$representativesCreate);
342
345
  tool(tool$representativesList);
343
346
  tool(tool$representativesDelete);
@@ -386,6 +389,7 @@ export function createMCPServer(deps: {
386
389
  tool(tool$transfersListRefunds);
387
390
  tool(tool$transfersGetRefund);
388
391
  tool(tool$transfersCreateReversal);
392
+ tool(tool$transfersGetRiskOutcomes);
389
393
  tool(tool$underwritingGet);
390
394
  tool(tool$underwritingSave);
391
395
  tool(tool$underwritingUpsert);
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { productsListCategories } from "../../funcs/productsListCategories.js";
6
+ import { formatResult, ToolDefinition } from "../tools.js";
7
+
8
+ export const tool$productsListCategories: ToolDefinition = {
9
+ name: "products-list-categories",
10
+ description:
11
+ `Returns the full, read-only list of product categories from the product taxonomy.`,
12
+ tool: async (client, ctx) => {
13
+ const [result, apiCall] = await productsListCategories(
14
+ client,
15
+ { fetchOptions: { signal: ctx.signal } },
16
+ ).$inspect();
17
+
18
+ if (!result.ok) {
19
+ return {
20
+ content: [{ type: "text", text: result.error.message }],
21
+ isError: true,
22
+ };
23
+ }
24
+
25
+ const value = result.value.result;
26
+
27
+ return formatResult(value, apiCall);
28
+ },
29
+ };
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { transfersGetRiskOutcomes } from "../../funcs/transfersGetRiskOutcomes.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetTransferRiskOutcomesRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$transfersGetRiskOutcomes: ToolDefinition<typeof args> = {
14
+ name: "transfers-get-risk-outcomes",
15
+ description:
16
+ `Retrieve the risk rules that contributed to a transfer's risk decision.
17
+
18
+ This endpoint has limited availability and must be enabled for your account by Moov.
19
+
20
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
21
+ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
22
+ args,
23
+ tool: async (client, args, ctx) => {
24
+ const [result, apiCall] = await transfersGetRiskOutcomes(
25
+ client,
26
+ args.request,
27
+ { fetchOptions: { signal: ctx.signal } },
28
+ ).$inspect();
29
+
30
+ if (!result.ok) {
31
+ return {
32
+ content: [{ type: "text", text: result.error.message }],
33
+ isError: true,
34
+ };
35
+ }
36
+
37
+ const value = result.value.result;
38
+
39
+ return formatResult(value, apiCall);
40
+ },
41
+ };
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ ScheduleWindowError,
12
+ ScheduleWindowError$inboundSchema,
13
+ ScheduleWindowError$Outbound,
14
+ ScheduleWindowError$outboundSchema,
15
+ } from "./schedulewindowerror.js";
16
+
17
+ export type AllowedScheduleError = {
18
+ timezone?: string | undefined;
19
+ windows?: { [k: string]: ScheduleWindowError } | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AllowedScheduleError$inboundSchema: z.ZodType<
24
+ AllowedScheduleError,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ timezone: types.optional(types.string()),
29
+ windows: types.optional(z.record(ScheduleWindowError$inboundSchema)),
30
+ });
31
+ /** @internal */
32
+ export type AllowedScheduleError$Outbound = {
33
+ timezone?: string | undefined;
34
+ windows?: { [k: string]: ScheduleWindowError$Outbound } | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const AllowedScheduleError$outboundSchema: z.ZodType<
39
+ AllowedScheduleError$Outbound,
40
+ z.ZodTypeDef,
41
+ AllowedScheduleError
42
+ > = z.object({
43
+ timezone: z.string().optional(),
44
+ windows: z.record(ScheduleWindowError$outboundSchema).optional(),
45
+ });
46
+
47
+ export function allowedScheduleErrorToJSON(
48
+ allowedScheduleError: AllowedScheduleError,
49
+ ): string {
50
+ return JSON.stringify(
51
+ AllowedScheduleError$outboundSchema.parse(allowedScheduleError),
52
+ );
53
+ }
54
+ export function allowedScheduleErrorFromJSON(
55
+ jsonString: string,
56
+ ): SafeParseResult<AllowedScheduleError, SDKValidationError> {
57
+ return safeParse(
58
+ jsonString,
59
+ (x) => AllowedScheduleError$inboundSchema.parse(JSON.parse(x)),
60
+ `Failed to parse 'AllowedScheduleError' from JSON`,
61
+ );
62
+ }
@@ -0,0 +1,113 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { blobLikeSchema } from "../../types/blobs.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type AvatarUploadRequestFile = {
13
+ fileName: string;
14
+ content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
15
+ };
16
+
17
+ export type AvatarUploadRequest = {
18
+ /**
19
+ * A JPEG, PNG, or WebP image file to upload as an avatar.
20
+ */
21
+ file: AvatarUploadRequestFile | Blob;
22
+ };
23
+
24
+ /** @internal */
25
+ export const AvatarUploadRequestFile$inboundSchema: z.ZodType<
26
+ AvatarUploadRequestFile,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ fileName: types.string(),
31
+ content: z.union([
32
+ z.instanceof(ReadableStream<Uint8Array>),
33
+ z.instanceof(Blob),
34
+ z.instanceof(ArrayBuffer),
35
+ z.instanceof(Uint8Array),
36
+ ]),
37
+ });
38
+ /** @internal */
39
+ export type AvatarUploadRequestFile$Outbound = {
40
+ fileName: string;
41
+ content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
42
+ };
43
+
44
+ /** @internal */
45
+ export const AvatarUploadRequestFile$outboundSchema: z.ZodType<
46
+ AvatarUploadRequestFile$Outbound,
47
+ z.ZodTypeDef,
48
+ AvatarUploadRequestFile
49
+ > = z.object({
50
+ fileName: z.string(),
51
+ content: z.union([
52
+ z.instanceof(ReadableStream<Uint8Array>),
53
+ z.instanceof(Blob),
54
+ z.instanceof(ArrayBuffer),
55
+ z.instanceof(Uint8Array),
56
+ ]),
57
+ });
58
+
59
+ export function avatarUploadRequestFileToJSON(
60
+ avatarUploadRequestFile: AvatarUploadRequestFile,
61
+ ): string {
62
+ return JSON.stringify(
63
+ AvatarUploadRequestFile$outboundSchema.parse(avatarUploadRequestFile),
64
+ );
65
+ }
66
+ export function avatarUploadRequestFileFromJSON(
67
+ jsonString: string,
68
+ ): SafeParseResult<AvatarUploadRequestFile, SDKValidationError> {
69
+ return safeParse(
70
+ jsonString,
71
+ (x) => AvatarUploadRequestFile$inboundSchema.parse(JSON.parse(x)),
72
+ `Failed to parse 'AvatarUploadRequestFile' from JSON`,
73
+ );
74
+ }
75
+
76
+ /** @internal */
77
+ export const AvatarUploadRequest$inboundSchema: z.ZodType<
78
+ AvatarUploadRequest,
79
+ z.ZodTypeDef,
80
+ unknown
81
+ > = z.object({
82
+ file: z.lazy(() => AvatarUploadRequestFile$inboundSchema),
83
+ });
84
+ /** @internal */
85
+ export type AvatarUploadRequest$Outbound = {
86
+ file: AvatarUploadRequestFile$Outbound | Blob;
87
+ };
88
+
89
+ /** @internal */
90
+ export const AvatarUploadRequest$outboundSchema: z.ZodType<
91
+ AvatarUploadRequest$Outbound,
92
+ z.ZodTypeDef,
93
+ AvatarUploadRequest
94
+ > = z.object({
95
+ file: z.lazy(() => AvatarUploadRequestFile$outboundSchema).or(blobLikeSchema),
96
+ });
97
+
98
+ export function avatarUploadRequestToJSON(
99
+ avatarUploadRequest: AvatarUploadRequest,
100
+ ): string {
101
+ return JSON.stringify(
102
+ AvatarUploadRequest$outboundSchema.parse(avatarUploadRequest),
103
+ );
104
+ }
105
+ export function avatarUploadRequestFromJSON(
106
+ jsonString: string,
107
+ ): SafeParseResult<AvatarUploadRequest, SDKValidationError> {
108
+ return safeParse(
109
+ jsonString,
110
+ (x) => AvatarUploadRequest$inboundSchema.parse(JSON.parse(x)),
111
+ `Failed to parse 'AvatarUploadRequest' from JSON`,
112
+ );
113
+ }
@@ -27,6 +27,7 @@ export const CapabilityID = {
27
27
  SendFundsAch: "send-funds.ach",
28
28
  SendFundsRtp: "send-funds.rtp",
29
29
  SendFundsInstantBank: "send-funds.instant-bank",
30
+ SendFundsWire: "send-funds.wire",
30
31
  CollectFunds: "collect-funds",
31
32
  CollectFundsCardPayments: "collect-funds.card-payments",
32
33
  MoneyTransferPullFromCard: "money-transfer.pull-from-card",
@@ -57,6 +57,10 @@ export type CardBrandFees = {
57
57
  * Details of refunded transactions.
58
58
  */
59
59
  refunds?: BillingCountAndAmount | undefined;
60
+ /**
61
+ * Details of card cancellations.
62
+ */
63
+ cardCancellations?: BillingCountAndAmount | undefined;
60
64
  /**
61
65
  * Total fees for this card brand.
62
66
  */
@@ -86,6 +90,7 @@ export const CardBrandFees$inboundSchema: z.ZodType<
86
90
  ),
87
91
  declines: types.optional(BillingCountAndAmount$inboundSchema),
88
92
  refunds: types.optional(BillingCountAndAmount$inboundSchema),
93
+ cardCancellations: types.optional(BillingCountAndAmount$inboundSchema),
89
94
  total: BillingCountAndAmount$inboundSchema,
90
95
  });
91
96
  /** @internal */
@@ -101,6 +106,7 @@ export type CardBrandFees$Outbound = {
101
106
  completedInternationalInPerson?: BillingCountAndAmount$Outbound | undefined;
102
107
  declines?: BillingCountAndAmount$Outbound | undefined;
103
108
  refunds?: BillingCountAndAmount$Outbound | undefined;
109
+ cardCancellations?: BillingCountAndAmount$Outbound | undefined;
104
110
  total: BillingCountAndAmount$Outbound;
105
111
  };
106
112
 
@@ -121,6 +127,7 @@ export const CardBrandFees$outboundSchema: z.ZodType<
121
127
  .optional(),
122
128
  declines: BillingCountAndAmount$outboundSchema.optional(),
123
129
  refunds: BillingCountAndAmount$outboundSchema.optional(),
130
+ cardCancellations: BillingCountAndAmount$outboundSchema.optional(),
124
131
  total: BillingCountAndAmount$outboundSchema,
125
132
  });
126
133
 
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * A risk rule that contributed to a transfer's risk decision.
13
+ */
14
+ export type ContributingRule = {
15
+ /**
16
+ * Human-readable name of the contributing risk rule.
17
+ */
18
+ name: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const ContributingRule$inboundSchema: z.ZodType<
23
+ ContributingRule,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ name: types.string(),
28
+ });
29
+ /** @internal */
30
+ export type ContributingRule$Outbound = {
31
+ name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const ContributingRule$outboundSchema: z.ZodType<
36
+ ContributingRule$Outbound,
37
+ z.ZodTypeDef,
38
+ ContributingRule
39
+ > = z.object({
40
+ name: z.string(),
41
+ });
42
+
43
+ export function contributingRuleToJSON(
44
+ contributingRule: ContributingRule,
45
+ ): string {
46
+ return JSON.stringify(
47
+ ContributingRule$outboundSchema.parse(contributingRule),
48
+ );
49
+ }
50
+ export function contributingRuleFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<ContributingRule, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => ContributingRule$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'ContributingRule' from JSON`,
57
+ );
58
+ }
@@ -43,6 +43,12 @@ import {
43
43
  FacilitatorFee$Outbound,
44
44
  FacilitatorFee$outboundSchema,
45
45
  } from "./facilitatorfee.js";
46
+ import {
47
+ TransferFeePaidBy,
48
+ TransferFeePaidBy$inboundSchema,
49
+ TransferFeePaidBy$Outbound,
50
+ TransferFeePaidBy$outboundSchema,
51
+ } from "./transferfeepaidby.js";
46
52
 
47
53
  export type CreateTransfer = {
48
54
  /**
@@ -78,6 +84,10 @@ export type CreateTransfer = {
78
84
  */
79
85
  lineItems?: CreateTransferLineItems | undefined;
80
86
  amountDetails?: CreateTransferAmountDetails | undefined;
87
+ /**
88
+ * Indicates which party bears fees for the transfer, keyed by fee type.
89
+ */
90
+ feePaidBy?: TransferFeePaidBy | undefined;
81
91
  };
82
92
 
83
93
  /** @internal */
@@ -95,6 +105,7 @@ export const CreateTransfer$inboundSchema: z.ZodType<
95
105
  foreignID: types.optional(types.string()),
96
106
  lineItems: types.optional(CreateTransferLineItems$inboundSchema),
97
107
  amountDetails: types.optional(CreateTransferAmountDetails$inboundSchema),
108
+ feePaidBy: types.optional(TransferFeePaidBy$inboundSchema),
98
109
  });
99
110
  /** @internal */
100
111
  export type CreateTransfer$Outbound = {
@@ -107,6 +118,7 @@ export type CreateTransfer$Outbound = {
107
118
  foreignID?: string | undefined;
108
119
  lineItems?: CreateTransferLineItems$Outbound | undefined;
109
120
  amountDetails?: CreateTransferAmountDetails$Outbound | undefined;
121
+ feePaidBy?: TransferFeePaidBy$Outbound | undefined;
110
122
  };
111
123
 
112
124
  /** @internal */
@@ -124,6 +136,7 @@ export const CreateTransfer$outboundSchema: z.ZodType<
124
136
  foreignID: z.string().optional(),
125
137
  lineItems: CreateTransferLineItems$outboundSchema.optional(),
126
138
  amountDetails: CreateTransferAmountDetails$outboundSchema.optional(),
139
+ feePaidBy: TransferFeePaidBy$outboundSchema.optional(),
127
140
  });
128
141
 
129
142
  export function createTransferToJSON(createTransfer: CreateTransfer): string {