dodopayments-mcp 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +184 -0
  3. package/index.d.mts +2 -0
  4. package/index.d.mts.map +1 -0
  5. package/index.d.ts +2 -0
  6. package/index.d.ts.map +1 -0
  7. package/index.js +162 -0
  8. package/index.js.map +1 -0
  9. package/index.mjs +156 -0
  10. package/index.mjs.map +1 -0
  11. package/package.json +45 -0
  12. package/server.d.mts +30 -0
  13. package/server.d.mts.map +1 -0
  14. package/server.d.ts +30 -0
  15. package/server.d.ts.map +1 -0
  16. package/server.js +77 -0
  17. package/server.js.map +1 -0
  18. package/server.mjs +67 -0
  19. package/server.mjs.map +1 -0
  20. package/src/index.ts +190 -0
  21. package/src/server.ts +89 -0
  22. package/src/tools/customers/create-customers.ts +37 -0
  23. package/src/tools/customers/customer-portal/create-customers-customer-portal.ts +35 -0
  24. package/src/tools/customers/list-customers.ts +36 -0
  25. package/src/tools/customers/retrieve-customers.ts +31 -0
  26. package/src/tools/customers/update-customers.ts +37 -0
  27. package/src/tools/discounts/create-discounts.ts +61 -0
  28. package/src/tools/discounts/delete-discounts.ts +31 -0
  29. package/src/tools/discounts/list-discounts.ts +36 -0
  30. package/src/tools/discounts/retrieve-discounts.ts +31 -0
  31. package/src/tools/discounts/update-discounts.ts +62 -0
  32. package/src/tools/disputes/list-disputes.ts +66 -0
  33. package/src/tools/disputes/retrieve-disputes.ts +31 -0
  34. package/src/tools/index.ts +159 -0
  35. package/src/tools/invoices/payments/retrieve-invoices-payments.ts +31 -0
  36. package/src/tools/license-key-instances/list-license-key-instances.ts +40 -0
  37. package/src/tools/license-key-instances/retrieve-license-key-instances.ts +31 -0
  38. package/src/tools/license-key-instances/update-license-key-instances.ts +34 -0
  39. package/src/tools/license-keys/list-license-keys.ts +48 -0
  40. package/src/tools/license-keys/retrieve-license-keys.ts +31 -0
  41. package/src/tools/license-keys/update-license-keys.ts +47 -0
  42. package/src/tools/licenses/activate-licenses.ts +34 -0
  43. package/src/tools/licenses/deactivate-licenses.ts +34 -0
  44. package/src/tools/licenses/validate-licenses.ts +34 -0
  45. package/src/tools/misc/list-supported-countries-misc.ts +27 -0
  46. package/src/tools/payments/create-payments.ts +562 -0
  47. package/src/tools/payments/list-payments.ts +70 -0
  48. package/src/tools/payments/retrieve-payments.ts +31 -0
  49. package/src/tools/payouts/list-payouts.ts +36 -0
  50. package/src/tools/products/create-products.ts +476 -0
  51. package/src/tools/products/delete-products.ts +31 -0
  52. package/src/tools/products/images/update-products-images.ts +34 -0
  53. package/src/tools/products/list-products.ts +45 -0
  54. package/src/tools/products/retrieve-products.ts +31 -0
  55. package/src/tools/products/unarchive-products.ts +31 -0
  56. package/src/tools/products/update-products.ts +486 -0
  57. package/src/tools/refunds/create-refunds.ts +41 -0
  58. package/src/tools/refunds/list-refunds.ts +54 -0
  59. package/src/tools/refunds/retrieve-refunds.ts +31 -0
  60. package/src/tools/subscriptions/charge-subscriptions.ts +36 -0
  61. package/src/tools/subscriptions/create-subscriptions.ts +570 -0
  62. package/src/tools/subscriptions/list-subscriptions.ts +54 -0
  63. package/src/tools/subscriptions/retrieve-subscriptions.ts +31 -0
  64. package/src/tools/subscriptions/update-subscriptions.ts +38 -0
  65. package/src/tools/webhook-events/list-webhook-events.ts +54 -0
  66. package/src/tools/webhook-events/retrieve-webhook-events.ts +31 -0
  67. package/src/tools.ts +1 -0
  68. package/src/tsconfig.json +11 -0
  69. package/tools/customers/create-customers.d.mts +24 -0
  70. package/tools/customers/create-customers.d.mts.map +1 -0
  71. package/tools/customers/create-customers.d.ts +24 -0
  72. package/tools/customers/create-customers.d.ts.map +1 -0
  73. package/tools/customers/create-customers.js +34 -0
  74. package/tools/customers/create-customers.js.map +1 -0
  75. package/tools/customers/create-customers.mjs +30 -0
  76. package/tools/customers/create-customers.mjs.map +1 -0
  77. package/tools/customers/customer-portal/create-customers-customer-portal.d.mts +24 -0
  78. package/tools/customers/customer-portal/create-customers-customer-portal.d.mts.map +1 -0
  79. package/tools/customers/customer-portal/create-customers-customer-portal.d.ts +24 -0
  80. package/tools/customers/customer-portal/create-customers-customer-portal.d.ts.map +1 -0
  81. package/tools/customers/customer-portal/create-customers-customer-portal.js +32 -0
  82. package/tools/customers/customer-portal/create-customers-customer-portal.js.map +1 -0
  83. package/tools/customers/customer-portal/create-customers-customer-portal.mjs +28 -0
  84. package/tools/customers/customer-portal/create-customers-customer-portal.mjs.map +1 -0
  85. package/tools/customers/list-customers.d.mts +24 -0
  86. package/tools/customers/list-customers.d.mts.map +1 -0
  87. package/tools/customers/list-customers.d.ts +24 -0
  88. package/tools/customers/list-customers.d.ts.map +1 -0
  89. package/tools/customers/list-customers.js +33 -0
  90. package/tools/customers/list-customers.js.map +1 -0
  91. package/tools/customers/list-customers.mjs +29 -0
  92. package/tools/customers/list-customers.mjs.map +1 -0
  93. package/tools/customers/retrieve-customers.d.mts +24 -0
  94. package/tools/customers/retrieve-customers.d.mts.map +1 -0
  95. package/tools/customers/retrieve-customers.d.ts +24 -0
  96. package/tools/customers/retrieve-customers.d.ts.map +1 -0
  97. package/tools/customers/retrieve-customers.js +28 -0
  98. package/tools/customers/retrieve-customers.js.map +1 -0
  99. package/tools/customers/retrieve-customers.mjs +24 -0
  100. package/tools/customers/retrieve-customers.mjs.map +1 -0
  101. package/tools/customers/update-customers.d.mts +24 -0
  102. package/tools/customers/update-customers.d.mts.map +1 -0
  103. package/tools/customers/update-customers.d.ts +24 -0
  104. package/tools/customers/update-customers.d.ts.map +1 -0
  105. package/tools/customers/update-customers.js +34 -0
  106. package/tools/customers/update-customers.js.map +1 -0
  107. package/tools/customers/update-customers.mjs +30 -0
  108. package/tools/customers/update-customers.mjs.map +1 -0
  109. package/tools/discounts/create-discounts.d.mts +24 -0
  110. package/tools/discounts/create-discounts.d.mts.map +1 -0
  111. package/tools/discounts/create-discounts.d.ts +24 -0
  112. package/tools/discounts/create-discounts.d.ts.map +1 -0
  113. package/tools/discounts/create-discounts.js +56 -0
  114. package/tools/discounts/create-discounts.js.map +1 -0
  115. package/tools/discounts/create-discounts.mjs +52 -0
  116. package/tools/discounts/create-discounts.mjs.map +1 -0
  117. package/tools/discounts/delete-discounts.d.mts +24 -0
  118. package/tools/discounts/delete-discounts.d.mts.map +1 -0
  119. package/tools/discounts/delete-discounts.d.ts +24 -0
  120. package/tools/discounts/delete-discounts.d.ts.map +1 -0
  121. package/tools/discounts/delete-discounts.js +28 -0
  122. package/tools/discounts/delete-discounts.js.map +1 -0
  123. package/tools/discounts/delete-discounts.mjs +24 -0
  124. package/tools/discounts/delete-discounts.mjs.map +1 -0
  125. package/tools/discounts/list-discounts.d.mts +24 -0
  126. package/tools/discounts/list-discounts.d.mts.map +1 -0
  127. package/tools/discounts/list-discounts.d.ts +24 -0
  128. package/tools/discounts/list-discounts.d.ts.map +1 -0
  129. package/tools/discounts/list-discounts.js +33 -0
  130. package/tools/discounts/list-discounts.js.map +1 -0
  131. package/tools/discounts/list-discounts.mjs +29 -0
  132. package/tools/discounts/list-discounts.mjs.map +1 -0
  133. package/tools/discounts/retrieve-discounts.d.mts +24 -0
  134. package/tools/discounts/retrieve-discounts.d.mts.map +1 -0
  135. package/tools/discounts/retrieve-discounts.d.ts +24 -0
  136. package/tools/discounts/retrieve-discounts.d.ts.map +1 -0
  137. package/tools/discounts/retrieve-discounts.js +28 -0
  138. package/tools/discounts/retrieve-discounts.js.map +1 -0
  139. package/tools/discounts/retrieve-discounts.mjs +24 -0
  140. package/tools/discounts/retrieve-discounts.mjs.map +1 -0
  141. package/tools/discounts/update-discounts.d.mts +24 -0
  142. package/tools/discounts/update-discounts.d.mts.map +1 -0
  143. package/tools/discounts/update-discounts.d.ts +24 -0
  144. package/tools/discounts/update-discounts.d.ts.map +1 -0
  145. package/tools/discounts/update-discounts.js +57 -0
  146. package/tools/discounts/update-discounts.js.map +1 -0
  147. package/tools/discounts/update-discounts.mjs +53 -0
  148. package/tools/discounts/update-discounts.mjs.map +1 -0
  149. package/tools/disputes/list-disputes.d.mts +24 -0
  150. package/tools/disputes/list-disputes.d.mts.map +1 -0
  151. package/tools/disputes/list-disputes.d.ts +24 -0
  152. package/tools/disputes/list-disputes.d.ts.map +1 -0
  153. package/tools/disputes/list-disputes.js +63 -0
  154. package/tools/disputes/list-disputes.js.map +1 -0
  155. package/tools/disputes/list-disputes.mjs +59 -0
  156. package/tools/disputes/list-disputes.mjs.map +1 -0
  157. package/tools/disputes/retrieve-disputes.d.mts +24 -0
  158. package/tools/disputes/retrieve-disputes.d.mts.map +1 -0
  159. package/tools/disputes/retrieve-disputes.d.ts +24 -0
  160. package/tools/disputes/retrieve-disputes.d.ts.map +1 -0
  161. package/tools/disputes/retrieve-disputes.js +28 -0
  162. package/tools/disputes/retrieve-disputes.js.map +1 -0
  163. package/tools/disputes/retrieve-disputes.mjs +24 -0
  164. package/tools/disputes/retrieve-disputes.mjs.map +1 -0
  165. package/tools/index.d.mts +21 -0
  166. package/tools/index.d.mts.map +1 -0
  167. package/tools/index.d.ts +21 -0
  168. package/tools/index.d.ts.map +1 -0
  169. package/tools/index.js +134 -0
  170. package/tools/index.js.map +1 -0
  171. package/tools/index.mjs +127 -0
  172. package/tools/index.mjs.map +1 -0
  173. package/tools/invoices/payments/retrieve-invoices-payments.d.mts +24 -0
  174. package/tools/invoices/payments/retrieve-invoices-payments.d.mts.map +1 -0
  175. package/tools/invoices/payments/retrieve-invoices-payments.d.ts +24 -0
  176. package/tools/invoices/payments/retrieve-invoices-payments.d.ts.map +1 -0
  177. package/tools/invoices/payments/retrieve-invoices-payments.js +28 -0
  178. package/tools/invoices/payments/retrieve-invoices-payments.js.map +1 -0
  179. package/tools/invoices/payments/retrieve-invoices-payments.mjs +24 -0
  180. package/tools/invoices/payments/retrieve-invoices-payments.mjs.map +1 -0
  181. package/tools/license-key-instances/list-license-key-instances.d.mts +24 -0
  182. package/tools/license-key-instances/list-license-key-instances.d.mts.map +1 -0
  183. package/tools/license-key-instances/list-license-key-instances.d.ts +24 -0
  184. package/tools/license-key-instances/list-license-key-instances.d.ts.map +1 -0
  185. package/tools/license-key-instances/list-license-key-instances.js +37 -0
  186. package/tools/license-key-instances/list-license-key-instances.js.map +1 -0
  187. package/tools/license-key-instances/list-license-key-instances.mjs +33 -0
  188. package/tools/license-key-instances/list-license-key-instances.mjs.map +1 -0
  189. package/tools/license-key-instances/retrieve-license-key-instances.d.mts +24 -0
  190. package/tools/license-key-instances/retrieve-license-key-instances.d.mts.map +1 -0
  191. package/tools/license-key-instances/retrieve-license-key-instances.d.ts +24 -0
  192. package/tools/license-key-instances/retrieve-license-key-instances.d.ts.map +1 -0
  193. package/tools/license-key-instances/retrieve-license-key-instances.js +28 -0
  194. package/tools/license-key-instances/retrieve-license-key-instances.js.map +1 -0
  195. package/tools/license-key-instances/retrieve-license-key-instances.mjs +24 -0
  196. package/tools/license-key-instances/retrieve-license-key-instances.mjs.map +1 -0
  197. package/tools/license-key-instances/update-license-key-instances.d.mts +24 -0
  198. package/tools/license-key-instances/update-license-key-instances.d.mts.map +1 -0
  199. package/tools/license-key-instances/update-license-key-instances.d.ts +24 -0
  200. package/tools/license-key-instances/update-license-key-instances.d.ts.map +1 -0
  201. package/tools/license-key-instances/update-license-key-instances.js +31 -0
  202. package/tools/license-key-instances/update-license-key-instances.js.map +1 -0
  203. package/tools/license-key-instances/update-license-key-instances.mjs +27 -0
  204. package/tools/license-key-instances/update-license-key-instances.mjs.map +1 -0
  205. package/tools/license-keys/list-license-keys.d.mts +24 -0
  206. package/tools/license-keys/list-license-keys.d.mts.map +1 -0
  207. package/tools/license-keys/list-license-keys.d.ts +24 -0
  208. package/tools/license-keys/list-license-keys.d.ts.map +1 -0
  209. package/tools/license-keys/list-license-keys.js +45 -0
  210. package/tools/license-keys/list-license-keys.js.map +1 -0
  211. package/tools/license-keys/list-license-keys.mjs +41 -0
  212. package/tools/license-keys/list-license-keys.mjs.map +1 -0
  213. package/tools/license-keys/retrieve-license-keys.d.mts +24 -0
  214. package/tools/license-keys/retrieve-license-keys.d.mts.map +1 -0
  215. package/tools/license-keys/retrieve-license-keys.d.ts +24 -0
  216. package/tools/license-keys/retrieve-license-keys.d.ts.map +1 -0
  217. package/tools/license-keys/retrieve-license-keys.js +28 -0
  218. package/tools/license-keys/retrieve-license-keys.js.map +1 -0
  219. package/tools/license-keys/retrieve-license-keys.mjs +24 -0
  220. package/tools/license-keys/retrieve-license-keys.mjs.map +1 -0
  221. package/tools/license-keys/update-license-keys.d.mts +24 -0
  222. package/tools/license-keys/update-license-keys.d.mts.map +1 -0
  223. package/tools/license-keys/update-license-keys.d.ts +24 -0
  224. package/tools/license-keys/update-license-keys.d.ts.map +1 -0
  225. package/tools/license-keys/update-license-keys.js +41 -0
  226. package/tools/license-keys/update-license-keys.js.map +1 -0
  227. package/tools/license-keys/update-license-keys.mjs +37 -0
  228. package/tools/license-keys/update-license-keys.mjs.map +1 -0
  229. package/tools/licenses/activate-licenses.d.mts +24 -0
  230. package/tools/licenses/activate-licenses.d.mts.map +1 -0
  231. package/tools/licenses/activate-licenses.d.ts +24 -0
  232. package/tools/licenses/activate-licenses.d.ts.map +1 -0
  233. package/tools/licenses/activate-licenses.js +31 -0
  234. package/tools/licenses/activate-licenses.js.map +1 -0
  235. package/tools/licenses/activate-licenses.mjs +27 -0
  236. package/tools/licenses/activate-licenses.mjs.map +1 -0
  237. package/tools/licenses/deactivate-licenses.d.mts +24 -0
  238. package/tools/licenses/deactivate-licenses.d.mts.map +1 -0
  239. package/tools/licenses/deactivate-licenses.d.ts +24 -0
  240. package/tools/licenses/deactivate-licenses.d.ts.map +1 -0
  241. package/tools/licenses/deactivate-licenses.js +31 -0
  242. package/tools/licenses/deactivate-licenses.js.map +1 -0
  243. package/tools/licenses/deactivate-licenses.mjs +27 -0
  244. package/tools/licenses/deactivate-licenses.mjs.map +1 -0
  245. package/tools/licenses/validate-licenses.d.mts +24 -0
  246. package/tools/licenses/validate-licenses.d.mts.map +1 -0
  247. package/tools/licenses/validate-licenses.d.ts +24 -0
  248. package/tools/licenses/validate-licenses.d.ts.map +1 -0
  249. package/tools/licenses/validate-licenses.js +31 -0
  250. package/tools/licenses/validate-licenses.js.map +1 -0
  251. package/tools/licenses/validate-licenses.mjs +27 -0
  252. package/tools/licenses/validate-licenses.mjs.map +1 -0
  253. package/tools/misc/list-supported-countries-misc.d.mts +24 -0
  254. package/tools/misc/list-supported-countries-misc.d.mts.map +1 -0
  255. package/tools/misc/list-supported-countries-misc.d.ts +24 -0
  256. package/tools/misc/list-supported-countries-misc.d.ts.map +1 -0
  257. package/tools/misc/list-supported-countries-misc.js +24 -0
  258. package/tools/misc/list-supported-countries-misc.js.map +1 -0
  259. package/tools/misc/list-supported-countries-misc.mjs +20 -0
  260. package/tools/misc/list-supported-countries-misc.mjs.map +1 -0
  261. package/tools/payments/create-payments.d.mts +24 -0
  262. package/tools/payments/create-payments.d.mts.map +1 -0
  263. package/tools/payments/create-payments.d.ts +24 -0
  264. package/tools/payments/create-payments.d.ts.map +1 -0
  265. package/tools/payments/create-payments.js +555 -0
  266. package/tools/payments/create-payments.js.map +1 -0
  267. package/tools/payments/create-payments.mjs +551 -0
  268. package/tools/payments/create-payments.mjs.map +1 -0
  269. package/tools/payments/list-payments.d.mts +24 -0
  270. package/tools/payments/list-payments.d.mts.map +1 -0
  271. package/tools/payments/list-payments.d.ts +24 -0
  272. package/tools/payments/list-payments.d.ts.map +1 -0
  273. package/tools/payments/list-payments.js +67 -0
  274. package/tools/payments/list-payments.js.map +1 -0
  275. package/tools/payments/list-payments.mjs +63 -0
  276. package/tools/payments/list-payments.mjs.map +1 -0
  277. package/tools/payments/retrieve-payments.d.mts +24 -0
  278. package/tools/payments/retrieve-payments.d.mts.map +1 -0
  279. package/tools/payments/retrieve-payments.d.ts +24 -0
  280. package/tools/payments/retrieve-payments.d.ts.map +1 -0
  281. package/tools/payments/retrieve-payments.js +28 -0
  282. package/tools/payments/retrieve-payments.js.map +1 -0
  283. package/tools/payments/retrieve-payments.mjs +24 -0
  284. package/tools/payments/retrieve-payments.mjs.map +1 -0
  285. package/tools/payouts/list-payouts.d.mts +24 -0
  286. package/tools/payouts/list-payouts.d.mts.map +1 -0
  287. package/tools/payouts/list-payouts.d.ts +24 -0
  288. package/tools/payouts/list-payouts.d.ts.map +1 -0
  289. package/tools/payouts/list-payouts.js +33 -0
  290. package/tools/payouts/list-payouts.js.map +1 -0
  291. package/tools/payouts/list-payouts.mjs +29 -0
  292. package/tools/payouts/list-payouts.mjs.map +1 -0
  293. package/tools/products/create-products.d.mts +24 -0
  294. package/tools/products/create-products.d.mts.map +1 -0
  295. package/tools/products/create-products.d.ts +24 -0
  296. package/tools/products/create-products.d.ts.map +1 -0
  297. package/tools/products/create-products.js +464 -0
  298. package/tools/products/create-products.js.map +1 -0
  299. package/tools/products/create-products.mjs +460 -0
  300. package/tools/products/create-products.mjs.map +1 -0
  301. package/tools/products/delete-products.d.mts +24 -0
  302. package/tools/products/delete-products.d.mts.map +1 -0
  303. package/tools/products/delete-products.d.ts +24 -0
  304. package/tools/products/delete-products.d.ts.map +1 -0
  305. package/tools/products/delete-products.js +28 -0
  306. package/tools/products/delete-products.js.map +1 -0
  307. package/tools/products/delete-products.mjs +24 -0
  308. package/tools/products/delete-products.mjs.map +1 -0
  309. package/tools/products/images/update-products-images.d.mts +24 -0
  310. package/tools/products/images/update-products-images.d.mts.map +1 -0
  311. package/tools/products/images/update-products-images.d.ts +24 -0
  312. package/tools/products/images/update-products-images.d.ts.map +1 -0
  313. package/tools/products/images/update-products-images.js +31 -0
  314. package/tools/products/images/update-products-images.js.map +1 -0
  315. package/tools/products/images/update-products-images.mjs +27 -0
  316. package/tools/products/images/update-products-images.mjs.map +1 -0
  317. package/tools/products/list-products.d.mts +24 -0
  318. package/tools/products/list-products.d.mts.map +1 -0
  319. package/tools/products/list-products.d.ts +24 -0
  320. package/tools/products/list-products.d.ts.map +1 -0
  321. package/tools/products/list-products.js +41 -0
  322. package/tools/products/list-products.js.map +1 -0
  323. package/tools/products/list-products.mjs +37 -0
  324. package/tools/products/list-products.mjs.map +1 -0
  325. package/tools/products/retrieve-products.d.mts +24 -0
  326. package/tools/products/retrieve-products.d.mts.map +1 -0
  327. package/tools/products/retrieve-products.d.ts +24 -0
  328. package/tools/products/retrieve-products.d.ts.map +1 -0
  329. package/tools/products/retrieve-products.js +28 -0
  330. package/tools/products/retrieve-products.js.map +1 -0
  331. package/tools/products/retrieve-products.mjs +24 -0
  332. package/tools/products/retrieve-products.mjs.map +1 -0
  333. package/tools/products/unarchive-products.d.mts +24 -0
  334. package/tools/products/unarchive-products.d.mts.map +1 -0
  335. package/tools/products/unarchive-products.d.ts +24 -0
  336. package/tools/products/unarchive-products.d.ts.map +1 -0
  337. package/tools/products/unarchive-products.js +28 -0
  338. package/tools/products/unarchive-products.js.map +1 -0
  339. package/tools/products/unarchive-products.mjs +24 -0
  340. package/tools/products/unarchive-products.mjs.map +1 -0
  341. package/tools/products/update-products.d.mts +24 -0
  342. package/tools/products/update-products.d.mts.map +1 -0
  343. package/tools/products/update-products.d.ts +24 -0
  344. package/tools/products/update-products.d.ts.map +1 -0
  345. package/tools/products/update-products.js +471 -0
  346. package/tools/products/update-products.js.map +1 -0
  347. package/tools/products/update-products.mjs +467 -0
  348. package/tools/products/update-products.mjs.map +1 -0
  349. package/tools/refunds/create-refunds.d.mts +24 -0
  350. package/tools/refunds/create-refunds.d.mts.map +1 -0
  351. package/tools/refunds/create-refunds.d.ts +24 -0
  352. package/tools/refunds/create-refunds.d.ts.map +1 -0
  353. package/tools/refunds/create-refunds.js +37 -0
  354. package/tools/refunds/create-refunds.js.map +1 -0
  355. package/tools/refunds/create-refunds.mjs +33 -0
  356. package/tools/refunds/create-refunds.mjs.map +1 -0
  357. package/tools/refunds/list-refunds.d.mts +24 -0
  358. package/tools/refunds/list-refunds.d.mts.map +1 -0
  359. package/tools/refunds/list-refunds.d.ts +24 -0
  360. package/tools/refunds/list-refunds.d.ts.map +1 -0
  361. package/tools/refunds/list-refunds.js +51 -0
  362. package/tools/refunds/list-refunds.js.map +1 -0
  363. package/tools/refunds/list-refunds.mjs +47 -0
  364. package/tools/refunds/list-refunds.mjs.map +1 -0
  365. package/tools/refunds/retrieve-refunds.d.mts +24 -0
  366. package/tools/refunds/retrieve-refunds.d.mts.map +1 -0
  367. package/tools/refunds/retrieve-refunds.d.ts +24 -0
  368. package/tools/refunds/retrieve-refunds.d.ts.map +1 -0
  369. package/tools/refunds/retrieve-refunds.js +28 -0
  370. package/tools/refunds/retrieve-refunds.js.map +1 -0
  371. package/tools/refunds/retrieve-refunds.mjs +24 -0
  372. package/tools/refunds/retrieve-refunds.mjs.map +1 -0
  373. package/tools/subscriptions/charge-subscriptions.d.mts +24 -0
  374. package/tools/subscriptions/charge-subscriptions.d.mts.map +1 -0
  375. package/tools/subscriptions/charge-subscriptions.d.ts +24 -0
  376. package/tools/subscriptions/charge-subscriptions.d.ts.map +1 -0
  377. package/tools/subscriptions/charge-subscriptions.js +32 -0
  378. package/tools/subscriptions/charge-subscriptions.js.map +1 -0
  379. package/tools/subscriptions/charge-subscriptions.mjs +28 -0
  380. package/tools/subscriptions/charge-subscriptions.mjs.map +1 -0
  381. package/tools/subscriptions/create-subscriptions.d.mts +24 -0
  382. package/tools/subscriptions/create-subscriptions.d.mts.map +1 -0
  383. package/tools/subscriptions/create-subscriptions.d.ts +24 -0
  384. package/tools/subscriptions/create-subscriptions.d.ts.map +1 -0
  385. package/tools/subscriptions/create-subscriptions.js +561 -0
  386. package/tools/subscriptions/create-subscriptions.js.map +1 -0
  387. package/tools/subscriptions/create-subscriptions.mjs +557 -0
  388. package/tools/subscriptions/create-subscriptions.mjs.map +1 -0
  389. package/tools/subscriptions/list-subscriptions.d.mts +24 -0
  390. package/tools/subscriptions/list-subscriptions.d.mts.map +1 -0
  391. package/tools/subscriptions/list-subscriptions.d.ts +24 -0
  392. package/tools/subscriptions/list-subscriptions.d.ts.map +1 -0
  393. package/tools/subscriptions/list-subscriptions.js +51 -0
  394. package/tools/subscriptions/list-subscriptions.js.map +1 -0
  395. package/tools/subscriptions/list-subscriptions.mjs +47 -0
  396. package/tools/subscriptions/list-subscriptions.mjs.map +1 -0
  397. package/tools/subscriptions/retrieve-subscriptions.d.mts +24 -0
  398. package/tools/subscriptions/retrieve-subscriptions.d.mts.map +1 -0
  399. package/tools/subscriptions/retrieve-subscriptions.d.ts +24 -0
  400. package/tools/subscriptions/retrieve-subscriptions.d.ts.map +1 -0
  401. package/tools/subscriptions/retrieve-subscriptions.js +28 -0
  402. package/tools/subscriptions/retrieve-subscriptions.js.map +1 -0
  403. package/tools/subscriptions/retrieve-subscriptions.mjs +24 -0
  404. package/tools/subscriptions/retrieve-subscriptions.mjs.map +1 -0
  405. package/tools/subscriptions/update-subscriptions.d.mts +24 -0
  406. package/tools/subscriptions/update-subscriptions.d.mts.map +1 -0
  407. package/tools/subscriptions/update-subscriptions.d.ts +24 -0
  408. package/tools/subscriptions/update-subscriptions.d.ts.map +1 -0
  409. package/tools/subscriptions/update-subscriptions.js +35 -0
  410. package/tools/subscriptions/update-subscriptions.js.map +1 -0
  411. package/tools/subscriptions/update-subscriptions.mjs +31 -0
  412. package/tools/subscriptions/update-subscriptions.mjs.map +1 -0
  413. package/tools/webhook-events/list-webhook-events.d.mts +24 -0
  414. package/tools/webhook-events/list-webhook-events.d.mts.map +1 -0
  415. package/tools/webhook-events/list-webhook-events.d.ts +24 -0
  416. package/tools/webhook-events/list-webhook-events.d.ts.map +1 -0
  417. package/tools/webhook-events/list-webhook-events.js +51 -0
  418. package/tools/webhook-events/list-webhook-events.js.map +1 -0
  419. package/tools/webhook-events/list-webhook-events.mjs +47 -0
  420. package/tools/webhook-events/list-webhook-events.mjs.map +1 -0
  421. package/tools/webhook-events/retrieve-webhook-events.d.mts +24 -0
  422. package/tools/webhook-events/retrieve-webhook-events.d.mts.map +1 -0
  423. package/tools/webhook-events/retrieve-webhook-events.d.ts +24 -0
  424. package/tools/webhook-events/retrieve-webhook-events.d.ts.map +1 -0
  425. package/tools/webhook-events/retrieve-webhook-events.js +28 -0
  426. package/tools/webhook-events/retrieve-webhook-events.js.map +1 -0
  427. package/tools/webhook-events/retrieve-webhook-events.mjs +24 -0
  428. package/tools/webhook-events/retrieve-webhook-events.mjs.map +1 -0
  429. package/tools.d.mts +2 -0
  430. package/tools.d.mts.map +1 -0
  431. package/tools.d.ts +2 -0
  432. package/tools.d.ts.map +1 -0
  433. package/tools.js +18 -0
  434. package/tools.js.map +1 -0
  435. package/tools.mjs +2 -0
  436. package/tools.mjs.map +1 -0
