mollie-api-typescript 1.1.5 → 1.2.0

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 (830) hide show
  1. package/FUNCTIONS.md +3 -1
  2. package/README.md +62 -7
  3. package/bin/mcp-server.js +1650 -400
  4. package/bin/mcp-server.js.map +92 -91
  5. package/dist/commonjs/funcs/balanceTransfersList.d.ts +6 -1
  6. package/dist/commonjs/funcs/balanceTransfersList.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/balanceTransfersList.js +49 -14
  8. package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -1
  9. package/dist/commonjs/funcs/balancesList.d.ts +6 -1
  10. package/dist/commonjs/funcs/balancesList.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/balancesList.js +49 -14
  12. package/dist/commonjs/funcs/balancesList.js.map +1 -1
  13. package/dist/commonjs/funcs/balancesListTransactions.d.ts +6 -1
  14. package/dist/commonjs/funcs/balancesListTransactions.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/balancesListTransactions.js +48 -13
  16. package/dist/commonjs/funcs/balancesListTransactions.js.map +1 -1
  17. package/dist/commonjs/funcs/capturesList.d.ts +6 -1
  18. package/dist/commonjs/funcs/capturesList.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/capturesList.js +49 -14
  20. package/dist/commonjs/funcs/capturesList.js.map +1 -1
  21. package/dist/commonjs/funcs/chargebacksAll.d.ts +6 -1
  22. package/dist/commonjs/funcs/chargebacksAll.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/chargebacksAll.js +51 -16
  24. package/dist/commonjs/funcs/chargebacksAll.js.map +1 -1
  25. package/dist/commonjs/funcs/chargebacksList.d.ts +6 -1
  26. package/dist/commonjs/funcs/chargebacksList.d.ts.map +1 -1
  27. package/dist/commonjs/funcs/chargebacksList.js +49 -14
  28. package/dist/commonjs/funcs/chargebacksList.js.map +1 -1
  29. package/dist/commonjs/funcs/clientsList.d.ts +6 -1
  30. package/dist/commonjs/funcs/clientsList.d.ts.map +1 -1
  31. package/dist/commonjs/funcs/clientsList.js +48 -13
  32. package/dist/commonjs/funcs/clientsList.js.map +1 -1
  33. package/dist/commonjs/funcs/customersList.d.ts +6 -1
  34. package/dist/commonjs/funcs/customersList.d.ts.map +1 -1
  35. package/dist/commonjs/funcs/customersList.js +49 -14
  36. package/dist/commonjs/funcs/customersList.js.map +1 -1
  37. package/dist/commonjs/funcs/customersListPayments.d.ts +6 -1
  38. package/dist/commonjs/funcs/customersListPayments.d.ts.map +1 -1
  39. package/dist/commonjs/funcs/customersListPayments.js +50 -15
  40. package/dist/commonjs/funcs/customersListPayments.js.map +1 -1
  41. package/dist/commonjs/funcs/invoicesList.d.ts +6 -1
  42. package/dist/commonjs/funcs/invoicesList.d.ts.map +1 -1
  43. package/dist/commonjs/funcs/invoicesList.js +50 -15
  44. package/dist/commonjs/funcs/invoicesList.js.map +1 -1
  45. package/dist/commonjs/funcs/mandatesList.d.ts +6 -1
  46. package/dist/commonjs/funcs/mandatesList.d.ts.map +1 -1
  47. package/dist/commonjs/funcs/mandatesList.js +49 -14
  48. package/dist/commonjs/funcs/mandatesList.js.map +1 -1
  49. package/dist/commonjs/funcs/paymentLinksList.d.ts +6 -1
  50. package/dist/commonjs/funcs/paymentLinksList.d.ts.map +1 -1
  51. package/dist/commonjs/funcs/paymentLinksList.js +48 -13
  52. package/dist/commonjs/funcs/paymentLinksList.js.map +1 -1
  53. package/dist/commonjs/funcs/paymentLinksListPayments.d.ts +6 -1
  54. package/dist/commonjs/funcs/paymentLinksListPayments.d.ts.map +1 -1
  55. package/dist/commonjs/funcs/paymentLinksListPayments.js +49 -14
  56. package/dist/commonjs/funcs/paymentLinksListPayments.js.map +1 -1
  57. package/dist/commonjs/funcs/paymentsList.d.ts +6 -1
  58. package/dist/commonjs/funcs/paymentsList.d.ts.map +1 -1
  59. package/dist/commonjs/funcs/paymentsList.js +50 -15
  60. package/dist/commonjs/funcs/paymentsList.js.map +1 -1
  61. package/dist/commonjs/funcs/profilesList.d.ts +6 -1
  62. package/dist/commonjs/funcs/profilesList.d.ts.map +1 -1
  63. package/dist/commonjs/funcs/profilesList.js +47 -12
  64. package/dist/commonjs/funcs/profilesList.js.map +1 -1
  65. package/dist/commonjs/funcs/refundsAll.d.ts +6 -1
  66. package/dist/commonjs/funcs/refundsAll.d.ts.map +1 -1
  67. package/dist/commonjs/funcs/refundsAll.js +51 -16
  68. package/dist/commonjs/funcs/refundsAll.js.map +1 -1
  69. package/dist/commonjs/funcs/refundsList.d.ts +6 -1
  70. package/dist/commonjs/funcs/refundsList.d.ts.map +1 -1
  71. package/dist/commonjs/funcs/refundsList.js +49 -14
  72. package/dist/commonjs/funcs/refundsList.js.map +1 -1
  73. package/dist/commonjs/funcs/salesInvoicesList.d.ts +6 -1
  74. package/dist/commonjs/funcs/salesInvoicesList.d.ts.map +1 -1
  75. package/dist/commonjs/funcs/salesInvoicesList.js +48 -13
  76. package/dist/commonjs/funcs/salesInvoicesList.js.map +1 -1
  77. package/dist/commonjs/funcs/settlementsList.d.ts +6 -1
  78. package/dist/commonjs/funcs/settlementsList.d.ts.map +1 -1
  79. package/dist/commonjs/funcs/settlementsList.js +51 -16
  80. package/dist/commonjs/funcs/settlementsList.js.map +1 -1
  81. package/dist/commonjs/funcs/settlementsListCaptures.d.ts +6 -1
  82. package/dist/commonjs/funcs/settlementsListCaptures.d.ts.map +1 -1
  83. package/dist/commonjs/funcs/settlementsListCaptures.js +49 -14
  84. package/dist/commonjs/funcs/settlementsListCaptures.js.map +1 -1
  85. package/dist/commonjs/funcs/settlementsListChargebacks.d.ts +6 -1
  86. package/dist/commonjs/funcs/settlementsListChargebacks.d.ts.map +1 -1
  87. package/dist/commonjs/funcs/settlementsListChargebacks.js +49 -14
  88. package/dist/commonjs/funcs/settlementsListChargebacks.js.map +1 -1
  89. package/dist/commonjs/funcs/settlementsListPayments.d.ts +6 -1
  90. package/dist/commonjs/funcs/settlementsListPayments.d.ts.map +1 -1
  91. package/dist/commonjs/funcs/settlementsListPayments.js +50 -15
  92. package/dist/commonjs/funcs/settlementsListPayments.js.map +1 -1
  93. package/dist/commonjs/funcs/settlementsListRefunds.d.ts +6 -1
  94. package/dist/commonjs/funcs/settlementsListRefunds.d.ts.map +1 -1
  95. package/dist/commonjs/funcs/settlementsListRefunds.js +49 -14
  96. package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
  97. package/dist/commonjs/funcs/subscriptionsAll.d.ts +6 -1
  98. package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
  99. package/dist/commonjs/funcs/subscriptionsAll.js +49 -14
  100. package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
  101. package/dist/commonjs/funcs/subscriptionsList.d.ts +6 -1
  102. package/dist/commonjs/funcs/subscriptionsList.d.ts.map +1 -1
  103. package/dist/commonjs/funcs/subscriptionsList.js +49 -14
  104. package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
  105. package/dist/commonjs/funcs/subscriptionsListPayments.d.ts +6 -1
  106. package/dist/commonjs/funcs/subscriptionsListPayments.d.ts.map +1 -1
  107. package/dist/commonjs/funcs/subscriptionsListPayments.js +50 -15
  108. package/dist/commonjs/funcs/subscriptionsListPayments.js.map +1 -1
  109. package/dist/commonjs/funcs/terminalsList.d.ts +6 -1
  110. package/dist/commonjs/funcs/terminalsList.d.ts.map +1 -1
  111. package/dist/commonjs/funcs/terminalsList.js +49 -14
  112. package/dist/commonjs/funcs/terminalsList.js.map +1 -1
  113. package/dist/commonjs/funcs/webhooksList.d.ts +6 -1
  114. package/dist/commonjs/funcs/webhooksList.d.ts.map +1 -1
  115. package/dist/commonjs/funcs/webhooksList.js +50 -15
  116. package/dist/commonjs/funcs/webhooksList.js.map +1 -1
  117. package/dist/commonjs/lib/config.d.ts +3 -3
  118. package/dist/commonjs/lib/config.js +3 -3
  119. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  120. package/dist/commonjs/mcp-server/server.js +1 -1
  121. package/dist/commonjs/mcp-server/tools/balanceTransfersList.js +1 -1
  122. package/dist/commonjs/mcp-server/tools/balanceTransfersList.js.map +1 -1
  123. package/dist/commonjs/mcp-server/tools/balancesList.js +1 -1
  124. package/dist/commonjs/mcp-server/tools/balancesList.js.map +1 -1
  125. package/dist/commonjs/mcp-server/tools/balancesListTransactions.js +1 -1
  126. package/dist/commonjs/mcp-server/tools/balancesListTransactions.js.map +1 -1
  127. package/dist/commonjs/mcp-server/tools/capturesList.js +1 -1
  128. package/dist/commonjs/mcp-server/tools/capturesList.js.map +1 -1
  129. package/dist/commonjs/mcp-server/tools/chargebacksAll.js +1 -1
  130. package/dist/commonjs/mcp-server/tools/chargebacksAll.js.map +1 -1
  131. package/dist/commonjs/mcp-server/tools/chargebacksList.js +1 -1
  132. package/dist/commonjs/mcp-server/tools/chargebacksList.js.map +1 -1
  133. package/dist/commonjs/mcp-server/tools/clientsList.js +1 -1
  134. package/dist/commonjs/mcp-server/tools/clientsList.js.map +1 -1
  135. package/dist/commonjs/mcp-server/tools/customersList.js +1 -1
  136. package/dist/commonjs/mcp-server/tools/customersList.js.map +1 -1
  137. package/dist/commonjs/mcp-server/tools/customersListPayments.js +1 -1
  138. package/dist/commonjs/mcp-server/tools/customersListPayments.js.map +1 -1
  139. package/dist/commonjs/mcp-server/tools/invoicesList.js +1 -1
  140. package/dist/commonjs/mcp-server/tools/invoicesList.js.map +1 -1
  141. package/dist/commonjs/mcp-server/tools/mandatesList.js +1 -1
  142. package/dist/commonjs/mcp-server/tools/mandatesList.js.map +1 -1
  143. package/dist/commonjs/mcp-server/tools/paymentLinksList.js +1 -1
  144. package/dist/commonjs/mcp-server/tools/paymentLinksList.js.map +1 -1
  145. package/dist/commonjs/mcp-server/tools/paymentLinksListPayments.js +1 -1
  146. package/dist/commonjs/mcp-server/tools/paymentLinksListPayments.js.map +1 -1
  147. package/dist/commonjs/mcp-server/tools/paymentsList.js +1 -1
  148. package/dist/commonjs/mcp-server/tools/paymentsList.js.map +1 -1
  149. package/dist/commonjs/mcp-server/tools/profilesList.js +1 -1
  150. package/dist/commonjs/mcp-server/tools/profilesList.js.map +1 -1
  151. package/dist/commonjs/mcp-server/tools/refundsAll.js +1 -1
  152. package/dist/commonjs/mcp-server/tools/refundsAll.js.map +1 -1
  153. package/dist/commonjs/mcp-server/tools/refundsList.js +1 -1
  154. package/dist/commonjs/mcp-server/tools/refundsList.js.map +1 -1
  155. package/dist/commonjs/mcp-server/tools/salesInvoicesList.js +1 -1
  156. package/dist/commonjs/mcp-server/tools/salesInvoicesList.js.map +1 -1
  157. package/dist/commonjs/mcp-server/tools/settlementsList.js +1 -1
  158. package/dist/commonjs/mcp-server/tools/settlementsList.js.map +1 -1
  159. package/dist/commonjs/mcp-server/tools/settlementsListCaptures.js +1 -1
  160. package/dist/commonjs/mcp-server/tools/settlementsListCaptures.js.map +1 -1
  161. package/dist/commonjs/mcp-server/tools/settlementsListChargebacks.js +1 -1
  162. package/dist/commonjs/mcp-server/tools/settlementsListChargebacks.js.map +1 -1
  163. package/dist/commonjs/mcp-server/tools/settlementsListPayments.js +1 -1
  164. package/dist/commonjs/mcp-server/tools/settlementsListPayments.js.map +1 -1
  165. package/dist/commonjs/mcp-server/tools/settlementsListRefunds.js +1 -1
  166. package/dist/commonjs/mcp-server/tools/settlementsListRefunds.js.map +1 -1
  167. package/dist/commonjs/mcp-server/tools/subscriptionsAll.js +1 -1
  168. package/dist/commonjs/mcp-server/tools/subscriptionsAll.js.map +1 -1
  169. package/dist/commonjs/mcp-server/tools/subscriptionsList.js +1 -1
  170. package/dist/commonjs/mcp-server/tools/subscriptionsList.js.map +1 -1
  171. package/dist/commonjs/mcp-server/tools/subscriptionsListPayments.js +1 -1
  172. package/dist/commonjs/mcp-server/tools/subscriptionsListPayments.js.map +1 -1
  173. package/dist/commonjs/mcp-server/tools/terminalsList.js +1 -1
  174. package/dist/commonjs/mcp-server/tools/terminalsList.js.map +1 -1
  175. package/dist/commonjs/mcp-server/tools/webhooksList.js +1 -1
  176. package/dist/commonjs/mcp-server/tools/webhooksList.js.map +1 -1
  177. package/dist/commonjs/models/entitybalancetransaction.d.ts +45 -0
  178. package/dist/commonjs/models/entitybalancetransaction.d.ts.map +1 -1
  179. package/dist/commonjs/models/entitybalancetransaction.js +28 -2
  180. package/dist/commonjs/models/entitybalancetransaction.js.map +1 -1
  181. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +16 -3
  182. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  183. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +27 -3
  184. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  185. package/dist/commonjs/models/operations/listallchargebacks.d.ts +16 -3
  186. package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
  187. package/dist/commonjs/models/operations/listallchargebacks.js +27 -3
  188. package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
  189. package/dist/commonjs/models/operations/listallrefunds.d.ts +16 -3
  190. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  191. package/dist/commonjs/models/operations/listallrefunds.js +27 -3
  192. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  193. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +16 -3
  194. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  195. package/dist/commonjs/models/operations/listallsubscriptions.js +27 -3
  196. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  197. package/dist/commonjs/models/operations/listbalances.d.ts +16 -3
  198. package/dist/commonjs/models/operations/listbalances.d.ts.map +1 -1
  199. package/dist/commonjs/models/operations/listbalances.js +27 -3
  200. package/dist/commonjs/models/operations/listbalances.js.map +1 -1
  201. package/dist/commonjs/models/operations/listbalancetransactions.d.ts +16 -3
  202. package/dist/commonjs/models/operations/listbalancetransactions.d.ts.map +1 -1
  203. package/dist/commonjs/models/operations/listbalancetransactions.js +27 -3
  204. package/dist/commonjs/models/operations/listbalancetransactions.js.map +1 -1
  205. package/dist/commonjs/models/operations/listcaptures.d.ts +16 -3
  206. package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
  207. package/dist/commonjs/models/operations/listcaptures.js +27 -3
  208. package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
  209. package/dist/commonjs/models/operations/listchargebacks.d.ts +16 -3
  210. package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
  211. package/dist/commonjs/models/operations/listchargebacks.js +27 -3
  212. package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
  213. package/dist/commonjs/models/operations/listclients.d.ts +16 -3
  214. package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
  215. package/dist/commonjs/models/operations/listclients.js +27 -3
  216. package/dist/commonjs/models/operations/listclients.js.map +1 -1
  217. package/dist/commonjs/models/operations/listconnectbalancetransfers.d.ts +16 -3
  218. package/dist/commonjs/models/operations/listconnectbalancetransfers.d.ts.map +1 -1
  219. package/dist/commonjs/models/operations/listconnectbalancetransfers.js +27 -3
  220. package/dist/commonjs/models/operations/listconnectbalancetransfers.js.map +1 -1
  221. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +16 -3
  222. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  223. package/dist/commonjs/models/operations/listcustomerpayments.js +27 -3
  224. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  225. package/dist/commonjs/models/operations/listcustomers.d.ts +16 -3
  226. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  227. package/dist/commonjs/models/operations/listcustomers.js +27 -3
  228. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  229. package/dist/commonjs/models/operations/listinvoices.d.ts +16 -3
  230. package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
  231. package/dist/commonjs/models/operations/listinvoices.js +27 -3
  232. package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
  233. package/dist/commonjs/models/operations/listmandates.d.ts +16 -3
  234. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  235. package/dist/commonjs/models/operations/listmandates.js +27 -3
  236. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  237. package/dist/commonjs/models/operations/listpaymentlinks.d.ts +16 -3
  238. package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
  239. package/dist/commonjs/models/operations/listpaymentlinks.js +27 -3
  240. package/dist/commonjs/models/operations/listpaymentlinks.js.map +1 -1
  241. package/dist/commonjs/models/operations/listpayments.d.ts +16 -3
  242. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  243. package/dist/commonjs/models/operations/listpayments.js +27 -3
  244. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  245. package/dist/commonjs/models/operations/listprofiles.d.ts +16 -3
  246. package/dist/commonjs/models/operations/listprofiles.d.ts.map +1 -1
  247. package/dist/commonjs/models/operations/listprofiles.js +27 -3
  248. package/dist/commonjs/models/operations/listprofiles.js.map +1 -1
  249. package/dist/commonjs/models/operations/listrefunds.d.ts +16 -3
  250. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  251. package/dist/commonjs/models/operations/listrefunds.js +27 -3
  252. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  253. package/dist/commonjs/models/operations/listsalesinvoices.d.ts +16 -3
  254. package/dist/commonjs/models/operations/listsalesinvoices.d.ts.map +1 -1
  255. package/dist/commonjs/models/operations/listsalesinvoices.js +27 -3
  256. package/dist/commonjs/models/operations/listsalesinvoices.js.map +1 -1
  257. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +16 -3
  258. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
  259. package/dist/commonjs/models/operations/listsettlementcaptures.js +27 -3
  260. package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
  261. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +16 -3
  262. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  263. package/dist/commonjs/models/operations/listsettlementchargebacks.js +27 -3
  264. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  265. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +16 -3
  266. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  267. package/dist/commonjs/models/operations/listsettlementpayments.js +27 -3
  268. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  269. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +16 -3
  270. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  271. package/dist/commonjs/models/operations/listsettlementrefunds.js +27 -3
  272. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  273. package/dist/commonjs/models/operations/listsettlements.d.ts +16 -3
  274. package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
  275. package/dist/commonjs/models/operations/listsettlements.js +27 -3
  276. package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
  277. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +16 -3
  278. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  279. package/dist/commonjs/models/operations/listsubscriptionpayments.js +27 -3
  280. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  281. package/dist/commonjs/models/operations/listsubscriptions.d.ts +16 -3
  282. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  283. package/dist/commonjs/models/operations/listsubscriptions.js +27 -3
  284. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  285. package/dist/commonjs/models/operations/listterminals.d.ts +16 -3
  286. package/dist/commonjs/models/operations/listterminals.d.ts.map +1 -1
  287. package/dist/commonjs/models/operations/listterminals.js +27 -3
  288. package/dist/commonjs/models/operations/listterminals.js.map +1 -1
  289. package/dist/commonjs/models/operations/listwebhooks.d.ts +16 -3
  290. package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
  291. package/dist/commonjs/models/operations/listwebhooks.js +27 -3
  292. package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
  293. package/dist/commonjs/sdk/balances.d.ts +7 -2
  294. package/dist/commonjs/sdk/balances.d.ts.map +1 -1
  295. package/dist/commonjs/sdk/balances.js +3 -2
  296. package/dist/commonjs/sdk/balances.js.map +1 -1
  297. package/dist/commonjs/sdk/balancetransfers.d.ts +4 -1
  298. package/dist/commonjs/sdk/balancetransfers.d.ts.map +1 -1
  299. package/dist/commonjs/sdk/balancetransfers.js +2 -1
  300. package/dist/commonjs/sdk/balancetransfers.js.map +1 -1
  301. package/dist/commonjs/sdk/captures.d.ts +4 -1
  302. package/dist/commonjs/sdk/captures.d.ts.map +1 -1
  303. package/dist/commonjs/sdk/captures.js +2 -1
  304. package/dist/commonjs/sdk/captures.js.map +1 -1
  305. package/dist/commonjs/sdk/chargebacks.d.ts +7 -2
  306. package/dist/commonjs/sdk/chargebacks.d.ts.map +1 -1
  307. package/dist/commonjs/sdk/chargebacks.js +3 -2
  308. package/dist/commonjs/sdk/chargebacks.js.map +1 -1
  309. package/dist/commonjs/sdk/clients.d.ts +4 -1
  310. package/dist/commonjs/sdk/clients.d.ts.map +1 -1
  311. package/dist/commonjs/sdk/clients.js +2 -1
  312. package/dist/commonjs/sdk/clients.js.map +1 -1
  313. package/dist/commonjs/sdk/customers.d.ts +7 -2
  314. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  315. package/dist/commonjs/sdk/customers.js +3 -2
  316. package/dist/commonjs/sdk/customers.js.map +1 -1
  317. package/dist/commonjs/sdk/invoices.d.ts +4 -1
  318. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  319. package/dist/commonjs/sdk/invoices.js +2 -1
  320. package/dist/commonjs/sdk/invoices.js.map +1 -1
  321. package/dist/commonjs/sdk/mandates.d.ts +4 -1
  322. package/dist/commonjs/sdk/mandates.d.ts.map +1 -1
  323. package/dist/commonjs/sdk/mandates.js +2 -1
  324. package/dist/commonjs/sdk/mandates.js.map +1 -1
  325. package/dist/commonjs/sdk/paymentlinks.d.ts +7 -2
  326. package/dist/commonjs/sdk/paymentlinks.d.ts.map +1 -1
  327. package/dist/commonjs/sdk/paymentlinks.js +3 -2
  328. package/dist/commonjs/sdk/paymentlinks.js.map +1 -1
  329. package/dist/commonjs/sdk/payments.d.ts +4 -1
  330. package/dist/commonjs/sdk/payments.d.ts.map +1 -1
  331. package/dist/commonjs/sdk/payments.js +2 -1
  332. package/dist/commonjs/sdk/payments.js.map +1 -1
  333. package/dist/commonjs/sdk/profiles.d.ts +4 -1
  334. package/dist/commonjs/sdk/profiles.d.ts.map +1 -1
  335. package/dist/commonjs/sdk/profiles.js +2 -1
  336. package/dist/commonjs/sdk/profiles.js.map +1 -1
  337. package/dist/commonjs/sdk/refunds.d.ts +7 -2
  338. package/dist/commonjs/sdk/refunds.d.ts.map +1 -1
  339. package/dist/commonjs/sdk/refunds.js +3 -2
  340. package/dist/commonjs/sdk/refunds.js.map +1 -1
  341. package/dist/commonjs/sdk/salesinvoices.d.ts +4 -1
  342. package/dist/commonjs/sdk/salesinvoices.d.ts.map +1 -1
  343. package/dist/commonjs/sdk/salesinvoices.js +2 -1
  344. package/dist/commonjs/sdk/salesinvoices.js.map +1 -1
  345. package/dist/commonjs/sdk/settlements.d.ts +16 -5
  346. package/dist/commonjs/sdk/settlements.d.ts.map +1 -1
  347. package/dist/commonjs/sdk/settlements.js +6 -5
  348. package/dist/commonjs/sdk/settlements.js.map +1 -1
  349. package/dist/commonjs/sdk/subscriptions.d.ts +10 -3
  350. package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
  351. package/dist/commonjs/sdk/subscriptions.js +4 -3
  352. package/dist/commonjs/sdk/subscriptions.js.map +1 -1
  353. package/dist/commonjs/sdk/terminals.d.ts +4 -1
  354. package/dist/commonjs/sdk/terminals.d.ts.map +1 -1
  355. package/dist/commonjs/sdk/terminals.js +2 -1
  356. package/dist/commonjs/sdk/terminals.js.map +1 -1
  357. package/dist/commonjs/sdk/webhooks.d.ts +4 -1
  358. package/dist/commonjs/sdk/webhooks.d.ts.map +1 -1
  359. package/dist/commonjs/sdk/webhooks.js +2 -1
  360. package/dist/commonjs/sdk/webhooks.js.map +1 -1
  361. package/dist/esm/funcs/balanceTransfersList.d.ts +6 -1
  362. package/dist/esm/funcs/balanceTransfersList.d.ts.map +1 -1
  363. package/dist/esm/funcs/balanceTransfersList.js +49 -14
  364. package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
  365. package/dist/esm/funcs/balancesList.d.ts +6 -1
  366. package/dist/esm/funcs/balancesList.d.ts.map +1 -1
  367. package/dist/esm/funcs/balancesList.js +49 -14
  368. package/dist/esm/funcs/balancesList.js.map +1 -1
  369. package/dist/esm/funcs/balancesListTransactions.d.ts +6 -1
  370. package/dist/esm/funcs/balancesListTransactions.d.ts.map +1 -1
  371. package/dist/esm/funcs/balancesListTransactions.js +48 -13
  372. package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
  373. package/dist/esm/funcs/capturesList.d.ts +6 -1
  374. package/dist/esm/funcs/capturesList.d.ts.map +1 -1
  375. package/dist/esm/funcs/capturesList.js +49 -14
  376. package/dist/esm/funcs/capturesList.js.map +1 -1
  377. package/dist/esm/funcs/chargebacksAll.d.ts +6 -1
  378. package/dist/esm/funcs/chargebacksAll.d.ts.map +1 -1
  379. package/dist/esm/funcs/chargebacksAll.js +51 -16
  380. package/dist/esm/funcs/chargebacksAll.js.map +1 -1
  381. package/dist/esm/funcs/chargebacksList.d.ts +6 -1
  382. package/dist/esm/funcs/chargebacksList.d.ts.map +1 -1
  383. package/dist/esm/funcs/chargebacksList.js +49 -14
  384. package/dist/esm/funcs/chargebacksList.js.map +1 -1
  385. package/dist/esm/funcs/clientsList.d.ts +6 -1
  386. package/dist/esm/funcs/clientsList.d.ts.map +1 -1
  387. package/dist/esm/funcs/clientsList.js +48 -13
  388. package/dist/esm/funcs/clientsList.js.map +1 -1
  389. package/dist/esm/funcs/customersList.d.ts +6 -1
  390. package/dist/esm/funcs/customersList.d.ts.map +1 -1
  391. package/dist/esm/funcs/customersList.js +49 -14
  392. package/dist/esm/funcs/customersList.js.map +1 -1
  393. package/dist/esm/funcs/customersListPayments.d.ts +6 -1
  394. package/dist/esm/funcs/customersListPayments.d.ts.map +1 -1
  395. package/dist/esm/funcs/customersListPayments.js +50 -15
  396. package/dist/esm/funcs/customersListPayments.js.map +1 -1
  397. package/dist/esm/funcs/invoicesList.d.ts +6 -1
  398. package/dist/esm/funcs/invoicesList.d.ts.map +1 -1
  399. package/dist/esm/funcs/invoicesList.js +50 -15
  400. package/dist/esm/funcs/invoicesList.js.map +1 -1
  401. package/dist/esm/funcs/mandatesList.d.ts +6 -1
  402. package/dist/esm/funcs/mandatesList.d.ts.map +1 -1
  403. package/dist/esm/funcs/mandatesList.js +49 -14
  404. package/dist/esm/funcs/mandatesList.js.map +1 -1
  405. package/dist/esm/funcs/paymentLinksList.d.ts +6 -1
  406. package/dist/esm/funcs/paymentLinksList.d.ts.map +1 -1
  407. package/dist/esm/funcs/paymentLinksList.js +48 -13
  408. package/dist/esm/funcs/paymentLinksList.js.map +1 -1
  409. package/dist/esm/funcs/paymentLinksListPayments.d.ts +6 -1
  410. package/dist/esm/funcs/paymentLinksListPayments.d.ts.map +1 -1
  411. package/dist/esm/funcs/paymentLinksListPayments.js +49 -14
  412. package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
  413. package/dist/esm/funcs/paymentsList.d.ts +6 -1
  414. package/dist/esm/funcs/paymentsList.d.ts.map +1 -1
  415. package/dist/esm/funcs/paymentsList.js +50 -15
  416. package/dist/esm/funcs/paymentsList.js.map +1 -1
  417. package/dist/esm/funcs/profilesList.d.ts +6 -1
  418. package/dist/esm/funcs/profilesList.d.ts.map +1 -1
  419. package/dist/esm/funcs/profilesList.js +47 -12
  420. package/dist/esm/funcs/profilesList.js.map +1 -1
  421. package/dist/esm/funcs/refundsAll.d.ts +6 -1
  422. package/dist/esm/funcs/refundsAll.d.ts.map +1 -1
  423. package/dist/esm/funcs/refundsAll.js +51 -16
  424. package/dist/esm/funcs/refundsAll.js.map +1 -1
  425. package/dist/esm/funcs/refundsList.d.ts +6 -1
  426. package/dist/esm/funcs/refundsList.d.ts.map +1 -1
  427. package/dist/esm/funcs/refundsList.js +49 -14
  428. package/dist/esm/funcs/refundsList.js.map +1 -1
  429. package/dist/esm/funcs/salesInvoicesList.d.ts +6 -1
  430. package/dist/esm/funcs/salesInvoicesList.d.ts.map +1 -1
  431. package/dist/esm/funcs/salesInvoicesList.js +48 -13
  432. package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
  433. package/dist/esm/funcs/settlementsList.d.ts +6 -1
  434. package/dist/esm/funcs/settlementsList.d.ts.map +1 -1
  435. package/dist/esm/funcs/settlementsList.js +51 -16
  436. package/dist/esm/funcs/settlementsList.js.map +1 -1
  437. package/dist/esm/funcs/settlementsListCaptures.d.ts +6 -1
  438. package/dist/esm/funcs/settlementsListCaptures.d.ts.map +1 -1
  439. package/dist/esm/funcs/settlementsListCaptures.js +49 -14
  440. package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
  441. package/dist/esm/funcs/settlementsListChargebacks.d.ts +6 -1
  442. package/dist/esm/funcs/settlementsListChargebacks.d.ts.map +1 -1
  443. package/dist/esm/funcs/settlementsListChargebacks.js +49 -14
  444. package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
  445. package/dist/esm/funcs/settlementsListPayments.d.ts +6 -1
  446. package/dist/esm/funcs/settlementsListPayments.d.ts.map +1 -1
  447. package/dist/esm/funcs/settlementsListPayments.js +50 -15
  448. package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
  449. package/dist/esm/funcs/settlementsListRefunds.d.ts +6 -1
  450. package/dist/esm/funcs/settlementsListRefunds.d.ts.map +1 -1
  451. package/dist/esm/funcs/settlementsListRefunds.js +49 -14
  452. package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
  453. package/dist/esm/funcs/subscriptionsAll.d.ts +6 -1
  454. package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
  455. package/dist/esm/funcs/subscriptionsAll.js +49 -14
  456. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  457. package/dist/esm/funcs/subscriptionsList.d.ts +6 -1
  458. package/dist/esm/funcs/subscriptionsList.d.ts.map +1 -1
  459. package/dist/esm/funcs/subscriptionsList.js +49 -14
  460. package/dist/esm/funcs/subscriptionsList.js.map +1 -1
  461. package/dist/esm/funcs/subscriptionsListPayments.d.ts +6 -1
  462. package/dist/esm/funcs/subscriptionsListPayments.d.ts.map +1 -1
  463. package/dist/esm/funcs/subscriptionsListPayments.js +50 -15
  464. package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
  465. package/dist/esm/funcs/terminalsList.d.ts +6 -1
  466. package/dist/esm/funcs/terminalsList.d.ts.map +1 -1
  467. package/dist/esm/funcs/terminalsList.js +49 -14
  468. package/dist/esm/funcs/terminalsList.js.map +1 -1
  469. package/dist/esm/funcs/webhooksList.d.ts +6 -1
  470. package/dist/esm/funcs/webhooksList.d.ts.map +1 -1
  471. package/dist/esm/funcs/webhooksList.js +50 -15
  472. package/dist/esm/funcs/webhooksList.js.map +1 -1
  473. package/dist/esm/lib/config.d.ts +3 -3
  474. package/dist/esm/lib/config.js +3 -3
  475. package/dist/esm/mcp-server/mcp-server.js +1 -1
  476. package/dist/esm/mcp-server/server.js +1 -1
  477. package/dist/esm/mcp-server/tools/balanceTransfersList.js +1 -1
  478. package/dist/esm/mcp-server/tools/balanceTransfersList.js.map +1 -1
  479. package/dist/esm/mcp-server/tools/balancesList.js +1 -1
  480. package/dist/esm/mcp-server/tools/balancesList.js.map +1 -1
  481. package/dist/esm/mcp-server/tools/balancesListTransactions.js +1 -1
  482. package/dist/esm/mcp-server/tools/balancesListTransactions.js.map +1 -1
  483. package/dist/esm/mcp-server/tools/capturesList.js +1 -1
  484. package/dist/esm/mcp-server/tools/capturesList.js.map +1 -1
  485. package/dist/esm/mcp-server/tools/chargebacksAll.js +1 -1
  486. package/dist/esm/mcp-server/tools/chargebacksAll.js.map +1 -1
  487. package/dist/esm/mcp-server/tools/chargebacksList.js +1 -1
  488. package/dist/esm/mcp-server/tools/chargebacksList.js.map +1 -1
  489. package/dist/esm/mcp-server/tools/clientsList.js +1 -1
  490. package/dist/esm/mcp-server/tools/clientsList.js.map +1 -1
  491. package/dist/esm/mcp-server/tools/customersList.js +1 -1
  492. package/dist/esm/mcp-server/tools/customersList.js.map +1 -1
  493. package/dist/esm/mcp-server/tools/customersListPayments.js +1 -1
  494. package/dist/esm/mcp-server/tools/customersListPayments.js.map +1 -1
  495. package/dist/esm/mcp-server/tools/invoicesList.js +1 -1
  496. package/dist/esm/mcp-server/tools/invoicesList.js.map +1 -1
  497. package/dist/esm/mcp-server/tools/mandatesList.js +1 -1
  498. package/dist/esm/mcp-server/tools/mandatesList.js.map +1 -1
  499. package/dist/esm/mcp-server/tools/paymentLinksList.js +1 -1
  500. package/dist/esm/mcp-server/tools/paymentLinksList.js.map +1 -1
  501. package/dist/esm/mcp-server/tools/paymentLinksListPayments.js +1 -1
  502. package/dist/esm/mcp-server/tools/paymentLinksListPayments.js.map +1 -1
  503. package/dist/esm/mcp-server/tools/paymentsList.js +1 -1
  504. package/dist/esm/mcp-server/tools/paymentsList.js.map +1 -1
  505. package/dist/esm/mcp-server/tools/profilesList.js +1 -1
  506. package/dist/esm/mcp-server/tools/profilesList.js.map +1 -1
  507. package/dist/esm/mcp-server/tools/refundsAll.js +1 -1
  508. package/dist/esm/mcp-server/tools/refundsAll.js.map +1 -1
  509. package/dist/esm/mcp-server/tools/refundsList.js +1 -1
  510. package/dist/esm/mcp-server/tools/refundsList.js.map +1 -1
  511. package/dist/esm/mcp-server/tools/salesInvoicesList.js +1 -1
  512. package/dist/esm/mcp-server/tools/salesInvoicesList.js.map +1 -1
  513. package/dist/esm/mcp-server/tools/settlementsList.js +1 -1
  514. package/dist/esm/mcp-server/tools/settlementsList.js.map +1 -1
  515. package/dist/esm/mcp-server/tools/settlementsListCaptures.js +1 -1
  516. package/dist/esm/mcp-server/tools/settlementsListCaptures.js.map +1 -1
  517. package/dist/esm/mcp-server/tools/settlementsListChargebacks.js +1 -1
  518. package/dist/esm/mcp-server/tools/settlementsListChargebacks.js.map +1 -1
  519. package/dist/esm/mcp-server/tools/settlementsListPayments.js +1 -1
  520. package/dist/esm/mcp-server/tools/settlementsListPayments.js.map +1 -1
  521. package/dist/esm/mcp-server/tools/settlementsListRefunds.js +1 -1
  522. package/dist/esm/mcp-server/tools/settlementsListRefunds.js.map +1 -1
  523. package/dist/esm/mcp-server/tools/subscriptionsAll.js +1 -1
  524. package/dist/esm/mcp-server/tools/subscriptionsAll.js.map +1 -1
  525. package/dist/esm/mcp-server/tools/subscriptionsList.js +1 -1
  526. package/dist/esm/mcp-server/tools/subscriptionsList.js.map +1 -1
  527. package/dist/esm/mcp-server/tools/subscriptionsListPayments.js +1 -1
  528. package/dist/esm/mcp-server/tools/subscriptionsListPayments.js.map +1 -1
  529. package/dist/esm/mcp-server/tools/terminalsList.js +1 -1
  530. package/dist/esm/mcp-server/tools/terminalsList.js.map +1 -1
  531. package/dist/esm/mcp-server/tools/webhooksList.js +1 -1
  532. package/dist/esm/mcp-server/tools/webhooksList.js.map +1 -1
  533. package/dist/esm/models/entitybalancetransaction.d.ts +45 -0
  534. package/dist/esm/models/entitybalancetransaction.d.ts.map +1 -1
  535. package/dist/esm/models/entitybalancetransaction.js +24 -0
  536. package/dist/esm/models/entitybalancetransaction.js.map +1 -1
  537. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +16 -3
  538. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  539. package/dist/esm/models/operations/getpaymentlinkpayments.js +24 -2
  540. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  541. package/dist/esm/models/operations/listallchargebacks.d.ts +16 -3
  542. package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
  543. package/dist/esm/models/operations/listallchargebacks.js +24 -2
  544. package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
  545. package/dist/esm/models/operations/listallrefunds.d.ts +16 -3
  546. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  547. package/dist/esm/models/operations/listallrefunds.js +24 -2
  548. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  549. package/dist/esm/models/operations/listallsubscriptions.d.ts +16 -3
  550. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  551. package/dist/esm/models/operations/listallsubscriptions.js +24 -2
  552. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  553. package/dist/esm/models/operations/listbalances.d.ts +16 -3
  554. package/dist/esm/models/operations/listbalances.d.ts.map +1 -1
  555. package/dist/esm/models/operations/listbalances.js +24 -2
  556. package/dist/esm/models/operations/listbalances.js.map +1 -1
  557. package/dist/esm/models/operations/listbalancetransactions.d.ts +16 -3
  558. package/dist/esm/models/operations/listbalancetransactions.d.ts.map +1 -1
  559. package/dist/esm/models/operations/listbalancetransactions.js +24 -2
  560. package/dist/esm/models/operations/listbalancetransactions.js.map +1 -1
  561. package/dist/esm/models/operations/listcaptures.d.ts +16 -3
  562. package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
  563. package/dist/esm/models/operations/listcaptures.js +24 -2
  564. package/dist/esm/models/operations/listcaptures.js.map +1 -1
  565. package/dist/esm/models/operations/listchargebacks.d.ts +16 -3
  566. package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
  567. package/dist/esm/models/operations/listchargebacks.js +24 -2
  568. package/dist/esm/models/operations/listchargebacks.js.map +1 -1
  569. package/dist/esm/models/operations/listclients.d.ts +16 -3
  570. package/dist/esm/models/operations/listclients.d.ts.map +1 -1
  571. package/dist/esm/models/operations/listclients.js +24 -2
  572. package/dist/esm/models/operations/listclients.js.map +1 -1
  573. package/dist/esm/models/operations/listconnectbalancetransfers.d.ts +16 -3
  574. package/dist/esm/models/operations/listconnectbalancetransfers.d.ts.map +1 -1
  575. package/dist/esm/models/operations/listconnectbalancetransfers.js +24 -2
  576. package/dist/esm/models/operations/listconnectbalancetransfers.js.map +1 -1
  577. package/dist/esm/models/operations/listcustomerpayments.d.ts +16 -3
  578. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  579. package/dist/esm/models/operations/listcustomerpayments.js +24 -2
  580. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  581. package/dist/esm/models/operations/listcustomers.d.ts +16 -3
  582. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  583. package/dist/esm/models/operations/listcustomers.js +24 -2
  584. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  585. package/dist/esm/models/operations/listinvoices.d.ts +16 -3
  586. package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
  587. package/dist/esm/models/operations/listinvoices.js +24 -2
  588. package/dist/esm/models/operations/listinvoices.js.map +1 -1
  589. package/dist/esm/models/operations/listmandates.d.ts +16 -3
  590. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  591. package/dist/esm/models/operations/listmandates.js +24 -2
  592. package/dist/esm/models/operations/listmandates.js.map +1 -1
  593. package/dist/esm/models/operations/listpaymentlinks.d.ts +16 -3
  594. package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
  595. package/dist/esm/models/operations/listpaymentlinks.js +24 -2
  596. package/dist/esm/models/operations/listpaymentlinks.js.map +1 -1
  597. package/dist/esm/models/operations/listpayments.d.ts +16 -3
  598. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  599. package/dist/esm/models/operations/listpayments.js +24 -2
  600. package/dist/esm/models/operations/listpayments.js.map +1 -1
  601. package/dist/esm/models/operations/listprofiles.d.ts +16 -3
  602. package/dist/esm/models/operations/listprofiles.d.ts.map +1 -1
  603. package/dist/esm/models/operations/listprofiles.js +24 -2
  604. package/dist/esm/models/operations/listprofiles.js.map +1 -1
  605. package/dist/esm/models/operations/listrefunds.d.ts +16 -3
  606. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  607. package/dist/esm/models/operations/listrefunds.js +24 -2
  608. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  609. package/dist/esm/models/operations/listsalesinvoices.d.ts +16 -3
  610. package/dist/esm/models/operations/listsalesinvoices.d.ts.map +1 -1
  611. package/dist/esm/models/operations/listsalesinvoices.js +24 -2
  612. package/dist/esm/models/operations/listsalesinvoices.js.map +1 -1
  613. package/dist/esm/models/operations/listsettlementcaptures.d.ts +16 -3
  614. package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
  615. package/dist/esm/models/operations/listsettlementcaptures.js +24 -2
  616. package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
  617. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +16 -3
  618. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  619. package/dist/esm/models/operations/listsettlementchargebacks.js +24 -2
  620. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  621. package/dist/esm/models/operations/listsettlementpayments.d.ts +16 -3
  622. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  623. package/dist/esm/models/operations/listsettlementpayments.js +24 -2
  624. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  625. package/dist/esm/models/operations/listsettlementrefunds.d.ts +16 -3
  626. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  627. package/dist/esm/models/operations/listsettlementrefunds.js +24 -2
  628. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  629. package/dist/esm/models/operations/listsettlements.d.ts +16 -3
  630. package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
  631. package/dist/esm/models/operations/listsettlements.js +24 -2
  632. package/dist/esm/models/operations/listsettlements.js.map +1 -1
  633. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +16 -3
  634. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  635. package/dist/esm/models/operations/listsubscriptionpayments.js +24 -2
  636. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  637. package/dist/esm/models/operations/listsubscriptions.d.ts +16 -3
  638. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  639. package/dist/esm/models/operations/listsubscriptions.js +24 -2
  640. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  641. package/dist/esm/models/operations/listterminals.d.ts +16 -3
  642. package/dist/esm/models/operations/listterminals.d.ts.map +1 -1
  643. package/dist/esm/models/operations/listterminals.js +24 -2
  644. package/dist/esm/models/operations/listterminals.js.map +1 -1
  645. package/dist/esm/models/operations/listwebhooks.d.ts +16 -3
  646. package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
  647. package/dist/esm/models/operations/listwebhooks.js +24 -2
  648. package/dist/esm/models/operations/listwebhooks.js.map +1 -1
  649. package/dist/esm/sdk/balances.d.ts +7 -2
  650. package/dist/esm/sdk/balances.d.ts.map +1 -1
  651. package/dist/esm/sdk/balances.js +3 -2
  652. package/dist/esm/sdk/balances.js.map +1 -1
  653. package/dist/esm/sdk/balancetransfers.d.ts +4 -1
  654. package/dist/esm/sdk/balancetransfers.d.ts.map +1 -1
  655. package/dist/esm/sdk/balancetransfers.js +2 -1
  656. package/dist/esm/sdk/balancetransfers.js.map +1 -1
  657. package/dist/esm/sdk/captures.d.ts +4 -1
  658. package/dist/esm/sdk/captures.d.ts.map +1 -1
  659. package/dist/esm/sdk/captures.js +2 -1
  660. package/dist/esm/sdk/captures.js.map +1 -1
  661. package/dist/esm/sdk/chargebacks.d.ts +7 -2
  662. package/dist/esm/sdk/chargebacks.d.ts.map +1 -1
  663. package/dist/esm/sdk/chargebacks.js +3 -2
  664. package/dist/esm/sdk/chargebacks.js.map +1 -1
  665. package/dist/esm/sdk/clients.d.ts +4 -1
  666. package/dist/esm/sdk/clients.d.ts.map +1 -1
  667. package/dist/esm/sdk/clients.js +2 -1
  668. package/dist/esm/sdk/clients.js.map +1 -1
  669. package/dist/esm/sdk/customers.d.ts +7 -2
  670. package/dist/esm/sdk/customers.d.ts.map +1 -1
  671. package/dist/esm/sdk/customers.js +3 -2
  672. package/dist/esm/sdk/customers.js.map +1 -1
  673. package/dist/esm/sdk/invoices.d.ts +4 -1
  674. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  675. package/dist/esm/sdk/invoices.js +2 -1
  676. package/dist/esm/sdk/invoices.js.map +1 -1
  677. package/dist/esm/sdk/mandates.d.ts +4 -1
  678. package/dist/esm/sdk/mandates.d.ts.map +1 -1
  679. package/dist/esm/sdk/mandates.js +2 -1
  680. package/dist/esm/sdk/mandates.js.map +1 -1
  681. package/dist/esm/sdk/paymentlinks.d.ts +7 -2
  682. package/dist/esm/sdk/paymentlinks.d.ts.map +1 -1
  683. package/dist/esm/sdk/paymentlinks.js +3 -2
  684. package/dist/esm/sdk/paymentlinks.js.map +1 -1
  685. package/dist/esm/sdk/payments.d.ts +4 -1
  686. package/dist/esm/sdk/payments.d.ts.map +1 -1
  687. package/dist/esm/sdk/payments.js +2 -1
  688. package/dist/esm/sdk/payments.js.map +1 -1
  689. package/dist/esm/sdk/profiles.d.ts +4 -1
  690. package/dist/esm/sdk/profiles.d.ts.map +1 -1
  691. package/dist/esm/sdk/profiles.js +2 -1
  692. package/dist/esm/sdk/profiles.js.map +1 -1
  693. package/dist/esm/sdk/refunds.d.ts +7 -2
  694. package/dist/esm/sdk/refunds.d.ts.map +1 -1
  695. package/dist/esm/sdk/refunds.js +3 -2
  696. package/dist/esm/sdk/refunds.js.map +1 -1
  697. package/dist/esm/sdk/salesinvoices.d.ts +4 -1
  698. package/dist/esm/sdk/salesinvoices.d.ts.map +1 -1
  699. package/dist/esm/sdk/salesinvoices.js +2 -1
  700. package/dist/esm/sdk/salesinvoices.js.map +1 -1
  701. package/dist/esm/sdk/settlements.d.ts +16 -5
  702. package/dist/esm/sdk/settlements.d.ts.map +1 -1
  703. package/dist/esm/sdk/settlements.js +6 -5
  704. package/dist/esm/sdk/settlements.js.map +1 -1
  705. package/dist/esm/sdk/subscriptions.d.ts +10 -3
  706. package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
  707. package/dist/esm/sdk/subscriptions.js +4 -3
  708. package/dist/esm/sdk/subscriptions.js.map +1 -1
  709. package/dist/esm/sdk/terminals.d.ts +4 -1
  710. package/dist/esm/sdk/terminals.d.ts.map +1 -1
  711. package/dist/esm/sdk/terminals.js +2 -1
  712. package/dist/esm/sdk/terminals.js.map +1 -1
  713. package/dist/esm/sdk/webhooks.d.ts +4 -1
  714. package/dist/esm/sdk/webhooks.d.ts.map +1 -1
  715. package/dist/esm/sdk/webhooks.js +2 -1
  716. package/dist/esm/sdk/webhooks.js.map +1 -1
  717. package/examples/balancesList.example.ts +3 -1
  718. package/jsr.json +1 -1
  719. package/package.json +1 -1
  720. package/src/funcs/balanceTransfersList.ts +112 -38
  721. package/src/funcs/balancesList.ts +112 -38
  722. package/src/funcs/balancesListTransactions.ts +111 -38
  723. package/src/funcs/capturesList.ts +112 -39
  724. package/src/funcs/chargebacksAll.ts +114 -40
  725. package/src/funcs/chargebacksList.ts +112 -39
  726. package/src/funcs/clientsList.ts +111 -37
  727. package/src/funcs/customersList.ts +112 -38
  728. package/src/funcs/customersListPayments.ts +113 -40
  729. package/src/funcs/invoicesList.ts +113 -39
  730. package/src/funcs/mandatesList.ts +112 -39
  731. package/src/funcs/paymentLinksList.ts +111 -37
  732. package/src/funcs/paymentLinksListPayments.ts +112 -41
  733. package/src/funcs/paymentsList.ts +113 -39
  734. package/src/funcs/profilesList.ts +110 -36
  735. package/src/funcs/refundsAll.ts +114 -40
  736. package/src/funcs/refundsList.ts +112 -39
  737. package/src/funcs/salesInvoicesList.ts +111 -37
  738. package/src/funcs/settlementsList.ts +114 -40
  739. package/src/funcs/settlementsListCaptures.ts +112 -39
  740. package/src/funcs/settlementsListChargebacks.ts +112 -41
  741. package/src/funcs/settlementsListPayments.ts +113 -40
  742. package/src/funcs/settlementsListRefunds.ts +112 -39
  743. package/src/funcs/subscriptionsAll.ts +112 -38
  744. package/src/funcs/subscriptionsList.ts +112 -39
  745. package/src/funcs/subscriptionsListPayments.ts +115 -42
  746. package/src/funcs/terminalsList.ts +112 -38
  747. package/src/funcs/webhooksList.ts +113 -39
  748. package/src/lib/config.ts +3 -3
  749. package/src/mcp-server/mcp-server.ts +1 -1
  750. package/src/mcp-server/server.ts +1 -1
  751. package/src/mcp-server/tools/balanceTransfersList.ts +1 -1
  752. package/src/mcp-server/tools/balancesList.ts +1 -1
  753. package/src/mcp-server/tools/balancesListTransactions.ts +1 -1
  754. package/src/mcp-server/tools/capturesList.ts +1 -1
  755. package/src/mcp-server/tools/chargebacksAll.ts +1 -1
  756. package/src/mcp-server/tools/chargebacksList.ts +1 -1
  757. package/src/mcp-server/tools/clientsList.ts +1 -1
  758. package/src/mcp-server/tools/customersList.ts +1 -1
  759. package/src/mcp-server/tools/customersListPayments.ts +1 -1
  760. package/src/mcp-server/tools/invoicesList.ts +1 -1
  761. package/src/mcp-server/tools/mandatesList.ts +1 -1
  762. package/src/mcp-server/tools/paymentLinksList.ts +1 -1
  763. package/src/mcp-server/tools/paymentLinksListPayments.ts +1 -1
  764. package/src/mcp-server/tools/paymentsList.ts +1 -1
  765. package/src/mcp-server/tools/profilesList.ts +1 -1
  766. package/src/mcp-server/tools/refundsAll.ts +1 -1
  767. package/src/mcp-server/tools/refundsList.ts +1 -1
  768. package/src/mcp-server/tools/salesInvoicesList.ts +1 -1
  769. package/src/mcp-server/tools/settlementsList.ts +1 -1
  770. package/src/mcp-server/tools/settlementsListCaptures.ts +1 -1
  771. package/src/mcp-server/tools/settlementsListChargebacks.ts +1 -1
  772. package/src/mcp-server/tools/settlementsListPayments.ts +1 -1
  773. package/src/mcp-server/tools/settlementsListRefunds.ts +1 -1
  774. package/src/mcp-server/tools/subscriptionsAll.ts +1 -1
  775. package/src/mcp-server/tools/subscriptionsList.ts +1 -1
  776. package/src/mcp-server/tools/subscriptionsListPayments.ts +1 -1
  777. package/src/mcp-server/tools/terminalsList.ts +1 -1
  778. package/src/mcp-server/tools/webhooksList.ts +1 -1
  779. package/src/models/entitybalancetransaction.ts +85 -0
  780. package/src/models/operations/getpaymentlinkpayments.ts +61 -7
  781. package/src/models/operations/listallchargebacks.ts +60 -7
  782. package/src/models/operations/listallrefunds.ts +58 -7
  783. package/src/models/operations/listallsubscriptions.ts +60 -7
  784. package/src/models/operations/listbalances.ts +58 -7
  785. package/src/models/operations/listbalancetransactions.ts +61 -7
  786. package/src/models/operations/listcaptures.ts +58 -7
  787. package/src/models/operations/listchargebacks.ts +60 -7
  788. package/src/models/operations/listclients.ts +58 -7
  789. package/src/models/operations/listconnectbalancetransfers.ts +67 -7
  790. package/src/models/operations/listcustomerpayments.ts +60 -7
  791. package/src/models/operations/listcustomers.ts +58 -7
  792. package/src/models/operations/listinvoices.ts +58 -7
  793. package/src/models/operations/listmandates.ts +58 -7
  794. package/src/models/operations/listpaymentlinks.ts +60 -7
  795. package/src/models/operations/listpayments.ts +58 -7
  796. package/src/models/operations/listprofiles.ts +58 -7
  797. package/src/models/operations/listrefunds.ts +58 -7
  798. package/src/models/operations/listsalesinvoices.ts +60 -7
  799. package/src/models/operations/listsettlementcaptures.ts +61 -7
  800. package/src/models/operations/listsettlementchargebacks.ts +61 -7
  801. package/src/models/operations/listsettlementpayments.ts +61 -7
  802. package/src/models/operations/listsettlementrefunds.ts +60 -7
  803. package/src/models/operations/listsettlements.ts +60 -7
  804. package/src/models/operations/listsubscriptionpayments.ts +61 -7
  805. package/src/models/operations/listsubscriptions.ts +60 -7
  806. package/src/models/operations/listterminals.ts +58 -7
  807. package/src/models/operations/listwebhooks.ts +58 -7
  808. package/src/sdk/balances.ts +7 -4
  809. package/src/sdk/balancetransfers.ts +8 -2
  810. package/src/sdk/captures.ts +3 -2
  811. package/src/sdk/chargebacks.ts +9 -4
  812. package/src/sdk/clients.ts +3 -2
  813. package/src/sdk/customers.ts +7 -4
  814. package/src/sdk/invoices.ts +3 -2
  815. package/src/sdk/mandates.ts +3 -2
  816. package/src/sdk/paymentlinks.ts +9 -4
  817. package/src/sdk/payments.ts +3 -2
  818. package/src/sdk/profiles.ts +3 -2
  819. package/src/sdk/refunds.ts +5 -4
  820. package/src/sdk/salesinvoices.ts +5 -2
  821. package/src/sdk/settlements.ts +21 -10
  822. package/src/sdk/subscriptions.ts +13 -6
  823. package/src/sdk/terminals.ts +3 -2
  824. package/src/sdk/webhooks.ts +3 -2
  825. package/.devcontainer/devcontainer.json +0 -45
  826. package/_speakeasy/.github/action-inputs-config.json +0 -53
  827. package/_speakeasy/.github/action-security-config.json +0 -88
  828. package/examples/package-lock.json +0 -620
  829. package/examples/package.json +0 -18
  830. package/tsconfig.json +0 -40
