mollie-api-typescript 1.1.6 → 1.2.1

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 (867) hide show
  1. package/FUNCTIONS.md +3 -1
  2. package/README.md +62 -7
  3. package/bin/mcp-server.js +1644 -406
  4. package/bin/mcp-server.js.map +97 -96
  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/lib/matchers.d.ts.map +1 -1
  120. package/dist/commonjs/lib/matchers.js +0 -1
  121. package/dist/commonjs/lib/matchers.js.map +1 -1
  122. package/dist/commonjs/lib/security.d.ts.map +1 -1
  123. package/dist/commonjs/lib/security.js +1 -2
  124. package/dist/commonjs/lib/security.js.map +1 -1
  125. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  126. package/dist/commonjs/mcp-server/server.js +1 -1
  127. package/dist/commonjs/mcp-server/shared.js +1 -1
  128. package/dist/commonjs/mcp-server/shared.js.map +1 -1
  129. package/dist/commonjs/mcp-server/tools/balanceTransfersList.js +1 -1
  130. package/dist/commonjs/mcp-server/tools/balanceTransfersList.js.map +1 -1
  131. package/dist/commonjs/mcp-server/tools/balancesList.js +1 -1
  132. package/dist/commonjs/mcp-server/tools/balancesList.js.map +1 -1
  133. package/dist/commonjs/mcp-server/tools/balancesListTransactions.js +1 -1
  134. package/dist/commonjs/mcp-server/tools/balancesListTransactions.js.map +1 -1
  135. package/dist/commonjs/mcp-server/tools/capturesList.js +1 -1
  136. package/dist/commonjs/mcp-server/tools/capturesList.js.map +1 -1
  137. package/dist/commonjs/mcp-server/tools/chargebacksAll.js +1 -1
  138. package/dist/commonjs/mcp-server/tools/chargebacksAll.js.map +1 -1
  139. package/dist/commonjs/mcp-server/tools/chargebacksList.js +1 -1
  140. package/dist/commonjs/mcp-server/tools/chargebacksList.js.map +1 -1
  141. package/dist/commonjs/mcp-server/tools/clientsList.js +1 -1
  142. package/dist/commonjs/mcp-server/tools/clientsList.js.map +1 -1
  143. package/dist/commonjs/mcp-server/tools/customersList.js +1 -1
  144. package/dist/commonjs/mcp-server/tools/customersList.js.map +1 -1
  145. package/dist/commonjs/mcp-server/tools/customersListPayments.js +1 -1
  146. package/dist/commonjs/mcp-server/tools/customersListPayments.js.map +1 -1
  147. package/dist/commonjs/mcp-server/tools/invoicesList.js +1 -1
  148. package/dist/commonjs/mcp-server/tools/invoicesList.js.map +1 -1
  149. package/dist/commonjs/mcp-server/tools/mandatesList.js +1 -1
  150. package/dist/commonjs/mcp-server/tools/mandatesList.js.map +1 -1
  151. package/dist/commonjs/mcp-server/tools/paymentLinksList.js +1 -1
  152. package/dist/commonjs/mcp-server/tools/paymentLinksList.js.map +1 -1
  153. package/dist/commonjs/mcp-server/tools/paymentLinksListPayments.js +1 -1
  154. package/dist/commonjs/mcp-server/tools/paymentLinksListPayments.js.map +1 -1
  155. package/dist/commonjs/mcp-server/tools/paymentsList.js +1 -1
  156. package/dist/commonjs/mcp-server/tools/paymentsList.js.map +1 -1
  157. package/dist/commonjs/mcp-server/tools/profilesList.js +1 -1
  158. package/dist/commonjs/mcp-server/tools/profilesList.js.map +1 -1
  159. package/dist/commonjs/mcp-server/tools/refundsAll.js +1 -1
  160. package/dist/commonjs/mcp-server/tools/refundsAll.js.map +1 -1
  161. package/dist/commonjs/mcp-server/tools/refundsList.js +1 -1
  162. package/dist/commonjs/mcp-server/tools/refundsList.js.map +1 -1
  163. package/dist/commonjs/mcp-server/tools/salesInvoicesList.js +1 -1
  164. package/dist/commonjs/mcp-server/tools/salesInvoicesList.js.map +1 -1
  165. package/dist/commonjs/mcp-server/tools/settlementsList.js +1 -1
  166. package/dist/commonjs/mcp-server/tools/settlementsList.js.map +1 -1
  167. package/dist/commonjs/mcp-server/tools/settlementsListCaptures.js +1 -1
  168. package/dist/commonjs/mcp-server/tools/settlementsListCaptures.js.map +1 -1
  169. package/dist/commonjs/mcp-server/tools/settlementsListChargebacks.js +1 -1
  170. package/dist/commonjs/mcp-server/tools/settlementsListChargebacks.js.map +1 -1
  171. package/dist/commonjs/mcp-server/tools/settlementsListPayments.js +1 -1
  172. package/dist/commonjs/mcp-server/tools/settlementsListPayments.js.map +1 -1
  173. package/dist/commonjs/mcp-server/tools/settlementsListRefunds.js +1 -1
  174. package/dist/commonjs/mcp-server/tools/settlementsListRefunds.js.map +1 -1
  175. package/dist/commonjs/mcp-server/tools/subscriptionsAll.js +1 -1
  176. package/dist/commonjs/mcp-server/tools/subscriptionsAll.js.map +1 -1
  177. package/dist/commonjs/mcp-server/tools/subscriptionsList.js +1 -1
  178. package/dist/commonjs/mcp-server/tools/subscriptionsList.js.map +1 -1
  179. package/dist/commonjs/mcp-server/tools/subscriptionsListPayments.js +1 -1
  180. package/dist/commonjs/mcp-server/tools/subscriptionsListPayments.js.map +1 -1
  181. package/dist/commonjs/mcp-server/tools/terminalsList.js +1 -1
  182. package/dist/commonjs/mcp-server/tools/terminalsList.js.map +1 -1
  183. package/dist/commonjs/mcp-server/tools/webhooksList.js +1 -1
  184. package/dist/commonjs/mcp-server/tools/webhooksList.js.map +1 -1
  185. package/dist/commonjs/models/listpaymentresponse.d.ts +3 -2
  186. package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
  187. package/dist/commonjs/models/listpaymentresponse.js +3 -2
  188. package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
  189. package/dist/commonjs/models/metadata.d.ts +2 -2
  190. package/dist/commonjs/models/metadata.d.ts.map +1 -1
  191. package/dist/commonjs/models/metadata.js +2 -2
  192. package/dist/commonjs/models/metadata.js.map +1 -1
  193. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +16 -3
  194. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  195. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +27 -3
  196. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  197. package/dist/commonjs/models/operations/listallchargebacks.d.ts +16 -3
  198. package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
  199. package/dist/commonjs/models/operations/listallchargebacks.js +27 -3
  200. package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
  201. package/dist/commonjs/models/operations/listallrefunds.d.ts +16 -3
  202. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  203. package/dist/commonjs/models/operations/listallrefunds.js +27 -3
  204. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  205. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +16 -3
  206. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  207. package/dist/commonjs/models/operations/listallsubscriptions.js +27 -3
  208. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  209. package/dist/commonjs/models/operations/listbalances.d.ts +16 -3
  210. package/dist/commonjs/models/operations/listbalances.d.ts.map +1 -1
  211. package/dist/commonjs/models/operations/listbalances.js +27 -3
  212. package/dist/commonjs/models/operations/listbalances.js.map +1 -1
  213. package/dist/commonjs/models/operations/listbalancetransactions.d.ts +16 -3
  214. package/dist/commonjs/models/operations/listbalancetransactions.d.ts.map +1 -1
  215. package/dist/commonjs/models/operations/listbalancetransactions.js +27 -3
  216. package/dist/commonjs/models/operations/listbalancetransactions.js.map +1 -1
  217. package/dist/commonjs/models/operations/listcaptures.d.ts +16 -3
  218. package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
  219. package/dist/commonjs/models/operations/listcaptures.js +27 -3
  220. package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
  221. package/dist/commonjs/models/operations/listchargebacks.d.ts +16 -3
  222. package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
  223. package/dist/commonjs/models/operations/listchargebacks.js +27 -3
  224. package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
  225. package/dist/commonjs/models/operations/listclients.d.ts +16 -3
  226. package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
  227. package/dist/commonjs/models/operations/listclients.js +27 -3
  228. package/dist/commonjs/models/operations/listclients.js.map +1 -1
  229. package/dist/commonjs/models/operations/listconnectbalancetransfers.d.ts +16 -3
  230. package/dist/commonjs/models/operations/listconnectbalancetransfers.d.ts.map +1 -1
  231. package/dist/commonjs/models/operations/listconnectbalancetransfers.js +27 -3
  232. package/dist/commonjs/models/operations/listconnectbalancetransfers.js.map +1 -1
  233. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +16 -3
  234. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  235. package/dist/commonjs/models/operations/listcustomerpayments.js +27 -3
  236. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  237. package/dist/commonjs/models/operations/listcustomers.d.ts +16 -3
  238. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  239. package/dist/commonjs/models/operations/listcustomers.js +27 -3
  240. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  241. package/dist/commonjs/models/operations/listinvoices.d.ts +16 -3
  242. package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
  243. package/dist/commonjs/models/operations/listinvoices.js +27 -3
  244. package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
  245. package/dist/commonjs/models/operations/listmandates.d.ts +16 -3
  246. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  247. package/dist/commonjs/models/operations/listmandates.js +27 -3
  248. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  249. package/dist/commonjs/models/operations/listpaymentlinks.d.ts +16 -3
  250. package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
  251. package/dist/commonjs/models/operations/listpaymentlinks.js +27 -3
  252. package/dist/commonjs/models/operations/listpaymentlinks.js.map +1 -1
  253. package/dist/commonjs/models/operations/listpayments.d.ts +16 -3
  254. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  255. package/dist/commonjs/models/operations/listpayments.js +27 -3
  256. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  257. package/dist/commonjs/models/operations/listprofiles.d.ts +16 -3
  258. package/dist/commonjs/models/operations/listprofiles.d.ts.map +1 -1
  259. package/dist/commonjs/models/operations/listprofiles.js +27 -3
  260. package/dist/commonjs/models/operations/listprofiles.js.map +1 -1
  261. package/dist/commonjs/models/operations/listrefunds.d.ts +16 -3
  262. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  263. package/dist/commonjs/models/operations/listrefunds.js +27 -3
  264. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  265. package/dist/commonjs/models/operations/listsalesinvoices.d.ts +16 -3
  266. package/dist/commonjs/models/operations/listsalesinvoices.d.ts.map +1 -1
  267. package/dist/commonjs/models/operations/listsalesinvoices.js +27 -3
  268. package/dist/commonjs/models/operations/listsalesinvoices.js.map +1 -1
  269. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +16 -3
  270. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
  271. package/dist/commonjs/models/operations/listsettlementcaptures.js +27 -3
  272. package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
  273. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +16 -3
  274. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  275. package/dist/commonjs/models/operations/listsettlementchargebacks.js +27 -3
  276. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  277. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +16 -3
  278. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  279. package/dist/commonjs/models/operations/listsettlementpayments.js +27 -3
  280. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  281. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +16 -3
  282. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  283. package/dist/commonjs/models/operations/listsettlementrefunds.js +27 -3
  284. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  285. package/dist/commonjs/models/operations/listsettlements.d.ts +16 -3
  286. package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
  287. package/dist/commonjs/models/operations/listsettlements.js +27 -3
  288. package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
  289. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +16 -3
  290. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  291. package/dist/commonjs/models/operations/listsubscriptionpayments.js +27 -3
  292. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  293. package/dist/commonjs/models/operations/listsubscriptions.d.ts +16 -3
  294. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  295. package/dist/commonjs/models/operations/listsubscriptions.js +27 -3
  296. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  297. package/dist/commonjs/models/operations/listterminals.d.ts +16 -3
  298. package/dist/commonjs/models/operations/listterminals.d.ts.map +1 -1
  299. package/dist/commonjs/models/operations/listterminals.js +27 -3
  300. package/dist/commonjs/models/operations/listterminals.js.map +1 -1
  301. package/dist/commonjs/models/operations/listwebhooks.d.ts +16 -3
  302. package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
  303. package/dist/commonjs/models/operations/listwebhooks.js +27 -3
  304. package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
  305. package/dist/commonjs/models/paymentresponse.d.ts +3 -2
  306. package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
  307. package/dist/commonjs/models/paymentresponse.js +3 -2
  308. package/dist/commonjs/models/paymentresponse.js.map +1 -1
  309. package/dist/commonjs/sdk/balances.d.ts +7 -2
  310. package/dist/commonjs/sdk/balances.d.ts.map +1 -1
  311. package/dist/commonjs/sdk/balances.js +3 -2
  312. package/dist/commonjs/sdk/balances.js.map +1 -1
  313. package/dist/commonjs/sdk/balancetransfers.d.ts +4 -1
  314. package/dist/commonjs/sdk/balancetransfers.d.ts.map +1 -1
  315. package/dist/commonjs/sdk/balancetransfers.js +2 -1
  316. package/dist/commonjs/sdk/balancetransfers.js.map +1 -1
  317. package/dist/commonjs/sdk/captures.d.ts +4 -1
  318. package/dist/commonjs/sdk/captures.d.ts.map +1 -1
  319. package/dist/commonjs/sdk/captures.js +2 -1
  320. package/dist/commonjs/sdk/captures.js.map +1 -1
  321. package/dist/commonjs/sdk/chargebacks.d.ts +7 -2
  322. package/dist/commonjs/sdk/chargebacks.d.ts.map +1 -1
  323. package/dist/commonjs/sdk/chargebacks.js +3 -2
  324. package/dist/commonjs/sdk/chargebacks.js.map +1 -1
  325. package/dist/commonjs/sdk/clients.d.ts +4 -1
  326. package/dist/commonjs/sdk/clients.d.ts.map +1 -1
  327. package/dist/commonjs/sdk/clients.js +2 -1
  328. package/dist/commonjs/sdk/clients.js.map +1 -1
  329. package/dist/commonjs/sdk/customers.d.ts +7 -2
  330. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  331. package/dist/commonjs/sdk/customers.js +3 -2
  332. package/dist/commonjs/sdk/customers.js.map +1 -1
  333. package/dist/commonjs/sdk/invoices.d.ts +4 -1
  334. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  335. package/dist/commonjs/sdk/invoices.js +2 -1
  336. package/dist/commonjs/sdk/invoices.js.map +1 -1
  337. package/dist/commonjs/sdk/mandates.d.ts +4 -1
  338. package/dist/commonjs/sdk/mandates.d.ts.map +1 -1
  339. package/dist/commonjs/sdk/mandates.js +2 -1
  340. package/dist/commonjs/sdk/mandates.js.map +1 -1
  341. package/dist/commonjs/sdk/paymentlinks.d.ts +7 -2
  342. package/dist/commonjs/sdk/paymentlinks.d.ts.map +1 -1
  343. package/dist/commonjs/sdk/paymentlinks.js +3 -2
  344. package/dist/commonjs/sdk/paymentlinks.js.map +1 -1
  345. package/dist/commonjs/sdk/payments.d.ts +4 -1
  346. package/dist/commonjs/sdk/payments.d.ts.map +1 -1
  347. package/dist/commonjs/sdk/payments.js +2 -1
  348. package/dist/commonjs/sdk/payments.js.map +1 -1
  349. package/dist/commonjs/sdk/profiles.d.ts +4 -1
  350. package/dist/commonjs/sdk/profiles.d.ts.map +1 -1
  351. package/dist/commonjs/sdk/profiles.js +2 -1
  352. package/dist/commonjs/sdk/profiles.js.map +1 -1
  353. package/dist/commonjs/sdk/refunds.d.ts +7 -2
  354. package/dist/commonjs/sdk/refunds.d.ts.map +1 -1
  355. package/dist/commonjs/sdk/refunds.js +3 -2
  356. package/dist/commonjs/sdk/refunds.js.map +1 -1
  357. package/dist/commonjs/sdk/salesinvoices.d.ts +4 -1
  358. package/dist/commonjs/sdk/salesinvoices.d.ts.map +1 -1
  359. package/dist/commonjs/sdk/salesinvoices.js +2 -1
  360. package/dist/commonjs/sdk/salesinvoices.js.map +1 -1
  361. package/dist/commonjs/sdk/settlements.d.ts +16 -5
  362. package/dist/commonjs/sdk/settlements.d.ts.map +1 -1
  363. package/dist/commonjs/sdk/settlements.js +6 -5
  364. package/dist/commonjs/sdk/settlements.js.map +1 -1
  365. package/dist/commonjs/sdk/subscriptions.d.ts +10 -3
  366. package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
  367. package/dist/commonjs/sdk/subscriptions.js +4 -3
  368. package/dist/commonjs/sdk/subscriptions.js.map +1 -1
  369. package/dist/commonjs/sdk/terminals.d.ts +4 -1
  370. package/dist/commonjs/sdk/terminals.d.ts.map +1 -1
  371. package/dist/commonjs/sdk/terminals.js +2 -1
  372. package/dist/commonjs/sdk/terminals.js.map +1 -1
  373. package/dist/commonjs/sdk/webhooks.d.ts +4 -1
  374. package/dist/commonjs/sdk/webhooks.d.ts.map +1 -1
  375. package/dist/commonjs/sdk/webhooks.js +2 -1
  376. package/dist/commonjs/sdk/webhooks.js.map +1 -1
  377. package/dist/esm/funcs/balanceTransfersList.d.ts +6 -1
  378. package/dist/esm/funcs/balanceTransfersList.d.ts.map +1 -1
  379. package/dist/esm/funcs/balanceTransfersList.js +49 -14
  380. package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
  381. package/dist/esm/funcs/balancesList.d.ts +6 -1
  382. package/dist/esm/funcs/balancesList.d.ts.map +1 -1
  383. package/dist/esm/funcs/balancesList.js +49 -14
  384. package/dist/esm/funcs/balancesList.js.map +1 -1
  385. package/dist/esm/funcs/balancesListTransactions.d.ts +6 -1
  386. package/dist/esm/funcs/balancesListTransactions.d.ts.map +1 -1
  387. package/dist/esm/funcs/balancesListTransactions.js +48 -13
  388. package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
  389. package/dist/esm/funcs/capturesList.d.ts +6 -1
  390. package/dist/esm/funcs/capturesList.d.ts.map +1 -1
  391. package/dist/esm/funcs/capturesList.js +49 -14
  392. package/dist/esm/funcs/capturesList.js.map +1 -1
  393. package/dist/esm/funcs/chargebacksAll.d.ts +6 -1
  394. package/dist/esm/funcs/chargebacksAll.d.ts.map +1 -1
  395. package/dist/esm/funcs/chargebacksAll.js +51 -16
  396. package/dist/esm/funcs/chargebacksAll.js.map +1 -1
  397. package/dist/esm/funcs/chargebacksList.d.ts +6 -1
  398. package/dist/esm/funcs/chargebacksList.d.ts.map +1 -1
  399. package/dist/esm/funcs/chargebacksList.js +49 -14
  400. package/dist/esm/funcs/chargebacksList.js.map +1 -1
  401. package/dist/esm/funcs/clientsList.d.ts +6 -1
  402. package/dist/esm/funcs/clientsList.d.ts.map +1 -1
  403. package/dist/esm/funcs/clientsList.js +48 -13
  404. package/dist/esm/funcs/clientsList.js.map +1 -1
  405. package/dist/esm/funcs/customersList.d.ts +6 -1
  406. package/dist/esm/funcs/customersList.d.ts.map +1 -1
  407. package/dist/esm/funcs/customersList.js +49 -14
  408. package/dist/esm/funcs/customersList.js.map +1 -1
  409. package/dist/esm/funcs/customersListPayments.d.ts +6 -1
  410. package/dist/esm/funcs/customersListPayments.d.ts.map +1 -1
  411. package/dist/esm/funcs/customersListPayments.js +50 -15
  412. package/dist/esm/funcs/customersListPayments.js.map +1 -1
  413. package/dist/esm/funcs/invoicesList.d.ts +6 -1
  414. package/dist/esm/funcs/invoicesList.d.ts.map +1 -1
  415. package/dist/esm/funcs/invoicesList.js +50 -15
  416. package/dist/esm/funcs/invoicesList.js.map +1 -1
  417. package/dist/esm/funcs/mandatesList.d.ts +6 -1
  418. package/dist/esm/funcs/mandatesList.d.ts.map +1 -1
  419. package/dist/esm/funcs/mandatesList.js +49 -14
  420. package/dist/esm/funcs/mandatesList.js.map +1 -1
  421. package/dist/esm/funcs/paymentLinksList.d.ts +6 -1
  422. package/dist/esm/funcs/paymentLinksList.d.ts.map +1 -1
  423. package/dist/esm/funcs/paymentLinksList.js +48 -13
  424. package/dist/esm/funcs/paymentLinksList.js.map +1 -1
  425. package/dist/esm/funcs/paymentLinksListPayments.d.ts +6 -1
  426. package/dist/esm/funcs/paymentLinksListPayments.d.ts.map +1 -1
  427. package/dist/esm/funcs/paymentLinksListPayments.js +49 -14
  428. package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
  429. package/dist/esm/funcs/paymentsList.d.ts +6 -1
  430. package/dist/esm/funcs/paymentsList.d.ts.map +1 -1
  431. package/dist/esm/funcs/paymentsList.js +50 -15
  432. package/dist/esm/funcs/paymentsList.js.map +1 -1
  433. package/dist/esm/funcs/profilesList.d.ts +6 -1
  434. package/dist/esm/funcs/profilesList.d.ts.map +1 -1
  435. package/dist/esm/funcs/profilesList.js +47 -12
  436. package/dist/esm/funcs/profilesList.js.map +1 -1
  437. package/dist/esm/funcs/refundsAll.d.ts +6 -1
  438. package/dist/esm/funcs/refundsAll.d.ts.map +1 -1
  439. package/dist/esm/funcs/refundsAll.js +51 -16
  440. package/dist/esm/funcs/refundsAll.js.map +1 -1
  441. package/dist/esm/funcs/refundsList.d.ts +6 -1
  442. package/dist/esm/funcs/refundsList.d.ts.map +1 -1
  443. package/dist/esm/funcs/refundsList.js +49 -14
  444. package/dist/esm/funcs/refundsList.js.map +1 -1
  445. package/dist/esm/funcs/salesInvoicesList.d.ts +6 -1
  446. package/dist/esm/funcs/salesInvoicesList.d.ts.map +1 -1
  447. package/dist/esm/funcs/salesInvoicesList.js +48 -13
  448. package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
  449. package/dist/esm/funcs/settlementsList.d.ts +6 -1
  450. package/dist/esm/funcs/settlementsList.d.ts.map +1 -1
  451. package/dist/esm/funcs/settlementsList.js +51 -16
  452. package/dist/esm/funcs/settlementsList.js.map +1 -1
  453. package/dist/esm/funcs/settlementsListCaptures.d.ts +6 -1
  454. package/dist/esm/funcs/settlementsListCaptures.d.ts.map +1 -1
  455. package/dist/esm/funcs/settlementsListCaptures.js +49 -14
  456. package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
  457. package/dist/esm/funcs/settlementsListChargebacks.d.ts +6 -1
  458. package/dist/esm/funcs/settlementsListChargebacks.d.ts.map +1 -1
  459. package/dist/esm/funcs/settlementsListChargebacks.js +49 -14
  460. package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
  461. package/dist/esm/funcs/settlementsListPayments.d.ts +6 -1
  462. package/dist/esm/funcs/settlementsListPayments.d.ts.map +1 -1
  463. package/dist/esm/funcs/settlementsListPayments.js +50 -15
  464. package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
  465. package/dist/esm/funcs/settlementsListRefunds.d.ts +6 -1
  466. package/dist/esm/funcs/settlementsListRefunds.d.ts.map +1 -1
  467. package/dist/esm/funcs/settlementsListRefunds.js +49 -14
  468. package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
  469. package/dist/esm/funcs/subscriptionsAll.d.ts +6 -1
  470. package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
  471. package/dist/esm/funcs/subscriptionsAll.js +49 -14
  472. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  473. package/dist/esm/funcs/subscriptionsList.d.ts +6 -1
  474. package/dist/esm/funcs/subscriptionsList.d.ts.map +1 -1
  475. package/dist/esm/funcs/subscriptionsList.js +49 -14
  476. package/dist/esm/funcs/subscriptionsList.js.map +1 -1
  477. package/dist/esm/funcs/subscriptionsListPayments.d.ts +6 -1
  478. package/dist/esm/funcs/subscriptionsListPayments.d.ts.map +1 -1
  479. package/dist/esm/funcs/subscriptionsListPayments.js +50 -15
  480. package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
  481. package/dist/esm/funcs/terminalsList.d.ts +6 -1
  482. package/dist/esm/funcs/terminalsList.d.ts.map +1 -1
  483. package/dist/esm/funcs/terminalsList.js +49 -14
  484. package/dist/esm/funcs/terminalsList.js.map +1 -1
  485. package/dist/esm/funcs/webhooksList.d.ts +6 -1
  486. package/dist/esm/funcs/webhooksList.d.ts.map +1 -1
  487. package/dist/esm/funcs/webhooksList.js +50 -15
  488. package/dist/esm/funcs/webhooksList.js.map +1 -1
  489. package/dist/esm/lib/config.d.ts +3 -3
  490. package/dist/esm/lib/config.js +3 -3
  491. package/dist/esm/lib/matchers.d.ts.map +1 -1
  492. package/dist/esm/lib/matchers.js +0 -1
  493. package/dist/esm/lib/matchers.js.map +1 -1
  494. package/dist/esm/lib/security.d.ts.map +1 -1
  495. package/dist/esm/lib/security.js +1 -2
  496. package/dist/esm/lib/security.js.map +1 -1
  497. package/dist/esm/mcp-server/mcp-server.js +1 -1
  498. package/dist/esm/mcp-server/server.js +1 -1
  499. package/dist/esm/mcp-server/shared.js +1 -1
  500. package/dist/esm/mcp-server/shared.js.map +1 -1
  501. package/dist/esm/mcp-server/tools/balanceTransfersList.js +1 -1
  502. package/dist/esm/mcp-server/tools/balanceTransfersList.js.map +1 -1
  503. package/dist/esm/mcp-server/tools/balancesList.js +1 -1
  504. package/dist/esm/mcp-server/tools/balancesList.js.map +1 -1
  505. package/dist/esm/mcp-server/tools/balancesListTransactions.js +1 -1
  506. package/dist/esm/mcp-server/tools/balancesListTransactions.js.map +1 -1
  507. package/dist/esm/mcp-server/tools/capturesList.js +1 -1
  508. package/dist/esm/mcp-server/tools/capturesList.js.map +1 -1
  509. package/dist/esm/mcp-server/tools/chargebacksAll.js +1 -1
  510. package/dist/esm/mcp-server/tools/chargebacksAll.js.map +1 -1
  511. package/dist/esm/mcp-server/tools/chargebacksList.js +1 -1
  512. package/dist/esm/mcp-server/tools/chargebacksList.js.map +1 -1
  513. package/dist/esm/mcp-server/tools/clientsList.js +1 -1
  514. package/dist/esm/mcp-server/tools/clientsList.js.map +1 -1
  515. package/dist/esm/mcp-server/tools/customersList.js +1 -1
  516. package/dist/esm/mcp-server/tools/customersList.js.map +1 -1
  517. package/dist/esm/mcp-server/tools/customersListPayments.js +1 -1
  518. package/dist/esm/mcp-server/tools/customersListPayments.js.map +1 -1
  519. package/dist/esm/mcp-server/tools/invoicesList.js +1 -1
  520. package/dist/esm/mcp-server/tools/invoicesList.js.map +1 -1
  521. package/dist/esm/mcp-server/tools/mandatesList.js +1 -1
  522. package/dist/esm/mcp-server/tools/mandatesList.js.map +1 -1
  523. package/dist/esm/mcp-server/tools/paymentLinksList.js +1 -1
  524. package/dist/esm/mcp-server/tools/paymentLinksList.js.map +1 -1
  525. package/dist/esm/mcp-server/tools/paymentLinksListPayments.js +1 -1
  526. package/dist/esm/mcp-server/tools/paymentLinksListPayments.js.map +1 -1
  527. package/dist/esm/mcp-server/tools/paymentsList.js +1 -1
  528. package/dist/esm/mcp-server/tools/paymentsList.js.map +1 -1
  529. package/dist/esm/mcp-server/tools/profilesList.js +1 -1
  530. package/dist/esm/mcp-server/tools/profilesList.js.map +1 -1
  531. package/dist/esm/mcp-server/tools/refundsAll.js +1 -1
  532. package/dist/esm/mcp-server/tools/refundsAll.js.map +1 -1
  533. package/dist/esm/mcp-server/tools/refundsList.js +1 -1
  534. package/dist/esm/mcp-server/tools/refundsList.js.map +1 -1
  535. package/dist/esm/mcp-server/tools/salesInvoicesList.js +1 -1
  536. package/dist/esm/mcp-server/tools/salesInvoicesList.js.map +1 -1
  537. package/dist/esm/mcp-server/tools/settlementsList.js +1 -1
  538. package/dist/esm/mcp-server/tools/settlementsList.js.map +1 -1
  539. package/dist/esm/mcp-server/tools/settlementsListCaptures.js +1 -1
  540. package/dist/esm/mcp-server/tools/settlementsListCaptures.js.map +1 -1
  541. package/dist/esm/mcp-server/tools/settlementsListChargebacks.js +1 -1
  542. package/dist/esm/mcp-server/tools/settlementsListChargebacks.js.map +1 -1
  543. package/dist/esm/mcp-server/tools/settlementsListPayments.js +1 -1
  544. package/dist/esm/mcp-server/tools/settlementsListPayments.js.map +1 -1
  545. package/dist/esm/mcp-server/tools/settlementsListRefunds.js +1 -1
  546. package/dist/esm/mcp-server/tools/settlementsListRefunds.js.map +1 -1
  547. package/dist/esm/mcp-server/tools/subscriptionsAll.js +1 -1
  548. package/dist/esm/mcp-server/tools/subscriptionsAll.js.map +1 -1
  549. package/dist/esm/mcp-server/tools/subscriptionsList.js +1 -1
  550. package/dist/esm/mcp-server/tools/subscriptionsList.js.map +1 -1
  551. package/dist/esm/mcp-server/tools/subscriptionsListPayments.js +1 -1
  552. package/dist/esm/mcp-server/tools/subscriptionsListPayments.js.map +1 -1
  553. package/dist/esm/mcp-server/tools/terminalsList.js +1 -1
  554. package/dist/esm/mcp-server/tools/terminalsList.js.map +1 -1
  555. package/dist/esm/mcp-server/tools/webhooksList.js +1 -1
  556. package/dist/esm/mcp-server/tools/webhooksList.js.map +1 -1
  557. package/dist/esm/models/listpaymentresponse.d.ts +3 -2
  558. package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
  559. package/dist/esm/models/listpaymentresponse.js +3 -2
  560. package/dist/esm/models/listpaymentresponse.js.map +1 -1
  561. package/dist/esm/models/metadata.d.ts +2 -2
  562. package/dist/esm/models/metadata.d.ts.map +1 -1
  563. package/dist/esm/models/metadata.js +2 -2
  564. package/dist/esm/models/metadata.js.map +1 -1
  565. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +16 -3
  566. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  567. package/dist/esm/models/operations/getpaymentlinkpayments.js +24 -2
  568. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  569. package/dist/esm/models/operations/listallchargebacks.d.ts +16 -3
  570. package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
  571. package/dist/esm/models/operations/listallchargebacks.js +24 -2
  572. package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
  573. package/dist/esm/models/operations/listallrefunds.d.ts +16 -3
  574. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  575. package/dist/esm/models/operations/listallrefunds.js +24 -2
  576. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  577. package/dist/esm/models/operations/listallsubscriptions.d.ts +16 -3
  578. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  579. package/dist/esm/models/operations/listallsubscriptions.js +24 -2
  580. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  581. package/dist/esm/models/operations/listbalances.d.ts +16 -3
  582. package/dist/esm/models/operations/listbalances.d.ts.map +1 -1
  583. package/dist/esm/models/operations/listbalances.js +24 -2
  584. package/dist/esm/models/operations/listbalances.js.map +1 -1
  585. package/dist/esm/models/operations/listbalancetransactions.d.ts +16 -3
  586. package/dist/esm/models/operations/listbalancetransactions.d.ts.map +1 -1
  587. package/dist/esm/models/operations/listbalancetransactions.js +24 -2
  588. package/dist/esm/models/operations/listbalancetransactions.js.map +1 -1
  589. package/dist/esm/models/operations/listcaptures.d.ts +16 -3
  590. package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
  591. package/dist/esm/models/operations/listcaptures.js +24 -2
  592. package/dist/esm/models/operations/listcaptures.js.map +1 -1
  593. package/dist/esm/models/operations/listchargebacks.d.ts +16 -3
  594. package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
  595. package/dist/esm/models/operations/listchargebacks.js +24 -2
  596. package/dist/esm/models/operations/listchargebacks.js.map +1 -1
  597. package/dist/esm/models/operations/listclients.d.ts +16 -3
  598. package/dist/esm/models/operations/listclients.d.ts.map +1 -1
  599. package/dist/esm/models/operations/listclients.js +24 -2
  600. package/dist/esm/models/operations/listclients.js.map +1 -1
  601. package/dist/esm/models/operations/listconnectbalancetransfers.d.ts +16 -3
  602. package/dist/esm/models/operations/listconnectbalancetransfers.d.ts.map +1 -1
  603. package/dist/esm/models/operations/listconnectbalancetransfers.js +24 -2
  604. package/dist/esm/models/operations/listconnectbalancetransfers.js.map +1 -1
  605. package/dist/esm/models/operations/listcustomerpayments.d.ts +16 -3
  606. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  607. package/dist/esm/models/operations/listcustomerpayments.js +24 -2
  608. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  609. package/dist/esm/models/operations/listcustomers.d.ts +16 -3
  610. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  611. package/dist/esm/models/operations/listcustomers.js +24 -2
  612. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  613. package/dist/esm/models/operations/listinvoices.d.ts +16 -3
  614. package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
  615. package/dist/esm/models/operations/listinvoices.js +24 -2
  616. package/dist/esm/models/operations/listinvoices.js.map +1 -1
  617. package/dist/esm/models/operations/listmandates.d.ts +16 -3
  618. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  619. package/dist/esm/models/operations/listmandates.js +24 -2
  620. package/dist/esm/models/operations/listmandates.js.map +1 -1
  621. package/dist/esm/models/operations/listpaymentlinks.d.ts +16 -3
  622. package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
  623. package/dist/esm/models/operations/listpaymentlinks.js +24 -2
  624. package/dist/esm/models/operations/listpaymentlinks.js.map +1 -1
  625. package/dist/esm/models/operations/listpayments.d.ts +16 -3
  626. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  627. package/dist/esm/models/operations/listpayments.js +24 -2
  628. package/dist/esm/models/operations/listpayments.js.map +1 -1
  629. package/dist/esm/models/operations/listprofiles.d.ts +16 -3
  630. package/dist/esm/models/operations/listprofiles.d.ts.map +1 -1
  631. package/dist/esm/models/operations/listprofiles.js +24 -2
  632. package/dist/esm/models/operations/listprofiles.js.map +1 -1
  633. package/dist/esm/models/operations/listrefunds.d.ts +16 -3
  634. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  635. package/dist/esm/models/operations/listrefunds.js +24 -2
  636. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  637. package/dist/esm/models/operations/listsalesinvoices.d.ts +16 -3
  638. package/dist/esm/models/operations/listsalesinvoices.d.ts.map +1 -1
  639. package/dist/esm/models/operations/listsalesinvoices.js +24 -2
  640. package/dist/esm/models/operations/listsalesinvoices.js.map +1 -1
  641. package/dist/esm/models/operations/listsettlementcaptures.d.ts +16 -3
  642. package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
  643. package/dist/esm/models/operations/listsettlementcaptures.js +24 -2
  644. package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
  645. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +16 -3
  646. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  647. package/dist/esm/models/operations/listsettlementchargebacks.js +24 -2
  648. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  649. package/dist/esm/models/operations/listsettlementpayments.d.ts +16 -3
  650. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  651. package/dist/esm/models/operations/listsettlementpayments.js +24 -2
  652. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  653. package/dist/esm/models/operations/listsettlementrefunds.d.ts +16 -3
  654. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  655. package/dist/esm/models/operations/listsettlementrefunds.js +24 -2
  656. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  657. package/dist/esm/models/operations/listsettlements.d.ts +16 -3
  658. package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
  659. package/dist/esm/models/operations/listsettlements.js +24 -2
  660. package/dist/esm/models/operations/listsettlements.js.map +1 -1
  661. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +16 -3
  662. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  663. package/dist/esm/models/operations/listsubscriptionpayments.js +24 -2
  664. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  665. package/dist/esm/models/operations/listsubscriptions.d.ts +16 -3
  666. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  667. package/dist/esm/models/operations/listsubscriptions.js +24 -2
  668. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  669. package/dist/esm/models/operations/listterminals.d.ts +16 -3
  670. package/dist/esm/models/operations/listterminals.d.ts.map +1 -1
  671. package/dist/esm/models/operations/listterminals.js +24 -2
  672. package/dist/esm/models/operations/listterminals.js.map +1 -1
  673. package/dist/esm/models/operations/listwebhooks.d.ts +16 -3
  674. package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
  675. package/dist/esm/models/operations/listwebhooks.js +24 -2
  676. package/dist/esm/models/operations/listwebhooks.js.map +1 -1
  677. package/dist/esm/models/paymentresponse.d.ts +3 -2
  678. package/dist/esm/models/paymentresponse.d.ts.map +1 -1
  679. package/dist/esm/models/paymentresponse.js +3 -2
  680. package/dist/esm/models/paymentresponse.js.map +1 -1
  681. package/dist/esm/sdk/balances.d.ts +7 -2
  682. package/dist/esm/sdk/balances.d.ts.map +1 -1
  683. package/dist/esm/sdk/balances.js +3 -2
  684. package/dist/esm/sdk/balances.js.map +1 -1
  685. package/dist/esm/sdk/balancetransfers.d.ts +4 -1
  686. package/dist/esm/sdk/balancetransfers.d.ts.map +1 -1
  687. package/dist/esm/sdk/balancetransfers.js +2 -1
  688. package/dist/esm/sdk/balancetransfers.js.map +1 -1
  689. package/dist/esm/sdk/captures.d.ts +4 -1
  690. package/dist/esm/sdk/captures.d.ts.map +1 -1
  691. package/dist/esm/sdk/captures.js +2 -1
  692. package/dist/esm/sdk/captures.js.map +1 -1
  693. package/dist/esm/sdk/chargebacks.d.ts +7 -2
  694. package/dist/esm/sdk/chargebacks.d.ts.map +1 -1
  695. package/dist/esm/sdk/chargebacks.js +3 -2
  696. package/dist/esm/sdk/chargebacks.js.map +1 -1
  697. package/dist/esm/sdk/clients.d.ts +4 -1
  698. package/dist/esm/sdk/clients.d.ts.map +1 -1
  699. package/dist/esm/sdk/clients.js +2 -1
  700. package/dist/esm/sdk/clients.js.map +1 -1
  701. package/dist/esm/sdk/customers.d.ts +7 -2
  702. package/dist/esm/sdk/customers.d.ts.map +1 -1
  703. package/dist/esm/sdk/customers.js +3 -2
  704. package/dist/esm/sdk/customers.js.map +1 -1
  705. package/dist/esm/sdk/invoices.d.ts +4 -1
  706. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  707. package/dist/esm/sdk/invoices.js +2 -1
  708. package/dist/esm/sdk/invoices.js.map +1 -1
  709. package/dist/esm/sdk/mandates.d.ts +4 -1
  710. package/dist/esm/sdk/mandates.d.ts.map +1 -1
  711. package/dist/esm/sdk/mandates.js +2 -1
  712. package/dist/esm/sdk/mandates.js.map +1 -1
  713. package/dist/esm/sdk/paymentlinks.d.ts +7 -2
  714. package/dist/esm/sdk/paymentlinks.d.ts.map +1 -1
  715. package/dist/esm/sdk/paymentlinks.js +3 -2
  716. package/dist/esm/sdk/paymentlinks.js.map +1 -1
  717. package/dist/esm/sdk/payments.d.ts +4 -1
  718. package/dist/esm/sdk/payments.d.ts.map +1 -1
  719. package/dist/esm/sdk/payments.js +2 -1
  720. package/dist/esm/sdk/payments.js.map +1 -1
  721. package/dist/esm/sdk/profiles.d.ts +4 -1
  722. package/dist/esm/sdk/profiles.d.ts.map +1 -1
  723. package/dist/esm/sdk/profiles.js +2 -1
  724. package/dist/esm/sdk/profiles.js.map +1 -1
  725. package/dist/esm/sdk/refunds.d.ts +7 -2
  726. package/dist/esm/sdk/refunds.d.ts.map +1 -1
  727. package/dist/esm/sdk/refunds.js +3 -2
  728. package/dist/esm/sdk/refunds.js.map +1 -1
  729. package/dist/esm/sdk/salesinvoices.d.ts +4 -1
  730. package/dist/esm/sdk/salesinvoices.d.ts.map +1 -1
  731. package/dist/esm/sdk/salesinvoices.js +2 -1
  732. package/dist/esm/sdk/salesinvoices.js.map +1 -1
  733. package/dist/esm/sdk/settlements.d.ts +16 -5
  734. package/dist/esm/sdk/settlements.d.ts.map +1 -1
  735. package/dist/esm/sdk/settlements.js +6 -5
  736. package/dist/esm/sdk/settlements.js.map +1 -1
  737. package/dist/esm/sdk/subscriptions.d.ts +10 -3
  738. package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
  739. package/dist/esm/sdk/subscriptions.js +4 -3
  740. package/dist/esm/sdk/subscriptions.js.map +1 -1
  741. package/dist/esm/sdk/terminals.d.ts +4 -1
  742. package/dist/esm/sdk/terminals.d.ts.map +1 -1
  743. package/dist/esm/sdk/terminals.js +2 -1
  744. package/dist/esm/sdk/terminals.js.map +1 -1
  745. package/dist/esm/sdk/webhooks.d.ts +4 -1
  746. package/dist/esm/sdk/webhooks.d.ts.map +1 -1
  747. package/dist/esm/sdk/webhooks.js +2 -1
  748. package/dist/esm/sdk/webhooks.js.map +1 -1
  749. package/examples/balancesList.example.ts +3 -1
  750. package/jsr.json +1 -1
  751. package/package.json +2 -2
  752. package/src/funcs/balanceTransfersList.ts +112 -38
  753. package/src/funcs/balancesList.ts +112 -38
  754. package/src/funcs/balancesListTransactions.ts +111 -38
  755. package/src/funcs/capturesList.ts +112 -39
  756. package/src/funcs/chargebacksAll.ts +114 -40
  757. package/src/funcs/chargebacksList.ts +112 -39
  758. package/src/funcs/clientsList.ts +111 -37
  759. package/src/funcs/customersList.ts +112 -38
  760. package/src/funcs/customersListPayments.ts +113 -40
  761. package/src/funcs/invoicesList.ts +113 -39
  762. package/src/funcs/mandatesList.ts +112 -39
  763. package/src/funcs/paymentLinksList.ts +111 -37
  764. package/src/funcs/paymentLinksListPayments.ts +112 -41
  765. package/src/funcs/paymentsList.ts +113 -39
  766. package/src/funcs/profilesList.ts +110 -36
  767. package/src/funcs/refundsAll.ts +114 -40
  768. package/src/funcs/refundsList.ts +112 -39
  769. package/src/funcs/salesInvoicesList.ts +111 -37
  770. package/src/funcs/settlementsList.ts +114 -40
  771. package/src/funcs/settlementsListCaptures.ts +112 -39
  772. package/src/funcs/settlementsListChargebacks.ts +112 -41
  773. package/src/funcs/settlementsListPayments.ts +113 -40
  774. package/src/funcs/settlementsListRefunds.ts +112 -39
  775. package/src/funcs/subscriptionsAll.ts +112 -38
  776. package/src/funcs/subscriptionsList.ts +112 -39
  777. package/src/funcs/subscriptionsListPayments.ts +115 -42
  778. package/src/funcs/terminalsList.ts +112 -38
  779. package/src/funcs/webhooksList.ts +113 -39
  780. package/src/lib/config.ts +3 -3
  781. package/src/lib/matchers.ts +3 -2
  782. package/src/lib/security.ts +1 -2
  783. package/src/mcp-server/mcp-server.ts +1 -1
  784. package/src/mcp-server/server.ts +1 -1
  785. package/src/mcp-server/shared.ts +2 -2
  786. package/src/mcp-server/tools/balanceTransfersList.ts +1 -1
  787. package/src/mcp-server/tools/balancesList.ts +1 -1
  788. package/src/mcp-server/tools/balancesListTransactions.ts +1 -1
  789. package/src/mcp-server/tools/capturesList.ts +1 -1
  790. package/src/mcp-server/tools/chargebacksAll.ts +1 -1
  791. package/src/mcp-server/tools/chargebacksList.ts +1 -1
  792. package/src/mcp-server/tools/clientsList.ts +1 -1
  793. package/src/mcp-server/tools/customersList.ts +1 -1
  794. package/src/mcp-server/tools/customersListPayments.ts +1 -1
  795. package/src/mcp-server/tools/invoicesList.ts +1 -1
  796. package/src/mcp-server/tools/mandatesList.ts +1 -1
  797. package/src/mcp-server/tools/paymentLinksList.ts +1 -1
  798. package/src/mcp-server/tools/paymentLinksListPayments.ts +1 -1
  799. package/src/mcp-server/tools/paymentsList.ts +1 -1
  800. package/src/mcp-server/tools/profilesList.ts +1 -1
  801. package/src/mcp-server/tools/refundsAll.ts +1 -1
  802. package/src/mcp-server/tools/refundsList.ts +1 -1
  803. package/src/mcp-server/tools/salesInvoicesList.ts +1 -1
  804. package/src/mcp-server/tools/settlementsList.ts +1 -1
  805. package/src/mcp-server/tools/settlementsListCaptures.ts +1 -1
  806. package/src/mcp-server/tools/settlementsListChargebacks.ts +1 -1
  807. package/src/mcp-server/tools/settlementsListPayments.ts +1 -1
  808. package/src/mcp-server/tools/settlementsListRefunds.ts +1 -1
  809. package/src/mcp-server/tools/subscriptionsAll.ts +1 -1
  810. package/src/mcp-server/tools/subscriptionsList.ts +1 -1
  811. package/src/mcp-server/tools/subscriptionsListPayments.ts +1 -1
  812. package/src/mcp-server/tools/terminalsList.ts +1 -1
  813. package/src/mcp-server/tools/webhooksList.ts +1 -1
  814. package/src/models/listpaymentresponse.ts +10 -4
  815. package/src/models/metadata.ts +8 -4
  816. package/src/models/operations/getpaymentlinkpayments.ts +61 -7
  817. package/src/models/operations/listallchargebacks.ts +60 -7
  818. package/src/models/operations/listallrefunds.ts +58 -7
  819. package/src/models/operations/listallsubscriptions.ts +60 -7
  820. package/src/models/operations/listbalances.ts +58 -7
  821. package/src/models/operations/listbalancetransactions.ts +61 -7
  822. package/src/models/operations/listcaptures.ts +58 -7
  823. package/src/models/operations/listchargebacks.ts +60 -7
  824. package/src/models/operations/listclients.ts +58 -7
  825. package/src/models/operations/listconnectbalancetransfers.ts +67 -7
  826. package/src/models/operations/listcustomerpayments.ts +60 -7
  827. package/src/models/operations/listcustomers.ts +58 -7
  828. package/src/models/operations/listinvoices.ts +58 -7
  829. package/src/models/operations/listmandates.ts +58 -7
  830. package/src/models/operations/listpaymentlinks.ts +60 -7
  831. package/src/models/operations/listpayments.ts +58 -7
  832. package/src/models/operations/listprofiles.ts +58 -7
  833. package/src/models/operations/listrefunds.ts +58 -7
  834. package/src/models/operations/listsalesinvoices.ts +60 -7
  835. package/src/models/operations/listsettlementcaptures.ts +61 -7
  836. package/src/models/operations/listsettlementchargebacks.ts +61 -7
  837. package/src/models/operations/listsettlementpayments.ts +61 -7
  838. package/src/models/operations/listsettlementrefunds.ts +60 -7
  839. package/src/models/operations/listsettlements.ts +60 -7
  840. package/src/models/operations/listsubscriptionpayments.ts +61 -7
  841. package/src/models/operations/listsubscriptions.ts +60 -7
  842. package/src/models/operations/listterminals.ts +58 -7
  843. package/src/models/operations/listwebhooks.ts +58 -7
  844. package/src/models/paymentresponse.ts +10 -4
  845. package/src/sdk/balances.ts +7 -4
  846. package/src/sdk/balancetransfers.ts +8 -2
  847. package/src/sdk/captures.ts +3 -2
  848. package/src/sdk/chargebacks.ts +9 -4
  849. package/src/sdk/clients.ts +3 -2
  850. package/src/sdk/customers.ts +7 -4
  851. package/src/sdk/invoices.ts +3 -2
  852. package/src/sdk/mandates.ts +3 -2
  853. package/src/sdk/paymentlinks.ts +9 -4
  854. package/src/sdk/payments.ts +3 -2
  855. package/src/sdk/profiles.ts +3 -2
  856. package/src/sdk/refunds.ts +5 -4
  857. package/src/sdk/salesinvoices.ts +5 -2
  858. package/src/sdk/settlements.ts +21 -10
  859. package/src/sdk/subscriptions.ts +13 -6
  860. package/src/sdk/terminals.ts +3 -2
  861. package/src/sdk/webhooks.ts +3 -2
  862. package/.devcontainer/devcontainer.json +0 -45
  863. package/_speakeasy/.github/action-inputs-config.json +0 -53
  864. package/_speakeasy/.github/action-security-config.json +0 -88
  865. package/examples/package-lock.json +0 -620
  866. package/examples/package.json +0 -18
  867. 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.6",
