@metronome/mcp 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1021) hide show
  1. package/README.md +68 -22
  2. package/code-tool-types.d.mts +2 -0
  3. package/code-tool-types.d.mts.map +1 -1
  4. package/code-tool-types.d.ts +2 -0
  5. package/code-tool-types.d.ts.map +1 -1
  6. package/code-tool.d.mts +45 -3
  7. package/code-tool.d.mts.map +1 -1
  8. package/code-tool.d.ts +45 -3
  9. package/code-tool.d.ts.map +1 -1
  10. package/code-tool.js +28 -133
  11. package/code-tool.js.map +1 -1
  12. package/code-tool.mjs +28 -100
  13. package/code-tool.mjs.map +1 -1
  14. package/docs-search-tool.d.mts +12 -6
  15. package/docs-search-tool.d.mts.map +1 -1
  16. package/docs-search-tool.d.ts +12 -6
  17. package/docs-search-tool.d.ts.map +1 -1
  18. package/docs-search-tool.js +10 -2
  19. package/docs-search-tool.js.map +1 -1
  20. package/docs-search-tool.mjs +10 -2
  21. package/docs-search-tool.mjs.map +1 -1
  22. package/dynamic-tools.d.mts +1 -1
  23. package/dynamic-tools.d.ts +1 -1
  24. package/dynamic-tools.js +1 -1
  25. package/dynamic-tools.mjs +1 -1
  26. package/filtering.d.mts +1 -0
  27. package/filtering.d.mts.map +1 -1
  28. package/filtering.d.ts +1 -0
  29. package/filtering.d.ts.map +1 -1
  30. package/filtering.js +4 -0
  31. package/filtering.js.map +1 -1
  32. package/filtering.mjs +3 -0
  33. package/filtering.mjs.map +1 -1
  34. package/headers.d.mts.map +1 -1
  35. package/headers.d.ts.map +1 -1
  36. package/headers.js +1 -1
  37. package/headers.js.map +1 -1
  38. package/headers.mjs +1 -1
  39. package/headers.mjs.map +1 -1
  40. package/http.js +2 -2
  41. package/http.js.map +1 -1
  42. package/http.mjs +2 -2
  43. package/http.mjs.map +1 -1
  44. package/options.d.mts.map +1 -1
  45. package/options.d.ts.map +1 -1
  46. package/options.js +6 -3
  47. package/options.js.map +1 -1
  48. package/options.mjs +6 -3
  49. package/options.mjs.map +1 -1
  50. package/package.json +6 -20
  51. package/server.js +1 -1
  52. package/server.mjs +1 -1
  53. package/src/code-tool-types.ts +5 -1
  54. package/src/code-tool.ts +38 -122
  55. package/src/docs-search-tool.ts +14 -3
  56. package/src/dynamic-tools.ts +1 -1
  57. package/src/filtering.ts +4 -0
  58. package/src/headers.ts +3 -1
  59. package/src/http.ts +2 -2
  60. package/src/options.ts +10 -3
  61. package/src/server.ts +1 -1
  62. package/src/tools/index.ts +6 -0
  63. package/src/tools/types.ts +12 -0
  64. package/src/tools/v1/alerts/archive-v1-alerts.ts +10 -3
  65. package/src/tools/v1/alerts/create-v1-alerts.ts +27 -3
  66. package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +10 -3
  67. package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +10 -3
  68. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +10 -3
  69. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +10 -3
  70. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +10 -3
  71. package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +6 -0
  72. package/src/tools/v1/contracts/amend-v1-contracts.ts +10 -3
  73. package/src/tools/v1/contracts/archive-v1-contracts.ts +10 -3
  74. package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +9 -2
  75. package/src/tools/v1/contracts/create-v1-contracts.ts +64 -8
  76. package/src/tools/v1/contracts/list-balances-v1-contracts.ts +13 -2
  77. package/src/tools/v1/contracts/list-v1-contracts.ts +9 -2
  78. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +12 -5
  79. package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +12 -3
  80. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +10 -3
  81. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +10 -3
  82. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +12 -3
  83. package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +10 -3
  84. package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +12 -3
  85. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +12 -3
  86. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +10 -3
  87. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +12 -5
  88. package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +12 -5
  89. package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +12 -5
  90. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +12 -5
  91. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +12 -5
  92. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +10 -3
  93. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +12 -5
  94. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +12 -5
  95. package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +12 -3
  96. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +12 -5
  97. package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +12 -5
  98. package/src/tools/v1/contracts/retrieve-v1-contracts.ts +9 -2
  99. package/src/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.ts +9 -2
  100. package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +10 -3
  101. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +11 -4
  102. package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +11 -4
  103. package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +11 -4
  104. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +11 -4
  105. package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +11 -4
  106. package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +10 -3
  107. package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +11 -4
  108. package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +25 -2
  109. package/src/tools/v1/customers/archive-v1-customers.ts +10 -3
  110. package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +11 -1
  111. package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +2 -1
  112. package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +14 -6
  113. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +11 -4
  114. package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +9 -2
  115. package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +12 -5
  116. package/src/tools/v1/customers/create-v1-customers.ts +50 -3
  117. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +10 -3
  118. package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +9 -2
  119. package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +12 -5
  120. package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +13 -6
  121. package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +9 -2
  122. package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +9 -2
  123. package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +9 -2
  124. package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +1 -1
  125. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +10 -3
  126. package/src/tools/v1/customers/list-costs-v1-customers.ts +11 -4
  127. package/src/tools/v1/customers/list-v1-customers.ts +10 -3
  128. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +12 -5
  129. package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +11 -4
  130. package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +11 -4
  131. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +11 -4
  132. package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +11 -4
  133. package/src/tools/v1/customers/preview-events-v1-customers.ts +14 -5
  134. package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +13 -6
  135. package/src/tools/v1/customers/retrieve-v1-customers.ts +10 -3
  136. package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +21 -5
  137. package/src/tools/v1/customers/set-name-v1-customers.ts +10 -3
  138. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +12 -3
  139. package/src/tools/v1/invoices/regenerate-v1-invoices.ts +10 -3
  140. package/src/tools/v1/invoices/void-v1-invoices.ts +10 -3
  141. package/src/tools/v1/payments/attempt-v1-payments.ts +11 -4
  142. package/src/tools/v1/payments/cancel-v1-payments.ts +11 -4
  143. package/src/tools/v1/payments/list-v1-payments.ts +11 -4
  144. package/src/tools/v1/plans/get-details-v1-plans.ts +11 -4
  145. package/src/tools/v1/plans/list-charges-v1-plans.ts +11 -4
  146. package/src/tools/v1/plans/list-customers-v1-plans.ts +11 -4
  147. package/src/tools/v1/plans/list-v1-plans.ts +11 -4
  148. package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +10 -3
  149. package/src/tools/v1/services/list-v1-services.ts +10 -3
  150. package/src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts +67 -0
  151. package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +55 -0
  152. package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +77 -0
  153. package/src/tools/v1/usage/list-v1-usage.ts +10 -3
  154. package/src/tools/v1/usage/list-with-groups-v1-usage.ts +10 -3
  155. package/src/tools/v1/usage/search-v1-usage.ts +11 -4
  156. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +18 -3
  157. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +18 -3
  158. package/src/tools/v2/contracts/edit-v2-contracts.ts +161 -5
  159. package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +9 -2
  160. package/src/tools/v2/contracts/list-v2-contracts.ts +9 -2
  161. package/src/tools/v2/contracts/retrieve-v2-contracts.ts +9 -2
  162. package/tools/index.d.mts.map +1 -1
  163. package/tools/index.d.ts.map +1 -1
  164. package/tools/index.js +6 -0
  165. package/tools/index.js.map +1 -1
  166. package/tools/index.mjs +6 -0
  167. package/tools/index.mjs.map +1 -1
  168. package/tools/types.d.mts +1 -0
  169. package/tools/types.d.mts.map +1 -1
  170. package/tools/types.d.ts +1 -0
  171. package/tools/types.d.ts.map +1 -1
  172. package/tools/types.js +12 -0
  173. package/tools/types.js.map +1 -1
  174. package/tools/types.mjs +11 -0
  175. package/tools/types.mjs.map +1 -1
  176. package/tools/v1/alerts/archive-v1-alerts.d.mts +12 -6
  177. package/tools/v1/alerts/archive-v1-alerts.d.mts.map +1 -1
  178. package/tools/v1/alerts/archive-v1-alerts.d.ts +12 -6
  179. package/tools/v1/alerts/archive-v1-alerts.d.ts.map +1 -1
  180. package/tools/v1/alerts/archive-v1-alerts.js +13 -1
  181. package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
  182. package/tools/v1/alerts/archive-v1-alerts.mjs +12 -3
  183. package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
  184. package/tools/v1/alerts/create-v1-alerts.d.mts +12 -6
  185. package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
  186. package/tools/v1/alerts/create-v1-alerts.d.ts +12 -6
  187. package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
  188. package/tools/v1/alerts/create-v1-alerts.js +29 -1
  189. package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
  190. package/tools/v1/alerts/create-v1-alerts.mjs +28 -3
  191. package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
  192. package/tools/v1/audit-logs/list-v1-audit-logs.d.mts +12 -6
  193. package/tools/v1/audit-logs/list-v1-audit-logs.d.mts.map +1 -1
  194. package/tools/v1/audit-logs/list-v1-audit-logs.d.ts +12 -6
  195. package/tools/v1/audit-logs/list-v1-audit-logs.d.ts.map +1 -1
  196. package/tools/v1/audit-logs/list-v1-audit-logs.js +13 -1
  197. package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
  198. package/tools/v1/audit-logs/list-v1-audit-logs.mjs +12 -3
  199. package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
  200. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts +12 -6
  201. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts.map +1 -1
  202. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts +12 -6
  203. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts.map +1 -1
  204. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +13 -1
  205. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
  206. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +12 -3
  207. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
  208. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts +12 -6
  209. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +1 -1
  210. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts +12 -6
  211. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +1 -1
  212. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +13 -1
  213. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  214. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +12 -3
  215. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  216. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts +12 -6
  217. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts.map +1 -1
  218. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts +12 -6
  219. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts.map +1 -1
  220. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +13 -1
  221. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  222. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +12 -3
  223. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  224. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts +12 -6
  225. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts.map +1 -1
  226. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts +12 -6
  227. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts.map +1 -1
  228. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +13 -1
  229. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  230. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +12 -3
  231. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  232. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts +12 -6
  233. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +1 -1
  234. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts +12 -6
  235. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +1 -1
  236. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +5 -0
  237. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +1 -1
  238. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +5 -0
  239. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +1 -1
  240. package/tools/v1/contracts/amend-v1-contracts.d.mts +12 -6
  241. package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
  242. package/tools/v1/contracts/amend-v1-contracts.d.ts +12 -6
  243. package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
  244. package/tools/v1/contracts/amend-v1-contracts.js +14 -2
  245. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  246. package/tools/v1/contracts/amend-v1-contracts.mjs +12 -3
  247. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  248. package/tools/v1/contracts/archive-v1-contracts.d.mts +12 -6
  249. package/tools/v1/contracts/archive-v1-contracts.d.mts.map +1 -1
  250. package/tools/v1/contracts/archive-v1-contracts.d.ts +12 -6
  251. package/tools/v1/contracts/archive-v1-contracts.d.ts.map +1 -1
  252. package/tools/v1/contracts/archive-v1-contracts.js +13 -1
  253. package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
  254. package/tools/v1/contracts/archive-v1-contracts.mjs +12 -3
  255. package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
  256. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts +12 -6
  257. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
  258. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts +12 -6
  259. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
  260. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +13 -1
  261. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
  262. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +11 -2
  263. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
  264. package/tools/v1/contracts/create-v1-contracts.d.mts +12 -6
  265. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  266. package/tools/v1/contracts/create-v1-contracts.d.ts +12 -6
  267. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  268. package/tools/v1/contracts/create-v1-contracts.js +60 -7
  269. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  270. package/tools/v1/contracts/create-v1-contracts.mjs +58 -8
  271. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  272. package/tools/v1/contracts/list-balances-v1-contracts.d.mts +12 -6
  273. package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
  274. package/tools/v1/contracts/list-balances-v1-contracts.d.ts +12 -6
  275. package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
  276. package/tools/v1/contracts/list-balances-v1-contracts.js +17 -1
  277. package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
  278. package/tools/v1/contracts/list-balances-v1-contracts.mjs +15 -2
  279. package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
  280. package/tools/v1/contracts/list-v1-contracts.d.mts +12 -6
  281. package/tools/v1/contracts/list-v1-contracts.d.mts.map +1 -1
  282. package/tools/v1/contracts/list-v1-contracts.d.ts +12 -6
  283. package/tools/v1/contracts/list-v1-contracts.d.ts.map +1 -1
  284. package/tools/v1/contracts/list-v1-contracts.js +13 -1
  285. package/tools/v1/contracts/list-v1-contracts.js.map +1 -1
  286. package/tools/v1/contracts/list-v1-contracts.mjs +11 -2
  287. package/tools/v1/contracts/list-v1-contracts.mjs.map +1 -1
  288. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts +12 -6
  289. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts.map +1 -1
  290. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts +12 -6
  291. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts.map +1 -1
  292. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +13 -1
  293. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  294. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +12 -3
  295. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  296. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts +12 -6
  297. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +1 -1
  298. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts +12 -6
  299. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +1 -1
  300. package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts +12 -6
  301. package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts.map +1 -1
  302. package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts +12 -6
  303. package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts.map +1 -1
  304. package/tools/v1/contracts/products/archive-contracts-v1-products.js +13 -1
  305. package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
  306. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +12 -3
  307. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
  308. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts +12 -6
  309. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
  310. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts +12 -6
  311. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
  312. package/tools/v1/contracts/products/create-contracts-v1-products.js +13 -1
  313. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  314. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +12 -3
  315. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  316. package/tools/v1/contracts/products/list-contracts-v1-products.d.mts +12 -6
  317. package/tools/v1/contracts/products/list-contracts-v1-products.d.mts.map +1 -1
  318. package/tools/v1/contracts/products/list-contracts-v1-products.d.ts +12 -6
  319. package/tools/v1/contracts/products/list-contracts-v1-products.d.ts.map +1 -1
  320. package/tools/v1/contracts/products/list-contracts-v1-products.js +13 -1
  321. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  322. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +12 -3
  323. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  324. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts +12 -6
  325. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts.map +1 -1
  326. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts +12 -6
  327. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts.map +1 -1
  328. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +13 -1
  329. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  330. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +12 -3
  331. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  332. package/tools/v1/contracts/products/update-contracts-v1-products.d.mts +12 -6
  333. package/tools/v1/contracts/products/update-contracts-v1-products.d.mts.map +1 -1
  334. package/tools/v1/contracts/products/update-contracts-v1-products.d.ts +12 -6
  335. package/tools/v1/contracts/products/update-contracts-v1-products.d.ts.map +1 -1
  336. package/tools/v1/contracts/products/update-contracts-v1-products.js +13 -1
  337. package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
  338. package/tools/v1/contracts/products/update-contracts-v1-products.mjs +12 -3
  339. package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
  340. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts +12 -6
  341. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts.map +1 -1
  342. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts +12 -6
  343. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts.map +1 -1
  344. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +13 -1
  345. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
  346. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +12 -3
  347. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
  348. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts +12 -6
  349. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
  350. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts +12 -6
  351. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
  352. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +13 -1
  353. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  354. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +12 -3
  355. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  356. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts +12 -6
  357. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +1 -1
  358. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts +12 -6
  359. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +1 -1
  360. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +13 -1
  361. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  362. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +12 -3
  363. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  364. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts +12 -6
  365. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  366. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts +12 -6
  367. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  368. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +13 -1
  369. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  370. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +12 -3
  371. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  372. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts +12 -6
  373. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  374. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts +12 -6
  375. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  376. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts +12 -6
  377. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts.map +1 -1
  378. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts +12 -6
  379. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts.map +1 -1
  380. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +13 -1
  381. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
  382. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +12 -3
  383. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  384. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts +12 -6
  385. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts.map +1 -1
  386. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts +12 -6
  387. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts.map +1 -1
  388. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +13 -1
  389. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
  390. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +12 -3
  391. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  392. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts +12 -6
  393. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  394. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts +12 -6
  395. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  396. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +13 -1
  397. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  398. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +12 -3
  399. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  400. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts +12 -6
  401. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  402. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts +12 -6
  403. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  404. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +13 -1
  405. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  406. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +12 -3
  407. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  408. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts +12 -6
  409. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  410. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts +12 -6
  411. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  412. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +13 -1
  413. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  414. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +12 -3
  415. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  416. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts +12 -6
  417. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts.map +1 -1
  418. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts +12 -6
  419. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts.map +1 -1
  420. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +13 -1
  421. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  422. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +12 -3
  423. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  424. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts +12 -6
  425. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +1 -1
  426. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts +12 -6
  427. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +1 -1
  428. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +13 -1
  429. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  430. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +12 -3
  431. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  432. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts +12 -6
  433. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts.map +1 -1
  434. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts +12 -6
  435. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts.map +1 -1
  436. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +13 -1
  437. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
  438. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +12 -3
  439. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
  440. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts +12 -6
  441. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +1 -1
  442. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts +12 -6
  443. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +1 -1
  444. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +13 -1
  445. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  446. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +12 -3
  447. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  448. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts +12 -6
  449. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts.map +1 -1
  450. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts +12 -6
  451. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts.map +1 -1
  452. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +13 -1
  453. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
  454. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +12 -3
  455. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
  456. package/tools/v1/contracts/retrieve-v1-contracts.d.mts +12 -6
  457. package/tools/v1/contracts/retrieve-v1-contracts.d.mts.map +1 -1
  458. package/tools/v1/contracts/retrieve-v1-contracts.d.ts +12 -6
  459. package/tools/v1/contracts/retrieve-v1-contracts.d.ts.map +1 -1
  460. package/tools/v1/contracts/retrieve-v1-contracts.js +13 -1
  461. package/tools/v1/contracts/retrieve-v1-contracts.js.map +1 -1
  462. package/tools/v1/contracts/retrieve-v1-contracts.mjs +11 -2
  463. package/tools/v1/contracts/retrieve-v1-contracts.mjs.map +1 -1
  464. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts +12 -6
  465. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts.map +1 -1
  466. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts +12 -6
  467. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts.map +1 -1
  468. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js +13 -1
  469. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js.map +1 -1
  470. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs +11 -2
  471. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs.map +1 -1
  472. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts +12 -6
  473. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +1 -1
  474. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts +12 -6
  475. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +1 -1
  476. package/tools/v1/contracts/update-end-date-v1-contracts.d.mts +12 -6
  477. package/tools/v1/contracts/update-end-date-v1-contracts.d.mts.map +1 -1
  478. package/tools/v1/contracts/update-end-date-v1-contracts.d.ts +12 -6
  479. package/tools/v1/contracts/update-end-date-v1-contracts.d.ts.map +1 -1
  480. package/tools/v1/contracts/update-end-date-v1-contracts.js +13 -1
  481. package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
  482. package/tools/v1/contracts/update-end-date-v1-contracts.mjs +12 -3
  483. package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
  484. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts +12 -6
  485. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +1 -1
  486. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts +12 -6
  487. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +1 -1
  488. package/tools/v1/credit-grants/create-v1-credit-grants.js +14 -2
  489. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  490. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +13 -4
  491. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  492. package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts +12 -6
  493. package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts.map +1 -1
  494. package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts +12 -6
  495. package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts.map +1 -1
  496. package/tools/v1/credit-grants/edit-v1-credit-grants.js +14 -2
  497. package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
  498. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +13 -4
  499. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
  500. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts +12 -6
  501. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts.map +1 -1
  502. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts +12 -6
  503. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts.map +1 -1
  504. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +14 -2
  505. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
  506. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +13 -4
  507. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
  508. package/tools/v1/credit-grants/list-v1-credit-grants.d.mts +12 -6
  509. package/tools/v1/credit-grants/list-v1-credit-grants.d.mts.map +1 -1
  510. package/tools/v1/credit-grants/list-v1-credit-grants.d.ts +12 -6
  511. package/tools/v1/credit-grants/list-v1-credit-grants.d.ts.map +1 -1
  512. package/tools/v1/credit-grants/list-v1-credit-grants.js +14 -2
  513. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  514. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +13 -4
  515. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  516. package/tools/v1/credit-grants/void-v1-credit-grants.d.mts +12 -6
  517. package/tools/v1/credit-grants/void-v1-credit-grants.d.mts.map +1 -1
  518. package/tools/v1/credit-grants/void-v1-credit-grants.d.ts +12 -6
  519. package/tools/v1/credit-grants/void-v1-credit-grants.d.ts.map +1 -1
  520. package/tools/v1/credit-grants/void-v1-credit-grants.js +14 -2
  521. package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
  522. package/tools/v1/credit-grants/void-v1-credit-grants.mjs +13 -4
  523. package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
  524. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts +12 -6
  525. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts.map +1 -1
  526. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts +12 -6
  527. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts.map +1 -1
  528. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts +12 -6
  529. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +1 -1
  530. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts +12 -6
  531. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +1 -1
  532. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts +12 -6
  533. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts.map +1 -1
  534. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts +12 -6
  535. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts.map +1 -1
  536. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +13 -1
  537. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
  538. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +12 -3
  539. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
  540. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts +12 -6
  541. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +1 -1
  542. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts +12 -6
  543. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +1 -1
  544. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts +12 -6
  545. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
  546. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts +12 -6
  547. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
  548. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts +12 -6
  549. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +1 -1
  550. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts +12 -6
  551. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +1 -1
  552. package/tools/v1/customers/alerts/list-customers-v1-alerts.js +14 -2
  553. package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
  554. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +13 -4
  555. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
  556. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts +12 -6
  557. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +1 -1
  558. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts +12 -6
  559. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +1 -1
  560. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts +12 -6
  561. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +1 -1
  562. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts +12 -6
  563. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +1 -1
  564. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +28 -1
  565. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
  566. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +26 -2
  567. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
  568. package/tools/v1/customers/archive-v1-customers.d.mts +12 -6
  569. package/tools/v1/customers/archive-v1-customers.d.mts.map +1 -1
  570. package/tools/v1/customers/archive-v1-customers.d.ts +12 -6
  571. package/tools/v1/customers/archive-v1-customers.d.ts.map +1 -1
  572. package/tools/v1/customers/archive-v1-customers.js +13 -1
  573. package/tools/v1/customers/archive-v1-customers.js.map +1 -1
  574. package/tools/v1/customers/archive-v1-customers.mjs +12 -3
  575. package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
  576. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts +12 -6
  577. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
  578. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts +12 -6
  579. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
  580. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +9 -1
  581. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
  582. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +9 -1
  583. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
  584. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts +12 -6
  585. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +1 -1
  586. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts +12 -6
  587. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +1 -1
  588. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js +2 -1
  589. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +1 -1
  590. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +2 -1
  591. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.map +1 -1
  592. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts +12 -6
  593. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +1 -1
  594. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts +12 -6
  595. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +1 -1
  596. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +15 -2
  597. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
  598. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +14 -4
  599. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
  600. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts +12 -6
  601. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
  602. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts +12 -6
  603. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
  604. package/tools/v1/customers/commits/create-customers-v1-commits.js +15 -3
  605. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  606. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +13 -4
  607. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  608. package/tools/v1/customers/commits/list-customers-v1-commits.d.mts +12 -6
  609. package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +1 -1
  610. package/tools/v1/customers/commits/list-customers-v1-commits.d.ts +12 -6
  611. package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +1 -1
  612. package/tools/v1/customers/commits/list-customers-v1-commits.js +13 -1
  613. package/tools/v1/customers/commits/list-customers-v1-commits.js.map +1 -1
  614. package/tools/v1/customers/commits/list-customers-v1-commits.mjs +11 -2
  615. package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +1 -1
  616. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts +12 -6
  617. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts.map +1 -1
  618. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts +12 -6
  619. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts.map +1 -1
  620. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +13 -1
  621. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
  622. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +12 -3
  623. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
  624. package/tools/v1/customers/create-v1-customers.d.mts +12 -6
  625. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  626. package/tools/v1/customers/create-v1-customers.d.ts +12 -6
  627. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  628. package/tools/v1/customers/create-v1-customers.js +49 -1
  629. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  630. package/tools/v1/customers/create-v1-customers.mjs +48 -3
  631. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  632. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts +12 -6
  633. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
  634. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts +12 -6
  635. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
  636. package/tools/v1/customers/credits/create-customers-v1-credits.js +13 -1
  637. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  638. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +12 -3
  639. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  640. package/tools/v1/customers/credits/list-customers-v1-credits.d.mts +12 -6
  641. package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +1 -1
  642. package/tools/v1/customers/credits/list-customers-v1-credits.d.ts +12 -6
  643. package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +1 -1
  644. package/tools/v1/customers/credits/list-customers-v1-credits.js +13 -1
  645. package/tools/v1/customers/credits/list-customers-v1-credits.js.map +1 -1
  646. package/tools/v1/customers/credits/list-customers-v1-credits.mjs +11 -2
  647. package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +1 -1
  648. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts +12 -6
  649. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts.map +1 -1
  650. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts +12 -6
  651. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts.map +1 -1
  652. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +13 -1
  653. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
  654. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +12 -3
  655. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
  656. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts +12 -6
  657. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts.map +1 -1
  658. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts +12 -6
  659. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts.map +1 -1
  660. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +14 -2
  661. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
  662. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +13 -4
  663. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
  664. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts +12 -6
  665. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts.map +1 -1
  666. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts +12 -6
  667. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts.map +1 -1
  668. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +13 -1
  669. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +1 -1
  670. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +11 -2
  671. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +1 -1
  672. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts +12 -6
  673. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts.map +1 -1
  674. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts +12 -6
  675. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts.map +1 -1
  676. package/tools/v1/customers/invoices/list-customers-v1-invoices.js +13 -1
  677. package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +1 -1
  678. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +11 -2
  679. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +1 -1
  680. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts +12 -6
  681. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +1 -1
  682. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts +12 -6
  683. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +1 -1
  684. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +13 -1
  685. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +1 -1
  686. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +11 -2
  687. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +1 -1
  688. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +12 -6
  689. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +1 -1
  690. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +12 -6
  691. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +1 -1
  692. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +1 -1
  693. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +1 -1
  694. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +1 -1
  695. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +1 -1
  696. package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts +12 -6
  697. package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts.map +1 -1
  698. package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts +12 -6
  699. package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts.map +1 -1
  700. package/tools/v1/customers/list-billable-metrics-v1-customers.js +13 -1
  701. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  702. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +12 -3
  703. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  704. package/tools/v1/customers/list-costs-v1-customers.d.mts +12 -6
  705. package/tools/v1/customers/list-costs-v1-customers.d.mts.map +1 -1
  706. package/tools/v1/customers/list-costs-v1-customers.d.ts +12 -6
  707. package/tools/v1/customers/list-costs-v1-customers.d.ts.map +1 -1
  708. package/tools/v1/customers/list-costs-v1-customers.js +14 -2
  709. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  710. package/tools/v1/customers/list-costs-v1-customers.mjs +13 -4
  711. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  712. package/tools/v1/customers/list-v1-customers.d.mts +12 -6
  713. package/tools/v1/customers/list-v1-customers.d.mts.map +1 -1
  714. package/tools/v1/customers/list-v1-customers.d.ts +12 -6
  715. package/tools/v1/customers/list-v1-customers.d.ts.map +1 -1
  716. package/tools/v1/customers/list-v1-customers.js +13 -1
  717. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  718. package/tools/v1/customers/list-v1-customers.mjs +12 -3
  719. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  720. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts +12 -6
  721. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts.map +1 -1
  722. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts +12 -6
  723. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts.map +1 -1
  724. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +13 -1
  725. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  726. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +12 -3
  727. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  728. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts +12 -6
  729. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +1 -1
  730. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts +12 -6
  731. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +1 -1
  732. package/tools/v1/customers/plans/add-customers-v1-plans.d.mts +12 -6
  733. package/tools/v1/customers/plans/add-customers-v1-plans.d.mts.map +1 -1
  734. package/tools/v1/customers/plans/add-customers-v1-plans.d.ts +12 -6
  735. package/tools/v1/customers/plans/add-customers-v1-plans.d.ts.map +1 -1
  736. package/tools/v1/customers/plans/add-customers-v1-plans.js +14 -2
  737. package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
  738. package/tools/v1/customers/plans/add-customers-v1-plans.mjs +13 -4
  739. package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
  740. package/tools/v1/customers/plans/end-customers-v1-plans.d.mts +12 -6
  741. package/tools/v1/customers/plans/end-customers-v1-plans.d.mts.map +1 -1
  742. package/tools/v1/customers/plans/end-customers-v1-plans.d.ts +12 -6
  743. package/tools/v1/customers/plans/end-customers-v1-plans.d.ts.map +1 -1
  744. package/tools/v1/customers/plans/end-customers-v1-plans.js +14 -2
  745. package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
  746. package/tools/v1/customers/plans/end-customers-v1-plans.mjs +13 -4
  747. package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
  748. package/tools/v1/customers/plans/list-customers-v1-plans.d.mts +12 -6
  749. package/tools/v1/customers/plans/list-customers-v1-plans.d.mts.map +1 -1
  750. package/tools/v1/customers/plans/list-customers-v1-plans.d.ts +12 -6
  751. package/tools/v1/customers/plans/list-customers-v1-plans.d.ts.map +1 -1
  752. package/tools/v1/customers/plans/list-customers-v1-plans.js +14 -2
  753. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  754. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +13 -4
  755. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  756. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts +12 -6
  757. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts.map +1 -1
  758. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts +12 -6
  759. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts.map +1 -1
  760. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +14 -2
  761. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
  762. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +13 -4
  763. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
  764. package/tools/v1/customers/preview-events-v1-customers.d.mts +12 -6
  765. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  766. package/tools/v1/customers/preview-events-v1-customers.d.ts +12 -6
  767. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  768. package/tools/v1/customers/preview-events-v1-customers.js +17 -4
  769. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  770. package/tools/v1/customers/preview-events-v1-customers.mjs +15 -5
  771. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  772. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts +12 -6
  773. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts.map +1 -1
  774. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts +12 -6
  775. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts.map +1 -1
  776. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +14 -2
  777. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -1
  778. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +13 -4
  779. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -1
  780. package/tools/v1/customers/retrieve-v1-customers.d.mts +12 -6
  781. package/tools/v1/customers/retrieve-v1-customers.d.mts.map +1 -1
  782. package/tools/v1/customers/retrieve-v1-customers.d.ts +12 -6
  783. package/tools/v1/customers/retrieve-v1-customers.d.ts.map +1 -1
  784. package/tools/v1/customers/retrieve-v1-customers.js +13 -1
  785. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  786. package/tools/v1/customers/retrieve-v1-customers.mjs +12 -3
  787. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  788. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts +12 -6
  789. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -1
  790. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts +12 -6
  791. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -1
  792. package/tools/v1/customers/set-billing-configurations-v1-customers.js +22 -4
  793. package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -1
  794. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +20 -5
  795. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -1
  796. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts +12 -6
  797. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts.map +1 -1
  798. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts +12 -6
  799. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts.map +1 -1
  800. package/tools/v1/customers/set-name-v1-customers.d.mts +12 -6
  801. package/tools/v1/customers/set-name-v1-customers.d.mts.map +1 -1
  802. package/tools/v1/customers/set-name-v1-customers.d.ts +12 -6
  803. package/tools/v1/customers/set-name-v1-customers.d.ts.map +1 -1
  804. package/tools/v1/customers/set-name-v1-customers.js +13 -1
  805. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  806. package/tools/v1/customers/set-name-v1-customers.mjs +12 -3
  807. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  808. package/tools/v1/customers/update-config-v1-customers.d.mts +12 -6
  809. package/tools/v1/customers/update-config-v1-customers.d.mts.map +1 -1
  810. package/tools/v1/customers/update-config-v1-customers.d.ts +12 -6
  811. package/tools/v1/customers/update-config-v1-customers.d.ts.map +1 -1
  812. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts +12 -6
  813. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +1 -1
  814. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts +12 -6
  815. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +1 -1
  816. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +13 -1
  817. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  818. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +12 -3
  819. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  820. package/tools/v1/invoices/regenerate-v1-invoices.d.mts +12 -6
  821. package/tools/v1/invoices/regenerate-v1-invoices.d.mts.map +1 -1
  822. package/tools/v1/invoices/regenerate-v1-invoices.d.ts +12 -6
  823. package/tools/v1/invoices/regenerate-v1-invoices.d.ts.map +1 -1
  824. package/tools/v1/invoices/regenerate-v1-invoices.js +13 -1
  825. package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
  826. package/tools/v1/invoices/regenerate-v1-invoices.mjs +12 -3
  827. package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
  828. package/tools/v1/invoices/void-v1-invoices.d.mts +12 -6
  829. package/tools/v1/invoices/void-v1-invoices.d.mts.map +1 -1
  830. package/tools/v1/invoices/void-v1-invoices.d.ts +12 -6
  831. package/tools/v1/invoices/void-v1-invoices.d.ts.map +1 -1
  832. package/tools/v1/invoices/void-v1-invoices.js +13 -1
  833. package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
  834. package/tools/v1/invoices/void-v1-invoices.mjs +12 -3
  835. package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
  836. package/tools/v1/payments/attempt-v1-payments.d.mts +12 -6
  837. package/tools/v1/payments/attempt-v1-payments.d.mts.map +1 -1
  838. package/tools/v1/payments/attempt-v1-payments.d.ts +12 -6
  839. package/tools/v1/payments/attempt-v1-payments.d.ts.map +1 -1
  840. package/tools/v1/payments/attempt-v1-payments.js +14 -2
  841. package/tools/v1/payments/attempt-v1-payments.js.map +1 -1
  842. package/tools/v1/payments/attempt-v1-payments.mjs +13 -4
  843. package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -1
  844. package/tools/v1/payments/cancel-v1-payments.d.mts +12 -6
  845. package/tools/v1/payments/cancel-v1-payments.d.mts.map +1 -1
  846. package/tools/v1/payments/cancel-v1-payments.d.ts +12 -6
  847. package/tools/v1/payments/cancel-v1-payments.d.ts.map +1 -1
  848. package/tools/v1/payments/cancel-v1-payments.js +14 -2
  849. package/tools/v1/payments/cancel-v1-payments.js.map +1 -1
  850. package/tools/v1/payments/cancel-v1-payments.mjs +13 -4
  851. package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -1
  852. package/tools/v1/payments/list-v1-payments.d.mts +12 -6
  853. package/tools/v1/payments/list-v1-payments.d.mts.map +1 -1
  854. package/tools/v1/payments/list-v1-payments.d.ts +12 -6
  855. package/tools/v1/payments/list-v1-payments.d.ts.map +1 -1
  856. package/tools/v1/payments/list-v1-payments.js +14 -2
  857. package/tools/v1/payments/list-v1-payments.js.map +1 -1
  858. package/tools/v1/payments/list-v1-payments.mjs +13 -4
  859. package/tools/v1/payments/list-v1-payments.mjs.map +1 -1
  860. package/tools/v1/plans/get-details-v1-plans.d.mts +12 -6
  861. package/tools/v1/plans/get-details-v1-plans.d.mts.map +1 -1
  862. package/tools/v1/plans/get-details-v1-plans.d.ts +12 -6
  863. package/tools/v1/plans/get-details-v1-plans.d.ts.map +1 -1
  864. package/tools/v1/plans/get-details-v1-plans.js +14 -2
  865. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  866. package/tools/v1/plans/get-details-v1-plans.mjs +13 -4
  867. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  868. package/tools/v1/plans/list-charges-v1-plans.d.mts +12 -6
  869. package/tools/v1/plans/list-charges-v1-plans.d.mts.map +1 -1
  870. package/tools/v1/plans/list-charges-v1-plans.d.ts +12 -6
  871. package/tools/v1/plans/list-charges-v1-plans.d.ts.map +1 -1
  872. package/tools/v1/plans/list-charges-v1-plans.js +14 -2
  873. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  874. package/tools/v1/plans/list-charges-v1-plans.mjs +13 -4
  875. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  876. package/tools/v1/plans/list-customers-v1-plans.d.mts +12 -6
  877. package/tools/v1/plans/list-customers-v1-plans.d.mts.map +1 -1
  878. package/tools/v1/plans/list-customers-v1-plans.d.ts +12 -6
  879. package/tools/v1/plans/list-customers-v1-plans.d.ts.map +1 -1
  880. package/tools/v1/plans/list-customers-v1-plans.js +14 -2
  881. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  882. package/tools/v1/plans/list-customers-v1-plans.mjs +13 -4
  883. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  884. package/tools/v1/plans/list-v1-plans.d.mts +12 -6
  885. package/tools/v1/plans/list-v1-plans.d.mts.map +1 -1
  886. package/tools/v1/plans/list-v1-plans.d.ts +12 -6
  887. package/tools/v1/plans/list-v1-plans.d.ts.map +1 -1
  888. package/tools/v1/plans/list-v1-plans.js +14 -2
  889. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  890. package/tools/v1/plans/list-v1-plans.mjs +13 -4
  891. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  892. package/tools/v1/pricing-units/list-v1-pricing-units.d.mts +12 -6
  893. package/tools/v1/pricing-units/list-v1-pricing-units.d.mts.map +1 -1
  894. package/tools/v1/pricing-units/list-v1-pricing-units.d.ts +12 -6
  895. package/tools/v1/pricing-units/list-v1-pricing-units.d.ts.map +1 -1
  896. package/tools/v1/pricing-units/list-v1-pricing-units.js +13 -1
  897. package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
  898. package/tools/v1/pricing-units/list-v1-pricing-units.mjs +12 -3
  899. package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
  900. package/tools/v1/services/list-v1-services.d.mts +12 -6
  901. package/tools/v1/services/list-v1-services.d.mts.map +1 -1
  902. package/tools/v1/services/list-v1-services.d.ts +12 -6
  903. package/tools/v1/services/list-v1-services.d.ts.map +1 -1
  904. package/tools/v1/services/list-v1-services.js +13 -1
  905. package/tools/v1/services/list-v1-services.js.map +1 -1
  906. package/tools/v1/services/list-v1-services.mjs +12 -3
  907. package/tools/v1/services/list-v1-services.mjs.map +1 -1
  908. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts +51 -0
  909. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +1 -0
  910. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +51 -0
  911. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +1 -0
  912. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +64 -0
  913. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +1 -0
  914. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +57 -0
  915. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +1 -0
  916. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +51 -0
  917. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +1 -0
  918. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +51 -0
  919. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +1 -0
  920. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +53 -0
  921. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +1 -0
  922. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +46 -0
  923. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +1 -0
  924. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +51 -0
  925. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +1 -0
  926. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +51 -0
  927. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +1 -0
  928. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +73 -0
  929. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +1 -0
  930. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +66 -0
  931. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +1 -0
  932. package/tools/v1/usage/ingest-v1-usage.d.mts +12 -6
  933. package/tools/v1/usage/ingest-v1-usage.d.mts.map +1 -1
  934. package/tools/v1/usage/ingest-v1-usage.d.ts +12 -6
  935. package/tools/v1/usage/ingest-v1-usage.d.ts.map +1 -1
  936. package/tools/v1/usage/list-v1-usage.d.mts +12 -6
  937. package/tools/v1/usage/list-v1-usage.d.mts.map +1 -1
  938. package/tools/v1/usage/list-v1-usage.d.ts +12 -6
  939. package/tools/v1/usage/list-v1-usage.d.ts.map +1 -1
  940. package/tools/v1/usage/list-v1-usage.js +13 -1
  941. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  942. package/tools/v1/usage/list-v1-usage.mjs +12 -3
  943. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  944. package/tools/v1/usage/list-with-groups-v1-usage.d.mts +12 -6
  945. package/tools/v1/usage/list-with-groups-v1-usage.d.mts.map +1 -1
  946. package/tools/v1/usage/list-with-groups-v1-usage.d.ts +12 -6
  947. package/tools/v1/usage/list-with-groups-v1-usage.d.ts.map +1 -1
  948. package/tools/v1/usage/list-with-groups-v1-usage.js +13 -1
  949. package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
  950. package/tools/v1/usage/list-with-groups-v1-usage.mjs +12 -3
  951. package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
  952. package/tools/v1/usage/search-v1-usage.d.mts +12 -6
  953. package/tools/v1/usage/search-v1-usage.d.mts.map +1 -1
  954. package/tools/v1/usage/search-v1-usage.d.ts +12 -6
  955. package/tools/v1/usage/search-v1-usage.d.ts.map +1 -1
  956. package/tools/v1/usage/search-v1-usage.js +14 -2
  957. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  958. package/tools/v1/usage/search-v1-usage.mjs +13 -4
  959. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  960. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts +12 -6
  961. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  962. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts +12 -6
  963. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  964. package/tools/v2/contracts/edit-commit-v2-contracts.js +21 -1
  965. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  966. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +20 -3
  967. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  968. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts +12 -6
  969. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  970. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts +12 -6
  971. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  972. package/tools/v2/contracts/edit-credit-v2-contracts.js +21 -1
  973. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  974. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +20 -3
  975. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  976. package/tools/v2/contracts/edit-v2-contracts.d.mts +12 -6
  977. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  978. package/tools/v2/contracts/edit-v2-contracts.d.ts +12 -6
  979. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  980. package/tools/v2/contracts/edit-v2-contracts.js +155 -4
  981. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  982. package/tools/v2/contracts/edit-v2-contracts.mjs +153 -5
  983. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
  984. package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts +12 -6
  985. package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts.map +1 -1
  986. package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts +12 -6
  987. package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts.map +1 -1
  988. package/tools/v2/contracts/get-edit-history-v2-contracts.js +13 -1
  989. package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +1 -1
  990. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +11 -2
  991. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +1 -1
  992. package/tools/v2/contracts/list-v2-contracts.d.mts +12 -6
  993. package/tools/v2/contracts/list-v2-contracts.d.mts.map +1 -1
  994. package/tools/v2/contracts/list-v2-contracts.d.ts +12 -6
  995. package/tools/v2/contracts/list-v2-contracts.d.ts.map +1 -1
  996. package/tools/v2/contracts/list-v2-contracts.js +13 -1
  997. package/tools/v2/contracts/list-v2-contracts.js.map +1 -1
  998. package/tools/v2/contracts/list-v2-contracts.mjs +11 -2
  999. package/tools/v2/contracts/list-v2-contracts.mjs.map +1 -1
  1000. package/tools/v2/contracts/retrieve-v2-contracts.d.mts +12 -6
  1001. package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +1 -1
  1002. package/tools/v2/contracts/retrieve-v2-contracts.d.ts +12 -6
  1003. package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +1 -1
  1004. package/tools/v2/contracts/retrieve-v2-contracts.js +13 -1
  1005. package/tools/v2/contracts/retrieve-v2-contracts.js.map +1 -1
  1006. package/tools/v2/contracts/retrieve-v2-contracts.mjs +11 -2
  1007. package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +1 -1
  1008. package/code-tool-paths.cjs +0 -6
  1009. package/code-tool-paths.cjs.map +0 -1
  1010. package/code-tool-paths.d.cts +0 -2
  1011. package/code-tool-paths.d.cts.map +0 -1
  1012. package/code-tool-worker.d.mts +0 -5
  1013. package/code-tool-worker.d.mts.map +0 -1
  1014. package/code-tool-worker.d.ts +0 -5
  1015. package/code-tool-worker.d.ts.map +0 -1
  1016. package/code-tool-worker.js +0 -45
  1017. package/code-tool-worker.js.map +0 -1
  1018. package/code-tool-worker.mjs +0 -40
  1019. package/code-tool-worker.mjs.map +0 -1
  1020. package/src/code-tool-paths.cts +0 -3
  1021. package/src/code-tool-worker.ts +0 -46
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_entries_v1_credit_grants',
20
20
  description:
