@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
@@ -89,18 +89,21 @@ exports.tool = {
89
89
  type: 'boolean',
90
90
  description: 'If true, the alert will evaluate immediately on customers that already meet the alert threshold. If false, it will only evaluate on future customers that trigger the alert threshold. Defaults to true.',
91
91
  },
92
- group_key_filter: {
93
- type: 'object',
94
- description: 'Scopes alert evaluation to a specific presentation group key on individual line items. Only present for spend alerts.',
95
- properties: {
96
- key: {
97
- type: 'string',
98
- },
99
- value: {
100
- type: 'string',
92
+ group_values: {
93
+ type: 'array',
94
+ description: 'Only present for `spend_threshold_reached` alerts. Scope alert to a specific group key on individual line items.',
95
+ items: {
96
+ type: 'object',
97
+ properties: {
98
+ key: {
99
+ type: 'string',
100
+ },
101
+ value: {
102
+ type: 'string',
103
+ },
101
104
  },
105
+ required: ['key', 'value'],
102
106
  },
103
- required: ['key', 'value'],
104
107
  },
105
108
  invoice_types_filter: {
106
109
  type: 'array',
@@ -128,8 +131,8 @@ exports.tool = {
128
131
  annotations: {},
129
132
  };
130
133
  const handler = async (client, args) => {
131
- const body = args;
132
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.v1.alerts.create(body)));
134
+ const { jq_filter, ...body } = args;
135
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.alerts.create(body)));
133
136
  };
134
137
  exports.handler = handler;
135
138
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-alerts.js","sourceRoot":"","sources":["../../../src/tools/v1/alerts/create-v1-alerts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,ihBAAihB;IACnhB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,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WAAW,CAAC;KAC9C;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,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -86,18 +86,21 @@ export const tool = {
86
86
  type: 'boolean',
87
87
  description: 'If true, the alert will evaluate immediately on customers that already meet the alert threshold. If false, it will only evaluate on future customers that trigger the alert threshold. Defaults to true.',
88
88
  },
89
- group_key_filter: {
90
- type: 'object',
91
- description: 'Scopes alert evaluation to a specific presentation group key on individual line items. Only present for spend alerts.',
92
- properties: {
93
- key: {
94
- type: 'string',
95
- },
96
- value: {
97
- type: 'string',
89
+ group_values: {
90
+ type: 'array',
91
+ description: 'Only present for `spend_threshold_reached` alerts. Scope alert to a specific group key on individual line items.',
92
+ items: {
93
+ type: 'object',
94
+ properties: {
95
+ key: {
96
+ type: 'string',
97
+ },
98
+ value: {
99
+ type: 'string',
100
+ },
98
101
  },
102
+ required: ['key', 'value'],
99
103
  },
100
- required: ['key', 'value'],
101
104
  },
102
105
  invoice_types_filter: {
103
106
  type: 'array',
@@ -125,8 +128,8 @@ export const tool = {
125
128
  annotations: {},
126
129
  };
127
130
  export const handler = async (client, args) => {
128
- const body = args;
129
- return asTextContentResult(await maybeFilter(args, await client.v1.alerts.create(body)));
131
+ const { jq_filter, ...body } = args;
132
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.alerts.create(body)));
130
133
  };
131
134
  export default { metadata, tool, handler };
132
135
  //# sourceMappingURL=create-v1-alerts.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-alerts.mjs","sourceRoot":"","sources":["../../../src/tools/v1/alerts/create-v1-alerts.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,WAAW;IACrB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACT,ihBAAihB;IACnhB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE;oBACJ,4BAA4B;oBAC5B,yBAAyB;oBACzB,+CAA+C;oBAC/C,oCAAoC;oBACpC,yCAAyC;oBACzC,yBAAyB;oBACzB,+CAA+C;oBAC/C,sCAAsC;oBACtC,yCAAyC;oBACzC,wDAAwD;oBACxD,+CAA+C;oBAC/C,kDAAkD;oBAClD,0DAA0D;oBAC1D,uBAAuB;iBACxB;aACF;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mBAAmB;aACjC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iKAAiK;aACpK;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,uGAAuG;aAC1G;YACD,yBAAyB,EAAE;gBACzB,IAAI,EAAE,OAA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;gBACZ,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,kHAAkH;gBACpH,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,GAAG,EAAE;4BACH,IAAI,EAAE,QAAQ;yBACf;wBACD,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;iBAC3B;aACF;YACD,oBAAoB,EAAE;gBACpB,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,uFAAuF;gBACpG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,+HAA+H;aAClI;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kMAAkM;aACrM;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC;KAC9C;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,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -62,9 +62,9 @@ exports.tool = {
62
62
  },
63
63
  };