52873
- genVersion: "2.832.6",
52874
- userAgent: "speakeasy-sdk/typescript 1.1.6 2.832.6 1.0.0 mollie-api-typescript"
52872
+ sdkVersion: "1.2.1",
52873
+ genVersion: "2.846.1",
52874
+ userAgent: "speakeasy-sdk/typescript 1.2.1 2.846.1 1.0.0 mollie-api-typescript"
52875
52875
  };
52876
52876
  });
52877
52877
 
@@ -54021,7 +54021,7 @@ async function consumeStream(stream) {
54021
54021
  while (true) {
54022
54022
  const { done, value } = await reader.read();
54023
54023
  if (value != null)
54024
- chunks.push(value);
54024
+ chunks.push(new Uint8Array(value).buffer);
54025
54025
  if (done)
54026
54026
  break;
54027
54027
  }
@@ -54596,7 +54596,7 @@ function resolveSecurity(...options) {
54596
54596
  applyBearer(state, spec);
54597
54597
  break;
54598
54598
  default:
54599
- throw SecurityError.unrecognizedType(type);
54599
+ throw SecurityError.unrecognizedType((spec, type));
54600
54600
  }
54601
54601
  });
54602
54602
  return state;
@@ -55084,8 +55084,8 @@ var init_capturemoderesponse = __esm(() => {
55084
55084
  var Metadata$inboundSchema, Metadata$outboundSchema;
55085
55085
  var init_metadata = __esm(() => {
55086
55086
  init_esm();
55087
- Metadata$inboundSchema = unionType([stringType(), recordType(anyType()), arrayType(stringType())]);
55088
- Metadata$outboundSchema = unionType([stringType(), recordType(anyType()), arrayType(stringType())]);
55087
+ Metadata$inboundSchema = unionType([stringType(), numberType(), recordType(anyType()), arrayType(stringType())]);
55088
+ Metadata$outboundSchema = unionType([stringType(), numberType(), recordType(anyType()), arrayType(stringType())]);
55089
55089
  });
55090
55090
 
55091
55091
  // src/models/mode.ts
@@ -59871,6 +59871,7 @@ var init_listpaymentresponse = __esm(() => {
59871
59871
  init_sequencetyperesponse();
59872
59872
  init_statusreason();
59873
59873
  init_url2();
59874
+ init_urlnullable();
59874
59875
  ListPaymentResponseStatus = {
59875
59876
  Open: "open",
59876
59877
  Pending: "pending",
@@ -60124,7 +60125,7 @@ var init_listpaymentresponse = __esm(() => {
60124
60125
  self: Url$inboundSchema,
60125
60126
  checkout: Url$inboundSchema.optional(),
60126
60127
  mobileAppCheckout: Url$inboundSchema.optional(),
60127
- changePaymentState: Url$inboundSchema.optional(),
60128
+ changePaymentState: nullableType(UrlNullable$inboundSchema).optional(),
60128
60129
  dashboard: Url$inboundSchema,
60129
60130
  refunds: Url$inboundSchema.optional(),
60130
60131
  chargebacks: Url$inboundSchema.optional(),
@@ -60142,7 +60143,7 @@ var init_listpaymentresponse = __esm(() => {
60142
60143
  self: Url$outboundSchema,
60143
60144
  checkout: Url$outboundSchema.optional(),
60144
60145
  mobileAppCheckout: Url$outboundSchema.optional(),
60145
- changePaymentState: Url$outboundSchema.optional(),
60146
+ changePaymentState: nullableType(UrlNullable$outboundSchema).optional(),
60146
60147
  dashboard: Url$outboundSchema,
60147
60148
  refunds: Url$outboundSchema.optional(),
60148
60149
  chargebacks: Url$outboundSchema.optional(),
@@ -61490,6 +61491,7 @@ var init_paymentresponse = __esm(() => {
61490
61491
  init_sequencetyperesponse();
61491
61492
  init_statusreason();
61492
61493
  init_url2();
61494
+ init_urlnullable();
61493
61495
  PaymentResponseStatus = {
61494
61496
  Open: "open",
61495
61497
  Pending: "pending",
@@ -61743,7 +61745,7 @@ var init_paymentresponse = __esm(() => {
61743
61745
  self: Url$inboundSchema,
61744
61746
  checkout: Url$inboundSchema.optional(),
61745
61747
  mobileAppCheckout: Url$inboundSchema.optional(),
61746
- changePaymentState: Url$inboundSchema.optional(),
61748
+ changePaymentState: nullableType(UrlNullable$inboundSchema).optional(),
61747
61749
  dashboard: Url$inboundSchema,
61748
61750
  refunds: Url$inboundSchema.optional(),
61749
61751
  chargebacks: Url$inboundSchema.optional(),
@@ -61762,7 +61764,7 @@ var init_paymentresponse = __esm(() => {
61762
61764
  self: Url$outboundSchema,
61763
61765
  checkout: Url$outboundSchema.optional(),
61764
61766
  mobileAppCheckout: Url$outboundSchema.optional(),
61765
- changePaymentState: Url$outboundSchema.optional(),
61767
+ changePaymentState: nullableType(UrlNullable$outboundSchema).optional(),
61766
61768
  dashboard: Url$outboundSchema,
61767
61769
  refunds: Url$outboundSchema.optional(),
61768
61770
  chargebacks: Url$outboundSchema.optional(),
@@ -64328,7 +64330,7 @@ var init_getpaymentlink = __esm(() => {
64328
64330
  });
64329
64331
 
64330
64332
  // src/models/operations/getpaymentlinkpayments.ts
64331
- var GetPaymentLinkPaymentsGlobals$inboundSchema, GetPaymentLinkPaymentsGlobals$outboundSchema, GetPaymentLinkPaymentsRequest$inboundSchema, GetPaymentLinkPaymentsRequest$outboundSchema, GetPaymentLinkPaymentsEmbedded$inboundSchema, GetPaymentLinkPaymentsEmbedded$outboundSchema, GetPaymentLinkPaymentsResponse$inboundSchema, GetPaymentLinkPaymentsResponse$outboundSchema;
64333
+ var GetPaymentLinkPaymentsGlobals$inboundSchema, GetPaymentLinkPaymentsGlobals$outboundSchema, GetPaymentLinkPaymentsRequest$inboundSchema, GetPaymentLinkPaymentsRequest$outboundSchema, GetPaymentLinkPaymentsEmbedded$inboundSchema, GetPaymentLinkPaymentsEmbedded$outboundSchema, GetPaymentLinkPaymentsResponseBody$inboundSchema, GetPaymentLinkPaymentsResponseBody$outboundSchema, GetPaymentLinkPaymentsResponse$inboundSchema, GetPaymentLinkPaymentsResponse$outboundSchema;
64332
64334
  var init_getpaymentlinkpayments = __esm(() => {
64333
64335
  init_esm();
64334
64336
  init_primitives();
@@ -64369,7 +64371,7 @@ var init_getpaymentlinkpayments = __esm(() => {
64369
64371
  GetPaymentLinkPaymentsEmbedded$outboundSchema = objectType({
64370
64372
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
64371
64373
  });
64372
- GetPaymentLinkPaymentsResponse$inboundSchema = objectType({
64374
+ GetPaymentLinkPaymentsResponseBody$inboundSchema = objectType({
64373
64375
  count: numberType().int(),
64374
64376
  _embedded: lazyType(() => GetPaymentLinkPaymentsEmbedded$inboundSchema),
64375
64377
  _links: ListLinks$inboundSchema
@@ -64379,7 +64381,7 @@ var init_getpaymentlinkpayments = __esm(() => {
64379
64381
  _links: "links"
64380
64382
  });
64381
64383
  });
64382
- GetPaymentLinkPaymentsResponse$outboundSchema = objectType({
64384
+ GetPaymentLinkPaymentsResponseBody$outboundSchema = objectType({
64383
64385
  count: numberType().int(),
64384
64386
  embedded: lazyType(() => GetPaymentLinkPaymentsEmbedded$outboundSchema),
64385
64387
  links: ListLinks$outboundSchema
@@ -64389,6 +64391,20 @@ var init_getpaymentlinkpayments = __esm(() => {
64389
64391
  links: "_links"
64390
64392
  });
64391
64393
  });
64394
+ GetPaymentLinkPaymentsResponse$inboundSchema = objectType({
64395
+ Result: lazyType(() => GetPaymentLinkPaymentsResponseBody$inboundSchema)
64396
+ }).transform((v2) => {
64397
+ return remap(v2, {
64398
+ Result: "result"
64399
+ });
64400
+ });
64401
+ GetPaymentLinkPaymentsResponse$outboundSchema = objectType({
64402
+ result: lazyType(() => GetPaymentLinkPaymentsResponseBody$outboundSchema)
64403
+ }).transform((v2) => {
64404
+ return remap(v2, {
64405
+ result: "Result"
64406
+ });
64407
+ });
64392
64408
  });
64393
64409
 
64394
64410
  // src/models/operations/getpermission.ts
@@ -64690,7 +64706,7 @@ var init_getwebhookevent = __esm(() => {
64690
64706
  });
64691
64707
 
64692
64708
  // src/models/operations/listallchargebacks.ts
64693
- var ListAllChargebacksGlobals$inboundSchema, ListAllChargebacksGlobals$outboundSchema, ListAllChargebacksRequest$inboundSchema, ListAllChargebacksRequest$outboundSchema, ListAllChargebacksEmbedded$inboundSchema, ListAllChargebacksEmbedded$outboundSchema, ListAllChargebacksResponse$inboundSchema, ListAllChargebacksResponse$outboundSchema;
64709
+ var ListAllChargebacksGlobals$inboundSchema, ListAllChargebacksGlobals$outboundSchema, ListAllChargebacksRequest$inboundSchema, ListAllChargebacksRequest$outboundSchema, ListAllChargebacksEmbedded$inboundSchema, ListAllChargebacksEmbedded$outboundSchema, ListAllChargebacksResponseBody$inboundSchema, ListAllChargebacksResponseBody$outboundSchema, ListAllChargebacksResponse$inboundSchema, ListAllChargebacksResponse$outboundSchema;
64694
64710
  var init_listallchargebacks = __esm(() => {
64695
64711
  init_esm();
64696
64712
  init_primitives();
@@ -64735,7 +64751,7 @@ var init_listallchargebacks = __esm(() => {
64735
64751
  ListAllChargebacksEmbedded$outboundSchema = objectType({
64736
64752
  chargebacks: arrayType(ListEntityChargeback$outboundSchema)
64737
64753
  });
64738
- ListAllChargebacksResponse$inboundSchema = objectType({
64754
+ ListAllChargebacksResponseBody$inboundSchema = objectType({
64739
64755
  count: numberType().int(),
64740
64756
  _embedded: lazyType(() => ListAllChargebacksEmbedded$inboundSchema),
64741
64757
  _links: ListLinks$inboundSchema
@@ -64745,7 +64761,7 @@ var init_listallchargebacks = __esm(() => {
64745
64761
  _links: "links"
64746
64762
  });
64747
64763
  });
64748
- ListAllChargebacksResponse$outboundSchema = objectType({
64764
+ ListAllChargebacksResponseBody$outboundSchema = objectType({
64749
64765
  count: numberType().int(),
64750
64766
  embedded: lazyType(() => ListAllChargebacksEmbedded$outboundSchema),
64751
64767
  links: ListLinks$outboundSchema
@@ -64755,6 +64771,20 @@ var init_listallchargebacks = __esm(() => {
64755
64771
  links: "_links"
64756
64772
  });
64757
64773
  });
64774
+ ListAllChargebacksResponse$inboundSchema = objectType({
64775
+ Result: lazyType(() => ListAllChargebacksResponseBody$inboundSchema)
64776
+ }).transform((v2) => {
64777
+ return remap(v2, {
64778
+ Result: "result"
64779
+ });
64780
+ });
64781
+ ListAllChargebacksResponse$outboundSchema = objectType({
64782
+ result: lazyType(() => ListAllChargebacksResponseBody$outboundSchema)
64783
+ }).transform((v2) => {
64784
+ return remap(v2, {
64785
+ result: "Result"
64786
+ });
64787
+ });
64758
64788
  });
64759
64789
 
64760
64790
  // src/models/operations/listallmethods.ts
@@ -64834,7 +64864,7 @@ var init_listallmethods = __esm(() => {
64834
64864
  });
64835
64865
 
64836
64866
  // src/models/operations/listallrefunds.ts
64837
- var ListAllRefundsGlobals$inboundSchema, ListAllRefundsGlobals$outboundSchema, ListAllRefundsRequest$inboundSchema, ListAllRefundsRequest$outboundSchema, ListAllRefundsEmbedded$inboundSchema, ListAllRefundsEmbedded$outboundSchema, ListAllRefundsResponse$inboundSchema, ListAllRefundsResponse$outboundSchema;
64867
+ var ListAllRefundsGlobals$inboundSchema, ListAllRefundsGlobals$outboundSchema, ListAllRefundsRequest$inboundSchema, ListAllRefundsRequest$outboundSchema, ListAllRefundsEmbedded$inboundSchema, ListAllRefundsEmbedded$outboundSchema, ListAllRefundsResponseBody$inboundSchema, ListAllRefundsResponseBody$outboundSchema, ListAllRefundsResponse$inboundSchema, ListAllRefundsResponse$outboundSchema;
64838
64868
  var init_listallrefunds = __esm(() => {
64839
64869
  init_esm();
64840
64870
  init_primitives();
@@ -64879,7 +64909,7 @@ var init_listallrefunds = __esm(() => {
64879
64909
  ListAllRefundsEmbedded$outboundSchema = objectType({
64880
64910
  refunds: arrayType(ListEntityRefund$outboundSchema)
64881
64911
  });
64882
- ListAllRefundsResponse$inboundSchema = objectType({
64912
+ ListAllRefundsResponseBody$inboundSchema = objectType({
64883
64913
  count: numberType().int(),
64884
64914
  _embedded: lazyType(() => ListAllRefundsEmbedded$inboundSchema),
64885
64915
  _links: ListLinks$inboundSchema
@@ -64889,7 +64919,7 @@ var init_listallrefunds = __esm(() => {
64889
64919
  _links: "links"
64890
64920
  });
64891
64921
  });
64892
- ListAllRefundsResponse$outboundSchema = objectType({
64922
+ ListAllRefundsResponseBody$outboundSchema = objectType({
64893
64923
  count: numberType().int(),
64894
64924
  embedded: lazyType(() => ListAllRefundsEmbedded$outboundSchema),
64895
64925
  links: ListLinks$outboundSchema
@@ -64899,10 +64929,24 @@ var init_listallrefunds = __esm(() => {
64899
64929
  links: "_links"
64900
64930
  });
64901
64931
  });
64932
+ ListAllRefundsResponse$inboundSchema = objectType({
64933
+ Result: lazyType(() => ListAllRefundsResponseBody$inboundSchema)
64934
+ }).transform((v2) => {
64935
+ return remap(v2, {
64936
+ Result: "result"
64937
+ });
64938
+ });
64939
+ ListAllRefundsResponse$outboundSchema = objectType({
64940
+ result: lazyType(() => ListAllRefundsResponseBody$outboundSchema)
64941
+ }).transform((v2) => {
64942
+ return remap(v2, {
64943
+ result: "Result"
64944
+ });
64945
+ });
64902
64946
  });
64903
64947
 
64904
64948
  // src/models/operations/listallsubscriptions.ts
64905
- var ListAllSubscriptionsGlobals$inboundSchema, ListAllSubscriptionsGlobals$outboundSchema, ListAllSubscriptionsRequest$inboundSchema, ListAllSubscriptionsRequest$outboundSchema, ListAllSubscriptionsEmbedded$inboundSchema, ListAllSubscriptionsEmbedded$outboundSchema, ListAllSubscriptionsResponse$inboundSchema, ListAllSubscriptionsResponse$outboundSchema;
64949
+ var ListAllSubscriptionsGlobals$inboundSchema, ListAllSubscriptionsGlobals$outboundSchema, ListAllSubscriptionsRequest$inboundSchema, ListAllSubscriptionsRequest$outboundSchema, ListAllSubscriptionsEmbedded$inboundSchema, ListAllSubscriptionsEmbedded$outboundSchema, ListAllSubscriptionsResponseBody$inboundSchema, ListAllSubscriptionsResponseBody$outboundSchema, ListAllSubscriptionsResponse$inboundSchema, ListAllSubscriptionsResponse$outboundSchema;
64906
64950
  var init_listallsubscriptions = __esm(() => {
64907
64951
  init_esm();
64908
64952
  init_primitives();
@@ -64943,7 +64987,7 @@ var init_listallsubscriptions = __esm(() => {
64943
64987
  ListAllSubscriptionsEmbedded$outboundSchema = objectType({
64944
64988
  subscriptions: arrayType(ListSubscriptionResponse$outboundSchema).optional()
64945
64989
  });
64946
- ListAllSubscriptionsResponse$inboundSchema = objectType({
64990
+ ListAllSubscriptionsResponseBody$inboundSchema = objectType({
64947
64991
  count: numberType().int(),
64948
64992
  _embedded: lazyType(() => ListAllSubscriptionsEmbedded$inboundSchema),
64949
64993
  _links: ListLinks$inboundSchema
@@ -64953,7 +64997,7 @@ var init_listallsubscriptions = __esm(() => {
64953
64997
  _links: "links"
64954
64998
  });
64955
64999
  });
64956
- ListAllSubscriptionsResponse$outboundSchema = objectType({
65000
+ ListAllSubscriptionsResponseBody$outboundSchema = objectType({
64957
65001
  count: numberType().int(),
64958
65002
  embedded: lazyType(() => ListAllSubscriptionsEmbedded$outboundSchema),
64959
65003
  links: ListLinks$outboundSchema
@@ -64963,10 +65007,24 @@ var init_listallsubscriptions = __esm(() => {
64963
65007
  links: "_links"
64964
65008
  });
64965
65009
  });
65010
+ ListAllSubscriptionsResponse$inboundSchema = objectType({
65011
+ Result: lazyType(() => ListAllSubscriptionsResponseBody$inboundSchema)
65012
+ }).transform((v2) => {
65013
+ return remap(v2, {
65014
+ Result: "result"
65015
+ });
65016
+ });
65017
+ ListAllSubscriptionsResponse$outboundSchema = objectType({
65018
+ result: lazyType(() => ListAllSubscriptionsResponseBody$outboundSchema)
65019
+ }).transform((v2) => {
65020
+ return remap(v2, {
65021
+ result: "Result"
65022
+ });
65023
+ });
64966
65024
  });
64967
65025
 
64968
65026
  // src/models/operations/listbalances.ts
64969
- var ListBalancesGlobals$inboundSchema, ListBalancesGlobals$outboundSchema, ListBalancesRequest$inboundSchema, ListBalancesRequest$outboundSchema, ListBalancesEmbedded$inboundSchema, ListBalancesEmbedded$outboundSchema, ListBalancesResponse$inboundSchema, ListBalancesResponse$outboundSchema;
65027
+ var ListBalancesGlobals$inboundSchema, ListBalancesGlobals$outboundSchema, ListBalancesRequest$inboundSchema, ListBalancesRequest$outboundSchema, ListBalancesEmbedded$inboundSchema, ListBalancesEmbedded$outboundSchema, ListBalancesResponseBody$inboundSchema, ListBalancesResponseBody$outboundSchema, ListBalancesResponse$inboundSchema, ListBalancesResponse$outboundSchema;
64970
65028
  var init_listbalances = __esm(() => {
64971
65029
  init_esm();
64972
65030
  init_primitives();
@@ -65005,7 +65063,7 @@ var init_listbalances = __esm(() => {
65005
65063
  ListBalancesEmbedded$outboundSchema = objectType({
65006
65064
  balances: arrayType(ListEntityBalance$outboundSchema)
65007
65065
  });
65008
- ListBalancesResponse$inboundSchema = objectType({
65066
+ ListBalancesResponseBody$inboundSchema = objectType({
65009
65067
  count: numberType().int(),
65010
65068
  _embedded: lazyType(() => ListBalancesEmbedded$inboundSchema),
65011
65069
  _links: ListLinks$inboundSchema
@@ -65015,7 +65073,7 @@ var init_listbalances = __esm(() => {
65015
65073
  _links: "links"
65016
65074
  });
65017
65075
  });
65018
- ListBalancesResponse$outboundSchema = objectType({
65076
+ ListBalancesResponseBody$outboundSchema = objectType({
65019
65077
  count: numberType().int(),
65020
65078
  embedded: lazyType(() => ListBalancesEmbedded$outboundSchema),
65021
65079
  links: ListLinks$outboundSchema
@@ -65025,10 +65083,24 @@ var init_listbalances = __esm(() => {
65025
65083
  links: "_links"
65026
65084
  });
65027
65085
  });
65086
+ ListBalancesResponse$inboundSchema = objectType({
65087
+ Result: lazyType(() => ListBalancesResponseBody$inboundSchema)
65088
+ }).transform((v2) => {
65089
+ return remap(v2, {
65090
+ Result: "result"
65091
+ });
65092
+ });
65093
+ ListBalancesResponse$outboundSchema = objectType({
65094
+ result: lazyType(() => ListBalancesResponseBody$outboundSchema)
65095
+ }).transform((v2) => {
65096
+ return remap(v2, {
65097
+ result: "Result"
65098
+ });
65099
+ });
65028
65100
  });
65029
65101
 
65030
65102
  // src/models/operations/listbalancetransactions.ts
65031
- var ListBalanceTransactionsGlobals$inboundSchema, ListBalanceTransactionsGlobals$outboundSchema, ListBalanceTransactionsRequest$inboundSchema, ListBalanceTransactionsRequest$outboundSchema, ListBalanceTransactionsEmbedded$inboundSchema, ListBalanceTransactionsEmbedded$outboundSchema, ListBalanceTransactionsResponse$inboundSchema, ListBalanceTransactionsResponse$outboundSchema;
65103
+ var ListBalanceTransactionsGlobals$inboundSchema, ListBalanceTransactionsGlobals$outboundSchema, ListBalanceTransactionsRequest$inboundSchema, ListBalanceTransactionsRequest$outboundSchema, ListBalanceTransactionsEmbedded$inboundSchema, ListBalanceTransactionsEmbedded$outboundSchema, ListBalanceTransactionsResponseBody$inboundSchema, ListBalanceTransactionsResponseBody$outboundSchema, ListBalanceTransactionsResponse$inboundSchema, ListBalanceTransactionsResponse$outboundSchema;
65032
65104
  var init_listbalancetransactions = __esm(() => {
65033
65105
  init_esm();
65034
65106
  init_primitives();
@@ -65075,7 +65147,7 @@ var init_listbalancetransactions = __esm(() => {
65075
65147
  balanceTransactions: "balance_transactions"
65076
65148
  });
65077
65149
  });
65078
- ListBalanceTransactionsResponse$inboundSchema = objectType({
65150
+ ListBalanceTransactionsResponseBody$inboundSchema = objectType({
65079
65151
  count: numberType().int(),
65080
65152
  _embedded: lazyType(() => ListBalanceTransactionsEmbedded$inboundSchema),
65081
65153
  _links: ListLinks$inboundSchema
@@ -65085,7 +65157,7 @@ var init_listbalancetransactions = __esm(() => {
65085
65157
  _links: "links"
65086
65158
  });
65087
65159
  });
65088
- ListBalanceTransactionsResponse$outboundSchema = objectType({
65160
+ ListBalanceTransactionsResponseBody$outboundSchema = objectType({
65089
65161
  count: numberType().int(),
65090
65162
  embedded: lazyType(() => ListBalanceTransactionsEmbedded$outboundSchema),
65091
65163
  links: ListLinks$outboundSchema
@@ -65095,6 +65167,20 @@ var init_listbalancetransactions = __esm(() => {
65095
65167
  links: "_links"
65096
65168
  });
65097
65169
  });
65170
+ ListBalanceTransactionsResponse$inboundSchema = objectType({
65171
+ Result: lazyType(() => ListBalanceTransactionsResponseBody$inboundSchema)
65172
+ }).transform((v2) => {
65173
+ return remap(v2, {
65174
+ Result: "result"
65175
+ });
65176
+ });
65177
+ ListBalanceTransactionsResponse$outboundSchema = objectType({
65178
+ result: lazyType(() => ListBalanceTransactionsResponseBody$outboundSchema)
65179
+ }).transform((v2) => {
65180
+ return remap(v2, {
65181
+ result: "Result"
65182
+ });
65183
+ });
65098
65184
  });
65099
65185
 
65100
65186
  // src/models/operations/listcapabilities.ts
@@ -65152,7 +65238,7 @@ var init_listcapabilities = __esm(() => {
65152
65238
  });
65153
65239
 
65154
65240
  // src/models/operations/listcaptures.ts
65155
- var ListCapturesGlobals$inboundSchema, ListCapturesGlobals$outboundSchema, ListCapturesRequest$inboundSchema, ListCapturesRequest$outboundSchema, ListCapturesEmbedded$inboundSchema, ListCapturesEmbedded$outboundSchema, ListCapturesResponse$inboundSchema, ListCapturesResponse$outboundSchema;
65241
+ var ListCapturesGlobals$inboundSchema, ListCapturesGlobals$outboundSchema, ListCapturesRequest$inboundSchema, ListCapturesRequest$outboundSchema, ListCapturesEmbedded$inboundSchema, ListCapturesEmbedded$outboundSchema, ListCapturesResponseBody$inboundSchema, ListCapturesResponseBody$outboundSchema, ListCapturesResponse$inboundSchema, ListCapturesResponse$outboundSchema;
65156
65242
  var init_listcaptures = __esm(() => {
65157
65243
  init_esm();
65158
65244
  init_primitives();
@@ -65193,7 +65279,7 @@ var init_listcaptures = __esm(() => {
65193
65279
  ListCapturesEmbedded$outboundSchema = objectType({
65194
65280
  captures: arrayType(ListCaptureResponse$outboundSchema)
65195
65281
  });
65196
- ListCapturesResponse$inboundSchema = objectType({
65282
+ ListCapturesResponseBody$inboundSchema = objectType({
65197
65283
  count: numberType().int(),
65198
65284
  _embedded: lazyType(() => ListCapturesEmbedded$inboundSchema),
65199
65285
  _links: ListLinks$inboundSchema
@@ -65203,7 +65289,7 @@ var init_listcaptures = __esm(() => {
65203
65289
  _links: "links"
65204
65290
  });
65205
65291
  });
65206
- ListCapturesResponse$outboundSchema = objectType({
65292
+ ListCapturesResponseBody$outboundSchema = objectType({
65207
65293
  count: numberType().int(),
65208
65294
  embedded: lazyType(() => ListCapturesEmbedded$outboundSchema),
65209
65295
  links: ListLinks$outboundSchema
@@ -65213,10 +65299,24 @@ var init_listcaptures = __esm(() => {
65213
65299
  links: "_links"
65214
65300
  });
65215
65301
  });
65302
+ ListCapturesResponse$inboundSchema = objectType({
65303
+ Result: lazyType(() => ListCapturesResponseBody$inboundSchema)
65304
+ }).transform((v2) => {
65305
+ return remap(v2, {
65306
+ Result: "result"
65307
+ });
65308
+ });
65309
+ ListCapturesResponse$outboundSchema = objectType({
65310
+ result: lazyType(() => ListCapturesResponseBody$outboundSchema)
65311
+ }).transform((v2) => {
65312
+ return remap(v2, {
65313
+ result: "Result"
65314
+ });
65315
+ });
65216
65316
  });
65217
65317
 
65218
65318
  // src/models/operations/listchargebacks.ts
65219
- var ListChargebacksGlobals$inboundSchema, ListChargebacksGlobals$outboundSchema, ListChargebacksRequest$inboundSchema, ListChargebacksRequest$outboundSchema, ListChargebacksEmbedded$inboundSchema, ListChargebacksEmbedded$outboundSchema, ListChargebacksResponse$inboundSchema, ListChargebacksResponse$outboundSchema;
65319
+ var ListChargebacksGlobals$inboundSchema, ListChargebacksGlobals$outboundSchema, ListChargebacksRequest$inboundSchema, ListChargebacksRequest$outboundSchema, ListChargebacksEmbedded$inboundSchema, ListChargebacksEmbedded$outboundSchema, ListChargebacksResponseBody$inboundSchema, ListChargebacksResponseBody$outboundSchema, ListChargebacksResponse$inboundSchema, ListChargebacksResponse$outboundSchema;
65220
65320
  var init_listchargebacks = __esm(() => {
65221
65321
  init_esm();
65222
65322
  init_primitives();
@@ -65257,7 +65357,7 @@ var init_listchargebacks = __esm(() => {
65257
65357
  ListChargebacksEmbedded$outboundSchema = objectType({
65258
65358
  chargebacks: arrayType(ListEntityChargeback$outboundSchema)
65259
65359
  });
65260
- ListChargebacksResponse$inboundSchema = objectType({
65360
+ ListChargebacksResponseBody$inboundSchema = objectType({
65261
65361
  count: numberType().int(),
65262
65362
  _embedded: lazyType(() => ListChargebacksEmbedded$inboundSchema),
65263
65363
  _links: ListLinks$inboundSchema
@@ -65267,7 +65367,7 @@ var init_listchargebacks = __esm(() => {
65267
65367
  _links: "links"
65268
65368
  });
65269
65369
  });
65270
- ListChargebacksResponse$outboundSchema = objectType({
65370
+ ListChargebacksResponseBody$outboundSchema = objectType({
65271
65371
  count: numberType().int(),
65272
65372
  embedded: lazyType(() => ListChargebacksEmbedded$outboundSchema),
65273
65373
  links: ListLinks$outboundSchema
@@ -65277,10 +65377,24 @@ var init_listchargebacks = __esm(() => {
65277
65377
  links: "_links"
65278
65378
  });
65279
65379
  });
65380
+ ListChargebacksResponse$inboundSchema = objectType({
65381
+ Result: lazyType(() => ListChargebacksResponseBody$inboundSchema)
65382
+ }).transform((v2) => {
65383
+ return remap(v2, {
65384
+ Result: "result"
65385
+ });
65386
+ });
65387
+ ListChargebacksResponse$outboundSchema = objectType({
65388
+ result: lazyType(() => ListChargebacksResponseBody$outboundSchema)
65389
+ }).transform((v2) => {
65390
+ return remap(v2, {
65391
+ result: "Result"
65392
+ });
65393
+ });
65280
65394
  });
65281
65395
 
65282
65396
  // src/models/operations/listclients.ts
65283
- 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;
65397
+ 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;
65284
65398
  var init_listclients = __esm(() => {
65285
65399
  init_esm();
65286
65400
  init_primitives();
@@ -65363,7 +65477,7 @@ var init_listclients = __esm(() => {
65363
65477
  ListClientsEmbedded$outboundSchema = objectType({
65364
65478
  clients: arrayType(lazyType(() => Client$outboundSchema)).optional()
65365
65479
  });
65366
- ListClientsResponse$inboundSchema = objectType({
65480
+ ListClientsResponseBody$inboundSchema = objectType({
65367
65481
  count: numberType().int().optional(),
65368
65482
  _embedded: lazyType(() => ListClientsEmbedded$inboundSchema).optional(),
65369
65483
  _links: ListLinks$inboundSchema.optional()
@@ -65373,7 +65487,7 @@ var init_listclients = __esm(() => {
65373
65487
  _links: "links"
65374
65488
  });
65375
65489
  });
65376
- ListClientsResponse$outboundSchema = objectType({
65490
+ ListClientsResponseBody$outboundSchema = objectType({
65377
65491
  count: numberType().int().optional(),
65378
65492
  embedded: lazyType(() => ListClientsEmbedded$outboundSchema).optional(),
65379
65493
  links: ListLinks$outboundSchema.optional()
@@ -65383,10 +65497,24 @@ var init_listclients = __esm(() => {
65383
65497
  links: "_links"
65384
65498
  });
65385
65499
  });
65500
+ ListClientsResponse$inboundSchema = objectType({
65501
+ Result: lazyType(() => ListClientsResponseBody$inboundSchema)
65502
+ }).transform((v2) => {
65503
+ return remap(v2, {
65504
+ Result: "result"
65505
+ });
65506
+ });
65507
+ ListClientsResponse$outboundSchema = objectType({
65508
+ result: lazyType(() => ListClientsResponseBody$outboundSchema)
65509
+ }).transform((v2) => {
65510
+ return remap(v2, {
65511
+ result: "Result"
65512
+ });
65513
+ });
65386
65514
  });
65387
65515
 
65388
65516
  // src/models/operations/listconnectbalancetransfers.ts
65389
- var ListConnectBalanceTransfersGlobals$inboundSchema, ListConnectBalanceTransfersGlobals$outboundSchema, ListConnectBalanceTransfersRequest$inboundSchema, ListConnectBalanceTransfersRequest$outboundSchema, ListConnectBalanceTransfersEmbedded$inboundSchema, ListConnectBalanceTransfersEmbedded$outboundSchema, ListConnectBalanceTransfersResponse$inboundSchema, ListConnectBalanceTransfersResponse$outboundSchema;
65517
+ var ListConnectBalanceTransfersGlobals$inboundSchema, ListConnectBalanceTransfersGlobals$outboundSchema, ListConnectBalanceTransfersRequest$inboundSchema, ListConnectBalanceTransfersRequest$outboundSchema, ListConnectBalanceTransfersEmbedded$inboundSchema, ListConnectBalanceTransfersEmbedded$outboundSchema, ListConnectBalanceTransfersResponseBody$inboundSchema, ListConnectBalanceTransfersResponseBody$outboundSchema, ListConnectBalanceTransfersResponse$inboundSchema, ListConnectBalanceTransfersResponse$outboundSchema;
65390
65518
  var init_listconnectbalancetransfers = __esm(() => {
65391
65519
  init_esm();
65392
65520
  init_primitives();
@@ -65433,7 +65561,7 @@ var init_listconnectbalancetransfers = __esm(() => {
65433
65561
  connectBalanceTransfers: "connect_balance_transfers"
65434
65562
  });
65435
65563
  });
65436
- ListConnectBalanceTransfersResponse$inboundSchema = objectType({
65564
+ ListConnectBalanceTransfersResponseBody$inboundSchema = objectType({
65437
65565
  count: numberType().int(),
65438
65566
  _embedded: lazyType(() => ListConnectBalanceTransfersEmbedded$inboundSchema),
65439
65567
  _links: ListLinks$inboundSchema
@@ -65443,7 +65571,7 @@ var init_listconnectbalancetransfers = __esm(() => {
65443
65571
  _links: "links"
65444
65572
  });
65445
65573
  });
65446
- ListConnectBalanceTransfersResponse$outboundSchema = objectType({
65574
+ ListConnectBalanceTransfersResponseBody$outboundSchema = objectType({
65447
65575
  count: numberType().int(),
65448
65576
  embedded: lazyType(() => ListConnectBalanceTransfersEmbedded$outboundSchema),
65449
65577
  links: ListLinks$outboundSchema
@@ -65453,10 +65581,24 @@ var init_listconnectbalancetransfers = __esm(() => {
65453
65581
  links: "_links"
65454
65582
  });
65455
65583
  });
65584
+ ListConnectBalanceTransfersResponse$inboundSchema = objectType({
65585
+ Result: lazyType(() => ListConnectBalanceTransfersResponseBody$inboundSchema)
65586
+ }).transform((v2) => {
65587
+ return remap(v2, {
65588
+ Result: "result"
65589
+ });
65590
+ });
65591
+ ListConnectBalanceTransfersResponse$outboundSchema = objectType({
65592
+ result: lazyType(() => ListConnectBalanceTransfersResponseBody$outboundSchema)
65593
+ }).transform((v2) => {
65594
+ return remap(v2, {
65595
+ result: "Result"
65596
+ });
65597
+ });
65456
65598
  });
65457
65599
 
65458
65600
  // src/models/operations/listcustomerpayments.ts
65459
- var ListCustomerPaymentsGlobals$inboundSchema, ListCustomerPaymentsGlobals$outboundSchema, ListCustomerPaymentsRequest$inboundSchema, ListCustomerPaymentsRequest$outboundSchema, ListCustomerPaymentsEmbedded$inboundSchema, ListCustomerPaymentsEmbedded$outboundSchema, ListCustomerPaymentsResponse$inboundSchema, ListCustomerPaymentsResponse$outboundSchema;
65601
+ var ListCustomerPaymentsGlobals$inboundSchema, ListCustomerPaymentsGlobals$outboundSchema, ListCustomerPaymentsRequest$inboundSchema, ListCustomerPaymentsRequest$outboundSchema, ListCustomerPaymentsEmbedded$inboundSchema, ListCustomerPaymentsEmbedded$outboundSchema, ListCustomerPaymentsResponseBody$inboundSchema, ListCustomerPaymentsResponseBody$outboundSchema, ListCustomerPaymentsResponse$inboundSchema, ListCustomerPaymentsResponse$outboundSchema;
65460
65602
  var init_listcustomerpayments = __esm(() => {
65461
65603
  init_esm();
65462
65604
  init_primitives();
@@ -65501,7 +65643,7 @@ var init_listcustomerpayments = __esm(() => {
65501
65643
  ListCustomerPaymentsEmbedded$outboundSchema = objectType({
65502
65644
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
65503
65645
  });
65504
- ListCustomerPaymentsResponse$inboundSchema = objectType({
65646
+ ListCustomerPaymentsResponseBody$inboundSchema = objectType({
65505
65647
  count: numberType().int(),
65506
65648
  _embedded: lazyType(() => ListCustomerPaymentsEmbedded$inboundSchema),
65507
65649
  _links: ListLinks$inboundSchema
@@ -65511,7 +65653,7 @@ var init_listcustomerpayments = __esm(() => {
65511
65653
  _links: "links"
65512
65654
  });
65513
65655
  });
65514
- ListCustomerPaymentsResponse$outboundSchema = objectType({
65656
+ ListCustomerPaymentsResponseBody$outboundSchema = objectType({
65515
65657
  count: numberType().int(),
65516
65658
  embedded: lazyType(() => ListCustomerPaymentsEmbedded$outboundSchema),
65517
65659
  links: ListLinks$outboundSchema
@@ -65521,10 +65663,24 @@ var init_listcustomerpayments = __esm(() => {
65521
65663
  links: "_links"
65522
65664
  });
65523
65665
  });
65666
+ ListCustomerPaymentsResponse$inboundSchema = objectType({
65667
+ Result: lazyType(() => ListCustomerPaymentsResponseBody$inboundSchema)
65668
+ }).transform((v2) => {
65669
+ return remap(v2, {
65670
+ Result: "result"
65671
+ });
65672
+ });
65673
+ ListCustomerPaymentsResponse$outboundSchema = objectType({
65674
+ result: lazyType(() => ListCustomerPaymentsResponseBody$outboundSchema)
65675
+ }).transform((v2) => {
65676
+ return remap(v2, {
65677
+ result: "Result"
65678
+ });
65679
+ });
65524
65680
  });
65525
65681
 
65526
65682
  // src/models/operations/listcustomers.ts
65527
- var ListCustomersGlobals$inboundSchema, ListCustomersGlobals$outboundSchema, ListCustomersRequest$inboundSchema, ListCustomersRequest$outboundSchema, ListCustomersEmbedded$inboundSchema, ListCustomersEmbedded$outboundSchema, ListCustomersResponse$inboundSchema, ListCustomersResponse$outboundSchema;
65683
+ var ListCustomersGlobals$inboundSchema, ListCustomersGlobals$outboundSchema, ListCustomersRequest$inboundSchema, ListCustomersRequest$outboundSchema, ListCustomersEmbedded$inboundSchema, ListCustomersEmbedded$outboundSchema, ListCustomersResponseBody$inboundSchema, ListCustomersResponseBody$outboundSchema, ListCustomersResponse$inboundSchema, ListCustomersResponse$outboundSchema;
65528
65684
  var init_listcustomers = __esm(() => {
65529
65685
  init_esm();
65530
65686
  init_primitives();
@@ -65563,7 +65719,7 @@ var init_listcustomers = __esm(() => {
65563
65719
  ListCustomersEmbedded$outboundSchema = objectType({
65564
65720
  customers: arrayType(ListCustomerResponse$outboundSchema)
65565
65721
  });
65566
- ListCustomersResponse$inboundSchema = objectType({
65722
+ ListCustomersResponseBody$inboundSchema = objectType({
65567
65723
  count: numberType().int(),
65568
65724
  _embedded: lazyType(() => ListCustomersEmbedded$inboundSchema),
65569
65725
  _links: ListLinks$inboundSchema
@@ -65573,7 +65729,7 @@ var init_listcustomers = __esm(() => {
65573
65729
  _links: "links"
65574
65730
  });
65575
65731
  });
65576
- ListCustomersResponse$outboundSchema = objectType({
65732
+ ListCustomersResponseBody$outboundSchema = objectType({
65577
65733
  count: numberType().int(),
65578
65734
  embedded: lazyType(() => ListCustomersEmbedded$outboundSchema),
65579
65735
  links: ListLinks$outboundSchema
@@ -65583,10 +65739,24 @@ var init_listcustomers = __esm(() => {
65583
65739
  links: "_links"
65584
65740
  });
65585
65741
  });
65742
+ ListCustomersResponse$inboundSchema = objectType({
65743
+ Result: lazyType(() => ListCustomersResponseBody$inboundSchema)
65744
+ }).transform((v2) => {
65745
+ return remap(v2, {
65746
+ Result: "result"
65747
+ });
65748
+ });
65749
+ ListCustomersResponse$outboundSchema = objectType({
65750
+ result: lazyType(() => ListCustomersResponseBody$outboundSchema)
65751
+ }).transform((v2) => {
65752
+ return remap(v2, {
65753
+ result: "Result"
65754
+ });
65755
+ });
65586
65756
  });
65587
65757
 
65588
65758
  // src/models/operations/listinvoices.ts
65589
- var ListInvoicesRequest$inboundSchema, ListInvoicesRequest$outboundSchema, ListInvoicesEmbedded$inboundSchema, ListInvoicesEmbedded$outboundSchema, ListInvoicesResponse$inboundSchema, ListInvoicesResponse$outboundSchema;
65759
+ var ListInvoicesRequest$inboundSchema, ListInvoicesRequest$outboundSchema, ListInvoicesEmbedded$inboundSchema, ListInvoicesEmbedded$outboundSchema, ListInvoicesResponseBody$inboundSchema, ListInvoicesResponseBody$outboundSchema, ListInvoicesResponse$inboundSchema, ListInvoicesResponse$outboundSchema;
65590
65760
  var init_listinvoices = __esm(() => {
65591
65761
  init_esm();
65592
65762
  init_primitives();
@@ -65621,7 +65791,7 @@ var init_listinvoices = __esm(() => {
65621
65791
  ListInvoicesEmbedded$outboundSchema = objectType({
65622
65792
  invoices: arrayType(ListEntityInvoice$outboundSchema)
65623
65793
  });
65624
- ListInvoicesResponse$inboundSchema = objectType({
65794
+ ListInvoicesResponseBody$inboundSchema = objectType({
65625
65795
  count: numberType().int(),
65626
65796
  _embedded: lazyType(() => ListInvoicesEmbedded$inboundSchema),
65627
65797
  _links: ListLinks$inboundSchema
@@ -65631,7 +65801,7 @@ var init_listinvoices = __esm(() => {
65631
65801
  _links: "links"
65632
65802
  });
65633
65803
  });
65634
- ListInvoicesResponse$outboundSchema = objectType({
65804
+ ListInvoicesResponseBody$outboundSchema = objectType({
65635
65805
  count: numberType().int(),
65636
65806
  embedded: lazyType(() => ListInvoicesEmbedded$outboundSchema),
65637
65807
  links: ListLinks$outboundSchema
@@ -65641,10 +65811,24 @@ var init_listinvoices = __esm(() => {
65641
65811
  links: "_links"
65642
65812
  });
65643
65813
  });
65814
+ ListInvoicesResponse$inboundSchema = objectType({
65815
+ Result: lazyType(() => ListInvoicesResponseBody$inboundSchema)
65816
+ }).transform((v2) => {
65817
+ return remap(v2, {
65818
+ Result: "result"
65819
+ });
65820
+ });
65821
+ ListInvoicesResponse$outboundSchema = objectType({
65822
+ result: lazyType(() => ListInvoicesResponseBody$outboundSchema)
65823
+ }).transform((v2) => {
65824
+ return remap(v2, {
65825
+ result: "Result"
65826
+ });
65827
+ });
65644
65828
  });
65645
65829
 
65646
65830
  // src/models/operations/listmandates.ts
65647
- var ListMandatesGlobals$inboundSchema, ListMandatesGlobals$outboundSchema, ListMandatesRequest$inboundSchema, ListMandatesRequest$outboundSchema, ListMandatesEmbedded$inboundSchema, ListMandatesEmbedded$outboundSchema, ListMandatesResponse$inboundSchema, ListMandatesResponse$outboundSchema;
65831
+ var ListMandatesGlobals$inboundSchema, ListMandatesGlobals$outboundSchema, ListMandatesRequest$inboundSchema, ListMandatesRequest$outboundSchema, ListMandatesEmbedded$inboundSchema, ListMandatesEmbedded$outboundSchema, ListMandatesResponseBody$inboundSchema, ListMandatesResponseBody$outboundSchema, ListMandatesResponse$inboundSchema, ListMandatesResponse$outboundSchema;
65648
65832
  var init_listmandates = __esm(() => {
65649
65833
  init_esm();
65650
65834
  init_primitives();
@@ -65685,7 +65869,7 @@ var init_listmandates = __esm(() => {
65685
65869
  ListMandatesEmbedded$outboundSchema = objectType({
65686
65870
  mandates: arrayType(ListMandateResponse$outboundSchema)
65687
65871
  });
65688
- ListMandatesResponse$inboundSchema = objectType({
65872
+ ListMandatesResponseBody$inboundSchema = objectType({
65689
65873
  count: numberType().int(),
65690
65874
  _embedded: lazyType(() => ListMandatesEmbedded$inboundSchema),
65691
65875
  _links: ListLinks$inboundSchema
@@ -65695,7 +65879,7 @@ var init_listmandates = __esm(() => {
65695
65879
  _links: "links"
65696
65880
  });
65697
65881
  });
65698
- ListMandatesResponse$outboundSchema = objectType({
65882
+ ListMandatesResponseBody$outboundSchema = objectType({
65699
65883
  count: numberType().int(),
65700
65884
  embedded: lazyType(() => ListMandatesEmbedded$outboundSchema),
65701
65885
  links: ListLinks$outboundSchema
@@ -65705,6 +65889,20 @@ var init_listmandates = __esm(() => {
65705
65889
  links: "_links"
65706
65890
  });
65707
65891
  });
65892
+ ListMandatesResponse$inboundSchema = objectType({
65893
+ Result: lazyType(() => ListMandatesResponseBody$inboundSchema)
65894
+ }).transform((v2) => {
65895
+ return remap(v2, {
65896
+ Result: "result"
65897
+ });
65898
+ });
65899
+ ListMandatesResponse$outboundSchema = objectType({
65900
+ result: lazyType(() => ListMandatesResponseBody$outboundSchema)
65901
+ }).transform((v2) => {
65902
+ return remap(v2, {
65903
+ result: "Result"
65904
+ });
65905
+ });
65708
65906
  });
65709
65907
 
65710
65908
  // src/models/operations/listmethods.ts
@@ -65792,7 +65990,7 @@ var init_listmethods = __esm(() => {
65792
65990
  });
65793
65991
 
65794
65992
  // src/models/operations/listpaymentlinks.ts
65795
- var ListPaymentLinksGlobals$inboundSchema, ListPaymentLinksGlobals$outboundSchema, ListPaymentLinksRequest$inboundSchema, ListPaymentLinksRequest$outboundSchema, ListPaymentLinksEmbedded$inboundSchema, ListPaymentLinksEmbedded$outboundSchema, ListPaymentLinksResponse$inboundSchema, ListPaymentLinksResponse$outboundSchema;
65993
+ var ListPaymentLinksGlobals$inboundSchema, ListPaymentLinksGlobals$outboundSchema, ListPaymentLinksRequest$inboundSchema, ListPaymentLinksRequest$outboundSchema, ListPaymentLinksEmbedded$inboundSchema, ListPaymentLinksEmbedded$outboundSchema, ListPaymentLinksResponseBody$inboundSchema, ListPaymentLinksResponseBody$outboundSchema, ListPaymentLinksResponse$inboundSchema, ListPaymentLinksResponse$outboundSchema;
65796
65994
  var init_listpaymentlinks = __esm(() => {
65797
65995
  init_esm();
65798
65996
  init_primitives();
@@ -65837,7 +66035,7 @@ var init_listpaymentlinks = __esm(() => {
65837
66035
  paymentLinks: "payment_links"
65838
66036
  });
65839
66037
  });
65840
- ListPaymentLinksResponse$inboundSchema = objectType({
66038
+ ListPaymentLinksResponseBody$inboundSchema = objectType({
65841
66039
  count: numberType().int(),
65842
66040
  _embedded: lazyType(() => ListPaymentLinksEmbedded$inboundSchema),
65843
66041
  _links: ListLinks$inboundSchema
@@ -65847,7 +66045,7 @@ var init_listpaymentlinks = __esm(() => {
65847
66045
  _links: "links"
65848
66046
  });
65849
66047
  });
65850
- ListPaymentLinksResponse$outboundSchema = objectType({
66048
+ ListPaymentLinksResponseBody$outboundSchema = objectType({
65851
66049
  count: numberType().int(),
65852
66050
  embedded: lazyType(() => ListPaymentLinksEmbedded$outboundSchema),
65853
66051
  links: ListLinks$outboundSchema
@@ -65857,10 +66055,24 @@ var init_listpaymentlinks = __esm(() => {
65857
66055
  links: "_links"
65858
66056
  });
65859
66057
  });
66058
+ ListPaymentLinksResponse$inboundSchema = objectType({
66059
+ Result: lazyType(() => ListPaymentLinksResponseBody$inboundSchema)
66060
+ }).transform((v2) => {
66061
+ return remap(v2, {
66062
+ Result: "result"
66063
+ });
66064
+ });
66065
+ ListPaymentLinksResponse$outboundSchema = objectType({
66066
+ result: lazyType(() => ListPaymentLinksResponseBody$outboundSchema)
66067
+ }).transform((v2) => {
66068
+ return remap(v2, {
66069
+ result: "Result"
66070
+ });
66071
+ });
65860
66072
  });
65861
66073
 
65862
66074
  // src/models/operations/listpayments.ts
65863
- var ListPaymentsGlobals$inboundSchema, ListPaymentsGlobals$outboundSchema, ListPaymentsRequest$inboundSchema, ListPaymentsRequest$outboundSchema, ListPaymentsEmbedded$inboundSchema, ListPaymentsEmbedded$outboundSchema, ListPaymentsResponse$inboundSchema, ListPaymentsResponse$outboundSchema;
66075
+ var ListPaymentsGlobals$inboundSchema, ListPaymentsGlobals$outboundSchema, ListPaymentsRequest$inboundSchema, ListPaymentsRequest$outboundSchema, ListPaymentsEmbedded$inboundSchema, ListPaymentsEmbedded$outboundSchema, ListPaymentsResponseBody$inboundSchema, ListPaymentsResponseBody$outboundSchema, ListPaymentsResponse$inboundSchema, ListPaymentsResponse$outboundSchema;
65864
66076
  var init_listpayments = __esm(() => {
65865
66077
  init_esm();
65866
66078
  init_primitives();
@@ -65903,7 +66115,7 @@ var init_listpayments = __esm(() => {
65903
66115
  ListPaymentsEmbedded$outboundSchema = objectType({
65904
66116
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
65905
66117
  });
65906
- ListPaymentsResponse$inboundSchema = objectType({
66118
+ ListPaymentsResponseBody$inboundSchema = objectType({
65907
66119
  count: numberType().int(),
65908
66120
  _embedded: lazyType(() => ListPaymentsEmbedded$inboundSchema),
65909
66121
  _links: ListLinks$inboundSchema
@@ -65913,7 +66125,7 @@ var init_listpayments = __esm(() => {
65913
66125
  _links: "links"
65914
66126
  });
65915
66127
  });
65916
- ListPaymentsResponse$outboundSchema = objectType({
66128
+ ListPaymentsResponseBody$outboundSchema = objectType({
65917
66129
  count: numberType().int(),
65918
66130
  embedded: lazyType(() => ListPaymentsEmbedded$outboundSchema),
65919
66131
  links: ListLinks$outboundSchema
@@ -65923,6 +66135,20 @@ var init_listpayments = __esm(() => {
65923
66135
  links: "_links"
65924
66136
  });
65925
66137
  });
66138
+ ListPaymentsResponse$inboundSchema = objectType({
66139
+ Result: lazyType(() => ListPaymentsResponseBody$inboundSchema)
66140
+ }).transform((v2) => {
66141
+ return remap(v2, {
66142
+ Result: "result"
66143
+ });
66144
+ });
66145
+ ListPaymentsResponse$outboundSchema = objectType({
66146
+ result: lazyType(() => ListPaymentsResponseBody$outboundSchema)
66147
+ }).transform((v2) => {
66148
+ return remap(v2, {
66149
+ result: "Result"
66150
+ });
66151
+ });
65926
66152
  });
65927
66153
 
65928
66154
  // src/models/operations/listpermissions.ts
@@ -65982,7 +66208,7 @@ var init_listpermissions = __esm(() => {
65982
66208
  });
65983
66209
 
65984
66210
  // src/models/operations/listprofiles.ts
65985
- var ListProfilesRequest$inboundSchema, ListProfilesRequest$outboundSchema, ListProfilesEmbedded$inboundSchema, ListProfilesEmbedded$outboundSchema, ListProfilesResponse$inboundSchema, ListProfilesResponse$outboundSchema;
66211
+ var ListProfilesRequest$inboundSchema, ListProfilesRequest$outboundSchema, ListProfilesEmbedded$inboundSchema, ListProfilesEmbedded$outboundSchema, ListProfilesResponseBody$inboundSchema, ListProfilesResponseBody$outboundSchema, ListProfilesResponse$inboundSchema, ListProfilesResponse$outboundSchema;
65986
66212
  var init_listprofiles = __esm(() => {
65987
66213
  init_esm();
65988
66214
  init_primitives();
@@ -66011,7 +66237,7 @@ var init_listprofiles = __esm(() => {
66011
66237
  ListProfilesEmbedded$outboundSchema = objectType({
66012
66238
  profiles: arrayType(ListProfileResponse$outboundSchema)
66013
66239
  });
66014
- ListProfilesResponse$inboundSchema = objectType({
66240
+ ListProfilesResponseBody$inboundSchema = objectType({
66015
66241
  count: numberType().int(),
66016
66242
  _embedded: lazyType(() => ListProfilesEmbedded$inboundSchema),
66017
66243
  _links: ListLinks$inboundSchema
@@ -66021,7 +66247,7 @@ var init_listprofiles = __esm(() => {
66021
66247
  _links: "links"
66022
66248
  });
66023
66249
  });
66024
- ListProfilesResponse$outboundSchema = objectType({
66250
+ ListProfilesResponseBody$outboundSchema = objectType({
66025
66251
  count: numberType().int(),
66026
66252
  embedded: lazyType(() => ListProfilesEmbedded$outboundSchema),
66027
66253
  links: ListLinks$outboundSchema
@@ -66031,10 +66257,24 @@ var init_listprofiles = __esm(() => {
66031
66257
  links: "_links"
66032
66258
  });
66033
66259
  });
66260
+ ListProfilesResponse$inboundSchema = objectType({
66261
+ Result: lazyType(() => ListProfilesResponseBody$inboundSchema)
66262
+ }).transform((v2) => {
66263
+ return remap(v2, {
66264
+ Result: "result"
66265
+ });
66266
+ });
66267
+ ListProfilesResponse$outboundSchema = objectType({
66268
+ result: lazyType(() => ListProfilesResponseBody$outboundSchema)
66269
+ }).transform((v2) => {
66270
+ return remap(v2, {
66271
+ result: "Result"
66272
+ });
66273
+ });
66034
66274
  });
66035
66275
 
66036
66276
  // src/models/operations/listrefunds.ts
66037
- var ListRefundsGlobals$inboundSchema, ListRefundsGlobals$outboundSchema, ListRefundsRequest$inboundSchema, ListRefundsRequest$outboundSchema, ListRefundsEmbedded$inboundSchema, ListRefundsEmbedded$outboundSchema, ListRefundsResponse$inboundSchema, ListRefundsResponse$outboundSchema;
66277
+ var ListRefundsGlobals$inboundSchema, ListRefundsGlobals$outboundSchema, ListRefundsRequest$inboundSchema, ListRefundsRequest$outboundSchema, ListRefundsEmbedded$inboundSchema, ListRefundsEmbedded$outboundSchema, ListRefundsResponseBody$inboundSchema, ListRefundsResponseBody$outboundSchema, ListRefundsResponse$inboundSchema, ListRefundsResponse$outboundSchema;
66038
66278
  var init_listrefunds = __esm(() => {
66039
66279
  init_esm();
66040
66280
  init_primitives();
@@ -66075,7 +66315,7 @@ var init_listrefunds = __esm(() => {
66075
66315
  ListRefundsEmbedded$outboundSchema = objectType({
66076
66316
  refunds: arrayType(ListEntityRefund$outboundSchema)
66077
66317
  });
66078
- ListRefundsResponse$inboundSchema = objectType({
66318
+ ListRefundsResponseBody$inboundSchema = objectType({
66079
66319
  count: numberType().int(),
66080
66320
  _embedded: lazyType(() => ListRefundsEmbedded$inboundSchema),
66081
66321
  _links: ListLinks$inboundSchema
@@ -66085,7 +66325,7 @@ var init_listrefunds = __esm(() => {
66085
66325
  _links: "links"
66086
66326
  });
66087
66327
  });
66088
- ListRefundsResponse$outboundSchema = objectType({
66328
+ ListRefundsResponseBody$outboundSchema = objectType({
66089
66329
  count: numberType().int(),
66090
66330
  embedded: lazyType(() => ListRefundsEmbedded$outboundSchema),
66091
66331
  links: ListLinks$outboundSchema
@@ -66095,10 +66335,24 @@ var init_listrefunds = __esm(() => {
66095
66335
  links: "_links"
66096
66336
  });
66097
66337
  });
66338
+ ListRefundsResponse$inboundSchema = objectType({
66339
+ Result: lazyType(() => ListRefundsResponseBody$inboundSchema)
66340
+ }).transform((v2) => {
66341
+ return remap(v2, {
66342
+ Result: "result"
66343
+ });
66344
+ });
66345
+ ListRefundsResponse$outboundSchema = objectType({
66346
+ result: lazyType(() => ListRefundsResponseBody$outboundSchema)
66347
+ }).transform((v2) => {
66348
+ return remap(v2, {
66349
+ result: "Result"
66350
+ });
66351
+ });
66098
66352
  });
66099
66353
 
66100
66354
  // src/models/operations/listsalesinvoices.ts
66101
- var ListSalesInvoicesGlobals$inboundSchema, ListSalesInvoicesGlobals$outboundSchema, ListSalesInvoicesRequest$inboundSchema, ListSalesInvoicesRequest$outboundSchema, ListSalesInvoicesEmbedded$inboundSchema, ListSalesInvoicesEmbedded$outboundSchema, ListSalesInvoicesResponse$inboundSchema, ListSalesInvoicesResponse$outboundSchema;
66355
+ var ListSalesInvoicesGlobals$inboundSchema, ListSalesInvoicesGlobals$outboundSchema, ListSalesInvoicesRequest$inboundSchema, ListSalesInvoicesRequest$outboundSchema, ListSalesInvoicesEmbedded$inboundSchema, ListSalesInvoicesEmbedded$outboundSchema, ListSalesInvoicesResponseBody$inboundSchema, ListSalesInvoicesResponseBody$outboundSchema, ListSalesInvoicesResponse$inboundSchema, ListSalesInvoicesResponse$outboundSchema;
66102
66356
  var init_listsalesinvoices = __esm(() => {
66103
66357
  init_esm();
66104
66358
  init_primitives();
@@ -66143,7 +66397,7 @@ var init_listsalesinvoices = __esm(() => {
66143
66397
  salesInvoices: "sales_invoices"
66144
66398
  });
66145
66399
  });
66146
- ListSalesInvoicesResponse$inboundSchema = objectType({
66400
+ ListSalesInvoicesResponseBody$inboundSchema = objectType({
66147
66401
  count: numberType().int().optional(),
66148
66402
  _embedded: lazyType(() => ListSalesInvoicesEmbedded$inboundSchema).optional(),
66149
66403
  _links: ListLinks$inboundSchema.optional()
@@ -66153,7 +66407,7 @@ var init_listsalesinvoices = __esm(() => {
66153
66407
  _links: "links"
66154
66408
  });
66155
66409
  });
66156
- ListSalesInvoicesResponse$outboundSchema = objectType({
66410
+ ListSalesInvoicesResponseBody$outboundSchema = objectType({
66157
66411
  count: numberType().int().optional(),
66158
66412
  embedded: lazyType(() => ListSalesInvoicesEmbedded$outboundSchema).optional(),
66159
66413
  links: ListLinks$outboundSchema.optional()
@@ -66163,10 +66417,24 @@ var init_listsalesinvoices = __esm(() => {
66163
66417
  links: "_links"
66164
66418
  });
66165
66419
  });
66420
+ ListSalesInvoicesResponse$inboundSchema = objectType({
66421
+ Result: lazyType(() => ListSalesInvoicesResponseBody$inboundSchema)
66422
+ }).transform((v2) => {
66423
+ return remap(v2, {
66424
+ Result: "result"
66425
+ });
66426
+ });
66427
+ ListSalesInvoicesResponse$outboundSchema = objectType({
66428
+ result: lazyType(() => ListSalesInvoicesResponseBody$outboundSchema)
66429
+ }).transform((v2) => {
66430
+ return remap(v2, {
66431
+ result: "Result"
66432
+ });
66433
+ });
66166
66434
  });
66167
66435
 
66168
66436
  // src/models/operations/listsettlementcaptures.ts
66169
- var ListSettlementCapturesGlobals$inboundSchema, ListSettlementCapturesGlobals$outboundSchema, ListSettlementCapturesRequest$inboundSchema, ListSettlementCapturesRequest$outboundSchema, ListSettlementCapturesEmbedded$inboundSchema, ListSettlementCapturesEmbedded$outboundSchema, ListSettlementCapturesResponse$inboundSchema, ListSettlementCapturesResponse$outboundSchema;
66437
+ var ListSettlementCapturesGlobals$inboundSchema, ListSettlementCapturesGlobals$outboundSchema, ListSettlementCapturesRequest$inboundSchema, ListSettlementCapturesRequest$outboundSchema, ListSettlementCapturesEmbedded$inboundSchema, ListSettlementCapturesEmbedded$outboundSchema, ListSettlementCapturesResponseBody$inboundSchema, ListSettlementCapturesResponseBody$outboundSchema, ListSettlementCapturesResponse$inboundSchema, ListSettlementCapturesResponse$outboundSchema;
66170
66438
  var init_listsettlementcaptures = __esm(() => {
66171
66439
  init_esm();
66172
66440
  init_primitives();
@@ -66207,7 +66475,7 @@ var init_listsettlementcaptures = __esm(() => {
66207
66475
  ListSettlementCapturesEmbedded$outboundSchema = objectType({
66208
66476
  captures: arrayType(ListCaptureResponse$outboundSchema)
66209
66477
  });
66210
- ListSettlementCapturesResponse$inboundSchema = objectType({
66478
+ ListSettlementCapturesResponseBody$inboundSchema = objectType({
66211
66479
  count: numberType().int(),
66212
66480
  _embedded: lazyType(() => ListSettlementCapturesEmbedded$inboundSchema),
66213
66481
  _links: ListLinks$inboundSchema
@@ -66217,7 +66485,7 @@ var init_listsettlementcaptures = __esm(() => {
66217
66485
  _links: "links"
66218
66486
  });
66219
66487
  });
66220
- ListSettlementCapturesResponse$outboundSchema = objectType({
66488
+ ListSettlementCapturesResponseBody$outboundSchema = objectType({
66221
66489
  count: numberType().int(),
66222
66490
  embedded: lazyType(() => ListSettlementCapturesEmbedded$outboundSchema),
66223
66491
  links: ListLinks$outboundSchema
@@ -66227,10 +66495,24 @@ var init_listsettlementcaptures = __esm(() => {
66227
66495
  links: "_links"
66228
66496
  });
66229
66497
  });
66498
+ ListSettlementCapturesResponse$inboundSchema = objectType({
66499
+ Result: lazyType(() => ListSettlementCapturesResponseBody$inboundSchema)
66500
+ }).transform((v2) => {
66501
+ return remap(v2, {
66502
+ Result: "result"
66503
+ });
66504
+ });
66505
+ ListSettlementCapturesResponse$outboundSchema = objectType({
66506
+ result: lazyType(() => ListSettlementCapturesResponseBody$outboundSchema)
66507
+ }).transform((v2) => {
66508
+ return remap(v2, {
66509
+ result: "Result"
66510
+ });
66511
+ });
66230
66512
  });
66231
66513
 
66232
66514
  // src/models/operations/listsettlementchargebacks.ts
66233
- var ListSettlementChargebacksGlobals$inboundSchema, ListSettlementChargebacksGlobals$outboundSchema, ListSettlementChargebacksRequest$inboundSchema, ListSettlementChargebacksRequest$outboundSchema, ListSettlementChargebacksEmbedded$inboundSchema, ListSettlementChargebacksEmbedded$outboundSchema, ListSettlementChargebacksResponse$inboundSchema, ListSettlementChargebacksResponse$outboundSchema;
66515
+ var ListSettlementChargebacksGlobals$inboundSchema, ListSettlementChargebacksGlobals$outboundSchema, ListSettlementChargebacksRequest$inboundSchema, ListSettlementChargebacksRequest$outboundSchema, ListSettlementChargebacksEmbedded$inboundSchema, ListSettlementChargebacksEmbedded$outboundSchema, ListSettlementChargebacksResponseBody$inboundSchema, ListSettlementChargebacksResponseBody$outboundSchema, ListSettlementChargebacksResponse$inboundSchema, ListSettlementChargebacksResponse$outboundSchema;
66234
66516
  var init_listsettlementchargebacks = __esm(() => {
66235
66517
  init_esm();
66236
66518
  init_primitives();
@@ -66271,7 +66553,7 @@ var init_listsettlementchargebacks = __esm(() => {
66271
66553
  ListSettlementChargebacksEmbedded$outboundSchema = objectType({
66272
66554
  chargebacks: arrayType(ListEntityChargeback$outboundSchema)
66273
66555
  });
66274
- ListSettlementChargebacksResponse$inboundSchema = objectType({
66556
+ ListSettlementChargebacksResponseBody$inboundSchema = objectType({
66275
66557
  count: numberType().int(),
66276
66558
  _embedded: lazyType(() => ListSettlementChargebacksEmbedded$inboundSchema),
66277
66559
  _links: ListLinks$inboundSchema
@@ -66281,7 +66563,7 @@ var init_listsettlementchargebacks = __esm(() => {
66281
66563
  _links: "links"
66282
66564
  });
66283
66565
  });
66284
- ListSettlementChargebacksResponse$outboundSchema = objectType({
66566
+ ListSettlementChargebacksResponseBody$outboundSchema = objectType({
66285
66567
  count: numberType().int(),
66286
66568
  embedded: lazyType(() => ListSettlementChargebacksEmbedded$outboundSchema),
66287
66569
  links: ListLinks$outboundSchema
@@ -66291,10 +66573,24 @@ var init_listsettlementchargebacks = __esm(() => {
66291
66573
  links: "_links"
66292
66574
  });
66293
66575
  });
66576
+ ListSettlementChargebacksResponse$inboundSchema = objectType({
66577
+ Result: lazyType(() => ListSettlementChargebacksResponseBody$inboundSchema)
66578
+ }).transform((v2) => {
66579
+ return remap(v2, {
66580
+ Result: "result"
66581
+ });
66582
+ });
66583
+ ListSettlementChargebacksResponse$outboundSchema = objectType({
66584
+ result: lazyType(() => ListSettlementChargebacksResponseBody$outboundSchema)
66585
+ }).transform((v2) => {
66586
+ return remap(v2, {
66587
+ result: "Result"
66588
+ });
66589
+ });
66294
66590
  });
66295
66591
 
66296
66592
  // src/models/operations/listsettlementpayments.ts
66297
- var ListSettlementPaymentsGlobals$inboundSchema, ListSettlementPaymentsGlobals$outboundSchema, ListSettlementPaymentsRequest$inboundSchema, ListSettlementPaymentsRequest$outboundSchema, ListSettlementPaymentsEmbedded$inboundSchema, ListSettlementPaymentsEmbedded$outboundSchema, ListSettlementPaymentsResponse$inboundSchema, ListSettlementPaymentsResponse$outboundSchema;
66593
+ var ListSettlementPaymentsGlobals$inboundSchema, ListSettlementPaymentsGlobals$outboundSchema, ListSettlementPaymentsRequest$inboundSchema, ListSettlementPaymentsRequest$outboundSchema, ListSettlementPaymentsEmbedded$inboundSchema, ListSettlementPaymentsEmbedded$outboundSchema, ListSettlementPaymentsResponseBody$inboundSchema, ListSettlementPaymentsResponseBody$outboundSchema, ListSettlementPaymentsResponse$inboundSchema, ListSettlementPaymentsResponse$outboundSchema;
66298
66594
  var init_listsettlementpayments = __esm(() => {
66299
66595
  init_esm();
66300
66596
  init_primitives();
@@ -66339,7 +66635,7 @@ var init_listsettlementpayments = __esm(() => {
66339
66635
  ListSettlementPaymentsEmbedded$outboundSchema = objectType({
66340
66636
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
66341
66637
  });
66342
- ListSettlementPaymentsResponse$inboundSchema = objectType({
66638
+ ListSettlementPaymentsResponseBody$inboundSchema = objectType({
66343
66639
  count: numberType().int(),
66344
66640
  _embedded: lazyType(() => ListSettlementPaymentsEmbedded$inboundSchema),
66345
66641
  _links: ListLinks$inboundSchema
@@ -66349,7 +66645,7 @@ var init_listsettlementpayments = __esm(() => {
66349
66645
  _links: "links"
66350
66646
  });
66351
66647
  });
66352
- ListSettlementPaymentsResponse$outboundSchema = objectType({
66648
+ ListSettlementPaymentsResponseBody$outboundSchema = objectType({
66353
66649
  count: numberType().int(),
66354
66650
  embedded: lazyType(() => ListSettlementPaymentsEmbedded$outboundSchema),
66355
66651
  links: ListLinks$outboundSchema
@@ -66359,10 +66655,24 @@ var init_listsettlementpayments = __esm(() => {
66359
66655
  links: "_links"
66360
66656
  });
66361
66657
  });
66658
+ ListSettlementPaymentsResponse$inboundSchema = objectType({
66659
+ Result: lazyType(() => ListSettlementPaymentsResponseBody$inboundSchema)
66660
+ }).transform((v2) => {
66661
+ return remap(v2, {
66662
+ Result: "result"
66663
+ });
66664
+ });
66665
+ ListSettlementPaymentsResponse$outboundSchema = objectType({
66666
+ result: lazyType(() => ListSettlementPaymentsResponseBody$outboundSchema)
66667
+ }).transform((v2) => {
66668
+ return remap(v2, {
66669
+ result: "Result"
66670
+ });
66671
+ });
66362
66672
  });
66363
66673
 
66364
66674
  // src/models/operations/listsettlementrefunds.ts
66365
- var ListSettlementRefundsGlobals$inboundSchema, ListSettlementRefundsGlobals$outboundSchema, ListSettlementRefundsRequest$inboundSchema, ListSettlementRefundsRequest$outboundSchema, ListSettlementRefundsEmbedded$inboundSchema, ListSettlementRefundsEmbedded$outboundSchema, ListSettlementRefundsResponse$inboundSchema, ListSettlementRefundsResponse$outboundSchema;
66675
+ var ListSettlementRefundsGlobals$inboundSchema, ListSettlementRefundsGlobals$outboundSchema, ListSettlementRefundsRequest$inboundSchema, ListSettlementRefundsRequest$outboundSchema, ListSettlementRefundsEmbedded$inboundSchema, ListSettlementRefundsEmbedded$outboundSchema, ListSettlementRefundsResponseBody$inboundSchema, ListSettlementRefundsResponseBody$outboundSchema, ListSettlementRefundsResponse$inboundSchema, ListSettlementRefundsResponse$outboundSchema;
66366
66676
  var init_listsettlementrefunds = __esm(() => {
66367
66677
  init_esm();
66368
66678
  init_primitives();
@@ -66403,7 +66713,7 @@ var init_listsettlementrefunds = __esm(() => {
66403
66713
  ListSettlementRefundsEmbedded$outboundSchema = objectType({
66404
66714
  refunds: arrayType(ListEntityRefund$outboundSchema)
66405
66715
  });
66406
- ListSettlementRefundsResponse$inboundSchema = objectType({
66716
+ ListSettlementRefundsResponseBody$inboundSchema = objectType({
66407
66717
  count: numberType().int(),
66408
66718
  _embedded: lazyType(() => ListSettlementRefundsEmbedded$inboundSchema),
66409
66719
  _links: ListLinks$inboundSchema
@@ -66413,7 +66723,7 @@ var init_listsettlementrefunds = __esm(() => {
66413
66723
  _links: "links"
66414
66724
  });
66415
66725
  });
66416
- ListSettlementRefundsResponse$outboundSchema = objectType({
66726
+ ListSettlementRefundsResponseBody$outboundSchema = objectType({
66417
66727
  count: numberType().int(),
66418
66728
  embedded: lazyType(() => ListSettlementRefundsEmbedded$outboundSchema),
66419
66729
  links: ListLinks$outboundSchema
@@ -66423,10 +66733,24 @@ var init_listsettlementrefunds = __esm(() => {
66423
66733
  links: "_links"
66424
66734
  });
66425
66735
  });
66736
+ ListSettlementRefundsResponse$inboundSchema = objectType({
66737
+ Result: lazyType(() => ListSettlementRefundsResponseBody$inboundSchema)
66738
+ }).transform((v2) => {
66739
+ return remap(v2, {
66740
+ Result: "result"
66741
+ });
66742
+ });
66743
+ ListSettlementRefundsResponse$outboundSchema = objectType({
66744
+ result: lazyType(() => ListSettlementRefundsResponseBody$outboundSchema)
66745
+ }).transform((v2) => {
66746
+ return remap(v2, {
66747
+ result: "Result"
66748
+ });
66749
+ });
66426
66750
  });
66427
66751
 
66428
66752
  // src/models/operations/listsettlements.ts
66429
- var ListSettlementsRequest$inboundSchema, ListSettlementsRequest$outboundSchema, ListSettlementsEmbedded$inboundSchema, ListSettlementsEmbedded$outboundSchema, ListSettlementsResponse$inboundSchema, ListSettlementsResponse$outboundSchema;
66753
+ var ListSettlementsRequest$inboundSchema, ListSettlementsRequest$outboundSchema, ListSettlementsEmbedded$inboundSchema, ListSettlementsEmbedded$outboundSchema, ListSettlementsResponseBody$inboundSchema, ListSettlementsResponseBody$outboundSchema, ListSettlementsResponse$inboundSchema, ListSettlementsResponse$outboundSchema;
66430
66754
  var init_listsettlements = __esm(() => {
66431
66755
  init_esm();
66432
66756
  init_primitives();
@@ -66463,7 +66787,7 @@ var init_listsettlements = __esm(() => {
66463
66787
  ListSettlementsEmbedded$outboundSchema = objectType({
66464
66788
  settlements: arrayType(ListEntitySettlement$outboundSchema)
66465
66789
  });
66466
- ListSettlementsResponse$inboundSchema = objectType({
66790
+ ListSettlementsResponseBody$inboundSchema = objectType({
66467
66791
  count: numberType().int(),
66468
66792
  _embedded: lazyType(() => ListSettlementsEmbedded$inboundSchema),
66469
66793
  _links: ListLinks$inboundSchema
@@ -66473,7 +66797,7 @@ var init_listsettlements = __esm(() => {
66473
66797
  _links: "links"
66474
66798
  });
66475
66799
  });
66476
- ListSettlementsResponse$outboundSchema = objectType({
66800
+ ListSettlementsResponseBody$outboundSchema = objectType({
66477
66801
  count: numberType().int(),
66478
66802
  embedded: lazyType(() => ListSettlementsEmbedded$outboundSchema),
66479
66803
  links: ListLinks$outboundSchema
@@ -66483,10 +66807,24 @@ var init_listsettlements = __esm(() => {
66483
66807
  links: "_links"
66484
66808
  });
66485
66809
  });
66810
+ ListSettlementsResponse$inboundSchema = objectType({
66811
+ Result: lazyType(() => ListSettlementsResponseBody$inboundSchema)
66812
+ }).transform((v2) => {
66813
+ return remap(v2, {
66814
+ Result: "result"
66815
+ });
66816
+ });
66817
+ ListSettlementsResponse$outboundSchema = objectType({
66818
+ result: lazyType(() => ListSettlementsResponseBody$outboundSchema)
66819
+ }).transform((v2) => {
66820
+ return remap(v2, {
66821
+ result: "Result"
66822
+ });
66823
+ });
66486
66824
  });
66487
66825
 
66488
66826
  // src/models/operations/listsubscriptionpayments.ts
66489
- var ListSubscriptionPaymentsGlobals$inboundSchema, ListSubscriptionPaymentsGlobals$outboundSchema, ListSubscriptionPaymentsRequest$inboundSchema, ListSubscriptionPaymentsRequest$outboundSchema, ListSubscriptionPaymentsEmbedded$inboundSchema, ListSubscriptionPaymentsEmbedded$outboundSchema, ListSubscriptionPaymentsResponse$inboundSchema, ListSubscriptionPaymentsResponse$outboundSchema;
66827
+ var ListSubscriptionPaymentsGlobals$inboundSchema, ListSubscriptionPaymentsGlobals$outboundSchema, ListSubscriptionPaymentsRequest$inboundSchema, ListSubscriptionPaymentsRequest$outboundSchema, ListSubscriptionPaymentsEmbedded$inboundSchema, ListSubscriptionPaymentsEmbedded$outboundSchema, ListSubscriptionPaymentsResponseBody$inboundSchema, ListSubscriptionPaymentsResponseBody$outboundSchema, ListSubscriptionPaymentsResponse$inboundSchema, ListSubscriptionPaymentsResponse$outboundSchema;
66490
66828
  var init_listsubscriptionpayments = __esm(() => {
66491
66829
  init_esm();
66492
66830
  init_primitives();
@@ -66533,7 +66871,7 @@ var init_listsubscriptionpayments = __esm(() => {
66533
66871
  ListSubscriptionPaymentsEmbedded$outboundSchema = objectType({
66534
66872
  payments: arrayType(ListPaymentResponse$outboundSchema).optional()
66535
66873
  });
66536
- ListSubscriptionPaymentsResponse$inboundSchema = objectType({
66874
+ ListSubscriptionPaymentsResponseBody$inboundSchema = objectType({
66537
66875
  count: numberType().int(),
66538
66876
  _embedded: lazyType(() => ListSubscriptionPaymentsEmbedded$inboundSchema),
66539
66877
  _links: ListLinks$inboundSchema
@@ -66543,7 +66881,7 @@ var init_listsubscriptionpayments = __esm(() => {
66543
66881
  _links: "links"
66544
66882
  });
66545
66883
  });
66546
- ListSubscriptionPaymentsResponse$outboundSchema = objectType({
66884
+ ListSubscriptionPaymentsResponseBody$outboundSchema = objectType({
66547
66885
  count: numberType().int(),
66548
66886
  embedded: lazyType(() => ListSubscriptionPaymentsEmbedded$outboundSchema),
66549
66887
  links: ListLinks$outboundSchema
@@ -66553,10 +66891,24 @@ var init_listsubscriptionpayments = __esm(() => {
66553
66891
  links: "_links"
66554
66892
  });
66555
66893
  });
66894
+ ListSubscriptionPaymentsResponse$inboundSchema = objectType({
66895
+ Result: lazyType(() => ListSubscriptionPaymentsResponseBody$inboundSchema)
66896
+ }).transform((v2) => {
66897
+ return remap(v2, {
66898
+ Result: "result"
66899
+ });
66900
+ });
66901
+ ListSubscriptionPaymentsResponse$outboundSchema = objectType({
66902
+ result: lazyType(() => ListSubscriptionPaymentsResponseBody$outboundSchema)
66903
+ }).transform((v2) => {
66904
+ return remap(v2, {
66905
+ result: "Result"
66906
+ });
66907
+ });
66556
66908
  });
66557
66909
 
66558
66910
  // src/models/operations/listsubscriptions.ts
66559
- var ListSubscriptionsGlobals$inboundSchema, ListSubscriptionsGlobals$outboundSchema, ListSubscriptionsRequest$inboundSchema, ListSubscriptionsRequest$outboundSchema, ListSubscriptionsEmbedded$inboundSchema, ListSubscriptionsEmbedded$outboundSchema, ListSubscriptionsResponse$inboundSchema, ListSubscriptionsResponse$outboundSchema;
66911
+ var ListSubscriptionsGlobals$inboundSchema, ListSubscriptionsGlobals$outboundSchema, ListSubscriptionsRequest$inboundSchema, ListSubscriptionsRequest$outboundSchema, ListSubscriptionsEmbedded$inboundSchema, ListSubscriptionsEmbedded$outboundSchema, ListSubscriptionsResponseBody$inboundSchema, ListSubscriptionsResponseBody$outboundSchema, ListSubscriptionsResponse$inboundSchema, ListSubscriptionsResponse$outboundSchema;
66560
66912
  var init_listsubscriptions = __esm(() => {
66561
66913
  init_esm();
66562
66914
  init_primitives();
@@ -66597,7 +66949,7 @@ var init_listsubscriptions = __esm(() => {
66597
66949
  ListSubscriptionsEmbedded$outboundSchema = objectType({
66598
66950
  subscriptions: arrayType(ListSubscriptionResponse$outboundSchema).optional()
66599
66951
  });
66600
- ListSubscriptionsResponse$inboundSchema = objectType({
66952
+ ListSubscriptionsResponseBody$inboundSchema = objectType({
66601
66953
  count: numberType().int(),
66602
66954
  _embedded: lazyType(() => ListSubscriptionsEmbedded$inboundSchema),
66603
66955
  _links: ListLinks$inboundSchema
@@ -66607,7 +66959,7 @@ var init_listsubscriptions = __esm(() => {
66607
66959
  _links: "links"
66608
66960
  });
66609
66961
  });
66610
- ListSubscriptionsResponse$outboundSchema = objectType({
66962
+ ListSubscriptionsResponseBody$outboundSchema = objectType({
66611
66963
  count: numberType().int(),
66612
66964
  embedded: lazyType(() => ListSubscriptionsEmbedded$outboundSchema),
66613
66965
  links: ListLinks$outboundSchema
@@ -66617,10 +66969,24 @@ var init_listsubscriptions = __esm(() => {
66617
66969
  links: "_links"
66618
66970
  });
66619
66971
  });
66972
+ ListSubscriptionsResponse$inboundSchema = objectType({
66973
+ Result: lazyType(() => ListSubscriptionsResponseBody$inboundSchema)
66974
+ }).transform((v2) => {
66975
+ return remap(v2, {
66976
+ Result: "result"
66977
+ });
66978
+ });
66979
+ ListSubscriptionsResponse$outboundSchema = objectType({
66980
+ result: lazyType(() => ListSubscriptionsResponseBody$outboundSchema)
66981
+ }).transform((v2) => {
66982
+ return remap(v2, {
66983
+ result: "Result"
66984
+ });
66985
+ });
66620
66986
  });
66621
66987
 
66622
66988
  // src/models/operations/listterminals.ts
66623
- var ListTerminalsGlobals$inboundSchema, ListTerminalsGlobals$outboundSchema, ListTerminalsRequest$inboundSchema, ListTerminalsRequest$outboundSchema, ListTerminalsEmbedded$inboundSchema, ListTerminalsEmbedded$outboundSchema, ListTerminalsResponse$inboundSchema, ListTerminalsResponse$outboundSchema;
66989
+ var ListTerminalsGlobals$inboundSchema, ListTerminalsGlobals$outboundSchema, ListTerminalsRequest$inboundSchema, ListTerminalsRequest$outboundSchema, ListTerminalsEmbedded$inboundSchema, ListTerminalsEmbedded$outboundSchema, ListTerminalsResponseBody$inboundSchema, ListTerminalsResponseBody$outboundSchema, ListTerminalsResponse$inboundSchema, ListTerminalsResponse$outboundSchema;
66624
66990
  var init_listterminals = __esm(() => {
66625
66991
  init_esm();
66626
66992
  init_primitives();
@@ -66659,7 +67025,7 @@ var init_listterminals = __esm(() => {
66659
67025
  ListTerminalsEmbedded$outboundSchema = objectType({
66660
67026
  terminals: arrayType(ListEntityTerminal$outboundSchema).optional()
66661
67027
  });
66662
- ListTerminalsResponse$inboundSchema = objectType({
67028
+ ListTerminalsResponseBody$inboundSchema = objectType({
66663
67029
  count: numberType().int(),
66664
67030
  _embedded: lazyType(() => ListTerminalsEmbedded$inboundSchema),
66665
67031
  _links: ListLinks$inboundSchema
@@ -66669,7 +67035,7 @@ var init_listterminals = __esm(() => {
66669
67035
  _links: "links"
66670
67036
  });
66671
67037
  });
66672
- ListTerminalsResponse$outboundSchema = objectType({
67038
+ ListTerminalsResponseBody$outboundSchema = objectType({
66673
67039
  count: numberType().int(),
66674
67040
  embedded: lazyType(() => ListTerminalsEmbedded$outboundSchema),
66675
67041
  links: ListLinks$outboundSchema
@@ -66679,10 +67045,24 @@ var init_listterminals = __esm(() => {
66679
67045
  links: "_links"
66680
67046
  });
66681
67047
  });
67048
+ ListTerminalsResponse$inboundSchema = objectType({
67049
+ Result: lazyType(() => ListTerminalsResponseBody$inboundSchema)
67050
+ }).transform((v2) => {
67051
+ return remap(v2, {
67052
+ Result: "result"
67053
+ });
67054
+ });
67055
+ ListTerminalsResponse$outboundSchema = objectType({
67056
+ result: lazyType(() => ListTerminalsResponseBody$outboundSchema)
67057
+ }).transform((v2) => {
67058
+ return remap(v2, {
67059
+ result: "Result"
67060
+ });
67061
+ });
66682
67062
  });
66683
67063
 
66684
67064
  // src/models/operations/listwebhooks.ts
66685
- var ListWebhooksGlobals$inboundSchema, ListWebhooksGlobals$outboundSchema, ListWebhooksRequest$inboundSchema, ListWebhooksRequest$outboundSchema, ListWebhooksEmbedded$inboundSchema, ListWebhooksEmbedded$outboundSchema, ListWebhooksResponse$inboundSchema, ListWebhooksResponse$outboundSchema;
67065
+ var ListWebhooksGlobals$inboundSchema, ListWebhooksGlobals$outboundSchema, ListWebhooksRequest$inboundSchema, ListWebhooksRequest$outboundSchema, ListWebhooksEmbedded$inboundSchema, ListWebhooksEmbedded$outboundSchema, ListWebhooksResponseBody$inboundSchema, ListWebhooksResponseBody$outboundSchema, ListWebhooksResponse$inboundSchema, ListWebhooksResponse$outboundSchema;
66686
67066
  var init_listwebhooks = __esm(() => {
66687
67067
  init_esm();
66688
67068
  init_primitives();
@@ -66723,7 +67103,7 @@ var init_listwebhooks = __esm(() => {
66723
67103
  ListWebhooksEmbedded$outboundSchema = objectType({
66724
67104
  webhooks: arrayType(ListEntityWebhook$outboundSchema)
66725
67105
  });
66726
- ListWebhooksResponse$inboundSchema = objectType({
67106
+ ListWebhooksResponseBody$inboundSchema = objectType({
66727
67107
  count: numberType().int(),
66728
67108
  _embedded: lazyType(() => ListWebhooksEmbedded$inboundSchema),
66729
67109
  _links: ListLinks$inboundSchema
@@ -66733,7 +67113,7 @@ var init_listwebhooks = __esm(() => {
66733
67113
  _links: "links"
66734
67114
  });
66735
67115
  });
66736
- ListWebhooksResponse$outboundSchema = objectType({
67116
+ ListWebhooksResponseBody$outboundSchema = objectType({
66737
67117
  count: numberType().int(),
66738
67118
  embedded: lazyType(() => ListWebhooksEmbedded$outboundSchema),
66739
67119
  links: ListLinks$outboundSchema
@@ -66743,6 +67123,20 @@ var init_listwebhooks = __esm(() => {
66743
67123
  links: "_links"
66744
67124
  });
66745
67125
  });
67126
+ ListWebhooksResponse$inboundSchema = objectType({
67127
+ Result: lazyType(() => ListWebhooksResponseBody$inboundSchema)
67128
+ }).transform((v2) => {
67129
+ return remap(v2, {
67130
+ Result: "result"
67131
+ });
67132
+ });
67133
+ ListWebhooksResponse$outboundSchema = objectType({
67134
+ result: lazyType(() => ListWebhooksResponseBody$outboundSchema)
67135
+ }).transform((v2) => {
67136
+ return remap(v2, {
67137
+ result: "Result"
67138
+ });
67139
+ });
66746
67140
  });
66747
67141
 
66748
67142
  // src/models/operations/paymentcreateroute.ts
@@ -67935,6 +68329,38 @@ organization's primary balance.`,
67935
68329
  };
67936
68330
  });
67937
68331
 
68332
+ // src/types/operations.ts
68333
+ function createPageIterator(page, halt) {
68334
+ return {
68335
+ [Symbol.asyncIterator]: async function* paginator() {
68336
+ yield page;
68337
+ if (halt(page)) {
68338
+ return;
68339
+ }
68340
+ let p = page;
68341
+ for (p = await p.next();p != null; p = await p.next()) {
68342
+ yield p;
68343
+ if (halt(p)) {
68344
+ return;
68345
+ }
68346
+ }
68347
+ }
68348
+ };
68349
+ }
68350
+ function haltIterator(v2) {
68351
+ return {
68352
+ ...v2,
68353
+ next: () => null,
68354
+ [Symbol.asyncIterator]: async function* paginator() {
68355
+ yield v2;
68356
+ }
68357
+ };
68358
+ }
68359
+ var URL_OVERRIDE;
68360
+ var init_operations2 = __esm(() => {
68361
+ URL_OVERRIDE = Symbol("URL_OVERRIDE");
68362
+ });
68363
+
67938
68364
  // src/funcs/balancesList.ts
67939
68365
  function balancesList(client, request, options) {
67940
68366
  return new APIPromise($do4(client, request, options));
@@ -67942,12 +68368,12 @@ function balancesList(client, request, options) {
67942
68368
  async function $do4(client, request, options) {
67943
68369
  const parsed = safeParse4(request, (value) => ListBalancesRequest$outboundSchema.optional().parse(value), "Input validation failed");
67944
68370
  if (!parsed.ok) {
67945
- return [parsed, { status: "invalid" }];
68371
+ return [haltIterator(parsed), { status: "invalid" }];
67946
68372
  }
67947
68373
  const payload = parsed.value;
67948
68374
  const body = null;
67949
- const path = pathToFunc("/balances")();
67950
- const query = encodeFormQuery({
68375
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/balances")();
68376
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
67951
68377
  currency: payload?.currency,
67952
68378
  from: payload?.from,
67953
68379
  limit: payload?.limit,
@@ -67981,7 +68407,7 @@ async function $do4(client, request, options) {
67981
68407
  const requestRes = client._createRequest(context, {
67982
68408
  security: requestSecurity,
67983
68409
  method: "GET",
67984
- baseURL: options?.serverURL,
68410
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
67985
68411
  path,
67986
68412
  headers,
67987
68413
  query,
@@ -67990,7 +68416,7 @@ async function $do4(client, request, options) {
67990
68416
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
67991
68417
  }, options);
67992
68418
  if (!requestRes.ok) {
67993
- return [requestRes, { status: "invalid" }];
68419
+ return [haltIterator(requestRes), { status: "invalid" }];
67994
68420
  }
67995
68421
  const req = requestRes.value;
67996
68422
  const doResult = await client._do(req, {
@@ -68000,21 +68426,49 @@ async function $do4(client, request, options) {
68000
68426
  retryCodes: context.retryCodes
68001
68427
  });
68002
68428
  if (!doResult.ok) {
68003
- return [doResult, { status: "request-error", request: req }];
68429
+ return [haltIterator(doResult), { status: "request-error", request: req }];
68004
68430
  }
68005
68431
  const response = doResult.value;
68006
68432
  const responseFields = {
68007
68433
  HttpMeta: { Response: response, Request: req }
68008
68434
  };
68009
- const [result] = await match(json(200, ListBalancesResponse$inboundSchema, {
68010
- ctype: "application/hal+json"
68435
+ const [result, raw] = await match(json(200, ListBalancesResponse$inboundSchema, {
68436
+ ctype: "application/hal+json",
68437
+ key: "Result"
68011
68438
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
68012
68439
  ctype: "application/hal+json"
68013
68440
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
68014
68441
  if (!result.ok) {
68015
- return [result, { status: "complete", request: req, response }];
68442
+ return [haltIterator(result), {
68443
+ status: "complete",
68444
+ request: req,
68445
+ response
68446
+ }];
68016
68447
  }
68017
- return [result, { status: "complete", request: req, response }];
68448
+ const nextFunc = (responseData) => {
68449
+ let nextURL = dlv(responseData, "_links.next.href");
68450
+ if (typeof nextURL !== "string") {
68451
+ return { next: () => null };
68452
+ }
68453
+ if (nextURL.startsWith("/")) {
68454
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
68455
+ }
68456
+ try {
68457
+ new URL(nextURL);
68458
+ } catch (_error) {
68459
+ return { next: () => null };
68460
+ }
68461
+ const nextVal = () => balancesList(client, {
68462
+ ...request
68463
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
68464
+ return { next: nextVal, "~next": { url: nextURL } };
68465
+ };
68466
+ const page = { ...result, ...nextFunc(raw) };
68467
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
68468
+ status: "complete",
68469
+ request: req,
68470
+ response
68471
+ }];
68018
68472
  }
68019
68473
  var init_balancesList = __esm(() => {
68020
68474
  init_encodings();
@@ -68026,6 +68480,7 @@ var init_balancesList = __esm(() => {
68026
68480
  init_errors4();
68027
68481
  init_operations();
68028
68482
  init_async();
68483
+ init_operations2();
68029
68484
  });
68030
68485
 
68031
68486
  // src/mcp-server/tools/balancesList.ts
@@ -68053,7 +68508,7 @@ The results are paginated.`,
68053
68508
  isError: true
68054
68509
  };
68055
68510
  }
68056
- const value = result.value;
68511
+ const value = result.value.result;
68057
68512
  return formatResult(value, apiCall);
68058
68513
  }
68059
68514
  };
@@ -68066,7 +68521,7 @@ function balancesListTransactions(client, request, options) {
68066
68521
  async function $do5(client, request, options) {
68067
68522
  const parsed = safeParse4(request, (value) => ListBalanceTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
68068
68523
  if (!parsed.ok) {
68069
- return [parsed, { status: "invalid" }];
68524
+ return [haltIterator(parsed), { status: "invalid" }];
68070
68525
  }
68071
68526
  const payload = parsed.value;
68072
68527
  const body = null;
@@ -68076,8 +68531,8 @@ async function $do5(client, request, options) {
68076
68531
  charEncoding: "percent"
68077
68532
  })
68078
68533
  };
68079
- const path = pathToFunc("/balances/{balanceId}/transactions")(pathParams);
68080
- const query = encodeFormQuery({
68534
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/balances/{balanceId}/transactions")(pathParams);
68535
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
68081
68536
  from: payload.from,
68082
68537
  limit: payload.limit,
68083
68538
  testmode: payload.testmode ?? client._options.testmode
@@ -68110,7 +68565,7 @@ async function $do5(client, request, options) {
68110
68565
  const requestRes = client._createRequest(context, {
68111
68566
  security: requestSecurity,
68112
68567
  method: "GET",
68113
- baseURL: options?.serverURL,
68568
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
68114
68569
  path,
68115
68570
  headers,
68116
68571
  query,
@@ -68119,7 +68574,7 @@ async function $do5(client, request, options) {
68119
68574
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
68120
68575
  }, options);
68121
68576
  if (!requestRes.ok) {
68122
- return [requestRes, { status: "invalid" }];
68577
+ return [haltIterator(requestRes), { status: "invalid" }];
68123
68578
  }
68124
68579
  const req = requestRes.value;
68125
68580
  const doResult = await client._do(req, {
@@ -68129,21 +68584,49 @@ async function $do5(client, request, options) {
68129
68584
  retryCodes: context.retryCodes
68130
68585
  });
68131
68586
  if (!doResult.ok) {
68132
- return [doResult, { status: "request-error", request: req }];
68587
+ return [haltIterator(doResult), { status: "request-error", request: req }];
68133
68588
  }
68134
68589
  const response = doResult.value;
68135
68590
  const responseFields = {
68136
68591
  HttpMeta: { Response: response, Request: req }
68137
68592
  };
68138
- const [result] = await match(json(200, ListBalanceTransactionsResponse$inboundSchema, {
68139
- ctype: "application/hal+json"
68593
+ const [result, raw] = await match(json(200, ListBalanceTransactionsResponse$inboundSchema, {
68594
+ ctype: "application/hal+json",
68595
+ key: "Result"
68140
68596
  }), jsonErr([400, 404, 429], ErrorResponse$inboundSchema, {
68141
68597
  ctype: "application/hal+json"
68142
68598
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
68143
68599
  if (!result.ok) {
68144
- return [result, { status: "complete", request: req, response }];
68600
+ return [haltIterator(result), {
68601
+ status: "complete",
68602
+ request: req,
68603
+ response
68604
+ }];
68145
68605
  }
68146
- return [result, { status: "complete", request: req, response }];
68606
+ const nextFunc = (responseData) => {
68607
+ let nextURL = dlv(responseData, "_links.next.href");
68608
+ if (typeof nextURL !== "string") {
68609
+ return { next: () => null };
68610
+ }
68611
+ if (nextURL.startsWith("/")) {
68612
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
68613
+ }
68614
+ try {
68615
+ new URL(nextURL);
68616
+ } catch (_error) {
68617
+ return { next: () => null };
68618
+ }
68619
+ const nextVal = () => balancesListTransactions(client, {
68620
+ ...request
68621
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
68622
+ return { next: nextVal, "~next": { url: nextURL } };
68623
+ };
68624
+ const page = { ...result, ...nextFunc(raw) };
68625
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
68626
+ status: "complete",
68627
+ request: req,
68628
+ response
68629
+ }];
68147
68630
  }
68148
68631
  var init_balancesListTransactions = __esm(() => {
68149
68632
  init_encodings();
@@ -68155,6 +68638,7 @@ var init_balancesListTransactions = __esm(() => {
68155
68638
  init_errors4();
68156
68639
  init_operations();
68157
68640
  init_async();
68641
+ init_operations2();
68158
68642
  });
68159
68643
 
68160
68644
  // src/mcp-server/tools/balancesListTransactions.ts
@@ -68189,7 +68673,7 @@ The results are paginated.`,
68189
68673
  isError: true
68190
68674
  };
68191
68675
  }
68192
- const value = result.value;
68676
+ const value = result.value.result;
68193
68677
  return formatResult(value, apiCall);
68194
68678
  }
68195
68679
  };
@@ -68447,12 +68931,12 @@ function balanceTransfersList(client, request, options) {
68447
68931
  async function $do8(client, request, options) {
68448
68932
  const parsed = safeParse4(request, (value) => ListConnectBalanceTransfersRequest$outboundSchema.optional().parse(value), "Input validation failed");
68449
68933
  if (!parsed.ok) {
68450
- return [parsed, { status: "invalid" }];
68934
+ return [haltIterator(parsed), { status: "invalid" }];
68451
68935
  }
68452
68936
  const payload = parsed.value;
68453
68937
  const body = null;
68454
- const path = pathToFunc("/connect/balance-transfers")();
68455
- const query = encodeFormQuery({
68938
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/connect/balance-transfers")();
68939
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
68456
68940
  from: payload?.from,
68457
68941
  limit: payload?.limit,
68458
68942
  sort: payload?.sort,
@@ -68486,7 +68970,7 @@ async function $do8(client, request, options) {
68486
68970
  const requestRes = client._createRequest(context, {
68487
68971
  security: requestSecurity,
68488
68972
  method: "GET",
68489
- baseURL: options?.serverURL,
68973
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
68490
68974
  path,
68491
68975
  headers,
68492
68976
  query,
@@ -68495,7 +68979,7 @@ async function $do8(client, request, options) {
68495
68979
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
68496
68980
  }, options);
68497
68981
  if (!requestRes.ok) {
68498
- return [requestRes, { status: "invalid" }];
68982
+ return [haltIterator(requestRes), { status: "invalid" }];
68499
68983
  }
68500
68984
  const req = requestRes.value;
68501
68985
  const doResult = await client._do(req, {
@@ -68505,21 +68989,49 @@ async function $do8(client, request, options) {
68505
68989
  retryCodes: context.retryCodes
68506
68990
  });
68507
68991
  if (!doResult.ok) {
68508
- return [doResult, { status: "request-error", request: req }];
68992
+ return [haltIterator(doResult), { status: "request-error", request: req }];
68509
68993
  }
68510
68994
  const response = doResult.value;
68511
68995
  const responseFields = {
68512
68996
  HttpMeta: { Response: response, Request: req }
68513
68997
  };
68514
- const [result] = await match(json(200, ListConnectBalanceTransfersResponse$inboundSchema, {
68515
- ctype: "application/hal+json"
68998
+ const [result, raw] = await match(json(200, ListConnectBalanceTransfersResponse$inboundSchema, {
68999
+ ctype: "application/hal+json",
69000
+ key: "Result"
68516
69001
  }), jsonErr(400, ErrorResponse$inboundSchema, {
68517
69002
  ctype: "application/hal+json"
68518
69003
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
68519
69004
  if (!result.ok) {
68520
- return [result, { status: "complete", request: req, response }];
69005
+ return [haltIterator(result), {
69006
+ status: "complete",
69007
+ request: req,
69008
+ response
69009
+ }];
68521
69010
  }
68522
- return [result, { status: "complete", request: req, response }];
69011
+ const nextFunc = (responseData) => {
69012
+ let nextURL = dlv(responseData, "_links.next.href");
69013
+ if (typeof nextURL !== "string") {
69014
+ return { next: () => null };
69015
+ }
69016
+ if (nextURL.startsWith("/")) {
69017
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
69018
+ }
69019
+ try {
69020
+ new URL(nextURL);
69021
+ } catch (_error) {
69022
+ return { next: () => null };
69023
+ }
69024
+ const nextVal = () => balanceTransfersList(client, {
69025
+ ...request
69026
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
69027
+ return { next: nextVal, "~next": { url: nextURL } };
69028
+ };
69029
+ const page = { ...result, ...nextFunc(raw) };
69030
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
69031
+ status: "complete",
69032
+ request: req,
69033
+ response
69034
+ }];
68523
69035
  }
68524
69036
  var init_balanceTransfersList = __esm(() => {
68525
69037
  init_encodings();
@@ -68531,6 +69043,7 @@ var init_balanceTransfersList = __esm(() => {
68531
69043
  init_errors4();
68532
69044
  init_operations();
68533
69045
  init_async();
69046
+ init_operations2();
68534
69047
  });
68535
69048
 
68536
69049
  // src/mcp-server/tools/balanceTransfersList.ts
@@ -68556,7 +69069,7 @@ Returns a paginated list of balance transfers associated with your organization.
68556
69069
  isError: true
68557
69070
  };
68558
69071
  }
68559
- const value = result.value;
69072
+ const value = result.value.result;
68560
69073
  return formatResult(value, apiCall);
68561
69074
  }
68562
69075
  };
@@ -68952,7 +69465,7 @@ function capturesList(client, request, options) {
68952
69465
  async function $do12(client, request, options) {
68953
69466
  const parsed = safeParse4(request, (value) => ListCapturesRequest$outboundSchema.parse(value), "Input validation failed");
68954
69467
  if (!parsed.ok) {
68955
- return [parsed, { status: "invalid" }];
69468
+ return [haltIterator(parsed), { status: "invalid" }];
68956
69469
  }
68957
69470
  const payload = parsed.value;
68958
69471
  const body = null;
@@ -68962,8 +69475,8 @@ async function $do12(client, request, options) {
68962
69475
  charEncoding: "percent"
68963
69476
  })
68964
69477
  };
68965
- const path = pathToFunc("/payments/{paymentId}/captures")(pathParams);
68966
- const query = encodeFormQuery({
69478
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments/{paymentId}/captures")(pathParams);
69479
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
68967
69480
  embed: payload.embed,
68968
69481
  from: payload.from,
68969
69482
  limit: payload.limit,
@@ -68997,7 +69510,7 @@ async function $do12(client, request, options) {
68997
69510
  const requestRes = client._createRequest(context, {
68998
69511
  security: requestSecurity,
68999
69512
  method: "GET",
69000
- baseURL: options?.serverURL,
69513
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69001
69514
  path,
69002
69515
  headers,
69003
69516
  query,
@@ -69006,7 +69519,7 @@ async function $do12(client, request, options) {
69006
69519
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69007
69520
  }, options);
69008
69521
  if (!requestRes.ok) {
69009
- return [requestRes, { status: "invalid" }];
69522
+ return [haltIterator(requestRes), { status: "invalid" }];
69010
69523
  }
69011
69524
  const req = requestRes.value;
69012
69525
  const doResult = await client._do(req, {
@@ -69016,21 +69529,49 @@ async function $do12(client, request, options) {
69016
69529
  retryCodes: context.retryCodes
69017
69530
  });
69018
69531
  if (!doResult.ok) {
69019
- return [doResult, { status: "request-error", request: req }];
69532
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69020
69533
  }
69021
69534
  const response = doResult.value;
69022
69535
  const responseFields = {
69023
69536
  HttpMeta: { Response: response, Request: req }
69024
69537
  };
69025
- const [result] = await match(json(200, ListCapturesResponse$inboundSchema, {
69026
- ctype: "application/hal+json"
69538
+ const [result, raw] = await match(json(200, ListCapturesResponse$inboundSchema, {
69539
+ ctype: "application/hal+json",
69540
+ key: "Result"
69027
69541
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69028
69542
  ctype: "application/hal+json"
69029
69543
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69030
69544
  if (!result.ok) {
69031
- return [result, { status: "complete", request: req, response }];
69545
+ return [haltIterator(result), {
69546
+ status: "complete",
69547
+ request: req,
69548
+ response
69549
+ }];
69032
69550
  }
69033
- return [result, { status: "complete", request: req, response }];
69551
+ const nextFunc = (responseData) => {
69552
+ let nextURL = dlv(responseData, "_links.next.href");
69553
+ if (typeof nextURL !== "string") {
69554
+ return { next: () => null };
69555
+ }
69556
+ if (nextURL.startsWith("/")) {
69557
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
69558
+ }
69559
+ try {
69560
+ new URL(nextURL);
69561
+ } catch (_error) {
69562
+ return { next: () => null };
69563
+ }
69564
+ const nextVal = () => capturesList(client, {
69565
+ ...request
69566
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
69567
+ return { next: nextVal, "~next": { url: nextURL } };
69568
+ };
69569
+ const page = { ...result, ...nextFunc(raw) };
69570
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
69571
+ status: "complete",
69572
+ request: req,
69573
+ response
69574
+ }];
69034
69575
  }
69035
69576
  var init_capturesList = __esm(() => {
69036
69577
  init_encodings();
@@ -69042,6 +69583,7 @@ var init_capturesList = __esm(() => {
69042
69583
  init_errors4();
69043
69584
  init_operations();
69044
69585
  init_async();
69586
+ init_operations2();
69045
69587
  });
69046
69588
 
69047
69589
  // src/mcp-server/tools/capturesList.ts
@@ -69069,7 +69611,7 @@ The results are paginated.`,
69069
69611
  isError: true
69070
69612
  };
69071
69613
  }
69072
- const value = result.value;
69614
+ const value = result.value.result;
69073
69615
  return formatResult(value, apiCall);
69074
69616
  }
69075
69617
  };
@@ -69082,12 +69624,12 @@ function chargebacksAll(client, request, options) {
69082
69624
  async function $do13(client, request, options) {
69083
69625
  const parsed = safeParse4(request, (value) => ListAllChargebacksRequest$outboundSchema.optional().parse(value), "Input validation failed");
69084
69626
  if (!parsed.ok) {
69085
- return [parsed, { status: "invalid" }];
69627
+ return [haltIterator(parsed), { status: "invalid" }];
69086
69628
  }
69087
69629
  const payload = parsed.value;
69088
69630
  const body = null;
69089
- const path = pathToFunc("/chargebacks")();
69090
- const query = encodeFormQuery({
69631
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/chargebacks")();
69632
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
69091
69633
  embed: payload?.embed,
69092
69634
  from: payload?.from,
69093
69635
  limit: payload?.limit,
@@ -69123,7 +69665,7 @@ async function $do13(client, request, options) {
69123
69665
  const requestRes = client._createRequest(context, {
69124
69666
  security: requestSecurity,
69125
69667
  method: "GET",
69126
- baseURL: options?.serverURL,
69668
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69127
69669
  path,
69128
69670
  headers,
69129
69671
  query,
@@ -69132,7 +69674,7 @@ async function $do13(client, request, options) {
69132
69674
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69133
69675
  }, options);
69134
69676
  if (!requestRes.ok) {
69135
- return [requestRes, { status: "invalid" }];
69677
+ return [haltIterator(requestRes), { status: "invalid" }];
69136
69678
  }
69137
69679
  const req = requestRes.value;
69138
69680
  const doResult = await client._do(req, {
@@ -69142,21 +69684,49 @@ async function $do13(client, request, options) {
69142
69684
  retryCodes: context.retryCodes
69143
69685
  });
69144
69686
  if (!doResult.ok) {
69145
- return [doResult, { status: "request-error", request: req }];
69687
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69146
69688
  }
69147
69689
  const response = doResult.value;
69148
69690
  const responseFields = {
69149
69691
  HttpMeta: { Response: response, Request: req }
69150
69692
  };
69151
- const [result] = await match(json(200, ListAllChargebacksResponse$inboundSchema, {
69152
- ctype: "application/hal+json"
69693
+ const [result, raw] = await match(json(200, ListAllChargebacksResponse$inboundSchema, {
69694
+ ctype: "application/hal+json",
69695
+ key: "Result"
69153
69696
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69154
69697
  ctype: "application/hal+json"
69155
69698
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69156
69699
  if (!result.ok) {
69157
- return [result, { status: "complete", request: req, response }];
69700
+ return [haltIterator(result), {
69701
+ status: "complete",
69702
+ request: req,
69703
+ response
69704
+ }];
69158
69705
  }
69159
- return [result, { status: "complete", request: req, response }];
69706
+ const nextFunc = (responseData) => {
69707
+ let nextURL = dlv(responseData, "_links.next.href");
69708
+ if (typeof nextURL !== "string") {
69709
+ return { next: () => null };
69710
+ }
69711
+ if (nextURL.startsWith("/")) {
69712
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
69713
+ }
69714
+ try {
69715
+ new URL(nextURL);
69716
+ } catch (_error) {
69717
+ return { next: () => null };
69718
+ }
69719
+ const nextVal = () => chargebacksAll(client, {
69720
+ ...request
69721
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
69722
+ return { next: nextVal, "~next": { url: nextURL } };
69723
+ };
69724
+ const page = { ...result, ...nextFunc(raw) };
69725
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
69726
+ status: "complete",
69727
+ request: req,
69728
+ response
69729
+ }];
69160
69730
  }
69161
69731
  var init_chargebacksAll = __esm(() => {
69162
69732
  init_encodings();
@@ -69168,6 +69738,7 @@ var init_chargebacksAll = __esm(() => {
69168
69738
  init_errors4();
69169
69739
  init_operations();
69170
69740
  init_async();
69741
+ init_operations2();
69171
69742
  });
69172
69743
 
69173
69744
  // src/mcp-server/tools/chargebacksAll.ts
@@ -69195,7 +69766,7 @@ The results are paginated.`,
69195
69766
  isError: true
69196
69767
  };
69197
69768
  }
69198
- const value = result.value;
69769
+ const value = result.value.result;
69199
69770
  return formatResult(value, apiCall);
69200
69771
  }
69201
69772
  };
@@ -69339,7 +69910,7 @@ function chargebacksList(client, request, options) {
69339
69910
  async function $do15(client, request, options) {
69340
69911
  const parsed = safeParse4(request, (value) => ListChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
69341
69912
  if (!parsed.ok) {
69342
- return [parsed, { status: "invalid" }];
69913
+ return [haltIterator(parsed), { status: "invalid" }];
69343
69914
  }
69344
69915
  const payload = parsed.value;
69345
69916
  const body = null;
@@ -69349,8 +69920,8 @@ async function $do15(client, request, options) {
69349
69920
  charEncoding: "percent"
69350
69921
  })
69351
69922
  };
69352
- const path = pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
69353
- const query = encodeFormQuery({
69923
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
69924
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
69354
69925
  embed: payload.embed,
69355
69926
  from: payload.from,
69356
69927
  limit: payload.limit,
@@ -69384,7 +69955,7 @@ async function $do15(client, request, options) {
69384
69955
  const requestRes = client._createRequest(context, {
69385
69956
  security: requestSecurity,
69386
69957
  method: "GET",
69387
- baseURL: options?.serverURL,
69958
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69388
69959
  path,
69389
69960
  headers,
69390
69961
  query,
@@ -69393,7 +69964,7 @@ async function $do15(client, request, options) {
69393
69964
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69394
69965
  }, options);
69395
69966
  if (!requestRes.ok) {
69396
- return [requestRes, { status: "invalid" }];
69967
+ return [haltIterator(requestRes), { status: "invalid" }];
69397
69968
  }
69398
69969
  const req = requestRes.value;
69399
69970
  const doResult = await client._do(req, {
@@ -69403,21 +69974,49 @@ async function $do15(client, request, options) {
69403
69974
  retryCodes: context.retryCodes
69404
69975
  });
69405
69976
  if (!doResult.ok) {
69406
- return [doResult, { status: "request-error", request: req }];
69977
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69407
69978
  }
69408
69979
  const response = doResult.value;
69409
69980
  const responseFields = {
69410
69981
  HttpMeta: { Response: response, Request: req }
69411
69982
  };
69412
- const [result] = await match(json(200, ListChargebacksResponse$inboundSchema, {
69413
- ctype: "application/hal+json"
69983
+ const [result, raw] = await match(json(200, ListChargebacksResponse$inboundSchema, {
69984
+ ctype: "application/hal+json",
69985
+ key: "Result"
69414
69986
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69415
69987
  ctype: "application/hal+json"
69416
69988
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69417
69989
  if (!result.ok) {
69418
- return [result, { status: "complete", request: req, response }];
69990
+ return [haltIterator(result), {
69991
+ status: "complete",
69992
+ request: req,
69993
+ response
69994
+ }];
69419
69995
  }
69420
- return [result, { status: "complete", request: req, response }];
69996
+ const nextFunc = (responseData) => {
69997
+ let nextURL = dlv(responseData, "_links.next.href");
69998
+ if (typeof nextURL !== "string") {
69999
+ return { next: () => null };
70000
+ }
70001
+ if (nextURL.startsWith("/")) {
70002
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
70003
+ }
70004
+ try {
70005
+ new URL(nextURL);
70006
+ } catch (_error) {
70007
+ return { next: () => null };
70008
+ }
70009
+ const nextVal = () => chargebacksList(client, {
70010
+ ...request
70011
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
70012
+ return { next: nextVal, "~next": { url: nextURL } };
70013
+ };
70014
+ const page = { ...result, ...nextFunc(raw) };
70015
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
70016
+ status: "complete",
70017
+ request: req,
70018
+ response
70019
+ }];
69421
70020
  }
69422
70021
  var init_chargebacksList = __esm(() => {
69423
70022
  init_encodings();
@@ -69429,6 +70028,7 @@ var init_chargebacksList = __esm(() => {
69429
70028
  init_errors4();
69430
70029
  init_operations();
69431
70030
  init_async();
70031
+ init_operations2();
69432
70032
  });
69433
70033
 
69434
70034
  // src/mcp-server/tools/chargebacksList.ts
@@ -69456,7 +70056,7 @@ The results are paginated.`,
69456
70056
  isError: true
69457
70057
  };
69458
70058
  }
69459
- const value = result.value;
70059
+ const value = result.value.result;
69460
70060
  return formatResult(value, apiCall);
69461
70061
  }
69462
70062
  };
@@ -69765,12 +70365,12 @@ function clientsList(client, request, options) {
69765
70365
  async function $do18(client, request, options) {
69766
70366
  const parsed = safeParse4(request, (value) => ListClientsRequest$outboundSchema.optional().parse(value), "Input validation failed");
69767
70367
  if (!parsed.ok) {
69768
- return [parsed, { status: "invalid" }];
70368
+ return [haltIterator(parsed), { status: "invalid" }];
69769
70369
  }
69770
70370
  const payload = parsed.value;
69771
70371
  const body = null;
69772
- const path = pathToFunc("/clients")();
69773
- const query = encodeFormQuery({
70372
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/clients")();
70373
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
69774
70374
  embed: payload?.embed,
69775
70375
  from: payload?.from,
69776
70376
  limit: payload?.limit
@@ -69803,7 +70403,7 @@ async function $do18(client, request, options) {
69803
70403
  const requestRes = client._createRequest(context, {
69804
70404
  security: requestSecurity,
69805
70405
  method: "GET",
69806
- baseURL: options?.serverURL,
70406
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
69807
70407
  path,
69808
70408
  headers,
69809
70409
  query,
@@ -69812,7 +70412,7 @@ async function $do18(client, request, options) {
69812
70412
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
69813
70413
  }, options);
69814
70414
  if (!requestRes.ok) {
69815
- return [requestRes, { status: "invalid" }];
70415
+ return [haltIterator(requestRes), { status: "invalid" }];
69816
70416
  }
69817
70417
  const req = requestRes.value;
69818
70418
  const doResult = await client._do(req, {
@@ -69822,21 +70422,49 @@ async function $do18(client, request, options) {
69822
70422
  retryCodes: context.retryCodes
69823
70423
  });
69824
70424
  if (!doResult.ok) {
69825
- return [doResult, { status: "request-error", request: req }];
70425
+ return [haltIterator(doResult), { status: "request-error", request: req }];
69826
70426
  }
69827
70427
  const response = doResult.value;
69828
70428
  const responseFields = {
69829
70429
  HttpMeta: { Response: response, Request: req }
69830
70430
  };
69831
- const [result] = await match(json(200, ListClientsResponse$inboundSchema, {
69832
- ctype: "application/hal+json"
70431
+ const [result, raw] = await match(json(200, ListClientsResponse$inboundSchema, {
70432
+ ctype: "application/hal+json",
70433
+ key: "Result"
69833
70434
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
69834
70435
  ctype: "application/hal+json"
69835
70436
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
69836
70437
  if (!result.ok) {
69837
- return [result, { status: "complete", request: req, response }];
70438
+ return [haltIterator(result), {
70439
+ status: "complete",
70440
+ request: req,
70441
+ response
70442
+ }];
69838
70443
  }
69839
- return [result, { status: "complete", request: req, response }];
70444
+ const nextFunc = (responseData) => {
70445
+ let nextURL = dlv(responseData, "_links.next.href");
70446
+ if (typeof nextURL !== "string") {
70447
+ return { next: () => null };
70448
+ }
70449
+ if (nextURL.startsWith("/")) {
70450
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
70451
+ }
70452
+ try {
70453
+ new URL(nextURL);
70454
+ } catch (_error) {
70455
+ return { next: () => null };
70456
+ }
70457
+ const nextVal = () => clientsList(client, {
70458
+ ...request
70459
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
70460
+ return { next: nextVal, "~next": { url: nextURL } };
70461
+ };
70462
+ const page = { ...result, ...nextFunc(raw) };
70463
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
70464
+ status: "complete",
70465
+ request: req,
70466
+ response
70467
+ }];
69840
70468
  }
69841
70469
  var init_clientsList = __esm(() => {
69842
70470
  init_encodings();
@@ -69848,6 +70476,7 @@ var init_clientsList = __esm(() => {
69848
70476
  init_errors4();
69849
70477
  init_operations();
69850
70478
  init_async();
70479
+ init_operations2();
69851
70480
  });
69852
70481
 
69853
70482
  // src/mcp-server/tools/clientsList.ts
@@ -69875,7 +70504,7 @@ The results are paginated.`,
69875
70504
  isError: true
69876
70505
  };
69877
70506
  }
69878
- const value = result.value;
70507
+ const value = result.value.result;
69879
70508
  return formatResult(value, apiCall);
69880
70509
  }
69881
70510
  };
@@ -70393,12 +71022,12 @@ function customersList(client, request, options) {
70393
71022
  async function $do23(client, request, options) {
70394
71023
  const parsed = safeParse4(request, (value) => ListCustomersRequest$outboundSchema.optional().parse(value), "Input validation failed");
70395
71024
  if (!parsed.ok) {
70396
- return [parsed, { status: "invalid" }];
71025
+ return [haltIterator(parsed), { status: "invalid" }];
70397
71026
  }
70398
71027
  const payload = parsed.value;
70399
71028
  const body = null;
70400
- const path = pathToFunc("/customers")();
70401
- const query = encodeFormQuery({
71029
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers")();
71030
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
70402
71031
  from: payload?.from,
70403
71032
  limit: payload?.limit,
70404
71033
  sort: payload?.sort,
@@ -70432,7 +71061,7 @@ async function $do23(client, request, options) {
70432
71061
  const requestRes = client._createRequest(context, {
70433
71062
  security: requestSecurity,
70434
71063
  method: "GET",
70435
- baseURL: options?.serverURL,
71064
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
70436
71065
  path,
70437
71066
  headers,
70438
71067
  query,
@@ -70441,7 +71070,7 @@ async function $do23(client, request, options) {
70441
71070
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
70442
71071
  }, options);
70443
71072
  if (!requestRes.ok) {
70444
- return [requestRes, { status: "invalid" }];
71073
+ return [haltIterator(requestRes), { status: "invalid" }];
70445
71074
  }
70446
71075
  const req = requestRes.value;
70447
71076
  const doResult = await client._do(req, {
@@ -70451,21 +71080,49 @@ async function $do23(client, request, options) {
70451
71080
  retryCodes: context.retryCodes
70452
71081
  });
70453
71082
  if (!doResult.ok) {
70454
- return [doResult, { status: "request-error", request: req }];
71083
+ return [haltIterator(doResult), { status: "request-error", request: req }];
70455
71084
  }
70456
71085
  const response = doResult.value;
70457
71086
  const responseFields = {
70458
71087
  HttpMeta: { Response: response, Request: req }
70459
71088
  };
70460
- const [result] = await match(json(200, ListCustomersResponse$inboundSchema, {
70461
- ctype: "application/hal+json"
71089
+ const [result, raw] = await match(json(200, ListCustomersResponse$inboundSchema, {
71090
+ ctype: "application/hal+json",
71091
+ key: "Result"
70462
71092
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
70463
71093
  ctype: "application/hal+json"
70464
71094
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
70465
71095
  if (!result.ok) {
70466
- return [result, { status: "complete", request: req, response }];
71096
+ return [haltIterator(result), {
71097
+ status: "complete",
71098
+ request: req,
71099
+ response
71100
+ }];
70467
71101
  }
70468
- return [result, { status: "complete", request: req, response }];
71102
+ const nextFunc = (responseData) => {
71103
+ let nextURL = dlv(responseData, "_links.next.href");
71104
+ if (typeof nextURL !== "string") {
71105
+ return { next: () => null };
71106
+ }
71107
+ if (nextURL.startsWith("/")) {
71108
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
71109
+ }
71110
+ try {
71111
+ new URL(nextURL);
71112
+ } catch (_error) {
71113
+ return { next: () => null };
71114
+ }
71115
+ const nextVal = () => customersList(client, {
71116
+ ...request
71117
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
71118
+ return { next: nextVal, "~next": { url: nextURL } };
71119
+ };
71120
+ const page = { ...result, ...nextFunc(raw) };
71121
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
71122
+ status: "complete",
71123
+ request: req,
71124
+ response
71125
+ }];
70469
71126
  }
70470
71127
  var init_customersList = __esm(() => {
70471
71128
  init_encodings();
@@ -70477,6 +71134,7 @@ var init_customersList = __esm(() => {
70477
71134
  init_errors4();
70478
71135
  init_operations();
70479
71136
  init_async();
71137
+ init_operations2();
70480
71138
  });
70481
71139
 
70482
71140
  // src/mcp-server/tools/customersList.ts
@@ -70504,7 +71162,7 @@ The results are paginated.`,
70504
71162
  isError: true
70505
71163
  };
70506
71164
  }
70507
- const value = result.value;
71165
+ const value = result.value.result;
70508
71166
  return formatResult(value, apiCall);
70509
71167
  }
70510
71168
  };
@@ -70517,7 +71175,7 @@ function customersListPayments(client, request, options) {
70517
71175
  async function $do24(client, request, options) {
70518
71176
  const parsed = safeParse4(request, (value) => ListCustomerPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
70519
71177
  if (!parsed.ok) {
70520
- return [parsed, { status: "invalid" }];
71178
+ return [haltIterator(parsed), { status: "invalid" }];
70521
71179
  }
70522
71180
  const payload = parsed.value;
70523
71181
  const body = null;
@@ -70527,8 +71185,8 @@ async function $do24(client, request, options) {
70527
71185
  charEncoding: "percent"
70528
71186
  })
70529
71187
  };
70530
- const path = pathToFunc("/customers/{customerId}/payments")(pathParams);
70531
- const query = encodeFormQuery({
71188
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/payments")(pathParams);
71189
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
70532
71190
  from: payload.from,
70533
71191
  limit: payload.limit,
70534
71192
  profileId: payload.profileId ?? client._options.profileId,
@@ -70563,7 +71221,7 @@ async function $do24(client, request, options) {
70563
71221
  const requestRes = client._createRequest(context, {
70564
71222
  security: requestSecurity,
70565
71223
  method: "GET",
70566
- baseURL: options?.serverURL,
71224
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
70567
71225
  path,
70568
71226
  headers,
70569
71227
  query,
@@ -70572,7 +71230,7 @@ async function $do24(client, request, options) {
70572
71230
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
70573
71231
  }, options);
70574
71232
  if (!requestRes.ok) {
70575
- return [requestRes, { status: "invalid" }];
71233
+ return [haltIterator(requestRes), { status: "invalid" }];
70576
71234
  }
70577
71235
  const req = requestRes.value;
70578
71236
  const doResult = await client._do(req, {
@@ -70582,21 +71240,49 @@ async function $do24(client, request, options) {
70582
71240
  retryCodes: context.retryCodes
70583
71241
  });
70584
71242
  if (!doResult.ok) {
70585
- return [doResult, { status: "request-error", request: req }];
71243
+ return [haltIterator(doResult), { status: "request-error", request: req }];
70586
71244
  }
70587
71245
  const response = doResult.value;
70588
71246
  const responseFields = {
70589
71247
  HttpMeta: { Response: response, Request: req }
70590
71248
  };
70591
- const [result] = await match(json(200, ListCustomerPaymentsResponse$inboundSchema, {
70592
- ctype: "application/hal+json"
71249
+ const [result, raw] = await match(json(200, ListCustomerPaymentsResponse$inboundSchema, {
71250
+ ctype: "application/hal+json",
71251
+ key: "Result"
70593
71252
  }), jsonErr(400, ErrorResponse$inboundSchema, {
70594
71253
  ctype: "application/hal+json"
70595
71254
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
70596
71255
  if (!result.ok) {
70597
- return [result, { status: "complete", request: req, response }];
71256
+ return [haltIterator(result), {
71257
+ status: "complete",
71258
+ request: req,
71259
+ response
71260
+ }];
70598
71261
  }
70599
- return [result, { status: "complete", request: req, response }];
71262
+ const nextFunc = (responseData) => {
71263
+ let nextURL = dlv(responseData, "_links.next.href");
71264
+ if (typeof nextURL !== "string") {
71265
+ return { next: () => null };
71266
+ }
71267
+ if (nextURL.startsWith("/")) {
71268
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
71269
+ }
71270
+ try {
71271
+ new URL(nextURL);
71272
+ } catch (_error) {
71273
+ return { next: () => null };
71274
+ }
71275
+ const nextVal = () => customersListPayments(client, {
71276
+ ...request
71277
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
71278
+ return { next: nextVal, "~next": { url: nextURL } };
71279
+ };
71280
+ const page = { ...result, ...nextFunc(raw) };
71281
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
71282
+ status: "complete",
71283
+ request: req,
71284
+ response
71285
+ }];
70600
71286
  }
70601
71287
  var init_customersListPayments = __esm(() => {
70602
71288
  init_encodings();
@@ -70608,6 +71294,7 @@ var init_customersListPayments = __esm(() => {
70608
71294
  init_errors4();
70609
71295
  init_operations();
70610
71296
  init_async();
71297
+ init_operations2();
70611
71298
  });
70612
71299
 
70613
71300
  // src/mcp-server/tools/customersListPayments.ts
@@ -70633,7 +71320,7 @@ Retrieve all payments linked to the customer.`,
70633
71320
  isError: true
70634
71321
  };
70635
71322
  }
70636
- const value = result.value;
71323
+ const value = result.value.result;
70637
71324
  return formatResult(value, apiCall);
70638
71325
  }
70639
71326
  };
@@ -71273,12 +71960,12 @@ function invoicesList(client, request, options) {
71273
71960
  async function $do30(client, request, options) {
71274
71961
  const parsed = safeParse4(request, (value) => ListInvoicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
71275
71962
  if (!parsed.ok) {
71276
- return [parsed, { status: "invalid" }];
71963
+ return [haltIterator(parsed), { status: "invalid" }];
71277
71964
  }
71278
71965
  const payload = parsed.value;
71279
71966
  const body = null;
71280
- const path = pathToFunc("/invoices")();
71281
- const query = encodeFormQuery({
71967
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/invoices")();
71968
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
71282
71969
  from: payload?.from,
71283
71970
  limit: payload?.limit,
71284
71971
  reference: payload?.reference,
@@ -71313,7 +72000,7 @@ async function $do30(client, request, options) {
71313
72000
  const requestRes = client._createRequest(context, {
71314
72001
  security: requestSecurity,
71315
72002
  method: "GET",
71316
- baseURL: options?.serverURL,
72003
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
71317
72004
  path,
71318
72005
  headers,
71319
72006
  query,
@@ -71322,7 +72009,7 @@ async function $do30(client, request, options) {
71322
72009
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
71323
72010
  }, options);
71324
72011
  if (!requestRes.ok) {
71325
- return [requestRes, { status: "invalid" }];
72012
+ return [haltIterator(requestRes), { status: "invalid" }];
71326
72013
  }
71327
72014
  const req = requestRes.value;
71328
72015
  const doResult = await client._do(req, {
@@ -71332,21 +72019,49 @@ async function $do30(client, request, options) {
71332
72019
  retryCodes: context.retryCodes
71333
72020
  });
71334
72021
  if (!doResult.ok) {
71335
- return [doResult, { status: "request-error", request: req }];
72022
+ return [haltIterator(doResult), { status: "request-error", request: req }];
71336
72023
  }
71337
72024
  const response = doResult.value;
71338
72025
  const responseFields = {
71339
72026
  HttpMeta: { Response: response, Request: req }
71340
72027
  };
71341
- const [result] = await match(json(200, ListInvoicesResponse$inboundSchema, {
71342
- ctype: "application/hal+json"
72028
+ const [result, raw] = await match(json(200, ListInvoicesResponse$inboundSchema, {
72029
+ ctype: "application/hal+json",
72030
+ key: "Result"
71343
72031
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
71344
72032
  ctype: "application/hal+json"
71345
72033
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
71346
72034
  if (!result.ok) {
71347
- return [result, { status: "complete", request: req, response }];
72035
+ return [haltIterator(result), {
72036
+ status: "complete",
72037
+ request: req,
72038
+ response
72039
+ }];
71348
72040
  }
71349
- return [result, { status: "complete", request: req, response }];
72041
+ const nextFunc = (responseData) => {
72042
+ let nextURL = dlv(responseData, "_links.next.href");
72043
+ if (typeof nextURL !== "string") {
72044
+ return { next: () => null };
72045
+ }
72046
+ if (nextURL.startsWith("/")) {
72047
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
72048
+ }
72049
+ try {
72050
+ new URL(nextURL);
72051
+ } catch (_error) {
72052
+ return { next: () => null };
72053
+ }
72054
+ const nextVal = () => invoicesList(client, {
72055
+ ...request
72056
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
72057
+ return { next: nextVal, "~next": { url: nextURL } };
72058
+ };
72059
+ const page = { ...result, ...nextFunc(raw) };
72060
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
72061
+ status: "complete",
72062
+ request: req,
72063
+ response
72064
+ }];
71350
72065
  }
71351
72066
  var init_invoicesList = __esm(() => {
71352
72067
  init_encodings();
@@ -71358,6 +72073,7 @@ var init_invoicesList = __esm(() => {
71358
72073
  init_errors4();
71359
72074
  init_operations();
71360
72075
  init_async();
72076
+ init_operations2();
71361
72077
  });
71362
72078
 
71363
72079
  // src/mcp-server/tools/invoicesList.ts
@@ -71386,7 +72102,7 @@ The results are paginated.`,
71386
72102
  isError: true
71387
72103
  };
71388
72104
  }
71389
- const value = result.value;
72105
+ const value = result.value.result;
71390
72106
  return formatResult(value, apiCall);
71391
72107
  }
71392
72108
  };
@@ -71659,7 +72375,7 @@ function mandatesList(client, request, options) {
71659
72375
  async function $do33(client, request, options) {
71660
72376
  const parsed = safeParse4(request, (value) => ListMandatesRequest$outboundSchema.parse(value), "Input validation failed");
71661
72377
  if (!parsed.ok) {
71662
- return [parsed, { status: "invalid" }];
72378
+ return [haltIterator(parsed), { status: "invalid" }];
71663
72379
  }
71664
72380
  const payload = parsed.value;
71665
72381
  const body = null;
@@ -71669,8 +72385,8 @@ async function $do33(client, request, options) {
71669
72385
  charEncoding: "percent"
71670
72386
  })
71671
72387
  };
71672
- const path = pathToFunc("/customers/{customerId}/mandates")(pathParams);
71673
- const query = encodeFormQuery({
72388
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/mandates")(pathParams);
72389
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
71674
72390
  from: payload.from,
71675
72391
  limit: payload.limit,
71676
72392
  sort: payload.sort,
@@ -71704,7 +72420,7 @@ async function $do33(client, request, options) {
71704
72420
  const requestRes = client._createRequest(context, {
71705
72421
  security: requestSecurity,
71706
72422
  method: "GET",
71707
- baseURL: options?.serverURL,
72423
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
71708
72424
  path,
71709
72425
  headers,
71710
72426
  query,
@@ -71713,7 +72429,7 @@ async function $do33(client, request, options) {
71713
72429
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
71714
72430
  }, options);
71715
72431
  if (!requestRes.ok) {
71716
- return [requestRes, { status: "invalid" }];
72432
+ return [haltIterator(requestRes), { status: "invalid" }];
71717
72433
  }
71718
72434
  const req = requestRes.value;
71719
72435
  const doResult = await client._do(req, {
@@ -71723,21 +72439,49 @@ async function $do33(client, request, options) {
71723
72439
  retryCodes: context.retryCodes
71724
72440
  });
71725
72441
  if (!doResult.ok) {
71726
- return [doResult, { status: "request-error", request: req }];
72442
+ return [haltIterator(doResult), { status: "request-error", request: req }];
71727
72443
  }
71728
72444
  const response = doResult.value;
71729
72445
  const responseFields = {
71730
72446
  HttpMeta: { Response: response, Request: req }
71731
72447
  };
71732
- const [result] = await match(json(200, ListMandatesResponse$inboundSchema, {
71733
- ctype: "application/hal+json"
72448
+ const [result, raw] = await match(json(200, ListMandatesResponse$inboundSchema, {
72449
+ ctype: "application/hal+json",
72450
+ key: "Result"
71734
72451
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
71735
72452
  ctype: "application/hal+json"
71736
72453
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
71737
72454
  if (!result.ok) {
71738
- return [result, { status: "complete", request: req, response }];
72455
+ return [haltIterator(result), {
72456
+ status: "complete",
72457
+ request: req,
72458
+ response
72459
+ }];
71739
72460
  }
71740
- return [result, { status: "complete", request: req, response }];
72461
+ const nextFunc = (responseData) => {
72462
+ let nextURL = dlv(responseData, "_links.next.href");
72463
+ if (typeof nextURL !== "string") {
72464
+ return { next: () => null };
72465
+ }
72466
+ if (nextURL.startsWith("/")) {
72467
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
72468
+ }
72469
+ try {
72470
+ new URL(nextURL);
72471
+ } catch (_error) {
72472
+ return { next: () => null };
72473
+ }
72474
+ const nextVal = () => mandatesList(client, {
72475
+ ...request
72476
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
72477
+ return { next: nextVal, "~next": { url: nextURL } };
72478
+ };
72479
+ const page = { ...result, ...nextFunc(raw) };
72480
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
72481
+ status: "complete",
72482
+ request: req,
72483
+ response
72484
+ }];
71741
72485
  }
71742
72486
  var init_mandatesList = __esm(() => {
71743
72487
  init_encodings();
@@ -71749,6 +72493,7 @@ var init_mandatesList = __esm(() => {
71749
72493
  init_errors4();
71750
72494
  init_operations();
71751
72495
  init_async();
72496
+ init_operations2();
71752
72497
  });
71753
72498
 
71754
72499
  // src/mcp-server/tools/mandatesList.ts
@@ -71776,7 +72521,7 @@ The results are paginated.`,
71776
72521
  isError: true
71777
72522
  };
71778
72523
  }
71779
- const value = result.value;
72524
+ const value = result.value.result;
71780
72525
  return formatResult(value, apiCall);
71781
72526
  }
71782
72527
  };
@@ -73283,12 +74028,12 @@ function paymentLinksList(client, request, options) {
73283
74028
  async function $do46(client, request, options) {
73284
74029
  const parsed = safeParse4(request, (value) => ListPaymentLinksRequest$outboundSchema.optional().parse(value), "Input validation failed");
73285
74030
  if (!parsed.ok) {
73286
- return [parsed, { status: "invalid" }];
74031
+ return [haltIterator(parsed), { status: "invalid" }];
73287
74032
  }
73288
74033
  const payload = parsed.value;
73289
74034
  const body = null;
73290
- const path = pathToFunc("/payment-links")();
73291
- const query = encodeFormQuery({
74035
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payment-links")();
74036
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
73292
74037
  from: payload?.from,
73293
74038
  limit: payload?.limit,
73294
74039
  testmode: payload?.testmode ?? client._options.testmode
@@ -73321,7 +74066,7 @@ async function $do46(client, request, options) {
73321
74066
  const requestRes = client._createRequest(context, {
73322
74067
  security: requestSecurity,
73323
74068
  method: "GET",
73324
- baseURL: options?.serverURL,
74069
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
73325
74070
  path,
73326
74071
  headers,
73327
74072
  query,
@@ -73330,7 +74075,7 @@ async function $do46(client, request, options) {
73330
74075
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
73331
74076
  }, options);
73332
74077
  if (!requestRes.ok) {
73333
- return [requestRes, { status: "invalid" }];
74078
+ return [haltIterator(requestRes), { status: "invalid" }];
73334
74079
  }
73335
74080
  const req = requestRes.value;
73336
74081
  const doResult = await client._do(req, {
@@ -73340,21 +74085,49 @@ async function $do46(client, request, options) {
73340
74085
  retryCodes: context.retryCodes
73341
74086
  });
73342
74087
  if (!doResult.ok) {
73343
- return [doResult, { status: "request-error", request: req }];
74088
+ return [haltIterator(doResult), { status: "request-error", request: req }];
73344
74089
  }
73345
74090
  const response = doResult.value;
73346
74091
  const responseFields = {
73347
74092
  HttpMeta: { Response: response, Request: req }
73348
74093
  };
73349
- const [result] = await match(json(200, ListPaymentLinksResponse$inboundSchema, {
73350
- ctype: "application/hal+json"
74094
+ const [result, raw] = await match(json(200, ListPaymentLinksResponse$inboundSchema, {
74095
+ ctype: "application/hal+json",
74096
+ key: "Result"
73351
74097
  }), jsonErr(400, ErrorResponse$inboundSchema, {
73352
74098
  ctype: "application/hal+json"
73353
74099
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
73354
74100
  if (!result.ok) {
73355
- return [result, { status: "complete", request: req, response }];
74101
+ return [haltIterator(result), {
74102
+ status: "complete",
74103
+ request: req,
74104
+ response
74105
+ }];
73356
74106
  }
73357
- return [result, { status: "complete", request: req, response }];
74107
+ const nextFunc = (responseData) => {
74108
+ let nextURL = dlv(responseData, "_links.next.href");
74109
+ if (typeof nextURL !== "string") {
74110
+ return { next: () => null };
74111
+ }
74112
+ if (nextURL.startsWith("/")) {
74113
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
74114
+ }
74115
+ try {
74116
+ new URL(nextURL);
74117
+ } catch (_error) {
74118
+ return { next: () => null };
74119
+ }
74120
+ const nextVal = () => paymentLinksList(client, {
74121
+ ...request
74122
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
74123
+ return { next: nextVal, "~next": { url: nextURL } };
74124
+ };
74125
+ const page = { ...result, ...nextFunc(raw) };
74126
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
74127
+ status: "complete",
74128
+ request: req,
74129
+ response
74130
+ }];
73358
74131
  }
73359
74132
  var init_paymentLinksList = __esm(() => {
73360
74133
  init_encodings();
@@ -73366,6 +74139,7 @@ var init_paymentLinksList = __esm(() => {
73366
74139
  init_errors4();
73367
74140
  init_operations();
73368
74141
  init_async();
74142
+ init_operations2();
73369
74143
  });
73370
74144
 
73371
74145
  // src/mcp-server/tools/paymentLinksList.ts
@@ -73393,7 +74167,7 @@ The results are paginated.`,
73393
74167
  isError: true
73394
74168
  };
73395
74169
  }
73396
- const value = result.value;
74170
+ const value = result.value.result;
73397
74171
  return formatResult(value, apiCall);
73398
74172
  }
73399
74173
  };
@@ -73406,7 +74180,7 @@ function paymentLinksListPayments(client, request, options) {
73406
74180
  async function $do47(client, request, options) {
73407
74181
  const parsed = safeParse4(request, (value) => GetPaymentLinkPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
73408
74182
  if (!parsed.ok) {
73409
- return [parsed, { status: "invalid" }];
74183
+ return [haltIterator(parsed), { status: "invalid" }];
73410
74184
  }
73411
74185
  const payload = parsed.value;
73412
74186
  const body = null;
@@ -73416,8 +74190,8 @@ async function $do47(client, request, options) {
73416
74190
  charEncoding: "percent"
73417
74191
  })
73418
74192
  };
73419
- const path = pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
73420
- const query = encodeFormQuery({
74193
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
74194
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
73421
74195
  from: payload.from,
73422
74196
  limit: payload.limit,
73423
74197
  sort: payload.sort,
@@ -73451,7 +74225,7 @@ async function $do47(client, request, options) {
73451
74225
  const requestRes = client._createRequest(context, {
73452
74226
  security: requestSecurity,
73453
74227
  method: "GET",
73454
- baseURL: options?.serverURL,
74228
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
73455
74229
  path,
73456
74230
  headers,
73457
74231
  query,
@@ -73460,7 +74234,7 @@ async function $do47(client, request, options) {
73460
74234
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
73461
74235
  }, options);
73462
74236
  if (!requestRes.ok) {
73463
- return [requestRes, { status: "invalid" }];
74237
+ return [haltIterator(requestRes), { status: "invalid" }];
73464
74238
  }
73465
74239
  const req = requestRes.value;
73466
74240
  const doResult = await client._do(req, {
@@ -73470,21 +74244,49 @@ async function $do47(client, request, options) {
73470
74244
  retryCodes: context.retryCodes
73471
74245
  });
73472
74246
  if (!doResult.ok) {
73473
- return [doResult, { status: "request-error", request: req }];
74247
+ return [haltIterator(doResult), { status: "request-error", request: req }];
73474
74248
  }
73475
74249
  const response = doResult.value;
73476
74250
  const responseFields = {
73477
74251
  HttpMeta: { Response: response, Request: req }
73478
74252
  };
73479
- const [result] = await match(json(200, GetPaymentLinkPaymentsResponse$inboundSchema, {
73480
- ctype: "application/hal+json"
74253
+ const [result, raw] = await match(json(200, GetPaymentLinkPaymentsResponse$inboundSchema, {
74254
+ ctype: "application/hal+json",
74255
+ key: "Result"
73481
74256
  }), jsonErr(400, ErrorResponse$inboundSchema, {
73482
74257
  ctype: "application/hal+json"
73483
74258
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
73484
74259
  if (!result.ok) {
73485
- return [result, { status: "complete", request: req, response }];
74260
+ return [haltIterator(result), {
74261
+ status: "complete",
74262
+ request: req,
74263
+ response
74264
+ }];
73486
74265
  }
73487
- return [result, { status: "complete", request: req, response }];
74266
+ const nextFunc = (responseData) => {
74267
+ let nextURL = dlv(responseData, "_links.next.href");
74268
+ if (typeof nextURL !== "string") {
74269
+ return { next: () => null };
74270
+ }
74271
+ if (nextURL.startsWith("/")) {
74272
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
74273
+ }
74274
+ try {
74275
+ new URL(nextURL);
74276
+ } catch (_error) {
74277
+ return { next: () => null };
74278
+ }
74279
+ const nextVal = () => paymentLinksListPayments(client, {
74280
+ ...request
74281
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
74282
+ return { next: nextVal, "~next": { url: nextURL } };
74283
+ };
74284
+ const page = { ...result, ...nextFunc(raw) };
74285
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
74286
+ status: "complete",
74287
+ request: req,
74288
+ response
74289
+ }];
73488
74290
  }
73489
74291
  var init_paymentLinksListPayments = __esm(() => {
73490
74292
  init_encodings();
@@ -73496,6 +74298,7 @@ var init_paymentLinksListPayments = __esm(() => {
73496
74298
  init_errors4();
73497
74299
  init_operations();
73498
74300
  init_async();
74301
+ init_operations2();
73499
74302
  });
73500
74303
 
73501
74304
  // src/mcp-server/tools/paymentLinksListPayments.ts
@@ -73523,7 +74326,7 @@ The results are paginated.`,
73523
74326
  isError: true
73524
74327
  };
73525
74328
  }
73526
- const value = result.value;
74329
+ const value = result.value.result;
73527
74330
  return formatResult(value, apiCall);
73528
74331
  }
73529
74332
  };
@@ -74051,12 +74854,12 @@ function paymentsList(client, request, options) {
74051
74854
  async function $do52(client, request, options) {
74052
74855
  const parsed = safeParse4(request, (value) => ListPaymentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
74053
74856
  if (!parsed.ok) {
74054
- return [parsed, { status: "invalid" }];
74857
+ return [haltIterator(parsed), { status: "invalid" }];
74055
74858
  }
74056
74859
  const payload = parsed.value;
74057
74860
  const body = null;
74058
- const path = pathToFunc("/payments")();
74059
- const query = encodeFormQuery({
74861
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments")();
74862
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
74060
74863
  from: payload?.from,
74061
74864
  limit: payload?.limit,
74062
74865
  profileId: payload?.profileId ?? client._options.profileId,
@@ -74091,7 +74894,7 @@ async function $do52(client, request, options) {
74091
74894
  const requestRes = client._createRequest(context, {
74092
74895
  security: requestSecurity,
74093
74896
  method: "GET",
74094
- baseURL: options?.serverURL,
74897
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
74095
74898
  path,
74096
74899
  headers,
74097
74900
  query,
@@ -74100,7 +74903,7 @@ async function $do52(client, request, options) {
74100
74903
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
74101
74904
  }, options);
74102
74905
  if (!requestRes.ok) {
74103
- return [requestRes, { status: "invalid" }];
74906
+ return [haltIterator(requestRes), { status: "invalid" }];
74104
74907
  }
74105
74908
  const req = requestRes.value;
74106
74909
  const doResult = await client._do(req, {
@@ -74110,21 +74913,49 @@ async function $do52(client, request, options) {
74110
74913
  retryCodes: context.retryCodes
74111
74914
  });
74112
74915
  if (!doResult.ok) {
74113
- return [doResult, { status: "request-error", request: req }];
74916
+ return [haltIterator(doResult), { status: "request-error", request: req }];
74114
74917
  }
74115
74918
  const response = doResult.value;
74116
74919
  const responseFields = {
74117
74920
  HttpMeta: { Response: response, Request: req }
74118
74921
  };
74119
- const [result] = await match(json(200, ListPaymentsResponse$inboundSchema, {
74120
- ctype: "application/hal+json"
74922
+ const [result, raw] = await match(json(200, ListPaymentsResponse$inboundSchema, {
74923
+ ctype: "application/hal+json",
74924
+ key: "Result"
74121
74925
  }), jsonErr(400, ErrorResponse$inboundSchema, {
74122
74926
  ctype: "application/hal+json"
74123
74927
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
74124
74928
  if (!result.ok) {
74125
- return [result, { status: "complete", request: req, response }];
74929
+ return [haltIterator(result), {
74930
+ status: "complete",
74931
+ request: req,
74932
+ response
74933
+ }];
74126
74934
  }
74127
- return [result, { status: "complete", request: req, response }];
74935
+ const nextFunc = (responseData) => {
74936
+ let nextURL = dlv(responseData, "_links.next.href");
74937
+ if (typeof nextURL !== "string") {
74938
+ return { next: () => null };
74939
+ }
74940
+ if (nextURL.startsWith("/")) {
74941
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
74942
+ }
74943
+ try {
74944
+ new URL(nextURL);
74945
+ } catch (_error) {
74946
+ return { next: () => null };
74947
+ }
74948
+ const nextVal = () => paymentsList(client, {
74949
+ ...request
74950
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
74951
+ return { next: nextVal, "~next": { url: nextURL } };
74952
+ };
74953
+ const page = { ...result, ...nextFunc(raw) };
74954
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
74955
+ status: "complete",
74956
+ request: req,
74957
+ response
74958
+ }];
74128
74959
  }
74129
74960
  var init_paymentsList = __esm(() => {
74130
74961
  init_encodings();
@@ -74136,6 +74967,7 @@ var init_paymentsList = __esm(() => {
74136
74967
  init_errors4();
74137
74968
  init_operations();
74138
74969
  init_async();
74970
+ init_operations2();
74139
74971
  });
74140
74972
 
74141
74973
  // src/mcp-server/tools/paymentsList.ts
@@ -74163,7 +74995,7 @@ The results are paginated.`,
74163
74995
  isError: true
74164
74996
  };
74165
74997
  }
74166
- const value = result.value;
74998
+ const value = result.value.result;
74167
74999
  return formatResult(value, apiCall);
74168
75000
  }
74169
75001
  };
@@ -75152,12 +75984,12 @@ function profilesList(client, request, options) {
75152
75984
  async function $do61(client, request, options) {
75153
75985
  const parsed = safeParse4(request, (value) => ListProfilesRequest$outboundSchema.optional().parse(value), "Input validation failed");
75154
75986
  if (!parsed.ok) {
75155
- return [parsed, { status: "invalid" }];
75987
+ return [haltIterator(parsed), { status: "invalid" }];
75156
75988
  }
75157
75989
  const payload = parsed.value;
75158
75990
  const body = null;
75159
- const path = pathToFunc("/profiles")();
75160
- const query = encodeFormQuery({
75991
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/profiles")();
75992
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
75161
75993
  from: payload?.from,
75162
75994
  limit: payload?.limit
75163
75995
  });
@@ -75189,7 +76021,7 @@ async function $do61(client, request, options) {
75189
76021
  const requestRes = client._createRequest(context, {
75190
76022
  security: requestSecurity,
75191
76023
  method: "GET",
75192
- baseURL: options?.serverURL,
76024
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
75193
76025
  path,
75194
76026
  headers,
75195
76027
  query,
@@ -75198,7 +76030,7 @@ async function $do61(client, request, options) {
75198
76030
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
75199
76031
  }, options);
75200
76032
  if (!requestRes.ok) {
75201
- return [requestRes, { status: "invalid" }];
76033
+ return [haltIterator(requestRes), { status: "invalid" }];
75202
76034
  }
75203
76035
  const req = requestRes.value;
75204
76036
  const doResult = await client._do(req, {
@@ -75208,21 +76040,49 @@ async function $do61(client, request, options) {
75208
76040
  retryCodes: context.retryCodes
75209
76041
  });
75210
76042
  if (!doResult.ok) {
75211
- return [doResult, { status: "request-error", request: req }];
76043
+ return [haltIterator(doResult), { status: "request-error", request: req }];
75212
76044
  }
75213
76045
  const response = doResult.value;
75214
76046
  const responseFields = {
75215
76047
  HttpMeta: { Response: response, Request: req }
75216
76048
  };
75217
- const [result] = await match(json(200, ListProfilesResponse$inboundSchema, {
75218
- ctype: "application/hal+json"
76049
+ const [result, raw] = await match(json(200, ListProfilesResponse$inboundSchema, {
76050
+ ctype: "application/hal+json",
76051
+ key: "Result"
75219
76052
  }), jsonErr(400, ErrorResponse$inboundSchema, {
75220
76053
  ctype: "application/hal+json"
75221
76054
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75222
76055
  if (!result.ok) {
75223
- return [result, { status: "complete", request: req, response }];
76056
+ return [haltIterator(result), {
76057
+ status: "complete",
76058
+ request: req,
76059
+ response
76060
+ }];
75224
76061
  }
75225
- return [result, { status: "complete", request: req, response }];
76062
+ const nextFunc = (responseData) => {
76063
+ let nextURL = dlv(responseData, "_links.next.href");
76064
+ if (typeof nextURL !== "string") {
76065
+ return { next: () => null };
76066
+ }
76067
+ if (nextURL.startsWith("/")) {
76068
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
76069
+ }
76070
+ try {
76071
+ new URL(nextURL);
76072
+ } catch (_error) {
76073
+ return { next: () => null };
76074
+ }
76075
+ const nextVal = () => profilesList(client, {
76076
+ ...request
76077
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
76078
+ return { next: nextVal, "~next": { url: nextURL } };
76079
+ };
76080
+ const page = { ...result, ...nextFunc(raw) };
76081
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
76082
+ status: "complete",
76083
+ request: req,
76084
+ response
76085
+ }];
75226
76086
  }
75227
76087
  var init_profilesList = __esm(() => {
75228
76088
  init_encodings();
@@ -75234,6 +76094,7 @@ var init_profilesList = __esm(() => {
75234
76094
  init_errors4();
75235
76095
  init_operations();
75236
76096
  init_async();
76097
+ init_operations2();
75237
76098
  });
75238
76099
 
75239
76100
  // src/mcp-server/tools/profilesList.ts
@@ -75261,7 +76122,7 @@ The results are paginated.`,
75261
76122
  isError: true
75262
76123
  };
75263
76124
  }
75264
- const value = result.value;
76125
+ const value = result.value.result;
75265
76126
  return formatResult(value, apiCall);
75266
76127
  }
75267
76128
  };
@@ -75400,12 +76261,12 @@ function refundsAll(client, request, options) {
75400
76261
  async function $do63(client, request, options) {
75401
76262
  const parsed = safeParse4(request, (value) => ListAllRefundsRequest$outboundSchema.optional().parse(value), "Input validation failed");
75402
76263
  if (!parsed.ok) {
75403
- return [parsed, { status: "invalid" }];
76264
+ return [haltIterator(parsed), { status: "invalid" }];
75404
76265
  }
75405
76266
  const payload = parsed.value;
75406
76267
  const body = null;
75407
- const path = pathToFunc("/refunds")();
75408
- const query = encodeFormQuery({
76268
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/refunds")();
76269
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
75409
76270
  embed: payload?.embed,
75410
76271
  from: payload?.from,
75411
76272
  limit: payload?.limit,
@@ -75441,7 +76302,7 @@ async function $do63(client, request, options) {
75441
76302
  const requestRes = client._createRequest(context, {
75442
76303
  security: requestSecurity,
75443
76304
  method: "GET",
75444
- baseURL: options?.serverURL,
76305
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
75445
76306
  path,
75446
76307
  headers,
75447
76308
  query,
@@ -75450,7 +76311,7 @@ async function $do63(client, request, options) {
75450
76311
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
75451
76312
  }, options);
75452
76313
  if (!requestRes.ok) {
75453
- return [requestRes, { status: "invalid" }];
76314
+ return [haltIterator(requestRes), { status: "invalid" }];
75454
76315
  }
75455
76316
  const req = requestRes.value;
75456
76317
  const doResult = await client._do(req, {
@@ -75460,21 +76321,49 @@ async function $do63(client, request, options) {
75460
76321
  retryCodes: context.retryCodes
75461
76322
  });
75462
76323
  if (!doResult.ok) {
75463
- return [doResult, { status: "request-error", request: req }];
76324
+ return [haltIterator(doResult), { status: "request-error", request: req }];
75464
76325
  }
75465
76326
  const response = doResult.value;
75466
76327
  const responseFields = {
75467
76328
  HttpMeta: { Response: response, Request: req }
75468
76329
  };
75469
- const [result] = await match(json(200, ListAllRefundsResponse$inboundSchema, {
75470
- ctype: "application/hal+json"
76330
+ const [result, raw] = await match(json(200, ListAllRefundsResponse$inboundSchema, {
76331
+ ctype: "application/hal+json",
76332
+ key: "Result"
75471
76333
  }), jsonErr(400, ErrorResponse$inboundSchema, {
75472
76334
  ctype: "application/hal+json"
75473
76335
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75474
76336
  if (!result.ok) {
75475
- return [result, { status: "complete", request: req, response }];
76337
+ return [haltIterator(result), {
76338
+ status: "complete",
76339
+ request: req,
76340
+ response
76341
+ }];
75476
76342
  }
75477
- return [result, { status: "complete", request: req, response }];
76343
+ const nextFunc = (responseData) => {
76344
+ let nextURL = dlv(responseData, "_links.next.href");
76345
+ if (typeof nextURL !== "string") {
76346
+ return { next: () => null };
76347
+ }
76348
+ if (nextURL.startsWith("/")) {
76349
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
76350
+ }
76351
+ try {
76352
+ new URL(nextURL);
76353
+ } catch (_error) {
76354
+ return { next: () => null };
76355
+ }
76356
+ const nextVal = () => refundsAll(client, {
76357
+ ...request
76358
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
76359
+ return { next: nextVal, "~next": { url: nextURL } };
76360
+ };
76361
+ const page = { ...result, ...nextFunc(raw) };
76362
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
76363
+ status: "complete",
76364
+ request: req,
76365
+ response
76366
+ }];
75478
76367
  }
75479
76368
  var init_refundsAll = __esm(() => {
75480
76369
  init_encodings();
@@ -75486,6 +76375,7 @@ var init_refundsAll = __esm(() => {
75486
76375
  init_errors4();
75487
76376
  init_operations();
75488
76377
  init_async();
76378
+ init_operations2();
75489
76379
  });
75490
76380
 
75491
76381
  // src/mcp-server/tools/refundsAll.ts
@@ -75513,7 +76403,7 @@ The results are paginated.`,
75513
76403
  isError: true
75514
76404
  };
75515
76405
  }
75516
- const value = result.value;
76406
+ const value = result.value.result;
75517
76407
  return formatResult(value, apiCall);
75518
76408
  }
75519
76409
  };
@@ -75912,7 +76802,7 @@ function refundsList(client, request, options) {
75912
76802
  async function $do67(client, request, options) {
75913
76803
  const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
75914
76804
  if (!parsed.ok) {
75915
- return [parsed, { status: "invalid" }];
76805
+ return [haltIterator(parsed), { status: "invalid" }];
75916
76806
  }
75917
76807
  const payload = parsed.value;
75918
76808
  const body = null;
@@ -75922,8 +76812,8 @@ async function $do67(client, request, options) {
75922
76812
  charEncoding: "percent"
75923
76813
  })
75924
76814
  };
75925
- const path = pathToFunc("/payments/{paymentId}/refunds")(pathParams);
75926
- const query = encodeFormQuery({
76815
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/payments/{paymentId}/refunds")(pathParams);
76816
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
75927
76817
  embed: payload.embed,
75928
76818
  from: payload.from,
75929
76819
  limit: payload.limit,
@@ -75957,7 +76847,7 @@ async function $do67(client, request, options) {
75957
76847
  const requestRes = client._createRequest(context, {
75958
76848
  security: requestSecurity,
75959
76849
  method: "GET",
75960
- baseURL: options?.serverURL,
76850
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
75961
76851
  path,
75962
76852
  headers,
75963
76853
  query,
@@ -75966,7 +76856,7 @@ async function $do67(client, request, options) {
75966
76856
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
75967
76857
  }, options);
75968
76858
  if (!requestRes.ok) {
75969
- return [requestRes, { status: "invalid" }];
76859
+ return [haltIterator(requestRes), { status: "invalid" }];
75970
76860
  }
75971
76861
  const req = requestRes.value;
75972
76862
  const doResult = await client._do(req, {
@@ -75976,21 +76866,49 @@ async function $do67(client, request, options) {
75976
76866
  retryCodes: context.retryCodes
75977
76867
  });
75978
76868
  if (!doResult.ok) {
75979
- return [doResult, { status: "request-error", request: req }];
76869
+ return [haltIterator(doResult), { status: "request-error", request: req }];
75980
76870
  }
75981
76871
  const response = doResult.value;
75982
76872
  const responseFields = {
75983
76873
  HttpMeta: { Response: response, Request: req }
75984
76874
  };
75985
- const [result] = await match(json(200, ListRefundsResponse$inboundSchema, {
75986
- ctype: "application/hal+json"
76875
+ const [result, raw] = await match(json(200, ListRefundsResponse$inboundSchema, {
76876
+ ctype: "application/hal+json",
76877
+ key: "Result"
75987
76878
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
75988
76879
  ctype: "application/hal+json"
75989
76880
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
75990
76881
  if (!result.ok) {
75991
- return [result, { status: "complete", request: req, response }];
76882
+ return [haltIterator(result), {
76883
+ status: "complete",
76884
+ request: req,
76885
+ response
76886
+ }];
75992
76887
  }
75993
- return [result, { status: "complete", request: req, response }];
76888
+ const nextFunc = (responseData) => {
76889
+ let nextURL = dlv(responseData, "_links.next.href");
76890
+ if (typeof nextURL !== "string") {
76891
+ return { next: () => null };
76892
+ }
76893
+ if (nextURL.startsWith("/")) {
76894
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
76895
+ }
76896
+ try {
76897
+ new URL(nextURL);
76898
+ } catch (_error) {
76899
+ return { next: () => null };
76900
+ }
76901
+ const nextVal = () => refundsList(client, {
76902
+ ...request
76903
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
76904
+ return { next: nextVal, "~next": { url: nextURL } };
76905
+ };
76906
+ const page = { ...result, ...nextFunc(raw) };
76907
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
76908
+ status: "complete",
76909
+ request: req,
76910
+ response
76911
+ }];
75994
76912
  }
75995
76913
  var init_refundsList = __esm(() => {
75996
76914
  init_encodings();
@@ -76002,6 +76920,7 @@ var init_refundsList = __esm(() => {
76002
76920
  init_errors4();
76003
76921
  init_operations();
76004
76922
  init_async();
76923
+ init_operations2();
76005
76924
  });
76006
76925
 
76007
76926
  // src/mcp-server/tools/refundsList.ts
@@ -76029,7 +76948,7 @@ The results are paginated.`,
76029
76948
  isError: true
76030
76949
  };
76031
76950
  }
76032
- const value = result.value;
76951
+ const value = result.value.result;
76033
76952
  return formatResult(value, apiCall);
76034
76953
  }
76035
76954
  };
@@ -76422,12 +77341,12 @@ function salesInvoicesList(client, request, options) {
76422
77341
  async function $do71(client, request, options) {
76423
77342
  const parsed = safeParse4(request, (value) => ListSalesInvoicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
76424
77343
  if (!parsed.ok) {
76425
- return [parsed, { status: "invalid" }];
77344
+ return [haltIterator(parsed), { status: "invalid" }];
76426
77345
  }
76427
77346
  const payload = parsed.value;
76428
77347
  const body = null;
76429
- const path = pathToFunc("/sales-invoices")();
76430
- const query = encodeFormQuery({
77348
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/sales-invoices")();
77349
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
76431
77350
  from: payload?.from,
76432
77351
  limit: payload?.limit,
76433
77352
  testmode: payload?.testmode ?? client._options.testmode
@@ -76460,7 +77379,7 @@ async function $do71(client, request, options) {
76460
77379
  const requestRes = client._createRequest(context, {
76461
77380
  security: requestSecurity,
76462
77381
  method: "GET",
76463
- baseURL: options?.serverURL,
77382
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
76464
77383
  path,
76465
77384
  headers,
76466
77385
  query,
@@ -76469,7 +77388,7 @@ async function $do71(client, request, options) {
76469
77388
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
76470
77389
  }, options);
76471
77390
  if (!requestRes.ok) {
76472
- return [requestRes, { status: "invalid" }];
77391
+ return [haltIterator(requestRes), { status: "invalid" }];
76473
77392
  }
76474
77393
  const req = requestRes.value;
76475
77394
  const doResult = await client._do(req, {
@@ -76479,21 +77398,49 @@ async function $do71(client, request, options) {
76479
77398
  retryCodes: context.retryCodes
76480
77399
  });
76481
77400
  if (!doResult.ok) {
76482
- return [doResult, { status: "request-error", request: req }];
77401
+ return [haltIterator(doResult), { status: "request-error", request: req }];
76483
77402
  }
76484
77403
  const response = doResult.value;
76485
77404
  const responseFields = {
76486
77405
  HttpMeta: { Response: response, Request: req }
76487
77406
  };
76488
- const [result] = await match(json(200, ListSalesInvoicesResponse$inboundSchema, {
76489
- ctype: "application/hal+json"
77407
+ const [result, raw] = await match(json(200, ListSalesInvoicesResponse$inboundSchema, {
77408
+ ctype: "application/hal+json",
77409
+ key: "Result"
76490
77410
  }), jsonErr(400, ErrorResponse$inboundSchema, {
76491
77411
  ctype: "application/hal+json"
76492
77412
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
76493
77413
  if (!result.ok) {
76494
- return [result, { status: "complete", request: req, response }];
77414
+ return [haltIterator(result), {
77415
+ status: "complete",
77416
+ request: req,
77417
+ response
77418
+ }];
76495
77419
  }
76496
- return [result, { status: "complete", request: req, response }];
77420
+ const nextFunc = (responseData) => {
77421
+ let nextURL = dlv(responseData, "_links.next.href");
77422
+ if (typeof nextURL !== "string") {
77423
+ return { next: () => null };
77424
+ }
77425
+ if (nextURL.startsWith("/")) {
77426
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
77427
+ }
77428
+ try {
77429
+ new URL(nextURL);
77430
+ } catch (_error) {
77431
+ return { next: () => null };
77432
+ }
77433
+ const nextVal = () => salesInvoicesList(client, {
77434
+ ...request
77435
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
77436
+ return { next: nextVal, "~next": { url: nextURL } };
77437
+ };
77438
+ const page = { ...result, ...nextFunc(raw) };
77439
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
77440
+ status: "complete",
77441
+ request: req,
77442
+ response
77443
+ }];
76497
77444
  }
76498
77445
  var init_salesInvoicesList = __esm(() => {
76499
77446
  init_encodings();
@@ -76505,6 +77452,7 @@ var init_salesInvoicesList = __esm(() => {
76505
77452
  init_errors4();
76506
77453
  init_operations();
76507
77454
  init_async();
77455
+ init_operations2();
76508
77456
  });
76509
77457
 
76510
77458
  // src/mcp-server/tools/salesInvoicesList.ts
@@ -76536,7 +77484,7 @@ The results are paginated.`,
76536
77484
  isError: true
76537
77485
  };
76538
77486
  }
76539
- const value = result.value;
77487
+ const value = result.value.result;
76540
77488
  return formatResult(value, apiCall);
76541
77489
  }
76542
77490
  };
@@ -77044,12 +77992,12 @@ function settlementsList(client, request, options) {
77044
77992
  async function $do76(client, request, options) {
77045
77993
  const parsed = safeParse4(request, (value) => ListSettlementsRequest$outboundSchema.optional().parse(value), "Input validation failed");
77046
77994
  if (!parsed.ok) {
77047
- return [parsed, { status: "invalid" }];
77995
+ return [haltIterator(parsed), { status: "invalid" }];
77048
77996
  }
77049
77997
  const payload = parsed.value;
77050
77998
  const body = null;
77051
- const path = pathToFunc("/settlements")();
77052
- const query = encodeFormQuery({
77999
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements")();
78000
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77053
78001
  balanceId: payload?.balanceId,
77054
78002
  currencies: payload?.currencies,
77055
78003
  from: payload?.from,
@@ -77085,7 +78033,7 @@ async function $do76(client, request, options) {
77085
78033
  const requestRes = client._createRequest(context, {
77086
78034
  security: requestSecurity,
77087
78035
  method: "GET",
77088
- baseURL: options?.serverURL,
78036
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77089
78037
  path,
77090
78038
  headers,
77091
78039
  query,
@@ -77094,7 +78042,7 @@ async function $do76(client, request, options) {
77094
78042
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77095
78043
  }, options);
77096
78044
  if (!requestRes.ok) {
77097
- return [requestRes, { status: "invalid" }];
78045
+ return [haltIterator(requestRes), { status: "invalid" }];
77098
78046
  }
77099
78047
  const req = requestRes.value;
77100
78048
  const doResult = await client._do(req, {
@@ -77104,21 +78052,49 @@ async function $do76(client, request, options) {
77104
78052
  retryCodes: context.retryCodes
77105
78053
  });
77106
78054
  if (!doResult.ok) {
77107
- return [doResult, { status: "request-error", request: req }];
78055
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77108
78056
  }
77109
78057
  const response = doResult.value;
77110
78058
  const responseFields = {
77111
78059
  HttpMeta: { Response: response, Request: req }
77112
78060
  };
77113
- const [result] = await match(json(200, ListSettlementsResponse$inboundSchema, {
77114
- ctype: "application/hal+json"
78061
+ const [result, raw] = await match(json(200, ListSettlementsResponse$inboundSchema, {
78062
+ ctype: "application/hal+json",
78063
+ key: "Result"
77115
78064
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77116
78065
  ctype: "application/hal+json"
77117
78066
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77118
78067
  if (!result.ok) {
77119
- return [result, { status: "complete", request: req, response }];
78068
+ return [haltIterator(result), {
78069
+ status: "complete",
78070
+ request: req,
78071
+ response
78072
+ }];
77120
78073
  }
77121
- return [result, { status: "complete", request: req, response }];
78074
+ const nextFunc = (responseData) => {
78075
+ let nextURL = dlv(responseData, "_links.next.href");
78076
+ if (typeof nextURL !== "string") {
78077
+ return { next: () => null };
78078
+ }
78079
+ if (nextURL.startsWith("/")) {
78080
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78081
+ }
78082
+ try {
78083
+ new URL(nextURL);
78084
+ } catch (_error) {
78085
+ return { next: () => null };
78086
+ }
78087
+ const nextVal = () => settlementsList(client, {
78088
+ ...request
78089
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78090
+ return { next: nextVal, "~next": { url: nextURL } };
78091
+ };
78092
+ const page = { ...result, ...nextFunc(raw) };
78093
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78094
+ status: "complete",
78095
+ request: req,
78096
+ response
78097
+ }];
77122
78098
  }
77123
78099
  var init_settlementsList = __esm(() => {
77124
78100
  init_encodings();
@@ -77130,6 +78106,7 @@ var init_settlementsList = __esm(() => {
77130
78106
  init_errors4();
77131
78107
  init_operations();
77132
78108
  init_async();
78109
+ init_operations2();
77133
78110
  });
77134
78111
 
77135
78112
  // src/mcp-server/tools/settlementsList.ts
@@ -77157,7 +78134,7 @@ The results are paginated.`,
77157
78134
  isError: true
77158
78135
  };
77159
78136
  }
77160
- const value = result.value;
78137
+ const value = result.value.result;
77161
78138
  return formatResult(value, apiCall);
77162
78139
  }
77163
78140
  };
@@ -77170,7 +78147,7 @@ function settlementsListCaptures(client, request, options) {
77170
78147
  async function $do77(client, request, options) {
77171
78148
  const parsed = safeParse4(request, (value) => ListSettlementCapturesRequest$outboundSchema.parse(value), "Input validation failed");
77172
78149
  if (!parsed.ok) {
77173
- return [parsed, { status: "invalid" }];
78150
+ return [haltIterator(parsed), { status: "invalid" }];
77174
78151
  }
77175
78152
  const payload = parsed.value;
77176
78153
  const body = null;
@@ -77180,8 +78157,8 @@ async function $do77(client, request, options) {
77180
78157
  charEncoding: "percent"
77181
78158
  })
77182
78159
  };
77183
- const path = pathToFunc("/settlements/{settlementId}/captures")(pathParams);
77184
- const query = encodeFormQuery({
78160
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/captures")(pathParams);
78161
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77185
78162
  embed: payload.embed,
77186
78163
  from: payload.from,
77187
78164
  limit: payload.limit,
@@ -77215,7 +78192,7 @@ async function $do77(client, request, options) {
77215
78192
  const requestRes = client._createRequest(context, {
77216
78193
  security: requestSecurity,
77217
78194
  method: "GET",
77218
- baseURL: options?.serverURL,
78195
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77219
78196
  path,
77220
78197
  headers,
77221
78198
  query,
@@ -77224,7 +78201,7 @@ async function $do77(client, request, options) {
77224
78201
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77225
78202
  }, options);
77226
78203
  if (!requestRes.ok) {
77227
- return [requestRes, { status: "invalid" }];
78204
+ return [haltIterator(requestRes), { status: "invalid" }];
77228
78205
  }
77229
78206
  const req = requestRes.value;
77230
78207
  const doResult = await client._do(req, {
@@ -77234,21 +78211,49 @@ async function $do77(client, request, options) {
77234
78211
  retryCodes: context.retryCodes
77235
78212
  });
77236
78213
  if (!doResult.ok) {
77237
- return [doResult, { status: "request-error", request: req }];
78214
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77238
78215
  }
77239
78216
  const response = doResult.value;
77240
78217
  const responseFields = {
77241
78218
  HttpMeta: { Response: response, Request: req }
77242
78219
  };
77243
- const [result] = await match(json(200, ListSettlementCapturesResponse$inboundSchema, {
77244
- ctype: "application/hal+json"
78220
+ const [result, raw] = await match(json(200, ListSettlementCapturesResponse$inboundSchema, {
78221
+ ctype: "application/hal+json",
78222
+ key: "Result"
77245
78223
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77246
78224
  ctype: "application/hal+json"
77247
78225
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77248
78226
  if (!result.ok) {
77249
- return [result, { status: "complete", request: req, response }];
78227
+ return [haltIterator(result), {
78228
+ status: "complete",
78229
+ request: req,
78230
+ response
78231
+ }];
77250
78232
  }
77251
- return [result, { status: "complete", request: req, response }];
78233
+ const nextFunc = (responseData) => {
78234
+ let nextURL = dlv(responseData, "_links.next.href");
78235
+ if (typeof nextURL !== "string") {
78236
+ return { next: () => null };
78237
+ }
78238
+ if (nextURL.startsWith("/")) {
78239
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78240
+ }
78241
+ try {
78242
+ new URL(nextURL);
78243
+ } catch (_error) {
78244
+ return { next: () => null };
78245
+ }
78246
+ const nextVal = () => settlementsListCaptures(client, {
78247
+ ...request
78248
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78249
+ return { next: nextVal, "~next": { url: nextURL } };
78250
+ };
78251
+ const page = { ...result, ...nextFunc(raw) };
78252
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78253
+ status: "complete",
78254
+ request: req,
78255
+ response
78256
+ }];
77252
78257
  }
77253
78258
  var init_settlementsListCaptures = __esm(() => {
77254
78259
  init_encodings();
@@ -77260,6 +78265,7 @@ var init_settlementsListCaptures = __esm(() => {
77260
78265
  init_errors4();
77261
78266
  init_operations();
77262
78267
  init_async();
78268
+ init_operations2();
77263
78269
  });
77264
78270
 
77265
78271
  // src/mcp-server/tools/settlementsListCaptures.ts
@@ -77287,7 +78293,7 @@ The response is in the same format as the response of the [List captures endpoin
77287
78293
  isError: true
77288
78294
  };
77289
78295
  }
77290
- const value = result.value;
78296
+ const value = result.value.result;
77291
78297
  return formatResult(value, apiCall);
77292
78298
  }
77293
78299
  };
@@ -77300,7 +78306,7 @@ function settlementsListChargebacks(client, request, options) {
77300
78306
  async function $do78(client, request, options) {
77301
78307
  const parsed = safeParse4(request, (value) => ListSettlementChargebacksRequest$outboundSchema.parse(value), "Input validation failed");
77302
78308
  if (!parsed.ok) {
77303
- return [parsed, { status: "invalid" }];
78309
+ return [haltIterator(parsed), { status: "invalid" }];
77304
78310
  }
77305
78311
  const payload = parsed.value;
77306
78312
  const body = null;
@@ -77310,8 +78316,8 @@ async function $do78(client, request, options) {
77310
78316
  charEncoding: "percent"
77311
78317
  })
77312
78318
  };
77313
- const path = pathToFunc("/settlements/{settlementId}/chargebacks")(pathParams);
77314
- const query = encodeFormQuery({
78319
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/chargebacks")(pathParams);
78320
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77315
78321
  embed: payload.embed,
77316
78322
  from: payload.from,
77317
78323
  limit: payload.limit,
@@ -77345,7 +78351,7 @@ async function $do78(client, request, options) {
77345
78351
  const requestRes = client._createRequest(context, {
77346
78352
  security: requestSecurity,
77347
78353
  method: "GET",
77348
- baseURL: options?.serverURL,
78354
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77349
78355
  path,
77350
78356
  headers,
77351
78357
  query,
@@ -77354,7 +78360,7 @@ async function $do78(client, request, options) {
77354
78360
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77355
78361
  }, options);
77356
78362
  if (!requestRes.ok) {
77357
- return [requestRes, { status: "invalid" }];
78363
+ return [haltIterator(requestRes), { status: "invalid" }];
77358
78364
  }
77359
78365
  const req = requestRes.value;
77360
78366
  const doResult = await client._do(req, {
@@ -77364,21 +78370,49 @@ async function $do78(client, request, options) {
77364
78370
  retryCodes: context.retryCodes
77365
78371
  });
77366
78372
  if (!doResult.ok) {
77367
- return [doResult, { status: "request-error", request: req }];
78373
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77368
78374
  }
77369
78375
  const response = doResult.value;
77370
78376
  const responseFields = {
77371
78377
  HttpMeta: { Response: response, Request: req }
77372
78378
  };
77373
- const [result] = await match(json(200, ListSettlementChargebacksResponse$inboundSchema, {
77374
- ctype: "application/hal+json"
78379
+ const [result, raw] = await match(json(200, ListSettlementChargebacksResponse$inboundSchema, {
78380
+ ctype: "application/hal+json",
78381
+ key: "Result"
77375
78382
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77376
78383
  ctype: "application/hal+json"
77377
78384
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77378
78385
  if (!result.ok) {
77379
- return [result, { status: "complete", request: req, response }];
78386
+ return [haltIterator(result), {
78387
+ status: "complete",
78388
+ request: req,
78389
+ response
78390
+ }];
77380
78391
  }
77381
- return [result, { status: "complete", request: req, response }];
78392
+ const nextFunc = (responseData) => {
78393
+ let nextURL = dlv(responseData, "_links.next.href");
78394
+ if (typeof nextURL !== "string") {
78395
+ return { next: () => null };
78396
+ }
78397
+ if (nextURL.startsWith("/")) {
78398
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78399
+ }
78400
+ try {
78401
+ new URL(nextURL);
78402
+ } catch (_error) {
78403
+ return { next: () => null };
78404
+ }
78405
+ const nextVal = () => settlementsListChargebacks(client, {
78406
+ ...request
78407
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78408
+ return { next: nextVal, "~next": { url: nextURL } };
78409
+ };
78410
+ const page = { ...result, ...nextFunc(raw) };
78411
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78412
+ status: "complete",
78413
+ request: req,
78414
+ response
78415
+ }];
77382
78416
  }
77383
78417
  var init_settlementsListChargebacks = __esm(() => {
77384
78418
  init_encodings();
@@ -77390,6 +78424,7 @@ var init_settlementsListChargebacks = __esm(() => {
77390
78424
  init_errors4();
77391
78425
  init_operations();
77392
78426
  init_async();
78427
+ init_operations2();
77393
78428
  });
77394
78429
 
77395
78430
  // src/mcp-server/tools/settlementsListChargebacks.ts
@@ -77417,7 +78452,7 @@ The response is in the same format as the response of the [List chargebacks endp
77417
78452
  isError: true
77418
78453
  };
77419
78454
  }
77420
- const value = result.value;
78455
+ const value = result.value.result;
77421
78456
  return formatResult(value, apiCall);
77422
78457
  }
77423
78458
  };
@@ -77430,7 +78465,7 @@ function settlementsListPayments(client, request, options) {
77430
78465
  async function $do79(client, request, options) {
77431
78466
  const parsed = safeParse4(request, (value) => ListSettlementPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
77432
78467
  if (!parsed.ok) {
77433
- return [parsed, { status: "invalid" }];
78468
+ return [haltIterator(parsed), { status: "invalid" }];
77434
78469
  }
77435
78470
  const payload = parsed.value;
77436
78471
  const body = null;
@@ -77440,8 +78475,8 @@ async function $do79(client, request, options) {
77440
78475
  charEncoding: "percent"
77441
78476
  })
77442
78477
  };
77443
- const path = pathToFunc("/settlements/{settlementId}/payments")(pathParams);
77444
- const query = encodeFormQuery({
78478
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/payments")(pathParams);
78479
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77445
78480
  from: payload.from,
77446
78481
  limit: payload.limit,
77447
78482
  profileId: payload.profileId ?? client._options.profileId,
@@ -77476,7 +78511,7 @@ async function $do79(client, request, options) {
77476
78511
  const requestRes = client._createRequest(context, {
77477
78512
  security: requestSecurity,
77478
78513
  method: "GET",
77479
- baseURL: options?.serverURL,
78514
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77480
78515
  path,
77481
78516
  headers,
77482
78517
  query,
@@ -77485,7 +78520,7 @@ async function $do79(client, request, options) {
77485
78520
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77486
78521
  }, options);
77487
78522
  if (!requestRes.ok) {
77488
- return [requestRes, { status: "invalid" }];
78523
+ return [haltIterator(requestRes), { status: "invalid" }];
77489
78524
  }
77490
78525
  const req = requestRes.value;
77491
78526
  const doResult = await client._do(req, {
@@ -77495,21 +78530,49 @@ async function $do79(client, request, options) {
77495
78530
  retryCodes: context.retryCodes
77496
78531
  });
77497
78532
  if (!doResult.ok) {
77498
- return [doResult, { status: "request-error", request: req }];
78533
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77499
78534
  }
77500
78535
  const response = doResult.value;
77501
78536
  const responseFields = {
77502
78537
  HttpMeta: { Response: response, Request: req }
77503
78538
  };
77504
- const [result] = await match(json(200, ListSettlementPaymentsResponse$inboundSchema, {
77505
- ctype: "application/hal+json"
78539
+ const [result, raw] = await match(json(200, ListSettlementPaymentsResponse$inboundSchema, {
78540
+ ctype: "application/hal+json",
78541
+ key: "Result"
77506
78542
  }), jsonErr(400, ErrorResponse$inboundSchema, {
77507
78543
  ctype: "application/hal+json"
77508
78544
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77509
78545
  if (!result.ok) {
77510
- return [result, { status: "complete", request: req, response }];
78546
+ return [haltIterator(result), {
78547
+ status: "complete",
78548
+ request: req,
78549
+ response
78550
+ }];
77511
78551
  }
77512
- return [result, { status: "complete", request: req, response }];
78552
+ const nextFunc = (responseData) => {
78553
+ let nextURL = dlv(responseData, "_links.next.href");
78554
+ if (typeof nextURL !== "string") {
78555
+ return { next: () => null };
78556
+ }
78557
+ if (nextURL.startsWith("/")) {
78558
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78559
+ }
78560
+ try {
78561
+ new URL(nextURL);
78562
+ } catch (_error) {
78563
+ return { next: () => null };
78564
+ }
78565
+ const nextVal = () => settlementsListPayments(client, {
78566
+ ...request
78567
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78568
+ return { next: nextVal, "~next": { url: nextURL } };
78569
+ };
78570
+ const page = { ...result, ...nextFunc(raw) };
78571
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78572
+ status: "complete",
78573
+ request: req,
78574
+ response
78575
+ }];
77513
78576
  }
77514
78577
  var init_settlementsListPayments = __esm(() => {
77515
78578
  init_encodings();
@@ -77521,6 +78584,7 @@ var init_settlementsListPayments = __esm(() => {
77521
78584
  init_errors4();
77522
78585
  init_operations();
77523
78586
  init_async();
78587
+ init_operations2();
77524
78588
  });
77525
78589
 
77526
78590
  // src/mcp-server/tools/settlementsListPayments.ts
@@ -77551,7 +78615,7 @@ For capture-based payment methods such as Klarna, the payments are not listed he
77551
78615
  isError: true
77552
78616
  };
77553
78617
  }
77554
- const value = result.value;
78618
+ const value = result.value.result;
77555
78619
  return formatResult(value, apiCall);
77556
78620
  }
77557
78621
  };
@@ -77564,7 +78628,7 @@ function settlementsListRefunds(client, request, options) {
77564
78628
  async function $do80(client, request, options) {
77565
78629
  const parsed = safeParse4(request, (value) => ListSettlementRefundsRequest$outboundSchema.parse(value), "Input validation failed");
77566
78630
  if (!parsed.ok) {
77567
- return [parsed, { status: "invalid" }];
78631
+ return [haltIterator(parsed), { status: "invalid" }];
77568
78632
  }
77569
78633
  const payload = parsed.value;
77570
78634
  const body = null;
@@ -77574,8 +78638,8 @@ async function $do80(client, request, options) {
77574
78638
  charEncoding: "percent"
77575
78639
  })
77576
78640
  };
77577
- const path = pathToFunc("/settlements/{settlementId}/refunds")(pathParams);
77578
- const query = encodeFormQuery({
78641
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/settlements/{settlementId}/refunds")(pathParams);
78642
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77579
78643
  embed: payload.embed,
77580
78644
  from: payload.from,
77581
78645
  limit: payload.limit,
@@ -77609,7 +78673,7 @@ async function $do80(client, request, options) {
77609
78673
  const requestRes = client._createRequest(context, {
77610
78674
  security: requestSecurity,
77611
78675
  method: "GET",
77612
- baseURL: options?.serverURL,
78676
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77613
78677
  path,
77614
78678
  headers,
77615
78679
  query,
@@ -77618,7 +78682,7 @@ async function $do80(client, request, options) {
77618
78682
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77619
78683
  }, options);
77620
78684
  if (!requestRes.ok) {
77621
- return [requestRes, { status: "invalid" }];
78685
+ return [haltIterator(requestRes), { status: "invalid" }];
77622
78686
  }
77623
78687
  const req = requestRes.value;
77624
78688
  const doResult = await client._do(req, {
@@ -77628,21 +78692,49 @@ async function $do80(client, request, options) {
77628
78692
  retryCodes: context.retryCodes
77629
78693
  });
77630
78694
  if (!doResult.ok) {
77631
- return [doResult, { status: "request-error", request: req }];
78695
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77632
78696
  }
77633
78697
  const response = doResult.value;
77634
78698
  const responseFields = {
77635
78699
  HttpMeta: { Response: response, Request: req }
77636
78700
  };
77637
- const [result] = await match(json(200, ListSettlementRefundsResponse$inboundSchema, {
77638
- ctype: "application/hal+json"
78701
+ const [result, raw] = await match(json(200, ListSettlementRefundsResponse$inboundSchema, {
78702
+ ctype: "application/hal+json",
78703
+ key: "Result"
77639
78704
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77640
78705
  ctype: "application/hal+json"
77641
78706
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77642
78707
  if (!result.ok) {
77643
- return [result, { status: "complete", request: req, response }];
78708
+ return [haltIterator(result), {
78709
+ status: "complete",
78710
+ request: req,
78711
+ response
78712
+ }];
77644
78713
  }
77645
- return [result, { status: "complete", request: req, response }];
78714
+ const nextFunc = (responseData) => {
78715
+ let nextURL = dlv(responseData, "_links.next.href");
78716
+ if (typeof nextURL !== "string") {
78717
+ return { next: () => null };
78718
+ }
78719
+ if (nextURL.startsWith("/")) {
78720
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78721
+ }
78722
+ try {
78723
+ new URL(nextURL);
78724
+ } catch (_error) {
78725
+ return { next: () => null };
78726
+ }
78727
+ const nextVal = () => settlementsListRefunds(client, {
78728
+ ...request
78729
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78730
+ return { next: nextVal, "~next": { url: nextURL } };
78731
+ };
78732
+ const page = { ...result, ...nextFunc(raw) };
78733
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78734
+ status: "complete",
78735
+ request: req,
78736
+ response
78737
+ }];
77646
78738
  }
77647
78739
  var init_settlementsListRefunds = __esm(() => {
77648
78740
  init_encodings();
@@ -77654,6 +78746,7 @@ var init_settlementsListRefunds = __esm(() => {
77654
78746
  init_errors4();
77655
78747
  init_operations();
77656
78748
  init_async();
78749
+ init_operations2();
77657
78750
  });
77658
78751
 
77659
78752
  // src/mcp-server/tools/settlementsListRefunds.ts
@@ -77681,7 +78774,7 @@ The response is in the same format as the response of the [List refunds endpoint
77681
78774
  isError: true
77682
78775
  };
77683
78776
  }
77684
- const value = result.value;
78777
+ const value = result.value.result;
77685
78778
  return formatResult(value, apiCall);
77686
78779
  }
77687
78780
  };
@@ -77694,12 +78787,12 @@ function subscriptionsAll(client, request, options) {
77694
78787
  async function $do81(client, request, options) {
77695
78788
  const parsed = safeParse4(request, (value) => ListAllSubscriptionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
77696
78789
  if (!parsed.ok) {
77697
- return [parsed, { status: "invalid" }];
78790
+ return [haltIterator(parsed), { status: "invalid" }];
77698
78791
  }
77699
78792
  const payload = parsed.value;
77700
78793
  const body = null;
77701
- const path = pathToFunc("/subscriptions")();
77702
- const query = encodeFormQuery({
78794
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/subscriptions")();
78795
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
77703
78796
  from: payload?.from,
77704
78797
  limit: payload?.limit,
77705
78798
  profileId: payload?.profileId ?? client._options.profileId,
@@ -77733,7 +78826,7 @@ async function $do81(client, request, options) {
77733
78826
  const requestRes = client._createRequest(context, {
77734
78827
  security: requestSecurity,
77735
78828
  method: "GET",
77736
- baseURL: options?.serverURL,
78829
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
77737
78830
  path,
77738
78831
  headers,
77739
78832
  query,
@@ -77742,7 +78835,7 @@ async function $do81(client, request, options) {
77742
78835
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
77743
78836
  }, options);
77744
78837
  if (!requestRes.ok) {
77745
- return [requestRes, { status: "invalid" }];
78838
+ return [haltIterator(requestRes), { status: "invalid" }];
77746
78839
  }
77747
78840
  const req = requestRes.value;
77748
78841
  const doResult = await client._do(req, {
@@ -77752,21 +78845,49 @@ async function $do81(client, request, options) {
77752
78845
  retryCodes: context.retryCodes
77753
78846
  });
77754
78847
  if (!doResult.ok) {
77755
- return [doResult, { status: "request-error", request: req }];
78848
+ return [haltIterator(doResult), { status: "request-error", request: req }];
77756
78849
  }
77757
78850
  const response = doResult.value;
77758
78851
  const responseFields = {
77759
78852
  HttpMeta: { Response: response, Request: req }
77760
78853
  };
77761
- const [result] = await match(json(200, ListAllSubscriptionsResponse$inboundSchema, {
77762
- ctype: "application/hal+json"
78854
+ const [result, raw] = await match(json(200, ListAllSubscriptionsResponse$inboundSchema, {
78855
+ ctype: "application/hal+json",
78856
+ key: "Result"
77763
78857
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
77764
78858
  ctype: "application/hal+json"
77765
78859
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
77766
78860
  if (!result.ok) {
77767
- return [result, { status: "complete", request: req, response }];
78861
+ return [haltIterator(result), {
78862
+ status: "complete",
78863
+ request: req,
78864
+ response
78865
+ }];
77768
78866
  }
77769
- return [result, { status: "complete", request: req, response }];
78867
+ const nextFunc = (responseData) => {
78868
+ let nextURL = dlv(responseData, "_links.next.href");
78869
+ if (typeof nextURL !== "string") {
78870
+ return { next: () => null };
78871
+ }
78872
+ if (nextURL.startsWith("/")) {
78873
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
78874
+ }
78875
+ try {
78876
+ new URL(nextURL);
78877
+ } catch (_error) {
78878
+ return { next: () => null };
78879
+ }
78880
+ const nextVal = () => subscriptionsAll(client, {
78881
+ ...request
78882
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
78883
+ return { next: nextVal, "~next": { url: nextURL } };
78884
+ };
78885
+ const page = { ...result, ...nextFunc(raw) };
78886
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
78887
+ status: "complete",
78888
+ request: req,
78889
+ response
78890
+ }];
77770
78891
  }
77771
78892
  var init_subscriptionsAll = __esm(() => {
77772
78893
  init_encodings();
@@ -77778,6 +78899,7 @@ var init_subscriptionsAll = __esm(() => {
77778
78899
  init_errors4();
77779
78900
  init_operations();
77780
78901
  init_async();
78902
+ init_operations2();
77781
78903
  });
77782
78904
 
77783
78905
  // src/mcp-server/tools/subscriptionsAll.ts
@@ -77805,7 +78927,7 @@ The results are paginated.`,
77805
78927
  isError: true
77806
78928
  };
77807
78929
  }
77808
- const value = result.value;
78930
+ const value = result.value.result;
77809
78931
  return formatResult(value, apiCall);
77810
78932
  }
77811
78933
  };
@@ -78218,7 +79340,7 @@ function subscriptionsList(client, request, options) {
78218
79340
  async function $do85(client, request, options) {
78219
79341
  const parsed = safeParse4(request, (value) => ListSubscriptionsRequest$outboundSchema.parse(value), "Input validation failed");
78220
79342
  if (!parsed.ok) {
78221
- return [parsed, { status: "invalid" }];
79343
+ return [haltIterator(parsed), { status: "invalid" }];
78222
79344
  }
78223
79345
  const payload = parsed.value;
78224
79346
  const body = null;
@@ -78228,8 +79350,8 @@ async function $do85(client, request, options) {
78228
79350
  charEncoding: "percent"
78229
79351
  })
78230
79352
  };
78231
- const path = pathToFunc("/customers/{customerId}/subscriptions")(pathParams);
78232
- const query = encodeFormQuery({
79353
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/subscriptions")(pathParams);
79354
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
78233
79355
  from: payload.from,
78234
79356
  limit: payload.limit,
78235
79357
  sort: payload.sort,
@@ -78263,7 +79385,7 @@ async function $do85(client, request, options) {
78263
79385
  const requestRes = client._createRequest(context, {
78264
79386
  security: requestSecurity,
78265
79387
  method: "GET",
78266
- baseURL: options?.serverURL,
79388
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
78267
79389
  path,
78268
79390
  headers,
78269
79391
  query,
@@ -78272,7 +79394,7 @@ async function $do85(client, request, options) {
78272
79394
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
78273
79395
  }, options);
78274
79396
  if (!requestRes.ok) {
78275
- return [requestRes, { status: "invalid" }];
79397
+ return [haltIterator(requestRes), { status: "invalid" }];
78276
79398
  }
78277
79399
  const req = requestRes.value;
78278
79400
  const doResult = await client._do(req, {
@@ -78282,21 +79404,49 @@ async function $do85(client, request, options) {
78282
79404
  retryCodes: context.retryCodes
78283
79405
  });
78284
79406
  if (!doResult.ok) {
78285
- return [doResult, { status: "request-error", request: req }];
79407
+ return [haltIterator(doResult), { status: "request-error", request: req }];
78286
79408
  }
78287
79409
  const response = doResult.value;
78288
79410
  const responseFields = {
78289
79411
  HttpMeta: { Response: response, Request: req }
78290
79412
  };
78291
- const [result] = await match(json(200, ListSubscriptionsResponse$inboundSchema, {
78292
- ctype: "application/hal+json"
79413
+ const [result, raw] = await match(json(200, ListSubscriptionsResponse$inboundSchema, {
79414
+ ctype: "application/hal+json",
79415
+ key: "Result"
78293
79416
  }), jsonErr([400, 404], ErrorResponse$inboundSchema, {
78294
79417
  ctype: "application/hal+json"
78295
79418
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
78296
79419
  if (!result.ok) {
78297
- return [result, { status: "complete", request: req, response }];
79420
+ return [haltIterator(result), {
79421
+ status: "complete",
79422
+ request: req,
79423
+ response
79424
+ }];
78298
79425
  }
78299
- return [result, { status: "complete", request: req, response }];
79426
+ const nextFunc = (responseData) => {
79427
+ let nextURL = dlv(responseData, "_links.next.href");
79428
+ if (typeof nextURL !== "string") {
79429
+ return { next: () => null };
79430
+ }
79431
+ if (nextURL.startsWith("/")) {
79432
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
79433
+ }
79434
+ try {
79435
+ new URL(nextURL);
79436
+ } catch (_error) {
79437
+ return { next: () => null };
79438
+ }
79439
+ const nextVal = () => subscriptionsList(client, {
79440
+ ...request
79441
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
79442
+ return { next: nextVal, "~next": { url: nextURL } };
79443
+ };
79444
+ const page = { ...result, ...nextFunc(raw) };
79445
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
79446
+ status: "complete",
79447
+ request: req,
79448
+ response
79449
+ }];
78300
79450
  }
78301
79451
  var init_subscriptionsList = __esm(() => {
78302
79452
  init_encodings();
@@ -78308,6 +79458,7 @@ var init_subscriptionsList = __esm(() => {
78308
79458
  init_errors4();
78309
79459
  init_operations();
78310
79460
  init_async();
79461
+ init_operations2();
78311
79462
  });
78312
79463
 
78313
79464
  // src/mcp-server/tools/subscriptionsList.ts
@@ -78335,7 +79486,7 @@ The results are paginated.`,
78335
79486
  isError: true
78336
79487
  };
78337
79488
  }
78338
- const value = result.value;
79489
+ const value = result.value.result;
78339
79490
  return formatResult(value, apiCall);
78340
79491
  }
78341
79492
  };
@@ -78348,7 +79499,7 @@ function subscriptionsListPayments(client, request, options) {
78348
79499
  async function $do86(client, request, options) {
78349
79500
  const parsed = safeParse4(request, (value) => ListSubscriptionPaymentsRequest$outboundSchema.parse(value), "Input validation failed");
78350
79501
  if (!parsed.ok) {
78351
- return [parsed, { status: "invalid" }];
79502
+ return [haltIterator(parsed), { status: "invalid" }];
78352
79503
  }
78353
79504
  const payload = parsed.value;
78354
79505
  const body = null;
@@ -78362,8 +79513,8 @@ async function $do86(client, request, options) {
78362
79513
  charEncoding: "percent"
78363
79514
  })
78364
79515
  };
78365
- const path = pathToFunc("/customers/{customerId}/subscriptions/{subscriptionId}/payments")(pathParams);
78366
- const query = encodeFormQuery({
79516
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/customers/{customerId}/subscriptions/{subscriptionId}/payments")(pathParams);
79517
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
78367
79518
  from: payload.from,
78368
79519
  limit: payload.limit,
78369
79520
  profileId: payload.profileId ?? client._options.profileId,
@@ -78398,7 +79549,7 @@ async function $do86(client, request, options) {
78398
79549
  const requestRes = client._createRequest(context, {
78399
79550
  security: requestSecurity,
78400
79551
  method: "GET",
78401
- baseURL: options?.serverURL,
79552
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
78402
79553
  path,
78403
79554
  headers,
78404
79555
  query,
@@ -78407,7 +79558,7 @@ async function $do86(client, request, options) {
78407
79558
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
78408
79559
  }, options);
78409
79560
  if (!requestRes.ok) {
78410
- return [requestRes, { status: "invalid" }];
79561
+ return [haltIterator(requestRes), { status: "invalid" }];
78411
79562
  }
78412
79563
  const req = requestRes.value;
78413
79564
  const doResult = await client._do(req, {
@@ -78417,21 +79568,49 @@ async function $do86(client, request, options) {
78417
79568
  retryCodes: context.retryCodes
78418
79569
  });
78419
79570
  if (!doResult.ok) {
78420
- return [doResult, { status: "request-error", request: req }];
79571
+ return [haltIterator(doResult), { status: "request-error", request: req }];
78421
79572
  }
78422
79573
  const response = doResult.value;
78423
79574
  const responseFields = {
78424
79575
  HttpMeta: { Response: response, Request: req }
78425
79576
  };
78426
- const [result] = await match(json(200, ListSubscriptionPaymentsResponse$inboundSchema, {
78427
- ctype: "application/hal+json"
79577
+ const [result, raw] = await match(json(200, ListSubscriptionPaymentsResponse$inboundSchema, {
79578
+ ctype: "application/hal+json",
79579
+ key: "Result"
78428
79580
  }), jsonErr(400, ErrorResponse$inboundSchema, {
78429
79581
  ctype: "application/hal+json"
78430
79582
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
78431
79583
  if (!result.ok) {
78432
- return [result, { status: "complete", request: req, response }];
79584
+ return [haltIterator(result), {
79585
+ status: "complete",
79586
+ request: req,
79587
+ response
79588
+ }];
78433
79589
  }
78434
- return [result, { status: "complete", request: req, response }];
79590
+ const nextFunc = (responseData) => {
79591
+ let nextURL = dlv(responseData, "_links.next.href");
79592
+ if (typeof nextURL !== "string") {
79593
+ return { next: () => null };
79594
+ }
79595
+ if (nextURL.startsWith("/")) {
79596
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
79597
+ }
79598
+ try {
79599
+ new URL(nextURL);
79600
+ } catch (_error) {
79601
+ return { next: () => null };
79602
+ }
79603
+ const nextVal = () => subscriptionsListPayments(client, {
79604
+ ...request
79605
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
79606
+ return { next: nextVal, "~next": { url: nextURL } };
79607
+ };
79608
+ const page = { ...result, ...nextFunc(raw) };
79609
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
79610
+ status: "complete",
79611
+ request: req,
79612
+ response
79613
+ }];
78435
79614
  }
78436
79615
  var init_subscriptionsListPayments = __esm(() => {
78437
79616
  init_encodings();
@@ -78443,6 +79622,7 @@ var init_subscriptionsListPayments = __esm(() => {
78443
79622
  init_errors4();
78444
79623
  init_operations();
78445
79624
  init_async();
79625
+ init_operations2();
78446
79626
  });
78447
79627
 
78448
79628
  // src/mcp-server/tools/subscriptionsListPayments.ts
@@ -78470,7 +79650,7 @@ The results are paginated.`,
78470
79650
  isError: true
78471
79651
  };
78472
79652
  }
78473
- const value = result.value;
79653
+ const value = result.value.result;
78474
79654
  return formatResult(value, apiCall);
78475
79655
  }
78476
79656
  };
@@ -78740,12 +79920,12 @@ function terminalsList(client, request, options) {
78740
79920
  async function $do89(client, request, options) {
78741
79921
  const parsed = safeParse4(request, (value) => ListTerminalsRequest$outboundSchema.optional().parse(value), "Input validation failed");
78742
79922
  if (!parsed.ok) {
78743
- return [parsed, { status: "invalid" }];
79923
+ return [haltIterator(parsed), { status: "invalid" }];
78744
79924
  }
78745
79925
  const payload = parsed.value;
78746
79926
  const body = null;
78747
- const path = pathToFunc("/terminals")();
78748
- const query = encodeFormQuery({
79927
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/terminals")();
79928
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
78749
79929
  from: payload?.from,
78750
79930
  limit: payload?.limit,
78751
79931
  sort: payload?.sort,
@@ -78779,7 +79959,7 @@ async function $do89(client, request, options) {
78779
79959
  const requestRes = client._createRequest(context, {
78780
79960
  security: requestSecurity,
78781
79961
  method: "GET",
78782
- baseURL: options?.serverURL,
79962
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
78783
79963
  path,
78784
79964
  headers,
78785
79965
  query,
@@ -78788,7 +79968,7 @@ async function $do89(client, request, options) {
78788
79968
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
78789
79969
  }, options);
78790
79970
  if (!requestRes.ok) {
78791
- return [requestRes, { status: "invalid" }];
79971
+ return [haltIterator(requestRes), { status: "invalid" }];
78792
79972
  }
78793
79973
  const req = requestRes.value;
78794
79974
  const doResult = await client._do(req, {
@@ -78798,21 +79978,49 @@ async function $do89(client, request, options) {
78798
79978
  retryCodes: context.retryCodes
78799
79979
  });
78800
79980
  if (!doResult.ok) {
78801
- return [doResult, { status: "request-error", request: req }];
79981
+ return [haltIterator(doResult), { status: "request-error", request: req }];
78802
79982
  }
78803
79983
  const response = doResult.value;
78804
79984
  const responseFields = {
78805
79985
  HttpMeta: { Response: response, Request: req }
78806
79986
  };
78807
- const [result] = await match(json(200, ListTerminalsResponse$inboundSchema, {
78808
- ctype: "application/hal+json"
79987
+ const [result, raw] = await match(json(200, ListTerminalsResponse$inboundSchema, {
79988
+ ctype: "application/hal+json",
79989
+ key: "Result"
78809
79990
  }), jsonErr(400, ErrorResponse$inboundSchema, {
78810
79991
  ctype: "application/hal+json"
78811
79992
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
78812
79993
  if (!result.ok) {
78813
- return [result, { status: "complete", request: req, response }];
79994
+ return [haltIterator(result), {
79995
+ status: "complete",
79996
+ request: req,
79997
+ response
79998
+ }];
78814
79999
  }
78815
- return [result, { status: "complete", request: req, response }];
80000
+ const nextFunc = (responseData) => {
80001
+ let nextURL = dlv(responseData, "_links.next.href");
80002
+ if (typeof nextURL !== "string") {
80003
+ return { next: () => null };
80004
+ }
80005
+ if (nextURL.startsWith("/")) {
80006
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
80007
+ }
80008
+ try {
80009
+ new URL(nextURL);
80010
+ } catch (_error) {
80011
+ return { next: () => null };
80012
+ }
80013
+ const nextVal = () => terminalsList(client, {
80014
+ ...request
80015
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
80016
+ return { next: nextVal, "~next": { url: nextURL } };
80017
+ };
80018
+ const page = { ...result, ...nextFunc(raw) };
80019
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
80020
+ status: "complete",
80021
+ request: req,
80022
+ response
80023
+ }];
78816
80024
  }
78817
80025
  var init_terminalsList = __esm(() => {
78818
80026
  init_encodings();
@@ -78824,6 +80032,7 @@ var init_terminalsList = __esm(() => {
78824
80032
  init_errors4();
78825
80033
  init_operations();
78826
80034
  init_async();
80035
+ init_operations2();
78827
80036
  });
78828
80037
 
78829
80038
  // src/mcp-server/tools/terminalsList.ts
@@ -78851,7 +80060,7 @@ The results are paginated.`,
78851
80060
  isError: true
78852
80061
  };
78853
80062
  }
78854
- const value = result.value;
80063
+ const value = result.value.result;
78855
80064
  return formatResult(value, apiCall);
78856
80065
  }
78857
80066
  };
@@ -79486,12 +80695,12 @@ function webhooksList(client, request, options) {
79486
80695
  async function $do95(client, request, options) {
79487
80696
  const parsed = safeParse4(request, (value) => ListWebhooksRequest$outboundSchema.optional().parse(value), "Input validation failed");
79488
80697
  if (!parsed.ok) {
79489
- return [parsed, { status: "invalid" }];
80698
+ return [haltIterator(parsed), { status: "invalid" }];
79490
80699
  }
79491
80700
  const payload = parsed.value;
79492
80701
  const body = null;
79493
- const path = pathToFunc("/webhooks")();
79494
- const query = encodeFormQuery({
80702
+ const path = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].pathname : pathToFunc("/webhooks")();
80703
+ const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
79495
80704
  eventTypes: payload?.eventTypes,
79496
80705
  from: payload?.from,
79497
80706
  limit: payload?.limit,
@@ -79526,7 +80735,7 @@ async function $do95(client, request, options) {
79526
80735
  const requestRes = client._createRequest(context, {
79527
80736
  security: requestSecurity,
79528
80737
  method: "GET",
79529
- baseURL: options?.serverURL,
80738
+ baseURL: options?.[URL_OVERRIDE]?.origin || options?.serverURL,
79530
80739
  path,
79531
80740
  headers,
79532
80741
  query,
@@ -79535,7 +80744,7 @@ async function $do95(client, request, options) {
79535
80744
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
79536
80745
  }, options);
79537
80746
  if (!requestRes.ok) {
79538
- return [requestRes, { status: "invalid" }];
80747
+ return [haltIterator(requestRes), { status: "invalid" }];
79539
80748
  }
79540
80749
  const req = requestRes.value;
79541
80750
  const doResult = await client._do(req, {
@@ -79545,21 +80754,49 @@ async function $do95(client, request, options) {
79545
80754
  retryCodes: context.retryCodes
79546
80755
  });
79547
80756
  if (!doResult.ok) {
79548
- return [doResult, { status: "request-error", request: req }];
80757
+ return [haltIterator(doResult), { status: "request-error", request: req }];
79549
80758
  }
79550
80759
  const response = doResult.value;
79551
80760
  const responseFields = {
79552
80761
  HttpMeta: { Response: response, Request: req }
79553
80762
  };
79554
- const [result] = await match(json(200, ListWebhooksResponse$inboundSchema, {
79555
- ctype: "application/hal+json"
80763
+ const [result, raw] = await match(json(200, ListWebhooksResponse$inboundSchema, {
80764
+ ctype: "application/hal+json",
80765
+ key: "Result"
79556
80766
  }), jsonErr(400, ErrorResponse$inboundSchema, {
79557
80767
  ctype: "application/hal+json"
79558
80768
  }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
79559
80769
  if (!result.ok) {
79560
- return [result, { status: "complete", request: req, response }];
80770
+ return [haltIterator(result), {
80771
+ status: "complete",
80772
+ request: req,
80773
+ response
80774
+ }];
79561
80775
  }
79562
- return [result, { status: "complete", request: req, response }];
80776
+ const nextFunc = (responseData) => {
80777
+ let nextURL = dlv(responseData, "_links.next.href");
80778
+ if (typeof nextURL !== "string") {
80779
+ return { next: () => null };
80780
+ }
80781
+ if (nextURL.startsWith("/")) {
80782
+ nextURL = `${client._baseURL?.origin}${nextURL}`;
80783
+ }
80784
+ try {
80785
+ new URL(nextURL);
80786
+ } catch (_error) {
80787
+ return { next: () => null };
80788
+ }
80789
+ const nextVal = () => webhooksList(client, {
80790
+ ...request
80791
+ }, { ...options, [URL_OVERRIDE]: new URL(nextURL) });
80792
+ return { next: nextVal, "~next": { url: nextURL } };
80793
+ };
80794
+ const page = { ...result, ...nextFunc(raw) };
80795
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
80796
+ status: "complete",
80797
+ request: req,
80798
+ response
80799
+ }];
79563
80800
  }
79564
80801
  var init_webhooksList = __esm(() => {
79565
80802
  init_encodings();
@@ -79571,6 +80808,7 @@ var init_webhooksList = __esm(() => {
79571
80808
  init_errors4();
79572
80809
  init_operations();
79573
80810
  init_async();
80811
+ init_operations2();
79574
80812
  });
79575
80813
 
79576
80814
  // src/mcp-server/tools/webhooksList.ts
@@ -79596,7 +80834,7 @@ Returns a paginated list of your webhooks. If no webhook endpoints are available
79596
80834
  isError: true
79597
80835
  };
79598
80836
  }
79599
- const value = result.value;
80837
+ const value = result.value.result;
79600
80838
  return formatResult(value, apiCall);
79601
80839
  }
79602
80840
  };
@@ -79849,7 +81087,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
79849
81087
  function createMCPServer(deps) {
79850
81088
  const server = new McpServer({
79851
81089
  name: "Client",
79852
- version: "1.1.6"
81090
+ version: "1.2.1"
79853
81091
  });
79854
81092
  const client = new ClientCore({
79855
81093
  security: deps.security,
@@ -81279,7 +82517,7 @@ var routes = an({
81279
82517
  var app = He(routes, {
81280
82518
  name: "mcp",
81281
82519
  versionInfo: {
81282
- currentVersion: "1.1.6"
82520
+ currentVersion: "1.2.1"
81283
82521
  }
81284
82522
  });
81285
82523
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -81287,5 +82525,5 @@ export {
81287
82525
  app
81288
82526
  };
81289
82527
 
81290
- //# debugId=52F40B3131617BD664756E2164756E21
82528
+ //# debugId=50976D2DDDF1DFA264756E2164756E21
81291
82529
  //# sourceMappingURL=mcp-server.js.map