@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,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Indicates which party to a money movement bears an incurred fee.
11
+ */
12
+ export const FeePaidBy = {
13
+ Source: "source",
14
+ Destination: "destination",
15
+ } as const;
16
+ /**
17
+ * Indicates which party to a money movement bears an incurred fee.
18
+ */
19
+ export type FeePaidBy = OpenEnum<typeof FeePaidBy>;
20
+
21
+ /** @internal */
22
+ export const FeePaidBy$inboundSchema: z.ZodType<
23
+ FeePaidBy,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = openEnums.inboundSchema(FeePaidBy);
27
+ /** @internal */
28
+ export const FeePaidBy$outboundSchema: z.ZodType<
29
+ string,
30
+ z.ZodTypeDef,
31
+ FeePaidBy
32
+ > = openEnums.outboundSchema(FeePaidBy);
@@ -26,7 +26,7 @@ export type FileDetails = {
26
26
  fileName: string;
27
27
  accountID: string;
28
28
  /**
29
- * The file's purpose.
29
+ * The purpose of the file being uploaded.
30
30
  */
31
31
  filePurpose: FilePurpose;
32
32
  /**
@@ -7,7 +7,7 @@ import * as openEnums from "../../types/enums.js";
7
7
  import { OpenEnum } from "../../types/enums.js";
8
8
 
9
9
  /**
10
- * The file's purpose.
10
+ * The purpose of the file being uploaded.
11
11
  */
12
12
  export const FilePurpose = {
13
13
  BusinessVerification: "business_verification",
@@ -18,7 +18,7 @@ export const FilePurpose = {
18
18
  IdentityVerification: "identity_verification",
19
19
  } as const;
20
20
  /**
21
- * The file's purpose.
21
+ * The purpose of the file being uploaded.
22
22
  */
23
23
  export type FilePurpose = OpenEnum<typeof FilePurpose>;
24
24
 
@@ -35,11 +35,11 @@ import {
35
35
  IssuedCardState$outboundSchema,
36
36
  } from "./issuedcardstate.js";
37
37
  import {
38
- IssuingControls,
39
- IssuingControls$inboundSchema,
40
- IssuingControls$Outbound,
41
- IssuingControls$outboundSchema,
42
- } from "./issuingcontrols.js";
38
+ IssuedControls,
39
+ IssuedControls$inboundSchema,
40
+ IssuedControls$Outbound,
41
+ IssuedControls$outboundSchema,
42
+ } from "./issuedcontrols.js";
43
43
 
44
44
  /**
45
45
  * The full details of an issued card, including PAN and CVV.
@@ -88,7 +88,10 @@ export type FullIssuedCard = {
88
88
  * Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
89
89
  */
90
90
  formFactor: IssuedCardFormFactor;
91
- controls?: IssuingControls | undefined;
91
+ /**
92
+ * Spend controls applied to an issued card, including velocity runtime state.
93
+ */
94
+ controls?: IssuedControls | undefined;
92
95
  createdOn: Date;
93
96
  updatedOn: Date;
94
97
  /**
@@ -118,7 +121,7 @@ export const FullIssuedCard$inboundSchema: z.ZodType<
118
121
  billingAddress: types.optional(Address$inboundSchema),
119
122
  state: IssuedCardState$inboundSchema,
120
123
  formFactor: IssuedCardFormFactor$inboundSchema,
121
- controls: types.optional(IssuingControls$inboundSchema),
124
+ controls: types.optional(IssuedControls$inboundSchema),
122
125
  createdOn: types.date(),
123
126
  updatedOn: types.date(),
124
127
  pan: types.string(),
@@ -137,7 +140,7 @@ export type FullIssuedCard$Outbound = {
137
140
  billingAddress?: Address$Outbound | undefined;
138
141
  state: string;
139
142
  formFactor: string;
140
- controls?: IssuingControls$Outbound | undefined;
143
+ controls?: IssuedControls$Outbound | undefined;
141
144
  createdOn: string;
142
145
  updatedOn: string;
143
146
  pan: string;
@@ -161,7 +164,7 @@ export const FullIssuedCard$outboundSchema: z.ZodType<
161
164
  billingAddress: Address$outboundSchema.optional(),
162
165
  state: IssuedCardState$outboundSchema,
163
166
  formFactor: IssuedCardFormFactor$outboundSchema,
164
- controls: IssuingControls$outboundSchema.optional(),
167
+ controls: IssuedControls$outboundSchema.optional(),
165
168
  createdOn: z.date().transform(v => v.toISOString()),
166
169
  updatedOn: z.date().transform(v => v.toISOString()),
167
170
  pan: z.string(),
@@ -13,6 +13,11 @@ import {
13
13
  AmountDecimal$Outbound,
14
14
  AmountDecimal$outboundSchema,
15
15
  } from "./amountdecimal.js";
16
+ import {
17
+ FeePaidBy,
18
+ FeePaidBy$inboundSchema,
19
+ FeePaidBy$outboundSchema,
20
+ } from "./feepaidby.js";
16
21
  import {
17
22
  GeneratedBy,
18
23
  GeneratedBy$inboundSchema,
@@ -60,6 +65,10 @@ export type IncurredFee = {
60
65
  * Unique identifier for this residual payment calculation.
61
66
  */
62
67
  residualID?: string | undefined;
68
+ /**
69
+ * Indicates which party to the money movement bore this fee.
70
+ */
71
+ feePaidBy?: FeePaidBy | undefined;
63
72
  };
