@metronome/mcp 0.1.0 → 0.3.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 (669) hide show
  1. package/README.md +26 -0
  2. package/compat.d.mts.map +1 -1
  3. package/compat.d.ts.map +1 -1
  4. package/compat.js +5 -2
  5. package/compat.js.map +1 -1
  6. package/compat.mjs +5 -2
  7. package/compat.mjs.map +1 -1
  8. package/filtering.d.mts +1 -1
  9. package/filtering.d.mts.map +1 -1
  10. package/filtering.d.ts +1 -1
  11. package/filtering.d.ts.map +1 -1
  12. package/filtering.js +1 -2
  13. package/filtering.js.map +1 -1
  14. package/filtering.mjs +1 -2
  15. package/filtering.mjs.map +1 -1
  16. package/headers.d.mts +4 -0
  17. package/headers.d.mts.map +1 -0
  18. package/headers.d.ts +4 -0
  19. package/headers.d.ts.map +1 -0
  20. package/headers.js +22 -0
  21. package/headers.js.map +1 -0
  22. package/headers.mjs +18 -0
  23. package/headers.mjs.map +1 -0
  24. package/http.d.mts +6 -0
  25. package/http.d.mts.map +1 -0
  26. package/http.d.ts +6 -0
  27. package/http.d.ts.map +1 -0
  28. package/http.js +93 -0
  29. package/http.js.map +1 -0
  30. package/http.mjs +85 -0
  31. package/http.mjs.map +1 -0
  32. package/index.js +12 -7
  33. package/index.js.map +1 -1
  34. package/index.mjs +13 -8
  35. package/index.mjs.map +1 -1
  36. package/options.d.mts +3 -0
  37. package/options.d.mts.map +1 -1
  38. package/options.d.ts +3 -0
  39. package/options.d.ts.map +1 -1
  40. package/options.js +18 -0
  41. package/options.js.map +1 -1
  42. package/options.mjs +18 -0
  43. package/options.mjs.map +1 -1
  44. package/package.json +4 -3
  45. package/server.d.mts +1 -0
  46. package/server.d.mts.map +1 -1
  47. package/server.d.ts +1 -0
  48. package/server.d.ts.map +1 -1
  49. package/server.js +8 -6
  50. package/server.js.map +1 -1
  51. package/server.mjs +6 -5
  52. package/server.mjs.map +1 -1
  53. package/src/compat.ts +5 -2
  54. package/src/filtering.ts +1 -2
  55. package/src/headers.ts +24 -0
  56. package/src/http.ts +99 -0
  57. package/src/index.ts +15 -11
  58. package/src/options.ts +22 -0
  59. package/src/server.ts +12 -9
  60. package/src/stdio.ts +14 -0
  61. package/src/tools/v1/alerts/archive-v1-alerts.ts +2 -2
  62. package/src/tools/v1/alerts/create-v1-alerts.ts +15 -12
  63. package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +2 -2
  64. package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +2 -2
  65. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +3 -2
  66. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +3 -3
  67. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +3 -3
  68. package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +1 -8
  69. package/src/tools/v1/contracts/amend-v1-contracts.ts +38 -1
  70. package/src/tools/v1/contracts/archive-v1-contracts.ts +2 -2
  71. package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +4 -2
  72. package/src/tools/v1/contracts/create-v1-contracts.ts +107 -5
  73. package/src/tools/v1/contracts/list-balances-v1-contracts.ts +1 -2
  74. package/src/tools/v1/contracts/list-v1-contracts.ts +1 -1
  75. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +3 -3
  76. package/src/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.ts +2 -7
  77. package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +2 -2
  78. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +6 -2
  79. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +3 -3
  80. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +3 -3
  81. package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +2 -2
  82. package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +2 -2
  83. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +3 -2
  84. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +4 -3
  85. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +3 -3
  86. package/src/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.ts +2 -7
  87. package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +2 -2
  88. package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +2 -2
  89. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +4 -2
  90. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +7 -3
  91. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +5 -3
  92. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +5 -3
  93. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +5 -3
  94. package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +2 -2
  95. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +7 -3
  96. package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +2 -2
  97. package/src/tools/v1/contracts/retrieve-v1-contracts.ts +1 -1
  98. package/src/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.ts +1 -1
  99. package/src/tools/v1/contracts/set-usage-filter-v1-contracts.ts +1 -8
  100. package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +2 -2
  101. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +3 -2
  102. package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +2 -2
  103. package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +2 -2
  104. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +3 -3
  105. package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +2 -2
  106. package/src/tools/v1/custom-fields/add-key-v1-custom-fields.ts +1 -7
  107. package/src/tools/v1/custom-fields/delete-values-v1-custom-fields.ts +1 -8
  108. package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +2 -2
  109. package/src/tools/v1/custom-fields/remove-key-v1-custom-fields.ts +1 -8
  110. package/src/tools/v1/custom-fields/set-values-v1-custom-fields.ts +2 -7
  111. package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +3 -3
  112. package/src/tools/v1/customers/alerts/reset-customers-v1-alerts.ts +1 -8
  113. package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +3 -3
  114. package/src/tools/v1/customers/archive-v1-customers.ts +2 -2
  115. package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +1 -8
  116. package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +1 -7
  117. package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +4 -2
  118. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +10 -2
  119. package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +1 -2
  120. package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +4 -2
  121. package/src/tools/v1/customers/create-v1-customers.ts +5 -3
  122. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +5 -2
  123. package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +1 -2
  124. package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +4 -2
  125. package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +4 -2
  126. package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +1 -1
  127. package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +1 -1
  128. package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +1 -2
  129. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +3 -3
  130. package/src/tools/v1/customers/list-costs-v1-customers.ts +3 -3
  131. package/src/tools/v1/customers/list-v1-customers.ts +3 -3
  132. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +3 -3
  133. package/src/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.ts +2 -7
  134. package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +2 -2
  135. package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +2 -2
  136. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +3 -3
  137. package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +2 -2
  138. package/src/tools/v1/customers/preview-events-v1-customers.ts +2 -1
  139. package/src/tools/v1/customers/retrieve-v1-customers.ts +3 -3
  140. package/src/tools/v1/customers/set-ingest-aliases-v1-customers.ts +1 -7
  141. package/src/tools/v1/customers/set-name-v1-customers.ts +3 -3
  142. package/src/tools/v1/customers/update-config-v1-customers.ts +1 -8
  143. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +5 -2
  144. package/src/tools/v1/invoices/regenerate-v1-invoices.ts +2 -2
  145. package/src/tools/v1/invoices/void-v1-invoices.ts +2 -2
  146. package/src/tools/v1/plans/get-details-v1-plans.ts +3 -3
  147. package/src/tools/v1/plans/list-charges-v1-plans.ts +3 -3
  148. package/src/tools/v1/plans/list-customers-v1-plans.ts +3 -3
  149. package/src/tools/v1/plans/list-v1-plans.ts +3 -3
  150. package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +2 -2
  151. package/src/tools/v1/services/list-v1-services.ts +2 -1
  152. package/src/tools/v1/usage/ingest-v1-usage.ts +2 -7
  153. package/src/tools/v1/usage/list-v1-usage.ts +3 -3
  154. package/src/tools/v1/usage/list-with-groups-v1-usage.ts +2 -2
  155. package/src/tools/v1/usage/search-v1-usage.ts +3 -3
  156. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +9 -3
  157. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +9 -3
  158. package/src/tools/v2/contracts/edit-v2-contracts.ts +129 -18
  159. package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +1 -1
  160. package/src/tools/v2/contracts/list-v2-contracts.ts +1 -1
  161. package/src/tools/v2/contracts/retrieve-v2-contracts.ts +1 -2
  162. package/stdio.d.mts +4 -0
  163. package/stdio.d.mts.map +1 -0
  164. package/stdio.d.ts +4 -0
  165. package/stdio.d.ts.map +1 -0
  166. package/stdio.js +14 -0
  167. package/stdio.js.map +1 -0
  168. package/stdio.mjs +10 -0
  169. package/stdio.mjs.map +1 -0
  170. package/tools/v1/alerts/archive-v1-alerts.js +2 -2
  171. package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
  172. package/tools/v1/alerts/archive-v1-alerts.mjs +2 -2
  173. package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
  174. package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
  175. package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
  176. package/tools/v1/alerts/create-v1-alerts.js +15 -12
  177. package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
  178. package/tools/v1/alerts/create-v1-alerts.mjs +15 -12
  179. package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
  180. package/tools/v1/audit-logs/list-v1-audit-logs.js +2 -2
  181. package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
  182. package/tools/v1/audit-logs/list-v1-audit-logs.mjs +2 -2
  183. package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
  184. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +2 -2
  185. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
  186. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +2 -2
  187. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
  188. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +1 -1
  189. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +1 -1
  190. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +3 -2
  191. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  192. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +3 -2
  193. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  194. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +3 -3
  195. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  196. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +3 -3
  197. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  198. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +3 -3
  199. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  200. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +3 -3
  201. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  202. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +1 -1
  203. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +1 -1
  204. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +1 -6
  205. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +1 -1
  206. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +1 -6
  207. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +1 -1
  208. package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
  209. package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
  210. package/tools/v1/contracts/amend-v1-contracts.js +34 -1
  211. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  212. package/tools/v1/contracts/amend-v1-contracts.mjs +34 -1
  213. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  214. package/tools/v1/contracts/archive-v1-contracts.js +2 -2
  215. package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
  216. package/tools/v1/contracts/archive-v1-contracts.mjs +2 -2
  217. package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
  218. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
  219. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
  220. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +4 -1
  221. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
  222. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +4 -1
  223. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
  224. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  225. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  226. package/tools/v1/contracts/create-v1-contracts.js +102 -4
  227. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  228. package/tools/v1/contracts/create-v1-contracts.mjs +102 -4
  229. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  230. package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
  231. package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
  232. package/tools/v1/contracts/list-balances-v1-contracts.js +1 -1
  233. package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
  234. package/tools/v1/contracts/list-balances-v1-contracts.mjs +1 -1
  235. package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
  236. package/tools/v1/contracts/list-v1-contracts.js +1 -1
  237. package/tools/v1/contracts/list-v1-contracts.js.map +1 -1
  238. package/tools/v1/contracts/list-v1-contracts.mjs +1 -1
  239. package/tools/v1/contracts/list-v1-contracts.mjs.map +1 -1
  240. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +3 -3
  241. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  242. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +3 -3
  243. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  244. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +1 -1
  245. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +1 -1
  246. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js +2 -6
  247. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js.map +1 -1
  248. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs +2 -6
  249. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs.map +1 -1
  250. package/tools/v1/contracts/products/archive-contracts-v1-products.js +2 -2
  251. package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
  252. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +2 -2
  253. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
  254. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
  255. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
  256. package/tools/v1/contracts/products/create-contracts-v1-products.js +6 -2
  257. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  258. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +6 -2
  259. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  260. package/tools/v1/contracts/products/list-contracts-v1-products.js +3 -3
  261. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  262. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +3 -3
  263. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  264. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +3 -3
  265. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  266. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +3 -3
  267. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  268. package/tools/v1/contracts/products/update-contracts-v1-products.js +2 -2
  269. package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
  270. package/tools/v1/contracts/products/update-contracts-v1-products.mjs +2 -2
  271. package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
  272. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +2 -2
  273. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
  274. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +2 -2
  275. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
  276. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
  277. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
  278. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +3 -2
  279. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  280. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +3 -2
  281. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  282. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +1 -1
  283. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +1 -1
  284. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +4 -3
  285. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  286. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +4 -3
  287. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  288. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +3 -3
  289. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  290. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +3 -3
  291. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  292. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  293. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  294. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js +2 -6
  295. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  296. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs +2 -6
  297. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  298. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +2 -2
  299. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
  300. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +2 -2
  301. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  302. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +2 -2
  303. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
  304. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +2 -2
  305. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  306. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  307. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  308. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +4 -2
  309. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  310. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +4 -2
  311. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  312. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  313. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  314. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +5 -3
  315. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  316. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +5 -3
  317. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  318. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  319. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  320. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +5 -3
  321. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  322. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +5 -3
  323. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  324. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts.map +1 -1
  325. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts.map +1 -1
  326. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +3 -3
  327. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  328. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +3 -3
  329. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  330. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +1 -1
  331. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +1 -1
  332. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +5 -3
  333. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  334. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +5 -3
  335. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  336. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +2 -2
  337. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
  338. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +2 -2
  339. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
  340. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +1 -1
  341. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +1 -1
  342. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +5 -3
  343. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  344. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +5 -3
  345. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  346. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +2 -2
  347. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
  348. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +2 -2
  349. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
  350. package/tools/v1/contracts/retrieve-v1-contracts.js +1 -1
  351. package/tools/v1/contracts/retrieve-v1-contracts.js.map +1 -1
  352. package/tools/v1/contracts/retrieve-v1-contracts.mjs +1 -1
  353. package/tools/v1/contracts/retrieve-v1-contracts.mjs.map +1 -1
  354. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js +1 -1
  355. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js.map +1 -1
  356. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs +1 -1
  357. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs.map +1 -1
  358. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +1 -1
  359. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +1 -1
  360. package/tools/v1/contracts/set-usage-filter-v1-contracts.js +1 -6
  361. package/tools/v1/contracts/set-usage-filter-v1-contracts.js.map +1 -1
  362. package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs +1 -6
  363. package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs.map +1 -1
  364. package/tools/v1/contracts/update-end-date-v1-contracts.js +2 -2
  365. package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
  366. package/tools/v1/contracts/update-end-date-v1-contracts.mjs +2 -2
  367. package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
  368. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +1 -1
  369. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +1 -1
  370. package/tools/v1/credit-grants/create-v1-credit-grants.js +3 -2
  371. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  372. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +3 -2
  373. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  374. package/tools/v1/credit-grants/edit-v1-credit-grants.js +2 -2
  375. package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
  376. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +2 -2
  377. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
  378. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +2 -2
  379. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
  380. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +2 -2
  381. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
  382. package/tools/v1/credit-grants/list-v1-credit-grants.js +3 -3
  383. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  384. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +3 -3
  385. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  386. package/tools/v1/credit-grants/void-v1-credit-grants.js +2 -2
  387. package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
  388. package/tools/v1/credit-grants/void-v1-credit-grants.mjs +2 -2
  389. package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
  390. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts.map +1 -1
  391. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts.map +1 -1
  392. package/tools/v1/custom-fields/add-key-v1-custom-fields.js +1 -6
  393. package/tools/v1/custom-fields/add-key-v1-custom-fields.js.map +1 -1
  394. package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs +1 -6
  395. package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs.map +1 -1
  396. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +1 -1
  397. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +1 -1
  398. package/tools/v1/custom-fields/delete-values-v1-custom-fields.js +1 -6
  399. package/tools/v1/custom-fields/delete-values-v1-custom-fields.js.map +1 -1
  400. package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs +1 -6
  401. package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs.map +1 -1
  402. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +2 -2
  403. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
  404. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +2 -2
  405. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
  406. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +1 -1
  407. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +1 -1
  408. package/tools/v1/custom-fields/remove-key-v1-custom-fields.js +1 -6
  409. package/tools/v1/custom-fields/remove-key-v1-custom-fields.js.map +1 -1
  410. package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs +1 -6
  411. package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs.map +1 -1
  412. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
  413. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
  414. package/tools/v1/custom-fields/set-values-v1-custom-fields.js +2 -6
  415. package/tools/v1/custom-fields/set-values-v1-custom-fields.js.map +1 -1
  416. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs +2 -6
  417. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs.map +1 -1
  418. package/tools/v1/customers/alerts/list-customers-v1-alerts.js +3 -3
  419. package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
  420. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +3 -3
  421. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
  422. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +1 -1
  423. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +1 -1
  424. package/tools/v1/customers/alerts/reset-customers-v1-alerts.js +1 -6
  425. package/tools/v1/customers/alerts/reset-customers-v1-alerts.js.map +1 -1
  426. package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs +1 -6
  427. package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs.map +1 -1
  428. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +3 -3
  429. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
  430. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +3 -3
  431. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
  432. package/tools/v1/customers/archive-v1-customers.js +2 -2
  433. package/tools/v1/customers/archive-v1-customers.js.map +1 -1
  434. package/tools/v1/customers/archive-v1-customers.mjs +2 -2
  435. package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
  436. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
  437. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
  438. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +1 -6
  439. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
  440. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +1 -6
  441. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
  442. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +1 -1
  443. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +1 -1
  444. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js +1 -6
  445. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +1 -1
  446. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +1 -6
  447. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.map +1 -1
  448. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +1 -1
  449. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +1 -1
  450. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +2 -2
  451. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
  452. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +2 -2
  453. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
  454. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
  455. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
  456. package/tools/v1/customers/commits/create-customers-v1-commits.js +9 -2
  457. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  458. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +9 -2
  459. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  460. package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +1 -1
  461. package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +1 -1
  462. package/tools/v1/customers/commits/list-customers-v1-commits.js +1 -1
  463. package/tools/v1/customers/commits/list-customers-v1-commits.js.map +1 -1
  464. package/tools/v1/customers/commits/list-customers-v1-commits.mjs +1 -1
  465. package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +1 -1
  466. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts.map +1 -1
  467. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts.map +1 -1
  468. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +2 -2
  469. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
  470. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +2 -2
  471. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
  472. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  473. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  474. package/tools/v1/customers/create-v1-customers.js +5 -3
  475. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  476. package/tools/v1/customers/create-v1-customers.mjs +5 -3
  477. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  478. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
  479. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
  480. package/tools/v1/customers/credits/create-customers-v1-credits.js +5 -2
  481. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  482. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +5 -2
  483. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  484. package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +1 -1
  485. package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +1 -1
  486. package/tools/v1/customers/credits/list-customers-v1-credits.js +1 -1
  487. package/tools/v1/customers/credits/list-customers-v1-credits.js.map +1 -1
  488. package/tools/v1/customers/credits/list-customers-v1-credits.mjs +1 -1
  489. package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +1 -1
  490. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts.map +1 -1
  491. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts.map +1 -1
  492. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +2 -2
  493. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
  494. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +2 -2
  495. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
  496. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts.map +1 -1
  497. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts.map +1 -1
  498. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +2 -2
  499. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
  500. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +2 -2
  501. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
  502. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +1 -1
  503. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +1 -1
  504. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +1 -1
  505. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +1 -1
  506. package/tools/v1/customers/invoices/list-customers-v1-invoices.js +1 -1
  507. package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +1 -1
  508. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +1 -1
  509. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +1 -1
  510. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +1 -1
  511. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +1 -1
  512. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +1 -1
  513. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +1 -1
  514. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +1 -1
  515. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +1 -1
  516. package/tools/v1/customers/list-billable-metrics-v1-customers.js +3 -3
  517. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  518. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +3 -3
  519. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  520. package/tools/v1/customers/list-costs-v1-customers.js +3 -3
  521. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  522. package/tools/v1/customers/list-costs-v1-customers.mjs +3 -3
  523. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  524. package/tools/v1/customers/list-v1-customers.js +3 -3
  525. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  526. package/tools/v1/customers/list-v1-customers.mjs +3 -3
  527. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  528. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +3 -3
  529. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  530. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +3 -3
  531. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  532. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +1 -1
  533. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +1 -1
  534. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js +2 -6
  535. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js.map +1 -1
  536. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs +2 -6
  537. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs.map +1 -1
  538. package/tools/v1/customers/plans/add-customers-v1-plans.js +2 -2
  539. package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
  540. package/tools/v1/customers/plans/add-customers-v1-plans.mjs +2 -2
  541. package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
  542. package/tools/v1/customers/plans/end-customers-v1-plans.js +2 -2
  543. package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
  544. package/tools/v1/customers/plans/end-customers-v1-plans.mjs +2 -2
  545. package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
  546. package/tools/v1/customers/plans/list-customers-v1-plans.js +3 -3
  547. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  548. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +3 -3
  549. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  550. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +2 -2
  551. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
  552. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +2 -2
  553. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
  554. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  555. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  556. package/tools/v1/customers/preview-events-v1-customers.js +2 -1
  557. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  558. package/tools/v1/customers/preview-events-v1-customers.mjs +2 -1
  559. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  560. package/tools/v1/customers/retrieve-v1-customers.js +3 -3
  561. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  562. package/tools/v1/customers/retrieve-v1-customers.mjs +3 -3
  563. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  564. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts.map +1 -1
  565. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts.map +1 -1
  566. package/tools/v1/customers/set-ingest-aliases-v1-customers.js +1 -6
  567. package/tools/v1/customers/set-ingest-aliases-v1-customers.js.map +1 -1
  568. package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs +1 -6
  569. package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs.map +1 -1
  570. package/tools/v1/customers/set-name-v1-customers.js +3 -3
  571. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  572. package/tools/v1/customers/set-name-v1-customers.mjs +3 -3
  573. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  574. package/tools/v1/customers/update-config-v1-customers.d.mts.map +1 -1
  575. package/tools/v1/customers/update-config-v1-customers.d.ts.map +1 -1
  576. package/tools/v1/customers/update-config-v1-customers.js +1 -6
  577. package/tools/v1/customers/update-config-v1-customers.js.map +1 -1
  578. package/tools/v1/customers/update-config-v1-customers.mjs +1 -6
  579. package/tools/v1/customers/update-config-v1-customers.mjs.map +1 -1
  580. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +1 -1
  581. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +1 -1
  582. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +5 -2
  583. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  584. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +5 -2
  585. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  586. package/tools/v1/invoices/regenerate-v1-invoices.js +2 -2
  587. package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
  588. package/tools/v1/invoices/regenerate-v1-invoices.mjs +2 -2
  589. package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
  590. package/tools/v1/invoices/void-v1-invoices.js +2 -2
  591. package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
  592. package/tools/v1/invoices/void-v1-invoices.mjs +2 -2
  593. package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
  594. package/tools/v1/plans/get-details-v1-plans.js +3 -3
  595. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  596. package/tools/v1/plans/get-details-v1-plans.mjs +3 -3
  597. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  598. package/tools/v1/plans/list-charges-v1-plans.js +3 -3
  599. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  600. package/tools/v1/plans/list-charges-v1-plans.mjs +3 -3
  601. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  602. package/tools/v1/plans/list-customers-v1-plans.js +3 -3
  603. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  604. package/tools/v1/plans/list-customers-v1-plans.mjs +3 -3
  605. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  606. package/tools/v1/plans/list-v1-plans.js +3 -3
  607. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  608. package/tools/v1/plans/list-v1-plans.mjs +3 -3
  609. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  610. package/tools/v1/pricing-units/list-v1-pricing-units.js +2 -2
  611. package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
  612. package/tools/v1/pricing-units/list-v1-pricing-units.mjs +2 -2
  613. package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
  614. package/tools/v1/services/list-v1-services.d.mts.map +1 -1
  615. package/tools/v1/services/list-v1-services.d.ts.map +1 -1
  616. package/tools/v1/services/list-v1-services.js +2 -1
  617. package/tools/v1/services/list-v1-services.js.map +1 -1
  618. package/tools/v1/services/list-v1-services.mjs +2 -1
  619. package/tools/v1/services/list-v1-services.mjs.map +1 -1
  620. package/tools/v1/usage/ingest-v1-usage.d.mts.map +1 -1
  621. package/tools/v1/usage/ingest-v1-usage.d.ts.map +1 -1
  622. package/tools/v1/usage/ingest-v1-usage.js +2 -6
  623. package/tools/v1/usage/ingest-v1-usage.js.map +1 -1
  624. package/tools/v1/usage/ingest-v1-usage.mjs +2 -6
  625. package/tools/v1/usage/ingest-v1-usage.mjs.map +1 -1
  626. package/tools/v1/usage/list-v1-usage.js +3 -3
  627. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  628. package/tools/v1/usage/list-v1-usage.mjs +3 -3
  629. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  630. package/tools/v1/usage/list-with-groups-v1-usage.js +2 -2
  631. package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
  632. package/tools/v1/usage/list-with-groups-v1-usage.mjs +2 -2
  633. package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
  634. package/tools/v1/usage/search-v1-usage.js +3 -3
  635. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  636. package/tools/v1/usage/search-v1-usage.mjs +3 -3
  637. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  638. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  639. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  640. package/tools/v2/contracts/edit-commit-v2-contracts.js +9 -3
  641. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  642. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +9 -3
  643. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  644. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  645. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  646. package/tools/v2/contracts/edit-credit-v2-contracts.js +9 -3
  647. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  648. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +9 -3
  649. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  650. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  651. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  652. package/tools/v2/contracts/edit-v2-contracts.js +124 -17
  653. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  654. package/tools/v2/contracts/edit-v2-contracts.mjs +124 -17
  655. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
  656. package/tools/v2/contracts/get-edit-history-v2-contracts.js +1 -1
  657. package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +1 -1
  658. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +1 -1
  659. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +1 -1
  660. package/tools/v2/contracts/list-v2-contracts.js +1 -1
  661. package/tools/v2/contracts/list-v2-contracts.js.map +1 -1
  662. package/tools/v2/contracts/list-v2-contracts.mjs +1 -1
  663. package/tools/v2/contracts/list-v2-contracts.mjs.map +1 -1
  664. package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +1 -1
  665. package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +1 -1
  666. package/tools/v2/contracts/retrieve-v2-contracts.js +1 -1
  667. package/tools/v2/contracts/retrieve-v2-contracts.js.map +1 -1
  668. package/tools/v2/contracts/retrieve-v2-contracts.mjs +1 -1
  669. package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +1 -1