21
- "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\nFetches a list of credit ledger entries. Returns lists of ledgers per customer. Ledger entries are returned in chronological order. Ledger entries associated with voided credit grants are not included.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_grant_list_entries_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_grant_list_entries_response: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string'\n },\n ledgers: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n ending_balance: {\n type: 'object',\n description: 'the effective balances at the end of the specified time window',\n properties: {\n effective_at: {\n type: 'string',\n description: 'the ending_before request parameter (if supplied) or the current billing period\\'s end date',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'the ending balance, including the balance of all grants that have not expired before the effective_at date and deductions that happened before the effective_at date'\n },\n including_pending: {\n type: 'number',\n description: 'the excluding_pending balance plus any pending invoice deductions and expirations that will happen by the effective_at date'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n entries: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n pending_entries: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n starting_balance: {\n type: 'object',\n properties: {\n effective_at: {\n type: 'string',\n description: 'the starting_on request parameter (if supplied) or the first credit grant\\'s effective_at date',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'the starting balance, including all posted grants, deductions, and expirations that happened at or before the effective_at timestamp'\n },\n including_pending: {\n type: 'number',\n description: 'the excluding_pending balance plus any pending activity that has not been posted at the time of the query'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n }\n },\n required: [ 'credit_type',\n 'ending_balance',\n 'entries',\n 'pending_entries',\n 'starting_balance'\n ]\n }\n }\n },\n required: [ 'customer_id',\n 'ledgers'\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 credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\n ]\n }\n }\n}\n```",
21
+ "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\nFetches a list of credit ledger entries. Returns lists of ledgers per customer. Ledger entries are returned in chronological order. Ledger entries associated with voided credit grants are not included. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_grant_list_entries_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_grant_list_entries_response: {\n type: 'object',\n properties: {\n customer_id: {\n type: 'string'\n },\n ledgers: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n ending_balance: {\n type: 'object',\n description: 'the effective balances at the end of the specified time window',\n properties: {\n effective_at: {\n type: 'string',\n description: 'the ending_before request parameter (if supplied) or the current billing period\\'s end date',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'the ending balance, including the balance of all grants that have not expired before the effective_at date and deductions that happened before the effective_at date'\n },\n including_pending: {\n type: 'number',\n description: 'the excluding_pending balance plus any pending invoice deductions and expirations that will happen by the effective_at date'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n entries: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n pending_entries: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n starting_balance: {\n type: 'object',\n properties: {\n effective_at: {\n type: 'string',\n description: 'the starting_on request parameter (if supplied) or the first credit grant\\'s effective_at date',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'the starting balance, including all posted grants, deductions, and expirations that happened at or before the effective_at timestamp'\n },\n including_pending: {\n type: 'number',\n description: 'the excluding_pending balance plus any pending activity that has not been posted at the time of the query'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n }\n },\n required: [ 'credit_type',\n 'ending_balance',\n 'entries',\n 'pending_entries',\n 'starting_balance'\n ]\n }\n }\n },\n required: [ 'customer_id',\n 'ledgers'\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 credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -73,7 +73,14 @@ export const tool: Tool = {
73
73
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
74
74
  const { jq_filter, ...body } = args as any;
