@metronome/mcp 0.2.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 (348) hide show
  1. package/README.md +26 -0
  2. package/filtering.d.mts +1 -1
  3. package/filtering.d.mts.map +1 -1
  4. package/filtering.d.ts +1 -1
  5. package/filtering.d.ts.map +1 -1
  6. package/filtering.js +1 -2
  7. package/filtering.js.map +1 -1
  8. package/filtering.mjs +1 -2
  9. package/filtering.mjs.map +1 -1
  10. package/headers.d.mts +4 -0
  11. package/headers.d.mts.map +1 -0
  12. package/headers.d.ts +4 -0
  13. package/headers.d.ts.map +1 -0
  14. package/headers.js +22 -0
  15. package/headers.js.map +1 -0
  16. package/headers.mjs +18 -0
  17. package/headers.mjs.map +1 -0
  18. package/http.d.mts +6 -0
  19. package/http.d.mts.map +1 -0
  20. package/http.d.ts +6 -0
  21. package/http.d.ts.map +1 -0
  22. package/http.js +93 -0
  23. package/http.js.map +1 -0
  24. package/http.mjs +85 -0
  25. package/http.mjs.map +1 -0
  26. package/index.js +12 -7
  27. package/index.js.map +1 -1
  28. package/index.mjs +13 -8
  29. package/index.mjs.map +1 -1
  30. package/options.d.mts +3 -0
  31. package/options.d.mts.map +1 -1
  32. package/options.d.ts +3 -0
  33. package/options.d.ts.map +1 -1
  34. package/options.js +18 -0
  35. package/options.js.map +1 -1
  36. package/options.mjs +18 -0
  37. package/options.mjs.map +1 -1
  38. package/package.json +4 -3
  39. package/server.d.mts +1 -0
  40. package/server.d.mts.map +1 -1
  41. package/server.d.ts +1 -0
  42. package/server.d.ts.map +1 -1
  43. package/server.js +7 -5
  44. package/server.js.map +1 -1
  45. package/server.mjs +5 -4
  46. package/server.mjs.map +1 -1
  47. package/src/filtering.ts +1 -2
  48. package/src/headers.ts +24 -0
  49. package/src/http.ts +99 -0
  50. package/src/index.ts +15 -11
  51. package/src/options.ts +22 -0
  52. package/src/server.ts +11 -8
  53. package/src/stdio.ts +14 -0
  54. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +1 -0
  55. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +1 -1
  56. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +1 -1
  57. package/src/tools/v1/contracts/amend-v1-contracts.ts +37 -0
  58. package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +3 -0
  59. package/src/tools/v1/contracts/create-v1-contracts.ts +48 -2
  60. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +1 -1
  61. package/src/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.ts +1 -0
  62. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +4 -0
  63. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +1 -1
  64. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +1 -1
  65. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +1 -0
  66. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +2 -1
  67. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +1 -1
  68. package/src/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.ts +1 -0
  69. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +2 -0
  70. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +3 -1
  71. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +3 -1
  72. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +1 -1
  73. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +3 -1
  74. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +3 -1
  75. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +1 -0
  76. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +1 -1
  77. package/src/tools/v1/custom-fields/set-values-v1-custom-fields.ts +1 -0
  78. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +8 -0
  79. package/src/tools/v1/customers/create-v1-customers.ts +3 -1
  80. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +3 -0
  81. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +1 -1
  82. package/src/tools/v1/customers/list-costs-v1-customers.ts +1 -1
  83. package/src/tools/v1/customers/list-v1-customers.ts +1 -1
  84. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +1 -1
  85. package/src/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.ts +1 -0
  86. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +1 -1
  87. package/src/tools/v1/customers/preview-events-v1-customers.ts +1 -0
  88. package/src/tools/v1/customers/retrieve-v1-customers.ts +1 -1
  89. package/src/tools/v1/customers/set-name-v1-customers.ts +1 -1
  90. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +1 -0
  91. package/src/tools/v1/plans/get-details-v1-plans.ts +1 -1
  92. package/src/tools/v1/plans/list-charges-v1-plans.ts +1 -1
  93. package/src/tools/v1/plans/list-customers-v1-plans.ts +1 -1
  94. package/src/tools/v1/plans/list-v1-plans.ts +1 -1
  95. package/src/tools/v1/usage/ingest-v1-usage.ts +1 -0
  96. package/src/tools/v1/usage/list-v1-usage.ts +1 -1
  97. package/src/tools/v1/usage/search-v1-usage.ts +1 -1
  98. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +6 -0
  99. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +6 -0
  100. package/src/tools/v2/contracts/edit-v2-contracts.ts +59 -4
  101. package/stdio.d.mts +4 -0
  102. package/stdio.d.mts.map +1 -0
  103. package/stdio.d.ts +4 -0
  104. package/stdio.d.ts.map +1 -0
  105. package/stdio.js +14 -0
  106. package/stdio.js.map +1 -0
  107. package/stdio.mjs +10 -0
  108. package/stdio.mjs.map +1 -0
  109. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +1 -1
  110. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +1 -1
  111. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +1 -0
  112. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  113. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +1 -0
  114. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  115. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +1 -1
  116. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  117. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +1 -1
  118. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  119. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +1 -1
  120. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  121. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +1 -1
  122. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  123. package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
  124. package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
  125. package/tools/v1/contracts/amend-v1-contracts.js +33 -0
  126. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  127. package/tools/v1/contracts/amend-v1-contracts.mjs +33 -0
  128. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  129. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
  130. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
  131. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +3 -0
  132. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
  133. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +3 -0
  134. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
  135. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  136. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  137. package/tools/v1/contracts/create-v1-contracts.js +44 -2
  138. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  139. package/tools/v1/contracts/create-v1-contracts.mjs +44 -2
  140. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  141. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +1 -1
  142. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  143. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +1 -1
  144. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  145. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +1 -1
  146. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +1 -1
  147. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js +1 -0
  148. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js.map +1 -1
  149. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs +1 -0
  150. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs.map +1 -1
  151. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
  152. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
  153. package/tools/v1/contracts/products/create-contracts-v1-products.js +4 -0
  154. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  155. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +4 -0
  156. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  157. package/tools/v1/contracts/products/list-contracts-v1-products.js +1 -1
  158. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  159. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +1 -1
  160. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  161. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +1 -1
  162. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  163. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +1 -1
  164. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  165. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
  166. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
  167. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +1 -0
  168. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  169. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +1 -0
  170. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  171. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +1 -1
  172. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +1 -1
  173. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +2 -1
  174. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  175. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +2 -1
  176. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  177. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +1 -1
  178. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  179. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +1 -1
  180. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  181. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  182. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  183. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js +1 -0
  184. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  185. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs +1 -0
  186. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  187. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  188. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  189. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +2 -0
  190. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  191. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +2 -0
  192. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  193. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  194. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  195. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +3 -1
  196. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  197. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +3 -1
  198. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  199. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  200. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  201. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +3 -1
  202. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  203. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +3 -1
  204. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  205. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +1 -1
  206. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  207. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +1 -1
  208. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  209. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +1 -1
  210. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +1 -1
  211. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +3 -1
  212. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  213. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +3 -1
  214. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  215. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +1 -1
  216. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +1 -1
  217. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +3 -1
  218. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  219. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +3 -1
  220. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  221. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +1 -1
  222. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +1 -1
  223. package/tools/v1/credit-grants/create-v1-credit-grants.js +1 -0
  224. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  225. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +1 -0
  226. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  227. package/tools/v1/credit-grants/list-v1-credit-grants.js +1 -1
  228. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  229. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +1 -1
  230. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  231. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
  232. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
  233. package/tools/v1/custom-fields/set-values-v1-custom-fields.js +1 -0
  234. package/tools/v1/custom-fields/set-values-v1-custom-fields.js.map +1 -1
  235. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs +1 -0
  236. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs.map +1 -1
  237. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
  238. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
  239. package/tools/v1/customers/commits/create-customers-v1-commits.js +7 -0
  240. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  241. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +7 -0
  242. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  243. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  244. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  245. package/tools/v1/customers/create-v1-customers.js +3 -1
  246. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  247. package/tools/v1/customers/create-v1-customers.mjs +3 -1
  248. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  249. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
  250. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
  251. package/tools/v1/customers/credits/create-customers-v1-credits.js +3 -0
  252. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  253. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +3 -0
  254. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  255. package/tools/v1/customers/list-billable-metrics-v1-customers.js +1 -1
  256. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  257. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +1 -1
  258. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  259. package/tools/v1/customers/list-costs-v1-customers.js +1 -1
  260. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  261. package/tools/v1/customers/list-costs-v1-customers.mjs +1 -1
  262. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  263. package/tools/v1/customers/list-v1-customers.js +1 -1
  264. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  265. package/tools/v1/customers/list-v1-customers.mjs +1 -1
  266. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  267. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +1 -1
  268. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  269. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +1 -1
  270. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  271. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +1 -1
  272. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +1 -1
  273. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js +1 -0
  274. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js.map +1 -1
  275. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs +1 -0
  276. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs.map +1 -1
  277. package/tools/v1/customers/plans/list-customers-v1-plans.js +1 -1
  278. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  279. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +1 -1
  280. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  281. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  282. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  283. package/tools/v1/customers/preview-events-v1-customers.js +1 -0
  284. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  285. package/tools/v1/customers/preview-events-v1-customers.mjs +1 -0
  286. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  287. package/tools/v1/customers/retrieve-v1-customers.js +1 -1
  288. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  289. package/tools/v1/customers/retrieve-v1-customers.mjs +1 -1
  290. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  291. package/tools/v1/customers/set-name-v1-customers.js +1 -1
  292. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  293. package/tools/v1/customers/set-name-v1-customers.mjs +1 -1
  294. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  295. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +1 -1
  296. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +1 -1
  297. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +1 -0
  298. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  299. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +1 -0
  300. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  301. package/tools/v1/plans/get-details-v1-plans.js +1 -1
  302. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  303. package/tools/v1/plans/get-details-v1-plans.mjs +1 -1
  304. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  305. package/tools/v1/plans/list-charges-v1-plans.js +1 -1
  306. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  307. package/tools/v1/plans/list-charges-v1-plans.mjs +1 -1
  308. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  309. package/tools/v1/plans/list-customers-v1-plans.js +1 -1
  310. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  311. package/tools/v1/plans/list-customers-v1-plans.mjs +1 -1
  312. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  313. package/tools/v1/plans/list-v1-plans.js +1 -1
  314. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  315. package/tools/v1/plans/list-v1-plans.mjs +1 -1
  316. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  317. package/tools/v1/usage/ingest-v1-usage.d.mts.map +1 -1
  318. package/tools/v1/usage/ingest-v1-usage.d.ts.map +1 -1
  319. package/tools/v1/usage/ingest-v1-usage.js +1 -0
  320. package/tools/v1/usage/ingest-v1-usage.js.map +1 -1
  321. package/tools/v1/usage/ingest-v1-usage.mjs +1 -0
  322. package/tools/v1/usage/ingest-v1-usage.mjs.map +1 -1
  323. package/tools/v1/usage/list-v1-usage.js +1 -1
  324. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  325. package/tools/v1/usage/list-v1-usage.mjs +1 -1
  326. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  327. package/tools/v1/usage/search-v1-usage.js +1 -1
  328. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  329. package/tools/v1/usage/search-v1-usage.mjs +1 -1
  330. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  331. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  332. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  333. package/tools/v2/contracts/edit-commit-v2-contracts.js +6 -0
  334. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  335. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +6 -0
  336. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  337. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  338. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  339. package/tools/v2/contracts/edit-credit-v2-contracts.js +6 -0
  340. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  341. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +6 -0
  342. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  343. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  344. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  345. package/tools/v2/contracts/edit-v2-contracts.js +55 -4
  346. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  347. package/tools/v2/contracts/edit-v2-contracts.mjs +55 -4
  348. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