64
73
 
65
74
  /** @internal */
@@ -77,6 +86,7 @@ export const IncurredFee$inboundSchema: z.ZodType<
77
86
  generatedBy: types.optional(GeneratedBy$inboundSchema),
78
87
  feeGroup: types.optional(types.string()),
79
88
  residualID: types.optional(types.string()),
89
+ feePaidBy: types.optional(FeePaidBy$inboundSchema),
80
90
  });
81
91
  /** @internal */
82
92
  export type IncurredFee$Outbound = {
@@ -89,6 +99,7 @@ export type IncurredFee$Outbound = {
89
99
  generatedBy?: GeneratedBy$Outbound | undefined;
90
100
  feeGroup?: string | undefined;
91
101
  residualID?: string | undefined;
102
+ feePaidBy?: string | undefined;
92
103
  };
93
104
 
94
105
  /** @internal */
@@ -106,6 +117,7 @@ export const IncurredFee$outboundSchema: z.ZodType<
106
117
  generatedBy: GeneratedBy$outboundSchema.optional(),
107
118
  feeGroup: z.string().optional(),
108
119
  residualID: z.string().optional(),
120
+ feePaidBy: FeePaidBy$outboundSchema.optional(),
109
121
  });
110
122
 
111
123
  export function incurredFeeToJSON(incurredFee: IncurredFee): string {
@@ -35,6 +35,7 @@ export * from "./addresserror.js";
35
35
  export * from "./addresssuggestion.js";
36
36
  export * from "./addressupdate.js";
37
37
  export * from "./adjustment.js";
38
+ export * from "./allowedscheduleerror.js";
38
39
  export * from "./amount.js";
39
40
  export * from "./amountdecimal.js";
40
41
  export * from "./amountdecimalrange.js";
@@ -59,6 +60,7 @@ export * from "./asynccreatedrefund.js";
59
60
  export * from "./asynctransfer.js";
60
61
  export * from "./authtoken.js";
61
62
  export * from "./authtokenrequest.js";
63
+ export * from "./avataruploadrequest.js";
62
64
  export * from "./bankaccount.js";
63
65
  export * from "./bankaccountexception.js";
64
66
  export * from "./bankaccountholdertype.js";
@@ -143,6 +145,7 @@ export * from "./completebankaccountverification.js";
143
145
  export * from "./completedmicrodeposits.js";
144
146
  export * from "./completemicrodeposits.js";
145
147
  export * from "./contact.js";
148
+ export * from "./contributingrule.js";
146
149
  export * from "./createaccount.js";
147
150
  export * from "./createaccountsettings.js";
148
151
  export * from "./createaccounttype.js";
@@ -248,6 +251,7 @@ export * from "./fednowinstitution.js";
248
251
  export * from "./fednowservices.js";
249
252
  export * from "./feecategory.js";
250
253
  export * from "./feemodel.js";
254
+ export * from "./feepaidby.js";
251
255
  export * from "./feeplan.js";
252
256
  export * from "./feeplanagreement.js";
253
257
  export * from "./feeplanagreementstatus.js";
@@ -319,11 +323,16 @@ export * from "./issuedcardeventtype.js";
319
323
  export * from "./issuedcardformfactor.js";
320
324
  export * from "./issuedcardstate.js";
321
325
  export * from "./issuedcardtransaction.js";
326
+ export * from "./issuedcontrols.js";
327
+ export * from "./issuedvelocitylimit.js";
322
328
  export * from "./issuingauthorizationstatus.js";
323
329
  export * from "./issuingcontrols.js";
324
330
  export * from "./issuingcontrolserror.js";
331
+ export * from "./issuingcontrolsrestrictionmode.js";
325
332
  export * from "./issuingintervallimit.js";
333
+ export * from "./issuingmerchantcategory.js";
326
334
  export * from "./issuingmerchantdata.js";
335
+ export * from "./issuingscheduleday.js";
327
336
  export * from "./issuingvelocitylimit.js";
328
337
  export * from "./issuingvelocitylimiterror.js";
329
338
  export * from "./itemlistnextpage.js";
@@ -342,6 +351,12 @@ export * from "./linkgooglepay.js";
342
351
  export * from "./listfeesfetchrequest.js";
343
352
  export * from "./manualtermsofservice.js";
344
353
  export * from "./manualtermsofserviceupdate.js";
354
+ export * from "./merchantcategoryrestrictions.js";
355
+ export * from "./merchantcategoryrestrictionserror.js";
356
+ export * from "./merchantentry.js";
357
+ export * from "./merchantentryerror.js";
358
+ export * from "./merchantrestrictions.js";
359
+ export * from "./merchantrestrictionserror.js";
345
360
  export * from "./microdepositstatus.js";
346
361
  export * from "./minimumcommitment.js";
347
362
  export * from "./mode.js";
@@ -369,6 +384,7 @@ export * from "./othercardfees.js";
369
384
  export * from "./partialscheduleaccount.js";
370
385
  export * from "./partnerfees.js";
371
386
  export * from "./partnerpricingagreement.js";
387
+ export * from "./partnerriskoutcomesresponse.js";
372
388
  export * from "./patchaccount.js";
373
389
  export * from "./patchbusiness.js";
374
390
  export * from "./patchindividual.js";
@@ -413,6 +429,8 @@ export * from "./plaidpayload.js";
413
429
  export * from "./platformfees.js";
414
430
  export * from "./primaryregulator.js";
415
431
  export * from "./product.js";
432
+ export * from "./productcategories.js";
433
+ export * from "./productcategory.js";
416
434
  export * from "./productimagemetadata.js";
417
435
  export * from "./productoption.js";
418
436
  export * from "./productoptiongroup.js";
@@ -482,6 +500,8 @@ export * from "./scheduledtransferlineitems.js";
482
500
  export * from "./schedulelistresponse.js";
483
501
  export * from "./schedulepaymentmethod.js";
484
502
  export * from "./scheduleresponse.js";
503
+ export * from "./schedulewindow.js";
504
+ export * from "./schedulewindowerror.js";
485
505
  export * from "./seccode.js";
486
506
  export * from "./security.js";
487
507
  export * from "./sendfunds.js";
@@ -538,6 +558,7 @@ export * from "./transfercontrols.js";
538
558
  export * from "./transferdestination.js";
539
559
  export * from "./transferentrymode.js";
540
560
  export * from "./transferfailurereason.js";
561
+ export * from "./transferfeepaidby.js";
541
562
  export * from "./transferlineitem.js";
542
563
  export * from "./transferlineitemimagemetadata.js";
543
564
  export * from "./transferlineitemoption.js";
@@ -563,6 +584,8 @@ export * from "./updateevidence.js";
563
584
  export * from "./updateinvoice.js";
564
585
  export * from "./updateissuedcard.js";
565
586
  export * from "./updateissuedcardstate.js";
587
+ export * from "./updateissuingcontrols.js";
588
+ export * from "./updateissuingcontrolserror.js";
566
589
  export * from "./updatepaymentlink.js";
567
590
  export * from "./updatepaymentlinkamountdetails.js";
568
591
  export * from "./updatepaymentlinkamountdetailsvalidationerror.js";
@@ -35,11 +35,11 @@ import {
35
35
  IssuedCardState$outboundSchema,
36
36
  } from "./issuedcardstate.js";
37
37
  import {
38
- IssuingControls,
39
- IssuingControls$inboundSchema,
40
- IssuingControls$Outbound,
41
- IssuingControls$outboundSchema,
42
- } from "./issuingcontrols.js";
38
+ IssuedControls,
39
+ IssuedControls$inboundSchema,
40
+ IssuedControls$Outbound,
41
+ IssuedControls$outboundSchema,
42
+ } from "./issuedcontrols.js";
43
43
 