75
75
  const response = await client.v1.creditGrants.listEntries(body).asResponse();
76
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
76
+ try {
77
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
78
+ } catch (error) {
79
+ if (error instanceof Metronome.APIError || isJqError(error)) {
80
+ return asErrorResult(error.message);
81
+ }
82
+ throw error;
83
+ }
77
84
  };
78
85
 
79
86
  export default { metadata, tool, handler };
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_v1_credit_grants',
20
20
  description:
21
- "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\nList credit grants. This list does not included voided grants.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_grant_list_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_grant_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the credit grant'\n },\n balance: {\n type: 'object',\n description: 'The effective balance of the grant as of the end of the customer\\'s current billing period. Expiration deductions will be included only if the grant expires before the end of the current billing period.',\n properties: {\n effective_at: {\n type: 'string',\n description: 'The end_date of the customer\\'s current billing period.',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted deductions. If the grant has expired, this amount will be 0.'\n },\n including_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted and pending deductions. If the grant expires before the end of the customer\\'s current billing period, this amount will be 0.'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n expires_at: {\n type: 'string',\n format: 'date-time'\n },\n grant_amount: {\n type: 'object',\n description: 'the amount of credits initially granted',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n name: {\n type: 'string'\n },\n paid_amount: {\n type: 'object',\n description: 'the amount paid for this credit grant',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n pending_deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n priority: {\n type: 'number'\n },\n credit_grant_type: {\n type: 'string'\n },\n invoice_id: {\n type: 'string',\n description: 'the Metronome ID of the invoice with the purchase charge for this credit grant, if applicable'\n },\n products: {\n type: 'array',\n description: 'The products which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.)',\n items: {\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 reason: {\n type: 'string'\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'balance',\n 'custom_fields',\n 'customer_id',\n 'deductions',\n 'effective_at',\n 'expires_at',\n 'grant_amount',\n 'name',\n 'paid_amount',\n 'pending_deductions',\n 'priority'\n ]\n },\n credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\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```",
21
+ "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\nList credit grants. This list does not included voided grants. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_grant_list_response'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_grant_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the credit grant'\n },\n balance: {\n type: 'object',\n description: 'The effective balance of the grant as of the end of the customer\\'s current billing period. Expiration deductions will be included only if the grant expires before the end of the current billing period.',\n properties: {\n effective_at: {\n type: 'string',\n description: 'The end_date of the customer\\'s current billing period.',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted deductions. If the grant has expired, this amount will be 0.'\n },\n including_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted and pending deductions. If the grant expires before the end of the customer\\'s current billing period, this amount will be 0.'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n custom_fields: {\n type: 'object',\n description: 'Custom fields to be added eg. { \"key1\": \"value1\", \"key2\": \"value2\" }',\n additionalProperties: true\n },\n customer_id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n expires_at: {\n type: 'string',\n format: 'date-time'\n },\n grant_amount: {\n type: 'object',\n description: 'the amount of credits initially granted',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n name: {\n type: 'string'\n },\n paid_amount: {\n type: 'object',\n description: 'the amount paid for this credit grant',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n pending_deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n priority: {\n type: 'number'\n },\n credit_grant_type: {\n type: 'string'\n },\n invoice_id: {\n type: 'string',\n description: 'the Metronome ID of the invoice with the purchase charge for this credit grant, if applicable'\n },\n products: {\n type: 'array',\n description: 'The products which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.)',\n items: {\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 reason: {\n type: 'string'\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'balance',\n 'custom_fields',\n 'customer_id',\n 'deductions',\n 'effective_at',\n 'expires_at',\n 'grant_amount',\n 'name',\n 'paid_amount',\n 'pending_deductions',\n 'priority'\n ]\n },\n credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\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```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -79,7 +79,14 @@ export const tool: Tool = {
79
79
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
80
80
  const { jq_filter, ...body } = args as any;
81
81
  const response = await client.v1.creditGrants.list(body).asResponse();
82
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
82
+ try {
83
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
84
+ } catch (error) {
85
+ if (error instanceof Metronome.APIError || isJqError(error)) {
86
+ return asErrorResult(error.message);
87
+ }
88
+ throw error;
89
+ }
83
90
  };
84
91
 
85
92
  export default { metadata, tool, handler };
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'void_v1_credit_grants',
20
20
  description:
21
- "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\nVoid a credit grant\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/credit_grant_void_response',\n $defs: {\n credit_grant_void_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ]\n },\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
21
+ "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\nVoid a credit grant. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/credit_grant_void_response',\n $defs: {\n credit_grant_void_response: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ]\n },\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -47,7 +47,14 @@ export const tool: Tool = {
47
47
 
48
48
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
49
49
  const { jq_filter, ...body } = args as any;
50
- return asTextContentResult(await maybeFilter(jq_filter, await client.v1.creditGrants.void(body)));
50
+ try {
51
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.creditGrants.void(body)));
52
+ } catch (error) {
53
+ if (error instanceof Metronome.APIError || isJqError(error)) {
54
+ return asErrorResult(error.message);
55
+ }
56
+ throw error;
57
+ }
51
58
  };
52
59
 
53
60
  export default { metadata, tool, handler };
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -68,7 +68,14 @@ export const tool: Tool = {
68
68
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
69
69
  const { jq_filter, ...body } = args as any;
70
70
  const response = await client.v1.customFields.listKeys(body).asResponse();
71
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
71
+ try {
72
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
73
+ } catch (error) {
74
+ if (error instanceof Metronome.APIError || isJqError(error)) {
75
+ return asErrorResult(error.message);
76
+ }
77
+ throw error;
78
+ }
72
79
  };