package/bin/mcp-server.js CHANGED
@@ -52869,9 +52869,9 @@ var init_config = __esm(() => {
52869
52869
  SDK_METADATA = {
52870
52870
  language: "typescript",
52871
52871
  openapiDocVersion: "1.0.0",
52872
- sdkVersion: "1.1.5",
52873
- genVersion: "2.832.2",
52874
- userAgent: "speakeasy-sdk/typescript 1.1.5 2.832.2 1.0.0 mollie-api-typescript"
52872
+ sdkVersion: "1.2.0",
52873
+ genVersion: "2.844.3",
52874
+ userAgent: "speakeasy-sdk/typescript 1.2.0 2.844.3 1.0.0 mollie-api-typescript"
52875
52875
  };
52876
52876
  });
52877
52877
 
@@ -55983,13 +55983,25 @@ var init_entitybalancereport = __esm(() => {
55983
55983
  });
55984
55984
 
55985
55985
  // src/models/entitybalancetransaction.ts
55986
- var Payment$inboundSchema, Payment$outboundSchema, Capture$inboundSchema, Capture$outboundSchema, CaptureCommision$inboundSchema, CaptureCommision$outboundSchema, CaptureRollingReserveRelease$inboundSchema, CaptureRollingReserveRelease$outboundSchema, UnauthorizedDirectDebit$inboundSchema, UnauthorizedDirectDebit$outboundSchema, FailedPayment$inboundSchema, FailedPayment$outboundSchema, Refund$inboundSchema, Refund$outboundSchema, RefundCompensation$inboundSchema, RefundCompensation$outboundSchema, ReturnedRefund$inboundSchema, ReturnedRefund$outboundSchema, ReturnedRefundCompensation$inboundSchema, ReturnedRefundCompensation$outboundSchema, Chargeback$inboundSchema, Chargeback$outboundSchema, ChargebackReversal$inboundSchema, ChargebackReversal$outboundSchema, ChargebackCompensation$inboundSchema, ChargebackCompensation$outboundSchema, ReversedChargebackCompensation$inboundSchema, ReversedChargebackCompensation$outboundSchema, OutgoingTransfer$inboundSchema, OutgoingTransfer$outboundSchema, CanceledOutgoingTransfer$inboundSchema, CanceledOutgoingTransfer$outboundSchema, ReturnedTransfer$inboundSchema, ReturnedTransfer$outboundSchema, InvoiceCompensation$inboundSchema, InvoiceCompensation$outboundSchema, EntityBalanceTransactionApplicationFee$inboundSchema, EntityBalanceTransactionApplicationFee$outboundSchema, SplitPayment$inboundSchema, SplitPayment$outboundSchema, PlatformPaymentRefund$inboundSchema, PlatformPaymentRefund$outboundSchema, ReturnedPlatformPaymentRefund$inboundSchema, ReturnedPlatformPaymentRefund$outboundSchema, PlatformPaymentChargeback$inboundSchema, PlatformPaymentChargeback$outboundSchema, ReversedPlatformPaymentChargeback$inboundSchema, ReversedPlatformPaymentChargeback$outboundSchema, PaymentCommission$inboundSchema, PaymentCommission$outboundSchema, ReimbursementFee$inboundSchema, ReimbursementFee$outboundSchema, FailedPaymentFee$inboundSchema, FailedPaymentFee$outboundSchema, PaymentFee$inboundSchema, PaymentFee$outboundSchema, ManagedFee$inboundSchema, ManagedFee$outboundSchema, ReturnedManagedFee$inboundSchema, ReturnedManagedFee$outboundSchema, PostPaymentSplitPayment$inboundSchema, PostPaymentSplitPayment$outboundSchema, Context$inboundSchema, Context$outboundSchema, EntityBalanceTransaction$inboundSchema, EntityBalanceTransaction$outboundSchema;
55986
+ var DeductionDetails$inboundSchema, DeductionDetails$outboundSchema, Payment$inboundSchema, Payment$outboundSchema, Capture$inboundSchema, Capture$outboundSchema, CaptureCommision$inboundSchema, CaptureCommision$outboundSchema, CaptureRollingReserveRelease$inboundSchema, CaptureRollingReserveRelease$outboundSchema, UnauthorizedDirectDebit$inboundSchema, UnauthorizedDirectDebit$outboundSchema, FailedPayment$inboundSchema, FailedPayment$outboundSchema, Refund$inboundSchema, Refund$outboundSchema, RefundCompensation$inboundSchema, RefundCompensation$outboundSchema, ReturnedRefund$inboundSchema, ReturnedRefund$outboundSchema, ReturnedRefundCompensation$inboundSchema, ReturnedRefundCompensation$outboundSchema, Chargeback$inboundSchema, Chargeback$outboundSchema, ChargebackReversal$inboundSchema, ChargebackReversal$outboundSchema, ChargebackCompensation$inboundSchema, ChargebackCompensation$outboundSchema, ReversedChargebackCompensation$inboundSchema, ReversedChargebackCompensation$outboundSchema, OutgoingTransfer$inboundSchema, OutgoingTransfer$outboundSchema, CanceledOutgoingTransfer$inboundSchema, CanceledOutgoingTransfer$outboundSchema, ReturnedTransfer$inboundSchema, ReturnedTransfer$outboundSchema, InvoiceCompensation$inboundSchema, InvoiceCompensation$outboundSchema, EntityBalanceTransactionApplicationFee$inboundSchema, EntityBalanceTransactionApplicationFee$outboundSchema, SplitPayment$inboundSchema, SplitPayment$outboundSchema, PlatformPaymentRefund$inboundSchema, PlatformPaymentRefund$outboundSchema, ReturnedPlatformPaymentRefund$inboundSchema, ReturnedPlatformPaymentRefund$outboundSchema, PlatformPaymentChargeback$inboundSchema, PlatformPaymentChargeback$outboundSchema, ReversedPlatformPaymentChargeback$inboundSchema, ReversedPlatformPaymentChargeback$outboundSchema, PaymentCommission$inboundSchema, PaymentCommission$outboundSchema, ReimbursementFee$inboundSchema, ReimbursementFee$outboundSchema, FailedPaymentFee$inboundSchema, FailedPaymentFee$outboundSchema, PaymentFee$inboundSchema, PaymentFee$outboundSchema, ManagedFee$inboundSchema, ManagedFee$outboundSchema, ReturnedManagedFee$inboundSchema, ReturnedManagedFee$outboundSchema, PostPaymentSplitPayment$inboundSchema, PostPaymentSplitPayment$outboundSchema, Context$inboundSchema, Context$outboundSchema, EntityBalanceTransaction$inboundSchema, EntityBalanceTransaction$outboundSchema;
55987
55987
  var init_entitybalancetransaction = __esm(() => {
55988
55988
  init_esm();
55989
55989
  init_primitives();
55990
55990
  init_amount();
55991
55991
  init_amountnullable();
55992
55992
  init_balancetransactiontype();
55993
+ DeductionDetails$inboundSchema = objectType({
55994
+ fees: nullableType(AmountNullable$inboundSchema).optional(),
55995
+ commissions: nullableType(AmountNullable$inboundSchema).optional(),
55996
+ repayments: nullableType(AmountNullable$inboundSchema).optional(),
55997
+ reservations: nullableType(AmountNullable$inboundSchema).optional()
55998
+ });
55999
+ DeductionDetails$outboundSchema = objectType({
56000
+ fees: nullableType(AmountNullable$outboundSchema).optional(),
56001
+ commissions: nullableType(AmountNullable$outboundSchema).optional(),
56002
+ repayments: nullableType(AmountNullable$outboundSchema).optional(),
56003
+ reservations: nullableType(AmountNullable$outboundSchema).optional()
56004
+ });
55993
56005
  Payment$inboundSchema = objectType({
55994
56006
  paymentId: stringType().optional(),
55995
56007
  paymentDescription: stringType().optional()
@@ -56433,6 +56445,7 @@ var init_entitybalancetransaction = __esm(() => {
56433
56445
  resultAmount: Amount$inboundSchema,
56434
56446
  initialAmount: Amount$inboundSchema,
56435
56447
  deductions: nullableType(AmountNullable$inboundSchema).optional(),
56448
+ deductionDetails: nullableType(lazyType(() => DeductionDetails$inboundSchema)).optional(),
56436
56449
  context: nullableType(lazyType(() => Context$inboundSchema)).optional(),
56437
56450
  createdAt: stringType()
56438
56451
  });
@@ -56443,6 +56456,7 @@ var init_entitybalancetransaction = __esm(() => {
56443
56456
  resultAmount: Amount$outboundSchema,
56444
56457
  initialAmount: Amount$outboundSchema,
56445
56458
  deductions: nullableType(AmountNullable$outboundSchema).optional(),
56459
+ deductionDetails: nullableType(lazyType(() => DeductionDetails$outboundSchema)).optional(),
56446
56460
  context: nullableType(lazyType(() => Context$outboundSchema)).optional(),
56447
56461
  createdAt: stringType()
56448
56462
  });
@@ -64314,7 +64328,7 @@ var init_getpaymentlink = __esm(() => {
64314
64328
  });
64315
64329
 
64316
64330
  // src/models/operations/getpaymentlinkpayments.ts
64317
- var GetPaymentLinkPaymentsGlobals$inboundSchema, GetPaymentLinkPaymentsGlobals$outboundSchema, GetPaymentLinkPaymentsRequest$inboundSchema, GetPaymentLinkPaymentsRequest$outboundSchema, GetPaymentLinkPaymentsEmbedded$inboundSchema, GetPaymentLinkPaymentsEmbedded$outboundSchema, GetPaymentLinkPaymentsResponse$inboundSchema, GetPaymentLinkPaymentsResponse$outboundSchema;
64331
+ var GetPaymentLinkPaymentsGlobals$inboundSchema, GetPaymentLinkPaymentsGlobals$outboundSchema, GetPaymentLinkPaymentsRequest$inboundSchema, GetPaymentLinkPaymentsRequest$outboundSchema, GetPaymentLinkPaymentsEmbedded$inboundSchema, GetPaymentLinkPaymentsEmbedded$outboundSchema, GetPaymentLinkPaymentsResponseBody$inboundSchema, GetPaymentLinkPaymentsResponseBody$outboundSchema, GetPaymentLinkPaymentsResponse$inboundSchema, GetPaymentLinkPaymentsResponse$outboundSchema;
64318
64332
  var init_getpaymentlinkpayments = __esm(() => {
64319
64333
  init_esm();
64320
64334
  init_primitives();
@@ -64355,7 +64369,7 @@ var init_getpaymentlinkpayments = __esm(() => {
64355
64369
  GetPaymentLinkPaymentsEmbedded$outboundSchema = objectType({
64356
64370
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
64357
64371
  });
64358
- GetPaymentLinkPaymentsResponse$inboundSchema = objectType({
64372
+ GetPaymentLinkPaymentsResponseBody$inboundSchema = objectType({
64359
64373
  count: numberType().int(),
64360
64374
  _embedded: lazyType(() => GetPaymentLinkPaymentsEmbedded$inboundSchema),
64361
64375
  _links: ListLinks$inboundSchema
@@ -64365,7 +64379,7 @@ var init_getpaymentlinkpayments = __esm(() => {
64365
64379
  _links: "links"
64366
64380
  });
64367
64381
  });
64368
- GetPaymentLinkPaymentsResponse$outboundSchema = objectType({
64382
+ GetPaymentLinkPaymentsResponseBody$outboundSchema = objectType({
64369
64383
  count: numberType().int(),
64370
64384
  embedded: lazyType(() => GetPaymentLinkPaymentsEmbedded$outboundSchema),
64371
64385
  links: ListLinks$outboundSchema
@@ -64375,6 +64389,20 @@ var init_getpaymentlinkpayments = __esm(() => {
64375
64389
  links: "_links"
64376
64390
  });
64377
64391
  });
64392
+ GetPaymentLinkPaymentsResponse$inboundSchema = objectType({
64393
+ Result: lazyType(() => GetPaymentLinkPaymentsResponseBody$inboundSchema)
64394
+ }).transform((v2) => {
64395
+ return remap(v2, {
64396
+ Result: "result"
64397
+ });
64398
+ });
64399
+ GetPaymentLinkPaymentsResponse$outboundSchema = objectType({
64400
+ result: lazyType(() => GetPaymentLinkPaymentsResponseBody$outboundSchema)
64401
+ }).transform((v2) => {
64402
+ return remap(v2, {
64403
+ result: "Result"
64404
+ });
64405
+ });
64378
64406
  });
64379
64407
 
64380
64408
  // src/models/operations/getpermission.ts
@@ -64676,7 +64704,7 @@ var init_getwebhookevent = __esm(() => {
64676
64704
  });
64677
64705
 
64678
64706
  // src/models/operations/listallchargebacks.ts
64679
- var ListAllChargebacksGlobals$inboundSchema, ListAllChargebacksGlobals$outboundSchema, ListAllChargebacksRequest$inboundSchema, ListAllChargebacksRequest$outboundSchema, ListAllChargebacksEmbedded$inboundSchema, ListAllChargebacksEmbedded$outboundSchema, ListAllChargebacksResponse$inboundSchema, ListAllChargebacksResponse$outboundSchema;
64707
+ var ListAllChargebacksGlobals$inboundSchema, ListAllChargebacksGlobals$outboundSchema, ListAllChargebacksRequest$inboundSchema, ListAllChargebacksRequest$outboundSchema, ListAllChargebacksEmbedded$inboundSchema, ListAllChargebacksEmbedded$outboundSchema, ListAllChargebacksResponseBody$inboundSchema, ListAllChargebacksResponseBody$outboundSchema, ListAllChargebacksResponse$inboundSchema, ListAllChargebacksResponse$outboundSchema;
64680
64708
  var init_listallchargebacks = __esm(() => {
64681
64709
  init_esm();
64682
64710
  init_primitives();
@@ -64721,7 +64749,7 @@ var init_listallchargebacks = __esm(() => {
64721
64749
  ListAllChargebacksEmbedded$outboundSchema = objectType({
64722
64750
  chargebacks: arrayType(ListEntityChargeback$outboundSchema)
64723
64751
  });
64724
- ListAllChargebacksResponse$inboundSchema = objectType({
64752
+ ListAllChargebacksResponseBody$inboundSchema = objectType({
64725
64753
  count: numberType().int(),
64726
64754
  _embedded: lazyType(() => ListAllChargebacksEmbedded$inboundSchema),
64727
64755
  _links: ListLinks$inboundSchema
@@ -64731,7 +64759,7 @@ var init_listallchargebacks = __esm(() => {
64731
64759
  _links: "links"
64732
64760
  });
64733
64761
  });
64734
- ListAllChargebacksResponse$outboundSchema = objectType({
64762
+ ListAllChargebacksResponseBody$outboundSchema = objectType({
64735
64763
  count: numberType().int(),
64736
64764
  embedded: lazyType(() => ListAllChargebacksEmbedded$outboundSchema),
64737
64765
  links: ListLinks$outboundSchema
@@ -64741,6 +64769,20 @@ var init_listallchargebacks = __esm(() => {
64741
64769
  links: "_links"
64742
64770
  });
64743
64771
  });
64772
+ ListAllChargebacksResponse$inboundSchema = objectType({
64773
+ Result: lazyType(() => ListAllChargebacksResponseBody$inboundSchema)
64774
+ }).transform((v2) => {
64775
+ return remap(v2, {
64776
+ Result: "result"
64777
+ });
64778
+ });
64779
+ ListAllChargebacksResponse$outboundSchema = objectType({
64780
+ result: lazyType(() => ListAllChargebacksResponseBody$outboundSchema)
64781
+ }).transform((v2) => {
64782
+ return remap(v2, {
64783
+ result: "Result"
64784
+ });
64785
+ });
64744
64786
  });
64745
64787
 
64746
64788
  // src/models/operations/listallmethods.ts
@@ -64820,7 +64862,7 @@ var init_listallmethods = __esm(() => {
64820
64862
  });
64821
64863
 
64822
64864
  // src/models/operations/listallrefunds.ts
64823
- var ListAllRefundsGlobals$inboundSchema, ListAllRefundsGlobals$outboundSchema, ListAllRefundsRequest$inboundSchema, ListAllRefundsRequest$outboundSchema, ListAllRefundsEmbedded$inboundSchema, ListAllRefundsEmbedded$outboundSchema, ListAllRefundsResponse$inboundSchema, ListAllRefundsResponse$outboundSchema;
64865
+ var ListAllRefundsGlobals$inboundSchema, ListAllRefundsGlobals$outboundSchema, ListAllRefundsRequest$inboundSchema, ListAllRefundsRequest$outboundSchema, ListAllRefundsEmbedded$inboundSchema, ListAllRefundsEmbedded$outboundSchema, ListAllRefundsResponseBody$inboundSchema, ListAllRefundsResponseBody$outboundSchema, ListAllRefundsResponse$inboundSchema, ListAllRefundsResponse$outboundSchema;
64824
64866
  var init_listallrefunds = __esm(() => {
64825
64867
  init_esm();
64826
64868
  init_primitives();
@@ -64865,7 +64907,7 @@ var init_listallrefunds = __esm(() => {
64865
64907
  ListAllRefundsEmbedded$outboundSchema = objectType({
64866
64908
  refunds: arrayType(ListEntityRefund$outboundSchema)
64867
64909
  });
64868
- ListAllRefundsResponse$inboundSchema = objectType({
64910
+ ListAllRefundsResponseBody$inboundSchema = objectType({
64869
64911
  count: numberType().int(),
64870
64912
  _embedded: lazyType(() => ListAllRefundsEmbedded$inboundSchema),
64871
64913
  _links: ListLinks$inboundSchema
@@ -64875,7 +64917,7 @@ var init_listallrefunds = __esm(() => {
64875
64917
  _links: "links"
64876
64918
  });
64877
64919
  });
64878
- ListAllRefundsResponse$outboundSchema = objectType({
64920
+ ListAllRefundsResponseBody$outboundSchema = objectType({
64879
64921
  count: numberType().int(),
64880
64922
  embedded: lazyType(() => ListAllRefundsEmbedded$outboundSchema),
64881
64923
  links: ListLinks$outboundSchema
@@ -64885,10 +64927,24 @@ var init_listallrefunds = __esm(() => {
64885
64927
  links: "_links"
64886
64928
  });
64887
64929
  });
64930
+ ListAllRefundsResponse$inboundSchema = objectType({
64931
+ Result: lazyType(() => ListAllRefundsResponseBody$inboundSchema)
64932
+ }).transform((v2) => {
64933
+ return remap(v2, {
64934
+ Result: "result"
64935
+ });
64936
+ });
64937
+ ListAllRefundsResponse$outboundSchema = objectType({
64938
+ result: lazyType(() => ListAllRefundsResponseBody$outboundSchema)
64939
+ }).transform((v2) => {
64940
+ return remap(v2, {
64941
+ result: "Result"
64942
+ });
64943
+ });
64888
64944
  });
64889
64945
 
64890
64946
  // src/models/operations/listallsubscriptions.ts
64891
- var ListAllSubscriptionsGlobals$inboundSchema, ListAllSubscriptionsGlobals$outboundSchema, ListAllSubscriptionsRequest$inboundSchema, ListAllSubscriptionsRequest$outboundSchema, ListAllSubscriptionsEmbedded$inboundSchema, ListAllSubscriptionsEmbedded$outboundSchema, ListAllSubscriptionsResponse$inboundSchema, ListAllSubscriptionsResponse$outboundSchema;
64947
+ var ListAllSubscriptionsGlobals$inboundSchema, ListAllSubscriptionsGlobals$outboundSchema, ListAllSubscriptionsRequest$inboundSchema, ListAllSubscriptionsRequest$outboundSchema, ListAllSubscriptionsEmbedded$inboundSchema, ListAllSubscriptionsEmbedded$outboundSchema, ListAllSubscriptionsResponseBody$inboundSchema, ListAllSubscriptionsResponseBody$outboundSchema, ListAllSubscriptionsResponse$inboundSchema, ListAllSubscriptionsResponse$outboundSchema;
64892
64948
  var init_listallsubscriptions = __esm(() => {
64893
64949
  init_esm();
64894
64950
  init_primitives();
@@ -64929,7 +64985,7 @@ var init_listallsubscriptions = __esm(() => {
64929
64985
  ListAllSubscriptionsEmbedded$outboundSchema = objectType({
64930
64986
  subscriptions: arrayType(ListSubscriptionResponse$outboundSchema).optional()
64931
64987
  });
64932
- ListAllSubscriptionsResponse$inboundSchema = objectType({
64988
+ ListAllSubscriptionsResponseBody$inboundSchema = objectType({
64933
64989
  count: numberType().int(),
64934
64990
  _embedded: lazyType(() => ListAllSubscriptionsEmbedded$inboundSchema),
64935
64991
  _links: ListLinks$inboundSchema
@@ -64939,7 +64995,7 @@ var init_listallsubscriptions = __esm(() => {
64939
64995
  _links: "links"
64940
64996
  });
64941
64997
  });
64942
- ListAllSubscriptionsResponse$outboundSchema = objectType({
64998
+ ListAllSubscriptionsResponseBody$outboundSchema = objectType({
64943
64999
  count: numberType().int(),
64944
65000
  embedded: lazyType(() => ListAllSubscriptionsEmbedded$outboundSchema),
64945
65001
  links: ListLinks$outboundSchema
@@ -64949,10 +65005,24 @@ var init_listallsubscriptions = __esm(() => {
64949
65005
  links: "_links"
64950
65006
  });
64951
65007
  });
65008
+ ListAllSubscriptionsResponse$inboundSchema = objectType({
65009
+ Result: lazyType(() => ListAllSubscriptionsResponseBody$inboundSchema)
65010
+ }).transform((v2) => {
65011
+ return remap(v2, {
65012
+ Result: "result"
65013
+ });
65014
+ });
65015
+ ListAllSubscriptionsResponse$outboundSchema = objectType({
65016
+ result: lazyType(() => ListAllSubscriptionsResponseBody$outboundSchema)
65017
+ }).transform((v2) => {
65018
+ return remap(v2, {
65019
+ result: "Result"
65020
+ });
65021
+ });
64952
65022
  });
64953
65023
 
64954
65024
  // src/models/operations/listbalances.ts
64955
- var ListBalancesGlobals$inboundSchema, ListBalancesGlobals$outboundSchema, ListBalancesRequest$inboundSchema, ListBalancesRequest$outboundSchema, ListBalancesEmbedded$inboundSchema, ListBalancesEmbedded$outboundSchema, ListBalancesResponse$inboundSchema, ListBalancesResponse$outboundSchema;
65025
+ var ListBalancesGlobals$inboundSchema, ListBalancesGlobals$outboundSchema, ListBalancesRequest$inboundSchema, ListBalancesRequest$outboundSchema, ListBalancesEmbedded$inboundSchema, ListBalancesEmbedded$outboundSchema, ListBalancesResponseBody$inboundSchema, ListBalancesResponseBody$outboundSchema, ListBalancesResponse$inboundSchema, ListBalancesResponse$outboundSchema;
64956
65026
  var init_listbalances = __esm(() => {
64957
65027
  init_esm();
64958
65028
  init_primitives();
@@ -64991,7 +65061,7 @@ var init_listbalances = __esm(() => {
64991
65061
  ListBalancesEmbedded$outboundSchema = objectType({
64992
65062
  balances: arrayType(ListEntityBalance$outboundSchema)
64993
65063
  });
64994
- ListBalancesResponse$inboundSchema = objectType({
65064
+ ListBalancesResponseBody$inboundSchema = objectType({
64995
65065
  count: numberType().int(),
64996
65066
  _embedded: lazyType(() => ListBalancesEmbedded$inboundSchema),
64997
65067
  _links: ListLinks$inboundSchema
@@ -65001,7 +65071,7 @@ var init_listbalances = __esm(() => {
65001
65071
  _links: "links"
65002
65072
  });
65003
65073
  });
65004
- ListBalancesResponse$outboundSchema = objectType({
65074
+ ListBalancesResponseBody$outboundSchema = objectType({
65005
65075
  count: numberType().int(),
65006
65076
  embedded: lazyType(() => ListBalancesEmbedded$outboundSchema),
65007
65077
  links: ListLinks$outboundSchema
@@ -65011,10 +65081,24 @@ var init_listbalances = __esm(() => {
65011
65081
  links: "_links"
65012
65082
  });
65013
65083
  });
65084
+ ListBalancesResponse$inboundSchema = objectType({
65085
+ Result: lazyType(() => ListBalancesResponseBody$inboundSchema)
65086
+ }).transform((v2) => {
65087
+ return remap(v2, {
65088
+ Result: "result"
65089
+ });
65090
+ });
65091
+ ListBalancesResponse$outboundSchema = objectType({
65092
+ result: lazyType(() => ListBalancesResponseBody$outboundSchema)
65093
+ }).transform((v2) => {
65094
+ return remap(v2, {
65095
+ result: "Result"
65096
+ });
65097
+ });
65014
65098
  });
65015
65099
 
65016
65100
  // src/models/operations/listbalancetransactions.ts
65017
- var ListBalanceTransactionsGlobals$inboundSchema, ListBalanceTransactionsGlobals$outboundSchema, ListBalanceTransactionsRequest$inboundSchema, ListBalanceTransactionsRequest$outboundSchema, ListBalanceTransactionsEmbedded$inboundSchema, ListBalanceTransactionsEmbedded$outboundSchema, ListBalanceTransactionsResponse$inboundSchema, ListBalanceTransactionsResponse$outboundSchema;
65101
+ var ListBalanceTransactionsGlobals$inboundSchema, ListBalanceTransactionsGlobals$outboundSchema, ListBalanceTransactionsRequest$inboundSchema, ListBalanceTransactionsRequest$outboundSchema, ListBalanceTransactionsEmbedded$inboundSchema, ListBalanceTransactionsEmbedded$outboundSchema, ListBalanceTransactionsResponseBody$inboundSchema, ListBalanceTransactionsResponseBody$outboundSchema, ListBalanceTransactionsResponse$inboundSchema, ListBalanceTransactionsResponse$outboundSchema;
65018
65102
  var init_listbalancetransactions = __esm(() => {
65019
65103
  init_esm();
65020
65104
  init_primitives();
@@ -65061,7 +65145,7 @@ var init_listbalancetransactions = __esm(() => {
65061
65145
  balanceTransactions: "balance_transactions"
65062
65146
  });
65063
65147
  });
65064
- ListBalanceTransactionsResponse$inboundSchema = objectType({
65148
+ ListBalanceTransactionsResponseBody$inboundSchema = objectType({
65065
65149
  count: numberType().int(),
65066
65150
  _embedded: lazyType(() => ListBalanceTransactionsEmbedded$inboundSchema),
65067
65151
  _links: ListLinks$inboundSchema
@@ -65071,7 +65155,7 @@ var init_listbalancetransactions = __esm(() => {
65071
65155
  _links: "links"
65072
65156
  });
65073
65157
  });
65074
- ListBalanceTransactionsResponse$outboundSchema = objectType({
65158
+ ListBalanceTransactionsResponseBody$outboundSchema = objectType({
65075
65159
  count: numberType().int(),
65076
65160
  embedded: lazyType(() => ListBalanceTransactionsEmbedded$outboundSchema),
65077
65161
  links: ListLinks$outboundSchema
@@ -65081,6 +65165,20 @@ var init_listbalancetransactions = __esm(() => {
65081
65165
  links: "_links"
65082
65166
  });
65083
65167
  });
65168
+ ListBalanceTransactionsResponse$inboundSchema = objectType({
65169
+ Result: lazyType(() => ListBalanceTransactionsResponseBody$inboundSchema)
65170
+ }).transform((v2) => {
65171
+ return remap(v2, {
65172
+ Result: "result"
65173
+ });
65174
+ });
65175
+ ListBalanceTransactionsResponse$outboundSchema = objectType({
65176
+ result: lazyType(() => ListBalanceTransactionsResponseBody$outboundSchema)
65177
+ }).transform((v2) => {
65178
+ return remap(v2, {
65179
+ result: "Result"
65180
+ });
65181
+ });
65084
65182
  });
65085
65183
 
65086
65184
  // src/models/operations/listcapabilities.ts
@@ -65138,7 +65236,7 @@ var init_listcapabilities = __esm(() => {
65138
65236
  });
65139
65237
 
65140
65238
  // src/models/operations/listcaptures.ts
65141
- var ListCapturesGlobals$inboundSchema, ListCapturesGlobals$outboundSchema, ListCapturesRequest$inboundSchema, ListCapturesRequest$outboundSchema, ListCapturesEmbedded$inboundSchema, ListCapturesEmbedded$outboundSchema, ListCapturesResponse$inboundSchema, ListCapturesResponse$outboundSchema;
65239
+ var ListCapturesGlobals$inboundSchema, ListCapturesGlobals$outboundSchema, ListCapturesRequest$inboundSchema, ListCapturesRequest$outboundSchema, ListCapturesEmbedded$inboundSchema, ListCapturesEmbedded$outboundSchema, ListCapturesResponseBody$inboundSchema, ListCapturesResponseBody$outboundSchema, ListCapturesResponse$inboundSchema, ListCapturesResponse$outboundSchema;
65142
65240
  var init_listcaptures = __esm(() => {
65143
65241
  init_esm();
65144
65242
  init_primitives();
@@ -65179,7 +65277,7 @@ var init_listcaptures = __esm(() => {
65179
65277
  ListCapturesEmbedded$outboundSchema = objectType({
65180
65278
  captures: arrayType(ListCaptureResponse$outboundSchema)
65181
65279
  });
65182
- ListCapturesResponse$inboundSchema = objectType({
65280
+ ListCapturesResponseBody$inboundSchema = objectType({
65183
65281
  count: numberType().int(),
65184
65282
  _embedded: lazyType(() => ListCapturesEmbedded$inboundSchema),
65185
65283
  _links: ListLinks$inboundSchema
@@ -65189,7 +65287,7 @@ var init_listcaptures = __esm(() => {
65189
65287
  _links: "links"
65190
65288
  });
65191
65289
  });
65192
- ListCapturesResponse$outboundSchema = objectType({
65290
+ ListCapturesResponseBody$outboundSchema = objectType({
65193
65291
  count: numberType().int(),
65194
65292
  embedded: lazyType(() => ListCapturesEmbedded$outboundSchema),
65195
65293
  links: ListLinks$outboundSchema
@@ -65199,10 +65297,24 @@ var init_listcaptures = __esm(() => {
65199
65297
  links: "_links"
65200
65298
  });
65201
65299
  });
65300
+ ListCapturesResponse$inboundSchema = objectType({
65301
+ Result: lazyType(() => ListCapturesResponseBody$inboundSchema)
65302
+ }).transform((v2) => {
65303
+ return remap(v2, {
65304
+ Result: "result"
65305
+ });
65306
+ });
65307
+ ListCapturesResponse$outboundSchema = objectType({
65308
+ result: lazyType(() => ListCapturesResponseBody$outboundSchema)
65309
+ }).transform((v2) => {
65310
+ return remap(v2, {
65311
+ result: "Result"
65312
+ });
65313
+ });
65202
65314
  });
65203
65315
 
65204
65316
  // src/models/operations/listchargebacks.ts
65205
- var ListChargebacksGlobals$inboundSchema, ListChargebacksGlobals$outboundSchema, ListChargebacksRequest$inboundSchema, ListChargebacksRequest$outboundSchema, ListChargebacksEmbedded$inboundSchema, ListChargebacksEmbedded$outboundSchema, ListChargebacksResponse$inboundSchema, ListChargebacksResponse$outboundSchema;
65317
+ var ListChargebacksGlobals$inboundSchema, ListChargebacksGlobals$outboundSchema, ListChargebacksRequest$inboundSchema, ListChargebacksRequest$outboundSchema, ListChargebacksEmbedded$inboundSchema, ListChargebacksEmbedded$outboundSchema, ListChargebacksResponseBody$inboundSchema, ListChargebacksResponseBody$outboundSchema, ListChargebacksResponse$inboundSchema, ListChargebacksResponse$outboundSchema;
65206
65318
  var init_listchargebacks = __esm(() => {
65207
65319
  init_esm();
65208
65320
  init_primitives();
@@ -65243,7 +65355,7 @@ var init_listchargebacks = __esm(() => {
65243
65355
  ListChargebacksEmbedded$outboundSchema = objectType({
65244
65356
  chargebacks: arrayType(ListEntityChargeback$outboundSchema)
65245
65357
  });
65246
- ListChargebacksResponse$inboundSchema = objectType({
65358
+ ListChargebacksResponseBody$inboundSchema = objectType({
65247
65359
  count: numberType().int(),
65248
65360
  _embedded: lazyType(() => ListChargebacksEmbedded$inboundSchema),
65249
65361
  _links: ListLinks$inboundSchema
@@ -65253,7 +65365,7 @@ var init_listchargebacks = __esm(() => {
65253
65365
  _links: "links"
65254
65366
  });
65255
65367
  });
65256
- ListChargebacksResponse$outboundSchema = objectType({
65368
+ ListChargebacksResponseBody$outboundSchema = objectType({
65257
65369
  count: numberType().int(),
65258
65370
  embedded: lazyType(() => ListChargebacksEmbedded$outboundSchema),
65259
65371
  links: ListLinks$outboundSchema
@@ -65263,10 +65375,24 @@ var init_listchargebacks = __esm(() => {
65263
65375
  links: "_links"
65264
65376
  });
65265
65377
  });
65378
+ ListChargebacksResponse$inboundSchema = objectType({
65379
+ Result: lazyType(() => ListChargebacksResponseBody$inboundSchema)
65380
+ }).transform((v2) => {
65381
+ return remap(v2, {
65382
+ Result: "result"
65383
+ });
65384
+ });
65385
+ ListChargebacksResponse$outboundSchema = objectType({
65386
+ result: lazyType(() => ListChargebacksResponseBody$outboundSchema)
65387
+ }).transform((v2) => {
65388
+ return remap(v2, {
65389
+ result: "Result"
65390
+ });
65391
+ });
65266
65392
  });
65267
65393
 
65268
65394
  // src/models/operations/listclients.ts
65269
- var ListClientsRequest$inboundSchema, ListClientsRequest$outboundSchema, ListClientsCommission$inboundSchema, ListClientsCommission$outboundSchema, ListClientsLinks$inboundSchema, ListClientsLinks$outboundSchema, ClientEmbedded$inboundSchema, ClientEmbedded$outboundSchema, Client$inboundSchema, Client$outboundSchema, ListClientsEmbedded$inboundSchema, ListClientsEmbedded$outboundSchema, ListClientsResponse$inboundSchema, ListClientsResponse$outboundSchema;
65395
+ var ListClientsRequest$inboundSchema, ListClientsRequest$outboundSchema, ListClientsCommission$inboundSchema, ListClientsCommission$outboundSchema, ListClientsLinks$inboundSchema, ListClientsLinks$outboundSchema, ClientEmbedded$inboundSchema, ClientEmbedded$outboundSchema, Client$inboundSchema, Client$outboundSchema, ListClientsEmbedded$inboundSchema, ListClientsEmbedded$outboundSchema, ListClientsResponseBody$inboundSchema, ListClientsResponseBody$outboundSchema, ListClientsResponse$inboundSchema, ListClientsResponse$outboundSchema;
65270
65396
  var init_listclients = __esm(() => {
65271
65397
  init_esm();
65272
65398
  init_primitives();
@@ -65349,7 +65475,7 @@ var init_listclients = __esm(() => {
65349
65475
  ListClientsEmbedded$outboundSchema = objectType({
65350
65476
  clients: arrayType(lazyType(() => Client$outboundSchema)).optional()
65351
65477
  });
65352
- ListClientsResponse$inboundSchema = objectType({
65478
+ ListClientsResponseBody$inboundSchema = objectType({
65353
65479
  count: numberType().int().optional(),
65354
65480
  _embedded: lazyType(() => ListClientsEmbedded$inboundSchema).optional(),
65355
65481
  _links: ListLinks$inboundSchema.optional()
@@ -65359,7 +65485,7 @@ var init_listclients = __esm(() => {
65359
65485
  _links: "links"
65360
65486
  });
65361
65487
  });
65362
- ListClientsResponse$outboundSchema = objectType({
65488
+ ListClientsResponseBody$outboundSchema = objectType({
65363
65489
  count: numberType().int().optional(),
65364
65490
  embedded: lazyType(() => ListClientsEmbedded$outboundSchema).optional(),
65365
65491
  links: ListLinks$outboundSchema.optional()
@@ -65369,10 +65495,24 @@ var init_listclients = __esm(() => {
65369
65495
  links: "_links"
65370
65496
  });
65371
65497
  });
65498
+ ListClientsResponse$inboundSchema = objectType({
65499
+ Result: lazyType(() => ListClientsResponseBody$inboundSchema)
65500
+ }).transform((v2) => {
65501
+ return remap(v2, {
65502
+ Result: "result"
65503
+ });
65504
+ });
65505
+ ListClientsResponse$outboundSchema = objectType({
65506
+ result: lazyType(() => ListClientsResponseBody$outboundSchema)
65507
+ }).transform((v2) => {
65508
+ return remap(v2, {
65509
+ result: "Result"
65510
+ });
65511
+ });
65372
65512
  });
65373
65513
 
65374
65514
  // src/models/operations/listconnectbalancetransfers.ts
65375
- var ListConnectBalanceTransfersGlobals$inboundSchema, ListConnectBalanceTransfersGlobals$outboundSchema, ListConnectBalanceTransfersRequest$inboundSchema, ListConnectBalanceTransfersRequest$outboundSchema, ListConnectBalanceTransfersEmbedded$inboundSchema, ListConnectBalanceTransfersEmbedded$outboundSchema, ListConnectBalanceTransfersResponse$inboundSchema, ListConnectBalanceTransfersResponse$outboundSchema;
65515
+ var ListConnectBalanceTransfersGlobals$inboundSchema, ListConnectBalanceTransfersGlobals$outboundSchema, ListConnectBalanceTransfersRequest$inboundSchema, ListConnectBalanceTransfersRequest$outboundSchema, ListConnectBalanceTransfersEmbedded$inboundSchema, ListConnectBalanceTransfersEmbedded$outboundSchema, ListConnectBalanceTransfersResponseBody$inboundSchema, ListConnectBalanceTransfersResponseBody$outboundSchema, ListConnectBalanceTransfersResponse$inboundSchema, ListConnectBalanceTransfersResponse$outboundSchema;
65376
65516
  var init_listconnectbalancetransfers = __esm(() => {
65377
65517
  init_esm();
65378
65518
  init_primitives();
@@ -65419,7 +65559,7 @@ var init_listconnectbalancetransfers = __esm(() => {
65419
65559
  connectBalanceTransfers: "connect_balance_transfers"
65420
65560
  });
65421
65561
  });
65422
- ListConnectBalanceTransfersResponse$inboundSchema = objectType({
65562
+ ListConnectBalanceTransfersResponseBody$inboundSchema = objectType({
65423
65563
  count: numberType().int(),
65424
65564
  _embedded: lazyType(() => ListConnectBalanceTransfersEmbedded$inboundSchema),
65425
65565
  _links: ListLinks$inboundSchema
@@ -65429,7 +65569,7 @@ var init_listconnectbalancetransfers = __esm(() => {
65429
65569
  _links: "links"
65430
65570
  });
65431
65571
  });
65432
- ListConnectBalanceTransfersResponse$outboundSchema = objectType({
65572
+ ListConnectBalanceTransfersResponseBody$outboundSchema = objectType({
65433
65573
  count: numberType().int(),
65434
65574
  embedded: lazyType(() => ListConnectBalanceTransfersEmbedded$outboundSchema),
65435
65575
  links: ListLinks$outboundSchema
@@ -65439,10 +65579,24 @@ var init_listconnectbalancetransfers = __esm(() => {
65439
65579
  links: "_links"
65440
65580
  });
65441
65581
  });
65582
+ ListConnectBalanceTransfersResponse$inboundSchema = objectType({
65583
+ Result: lazyType(() => ListConnectBalanceTransfersResponseBody$inboundSchema)
65584
+ }).transform((v2) => {
65585
+ return remap(v2, {
65586
+ Result: "result"
65587
+ });
65588
+ });
65589
+ ListConnectBalanceTransfersResponse$outboundSchema = objectType({
65590
+ result: lazyType(() => ListConnectBalanceTransfersResponseBody$outboundSchema)
65591
+ }).transform((v2) => {
65592
+ return remap(v2, {
65593
+ result: "Result"
65594
+ });
65595
+ });
65442
65596
  });
65443
65597
 
65444
65598
  // src/models/operations/listcustomerpayments.ts
65445
- var ListCustomerPaymentsGlobals$inboundSchema, ListCustomerPaymentsGlobals$outboundSchema, ListCustomerPaymentsRequest$inboundSchema, ListCustomerPaymentsRequest$outboundSchema, ListCustomerPaymentsEmbedded$inboundSchema, ListCustomerPaymentsEmbedded$outboundSchema, ListCustomerPaymentsResponse$inboundSchema, ListCustomerPaymentsResponse$outboundSchema;
65599
+ var ListCustomerPaymentsGlobals$inboundSchema, ListCustomerPaymentsGlobals$outboundSchema, ListCustomerPaymentsRequest$inboundSchema, ListCustomerPaymentsRequest$outboundSchema, ListCustomerPaymentsEmbedded$inboundSchema, ListCustomerPaymentsEmbedded$outboundSchema, ListCustomerPaymentsResponseBody$inboundSchema, ListCustomerPaymentsResponseBody$outboundSchema, ListCustomerPaymentsResponse$inboundSchema, ListCustomerPaymentsResponse$outboundSchema;
65446
65600
  var init_listcustomerpayments = __esm(() => {
65447
65601
  init_esm();
65448
65602
  init_primitives();
@@ -65487,7 +65641,7 @@ var init_listcustomerpayments = __esm(() => {
65487
65641
  ListCustomerPaymentsEmbedded$outboundSchema = objectType({
65488
65642
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
65489
65643
  });
65490
- ListCustomerPaymentsResponse$inboundSchema = objectType({
65644
+ ListCustomerPaymentsResponseBody$inboundSchema = objectType({
65491
65645
  count: numberType().int(),
65492
65646
  _embedded: lazyType(() => ListCustomerPaymentsEmbedded$inboundSchema),
65493
65647
  _links: ListLinks$inboundSchema
@@ -65497,7 +65651,7 @@ var init_listcustomerpayments = __esm(() => {
65497
65651
  _links: "links"
65498
65652
  });
65499
65653
  });
65500
- ListCustomerPaymentsResponse$outboundSchema = objectType({
65654
+ ListCustomerPaymentsResponseBody$outboundSchema = objectType({
65501
65655
  count: numberType().int(),
65502
65656
  embedded: lazyType(() => ListCustomerPaymentsEmbedded$outboundSchema),
65503
65657
  links: ListLinks$outboundSchema
@@ -65507,10 +65661,24 @@ var init_listcustomerpayments = __esm(() => {
65507
65661
  links: "_links"
65508
65662
  });
65509
65663
  });
65664
+ ListCustomerPaymentsResponse$inboundSchema = objectType({
65665
+ Result: lazyType(() => ListCustomerPaymentsResponseBody$inboundSchema)
65666
+ }).transform((v2) => {
65667
+ return remap(v2, {
65668
+ Result: "result"
65669
+ });
65670
+ });
65671
+ ListCustomerPaymentsResponse$outboundSchema = objectType({
65672
+ result: lazyType(() => ListCustomerPaymentsResponseBody$outboundSchema)
65673
+ }).transform((v2) => {
65674
+ return remap(v2, {
65675
+ result: "Result"
65676
+ });
65677
+ });
65510
65678
  });
65511
65679
 
65512
65680
  // src/models/operations/listcustomers.ts
65513
- var ListCustomersGlobals$inboundSchema, ListCustomersGlobals$outboundSchema, ListCustomersRequest$inboundSchema, ListCustomersRequest$outboundSchema, ListCustomersEmbedded$inboundSchema, ListCustomersEmbedded$outboundSchema, ListCustomersResponse$inboundSchema, ListCustomersResponse$outboundSchema;
65681
+ var ListCustomersGlobals$inboundSchema, ListCustomersGlobals$outboundSchema, ListCustomersRequest$inboundSchema, ListCustomersRequest$outboundSchema, ListCustomersEmbedded$inboundSchema, ListCustomersEmbedded$outboundSchema, ListCustomersResponseBody$inboundSchema, ListCustomersResponseBody$outboundSchema, ListCustomersResponse$inboundSchema, ListCustomersResponse$outboundSchema;
65514
65682
  var init_listcustomers = __esm(() => {
65515
65683
  init_esm();
65516
65684
  init_primitives();
@@ -65549,7 +65717,7 @@ var init_listcustomers = __esm(() => {
65549
65717
  ListCustomersEmbedded$outboundSchema = objectType({
65550
65718
  customers: arrayType(ListCustomerResponse$outboundSchema)
65551
65719
  });
65552
- ListCustomersResponse$inboundSchema = objectType({
65720
+ ListCustomersResponseBody$inboundSchema = objectType({
65553
65721
  count: numberType().int(),
65554
65722
  _embedded: lazyType(() => ListCustomersEmbedded$inboundSchema),
65555
65723
  _links: ListLinks$inboundSchema
@@ -65559,7 +65727,7 @@ var init_listcustomers = __esm(() => {
65559
65727
  _links: "links"
65560
65728
  });
65561
65729
  });
65562
- ListCustomersResponse$outboundSchema = objectType({
65730
+ ListCustomersResponseBody$outboundSchema = objectType({
65563
65731
  count: numberType().int(),
65564
65732
  embedded: lazyType(() => ListCustomersEmbedded$outboundSchema),
65565
65733
  links: ListLinks$outboundSchema
@@ -65569,10 +65737,24 @@ var init_listcustomers = __esm(() => {
65569
65737
  links: "_links"
65570
65738
  });
65571
65739
  });
65740
+ ListCustomersResponse$inboundSchema = objectType({
65741
+ Result: lazyType(() => ListCustomersResponseBody$inboundSchema)
65742
+ }).transform((v2) => {
65743
+ return remap(v2, {
65744
+ Result: "result"
65745
+ });
65746
+ });
65747
+ ListCustomersResponse$outboundSchema = objectType({
65748
+ result: lazyType(() => ListCustomersResponseBody$outboundSchema)
65749
+ }).transform((v2) => {
65750
+ return remap(v2, {
65751
+ result: "Result"
65752
+ });
65753
+ });
65572
65754
  });
65573
65755
 
65574
65756
  // src/models/operations/listinvoices.ts
65575
- var ListInvoicesRequest$inboundSchema, ListInvoicesRequest$outboundSchema, ListInvoicesEmbedded$inboundSchema, ListInvoicesEmbedded$outboundSchema, ListInvoicesResponse$inboundSchema, ListInvoicesResponse$outboundSchema;
65757
+ var ListInvoicesRequest$inboundSchema, ListInvoicesRequest$outboundSchema, ListInvoicesEmbedded$inboundSchema, ListInvoicesEmbedded$outboundSchema, ListInvoicesResponseBody$inboundSchema, ListInvoicesResponseBody$outboundSchema, ListInvoicesResponse$inboundSchema, ListInvoicesResponse$outboundSchema;
65576
65758
  var init_listinvoices = __esm(() => {
65577
65759
  init_esm();
65578
65760
  init_primitives();
@@ -65607,7 +65789,7 @@ var init_listinvoices = __esm(() => {
65607
65789
  ListInvoicesEmbedded$outboundSchema = objectType({
65608
65790
  invoices: arrayType(ListEntityInvoice$outboundSchema)
65609
65791
  });
65610
- ListInvoicesResponse$inboundSchema = objectType({
65792
+ ListInvoicesResponseBody$inboundSchema = objectType({
65611
65793
  count: numberType().int(),
65612
65794
  _embedded: lazyType(() => ListInvoicesEmbedded$inboundSchema),
65613
65795
  _links: ListLinks$inboundSchema
@@ -65617,7 +65799,7 @@ var init_listinvoices = __esm(() => {
65617
65799
  _links: "links"
65618
65800
  });
65619
65801
  });
65620
- ListInvoicesResponse$outboundSchema = objectType({
65802
+ ListInvoicesResponseBody$outboundSchema = objectType({
65621
65803
  count: numberType().int(),
65622
65804
  embedded: lazyType(() => ListInvoicesEmbedded$outboundSchema),
65623
65805
  links: ListLinks$outboundSchema
@@ -65627,10 +65809,24 @@ var init_listinvoices = __esm(() => {
65627
65809
  links: "_links"
65628
65810
  });
65629
65811
  });
65812
+ ListInvoicesResponse$inboundSchema = objectType({
65813
+ Result: lazyType(() => ListInvoicesResponseBody$inboundSchema)
65814
+ }).transform((v2) => {
65815
+ return remap(v2, {
65816
+ Result: "result"
65817
+ });
65818
+ });
65819
+ ListInvoicesResponse$outboundSchema = objectType({
65820
+ result: lazyType(() => ListInvoicesResponseBody$outboundSchema)
65821
+ }).transform((v2) => {
65822
+ return remap(v2, {
65823
+ result: "Result"
65824
+ });
65825
+ });
65630
65826
  });
65631
65827
 
65632
65828
  // src/models/operations/listmandates.ts
65633
- var ListMandatesGlobals$inboundSchema, ListMandatesGlobals$outboundSchema, ListMandatesRequest$inboundSchema, ListMandatesRequest$outboundSchema, ListMandatesEmbedded$inboundSchema, ListMandatesEmbedded$outboundSchema, ListMandatesResponse$inboundSchema, ListMandatesResponse$outboundSchema;
65829
+ var ListMandatesGlobals$inboundSchema, ListMandatesGlobals$outboundSchema, ListMandatesRequest$inboundSchema, ListMandatesRequest$outboundSchema, ListMandatesEmbedded$inboundSchema, ListMandatesEmbedded$outboundSchema, ListMandatesResponseBody$inboundSchema, ListMandatesResponseBody$outboundSchema, ListMandatesResponse$inboundSchema, ListMandatesResponse$outboundSchema;
65634
65830
  var init_listmandates = __esm(() => {
65635
65831
  init_esm();
65636
65832
  init_primitives();
@@ -65671,7 +65867,7 @@ var init_listmandates = __esm(() => {
65671
65867
  ListMandatesEmbedded$outboundSchema = objectType({
65672
65868
  mandates: arrayType(ListMandateResponse$outboundSchema)
65673
65869
  });
65674
- ListMandatesResponse$inboundSchema = objectType({
65870
+ ListMandatesResponseBody$inboundSchema = objectType({
65675
65871
  count: numberType().int(),
65676
65872
  _embedded: lazyType(() => ListMandatesEmbedded$inboundSchema),
65677
65873
  _links: ListLinks$inboundSchema
@@ -65681,7 +65877,7 @@ var init_listmandates = __esm(() => {
65681
65877
  _links: "links"
65682
65878
  });
65683
65879
  });
65684
- ListMandatesResponse$outboundSchema = objectType({
65880
+ ListMandatesResponseBody$outboundSchema = objectType({
65685
65881
  count: numberType().int(),
65686
65882
  embedded: lazyType(() => ListMandatesEmbedded$outboundSchema),
65687
65883
  links: ListLinks$outboundSchema
@@ -65691,6 +65887,20 @@ var init_listmandates = __esm(() => {
65691
65887
  links: "_links"
65692
65888
  });
65693
65889
  });
65890
+ ListMandatesResponse$inboundSchema = objectType({
65891
+ Result: lazyType(() => ListMandatesResponseBody$inboundSchema)
65892
+ }).transform((v2) => {
65893
+ return remap(v2, {
65894
+ Result: "result"
65895
+ });
65896
+ });
65897
+ ListMandatesResponse$outboundSchema = objectType({
65898
+ result: lazyType(() => ListMandatesResponseBody$outboundSchema)
65899
+ }).transform((v2) => {
65900
+ return remap(v2, {
65901
+ result: "Result"
65902
+ });
65903
+ });
65694
65904
  });
65695
65905
 
65696
65906
  // src/models/operations/listmethods.ts
@@ -65778,7 +65988,7 @@ var init_listmethods = __esm(() => {
65778
65988
  });
65779
65989
 
65780
65990
  // src/models/operations/listpaymentlinks.ts
65781
- var ListPaymentLinksGlobals$inboundSchema, ListPaymentLinksGlobals$outboundSchema, ListPaymentLinksRequest$inboundSchema, ListPaymentLinksRequest$outboundSchema, ListPaymentLinksEmbedded$inboundSchema, ListPaymentLinksEmbedded$outboundSchema, ListPaymentLinksResponse$inboundSchema, ListPaymentLinksResponse$outboundSchema;
65991
+ var ListPaymentLinksGlobals$inboundSchema, ListPaymentLinksGlobals$outboundSchema, ListPaymentLinksRequest$inboundSchema, ListPaymentLinksRequest$outboundSchema, ListPaymentLinksEmbedded$inboundSchema, ListPaymentLinksEmbedded$outboundSchema, ListPaymentLinksResponseBody$inboundSchema, ListPaymentLinksResponseBody$outboundSchema, ListPaymentLinksResponse$inboundSchema, ListPaymentLinksResponse$outboundSchema;
65782
65992
  var init_listpaymentlinks = __esm(() => {
65783
65993
  init_esm();
65784
65994
  init_primitives();
@@ -65823,7 +66033,7 @@ var init_listpaymentlinks = __esm(() => {
65823
66033
  paymentLinks: "payment_links"
65824
66034
  });
65825
66035
  });
65826
- ListPaymentLinksResponse$inboundSchema = objectType({
66036
+ ListPaymentLinksResponseBody$inboundSchema = objectType({
65827
66037
  count: numberType().int(),
65828
66038
  _embedded: lazyType(() => ListPaymentLinksEmbedded$inboundSchema),
65829
66039
  _links: ListLinks$inboundSchema
@@ -65833,7 +66043,7 @@ var init_listpaymentlinks = __esm(() => {
65833
66043
  _links: "links"
65834
66044
  });
65835
66045
  });
65836
- ListPaymentLinksResponse$outboundSchema = objectType({
66046
+ ListPaymentLinksResponseBody$outboundSchema = objectType({
65837
66047
  count: numberType().int(),
65838
66048
  embedded: lazyType(() => ListPaymentLinksEmbedded$outboundSchema),
65839
66049
  links: ListLinks$outboundSchema
@@ -65843,10 +66053,24 @@ var init_listpaymentlinks = __esm(() => {
65843
66053
  links: "_links"
65844
66054
  });
65845
66055
  });
66056
+ ListPaymentLinksResponse$inboundSchema = objectType({
66057
+ Result: lazyType(() => ListPaymentLinksResponseBody$inboundSchema)
66058
+ }).transform((v2) => {
66059
+ return remap(v2, {
66060
+ Result: "result"
66061
+ });
66062
+ });
66063
+ ListPaymentLinksResponse$outboundSchema = objectType({
66064
+ result: lazyType(() => ListPaymentLinksResponseBody$outboundSchema)
66065
+ }).transform((v2) => {
66066
+ return remap(v2, {
66067
+ result: "Result"
66068
+ });
66069
+ });
65846
66070
  });
65847
66071
 
65848
66072
  // src/models/operations/listpayments.ts
65849
- var ListPaymentsGlobals$inboundSchema, ListPaymentsGlobals$outboundSchema, ListPaymentsRequest$inboundSchema, ListPaymentsRequest$outboundSchema, ListPaymentsEmbedded$inboundSchema, ListPaymentsEmbedded$outboundSchema, ListPaymentsResponse$inboundSchema, ListPaymentsResponse$outboundSchema;
66073
+ var ListPaymentsGlobals$inboundSchema, ListPaymentsGlobals$outboundSchema, ListPaymentsRequest$inboundSchema, ListPaymentsRequest$outboundSchema, ListPaymentsEmbedded$inboundSchema, ListPaymentsEmbedded$outboundSchema, ListPaymentsResponseBody$inboundSchema, ListPaymentsResponseBody$outboundSchema, ListPaymentsResponse$inboundSchema, ListPaymentsResponse$outboundSchema;
65850
66074
  var init_listpayments = __esm(() => {
65851
66075
  init_esm();
65852
66076
  init_primitives();
@@ -65889,7 +66113,7 @@ var init_listpayments = __esm(() => {
65889
66113
  ListPaymentsEmbedded$outboundSchema = objectType({
65890
66114
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
65891
66115
  });
65892
- ListPaymentsResponse$inboundSchema = objectType({
66116
+ ListPaymentsResponseBody$inboundSchema = objectType({
65893
66117
  count: numberType().int(),
65894
66118
  _embedded: lazyType(() => ListPaymentsEmbedded$inboundSchema),
65895
66119
  _links: ListLinks$inboundSchema
@@ -65899,7 +66123,7 @@ var init_listpayments = __esm(() => {
65899
66123
  _links: "links"
65900
66124
  });
65901
66125
  });
65902
- ListPaymentsResponse$outboundSchema = objectType({
66126
+ ListPaymentsResponseBody$outboundSchema = objectType({
65903
66127
  count: numberType().int(),
65904
66128
  embedded: lazyType(() => ListPaymentsEmbedded$outboundSchema),
65905
66129
  links: ListLinks$outboundSchema
@@ -65909,6 +66133,20 @@ var init_listpayments = __esm(() => {
65909
66133
  links: "_links"
65910
66134
  });
65911
66135
  });
66136
+ ListPaymentsResponse$inboundSchema = objectType({
66137
+ Result: lazyType(() => ListPaymentsResponseBody$inboundSchema)
66138
+ }).transform((v2) => {
66139
+ return remap(v2, {
66140
+ Result: "result"
66141
+ });
66142
+ });
66143
+ ListPaymentsResponse$outboundSchema = objectType({
66144
+ result: lazyType(() => ListPaymentsResponseBody$outboundSchema)
66145
+ }).transform((v2) => {
66146
+ return remap(v2, {
66147
+ result: "Result"
66148
+ });
66149
+ });
65912
66150
  });
65913
66151
 
65914
66152
  // src/models/operations/listpermissions.ts
@@ -65968,7 +66206,7 @@ var init_listpermissions = __esm(() => {
65968
66206
  });
65969
66207
 
65970
66208
  // src/models/operations/listprofiles.ts
65971
- var ListProfilesRequest$inboundSchema, ListProfilesRequest$outboundSchema, ListProfilesEmbedded$inboundSchema, ListProfilesEmbedded$outboundSchema, ListProfilesResponse$inboundSchema, ListProfilesResponse$outboundSchema;
66209
+ var ListProfilesRequest$inboundSchema, ListProfilesRequest$outboundSchema, ListProfilesEmbedded$inboundSchema, ListProfilesEmbedded$outboundSchema, ListProfilesResponseBody$inboundSchema, ListProfilesResponseBody$outboundSchema, ListProfilesResponse$inboundSchema, ListProfilesResponse$outboundSchema;
65972
66210
  var init_listprofiles = __esm(() => {
65973
66211
  init_esm();
65974
66212
  init_primitives();
@@ -65997,7 +66235,7 @@ var init_listprofiles = __esm(() => {
65997
66235
  ListProfilesEmbedded$outboundSchema = objectType({
65998
66236
  profiles: arrayType(ListProfileResponse$outboundSchema)
65999
66237
  });
66000
- ListProfilesResponse$inboundSchema = objectType({
66238
+ ListProfilesResponseBody$inboundSchema = objectType({
66001
66239
  count: numberType().int(),
66002
66240
  _embedded: lazyType(() => ListProfilesEmbedded$inboundSchema),
66003
66241
  _links: ListLinks$inboundSchema
@@ -66007,7 +66245,7 @@ var init_listprofiles = __esm(() => {
66007
66245
  _links: "links"
66008
66246
  });
66009
66247
  });
66010
- ListProfilesResponse$outboundSchema = objectType({
66248
+ ListProfilesResponseBody$outboundSchema = objectType({
66011
66249
  count: numberType().int(),
66012
66250
  embedded: lazyType(() => ListProfilesEmbedded$outboundSchema),
66013
66251
  links: ListLinks$outboundSchema
@@ -66017,10 +66255,24 @@ var init_listprofiles = __esm(() => {
66017
66255
  links: "_links"
66018
66256
  });
66019
66257
  });
66258
+ ListProfilesResponse$inboundSchema = objectType({
66259
+ Result: lazyType(() => ListProfilesResponseBody$inboundSchema)
66260
+ }).transform((v2) => {
66261
+ return remap(v2, {
66262
+ Result: "result"
66263
+ });
66264
+ });
66265
+ ListProfilesResponse$outboundSchema = objectType({
66266
+ result: lazyType(() => ListProfilesResponseBody$outboundSchema)
66267
+ }).transform((v2) => {
66268
+ return remap(v2, {
66269
+ result: "Result"
66270
+ });
66271
+ });
66020
66272
  });
66021
66273
 
66022
66274
  // src/models/operations/listrefunds.ts
66023
- var ListRefundsGlobals$inboundSchema, ListRefundsGlobals$outboundSchema, ListRefundsRequest$inboundSchema, ListRefundsRequest$outboundSchema, ListRefundsEmbedded$inboundSchema, ListRefundsEmbedded$outboundSchema, ListRefundsResponse$inboundSchema, ListRefundsResponse$outboundSchema;
66275
+ var ListRefundsGlobals$inboundSchema, ListRefundsGlobals$outboundSchema, ListRefundsRequest$inboundSchema, ListRefundsRequest$outboundSchema, ListRefundsEmbedded$inboundSchema, ListRefundsEmbedded$outboundSchema, ListRefundsResponseBody$inboundSchema, ListRefundsResponseBody$outboundSchema, ListRefundsResponse$inboundSchema, ListRefundsResponse$outboundSchema;
66024
66276
  var init_listrefunds = __esm(() => {
66025
66277
  init_esm();
66026
66278
  init_primitives();
@@ -66061,7 +66313,7 @@ var init_listrefunds = __esm(() => {
66061
66313
  ListRefundsEmbedded$outboundSchema = objectType({
66062
66314
  refunds: arrayType(ListEntityRefund$outboundSchema)
66063
66315
  });
66064
- ListRefundsResponse$inboundSchema = objectType({
66316
+ ListRefundsResponseBody$inboundSchema = objectType({
66065
66317
  count: numberType().int(),
66066
66318
  _embedded: lazyType(() => ListRefundsEmbedded$inboundSchema),
66067
66319
  _links: ListLinks$inboundSchema
@@ -66071,7 +66323,7 @@ var init_listrefunds = __esm(() => {
66071
66323
  _links: "links"
66072
66324
  });
66073
66325
  });
66074
- ListRefundsResponse$outboundSchema = objectType({
66326
+ ListRefundsResponseBody$outboundSchema = objectType({
66075
66327
  count: numberType().int(),
66076
66328
  embedded: lazyType(() => ListRefundsEmbedded$outboundSchema),
66077
66329
  links: ListLinks$outboundSchema
@@ -66081,10 +66333,24 @@ var init_listrefunds = __esm(() => {
66081
66333
  links: "_links"
66082
66334
  });
66083
66335
  });
66336
+ ListRefundsResponse$inboundSchema = objectType({
66337
+ Result: lazyType(() => ListRefundsResponseBody$inboundSchema)
66338
+ }).transform((v2) => {
66339
+ return remap(v2, {
66340
+ Result: "result"
66341
+ });
66342
+ });
66343
+ ListRefundsResponse$outboundSchema = objectType({
66344
+ result: lazyType(() => ListRefundsResponseBody$outboundSchema)
66345
+ }).transform((v2) => {
66346
+ return remap(v2, {
66347
+ result: "Result"
66348
+ });
66349
+ });
66084
66350
  });
66085
66351
 
66086
66352
  // src/models/operations/listsalesinvoices.ts
66087
- var ListSalesInvoicesGlobals$inboundSchema, ListSalesInvoicesGlobals$outboundSchema, ListSalesInvoicesRequest$inboundSchema, ListSalesInvoicesRequest$outboundSchema, ListSalesInvoicesEmbedded$inboundSchema, ListSalesInvoicesEmbedded$outboundSchema, ListSalesInvoicesResponse$inboundSchema, ListSalesInvoicesResponse$outboundSchema;
66353
+ var ListSalesInvoicesGlobals$inboundSchema, ListSalesInvoicesGlobals$outboundSchema, ListSalesInvoicesRequest$inboundSchema, ListSalesInvoicesRequest$outboundSchema, ListSalesInvoicesEmbedded$inboundSchema, ListSalesInvoicesEmbedded$outboundSchema, ListSalesInvoicesResponseBody$inboundSchema, ListSalesInvoicesResponseBody$outboundSchema, ListSalesInvoicesResponse$inboundSchema, ListSalesInvoicesResponse$outboundSchema;
66088
66354
  var init_listsalesinvoices = __esm(() => {
66089
66355
  init_esm();
66090
66356
  init_primitives();
@@ -66129,7 +66395,7 @@ var init_listsalesinvoices = __esm(() => {
66129
66395
  salesInvoices: "sales_invoices"
66130
66396
  });
66131
66397
  });
66132
- ListSalesInvoicesResponse$inboundSchema = objectType({
66398
+ ListSalesInvoicesResponseBody$inboundSchema = objectType({
66133
66399
  count: numberType().int().optional(),
66134
66400
  _embedded: lazyType(() => ListSalesInvoicesEmbedded$inboundSchema).optional(),
66135
66401
  _links: ListLinks$inboundSchema.optional()
@@ -66139,7 +66405,7 @@ var init_listsalesinvoices = __esm(() => {
66139
66405
  _links: "links"
66140
66406
  });
66141
66407
  });
66142
- ListSalesInvoicesResponse$outboundSchema = objectType({
66408
+ ListSalesInvoicesResponseBody$outboundSchema = objectType({
66143
66409
  count: numberType().int().optional(),
66144
66410
  embedded: lazyType(() => ListSalesInvoicesEmbedded$outboundSchema).optional(),
66145
66411
  links: ListLinks$outboundSchema.optional()
@@ -66149,10 +66415,24 @@ var init_listsalesinvoices = __esm(() => {
66149
66415
  links: "_links"
66150
66416
  });
66151
66417
  });
66418
+ ListSalesInvoicesResponse$inboundSchema = objectType({
66419
+ Result: lazyType(() => ListSalesInvoicesResponseBody$inboundSchema)
66420
+ }).transform((v2) => {
66421
+ return remap(v2, {
66422
+ Result: "result"
66423
+ });
66424
+ });
66425
+ ListSalesInvoicesResponse$outboundSchema = objectType({
66426
+ result: lazyType(() => ListSalesInvoicesResponseBody$outboundSchema)
66427
+ }).transform((v2) => {
66428
+ return remap(v2, {
66429
+ result: "Result"
66430
+ });
66431
+ });
66152
66432
  });
66153
66433
 
66154
66434
  // src/models/operations/listsettlementcaptures.ts
66155
- var ListSettlementCapturesGlobals$inboundSchema, ListSettlementCapturesGlobals$outboundSchema, ListSettlementCapturesRequest$inboundSchema, ListSettlementCapturesRequest$outboundSchema, ListSettlementCapturesEmbedded$inboundSchema, ListSettlementCapturesEmbedded$outboundSchema, ListSettlementCapturesResponse$inboundSchema, ListSettlementCapturesResponse$outboundSchema;
66435
+ var ListSettlementCapturesGlobals$inboundSchema, ListSettlementCapturesGlobals$outboundSchema, ListSettlementCapturesRequest$inboundSchema, ListSettlementCapturesRequest$outboundSchema, ListSettlementCapturesEmbedded$inboundSchema, ListSettlementCapturesEmbedded$outboundSchema, ListSettlementCapturesResponseBody$inboundSchema, ListSettlementCapturesResponseBody$outboundSchema, ListSettlementCapturesResponse$inboundSchema, ListSettlementCapturesResponse$outboundSchema;
66156
66436
  var init_listsettlementcaptures = __esm(() => {
66157
66437
  init_esm();
66158
66438
  init_primitives();
@@ -66193,7 +66473,7 @@ var init_listsettlementcaptures = __esm(() => {
66193
66473
  ListSettlementCapturesEmbedded$outboundSchema = objectType({
66194
66474
  captures: arrayType(ListCaptureResponse$outboundSchema)
66195
66475
  });
66196
- ListSettlementCapturesResponse$inboundSchema = objectType({
66476
+ ListSettlementCapturesResponseBody$inboundSchema = objectType({
66197
66477
  count: numberType().int(),
66198
66478
  _embedded: lazyType(() => ListSettlementCapturesEmbedded$inboundSchema),
66199
66479
  _links: ListLinks$inboundSchema
@@ -66203,7 +66483,7 @@ var init_listsettlementcaptures = __esm(() => {
66203
66483
  _links: "links"
66204
66484
  });
66205
66485
  });
66206
- ListSettlementCapturesResponse$outboundSchema = objectType({
66486
+ ListSettlementCapturesResponseBody$outboundSchema = objectType({
66207
66487
  count: numberType().int(),
66208
66488
  embedded: lazyType(() => ListSettlementCapturesEmbedded$outboundSchema),
66209
66489
  links: ListLinks$outboundSchema
@@ -66213,10 +66493,24 @@ var init_listsettlementcaptures = __esm(() => {
66213
66493
  links: "_links"
66214
66494
  });
66215
66495
  });
66496
+ ListSettlementCapturesResponse$inboundSchema = objectType({
66497
+ Result: lazyType(() => ListSettlementCapturesResponseBody$inboundSchema)
66498
+ }).transform((v2) => {
66499
+ return remap(v2, {
66500
+ Result: "result"
66501
+ });
66502
+ });
66503
+ ListSettlementCapturesResponse$outboundSchema = objectType({
66504
+ result: lazyType(() => ListSettlementCapturesResponseBody$outboundSchema)
66505
+ }).transform((v2) => {
66506
+ return remap(v2, {
66507
+ result: "Result"
66508
+ });
66509
+ });
66216
66510
  });
66217
66511
 
66218
66512
  // src/models/operations/listsettlementchargebacks.ts
66219
- var ListSettlementChargebacksGlobals$inboundSchema, ListSettlementChargebacksGlobals$outboundSchema, ListSettlementChargebacksRequest$inboundSchema, ListSettlementChargebacksRequest$outboundSchema, ListSettlementChargebacksEmbedded$inboundSchema, ListSettlementChargebacksEmbedded$outboundSchema, ListSettlementChargebacksResponse$inboundSchema, ListSettlementChargebacksResponse$outboundSchema;
66513
+ var ListSettlementChargebacksGlobals$inboundSchema, ListSettlementChargebacksGlobals$outboundSchema, ListSettlementChargebacksRequest$inboundSchema, ListSettlementChargebacksRequest$outboundSchema, ListSettlementChargebacksEmbedded$inboundSchema, ListSettlementChargebacksEmbedded$outboundSchema, ListSettlementChargebacksResponseBody$inboundSchema, ListSettlementChargebacksResponseBody$outboundSchema, ListSettlementChargebacksResponse$inboundSchema, ListSettlementChargebacksResponse$outboundSchema;
66220
66514
  var init_listsettlementchargebacks = __esm(() => {
66221
66515
  init_esm();
66222
66516
  init_primitives();
@@ -66257,7 +66551,7 @@ var init_listsettlementchargebacks = __esm(() => {
66257
66551
  ListSettlementChargebacksEmbedded$outboundSchema = objectType({
66258
66552
  chargebacks: arrayType(ListEntityChargeback$outboundSchema)
66259
66553
  });
66260
- ListSettlementChargebacksResponse$inboundSchema = objectType({
66554
+ ListSettlementChargebacksResponseBody$inboundSchema = objectType({
66261
66555
  count: numberType().int(),
66262
66556
  _embedded: lazyType(() => ListSettlementChargebacksEmbedded$inboundSchema),
66263
66557
  _links: ListLinks$inboundSchema
@@ -66267,7 +66561,7 @@ var init_listsettlementchargebacks = __esm(() => {
66267
66561
  _links: "links"
66268
66562
  });
66269
66563
  });
66270
- ListSettlementChargebacksResponse$outboundSchema = objectType({
66564
+ ListSettlementChargebacksResponseBody$outboundSchema = objectType({
66271
66565
  count: numberType().int(),
66272
66566
  embedded: lazyType(() => ListSettlementChargebacksEmbedded$outboundSchema),
66273
66567
  links: ListLinks$outboundSchema
@@ -66277,10 +66571,24 @@ var init_listsettlementchargebacks = __esm(() => {
66277
66571
  links: "_links"
66278
66572
  });
66279
66573
  });
66574
+ ListSettlementChargebacksResponse$inboundSchema = objectType({
66575
+ Result: lazyType(() => ListSettlementChargebacksResponseBody$inboundSchema)
66576
+ }).transform((v2) => {
66577
+ return remap(v2, {
66578
+ Result: "result"
66579
+ });
66580
+ });
66581
+ ListSettlementChargebacksResponse$outboundSchema = objectType({
66582
+ result: lazyType(() => ListSettlementChargebacksResponseBody$outboundSchema)
66583
+ }).transform((v2) => {
66584
+ return remap(v2, {
66585
+ result: "Result"
66586
+ });
66587
+ });
66280
66588
  });
66281
66589
 
66282
66590
  // src/models/operations/listsettlementpayments.ts
66283
- var ListSettlementPaymentsGlobals$inboundSchema, ListSettlementPaymentsGlobals$outboundSchema, ListSettlementPaymentsRequest$inboundSchema, ListSettlementPaymentsRequest$outboundSchema, ListSettlementPaymentsEmbedded$inboundSchema, ListSettlementPaymentsEmbedded$outboundSchema, ListSettlementPaymentsResponse$inboundSchema, ListSettlementPaymentsResponse$outboundSchema;
66591
+ var ListSettlementPaymentsGlobals$inboundSchema, ListSettlementPaymentsGlobals$outboundSchema, ListSettlementPaymentsRequest$inboundSchema, ListSettlementPaymentsRequest$outboundSchema, ListSettlementPaymentsEmbedded$inboundSchema, ListSettlementPaymentsEmbedded$outboundSchema, ListSettlementPaymentsResponseBody$inboundSchema, ListSettlementPaymentsResponseBody$outboundSchema, ListSettlementPaymentsResponse$inboundSchema, ListSettlementPaymentsResponse$outboundSchema;
66284
66592
  var init_listsettlementpayments = __esm(() => {
66285
66593
  init_esm();
66286
66594
  init_primitives();
@@ -66325,7 +66633,7 @@ var init_listsettlementpayments = __esm(() => {
66325
66633
  ListSettlementPaymentsEmbedded$outboundSchema = objectType({
66326
66634
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
66327
66635
  });
66328
- ListSettlementPaymentsResponse$inboundSchema = objectType({
66636
+ ListSettlementPaymentsResponseBody$inboundSchema = objectType({
66329
66637
  count: numberType().int(),
66330
66638
  _embedded: lazyType(() => ListSettlementPaymentsEmbedded$inboundSchema),
66331
66639
  _links: ListLinks$inboundSchema
@@ -66335,7 +66643,7 @@ var init_listsettlementpayments = __esm(() => {
66335
66643
  _links: "links"
66336
66644
  });
66337
66645
  });
66338
- ListSettlementPaymentsResponse$outboundSchema = objectType({
66646
+ ListSettlementPaymentsResponseBody$outboundSchema = objectType({
66339
66647
  count: numberType().int(),
66340
66648
  embedded: lazyType(() => ListSettlementPaymentsEmbedded$outboundSchema),
66341
66649
  links: ListLinks$outboundSchema
@@ -66345,10 +66653,24 @@ var init_listsettlementpayments = __esm(() => {
66345
66653
  links: "_links"
66346
66654
  });
66347
66655
  });
66348
- });
66656
+ ListSettlementPaymentsResponse$inboundSchema = objectType({
66657
+ Result: lazyType(() => ListSettlementPaymentsResponseBody$inboundSchema)
66658
+ }).transform((v2) => {
66659
+ return remap(v2, {
66660
+ Result: "result"
66661
+ });
66662
+ });
66663
+ ListSettlementPaymentsResponse$outboundSchema = objectType({
66664
+ result: lazyType(() => ListSettlementPaymentsResponseBody$outboundSchema)
66665
+ }).transform((v2) => {
66666
+ return remap(v2, {
66667
+ result: "Result"
66668
+ });
66669
+ });
66670
+ });
66349
66671
 
66350
66672
  // src/models/operations/listsettlementrefunds.ts
66351
- var ListSettlementRefundsGlobals$inboundSchema, ListSettlementRefundsGlobals$outboundSchema, ListSettlementRefundsRequest$inboundSchema, ListSettlementRefundsRequest$outboundSchema, ListSettlementRefundsEmbedded$inboundSchema, ListSettlementRefundsEmbedded$outboundSchema, ListSettlementRefundsResponse$inboundSchema, ListSettlementRefundsResponse$outboundSchema;
66673
+ var ListSettlementRefundsGlobals$inboundSchema, ListSettlementRefundsGlobals$outboundSchema, ListSettlementRefundsRequest$inboundSchema, ListSettlementRefundsRequest$outboundSchema, ListSettlementRefundsEmbedded$inboundSchema, ListSettlementRefundsEmbedded$outboundSchema, ListSettlementRefundsResponseBody$inboundSchema, ListSettlementRefundsResponseBody$outboundSchema, ListSettlementRefundsResponse$inboundSchema, ListSettlementRefundsResponse$outboundSchema;
66352
66674
  var init_listsettlementrefunds = __esm(() => {
66353
66675
  init_esm();
66354
66676
  init_primitives();
@@ -66389,7 +66711,7 @@ var init_listsettlementrefunds = __esm(() => {
66389
66711
  ListSettlementRefundsEmbedded$outboundSchema = objectType({
66390
66712
  refunds: arrayType(ListEntityRefund$outboundSchema)
66391
66713
  });
66392
- ListSettlementRefundsResponse$inboundSchema = objectType({
66714
+ ListSettlementRefundsResponseBody$inboundSchema = objectType({
66393
66715
  count: numberType().int(),
66394
66716
  _embedded: lazyType(() => ListSettlementRefundsEmbedded$inboundSchema),
66395
66717
  _links: ListLinks$inboundSchema
@@ -66399,7 +66721,7 @@ var init_listsettlementrefunds = __esm(() => {
66399
66721
  _links: "links"
66400
66722
  });
66401
66723
  });
66402
- ListSettlementRefundsResponse$outboundSchema = objectType({
66724
+ ListSettlementRefundsResponseBody$outboundSchema = objectType({
66403
66725
  count: numberType().int(),
66404
66726
  embedded: lazyType(() => ListSettlementRefundsEmbedded$outboundSchema),
66405
66727
  links: ListLinks$outboundSchema
@@ -66409,10 +66731,24 @@ var init_listsettlementrefunds = __esm(() => {
66409
66731
  links: "_links"
66410
66732
  });
66411
66733
  });
66734
+ ListSettlementRefundsResponse$inboundSchema = objectType({
66735
+ Result: lazyType(() => ListSettlementRefundsResponseBody$inboundSchema)
66736
+ }).transform((v2) => {
66737
+ return remap(v2, {
66738
+ Result: "result"
66739
+ });
66740
+ });
66741
+ ListSettlementRefundsResponse$outboundSchema = objectType({
66742
+ result: lazyType(() => ListSettlementRefundsResponseBody$outboundSchema)
66743
+ }).transform((v2) => {
66744
+ return remap(v2, {
66745
+ result: "Result"
66746
+ });
66747
+ });
66412
66748
  });
66413
66749
 
66414
66750
  // src/models/operations/listsettlements.ts
66415
- var ListSettlementsRequest$inboundSchema, ListSettlementsRequest$outboundSchema, ListSettlementsEmbedded$inboundSchema, ListSettlementsEmbedded$outboundSchema, ListSettlementsResponse$inboundSchema, ListSettlementsResponse$outboundSchema;
66751
+ var ListSettlementsRequest$inboundSchema, ListSettlementsRequest$outboundSchema, ListSettlementsEmbedded$inboundSchema, ListSettlementsEmbedded$outboundSchema, ListSettlementsResponseBody$inboundSchema, ListSettlementsResponseBody$outboundSchema, ListSettlementsResponse$inboundSchema, ListSettlementsResponse$outboundSchema;
66416
66752
  var init_listsettlements = __esm(() => {
66417
66753
  init_esm();
66418
66754
  init_primitives();
@@ -66449,7 +66785,7 @@ var init_listsettlements = __esm(() => {
66449
66785
  ListSettlementsEmbedded$outboundSchema = objectType({
66450
66786
  settlements: arrayType(ListEntitySettlement$outboundSchema)
66451
66787
  });
66452
- ListSettlementsResponse$inboundSchema = objectType({
66788
+ ListSettlementsResponseBody$inboundSchema = objectType({
66453
66789
  count: numberType().int(),
66454
66790
  _embedded: lazyType(() => ListSettlementsEmbedded$inboundSchema),
66455
66791
  _links: ListLinks$inboundSchema
@@ -66459,7 +66795,7 @@ var init_listsettlements = __esm(() => {
66459
66795
  _links: "links"
66460
66796
  });
66461
66797
  });
66462
- ListSettlementsResponse$outboundSchema = objectType({
66798
+ ListSettlementsResponseBody$outboundSchema = objectType({
66463
66799
  count: numberType().int(),
66464
66800
  embedded: lazyType(() => ListSettlementsEmbedded$outboundSchema),
66465
66801
  links: ListLinks$outboundSchema
@@ -66469,10 +66805,24 @@ var init_listsettlements = __esm(() => {
66469
66805
  links: "_links"
66470
66806
  });
66471
66807
  });
66808
+ ListSettlementsResponse$inboundSchema = objectType({
66809
+ Result: lazyType(() => ListSettlementsResponseBody$inboundSchema)
66810
+ }).transform((v2) => {
66811
+ return remap(v2, {
66812
+ Result: "result"
66813
+ });
66814
+ });
66815
+ ListSettlementsResponse$outboundSchema = objectType({
66816
+ result: lazyType(() => ListSettlementsResponseBody$outboundSchema)
66817
+ }).transform((v2) => {
66818
+ return remap(v2, {
66819
+ result: "Result"
66820
+ });
66821
+ });
66472
66822
  });
66473
66823
 
66474
66824
  // src/models/operations/listsubscriptionpayments.ts
66475
- var ListSubscriptionPaymentsGlobals$inboundSchema, ListSubscriptionPaymentsGlobals$outboundSchema, ListSubscriptionPaymentsRequest$inboundSchema, ListSubscriptionPaymentsRequest$outboundSchema, ListSubscriptionPaymentsEmbedded$inboundSchema, ListSubscriptionPaymentsEmbedded$outboundSchema, ListSubscriptionPaymentsResponse$inboundSchema, ListSubscriptionPaymentsResponse$outboundSchema;
66825
+ var ListSubscriptionPaymentsGlobals$inboundSchema, ListSubscriptionPaymentsGlobals$outboundSchema, ListSubscriptionPaymentsRequest$inboundSchema, ListSubscriptionPaymentsRequest$outboundSchema, ListSubscriptionPaymentsEmbedded$inboundSchema, ListSubscriptionPaymentsEmbedded$outboundSchema, ListSubscriptionPaymentsResponseBody$inboundSchema, ListSubscriptionPaymentsResponseBody$outboundSchema, ListSubscriptionPaymentsResponse$inboundSchema, ListSubscriptionPaymentsResponse$outboundSchema;
66476
66826
  var init_listsubscriptionpayments = __esm(() => {
66477
66827
  init_esm();
66478
66828
  init_primitives();
@@ -66519,7 +66869,7 @@ var init_listsubscriptionpayments = __esm(() => {
66519
66869
  ListSubscriptionPaymentsEmbedded$outboundSchema = objectType({
66520
66870
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
66521
66871
  });
66522
- ListSubscriptionPaymentsResponse$inboundSchema = objectType({
66872
+ ListSubscriptionPaymentsResponseBody$inboundSchema = objectType({
66523
66873
  count: numberType().int(),
66524
66874
  _embedded: lazyType(() => ListSubscriptionPaymentsEmbedded$inboundSchema),
66525
66875
  _links: ListLinks$inboundSchema
@@ -66529,7 +66879,7 @@ var init_listsubscriptionpayments = __esm(() => {
66529
66879
  _links: "links"
66530
66880
  });
66531
66881
  });
66532
- ListSubscriptionPaymentsResponse$outboundSchema = objectType({
66882
+ ListSubscriptionPaymentsResponseBody$outboundSchema = objectType({
66533
66883
  count: numberType().int(),
66534
66884
  embedded: lazyType(() => ListSubscriptionPaymentsEmbedded$outboundSchema),
66535
66885
  links: ListLinks$outboundSchema
@@ -66539,10 +66889,24 @@ var init_listsubscriptionpayments = __esm(() => {
66539
66889
  links: "_links"
66540
66890
  });
66541
66891
  });
66892
+ ListSubscriptionPaymentsResponse$inboundSchema = objectType({
66893
+ Result: lazyType(() => ListSubscriptionPaymentsResponseBody$inboundSchema)
66894
+ }).transform((v2) => {
66895
+ return remap(v2, {
66896
+ Result: "result"
66897
+ });
66898
+ });
66899
+ ListSubscriptionPaymentsResponse$outboundSchema = objectType({
66900
+ result: lazyType(() => ListSubscriptionPaymentsResponseBody$outboundSchema)
66901
+ }).transform((v2) => {
66902
+ return remap(v2, {
66903
+ result: "Result"
66904
+ });
66905
+ });
66542
66906
  });
66543
66907
 
66544
66908
  // src/models/operations/listsubscriptions.ts
66545
- var ListSubscriptionsGlobals$inboundSchema, ListSubscriptionsGlobals$outboundSchema, ListSubscriptionsRequest$inboundSchema, ListSubscriptionsRequest$outboundSchema, ListSubscriptionsEmbedded$inboundSchema, ListSubscriptionsEmbedded$outboundSchema, ListSubscriptionsResponse$inboundSchema, ListSubscriptionsResponse$outboundSchema;
66909
+ var ListSubscriptionsGlobals$inboundSchema, ListSubscriptionsGlobals$outboundSchema, ListSubscriptionsRequest$inboundSchema, ListSubscriptionsRequest$outboundSchema, ListSubscriptionsEmbedded$inboundSchema, ListSubscriptionsEmbedded$outboundSchema, ListSubscriptionsResponseBody$inboundSchema, ListSubscriptionsResponseBody$outboundSchema, ListSubscriptionsResponse$inboundSchema, ListSubscriptionsResponse$outboundSchema;
66546
66910
  var init_listsubscriptions = __esm(() => {
66547
66911
  init_esm();
66548
66912
  init_primitives();
@@ -66583,7 +66947,7 @@ var init_listsubscriptions = __esm(() => {
66583
66947
  ListSubscriptionsEmbedded$outboundSchema = objectType({
66584
66948
  subscriptions: arrayType(ListSubscriptionResponse$outboundSchema).optional()
66585
66949
  });
66586
- ListSubscriptionsResponse$inboundSchema = objectType({
66950
+ ListSubscriptionsResponseBody$inboundSchema = objectType({
66587
66951
  count: numberType().int(),
66588
66952
  _embedded: lazyType(() => ListSubscriptionsEmbedded$inboundSchema),
66589
66953
  _links: ListLinks$inboundSchema
@@ -66593,7 +66957,7 @@ var init_listsubscriptions = __esm(() => {
66593
66957
  _links: "links"
66594
66958
  });
66595
66959
  });
66596
- ListSubscriptionsResponse$outboundSchema = objectType({
66960
+ ListSubscriptionsResponseBody$outboundSchema = objectType({
66597
66961
  count: numberType().int(),
66598
66962
  embedded: lazyType(() => ListSubscriptionsEmbedded$outboundSchema),
66599
66963
  links: ListLinks$outboundSchema
@@ -66603,10 +66967,24 @@ var init_listsubscriptions = __esm(() => {
66603
66967
  links: "_links"
66604
66968
  });
66605
66969
  });
66970
+ ListSubscriptionsResponse$inboundSchema = objectType({
66971
+ Result: lazyType(() => ListSubscriptionsResponseBody$inboundSchema)
66972
+ }).transform((v2) => {
66973
+ return remap(v2, {
66974
+ Result: "result"
66975
+ });
66976
+ });
66977
+ ListSubscriptionsResponse$outboundSchema = objectType({
66978
+ result: lazyType(() => ListSubscriptionsResponseBody$outboundSchema)
66979
+ }).transform((v2) => {
66980
+ return remap(v2, {
66981
+ result: "Result"
66982
+ });
66983
+ });
66606
66984
  });
66607
66985
 
66608
66986
  // src/models/operations/listterminals.ts
66609
- var ListTerminalsGlobals$inboundSchema, ListTerminalsGlobals$outboundSchema, ListTerminalsRequest$inboundSchema, ListTerminalsRequest$outboundSchema, ListTerminalsEmbedded$inboundSchema, ListTerminalsEmbedded$outboundSchema, ListTerminalsResponse$inboundSchema, ListTerminalsResponse$outboundSchema;
66987
+ var ListTerminalsGlobals$inboundSchema, ListTerminalsGlobals$outboundSchema, ListTerminalsRequest$inboundSchema, ListTerminalsRequest$outboundSchema, ListTerminalsEmbedded$inboundSchema, ListTerminalsEmbedded$outboundSchema, ListTerminalsResponseBody$inboundSchema, ListTerminalsResponseBody$outboundSchema, ListTerminalsResponse$inboundSchema, ListTerminalsResponse$outboundSchema;
66610
66988
  var init_listterminals = __esm(() => {
66611
66989
  init_esm();
66612
66990
  init_primitives();
@@ -66645,7 +67023,7 @@ var init_listterminals = __esm(() => {
66645
67023
  ListTerminalsEmbedded$outboundSchema = objectType({
66646
67024
  terminals: arrayType(ListEntityTerminal$outboundSchema).optional()
66647
67025
  });
66648
- ListTerminalsResponse$inboundSchema = objectType({
67026
+ ListTerminalsResponseBody$inboundSchema = objectType({
66649
67027
  count: numberType().int(),
66650
67028
  _embedded: lazyType(() => ListTerminalsEmbedded$inboundSchema),
66651
67029
  _links: ListLinks$inboundSchema
@@ -66655,7 +67033,7 @@ var init_listterminals = __esm(() => {
66655
67033
  _links: "links"
66656
67034
  });
66657
67035
  });
66658
- ListTerminalsResponse$outboundSchema = objectType({
67036
+ ListTerminalsResponseBody$outboundSchema = objectType({
66659
67037
  count: numberType().int(),
66660
67038
  embedded: lazyType(() => ListTerminalsEmbedded$outboundSchema),
66661
67039
  links: ListLinks$outboundSchema
@@ -66665,10 +67043,24 @@ var init_listterminals = __esm(() => {
66665
67043
  links: "_links"
66666
67044
  });
66667
67045
  });
67046
+ ListTerminalsResponse$inboundSchema = objectType({
67047
+ Result: lazyType(() => ListTerminalsResponseBody$inboundSchema)
67048
+ }).transform((v2) => {
67049
+ return remap(v2, {
67050
+ Result: "result"
67051
+ });
67052
+ });
67053
+ ListTerminalsResponse$outboundSchema = objectType({
67054
+ result: lazyType(() => ListTerminalsResponseBody$outboundSchema)
67055
+ }).transform((v2) => {
67056
+ return remap(v2, {
67057
+ result: "Result"
67058
+ });
67059
+ });
66668
67060
  });
66669
67061
 
66670
67062
  // src/models/operations/listwebhooks.ts
66671
- var ListWebhooksGlobals$inboundSchema, ListWebhooksGlobals$outboundSchema, ListWebhooksRequest$inboundSchema, ListWebhooksRequest$outboundSchema, ListWebhooksEmbedded$inboundSchema, ListWebhooksEmbedded$outboundSchema, ListWebhooksResponse$inboundSchema, ListWebhooksResponse$outboundSchema;
67063
+ var ListWebhooksGlobals$inboundSchema, ListWebhooksGlobals$outboundSchema, ListWebhooksRequest$inboundSchema, ListWebhooksRequest$outboundSchema, ListWebhooksEmbedded$inboundSchema, ListWebhooksEmbedded$outboundSchema, ListWebhooksResponseBody$inboundSchema, ListWebhooksResponseBody$outboundSchema, ListWebhooksResponse$inboundSchema, ListWebhooksResponse$outboundSchema;
66672
67064
  var init_listwebhooks = __esm(() => {
66673
67065
  init_esm();
66674
67066
  init_primitives();
@@ -66709,7 +67101,7 @@ var init_listwebhooks = __esm(() => {
66709
67101
  ListWebhooksEmbedded$outboundSchema = objectType({
66710
67102
  webhooks: arrayType(ListEntityWebhook$outboundSchema)
66711
67103
  });
66712
- ListWebhooksResponse$inboundSchema = objectType({
67104
+ ListWebhooksResponseBody$inboundSchema = objectType({
66713
67105
  count: numberType().int(),
66714
67106
  _embedded: lazyType(() => ListWebhooksEmbedded$inboundSchema),
66715
67107
  _links: ListLinks$inboundSchema
@@ -66719,7 +67111,7 @@ var init_listwebhooks = __esm(() => {
66719
67111
  _links: "links"
66720
67112
  });
66721
67113
  });
66722
- ListWebhooksResponse$outboundSchema = objectType({
67114
+ ListWebhooksResponseBody$outboundSchema = objectType({
66723
67115
  count: numberType().int(),
66724
67116
  embedded: lazyType(() => ListWebhooksEmbedded$outboundSchema),
66725
67117
  links: ListLinks$outboundSchema
@@ -66729,6 +67121,20 @@ var init_listwebhooks = __esm(() => {
66729
67121
  links: "_links"
66730
67122
  });
66731
67123
  });
67124
+ ListWebhooksResponse$inboundSchema = objectType({
67125
+ Result: lazyType(() => ListWebhooksResponseBody$inboundSchema)
67126
+ }).transform((v2) => {
67127
+ return remap(v2, {
67128
+ Result: "result"
67129
+ });
67130
+ });
67131
+ ListWebhooksResponse$outboundSchema = objectType({
67132
+ result: lazyType(() => ListWebhooksResponseBody$outboundSchema)
67133
+ }).transform((v2) => {
67134
+ return remap(v2, {
67135
+ result: "Result"
67136
+ });
67137
+ });
66732
67138
  });
66733
67139
 
66734
67140
  // src/models/operations/paymentcreateroute.ts
@@ -67921,6 +68327,38 @@ organization's primary balance.`,
67921
68327
  };
67922
68328
  });
67923
68329
 
68330
+ // src/types/operations.ts
68331
+ function createPageIterator(page, halt) {
68332
+ return {
68333
+ [Symbol.asyncIterator]: async function* paginator() {
68334
+ yield page;
68335
+ if (halt(page)) {
68336
+ return;
68337
+ }
68338
+ let p = page;
68339
+ for (p = await p.next();p != null; p = await p.next()) {
68340
+ yield p;
68341
+ if (halt(p)) {
68342
+ return;
68343
+ }
68344
+ }
68345
+ }
68346
+ };
68347
+ }
68348
+ function haltIterator(v2) {
68349
+ return {
68350
+ ...v2,
68351
+ next: () => null,
68352
+ [Symbol.asyncIterator]: async function* paginator() {
68353
+ yield v2;
68354
+ }
68355
+ };
68356
+ }
68357
+ var URL_OVERRIDE;
68358
+ var init_operations2 = __esm(() => {
68359
+ URL_OVERRIDE = Symbol("URL_OVERRIDE");
68360
+ });
68361
+
67924
68362
  // src/funcs/balancesList.ts
67925
68363
  function balancesList(client, request, options) {
67926
68364
  return new APIPromise($do4(client, request, options));
@@ -67928,12 +68366,12 @@ function balancesList(client, request, options) {
67928
68366
  async function $do4(client, request, options) {
67929
68367
  const parsed = safeParse4(request, (value) => ListBalancesRequest$outboundSchema.optional().parse(value), "Input validation failed");
67930
68368
  if (!parsed.ok) {
67931
- return [parsed, { status: "invalid" }];
68369
+ return [haltIterator(parsed), { status: "invalid" }];
67932
68370
  }
67933
68371
  const payload = parsed.value;
67934
68372
  const body = null;
67935
- const path = pathToFunc("/balances")();
67936
- const query = encodeFormQuery({
68373
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/balances")();
68374
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
67937
68375
  currency: payload?.currency,
67938
68376
  from: payload?.from,
67939
68377
  limit: payload?.limit,
@@ -67967,7 +68405,7 @@ async function $do4(client, request, options) {
67967
68405
  const requestRes = client._createRequest(context, {
67968
68406
  security: requestSecurity,
67969
68407
  method: "GET",
67970
- baseURL: options?.serverURL,
68408
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
67971
68409
  path,
67972
68410
  headers,
67973
68411
  query,
@@ -67976,7 +68414,7 @@ async function $do4(client, request, options) {
67976
68414
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
67977
68415
  }, options);
67978
68416
  if (!requestRes.ok) {
67979
- return [requestRes, { status: "invalid" }];
68417
+ return [haltIterator(requestRes), { status: "invalid" }];
67980
68418
  }
67981
68419
  const req = requestRes.value;
67982
68420
  const doResult = await client._do(req, {
@@ -67986,21 +68424,49 @@ async function $do4(client, request, options) {
67986
68424
  retryCodes: context.retryCodes
67987
68425
  });
67988
68426
  if (!doResult.ok) {
67989
- return [doResult, { status: "request-error", request: req }];
68427
+ return [haltIterator(doResult), { status: "request-error", request: req }];
67990
68428
  }
67991
68429
  const response = doResult.value;
67992
68430
  const responseFields = {
67993
68431
  HttpMeta: { Response: response, Request: req }
67994
68432
  };
67995
- const [result] = await match(json(200, ListBalancesResponse$inboundSchema, {
67996
- ctype: "application/hal+json"
68433
+ const [result, raw] = await match(json(200, ListBalancesResponse$inboundSchema, {
68434
+ ctype: "application/hal+json",
68435
+ key: "Result"
67997
68436
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
67998
68437
  ctype: "application/hal+json"
67999
68438
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
68000
68439
  if (!result.ok) {
68001
- return [result, { status: "complete", request: req, response }];
68440
+ return [haltIterator(result), {
68441
+ status: "complete",
68442
+ request: req,
68443
+ response
68444
+ }];
68002
68445
  }
68003
- return [result, { status: "complete", request: req, response }];
68446
+ const nextFunc = (responseData) => {
68447
+ let nextURL = dlv(responseData, "_links.next.href");
68448
+ if (typeof nextURL !== "string") {
68449
+ return { next: () => null };
68450
+ }
68451
+ if (nextURL.startsWith("/")) {
68452
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
68453
+ }
68454
+ try {
68455
+ new URL(nextURL);
68456
+ } catch (_error) {
68457
+ return { next: () => null };
68458
+ }
68459
+ const nextVal = () => balancesList(client, {
68460
+ ...request
68461
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
68462
+ return { next: nextVal, "~next": { url: nextURL } };
68463
+ };
68464
+ const page = { ...result, ...nextFunc(raw) };
68465
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
68466
+ status: "complete",
68467
+ request: req,
68468
+ response
68469
+ }];
68004
68470
  }
68005
68471
  var init_balancesList = __esm(() => {
68006
68472
  init_encodings();
@@ -68012,6 +68478,7 @@ var init_balancesList = __esm(() => {
68012
68478
  init_errors4();
68013
68479
  init_operations();
68014
68480
  init_async();
68481
+ init_operations2();
68015
68482
  });
68016
68483
 
68017
68484
  // src/mcp-server/tools/balancesList.ts
@@ -68039,7 +68506,7 @@ The results are paginated.`,
68039
68506
  isError: true
68040
68507
  };
68041
68508
  }
68042
- const value = result.value;
68509
+ const value = result.value.result;
68043
68510
  return formatResult(value, apiCall);
68044
68511
  }
68045
68512
  };
@@ -68052,7 +68519,7 @@ function balancesListTransactions(client, request, options) {
68052
68519
  async function $do5(client, request, options) {
68053
68520
  const parsed = safeParse4(request, (value) => ListBalanceTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
68054
68521
  if (!parsed.ok) {
68055
- return [parsed, { status: "invalid" }];
68522
+ return [haltIterator(parsed), { status: "invalid" }];
68056
68523
  }
68057
68524
  const payload = parsed.value;
68058
68525
  const body = null;
@@ -68062,8 +68529,8 @@ async function $do5(client, request, options) {
68062
68529
  charEncoding: "percent"
68063
68530
  })
68064
68531
  };
68065
- const path = pathToFunc("/balances/{balanceId}/transactions")(pathParams);
68066
- const query = encodeFormQuery({
68532
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/balances/{balanceId}/transactions")(pathParams);
68533
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
68067
68534
  from: payload.from,
68068
68535
  limit: payload.limit,
68069
68536
  testmode: payload.testmode ?? client._options.testmode
@@ -68096,7 +68563,7 @@ async function $do5(client, request, options) {
68096
68563
  const requestRes = client._createRequest(context, {
68097
68564
  security: requestSecurity,
68098
68565
  method: "GET",
68099
- baseURL: options?.serverURL,
68566
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
68100
68567
  path,
68101
68568
  headers,
68102
68569
  query,
@@ -68105,7 +68572,7 @@ async function $do5(client, request, options) {
68105
68572
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
68106
68573
  }, options);
68107
68574
  if (!requestRes.ok) {
68108
- return [requestRes, { status: "invalid" }];
68575
+ return [haltIterator(requestRes), { status: "invalid" }];
68109
68576
  }
68110
68577
  const req = requestRes.value;
68111
68578
  const doResult = await client._do(req, {
@@ -68115,21 +68582,49 @@ async function $do5(client, request, options) {
68115
68582
  retryCodes: context.retryCodes
68116
68583
  });
68117
68584
  if (!doResult.ok) {
68118
- return [doResult, { status: "request-error", request: req }];
68585
+ return [haltIterator(doResult), { status: "request-error", request: req }];
68119
68586
  }
68120
68587
  const response = doResult.value;
68121
68588
  const responseFields = {
68122
68589
  HttpMeta: { Response: response, Request: req }
68123
68590
  };
68124
- const [result] = await match(json(200, ListBalanceTransactionsResponse$inboundSchema, {
68125
- ctype: "application/hal+json"
68591
+ const [result, raw] = await match(json(200, ListBalanceTransactionsResponse$inboundSchema, {
68592
+ ctype: "application/hal+json",
68593
+ key: "Result"
68126
68594
  }), jsonErr([400, 404, 429], ErrorResponse$inboundSchema, {
68127
68595
  ctype: "application/hal+json"
68128
68596
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
68129
68597
  if (!result.ok) {
68130
- return [result, { status: "complete", request: req, response }];
68598
+ return [haltIterator(result), {
68599
+ status: "complete",
68600
+ request: req,
68601
+ response
68602
+ }];
68131
68603
  }
68132
- return [result, { status: "complete", request: req, response }];
68604
+ const nextFunc = (responseData) => {
68605
+ let nextURL = dlv(responseData, "_links.next.href");
68606
+ if (typeof nextURL !== "string") {
68607
+ return { next: () => null };
68608
+ }
68609
+ if (nextURL.startsWith("/")) {
68610
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
68611
+ }
68612
+ try {
68613
+ new URL(nextURL);
68614
+ } catch (_error) {
68615
+ return { next: () => null };
68616
+ }
68617
+ const nextVal = () => balancesListTransactions(client, {
68618
+ ...request
68619
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
68620
+ return { next: nextVal, "~next": { url: nextURL } };
68621
+ };
68622
+ const page = { ...result, ...nextFunc(raw) };
68623
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
68624
+ status: "complete",
68625
+ request: req,
68626
+ response
68627
+ }];
68133
68628
  }
68134
68629
  var init_balancesListTransactions = __esm(() => {
68135
68630
  init_encodings();
@@ -68141,6 +68636,7 @@ var init_balancesListTransactions = __esm(() => {
68141
68636
  init_errors4();
68142
68637
  init_operations();
68143
68638
  init_async();
68639
+ init_operations2();
68144
68640
  });
68145
68641
 
68146
68642
  // src/mcp-server/tools/balancesListTransactions.ts
@@ -68175,7 +68671,7 @@ The results are paginated.`,
68175
68671
  isError: true
68176
68672
  };
68177
68673
  }
68178
- const value = result.value;
68674
+ const value = result.value.result;
68179
68675
  return formatResult(value, apiCall);
68180
68676
  }
68181
68677
  };
@@ -68433,12 +68929,12 @@ function balanceTransfersList(client, request, options) {
68433
68929
  async function $do8(client, request, options) {
68434
68930
  const parsed = safeParse4(request, (value) => ListConnectBalanceTransfersRequest$outboundSchema.optional().parse(value), "Input validation failed");
68435
68931
  if (!parsed.ok) {
68436
- return [parsed, { status: "invalid" }];
68932
+ return [haltIterator(parsed), { status: "invalid" }];
68437
68933
  }
68438
68934
  const payload = parsed.value;
68439
68935
  const body = null;
68440
- const path = pathToFunc("/connect/balance-transfers")();
68441
- const query = encodeFormQuery({
68936
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/connect/balance-transfers")();
68937
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
68442
68938
  from: payload?.from,
68443
68939
  limit: payload?.limit,
68444
68940
  sort: payload?.sort,
@@ -68472,7 +68968,7 @@ async function $do8(client, request, options) {
68472
68968
  const requestRes = client._createRequest(context, {
68473
68969
  security: requestSecurity,
68474
68970
  method: "GET",
68475
- baseURL: options?.serverURL,
68971
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
68476
68972
  path,
68477
68973
  headers,
68478
68974
  query,
@@ -68481,7 +68977,7 @@ async function $do8(client, request, options) {
68481
68977
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
68482
68978
  }, options);
68483
68979
  if (!requestRes.ok) {
68484
- return [requestRes, { status: "invalid" }];
68980
+ return [haltIterator(requestRes), { status: "invalid" }];
68485
68981
  }
68486
68982
  const req = requestRes.value;
68487
68983
  const doResult = await client._do(req, {
@@ -68491,21 +68987,49 @@ async function $do8(client, request, options) {
68491
68987
  retryCodes: context.retryCodes
68492
68988
  });
68493
68989
  if (!doResult.ok) {
68494
- return [doResult, { status: "request-error", request: req }];
68990
+ return [haltIterator(doResult), { status: "request-error", request: req }];
68495
68991
  }
68496
68992
  const response = doResult.value;
68497
68993
  const responseFields = {
68498
68994
  HttpMeta: { Response: response, Request: req }
68499
68995
  };
68500
- const [result] = await match(json(200, ListConnectBalanceTransfersResponse$inboundSchema, {
68501
- ctype: "application/hal+json"
68996
+ const [result, raw] = await match(json(200, ListConnectBalanceTransfersResponse$inboundSchema, {
68997
+ ctype: "application/hal+json",
68998
+ key: "Result"
68502
68999
  }), jsonErr(400, ErrorResponse$inboundSchema, {
68503
69000
  ctype: "application/hal+json"
68504
69001
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
68505
69002
  if (!result.ok) {
68506
- return [result, { status: "complete", request: req, response }];
69003
+ return [haltIterator(result), {
69004
+ status: "complete",
69005
+ request: req,
69006
+ response
69007
+ }];
68507
69008
  }
68508
- return [result, { status: "complete", request: req, response }];
69009
+ const nextFunc = (responseData) => {
69010
+ let nextURL = dlv(responseData, "_links.next.href");
69011
+ if (typeof nextURL !== "string") {
69012
+ return { next: () => null };
69013
+ }
69014
+ if (nextURL.startsWith("/")) {
69015
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
69016
+ }
69017
+ try {
69018
+ new URL(nextURL);
69019
+ } catch (_error) {
69020
+ return { next: () => null };
69021
+ }
69022
+ const nextVal = () => balanceTransfersList(client, {
69023
+ ...request
69024
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
69025
+ return { next: nextVal, "~next": { url: nextURL } };
69026
+ };
69027
+ const page = { ...result, ...nextFunc(raw) };
69028
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
69029
+ status: "complete",
69030
+ request: req,
69031
+ response
69032
+ }];
68509
69033
  }
68510
69034
  var init_balanceTransfersList = __esm(() => {
68511
69035
  init_encodings();
@@ -68517,6 +69041,7 @@ var init_balanceTransfersList = __esm(() => {
68517
69041
  init_errors4();
68518
69042
  init_operations();
68519
69043
  init_async();
69044
+ init_operations2();
68520
69045
  });
68521
69046
 
68522
69047
  // src/mcp-server/tools/balanceTransfersList.ts
@@ -68542,7 +69067,7 @@ Returns a paginated list of balance transfers associated with your organization.
68542
69067
  isError: true
68543
69068
  };
68544
69069
  }
68545
- const value = result.value;
69070
+ const value = result.value.result;
68546
69071
  return formatResult(value, apiCall);
68547
69072
  }
68548
69073
  };
@@ -68938,7 +69463,7 @@ function capturesList(client, request, options) {
68938
69463
  async function $do12(client, request, options) {
68939
69464
  const parsed = safeParse4(request, (value) => ListCapturesRequest$outboundSchema.parse(value), "Input validation failed");
68940
69465
  if (!parsed.ok) {
68941
- return [parsed, { status: "invalid" }];
69466
+ return [haltIterator(parsed), { status: "invalid" }];
68942
69467
  }
68943
69468
  const payload = parsed.value;
68944
69469
  const body = null;
@@ -68948,8 +69473,8 @@ async function $do12(client, request, options) {
68948
69473
  charEncoding: "percent"
68949
69474
  })
68950
69475
  };
68951
- const path = pathToFunc("/payments/{paymentId}/captures")(pathParams);
68952
- const query = encodeFormQuery({
69476
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments/{paymentId}/captures")(pathParams);
69477
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
68953
69478
  embed: payload.embed,
68954
69479
  from: payload.from,
68955
69480
  limit: payload.limit,
@@ -68983,7 +69508,7 @@ async function $do12(client, request, options) {
68983
69508
  const requestRes = client._createRequest(context, {
68984
69509
  security: requestSecurity,
68985
69510
  method: "GET",
68986
- baseURL: options?.serverURL,
69511
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
68987
69512
  path,
68988
69513
  headers,
68989
69514
  query,
@@ -68992,7 +69517,7 @@ async function $do12(client, request, options) {
68992
69517
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
68993
69518
  }, options);
68994
69519
  if (!requestRes.ok) {
68995
- return [requestRes, { status: "invalid" }];
69520
+ return [haltIterator(requestRes), { status: "invalid" }];
68996
69521
  }
68997
69522
  const req = requestRes.value;
68998
69523
  const doResult = await client._do(req, {
@@ -69002,21 +69527,49 @@ async function $do12(client, request, options) {
69002
69527
  retryCodes: context.retryCodes
69003
69528
  });
69004
69529
  if (!doResult.ok) {
69005
- return [doResult, { status: "request-error", request: req }];
69530
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69006
69531
  }
69007
69532
  const response = doResult.value;
69008
69533
  const responseFields = {
69009
69534
  HttpMeta: { Response: response, Request: req }
69010
69535
  };
69011
- const [result] = await match(json(200, ListCapturesResponse$inboundSchema, {
69012
- ctype: "application/hal+json"
69536
+ const [result, raw] = await match(json(200, ListCapturesResponse$inboundSchema, {
69537
+ ctype: "application/hal+json",
69538
+ key: "Result"
69013
69539
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69014
69540
  ctype: "application/hal+json"
69015
69541
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69016
69542
  if (!result.ok) {
69017
- return [result, { status: "complete", request: req, response }];
69543
+ return [haltIterator(result), {
69544
+ status: "complete",
69545
+ request: req,
69546
+ response
69547
+ }];
69018
69548
  }
69019
- return [result, { status: "complete", request: req, response }];
69549
+ const nextFunc = (responseData) => {
69550
+ let nextURL = dlv(responseData, "_links.next.href");
69551
+ if (typeof nextURL !== "string") {
69552
+ return { next: () => null };
69553
+ }
69554
+ if (nextURL.startsWith("/")) {
69555
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
69556
+ }
69557
+ try {
69558
+ new URL(nextURL);
69559
+ } catch (_error) {
69560
+ return { next: () => null };
69561
+ }
69562
+ const nextVal = () => capturesList(client, {
69563
+ ...request
69564
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
69565
+ return { next: nextVal, "~next": { url: nextURL } };
69566
+ };
69567
+ const page = { ...result, ...nextFunc(raw) };
69568
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
69569
+ status: "complete",
69570
+ request: req,
69571
+ response
69572
+ }];
69020
69573
  }
69021
69574
  var init_capturesList = __esm(() => {
69022
69575
  init_encodings();
@@ -69028,6 +69581,7 @@ var init_capturesList = __esm(() => {
69028
69581
  init_errors4();
69029
69582
  init_operations();
69030
69583
  init_async();
69584
+ init_operations2();
69031
69585
  });
69032
69586
 
69033
69587
  // src/mcp-server/tools/capturesList.ts
@@ -69055,7 +69609,7 @@ The results are paginated.`,
69055
69609
  isError: true
69056
69610
  };
69057
69611
  }
69058
- const value = result.value;
69612
+ const value = result.value.result;
69059
69613
  return formatResult(value, apiCall);
69060
69614
  }
69061
69615
  };
@@ -69068,12 +69622,12 @@ function chargebacksAll(client, request, options) {
69068
69622
  async function $do13(client, request, options) {
69069
69623
  const parsed = safeParse4(request, (value) => ListAllChargebacksRequest$outboundSchema.optional().parse(value), "Input validation failed");
69070
69624
  if (!parsed.ok) {
69071
- return [parsed, { status: "invalid" }];
69625
+ return [haltIterator(parsed), { status: "invalid" }];
69072
69626
  }
69073
69627
  const payload = parsed.value;
69074
69628
  const body = null;
69075
- const path = pathToFunc("/chargebacks")();
69076
- const query = encodeFormQuery({
69629
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/chargebacks")();
69630
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
69077
69631
  embed: payload?.embed,
69078
69632
  from: payload?.from,
69079
69633
  limit: payload?.limit,
@@ -69109,7 +69663,7 @@ async function $do13(client, request, options) {
69109
69663
  const requestRes = client._createRequest(context, {
69110
69664
  security: requestSecurity,
69111
69665
  method: "GET",
69112
- baseURL: options?.serverURL,
69666
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69113
69667
  path,
69114
69668
  headers,
69115
69669
  query,
@@ -69118,7 +69672,7 @@ async function $do13(client, request, options) {
69118
69672
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69119
69673
  }, options);
69120
69674
  if (!requestRes.ok) {
69121
- return [requestRes, { status: "invalid" }];
69675
+ return [haltIterator(requestRes), { status: "invalid" }];
69122
69676
  }
69123
69677
  const req = requestRes.value;
69124
69678
  const doResult = await client._do(req, {
@@ -69128,21 +69682,49 @@ async function $do13(client, request, options) {
69128
69682
  retryCodes: context.retryCodes
69129
69683
  });
69130
69684
  if (!doResult.ok) {
69131
- return [doResult, { status: "request-error", request: req }];
69685
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69132
69686
  }
69133
69687
  const response = doResult.value;
69134
69688
  const responseFields = {
69135
69689
  HttpMeta: { Response: response, Request: req }
69136
69690
  };
69137
- const [result] = await match(json(200, ListAllChargebacksResponse$inboundSchema, {
69138
- ctype: "application/hal+json"
69691
+ const [result, raw] = await match(json(200, ListAllChargebacksResponse$inboundSchema, {
69692
+ ctype: "application/hal+json",
69693
+ key: "Result"
69139
69694
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69140
69695
  ctype: "application/hal+json"
69141
69696
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69142
69697
  if (!result.ok) {
69143
- return [result, { status: "complete", request: req, response }];
69698
+ return [haltIterator(result), {
69699
+ status: "complete",
69700
+ request: req,
69701
+ response
69702
+ }];
69144
69703
  }
69145
- return [result, { status: "complete", request: req, response }];
69704
+ const nextFunc = (responseData) => {
69705
+ let nextURL = dlv(responseData, "_links.next.href");
69706
+ if (typeof nextURL !== "string") {
69707
+ return { next: () => null };
69708
+ }
69709
+ if (nextURL.startsWith("/")) {
69710
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
69711
+ }
69712
+ try {
69713
+ new URL(nextURL);
69714
+ } catch (_error) {
69715
+ return { next: () => null };
69716
+ }
69717
+ const nextVal = () => chargebacksAll(client, {
69718
+ ...request
69719
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
69720
+ return { next: nextVal, "~next": { url: nextURL } };
69721
+ };
69722
+ const page = { ...result, ...nextFunc(raw) };
69723
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
69724
+ status: "complete",
69725
+ request: req,
69726
+ response
69727
+ }];
69146
69728
  }
69147
69729
  var init_chargebacksAll = __esm(() => {
69148
69730
  init_encodings();
@@ -69154,6 +69736,7 @@ var init_chargebacksAll = __esm(() => {
69154
69736
  init_errors4();
69155
69737
  init_operations();
69156
69738
  init_async();
69739
+ init_operations2();
69157
69740
  });
69158
69741
 
69159
69742
  // src/mcp-server/tools/chargebacksAll.ts
@@ -69181,7 +69764,7 @@ The results are paginated.`,
69181
69764
  isError: true
69182
69765
  };
69183
69766
  }
69184
- const value = result.value;
69767
+ const value = result.value.result;
69185
69768
  return formatResult(value, apiCall);
69186
69769
  }
69187
69770
  };
@@ -69325,7 +69908,7 @@ function chargebacksList(client, request, options) {
69325
69908
  async function $do15(client, request, options) {
69326
69909
  const parsed = safeParse4(request, (value) => ListChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
69327
69910
  if (!parsed.ok) {
69328
- return [parsed, { status: "invalid" }];
69911
+ return [haltIterator(parsed), { status: "invalid" }];
69329
69912
  }
69330
69913
  const payload = parsed.value;
69331
69914
  const body = null;
@@ -69335,8 +69918,8 @@ async function $do15(client, request, options) {
69335
69918
  charEncoding: "percent"
69336
69919
  })
69337
69920
  };
69338
- const path = pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
69339
- const query = encodeFormQuery({
69921
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
69922
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
69340
69923
  embed: payload.embed,
69341
69924
  from: payload.from,
69342
69925
  limit: payload.limit,
@@ -69370,7 +69953,7 @@ async function $do15(client, request, options) {
69370
69953
  const requestRes = client._createRequest(context, {
69371
69954
  security: requestSecurity,
69372
69955
  method: "GET",
69373
- baseURL: options?.serverURL,
69956
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69374
69957
  path,
69375
69958
  headers,
69376
69959
  query,
@@ -69379,7 +69962,7 @@ async function $do15(client, request, options) {
69379
69962
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69380
69963
  }, options);
69381
69964
  if (!requestRes.ok) {
69382
- return [requestRes, { status: "invalid" }];
69965
+ return [haltIterator(requestRes), { status: "invalid" }];
69383
69966
  }
69384
69967
  const req = requestRes.value;
69385
69968
  const doResult = await client._do(req, {
@@ -69389,21 +69972,49 @@ async function $do15(client, request, options) {
69389
69972
  retryCodes: context.retryCodes
69390
69973
  });
69391
69974
  if (!doResult.ok) {
69392
- return [doResult, { status: "request-error", request: req }];
69975
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69393
69976
  }
69394
69977
  const response = doResult.value;
69395
69978
  const responseFields = {
69396
69979
  HttpMeta: { Response: response, Request: req }
69397
69980
  };
69398
- const [result] = await match(json(200, ListChargebacksResponse$inboundSchema, {
69399
- ctype: "application/hal+json"
69981
+ const [result, raw] = await match(json(200, ListChargebacksResponse$inboundSchema, {
69982
+ ctype: "application/hal+json",
69983
+ key: "Result"
69400
69984
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69401
69985
  ctype: "application/hal+json"
69402
69986
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69403
69987
  if (!result.ok) {
69404
- return [result, { status: "complete", request: req, response }];
69988
+ return [haltIterator(result), {
69989
+ status: "complete",
69990
+ request: req,
69991
+ response
69992
+ }];
69405
69993
  }
69406
- return [result, { status: "complete", request: req, response }];
69994
+ const nextFunc = (responseData) => {
69995
+ let nextURL = dlv(responseData, "_links.next.href");
69996
+ if (typeof nextURL !== "string") {
69997
+ return { next: () => null };
69998
+ }
69999
+ if (nextURL.startsWith("/")) {
70000
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
70001
+ }
70002
+ try {
70003
+ new URL(nextURL);
70004
+ } catch (_error) {
70005
+ return { next: () => null };
70006
+ }
70007
+ const nextVal = () => chargebacksList(client, {
70008
+ ...request
70009
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
70010
+ return { next: nextVal, "~next": { url: nextURL } };
70011
+ };
70012
+ const page = { ...result, ...nextFunc(raw) };
70013
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
70014
+ status: "complete",
70015
+ request: req,
70016
+ response
70017
+ }];
69407
70018
  }
69408
70019
  var init_chargebacksList = __esm(() => {
69409
70020
  init_encodings();
@@ -69415,6 +70026,7 @@ var init_chargebacksList = __esm(() => {
69415
70026
  init_errors4();
69416
70027
  init_operations();
69417
70028
  init_async();
70029
+ init_operations2();
69418
70030
  });
69419
70031
 
69420
70032
  // src/mcp-server/tools/chargebacksList.ts
@@ -69442,7 +70054,7 @@ The results are paginated.`,
69442
70054
  isError: true
69443
70055
  };
69444
70056
  }
69445
- const value = result.value;
70057
+ const value = result.value.result;
69446
70058
  return formatResult(value, apiCall);
69447
70059
  }
69448
70060
  };
@@ -69751,12 +70363,12 @@ function clientsList(client, request, options) {
69751
70363
  async function $do18(client, request, options) {
69752
70364
  const parsed = safeParse4(request, (value) => ListClientsRequest$outboundSchema.optional().parse(value), "Input validation failed");
69753
70365
  if (!parsed.ok) {
69754
- return [parsed, { status: "invalid" }];
70366
+ return [haltIterator(parsed), { status: "invalid" }];
69755
70367
  }
69756
70368
  const payload = parsed.value;
69757
70369
  const body = null;
69758
- const path = pathToFunc("/clients")();
69759
- const query = encodeFormQuery({
70370
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/clients")();
70371
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
69760
70372
  embed: payload?.embed,
69761
70373
  from: payload?.from,
69762
70374
  limit: payload?.limit
@@ -69789,7 +70401,7 @@ async function $do18(client, request, options) {
69789
70401
  const requestRes = client._createRequest(context, {
69790
70402
  security: requestSecurity,
69791
70403
  method: "GET",
69792
- baseURL: options?.serverURL,
70404
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69793
70405
  path,
69794
70406
  headers,
69795
70407
  query,
@@ -69798,7 +70410,7 @@ async function $do18(client, request, options) {
69798
70410
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69799
70411
  }, options);
69800
70412
  if (!requestRes.ok) {
69801
- return [requestRes, { status: "invalid" }];
70413
+ return [haltIterator(requestRes), { status: "invalid" }];
69802
70414
  }
69803
70415
  const req = requestRes.value;
69804
70416
  const doResult = await client._do(req, {
@@ -69808,21 +70420,49 @@ async function $do18(client, request, options) {
69808
70420
  retryCodes: context.retryCodes
69809
70421
  });
69810
70422
  if (!doResult.ok) {
69811
- return [doResult, { status: "request-error", request: req }];
70423
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69812
70424
  }
69813
70425
  const response = doResult.value;
69814
70426
  const responseFields = {
69815
70427
  HttpMeta: { Response: response, Request: req }
69816
70428
  };
69817
- const [result] = await match(json(200, ListClientsResponse$inboundSchema, {
69818
- ctype: "application/hal+json"
70429
+ const [result, raw] = await match(json(200, ListClientsResponse$inboundSchema, {
70430
+ ctype: "application/hal+json",
70431
+ key: "Result"
69819
70432
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69820
70433
  ctype: "application/hal+json"
69821
70434
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69822
70435
  if (!result.ok) {
69823
- return [result, { status: "complete", request: req, response }];
70436
+ return [haltIterator(result), {
70437
+ status: "complete",
70438
+ request: req,
70439
+ response
70440
+ }];
69824
70441
  }
69825
- return [result, { status: "complete", request: req, response }];
70442
+ const nextFunc = (responseData) => {
70443
+ let nextURL = dlv(responseData, "_links.next.href");
70444
+ if (typeof nextURL !== "string") {
70445
+ return { next: () => null };
70446
+ }
70447
+ if (nextURL.startsWith("/")) {
70448
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
70449
+ }
70450
+ try {
70451
+ new URL(nextURL);
70452
+ } catch (_error) {
70453
+ return { next: () => null };
70454
+ }
70455
+ const nextVal = () => clientsList(client, {
70456
+ ...request
70457
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
70458
+ return { next: nextVal, "~next": { url: nextURL } };
70459
+ };
70460
+ const page = { ...result, ...nextFunc(raw) };
70461
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
70462
+ status: "complete",
70463
+ request: req,
70464
+ response
70465
+ }];
69826
70466
  }
69827
70467
  var init_clientsList = __esm(() => {
69828
70468
  init_encodings();
@@ -69834,6 +70474,7 @@ var init_clientsList = __esm(() => {
69834
70474
  init_errors4();
69835
70475
  init_operations();
69836
70476
  init_async();
70477
+ init_operations2();
69837
70478
  });
69838
70479
 
69839
70480
  // src/mcp-server/tools/clientsList.ts
@@ -69861,7 +70502,7 @@ The results are paginated.`,
69861
70502
  isError: true
69862
70503
  };
69863
70504
  }
69864
- const value = result.value;
70505
+ const value = result.value.result;
69865
70506
  return formatResult(value, apiCall);
69866
70507
  }
69867
70508
  };
@@ -70379,12 +71020,12 @@ function customersList(client, request, options) {
70379
71020
  async function $do23(client, request, options) {
70380
71021
  const parsed = safeParse4(request, (value) => ListCustomersRequest$outboundSchema.optional().parse(value), "Input validation failed");
70381
71022
  if (!parsed.ok) {
70382
- return [parsed, { status: "invalid" }];
71023
+ return [haltIterator(parsed), { status: "invalid" }];
70383
71024
  }
70384
71025
  const payload = parsed.value;
70385
71026
  const body = null;
70386
- const path = pathToFunc("/customers")();
70387
- const query = encodeFormQuery({
71027
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers")();
71028
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
70388
71029
  from: payload?.from,
70389
71030
  limit: payload?.limit,
70390
71031
  sort: payload?.sort,
@@ -70418,7 +71059,7 @@ async function $do23(client, request, options) {
70418
71059
  const requestRes = client._createRequest(context, {
70419
71060
  security: requestSecurity,
70420
71061
  method: "GET",
70421
- baseURL: options?.serverURL,
71062
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
70422
71063
  path,
70423
71064
  headers,
70424
71065
  query,
@@ -70427,7 +71068,7 @@ async function $do23(client, request, options) {
70427
71068
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
70428
71069
  }, options);
70429
71070
  if (!requestRes.ok) {
70430
- return [requestRes, { status: "invalid" }];
71071
+ return [haltIterator(requestRes), { status: "invalid" }];
70431
71072
  }
70432
71073
  const req = requestRes.value;
70433
71074
  const doResult = await client._do(req, {
@@ -70437,21 +71078,49 @@ async function $do23(client, request, options) {
70437
71078
  retryCodes: context.retryCodes
70438
71079
  });
70439
71080
  if (!doResult.ok) {
70440
- return [doResult, { status: "request-error", request: req }];
71081
+ return [haltIterator(doResult), { status: "request-error", request: req }];
70441
71082
  }
70442
71083
  const response = doResult.value;
70443
71084
  const responseFields = {
70444
71085
  HttpMeta: { Response: response, Request: req }
70445
71086
  };
70446
- const [result] = await match(json(200, ListCustomersResponse$inboundSchema, {
70447
- ctype: "application/hal+json"
71087
+ const [result, raw] = await match(json(200, ListCustomersResponse$inboundSchema, {
71088
+ ctype: "application/hal+json",
71089
+ key: "Result"
70448
71090
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
70449
71091
  ctype: "application/hal+json"
70450
71092
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
70451
71093
  if (!result.ok) {
70452
- return [result, { status: "complete", request: req, response }];
71094
+ return [haltIterator(result), {
71095
+ status: "complete",
71096
+ request: req,
71097
+ response
71098
+ }];
70453
71099
  }
70454
- return [result, { status: "complete", request: req, response }];
71100
+ const nextFunc = (responseData) => {
71101
+ let nextURL = dlv(responseData, "_links.next.href");
71102
+ if (typeof nextURL !== "string") {
71103
+ return { next: () => null };
71104
+ }
71105
+ if (nextURL.startsWith("/")) {
71106
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
71107
+ }
71108
+ try {
71109
+ new URL(nextURL);
71110
+ } catch (_error) {
71111
+ return { next: () => null };
71112
+ }
71113
+ const nextVal = () => customersList(client, {
71114
+ ...request
71115
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
71116
+ return { next: nextVal, "~next": { url: nextURL } };
71117
+ };
71118
+ const page = { ...result, ...nextFunc(raw) };
71119
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
71120
+ status: "complete",
71121
+ request: req,
71122
+ response
71123
+ }];
70455
71124
  }
70456
71125
  var init_customersList = __esm(() => {
70457
71126
  init_encodings();
@@ -70463,6 +71132,7 @@ var init_customersList = __esm(() => {
70463
71132
  init_errors4();
70464
71133
  init_operations();
70465
71134
  init_async();
71135
+ init_operations2();
70466
71136
  });
70467
71137
 
70468
71138
  // src/mcp-server/tools/customersList.ts
@@ -70490,7 +71160,7 @@ The results are paginated.`,
70490
71160
  isError: true
70491
71161
  };
70492
71162
  }
70493
- const value = result.value;
71163
+ const value = result.value.result;
70494
71164
  return formatResult(value, apiCall);
70495
71165
  }
70496
71166
  };
@@ -70503,7 +71173,7 @@ function customersListPayments(client, request, options) {
70503
71173
  async function $do24(client, request, options) {
70504
71174
  const parsed = safeParse4(request, (value) => ListCustomerPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
70505
71175
  if (!parsed.ok) {
70506
- return [parsed, { status: "invalid" }];
71176
+ return [haltIterator(parsed), { status: "invalid" }];
70507
71177
  }
70508
71178
  const payload = parsed.value;
70509
71179
  const body = null;
@@ -70513,8 +71183,8 @@ async function $do24(client, request, options) {
70513
71183
  charEncoding: "percent"
70514
71184
  })
70515
71185
  };
70516
- const path = pathToFunc("/customers/{customerId}/payments")(pathParams);
70517
- const query = encodeFormQuery({
71186
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/payments")(pathParams);
71187
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
70518
71188
  from: payload.from,
70519
71189
  limit: payload.limit,
70520
71190
  profileId: payload.profileId ?? client._options.profileId,
@@ -70549,7 +71219,7 @@ async function $do24(client, request, options) {
70549
71219
  const requestRes = client._createRequest(context, {
70550
71220
  security: requestSecurity,
70551
71221
  method: "GET",
70552
- baseURL: options?.serverURL,
71222
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
70553
71223
  path,
70554
71224
  headers,
70555
71225
  query,
@@ -70558,7 +71228,7 @@ async function $do24(client, request, options) {
70558
71228
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
70559
71229
  }, options);
70560
71230
  if (!requestRes.ok) {
70561
- return [requestRes, { status: "invalid" }];
71231
+ return [haltIterator(requestRes), { status: "invalid" }];
70562
71232
  }
70563
71233
  const req = requestRes.value;
70564
71234
  const doResult = await client._do(req, {
@@ -70568,21 +71238,49 @@ async function $do24(client, request, options) {
70568
71238
  retryCodes: context.retryCodes
70569
71239
  });
70570
71240
  if (!doResult.ok) {
70571
- return [doResult, { status: "request-error", request: req }];
71241
+ return [haltIterator(doResult), { status: "request-error", request: req }];
70572
71242
  }
70573
71243
  const response = doResult.value;
70574
71244
  const responseFields = {
70575
71245
  HttpMeta: { Response: response, Request: req }
70576
71246
  };
70577
- const [result] = await match(json(200, ListCustomerPaymentsResponse$inboundSchema, {
70578
- ctype: "application/hal+json"
71247
+ const [result, raw] = await match(json(200, ListCustomerPaymentsResponse$inboundSchema, {
71248
+ ctype: "application/hal+json",
71249
+ key: "Result"
70579
71250
  }), jsonErr(400, ErrorResponse$inboundSchema, {
70580
71251
  ctype: "application/hal+json"
70581
71252
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
70582
71253
  if (!result.ok) {
70583
- return [result, { status: "complete", request: req, response }];
71254
+ return [haltIterator(result), {
71255
+ status: "complete",
71256
+ request: req,
71257
+ response
71258
+ }];
70584
71259
  }
70585
- return [result, { status: "complete", request: req, response }];
71260
+ const nextFunc = (responseData) => {
71261
+ let nextURL = dlv(responseData, "_links.next.href");
71262
+ if (typeof nextURL !== "string") {
71263
+ return { next: () => null };
71264
+ }
71265
+ if (nextURL.startsWith("/")) {
71266
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
71267
+ }
71268
+ try {
71269
+ new URL(nextURL);
71270
+ } catch (_error) {
71271
+ return { next: () => null };
71272
+ }
71273
+ const nextVal = () => customersListPayments(client, {
71274
+ ...request
71275
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
71276
+ return { next: nextVal, "~next": { url: nextURL } };
71277
+ };
71278
+ const page = { ...result, ...nextFunc(raw) };
71279
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
71280
+ status: "complete",
71281
+ request: req,
71282
+ response
71283
+ }];
70586
71284
  }
70587
71285
  var init_customersListPayments = __esm(() => {
70588
71286
  init_encodings();
@@ -70594,6 +71292,7 @@ var init_customersListPayments = __esm(() => {
70594
71292
  init_errors4();
70595
71293
  init_operations();
70596
71294
  init_async();
71295
+ init_operations2();
70597
71296
  });
70598
71297
 
70599
71298
  // src/mcp-server/tools/customersListPayments.ts
@@ -70619,7 +71318,7 @@ Retrieve all payments linked to the customer.`,
70619
71318
  isError: true
70620
71319
  };
70621
71320
  }
70622
- const value = result.value;
71321
+ const value = result.value.result;
70623
71322
  return formatResult(value, apiCall);
70624
71323
  }
70625
71324
  };
@@ -71259,12 +71958,12 @@ function invoicesList(client, request, options) {
71259
71958
  async function $do30(client, request, options) {
71260
71959
  const parsed = safeParse4(request, (value) => ListInvoicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
71261
71960
  if (!parsed.ok) {
71262
- return [parsed, { status: "invalid" }];
71961
+ return [haltIterator(parsed), { status: "invalid" }];
71263
71962
  }
71264
71963
  const payload = parsed.value;
71265
71964
  const body = null;
71266
- const path = pathToFunc("/invoices")();
71267
- const query = encodeFormQuery({
71965
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/invoices")();
71966
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
71268
71967
  from: payload?.from,
71269
71968
  limit: payload?.limit,
71270
71969
  reference: payload?.reference,
@@ -71299,7 +71998,7 @@ async function $do30(client, request, options) {
71299
71998
  const requestRes = client._createRequest(context, {
71300
71999
  security: requestSecurity,
71301
72000
  method: "GET",
71302
- baseURL: options?.serverURL,
72001
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
71303
72002
  path,
71304
72003
  headers,
71305
72004
  query,
@@ -71308,7 +72007,7 @@ async function $do30(client, request, options) {
71308
72007
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
71309
72008
  }, options);
71310
72009
  if (!requestRes.ok) {
71311
- return [requestRes, { status: "invalid" }];
72010
+ return [haltIterator(requestRes), { status: "invalid" }];
71312
72011
  }
71313
72012
  const req = requestRes.value;
71314
72013
  const doResult = await client._do(req, {
@@ -71318,21 +72017,49 @@ async function $do30(client, request, options) {
71318
72017
  retryCodes: context.retryCodes
71319
72018
  });
71320
72019
  if (!doResult.ok) {
71321
- return [doResult, { status: "request-error", request: req }];
72020
+ return [haltIterator(doResult), { status: "request-error", request: req }];
71322
72021
  }
71323
72022
  const response = doResult.value;
71324
72023
  const responseFields = {
71325
72024
  HttpMeta: { Response: response, Request: req }
71326
72025
  };
71327
- const [result] = await match(json(200, ListInvoicesResponse$inboundSchema, {
71328
- ctype: "application/hal+json"
72026
+ const [result, raw] = await match(json(200, ListInvoicesResponse$inboundSchema, {
72027
+ ctype: "application/hal+json",
72028
+ key: "Result"
71329
72029
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
71330
72030
  ctype: "application/hal+json"
71331
72031
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
71332
72032
  if (!result.ok) {
71333
- return [result, { status: "complete", request: req, response }];
72033
+ return [haltIterator(result), {
72034
+ status: "complete",
72035
+ request: req,
72036
+ response
72037
+ }];
71334
72038
  }
71335
- return [result, { status: "complete", request: req, response }];
72039
+ const nextFunc = (responseData) => {
72040
+ let nextURL = dlv(responseData, "_links.next.href");
72041
+ if (typeof nextURL !== "string") {
72042
+ return { next: () => null };
72043
+ }
72044
+ if (nextURL.startsWith("/")) {
72045
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
72046
+ }
72047
+ try {
72048
+ new URL(nextURL);
72049
+ } catch (_error) {
72050
+ return { next: () => null };
72051
+ }
72052
+ const nextVal = () => invoicesList(client, {
72053
+ ...request
72054
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
72055
+ return { next: nextVal, "~next": { url: nextURL } };
72056
+ };
72057
+ const page = { ...result, ...nextFunc(raw) };
72058
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
72059
+ status: "complete",
72060
+ request: req,
72061
+ response
72062
+ }];
71336
72063
  }
71337
72064
  var init_invoicesList = __esm(() => {
71338
72065
  init_encodings();
@@ -71344,6 +72071,7 @@ var init_invoicesList = __esm(() => {
71344
72071
  init_errors4();
71345
72072
  init_operations();
71346
72073
  init_async();
72074
+ init_operations2();
71347
72075
  });
71348
72076
 
71349
72077
  // src/mcp-server/tools/invoicesList.ts
@@ -71372,7 +72100,7 @@ The results are paginated.`,
71372
72100
  isError: true
71373
72101
  };
71374
72102
  }
71375
- const value = result.value;
72103
+ const value = result.value.result;
71376
72104
  return formatResult(value, apiCall);
71377
72105
  }
71378
72106
  };
@@ -71645,7 +72373,7 @@ function mandatesList(client, request, options) {
71645
72373
  async function $do33(client, request, options) {
71646
72374
  const parsed = safeParse4(request, (value) => ListMandatesRequest$outboundSchema.parse(value), "Input validation failed");
71647
72375
  if (!parsed.ok) {
71648
- return [parsed, { status: "invalid" }];
72376
+ return [haltIterator(parsed), { status: "invalid" }];
71649
72377
  }
71650
72378
  const payload = parsed.value;
71651
72379
  const body = null;
@@ -71655,8 +72383,8 @@ async function $do33(client, request, options) {
71655
72383
  charEncoding: "percent"
71656
72384
  })
71657
72385
  };
71658
- const path = pathToFunc("/customers/{customerId}/mandates")(pathParams);
71659
- const query = encodeFormQuery({
72386
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/mandates")(pathParams);
72387
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
71660
72388
  from: payload.from,
71661
72389
  limit: payload.limit,
71662
72390
  sort: payload.sort,
@@ -71690,7 +72418,7 @@ async function $do33(client, request, options) {
71690
72418
  const requestRes = client._createRequest(context, {
71691
72419
  security: requestSecurity,
71692
72420
  method: "GET",
71693
- baseURL: options?.serverURL,
72421
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
71694
72422
  path,
71695
72423
  headers,
71696
72424
  query,
@@ -71699,7 +72427,7 @@ async function $do33(client, request, options) {
71699
72427
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
71700
72428
  }, options);
71701
72429
  if (!requestRes.ok) {
71702
- return [requestRes, { status: "invalid" }];
72430
+ return [haltIterator(requestRes), { status: "invalid" }];
71703
72431
  }
71704
72432
  const req = requestRes.value;
71705
72433
  const doResult = await client._do(req, {
@@ -71709,21 +72437,49 @@ async function $do33(client, request, options) {
71709
72437
  retryCodes: context.retryCodes
71710
72438
  });
71711
72439
  if (!doResult.ok) {
71712
- return [doResult, { status: "request-error", request: req }];
72440
+ return [haltIterator(doResult), { status: "request-error", request: req }];
71713
72441
  }
71714
72442
  const response = doResult.value;
71715
72443
  const responseFields = {
71716
72444
  HttpMeta: { Response: response, Request: req }
71717
72445
  };
71718
- const [result] = await match(json(200, ListMandatesResponse$inboundSchema, {
71719
- ctype: "application/hal+json"
72446
+ const [result, raw] = await match(json(200, ListMandatesResponse$inboundSchema, {
72447
+ ctype: "application/hal+json",
72448
+ key: "Result"
71720
72449
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
71721
72450
  ctype: "application/hal+json"
71722
72451
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
71723
72452
  if (!result.ok) {
71724
- return [result, { status: "complete", request: req, response }];
72453
+ return [haltIterator(result), {
72454
+ status: "complete",
72455
+ request: req,
72456
+ response
72457
+ }];
71725
72458
  }
71726
- return [result, { status: "complete", request: req, response }];
72459
+ const nextFunc = (responseData) => {
72460
+ let nextURL = dlv(responseData, "_links.next.href");
72461
+ if (typeof nextURL !== "string") {
72462
+ return { next: () => null };
72463
+ }
72464
+ if (nextURL.startsWith("/")) {
72465
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
72466
+ }
72467
+ try {
72468
+ new URL(nextURL);
72469
+ } catch (_error) {
72470
+ return { next: () => null };
72471
+ }
72472
+ const nextVal = () => mandatesList(client, {
72473
+ ...request
72474
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
72475
+ return { next: nextVal, "~next": { url: nextURL } };
72476
+ };
72477
+ const page = { ...result, ...nextFunc(raw) };
72478
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
72479
+ status: "complete",
72480
+ request: req,
72481
+ response
72482
+ }];
71727
72483
  }
71728
72484
  var init_mandatesList = __esm(() => {
71729
72485
  init_encodings();
@@ -71735,6 +72491,7 @@ var init_mandatesList = __esm(() => {
71735
72491
  init_errors4();
71736
72492
  init_operations();
71737
72493
  init_async();
72494
+ init_operations2();
71738
72495
  });
71739
72496
 
71740
72497
  // src/mcp-server/tools/mandatesList.ts
@@ -71762,7 +72519,7 @@ The results are paginated.`,
71762
72519
  isError: true
71763
72520
  };
71764
72521
  }
71765
- const value = result.value;
72522
+ const value = result.value.result;
71766
72523
  return formatResult(value, apiCall);
71767
72524
  }
71768
72525
  };
@@ -73269,12 +74026,12 @@ function paymentLinksList(client, request, options) {
73269
74026
  async function $do46(client, request, options) {
73270
74027
  const parsed = safeParse4(request, (value) => ListPaymentLinksRequest$outboundSchema.optional().parse(value), "Input validation failed");
73271
74028
  if (!parsed.ok) {
73272
- return [parsed, { status: "invalid" }];
74029
+ return [haltIterator(parsed), { status: "invalid" }];
73273
74030
  }
73274
74031
  const payload = parsed.value;
73275
74032
  const body = null;
73276
- const path = pathToFunc("/payment-links")();
73277
- const query = encodeFormQuery({
74033
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payment-links")();
74034
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
73278
74035
  from: payload?.from,
73279
74036
  limit: payload?.limit,
73280
74037
  testmode: payload?.testmode ?? client._options.testmode
@@ -73307,7 +74064,7 @@ async function $do46(client, request, options) {
73307
74064
  const requestRes = client._createRequest(context, {
73308
74065
  security: requestSecurity,
73309
74066
  method: "GET",
73310
- baseURL: options?.serverURL,
74067
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
73311
74068
  path,
73312
74069
  headers,
73313
74070
  query,
@@ -73316,7 +74073,7 @@ async function $do46(client, request, options) {
73316
74073
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
73317
74074
  }, options);
73318
74075
  if (!requestRes.ok) {
73319
- return [requestRes, { status: "invalid" }];
74076
+ return [haltIterator(requestRes), { status: "invalid" }];
73320
74077
  }
73321
74078
  const req = requestRes.value;
73322
74079
  const doResult = await client._do(req, {
@@ -73326,21 +74083,49 @@ async function $do46(client, request, options) {
73326
74083
  retryCodes: context.retryCodes
73327
74084
  });
73328
74085
  if (!doResult.ok) {
73329
- return [doResult, { status: "request-error", request: req }];
74086
+ return [haltIterator(doResult), { status: "request-error", request: req }];
73330
74087
  }
73331
74088
  const response = doResult.value;
73332
74089
  const responseFields = {
73333
74090
  HttpMeta: { Response: response, Request: req }
73334
74091
  };
73335
- const [result] = await match(json(200, ListPaymentLinksResponse$inboundSchema, {
73336
- ctype: "application/hal+json"
74092
+ const [result, raw] = await match(json(200, ListPaymentLinksResponse$inboundSchema, {
74093
+ ctype: "application/hal+json",
74094
+ key: "Result"
73337
74095
  }), jsonErr(400, ErrorResponse$inboundSchema, {
73338
74096
  ctype: "application/hal+json"
73339
74097
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
73340
74098
  if (!result.ok) {
73341
- return [result, { status: "complete", request: req, response }];
74099
+ return [haltIterator(result), {
74100
+ status: "complete",
74101
+ request: req,
74102
+ response
74103
+ }];
73342
74104
  }
73343
- return [result, { status: "complete", request: req, response }];
74105
+ const nextFunc = (responseData) => {
74106
+ let nextURL = dlv(responseData, "_links.next.href");
74107
+ if (typeof nextURL !== "string") {
74108
+ return { next: () => null };
74109
+ }
74110
+ if (nextURL.startsWith("/")) {
74111
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
74112
+ }
74113
+ try {
74114
+ new URL(nextURL);
74115
+ } catch (_error) {
74116
+ return { next: () => null };
74117
+ }
74118
+ const nextVal = () => paymentLinksList(client, {
74119
+ ...request
74120
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
74121
+ return { next: nextVal, "~next": { url: nextURL } };
74122
+ };
74123
+ const page = { ...result, ...nextFunc(raw) };
74124
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
74125
+ status: "complete",
74126
+ request: req,
74127
+ response
74128
+ }];
73344
74129
  }
73345
74130
  var init_paymentLinksList = __esm(() => {
73346
74131
  init_encodings();
@@ -73352,6 +74137,7 @@ var init_paymentLinksList = __esm(() => {
73352
74137
  init_errors4();
73353
74138
  init_operations();
73354
74139
  init_async();
74140
+ init_operations2();
73355
74141
  });
73356
74142
 
73357
74143
  // src/mcp-server/tools/paymentLinksList.ts
@@ -73379,7 +74165,7 @@ The results are paginated.`,
73379
74165
  isError: true
73380
74166
  };
73381
74167
  }
73382
- const value = result.value;
74168
+ const value = result.value.result;
73383
74169
  return formatResult(value, apiCall);
73384
74170
  }
73385
74171
  };
@@ -73392,7 +74178,7 @@ function paymentLinksListPayments(client, request, options) {
73392
74178
  async function $do47(client, request, options) {
73393
74179
  const parsed = safeParse4(request, (value) => GetPaymentLinkPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
73394
74180
  if (!parsed.ok) {
73395
- return [parsed, { status: "invalid" }];
74181
+ return [haltIterator(parsed), { status: "invalid" }];
73396
74182
  }
73397
74183
  const payload = parsed.value;
73398
74184
  const body = null;
@@ -73402,8 +74188,8 @@ async function $do47(client, request, options) {
73402
74188
  charEncoding: "percent"
73403
74189
  })
73404
74190
  };
73405
- const path = pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
73406
- const query = encodeFormQuery({
74191
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
74192
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
73407
74193
  from: payload.from,
73408
74194
  limit: payload.limit,
73409
74195
  sort: payload.sort,
@@ -73437,7 +74223,7 @@ async function $do47(client, request, options) {
73437
74223
  const requestRes = client._createRequest(context, {
73438
74224
  security: requestSecurity,
73439
74225
  method: "GET",
73440
- baseURL: options?.serverURL,
74226
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
73441
74227
  path,
73442
74228
  headers,
73443
74229
  query,
@@ -73446,7 +74232,7 @@ async function $do47(client, request, options) {
73446
74232
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
73447
74233
  }, options);
73448
74234
  if (!requestRes.ok) {
73449
- return [requestRes, { status: "invalid" }];
74235
+ return [haltIterator(requestRes), { status: "invalid" }];
73450
74236
  }
73451
74237
  const req = requestRes.value;
73452
74238
  const doResult = await client._do(req, {
@@ -73456,21 +74242,49 @@ async function $do47(client, request, options) {
73456
74242
  retryCodes: context.retryCodes
73457
74243
  });
73458
74244
  if (!doResult.ok) {
73459
- return [doResult, { status: "request-error", request: req }];
74245
+ return [haltIterator(doResult), { status: "request-error", request: req }];
73460
74246
  }
73461
74247
  const response = doResult.value;
73462
74248
  const responseFields = {
73463
74249
  HttpMeta: { Response: response, Request: req }
73464
74250
  };
73465
- const [result] = await match(json(200, GetPaymentLinkPaymentsResponse$inboundSchema, {
73466
- ctype: "application/hal+json"
74251
+ const [result, raw] = await match(json(200, GetPaymentLinkPaymentsResponse$inboundSchema, {
74252
+ ctype: "application/hal+json",
74253
+ key: "Result"
73467
74254
  }), jsonErr(400, ErrorResponse$inboundSchema, {
73468
74255
  ctype: "application/hal+json"
73469
74256
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
73470
74257
  if (!result.ok) {
73471
- return [result, { status: "complete", request: req, response }];
74258
+ return [haltIterator(result), {
74259
+ status: "complete",
74260
+ request: req,
74261
+ response
74262
+ }];
73472
74263
  }
73473
- return [result, { status: "complete", request: req, response }];
74264
+ const nextFunc = (responseData) => {
74265
+ let nextURL = dlv(responseData, "_links.next.href");
74266
+ if (typeof nextURL !== "string") {
74267
+ return { next: () => null };
74268
+ }
74269
+ if (nextURL.startsWith("/")) {
74270
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
74271
+ }
74272
+ try {
74273
+ new URL(nextURL);
74274
+ } catch (_error) {
74275
+ return { next: () => null };
74276
+ }
74277
+ const nextVal = () => paymentLinksListPayments(client, {
74278
+ ...request
74279
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
74280
+ return { next: nextVal, "~next": { url: nextURL } };
74281
+ };
74282
+ const page = { ...result, ...nextFunc(raw) };
74283
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
74284
+ status: "complete",
74285
+ request: req,
74286
+ response
74287
+ }];
73474
74288
  }
73475
74289
  var init_paymentLinksListPayments = __esm(() => {
73476
74290
  init_encodings();
@@ -73482,6 +74296,7 @@ var init_paymentLinksListPayments = __esm(() => {
73482
74296
  init_errors4();
73483
74297
  init_operations();
73484
74298
  init_async();
74299
+ init_operations2();
73485
74300
  });
73486
74301
 
73487
74302
  // src/mcp-server/tools/paymentLinksListPayments.ts
@@ -73509,7 +74324,7 @@ The results are paginated.`,
73509
74324
  isError: true
73510
74325
  };
73511
74326
  }
73512
- const value = result.value;
74327
+ const value = result.value.result;
73513
74328
  return formatResult(value, apiCall);
73514
74329
  }
73515
74330
  };
@@ -74037,12 +74852,12 @@ function paymentsList(client, request, options) {
74037
74852
  async function $do52(client, request, options) {
74038
74853
  const parsed = safeParse4(request, (value) => ListPaymentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
74039
74854
  if (!parsed.ok) {
74040
- return [parsed, { status: "invalid" }];
74855
+ return [haltIterator(parsed), { status: "invalid" }];
74041
74856
  }
74042
74857
  const payload = parsed.value;
74043
74858
  const body = null;
74044
- const path = pathToFunc("/payments")();
74045
- const query = encodeFormQuery({
74859
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments")();
74860
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
74046
74861
  from: payload?.from,
74047
74862
  limit: payload?.limit,
74048
74863
  profileId: payload?.profileId ?? client._options.profileId,
@@ -74077,7 +74892,7 @@ async function $do52(client, request, options) {
74077
74892
  const requestRes = client._createRequest(context, {
74078
74893
  security: requestSecurity,
74079
74894
  method: "GET",
74080
- baseURL: options?.serverURL,
74895
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
74081
74896
  path,
74082
74897
  headers,
74083
74898
  query,
@@ -74086,7 +74901,7 @@ async function $do52(client, request, options) {
74086
74901
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
74087
74902
  }, options);
74088
74903
  if (!requestRes.ok) {
74089
- return [requestRes, { status: "invalid" }];
74904
+ return [haltIterator(requestRes), { status: "invalid" }];
74090
74905
  }
74091
74906
  const req = requestRes.value;
74092
74907
  const doResult = await client._do(req, {
@@ -74096,21 +74911,49 @@ async function $do52(client, request, options) {
74096
74911
  retryCodes: context.retryCodes
74097
74912
  });
74098
74913
  if (!doResult.ok) {
74099
- return [doResult, { status: "request-error", request: req }];
74914
+ return [haltIterator(doResult), { status: "request-error", request: req }];
74100
74915
  }
74101
74916
  const response = doResult.value;
74102
74917
  const responseFields = {
74103
74918
  HttpMeta: { Response: response, Request: req }
74104
74919
  };
74105
- const [result] = await match(json(200, ListPaymentsResponse$inboundSchema, {
74106
- ctype: "application/hal+json"
74920
+ const [result, raw] = await match(json(200, ListPaymentsResponse$inboundSchema, {
74921
+ ctype: "application/hal+json",
74922
+ key: "Result"
74107
74923
  }), jsonErr(400, ErrorResponse$inboundSchema, {
74108
74924
  ctype: "application/hal+json"
74109
74925
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
74110
74926
  if (!result.ok) {
74111
- return [result, { status: "complete", request: req, response }];
74927
+ return [haltIterator(result), {
74928
+ status: "complete",
74929
+ request: req,
74930
+ response
74931
+ }];
74112
74932
  }
74113
- return [result, { status: "complete", request: req, response }];
74933
+ const nextFunc = (responseData) => {
74934
+ let nextURL = dlv(responseData, "_links.next.href");
74935
+ if (typeof nextURL !== "string") {
74936
+ return { next: () => null };
74937
+ }
74938
+ if (nextURL.startsWith("/")) {
74939
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
74940
+ }
74941
+ try {
74942
+ new URL(nextURL);
74943
+ } catch (_error) {
74944
+ return { next: () => null };
74945
+ }
74946
+ const nextVal = () => paymentsList(client, {
74947
+ ...request
74948
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
74949
+ return { next: nextVal, "~next": { url: nextURL } };
74950
+ };
74951
+ const page = { ...result, ...nextFunc(raw) };
74952
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
74953
+ status: "complete",
74954
+ request: req,
74955
+ response
74956
+ }];
74114
74957
  }
74115
74958
  var init_paymentsList = __esm(() => {
74116
74959
  init_encodings();
@@ -74122,6 +74965,7 @@ var init_paymentsList = __esm(() => {
74122
74965
  init_errors4();
74123
74966
  init_operations();
74124
74967
  init_async();
74968
+ init_operations2();
74125
74969
  });
74126
74970
 
74127
74971
  // src/mcp-server/tools/paymentsList.ts
@@ -74149,7 +74993,7 @@ The results are paginated.`,
74149
74993
  isError: true
74150
74994
  };
74151
74995
  }
74152
- const value = result.value;
74996
+ const value = result.value.result;
74153
74997
  return formatResult(value, apiCall);
74154
74998
  }
74155
74999
  };
@@ -75138,12 +75982,12 @@ function profilesList(client, request, options) {
75138
75982
  async function $do61(client, request, options) {
75139
75983
  const parsed = safeParse4(request, (value) => ListProfilesRequest$outboundSchema.optional().parse(value), "Input validation failed");
75140
75984
  if (!parsed.ok) {
75141
- return [parsed, { status: "invalid" }];
75985
+ return [haltIterator(parsed), { status: "invalid" }];
75142
75986
  }
75143
75987
  const payload = parsed.value;
75144
75988
  const body = null;
75145
- const path = pathToFunc("/profiles")();
75146
- const query = encodeFormQuery({
75989
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/profiles")();
75990
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
75147
75991
  from: payload?.from,
75148
75992
  limit: payload?.limit
75149
75993
  });
@@ -75175,7 +76019,7 @@ async function $do61(client, request, options) {
75175
76019
  const requestRes = client._createRequest(context, {
75176
76020
  security: requestSecurity,
75177
76021
  method: "GET",
75178
- baseURL: options?.serverURL,
76022
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
75179
76023
  path,
75180
76024
  headers,
75181
76025
  query,
@@ -75184,7 +76028,7 @@ async function $do61(client, request, options) {
75184
76028
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
75185
76029
  }, options);
75186
76030
  if (!requestRes.ok) {
75187
- return [requestRes, { status: "invalid" }];
76031
+ return [haltIterator(requestRes), { status: "invalid" }];
75188
76032
  }
75189
76033
  const req = requestRes.value;
75190
76034
  const doResult = await client._do(req, {
@@ -75194,21 +76038,49 @@ async function $do61(client, request, options) {
75194
76038
  retryCodes: context.retryCodes
75195
76039
  });
75196
76040
  if (!doResult.ok) {
75197
- return [doResult, { status: "request-error", request: req }];
76041
+ return [haltIterator(doResult), { status: "request-error", request: req }];
75198
76042
  }
75199
76043
  const response = doResult.value;
75200
76044
  const responseFields = {
75201
76045
  HttpMeta: { Response: response, Request: req }
75202
76046
  };
75203
- const [result] = await match(json(200, ListProfilesResponse$inboundSchema, {
75204
- ctype: "application/hal+json"
76047
+ const [result, raw] = await match(json(200, ListProfilesResponse$inboundSchema, {
76048
+ ctype: "application/hal+json",
76049
+ key: "Result"
75205
76050
  }), jsonErr(400, ErrorResponse$inboundSchema, {
75206
76051
  ctype: "application/hal+json"
75207
76052
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75208
76053
  if (!result.ok) {
75209
- return [result, { status: "complete", request: req, response }];
76054
+ return [haltIterator(result), {
76055
+ status: "complete",
76056
+ request: req,
76057
+ response
76058
+ }];
75210
76059
  }
75211
- return [result, { status: "complete", request: req, response }];
76060
+ const nextFunc = (responseData) => {
76061
+ let nextURL = dlv(responseData, "_links.next.href");
76062
+ if (typeof nextURL !== "string") {
76063
+ return { next: () => null };
76064
+ }
76065
+ if (nextURL.startsWith("/")) {
76066
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
76067
+ }
76068
+ try {
76069
+ new URL(nextURL);
76070
+ } catch (_error) {
76071
+ return { next: () => null };
76072
+ }
76073
+ const nextVal = () => profilesList(client, {
76074
+ ...request
76075
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
76076
+ return { next: nextVal, "~next": { url: nextURL } };
76077
+ };
76078
+ const page = { ...result, ...nextFunc(raw) };
76079
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
76080
+ status: "complete",
76081
+ request: req,
76082
+ response
76083
+ }];
75212
76084
  }
75213
76085
  var init_profilesList = __esm(() => {
75214
76086
  init_encodings();
@@ -75220,6 +76092,7 @@ var init_profilesList = __esm(() => {
75220
76092
  init_errors4();
75221
76093
  init_operations();
75222
76094
  init_async();
76095
+ init_operations2();
75223
76096
  });
75224
76097
 
75225
76098
  // src/mcp-server/tools/profilesList.ts
@@ -75247,7 +76120,7 @@ The results are paginated.`,
75247
76120
  isError: true
75248
76121
  };
75249
76122
  }
75250
- const value = result.value;
76123
+ const value = result.value.result;
75251
76124
  return formatResult(value, apiCall);
75252
76125
  }
75253
76126
  };
@@ -75386,12 +76259,12 @@ function refundsAll(client, request, options) {
75386
76259
  async function $do63(client, request, options) {
75387
76260
  const parsed = safeParse4(request, (value) => ListAllRefundsRequest$outboundSchema.optional().parse(value), "Input validation failed");
75388
76261
  if (!parsed.ok) {
75389
- return [parsed, { status: "invalid" }];
76262
+ return [haltIterator(parsed), { status: "invalid" }];
75390
76263
  }
75391
76264
  const payload = parsed.value;
75392
76265
  const body = null;
75393
- const path = pathToFunc("/refunds")();
75394
- const query = encodeFormQuery({
76266
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/refunds")();
76267
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
75395
76268
  embed: payload?.embed,
75396
76269
  from: payload?.from,
75397
76270
  limit: payload?.limit,
@@ -75427,7 +76300,7 @@ async function $do63(client, request, options) {
75427
76300
  const requestRes = client._createRequest(context, {
75428
76301
  security: requestSecurity,
75429
76302
  method: "GET",
75430
- baseURL: options?.serverURL,
76303
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
75431
76304
  path,
75432
76305
  headers,
75433
76306
  query,
@@ -75436,7 +76309,7 @@ async function $do63(client, request, options) {
75436
76309
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
75437
76310
  }, options);
75438
76311
  if (!requestRes.ok) {
75439
- return [requestRes, { status: "invalid" }];
76312
+ return [haltIterator(requestRes), { status: "invalid" }];
75440
76313
  }
75441
76314
  const req = requestRes.value;
75442
76315
  const doResult = await client._do(req, {
@@ -75446,21 +76319,49 @@ async function $do63(client, request, options) {
75446
76319
  retryCodes: context.retryCodes
75447
76320
  });
75448
76321
  if (!doResult.ok) {
75449
- return [doResult, { status: "request-error", request: req }];
76322
+ return [haltIterator(doResult), { status: "request-error", request: req }];
75450
76323
  }
75451
76324
  const response = doResult.value;
75452
76325
  const responseFields = {
75453
76326
  HttpMeta: { Response: response, Request: req }
75454
76327
  };
75455
- const [result] = await match(json(200, ListAllRefundsResponse$inboundSchema, {
75456
- ctype: "application/hal+json"
76328
+ const [result, raw] = await match(json(200, ListAllRefundsResponse$inboundSchema, {
76329
+ ctype: "application/hal+json",
76330
+ key: "Result"
75457
76331
  }), jsonErr(400, ErrorResponse$inboundSchema, {
75458
76332
  ctype: "application/hal+json"
75459
76333
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75460
76334
  if (!result.ok) {
75461
- return [result, { status: "complete", request: req, response }];
76335
+ return [haltIterator(result), {
76336
+ status: "complete",
76337
+ request: req,
76338
+ response
76339
+ }];
75462
76340
  }
75463
- return [result, { status: "complete", request: req, response }];
76341
+ const nextFunc = (responseData) => {
76342
+ let nextURL = dlv(responseData, "_links.next.href");
76343
+ if (typeof nextURL !== "string") {
76344
+ return { next: () => null };
76345
+ }
76346
+ if (nextURL.startsWith("/")) {
76347
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
76348
+ }
76349
+ try {
76350
+ new URL(nextURL);
76351
+ } catch (_error) {
76352
+ return { next: () => null };
76353
+ }
76354
+ const nextVal = () => refundsAll(client, {
76355
+ ...request
76356
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
76357
+ return { next: nextVal, "~next": { url: nextURL } };
76358
+ };
76359
+ const page = { ...result, ...nextFunc(raw) };
76360
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
76361
+ status: "complete",
76362
+ request: req,
76363
+ response
76364
+ }];
75464
76365
  }
75465
76366
  var init_refundsAll = __esm(() => {
75466
76367
  init_encodings();
@@ -75472,6 +76373,7 @@ var init_refundsAll = __esm(() => {
75472
76373
  init_errors4();
75473
76374
  init_operations();
75474
76375
  init_async();
76376
+ init_operations2();
75475
76377
  });
75476
76378
 
75477
76379
  // src/mcp-server/tools/refundsAll.ts
@@ -75499,7 +76401,7 @@ The results are paginated.`,
75499
76401
  isError: true
75500
76402
  };
75501
76403
  }
75502
- const value = result.value;
76404
+ const value = result.value.result;
75503
76405
  return formatResult(value, apiCall);
75504
76406
  }
75505
76407
  };
@@ -75898,7 +76800,7 @@ function refundsList(client, request, options) {
75898
76800
  async function $do67(client, request, options) {
75899
76801
  const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
75900
76802
  if (!parsed.ok) {
75901
- return [parsed, { status: "invalid" }];
76803
+ return [haltIterator(parsed), { status: "invalid" }];
75902
76804
  }
75903
76805
  const payload = parsed.value;
75904
76806
  const body = null;
@@ -75908,8 +76810,8 @@ async function $do67(client, request, options) {
75908
76810
  charEncoding: "percent"
75909
76811
  })
75910
76812
  };
75911
- const path = pathToFunc("/payments/{paymentId}/refunds")(pathParams);
75912
- const query = encodeFormQuery({
76813
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments/{paymentId}/refunds")(pathParams);
76814
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
75913
76815
  embed: payload.embed,
75914
76816
  from: payload.from,
75915
76817
  limit: payload.limit,
@@ -75943,7 +76845,7 @@ async function $do67(client, request, options) {
75943
76845
  const requestRes = client._createRequest(context, {
75944
76846
  security: requestSecurity,
75945
76847
  method: "GET",
75946
- baseURL: options?.serverURL,
76848
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
75947
76849
  path,
75948
76850
  headers,
75949
76851
  query,
@@ -75952,7 +76854,7 @@ async function $do67(client, request, options) {
75952
76854
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
75953
76855
  }, options);
75954
76856
  if (!requestRes.ok) {
75955
- return [requestRes, { status: "invalid" }];
76857
+ return [haltIterator(requestRes), { status: "invalid" }];
75956
76858
  }
75957
76859
  const req = requestRes.value;
75958
76860
  const doResult = await client._do(req, {
@@ -75962,21 +76864,49 @@ async function $do67(client, request, options) {
75962
76864
  retryCodes: context.retryCodes
75963
76865
  });
75964
76866
  if (!doResult.ok) {
75965
- return [doResult, { status: "request-error", request: req }];
76867
+ return [haltIterator(doResult), { status: "request-error", request: req }];
75966
76868
  }
75967
76869
  const response = doResult.value;
75968
76870
  const responseFields = {
75969
76871
  HttpMeta: { Response: response, Request: req }
75970
76872
  };
75971
- const [result] = await match(json(200, ListRefundsResponse$inboundSchema, {
75972
- ctype: "application/hal+json"
76873
+ const [result, raw] = await match(json(200, ListRefundsResponse$inboundSchema, {
76874
+ ctype: "application/hal+json",
76875
+ key: "Result"
75973
76876
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
75974
76877
  ctype: "application/hal+json"
75975
76878
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75976
76879
  if (!result.ok) {
75977
- return [result, { status: "complete", request: req, response }];
76880
+ return [haltIterator(result), {
76881
+ status: "complete",
76882
+ request: req,
76883
+ response
76884
+ }];
75978
76885
  }
75979
- return [result, { status: "complete", request: req, response }];
76886
+ const nextFunc = (responseData) => {
76887
+ let nextURL = dlv(responseData, "_links.next.href");
76888
+ if (typeof nextURL !== "string") {
76889
+ return { next: () => null };
76890
+ }
76891
+ if (nextURL.startsWith("/")) {
76892
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
76893
+ }
76894
+ try {
76895
+ new URL(nextURL);
76896
+ } catch (_error) {
76897
+ return { next: () => null };
76898
+ }
76899
+ const nextVal = () => refundsList(client, {
76900
+ ...request
76901
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
76902
+ return { next: nextVal, "~next": { url: nextURL } };
76903
+ };
76904
+ const page = { ...result, ...nextFunc(raw) };
76905
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
76906
+ status: "complete",
76907
+ request: req,
76908
+ response
76909
+ }];
75980
76910
  }
75981
76911
  var init_refundsList = __esm(() => {
75982
76912
  init_encodings();
@@ -75988,6 +76918,7 @@ var init_refundsList = __esm(() => {
75988
76918
  init_errors4();
75989
76919
  init_operations();
75990
76920
  init_async();
76921
+ init_operations2();
75991
76922
  });
75992
76923
 
75993
76924
  // src/mcp-server/tools/refundsList.ts
@@ -76015,7 +76946,7 @@ The results are paginated.`,
76015
76946
  isError: true
76016
76947
  };
76017
76948
  }
76018
- const value = result.value;
76949
+ const value = result.value.result;
76019
76950
  return formatResult(value, apiCall);
76020
76951
  }
76021
76952
  };
@@ -76408,12 +77339,12 @@ function salesInvoicesList(client, request, options) {
76408
77339
  async function $do71(client, request, options) {
76409
77340
  const parsed = safeParse4(request, (value) => ListSalesInvoicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
76410
77341
  if (!parsed.ok) {
76411
- return [parsed, { status: "invalid" }];
77342
+ return [haltIterator(parsed), { status: "invalid" }];
76412
77343
  }
76413
77344
  const payload = parsed.value;
76414
77345
  const body = null;
76415
- const path = pathToFunc("/sales-invoices")();
76416
- const query = encodeFormQuery({
77346
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/sales-invoices")();
77347
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
76417
77348
  from: payload?.from,
76418
77349
  limit: payload?.limit,
76419
77350
  testmode: payload?.testmode ?? client._options.testmode
@@ -76446,7 +77377,7 @@ async function $do71(client, request, options) {
76446
77377
  const requestRes = client._createRequest(context, {
76447
77378
  security: requestSecurity,
76448
77379
  method: "GET",
76449
- baseURL: options?.serverURL,
77380
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
76450
77381
  path,
76451
77382
  headers,
76452
77383
  query,
@@ -76455,7 +77386,7 @@ async function $do71(client, request, options) {
76455
77386
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
76456
77387
  }, options);
76457
77388
  if (!requestRes.ok) {
76458
- return [requestRes, { status: "invalid" }];
77389
+ return [haltIterator(requestRes), { status: "invalid" }];
76459
77390
  }
76460
77391
  const req = requestRes.value;
76461
77392
  const doResult = await client._do(req, {
@@ -76465,21 +77396,49 @@ async function $do71(client, request, options) {
76465
77396
  retryCodes: context.retryCodes
76466
77397
  });
76467
77398
  if (!doResult.ok) {
76468
- return [doResult, { status: "request-error", request: req }];
77399
+ return [haltIterator(doResult), { status: "request-error", request: req }];
76469
77400
  }
76470
77401
  const response = doResult.value;
76471
77402
  const responseFields = {
76472
77403
  HttpMeta: { Response: response, Request: req }
76473
77404
  };
76474
- const [result] = await match(json(200, ListSalesInvoicesResponse$inboundSchema, {
76475
- ctype: "application/hal+json"
77405
+ const [result, raw] = await match(json(200, ListSalesInvoicesResponse$inboundSchema, {
77406
+ ctype: "application/hal+json",
77407
+ key: "Result"
76476
77408
  }), jsonErr(400, ErrorResponse$inboundSchema, {
76477
77409
  ctype: "application/hal+json"
76478
77410
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
76479
77411
  if (!result.ok) {
76480
- return [result, { status: "complete", request: req, response }];
77412
+ return [haltIterator(result), {
77413
+ status: "complete",
77414
+ request: req,
77415
+ response
77416
+ }];
76481
77417
  }
76482
- return [result, { status: "complete", request: req, response }];
77418
+ const nextFunc = (responseData) => {
77419
+ let nextURL = dlv(responseData, "_links.next.href");
77420
+ if (typeof nextURL !== "string") {
77421
+ return { next: () => null };
77422
+ }
77423
+ if (nextURL.startsWith("/")) {
77424
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
77425
+ }
77426
+ try {
77427
+ new URL(nextURL);
77428
+ } catch (_error) {
77429
+ return { next: () => null };
77430
+ }
77431
+ const nextVal = () => salesInvoicesList(client, {
77432
+ ...request
77433
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
77434
+ return { next: nextVal, "~next": { url: nextURL } };
77435
+ };
77436
+ const page = { ...result, ...nextFunc(raw) };
77437
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
77438
+ status: "complete",
77439
+ request: req,
77440
+ response
77441
+ }];
76483
77442
  }
76484
77443
  var init_salesInvoicesList = __esm(() => {
76485
77444
  init_encodings();
@@ -76491,6 +77450,7 @@ var init_salesInvoicesList = __esm(() => {
76491
77450
  init_errors4();
76492
77451
  init_operations();
76493
77452
  init_async();
77453
+ init_operations2();
76494
77454
  });
76495
77455
 
76496
77456
  // src/mcp-server/tools/salesInvoicesList.ts
@@ -76522,7 +77482,7 @@ The results are paginated.`,
76522
77482
  isError: true
76523
77483
  };
76524
77484
  }
76525
- const value = result.value;
77485
+ const value = result.value.result;
76526
77486
  return formatResult(value, apiCall);
76527
77487
  }
76528
77488
  };
@@ -77030,12 +77990,12 @@ function settlementsList(client, request, options) {
77030
77990
  async function $do76(client, request, options) {
77031
77991
  const parsed = safeParse4(request, (value) => ListSettlementsRequest$outboundSchema.optional().parse(value), "Input validation failed");
77032
77992
  if (!parsed.ok) {
77033
- return [parsed, { status: "invalid" }];
77993
+ return [haltIterator(parsed), { status: "invalid" }];
77034
77994
  }
77035
77995
  const payload = parsed.value;
77036
77996
  const body = null;
77037
- const path = pathToFunc("/settlements")();
77038
- const query = encodeFormQuery({
77997
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements")();
77998
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77039
77999
  balanceId: payload?.balanceId,
77040
78000
  currencies: payload?.currencies,
77041
78001
  from: payload?.from,
@@ -77071,7 +78031,7 @@ async function $do76(client, request, options) {
77071
78031
  const requestRes = client._createRequest(context, {
77072
78032
  security: requestSecurity,
77073
78033
  method: "GET",
77074
- baseURL: options?.serverURL,
78034
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77075
78035
  path,
77076
78036
  headers,
77077
78037
  query,
@@ -77080,7 +78040,7 @@ async function $do76(client, request, options) {
77080
78040
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77081
78041
  }, options);
77082
78042
  if (!requestRes.ok) {
77083
- return [requestRes, { status: "invalid" }];
78043
+ return [haltIterator(requestRes), { status: "invalid" }];
77084
78044
  }
77085
78045
  const req = requestRes.value;
77086
78046
  const doResult = await client._do(req, {
@@ -77090,21 +78050,49 @@ async function $do76(client, request, options) {
77090
78050
  retryCodes: context.retryCodes
77091
78051
  });
77092
78052
  if (!doResult.ok) {
77093
- return [doResult, { status: "request-error", request: req }];
78053
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77094
78054
  }
77095
78055
  const response = doResult.value;
77096
78056
  const responseFields = {
77097
78057
  HttpMeta: { Response: response, Request: req }
77098
78058
  };
77099
- const [result] = await match(json(200, ListSettlementsResponse$inboundSchema, {
77100
- ctype: "application/hal+json"
78059
+ const [result, raw] = await match(json(200, ListSettlementsResponse$inboundSchema, {
78060
+ ctype: "application/hal+json",
78061
+ key: "Result"
77101
78062
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77102
78063
  ctype: "application/hal+json"
77103
78064
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77104
78065
  if (!result.ok) {
77105
- return [result, { status: "complete", request: req, response }];
78066
+ return [haltIterator(result), {
78067
+ status: "complete",
78068
+ request: req,
78069
+ response
78070
+ }];
77106
78071
  }
77107
- return [result, { status: "complete", request: req, response }];
78072
+ const nextFunc = (responseData) => {
78073
+ let nextURL = dlv(responseData, "_links.next.href");
78074
+ if (typeof nextURL !== "string") {
78075
+ return { next: () => null };
78076
+ }
78077
+ if (nextURL.startsWith("/")) {
78078
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78079
+ }
78080
+ try {
78081
+ new URL(nextURL);
78082
+ } catch (_error) {
78083
+ return { next: () => null };
78084
+ }
78085
+ const nextVal = () => settlementsList(client, {
78086
+ ...request
78087
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78088
+ return { next: nextVal, "~next": { url: nextURL } };
78089
+ };
78090
+ const page = { ...result, ...nextFunc(raw) };
78091
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78092
+ status: "complete",
78093
+ request: req,
78094
+ response
78095
+ }];
77108
78096
  }
77109
78097
  var init_settlementsList = __esm(() => {
77110
78098
  init_encodings();
@@ -77116,6 +78104,7 @@ var init_settlementsList = __esm(() => {
77116
78104
  init_errors4();
77117
78105
  init_operations();
77118
78106
  init_async();
78107
+ init_operations2();
77119
78108
  });
77120
78109
 
77121
78110
  // src/mcp-server/tools/settlementsList.ts
@@ -77143,7 +78132,7 @@ The results are paginated.`,
77143
78132
  isError: true
77144
78133
  };
77145
78134
  }
77146
- const value = result.value;
78135
+ const value = result.value.result;
77147
78136
  return formatResult(value, apiCall);
77148
78137
  }
77149
78138
  };
@@ -77156,7 +78145,7 @@ function settlementsListCaptures(client, request, options) {
77156
78145
  async function $do77(client, request, options) {
77157
78146
  const parsed = safeParse4(request, (value) => ListSettlementCapturesRequest$outboundSchema.parse(value), "Input validation failed");
77158
78147
  if (!parsed.ok) {
77159
- return [parsed, { status: "invalid" }];
78148
+ return [haltIterator(parsed), { status: "invalid" }];
77160
78149
  }
77161
78150
  const payload = parsed.value;
77162
78151
  const body = null;
@@ -77166,8 +78155,8 @@ async function $do77(client, request, options) {
77166
78155
  charEncoding: "percent"
77167
78156
  })
77168
78157
  };
77169
- const path = pathToFunc("/settlements/{settlementId}/captures")(pathParams);
77170
- const query = encodeFormQuery({
78158
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/captures")(pathParams);
78159
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77171
78160
  embed: payload.embed,
77172
78161
  from: payload.from,
77173
78162
  limit: payload.limit,
@@ -77201,7 +78190,7 @@ async function $do77(client, request, options) {
77201
78190
  const requestRes = client._createRequest(context, {
77202
78191
  security: requestSecurity,
77203
78192
  method: "GET",
77204
- baseURL: options?.serverURL,
78193
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77205
78194
  path,
77206
78195
  headers,
77207
78196
  query,
@@ -77210,7 +78199,7 @@ async function $do77(client, request, options) {
77210
78199
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77211
78200
  }, options);
77212
78201
  if (!requestRes.ok) {
77213
- return [requestRes, { status: "invalid" }];
78202
+ return [haltIterator(requestRes), { status: "invalid" }];
77214
78203
  }
77215
78204
  const req = requestRes.value;
77216
78205
  const doResult = await client._do(req, {
@@ -77220,21 +78209,49 @@ async function $do77(client, request, options) {
77220
78209
  retryCodes: context.retryCodes
77221
78210
  });
77222
78211
  if (!doResult.ok) {
77223
- return [doResult, { status: "request-error", request: req }];
78212
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77224
78213
  }
77225
78214
  const response = doResult.value;
77226
78215
  const responseFields = {
77227
78216
  HttpMeta: { Response: response, Request: req }
77228
78217
  };
77229
- const [result] = await match(json(200, ListSettlementCapturesResponse$inboundSchema, {
77230
- ctype: "application/hal+json"
78218
+ const [result, raw] = await match(json(200, ListSettlementCapturesResponse$inboundSchema, {
78219
+ ctype: "application/hal+json",
78220
+ key: "Result"
77231
78221
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77232
78222
  ctype: "application/hal+json"
77233
78223
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77234
78224
  if (!result.ok) {
77235
- return [result, { status: "complete", request: req, response }];
78225
+ return [haltIterator(result), {
78226
+ status: "complete",
78227
+ request: req,
78228
+ response
78229
+ }];
77236
78230
  }
77237
- return [result, { status: "complete", request: req, response }];
78231
+ const nextFunc = (responseData) => {
78232
+ let nextURL = dlv(responseData, "_links.next.href");
78233
+ if (typeof nextURL !== "string") {
78234
+ return { next: () => null };
78235
+ }
78236
+ if (nextURL.startsWith("/")) {
78237
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78238
+ }
78239
+ try {
78240
+ new URL(nextURL);
78241
+ } catch (_error) {
78242
+ return { next: () => null };
78243
+ }
78244
+ const nextVal = () => settlementsListCaptures(client, {
78245
+ ...request
78246
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78247
+ return { next: nextVal, "~next": { url: nextURL } };
78248
+ };
78249
+ const page = { ...result, ...nextFunc(raw) };
78250
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78251
+ status: "complete",
78252
+ request: req,
78253
+ response
78254
+ }];
77238
78255
  }
77239
78256
  var init_settlementsListCaptures = __esm(() => {
77240
78257
  init_encodings();
@@ -77246,6 +78263,7 @@ var init_settlementsListCaptures = __esm(() => {
77246
78263
  init_errors4();
77247
78264
  init_operations();
77248
78265
  init_async();
78266
+ init_operations2();
77249
78267
  });
77250
78268
 
77251
78269
  // src/mcp-server/tools/settlementsListCaptures.ts
@@ -77273,7 +78291,7 @@ The response is in the same format as the response of the [List captures endpoin
77273
78291
  isError: true
77274
78292
  };
77275
78293
  }
77276
- const value = result.value;
78294
+ const value = result.value.result;
77277
78295
  return formatResult(value, apiCall);
77278
78296
  }
77279
78297
  };
@@ -77286,7 +78304,7 @@ function settlementsListChargebacks(client, request, options) {
77286
78304
  async function $do78(client, request, options) {
77287
78305
  const parsed = safeParse4(request, (value) => ListSettlementChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
77288
78306
  if (!parsed.ok) {
77289
- return [parsed, { status: "invalid" }];
78307
+ return [haltIterator(parsed), { status: "invalid" }];
77290
78308
  }
77291
78309
  const payload = parsed.value;
77292
78310
  const body = null;
@@ -77296,8 +78314,8 @@ async function $do78(client, request, options) {
77296
78314
  charEncoding: "percent"
77297
78315
  })
77298
78316
  };
77299
- const path = pathToFunc("/settlements/{settlementId}/chargebacks")(pathParams);
77300
- const query = encodeFormQuery({
78317
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/chargebacks")(pathParams);
78318
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77301
78319
  embed: payload.embed,
77302
78320
  from: payload.from,
77303
78321
  limit: payload.limit,
@@ -77331,7 +78349,7 @@ async function $do78(client, request, options) {
77331
78349
  const requestRes = client._createRequest(context, {
77332
78350
  security: requestSecurity,
77333
78351
  method: "GET",
77334
- baseURL: options?.serverURL,
78352
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77335
78353
  path,
77336
78354
  headers,
77337
78355
  query,
@@ -77340,7 +78358,7 @@ async function $do78(client, request, options) {
77340
78358
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77341
78359
  }, options);
77342
78360
  if (!requestRes.ok) {
77343
- return [requestRes, { status: "invalid" }];
78361
+ return [haltIterator(requestRes), { status: "invalid" }];
77344
78362
  }
77345
78363
  const req = requestRes.value;
77346
78364
  const doResult = await client._do(req, {
@@ -77350,21 +78368,49 @@ async function $do78(client, request, options) {
77350
78368
  retryCodes: context.retryCodes
77351
78369
  });
77352
78370
  if (!doResult.ok) {
77353
- return [doResult, { status: "request-error", request: req }];
78371
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77354
78372
  }
77355
78373
  const response = doResult.value;
77356
78374
  const responseFields = {
77357
78375
  HttpMeta: { Response: response, Request: req }
77358
78376
  };
77359
- const [result] = await match(json(200, ListSettlementChargebacksResponse$inboundSchema, {
77360
- ctype: "application/hal+json"
78377
+ const [result, raw] = await match(json(200, ListSettlementChargebacksResponse$inboundSchema, {
78378
+ ctype: "application/hal+json",
78379
+ key: "Result"
77361
78380
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77362
78381
  ctype: "application/hal+json"
77363
78382
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77364
78383
  if (!result.ok) {
77365
- return [result, { status: "complete", request: req, response }];
78384
+ return [haltIterator(result), {
78385
+ status: "complete",
78386
+ request: req,
78387
+ response
78388
+ }];
77366
78389
  }
77367
- return [result, { status: "complete", request: req, response }];
78390
+ const nextFunc = (responseData) => {
78391
+ let nextURL = dlv(responseData, "_links.next.href");
78392
+ if (typeof nextURL !== "string") {
78393
+ return { next: () => null };
78394
+ }
78395
+ if (nextURL.startsWith("/")) {
78396
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78397
+ }
78398
+ try {
78399
+ new URL(nextURL);
78400
+ } catch (_error) {
78401
+ return { next: () => null };
78402
+ }
78403
+ const nextVal = () => settlementsListChargebacks(client, {
78404
+ ...request
78405
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78406
+ return { next: nextVal, "~next": { url: nextURL } };
78407
+ };
78408
+ const page = { ...result, ...nextFunc(raw) };
78409
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78410
+ status: "complete",
78411
+ request: req,
78412
+ response
78413
+ }];
77368
78414
  }
77369
78415
  var init_settlementsListChargebacks = __esm(() => {
77370
78416
  init_encodings();
@@ -77376,6 +78422,7 @@ var init_settlementsListChargebacks = __esm(() => {
77376
78422
  init_errors4();
77377
78423
  init_operations();
77378
78424
  init_async();
78425
+ init_operations2();
77379
78426
  });
77380
78427
 
77381
78428
  // src/mcp-server/tools/settlementsListChargebacks.ts
@@ -77403,7 +78450,7 @@ The response is in the same format as the response of the [List chargebacks endp
77403
78450
  isError: true
77404
78451
  };
77405
78452
  }
77406
- const value = result.value;
78453
+ const value = result.value.result;
77407
78454
  return formatResult(value, apiCall);
77408
78455
  }
77409
78456
  };
@@ -77416,7 +78463,7 @@ function settlementsListPayments(client, request, options) {
77416
78463
  async function $do79(client, request, options) {
77417
78464
  const parsed = safeParse4(request, (value) => ListSettlementPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
77418
78465
  if (!parsed.ok) {
77419
- return [parsed, { status: "invalid" }];
78466
+ return [haltIterator(parsed), { status: "invalid" }];
77420
78467
  }
77421
78468
  const payload = parsed.value;
77422
78469
  const body = null;
@@ -77426,8 +78473,8 @@ async function $do79(client, request, options) {
77426
78473
  charEncoding: "percent"
77427
78474
  })
77428
78475
  };
77429
- const path = pathToFunc("/settlements/{settlementId}/payments")(pathParams);
77430
- const query = encodeFormQuery({
78476
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/payments")(pathParams);
78477
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77431
78478
  from: payload.from,
77432
78479
  limit: payload.limit,
77433
78480
  profileId: payload.profileId ?? client._options.profileId,
@@ -77462,7 +78509,7 @@ async function $do79(client, request, options) {
77462
78509
  const requestRes = client._createRequest(context, {
77463
78510
  security: requestSecurity,
77464
78511
  method: "GET",
77465
- baseURL: options?.serverURL,
78512
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77466
78513
  path,
77467
78514
  headers,
77468
78515
  query,
@@ -77471,7 +78518,7 @@ async function $do79(client, request, options) {
77471
78518
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77472
78519
  }, options);
77473
78520
  if (!requestRes.ok) {
77474
- return [requestRes, { status: "invalid" }];
78521
+ return [haltIterator(requestRes), { status: "invalid" }];
77475
78522
  }
77476
78523
  const req = requestRes.value;
77477
78524
  const doResult = await client._do(req, {
@@ -77481,21 +78528,49 @@ async function $do79(client, request, options) {
77481
78528
  retryCodes: context.retryCodes
77482
78529
  });
77483
78530
  if (!doResult.ok) {
77484
- return [doResult, { status: "request-error", request: req }];
78531
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77485
78532
  }
77486
78533
  const response = doResult.value;
77487
78534
  const responseFields = {
77488
78535
  HttpMeta: { Response: response, Request: req }
77489
78536
  };
77490
- const [result] = await match(json(200, ListSettlementPaymentsResponse$inboundSchema, {
77491
- ctype: "application/hal+json"
78537
+ const [result, raw] = await match(json(200, ListSettlementPaymentsResponse$inboundSchema, {
78538
+ ctype: "application/hal+json",
78539
+ key: "Result"
77492
78540
  }), jsonErr(400, ErrorResponse$inboundSchema, {
77493
78541
  ctype: "application/hal+json"
77494
78542
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77495
78543
  if (!result.ok) {
77496
- return [result, { status: "complete", request: req, response }];
78544
+ return [haltIterator(result), {
78545
+ status: "complete",
78546
+ request: req,
78547
+ response
78548
+ }];
77497
78549
  }
77498
- return [result, { status: "complete", request: req, response }];
78550
+ const nextFunc = (responseData) => {
78551
+ let nextURL = dlv(responseData, "_links.next.href");
78552
+ if (typeof nextURL !== "string") {
78553
+ return { next: () => null };
78554
+ }
78555
+ if (nextURL.startsWith("/")) {
78556
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78557
+ }
78558
+ try {
78559
+ new URL(nextURL);
78560
+ } catch (_error) {
78561
+ return { next: () => null };
78562
+ }
78563
+ const nextVal = () => settlementsListPayments(client, {
78564
+ ...request
78565
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78566
+ return { next: nextVal, "~next": { url: nextURL } };
78567
+ };
78568
+ const page = { ...result, ...nextFunc(raw) };
78569
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78570
+ status: "complete",
78571
+ request: req,
78572
+ response
78573
+ }];
77499
78574
  }
77500
78575
  var init_settlementsListPayments = __esm(() => {
77501
78576
  init_encodings();
@@ -77507,6 +78582,7 @@ var init_settlementsListPayments = __esm(() => {
77507
78582
  init_errors4();
77508
78583
  init_operations();
77509
78584
  init_async();
78585
+ init_operations2();
77510
78586
  });
77511
78587
 
77512
78588
  // src/mcp-server/tools/settlementsListPayments.ts
@@ -77537,7 +78613,7 @@ For capture-based payment methods such as Klarna, the payments are not listed he
77537
78613
  isError: true
77538
78614
  };
77539
78615
  }
77540
- const value = result.value;
78616
+ const value = result.value.result;
77541
78617
  return formatResult(value, apiCall);
77542
78618
  }
77543
78619
  };
@@ -77550,7 +78626,7 @@ function settlementsListRefunds(client, request, options) {
77550
78626
  async function $do80(client, request, options) {
77551
78627
  const parsed = safeParse4(request, (value) => ListSettlementRefundsRequest$outboundSchema.parse(value), "Input validation failed");
77552
78628
  if (!parsed.ok) {
77553
- return [parsed, { status: "invalid" }];
78629
+ return [haltIterator(parsed), { status: "invalid" }];
77554
78630
  }
77555
78631
  const payload = parsed.value;
77556
78632
  const body = null;
@@ -77560,8 +78636,8 @@ async function $do80(client, request, options) {
77560
78636
  charEncoding: "percent"
77561
78637
  })
77562
78638
  };
77563
- const path = pathToFunc("/settlements/{settlementId}/refunds")(pathParams);
77564
- const query = encodeFormQuery({
78639
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/refunds")(pathParams);
78640
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77565
78641
  embed: payload.embed,
77566
78642
  from: payload.from,
77567
78643
  limit: payload.limit,
@@ -77595,7 +78671,7 @@ async function $do80(client, request, options) {
77595
78671
  const requestRes = client._createRequest(context, {
77596
78672
  security: requestSecurity,
77597
78673
  method: "GET",
77598
- baseURL: options?.serverURL,
78674
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77599
78675
  path,
77600
78676
  headers,
77601
78677
  query,
@@ -77604,7 +78680,7 @@ async function $do80(client, request, options) {
77604
78680
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77605
78681
  }, options);
77606
78682
  if (!requestRes.ok) {
77607
- return [requestRes, { status: "invalid" }];
78683
+ return [haltIterator(requestRes), { status: "invalid" }];
77608
78684
  }
77609
78685
  const req = requestRes.value;
77610
78686
  const doResult = await client._do(req, {
@@ -77614,21 +78690,49 @@ async function $do80(client, request, options) {
77614
78690
  retryCodes: context.retryCodes
77615
78691
  });
77616
78692
  if (!doResult.ok) {
77617
- return [doResult, { status: "request-error", request: req }];
78693
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77618
78694
  }
77619
78695
  const response = doResult.value;
77620
78696
  const responseFields = {
77621
78697
  HttpMeta: { Response: response, Request: req }
77622
78698
  };
77623
- const [result] = await match(json(200, ListSettlementRefundsResponse$inboundSchema, {
77624
- ctype: "application/hal+json"
78699
+ const [result, raw] = await match(json(200, ListSettlementRefundsResponse$inboundSchema, {
78700
+ ctype: "application/hal+json",
78701
+ key: "Result"
77625
78702
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77626
78703
  ctype: "application/hal+json"
77627
78704
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77628
78705
  if (!result.ok) {
77629
- return [result, { status: "complete", request: req, response }];
78706
+ return [haltIterator(result), {
78707
+ status: "complete",
78708
+ request: req,
78709
+ response
78710
+ }];
77630
78711
  }
77631
- return [result, { status: "complete", request: req, response }];
78712
+ const nextFunc = (responseData) => {
78713
+ let nextURL = dlv(responseData, "_links.next.href");
78714
+ if (typeof nextURL !== "string") {
78715
+ return { next: () => null };
78716
+ }
78717
+ if (nextURL.startsWith("/")) {
78718
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78719
+ }
78720
+ try {
78721
+ new URL(nextURL);
78722
+ } catch (_error) {
78723
+ return { next: () => null };
78724
+ }
78725
+ const nextVal = () => settlementsListRefunds(client, {
78726
+ ...request
78727
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78728
+ return { next: nextVal, "~next": { url: nextURL } };
78729
+ };
78730
+ const page = { ...result, ...nextFunc(raw) };
78731
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78732
+ status: "complete",
78733
+ request: req,
78734
+ response
78735
+ }];
77632
78736
  }
77633
78737
  var init_settlementsListRefunds = __esm(() => {
77634
78738
  init_encodings();
@@ -77640,6 +78744,7 @@ var init_settlementsListRefunds = __esm(() => {
77640
78744
  init_errors4();
77641
78745
  init_operations();
77642
78746
  init_async();
78747
+ init_operations2();
77643
78748
  });
77644
78749
 
77645
78750
  // src/mcp-server/tools/settlementsListRefunds.ts
@@ -77667,7 +78772,7 @@ The response is in the same format as the response of the [List refunds endpoint
77667
78772
  isError: true
77668
78773
  };
77669
78774
  }
77670
- const value = result.value;
78775
+ const value = result.value.result;
77671
78776
  return formatResult(value, apiCall);
77672
78777
  }
77673
78778
  };
@@ -77680,12 +78785,12 @@ function subscriptionsAll(client, request, options) {
77680
78785
  async function $do81(client, request, options) {
77681
78786
  const parsed = safeParse4(request, (value) => ListAllSubscriptionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
77682
78787
  if (!parsed.ok) {
77683
- return [parsed, { status: "invalid" }];
78788
+ return [haltIterator(parsed), { status: "invalid" }];
77684
78789
  }
77685
78790
  const payload = parsed.value;
77686
78791
  const body = null;
77687
- const path = pathToFunc("/subscriptions")();
77688
- const query = encodeFormQuery({
78792
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/subscriptions")();
78793
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77689
78794
  from: payload?.from,
77690
78795
  limit: payload?.limit,
77691
78796
  profileId: payload?.profileId ?? client._options.profileId,
@@ -77719,7 +78824,7 @@ async function $do81(client, request, options) {
77719
78824
  const requestRes = client._createRequest(context, {
77720
78825
  security: requestSecurity,
77721
78826
  method: "GET",
77722
- baseURL: options?.serverURL,
78827
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77723
78828
  path,
77724
78829
  headers,
77725
78830
  query,
@@ -77728,7 +78833,7 @@ async function $do81(client, request, options) {
77728
78833
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77729
78834
  }, options);
77730
78835
  if (!requestRes.ok) {
77731
- return [requestRes, { status: "invalid" }];
78836
+ return [haltIterator(requestRes), { status: "invalid" }];
77732
78837
  }
77733
78838
  const req = requestRes.value;
77734
78839
  const doResult = await client._do(req, {
@@ -77738,21 +78843,49 @@ async function $do81(client, request, options) {
77738
78843
  retryCodes: context.retryCodes
77739
78844
  });
77740
78845
  if (!doResult.ok) {
77741
- return [doResult, { status: "request-error", request: req }];
78846
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77742
78847
  }
77743
78848
  const response = doResult.value;
77744
78849
  const responseFields = {
77745
78850
  HttpMeta: { Response: response, Request: req }
77746
78851
  };
77747
- const [result] = await match(json(200, ListAllSubscriptionsResponse$inboundSchema, {
77748
- ctype: "application/hal+json"
78852
+ const [result, raw] = await match(json(200, ListAllSubscriptionsResponse$inboundSchema, {
78853
+ ctype: "application/hal+json",
78854
+ key: "Result"
77749
78855
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77750
78856
  ctype: "application/hal+json"
77751
78857
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77752
78858
  if (!result.ok) {
77753
- return [result, { status: "complete", request: req, response }];
78859
+ return [haltIterator(result), {
78860
+ status: "complete",
78861
+ request: req,
78862
+ response
78863
+ }];
77754
78864
  }
77755
- return [result, { status: "complete", request: req, response }];
78865
+ const nextFunc = (responseData) => {
78866
+ let nextURL = dlv(responseData, "_links.next.href");
78867
+ if (typeof nextURL !== "string") {
78868
+ return { next: () => null };
78869
+ }
78870
+ if (nextURL.startsWith("/")) {
78871
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78872
+ }
78873
+ try {
78874
+ new URL(nextURL);
78875
+ } catch (_error) {
78876
+ return { next: () => null };
78877
+ }
78878
+ const nextVal = () => subscriptionsAll(client, {
78879
+ ...request
78880
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78881
+ return { next: nextVal, "~next": { url: nextURL } };
78882
+ };
78883
+ const page = { ...result, ...nextFunc(raw) };
78884
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78885
+ status: "complete",
78886
+ request: req,
78887
+ response
78888
+ }];
77756
78889
  }
77757
78890
  var init_subscriptionsAll = __esm(() => {
77758
78891
  init_encodings();
@@ -77764,6 +78897,7 @@ var init_subscriptionsAll = __esm(() => {
77764
78897
  init_errors4();
77765
78898
  init_operations();
77766
78899
  init_async();
78900
+ init_operations2();
77767
78901
  });
77768
78902
 
77769
78903
  // src/mcp-server/tools/subscriptionsAll.ts
@@ -77791,7 +78925,7 @@ The results are paginated.`,
77791
78925
  isError: true
77792
78926
  };
77793
78927
  }
77794
- const value = result.value;
78928
+ const value = result.value.result;
77795
78929
  return formatResult(value, apiCall);
77796
78930
  }
77797
78931
  };
@@ -78204,7 +79338,7 @@ function subscriptionsList(client, request, options) {
78204
79338
  async function $do85(client, request, options) {
78205
79339
  const parsed = safeParse4(request, (value) => ListSubscriptionsRequest$outboundSchema.parse(value), "Input validation failed");
78206
79340
  if (!parsed.ok) {
78207
- return [parsed, { status: "invalid" }];
79341
+ return [haltIterator(parsed), { status: "invalid" }];
78208
79342
  }
78209
79343
  const payload = parsed.value;
78210
79344
  const body = null;
@@ -78214,8 +79348,8 @@ async function $do85(client, request, options) {
78214
79348
  charEncoding: "percent"
78215
79349
  })
78216
79350
  };
78217
- const path = pathToFunc("/customers/{customerId}/subscriptions")(pathParams);
78218
- const query = encodeFormQuery({
79351
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/subscriptions")(pathParams);
79352
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
78219
79353
  from: payload.from,
78220
79354
  limit: payload.limit,
78221
79355
  sort: payload.sort,
@@ -78249,7 +79383,7 @@ async function $do85(client, request, options) {
78249
79383
  const requestRes = client._createRequest(context, {
78250
79384
  security: requestSecurity,
78251
79385
  method: "GET",
78252
- baseURL: options?.serverURL,
79386
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
78253
79387
  path,
78254
79388
  headers,
78255
79389
  query,
@@ -78258,7 +79392,7 @@ async function $do85(client, request, options) {
78258
79392
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
78259
79393
  }, options);
78260
79394
  if (!requestRes.ok) {
78261
- return [requestRes, { status: "invalid" }];
79395
+ return [haltIterator(requestRes), { status: "invalid" }];
78262
79396
  }
78263
79397
  const req = requestRes.value;
78264
79398
  const doResult = await client._do(req, {
@@ -78268,21 +79402,49 @@ async function $do85(client, request, options) {
78268
79402
  retryCodes: context.retryCodes
78269
79403
  });
78270
79404
  if (!doResult.ok) {
78271
- return [doResult, { status: "request-error", request: req }];
79405
+ return [haltIterator(doResult), { status: "request-error", request: req }];
78272
79406
  }
78273
79407
  const response = doResult.value;
78274
79408
  const responseFields = {
78275
79409
  HttpMeta: { Response: response, Request: req }
78276
79410
  };
78277
- const [result] = await match(json(200, ListSubscriptionsResponse$inboundSchema, {
78278
- ctype: "application/hal+json"
79411
+ const [result, raw] = await match(json(200, ListSubscriptionsResponse$inboundSchema, {
79412
+ ctype: "application/hal+json",
79413
+ key: "Result"
78279
79414
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
78280
79415
  ctype: "application/hal+json"
78281
79416
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
78282
79417
  if (!result.ok) {
78283
- return [result, { status: "complete", request: req, response }];
79418
+ return [haltIterator(result), {
79419
+ status: "complete",
79420
+ request: req,
79421
+ response
79422
+ }];
78284
79423
  }
78285
- return [result, { status: "complete", request: req, response }];
79424
+ const nextFunc = (responseData) => {
79425
+ let nextURL = dlv(responseData, "_links.next.href");
79426
+ if (typeof nextURL !== "string") {
79427
+ return { next: () => null };
79428
+ }
79429
+ if (nextURL.startsWith("/")) {
79430
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
79431
+ }
79432
+ try {
79433
+ new URL(nextURL);
79434
+ } catch (_error) {
79435
+ return { next: () => null };
79436
+ }
79437
+ const nextVal = () => subscriptionsList(client, {
79438
+ ...request
79439
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
79440
+ return { next: nextVal, "~next": { url: nextURL } };
79441
+ };
79442
+ const page = { ...result, ...nextFunc(raw) };
79443
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
79444
+ status: "complete",
79445
+ request: req,
79446
+ response
79447
+ }];
78286
79448
  }
78287
79449
  var init_subscriptionsList = __esm(() => {
78288
79450
  init_encodings();
@@ -78294,6 +79456,7 @@ var init_subscriptionsList = __esm(() => {
78294
79456
  init_errors4();
78295
79457
  init_operations();
78296
79458
  init_async();
79459
+ init_operations2();
78297
79460
  });
78298
79461
 
78299
79462
  // src/mcp-server/tools/subscriptionsList.ts
@@ -78321,7 +79484,7 @@ The results are paginated.`,
78321
79484
  isError: true
78322
79485
  };
78323
79486
  }
78324
- const value = result.value;
79487
+ const value = result.value.result;
78325
79488
  return formatResult(value, apiCall);
78326
79489
  }
78327
79490
  };
@@ -78334,7 +79497,7 @@ function subscriptionsListPayments(client, request, options) {
78334
79497
  async function $do86(client, request, options) {
78335
79498
  const parsed = safeParse4(request, (value) => ListSubscriptionPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
78336
79499
  if (!parsed.ok) {
78337
- return [parsed, { status: "invalid" }];
79500
+ return [haltIterator(parsed), { status: "invalid" }];
78338
79501
  }
78339
79502
  const payload = parsed.value;
78340
79503
  const body = null;
@@ -78348,8 +79511,8 @@ async function $do86(client, request, options) {
78348
79511
  charEncoding: "percent"
78349
79512
  })
78350
79513
  };
78351
- const path = pathToFunc("/customers/{customerId}/subscriptions/{subscriptionId}/payments")(pathParams);
78352
- const query = encodeFormQuery({
79514
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/subscriptions/{subscriptionId}/payments")(pathParams);
79515
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
78353
79516
  from: payload.from,
78354
79517
  limit: payload.limit,
78355
79518
  profileId: payload.profileId ?? client._options.profileId,
@@ -78384,7 +79547,7 @@ async function $do86(client, request, options) {
78384
79547
  const requestRes = client._createRequest(context, {
78385
79548
  security: requestSecurity,
78386
79549
  method: "GET",
78387
- baseURL: options?.serverURL,
79550
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
78388
79551
  path,
78389
79552
  headers,
78390
79553
  query,
@@ -78393,7 +79556,7 @@ async function $do86(client, request, options) {
78393
79556
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
78394
79557
  }, options);
78395
79558
  if (!requestRes.ok) {
78396
- return [requestRes, { status: "invalid" }];
79559
+ return [haltIterator(requestRes), { status: "invalid" }];
78397
79560
  }
78398
79561
  const req = requestRes.value;
78399
79562
  const doResult = await client._do(req, {
@@ -78403,21 +79566,49 @@ async function $do86(client, request, options) {
78403
79566
  retryCodes: context.retryCodes
78404
79567
  });
78405
79568
  if (!doResult.ok) {
78406
- return [doResult, { status: "request-error", request: req }];
79569
+ return [haltIterator(doResult), { status: "request-error", request: req }];
78407
79570
  }
78408
79571
  const response = doResult.value;
78409
79572
  const responseFields = {
78410
79573
  HttpMeta: { Response: response, Request: req }
78411
79574
  };
78412
- const [result] = await match(json(200, ListSubscriptionPaymentsResponse$inboundSchema, {
78413
- ctype: "application/hal+json"
79575
+ const [result, raw] = await match(json(200, ListSubscriptionPaymentsResponse$inboundSchema, {
79576
+ ctype: "application/hal+json",
79577
+ key: "Result"
78414
79578
  }), jsonErr(400, ErrorResponse$inboundSchema, {
78415
79579
  ctype: "application/hal+json"
78416
79580
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
78417
79581
  if (!result.ok) {
78418
- return [result, { status: "complete", request: req, response }];
79582
+ return [haltIterator(result), {
79583
+ status: "complete",
79584
+ request: req,
79585
+ response
79586
+ }];
78419
79587
  }
78420
- return [result, { status: "complete", request: req, response }];
79588
+ const nextFunc = (responseData) => {
79589
+ let nextURL = dlv(responseData, "_links.next.href");
79590
+ if (typeof nextURL !== "string") {
79591
+ return { next: () => null };
79592
+ }
79593
+ if (nextURL.startsWith("/")) {
79594
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
79595
+ }
79596
+ try {
79597
+ new URL(nextURL);
79598
+ } catch (_error) {
79599
+ return { next: () => null };
79600
+ }
79601
+ const nextVal = () => subscriptionsListPayments(client, {
79602
+ ...request
79603
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
79604
+ return { next: nextVal, "~next": { url: nextURL } };
79605
+ };
79606
+ const page = { ...result, ...nextFunc(raw) };
79607
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
79608
+ status: "complete",
79609
+ request: req,
79610
+ response
79611
+ }];
78421
79612
  }
78422
79613
  var init_subscriptionsListPayments = __esm(() => {
78423
79614
  init_encodings();
@@ -78429,6 +79620,7 @@ var init_subscriptionsListPayments = __esm(() => {
78429
79620
  init_errors4();
78430
79621
  init_operations();
78431
79622
  init_async();
79623
+ init_operations2();
78432
79624
  });
78433
79625
 
78434
79626
  // src/mcp-server/tools/subscriptionsListPayments.ts
@@ -78456,7 +79648,7 @@ The results are paginated.`,
78456
79648
  isError: true
78457
79649
  };
78458
79650
  }
78459
- const value = result.value;
79651
+ const value = result.value.result;
78460
79652
  return formatResult(value, apiCall);
78461
79653
  }
78462
79654
  };
@@ -78726,12 +79918,12 @@ function terminalsList(client, request, options) {
78726
79918
  async function $do89(client, request, options) {
78727
79919
  const parsed = safeParse4(request, (value) => ListTerminalsRequest$outboundSchema.optional().parse(value), "Input validation failed");
78728
79920
  if (!parsed.ok) {
78729
- return [parsed, { status: "invalid" }];
79921
+ return [haltIterator(parsed), { status: "invalid" }];
78730
79922
  }
78731
79923
  const payload = parsed.value;
78732
79924
  const body = null;
78733
- const path = pathToFunc("/terminals")();
78734
- const query = encodeFormQuery({
79925
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/terminals")();
79926
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
78735
79927
  from: payload?.from,
78736
79928
  limit: payload?.limit,
78737
79929
  sort: payload?.sort,
@@ -78765,7 +79957,7 @@ async function $do89(client, request, options) {
78765
79957
  const requestRes = client._createRequest(context, {
78766
79958
  security: requestSecurity,
78767
79959
  method: "GET",
78768
- baseURL: options?.serverURL,
79960
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
78769
79961
  path,
78770
79962
  headers,
78771
79963
  query,
@@ -78774,7 +79966,7 @@ async function $do89(client, request, options) {
78774
79966
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
78775
79967
  }, options);
78776
79968
  if (!requestRes.ok) {
78777
- return [requestRes, { status: "invalid" }];
79969
+ return [haltIterator(requestRes), { status: "invalid" }];
78778
79970
  }
78779
79971
  const req = requestRes.value;
78780
79972
  const doResult = await client._do(req, {
@@ -78784,21 +79976,49 @@ async function $do89(client, request, options) {
78784
79976
  retryCodes: context.retryCodes
78785
79977
  });
78786
79978
  if (!doResult.ok) {
78787
- return [doResult, { status: "request-error", request: req }];
79979
+ return [haltIterator(doResult), { status: "request-error", request: req }];
78788
79980
  }
78789
79981
  const response = doResult.value;
78790
79982
  const responseFields = {
78791
79983
  HttpMeta: { Response: response, Request: req }
78792
79984
  };
78793
- const [result] = await match(json(200, ListTerminalsResponse$inboundSchema, {
78794
- ctype: "application/hal+json"
79985
+ const [result, raw] = await match(json(200, ListTerminalsResponse$inboundSchema, {
79986
+ ctype: "application/hal+json",
79987
+ key: "Result"
78795
79988
  }), jsonErr(400, ErrorResponse$inboundSchema, {
78796
79989
  ctype: "application/hal+json"
78797
79990
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
78798
79991
  if (!result.ok) {
78799
- return [result, { status: "complete", request: req, response }];
79992
+ return [haltIterator(result), {
79993
+ status: "complete",
79994
+ request: req,
79995
+ response
79996
+ }];
78800
79997
  }
78801
- return [result, { status: "complete", request: req, response }];
79998
+ const nextFunc = (responseData) => {
79999
+ let nextURL = dlv(responseData, "_links.next.href");
80000
+ if (typeof nextURL !== "string") {
80001
+ return { next: () => null };
80002
+ }
80003
+ if (nextURL.startsWith("/")) {
80004
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
80005
+ }
80006
+ try {
80007
+ new URL(nextURL);
80008
+ } catch (_error) {
80009
+ return { next: () => null };
80010
+ }
80011
+ const nextVal = () => terminalsList(client, {
80012
+ ...request
80013
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
80014
+ return { next: nextVal, "~next": { url: nextURL } };
80015
+ };
80016
+ const page = { ...result, ...nextFunc(raw) };
80017
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
80018
+ status: "complete",
80019
+ request: req,
80020
+ response
80021
+ }];
78802
80022
  }
78803
80023
  var init_terminalsList = __esm(() => {
78804
80024
  init_encodings();
@@ -78810,6 +80030,7 @@ var init_terminalsList = __esm(() => {
78810
80030
  init_errors4();
78811
80031
  init_operations();
78812
80032
  init_async();
80033
+ init_operations2();
78813
80034
  });
78814
80035
 
78815
80036
  // src/mcp-server/tools/terminalsList.ts
@@ -78837,7 +80058,7 @@ The results are paginated.`,
78837
80058
  isError: true
78838
80059
  };
78839
80060
  }
78840
- const value = result.value;
80061
+ const value = result.value.result;
78841
80062
  return formatResult(value, apiCall);
78842
80063
  }
78843
80064
  };
@@ -79472,12 +80693,12 @@ function webhooksList(client, request, options) {
79472
80693
  async function $do95(client, request, options) {
79473
80694
  const parsed = safeParse4(request, (value) => ListWebhooksRequest$outboundSchema.optional().parse(value), "Input validation failed");
79474
80695
  if (!parsed.ok) {
79475
- return [parsed, { status: "invalid" }];
80696
+ return [haltIterator(parsed), { status: "invalid" }];
79476
80697
  }
79477
80698
  const payload = parsed.value;
79478
80699
  const body = null;
79479
- const path = pathToFunc("/webhooks")();
79480
- const query = encodeFormQuery({
80700
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/webhooks")();
80701
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
79481
80702
  eventTypes: payload?.eventTypes,
79482
80703
  from: payload?.from,
79483
80704
  limit: payload?.limit,
@@ -79512,7 +80733,7 @@ async function $do95(client, request, options) {
79512
80733
  const requestRes = client._createRequest(context, {
79513
80734
  security: requestSecurity,
79514
80735
  method: "GET",
79515
- baseURL: options?.serverURL,
80736
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
79516
80737
  path,
79517
80738
  headers,
79518
80739
  query,
@@ -79521,7 +80742,7 @@ async function $do95(client, request, options) {
79521
80742
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
79522
80743
  }, options);
79523
80744
  if (!requestRes.ok) {
79524
- return [requestRes, { status: "invalid" }];
80745
+ return [haltIterator(requestRes), { status: "invalid" }];
79525
80746
  }
79526
80747
  const req = requestRes.value;
79527
80748
  const doResult = await client._do(req, {
@@ -79531,21 +80752,49 @@ async function $do95(client, request, options) {
79531
80752
  retryCodes: context.retryCodes
79532
80753
  });
79533
80754
  if (!doResult.ok) {
79534
- return [doResult, { status: "request-error", request: req }];
80755
+ return [haltIterator(doResult), { status: "request-error", request: req }];
79535
80756
  }
79536
80757
  const response = doResult.value;
79537
80758
  const responseFields = {
79538
80759
  HttpMeta: { Response: response, Request: req }
79539
80760
  };
79540
- const [result] = await match(json(200, ListWebhooksResponse$inboundSchema, {
79541
- ctype: "application/hal+json"
80761
+ const [result, raw] = await match(json(200, ListWebhooksResponse$inboundSchema, {
80762
+ ctype: "application/hal+json",
80763
+ key: "Result"
79542
80764
  }), jsonErr(400, ErrorResponse$inboundSchema, {
79543
80765
  ctype: "application/hal+json"
79544
80766
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
79545
80767
  if (!result.ok) {
79546
- return [result, { status: "complete", request: req, response }];
80768
+ return [haltIterator(result), {
80769
+ status: "complete",
80770
+ request: req,
80771
+ response
80772
+ }];
79547
80773
  }
79548
- return [result, { status: "complete", request: req, response }];
80774
+ const nextFunc = (responseData) => {
80775
+ let nextURL = dlv(responseData, "_links.next.href");
80776
+ if (typeof nextURL !== "string") {
80777
+ return { next: () => null };
80778
+ }
80779
+ if (nextURL.startsWith("/")) {
80780
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
80781
+ }
80782
+ try {
80783
+ new URL(nextURL);
80784
+ } catch (_error) {
80785
+ return { next: () => null };
80786
+ }
80787
+ const nextVal = () => webhooksList(client, {
80788
+ ...request
80789
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
80790
+ return { next: nextVal, "~next": { url: nextURL } };
80791
+ };
80792
+ const page = { ...result, ...nextFunc(raw) };
80793
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
80794
+ status: "complete",
80795
+ request: req,
80796
+ response
80797
+ }];
79549
80798
  }
79550
80799
  var init_webhooksList = __esm(() => {
79551
80800
  init_encodings();
@@ -79557,6 +80806,7 @@ var init_webhooksList = __esm(() => {
79557
80806
  init_errors4();
79558
80807
  init_operations();
79559
80808
  init_async();
80809
+ init_operations2();
79560
80810
  });
79561
80811
 
79562
80812
  // src/mcp-server/tools/webhooksList.ts
@@ -79582,7 +80832,7 @@ Returns a paginated list of your webhooks. If no webhook endpoints are available
79582
80832
  isError: true
79583
80833
  };
79584
80834
  }
79585
- const value = result.value;
80835
+ const value = result.value.result;
79586
80836
  return formatResult(value, apiCall);
79587
80837
  }
79588
80838
  };
@@ -79835,7 +81085,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
79835
81085
  function createMCPServer(deps) {
79836
81086
  const server = new McpServer({
79837
81087
  name: "Client",
79838
- version: "1.1.5"
81088
+ version: "1.2.0"
79839
81089
  });
79840
81090
  const client = new ClientCore({
79841
81091
  security: deps.security,
@@ -81265,7 +82515,7 @@ var routes = an({
81265
82515
  var app = He(routes, {
81266
82516
  name: "mcp",
81267
82517
  versionInfo: {
81268
- currentVersion: "1.1.5"
82518
+ currentVersion: "1.2.0"
81269
82519
  }
81270
82520
  });
81271
82521
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -81273,5 +82523,5 @@ export {
81273
82523
  app
81274
82524
  };
81275
82525
 
81276
- //# debugId=6B2823CB35ADE6B164756E2164756E21
82526
+ //# debugId=B7EA511FC5B38C9464756E2164756E21
81277
82527
  //# sourceMappingURL=mcp-server.js.map