@@ -0,0 +1,476 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import DodoPayments from 'dodopayments';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'products',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'create_products',
15
+ description: '',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ price: {
20
+ anyOf: [
21
+ {
22
+ type: 'object',
23
+ title: 'One Time Price',
24
+ properties: {
25
+ currency: {
26
+ type: 'string',
27
+ enum: [
28
+ 'AED',
29
+ 'ALL',
30
+ 'AMD',
31
+ 'ANG',
32
+ 'AOA',
33
+ 'ARS',
34
+ 'AUD',
35
+ 'AWG',
36
+ 'AZN',
37
+ 'BAM',
38
+ 'BBD',
39
+ 'BDT',
40
+ 'BGN',
41
+ 'BHD',
42
+ 'BIF',
43
+ 'BMD',
44
+ 'BND',
45
+ 'BOB',
46
+ 'BRL',
47
+ 'BSD',
48
+ 'BWP',
49
+ 'BYN',
50
+ 'BZD',
51
+ 'CAD',
52
+ 'CHF',
53
+ 'CLP',
54
+ 'CNY',
55
+ 'COP',
56
+ 'CRC',
57
+ 'CUP',
58
+ 'CVE',
59
+ 'CZK',
60
+ 'DJF',
61
+ 'DKK',
62
+ 'DOP',
63
+ 'DZD',
64
+ 'EGP',
65
+ 'ETB',
66
+ 'EUR',
67
+ 'FJD',
68
+ 'FKP',
69
+ 'GBP',
70
+ 'GEL',
71
+ 'GHS',
72
+ 'GIP',
73
+ 'GMD',
74
+ 'GNF',
75
+ 'GTQ',
76
+ 'GYD',
77
+ 'HKD',
78
+ 'HNL',
79
+ 'HRK',
80
+ 'HTG',
81
+ 'HUF',
82
+ 'IDR',
83
+ 'ILS',
84
+ 'INR',
85
+ 'IQD',
86
+ 'JMD',
87
+ 'JOD',
88
+ 'JPY',
89
+ 'KES',
90
+ 'KGS',
91
+ 'KHR',
92
+ 'KMF',
93
+ 'KRW',
94
+ 'KWD',
95
+ 'KYD',
96
+ 'KZT',
97
+ 'LAK',
98
+ 'LBP',
99
+ 'LKR',
100
+ 'LRD',
101
+ 'LSL',
102
+ 'LYD',
103
+ 'MAD',
104
+ 'MDL',
105
+ 'MGA',
106
+ 'MKD',
107
+ 'MMK',
108
+ 'MNT',
109
+ 'MOP',
110
+ 'MRU',
111
+ 'MUR',
112
+ 'MVR',
113
+ 'MWK',
114
+ 'MXN',
115
+ 'MYR',
116
+ 'MZN',
117
+ 'NAD',
118
+ 'NGN',
119
+ 'NIO',
120
+ 'NOK',
121
+ 'NPR',
122
+ 'NZD',
123
+ 'OMR',
124
+ 'PAB',
125
+ 'PEN',
126
+ 'PGK',
127
+ 'PHP',
128
+ 'PKR',
129
+ 'PLN',
130
+ 'PYG',
131
+ 'QAR',
132
+ 'RON',
133
+ 'RSD',
134
+ 'RUB',
135
+ 'RWF',
136
+ 'SAR',
137
+ 'SBD',
138
+ 'SCR',
139
+ 'SEK',
140
+ 'SGD',
141
+ 'SHP',
142
+ 'SLE',
143
+ 'SLL',
144
+ 'SOS',
145
+ 'SRD',
146
+ 'SSP',
147
+ 'STN',
148
+ 'SVC',
149
+ 'SZL',
150
+ 'THB',
151
+ 'TND',
152
+ 'TOP',
153
+ 'TRY',
154
+ 'TTD',
155
+ 'TWD',
156
+ 'TZS',
157
+ 'UAH',
158
+ 'UGX',
159
+ 'USD',
160
+ 'UYU',
161
+ 'UZS',
162
+ 'VES',
163
+ 'VND',
164
+ 'VUV',
165
+ 'WST',
166
+ 'XAF',
167
+ 'XCD',
168
+ 'XOF',
169
+ 'XPF',
170
+ 'YER',
171
+ 'ZAR',
172
+ 'ZMW',
173
+ ],
174
+ },
175
+ discount: {
176
+ type: 'number',
177
+ description: 'Discount applied to the price, represented as a percentage (0 to 100).',
178
+ },
179
+ price: {
180
+ type: 'integer',
181
+ description:
182
+ 'The payment amount, in the smallest denomination of the currency (e.g., cents for USD).\nFor example, to charge $1.00, pass `100`.\n\nIf [`pay_what_you_want`](Self::pay_what_you_want) is set to `true`, this field represents\nthe **minimum** amount the customer must pay.',
183
+ },
184
+ purchasing_power_parity: {
185
+ type: 'boolean',
186
+ description:
187
+ 'Indicates if purchasing power parity adjustments are applied to the price.\nPurchasing power parity feature is not available as of now.',
188
+ },
189
+ type: {
190
+ type: 'string',
191
+ enum: ['one_time_price'],
192
+ },
193
+ pay_what_you_want: {
194
+ type: 'boolean',
195
+ description:
196
+ 'Indicates whether the customer can pay any amount they choose.\nIf set to `true`, the [`price`](Self::price) field is the minimum amount.',
197
+ },
198
+ suggested_price: {
199
+ type: 'integer',
200
+ description:
201
+ 'A suggested price for the user to pay. This value is only considered if\n[`pay_what_you_want`](Self::pay_what_you_want) is `true`. Otherwise, it is ignored.',
202
+ },
203
+ tax_inclusive: {
204
+ type: 'boolean',
205
+ description: 'Indicates if the price is tax inclusive.',
206
+ },
207
+ },
208
+ required: ['currency', 'discount', 'price', 'purchasing_power_parity', 'type'],
209
+ },
210
+ {
211
+ type: 'object',
212
+ title: 'Recurring Price',
213
+ properties: {
214
+ currency: {
215
+ type: 'string',
216
+ enum: [
217
+ 'AED',
218
+ 'ALL',
219
+ 'AMD',
220
+ 'ANG',
221
+ 'AOA',
222
+ 'ARS',
223
+ 'AUD',
224
+ 'AWG',
225
+ 'AZN',
226
+ 'BAM',
227
+ 'BBD',
228
+ 'BDT',
229
+ 'BGN',
230
+ 'BHD',
231
+ 'BIF',
232
+ 'BMD',
233
+ 'BND',
234
+ 'BOB',
235
+ 'BRL',
236
+ 'BSD',
237
+ 'BWP',
238
+ 'BYN',
239
+ 'BZD',
240
+ 'CAD',
241
+ 'CHF',
242
+ 'CLP',
243
+ 'CNY',
244
+ 'COP',
245
+ 'CRC',
246
+ 'CUP',
247
+ 'CVE',
248
+ 'CZK',
249
+ 'DJF',
250
+ 'DKK',
251
+ 'DOP',
252
+ 'DZD',
253
+ 'EGP',
254
+ 'ETB',
255
+ 'EUR',
256
+ 'FJD',
257
+ 'FKP',
258
+ 'GBP',
259
+ 'GEL',
260
+ 'GHS',
261
+ 'GIP',
262
+ 'GMD',
263
+ 'GNF',
264
+ 'GTQ',
265
+ 'GYD',
266
+ 'HKD',
267
+ 'HNL',
268
+ 'HRK',
269
+ 'HTG',
270
+ 'HUF',
271
+ 'IDR',
272
+ 'ILS',
273
+ 'INR',
274
+ 'IQD',
275
+ 'JMD',
276
+ 'JOD',
277
+ 'JPY',
278
+ 'KES',
279
+ 'KGS',
280
+ 'KHR',
281
+ 'KMF',
282
+ 'KRW',
283
+ 'KWD',
284
+ 'KYD',
285
+ 'KZT',
286
+ 'LAK',
287
+ 'LBP',
288
+ 'LKR',
289
+ 'LRD',
290
+ 'LSL',
291
+ 'LYD',
292
+ 'MAD',
293
+ 'MDL',
294
+ 'MGA',
295
+ 'MKD',
296
+ 'MMK',
297
+ 'MNT',
298
+ 'MOP',
299
+ 'MRU',
300
+ 'MUR',
301
+ 'MVR',
302
+ 'MWK',
303
+ 'MXN',
304
+ 'MYR',
305
+ 'MZN',
306
+ 'NAD',
307
+ 'NGN',
308
+ 'NIO',
309
+ 'NOK',
310
+ 'NPR',
311
+ 'NZD',
312
+ 'OMR',
313
+ 'PAB',
314
+ 'PEN',
315
+ 'PGK',
316
+ 'PHP',
317
+ 'PKR',
318
+ 'PLN',
319
+ 'PYG',
320
+ 'QAR',
321
+ 'RON',
322
+ 'RSD',
323
+ 'RUB',
324
+ 'RWF',
325
+ 'SAR',
326
+ 'SBD',
327
+ 'SCR',
328
+ 'SEK',
329
+ 'SGD',
330
+ 'SHP',
331
+ 'SLE',
332
+ 'SLL',
333
+ 'SOS',
334
+ 'SRD',
335
+ 'SSP',
336
+ 'STN',
337
+ 'SVC',
338
+ 'SZL',
339
+ 'THB',
340
+ 'TND',
341
+ 'TOP',
342
+ 'TRY',
343
+ 'TTD',
344
+ 'TWD',
345
+ 'TZS',
346
+ 'UAH',
347
+ 'UGX',
348
+ 'USD',
349
+ 'UYU',
350
+ 'UZS',
351
+ 'VES',
352
+ 'VND',
353
+ 'VUV',
354
+ 'WST',
355
+ 'XAF',
356
+ 'XCD',
357
+ 'XOF',
358
+ 'XPF',
359
+ 'YER',
360
+ 'ZAR',
361
+ 'ZMW',
362
+ ],
363
+ },
364
+ discount: {
365
+ type: 'number',
366
+ description: 'Discount applied to the price, represented as a percentage (0 to 100).',
367
+ },
368
+ payment_frequency_count: {
369
+ type: 'integer',
370
+ description:
371
+ 'Number of units for the payment frequency.\nFor example, a value of `1` with a `payment_frequency_interval` of `month` represents monthly payments.',
372
+ },
373
+ payment_frequency_interval: {
374
+ type: 'string',
375
+ enum: ['Day', 'Week', 'Month', 'Year'],
376
+ },
377
+ price: {
378
+ type: 'integer',
379
+ description:
380
+ 'The payment amount. Represented in the lowest denomination of the currency (e.g., cents for USD).\nFor example, to charge $1.00, pass `100`.',
381
+ },
382
+ purchasing_power_parity: {
383
+ type: 'boolean',
384
+ description:
385
+ 'Indicates if purchasing power parity adjustments are applied to the price.\nPurchasing power parity feature is not available as of now',
386
+ },
387
+ subscription_period_count: {
388
+ type: 'integer',
389
+ description:
390
+ 'Number of units for the subscription period.\nFor example, a value of `12` with a `subscription_period_interval` of `month` represents a one-year subscription.',
391
+ },
392
+ subscription_period_interval: {
393
+ $ref: '#/properties/price/anyOf/1/payment_frequency_interval',
394
+ },
395
+ type: {
396
+ type: 'string',
397
+ enum: ['recurring_price'],
398
+ },
399
+ tax_inclusive: {
400
+ type: 'boolean',
401
+ description: 'Indicates if the price is tax inclusive',
402
+ },
403
+ trial_period_days: {
404
+ type: 'integer',
405
+ description: 'Number of days for the trial period. A value of `0` indicates no trial period.',
406
+ },
407
+ },
408
+ required: [
409
+ 'currency',
410
+ 'discount',
411
+ 'payment_frequency_count',
412
+ 'payment_frequency_interval',
413
+ 'price',
414
+ 'purchasing_power_parity',
415
+ 'subscription_period_count',
416
+ 'subscription_period_interval',
417
+ 'type',
418
+ ],
419
+ },
420
+ ],
421
+ },
422
+ tax_category: {
423
+ type: 'string',
424
+ description:
425
+ 'Represents the different categories of taxation applicable to various products and services.',
426
+ enum: ['digital_products', 'saas', 'e_book', 'edtech'],
427
+ },
428
+ addons: {
429
+ type: 'array',
430
+ description: 'Addons available for subscription product',
431
+ items: {
432
+ type: 'string',
433
+ },
434
+ },
435
+ description: {
436
+ type: 'string',
437
+ description: 'Optional description of the product',
438
+ },
439
+ license_key_activation_message: {
440
+ type: 'string',
441
+ description: 'Optional message displayed during license key activation',
442
+ },
443
+ license_key_activations_limit: {
444
+ type: 'integer',
445
+ description: 'The number of times the license key can be activated.\nMust be 0 or greater',
446
+ },
447
+ license_key_duration: {
448
+ type: 'object',
449
+ properties: {
450
+ count: {
451
+ type: 'integer',
452
+ },
453
+ interval: {
454
+ $ref: '#/properties/price/anyOf/1/payment_frequency_interval',
455
+ },
456
+ },
457
+ required: ['count', 'interval'],
458
+ },
459
+ license_key_enabled: {
460
+ type: 'boolean',
461
+ description: 'When true, generates and sends a license key to your customer.\nDefaults to false',
462
+ },
463
+ name: {
464
+ type: 'string',
465
+ description: 'Optional name of the product',
466
+ },
467
+ },
468
+ },
469
+ };
470
+
471
+ export const handler = (client: DodoPayments, args: any) => {
472
+ const { ...body } = args;
473
+ return client.products.create(body);
474
+ };
475
+
476
+ export default { metadata, tool, handler };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import DodoPayments from 'dodopayments';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'products',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'delete_products',
15
+ description: '',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ id: {
20
+ type: 'string',
21
+ },
22
+ },
23
+ },
24
+ };
25
+
26
+ export const handler = (client: DodoPayments, args: any) => {
27
+ const { id } = args;
28
+ return client.products.delete(id);
29
+ };
30
+
31
+ export default { metadata, tool, handler };
@@ -0,0 +1,34 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../../';
5
+ import DodoPayments from 'dodopayments';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'products.images',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'update_products_images',
15
+ description: '',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ id: {
20
+ type: 'string',
21
+ },
22
+ force_update: {
23
+ type: 'boolean',
24
+ },
25
+ },
26
+ },
27
+ };
28
+
29
+ export const handler = (client: DodoPayments, args: any) => {
30
+ const { id, ...body } = args;
31
+ return client.products.images.update(id, body);
32
+ };
33
+
34
+ export default { metadata, tool, handler };
@@ -0,0 +1,45 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import DodoPayments from 'dodopayments';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'products',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'list_products',
15
+ description: '',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ archived: {
20
+ type: 'boolean',
21
+ description: 'List archived products',
22
+ },
23
+ page_number: {
24
+ type: 'integer',
25
+ description: 'Page number default is 0',
26
+ },
27
+ page_size: {
28
+ type: 'integer',
29
+ description: 'Page size default is 10 max is 100',
30
+ },
31
+ recurring: {
32
+ type: 'boolean',
33
+ description:
34
+ 'Filter products by pricing type:\n- `true`: Show only recurring pricing products (e.g. subscriptions)\n- `false`: Show only one-time price products\n- `null` or absent: Show both types of products',
35
+ },
36
+ },
37
+ },
38
+ };
39
+
40
+ export const handler = (client: DodoPayments, args: any) => {
41
+ const { ...body } = args;
42
+ return client.products.list(body);
43
+ };
44
+
45
+ export default { metadata, tool, handler };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import DodoPayments from 'dodopayments';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'products',
9
+ operation: 'read',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'retrieve_products',
15
+ description: '',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ id: {
20
+ type: 'string',
21
+ },
22
+ },
23
+ },
24
+ };
25
+
26
+ export const handler = (client: DodoPayments, args: any) => {
27
+ const { id } = args;
28
+ return client.products.retrieve(id);
29
+ };
30
+
31
+ export default { metadata, tool, handler };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
+ import type { Metadata } from '../';
5
+ import DodoPayments from 'dodopayments';
6
+
7
+ export const metadata: Metadata = {
8
+ resource: 'products',
9
+ operation: 'write',
10
+ tags: [],
11
+ };
12
+
13
+ export const tool: Tool = {
14
+ name: 'unarchive_products',
15
+ description: '',
16
+ inputSchema: {
17
+ type: 'object',
18
+ properties: {
19
+ id: {
20
+ type: 'string',
21
+ },
22
+ },
23
+ },
24
+ };
25
+
26
+ export const handler = (client: DodoPayments, args: any) => {
27
+ const { id } = args;
28
+ return client.products.unarchive(id);
29
+ };
30
+
31
+ export default { metadata, tool, handler };