mollie-api-typescript 1.0.1 → 1.0.2

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 (309) hide show
  1. package/bin/mcp-server.js +156 -126
  2. package/bin/mcp-server.js.map +47 -46
  3. package/dist/commonjs/funcs/balanceTransfersGet.js +2 -5
  4. package/dist/commonjs/funcs/balanceTransfersGet.js.map +1 -1
  5. package/dist/commonjs/funcs/balancesGet.js +2 -2
  6. package/dist/commonjs/funcs/balancesGet.js.map +1 -1
  7. package/dist/commonjs/funcs/clientsGet.js +2 -2
  8. package/dist/commonjs/funcs/clientsGet.js.map +1 -1
  9. package/dist/commonjs/funcs/invoicesGet.js +2 -2
  10. package/dist/commonjs/funcs/invoicesGet.js.map +1 -1
  11. package/dist/commonjs/funcs/methodsGet.js +2 -2
  12. package/dist/commonjs/funcs/methodsGet.js.map +1 -1
  13. package/dist/commonjs/funcs/organizationsGet.js +2 -2
  14. package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/profilesDelete.js +2 -2
  16. package/dist/commonjs/funcs/profilesDelete.js.map +1 -1
  17. package/dist/commonjs/funcs/profilesGet.js +2 -2
  18. package/dist/commonjs/funcs/profilesGet.js.map +1 -1
  19. package/dist/commonjs/funcs/profilesUpdate.js +2 -2
  20. package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
  21. package/dist/commonjs/funcs/salesInvoicesDelete.js +2 -2
  22. package/dist/commonjs/funcs/salesInvoicesDelete.js.map +1 -1
  23. package/dist/commonjs/funcs/salesInvoicesGet.js +2 -2
  24. package/dist/commonjs/funcs/salesInvoicesGet.js.map +1 -1
  25. package/dist/commonjs/funcs/salesInvoicesUpdate.js +2 -2
  26. package/dist/commonjs/funcs/salesInvoicesUpdate.js.map +1 -1
  27. package/dist/commonjs/funcs/settlementsGet.js +2 -2
  28. package/dist/commonjs/funcs/settlementsGet.js.map +1 -1
  29. package/dist/commonjs/funcs/webhookEventsGet.js +2 -2
  30. package/dist/commonjs/funcs/webhookEventsGet.js.map +1 -1
  31. package/dist/commonjs/funcs/webhooksDelete.js +2 -2
  32. package/dist/commonjs/funcs/webhooksDelete.js.map +1 -1
  33. package/dist/commonjs/funcs/webhooksGet.js +2 -2
  34. package/dist/commonjs/funcs/webhooksGet.js.map +1 -1
  35. package/dist/commonjs/funcs/webhooksTest.js +2 -2
  36. package/dist/commonjs/funcs/webhooksTest.js.map +1 -1
  37. package/dist/commonjs/funcs/webhooksUpdate.js +2 -2
  38. package/dist/commonjs/funcs/webhooksUpdate.js.map +1 -1
  39. package/dist/commonjs/hooks/mollie-hooks.d.ts +1 -0
  40. package/dist/commonjs/hooks/mollie-hooks.d.ts.map +1 -1
  41. package/dist/commonjs/hooks/mollie-hooks.js +15 -0
  42. package/dist/commonjs/hooks/mollie-hooks.js.map +1 -1
  43. package/dist/commonjs/lib/config.d.ts +3 -3
  44. package/dist/commonjs/lib/config.js +3 -3
  45. package/dist/commonjs/lib/sdks.js +2 -2
  46. package/dist/commonjs/lib/sdks.js.map +1 -1
  47. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  48. package/dist/commonjs/mcp-server/server.js +1 -1
  49. package/dist/commonjs/models/index.d.ts +1 -0
  50. package/dist/commonjs/models/index.d.ts.map +1 -1
  51. package/dist/commonjs/models/index.js +1 -0
  52. package/dist/commonjs/models/index.js.map +1 -1
  53. package/dist/commonjs/models/methodid.d.ts +65 -0
  54. package/dist/commonjs/models/methodid.d.ts.map +1 -0
  55. package/dist/commonjs/models/methodid.js +91 -0
  56. package/dist/commonjs/models/methodid.js.map +1 -0
  57. package/dist/commonjs/models/operations/deleteprofile.d.ts +3 -3
  58. package/dist/commonjs/models/operations/deleteprofile.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/deleteprofile.js +2 -2
  60. package/dist/commonjs/models/operations/deleteprofile.js.map +1 -1
  61. package/dist/commonjs/models/operations/deletesalesinvoice.d.ts +3 -3
  62. package/dist/commonjs/models/operations/deletesalesinvoice.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/deletesalesinvoice.js +2 -2
  64. package/dist/commonjs/models/operations/deletesalesinvoice.js.map +1 -1
  65. package/dist/commonjs/models/operations/deletewebhook.d.ts +3 -3
  66. package/dist/commonjs/models/operations/deletewebhook.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/deletewebhook.js +2 -2
  68. package/dist/commonjs/models/operations/deletewebhook.js.map +1 -1
  69. package/dist/commonjs/models/operations/getbalance.d.ts +3 -3
  70. package/dist/commonjs/models/operations/getbalance.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/getbalance.js +2 -2
  72. package/dist/commonjs/models/operations/getbalance.js.map +1 -1
  73. package/dist/commonjs/models/operations/getclient.d.ts +3 -3
  74. package/dist/commonjs/models/operations/getclient.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/getclient.js +2 -2
  76. package/dist/commonjs/models/operations/getclient.js.map +1 -1
  77. package/dist/commonjs/models/operations/getconnectbalancetransfer.d.ts +3 -3
  78. package/dist/commonjs/models/operations/getconnectbalancetransfer.d.ts.map +1 -1
  79. package/dist/commonjs/models/operations/getconnectbalancetransfer.js +2 -2
  80. package/dist/commonjs/models/operations/getconnectbalancetransfer.js.map +1 -1
  81. package/dist/commonjs/models/operations/getinvoice.d.ts +3 -3
  82. package/dist/commonjs/models/operations/getinvoice.d.ts.map +1 -1
  83. package/dist/commonjs/models/operations/getinvoice.js +2 -2
  84. package/dist/commonjs/models/operations/getinvoice.js.map +1 -1
  85. package/dist/commonjs/models/operations/getmethod.d.ts +3 -3
  86. package/dist/commonjs/models/operations/getmethod.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/getmethod.js +2 -2
  88. package/dist/commonjs/models/operations/getmethod.js.map +1 -1
  89. package/dist/commonjs/models/operations/getorganization.d.ts +3 -3
  90. package/dist/commonjs/models/operations/getorganization.d.ts.map +1 -1
  91. package/dist/commonjs/models/operations/getorganization.js +2 -2
  92. package/dist/commonjs/models/operations/getorganization.js.map +1 -1
  93. package/dist/commonjs/models/operations/getprofile.d.ts +3 -3
  94. package/dist/commonjs/models/operations/getprofile.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/getprofile.js +2 -2
  96. package/dist/commonjs/models/operations/getprofile.js.map +1 -1
  97. package/dist/commonjs/models/operations/getsalesinvoice.d.ts +3 -3
  98. package/dist/commonjs/models/operations/getsalesinvoice.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/getsalesinvoice.js +2 -2
  100. package/dist/commonjs/models/operations/getsalesinvoice.js.map +1 -1
  101. package/dist/commonjs/models/operations/getsettlement.d.ts +3 -3
  102. package/dist/commonjs/models/operations/getsettlement.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/getsettlement.js +2 -2
  104. package/dist/commonjs/models/operations/getsettlement.js.map +1 -1
  105. package/dist/commonjs/models/operations/getwebhook.d.ts +3 -3
  106. package/dist/commonjs/models/operations/getwebhook.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/getwebhook.js +2 -2
  108. package/dist/commonjs/models/operations/getwebhook.js.map +1 -1
  109. package/dist/commonjs/models/operations/getwebhookevent.d.ts +3 -3
  110. package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
  111. package/dist/commonjs/models/operations/getwebhookevent.js +2 -2
  112. package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
  113. package/dist/commonjs/models/operations/testwebhook.d.ts +3 -3
  114. package/dist/commonjs/models/operations/testwebhook.d.ts.map +1 -1
  115. package/dist/commonjs/models/operations/testwebhook.js +2 -2
  116. package/dist/commonjs/models/operations/testwebhook.js.map +1 -1
  117. package/dist/commonjs/models/operations/updateprofile.d.ts +3 -3
  118. package/dist/commonjs/models/operations/updateprofile.d.ts.map +1 -1
  119. package/dist/commonjs/models/operations/updateprofile.js +2 -2
  120. package/dist/commonjs/models/operations/updateprofile.js.map +1 -1
  121. package/dist/commonjs/models/operations/updatesalesinvoice.d.ts +3 -3
  122. package/dist/commonjs/models/operations/updatesalesinvoice.d.ts.map +1 -1
  123. package/dist/commonjs/models/operations/updatesalesinvoice.js +2 -2
  124. package/dist/commonjs/models/operations/updatesalesinvoice.js.map +1 -1
  125. package/dist/commonjs/models/operations/updatewebhook.d.ts +3 -3
  126. package/dist/commonjs/models/operations/updatewebhook.d.ts.map +1 -1
  127. package/dist/commonjs/models/operations/updatewebhook.js +2 -2
  128. package/dist/commonjs/models/operations/updatewebhook.js.map +1 -1
  129. package/dist/commonjs/models/paymentrequest.d.ts +5 -46
  130. package/dist/commonjs/models/paymentrequest.d.ts.map +1 -1
  131. package/dist/commonjs/models/paymentrequest.js +18 -45
  132. package/dist/commonjs/models/paymentrequest.js.map +1 -1
  133. package/dist/esm/funcs/balanceTransfersGet.js +2 -5
  134. package/dist/esm/funcs/balanceTransfersGet.js.map +1 -1
  135. package/dist/esm/funcs/balancesGet.js +2 -2
  136. package/dist/esm/funcs/balancesGet.js.map +1 -1
  137. package/dist/esm/funcs/clientsGet.js +2 -2
  138. package/dist/esm/funcs/clientsGet.js.map +1 -1
  139. package/dist/esm/funcs/invoicesGet.js +2 -2
  140. package/dist/esm/funcs/invoicesGet.js.map +1 -1
  141. package/dist/esm/funcs/methodsGet.js +2 -2
  142. package/dist/esm/funcs/methodsGet.js.map +1 -1
  143. package/dist/esm/funcs/organizationsGet.js +2 -2
  144. package/dist/esm/funcs/organizationsGet.js.map +1 -1
  145. package/dist/esm/funcs/profilesDelete.js +2 -2
  146. package/dist/esm/funcs/profilesDelete.js.map +1 -1
  147. package/dist/esm/funcs/profilesGet.js +2 -2
  148. package/dist/esm/funcs/profilesGet.js.map +1 -1
  149. package/dist/esm/funcs/profilesUpdate.js +2 -2
  150. package/dist/esm/funcs/profilesUpdate.js.map +1 -1
  151. package/dist/esm/funcs/salesInvoicesDelete.js +2 -2
  152. package/dist/esm/funcs/salesInvoicesDelete.js.map +1 -1
  153. package/dist/esm/funcs/salesInvoicesGet.js +2 -2
  154. package/dist/esm/funcs/salesInvoicesGet.js.map +1 -1
  155. package/dist/esm/funcs/salesInvoicesUpdate.js +2 -2
  156. package/dist/esm/funcs/salesInvoicesUpdate.js.map +1 -1
  157. package/dist/esm/funcs/settlementsGet.js +2 -2
  158. package/dist/esm/funcs/settlementsGet.js.map +1 -1
  159. package/dist/esm/funcs/webhookEventsGet.js +2 -2
  160. package/dist/esm/funcs/webhookEventsGet.js.map +1 -1
  161. package/dist/esm/funcs/webhooksDelete.js +2 -2
  162. package/dist/esm/funcs/webhooksDelete.js.map +1 -1
  163. package/dist/esm/funcs/webhooksGet.js +2 -2
  164. package/dist/esm/funcs/webhooksGet.js.map +1 -1
  165. package/dist/esm/funcs/webhooksTest.js +2 -2
  166. package/dist/esm/funcs/webhooksTest.js.map +1 -1
  167. package/dist/esm/funcs/webhooksUpdate.js +2 -2
  168. package/dist/esm/funcs/webhooksUpdate.js.map +1 -1
  169. package/dist/esm/hooks/mollie-hooks.d.ts +1 -0
  170. package/dist/esm/hooks/mollie-hooks.d.ts.map +1 -1
  171. package/dist/esm/hooks/mollie-hooks.js +15 -0
  172. package/dist/esm/hooks/mollie-hooks.js.map +1 -1
  173. package/dist/esm/lib/config.d.ts +3 -3
  174. package/dist/esm/lib/config.js +3 -3
  175. package/dist/esm/lib/sdks.js +2 -2
  176. package/dist/esm/lib/sdks.js.map +1 -1
  177. package/dist/esm/mcp-server/mcp-server.js +1 -1
  178. package/dist/esm/mcp-server/server.js +1 -1
  179. package/dist/esm/models/index.d.ts +1 -0
  180. package/dist/esm/models/index.d.ts.map +1 -1
  181. package/dist/esm/models/index.js +1 -0
  182. package/dist/esm/models/index.js.map +1 -1
  183. package/dist/esm/models/methodid.d.ts +65 -0
  184. package/dist/esm/models/methodid.d.ts.map +1 -0
  185. package/dist/esm/models/methodid.js +55 -0
  186. package/dist/esm/models/methodid.js.map +1 -0
  187. package/dist/esm/models/operations/deleteprofile.d.ts +3 -3
  188. package/dist/esm/models/operations/deleteprofile.d.ts.map +1 -1
  189. package/dist/esm/models/operations/deleteprofile.js +2 -2
  190. package/dist/esm/models/operations/deleteprofile.js.map +1 -1
  191. package/dist/esm/models/operations/deletesalesinvoice.d.ts +3 -3
  192. package/dist/esm/models/operations/deletesalesinvoice.d.ts.map +1 -1
  193. package/dist/esm/models/operations/deletesalesinvoice.js +2 -2
  194. package/dist/esm/models/operations/deletesalesinvoice.js.map +1 -1
  195. package/dist/esm/models/operations/deletewebhook.d.ts +3 -3
  196. package/dist/esm/models/operations/deletewebhook.d.ts.map +1 -1
  197. package/dist/esm/models/operations/deletewebhook.js +2 -2
  198. package/dist/esm/models/operations/deletewebhook.js.map +1 -1
  199. package/dist/esm/models/operations/getbalance.d.ts +3 -3
  200. package/dist/esm/models/operations/getbalance.d.ts.map +1 -1
  201. package/dist/esm/models/operations/getbalance.js +2 -2
  202. package/dist/esm/models/operations/getbalance.js.map +1 -1
  203. package/dist/esm/models/operations/getclient.d.ts +3 -3
  204. package/dist/esm/models/operations/getclient.d.ts.map +1 -1
  205. package/dist/esm/models/operations/getclient.js +2 -2
  206. package/dist/esm/models/operations/getclient.js.map +1 -1
  207. package/dist/esm/models/operations/getconnectbalancetransfer.d.ts +3 -3
  208. package/dist/esm/models/operations/getconnectbalancetransfer.d.ts.map +1 -1
  209. package/dist/esm/models/operations/getconnectbalancetransfer.js +2 -2
  210. package/dist/esm/models/operations/getconnectbalancetransfer.js.map +1 -1
  211. package/dist/esm/models/operations/getinvoice.d.ts +3 -3
  212. package/dist/esm/models/operations/getinvoice.d.ts.map +1 -1
  213. package/dist/esm/models/operations/getinvoice.js +2 -2
  214. package/dist/esm/models/operations/getinvoice.js.map +1 -1
  215. package/dist/esm/models/operations/getmethod.d.ts +3 -3
  216. package/dist/esm/models/operations/getmethod.d.ts.map +1 -1
  217. package/dist/esm/models/operations/getmethod.js +2 -2
  218. package/dist/esm/models/operations/getmethod.js.map +1 -1
  219. package/dist/esm/models/operations/getorganization.d.ts +3 -3
  220. package/dist/esm/models/operations/getorganization.d.ts.map +1 -1
  221. package/dist/esm/models/operations/getorganization.js +2 -2
  222. package/dist/esm/models/operations/getorganization.js.map +1 -1
  223. package/dist/esm/models/operations/getprofile.d.ts +3 -3
  224. package/dist/esm/models/operations/getprofile.d.ts.map +1 -1
  225. package/dist/esm/models/operations/getprofile.js +2 -2
  226. package/dist/esm/models/operations/getprofile.js.map +1 -1
  227. package/dist/esm/models/operations/getsalesinvoice.d.ts +3 -3
  228. package/dist/esm/models/operations/getsalesinvoice.d.ts.map +1 -1
  229. package/dist/esm/models/operations/getsalesinvoice.js +2 -2
  230. package/dist/esm/models/operations/getsalesinvoice.js.map +1 -1
  231. package/dist/esm/models/operations/getsettlement.d.ts +3 -3
  232. package/dist/esm/models/operations/getsettlement.d.ts.map +1 -1
  233. package/dist/esm/models/operations/getsettlement.js +2 -2
  234. package/dist/esm/models/operations/getsettlement.js.map +1 -1
  235. package/dist/esm/models/operations/getwebhook.d.ts +3 -3
  236. package/dist/esm/models/operations/getwebhook.d.ts.map +1 -1
  237. package/dist/esm/models/operations/getwebhook.js +2 -2
  238. package/dist/esm/models/operations/getwebhook.js.map +1 -1
  239. package/dist/esm/models/operations/getwebhookevent.d.ts +3 -3
  240. package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
  241. package/dist/esm/models/operations/getwebhookevent.js +2 -2
  242. package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
  243. package/dist/esm/models/operations/testwebhook.d.ts +3 -3
  244. package/dist/esm/models/operations/testwebhook.d.ts.map +1 -1
  245. package/dist/esm/models/operations/testwebhook.js +2 -2
  246. package/dist/esm/models/operations/testwebhook.js.map +1 -1
  247. package/dist/esm/models/operations/updateprofile.d.ts +3 -3
  248. package/dist/esm/models/operations/updateprofile.d.ts.map +1 -1
  249. package/dist/esm/models/operations/updateprofile.js +2 -2
  250. package/dist/esm/models/operations/updateprofile.js.map +1 -1
  251. package/dist/esm/models/operations/updatesalesinvoice.d.ts +3 -3
  252. package/dist/esm/models/operations/updatesalesinvoice.d.ts.map +1 -1
  253. package/dist/esm/models/operations/updatesalesinvoice.js +2 -2
  254. package/dist/esm/models/operations/updatesalesinvoice.js.map +1 -1
  255. package/dist/esm/models/operations/updatewebhook.d.ts +3 -3
  256. package/dist/esm/models/operations/updatewebhook.d.ts.map +1 -1
  257. package/dist/esm/models/operations/updatewebhook.js +2 -2
  258. package/dist/esm/models/operations/updatewebhook.js.map +1 -1
  259. package/dist/esm/models/paymentrequest.d.ts +5 -46
  260. package/dist/esm/models/paymentrequest.d.ts.map +1 -1
  261. package/dist/esm/models/paymentrequest.js +17 -44
  262. package/dist/esm/models/paymentrequest.js.map +1 -1
  263. package/examples/package-lock.json +1 -1
  264. package/jsr.json +1 -1
  265. package/package.json +1 -1
  266. package/src/funcs/balanceTransfersGet.ts +8 -5
  267. package/src/funcs/balancesGet.ts +2 -2
  268. package/src/funcs/clientsGet.ts +2 -2
  269. package/src/funcs/invoicesGet.ts +2 -2
  270. package/src/funcs/methodsGet.ts +2 -2
  271. package/src/funcs/organizationsGet.ts +2 -2
  272. package/src/funcs/profilesDelete.ts +2 -2
  273. package/src/funcs/profilesGet.ts +2 -2
  274. package/src/funcs/profilesUpdate.ts +2 -2
  275. package/src/funcs/salesInvoicesDelete.ts +2 -2
  276. package/src/funcs/salesInvoicesGet.ts +2 -2
  277. package/src/funcs/salesInvoicesUpdate.ts +2 -2
  278. package/src/funcs/settlementsGet.ts +2 -2
  279. package/src/funcs/webhookEventsGet.ts +2 -2
  280. package/src/funcs/webhooksDelete.ts +2 -2
  281. package/src/funcs/webhooksGet.ts +2 -2
  282. package/src/funcs/webhooksTest.ts +2 -2
  283. package/src/funcs/webhooksUpdate.ts +2 -2
  284. package/src/hooks/mollie-hooks.ts +22 -0
  285. package/src/lib/config.ts +3 -3
  286. package/src/lib/sdks.ts +2 -2
  287. package/src/mcp-server/mcp-server.ts +1 -1
  288. package/src/mcp-server/server.ts +1 -1
  289. package/src/models/index.ts +1 -0
  290. package/src/models/methodid.ts +79 -0
  291. package/src/models/operations/deleteprofile.ts +5 -5
  292. package/src/models/operations/deletesalesinvoice.ts +5 -5
  293. package/src/models/operations/deletewebhook.ts +5 -5
  294. package/src/models/operations/getbalance.ts +5 -5
  295. package/src/models/operations/getclient.ts +5 -5
  296. package/src/models/operations/getconnectbalancetransfer.ts +5 -5
  297. package/src/models/operations/getinvoice.ts +5 -5
  298. package/src/models/operations/getmethod.ts +5 -5
  299. package/src/models/operations/getorganization.ts +5 -5
  300. package/src/models/operations/getprofile.ts +5 -5
  301. package/src/models/operations/getsalesinvoice.ts +5 -5
  302. package/src/models/operations/getsettlement.ts +5 -5
  303. package/src/models/operations/getwebhook.ts +5 -5
  304. package/src/models/operations/getwebhookevent.ts +5 -5
  305. package/src/models/operations/testwebhook.ts +5 -5
  306. package/src/models/operations/updateprofile.ts +5 -5
  307. package/src/models/operations/updatesalesinvoice.ts +5 -5
  308. package/src/models/operations/updatewebhook.ts +5 -5
  309. package/src/models/paymentrequest.ts +25 -58
