@metronome/mcp 0.3.0 → 2.0.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 (709) hide show
  1. package/README.md +1062 -76
  2. package/code-tool-paths.cjs +6 -0
  3. package/code-tool-paths.cjs.map +1 -0
  4. package/code-tool-paths.d.cts +2 -0
  5. package/code-tool-paths.d.cts.map +1 -0
  6. package/code-tool-types.d.mts +14 -0
  7. package/code-tool-types.d.mts.map +1 -0
  8. package/code-tool-types.d.ts +14 -0
  9. package/code-tool-types.d.ts.map +1 -0
  10. package/code-tool-types.js +4 -0
  11. package/code-tool-types.js.map +1 -0
  12. package/code-tool-types.mjs +3 -0
  13. package/code-tool-types.mjs.map +1 -0
  14. package/code-tool-worker.d.mts +5 -0
  15. package/code-tool-worker.d.mts.map +1 -0
  16. package/code-tool-worker.d.ts +5 -0
  17. package/code-tool-worker.d.ts.map +1 -0
  18. package/code-tool-worker.js +45 -0
  19. package/code-tool-worker.js.map +1 -0
  20. package/code-tool-worker.mjs +40 -0
  21. package/code-tool-worker.mjs.map +1 -0
  22. package/code-tool.d.mts +12 -0
  23. package/code-tool.d.mts.map +1 -0
  24. package/code-tool.d.ts +12 -0
  25. package/code-tool.d.ts.map +1 -0
  26. package/code-tool.js +158 -0
  27. package/code-tool.js.map +1 -0
  28. package/code-tool.mjs +122 -0
  29. package/code-tool.mjs.map +1 -0
  30. package/compat.d.mts +4 -2
  31. package/compat.d.mts.map +1 -1
  32. package/compat.d.ts +4 -2
  33. package/compat.d.ts.map +1 -1
  34. package/compat.js +3 -1
  35. package/compat.js.map +1 -1
  36. package/compat.mjs +2 -0
  37. package/compat.mjs.map +1 -1
  38. package/docs-search-tool.d.mts +44 -0
  39. package/docs-search-tool.d.mts.map +1 -0
  40. package/docs-search-tool.d.ts +44 -0
  41. package/docs-search-tool.d.ts.map +1 -0
  42. package/docs-search-tool.js +43 -0
  43. package/docs-search-tool.js.map +1 -0
  44. package/docs-search-tool.mjs +39 -0
  45. package/docs-search-tool.mjs.map +1 -0
  46. package/dynamic-tools.js +3 -3
  47. package/dynamic-tools.js.map +1 -1
  48. package/dynamic-tools.mjs +3 -3
  49. package/dynamic-tools.mjs.map +1 -1
  50. package/headers.d.mts +1 -1
  51. package/headers.d.mts.map +1 -1
  52. package/headers.d.ts +1 -1
  53. package/headers.d.ts.map +1 -1
  54. package/headers.js +1 -1
  55. package/headers.js.map +1 -1
  56. package/headers.mjs +1 -1
  57. package/headers.mjs.map +1 -1
  58. package/http.d.mts +6 -3
  59. package/http.d.mts.map +1 -1
  60. package/http.d.ts +6 -3
  61. package/http.d.ts.map +1 -1
  62. package/http.js +25 -10
  63. package/http.js.map +1 -1
  64. package/http.mjs +25 -10
  65. package/http.mjs.map +1 -1
  66. package/index.js +6 -6
  67. package/index.js.map +1 -1
  68. package/index.mjs +7 -7
  69. package/index.mjs.map +1 -1
  70. package/options.d.mts +9 -6
  71. package/options.d.mts.map +1 -1
  72. package/options.d.ts +9 -6
  73. package/options.d.ts.map +1 -1
  74. package/options.js +126 -16
  75. package/options.js.map +1 -1
  76. package/options.mjs +125 -16
  77. package/options.mjs.map +1 -1
  78. package/package.json +171 -10
  79. package/server.d.mts +3 -16
  80. package/server.d.mts.map +1 -1
  81. package/server.d.ts +3 -16
  82. package/server.d.ts.map +1 -1
  83. package/server.js +87 -25
  84. package/server.js.map +1 -1
  85. package/server.mjs +86 -24
  86. package/server.mjs.map +1 -1
  87. package/src/code-tool-paths.cts +3 -0
  88. package/src/code-tool-types.ts +14 -0
  89. package/src/code-tool-worker.ts +46 -0
  90. package/src/code-tool.ts +147 -0
  91. package/src/compat.ts +4 -2
  92. package/src/docs-search-tool.ts +48 -0
  93. package/src/dynamic-tools.ts +3 -3
  94. package/src/headers.ts +2 -3
  95. package/src/http.ts +54 -26
  96. package/src/index.ts +7 -7
  97. package/src/options.ts +147 -22
  98. package/src/server.ts +99 -36
  99. package/src/stdio.ts +3 -4
  100. package/src/tools/index.ts +12 -0
  101. package/src/tools/v1/alerts/archive-v1-alerts.ts +3 -3
  102. package/src/tools/v1/alerts/create-v1-alerts.ts +15 -14
  103. package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +1 -1
  104. package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +1 -1
  105. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +1 -1
  106. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +1 -1
  107. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +1 -1
  108. package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +2 -1
  109. package/src/tools/v1/contracts/amend-v1-contracts.ts +86 -143
  110. package/src/tools/v1/contracts/archive-v1-contracts.ts +1 -1
  111. package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +3 -1
  112. package/src/tools/v1/contracts/create-v1-contracts.ts +258 -517
  113. package/src/tools/v1/contracts/list-balances-v1-contracts.ts +4 -2
  114. package/src/tools/v1/contracts/list-v1-contracts.ts +1 -1
  115. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +1 -1
  116. package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +1 -1
  117. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +2 -1
  118. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +1 -1
  119. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +1 -1
  120. package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +1 -1
  121. package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +1 -1
  122. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +2 -1
  123. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +1 -1
  124. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +1 -1
  125. package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +1 -1
  126. package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +1 -1
  127. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +25 -22
  128. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +25 -22
  129. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +1 -1
  130. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +1 -1
  131. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +1 -1
  132. package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +1 -1
  133. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +1 -1
  134. package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +1 -1
  135. package/src/tools/v1/contracts/set-usage-filter-v1-contracts.ts +2 -1
  136. package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +1 -1
  137. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +1 -1
  138. package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +1 -1
  139. package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +3 -2
  140. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +1 -1
  141. package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +1 -1
  142. package/src/tools/v1/custom-fields/add-key-v1-custom-fields.ts +1 -1
  143. package/src/tools/v1/custom-fields/delete-values-v1-custom-fields.ts +2 -1
  144. package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +3 -2
  145. package/src/tools/v1/custom-fields/remove-key-v1-custom-fields.ts +2 -1
  146. package/src/tools/v1/custom-fields/set-values-v1-custom-fields.ts +2 -1
  147. package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +5 -3
  148. package/src/tools/v1/customers/alerts/reset-customers-v1-alerts.ts +3 -2
  149. package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +24 -12
  150. package/src/tools/v1/customers/archive-v1-customers.ts +1 -1
  151. package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +6 -1
  152. package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +1 -1
  153. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +32 -33
  154. package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +4 -2
  155. package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +1 -1
  156. package/src/tools/v1/customers/create-v1-customers.ts +14 -2
  157. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +30 -24
  158. package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +4 -2
  159. package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +1 -1
  160. package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +1 -1
  161. package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +1 -1
  162. package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +1 -1
  163. package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +2 -1
  164. package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +43 -0
  165. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +1 -1
  166. package/src/tools/v1/customers/list-costs-v1-customers.ts +1 -1
  167. package/src/tools/v1/customers/list-v1-customers.ts +1 -1
  168. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +1 -1
  169. package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +1 -1
  170. package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +1 -1
  171. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +1 -1
  172. package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +1 -1
  173. package/src/tools/v1/customers/preview-events-v1-customers.ts +2 -7
  174. package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +50 -0
  175. package/src/tools/v1/customers/retrieve-v1-customers.ts +1 -1
  176. package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +85 -0
  177. package/src/tools/v1/customers/set-ingest-aliases-v1-customers.ts +1 -1
  178. package/src/tools/v1/customers/set-name-v1-customers.ts +1 -1
  179. package/src/tools/v1/customers/update-config-v1-customers.ts +2 -1
  180. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +1 -1
  181. package/src/tools/v1/invoices/regenerate-v1-invoices.ts +1 -1
  182. package/src/tools/v1/invoices/void-v1-invoices.ts +1 -1
  183. package/src/tools/v1/payments/attempt-v1-payments.ts +48 -0
  184. package/src/tools/v1/payments/cancel-v1-payments.ts +48 -0
  185. package/src/tools/v1/payments/list-v1-payments.ts +69 -0
  186. package/src/tools/v1/plans/get-details-v1-plans.ts +1 -1
  187. package/src/tools/v1/plans/list-charges-v1-plans.ts +1 -1
  188. package/src/tools/v1/plans/list-customers-v1-plans.ts +1 -1
  189. package/src/tools/v1/plans/list-v1-plans.ts +1 -1
  190. package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +1 -1
  191. package/src/tools/v1/services/list-v1-services.ts +1 -1
  192. package/src/tools/v1/usage/ingest-v1-usage.ts +2 -2
  193. package/src/tools/v1/usage/list-v1-usage.ts +3 -2
  194. package/src/tools/v1/usage/list-with-groups-v1-usage.ts +1 -1
  195. package/src/tools/v1/usage/search-v1-usage.ts +1 -1
  196. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +84 -24
  197. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +84 -24
  198. package/src/tools/v2/contracts/edit-v2-contracts.ts +314 -782
  199. package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +1 -1
  200. package/src/tools/v2/contracts/list-v2-contracts.ts +1 -1
  201. package/src/tools/v2/contracts/retrieve-v2-contracts.ts +2 -1
  202. package/stdio.d.mts +1 -2
  203. package/stdio.d.mts.map +1 -1
  204. package/stdio.d.ts +1 -2
  205. package/stdio.d.ts.map +1 -1
  206. package/stdio.js +2 -2
  207. package/stdio.js.map +1 -1
  208. package/stdio.mjs +3 -3
  209. package/stdio.mjs.map +1 -1
  210. package/tools/index.d.mts.map +1 -1
  211. package/tools/index.d.ts.map +1 -1
  212. package/tools/index.js +12 -0
  213. package/tools/index.js.map +1 -1
  214. package/tools/index.mjs +12 -0
  215. package/tools/index.mjs.map +1 -1
  216. package/tools/v1/alerts/archive-v1-alerts.js +3 -3
  217. package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
  218. package/tools/v1/alerts/archive-v1-alerts.mjs +3 -3
  219. package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
  220. package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
  221. package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
  222. package/tools/v1/alerts/create-v1-alerts.js +14 -14
  223. package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
  224. package/tools/v1/alerts/create-v1-alerts.mjs +14 -14
  225. package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
  226. package/tools/v1/audit-logs/list-v1-audit-logs.js +1 -1
  227. package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
  228. package/tools/v1/audit-logs/list-v1-audit-logs.mjs +1 -1
  229. package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
  230. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +1 -1
  231. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
  232. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +1 -1
  233. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
  234. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +1 -1
  235. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  236. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +1 -1
  237. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  238. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +1 -1
  239. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  240. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +1 -1
  241. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  242. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +1 -1
  243. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  244. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +1 -1
  245. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  246. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +1 -1
  247. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +1 -1
  248. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +1 -1
  249. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +1 -1
  250. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +1 -1
  251. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +1 -1
  252. package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
  253. package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
  254. package/tools/v1/contracts/amend-v1-contracts.js +85 -139
  255. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  256. package/tools/v1/contracts/amend-v1-contracts.mjs +85 -139
  257. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  258. package/tools/v1/contracts/archive-v1-contracts.js +1 -1
  259. package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
  260. package/tools/v1/contracts/archive-v1-contracts.mjs +1 -1
  261. package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
  262. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
  263. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
  264. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +2 -1
  265. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
  266. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +2 -1
  267. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
  268. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  269. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  270. package/tools/v1/contracts/create-v1-contracts.js +241 -485
  271. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  272. package/tools/v1/contracts/create-v1-contracts.mjs +241 -485
  273. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  274. package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
  275. package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
  276. package/tools/v1/contracts/list-balances-v1-contracts.js +3 -2
  277. package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
  278. package/tools/v1/contracts/list-balances-v1-contracts.mjs +3 -2
  279. package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
  280. package/tools/v1/contracts/list-v1-contracts.js +1 -1
  281. package/tools/v1/contracts/list-v1-contracts.js.map +1 -1
  282. package/tools/v1/contracts/list-v1-contracts.mjs +1 -1
  283. package/tools/v1/contracts/list-v1-contracts.mjs.map +1 -1
  284. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +1 -1
  285. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  286. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +1 -1
  287. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  288. package/tools/v1/contracts/products/archive-contracts-v1-products.js +1 -1
  289. package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
  290. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +1 -1
  291. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
  292. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
  293. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
  294. package/tools/v1/contracts/products/create-contracts-v1-products.js +2 -1
  295. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  296. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +2 -1
  297. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  298. package/tools/v1/contracts/products/list-contracts-v1-products.js +1 -1
  299. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  300. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +1 -1
  301. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  302. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +1 -1
  303. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  304. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +1 -1
  305. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  306. package/tools/v1/contracts/products/update-contracts-v1-products.js +1 -1
  307. package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
  308. package/tools/v1/contracts/products/update-contracts-v1-products.mjs +1 -1
  309. package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
  310. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +1 -1
  311. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
  312. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +1 -1
  313. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
  314. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
  315. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
  316. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +2 -1
  317. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  318. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +2 -1
  319. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  320. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +1 -1
  321. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  322. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +1 -1
  323. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  324. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +1 -1
  325. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  326. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +1 -1
  327. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  328. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +1 -1
  329. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
  330. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +1 -1
  331. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  332. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +1 -1
  333. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
  334. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +1 -1
  335. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  336. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  337. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  338. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +24 -21
  339. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  340. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +24 -21
  341. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  342. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  343. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  344. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +24 -21
  345. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  346. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +24 -21
  347. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  348. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +1 -1
  349. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  350. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +1 -1
  351. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  352. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +1 -1
  353. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  354. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +1 -1
  355. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  356. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +1 -1
  357. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  358. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +1 -1
  359. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  360. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +1 -1
  361. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
  362. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +1 -1
  363. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
  364. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +1 -1
  365. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  366. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +1 -1
  367. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  368. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +1 -1
  369. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
  370. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +1 -1
  371. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
  372. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +1 -1
  373. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +1 -1
  374. package/tools/v1/contracts/set-usage-filter-v1-contracts.js +1 -1
  375. package/tools/v1/contracts/set-usage-filter-v1-contracts.js.map +1 -1
  376. package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs +1 -1
  377. package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs.map +1 -1
  378. package/tools/v1/contracts/update-end-date-v1-contracts.js +1 -1
  379. package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
  380. package/tools/v1/contracts/update-end-date-v1-contracts.mjs +1 -1
  381. package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
  382. package/tools/v1/credit-grants/create-v1-credit-grants.js +1 -1
  383. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  384. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +1 -1
  385. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  386. package/tools/v1/credit-grants/edit-v1-credit-grants.js +1 -1
  387. package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
  388. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +1 -1
  389. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
  390. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts.map +1 -1
  391. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts.map +1 -1
  392. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +3 -2
  393. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
  394. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +3 -2
  395. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
  396. package/tools/v1/credit-grants/list-v1-credit-grants.js +1 -1
  397. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  398. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +1 -1
  399. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  400. package/tools/v1/credit-grants/void-v1-credit-grants.js +1 -1
  401. package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
  402. package/tools/v1/credit-grants/void-v1-credit-grants.mjs +1 -1
  403. package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
  404. package/tools/v1/custom-fields/add-key-v1-custom-fields.js +1 -1
  405. package/tools/v1/custom-fields/add-key-v1-custom-fields.js.map +1 -1
  406. package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs +1 -1
  407. package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs.map +1 -1
  408. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +1 -1
  409. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +1 -1
  410. package/tools/v1/custom-fields/delete-values-v1-custom-fields.js +1 -1
  411. package/tools/v1/custom-fields/delete-values-v1-custom-fields.js.map +1 -1
  412. package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs +1 -1
  413. package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs.map +1 -1
  414. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts.map +1 -1
  415. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts.map +1 -1
  416. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +3 -2
  417. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
  418. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +3 -2
  419. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
  420. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +1 -1
  421. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +1 -1
  422. package/tools/v1/custom-fields/remove-key-v1-custom-fields.js +1 -1
  423. package/tools/v1/custom-fields/remove-key-v1-custom-fields.js.map +1 -1
  424. package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs +1 -1
  425. package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs.map +1 -1
  426. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
  427. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
  428. package/tools/v1/custom-fields/set-values-v1-custom-fields.js +2 -1
  429. package/tools/v1/custom-fields/set-values-v1-custom-fields.js.map +1 -1
  430. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs +2 -1
  431. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs.map +1 -1
  432. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +1 -1
  433. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +1 -1
  434. package/tools/v1/customers/alerts/list-customers-v1-alerts.js +4 -3
  435. package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
  436. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +4 -3
  437. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
  438. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +1 -1
  439. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +1 -1
  440. package/tools/v1/customers/alerts/reset-customers-v1-alerts.js +2 -2
  441. package/tools/v1/customers/alerts/reset-customers-v1-alerts.js.map +1 -1
  442. package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs +2 -2
  443. package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs.map +1 -1
  444. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +1 -1
  445. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +1 -1
  446. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +22 -11
  447. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
  448. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +22 -11
  449. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
  450. package/tools/v1/customers/archive-v1-customers.js +1 -1
  451. package/tools/v1/customers/archive-v1-customers.js.map +1 -1
  452. package/tools/v1/customers/archive-v1-customers.mjs +1 -1
  453. package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
  454. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
  455. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
  456. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +6 -1
  457. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
  458. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +6 -1
  459. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
  460. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +1 -1
  461. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
  462. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +1 -1
  463. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
  464. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
  465. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
  466. package/tools/v1/customers/commits/create-customers-v1-commits.js +31 -31
  467. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  468. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +31 -31
  469. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  470. package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +1 -1
  471. package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +1 -1
  472. package/tools/v1/customers/commits/list-customers-v1-commits.js +3 -2
  473. package/tools/v1/customers/commits/list-customers-v1-commits.js.map +1 -1
  474. package/tools/v1/customers/commits/list-customers-v1-commits.mjs +3 -2
  475. package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +1 -1
  476. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +1 -1
  477. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
  478. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +1 -1
  479. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
  480. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  481. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  482. package/tools/v1/customers/create-v1-customers.js +13 -2
  483. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  484. package/tools/v1/customers/create-v1-customers.mjs +13 -2
  485. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  486. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
  487. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
  488. package/tools/v1/customers/credits/create-customers-v1-credits.js +29 -23
  489. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  490. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +29 -23
  491. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  492. package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +1 -1
  493. package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +1 -1
  494. package/tools/v1/customers/credits/list-customers-v1-credits.js +3 -2
  495. package/tools/v1/customers/credits/list-customers-v1-credits.js.map +1 -1
  496. package/tools/v1/customers/credits/list-customers-v1-credits.mjs +3 -2
  497. package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +1 -1
  498. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +1 -1
  499. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
  500. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +1 -1
  501. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
  502. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +1 -1
  503. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
  504. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +1 -1
  505. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
  506. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +1 -1
  507. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +1 -1
  508. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +1 -1
  509. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +1 -1
  510. package/tools/v1/customers/invoices/list-customers-v1-invoices.js +1 -1
  511. package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +1 -1
  512. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +1 -1
  513. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +1 -1
  514. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +1 -1
  515. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +1 -1
  516. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +1 -1
  517. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +1 -1
  518. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +1 -1
  519. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +1 -1
  520. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +45 -0
  521. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +1 -0
  522. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +45 -0
  523. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +1 -0
  524. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +39 -0
  525. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +1 -0
  526. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +35 -0
  527. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +1 -0
  528. package/tools/v1/customers/list-billable-metrics-v1-customers.js +1 -1
  529. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  530. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +1 -1
  531. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  532. package/tools/v1/customers/list-costs-v1-customers.js +1 -1
  533. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  534. package/tools/v1/customers/list-costs-v1-customers.mjs +1 -1
  535. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  536. package/tools/v1/customers/list-v1-customers.js +1 -1
  537. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  538. package/tools/v1/customers/list-v1-customers.mjs +1 -1
  539. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  540. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +1 -1
  541. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  542. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +1 -1
  543. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  544. package/tools/v1/customers/plans/add-customers-v1-plans.js +1 -1
  545. package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
  546. package/tools/v1/customers/plans/add-customers-v1-plans.mjs +1 -1
  547. package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
  548. package/tools/v1/customers/plans/end-customers-v1-plans.js +1 -1
  549. package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
  550. package/tools/v1/customers/plans/end-customers-v1-plans.mjs +1 -1
  551. package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
  552. package/tools/v1/customers/plans/list-customers-v1-plans.js +1 -1
  553. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  554. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +1 -1
  555. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  556. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +1 -1
  557. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
  558. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +1 -1
  559. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
  560. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  561. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  562. package/tools/v1/customers/preview-events-v1-customers.js +2 -6
  563. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  564. package/tools/v1/customers/preview-events-v1-customers.mjs +2 -6
  565. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  566. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts +45 -0
  567. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts.map +1 -0
  568. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts +45 -0
  569. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts.map +1 -0
  570. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +43 -0
  571. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -0
  572. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +39 -0
  573. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -0
  574. package/tools/v1/customers/retrieve-v1-customers.js +1 -1
  575. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  576. package/tools/v1/customers/retrieve-v1-customers.mjs +1 -1
  577. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  578. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts +45 -0
  579. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -0
  580. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts +45 -0
  581. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -0
  582. package/tools/v1/customers/set-billing-configurations-v1-customers.js +77 -0
  583. package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -0
  584. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +73 -0
  585. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -0
  586. package/tools/v1/customers/set-ingest-aliases-v1-customers.js +1 -1
  587. package/tools/v1/customers/set-ingest-aliases-v1-customers.js.map +1 -1
  588. package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs +1 -1
  589. package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs.map +1 -1
  590. package/tools/v1/customers/set-name-v1-customers.js +1 -1
  591. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  592. package/tools/v1/customers/set-name-v1-customers.mjs +1 -1
  593. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  594. package/tools/v1/customers/update-config-v1-customers.d.mts.map +1 -1
  595. package/tools/v1/customers/update-config-v1-customers.d.ts.map +1 -1
  596. package/tools/v1/customers/update-config-v1-customers.js +1 -1
  597. package/tools/v1/customers/update-config-v1-customers.js.map +1 -1
  598. package/tools/v1/customers/update-config-v1-customers.mjs +1 -1
  599. package/tools/v1/customers/update-config-v1-customers.mjs.map +1 -1
  600. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +1 -1
  601. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  602. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +1 -1
  603. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  604. package/tools/v1/invoices/regenerate-v1-invoices.js +1 -1
  605. package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
  606. package/tools/v1/invoices/regenerate-v1-invoices.mjs +1 -1
  607. package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
  608. package/tools/v1/invoices/void-v1-invoices.js +1 -1
  609. package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
  610. package/tools/v1/invoices/void-v1-invoices.mjs +1 -1
  611. package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
  612. package/tools/v1/payments/attempt-v1-payments.d.mts +45 -0
  613. package/tools/v1/payments/attempt-v1-payments.d.mts.map +1 -0
  614. package/tools/v1/payments/attempt-v1-payments.d.ts +45 -0
  615. package/tools/v1/payments/attempt-v1-payments.d.ts.map +1 -0
  616. package/tools/v1/payments/attempt-v1-payments.js +43 -0
  617. package/tools/v1/payments/attempt-v1-payments.js.map +1 -0
  618. package/tools/v1/payments/attempt-v1-payments.mjs +39 -0
  619. package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -0
  620. package/tools/v1/payments/cancel-v1-payments.d.mts +45 -0
  621. package/tools/v1/payments/cancel-v1-payments.d.mts.map +1 -0
  622. package/tools/v1/payments/cancel-v1-payments.d.ts +45 -0
  623. package/tools/v1/payments/cancel-v1-payments.d.ts.map +1 -0
  624. package/tools/v1/payments/cancel-v1-payments.js +43 -0
  625. package/tools/v1/payments/cancel-v1-payments.js.map +1 -0
  626. package/tools/v1/payments/cancel-v1-payments.mjs +39 -0
  627. package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -0
  628. package/tools/v1/payments/list-v1-payments.d.mts +45 -0
  629. package/tools/v1/payments/list-v1-payments.d.mts.map +1 -0
  630. package/tools/v1/payments/list-v1-payments.d.ts +45 -0
  631. package/tools/v1/payments/list-v1-payments.d.ts.map +1 -0
  632. package/tools/v1/payments/list-v1-payments.js +64 -0
  633. package/tools/v1/payments/list-v1-payments.js.map +1 -0
  634. package/tools/v1/payments/list-v1-payments.mjs +60 -0
  635. package/tools/v1/payments/list-v1-payments.mjs.map +1 -0
  636. package/tools/v1/plans/get-details-v1-plans.js +1 -1
  637. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  638. package/tools/v1/plans/get-details-v1-plans.mjs +1 -1
  639. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  640. package/tools/v1/plans/list-charges-v1-plans.js +1 -1
  641. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  642. package/tools/v1/plans/list-charges-v1-plans.mjs +1 -1
  643. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  644. package/tools/v1/plans/list-customers-v1-plans.js +1 -1
  645. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  646. package/tools/v1/plans/list-customers-v1-plans.mjs +1 -1
  647. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  648. package/tools/v1/plans/list-v1-plans.js +1 -1
  649. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  650. package/tools/v1/plans/list-v1-plans.mjs +1 -1
  651. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  652. package/tools/v1/pricing-units/list-v1-pricing-units.js +1 -1
  653. package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
  654. package/tools/v1/pricing-units/list-v1-pricing-units.mjs +1 -1
  655. package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
  656. package/tools/v1/services/list-v1-services.js +1 -1
  657. package/tools/v1/services/list-v1-services.js.map +1 -1
  658. package/tools/v1/services/list-v1-services.mjs +1 -1
  659. package/tools/v1/services/list-v1-services.mjs.map +1 -1
  660. package/tools/v1/usage/ingest-v1-usage.js +2 -2
  661. package/tools/v1/usage/ingest-v1-usage.js.map +1 -1
  662. package/tools/v1/usage/ingest-v1-usage.mjs +2 -2
  663. package/tools/v1/usage/ingest-v1-usage.mjs.map +1 -1
  664. package/tools/v1/usage/list-v1-usage.d.mts.map +1 -1
  665. package/tools/v1/usage/list-v1-usage.d.ts.map +1 -1
  666. package/tools/v1/usage/list-v1-usage.js +3 -2
  667. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  668. package/tools/v1/usage/list-v1-usage.mjs +3 -2
  669. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  670. package/tools/v1/usage/list-with-groups-v1-usage.js +1 -1
  671. package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
  672. package/tools/v1/usage/list-with-groups-v1-usage.mjs +1 -1
  673. package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
  674. package/tools/v1/usage/search-v1-usage.js +1 -1
  675. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  676. package/tools/v1/usage/search-v1-usage.mjs +1 -1
  677. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  678. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  679. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  680. package/tools/v2/contracts/edit-commit-v2-contracts.js +82 -23
  681. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  682. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +82 -23
  683. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  684. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  685. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  686. package/tools/v2/contracts/edit-credit-v2-contracts.js +82 -23
  687. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  688. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +82 -23
  689. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  690. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  691. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  692. package/tools/v2/contracts/edit-v2-contracts.js +303 -741
  693. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  694. package/tools/v2/contracts/edit-v2-contracts.mjs +303 -741
  695. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
  696. package/tools/v2/contracts/get-edit-history-v2-contracts.js +1 -1
  697. package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +1 -1
  698. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +1 -1
  699. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +1 -1
  700. package/tools/v2/contracts/list-v2-contracts.js +1 -1
  701. package/tools/v2/contracts/list-v2-contracts.js.map +1 -1
  702. package/tools/v2/contracts/list-v2-contracts.mjs +1 -1
  703. package/tools/v2/contracts/list-v2-contracts.mjs.map +1 -1
  704. package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +1 -1
  705. package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +1 -1
  706. package/tools/v2/contracts/retrieve-v2-contracts.js +1 -1
  707. package/tools/v2/contracts/retrieve-v2-contracts.js.map +1 -1
  708. package/tools/v2/contracts/retrieve-v2-contracts.mjs +1 -1
  709. package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +1 -1
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'archive_v1_customers',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nArchive a customer Note: any alerts associated with the customer will not be triggered.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUse this endpoint to archive a customer while preserving auditability. Archiving a customer will automatically archive all contracts as of the current date and void all corresponding invoices. Use this endpoint if a customer is onboarded by mistake.\n\n### Usage guidelines:\n- Once a customer is archived, it cannot be unarchived.\n- Archived customers can still be viewed through the API or the UI for audit purposes. \n- Ingest aliases remain idempotent for archived customers. In order to reuse an ingest alias, first remove the ingest alias from the customer prior to archiving.\n- Any notifications associated with the customer will no longer be triggered.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer_archive_response',\n $defs: {\n customer_archive_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```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"archive-v1-customers.js","sourceRoot":"","sources":["../../../src/tools/v1/customers/archive-v1-customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,wlBAAwlB;IAC1lB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"archive-v1-customers.js","sourceRoot":"","sources":["../../../src/tools/v1/customers/archive-v1-customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,kxCAAkxC;IACpxC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'archive_v1_customers',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nArchive a customer Note: any alerts associated with the customer will not be triggered.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
14
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUse this endpoint to archive a customer while preserving auditability. Archiving a customer will automatically archive all contracts as of the current date and void all corresponding invoices. Use this endpoint if a customer is onboarded by mistake.\n\n### Usage guidelines:\n- Once a customer is archived, it cannot be unarchived.\n- Archived customers can still be viewed through the API or the UI for audit purposes. \n- Ingest aliases remain idempotent for archived customers. In order to reuse an ingest alias, first remove the ingest alias from the customer prior to archiving.\n- Any notifications associated with the customer will no longer be triggered.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/customer_archive_response',\n $defs: {\n customer_archive_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```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"archive-v1-customers.mjs","sourceRoot":"","sources":["../../../src/tools/v1/customers/archive-v1-customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,wlBAAwlB;IAC1lB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"archive-v1-customers.mjs","sourceRoot":"","sources":["../../../src/tools/v1/customers/archive-v1-customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,kxCAAkxC;IACpxC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-billing-config.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
1
+ {"version":3,"file":"create-customers-v1-billing-config.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAyElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-billing-config.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
1
+ {"version":3,"file":"create-customers-v1-billing-config.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAyElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -72,7 +72,12 @@ exports.tool = {
72
72
  },
73
73
  stripe_collection_method: {
74
74
  type: 'string',
75
- enum: ['charge_automatically', 'send_invoice'],
75
+ enum: [
76
+ 'charge_automatically',
77
+ 'send_invoice',
78
+ 'auto_charge_payment_intent',
79
+ 'manually_charge_payment_intent',
80
+ ],
76
81
  },
77
82
  },