@@ -41,6 +41,7 @@ export const tool: Tool = {
41
41
  },
42
42
  properties: {
43
43
  type: 'object',
44
+ additionalProperties: true,
44
45
  },
45
46
  },
46
47
  required: ['customer_id', 'event_type', 'timestamp', 'transaction_id'],
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'list_v1_usage',
20
20
  description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch aggregated usage data for multiple customers and billable-metrics, broken into intervals of the specified length.\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 billable_metric_id: {\n type: 'string'\n },\n billable_metric_name: {\n type: 'string'\n },\n customer_id: {\n type: 'string'\n },\n end_timestamp: {\n type: 'string',\n format: 'date-time'\n },\n start_timestamp: {\n type: 'string',\n format: 'date-time'\n },\n value: {\n type: 'number'\n },\n groups: {\n type: 'object',\n description: 'Values will be either a number or null. Null indicates that there were no matches for the group_by value.'\n }\n },\n required: [ 'billable_metric_id',\n 'billable_metric_name',\n 'customer_id',\n 'end_timestamp',\n 'start_timestamp',\n 'value'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ]\n}\n```",
21
+ "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nFetch aggregated usage data for multiple customers and billable-metrics, broken into intervals of the specified length.\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 billable_metric_id: {\n type: 'string'\n },\n billable_metric_name: {\n type: 'string'\n },\n customer_id: {\n type: 'string'\n },\n end_timestamp: {\n type: 'string',\n format: 'date-time'\n },\n start_timestamp: {\n type: 'string',\n format: 'date-time'\n },\n value: {\n type: 'number'\n },\n groups: {\n type: 'object',\n description: 'Values will be either a number or null. Null indicates that there were no matches for the group_by value.',\n additionalProperties: true\n }\n },\n required: [ 'billable_metric_id',\n 'billable_metric_name',\n 'customer_id',\n 'end_timestamp',\n 'start_timestamp',\n 'value'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ]\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
18
18
  export const tool: Tool = {
19
19
  name: 'search_v1_usage',
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\nFor a set of events, look up matched billable metrics and customers by transaction id. This endpoint looks at transactions that occurred in the last 34 days, and is intended for sampling-based testing workflows. It is heavily rate limited.\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n customer_id: {\n type: 'string',\n description: 'The ID of the customer in the ingest event body'\n },\n event_type: {\n type: 'string'\n },\n timestamp: {\n type: 'string',\n format: 'date-time'\n },\n transaction_id: {\n type: 'string'\n },\n is_duplicate: {\n type: 'boolean'\n },\n matched_billable_metrics: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aggregate: {\n type: 'string',\n description: '(DEPRECATED) use aggregation_type instead'\n },\n aggregate_keys: {\n type: 'array',\n description: '(DEPRECATED) use aggregation_key instead',\n items: {\n type: 'string'\n }\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object'\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n filter: {\n type: 'object',\n description: '(DEPRECATED) use property_filters & event_type_filter instead'\n },\n group_by: {\n type: 'array',\n description: '(DEPRECATED) use group_keys instead',\n items: {\n type: 'string',\n description: 'A list of keys that can be used to additionally segment the values of the billable metric when making usage queries'\n }\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n matched_customer: {\n type: 'object',\n description: 'The customer the event was matched to if a match was found',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n }\n },\n processed_at: {\n type: 'string',\n format: 'date-time'\n },\n properties: {\n type: 'object'\n }\n },\n required: [ 'id',\n 'customer_id',\n 'event_type',\n 'timestamp',\n 'transaction_id'\n ]\n },\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ '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\nFor a set of events, look up matched billable metrics and customers by transaction id. This endpoint looks at transactions that occurred in the last 34 days, and is intended for sampling-based testing workflows. It is heavily rate limited.\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n customer_id: {\n type: 'string',\n description: 'The ID of the customer in the ingest event body'\n },\n event_type: {\n type: 'string'\n },\n timestamp: {\n type: 'string',\n format: 'date-time'\n },\n transaction_id: {\n type: 'string'\n },\n is_duplicate: {\n type: 'boolean'\n },\n matched_billable_metrics: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aggregate: {\n type: 'string',\n description: '(DEPRECATED) use aggregation_type instead'\n },\n aggregate_keys: {\n type: 'array',\n description: '(DEPRECATED) use aggregation_key instead',\n items: {\n type: 'string'\n }\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n filter: {\n type: 'object',\n description: '(DEPRECATED) use property_filters & event_type_filter instead',\n additionalProperties: true\n },\n group_by: {\n type: 'array',\n description: '(DEPRECATED) use group_keys instead',\n items: {\n type: 'string',\n description: 'A list of keys that can be used to additionally segment the values of the billable metric when making usage queries'\n }\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n matched_customer: {\n type: 'object',\n description: 'The customer the event was matched to if a match was found',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n }\n },\n processed_at: {\n type: 'string',\n format: 'date-time'\n },\n properties: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'id',\n 'customer_id',\n 'event_type',\n 'timestamp',\n 'transaction_id'\n ]\n },\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
22
22
  inputSchema: {
23
23
  type: 'object',
24
24
  properties: {
@@ -174,6 +174,10 @@ export const tool: Tool = {
174
174
  },
175
175
  },
176
176
  },
177
+ priority: {
178
+ type: 'number',
179
+ description: 'If multiple commits are applicable, the one with the lower priority will apply first.',
180
+ },
177
181
  product_id: {
178
182
  type: 'string',
179
183
  },
@@ -186,9 +190,11 @@ export const tool: Tool = {
186
190
  properties: {
187
191
  presentation_group_values: {
188
192
  type: 'object',
193
+ additionalProperties: true,
189
194
  },
190
195
  pricing_group_values: {
191
196
  type: 'object',
197
+ additionalProperties: true,
192
198
  },
193
199
  product_id: {
194
200
  type: 'string',
@@ -106,6 +106,10 @@ export const tool: Tool = {
106
106
  type: 'string',
107
107
  },
108
108
  },
109
+ priority: {
110
+ type: 'number',
111
+ description: 'If multiple commits are applicable, the one with the lower priority will apply first.',
112
+ },
109
113
  product_id: {
110
114
  type: 'string',
111
115
  },
@@ -118,9 +122,11 @@ export const tool: Tool = {
118
122
  properties: {
119
123
  presentation_group_values: {
120
124
  type: 'object',
125
+ additionalProperties: true,
121
126
  },
122
127
  pricing_group_values: {
123
128
  type: 'object',
129
+ additionalProperties: true,
124
130
  },
125
131
  product_id: {
126
132
  type: 'string',
@@ -95,6 +95,7 @@ export const tool: Tool = {
95
95
  },
96
96
  custom_fields: {
97
97
  type: 'object',
98
+ additionalProperties: true,
98
99
  },
99
100
  description: {
100
101
  type: 'string',
@@ -156,6 +157,11 @@ export const tool: Tool = {
156
157
  type: 'string',
157
158
  description: 'Defaults to USD (cents) if not passed.',
158
159
  },
160
+ do_not_invoice: {
161
+ type: 'boolean',
162
+ description:
163
+ 'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
164
+ },
159
165
  recurring_schedule: {
160
166
  type: 'object',
161
167
  description:
@@ -254,7 +260,7 @@ export const tool: Tool = {
254
260
  tax_amount: {
255
261
  type: 'number',
256
262
  description:
257
- "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
263
+ "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
258
264
  },
259
265
  tax_name: {
260
266
  type: 'string',
@@ -277,6 +283,12 @@ export const tool: Tool = {
277
283
  type: 'object',
278
284
  description:
279
285
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
286
+ additionalProperties: true,
287
+ },
288
+ on_session_payment: {
289
+ type: 'boolean',
290
+ description:
291
+ '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.',
280
292
  },
281
293
  },
282
294
  required: ['payment_type'],
@@ -284,7 +296,7 @@ export const tool: Tool = {
284
296
  tax_type: {
285
297
  type: 'string',
286
298
  description:
287
- 'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
299
+ 'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
288
300
  enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
289
301
  },
290
302
  },
@@ -312,9 +324,11 @@ export const tool: Tool = {
312
324
  properties: {
313
325
  presentation_group_values: {
314
326
  type: 'object',
327
+ additionalProperties: true,
315
328
  },
316
329
  pricing_group_values: {
317
330
  type: 'object',
331
+ additionalProperties: true,
318
332
  },
319
333
  product_id: {
320
334
  type: 'string',
@@ -399,6 +413,7 @@ export const tool: Tool = {
399
413
  },
400
414
  custom_fields: {
401
415
  type: 'object',
416
+ additionalProperties: true,
402
417
  },
403
418
  description: {
404
419
  type: 'string',
@@ -477,9 +492,11 @@ export const tool: Tool = {
477
492
  properties: {
478
493
  presentation_group_values: {
479
494
  type: 'object',
495
+ additionalProperties: true,
480
496
  },
481
497
  pricing_group_values: {
482
498
  type: 'object',
499
+ additionalProperties: true,
483
500
  },
484
501
  product_id: {
485
502
  type: 'string',
@@ -517,6 +534,11 @@ export const tool: Tool = {
517
534
  type: 'string',
518
535
  description: 'Defaults to USD (cents) if not passed.',
519
536
  },
537
+ do_not_invoice: {
538
+ type: 'boolean',
539
+ description:
540
+ 'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
541
+ },
520
542
  recurring_schedule: {
521
543
  type: 'object',
522
544
  description:
@@ -592,6 +614,7 @@ export const tool: Tool = {
592
614
  },
593
615
  custom_fields: {
594
616
  type: 'object',
617
+ additionalProperties: true,
595
618
  },
596
619
  name: {
597
620
  type: 'string',
@@ -662,11 +685,13 @@ export const tool: Tool = {
662
685
  type: 'object',
663
686
  description:
664
687
  'A map of group names to values. The override will only apply to line items with the specified presentation group values. Can only be used for multiplier overrides.',
688
+ additionalProperties: true,
665
689
  },
666
690
  pricing_group_values: {
667
691
  type: 'object',
668
692
  description:
669
693
  'A map of pricing group names to values. The override will only apply to products with the specified pricing group values.',
694
+ additionalProperties: true,
670
695
  },
671
696
  product_id: {
672
697
  type: 'string',
@@ -715,6 +740,7 @@ export const tool: Tool = {
715
740
  type: 'object',
716
741
  description:
717
742
  'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',
743
+ additionalProperties: true,
718
744
  },
719
745
  is_prorated: {
720
746
  type: 'boolean',
@@ -824,9 +850,11 @@ export const tool: Tool = {
824
850
  properties: {
825
851
  presentation_group_values: {
826
852
  type: 'object',
853
+ additionalProperties: true,
827
854
  },
828
855
  pricing_group_values: {
829
856
  type: 'object',
857
+ additionalProperties: true,
830
858
  },
831
859
  product_id: {
832
860
  type: 'string',
@@ -891,6 +919,7 @@ export const tool: Tool = {
891
919
  type: 'object',
892
920
  description:
893
921
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
922
+ additionalProperties: true,
894
923
  },
895
924
  },
896
925
  required: ['payment_type'],
@@ -946,6 +975,7 @@ export const tool: Tool = {
946
975
  },
947
976
  custom_fields: {
948
977
  type: 'object',
978
+ additionalProperties: true,
949
979
  },
950
980
  description: {
951
981
  type: 'string',
@@ -976,7 +1006,7 @@ export const tool: Tool = {
976
1006
  quantity: {
977
1007
  type: 'number',
978
1008
  description:
979
- 'This field is currently required. Upcoming recurring commit/credit configuration options will allow it to be optional.',
1009
+ 'This field is required unless a subscription is attached via `subscription_config`.',
980
1010
  },
981
1011
  },
982
1012
  required: ['credit_type_id', 'unit_price'],
@@ -1133,9 +1163,11 @@ export const tool: Tool = {
1133
1163
  properties: {
1134
1164
  presentation_group_values: {
1135
1165
  type: 'object',
1166
+ additionalProperties: true,
1136
1167
  },
1137
1168
  pricing_group_values: {
1138
1169
  type: 'object',
1170
+ additionalProperties: true,
1139
1171
  },
1140
1172
  product_id: {
1141
1173
  type: 'string',
@@ -1206,7 +1238,7 @@ export const tool: Tool = {
1206
1238
  quantity: {
1207
1239
  type: 'number',
1208
1240
  description:
1209
- 'This field is currently required. Upcoming recurring commit/credit configuration options will allow it to be optional.',
1241
+ 'This field is required unless a subscription is attached via `subscription_config`.',
1210
1242
  },
1211
1243
  },
1212
1244
  required: ['credit_type_id', 'unit_price'],
@@ -1347,9 +1379,11 @@ export const tool: Tool = {
1347
1379
  properties: {
1348
1380
  presentation_group_values: {
1349
1381
  type: 'object',
1382
+ additionalProperties: true,
1350
1383
  },
1351
1384
  pricing_group_values: {
1352
1385
  type: 'object',
1386
+ additionalProperties: true,
1353
1387
  },
1354
1388
  product_id: {
1355
1389
  type: 'string',
@@ -1488,6 +1522,11 @@ export const tool: Tool = {
1488
1522
  type: 'string',
1489
1523
  description: 'Defaults to USD (cents) if not passed.',
1490
1524
  },
1525
+ do_not_invoice: {
1526
+ type: 'boolean',
1527
+ description:
1528
+ 'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
1529
+ },
1491
1530
  recurring_schedule: {
1492
1531
  type: 'object',
1493
1532
  description:
@@ -1561,6 +1600,10 @@ export const tool: Tool = {
1561
1600
  },
1562
1601
  },
1563
1602
  },
1603
+ custom_fields: {
1604
+ type: 'object',
1605
+ additionalProperties: true,
1606
+ },
1564
1607
  name: {
1565
1608
  type: 'string',
1566
1609
  description: 'displayed on invoices',
@@ -1639,6 +1682,7 @@ export const tool: Tool = {
1639
1682
  type: 'object',
1640
1683
  description:
1641
1684
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
1685
+ additionalProperties: true,
1642
1686
  },
1643
1687
  },
1644
1688
  required: ['payment_type'],
@@ -1707,6 +1751,7 @@ export const tool: Tool = {
1707
1751
  },
1708
1752
  custom_fields: {
1709
1753
  type: 'object',
1754
+ additionalProperties: true,
1710
1755
  },
1711
1756
  description: {
1712
1757
  type: 'string',
@@ -1990,6 +2035,9 @@ export const tool: Tool = {
1990
2035
  netsuite_sales_order_id: {
1991
2036
  type: 'string',
1992
2037
  },
2038
+ priority: {
2039
+ type: 'number',
2040
+ },
1993
2041
  product_id: {
1994
2042
  type: 'string',
1995
2043
  },
@@ -2144,6 +2192,9 @@ export const tool: Tool = {
2144
2192
  netsuite_sales_order_id: {
2145
2193
  type: 'string',
2146
2194
  },
2195
+ priority: {
2196
+ type: 'number',
2197
+ },
2147
2198
  product_id: {
2148
2199
  type: 'string',
2149
2200
  },
@@ -2195,9 +2246,11 @@ export const tool: Tool = {
2195
2246
  properties: {
2196
2247
  presentation_group_values: {
2197
2248
  type: 'object',
2249
+ additionalProperties: true,
2198
2250
  },
2199
2251
  pricing_group_values: {
2200
2252
  type: 'object',
2253
+ additionalProperties: true,
2201
2254
  },
2202
2255
  product_id: {
2203
2256
  type: 'string',
@@ -2266,6 +2319,7 @@ export const tool: Tool = {
2266
2319
  type: 'object',
2267
2320
  description:
2268
2321
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
2322
+ additionalProperties: true,
2269
2323
  },
2270
2324
  },
2271
2325
  required: ['payment_type'],
@@ -2503,6 +2557,7 @@ export const tool: Tool = {
2503
2557
  type: 'object',
2504
2558
  description:
2505
2559
  'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
2560
+ additionalProperties: true,
2506
2561
  },
2507
2562
  },
2508
2563
  required: ['payment_type'],
package/stdio.d.mts ADDED
@@ -0,0 +1,4 @@
1
+ import { Endpoint } from "./tools.mjs";
2
+ import { McpOptions } from "./options.mjs";
3
+ export declare const launchStdioServer: (options: McpOptions, endpoints: Endpoint[]) => Promise<void>;
4
+ //# sourceMappingURL=stdio.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.mts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AAErB,eAAO,MAAM,iBAAiB,GAAU,SAAS,UAAU,EAAE,WAAW,QAAQ,EAAE,kBAQjF,CAAC"}
package/stdio.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { Endpoint } from "./tools.js";
2
+ import { McpOptions } from "./options.js";
3
+ export declare const launchStdioServer: (options: McpOptions, endpoints: Endpoint[]) => Promise<void>;
4
+ //# sourceMappingURL=stdio.d.ts.map
package/stdio.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AAErB,eAAO,MAAM,iBAAiB,GAAU,SAAS,UAAU,EAAE,WAAW,QAAQ,EAAE,kBAQjF,CAAC"}
package/stdio.js ADDED
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.launchStdioServer = void 0;
4
+ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
5
+ const server_1 = require("./server.js");
6
+ const launchStdioServer = async (options, endpoints) => {
7
+ const server = (0, server_1.newMcpServer)();
8
+ (0, server_1.init)({ server, endpoints });
9
+ const transport = new stdio_js_1.StdioServerTransport();
10
+ await server.connect(transport);
11
+ console.error('MCP Server running on stdio');
12
+ };
13
+ exports.launchStdioServer = launchStdioServer;
14
+ //# sourceMappingURL=stdio.js.map
package/stdio.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.js","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AACjF,wCAA8C;AAIvC,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAmB,EAAE,SAAqB,EAAE,EAAE;IACpF,MAAM,MAAM,GAAG,IAAA,qBAAY,GAAE,CAAC;IAE9B,IAAA,aAAI,EAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAE5B,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC/C,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
package/stdio.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
2
+ import { init, newMcpServer } from "./server.mjs";
3
+ export const launchStdioServer = async (options, endpoints) => {
4
+ const server = newMcpServer();
5
+ init({ server, endpoints });
6
+ const transport = new StdioServerTransport();
7
+ await server.connect(transport);
8
+ console.error('MCP Server running on stdio');
9
+ };
10
+ //# sourceMappingURL=stdio.mjs.map
package/stdio.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OACzE,EAAE,IAAI,EAAE,YAAY,EAAE;AAI7B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAmB,EAAE,SAAqB,EAAE,EAAE;IACpF,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAE9B,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAE5B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC/C,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-billable-metrics.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqHlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
1
+ {"version":3,"file":"create-v1-billable-metrics.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsHlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-billable-metrics.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqHlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
1
+ {"version":3,"file":"create-v1-billable-metrics.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsHlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
@@ -34,6 +34,7 @@ exports.tool = {
34
34
  custom_fields: {
35
35
  type: 'object',
36
36
  description: 'Custom fields to attach to the billable metric.',
37
+ additionalProperties: true,
37
38
  },
38
39
  event_type_filter: {
39
40
  $ref: '#/$defs/event_type_filter',
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA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CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"create-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,6hBAA6hB;IAC/hB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;aACxD;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oGAAoG;aACvG;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iEAAiE;gBAC9E,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC;aAClD;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;gBAC9D,oBAAoB,EAAE,IAAI;aAC3B;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,2BAA2B;aAClC;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,wJAAwJ;gBAC1J,KAA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ACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -31,6 +31,7 @@ export const tool = {
31
31
  custom_fields: {
32
32
  type: 'object',
33
33
  description: 'Custom fields to attach to the billable metric.',
34
+ additionalProperties: true,
34
35
  },
35
36
  event_type_filter: {
36
37
  $ref: '#/$defs/event_type_filter',
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,6hBA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I,EAAE,QAAQ;yBACf;qBACF;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,oLAAoL;wBACtL,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iCAAiC;qBAC/C;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,yPAAyP;qBAC5P;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,2OAA2O;wBAC7O,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,kPAAkP;wBACpP,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"create-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/create-v1-billable-metrics.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,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AAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACzG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'list_v1_billable_metrics',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all billable metrics.\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 description: 'ID of the billable metric'\n },\n name: {\n type: 'string',\n description: 'The display name of the billable metric.'\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object'\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all billable metrics.\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 description: 'ID of the billable metric'\n },\n name: {\n type: 'string',\n description: 'The display name of the billable metric.'\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"list-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/list-v1-billable-metrics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,o0JAAo0J;IACt0J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qEAAqE;aACnF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACzE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/list-v1-billable-metrics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,62JAA62J;IAC/2J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qEAAqE;aACnF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACzE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_v1_billable_metrics',
14
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all billable metrics.\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 description: 'ID of the billable metric'\n },\n name: {\n type: 'string',\n description: 'The display name of the billable metric.'\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object'\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
14
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList all billable metrics.\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 description: 'ID of the billable metric'\n },\n name: {\n type: 'string',\n description: 'The display name of the billable metric.'\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"list-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/list-v1-billable-metrics.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,o0JAAo0J;IACt0J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qEAAqE;aACnF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACzE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/list-v1-billable-metrics.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,qBAAqB;IAC/B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,2BAA2B;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,62JAA62J;IAC/2J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,gBAAgB,EAAE;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qEAAqE;aACnF;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oEAAoE;aAClF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACzE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'retrieve_v1_billable_metrics',
17
- description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a billable metric.\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 description: 'ID of the billable metric'\n },\n name: {\n type: 'string',\n description: 'The display name of the billable metric.'\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object'\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
17
+ description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a billable metric.\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 description: 'ID of the billable metric'\n },\n name: {\n type: 'string',\n description: 'The display name of the billable metric.'\n },\n aggregation_key: {\n type: 'string',\n description: 'A key that specifies which property of the event is used to aggregate data. This key must be one of the property filter names and is not applicable when the aggregation type is \\'count\\'.'\n },\n aggregation_type: {\n type: 'string',\n description: 'Specifies the type of aggregation performed on matching events.',\n enum: [ 'COUNT',\n 'LATEST',\n 'MAX',\n 'SUM',\n 'UNIQUE'\n ]\n },\n archived_at: {\n type: 'string',\n description: 'RFC 3339 timestamp indicating when the billable metric was archived. If not provided, the billable metric is not archived.',\n format: 'date-time'\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n event_type_filter: {\n $ref: '#/$defs/event_type_filter'\n },\n group_keys: {\n type: 'array',\n description: 'Property names that are used to group usage costs on an invoice. Each entry represents a set of properties used to slice events into distinct buckets.',\n items: {\n type: 'array',\n items: {\n type: 'string'\n }\n }\n },\n property_filters: {\n type: 'array',\n description: 'A list of filters to match events to this billable metric. Each filter defines a rule on an event property. All rules must pass for the event to match the billable metric.',\n items: {\n $ref: '#/$defs/property_filter'\n }\n },\n sql: {\n type: 'string',\n description: 'The SQL query associated with the billable metric'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n event_type_filter: {\n type: 'object',\n description: 'An optional filtering rule to match the \\'event_type\\' property of an event.',\n properties: {\n in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n }\n },\n property_filter: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the event property.'\n },\n exists: {\n type: 'boolean',\n description: 'Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.'\n },\n in_values: {\n type: 'array',\n description: 'Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n },\n not_in_values: {\n type: 'array',\n description: 'Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.',\n items: {\n type: 'string'\n }\n }\n },\n required: [ 'name'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {