@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
@@ -13,7 +13,7 @@ export type UpdateInvoiceErrorData = {
13
13
  invoiceDate?: string | undefined;
14
14
  dueDate?: string | undefined;
15
15
  status?: string | undefined;
16
- taxAmount?: components.AmountDecimalValidationError | undefined;
16
+ amountDetails?: components.AmountDetailsValidationError | undefined;
17
17
  };
18
18
 
19
19
  export class UpdateInvoiceError extends MoovError {
@@ -22,7 +22,7 @@ export class UpdateInvoiceError extends MoovError {
22
22
  invoiceDate?: string | undefined;
23
23
  dueDate?: string | undefined;
24
24
  status?: string | undefined;
25
- taxAmount?: components.AmountDecimalValidationError | undefined;
25
+ amountDetails?: components.AmountDetailsValidationError | undefined;
26
26
 
27
27
  /** The original data that was passed to this error instance. */
28
28
  data$: UpdateInvoiceErrorData;
@@ -41,7 +41,7 @@ export class UpdateInvoiceError extends MoovError {
41
41
  if (err.invoiceDate != null) this.invoiceDate = err.invoiceDate;
42
42
  if (err.dueDate != null) this.dueDate = err.dueDate;
43
43
  if (err.status != null) this.status = err.status;
44
- if (err.taxAmount != null) this.taxAmount = err.taxAmount;
44
+ if (err.amountDetails != null) this.amountDetails = err.amountDetails;
45
45
 
46
46
  this.name = "UpdateInvoiceError";
47
47
  }
@@ -60,8 +60,8 @@ export const UpdateInvoiceError$inboundSchema: z.ZodType<
60
60
  invoiceDate: types.optional(types.string()),
61
61
  dueDate: types.optional(types.string()),
62
62
  status: types.optional(types.string()),
63
- taxAmount: types.optional(
64
- components.AmountDecimalValidationError$inboundSchema,
63
+ amountDetails: types.optional(
64
+ components.AmountDetailsValidationError$inboundSchema,
65
65
  ),
66
66
  request$: z.instanceof(Request),
67
67
  response$: z.instanceof(Response),
@@ -82,7 +82,7 @@ export type UpdateInvoiceError$Outbound = {
82
82
  invoiceDate?: string | undefined;
83
83
  dueDate?: string | undefined;
84
84
  status?: string | undefined;
85
- taxAmount?: components.AmountDecimalValidationError$Outbound | undefined;
85
+ amountDetails?: components.AmountDetailsValidationError$Outbound | undefined;
86
86
  };
87
87
 
88
88
  /** @internal */
@@ -99,6 +99,6 @@ export const UpdateInvoiceError$outboundSchema: z.ZodType<
99
99
  invoiceDate: z.string().optional(),
100
100
  dueDate: z.string().optional(),
101
101
  status: z.string().optional(),
102
- taxAmount: components.AmountDecimalValidationError$outboundSchema
102
+ amountDetails: components.AmountDetailsValidationError$outboundSchema
103
103
  .optional(),
104
104
  }));
@@ -9,14 +9,16 @@ import { MoovError } from "./mooverror.js";
9
9
 
10
10
  export type UpdateIssuedCardErrorData = {
11
11
  state?: string | undefined;
12
- memo?: string | undefined;
13
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
12
+ nickname?: string | undefined;
13
+ metadata?: string | undefined;
14
+ billingAddress?: components.AddressError | undefined;
14
15
  };
15
16
 