78
83
  required: ['customer_id', 'billing_provider_type', 'billing_provider_customer_id'],
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-billing-config.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,qDAAqD;IAClE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,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AJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"create-customers-v1-billing-config.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,qDAAqD;IAClE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,QAAQ;oBACR,mBAAmB;oBACnB,mBAAmB;oBACnB,SAAS;oBACT,iBAAiB;iBAClB;aACF;YACD,4BAA4B,EAAE;gBAC5B,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;aAC9F;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,YAAY;oBACZ,WAAW;oBACX,gBAAgB;oBAChB,gBAAgB;oBAChB,gBAAgB;oBAChB,YAAY;oBACZ,gBAAgB;oBAChB,gBAAgB;oBAChB,cAAc;oBACd,YAAY;oBACZ,gBAAgB;oBAChB,cAAc;oBACd,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,WAAW;oBACX,WAAW;oBACX,YAAY;oBACZ,WAAW;oBACX,WAAW;oBACX,WAAW;oBACX,eAAe;oBACf,eAAe;oBACf,WAAW;oBACX,WAAW;iBACZ;aACF;YACD,wBAAwB,EAAE;gBACxB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,sBAAsB;oBACtB,cAAc;oBACd,4BAA4B;oBAC5B,gCAAgC;iBACjC;aACF;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,uBAAuB,EAAE,8BAA8B,CAAC;KACnF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACnF,OAAO,IAAA,2BAAmB,EAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -69,7 +69,12 @@ export const tool = {
69
69
  },
70
70
  stripe_collection_method: {
71
71
  type: 'string',
72
- enum: ['charge_automatically', 'send_invoice'],
72
+ enum: [
73
+ 'charge_automatically',
74
+ 'send_invoice',
75
+ 'auto_charge_payment_intent',
76
+ 'manually_charge_payment_intent',
77
+ ],
73
78
  },
74
79
  },
75
80
  required: ['customer_id', 'billing_provider_type', 'billing_provider_customer_id'],
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-billing-config.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAA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,EAAE,uBAAuB,EAAE,8BAA8B,CAAC;KACnF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACnF,OAAO,mBAAmB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"create-customers-v1-billing-config.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,qDAAqD;IAClE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,QAAQ;oBACR,mBAAmB;oBACnB,mBAAmB;oBACnB,SAAS;oBACT,iBAAiB;iBAClB;aACF;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
16
  name: 'retrieve_customers_v1_billing_config',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch the billing configuration for the given customer.\n\n# Response Schema\n```json\n{\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 ]\n }\n }\n }\n },\n required: [ 'data'\n ]\n}\n```",
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch 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```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-customers-v1-billing-config.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,mmGAAmmG;IACrmG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,QAAQ;oBACR,mBAAmB;oBACnB,mBAAmB;oBACnB,SAAS;oBACT,iBAAiB;iBAClB;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,uBAAuB,CAAC;KACnD;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACrF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-customers-v1-billing-config.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,+oHAA+oH;IACjpH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,QAAQ;oBACR,mBAAmB;oBACnB,mBAAmB;oBACnB,SAAS;oBACT,iBAAiB;iBAClB;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,uBAAuB,CAAC;KACnD;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACrF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'retrieve_customers_v1_billing_config',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch the billing configuration for the given customer.\n\n# Response Schema\n```json\n{\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 ]\n }\n }\n }\n },\n required: [ 'data'\n ]\n}\n```",
14
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch 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```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-customers-v1-billing-config.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,mmGAAmmG;IACrmG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,QAAQ;oBACR,mBAAmB;oBACnB,mBAAmB;oBACnB,SAAS;oBACT,iBAAiB;iBAClB;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,uBAAuB,CAAC;KACnD;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACrF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-customers-v1-billing-config.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oEAAoE;IAC9E,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,+oHAA+oH;IACjpH,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,qBAAqB,EAAE;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,iBAAiB;oBACjB,QAAQ;oBACR,UAAU;oBACV,QAAQ;oBACR,mBAAmB;oBACnB,mBAAmB;oBACnB,SAAS;oBACT,iBAAiB;iBAClB;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,uBAAuB,CAAC;KACnD;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACrF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-commits.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmPlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
1
+ {"version":3,"file":"create-customers-v1-commits.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmPlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-commits.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmPlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
1
+ {"version":3,"file":"create-customers-v1-commits.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmPlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
@@ -2,7 +2,6 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.handler = exports.tool = exports.metadata = void 0;
5
- const filtering_1 = require("@metronome/mcp/filtering");
6
5
  const types_1 = require("@metronome/mcp/tools/types");
7
6
  exports.metadata = {
8
7
  resource: 'v1.customers.commits',
@@ -14,7 +13,7 @@ exports.metadata = {
14
13
  };
15
14
  exports.tool = {
16
15
  name: 'create_customers_v1_commits',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate a new commit at the customer level.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
16
+ description: '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',
18
17
  inputSchema: {
19
18
  type: 'object',
20
19
  properties: {
@@ -89,6 +88,7 @@ exports.tool = {
89
88
  },
90
89
  custom_fields: {
91
90
  type: 'object',
91
+ description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
92
92
  additionalProperties: true,
93
93
  },
94
94
  description: {
@@ -197,47 +197,47 @@ exports.tool = {
197
197
  type: 'array',
198
198
  description: "List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`.",
199
199
  items: {
200
- type: 'object',
201
- properties: {
202
- presentation_group_values: {
203
- type: 'object',
204
- additionalProperties: true,
205
- },
206
- pricing_group_values: {
207
- type: 'object',
208
- additionalProperties: true,
209
- },
210
- product_id: {
211
- type: 'string',
212
- description: 'If provided, the specifier will only apply to the product with the specified ID.',
213
- },
214
- product_tags: {
215
- type: 'array',
216
- description: 'If provided, the specifier will only apply to products with all the specified tags.',
217
- items: {
218
- type: 'string',
219
- },
220
- },
221
- },
200
+ $ref: '#/$defs/commit_specifier_input',
222
201
  },
223
202
  },
224
203
  uniqueness_key: {
225
204
  type: 'string',
226
205
  description: 'Prevents the creation of duplicates. If a request to create a commit or credit is made with a uniqueness key that was previously used to create a commit or credit, a new record will not be created and the request will fail with a 409 error.',
227
206
  },
228
- jq_filter: {
229
- type: 'string',
230
- title: 'jq Filter',
231
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
232
- },
233
207
  },
234
208
  required: ['access_schedule', 'customer_id', 'priority', 'product_id', 'type'],
209
+ $defs: {
210
+ commit_specifier_input: {
211
+ type: 'object',
212
+ properties: {
213
+ presentation_group_values: {
214
+ type: 'object',
215
+ additionalProperties: true,
216
+ },
217
+ pricing_group_values: {
218
+ type: 'object',
219
+ additionalProperties: true,
220
+ },
221
+ product_id: {
222
+ type: 'string',
223
+ description: 'If provided, the specifier will only apply to the product with the specified ID.',
224
+ },
225
+ product_tags: {
226
+ type: 'array',
227
+ description: 'If provided, the specifier will only apply to products with all the specified tags.',
228
+ items: {
229
+ type: 'string',
230
+ },
231
+ },
232
+ },
233
+ },
234
+ },
235
235
  },
236
236
  annotations: {},
237
237
  };
238
238
  const handler = async (client, args) => {
239
- const { jq_filter, ...body } = args;
240
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.customers.commits.create(body)));
239
+ const body = args;
240
+ return (0, types_1.asTextContentResult)(await client.v1.customers.commits.create(body));
241
241
  };
242
242
  exports.handler = handler;
243
243
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-commits.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sCAAsC;IAChD,WAAW,EAAE,yBAAyB;CACvC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,2iBAA2iB;IAC7iB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8JAA8J;gBAChK,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,MAAM,EAAE;oCACN,IAAI,EAAE,QAAQ;iCACf;gCACD,aAAa,EAAE;oCACb,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,gCAAgC;oCAC7C,MAAM,EAAE,WAAW;iCACpB;gCACD,WAAW,EAAE;oCACX,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,gCAAgC;oCAC7C,MAAM,EAAE,WAAW;iCACpB;6BACF;4BACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,aAAa,CAAC;yBACrD;qBACF;oBACD,cAAc,EAAE;wBACd,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uCAAuC;qBACrD;iBACF;gBACD,QAAQ,EAAE,CAAC,gBAAgB,CAAC;aAC7B;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE;gBACR,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,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"create-customers-v1-commits.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sCAAsC;IAChD,WAAW,EAAE,yBAAyB;CACvC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,+mFAA+mF;IACjnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8JAA8J;gBAChK,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,MAAM,EAAE;oCACN,IAAI,EAAE,QAAQ;iCACf;gCACD,aAAa,EAAE;oCACb,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,gCAAgC;oCAC7C,MAAM,EAAE,WAAW;iCACpB;gCACD,WAAW,EAAE;oCACX,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE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AE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,kFAAkF;qBAChG;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,qFAAqF;wBACvF,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7E,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,5 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { maybeFilter } from '@metronome/mcp/filtering';
3
2
  import { asTextContentResult } from '@metronome/mcp/tools/types';
4
3
  export const metadata = {
5
4
  resource: 'v1.customers.commits',
@@ -11,7 +10,7 @@ export const metadata = {
11
10
  };
12
11
  export const tool = {
13
12
  name: 'create_customers_v1_commits',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate a new commit at the customer level.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
13
+ description: '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',
15
14
  inputSchema: {
16
15
  type: 'object',
17
16
  properties: {
@@ -86,6 +85,7 @@ export const tool = {
86
85
  },
87
86
  custom_fields: {
88
87
  type: 'object',
88
+ description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
89
89
  additionalProperties: true,
90
90
  },
91
91
  description: {
@@ -194,47 +194,47 @@ export const tool = {
194
194
  type: 'array',
195
195
  description: "List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`.",
196
196
  items: {
197
- type: 'object',
198
- properties: {
199
- presentation_group_values: {
200
- type: 'object',
201
- additionalProperties: true,
202
- },
203
- pricing_group_values: {
204
- type: 'object',
205
- additionalProperties: true,
206
- },
207
- product_id: {
208
- type: 'string',
209
- description: 'If provided, the specifier will only apply to the product with the specified ID.',
210
- },
211
- product_tags: {
212
- type: 'array',
213
- description: 'If provided, the specifier will only apply to products with all the specified tags.',
214
- items: {
215
- type: 'string',
216
- },
217
- },
218
- },
197
+ $ref: '#/$defs/commit_specifier_input',
219
198
  },
220
199
  },
221
200
  uniqueness_key: {
222
201
  type: 'string',
223
202
  description: 'Prevents the creation of duplicates. If a request to create a commit or credit is made with a uniqueness key that was previously used to create a commit or credit, a new record will not be created and the request will fail with a 409 error.',
224
203
  },
225
- jq_filter: {
226
- type: 'string',
227
- title: 'jq Filter',
228
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
229
- },
230
204
  },
231
205
  required: ['access_schedule', 'customer_id', 'priority', 'product_id', 'type'],
206
+ $defs: {
207
+ commit_specifier_input: {
208
+ type: 'object',
209
+ properties: {
210
+ presentation_group_values: {
211
+ type: 'object',
212
+ additionalProperties: true,
213
+ },
214
+ pricing_group_values: {
215
+ type: 'object',
216
+ additionalProperties: true,
217
+ },
218
+ product_id: {
219
+ type: 'string',
220
+ description: 'If provided, the specifier will only apply to the product with the specified ID.',
221
+ },
222
+ product_tags: {
223
+ type: 'array',
224
+ description: 'If provided, the specifier will only apply to products with all the specified tags.',
225
+ items: {
226
+ type: 'string',
227
+ },
228
+ },
229
+ },
230
+ },
231
+ },
232
232
  },
233
233
  annotations: {},
234
234
  };
235
235
  export const handler = async (client, args) => {
236
- const { jq_filter, ...body } = args;
237
- return asTextContentResult(await maybeFilter(jq_filter, await client.v1.customers.commits.create(body)));
236
+ const body = args;
237
+ return asTextContentResult(await client.v1.customers.commits.create(body));
238
238
  };
239
239
  export default { metadata, tool, handler };
240
240
  //# sourceMappingURL=create-customers-v1-commits.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-customers-v1-commits.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sCAAsC;IAChD,WAAW,EAAE,yBAAyB;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,2iBAA2iB;IAC7iB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8JAA8J;gBAChK,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,MAAM,EAAE;oCACN,IAAI,EAAE,QAAQ;iCACf;gCACD,aAAa,EAAE;oCACb,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,gCAAgC;oCAC7C,MAAM,EAAE,WAAW;iCACpB;gCACD,WAAW,EAAE;oCACX,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,gCAAgC;oCAC7C,MAAM,EAAE,WA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AI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,CAAC;KAC/E;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"create-customers-v1-commits.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/create-customers-v1-commits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sCAAsC;IAChD,WAAW,EAAE,yBAAyB;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,+mFAA+mF;IACjnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8JAA8J;gBAChK,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,OAA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AE,MAAM,CAAC;QAC9E,KAAK,EAAE;YACL,sBAAsB,EAAE;gBACtB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,yBAAyB,EAAE;wBACzB,IAAI,EAAE,QAAQ;wBACd,oBAAoB,EAAE,IAAI;qBAC3B;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,QAAQ;wBACd,oBAAoB,EAAE,IAAI;qBAC3B;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,kFAAkF;qBAChG;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,qFAAqF;wBACvF,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers-v1-commits.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAyDlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
1
+ {"version":3,"file":"list-customers-v1-commits.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0DlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers-v1-commits.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAyDlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
1
+ {"version":3,"file":"list-customers-v1-commits.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0DlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -13,7 +13,7 @@ exports.metadata = {
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'list_customers_v1_commits',
16
- description: 'List commits.\n',
16
+ description: "Retrieve all commit agreements for a customer, including both prepaid and postpaid commitments. This endpoint provides comprehensive visibility into contractual spending obligations, enabling you to track commitment utilization and manage customer contracts effectively.\n\n### Use this endpoint to:\n- Display commitment balances and utilization in customer dashboards\n- Track prepaid commitment drawdown and remaining balances\n- Monitor postpaid commitment progress toward minimum thresholds\n- Build commitment tracking and forecasting tools\n- Show commitment history with optional ledger details\n- Manage rollover balances between contract periods\n\n### Key response fields:\nAn array of Commit objects containing:\n- Commit type: PREPAID (pay upfront) or POSTPAID (pay at true-up)\n- Rate type: COMMIT_RATE (discounted) or LIST_RATE (standard pricing)\n- Access schedule: When commitment funds become available\n- Invoice schedule: When the customer is billed\n- Product targeting: Which product(s) usage is eligible to draw from this commit\n- Optional ledger entries: Transaction history (if `include_ledgers=true`)\n- Balance information: Current available amount (if `include_balance=true`)\n- Rollover settings: Fraction of unused amount that carries forward\n\n### Usage guidelines:\n- Pagination: Results limited to 25 commits per page; use 'next_page' for more\n- Date filtering options:\n - `covering_date`: Commits active on a specific date\n - `starting_at`: Commits with access on/after a date\n - `effective_before`: Commits with access before a date (exclusive)\n- Scope options:\n - `include_contract_commits`: Include contract-level commits (not just customer-level)\n - `include_archived`: Include archived commits and commits from archived contracts\n- Performance considerations:\n - include_ledgers: Adds detailed transaction history (slower)\n - include_balance: Adds current balance calculation (slower)\n- Optional filtering: Use commit_id to retrieve a specific commit\n",
17
17
  inputSchema: {
18
18
  type: 'object',
19
19
  properties: {
@@ -69,7 +69,8 @@ exports.tool = {
69
69
  };
70
70
  const handler = async (client, args) => {
71
71
  const body = args;
72
- return (0, types_1.asTextContentResult)(await client.v1.customers.commits.list(body));
72
+ const response = await client.v1.customers.commits.list(body).asResponse();
73
+ return (0, types_1.asTextContentResult)(await response.json());
73
74
  };
74
75
  exports.handler = handler;
75
76
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers-v1-commits.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,aAAa,EAAE;gBACb,I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":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,2+DAA2+D;IAC7+D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gFAAgF;gBAC7F,MAAM,EAAE,WAAW;aACpB;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gFAAgF;gBAC7F,MAAM,EAAE,WAAW;aACpB;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+DAA+D;aAC7E;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0FAA0F;aAC7F;YACD,wBAAwB,EAAE;gBACxB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wCAAwC;aACtD;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,6FAA6F;aAChG;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0DAA0D;aACxE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yEAAyE;gBACtF,MAAM,EAAE,WAAW;aACpB;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3E,OAAO,IAAA,2BAAmB,EAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -10,7 +10,7 @@ export const metadata = {
10
10
  };
11
11
  export const tool = {
12
12
  name: 'list_customers_v1_commits',
13
- description: 'List commits.\n',
13
+ description: "Retrieve all commit agreements for a customer, including both prepaid and postpaid commitments. This endpoint provides comprehensive visibility into contractual spending obligations, enabling you to track commitment utilization and manage customer contracts effectively.\n\n### Use this endpoint to:\n- Display commitment balances and utilization in customer dashboards\n- Track prepaid commitment drawdown and remaining balances\n- Monitor postpaid commitment progress toward minimum thresholds\n- Build commitment tracking and forecasting tools\n- Show commitment history with optional ledger details\n- Manage rollover balances between contract periods\n\n### Key response fields:\nAn array of Commit objects containing:\n- Commit type: PREPAID (pay upfront) or POSTPAID (pay at true-up)\n- Rate type: COMMIT_RATE (discounted) or LIST_RATE (standard pricing)\n- Access schedule: When commitment funds become available\n- Invoice schedule: When the customer is billed\n- Product targeting: Which product(s) usage is eligible to draw from this commit\n- Optional ledger entries: Transaction history (if `include_ledgers=true`)\n- Balance information: Current available amount (if `include_balance=true`)\n- Rollover settings: Fraction of unused amount that carries forward\n\n### Usage guidelines:\n- Pagination: Results limited to 25 commits per page; use 'next_page' for more\n- Date filtering options:\n - `covering_date`: Commits active on a specific date\n - `starting_at`: Commits with access on/after a date\n - `effective_before`: Commits with access before a date (exclusive)\n- Scope options:\n - `include_contract_commits`: Include contract-level commits (not just customer-level)\n - `include_archived`: Include archived commits and commits from archived contracts\n- Performance considerations:\n - include_ledgers: Adds detailed transaction history (slower)\n - include_balance: Adds current balance calculation (slower)\n- Optional filtering: Use commit_id to retrieve a specific commit\n",
14
14
  inputSchema: {
15
15
  type: 'object',
16
16
  properties: {
@@ -66,7 +66,8 @@ export const tool = {
66
66
  };
67
67
  export const handler = async (client, args) => {
68
68
  const body = args;
69
- return asTextContentResult(await client.v1.customers.commits.list(body));
69
+ const response = await client.v1.customers.commits.list(body).asResponse();
70
+ return asTextContentResult(await response.json());
70
71
  };
71
72
  export default { metadata, tool, handler };
72
73
  //# sourceMappingURL=list-customers-v1-commits.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers-v1-commits.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gFAAgF;gBAC7F,MAAM,EAAE,WAAW;aACpB;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gFAAgF;gBAC7F,MAAM,EAAE,WAAW;aACpB;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+DAA+D;aAC7E;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,0FAA0F;aAC7F;YACD,wBAAwB,EAAE;gBACxB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wCAAwC;aACtD;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,6FAA6F;aAChG;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0DAA0D;aACxE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yEAAyE;gBACtF,MAAM,EAAE,WAAW;aACpB;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-customers-v1-commits.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/list-customers-v1-commits.ts"],"names":[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EAAyE;gBACtF,MAAM,EAAE,WAAW;aACpB;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3E,OAAO,mBAAmB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'update_end_date_customers_v1_commits',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nPull forward the end date of a prepaid commit. Use the \"edit a commit\" endpoint to extend the end date of a prepaid commit, or to make other edits to the commit.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n $ref: '#/$defs/id'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n id: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n }\n },\n required: [ 'id'\n ]\n }\n }\n}\n```",
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nShortens the end date of a prepaid commit to terminate it earlier than originally scheduled. Use this endpoint when you need to cancel or reduce the duration of an existing prepaid commit. Only works with prepaid commit types and can only move the end date forward (earlier), not extend it. \n\n### Usage guidelines:\nTo extend commit end dates or make other comprehensive edits, use the 'edit commit' endpoint instead.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/commit_update_end_date_response',\n $defs: {\n commit_update_end_date_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```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"update-end-date-customers-v1-commits.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6CAA6C;IACvD,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,oqBAAoqB;IACtqB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8DAA8D;aAC5E;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,oBAAoB,EAAE;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kLAAkL;gBACpL,MAAM,EAAE,WAAW;aACpB;YACD,sBAAsB,EAAE;gBACtB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gJAAgJ;gBAClJ,MAAM,EAAE,WAAW;aACpB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC;KACvC;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CACpF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"update-end-date-customers-v1-commits.js","sourceRoot":"","sources":["../../../../src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,sBAAsB;IAChC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6CAA6C;IACvD,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EACT,2iCAA2iC;IAC7iC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8DAA8D;aAC5E;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,oBAAoB,EAAE;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kLAAkL;gBACpL,MAAM,EAAE,WAAW;aACpB;YACD,sBAAs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