@@ -16,8 +16,7 @@ export const metadata: Metadata = {
16
16
 
17
17
  export const tool: Tool = {
18
18
  name: 'create_v1_contracts',
19
- description:
20
- "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 contract\n",
19
+ description: 'Create a new contract\n',
21
20
  inputSchema: {
22
21
  type: 'object',
23
22
  properties: {
@@ -119,6 +118,7 @@ export const tool: Tool = {
119
118
  },
120
119
  custom_fields: {
121
120
  type: 'object',
121
+ additionalProperties: true,
122
122
  },
123
123
  description: {
124
124
  type: 'string',
@@ -180,6 +180,11 @@ export const tool: Tool = {
180
180
  type: 'string',
181
181
  description: 'Defaults to USD (cents) if not passed.',
182
182
  },
183
+ do_not_invoice: {
184
+ type: 'boolean',
185
+ description:
186
+ 'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
187
+ },
183
188
  recurring_schedule: {
184
189
  type: 'object',
185
190
  description:
@@ -301,6 +306,12 @@ export const tool: Tool = {
301
306
  type: 'object',
302
307
  description:
303
308
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
309
+ additionalProperties: true,
310
+ },
311
+ on_session_payment: {
312
+ type: 'boolean',
313
+ description:
314
+ 'If true, the payment will be made assuming the customer is present (i.e. on session). \n\nIf false, the payment will be made assuming the customer is not present (i.e. off session). \nFor cardholders from a country with an e-mandate requirement (e.g. India), the payment may be declined.\n\nIf left blank, will default to false.',
304
315
  },
305
316
  },
306
317
  required: ['payment_type'],
@@ -336,9 +347,11 @@ export const tool: Tool = {
336
347
  properties: {
337
348
  presentation_group_values: {
338
349
  type: 'object',
350
+ additionalProperties: true,
339
351
  },
340
352
  pricing_group_values: {
341
353
  type: 'object',
354
+ additionalProperties: true,
342
355
  },
343
356
  product_id: {
344
357
  type: 'string',
@@ -424,6 +437,7 @@ export const tool: Tool = {
424
437
  },
425
438
  custom_fields: {
426
439
  type: 'object',
440
+ additionalProperties: true,
427
441
  },
428
442
  description: {
429
443
  type: 'string',
@@ -502,9 +516,11 @@ export const tool: Tool = {
502
516
  properties: {
503
517
  presentation_group_values: {
504
518
  type: 'object',
519
+ additionalProperties: true,
505
520
  },
506
521
  pricing_group_values: {
507
522
  type: 'object',
523
+ additionalProperties: true,
508
524
  },
509
525
  product_id: {
510
526
  type: 'string',
@@ -528,6 +544,7 @@ export const tool: Tool = {
528
544
  },
529
545
  custom_fields: {
530
546
  type: 'object',
547
+ additionalProperties: true,
531
548
  },
532
549
  discounts: {
533
550
  type: 'array',
@@ -546,6 +563,11 @@ export const tool: Tool = {
546
563
  type: 'string',
547
564
  description: 'Defaults to USD (cents) if not passed.',
548
565
  },
566
+ do_not_invoice: {
567
+ type: 'boolean',
568
+ description:
569
+ 'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
570
+ },
549
571
  recurring_schedule: {
550
572
  type: 'object',
551
573
  description:
@@ -621,6 +643,7 @@ export const tool: Tool = {
621
643
  },
622
644
  custom_fields: {
623
645
  type: 'object',
646
+ additionalProperties: true,
624
647
  },
625
648
  name: {
626
649
  type: 'string',
@@ -731,11 +754,13 @@ export const tool: Tool = {
731
754
  type: 'object',
732
755
  description:
733
756
  'A map of group names to values. The override will only apply to line items with the specified presentation group values.',
757
+ additionalProperties: true,
734
758
  },
735
759
  pricing_group_values: {
736
760
  type: 'object',
737
761
  description:
738
762
  'A map of pricing group names to values. The override will only apply to products with the specified pricing group values.',
763
+ additionalProperties: true,
739
764
  },
740
765
  product_id: {
741
766
  type: 'string',
@@ -784,6 +809,7 @@ export const tool: Tool = {
784
809
  type: 'object',
785
810
  description:
786
811
  'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',
812
+ additionalProperties: true,
787
813
  },
788
814
  is_prorated: {
789
815
  type: 'boolean',
@@ -894,9 +920,11 @@ export const tool: Tool = {
894
920
  properties: {
895
921
  presentation_group_values: {
896
922
  type: 'object',
923
+ additionalProperties: true,
897
924
  },
898
925
  pricing_group_values: {
899
926
  type: 'object',
927
+ additionalProperties: true,
900
928
  },
901
929
  product_id: {
902
930
  type: 'string',
@@ -961,6 +989,7 @@ export const tool: Tool = {
961
989
  type: 'object',
962
990
  description:
963
991
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
992
+ additionalProperties: true,
964
993
  },
965
994
  },
966
995
  required: ['payment_type'],
@@ -1020,6 +1049,7 @@ export const tool: Tool = {
1020
1049
  },
1021
1050
  custom_fields: {
1022
1051
  type: 'object',
1052
+ additionalProperties: true,
1023
1053
  },
1024
1054
  description: {
1025
1055
  type: 'string',
@@ -1057,7 +1087,7 @@ export const tool: Tool = {
1057
1087
  quantity: {
1058
1088
  type: 'number',
1059
1089
  description:
1060
- 'This field is currently required. Upcoming recurring commit/credit configuration options will allow it to be optional.',
1090
+ 'This field is required unless a subscription is attached via `subscription_config`.',
1061
1091
  },
1062
1092
  },
1063
1093
  required: ['credit_type_id', 'unit_price'],
@@ -1214,9 +1244,11 @@ export const tool: Tool = {
1214
1244
  properties: {
1215
1245
  presentation_group_values: {
1216
1246
  type: 'object',
1247
+ additionalProperties: true,
1217
1248
  },
1218
1249
  pricing_group_values: {
1219
1250
  type: 'object',
1251
+ additionalProperties: true,
1220
1252
  },
1221
1253
  product_id: {
1222
1254
  type: 'string',
@@ -1234,6 +1266,32 @@ export const tool: Tool = {
1234
1266
  },
1235
1267
  },
1236
1268
  },
1269
+ subscription_config: {
1270
+ type: 'object',
1271
+ description: 'Attach a subscription to the recurring commit/credit.',
1272
+ properties: {
1273
+ apply_seat_increase_config: {
1274
+ type: 'object',
1275
+ properties: {
1276
+ is_prorated: {
1277
+ type: 'boolean',
1278
+ description: 'Indicates whether a mid-period seat increase should be prorated.',
1279
+ },
1280
+ },
1281
+ required: ['is_prorated'],
1282
+ },
1283
+ subscription_id: {
1284
+ type: 'string',
1285
+ description: 'ID of the subscription to configure on the recurring commit/credit.',
1286
+ },
1287
+ allocation: {
1288
+ type: 'string',
1289
+ description: 'If set to POOLED, allocation added per seat is pooled across the account.',
1290
+ enum: ['POOLED'],
1291
+ },
1292
+ },
1293
+ required: ['apply_seat_increase_config', 'subscription_id'],
1294
+ },
1237
1295
  temporary_id: {
1238
1296
  type: 'string',
1239
1297
  description:
@@ -1261,7 +1319,7 @@ export const tool: Tool = {
1261
1319
  quantity: {
1262
1320
  type: 'number',
1263
1321
  description:
1264
- 'This field is currently required. Upcoming recurring commit/credit configuration options will allow it to be optional.',
1322
+ 'This field is required unless a subscription is attached via `subscription_config`.',
1265
1323
  },
1266
1324
  },
1267
1325
  required: ['credit_type_id', 'unit_price'],
@@ -1402,9 +1460,11 @@ export const tool: Tool = {
1402
1460
  properties: {
1403
1461
  presentation_group_values: {
1404
1462
  type: 'object',
1463
+ additionalProperties: true,
1405
1464
  },
1406
1465
  pricing_group_values: {
1407
1466
  type: 'object',
1467
+ additionalProperties: true,
1408
1468
  },
1409
1469
  product_id: {
1410
1470
  type: 'string',
@@ -1422,6 +1482,32 @@ export const tool: Tool = {
1422
1482
  },
1423
1483
  },
1424
1484
  },
1485
+ subscription_config: {
1486
+ type: 'object',
1487
+ description: 'Attach a subscription to the recurring commit/credit.',
1488
+ properties: {
1489
+ apply_seat_increase_config: {
1490
+ type: 'object',
1491
+ properties: {
1492
+ is_prorated: {
1493
+ type: 'boolean',
1494
+ description: 'Indicates whether a mid-period seat increase should be prorated.',
1495
+ },
1496
+ },
1497
+ required: ['is_prorated'],
1498
+ },
1499
+ subscription_id: {
1500
+ type: 'string',
1501
+ description: 'ID of the subscription to configure on the recurring commit/credit.',
1502
+ },
1503
+ allocation: {
1504
+ type: 'string',
1505
+ description: 'If set to POOLED, allocation added per seat is pooled across the account.',
1506
+ enum: ['POOLED'],
1507
+ },
1508
+ },
1509
+ required: ['apply_seat_increase_config', 'subscription_id'],
1510
+ },
1425
1511
  temporary_id: {
1426
1512
  type: 'string',
1427
1513
  description:
@@ -1521,6 +1607,11 @@ export const tool: Tool = {
1521
1607
  type: 'string',
1522
1608
  description: 'Defaults to USD (cents) if not passed.',
1523
1609
  },
1610
+ do_not_invoice: {
1611
+ type: 'boolean',
1612
+ description:
1613
+ 'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
1614
+ },
1524
1615
  recurring_schedule: {
1525
1616
  type: 'object',
1526
1617
  description:
@@ -1594,6 +1685,10 @@ export const tool: Tool = {
1594
1685
  },
1595
1686
  },
1596
1687
  },
1688
+ custom_fields: {
1689
+ type: 'object',
1690
+ additionalProperties: true,
1691
+ },
1597
1692
  name: {
1598
1693
  type: 'string',
1599
1694
  description: 'displayed on invoices',
@@ -1678,6 +1773,7 @@ export const tool: Tool = {
1678
1773
  type: 'object',
1679
1774
  description:
1680
1775
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
1776
+ additionalProperties: true,
1681
1777
  },
1682
1778
  },
1683
1779
  required: ['payment_type'],
@@ -1720,7 +1816,7 @@ export const tool: Tool = {
1720
1816
  invoice_behavior: {
1721
1817
  type: 'string',
1722
1818
  description:
1723
- 'Indicates how mid-period quantity adjustments are invoiced. If BILL_IMMEDIATELY is selected, the quantity increase will be billed on the scheduled date. If BILL_ON_NEXT_COLLECTION_DATE is selected, the quantity increase will be billed for in-arrears at the end of the period.',
1819
+ 'Indicates how mid-period quantity adjustments are invoiced. \n**BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The quantity increase will be billed immediately on the scheduled date.\n**BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for in-arrears at the end of the period.',
1724
1820
  enum: ['BILL_IMMEDIATELY', 'BILL_ON_NEXT_COLLECTION_DATE'],
1725
1821
  },
1726
1822
  is_prorated: {
@@ -1747,6 +1843,7 @@ export const tool: Tool = {
1747
1843
  },
1748
1844
  custom_fields: {
1749
1845
  type: 'object',
1846
+ additionalProperties: true,
1750
1847
  },
1751
1848
  description: {
1752
1849
  type: 'string',
@@ -1766,6 +1863,11 @@ export const tool: Tool = {
1766
1863
  'Inclusive start time for the subscription. If not provided, defaults to contract start date',
1767
1864
  format: 'date-time',
1768
1865
  },
1866
+ temporary_id: {
1867
+ type: 'string',
1868
+ description:
1869
+ 'A temporary ID used to reference the subscription in recurring commit/credit subscription configs created within the same payload.',
1870
+ },
1769
1871
  },
1770
1872
  required: ['collection_schedule', 'initial_quantity', 'proration', 'subscription_rate'],
1771
1873
  },
@@ -16,8 +16,7 @@ export const metadata: Metadata = {
16
16
 
17
17
  export const tool: Tool = {
18
18
  name: 'list_balances_v1_contracts',
19
- description:
20
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList balances (commits and credits).\n",
19
+ description: 'List balances (commits and credits).\n',
21
20
  inputSchema: {
22
21
  type: 'object',
23
22
  properties: {
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
17
17
  export const tool: Tool = {
18
18
  name: 'list_v1_contracts',
19
19
  description:
20
- "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\nThis is the v1 endpoint to list all contracts for a customer. New clients should implement using the v2 endpoint.",
20
+ 'This is the v1 endpoint to list all contracts for a customer. New clients should implement using the v2 endpoint.',
21
21
  inputSchema: {
22
22
  type: 'object',
23
23
  properties: {
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'retrieve_contracts_v1_named_schedules',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a named schedule for the given rate card. This endpoint's availability is dependent on your client's configuration.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n value: {\n type: 'object'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'starting_at',\n 'value'\n ]\n }\n }\n },\n required: [ 'data'\n ]\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a named schedule for the given rate card. This endpoint's availability is dependent on your client's configuration.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n value: {\n type: 'object',\n additionalProperties: true\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'starting_at',\n 'value'\n ]\n }\n }\n },\n required: [ 'data'\n ]\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -49,9 +49,9 @@ export const tool: Tool = {
49
49
  };
50
50
 
51
51
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
52
- const body = args as any;
52
+ const { jq_filter, ...body } = args as any;
53
53
  return asTextContentResult(
54
- await maybeFilter(args, await client.v1.contracts.namedSchedules.retrieve(body)),
54
+ await maybeFilter(jq_filter, await client.v1.contracts.namedSchedules.retrieve(body)),
55
55
  );
56
56
  };
57
57
 
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
17
17
  export const tool: Tool = {
18
18
  name: 'update_contracts_v1_named_schedules',
19
19
  description:
20
- "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\nUpdate a named schedule for the given rate card. This endpoint's availability is dependent on your client's configuration.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {}\n}\n```",
20
+ "Update a named schedule for the given rate card. This endpoint's availability is dependent on your client's configuration.",
21
21
  inputSchema: {
22
22
  type: 'object',
23
23
  properties: {
@@ -37,17 +37,12 @@ export const tool: Tool = {
37
37
  type: 'object',
38
38
  description:
39
39
  'The value to set for the named schedule. The structure of this object is specific to the named schedule.',
40
+ additionalProperties: true,
40
41
  },
41
42
  ending_before: {
42
43
  type: 'string',
43
44
  format: 'date-time',
44
45
  },
45
- jq_filter: {
46
- type: 'string',
47
- title: 'jq Filter',
48
- description:
49
- '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/).',
50
- },
51
46
  },
52
47
  required: ['rate_card_id', 'schedule_name', 'starting_at', 'value'],
53
48
  },
@@ -39,8 +39,8 @@ export const tool: Tool = {
39
39
  };
40
40
 
41
41
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
42
- const body = args as any;
43
- return asTextContentResult(await maybeFilter(args, await client.v1.contracts.products.archive(body)));
42
+ const { jq_filter, ...body } = args as any;
43
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.contracts.products.archive(body)));
44
44
  };
45
45
 
46
46
  export default { metadata, tool, handler };
@@ -48,6 +48,10 @@ export const tool: Tool = {
48
48
  type: 'string',
49
49
  },
50
50
  },
51
+ custom_fields: {
52
+ type: 'object',
53
+ additionalProperties: true,
54
+ },
51
55
  exclude_free_usage: {
52
56
  type: 'boolean',
53
57
  description:
@@ -145,8 +149,8 @@ export const tool: Tool = {
145
149
  };
146
150
 
147
151
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
148
- const body = args as any;
149
- return asTextContentResult(await maybeFilter(args, await client.v1.contracts.products.create(body)));
152
+ const { jq_filter, ...body } = args as any;
153
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.contracts.products.create(body)));
150
154
  };
151
155
 
152
156
  export default { metadata, tool, handler };
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_contracts_v1_products',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList products\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n current: {\n $ref: '#/$defs/product_list_item_state'\n },\n initial: {\n $ref: '#/$defs/product_list_item_state'\n },\n type: {\n type: 'string',\n enum: [ 'USAGE',\n 'SUBSCRIPTION',\n 'COMPOSITE',\n 'FIXED',\n 'PRO_SERVICE'\n ]\n },\n updates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by'\n ]\n }\n },\n archived_at: {\n type: 'string',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object'\n }\n },\n required: [ 'id',\n 'current',\n 'initial',\n 'type',\n 'updates'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n product_list_item_state: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by',\n 'name'\n ]\n },\n quantity_conversion: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be converted using the provided conversion factor and operation. For example, if the operation is \"multiply\" and the conversion factor is 100, then the quantity will be multiplied by 100. This can be used in cases where data is sent in one unit and priced in another. For example, data could be sent in MB and priced in GB. In this case, the conversion factor would be 1024 and the operation would be \"divide\".',\n properties: {\n conversion_factor: {\n type: 'number',\n description: 'The factor to multiply or divide the quantity by.'\n },\n operation: {\n type: 'string',\n description: 'The operation to perform on the quantity',\n enum: [ 'MULTIPLY',\n 'DIVIDE'\n ]\n },\n name: {\n type: 'string',\n description: 'Optional name for this conversion.'\n }\n },\n required: [ 'conversion_factor',\n 'operation'\n ]\n },\n quantity_rounding: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be rounded using the provided rounding method and decimal places. For example, if the method is \"round up\" and the decimal places is 0, then the quantity will be rounded up to the nearest integer.',\n properties: {\n decimal_places: {\n type: 'number'\n },\n rounding_method: {\n type: 'string',\n enum: [ 'ROUND_UP',\n 'ROUND_DOWN',\n 'ROUND_HALF_UP'\n ]\n }\n },\n required: [ 'decimal_places',\n 'rounding_method'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList products\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n current: {\n $ref: '#/$defs/product_list_item_state'\n },\n initial: {\n $ref: '#/$defs/product_list_item_state'\n },\n type: {\n type: 'string',\n enum: [ 'USAGE',\n 'SUBSCRIPTION',\n 'COMPOSITE',\n 'FIXED',\n 'PRO_SERVICE'\n ]\n },\n updates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by'\n ]\n }\n },\n archived_at: {\n type: 'string',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'current',\n 'initial',\n 'type',\n 'updates'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n product_list_item_state: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by',\n 'name'\n ]\n },\n quantity_conversion: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be converted using the provided conversion factor and operation. For example, if the operation is \"multiply\" and the conversion factor is 100, then the quantity will be multiplied by 100. This can be used in cases where data is sent in one unit and priced in another. For example, data could be sent in MB and priced in GB. In this case, the conversion factor would be 1024 and the operation would be \"divide\".',\n properties: {\n conversion_factor: {\n type: 'number',\n description: 'The factor to multiply or divide the quantity by.'\n },\n operation: {\n type: 'string',\n description: 'The operation to perform on the quantity',\n enum: [ 'MULTIPLY',\n 'DIVIDE'\n ]\n },\n name: {\n type: 'string',\n description: 'Optional name for this conversion.'\n }\n },\n required: [ 'conversion_factor',\n 'operation'\n ]\n },\n quantity_rounding: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be rounded using the provided rounding method and decimal places. For example, if the method is \"round up\" and the decimal places is 0, then the quantity will be rounded up to the nearest integer.',\n properties: {\n decimal_places: {\n type: 'number'\n },\n rounding_method: {\n type: 'string',\n enum: [ 'ROUND_UP',\n 'ROUND_DOWN',\n 'ROUND_HALF_UP'\n ]\n }\n },\n required: [ 'decimal_places',\n 'rounding_method'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -48,9 +48,9 @@ export const tool: Tool = {
48
48
  };
49
49
 
50
50
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
51
- const body = args as any;
51
+ const { jq_filter, ...body } = args as any;
52
52
  const response = await client.v1.contracts.products.list(body).asResponse();
53
- return asTextContentResult(await maybeFilter(args, await response.json()));
53
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
54
54
  };
55
55
 
56
56
  export default { metadata, tool, handler };
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'retrieve_contracts_v1_products',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a specific product\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n current: {\n $ref: '#/$defs/product_list_item_state'\n },\n initial: {\n $ref: '#/$defs/product_list_item_state'\n },\n type: {\n type: 'string',\n enum: [ 'USAGE',\n 'SUBSCRIPTION',\n 'COMPOSITE',\n 'FIXED',\n 'PRO_SERVICE'\n ]\n },\n updates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by'\n ]\n }\n },\n archived_at: {\n type: 'string',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object'\n }\n },\n required: [ 'id',\n 'current',\n 'initial',\n 'type',\n 'updates'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n product_list_item_state: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by',\n 'name'\n ]\n },\n quantity_conversion: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be converted using the provided conversion factor and operation. For example, if the operation is \"multiply\" and the conversion factor is 100, then the quantity will be multiplied by 100. This can be used in cases where data is sent in one unit and priced in another. For example, data could be sent in MB and priced in GB. In this case, the conversion factor would be 1024 and the operation would be \"divide\".',\n properties: {\n conversion_factor: {\n type: 'number',\n description: 'The factor to multiply or divide the quantity by.'\n },\n operation: {\n type: 'string',\n description: 'The operation to perform on the quantity',\n enum: [ 'MULTIPLY',\n 'DIVIDE'\n ]\n },\n name: {\n type: 'string',\n description: 'Optional name for this conversion.'\n }\n },\n required: [ 'conversion_factor',\n 'operation'\n ]\n },\n quantity_rounding: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be rounded using the provided rounding method and decimal places. For example, if the method is \"round up\" and the decimal places is 0, then the quantity will be rounded up to the nearest integer.',\n properties: {\n decimal_places: {\n type: 'number'\n },\n rounding_method: {\n type: 'string',\n enum: [ 'ROUND_UP',\n 'ROUND_DOWN',\n 'ROUND_HALF_UP'\n ]\n }\n },\n required: [ 'decimal_places',\n 'rounding_method'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a specific product\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n current: {\n $ref: '#/$defs/product_list_item_state'\n },\n initial: {\n $ref: '#/$defs/product_list_item_state'\n },\n type: {\n type: 'string',\n enum: [ 'USAGE',\n 'SUBSCRIPTION',\n 'COMPOSITE',\n 'FIXED',\n 'PRO_SERVICE'\n ]\n },\n updates: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by'\n ]\n }\n },\n archived_at: {\n type: 'string',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'current',\n 'initial',\n 'type',\n 'updates'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n product_list_item_state: {\n type: 'object',\n properties: {\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n billable_metric_id: {\n type: 'string'\n },\n composite_product_ids: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n composite_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n exclude_free_usage: {\n type: 'boolean'\n },\n is_refundable: {\n type: 'boolean',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_internal_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n netsuite_overage_item_id: {\n type: 'string',\n description: 'This field\\'s availability is dependent on your client\\'s configuration.'\n },\n presentation_group_key: {\n type: 'array',\n description: 'For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n pricing_group_key: {\n type: 'array',\n description: 'For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.',\n items: {\n type: 'string'\n }\n },\n quantity_conversion: {\n $ref: '#/$defs/quantity_conversion'\n },\n quantity_rounding: {\n $ref: '#/$defs/quantity_rounding'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'created_at',\n 'created_by',\n 'name'\n ]\n },\n quantity_conversion: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be converted using the provided conversion factor and operation. For example, if the operation is \"multiply\" and the conversion factor is 100, then the quantity will be multiplied by 100. This can be used in cases where data is sent in one unit and priced in another. For example, data could be sent in MB and priced in GB. In this case, the conversion factor would be 1024 and the operation would be \"divide\".',\n properties: {\n conversion_factor: {\n type: 'number',\n description: 'The factor to multiply or divide the quantity by.'\n },\n operation: {\n type: 'string',\n description: 'The operation to perform on the quantity',\n enum: [ 'MULTIPLY',\n 'DIVIDE'\n ]\n },\n name: {\n type: 'string',\n description: 'Optional name for this conversion.'\n }\n },\n required: [ 'conversion_factor',\n 'operation'\n ]\n },\n quantity_rounding: {\n type: 'object',\n description: 'Optional. Only valid for USAGE products. If provided, the quantity will be rounded using the provided rounding method and decimal places. For example, if the method is \"round up\" and the decimal places is 0, then the quantity will be rounded up to the nearest integer.',\n properties: {\n decimal_places: {\n type: 'number'\n },\n rounding_method: {\n type: 'string',\n enum: [ 'ROUND_UP',\n 'ROUND_DOWN',\n 'ROUND_HALF_UP'\n ]\n }\n },\n required: [ 'decimal_places',\n 'rounding_method'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -38,8 +38,8 @@ export const tool: Tool = {
38
38
  };
39
39
 
40
40
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
41
- const body = args as any;
42
- return asTextContentResult(await maybeFilter(args, await client.v1.contracts.products.retrieve(body)));
41
+ const { jq_filter, ...body } = args as any;
42
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.contracts.products.retrieve(body)));
43
43
  };
44
44
 
45
45
  export default { metadata, tool, handler };
@@ -157,8 +157,8 @@ export const tool: Tool = {
157
157
  };
158
158
 
159
159
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
160
- const body = args as any;
161
- return asTextContentResult(await maybeFilter(args, await client.v1.contracts.products.update(body)));
160
+ const { jq_filter, ...body } = args as any;
161
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.contracts.products.update(body)));
162
162
  };
163
163
 
164
164
  export default { metadata, tool, handler };
@@ -38,8 +38,8 @@ export const tool: Tool = {
38
38
  };
39
39
 
40
40
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
41
- const body = args as any;
42
- return asTextContentResult(await maybeFilter(args, await client.v1.contracts.rateCards.archive(body)));
41
+ const { jq_filter, ...body } = args as any;
42
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.contracts.rateCards.archive(body)));
43
43
  };
44
44
 
45
45
  export default { metadata, tool, handler };
@@ -66,6 +66,7 @@ export const tool: Tool = {
66
66
  },
67
67
  custom_fields: {
68
68
  type: 'object',
69
+ additionalProperties: true,
69
70
  },
70
71
  description: {
71
72
  type: 'string',
@@ -88,8 +89,8 @@ export const tool: Tool = {
88
89
  };
89
90
 
90
91
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
91
- const body = args as any;
92
- return asTextContentResult(await maybeFilter(args, await client.v1.contracts.rateCards.create(body)));
92
+ const { jq_filter, ...body } = args as any;
93
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.contracts.rateCards.create(body)));
93
94
  };
94
95
 
95
96
  export default { metadata, tool, handler };
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_contracts_v1_rate_cards',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList rate cards NOTE: Use `/contract-pricing/rate-cards/getRates` to retrieve rate card rates.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aliases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'name'\n ]\n }\n },\n credit_type_conversions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n custom_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_per_custom_credit: {\n type: 'string'\n }\n },\n required: [ 'custom_credit_type',\n 'fiat_per_custom_credit'\n ]\n }\n },\n custom_fields: {\n type: 'object'\n },\n description: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'id',\n 'created_at',\n 'created_by',\n 'name'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList rate cards NOTE: Use `/contract-pricing/rate-cards/getRates` to retrieve rate card rates.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aliases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'name'\n ]\n }\n },\n credit_type_conversions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n custom_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_per_custom_credit: {\n type: 'string'\n }\n },\n required: [ 'custom_credit_type',\n 'fiat_per_custom_credit'\n ]\n }\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n description: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'id',\n 'created_at',\n 'created_by',\n 'name'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -32,6 +32,7 @@ export const tool: Tool = {
32
32
  },
33
33
  body: {
34
34
  type: 'object',
35
+ additionalProperties: true,
35
36
  },
36
37
  jq_filter: {
37
38
  type: 'string',
@@ -46,9 +47,9 @@ export const tool: Tool = {
46
47
  };
47
48
 
48
49
  export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
49
- const body = args as any;
50
+ const { jq_filter, ...body } = args as any;
50
51
  const response = await client.v1.contracts.rateCards.list(body).asResponse();
51
- return asTextContentResult(await maybeFilter(args, await response.json()));
52
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
52
53
  };
53
54
 
54
55
  export default { metadata, tool, handler };