@metronome/mcp 1.0.0 → 2.1.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 (525) hide show
  1. package/README.md +127 -75
  2. package/docs-search-tool.d.mts +44 -0
  3. package/docs-search-tool.d.mts.map +1 -0
  4. package/docs-search-tool.d.ts +44 -0
  5. package/docs-search-tool.d.ts.map +1 -0
  6. package/docs-search-tool.js +43 -0
  7. package/docs-search-tool.js.map +1 -0
  8. package/docs-search-tool.mjs +39 -0
  9. package/docs-search-tool.mjs.map +1 -0
  10. package/options.d.mts +1 -0
  11. package/options.d.mts.map +1 -1
  12. package/options.d.ts +1 -0
  13. package/options.d.ts.map +1 -1
  14. package/options.js +13 -6
  15. package/options.js.map +1 -1
  16. package/options.mjs +13 -6
  17. package/options.mjs.map +1 -1
  18. package/package.json +12 -2
  19. package/server.d.mts.map +1 -1
  20. package/server.d.ts.map +1 -1
  21. package/server.js +8 -4
  22. package/server.js.map +1 -1
  23. package/server.mjs +8 -4
  24. package/server.mjs.map +1 -1
  25. package/src/docs-search-tool.ts +48 -0
  26. package/src/options.ts +17 -7
  27. package/src/server.ts +8 -5
  28. package/src/tools/index.ts +14 -0
  29. package/src/tools/v1/alerts/archive-v1-alerts.ts +3 -3
  30. package/src/tools/v1/alerts/create-v1-alerts.ts +14 -13
  31. package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +1 -1
  32. package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +1 -1
  33. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +1 -1
  34. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +1 -1
  35. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +1 -1
  36. package/src/tools/v1/contracts/amend-v1-contracts.ts +2 -2
  37. package/src/tools/v1/contracts/archive-v1-contracts.ts +1 -1
  38. package/src/tools/v1/contracts/create-v1-contracts.ts +30 -6
  39. package/src/tools/v1/contracts/list-balances-v1-contracts.ts +4 -0
  40. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +1 -1
  41. package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +1 -1
  42. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +1 -1
  43. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +1 -1
  44. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +1 -1
  45. package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +1 -1
  46. package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +1 -1
  47. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +1 -1
  48. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +1 -1
  49. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +1 -1
  50. package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +1 -1
  51. package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +1 -1
  52. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +1 -1
  53. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +1 -1
  54. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +1 -1
  55. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +1 -1
  56. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +1 -1
  57. package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +1 -1
  58. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +1 -1
  59. package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +1 -1
  60. package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +1 -1
  61. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +1 -1
  62. package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +1 -1
  63. package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +1 -1
  64. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +1 -1
  65. package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +1 -1
  66. package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +1 -1
  67. package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +3 -2
  68. package/src/tools/v1/customers/alerts/reset-customers-v1-alerts.ts +2 -2
  69. package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +7 -14
  70. package/src/tools/v1/customers/archive-v1-customers.ts +1 -1
  71. package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +5 -1
  72. package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +2 -1
  73. package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +2 -1
  74. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +2 -2
  75. package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +1 -1
  76. package/src/tools/v1/customers/create-v1-customers.ts +4 -1
  77. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +1 -1
  78. package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +1 -1
  79. package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +1 -1
  80. package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +43 -0
  81. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +1 -1
  82. package/src/tools/v1/customers/list-costs-v1-customers.ts +1 -1
  83. package/src/tools/v1/customers/list-v1-customers.ts +1 -1
  84. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +1 -1
  85. package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +1 -1
  86. package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +1 -1
  87. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +1 -1
  88. package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +1 -1
  89. package/src/tools/v1/customers/preview-events-v1-customers.ts +6 -9
  90. package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +1 -1
  91. package/src/tools/v1/customers/retrieve-v1-customers.ts +1 -1
  92. package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +2 -1
  93. package/src/tools/v1/customers/set-name-v1-customers.ts +1 -1
  94. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +1 -1
  95. package/src/tools/v1/invoices/regenerate-v1-invoices.ts +1 -1
  96. package/src/tools/v1/invoices/void-v1-invoices.ts +1 -1
  97. package/src/tools/v1/payments/attempt-v1-payments.ts +48 -0
  98. package/src/tools/v1/payments/cancel-v1-payments.ts +48 -0
  99. package/src/tools/v1/payments/list-v1-payments.ts +69 -0
  100. package/src/tools/v1/plans/get-details-v1-plans.ts +1 -1
  101. package/src/tools/v1/plans/list-charges-v1-plans.ts +1 -1
  102. package/src/tools/v1/plans/list-customers-v1-plans.ts +1 -1
  103. package/src/tools/v1/plans/list-v1-plans.ts +1 -1
  104. package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +1 -1
  105. package/src/tools/v1/services/list-v1-services.ts +1 -1
  106. package/src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts +60 -0
  107. package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +48 -0
  108. package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +65 -0
  109. package/src/tools/v1/usage/ingest-v1-usage.ts +1 -1
  110. package/src/tools/v1/usage/list-v1-usage.ts +1 -1
  111. package/src/tools/v1/usage/list-with-groups-v1-usage.ts +1 -1
  112. package/src/tools/v1/usage/search-v1-usage.ts +1 -1
  113. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +50 -1
  114. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +50 -1
  115. package/src/tools/v2/contracts/edit-v2-contracts.ts +66 -5
  116. package/tools/index.d.mts.map +1 -1
  117. package/tools/index.d.ts.map +1 -1
  118. package/tools/index.js +14 -0
  119. package/tools/index.js.map +1 -1
  120. package/tools/index.mjs +14 -0
  121. package/tools/index.mjs.map +1 -1
  122. package/tools/v1/alerts/archive-v1-alerts.js +3 -3
  123. package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
  124. package/tools/v1/alerts/archive-v1-alerts.mjs +3 -3
  125. package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
  126. package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
  127. package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
  128. package/tools/v1/alerts/create-v1-alerts.js +13 -13
  129. package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
  130. package/tools/v1/alerts/create-v1-alerts.mjs +13 -13
  131. package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
  132. package/tools/v1/audit-logs/list-v1-audit-logs.js +1 -1
  133. package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
  134. package/tools/v1/audit-logs/list-v1-audit-logs.mjs +1 -1
  135. package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
  136. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +1 -1
  137. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
  138. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +1 -1
  139. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
  140. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +1 -1
  141. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  142. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +1 -1
  143. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  144. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +1 -1
  145. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  146. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +1 -1
  147. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  148. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +1 -1
  149. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  150. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +1 -1
  151. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  152. package/tools/v1/contracts/amend-v1-contracts.js +2 -2
  153. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  154. package/tools/v1/contracts/amend-v1-contracts.mjs +2 -2
  155. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  156. package/tools/v1/contracts/archive-v1-contracts.js +1 -1
  157. package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
  158. package/tools/v1/contracts/archive-v1-contracts.mjs +1 -1
  159. package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
  160. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  161. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  162. package/tools/v1/contracts/create-v1-contracts.js +25 -6
  163. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  164. package/tools/v1/contracts/create-v1-contracts.mjs +25 -6
  165. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  166. package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
  167. package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
  168. package/tools/v1/contracts/list-balances-v1-contracts.js +4 -0
  169. package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
  170. package/tools/v1/contracts/list-balances-v1-contracts.mjs +4 -0
  171. package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
  172. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +1 -1
  173. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  174. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +1 -1
  175. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  176. package/tools/v1/contracts/products/archive-contracts-v1-products.js +1 -1
  177. package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
  178. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +1 -1
  179. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
  180. package/tools/v1/contracts/products/create-contracts-v1-products.js +1 -1
  181. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  182. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +1 -1
  183. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  184. package/tools/v1/contracts/products/list-contracts-v1-products.js +1 -1
  185. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  186. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +1 -1
  187. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  188. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +1 -1
  189. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  190. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +1 -1
  191. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  192. package/tools/v1/contracts/products/update-contracts-v1-products.js +1 -1
  193. package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
  194. package/tools/v1/contracts/products/update-contracts-v1-products.mjs +1 -1
  195. package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
  196. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +1 -1
  197. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
  198. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +1 -1
  199. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
  200. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +1 -1
  201. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  202. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +1 -1
  203. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  204. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +1 -1
  205. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  206. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +1 -1
  207. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  208. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +1 -1
  209. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  210. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +1 -1
  211. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  212. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +1 -1
  213. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
  214. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +1 -1
  215. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  216. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +1 -1
  217. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
  218. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +1 -1
  219. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  220. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +1 -1
  221. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  222. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +1 -1
  223. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  224. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +1 -1
  225. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  226. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +1 -1
  227. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  228. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +1 -1
  229. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  230. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +1 -1
  231. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  232. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +1 -1
  233. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  234. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +1 -1
  235. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  236. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +1 -1
  237. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  238. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +1 -1
  239. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  240. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +1 -1
  241. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
  242. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +1 -1
  243. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
  244. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +1 -1
  245. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  246. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +1 -1
  247. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  248. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +1 -1
  249. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
  250. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +1 -1
  251. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
  252. package/tools/v1/contracts/update-end-date-v1-contracts.js +1 -1
  253. package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
  254. package/tools/v1/contracts/update-end-date-v1-contracts.mjs +1 -1
  255. package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
  256. package/tools/v1/credit-grants/create-v1-credit-grants.js +1 -1
  257. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  258. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +1 -1
  259. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  260. package/tools/v1/credit-grants/edit-v1-credit-grants.js +1 -1
  261. package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
  262. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +1 -1
  263. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
  264. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +1 -1
  265. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
  266. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +1 -1
  267. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
  268. package/tools/v1/credit-grants/list-v1-credit-grants.js +1 -1
  269. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  270. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +1 -1
  271. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  272. package/tools/v1/credit-grants/void-v1-credit-grants.js +1 -1
  273. package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
  274. package/tools/v1/credit-grants/void-v1-credit-grants.mjs +1 -1
  275. package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
  276. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +1 -1
  277. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
  278. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +1 -1
  279. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
  280. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +1 -1
  281. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +1 -1
  282. package/tools/v1/customers/alerts/list-customers-v1-alerts.js +2 -2
  283. package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
  284. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +2 -2
  285. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
  286. package/tools/v1/customers/alerts/reset-customers-v1-alerts.js +2 -2
  287. package/tools/v1/customers/alerts/reset-customers-v1-alerts.js.map +1 -1
  288. package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs +2 -2
  289. package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs.map +1 -1
  290. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +1 -1
  291. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +1 -1
  292. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +7 -13
  293. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
  294. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +7 -13
  295. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
  296. package/tools/v1/customers/archive-v1-customers.js +1 -1
  297. package/tools/v1/customers/archive-v1-customers.js.map +1 -1
  298. package/tools/v1/customers/archive-v1-customers.mjs +1 -1
  299. package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
  300. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
  301. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
  302. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +3 -1
  303. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
  304. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +3 -1
  305. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
  306. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +1 -1
  307. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +1 -1
  308. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js +2 -1
  309. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +1 -1
  310. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +2 -1
  311. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.map +1 -1
  312. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +1 -1
  313. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +1 -1
  314. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +2 -1
  315. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
  316. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +2 -1
  317. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
  318. package/tools/v1/customers/commits/create-customers-v1-commits.js +2 -2
  319. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  320. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +2 -2
  321. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  322. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +1 -1
  323. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
  324. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +1 -1
  325. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
  326. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  327. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  328. package/tools/v1/customers/create-v1-customers.js +3 -1
  329. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  330. package/tools/v1/customers/create-v1-customers.mjs +3 -1
  331. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  332. package/tools/v1/customers/credits/create-customers-v1-credits.js +1 -1
  333. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  334. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +1 -1
  335. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  336. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +1 -1
  337. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
  338. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +1 -1
  339. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
  340. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +1 -1
  341. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
  342. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +1 -1
  343. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
  344. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +45 -0
  345. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +1 -0
  346. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +45 -0
  347. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +1 -0
  348. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +39 -0
  349. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +1 -0
  350. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +35 -0
  351. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +1 -0
  352. package/tools/v1/customers/list-billable-metrics-v1-customers.js +1 -1
  353. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  354. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +1 -1
  355. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  356. package/tools/v1/customers/list-costs-v1-customers.js +1 -1
  357. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  358. package/tools/v1/customers/list-costs-v1-customers.mjs +1 -1
  359. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  360. package/tools/v1/customers/list-v1-customers.js +1 -1
  361. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  362. package/tools/v1/customers/list-v1-customers.mjs +1 -1
  363. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  364. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +1 -1
  365. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  366. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +1 -1
  367. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  368. package/tools/v1/customers/plans/add-customers-v1-plans.js +1 -1
  369. package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
  370. package/tools/v1/customers/plans/add-customers-v1-plans.mjs +1 -1
  371. package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
  372. package/tools/v1/customers/plans/end-customers-v1-plans.js +1 -1
  373. package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
  374. package/tools/v1/customers/plans/end-customers-v1-plans.mjs +1 -1
  375. package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
  376. package/tools/v1/customers/plans/list-customers-v1-plans.js +1 -1
  377. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  378. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +1 -1
  379. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  380. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +1 -1
  381. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
  382. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +1 -1
  383. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
  384. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  385. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  386. package/tools/v1/customers/preview-events-v1-customers.js +5 -8
  387. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  388. package/tools/v1/customers/preview-events-v1-customers.mjs +5 -8
  389. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  390. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +1 -1
  391. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -1
  392. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +1 -1
  393. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -1
  394. package/tools/v1/customers/retrieve-v1-customers.js +1 -1
  395. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  396. package/tools/v1/customers/retrieve-v1-customers.mjs +1 -1
  397. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  398. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -1
  399. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -1
  400. package/tools/v1/customers/set-billing-configurations-v1-customers.js +2 -1
  401. package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -1
  402. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +2 -1
  403. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -1
  404. package/tools/v1/customers/set-name-v1-customers.js +1 -1
  405. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  406. package/tools/v1/customers/set-name-v1-customers.mjs +1 -1
  407. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  408. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +1 -1
  409. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  410. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +1 -1
  411. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  412. package/tools/v1/invoices/regenerate-v1-invoices.js +1 -1
  413. package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
  414. package/tools/v1/invoices/regenerate-v1-invoices.mjs +1 -1
  415. package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
  416. package/tools/v1/invoices/void-v1-invoices.js +1 -1
  417. package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
  418. package/tools/v1/invoices/void-v1-invoices.mjs +1 -1
  419. package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
  420. package/tools/v1/payments/attempt-v1-payments.d.mts +45 -0
  421. package/tools/v1/payments/attempt-v1-payments.d.mts.map +1 -0
  422. package/tools/v1/payments/attempt-v1-payments.d.ts +45 -0
  423. package/tools/v1/payments/attempt-v1-payments.d.ts.map +1 -0
  424. package/tools/v1/payments/attempt-v1-payments.js +43 -0
  425. package/tools/v1/payments/attempt-v1-payments.js.map +1 -0
  426. package/tools/v1/payments/attempt-v1-payments.mjs +39 -0
  427. package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -0
  428. package/tools/v1/payments/cancel-v1-payments.d.mts +45 -0
  429. package/tools/v1/payments/cancel-v1-payments.d.mts.map +1 -0
  430. package/tools/v1/payments/cancel-v1-payments.d.ts +45 -0
  431. package/tools/v1/payments/cancel-v1-payments.d.ts.map +1 -0
  432. package/tools/v1/payments/cancel-v1-payments.js +43 -0
  433. package/tools/v1/payments/cancel-v1-payments.js.map +1 -0
  434. package/tools/v1/payments/cancel-v1-payments.mjs +39 -0
  435. package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -0
  436. package/tools/v1/payments/list-v1-payments.d.mts +45 -0
  437. package/tools/v1/payments/list-v1-payments.d.mts.map +1 -0
  438. package/tools/v1/payments/list-v1-payments.d.ts +45 -0
  439. package/tools/v1/payments/list-v1-payments.d.ts.map +1 -0
  440. package/tools/v1/payments/list-v1-payments.js +64 -0
  441. package/tools/v1/payments/list-v1-payments.js.map +1 -0
  442. package/tools/v1/payments/list-v1-payments.mjs +60 -0
  443. package/tools/v1/payments/list-v1-payments.mjs.map +1 -0
  444. package/tools/v1/plans/get-details-v1-plans.js +1 -1
  445. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  446. package/tools/v1/plans/get-details-v1-plans.mjs +1 -1
  447. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  448. package/tools/v1/plans/list-charges-v1-plans.js +1 -1
  449. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  450. package/tools/v1/plans/list-charges-v1-plans.mjs +1 -1
  451. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  452. package/tools/v1/plans/list-customers-v1-plans.js +1 -1
  453. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  454. package/tools/v1/plans/list-customers-v1-plans.mjs +1 -1
  455. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  456. package/tools/v1/plans/list-v1-plans.js +1 -1
  457. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  458. package/tools/v1/plans/list-v1-plans.mjs +1 -1
  459. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  460. package/tools/v1/pricing-units/list-v1-pricing-units.js +1 -1
  461. package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
  462. package/tools/v1/pricing-units/list-v1-pricing-units.mjs +1 -1
  463. package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
  464. package/tools/v1/services/list-v1-services.js +1 -1
  465. package/tools/v1/services/list-v1-services.js.map +1 -1
  466. package/tools/v1/services/list-v1-services.mjs +1 -1
  467. package/tools/v1/services/list-v1-services.mjs.map +1 -1
  468. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts +45 -0
  469. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +1 -0
  470. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +45 -0
  471. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +1 -0
  472. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +52 -0
  473. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +1 -0
  474. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +48 -0
  475. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +1 -0
  476. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +45 -0
  477. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +1 -0
  478. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +45 -0
  479. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +1 -0
  480. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +41 -0
  481. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +1 -0
  482. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +37 -0
  483. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +1 -0
  484. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +45 -0
  485. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +1 -0
  486. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +45 -0
  487. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +1 -0
  488. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +57 -0
  489. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +1 -0
  490. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +53 -0
  491. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +1 -0
  492. package/tools/v1/usage/ingest-v1-usage.js +1 -1
  493. package/tools/v1/usage/ingest-v1-usage.js.map +1 -1
  494. package/tools/v1/usage/ingest-v1-usage.mjs +1 -1
  495. package/tools/v1/usage/ingest-v1-usage.mjs.map +1 -1
  496. package/tools/v1/usage/list-v1-usage.js +1 -1
  497. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  498. package/tools/v1/usage/list-v1-usage.mjs +1 -1
  499. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  500. package/tools/v1/usage/list-with-groups-v1-usage.js +1 -1
  501. package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
  502. package/tools/v1/usage/list-with-groups-v1-usage.mjs +1 -1
  503. package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
  504. package/tools/v1/usage/search-v1-usage.js +1 -1
  505. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  506. package/tools/v1/usage/search-v1-usage.mjs +1 -1
  507. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  508. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  509. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  510. package/tools/v2/contracts/edit-commit-v2-contracts.js +50 -1
  511. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  512. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +50 -1
  513. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  514. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  515. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  516. package/tools/v2/contracts/edit-credit-v2-contracts.js +50 -1
  517. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  518. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +50 -1
  519. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  520. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  521. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  522. package/tools/v2/contracts/edit-v2-contracts.js +60 -5
  523. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  524. package/tools/v2/contracts/edit-v2-contracts.mjs +60 -5
  525. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.handler = exports.tool = exports.metadata = void 0;
5
+ const filtering_1 = require("@metronome/mcp/filtering");
6
+ const types_1 = require("@metronome/mcp/tools/types");
7
+ exports.metadata = {
8
+ resource: 'v1.payments',
9
+ operation: 'write',
10
+ tags: [],
11
+ httpMethod: 'post',
12
+ httpPath: '/v1/payments/attempt',
13
+ operationId: 'attemptPayment-v1',
14
+ };
15
+ exports.tool = {
16
+ name: 'attempt_v1_payments',
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrigger a new attempt by canceling any existing attempts for this invoice and creating a new Payment. This will trigger another attempt to charge the Customer's configured Payment Gateway. \nPayment can only be attempted if all of the following are true:\n - The Metronome Invoice is finalized\n - PLG Invoicing is configured for the Customer\n - You cannot attempt payments for invoices that have already been `paid` or `voided`.\n\nAttempting to payment on an ineligible Invoice or Customer will result in a `400` response.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_attempt_response',\n $defs: {\n payment_attempt_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
18
+ inputSchema: {
19
+ type: 'object',
20
+ properties: {
21
+ customer_id: {
22
+ type: 'string',
23
+ },
24
+ invoice_id: {
25
+ type: 'string',
26
+ },
27
+ jq_filter: {
28
+ type: 'string',
29
+ title: 'jq Filter',
30
+ description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
31
+ },
32
+ },
33
+ required: ['customer_id', 'invoice_id'],
34
+ },
35
+ annotations: {},
36
+ };
37
+ const handler = async (client, args) => {
38
+ const { jq_filter, ...body } = args;
39
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.payments.attempt(body)));
40
+ };
41
+ exports.handler = handler;
42
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
43
+ //# sourceMappingURL=attempt-v1-payments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attempt-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/attempt-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,k1GAAk1G;IACp1G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -0,0 +1,39 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { maybeFilter } from '@metronome/mcp/filtering';
3
+ import { asTextContentResult } from '@metronome/mcp/tools/types';
4
+ export const metadata = {
5
+ resource: 'v1.payments',
6
+ operation: 'write',
7
+ tags: [],
8
+ httpMethod: 'post',
9
+ httpPath: '/v1/payments/attempt',
10
+ operationId: 'attemptPayment-v1',
11
+ };
12
+ export const tool = {
13
+ name: 'attempt_v1_payments',
14
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nTrigger a new attempt by canceling any existing attempts for this invoice and creating a new Payment. This will trigger another attempt to charge the Customer's configured Payment Gateway. \nPayment can only be attempted if all of the following are true:\n - The Metronome Invoice is finalized\n - PLG Invoicing is configured for the Customer\n - You cannot attempt payments for invoices that have already been `paid` or `voided`.\n\nAttempting to payment on an ineligible Invoice or Customer will result in a `400` response.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_attempt_response',\n $defs: {\n payment_attempt_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ customer_id: {
19
+ type: 'string',
20
+ },
21
+ invoice_id: {
22
+ type: 'string',
23
+ },
24
+ jq_filter: {
25
+ type: 'string',
26
+ title: 'jq Filter',
27
+ description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
28
+ },
29
+ },
30
+ required: ['customer_id', 'invoice_id'],
31
+ },
32
+ annotations: {},
33
+ };
34
+ export const handler = async (client, args) => {
35
+ const { jq_filter, ...body } = args;
36
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.payments.attempt(body)));
37
+ };
38
+ export default { metadata, tool, handler };
39
+ //# sourceMappingURL=attempt-v1-payments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attempt-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/attempt-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,k1GAAk1G;IACp1G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from '@metronome/mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Metronome from '@metronome/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=cancel-v1-payments.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-v1-payments.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from '@metronome/mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Metronome from '@metronome/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=cancel-v1-payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-v1-payments.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.handler = exports.tool = exports.metadata = void 0;
5
+ const filtering_1 = require("@metronome/mcp/filtering");
6
+ const types_1 = require("@metronome/mcp/tools/types");
7
+ exports.metadata = {
8
+ resource: 'v1.payments',
9
+ operation: 'write',
10
+ tags: [],
11
+ httpMethod: 'post',
12
+ httpPath: '/v1/payments/cancel',
13
+ operationId: 'cancelPayment-v1',
14
+ };
15
+ exports.tool = {
16
+ name: 'cancel_v1_payments',
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCancel an existing payment attempt for an invoice.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_cancel_response',\n $defs: {\n payment_cancel_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
18
+ inputSchema: {
19
+ type: 'object',
20
+ properties: {
21
+ customer_id: {
22
+ type: 'string',
23
+ },
24
+ invoice_id: {
25
+ type: 'string',
26
+ },
27
+ jq_filter: {
28
+ type: 'string',
29
+ title: 'jq Filter',
30
+ description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
31
+ },
32
+ },
33
+ required: ['customer_id', 'invoice_id'],
34
+ },
35
+ annotations: {},
36
+ };
37
+ const handler = async (client, args) => {
38
+ const { jq_filter, ...body } = args;
39
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.payments.cancel(body)));
40
+ };
41
+ exports.handler = handler;
42
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
43
+ //# sourceMappingURL=cancel-v1-payments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,k3FAAk3F;IACp3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -0,0 +1,39 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { maybeFilter } from '@metronome/mcp/filtering';
3
+ import { asTextContentResult } from '@metronome/mcp/tools/types';
4
+ export const metadata = {
5
+ resource: 'v1.payments',
6
+ operation: 'write',
7
+ tags: [],
8
+ httpMethod: 'post',
9
+ httpPath: '/v1/payments/cancel',
10
+ operationId: 'cancelPayment-v1',
11
+ };
12
+ export const tool = {
13
+ name: 'cancel_v1_payments',
14
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCancel an existing payment attempt for an invoice.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/payment_cancel_response',\n $defs: {\n payment_cancel_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/payment'\n }\n },\n required: [ 'data'\n ]\n },\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ customer_id: {
19
+ type: 'string',
20
+ },
21
+ invoice_id: {
22
+ type: 'string',
23
+ },
24
+ jq_filter: {
25
+ type: 'string',
26
+ title: 'jq Filter',
27
+ description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
28
+ },
29
+ },
30
+ required: ['customer_id', 'invoice_id'],
31
+ },
32
+ annotations: {},
33
+ };
34
+ export const handler = async (client, args) => {
35
+ const { jq_filter, ...body } = args;
36
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.payments.cancel(body)));
37
+ };
38
+ export default { metadata, tool, handler };
39
+ //# sourceMappingURL=cancel-v1-payments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/cancel-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,k3FAAk3F;IACp3F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;KACxC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from '@metronome/mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Metronome from '@metronome/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=list-v1-payments.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-v1-payments.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -0,0 +1,45 @@
1
+ import { Metadata } from '@metronome/mcp/tools/types';
2
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
3
+ import Metronome from '@metronome/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: Metronome, args: Record<string, unknown> | undefined) => Promise<import("@metronome/mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=list-v1-payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-v1-payments.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.handler = exports.tool = exports.metadata = void 0;
5
+ const filtering_1 = require("@metronome/mcp/filtering");
6
+ const types_1 = require("@metronome/mcp/tools/types");
7
+ exports.metadata = {
8
+ resource: 'v1.payments',
9
+ operation: 'write',
10
+ tags: [],
11
+ httpMethod: 'post',
12
+ httpPath: '/v1/payments/list',
13
+ operationId: 'listPayments-v1',
14
+ };
15
+ exports.tool = {
16
+ name: 'list_v1_payments',
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch all payment attempts for the given invoice.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
18
+ inputSchema: {
19
+ type: 'object',
20
+ properties: {
21
+ customer_id: {
22
+ type: 'string',
23
+ },
24
+ invoice_id: {
25
+ type: 'string',
26
+ },
27
+ limit: {
28
+ type: 'integer',
29
+ description: 'The maximum number of payments to return. Defaults to 25.',
30
+ },
31
+ next_page: {
32
+ type: 'string',
33
+ description: 'The next page token from a previous response.',
34
+ },
35
+ statuses: {
36
+ type: 'array',
37
+ items: {
38
+ $ref: '#/$defs/payment_status',
39
+ },
40
+ },
41
+ jq_filter: {
42
+ type: 'string',
43
+ title: 'jq Filter',
44
+ description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
45
+ },
46
+ },
47
+ required: ['customer_id', 'invoice_id'],
48
+ $defs: {
49
+ payment_status: {
50
+ type: 'string',
51
+ enum: ['pending', 'requires_intervention', 'paid', 'canceled'],
52
+ },
53
+ },
54
+ },
55
+ annotations: {},
56
+ };
57
+ const handler = async (client, args) => {
58
+ const { jq_filter, ...body } = args;
59
+ const response = await client.v1.payments.list(body).asResponse();
60
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
61
+ };
62
+ exports.handler = handler;
63
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
64
+ //# sourceMappingURL=list-v1-payments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-v1-payments.js","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,21FAA21F;IAC71F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2DAA2D;aACzE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,wBAAwB;iBAC/B;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;QACvC,KAAK,EAAE;YACL,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,UAAU,CAAC;aAC/D;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAClE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -0,0 +1,60 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { maybeFilter } from '@metronome/mcp/filtering';
3
+ import { asTextContentResult } from '@metronome/mcp/tools/types';
4
+ export const metadata = {
5
+ resource: 'v1.payments',
6
+ operation: 'write',
7
+ tags: [],
8
+ httpMethod: 'post',
9
+ httpPath: '/v1/payments/list',
10
+ operationId: 'listPayments-v1',
11
+ };
12
+ export const tool = {
13
+ name: 'list_v1_payments',
14
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch all payment attempts for the given invoice.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n amount: {\n type: 'number'\n },\n amount_paid: {\n type: 'number'\n },\n contract_id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n customer_id: {\n type: 'string'\n },\n error_message: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n invoice_id: {\n type: 'string'\n },\n payment_gateway: {\n type: 'object',\n properties: {\n stripe: {\n type: 'object',\n properties: {\n payment_intent_id: {\n type: 'string'\n },\n error: {\n type: 'object',\n properties: {\n code: {\n type: 'string'\n },\n decline_code: {\n type: 'string'\n },\n type: {\n type: 'string'\n }\n }\n },\n payment_method_id: {\n type: 'string'\n }\n },\n required: [ 'payment_intent_id'\n ]\n },\n type: {\n type: 'string',\n enum: [ 'stripe'\n ]\n }\n },\n required: [ 'stripe',\n 'type'\n ]\n },\n status: {\n $ref: '#/$defs/payment_status'\n },\n updated_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n payment_status: {\n type: 'string',\n enum: [ 'pending',\n 'requires_intervention',\n 'paid',\n 'canceled'\n ]\n }\n }\n}\n```",
15
+ inputSchema: {
16
+ type: 'object',
17
+ properties: {
18
+ customer_id: {
19
+ type: 'string',
20
+ },
21
+ invoice_id: {
22
+ type: 'string',
23
+ },
24
+ limit: {
25
+ type: 'integer',
26
+ description: 'The maximum number of payments to return. Defaults to 25.',
27
+ },
28
+ next_page: {
29
+ type: 'string',
30
+ description: 'The next page token from a previous response.',
31
+ },
32
+ statuses: {
33
+ type: 'array',
34
+ items: {
35
+ $ref: '#/$defs/payment_status',
36
+ },
37
+ },
38
+ jq_filter: {
39
+ type: 'string',
40
+ title: 'jq Filter',
41
+ description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
42
+ },
43
+ },
44
+ required: ['customer_id', 'invoice_id'],
45
+ $defs: {
46
+ payment_status: {
47
+ type: 'string',
48
+ enum: ['pending', 'requires_intervention', 'paid', 'canceled'],
49
+ },
50
+ },
51
+ },
52
+ annotations: {},
53
+ };
54
+ export const handler = async (client, args) => {
55
+ const { jq_filter, ...body } = args;
56
+ const response = await client.v1.payments.list(body).asResponse();
57
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
58
+ };
59
+ export default { metadata, tool, handler };
60
+ //# sourceMappingURL=list-v1-payments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-v1-payments.mjs","sourceRoot":"","sources":["../../../src/tools/v1/payments/list-v1-payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,21FAA21F;IAC71F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2DAA2D;aACzE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,wBAAwB;iBAC/B;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;QACvC,KAAK,EAAE;YACL,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,UAAU,CAAC;aAC/D;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAClE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'get_details_v1_plans',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch high level details of a specific plan.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/plan_detail'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n plan_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n credit_grants: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n amount_granted: {\n type: 'number'\n },\n amount_granted_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n amount_paid: {\n type: 'number'\n },\n amount_paid_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n effective_duration: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n priority: {\n type: 'string'\n },\n send_invoice: {\n type: 'boolean'\n },\n reason: {\n type: 'string'\n },\n recurrence_duration: {\n type: 'number'\n },\n recurrence_interval: {\n type: 'number'\n }\n },\n required: [ 'amount_granted',\n 'amount_granted_credit_type',\n 'amount_paid',\n 'amount_paid_credit_type',\n 'effective_duration',\n 'name',\n 'priority',\n 'send_invoice'\n ]\n }\n },\n description: {\n type: 'string'\n },\n minimums: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n name: {\n type: 'string'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n value: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'name',\n 'start_period',\n 'value'\n ]\n }\n },\n overage_rates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n to_fiat_conversion_factor: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'fiat_credit_type',\n 'start_period',\n 'to_fiat_conversion_factor'\n ]\n }\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch high level details of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/plan_get_details_response',\n $defs: {\n plan_get_details_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/plan_detail'\n }\n },\n required: [ 'data'\n ]\n },\n plan_detail: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n name: {\n type: 'string'\n },\n credit_grants: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n amount_granted: {\n type: 'number'\n },\n amount_granted_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n amount_paid: {\n type: 'number'\n },\n amount_paid_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n effective_duration: {\n type: 'number'\n },\n name: {\n type: 'string'\n },\n priority: {\n type: 'string'\n },\n send_invoice: {\n type: 'boolean'\n },\n reason: {\n type: 'string'\n },\n recurrence_duration: {\n type: 'number'\n },\n recurrence_interval: {\n type: 'number'\n }\n },\n required: [ 'amount_granted',\n 'amount_granted_credit_type',\n 'amount_paid',\n 'amount_paid_credit_type',\n 'effective_duration',\n 'name',\n 'priority',\n 'send_invoice'\n ]\n }\n },\n description: {\n type: 'string'\n },\n minimums: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n name: {\n type: 'string'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n value: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'name',\n 'start_period',\n 'value'\n ]\n }\n },\n overage_rates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n start_period: {\n type: 'number',\n description: 'Used in price ramps. Indicates how many billing periods pass before the charge applies.'\n },\n to_fiat_conversion_factor: {\n type: 'number'\n }\n },\n required: [ 'credit_type',\n 'fiat_credit_type',\n 'start_period',\n 'to_fiat_conversion_factor'\n ]\n }\n }\n },\n required: [ 'id',\n 'custom_fields',\n 'name'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"get-details-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/get-details-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,2nIAA2nI;IAC7nI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"get-details-v1-plans.js","sourceRoot":"","sources":["../../../src/tools/v1/plans/get-details-v1-plans.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,60IAA60I;IAC/0I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}