73
80
 
74
81
  export default { metadata, tool, handler };
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_customers_v1_alerts',
20
20
  description:
21
- "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\nRetrieve all threshold notification configurations and their current statuses for a specific customer in a single API call. This endpoint provides a comprehensive view of all threshold notification monitoring a customer account.\n\n### Use this endpoint to:\n- Display all active threshold notifications for a customer in dashboards or admin panels\n- Quickly identify which threshold notifications a customer is currently triggering\n- Audit threshold notification coverage for specific accounts\n- Filter threshold notifications by status (enabled, disabled, or archived)\n\n### Key response fields:\n- data: Array of CustomerAlert objects, each containing:\n - Current evaluation status (`ok`, `in_alarm`, `evaluating`, or `null`)\n - Complete threshold notification configuration and threshold details\n - Threshold notification metadata including type, name, and last update time\n- next_page: Pagination cursor for retrieving additional results\n\n### Usage guidelines:\n- Default behavior: Returns only enabled threshold notifications unless `alert_statuses` filter is specified\n- Pagination: Use the `next_page` cursor to retrieve all results for customers with many notifications\n- Performance: Efficiently retrieves multiple threshold notification statuses in a single request instead of making individual calls\n- Filtering: Pass the `alert_statuses` array to include disabled or archived threshold notifications in results\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/customer_alert'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n customer_alert: {\n type: 'object',\n properties: {\n alert: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the threshold notification'\n },\n name: {\n type: 'string',\n description: 'Name of the threshold notification'\n },\n status: {\n type: 'string',\n description: 'Status of the threshold notification',\n enum: [ 'enabled',\n 'archived',\n 'disabled'\n ]\n },\n threshold: {\n type: 'number',\n description: 'Threshold value of the notification policy'\n },\n type: {\n type: 'string',\n description: 'Type of the threshold notification',\n enum: [ 'low_credit_balance_reached',\n 'spend_threshold_reached',\n 'monthly_invoice_total_spend_threshold_reached',\n 'low_remaining_days_in_plan_reached',\n 'low_remaining_credit_percentage_reached',\n 'usage_threshold_reached',\n 'low_remaining_days_for_commit_segment_reached',\n 'low_remaining_commit_balance_reached',\n 'low_remaining_commit_percentage_reached',\n 'low_remaining_days_for_contract_credit_segment_reached',\n 'low_remaining_contract_credit_balance_reached',\n 'low_remaining_contract_credit_percentage_reached',\n 'low_remaining_contract_credit_and_commit_balance_reached',\n 'invoice_total_reached'\n ]\n },\n updated_at: {\n type: 'string',\n description: 'Timestamp for when the threshold notification was last updated',\n format: 'date-time'\n },\n credit_grant_type_filters: {\n type: 'array',\n description: 'An array of strings, representing a way to filter the credit grant this threshold notification applies to, by looking at the credit_grant_type field on the credit grant. This field is only defined for CreditPercentage and CreditBalance notifications',\n items: {\n type: 'string'\n }\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_field_filters: {\n type: 'array',\n description: 'A list of custom field filters for notification types that support advanced filtering',\n items: {\n type: 'object',\n properties: {\n entity: {\n type: 'string',\n enum: [ 'Contract',\n 'Commit',\n 'ContractCredit'\n ]\n },\n key: {\n type: 'string'\n },\n value: {\n type: 'string'\n }\n },\n required: [ 'entity',\n 'key',\n 'value'\n ]\n }\n },\n group_key_filter: {\n type: 'object',\n description: 'Scopes threshold notification evaluation to a specific presentation group key on individual line items. Only present for spend notifications.',\n properties: {\n key: {\n type: 'string'\n },\n value: {\n type: 'string'\n }\n },\n required: [ 'key',\n 'value'\n ]\n },\n group_values: {\n type: 'array',\n description: 'Only present for `spend_threshold_reached` notifications. Scope notification to a specific group key on individual line items.',\n items: {\n type: 'object',\n properties: {\n key: {\n type: 'string'\n },\n value: {\n type: 'string'\n }\n },\n required: [ 'key'\n ]\n }\n },\n invoice_types_filter: {\n type: 'array',\n description: 'Only supported for invoice_total_reached threshold notifications. A list of invoice types to evaluate.',\n items: {\n type: 'string'\n }\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'name',\n 'status',\n 'threshold',\n 'type',\n 'updated_at'\n ]\n },\n customer_status: {\n type: 'string',\n description: 'The status of the threshold notification. If the notification is archived, null will be returned.',\n enum: [ 'ok',\n 'in_alarm',\n 'evaluating'\n ]\n },\n triggered_by: {\n type: 'string',\n description: 'If present, indicates the reason the threshold notification was triggered.'\n }\n },\n required: [ 'alert',\n 'customer_status'\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```",
21
+ "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\nRetrieve all threshold notification configurations and their current statuses for a specific customer in a single API call. This endpoint provides a comprehensive view of all threshold notification monitoring a customer account.\n\n### Use this endpoint to:\n- Display all active threshold notifications for a customer in dashboards or admin panels\n- Quickly identify which threshold notifications a customer is currently triggering\n- Audit threshold notification coverage for specific accounts\n- Filter threshold notifications by status (enabled, disabled, or archived)\n\n### Key response fields:\n- data: Array of CustomerAlert objects, each containing:\n - Current evaluation status (`ok`, `in_alarm`, `evaluating`, or `null`)\n - Complete threshold notification configuration and threshold details\n - Threshold notification metadata including type, name, and last update time\n- next_page: Pagination cursor for retrieving additional results\n\n### Usage guidelines:\n- Default behavior: Returns only enabled threshold notifications unless `alert_statuses` filter is specified\n- Pagination: Use the `next_page` cursor to retrieve all results for customers with many notifications\n- Performance: Efficiently retrieves multiple threshold notification statuses in a single request instead of making individual calls\n- Filtering: Pass the `alert_statuses` array to include disabled or archived threshold notifications in results\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/customer_alert'\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n customer_alert: {\n type: 'object',\n properties: {\n alert: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the threshold notification'\n },\n name: {\n type: 'string',\n description: 'Name of the threshold notification'\n },\n status: {\n type: 'string',\n description: 'Status of the threshold notification',\n enum: [ 'enabled',\n 'archived',\n 'disabled'\n ]\n },\n threshold: {\n type: 'number',\n description: 'Threshold value of the notification policy'\n },\n type: {\n type: 'string',\n description: 'Type of the threshold notification',\n enum: [ 'low_credit_balance_reached',\n 'spend_threshold_reached',\n 'monthly_invoice_total_spend_threshold_reached',\n 'low_remaining_days_in_plan_reached',\n 'low_remaining_credit_percentage_reached',\n 'usage_threshold_reached',\n 'low_remaining_days_for_commit_segment_reached',\n 'low_remaining_commit_balance_reached',\n 'low_remaining_commit_percentage_reached',\n 'low_remaining_days_for_contract_credit_segment_reached',\n 'low_remaining_contract_credit_balance_reached',\n 'low_remaining_contract_credit_percentage_reached',\n 'low_remaining_contract_credit_and_commit_balance_reached',\n 'low_remaining_seat_balance_reached',\n 'invoice_total_reached'\n ]\n },\n updated_at: {\n type: 'string',\n description: 'Timestamp for when the threshold notification was last updated',\n format: 'date-time'\n },\n credit_grant_type_filters: {\n type: 'array',\n description: 'An array of strings, representing a way to filter the credit grant this threshold notification applies to, by looking at the credit_grant_type field on the credit grant. This field is only defined for CreditPercentage and CreditBalance notifications',\n items: {\n type: 'string'\n }\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_field_filters: {\n type: 'array',\n description: 'A list of custom field filters for notification types that support advanced filtering',\n items: {\n type: 'object',\n properties: {\n entity: {\n type: 'string',\n enum: [ 'Contract',\n 'Commit',\n 'ContractCredit'\n ]\n },\n key: {\n type: 'string'\n },\n value: {\n type: 'string'\n }\n },\n required: [ 'entity',\n 'key',\n 'value'\n ]\n }\n },\n group_key_filter: {\n type: 'object',\n description: 'Scopes threshold notification evaluation to a specific presentation group key on individual line items. Only present for spend notifications.',\n properties: {\n key: {\n type: 'string'\n },\n value: {\n type: 'string'\n }\n },\n required: [ 'key',\n 'value'\n ]\n },\n group_values: {\n type: 'array',\n description: 'Only present for `spend_threshold_reached` notifications. Scope notification to a specific group key on individual line items.',\n items: {\n type: 'object',\n properties: {\n key: {\n type: 'string'\n },\n value: {\n type: 'string'\n }\n },\n required: [ 'key'\n ]\n }\n },\n invoice_types_filter: {\n type: 'array',\n description: 'Only supported for invoice_total_reached threshold notifications. A list of invoice types to evaluate.',\n items: {\n type: 'string'\n }\n },\n seat_filter: {\n type: 'object',\n description: 'Only present for low_remaining_seat_balance_reached notifications. The seat group key or seat group key-value pair the alert is scoped to.',\n properties: {\n seat_group_key: {\n type: 'string',\n description: 'The seat group key (e.g., \"seat_id\", \"user_id\") that the alert is scoped to.'\n },\n seat_group_value: {\n type: 'string',\n description: 'The seat group value that the alert is scoped to.'\n }\n },\n required: [ 'seat_group_key'\n ]\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'name',\n 'status',\n 'threshold',\n 'type',\n 'updated_at'\n ]\n },\n customer_status: {\n type: 'string',\n description: 'The status of the threshold notification. If the notification is archived, null will be returned.',\n enum: [ 'ok',\n 'in_alarm',\n 'evaluating'\n ]\n },\n triggered_by: {\n type: 'string',\n description: 'If present, indicates the reason the threshold notification was triggered.'\n }\n },\n required: [ 'alert',\n 'customer_status'\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```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -54,7 +54,14 @@ export const tool: Tool = {
54
54
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
55
55
  const { jq_filter, ...body } = args as any;