44
44
  export type IssuedCard = {
45
45
  issuedCardID: string;
@@ -85,7 +85,10 @@ export type IssuedCard = {
85
85
  * Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
86
86
  */
87
87
  formFactor: IssuedCardFormFactor;
88
- controls?: IssuingControls | undefined;
88
+ /**
89
+ * Spend controls applied to an issued card, including velocity runtime state.
90
+ */
91
+ controls?: IssuedControls | undefined;
89
92
  createdOn: Date;
90
93
  updatedOn: Date;
91
94
  };
@@ -107,7 +110,7 @@ export const IssuedCard$inboundSchema: z.ZodType<
107
110
  billingAddress: types.optional(Address$inboundSchema),
108
111
  state: IssuedCardState$inboundSchema,
109
112
  formFactor: IssuedCardFormFactor$inboundSchema,
110
- controls: types.optional(IssuingControls$inboundSchema),
113
+ controls: types.optional(IssuedControls$inboundSchema),
111
114
  createdOn: types.date(),
112
115
  updatedOn: types.date(),
113
116
  });
@@ -124,7 +127,7 @@ export type IssuedCard$Outbound = {
124
127
  billingAddress?: Address$Outbound | undefined;
125
128
  state: string;
126
129
  formFactor: string;
127
- controls?: IssuingControls$Outbound | undefined;
130
+ controls?: IssuedControls$Outbound | undefined;
128
131
  createdOn: string;
129
132
  updatedOn: string;
130
133
  };