64
64
  const handler = async (client, args) => {
65
- const body = args;
65
+ const { jq_filter, ...body } = args;
66
66
  const response = await client.v1.auditLogs.list(body).asResponse();
67
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await response.json()));
67
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
68
68
  };
69
69
  exports.handler = handler;
70
70
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-v1-audit-logs.js","sourceRoot":"","sources":["../../../src/tools/v1/audit-logs/list-v1-audit-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,ivFAAivF;IACnvF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kEAAkE;gBAC/E,MAAM,EAAE,WAAW;aACpB;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,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,+IAA+I;aAClJ;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,+IAA+I;aAClJ;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4EAA4E;gBACzF,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,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C;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -59,9 +59,9 @@ export const tool = {
59
59
  },
60
60
  };
61
61
  export const handler = async (client, args) => {
62
- const body = args;
62
+ const { jq_filter, ...body } = args;
63
63
  const response = await client.v1.auditLogs.list(body).asResponse();
64
- return asTextContentResult(await maybeFilter(args, await response.json()));
64
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
65
65
  };
66
66
  export default { metadata, tool, handler };
67
67
  //# sourceMappingURL=list-v1-audit-logs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-v1-audit-logs.mjs","sourceRoot":"","sources":["../../../src/tools/v1/audit-logs/list-v1-audit-logs.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,eAAe;IACzB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,ivFAAivF;IACnvF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kEAAkE;gBAC/E,MAAM,EAAE,WAAW;aACpB;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;YAC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AAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACnE,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"}
@@ -32,8 +32,8 @@ exports.tool = {
32
32
  annotations: {},
33
33
  };
34
34
  const handler = async (client, args) => {
35
- const body = args;
36
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.v1.billableMetrics.archive(body)));
35
+ const { jq_filter, ...body } = args;
36
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.billableMetrics.archive(body)));
37
37
  };
38
38
  exports.handler = handler;
39
39
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"archive-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/archive-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,8BAA8B;IACxC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,miBAAmiB;IACriB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"archive-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/archive-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,8BAA8B;IACxC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,miBAAmiB;IACriB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1G,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -29,8 +29,8 @@ export const tool = {
29
29
  annotations: {},
30
30
  };
31
31
  export const handler = async (client, args) => {
32
- const body = args;
33
- return asTextContentResult(await maybeFilter(args, await client.v1.billableMetrics.archive(body)));
32
+ const { jq_filter, ...body } = args;
33
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.billableMetrics.archive(body)));
34
34
  };
35
35
  export default { metadata, tool, handler };
36
36
  //# sourceMappingURL=archive-v1-billable-metrics.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/archive-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,8BAA8B;IACxC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,miBAAmiB;IACriB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"archive-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/archive-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,8BAA8B;IACxC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,6BAA6B;IACnC,WAAW,EACT,miBAAmiB;IACriB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,CAAC;KACjB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1G,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,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',
@@ -120,8 +121,8 @@ exports.tool = {
120
121
  annotations: {},
121
122
  };
122
123
  const handler = async (client, args) => {
123
- const body = args;
124
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.v1.billableMetrics.create(body)));
124
+ const { jq_filter, ...body } = args;
125
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.billableMetrics.create(body)));
125
126
  };
126
127
  exports.handler = handler;
127
128
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -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,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;AAE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AG,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',
@@ -117,8 +118,8 @@ export const tool = {
117
118
  annotations: {},
118
119
  };
119
120
  export const handler = async (client, args) => {
120
- const body = args;
121
- return asTextContentResult(await maybeFilter(args, await client.v1.billableMetrics.create(body)));
121
+ const { jq_filter, ...body } = args;
122
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.billableMetrics.create(body)));
122
123
  };
123
124
  export default { metadata, tool, handler };
124
125
  //# sourceMappingURL=create-v1-billable-metrics.mjs.map
@@ -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,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wBACb,WAAW,EACT,mLAAmL;wBACrL,KAAK,EAAE;4BACL,IAAI,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,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,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,sFAA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AE,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"}
@@ -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: {
@@ -43,9 +43,9 @@ exports.tool = {
43
43
  },
44
44
  };
45
45
  const handler = async (client, args) => {
46
- const body = args;
46
+ const { jq_filter, ...body } = args;
47
47
  const response = await client.v1.billableMetrics.list(body).asResponse();
48
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await response.json()));
48
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
49
49
  };
50
50
  exports.handler = handler;
51
51
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -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,IAAI,GAAG,IAAW,CAAC;IACzB,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,IAAI,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC7E,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: {
@@ -40,9 +40,9 @@ export const tool = {
40
40
  },
41
41
  };
42
42
  export const handler = async (client, args) => {
43
- const body = args;
43
+ const { jq_filter, ...body } = args;
44
44
  const response = await client.v1.billableMetrics.list(body).asResponse();
45
- return asTextContentResult(await maybeFilter(args, await response.json()));
45
+ return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
46
46
  };