56
56
  const response = await client.v1.customers.alerts.list(body).asResponse();
57
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
57
+ try {
58
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
59
+ } catch (error) {
60
+ if (error instanceof Metronome.APIError || isJqError(error)) {
61
+ return asErrorResult(error.message);
62
+ }
63
+ throw error;
64
+ }
58
65
  };
59
66
 
60
67
  export default { metadata, tool, handler };
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
4
4
 
5
5
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import Metronome from '@metronome/sdk';
@@ -54,6 +54,22 @@ export const tool: Tool = {
54
54
  'When parallel threshold notifications are enabled during migration, this flag denotes whether to fetch notifications for plans or contracts.',
55
55
  enum: ['PLANS', 'CONTRACTS'],
56
56
  },
57
+ seat_filter: {
58
+ type: 'object',
59
+ description:
60
+ 'Only allowed for `low_remaining_seat_balance_reached` notifications. This filters alerts by the seat group key-value pair.',
61
+ properties: {
62
+ seat_group_key: {
63
+ type: 'string',
64
+ description: 'The seat group key (e.g., "seat_id", "user_id")',
65
+ },
66
+ seat_group_value: {
67
+ type: 'string',
68
+ description: 'The specific seat identifier to filter by',
69
+ },
70
+ },
71
+ required: ['seat_group_key', 'seat_group_value'],
72
+ },
57
73
  },