16
17
  export class UpdateIssuedCardError extends MoovError {
17
18
  state?: string | undefined;
18
- memo?: string | undefined;
19
- authorizedUser?: components.CreateAuthorizedUserError | undefined;
19
+ nickname?: string | undefined;
20
+ metadata?: string | undefined;
21
+ billingAddress?: components.AddressError | undefined;
20
22
 
21
23
  /** The original data that was passed to this error instance. */
22
24
  data$: UpdateIssuedCardErrorData;
@@ -31,8 +33,9 @@ export class UpdateIssuedCardError extends MoovError {
31
33
  super(message, httpMeta);
32
34
  this.data$ = err;
33
35
  if (err.state != null) this.state = err.state;
34
- if (err.memo != null) this.memo = err.memo;
35
- if (err.authorizedUser != null) this.authorizedUser = err.authorizedUser;
36
+ if (err.nickname != null) this.nickname = err.nickname;
37
+ if (err.metadata != null) this.metadata = err.metadata;
38
+ if (err.billingAddress != null) this.billingAddress = err.billingAddress;
36
39
 
37
40
  this.name = "UpdateIssuedCardError";
38
41
  }
@@ -45,10 +48,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
45
48
  unknown
46
49
  > = z.object({
47
50
  state: types.optional(types.string()),
48
- memo: types.optional(types.string()),
49
- authorizedUser: types.optional(
50
- components.CreateAuthorizedUserError$inboundSchema,
51
- ),
51
+ nickname: types.optional(types.string()),
52
+ metadata: types.optional(types.string()),
53
+ billingAddress: types.optional(components.AddressError$inboundSchema),
52
54
  request$: z.instanceof(Request),
53
55
  response$: z.instanceof(Response),
54
56
  body$: z.string(),
@@ -64,8 +66,9 @@ export const UpdateIssuedCardError$inboundSchema: z.ZodType<
64
66
  /** @internal */
65
67
  export type UpdateIssuedCardError$Outbound = {
66
68
  state?: string | undefined;
67
- memo?: string | undefined;
68
- authorizedUser?: components.CreateAuthorizedUserError$Outbound | undefined;
69
+ nickname?: string | undefined;
70
+ metadata?: string | undefined;
71
+ billingAddress?: components.AddressError$Outbound | undefined;
69
72
  };
70
73
 
71
74
  /** @internal */
@@ -77,7 +80,7 @@ export const UpdateIssuedCardError$outboundSchema: z.ZodType<
77
80
  .transform(v => v.data$)
78
81
  .pipe(z.object({
79
82
  state: z.string().optional(),
80
- memo: z.string().optional(),
81
- authorizedUser: components.CreateAuthorizedUserError$outboundSchema
82
- .optional(),
83
+ nickname: z.string().optional(),
84
+ metadata: z.string().optional(),
85
+ billingAddress: components.AddressError$outboundSchema.optional(),
83
86
  }));
@@ -13,6 +13,7 @@ export type UpdatePaymentLinkErrorData = {
13
13
  display?: components.DisplayOptionsError | undefined;
14
14
  payment?: components.PaymentDetailsError | undefined;
15
15
  payout?: components.PayoutDetailsError | undefined;
16
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
16
17
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
17
18
  amountDetails?:
18
19
  | components.UpdatePaymentLinkAmountDetailsValidationError
@@ -25,6 +26,7 @@ export class UpdatePaymentLinkError extends MoovError {
25
26
  display?: components.DisplayOptionsError | undefined;
26
27
  payment?: components.PaymentDetailsError | undefined;
27
28
  payout?: components.PayoutDetailsError | undefined;
29
+ customAmountPayment?: components.CustomAmountPaymentDetailsError | undefined;
28
30
  lineItems?: components.CreatePaymentLinkLineItemsValidationError | undefined;
29
31
  amountDetails?:
30
32
  | components.UpdatePaymentLinkAmountDetailsValidationError
@@ -47,6 +49,9 @@ export class UpdatePaymentLinkError extends MoovError {
47
49
  if (err.display != null) this.display = err.display;
48
50
  if (err.payment != null) this.payment = err.payment;
49
51
  if (err.payout != null) this.payout = err.payout;
52
+ if (err.customAmountPayment != null) {
53
+ this.customAmountPayment = err.customAmountPayment;
54
+ }
50
55
  if (err.lineItems != null) this.lineItems = err.lineItems;
51
56
  if (err.amountDetails != null) this.amountDetails = err.amountDetails;
52
57
 
@@ -65,6 +70,9 @@ export const UpdatePaymentLinkError$inboundSchema: z.ZodType<
65
70
  display: types.optional(components.DisplayOptionsError$inboundSchema),
66
71
  payment: types.optional(components.PaymentDetailsError$inboundSchema),
67
72
  payout: types.optional(components.PayoutDetailsError$inboundSchema),
73
+ customAmountPayment: types.optional(
74
+ components.CustomAmountPaymentDetailsError$inboundSchema,
75
+ ),
68
76
  lineItems: types.optional(
69
77
  components.CreatePaymentLinkLineItemsValidationError$inboundSchema,
70
78
  ),
@@ -90,6 +98,9 @@ export type UpdatePaymentLinkError$Outbound = {
90
98
  display?: components.DisplayOptionsError$Outbound | undefined;
91
99
  payment?: components.PaymentDetailsError$Outbound | undefined;
92
100
  payout?: components.PayoutDetailsError$Outbound | undefined;
101
+ customAmountPayment?:
102
+ | components.CustomAmountPaymentDetailsError$Outbound
103
+ | undefined;
93
104
  lineItems?:
94
105
  | components.CreatePaymentLinkLineItemsValidationError$Outbound
95
106
  | undefined;
@@ -111,6 +122,8 @@ export const UpdatePaymentLinkError$outboundSchema: z.ZodType<
111
122
  display: components.DisplayOptionsError$outboundSchema.optional(),
112
123
  payment: components.PaymentDetailsError$outboundSchema.optional(),
113
124
  payout: components.PayoutDetailsError$outboundSchema.optional(),
125
+ customAmountPayment: components
126
+ .CustomAmountPaymentDetailsError$outboundSchema.optional(),
114
127
  lineItems: components
115
128
  .CreatePaymentLinkLineItemsValidationError$outboundSchema.optional(),
116
129
  amountDetails: components
@@ -17,7 +17,13 @@ export type DisableCapabilityRequest = {
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
20
+ * **Deprecated capabilities**
21
+ *
22
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
23
+ *
24
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
25
+ *
26
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
21
27
  */
22
28
  capabilityID: components.CapabilityID;
23
29
  };
@@ -17,7 +17,13 @@ export type GetCapabilityRequest = {
17
17
  *
18
18
  * @remarks
19
19
  *
20
- * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in your list. These are read-only capabilities that Moov requests and uses for account verification purposes. These capabilities remains active with your account and require no additional action.
20
+ * **Deprecated capabilities**
21
+ *
22
+ * The `send-funds`, `collect-funds`, and `wallet` capability IDs are deprecated. Request granular capabilities instead (for example, `send-funds.ach`, `collect-funds.card-payments`, or `wallet.balance`). Deprecated values will be removed in a future API version.
23
+ *
24
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to choose the right capabilities for your integration.
25
+ *
26
+ * The `production-app`, `platform.production-app`, and / or `platform.wallet-transfers` capabilities might appear in the list for your Partner account. These are read-only capabilities that Moov requests. These capabilities remain active with your account and require no additional action.
21
27
  */
22
28
  capabilityID: components.CapabilityID;
23
29
  };
@@ -112,6 +112,7 @@ export * from "./listaccounts.js";
112
112
  export * from "./listaccountterminalapplications.js";
113
113
  export * from "./listadjustments.js";
114
114
  export * from "./listbankaccounts.js";
115
+ export * from "./listcancellations.js";
115
116
  export * from "./listcapabilities.js";
116
117
  export * from "./listcards.js";
117
118
  export * from "./listconnectedaccountsforaccount.js";
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type ListCancellationsRequest = {
14
+ /**
15
+ * Moov account ID of the partner or transfer's source or destination.
16
+ */
17
+ accountID: string;
18
+ /**
19
+ * Identifier for the transfer.
20
+ */
21
+ transferID: string;
22
+ };
23
+
24
+ export type ListCancellationsResponse = {
25
+ headers: { [k: string]: Array<string> };
26
+ result: Array<components.Cancellation>;
27
+ };
28
+
29
+ /** @internal */
30
+ export const ListCancellationsRequest$inboundSchema: z.ZodType<
31
+ ListCancellationsRequest,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ accountID: types.string(),
36
+ transferID: types.string(),
37
+ });
38
+ /** @internal */
39
+ export type ListCancellationsRequest$Outbound = {
40
+ accountID: string;
41
+ transferID: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const ListCancellationsRequest$outboundSchema: z.ZodType<
46
+ ListCancellationsRequest$Outbound,
47
+ z.ZodTypeDef,
48
+ ListCancellationsRequest
49
+ > = z.object({
50
+ accountID: z.string(),
51
+ transferID: z.string(),
52
+ });
53
+
54
+ export function listCancellationsRequestToJSON(
55
+ listCancellationsRequest: ListCancellationsRequest,
56
+ ): string {
57
+ return JSON.stringify(
58
+ ListCancellationsRequest$outboundSchema.parse(listCancellationsRequest),
59
+ );
60
+ }
61
+ export function listCancellationsRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<ListCancellationsRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => ListCancellationsRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'ListCancellationsRequest' from JSON`,
68
+ );
69
+ }
70
+
71
+ /** @internal */
72
+ export const ListCancellationsResponse$inboundSchema: z.ZodType<
73
+ ListCancellationsResponse,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({
77
+ Headers: z.record(z.array(z.string())).default({}),
78
+ Result: z.array(components.Cancellation$inboundSchema),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ "Headers": "headers",
82
+ "Result": "result",
83
+ });
84
+ });
85
+ /** @internal */
86
+ export type ListCancellationsResponse$Outbound = {
87
+ Headers: { [k: string]: Array<string> };
88
+ Result: Array<components.Cancellation$Outbound>;
89
+ };
90
+
91
+ /** @internal */
92
+ export const ListCancellationsResponse$outboundSchema: z.ZodType<
93
+ ListCancellationsResponse$Outbound,
94
+ z.ZodTypeDef,
95
+ ListCancellationsResponse
96
+ > = z.object({
97
+ headers: z.record(z.array(z.string())),
98
+ result: z.array(components.Cancellation$outboundSchema),
99
+ }).transform((v) => {
100
+ return remap$(v, {
101
+ headers: "Headers",
102
+ result: "Result",
103
+ });
104
+ });
105
+
106
+ export function listCancellationsResponseToJSON(
107
+ listCancellationsResponse: ListCancellationsResponse,
108
+ ): string {
109
+ return JSON.stringify(
110
+ ListCancellationsResponse$outboundSchema.parse(listCancellationsResponse),
111
+ );
112
+ }
113
+ export function listCancellationsResponseFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<ListCancellationsResponse, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => ListCancellationsResponse$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'ListCancellationsResponse' from JSON`,
120
+ );
121
+ }
@@ -20,21 +20,19 @@ import { unwrapAsync } from "../types/fp.js";
20
20
 
21
21
  export class Accounts extends ClientSDK {
22
22
  /**
23
- * You can create **business** or **individual** accounts for your users (i.e., customers, merchants) by passing the required
24
- * information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/requirements/).
23
+ * You can create business or individual accounts for your users (i.e., customers, merchants) by passing the required information to Moov. Requirements differ per account type and requested [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/).
25
24
  *
26
- * If you're requesting the `wallet`, `send-funds`, `collect-funds`, or `card-issuing` capabilities, you'll need to:
27
- * + Send Moov the user [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance.
28
- * This can be done upon account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
29
- * If you're creating a business account with the business type `llc`, `partnership`, or `privateCorporation`, you'll need to:
25
+ * The `transfers` capability is automatically requested for every account. If you request any capability beyond `transfers` (for example, `send-funds.ach`, `collect-funds.card-payments`), you'll need to:
26
+ * + Send Moov the user's [platform terms of service agreement](https://docs.moov.io/guides/accounts/requirements/platform-agreement/) acceptance. This can be done at account creation, or by [patching](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account using the `termsOfService` field.
27
+ * + Fulfill the [verification and underwriting requirements](https://docs.moov.io/guides/accounts/requirements/) for each requested capability. A capability isn't enabled until its requirements pass — check the capability's status to see what's still outstanding.
28
+ *
29
+ * If you're creating a business account, depending on the business type, you'll also need to:
30
30
  * + Provide [business representatives](https://docs.moov.io/api/moov-accounts/representatives/) after creating the account.
31
31
  * + [Patch](https://docs.moov.io/api/moov-accounts/accounts/patch/) the account to indicate that business representative ownership information is complete.
32
32
  *
33
- * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/).
34
- * Note that the `mode` field (for production or sandbox) is only required when creating a _facilitator_ account. All non-facilitator account requests will ignore the mode field and be set to the calling facilitator's mode.
33
+ * Visit our documentation to read more about [creating accounts](https://docs.moov.io/guides/accounts/create-accounts/) and [verification requirements](https://docs.moov.io/guides/accounts/requirements/identity-verification/). Note that the `mode` field (for production or sandbox) is only required when creating a Partner account. All other account requests will ignore the mode field and be set to the calling Partner account's mode.
35
34
  *
36
- * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
37
- * to specify the `/accounts.write` scope.
35
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need to specify the `/accounts.write` scope.
38
36
  */
39
37
  async create(
40
38
  request: components.CreateAccount,
@@ -14,7 +14,7 @@ export class Capabilities extends ClientSDK {
14
14
  /**
15
15
  * Retrieve all the capabilities an account has requested.
16
16
  *
17
- * Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
17
+ * Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
18
18
  *
19
19
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
20
20
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -31,7 +31,7 @@ export class Capabilities extends ClientSDK {
31
31
  }
32
32
 
33
33
  /**
34
- * Request capabilities for a specific account. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
34
+ * Request capabilities for a specific account. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
35
35
  *
36
36
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
37
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -48,7 +48,7 @@ export class Capabilities extends ClientSDK {
48
48
  }
49
49
 
50
50
  /**
51
- * Retrieve a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
51
+ * Retrieve a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
52
52
  *
53
53
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
54
54
  * you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
@@ -65,7 +65,7 @@ export class Capabilities extends ClientSDK {
65
65
  }
66
66
 
67
67
  /**
68
- * Disable a specific capability that an account has requested. Read our [capabilities guide](https://docs.moov.io/guides/accounts/capabilities/) to learn more.
68
+ * Disable a specific capability that an account has requested. Read our [capabilities reference](https://docs.moov.io/guides/accounts/capabilities/reference/) to learn more.
69
69
  *
70
70
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
71
71
  * you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
@@ -12,6 +12,7 @@ import { transfersGetCancellation } from "../funcs/transfersGetCancellation.js";
12
12
  import { transfersGetRefund } from "../funcs/transfersGetRefund.js";
13
13
  import { transfersInitiateRefund } from "../funcs/transfersInitiateRefund.js";
14
14
  import { transfersList } from "../funcs/transfersList.js";
15
+ import { transfersListCancellations } from "../funcs/transfersListCancellations.js";
15
16
  import { transfersListRefunds } from "../funcs/transfersListRefunds.js";
16
17
  import { transfersUpdate } from "../funcs/transfersUpdate.js";
17
18
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -161,6 +162,23 @@ export class Transfers extends ClientSDK {
161
162
  ));
162
163
  }
163
164
 
165
+ /**
166
+ * Get a list of cancellations for a transfer.
167
+ *
168
+ * To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
169
+ * to specify the `/accounts/{accountID}/transfers.read` scope.
170
+ */
171
+ async listCancellations(
172
+ request: operations.ListCancellationsRequest,
173
+ options?: RequestOptions,
174
+ ): Promise<operations.ListCancellationsResponse> {
175
+ return unwrapAsync(transfersListCancellations(
176
+ this,
177
+ request,
178
+ options,
179
+ ));
180
+ }
181
+
164
182
  /**
165
183
  * Get details of a cancellation for a transfer.
166
184
  *
@@ -21,16 +21,17 @@ export type APICall =
21
21
 
22
22
  export class APIPromise<T> implements Promise<T> {
23
23
  readonly #promise: Promise<[T, APICall]>;
24
- readonly #unwrapped: Promise<T>;
24
+ #unwrapped: Promise<T> | null;
25
25
 
26
26
  readonly [Symbol.toStringTag] = "APIPromise";
27
27
 
28
28
  constructor(p: [T, APICall] | Promise<[T, APICall]>) {
29
29
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
30
- this.#unwrapped =
31
- p instanceof Promise
32
- ? this.#promise.then(([value]) => value)
33
- : Promise.resolve(p[0]);
30
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
31
+ }
32
+
33
+ #getUnwrapped(): Promise<T> {
34
+ return (this.#unwrapped ??= this.#promise.then(([value]) => value));
34
35
  }
35
36
 
36
37
  then<TResult1 = T, TResult2 = never>(
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
55
56
  | null
56
57
  | undefined,
57
58
  ): Promise<T | TResult> {
58
- return this.#unwrapped.catch(onrejected);
59
+ return this.#getUnwrapped().catch(onrejected);
59
60
  }
60
61
 
61
62
  finally(onfinally?: (() => void) | null | undefined): Promise<T> {
62
- return this.#unwrapped.finally(onfinally);
63
+ return this.#getUnwrapped().finally(onfinally);
63
64
  }
64
65
 
65
66
  $inspect(): Promise<[T, APICall]> {
@@ -62,24 +62,6 @@ export function number(): z.ZodType<number, z.ZodTypeDef, unknown> {
62
62
  ]);
63
63
  }
64
64
 
65
- export function bigint(): z.ZodType<bigint, z.ZodTypeDef, unknown> {
66
- return z.union([
67
- z.string().transform((x, ctx) => {
68
- try {
69
- return BigInt(x);
70
- } catch (error) {
71
- ctx.addIssue({
72
- code: "invalid_type",
73
- expected: "bigint",
74
- received: "string",
75
- });
76
- return z.NEVER;
77
- }
78
- }),
79
- zodDefaultToZeroValue(0n),
80
- ]);
81
- }
82
-
83
65
  export function date(): z.ZodType<Date, z.ZodTypeDef, unknown> {
84
66
  return z.union([
85
67
  z.union([z.string(), zodDefaultToZeroValue(0)]).transform((x) =>
@@ -106,12 +88,6 @@ export function literal<T extends string | number | boolean>(
106
88
  return z.union([z.literal(value), zodDefaultToZeroValue(value)]);
107
89
  }
108
90
 
109
- export function literalBigInt<T extends bigint>(
110
- value: T,
111
- ): z.ZodType<T, z.ZodTypeDef, unknown> {
112
- return z.literal(String(value)).transform((x) => BigInt(x)) as any;
113
- }
114
-
115
91
  export function optional<T extends z.ZodType>(t: T) {
116
92
  return z.union([
117
93
  // Null -> undefined
@@ -1 +1 @@
1
- {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;gBAEjC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAQnD,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACjC,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAO/B,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIvB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAGlC"}
1
+ {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEN,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;IAI9C,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB;gBAEjC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IASnD,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACjC,WAAW,CAAC,EACR,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAO/B,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIvB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAGlC"}
package/types/async.js CHANGED
@@ -13,32 +13,33 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
13
13
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
14
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15
15
  };
16
- var _APIPromise_promise, _APIPromise_unwrapped, _a;
16
+ var _APIPromise_instances, _APIPromise_promise, _APIPromise_unwrapped, _APIPromise_getUnwrapped, _a;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.APIPromise = void 0;
19
19
  class APIPromise {
20
20
  constructor(p) {
21
+ _APIPromise_instances.add(this);
21
22
  _APIPromise_promise.set(this, void 0);
22
23
  _APIPromise_unwrapped.set(this, void 0);
23
24
  this[_a] = "APIPromise";
24
25
  __classPrivateFieldSet(this, _APIPromise_promise, p instanceof Promise ? p : Promise.resolve(p), "f");
25
- __classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise
26
- ? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value)
27
- : Promise.resolve(p[0]), "f");
26
+ __classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise ? null : Promise.resolve(p[0]), "f");
28
27
  }
29
28
  then(onfulfilled, onrejected) {
30
29
  return __classPrivateFieldGet(this, _APIPromise_promise, "f").then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
31
30
  }
32
31
  catch(onrejected) {
33
- return __classPrivateFieldGet(this, _APIPromise_unwrapped, "f").catch(onrejected);
32
+ return __classPrivateFieldGet(this, _APIPromise_instances, "m", _APIPromise_getUnwrapped).call(this).catch(onrejected);
34
33
  }
35
34
  finally(onfinally) {
36
- return __classPrivateFieldGet(this, _APIPromise_unwrapped, "f").finally(onfinally);
35
+ return __classPrivateFieldGet(this, _APIPromise_instances, "m", _APIPromise_getUnwrapped).call(this).finally(onfinally);
37
36
  }
38
37
  $inspect() {
39
38
  return __classPrivateFieldGet(this, _APIPromise_promise, "f");
40
39
  }
41
40
  }
42
41
  exports.APIPromise = APIPromise;
43
- _APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _a = Symbol.toStringTag;
42
+ _APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _APIPromise_instances = new WeakSet(), _a = Symbol.toStringTag, _APIPromise_getUnwrapped = function _APIPromise_getUnwrapped() {
43
+ return (__classPrivateFieldSet(this, _APIPromise_unwrapped, __classPrivateFieldGet(this, _APIPromise_unwrapped, "f") ?? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value), "f"));
44
+ };
44
45
  //# sourceMappingURL=async.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"async.js","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;AAmBH,MAAa,UAAU;IAMrB,YAAY,CAAuC;QAL1C,sCAAgC;QAChC,wCAAuB;QAEvB,QAAoB,GAAG,YAAY,CAAC;QAG3C,uBAAA,IAAI,uBAAY,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,CAAC;QAC9D,uBAAA,IAAI,yBACF,CAAC,YAAY,OAAO;YAClB,CAAC,CAAC,uBAAA,IAAI,2BAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC;YACxC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAA,CAAC;IAC9B,CAAC;IAED,IAAI,CACF,WAGa,EACb,UAGa;QAEb,OAAO,uBAAA,IAAI,2BAAS,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,uBAAA,IAAI,6BAAW,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,uBAAA,IAAI,6BAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED,QAAQ;QACN,OAAO,uBAAA,IAAI,2BAAS,CAAC;IACvB,CAAC;CACF;AA9CD,gCA8CC;iFA1CW,MAAM,CAAC,WAAW"}
1
+ {"version":3,"file":"async.js","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;AAmBH,MAAa,UAAU;IAMrB,YAAY,CAAuC;;QAL1C,sCAAgC;QACzC,wCAA8B;QAErB,QAAoB,GAAG,YAAY,CAAC;QAG3C,uBAAA,IAAI,uBAAY,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,CAAC;QAC9D,uBAAA,IAAI,yBAAc,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAA,CAAC;IACxE,CAAC;IAMD,IAAI,CACF,WAGa,EACb,UAGa;QAEb,OAAO,uBAAA,IAAI,2BAAS,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,uBAAA,IAAI,uDAAc,MAAlB,IAAI,CAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,uBAAA,IAAI,uDAAc,MAAlB,IAAI,CAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ;QACN,OAAO,uBAAA,IAAI,2BAAS,CAAC;IACvB,CAAC;CACF;AA/CD,gCA+CC;wHA3CW,MAAM,CAAC,WAAW;IAQ1B,OAAO,CAAC,gHAAoB,uBAAA,IAAI,2BAAS,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,MAAA,CAAC,CAAC;AACtE,CAAC"}
@@ -2,10 +2,8 @@ import * as z from "zod/v3";
2
2
  export declare function string(): z.ZodType<string, z.ZodTypeDef, unknown>;
3
3
  export declare function boolean(): z.ZodType<boolean, z.ZodTypeDef, unknown>;
4
4
  export declare function number(): z.ZodType<number, z.ZodTypeDef, unknown>;
5
- export declare function bigint(): z.ZodType<bigint, z.ZodTypeDef, unknown>;
6
5
  export declare function date(): z.ZodType<Date, z.ZodTypeDef, unknown>;
7
6
  export declare function literal<T extends string | number | boolean>(value: T): z.ZodType<T, z.ZodTypeDef, unknown>;
8
- export declare function literalBigInt<T extends bigint>(value: T): z.ZodType<T, z.ZodTypeDef, unknown>;
9
7
  export declare function optional<T extends z.ZodType>(t: T): z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodNull, never, null>, T]>>;
10
8
  export declare function nullable<T extends z.ZodType>(t: T): z.ZodUnion<[z.ZodNull, z.ZodEffects<z.ZodUndefined, never, undefined>, T]>;
11
9
  //# sourceMappingURL=primitives.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/types/primitives.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAUjE;AAED,wBAAgB,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAmBnE;AAED,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAqBjE;AAED,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAgBjE;AAED,wBAAgB,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAkB7D;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,EACzD,KAAK,EAAE,CAAC,GACP,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAErC;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC5C,KAAK,EAAE,CAAC,GACP,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAErC;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,wEAMjD;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,8EAQjD"}
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/types/primitives.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAUjE;AAED,wBAAgB,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAmBnE;AAED,wBAAgB,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAqBjE;AAED,wBAAgB,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAkB7D;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,EACzD,KAAK,EAAE,CAAC,GACP,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAErC;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,wEAMjD;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,8EAQjD"}
@@ -39,10 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.string = string;
40
40
  exports.boolean = boolean;
41
41
  exports.number = number;
42
- exports.bigint = bigint;
43
42
  exports.date = date;
44
43
  exports.literal = literal;
45
- exports.literalBigInt = literalBigInt;
46
44
  exports.optional = optional;
47
45
  exports.nullable = nullable;
48
46
  const z = __importStar(require("zod/v3"));
@@ -97,24 +95,6 @@ function number() {
97
95
  zodDefaultToZeroValue(0),
98
96
  ]);
99
97
  }
100
- function bigint() {
101
- return z.union([
102
- z.string().transform((x, ctx) => {
103
- try {
104
- return BigInt(x);
105
- }
106
- catch (error) {
107
- ctx.addIssue({
108
- code: "invalid_type",
109
- expected: "bigint",
110
- received: "string",
111
- });
112
- return z.NEVER;
113
- }
114
- }),
115
- zodDefaultToZeroValue(0n),
116
- ]);
117
- }
118
98
  function date() {
119
99
  return z.union([
120
100
  z.union([z.string(), zodDefaultToZeroValue(0)]).transform((x) => new Date(x)).pipe(z.date()),
@@ -135,9 +115,6 @@ function date() {
135
115
  function literal(value) {
136
116
  return z.union([z.literal(value), zodDefaultToZeroValue(value)]);
137
117
  }
138
- function literalBigInt(value) {
139
- return z.literal(String(value)).transform((x) => BigInt(x));
140
- }
141
118
  function optional(t) {
142
119
  return z.union([
143
120
  // Null -> undefined