47
47
  export default { metadata, tool, handler };
48
48
  //# sourceMappingURL=list-v1-billable-metrics.mjs.map
@@ -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,mB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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: {
@@ -34,8 +34,8 @@ exports.tool = {
34
34
  },
35
35
  };
36
36
  const handler = async (client, args) => {
37
- const body = args;
38
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(args, await client.v1.billableMetrics.retrieve(body)));
37
+ const { jq_filter, ...body } = args;
38
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.v1.billableMetrics.retrieve(body)));
39
39
  };
40
40
  exports.handler = handler;
41
41
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/retrieve-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,2CAA2C;IACrD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,mlJAAmlJ;IACrlJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;KACjC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,IAAI,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtG,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":"retrieve-v1-billable-metrics.js","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/retrieve-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,2CAA2C;IACrD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,0nJAA0nJ;IAC5nJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;KACjC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'retrieve_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\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```",
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\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```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -31,8 +31,8 @@ export const tool = {
31
31
  },
32
32
  };
33
33
  export const handler = async (client, args) => {
34
- const body = args;
35
- return asTextContentResult(await maybeFilter(args, await client.v1.billableMetrics.retrieve(body)));
34
+ const { jq_filter, ...body } = args;
35
+ return asTextContentResult(await maybeFilter(jq_filter, await client.v1.billableMetrics.retrieve(body)));
36
36
  };
37
37
  export default { metadata, tool, handler };
38
38
  //# sourceMappingURL=retrieve-v1-billable-metrics.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/retrieve-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,2CAA2C;IACrD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,mlJAAmlJ;IACrlJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;KACjC;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,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-v1-billable-metrics.mjs","sourceRoot":"","sources":["../../../src/tools/v1/billable-metrics/retrieve-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,2CAA2C;IACrD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,0nJAA0nJ;IAC5nJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,oBAAoB,CAAC;KACjC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"add-manual-balance-entry-v1-contracts.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
1
+ {"version":3,"file":"add-manual-balance-entry-v1-contracts.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"add-manual-balance-entry-v1-contracts.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
1
+ {"version":3,"file":"add-manual-balance-entry-v1-contracts.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,SAAS,MAAM,gBAAgB;AAEtC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAIzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM1F,wBAA2C"}
@@ -13,7 +13,7 @@ exports.metadata = {
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'add_manual_balance_entry_v1_contracts',
16
- 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\nAdd a manual balance entry\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {}\n}\n```",
16
+ description: 'Add a manual balance entry\n',
17
17
  inputSchema: {
18
18
  type: 'object',
19
19
  properties: {
@@ -46,11 +46,6 @@ exports.tool = {
46
46
  description: 'RFC 3339 timestamp indicating when the manual adjustment takes place. If not provided, it will default to the start of the segment.',
47
47
  format: 'date-time',
48
48
  },
49
- jq_filter: {
50
- type: 'string',
51
- title: 'jq Filter',
52
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
53
- },
54
49
  },
55
50
  required: ['id', 'amount', 'customer_id', 'reason', 'segment_id'],
56
51
  },
@@ -1 +1 @@
1
- {"version":3,"file":"add-manual-balance-entry-v1-contracts.js","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,2CAA2C;IACrD,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EACT,oRAAoR;IACtR,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,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AAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACpF,OAAO,IAAA,2BAAmB,EAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -10,7 +10,7 @@ export const metadata = {
10
10
  };
11
11
  export const tool = {
12
12
  name: 'add_manual_balance_entry_v1_contracts',
13
- 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\nAdd a manual balance entry\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {}\n}\n```",
13
+ description: 'Add a manual balance entry\n',
14
14
  inputSchema: {
15
15
  type: 'object',
16
16
  properties: {
@@ -43,11 +43,6 @@ export const tool = {
43
43
  description: 'RFC 3339 timestamp indicating when the manual adjustment takes place. If not provided, it will default to the start of the segment.',
44
44
  format: 'date-time',
45
45
  },
46
- jq_filter: {
47
- type: 'string',
48
- title: 'jq Filter',
49
- description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
50
- },
51
46
  },
52
47
  required: ['id', 'amount', 'customer_id', 'reason', 'segment_id'],
53
48
  },
@@ -1 +1 @@
1
- {"version":3,"file":"add-manual-balance-entry-v1-contracts.mjs","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,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S,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACpF,OAAO,mBAAmB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"add-manual-balance-entry-v1-contracts.mjs","sourceRoot":"","sources":["../../../src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,2CAA2C;IACrD,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;aAC/D;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kFAAkF;aAChG;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oDAAoD;aAClE;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yEAAyE;aACvF;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8BAA8B;aAC5C;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+EAA+E;aAC7F;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gB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