58
74
  required: ['alert_id', 'customer_id'],
59
75
  },
@@ -62,7 +78,14 @@ export const tool: Tool = {
62
78
 
63
79
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
64
80
  const body = args as any;
65
- return asTextContentResult(await client.v1.customers.alerts.retrieve(body));
81
+ try {
82
+ return asTextContentResult(await client.v1.customers.alerts.retrieve(body));
83
+ } catch (error) {
84
+ if (error instanceof Metronome.APIError) {
85
+ return asErrorResult(error.message);
86
+ }
87
+ throw error;
88
+ }
66
89
  };
67
90
 
68
91
  export default { metadata, tool, handler };
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -39,7 +39,14 @@ export const tool: Tool = {
39
39
 
40
40
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
41
41
  const { jq_filter, ...body } = args as any;
42
- return asTextContentResult(await maybeFilter(jq_filter, await client.v1.customers.archive(body)));
42
+ try {
43
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.customers.archive(body)));
44
+ } catch (error) {
45
+ if (error instanceof Metronome.APIError || isJqError(error)) {
46
+ return asErrorResult(error.message);
47
+ }
48
+ throw error;
49
+ }
43
50
  };
44
51
 
45
52
  export default { metadata, tool, handler };
@@ -16,7 +16,8 @@ export const metadata: Metadata = {
16
16
 
17
17
  export const tool: Tool = {
18
18
  name: 'create_customers_v1_billing_config',
19
- description: 'Set the billing configuration for a given customer.',
19
+ description:
20
+ 'Set the billing configuration for a given customer. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n',
20
21
  inputSchema: {
21
22
  type: 'object',
22
23
  properties: {
@@ -34,6 +35,7 @@ export const tool: Tool = {
34
35
  'quickbooks_online',
35
36
  'workday',
36
37
  'gcp_marketplace',
38
+ 'metronome',
37
39
  ],
38
40
  },
39
41
  billing_provider_customer_id: {
@@ -41,6 +43,12 @@ export const tool: Tool = {
41
43
  description:
42
44
  "The customer ID in the billing provider's system. For Azure, this is the subscription ID.",
43
45
  },
46
+ aws_customer_account_id: {
47
+ type: 'string',
48
+ },
49
+ aws_customer_id: {
50
+ type: 'string',
51
+ },
44
52
  aws_product_code: {
45
53
  type: 'string',
46
54
  },
@@ -76,6 +84,8 @@ export const tool: Tool = {
76
84
  },
77
85
  stripe_collection_method: {
78
86
  type: 'string',
87
+ description:
88
+ "The collection method for the customer's invoices.\nNOTE: `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.",
79
89
  enum: [
80
90
  'charge_automatically',
81
91
  'send_invoice',
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
17
17
  export const tool: Tool = {
18
18
  name: 'delete_customers_v1_billing_config',
19
19
  description:
20
- 'Delete the billing configuration for a given customer. Note: this is unsupported for Azure and AWS Marketplace customers.\n',
20
+ 'Delete the billing configuration for a given customer.\nNote: this is unsupported for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n',
21
21
  inputSchema: {
22
22
  type: 'object',
23
23
  properties: {
@@ -35,6 +35,7 @@ export const tool: Tool = {
35
35
  'quickbooks_online',
36
36
  'workday',
37
37
  'gcp_marketplace',
38
+ 'metronome',
38
39
  ],
39
40
  },
40
41
  },
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'retrieve_customers_v1_billing_config',
20
20
  description:
21
- "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 the billing configuration for the given customer.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/billing_config_retrieve_response',\n $defs: {\n billing_config_retrieve_response: {\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n aws_expiration_date: {\n type: 'string',\n description: 'Contract expiration date for the customer. The expected format is RFC 3339 and can be retrieved from [AWS\\'s GetEntitlements API](https://docs.aws.amazon.com/marketplaceentitlement/latest/APIReference/API_GetEntitlements.html).',\n format: 'date-time'\n },\n aws_is_subscription_product: {\n type: 'boolean',\n description: 'True if the aws_product_code is a SAAS subscription product, false otherwise.'\n },\n aws_product_code: {\n type: 'string'\n },\n aws_region: {\n type: 'string',\n enum: [ 'af-south-1',\n 'ap-east-1',\n 'ap-northeast-1',\n 'ap-northeast-2',\n 'ap-northeast-3',\n 'ap-south-1',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'ca-central-1',\n 'cn-north-1',\n 'cn-northwest-1',\n 'eu-central-1',\n 'eu-north-1',\n 'eu-south-1',\n 'eu-west-1',\n 'eu-west-2',\n 'eu-west-3',\n 'me-south-1',\n 'sa-east-1',\n 'us-east-1',\n 'us-east-2',\n 'us-gov-east-1',\n 'us-gov-west-1',\n 'us-west-1',\n 'us-west-2'\n ]\n },\n azure_expiration_date: {\n type: 'string',\n description: 'Subscription term start/end date for the customer. The expected format is RFC 3339 and can be retrieved from [Azure\\'s Get Subscription API](https://learn.microsoft.com/en-us/partner-center/marketplace/partner-center-portal/pc-saas-fulfillment-subscription-api#get-subscription).',\n format: 'date-time'\n },\n azure_plan_id: {\n type: 'string'\n },\n azure_start_date: {\n type: 'string',\n description: 'Subscription term start/end date for the customer. The expected format is RFC 3339 and can be retrieved from [Azure\\'s Get Subscription API](https://learn.microsoft.com/en-us/partner-center/marketplace/partner-center-portal/pc-saas-fulfillment-subscription-api#get-subscription).',\n format: 'date-time'\n },\n azure_subscription_status: {\n type: 'string',\n enum: [ 'Subscribed',\n 'Unsubscribed',\n 'Suspended',\n 'PendingFulfillmentStart'\n ]\n },\n billing_provider_customer_id: {\n type: 'string'\n },\n stripe_collection_method: {\n type: 'string',\n enum: [ 'charge_automatically',\n 'send_invoice',\n 'auto_charge_payment_intent',\n 'manually_charge_payment_intent'\n ]\n }\n }\n }\n },\n required: [ 'data'\n ]\n }\n }\n}\n```",
21
+ "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 the billing configuration for the given customer. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/billing_config_retrieve_response',\n $defs: {\n billing_config_retrieve_response: {\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n aws_customer_account_id: {\n type: 'string'\n },\n aws_customer_id: {\n type: 'string'\n },\n aws_expiration_date: {\n type: 'string',\n description: 'Contract expiration date for the customer. The expected format is RFC 3339 and can be retrieved from [AWS\\'s GetEntitlements API](https://docs.aws.amazon.com/marketplaceentitlement/latest/APIReference/API_GetEntitlements.html).',\n format: 'date-time'\n },\n aws_is_subscription_product: {\n type: 'boolean',\n description: 'True if the aws_product_code is a SAAS subscription product, false otherwise.'\n },\n aws_product_code: {\n type: 'string'\n },\n aws_region: {\n type: 'string',\n enum: [ 'af-south-1',\n 'ap-east-1',\n 'ap-northeast-1',\n 'ap-northeast-2',\n 'ap-northeast-3',\n 'ap-south-1',\n 'ap-southeast-1',\n 'ap-southeast-2',\n 'ca-central-1',\n 'cn-north-1',\n 'cn-northwest-1',\n 'eu-central-1',\n 'eu-north-1',\n 'eu-south-1',\n 'eu-west-1',\n 'eu-west-2',\n 'eu-west-3',\n 'me-south-1',\n 'sa-east-1',\n 'us-east-1',\n 'us-east-2',\n 'us-gov-east-1',\n 'us-gov-west-1',\n 'us-west-1',\n 'us-west-2'\n ]\n },\n azure_expiration_date: {\n type: 'string',\n description: 'Subscription term start/end date for the customer. The expected format is RFC 3339 and can be retrieved from [Azure\\'s Get Subscription API](https://learn.microsoft.com/en-us/partner-center/marketplace/partner-center-portal/pc-saas-fulfillment-subscription-api#get-subscription).',\n format: 'date-time'\n },\n azure_plan_id: {\n type: 'string'\n },\n azure_start_date: {\n type: 'string',\n description: 'Subscription term start/end date for the customer. The expected format is RFC 3339 and can be retrieved from [Azure\\'s Get Subscription API](https://learn.microsoft.com/en-us/partner-center/marketplace/partner-center-portal/pc-saas-fulfillment-subscription-api#get-subscription).',\n format: 'date-time'\n },\n azure_subscription_status: {\n type: 'string',\n enum: [ 'Subscribed',\n 'Unsubscribed',\n 'Suspended',\n 'PendingFulfillmentStart'\n ]\n },\n billing_provider_customer_id: {\n type: 'string'\n },\n stripe_collection_method: {\n type: 'string',\n description: 'The collection method for the customer\\'s invoices.\\nNOTE: `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.',\n enum: [ 'charge_automatically',\n 'send_invoice',\n 'auto_charge_payment_intent',\n 'manually_charge_payment_intent'\n ]\n }\n }\n }\n },\n required: [ 'data'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -36,6 +36,7 @@ export const tool: Tool = {
36
36
  'quickbooks_online',
37
37
  'workday',
38
38
  'gcp_marketplace',
39
+ 'metronome',
39
40
  ],
40
41
  },
41
42
  jq_filter: {
@@ -54,9 +55,16 @@ export const tool: Tool = {
54
55
 
55
56
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
56
57
  const { jq_filter, ...body } = args as any;
57
- return asTextContentResult(
58
- await maybeFilter(jq_filter, await client.v1.customers.billingConfig.retrieve(body)),
59
- );
58
+ try {
59
+ return asTextContentResult(
60
+ await maybeFilter(jq_filter, await client.v1.customers.billingConfig.retrieve(body)),
61
+ );
62
+ } catch (error) {
63
+ if (error instanceof Metronome.APIError || isJqError(error)) {
64
+ return asErrorResult(error.message);
65
+ }
66
+ throw error;
67
+ }
60
68
  };
61
69
 
62
70
  export default { metadata, tool, handler };
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
4
4
 
5
5
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import Metronome from '@metronome/sdk';
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
17
17
  export const tool: Tool = {
18
18
  name: 'create_customers_v1_commits',
19
19
  description:
20
- 'Creates customer-level commits that establish spending commitments for customers across their Metronome usage. Commits represent contracted spending obligations that can be either prepaid (paid upfront) or postpaid (billed later). \n\nNote: In most cases, you should add commitments directly to customer contracts using the contract/create or contract/edit APIs.\n\n### Use this endpoint to:\nUse this endpoint when you need to establish customer-level spending commitments that can be applied across multiple contracts or scoped to specific contracts. Customer-level commits are ideal for:\n- Enterprise-wide minimum spending agreements that span multiple contracts\n- Multi-contract volume commitments with shared spending pools\n- Cross-contract discount tiers based on aggregate usage\n\n#### Commit type Requirements: \n- You must specify either "prepaid" or "postpaid" as the commit type:\n- Prepaid commits: Customer pays upfront; invoice_schedule is optional (if omitted, creates a commit without an invoice)\n- Postpaid commits: Customer pays when the commitment expires (the end of the access_schedule); invoice_schedule is required and must match access_schedule totals. \n\n#### Billing configuration:\n- invoice_contract_id is required for postpaid commits and for prepaid commits with billing (only optional for free prepaid commits)\n- For postpaid commits: access_schedule and invoice_schedule must have matching amounts\n- For postpaid commits: only one schedule item is allowed in both schedules.\n\n#### Scoping flexibility:\nCustomer-level commits can be configured in a few ways:\n- Contract-specific: Use the `applicable_contract_ids` field to limit the commit to specific contracts\n- Cross-contract: Leave `applicable_contract_ids` empty to allow the commit to be used across all of the customer\'s contracts\n\n#### Product targeting:\nCommits can be scoped to specific products using applicable_product_ids, applicable_product_tags, or specifiers, or left unrestricted to apply to all products.\n\n#### Priority considerations:\nWhen multiple commits are applicable, the one with the lower priority value will be consumed first. If there is a tie, contract level commits and credits will be applied before customer level commits and credits. Plan your priority scheme carefully to ensure commits are applied in the desired order.\n\n### Usage guidelines:\n⚠️ Preferred Alternative: In most cases, you should add commits directly to contracts using the create contract or edit contract APIs instead of creating customer-level commits. Contract-level commits provide better organization and are the recommended approach for standard use cases.\n',
20
+ 'Creates customer-level commits that establish spending commitments for customers across their Metronome usage. Commits represent contracted spending obligations that can be either prepaid (paid upfront) or postpaid (billed later). \n\nNote: In most cases, you should add commitments directly to customer contracts using the contract/create or contract/edit APIs.\n\n### Use this endpoint to:\nUse this endpoint when you need to establish customer-level spending commitments that can be applied across multiple contracts or scoped to specific contracts. Customer-level commits are ideal for:\n- Enterprise-wide minimum spending agreements that span multiple contracts\n- Multi-contract volume commitments with shared spending pools\n- Cross-contract discount tiers based on aggregate usage\n\n#### Commit type Requirements: \n- You must specify either "prepaid" or "postpaid" as the commit type:\n- Prepaid commits: Customer pays upfront; invoice_schedule is optional (if omitted, creates a commit without an invoice)\n- Postpaid commits: Customer pays when the commitment expires (the end of the access_schedule); invoice_schedule is required and must match access_schedule totals. \n\n#### Billing configuration:\n- invoice_contract_id is required for postpaid commits and for prepaid commits with billing (only optional for free prepaid commits) unless do_not_invoice is set to true\n- For postpaid commits: access_schedule and invoice_schedule must have matching amounts\n- For postpaid commits: only one schedule item is allowed in both schedules.\n\n#### Scoping flexibility:\nCustomer-level commits can be configured in a few ways:\n- Contract-specific: Use the `applicable_contract_ids` field to limit the commit to specific contracts\n- Cross-contract: Leave `applicable_contract_ids` empty to allow the commit to be used across all of the customer\'s contracts\n\n#### Product targeting:\nCommits can be scoped to specific products using applicable_product_ids, applicable_product_tags, or specifiers, or left unrestricted to apply to all products.\n\n#### Priority considerations:\nWhen multiple commits are applicable, the one with the lower priority value will be consumed first. If there is a tie, contract level commits and credits will be applied before customer level commits and credits. Plan your priority scheme carefully to ensure commits are applied in the desired order.\n\n### Usage guidelines:\n⚠️ Preferred Alternative: In most cases, you should add commits directly to contracts using the create contract or edit contract APIs instead of creating customer-level commits. Contract-level commits provide better organization and are the recommended approach for standard use cases.\n',
21
21
  inputSchema: {
22
22
  type: 'object',
23
23
  properties: {
@@ -108,7 +108,7 @@ export const tool: Tool = {
108
108
  invoice_contract_id: {
109
109
  type: 'string',
110
110
  description:
111
- 'The contract that this commit will be billed on. This is required for "POSTPAID" commits and for "PREPAID" commits unless there is no invoice schedule above (i.e., the commit is \'free\').',
111
+ 'The contract that this commit will be billed on. This is required for "POSTPAID" commits and for "PREPAID" commits unless there is no invoice schedule above (i.e., the commit is \'free\'), or if do_not_invoice is set to true.',
112
112
  },
113
113
  invoice_schedule: {
114
114
  type: 'object',
@@ -261,7 +261,14 @@ export const tool: Tool = {
261
261
 
262
262
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
263
263
  const body = args as any;
264
- return asTextContentResult(await client.v1.customers.commits.create(body));
264
+ try {
265
+ return asTextContentResult(await client.v1.customers.commits.create(body));
266
+ } catch (error) {
267
+ if (error instanceof Metronome.APIError) {
268
+ return asErrorResult(error.message);
269
+ }
270
+ throw error;
271
+ }
265
272
  };
266
273
 
267
274
  export default { metadata, tool, handler };
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
4
4
 
5
5
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import Metronome from '@metronome/sdk';
@@ -77,7 +77,14 @@ export const tool: Tool = {
77
77
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
78
78
  const body = args as any;
79
79
  const response = await client.v1.customers.commits.list(body).asResponse();
80
- return asTextContentResult(await response.json());
80
+ try {
81
+ return asTextContentResult(await response.json());
82
+ } catch (error) {
83
+ if (error instanceof Metronome.APIError) {
84
+ return asErrorResult(error.message);
85
+ }
86
+ throw error;
87
+ }
81
88
  };
82
89
 
83
90
  export default { metadata, tool, handler };
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { maybeFilter } from '@metronome/mcp/filtering';
4
- import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
3
+ import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
4
+ import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
5
5
 
6
6
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
7
  import Metronome from '@metronome/sdk';
@@ -56,9 +56,16 @@ export const tool: Tool = {
56
56
 
57
57
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
58
58
  const { jq_filter, ...body } = args as any;
59
- return asTextContentResult(
60
- await maybeFilter(jq_filter, await client.v1.customers.commits.updateEndDate(body)),
61
- );
59
+ try {
60
+ return asTextContentResult(
61
+ await maybeFilter(jq_filter, await client.v1.customers.commits.updateEndDate(body)),
62
+ );
63
+ } catch (error) {
64
+ if (error instanceof Metronome.APIError || isJqError(error)) {
65
+ return asErrorResult(error.message);
66
+ }
67
+ throw error;
68
+ }
62
69
  };
63
70
 
64
71
  export default { metadata, tool, handler };