package/bin/mcp-server.js CHANGED
@@ -52403,15 +52403,16 @@ var init_config = __esm(() => {
52403
52403
  SDK_METADATA = {
52404
52404
  language: "typescript",
52405
52405
  openapiDocVersion: "1.0.0",
52406
- sdkVersion: "1.0.1",
52407
- genVersion: "2.792.2",
52408
- userAgent: "speakeasy-sdk/typescript 1.0.1 2.792.2 1.0.0 mollie-api-typescript"
52406
+ sdkVersion: "1.0.2",
52407
+ genVersion: "2.794.1",
52408
+ userAgent: "speakeasy-sdk/typescript 1.0.2 2.794.1 1.0.0 mollie-api-typescript"
52409
52409
  };
52410
52410
  });
52411
52411
 
52412
52412
  // src/hooks/mollie-hooks.ts
52413
52413
  class MollieHooks {
52414
52414
  beforeCreateRequest(hookContext, input) {
52415
+ this.validatePathParameters(input);
52415
52416
  let headers = new Headers(input.options?.headers);
52416
52417
  headers = this.handleIdempotencyKey(headers);
52417
52418
  headers = this.customizeUserAgent(headers, hookContext);
@@ -52427,6 +52428,19 @@ class MollieHooks {
52427
52428
  }
52428
52429
  return input;
52429
52430
  }
52431
+ validatePathParameters(input) {
52432
+ const url = input.url;
52433
+ const pathSegments = url.pathname.split("/");
52434
+ for (let i = 0;i < pathSegments.length; i++) {
52435
+ const segment = pathSegments[i];
52436
+ if (i === 0 && segment === "") {
52437
+ continue;
52438
+ }
52439
+ if (segment === "" || segment?.trim() === "") {
52440
+ throw new Error(`Invalid request: empty path parameter detected in [${input.options?.method || "GET"}] '${url.pathname}'`);
52441
+ }
52442
+ }
52443
+ }
52430
52444
  isOAuthRequest(headers, hookContext) {
52431
52445
  const security = hookContext.options.security;
52432
52446
  if (typeof security === "function") {
@@ -53494,8 +53508,8 @@ var init_sdks = __esm(() => {
53494
53508
  gt = typeof globalThis === "undefined" ? null : globalThis;
53495
53509
  webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
53496
53510
  isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
53497
- jsonLikeContentTypeRE = /(application|text)\/([^+]+\+)*json.*/;
53498
- jsonlLikeContentTypeRE = /(application|text)\/(([^+]+\+)*jsonl\b.*|([^+]+\+)*x-ndjson\b.*)/;
53511
+ jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
53512
+ jsonlLikeContentTypeRE = /^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
53499
53513
  });
53500
53514
 
53501
53515
  // src/core.ts
@@ -60598,6 +60612,49 @@ var init_methodenum = __esm(() => {
60598
60612
  MethodEnum$outboundSchema = MethodEnum$inboundSchema;
60599
60613
  });
60600
60614
 
60615
+ // src/models/methodid.ts
60616
+ var MethodId, MethodId$inboundSchema, MethodId$outboundSchema;
60617
+ var init_methodid = __esm(() => {
60618
+ init_enums();
60619
+ MethodId = {
60620
+ Alma: "alma",
60621
+ Applepay: "applepay",
60622
+ Bacs: "bacs",
60623
+ Bancomatpay: "bancomatpay",
60624
+ Bancontact: "bancontact",
60625
+ Banktransfer: "banktransfer",
60626
+ Belfius: "belfius",
60627
+ Billie: "billie",
60628
+ Bizum: "bizum",
60629
+ Blik: "blik",
60630
+ Creditcard: "creditcard",
60631
+ Directdebit: "directdebit",
60632
+ Eps: "eps",
60633
+ Giftcard: "giftcard",
60634
+ Ideal: "ideal",
60635
+ In3: "in3",
60636
+ Kbc: "kbc",
60637
+ Klarna: "klarna",
60638
+ Mbway: "mbway",
60639
+ Mobilepay: "mobilepay",
60640
+ Multibanco: "multibanco",
60641
+ Mybank: "mybank",
60642
+ Paybybank: "paybybank",
60643
+ Paypal: "paypal",
60644
+ Paysafecard: "paysafecard",
60645
+ Przelewy24: "przelewy24",
60646
+ Riverty: "riverty",
60647
+ Satispay: "satispay",
60648
+ Swish: "swish",
60649
+ Trustly: "trustly",
60650
+ Twint: "twint",
60651
+ Vipps: "vipps",
60652
+ Voucher: "voucher"
60653
+ };
60654
+ MethodId$inboundSchema = inboundSchema(MethodId);
60655
+ MethodId$outboundSchema = outboundSchema(MethodId);
60656
+ });
60657
+
60601
60658
  // src/models/methodincludewalletsparameter.ts
60602
60659
  var MethodIncludeWalletsParameter, MethodIncludeWalletsParameter$inboundSchema, MethodIncludeWalletsParameter$outboundSchema;
60603
60660
  var init_methodincludewalletsparameter = __esm(() => {
@@ -60756,7 +60813,7 @@ var init_sequencetype = __esm(() => {
60756
60813
  });
60757
60814
 
60758
60815
  // src/models/paymentrequest.ts
60759
- var PaymentRequestMethodEnum, PaymentRequestLine$inboundSchema, PaymentRequestLine$outboundSchema, PaymentRequestBillingAddress$inboundSchema, PaymentRequestBillingAddress$outboundSchema, PaymentRequestMethodEnum$inboundSchema, PaymentRequestMethodEnum$outboundSchema, Method$inboundSchema, Method$outboundSchema, PaymentRequestApplicationFee$inboundSchema, PaymentRequestApplicationFee$outboundSchema, Company$inboundSchema, Company$outboundSchema, PaymentRequest$inboundSchema, PaymentRequest$outboundSchema;
60816
+ var PaymentRequestLine$inboundSchema, PaymentRequestLine$outboundSchema, PaymentRequestBillingAddress$inboundSchema, PaymentRequestBillingAddress$outboundSchema, Method$inboundSchema, Method$outboundSchema, PaymentRequestApplicationFee$inboundSchema, PaymentRequestApplicationFee$outboundSchema, Company$inboundSchema, Company$outboundSchema, PaymentRequest$inboundSchema, PaymentRequest$outboundSchema;
60760
60817
  var init_paymentrequest = __esm(() => {
60761
60818
  init_esm();
60762
60819
  init_rfcdate();
@@ -60766,46 +60823,11 @@ var init_paymentrequest = __esm(() => {
60766
60823
  init_linecategories();
60767
60824
  init_locale();
60768
60825
  init_metadata();
60826
+ init_methodenum();
60769
60827
  init_paymentaddress();
60770
60828
  init_paymentlinetype();
60771
60829
  init_recurringlineitem();
60772
60830
  init_sequencetype();
60773
- PaymentRequestMethodEnum = {
60774
- Alma: "alma",
60775
- Applepay: "applepay",
60776
- Bacs: "bacs",
60777
- Bancomatpay: "bancomatpay",
60778
- Bancontact: "bancontact",
60779
- Banktransfer: "banktransfer",
60780
- Belfius: "belfius",
60781
- Billie: "billie",
60782
- Bizum: "bizum",
60783
- Blik: "blik",
60784
- Creditcard: "creditcard",
60785
- Directdebit: "directdebit",
60786
- Eps: "eps",
60787
- Giftcard: "giftcard",
60788
- Ideal: "ideal",
60789
- In3: "in3",
60790
- Kbc: "kbc",
60791
- Klarna: "klarna",
60792
- Mbway: "mbway",
60793
- Mobilepay: "mobilepay",
60794
- Multibanco: "multibanco",
60795
- Mybank: "mybank",
60796
- Paybybank: "paybybank",
60797
- Paypal: "paypal",
60798
- Paysafecard: "paysafecard",
60799
- Pointofsale: "pointofsale",
60800
- Przelewy24: "przelewy24",
60801
- Riverty: "riverty",
60802
- Satispay: "satispay",
60803
- Swish: "swish",
60804
- Trustly: "trustly",
60805
- Twint: "twint",
60806
- Vipps: "vipps",
60807
- Voucher: "voucher"
60808
- };
60809
60831
  PaymentRequestLine$inboundSchema = objectType({
60810
60832
  type: PaymentLineType$inboundSchema.optional(),
60811
60833
  description: stringType(),
@@ -60866,10 +60888,14 @@ var init_paymentrequest = __esm(() => {
60866
60888
  region: stringType().optional(),
60867
60889
  country: stringType().optional()
60868
60890
  });
60869
- PaymentRequestMethodEnum$inboundSchema = nativeEnumType(PaymentRequestMethodEnum);
60870
- PaymentRequestMethodEnum$outboundSchema = PaymentRequestMethodEnum$inboundSchema;
60871
- Method$inboundSchema = unionType([PaymentRequestMethodEnum$inboundSchema, arrayType(anyType())]);
60872
- Method$outboundSchema = unionType([PaymentRequestMethodEnum$outboundSchema, arrayType(anyType())]);
60891
+ Method$inboundSchema = unionType([
60892
+ MethodEnum$inboundSchema,
60893
+ arrayType(nullableType(MethodEnum$inboundSchema))
60894
+ ]);
60895
+ Method$outboundSchema = unionType([
60896
+ MethodEnum$outboundSchema,
60897
+ arrayType(nullableType(MethodEnum$outboundSchema))
60898
+ ]);
60873
60899
  PaymentRequestApplicationFee$inboundSchema = objectType({
60874
60900
  amount: Amount$inboundSchema.optional(),
60875
60901
  description: stringType().optional()
@@ -60898,7 +60924,10 @@ var init_paymentrequest = __esm(() => {
60898
60924
  billingAddress: lazyType(() => PaymentRequestBillingAddress$inboundSchema).optional(),
60899
60925
  shippingAddress: PaymentAddress$inboundSchema.optional(),
60900
60926
  locale: nullableType(Locale$inboundSchema).optional(),
60901
- method: nullableType(unionType([PaymentRequestMethodEnum$inboundSchema, arrayType(anyType())])).optional(),
60927
+ method: nullableType(unionType([
60928
+ MethodEnum$inboundSchema,
60929
+ arrayType(nullableType(MethodEnum$inboundSchema))
60930
+ ])).optional(),
60902
60931
  issuer: nullableType(stringType()).optional(),
60903
60932
  restrictPaymentMethodsToCountry: nullableType(stringType()).optional(),
60904
60933
  metadata: nullableType(Metadata$inboundSchema).optional(),
@@ -60934,7 +60963,10 @@ var init_paymentrequest = __esm(() => {
60934
60963
  billingAddress: lazyType(() => PaymentRequestBillingAddress$outboundSchema).optional(),
60935
60964
  shippingAddress: PaymentAddress$outboundSchema.optional(),
60936
60965
  locale: nullableType(Locale$outboundSchema).optional(),
60937
- method: nullableType(unionType([PaymentRequestMethodEnum$outboundSchema, arrayType(anyType())])).optional(),
60966
+ method: nullableType(unionType([
60967
+ MethodEnum$outboundSchema,
60968
+ arrayType(nullableType(MethodEnum$outboundSchema))
60969
+ ])).optional(),
60938
60970
  issuer: nullableType(stringType()).optional(),
60939
60971
  restrictPaymentMethodsToCountry: nullableType(stringType()).optional(),
60940
60972
  metadata: nullableType(Metadata$outboundSchema).optional(),
@@ -62241,6 +62273,7 @@ var init_models = __esm(() => {
62241
62273
  init_mandateresponse();
62242
62274
  init_metadata();
62243
62275
  init_methodenum();
62276
+ init_methodid();
62244
62277
  init_methodincludewalletsparameter();
62245
62278
  init_methodresourceparameter();
62246
62279
  init_methodresponse();
@@ -62990,7 +63023,7 @@ var init_deleteprofile = __esm(() => {
62990
63023
  init_esm();
62991
63024
  init_primitives();
62992
63025
  DeleteProfileRequest$inboundSchema = objectType({
62993
- id: stringType(),
63026
+ profileId: stringType(),
62994
63027
  "idempotency-key": stringType().optional()
62995
63028
  }).transform((v2) => {
62996
63029
  return remap(v2, {
@@ -62998,7 +63031,7 @@ var init_deleteprofile = __esm(() => {
62998
63031
  });
62999
63032
  });
63000
63033
  DeleteProfileRequest$outboundSchema = objectType({
63001
- id: stringType(),
63034
+ profileId: stringType(),
63002
63035
  idempotencyKey: stringType().optional()
63003
63036
  }).transform((v2) => {
63004
63037
  return remap(v2, {
@@ -63014,7 +63047,7 @@ var init_deletesalesinvoice = __esm(() => {
63014
63047
  init_primitives();
63015
63048
  init_models();
63016
63049
  DeleteSalesInvoiceRequest$inboundSchema = objectType({
63017
- id: stringType(),
63050
+ salesInvoiceId: stringType(),
63018
63051
  "idempotency-key": stringType().optional(),
63019
63052
  "delete-values-sales-invoice": DeleteValuesSalesInvoice$inboundSchema.optional()
63020
63053
  }).transform((v2) => {
@@ -63024,7 +63057,7 @@ var init_deletesalesinvoice = __esm(() => {
63024
63057
  });
63025
63058
  });
63026
63059
  DeleteSalesInvoiceRequest$outboundSchema = objectType({
63027
- id: stringType(),
63060
+ salesInvoiceId: stringType(),
63028
63061
  idempotencyKey: stringType().optional(),
63029
63062
  deleteValuesSalesInvoice: DeleteValuesSalesInvoice$outboundSchema.optional()
63030
63063
  }).transform((v2) => {
@@ -63047,7 +63080,7 @@ var init_deletewebhook = __esm(() => {
63047
63080
  testmode: booleanType().optional()
63048
63081
  });
63049
63082
  DeleteWebhookRequest$inboundSchema = objectType({
63050
- id: stringType(),
63083
+ webhookId: stringType(),
63051
63084
  "idempotency-key": stringType().optional(),
63052
63085
  RequestBody: lazyType(() => DeleteWebhookRequestBody$inboundSchema).optional()
63053
63086
  }).transform((v2) => {
@@ -63057,7 +63090,7 @@ var init_deletewebhook = __esm(() => {
63057
63090
  });
63058
63091
  });
63059
63092
  DeleteWebhookRequest$outboundSchema = objectType({
63060
- id: stringType(),
63093
+ webhookId: stringType(),
63061
63094
  idempotencyKey: stringType().optional(),
63062
63095
  requestBody: lazyType(() => DeleteWebhookRequestBody$outboundSchema).optional()
63063
63096
  }).transform((v2) => {
@@ -63080,7 +63113,7 @@ var init_getbalance = __esm(() => {
63080
63113
  testmode: booleanType().optional()
63081
63114
  });
63082
63115
  GetBalanceRequest$inboundSchema = objectType({
63083
- id: stringType(),
63116
+ balanceId: stringType(),
63084
63117
  testmode: booleanType().optional(),
63085
63118
  "idempotency-key": stringType().optional()
63086
63119
  }).transform((v2) => {
@@ -63089,7 +63122,7 @@ var init_getbalance = __esm(() => {
63089
63122
  });
63090
63123
  });
63091
63124
  GetBalanceRequest$outboundSchema = objectType({
63092
- id: stringType(),
63125
+ balanceId: stringType(),
63093
63126
  testmode: booleanType().optional(),
63094
63127
  idempotencyKey: stringType().optional()
63095
63128
  }).transform((v2) => {
@@ -63214,7 +63247,7 @@ var init_getclient = __esm(() => {
63214
63247
  init_primitives();
63215
63248
  init_models();
63216
63249
  GetClientRequest$inboundSchema = objectType({
63217
- id: stringType(),
63250
+ organizationId: stringType(),
63218
63251
  embed: nullableType(stringType()).optional(),
63219
63252
  "idempotency-key": stringType().optional()
63220
63253
  }).transform((v2) => {
@@ -63223,7 +63256,7 @@ var init_getclient = __esm(() => {
63223
63256
  });
63224
63257
  });
63225
63258
  GetClientRequest$outboundSchema = objectType({
63226
- id: stringType(),
63259
+ organizationId: stringType(),
63227
63260
  embed: nullableType(stringType()).optional(),
63228
63261
  idempotencyKey: stringType().optional()
63229
63262
  }).transform((v2) => {
@@ -63299,7 +63332,7 @@ var init_getconnectbalancetransfer = __esm(() => {
63299
63332
  testmode: booleanType().optional()
63300
63333
  });
63301
63334
  GetConnectBalanceTransferRequest$inboundSchema = objectType({
63302
- id: stringType(),
63335
+ balanceTransferId: stringType(),
63303
63336
  testmode: booleanType().optional(),
63304
63337
  "idempotency-key": stringType().optional()
63305
63338
  }).transform((v2) => {
@@ -63308,7 +63341,7 @@ var init_getconnectbalancetransfer = __esm(() => {
63308
63341
  });
63309
63342
  });
63310
63343
  GetConnectBalanceTransferRequest$outboundSchema = objectType({
63311
- id: stringType(),
63344
+ balanceTransferId: stringType(),
63312
63345
  testmode: booleanType().optional(),
63313
63346
  idempotencyKey: stringType().optional()
63314
63347
  }).transform((v2) => {
@@ -63448,7 +63481,7 @@ var init_getinvoice = __esm(() => {
63448
63481
  init_esm();
63449
63482
  init_primitives();
63450
63483
  GetInvoiceRequest$inboundSchema = objectType({
63451
- id: stringType(),
63484
+ invoiceId: stringType(),
63452
63485
  "idempotency-key": stringType().optional()
63453
63486
  }).transform((v2) => {
63454
63487
  return remap(v2, {
@@ -63456,7 +63489,7 @@ var init_getinvoice = __esm(() => {
63456
63489
  });
63457
63490
  });
63458
63491
  GetInvoiceRequest$outboundSchema = objectType({
63459
- id: stringType(),
63492
+ invoiceId: stringType(),
63460
63493
  idempotencyKey: stringType().optional()
63461
63494
  }).transform((v2) => {
63462
63495
  return remap(v2, {
@@ -63513,7 +63546,7 @@ var init_getmethod = __esm(() => {
63513
63546
  testmode: booleanType().optional()
63514
63547
  });
63515
63548
  GetMethodRequest$inboundSchema = objectType({
63516
- id: stringType(),
63549
+ methodId: nullableType(MethodId$inboundSchema),
63517
63550
  locale: nullableType(Locale$inboundSchema).optional(),
63518
63551
  currency: stringType().optional(),
63519
63552
  profileId: stringType().optional(),
@@ -63527,7 +63560,7 @@ var init_getmethod = __esm(() => {
63527
63560
  });
63528
63561
  });
63529
63562
  GetMethodRequest$outboundSchema = objectType({
63530
- id: stringType(),
63563
+ methodId: nullableType(MethodId$outboundSchema),
63531
63564
  locale: nullableType(Locale$outboundSchema).optional(),
63532
63565
  currency: stringType().optional(),
63533
63566
  profileId: stringType().optional(),
@@ -63617,7 +63650,7 @@ var init_getorganization = __esm(() => {
63617
63650
  testmode: booleanType().optional()
63618
63651
  });
63619
63652
  GetOrganizationRequest$inboundSchema = objectType({
63620
- id: stringType(),
63653
+ organizationId: stringType(),
63621
63654
  testmode: booleanType().optional(),
63622
63655
  "idempotency-key": stringType().optional()
63623
63656
  }).transform((v2) => {
@@ -63626,7 +63659,7 @@ var init_getorganization = __esm(() => {
63626
63659
  });
63627
63660
  });
63628
63661
  GetOrganizationRequest$outboundSchema = objectType({
63629
- id: stringType(),
63662
+ organizationId: stringType(),
63630
63663
  testmode: booleanType().optional(),
63631
63664
  idempotencyKey: stringType().optional()
63632
63665
  }).transform((v2) => {
@@ -63907,7 +63940,7 @@ var init_getprofile = __esm(() => {
63907
63940
  testmode: booleanType().optional()
63908
63941
  });
63909
63942
  GetProfileRequest$inboundSchema = objectType({
63910
- id: stringType(),
63943
+ profileId: stringType(),
63911
63944
  testmode: booleanType().optional(),
63912
63945
  "idempotency-key": stringType().optional()
63913
63946
  }).transform((v2) => {
@@ -63916,7 +63949,7 @@ var init_getprofile = __esm(() => {
63916
63949
  });
63917
63950
  });
63918
63951
  GetProfileRequest$outboundSchema = objectType({
63919
- id: stringType(),
63952
+ profileId: stringType(),
63920
63953
  testmode: booleanType().optional(),
63921
63954
  idempotencyKey: stringType().optional()
63922
63955
  }).transform((v2) => {
@@ -63973,7 +64006,7 @@ var init_getsalesinvoice = __esm(() => {
63973
64006
  testmode: booleanType().optional()
63974
64007
  });
63975
64008
  GetSalesInvoiceRequest$inboundSchema = objectType({
63976
- id: stringType(),
64009
+ salesInvoiceId: stringType(),
63977
64010
  testmode: booleanType().optional(),
63978
64011
  "idempotency-key": stringType().optional()
63979
64012
  }).transform((v2) => {
@@ -63982,7 +64015,7 @@ var init_getsalesinvoice = __esm(() => {
63982
64015
  });
63983
64016
  });
63984
64017
  GetSalesInvoiceRequest$outboundSchema = objectType({
63985
- id: stringType(),
64018
+ salesInvoiceId: stringType(),
63986
64019
  testmode: booleanType().optional(),
63987
64020
  idempotencyKey: stringType().optional()
63988
64021
  }).transform((v2) => {
@@ -63998,7 +64031,7 @@ var init_getsettlement = __esm(() => {
63998
64031
  init_esm();
63999
64032
  init_primitives();
64000
64033
  GetSettlementRequest$inboundSchema = objectType({
64001
- id: stringType(),
64034
+ settlementId: stringType(),
64002
64035
  "idempotency-key": stringType().optional()
64003
64036
  }).transform((v2) => {
64004
64037
  return remap(v2, {
@@ -64006,7 +64039,7 @@ var init_getsettlement = __esm(() => {
64006
64039
  });
64007
64040
  });
64008
64041
  GetSettlementRequest$outboundSchema = objectType({
64009
- id: stringType(),
64042
+ settlementId: stringType(),
64010
64043
  idempotencyKey: stringType().optional()
64011
64044
  }).transform((v2) => {
64012
64045
  return remap(v2, {
@@ -64091,7 +64124,7 @@ var init_getwebhook = __esm(() => {
64091
64124
  testmode: booleanType().optional()
64092
64125
  });
64093
64126
  GetWebhookRequest$inboundSchema = objectType({
64094
- id: stringType(),
64127
+ webhookId: stringType(),
64095
64128
  testmode: booleanType().optional(),
64096
64129
  "idempotency-key": stringType().optional()
64097
64130
  }).transform((v2) => {
@@ -64100,7 +64133,7 @@ var init_getwebhook = __esm(() => {
64100
64133
  });
64101
64134
  });
64102
64135
  GetWebhookRequest$outboundSchema = objectType({
64103
- id: stringType(),
64136
+ webhookId: stringType(),
64104
64137
  testmode: booleanType().optional(),
64105
64138
  idempotencyKey: stringType().optional()
64106
64139
  }).transform((v2) => {
@@ -64122,7 +64155,7 @@ var init_getwebhookevent = __esm(() => {
64122
64155
  testmode: booleanType().optional()
64123
64156
  });
64124
64157
  GetWebhookEventRequest$inboundSchema = objectType({
64125
- id: stringType(),
64158
+ webhookEventId: stringType(),
64126
64159
  testmode: booleanType().optional(),
64127
64160
  "idempotency-key": stringType().optional()
64128
64161
  }).transform((v2) => {
@@ -64131,7 +64164,7 @@ var init_getwebhookevent = __esm(() => {
64131
64164
  });
64132
64165
  });
64133
64166
  GetWebhookEventRequest$outboundSchema = objectType({
64134
- id: stringType(),
64167
+ webhookEventId: stringType(),
64135
64168
  testmode: booleanType().optional(),
64136
64169
  idempotencyKey: stringType().optional()
64137
64170
  }).transform((v2) => {
@@ -66474,7 +66507,7 @@ var init_testwebhook = __esm(() => {
66474
66507
  testmode: booleanType().optional()
66475
66508
  });
66476
66509
  TestWebhookRequest$inboundSchema = objectType({
66477
- id: stringType(),
66510
+ webhookId: stringType(),
66478
66511
  "idempotency-key": stringType().optional(),
66479
66512
  RequestBody: lazyType(() => TestWebhookRequestBody$inboundSchema).optional()
66480
66513
  }).transform((v2) => {
@@ -66484,7 +66517,7 @@ var init_testwebhook = __esm(() => {
66484
66517
  });
66485
66518
  });
66486
66519
  TestWebhookRequest$outboundSchema = objectType({
66487
- id: stringType(),
66520
+ webhookId: stringType(),
66488
66521
  idempotencyKey: stringType().optional(),
66489
66522
  requestBody: lazyType(() => TestWebhookRequestBody$outboundSchema).optional()
66490
66523
  }).transform((v2) => {
@@ -66655,7 +66688,7 @@ var init_updateprofile = __esm(() => {
66655
66688
  businessCategory: nullableType(stringType()).optional()
66656
66689
  });
66657
66690
  UpdateProfileRequest$inboundSchema = objectType({
66658
- id: stringType(),
66691
+ profileId: stringType(),
66659
66692
  "idempotency-key": stringType().optional(),
66660
66693
  RequestBody: lazyType(() => UpdateProfileRequestBody$inboundSchema)
66661
66694
  }).transform((v2) => {
@@ -66665,7 +66698,7 @@ var init_updateprofile = __esm(() => {
66665
66698
  });
66666
66699
  });
66667
66700
  UpdateProfileRequest$outboundSchema = objectType({
66668
- id: stringType(),
66701
+ profileId: stringType(),
66669
66702
  idempotencyKey: stringType().optional(),
66670
66703
  requestBody: lazyType(() => UpdateProfileRequestBody$outboundSchema)
66671
66704
  }).transform((v2) => {
@@ -66683,7 +66716,7 @@ var init_updatesalesinvoice = __esm(() => {
66683
66716
  init_primitives();
66684
66717
  init_models();
66685
66718
  UpdateSalesInvoiceRequest$inboundSchema = objectType({
66686
- id: stringType(),
66719
+ salesInvoiceId: stringType(),
66687
66720
  "idempotency-key": stringType().optional(),
66688
66721
  "update-values-sales-invoice": UpdateValuesSalesInvoice$inboundSchema.optional()
66689
66722
  }).transform((v2) => {
@@ -66693,7 +66726,7 @@ var init_updatesalesinvoice = __esm(() => {
66693
66726
  });
66694
66727
  });
66695
66728
  UpdateSalesInvoiceRequest$outboundSchema = objectType({
66696
- id: stringType(),
66729
+ salesInvoiceId: stringType(),
66697
66730
  idempotencyKey: stringType().optional(),
66698
66731
  updateValuesSalesInvoice: UpdateValuesSalesInvoice$outboundSchema.optional()
66699
66732
  }).transform((v2) => {
@@ -66789,7 +66822,7 @@ var init_updatewebhook = __esm(() => {
66789
66822
  testmode: booleanType().optional()
66790
66823
  });
66791
66824
  UpdateWebhookRequest$inboundSchema = objectType({
66792
- id: stringType(),
66825
+ webhookId: stringType(),
66793
66826
  "idempotency-key": stringType().optional(),
66794
66827
  RequestBody: lazyType(() => UpdateWebhookRequestBody$inboundSchema).optional()
66795
66828
  }).transform((v2) => {
@@ -66799,7 +66832,7 @@ var init_updatewebhook = __esm(() => {
66799
66832
  });
66800
66833
  });
66801
66834
  UpdateWebhookRequest$outboundSchema = objectType({
66802
- id: stringType(),
66835
+ webhookId: stringType(),
66803
66836
  idempotencyKey: stringType().optional(),
66804
66837
  requestBody: lazyType(() => UpdateWebhookRequestBody$outboundSchema).optional()
66805
66838
  }).transform((v2) => {
@@ -66948,12 +66981,12 @@ async function $do(client, request, options) {
66948
66981
  const payload = parsed.value;
66949
66982
  const body = null;
66950
66983
  const pathParams = {
66951
- id: encodeSimple("id", payload.id, {
66984
+ balanceId: encodeSimple("balanceId", payload.balanceId, {
66952
66985
  explode: false,
66953
66986
  charEncoding: "percent"
66954
66987
  })
66955
66988
  };
66956
- const path = pathToFunc("/balances/{id}")(pathParams);
66989
+ const path = pathToFunc("/balances/{balanceId}")(pathParams);
66957
66990
  const query = encodeFormQuery({
66958
66991
  testmode: payload.testmode ?? client._options.testmode
66959
66992
  });
@@ -67719,12 +67752,9 @@ async function $do7(client, request, options) {
67719
67752
  const payload = parsed.value;
67720
67753
  const body = null;
67721
67754
  const pathParams = {
67722
- id: encodeSimple("id", payload.id, {
67723
- explode: false,
67724
- charEncoding: "percent"
67725
- })
67755
+ balanceTransferId: encodeSimple("balanceTransferId", payload.balanceTransferId, { explode: false, charEncoding: "percent" })
67726
67756
  };
67727
- const path = pathToFunc("/connect/balance-transfers/{id}")(pathParams);
67757
+ const path = pathToFunc("/connect/balance-transfers/{balanceTransferId}")(pathParams);
67728
67758
  const query = encodeFormQuery({
67729
67759
  testmode: payload.testmode ?? client._options.testmode
67730
67760
  });
@@ -69038,12 +69068,12 @@ async function $do17(client, request, options) {
69038
69068
  const payload = parsed.value;
69039
69069
  const body = null;
69040
69070
  const pathParams = {
69041
- id: encodeSimple("id", payload.id, {
69071
+ organizationId: encodeSimple("organizationId", payload.organizationId, {
69042
69072
  explode: false,
69043
69073
  charEncoding: "percent"
69044
69074
  })
69045
69075
  };
69046
- const path = pathToFunc("/clients/{id}")(pathParams);
69076
+ const path = pathToFunc("/clients/{organizationId}")(pathParams);
69047
69077
  const query = encodeFormQuery({
69048
69078
  embed: payload.embed
69049
69079
  });
@@ -70420,12 +70450,12 @@ async function $do28(client, request, options) {
70420
70450
  const payload = parsed.value;
70421
70451
  const body = null;
70422
70452
  const pathParams = {
70423
- id: encodeSimple("id", payload.id, {
70453
+ invoiceId: encodeSimple("invoiceId", payload.invoiceId, {
70424
70454
  explode: false,
70425
70455
  charEncoding: "percent"
70426
70456
  })
70427
70457
  };
70428
- const path = pathToFunc("/invoices/{id}")(pathParams);
70458
+ const path = pathToFunc("/invoices/{invoiceId}")(pathParams);
70429
70459
  const headers = new Headers(compactMap({
70430
70460
  Accept: "application/hal+json",
70431
70461
  "idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
@@ -71318,12 +71348,12 @@ async function $do35(client, request, options) {
71318
71348
  const payload = parsed.value;
71319
71349
  const body = null;
71320
71350
  const pathParams = {
71321
- id: encodeSimple("id", payload.id, {
71351
+ methodId: encodeSimple("methodId", payload.methodId, {
71322
71352
  explode: false,
71323
71353
  charEncoding: "percent"
71324
71354
  })
71325
71355
  };
71326
- const path = pathToFunc("/methods/{id}")(pathParams);
71356
+ const path = pathToFunc("/methods/{methodId}")(pathParams);
71327
71357
  const query = encodeFormQuery({
71328
71358
  currency: payload.currency,
71329
71359
  include: payload.include,
@@ -71830,12 +71860,12 @@ async function $do39(client, request, options) {
71830
71860
  const payload = parsed.value;
71831
71861
  const body = null;
71832
71862
  const pathParams = {
71833
- id: encodeSimple("id", payload.id, {
71863
+ organizationId: encodeSimple("organizationId", payload.organizationId, {
71834
71864
  explode: false,
71835
71865
  charEncoding: "percent"
71836
71866
  })
71837
71867
  };
71838
- const path = pathToFunc("/organizations/{id}")(pathParams);
71868
+ const path = pathToFunc("/organizations/{organizationId}")(pathParams);
71839
71869
  const query = encodeFormQuery({
71840
71870
  testmode: payload.testmode ?? client._options.testmode
71841
71871
  });
@@ -74066,12 +74096,12 @@ async function $do57(client, request, options) {
74066
74096
  const payload = parsed.value;
74067
74097
  const body = null;
74068
74098
  const pathParams = {
74069
- id: encodeSimple("id", payload.id, {
74099
+ profileId: encodeSimple("profileId", payload.profileId, {
74070
74100
  explode: false,
74071
74101
  charEncoding: "percent"
74072
74102
  })
74073
74103
  };
74074
- const path = pathToFunc("/profiles/{id}")(pathParams);
74104
+ const path = pathToFunc("/profiles/{profileId}")(pathParams);
74075
74105
  const headers = new Headers(compactMap({
74076
74106
  Accept: "application/hal+json",
74077
74107
  "idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
@@ -74185,12 +74215,12 @@ async function $do58(client, request, options) {
74185
74215
  const payload = parsed.value;
74186
74216
  const body = null;
74187
74217
  const pathParams = {
74188
- id: encodeSimple("id", payload.id, {
74218
+ profileId: encodeSimple("profileId", payload.profileId, {
74189
74219
  explode: false,
74190
74220
  charEncoding: "percent"
74191
74221
  })
74192
74222
  };
74193
- const path = pathToFunc("/profiles/{id}")(pathParams);
74223
+ const path = pathToFunc("/profiles/{profileId}")(pathParams);
74194
74224
  const query = encodeFormQuery({
74195
74225
  testmode: payload.testmode ?? client._options.testmode
74196
74226
  });
@@ -74547,12 +74577,12 @@ async function $do61(client, request, options) {
74547
74577
  const payload = parsed.value;
74548
74578
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
74549
74579
  const pathParams = {
74550
- id: encodeSimple("id", payload.id, {
74580
+ profileId: encodeSimple("profileId", payload.profileId, {
74551
74581
  explode: false,
74552
74582
  charEncoding: "percent"
74553
74583
  })
74554
74584
  };
74555
- const path = pathToFunc("/profiles/{id}")(pathParams);
74585
+ const path = pathToFunc("/profiles/{profileId}")(pathParams);
74556
74586
  const headers = new Headers(compactMap({
74557
74587
  "Content-Type": "application/json",
74558
74588
  Accept: "application/hal+json",
@@ -75440,12 +75470,12 @@ async function $do68(client, request, options) {
75440
75470
  explode: true
75441
75471
  });
75442
75472
  const pathParams = {
75443
- id: encodeSimple("id", payload.id, {
75473
+ salesInvoiceId: encodeSimple("salesInvoiceId", payload.salesInvoiceId, {
75444
75474
  explode: false,
75445
75475
  charEncoding: "percent"
75446
75476
  })
75447
75477
  };
75448
- const path = pathToFunc("/sales-invoices/{id}")(pathParams);
75478
+ const path = pathToFunc("/sales-invoices/{salesInvoiceId}")(pathParams);
75449
75479
  const headers = new Headers(compactMap({
75450
75480
  "Content-Type": "application/json",
75451
75481
  Accept: "application/hal+json",
@@ -75565,12 +75595,12 @@ async function $do69(client, request, options) {
75565
75595
  const payload = parsed.value;
75566
75596
  const body = null;
75567
75597
  const pathParams = {
75568
- id: encodeSimple("id", payload.id, {
75598
+ salesInvoiceId: encodeSimple("salesInvoiceId", payload.salesInvoiceId, {
75569
75599
  explode: false,
75570
75600
  charEncoding: "percent"
75571
75601
  })
75572
75602
  };
75573
- const path = pathToFunc("/sales-invoices/{id}")(pathParams);
75603
+ const path = pathToFunc("/sales-invoices/{salesInvoiceId}")(pathParams);
75574
75604
  const query = encodeFormQuery({
75575
75605
  testmode: payload.testmode ?? client._options.testmode
75576
75606
  });
@@ -75824,12 +75854,12 @@ async function $do71(client, request, options) {
75824
75854
  explode: true
75825
75855
  });
75826
75856
  const pathParams = {
75827
- id: encodeSimple("id", payload.id, {
75857
+ salesInvoiceId: encodeSimple("salesInvoiceId", payload.salesInvoiceId, {
75828
75858
  explode: false,
75829
75859
  charEncoding: "percent"
75830
75860
  })
75831
75861
  };
75832
- const path = pathToFunc("/sales-invoices/{id}")(pathParams);
75862
+ const path = pathToFunc("/sales-invoices/{salesInvoiceId}")(pathParams);
75833
75863
  const headers = new Headers(compactMap({
75834
75864
  "Content-Type": "application/json",
75835
75865
  Accept: "application/hal+json",
@@ -75953,12 +75983,12 @@ async function $do72(client, request, options) {
75953
75983
  const payload = parsed.value;
75954
75984
  const body = null;
75955
75985
  const pathParams = {
75956
- id: encodeSimple("id", payload.id, {
75986
+ settlementId: encodeSimple("settlementId", payload.settlementId, {
75957
75987
  explode: false,
75958
75988
  charEncoding: "percent"
75959
75989
  })
75960
75990
  };
75961
- const path = pathToFunc("/settlements/{id}")(pathParams);
75991
+ const path = pathToFunc("/settlements/{settlementId}")(pathParams);
75962
75992
  const headers = new Headers(compactMap({
75963
75993
  Accept: "application/hal+json",
75964
75994
  "idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
@@ -78272,12 +78302,12 @@ async function $do90(client, request, options) {
78272
78302
  const payload = parsed.value;
78273
78303
  const body = null;
78274
78304
  const pathParams = {
78275
- id: encodeSimple("id", payload.id, {
78305
+ webhookEventId: encodeSimple("webhookEventId", payload.webhookEventId, {
78276
78306
  explode: false,
78277
78307
  charEncoding: "percent"
78278
78308
  })
78279
78309
  };
78280
- const path = pathToFunc("/events/{id}")(pathParams);
78310
+ const path = pathToFunc("/events/{webhookEventId}")(pathParams);
78281
78311
  const query = encodeFormQuery({
78282
78312
  testmode: payload.testmode ?? client._options.testmode
78283
78313
  });
@@ -78515,12 +78545,12 @@ async function $do92(client, request, options) {
78515
78545
  const payload = parsed.value;
78516
78546
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
78517
78547
  const pathParams = {
78518
- id: encodeSimple("id", payload.id, {
78548
+ webhookId: encodeSimple("webhookId", payload.webhookId, {
78519
78549
  explode: false,
78520
78550
  charEncoding: "percent"
78521
78551
  })
78522
78552
  };
78523
- const path = pathToFunc("/webhooks/{id}")(pathParams);
78553
+ const path = pathToFunc("/webhooks/{webhookId}")(pathParams);
78524
78554
  const headers = new Headers(compactMap({
78525
78555
  "Content-Type": "application/json",
78526
78556
  Accept: "application/hal+json",
@@ -78635,12 +78665,12 @@ async function $do93(client, request, options) {
78635
78665
  const payload = parsed.value;
78636
78666
  const body = null;
78637
78667
  const pathParams = {
78638
- id: encodeSimple("id", payload.id, {
78668
+ webhookId: encodeSimple("webhookId", payload.webhookId, {
78639
78669
  explode: false,
78640
78670
  charEncoding: "percent"
78641
78671
  })
78642
78672
  };
78643
- const path = pathToFunc("/webhooks/{id}")(pathParams);
78673
+ const path = pathToFunc("/webhooks/{webhookId}")(pathParams);
78644
78674
  const query = encodeFormQuery({
78645
78675
  testmode: payload.testmode ?? client._options.testmode
78646
78676
  });
@@ -78884,12 +78914,12 @@ async function $do95(client, request, options) {
78884
78914
  const payload = parsed.value;
78885
78915
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
78886
78916
  const pathParams = {
78887
- id: encodeSimple("id", payload.id, {
78917
+ webhookId: encodeSimple("webhookId", payload.webhookId, {
78888
78918
  explode: false,
78889
78919
  charEncoding: "percent"
78890
78920
  })
78891
78921
  };
78892
- const path = pathToFunc("/webhooks/{id}/ping")(pathParams);
78922
+ const path = pathToFunc("/webhooks/{webhookId}/ping")(pathParams);
78893
78923
  const headers = new Headers(compactMap({
78894
78924
  "Content-Type": "application/json",
78895
78925
  Accept: "application/hal+json",
@@ -79004,12 +79034,12 @@ async function $do96(client, request, options) {
79004
79034
  const payload = parsed.value;
79005
79035
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
79006
79036
  const pathParams = {
79007
- id: encodeSimple("id", payload.id, {
79037
+ webhookId: encodeSimple("webhookId", payload.webhookId, {
79008
79038
  explode: false,
79009
79039
  charEncoding: "percent"
79010
79040
  })
79011
79041
  };
79012
- const path = pathToFunc("/webhooks/{id}")(pathParams);
79042
+ const path = pathToFunc("/webhooks/{webhookId}")(pathParams);
79013
79043
  const headers = new Headers(compactMap({
79014
79044
  "Content-Type": "application/json",
79015
79045
  Accept: "application/hal+json",
@@ -79119,7 +79149,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
79119
79149
  function createMCPServer(deps) {
79120
79150
  const server = new McpServer({
79121
79151
  name: "Client",
79122
- version: "1.0.1"
79152
+ version: "1.0.2"
79123
79153
  });
79124
79154
  const client = new ClientCore({
79125
79155
  security: deps.security,
@@ -80547,7 +80577,7 @@ var routes = an({
80547
80577
  var app = He(routes, {
80548
80578
  name: "mcp",
80549
80579
  versionInfo: {
80550
- currentVersion: "1.0.1"
80580
+ currentVersion: "1.0.2"
80551
80581
  }
80552
80582
  });
80553
80583
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -80555,5 +80585,5 @@ export {
80555
80585
  app
80556
80586
  };
80557
80587
 
80558
- //# debugId=0FF39F25170ABB5764756E2164756E21
80588
+ //# debugId=82EE91E6163374B464756E2164756E21
80559
80589
  //# sourceMappingURL=mcp-server.js.map