@@ -146,7 +149,7 @@ export const IssuedCard$outboundSchema: z.ZodType<
146
149
  billingAddress: Address$outboundSchema.optional(),
147
150
  state: IssuedCardState$outboundSchema,
148
151
  formFactor: IssuedCardFormFactor$outboundSchema,
149
- controls: IssuingControls$outboundSchema.optional(),
152
+ controls: IssuedControls$outboundSchema.optional(),
150
153
  createdOn: z.date().transform(v => v.toISOString()),
151
154
  updatedOn: z.date().transform(v => v.toISOString()),
152
155
  });
@@ -0,0 +1,180 @@
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
+ IssuedVelocityLimit,
12
+ IssuedVelocityLimit$inboundSchema,
13
+ IssuedVelocityLimit$Outbound,
14
+ IssuedVelocityLimit$outboundSchema,
15
+ } from "./issuedvelocitylimit.js";
16
+ import {
17
+ MerchantCategoryRestrictions,
18
+ MerchantCategoryRestrictions$inboundSchema,
19
+ MerchantCategoryRestrictions$Outbound,
20
+ MerchantCategoryRestrictions$outboundSchema,
21
+ } from "./merchantcategoryrestrictions.js";
22
+ import {
23
+ MerchantRestrictions,
24
+ MerchantRestrictions$inboundSchema,
25
+ MerchantRestrictions$Outbound,
26
+ MerchantRestrictions$outboundSchema,
27
+ } from "./merchantrestrictions.js";
28
+ import {
29
+ ScheduleWindow,
30
+ ScheduleWindow$inboundSchema,
31
+ ScheduleWindow$Outbound,
32
+ ScheduleWindow$outboundSchema,
33
+ } from "./schedulewindow.js";
34
+
35
+ /**
36
+ * Limits card usage to specific days and times.
37
+ */
38
+ export type IssuedControlsAllowedSchedule = {
39
+ /**
40
+ * IANA timezone string used to evaluate window boundaries against the authorization time.
41
+ */
42
+ timezone: string;
43
+ /**
44
+ * Time windows during which the card may authorize. Any matching window allows the transaction.
45
+ */
46
+ windows: Array<ScheduleWindow>;
47
+ };
48
+
49
+ /**
50
+ * Spend controls applied to an issued card, including velocity runtime state.
51
+ */
52
+ export type IssuedControls = {
53
+ /**
54
+ * Indicates if the card is single-use. If true, the card closes after the first authorization.
55
+ */
56
+ singleUse?: boolean | undefined;
57
+ /**
58
+ * The spending limits per time interval, including current runtime state.
59
+ */
60
+ velocityLimits?: Array<IssuedVelocityLimit> | undefined;
61
+ /**
62
+ * Restricts card usage by merchant category. When not set, all categories are allowed.
63
+ */
64
+ merchantCategoryRestrictions?: MerchantCategoryRestrictions | undefined;
65
+ /**
66
+ * Restricts card usage to specific merchants, or blocks specific merchants.
67
+ */
68
+ merchantRestrictions?: MerchantRestrictions | undefined;
69
+ /**
70
+ * Limits card usage to specific days and times.
71
+ */
72
+ allowedSchedule?: IssuedControlsAllowedSchedule | null | undefined;
73
+ /**
74
+ * A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls.
75
+ */
76
+ expiresOn?: Date | null | undefined;
77
+ };
78
+
79
+ /** @internal */
80
+ export const IssuedControlsAllowedSchedule$inboundSchema: z.ZodType<
81
+ IssuedControlsAllowedSchedule,
82
+ z.ZodTypeDef,
83
+ unknown
84
+ > = z.object({
85
+ timezone: types.string(),
86
+ windows: z.array(ScheduleWindow$inboundSchema),
87
+ });
88
+ /** @internal */
89
+ export type IssuedControlsAllowedSchedule$Outbound = {
90
+ timezone: string;
91
+ windows: Array<ScheduleWindow$Outbound>;
92
+ };
93
+
94
+ /** @internal */
95
+ export const IssuedControlsAllowedSchedule$outboundSchema: z.ZodType<
96
+ IssuedControlsAllowedSchedule$Outbound,
97
+ z.ZodTypeDef,
98
+ IssuedControlsAllowedSchedule
99
+ > = z.object({
100
+ timezone: z.string(),
101
+ windows: z.array(ScheduleWindow$outboundSchema),
102
+ });
103
+
104
+ export function issuedControlsAllowedScheduleToJSON(
105
+ issuedControlsAllowedSchedule: IssuedControlsAllowedSchedule,
106
+ ): string {
107
+ return JSON.stringify(
108
+ IssuedControlsAllowedSchedule$outboundSchema.parse(
109
+ issuedControlsAllowedSchedule,
110
+ ),
111
+ );
112
+ }
113
+ export function issuedControlsAllowedScheduleFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<IssuedControlsAllowedSchedule, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => IssuedControlsAllowedSchedule$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'IssuedControlsAllowedSchedule' from JSON`,
120
+ );
121
+ }
122
+
123
+ /** @internal */
124
+ export const IssuedControls$inboundSchema: z.ZodType<
125
+ IssuedControls,
126
+ z.ZodTypeDef,
127
+ unknown
128
+ > = z.object({
129
+ singleUse: types.optional(types.boolean()),
130
+ velocityLimits: types.optional(z.array(IssuedVelocityLimit$inboundSchema)),
131
+ merchantCategoryRestrictions: types.optional(
132
+ MerchantCategoryRestrictions$inboundSchema,
133
+ ),
134
+ merchantRestrictions: types.optional(MerchantRestrictions$inboundSchema),
135
+ allowedSchedule: z.nullable(
136
+ z.lazy(() => IssuedControlsAllowedSchedule$inboundSchema),
137
+ ).optional(),
138
+ expiresOn: z.nullable(types.date()).optional(),
139
+ });
140
+ /** @internal */
141
+ export type IssuedControls$Outbound = {
142
+ singleUse?: boolean | undefined;
143
+ velocityLimits?: Array<IssuedVelocityLimit$Outbound> | undefined;
144
+ merchantCategoryRestrictions?:
145
+ | MerchantCategoryRestrictions$Outbound
146
+ | undefined;
147
+ merchantRestrictions?: MerchantRestrictions$Outbound | undefined;
148
+ allowedSchedule?: IssuedControlsAllowedSchedule$Outbound | null | undefined;
149
+ expiresOn?: string | null | undefined;
150
+ };
151
+
152
+ /** @internal */
153
+ export const IssuedControls$outboundSchema: z.ZodType<
154
+ IssuedControls$Outbound,
155
+ z.ZodTypeDef,
156
+ IssuedControls
157
+ > = z.object({
158
+ singleUse: z.boolean().optional(),
159
+ velocityLimits: z.array(IssuedVelocityLimit$outboundSchema).optional(),
160
+ merchantCategoryRestrictions: MerchantCategoryRestrictions$outboundSchema
161
+ .optional(),
162
+ merchantRestrictions: MerchantRestrictions$outboundSchema.optional(),
163
+ allowedSchedule: z.nullable(
164
+ z.lazy(() => IssuedControlsAllowedSchedule$outboundSchema),
165
+ ).optional(),
166
+ expiresOn: z.nullable(z.date().transform(v => v.toISOString())).optional(),
167
+ });
168
+
169
+ export function issuedControlsToJSON(issuedControls: IssuedControls): string {
170
+ return JSON.stringify(IssuedControls$outboundSchema.parse(issuedControls));
171
+ }
172
+ export function issuedControlsFromJSON(
173
+ jsonString: string,
174
+ ): SafeParseResult<IssuedControls, SDKValidationError> {
175
+ return safeParse(
176
+ jsonString,
177
+ (x) => IssuedControls$inboundSchema.parse(JSON.parse(x)),
178
+ `Failed to parse 'IssuedControls' from JSON`,
179
+ );
180
+ }
@@ -0,0 +1,112 @@
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
+ IssuingIntervalLimit,
12
+ IssuingIntervalLimit$inboundSchema,
13
+ IssuingIntervalLimit$outboundSchema,
14
+ } from "./issuingintervallimit.js";
15
+
16
+ /**
17
+ * A velocity limit with its current runtime state.
18
+ */
19
+ export type IssuedVelocityLimit = {
20
+ /**
21
+ * The maximum amount in cents that can be spent in a given interval.
22
+ */
23
+ amount?: number | undefined;
24
+ /**
25
+ * The maximum number of transactions allowed in the given interval.
26
+ */
27
+ count?: number | undefined;
28
+ /**
29
+ * Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
30
+ */
31
+ interval: IssuingIntervalLimit;
32
+ /**
33
+ * The amount in cents already spent in the current interval.
34
+ */
35
+ amountUsed?: number | undefined;
36
+ /**
37
+ * The amount in cents remaining in the current interval.
38
+ */
39
+ amountRemaining?: number | undefined;
40
+ /**
41
+ * The number of transactions already made in the current interval.
42
+ */
43
+ countUsed?: number | undefined;
44
+ /**
45
+ * The number of transactions remaining in the current interval.
46
+ */
47
+ countRemaining?: number | undefined;
48
+ /**
49
+ * When the current interval resets. Absent for per-transaction limits.
50
+ */
51
+ resetsOn?: Date | undefined;
52
+ };
53
+
54
+ /** @internal */
55
+ export const IssuedVelocityLimit$inboundSchema: z.ZodType<
56
+ IssuedVelocityLimit,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ amount: types.optional(types.number()),
61
+ count: types.optional(types.number()),
62
+ interval: IssuingIntervalLimit$inboundSchema,
63
+ amountUsed: types.optional(types.number()),
64
+ amountRemaining: types.optional(types.number()),
65
+ countUsed: types.optional(types.number()),
66
+ countRemaining: types.optional(types.number()),
67
+ resetsOn: types.optional(types.date()),
68
+ });
69
+ /** @internal */
70
+ export type IssuedVelocityLimit$Outbound = {
71
+ amount?: number | undefined;
72
+ count?: number | undefined;
73
+ interval: string;
74
+ amountUsed?: number | undefined;
75
+ amountRemaining?: number | undefined;
76
+ countUsed?: number | undefined;
77
+ countRemaining?: number | undefined;
78
+ resetsOn?: string | undefined;
79
+ };
80
+
81
+ /** @internal */
82
+ export const IssuedVelocityLimit$outboundSchema: z.ZodType<
83
+ IssuedVelocityLimit$Outbound,
84
+ z.ZodTypeDef,
85
+ IssuedVelocityLimit
86
+ > = z.object({
87
+ amount: z.number().int().optional(),
88
+ count: z.number().int().optional(),
89
+ interval: IssuingIntervalLimit$outboundSchema,
90
+ amountUsed: z.number().int().optional(),
91
+ amountRemaining: z.number().int().optional(),
92
+ countUsed: z.number().int().optional(),
93
+ countRemaining: z.number().int().optional(),
94
+ resetsOn: z.date().transform(v => v.toISOString()).optional(),
95
+ });
96
+
97
+ export function issuedVelocityLimitToJSON(
98
+ issuedVelocityLimit: IssuedVelocityLimit,
99
+ ): string {
100
+ return JSON.stringify(
101
+ IssuedVelocityLimit$outboundSchema.parse(issuedVelocityLimit),
102
+ );
103
+ }
104
+ export function issuedVelocityLimitFromJSON(
105
+ jsonString: string,
106
+ ): SafeParseResult<IssuedVelocityLimit, SDKValidationError> {
107
+ return safeParse(
108
+ jsonString,
109
+ (x) => IssuedVelocityLimit$inboundSchema.parse(JSON.parse(x)),
110
+ `Failed to parse 'IssuedVelocityLimit' from JSON`,
111
+ );
112
+ }