@metronome/mcp 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +26 -0
  2. package/filtering.d.mts +1 -1
  3. package/filtering.d.mts.map +1 -1
  4. package/filtering.d.ts +1 -1
  5. package/filtering.d.ts.map +1 -1
  6. package/filtering.js +1 -2
  7. package/filtering.js.map +1 -1
  8. package/filtering.mjs +1 -2
  9. package/filtering.mjs.map +1 -1
  10. package/headers.d.mts +4 -0
  11. package/headers.d.mts.map +1 -0
  12. package/headers.d.ts +4 -0
  13. package/headers.d.ts.map +1 -0
  14. package/headers.js +22 -0
  15. package/headers.js.map +1 -0
  16. package/headers.mjs +18 -0
  17. package/headers.mjs.map +1 -0
  18. package/http.d.mts +6 -0
  19. package/http.d.mts.map +1 -0
  20. package/http.d.ts +6 -0
  21. package/http.d.ts.map +1 -0
  22. package/http.js +93 -0
  23. package/http.js.map +1 -0
  24. package/http.mjs +85 -0
  25. package/http.mjs.map +1 -0
  26. package/index.js +12 -7
  27. package/index.js.map +1 -1
  28. package/index.mjs +13 -8
  29. package/index.mjs.map +1 -1
  30. package/options.d.mts +3 -0
  31. package/options.d.mts.map +1 -1
  32. package/options.d.ts +3 -0
  33. package/options.d.ts.map +1 -1
  34. package/options.js +18 -0
  35. package/options.js.map +1 -1
  36. package/options.mjs +18 -0
  37. package/options.mjs.map +1 -1
  38. package/package.json +4 -3
  39. package/server.d.mts +1 -0
  40. package/server.d.mts.map +1 -1
  41. package/server.d.ts +1 -0
  42. package/server.d.ts.map +1 -1
  43. package/server.js +7 -5
  44. package/server.js.map +1 -1
  45. package/server.mjs +5 -4
  46. package/server.mjs.map +1 -1
  47. package/src/filtering.ts +1 -2
  48. package/src/headers.ts +24 -0
  49. package/src/http.ts +99 -0
  50. package/src/index.ts +15 -11
  51. package/src/options.ts +22 -0
  52. package/src/server.ts +11 -8
  53. package/src/stdio.ts +14 -0
  54. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +1 -0
  55. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +1 -1
  56. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +1 -1
  57. package/src/tools/v1/contracts/amend-v1-contracts.ts +37 -0
  58. package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +3 -0
  59. package/src/tools/v1/contracts/create-v1-contracts.ts +48 -2
  60. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +1 -1
  61. package/src/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.ts +1 -0
  62. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +4 -0
  63. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +1 -1
  64. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +1 -1
  65. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +1 -0
  66. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +2 -1
  67. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +1 -1
  68. package/src/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.ts +1 -0
  69. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +2 -0
  70. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +3 -1
  71. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +3 -1
  72. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +1 -1
  73. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +3 -1
  74. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +3 -1
  75. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +1 -0
  76. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +1 -1
  77. package/src/tools/v1/custom-fields/set-values-v1-custom-fields.ts +1 -0
  78. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +8 -0
  79. package/src/tools/v1/customers/create-v1-customers.ts +3 -1
  80. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +3 -0
  81. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +1 -1
  82. package/src/tools/v1/customers/list-costs-v1-customers.ts +1 -1
  83. package/src/tools/v1/customers/list-v1-customers.ts +1 -1
  84. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +1 -1
  85. package/src/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.ts +1 -0
  86. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +1 -1
  87. package/src/tools/v1/customers/preview-events-v1-customers.ts +1 -0
  88. package/src/tools/v1/customers/retrieve-v1-customers.ts +1 -1
  89. package/src/tools/v1/customers/set-name-v1-customers.ts +1 -1
  90. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +1 -0
  91. package/src/tools/v1/plans/get-details-v1-plans.ts +1 -1
  92. package/src/tools/v1/plans/list-charges-v1-plans.ts +1 -1
  93. package/src/tools/v1/plans/list-customers-v1-plans.ts +1 -1
  94. package/src/tools/v1/plans/list-v1-plans.ts +1 -1
  95. package/src/tools/v1/usage/ingest-v1-usage.ts +1 -0
  96. package/src/tools/v1/usage/list-v1-usage.ts +1 -1
  97. package/src/tools/v1/usage/search-v1-usage.ts +1 -1
  98. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +6 -0
  99. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +6 -0
  100. package/src/tools/v2/contracts/edit-v2-contracts.ts +59 -4
  101. package/stdio.d.mts +4 -0
  102. package/stdio.d.mts.map +1 -0
  103. package/stdio.d.ts +4 -0
  104. package/stdio.d.ts.map +1 -0
  105. package/stdio.js +14 -0
  106. package/stdio.js.map +1 -0
  107. package/stdio.mjs +10 -0
  108. package/stdio.mjs.map +1 -0
  109. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +1 -1
  110. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +1 -1
  111. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +1 -0
  112. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  113. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +1 -0
  114. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  115. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +1 -1
  116. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  117. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +1 -1
  118. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  119. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +1 -1
  120. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  121. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +1 -1
  122. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  123. package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
  124. package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
  125. package/tools/v1/contracts/amend-v1-contracts.js +33 -0
  126. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  127. package/tools/v1/contracts/amend-v1-contracts.mjs +33 -0
  128. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  129. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
  130. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
  131. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +3 -0
  132. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
  133. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +3 -0
  134. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
  135. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  136. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  137. package/tools/v1/contracts/create-v1-contracts.js +44 -2
  138. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  139. package/tools/v1/contracts/create-v1-contracts.mjs +44 -2
  140. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  141. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +1 -1
  142. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  143. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +1 -1
  144. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  145. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +1 -1
  146. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +1 -1
  147. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js +1 -0
  148. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js.map +1 -1
  149. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs +1 -0
  150. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs.map +1 -1
  151. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
  152. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
  153. package/tools/v1/contracts/products/create-contracts-v1-products.js +4 -0
  154. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  155. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +4 -0
  156. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  157. package/tools/v1/contracts/products/list-contracts-v1-products.js +1 -1
  158. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  159. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +1 -1
  160. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  161. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +1 -1
  162. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  163. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +1 -1
  164. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  165. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
  166. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
  167. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +1 -0
  168. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  169. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +1 -0
  170. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  171. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +1 -1
  172. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +1 -1
  173. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +2 -1
  174. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  175. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +2 -1
  176. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  177. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +1 -1
  178. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  179. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +1 -1
  180. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  181. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  182. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  183. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js +1 -0
  184. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  185. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs +1 -0
  186. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  187. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  188. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  189. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +2 -0
  190. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  191. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +2 -0
  192. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  193. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  194. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  195. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +3 -1
  196. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  197. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +3 -1
  198. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  199. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  200. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  201. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +3 -1
  202. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  203. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +3 -1
  204. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  205. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +1 -1
  206. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  207. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +1 -1
  208. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  209. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +1 -1
  210. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +1 -1
  211. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +3 -1
  212. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  213. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +3 -1
  214. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  215. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +1 -1
  216. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +1 -1
  217. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +3 -1
  218. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  219. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +3 -1
  220. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  221. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +1 -1
  222. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +1 -1
  223. package/tools/v1/credit-grants/create-v1-credit-grants.js +1 -0
  224. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  225. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +1 -0
  226. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  227. package/tools/v1/credit-grants/list-v1-credit-grants.js +1 -1
  228. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  229. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +1 -1
  230. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  231. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
  232. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
  233. package/tools/v1/custom-fields/set-values-v1-custom-fields.js +1 -0
  234. package/tools/v1/custom-fields/set-values-v1-custom-fields.js.map +1 -1
  235. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs +1 -0
  236. package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs.map +1 -1
  237. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
  238. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
  239. package/tools/v1/customers/commits/create-customers-v1-commits.js +7 -0
  240. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  241. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +7 -0
  242. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  243. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  244. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  245. package/tools/v1/customers/create-v1-customers.js +3 -1
  246. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  247. package/tools/v1/customers/create-v1-customers.mjs +3 -1
  248. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  249. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
  250. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
  251. package/tools/v1/customers/credits/create-customers-v1-credits.js +3 -0
  252. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  253. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +3 -0
  254. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  255. package/tools/v1/customers/list-billable-metrics-v1-customers.js +1 -1
  256. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  257. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +1 -1
  258. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  259. package/tools/v1/customers/list-costs-v1-customers.js +1 -1
  260. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  261. package/tools/v1/customers/list-costs-v1-customers.mjs +1 -1
  262. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  263. package/tools/v1/customers/list-v1-customers.js +1 -1
  264. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  265. package/tools/v1/customers/list-v1-customers.mjs +1 -1
  266. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  267. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +1 -1
  268. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  269. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +1 -1
  270. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  271. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +1 -1
  272. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +1 -1
  273. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js +1 -0
  274. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js.map +1 -1
  275. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs +1 -0
  276. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs.map +1 -1
  277. package/tools/v1/customers/plans/list-customers-v1-plans.js +1 -1
  278. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  279. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +1 -1
  280. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  281. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  282. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  283. package/tools/v1/customers/preview-events-v1-customers.js +1 -0
  284. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  285. package/tools/v1/customers/preview-events-v1-customers.mjs +1 -0
  286. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  287. package/tools/v1/customers/retrieve-v1-customers.js +1 -1
  288. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  289. package/tools/v1/customers/retrieve-v1-customers.mjs +1 -1
  290. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  291. package/tools/v1/customers/set-name-v1-customers.js +1 -1
  292. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  293. package/tools/v1/customers/set-name-v1-customers.mjs +1 -1
  294. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  295. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +1 -1
  296. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +1 -1
  297. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +1 -0
  298. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  299. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +1 -0
  300. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  301. package/tools/v1/plans/get-details-v1-plans.js +1 -1
  302. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  303. package/tools/v1/plans/get-details-v1-plans.mjs +1 -1
  304. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  305. package/tools/v1/plans/list-charges-v1-plans.js +1 -1
  306. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  307. package/tools/v1/plans/list-charges-v1-plans.mjs +1 -1
  308. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  309. package/tools/v1/plans/list-customers-v1-plans.js +1 -1
  310. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  311. package/tools/v1/plans/list-customers-v1-plans.mjs +1 -1
  312. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  313. package/tools/v1/plans/list-v1-plans.js +1 -1
  314. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  315. package/tools/v1/plans/list-v1-plans.mjs +1 -1
  316. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  317. package/tools/v1/usage/ingest-v1-usage.d.mts.map +1 -1
  318. package/tools/v1/usage/ingest-v1-usage.d.ts.map +1 -1
  319. package/tools/v1/usage/ingest-v1-usage.js +1 -0
  320. package/tools/v1/usage/ingest-v1-usage.js.map +1 -1
  321. package/tools/v1/usage/ingest-v1-usage.mjs +1 -0
  322. package/tools/v1/usage/ingest-v1-usage.mjs.map +1 -1
  323. package/tools/v1/usage/list-v1-usage.js +1 -1
  324. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  325. package/tools/v1/usage/list-v1-usage.mjs +1 -1
  326. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  327. package/tools/v1/usage/search-v1-usage.js +1 -1
  328. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  329. package/tools/v1/usage/search-v1-usage.mjs +1 -1
  330. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  331. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  332. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  333. package/tools/v2/contracts/edit-commit-v2-contracts.js +6 -0
  334. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  335. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +6 -0
  336. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  337. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  338. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  339. package/tools/v2/contracts/edit-credit-v2-contracts.js +6 -0
  340. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  341. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +6 -0
  342. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  343. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  344. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  345. package/tools/v2/contracts/edit-v2-contracts.js +55 -4
  346. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  347. package/tools/v2/contracts/edit-v2-contracts.mjs +55 -4
  348. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'list_rate_cards_contracts_v1_rates',
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 all rates for a rate card at a point in time\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n product_custom_fields: {\n type: 'object'\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate: {\n $ref: '#/$defs/rate'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n pricing_group_values: {\n type: 'object'\n }\n },\n required: [ 'entitled',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.'\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price'\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\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 all rates for a rate card at a point in time\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n product_custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate: {\n $ref: '#/$defs/rate'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n pricing_group_values: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'entitled',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',\n additionalProperties: true\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price',\n additionalProperties: true\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -46,10 +46,12 @@ export const tool = {
46
46
  partial_pricing_group_values: {
47
47
  type: 'object',
48
48
  description: 'List of pricing group key value pairs, rates containing the matching key / value pairs will be included in the response.',
49
+ additionalProperties: true,
49
50
  },
50
51
  pricing_group_values: {
51
52
  type: 'object',
52
53
  description: 'List of pricing group key value pairs, rates matching all of the key / value pairs will be included in the response.',
54
+ additionalProperties: true,
53
55
  },
54
56
  product_id: {
55
57
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"list-rate-cards-contracts-v1-rates.mjs","sourceRoot":"","sources":["../../../../../src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.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,8BAA8B;IACxC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,0CAA0C;IACpD,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EACT,g2JAAg2J;IACl2J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;gBAC9D,MAAM,EAAE,WAAW;aACpB;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6CAA6C;aAC3D;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,OAAO;gBACb,WAAW,EACT,2JAA2J;gBAC7J,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,iBAAiB,EAAE;4BACjB,IAAI,EAAE,QAAQ;4BACd,WA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oB,EAAE;4BACpB,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,sHAAsH;4BACxH,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,UAAU,EAAE;4BACV,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iEAAiE;yBAC/E;wBACD,YAAY,EAAE;4BACZ,IAAI,EAAE,OAAO;4BACb,WAAW,EACT,wFAAwF;4BAC1F,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC;KACjC;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,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACnF,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_contracts_v1_rate_cards',
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 specific rate card NOTE: Use `/contract-pricing/rate-cards/getRates` to retrieve rate card rates.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aliases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'name'\n ]\n }\n },\n credit_type_conversions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n custom_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_per_custom_credit: {\n type: 'string'\n }\n },\n required: [ 'custom_credit_type',\n 'fiat_per_custom_credit'\n ]\n }\n },\n custom_fields: {\n type: 'object'\n },\n description: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'id',\n 'created_at',\n 'created_by',\n 'name'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
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 specific rate card NOTE: Use `/contract-pricing/rate-cards/getRates` to retrieve rate card rates.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aliases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'name'\n ]\n }\n },\n credit_type_conversions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n custom_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_per_custom_credit: {\n type: 'string'\n }\n },\n required: [ 'custom_credit_type',\n 'fiat_per_custom_credit'\n ]\n }\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n description: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'id',\n 'created_at',\n 'created_by',\n 'name'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-contracts-v1-rate-cards.js","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EACT,uxEAAuxE;IACzxE,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,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-contracts-v1-rate-cards.js","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EACT,8zEAA8zE;IACh0E,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,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'retrieve_contracts_v1_rate_cards',
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 specific rate card NOTE: Use `/contract-pricing/rate-cards/getRates` to retrieve rate card rates.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aliases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'name'\n ]\n }\n },\n credit_type_conversions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n custom_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_per_custom_credit: {\n type: 'string'\n }\n },\n required: [ 'custom_credit_type',\n 'fiat_per_custom_credit'\n ]\n }\n },\n custom_fields: {\n type: 'object'\n },\n description: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'id',\n 'created_at',\n 'created_by',\n 'name'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
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 specific rate card NOTE: Use `/contract-pricing/rate-cards/getRates` to retrieve rate card rates.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n created_at: {\n type: 'string',\n format: 'date-time'\n },\n created_by: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n aliases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string'\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'name'\n ]\n }\n },\n credit_type_conversions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n custom_credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n fiat_per_custom_credit: {\n type: 'string'\n }\n },\n required: [ 'custom_credit_type',\n 'fiat_per_custom_credit'\n ]\n }\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n description: {\n type: 'string'\n },\n fiat_credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'id',\n 'created_at',\n 'created_by',\n 'name'\n ]\n }\n },\n required: [ 'data'\n ],\n $defs: {\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-contracts-v1-rate-cards.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.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,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EACT,uxEAAuxE;IACzxE,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,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-contracts-v1-rate-cards.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.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,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EACT,8zEAA8zE;IACh0E,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,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.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,IAsElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
1
+ {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.d.mts","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.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,IAwElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.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,IAsElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
1
+ {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.d.ts","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.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,IAwElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'retrieve_rate_schedule_contracts_v1_rate_cards',
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 all rates for a rate card from starting_at (either in perpetuity or until ending_before, if provided)\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n product_custom_fields: {\n type: 'object'\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate: {\n $ref: '#/$defs/rate'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n pricing_group_values: {\n type: 'object'\n }\n },\n required: [ 'entitled',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.'\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price'\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\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 all rates for a rate card from starting_at (either in perpetuity or until ending_before, if provided)\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n product_custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate: {\n $ref: '#/$defs/rate'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n pricing_group_values: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'entitled',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',\n additionalProperties: true\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price',\n additionalProperties: true\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -54,10 +54,12 @@ exports.tool = {
54
54
  partial_pricing_group_values: {
55
55
  type: 'object',
56
56
  description: 'List of pricing group key value pairs, rates containing the matching key / value pairs will be included in the response.',
57
+ additionalProperties: true,
57
58
  },
58
59
  pricing_group_values: {
59
60
  type: 'object',
60
61
  description: 'List of pricing group key value pairs, rates matching all of the key / value pairs will be included in the response.',
62
+ additionalProperties: true,
61
63
  },
62
64
  product_id: {
63
65
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.js","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,iDAAiD;IAC3D,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gDAAgD;IACtD,WAAW,EACT,y5JAAy5J;IAC35J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6CAA6C;aAC3D;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;gBAC9D,MAAM,EAAE,WAAW;aACpB;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+CAA+C;aAC7D;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ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AE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.js","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,iDAAiD;IAC3D,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gDAAgD;IACtD,WAAW,EACT,yjKAAyjK;IAC3jK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6CAA6C;aAC3D;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;gBAC9D,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,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,sHAAsH;gBACxH,MAAM,EAAE,WAAW;aACpB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,2JAA2J;gBAC7J,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,iBAAiB,EAAE;4BACjB,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,qFAAqF;4BACvF,IAAI,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC;yBACnD;wBACD,4BAA4B,EAAE;4BAC5B,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,0HAA0H;4BAC5H,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,oBAAoB,EAAE;4BACpB,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,sHAAsH;4BACxH,oBAAoB,EAAE,IAAI;yBAC3B;wBACD,UAAU,EAAE;4BACV,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iEAAiE;yBAC/E;qBACF;iBACF;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;KAC1C;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAC7F,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'retrieve_rate_schedule_contracts_v1_rate_cards',
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 all rates for a rate card from starting_at (either in perpetuity or until ending_before, if provided)\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n product_custom_fields: {\n type: 'object'\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate: {\n $ref: '#/$defs/rate'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n pricing_group_values: {\n type: 'object'\n }\n },\n required: [ 'entitled',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.'\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price'\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\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 all rates for a rate card from starting_at (either in perpetuity or until ending_before, if provided)\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n product_custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate: {\n $ref: '#/$defs/rate'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n pricing_group_values: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'entitled',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',\n additionalProperties: true\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price',\n additionalProperties: true\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -51,10 +51,12 @@ export const tool = {
51
51
  partial_pricing_group_values: {
52
52
  type: 'object',
53
53
  description: 'List of pricing group key value pairs, rates containing the matching key / value pairs will be included in the response.',
54
+ additionalProperties: true,
54
55
  },
55
56
  pricing_group_values: {
56
57
  type: 'object',
57
58
  description: 'List of pricing group key value pairs, rates matching all of the key / value pairs will be included in the response.',
59
+ additionalProperties: true,
58
60
  },
59
61
  product_id: {
60
62
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.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,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,iDAAiD;IAC3D,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gDAAgD;IACtD,WAAW,EACT,y5JAAy5J;IAC35J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6CAA6C;aAC3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C;IAC3C,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAC7F,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-rate-schedule-contracts-v1-rate-cards.mjs","sourceRoot":"","sources":["../../../../src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.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,wBAAwB;IAClC,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,iDAAiD;IAC3D,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gDAAgD;IACtD,WAAW,EACT,yjKAAyjK;IAC3jK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6CAA6C;aAC3D;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;gBAC9D,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,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,sHAAsH;g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":3,"file":"retrieve-rate-schedule-v1-contracts.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.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,IA6ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
1
+ {"version":3,"file":"retrieve-rate-schedule-v1-contracts.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.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,IA+ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-v1-contracts.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.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,IA6ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
1
+ {"version":3,"file":"retrieve-rate-schedule-v1-contracts.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.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,IA+ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAKzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAO1F,wBAA2C"}
@@ -14,7 +14,7 @@ exports.metadata = {
14
14
  };
15
15
  exports.tool = {
16
16
  name: 'retrieve_rate_schedule_v1_contracts',
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 the rate schedule for the rate card on a given contract.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n list_rate: {\n $ref: '#/$defs/rate'\n },\n product_custom_fields: {\n type: 'object'\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate_card_id: {\n type: 'string'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n override_rate: {\n $ref: '#/$defs/rate'\n },\n pricing_group_values: {\n type: 'object'\n }\n },\n required: [ 'entitled',\n 'list_rate',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate_card_id',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.'\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price'\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\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 the rate schedule for the rate card on a given contract.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n list_rate: {\n $ref: '#/$defs/rate'\n },\n product_custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate_card_id: {\n type: 'string'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n override_rate: {\n $ref: '#/$defs/rate'\n },\n pricing_group_values: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'entitled',\n 'list_rate',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate_card_id',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',\n additionalProperties: true\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price',\n additionalProperties: true\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -53,10 +53,12 @@ exports.tool = {
53
53
  partial_pricing_group_values: {
54
54
  type: 'object',
55
55
  description: 'List of pricing group key value pairs, rates containing the matching key / value pairs will be included in the response.',
56
+ additionalProperties: true,
56
57
  },
57
58
  pricing_group_values: {
58
59
  type: 'object',
59
60
  description: 'List of pricing group key value pairs, rates matching all of the key / value pairs will be included in the response.',
61
+ additionalProperties: true,
60
62
  },
61
63
  product_id: {
62
64
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-v1-contracts.js","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,kiKAAkiK;IACpiK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;Y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AAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CACnF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-rate-schedule-v1-contracts.js","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EACT,ksKAAksK;IACpsK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kDAAkD;aAChE;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,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,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAA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I,CAAC,CAAC,CACnF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -11,7 +11,7 @@ export const metadata = {
11
11
  };
12
12
  export const tool = {
13
13
  name: 'retrieve_rate_schedule_v1_contracts',
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 the rate schedule for the rate card on a given contract.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n list_rate: {\n $ref: '#/$defs/rate'\n },\n product_custom_fields: {\n type: 'object'\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate_card_id: {\n type: 'string'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n override_rate: {\n $ref: '#/$defs/rate'\n },\n pricing_group_values: {\n type: 'object'\n }\n },\n required: [ 'entitled',\n 'list_rate',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate_card_id',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.'\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price'\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\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 the rate schedule for the rate card on a given contract.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n entitled: {\n type: 'boolean'\n },\n list_rate: {\n $ref: '#/$defs/rate'\n },\n product_custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n product_id: {\n type: 'string'\n },\n product_name: {\n type: 'string'\n },\n product_tags: {\n type: 'array',\n items: {\n type: 'string'\n }\n },\n rate_card_id: {\n type: 'string'\n },\n starting_at: {\n type: 'string',\n format: 'date-time'\n },\n billing_frequency: {\n type: 'string',\n enum: [ 'MONTHLY',\n 'QUARTERLY',\n 'ANNUAL',\n 'WEEKLY'\n ]\n },\n commit_rate: {\n type: 'object',\n description: 'A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'TIERED',\n 'CUSTOM'\n ]\n },\n price: {\n type: 'number',\n description: 'Commit rate price. For FLAT rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n }\n },\n required: [ 'rate_type'\n ]\n },\n ending_before: {\n type: 'string',\n format: 'date-time'\n },\n override_rate: {\n $ref: '#/$defs/rate'\n },\n pricing_group_values: {\n type: 'object',\n additionalProperties: true\n }\n },\n required: [ 'entitled',\n 'list_rate',\n 'product_custom_fields',\n 'product_id',\n 'product_name',\n 'product_tags',\n 'rate_card_id',\n 'starting_at'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data'\n ],\n $defs: {\n rate: {\n type: 'object',\n properties: {\n rate_type: {\n type: 'string',\n enum: [ 'FLAT',\n 'PERCENTAGE',\n 'SUBSCRIPTION',\n 'CUSTOM',\n 'TIERED'\n ]\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n },\n custom_rate: {\n type: 'object',\n description: 'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',\n additionalProperties: true\n },\n is_prorated: {\n type: 'boolean',\n description: 'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.'\n },\n price: {\n type: 'number',\n description: 'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.'\n },\n pricing_group_values: {\n type: 'object',\n description: 'if pricing groups are used, this will contain the values used to calculate the price',\n additionalProperties: true\n },\n quantity: {\n type: 'number',\n description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.'\n },\n tiers: {\n type: 'array',\n description: 'Only set for TIERED rate_type.',\n items: {\n $ref: '#/$defs/tier'\n }\n },\n use_list_prices: {\n type: 'boolean',\n description: 'Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.'\n }\n },\n required: [ 'rate_type'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n },\n tier: {\n type: 'object',\n properties: {\n price: {\n type: 'number'\n },\n size: {\n type: 'number'\n }\n },\n required: [ 'price'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -50,10 +50,12 @@ export const tool = {
50
50
  partial_pricing_group_values: {
51
51
  type: 'object',
52
52
  description: 'List of pricing group key value pairs, rates containing the matching key / value pairs will be included in the response.',
53
+ additionalProperties: true,
53
54
  },
54
55
  pricing_group_values: {
55
56
  type: 'object',
56
57
  description: 'List of pricing group key value pairs, rates matching all of the key / value pairs will be included in the response.',
58
+ additionalProperties: true,
57
59
  },
58
60
  product_id: {
59
61
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve-rate-schedule-v1-contracts.mjs","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,M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V,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iEAAiE;yBAC/E;wBACD,YAAY,EAAE;4BACZ,IAAI,EAAE,OAAO;4BACb,WAAW,EACT,wFAAwF;4BAC1F,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;aACF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;KACzC;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,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CACnF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"retrieve-rate-schedule-v1-contracts.mjs","sourceRoot":"","sources":["../../../src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,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AS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;KACzC;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,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CACnF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-credit-grants.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.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,IA2JlB,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-credit-grants.d.mts","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.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,IA4JlB,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-credit-grants.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.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,IA2JlB,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-credit-grants.d.ts","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.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,IA4JlB,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"}
@@ -68,6 +68,7 @@ exports.tool = {
68
68
  custom_fields: {
69
69
  type: 'object',
70
70
  description: 'Custom fields to attach to the credit grant.',
71
+ additionalProperties: true,
71
72
  },
72
73
  effective_at: {
73
74
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-credit-grants.js","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,whBAAwhB;IAC1hB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;aAChD;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kFAAkF;gBAC/F,MAAM,EAAE,WAAW;aACpB;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;gBAC5C,UAAU,EAAE;oBACV,M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AC/C;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;aAC5B;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,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":"create-v1-credit-grants.js","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,whBAAwhB;IAC1hB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;aAChD;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kFAAkF;gBAC/F,MAAM,EAAE,WAAW;aACpB;YACD,YAAY,EAAE;gBACZ,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AAE,CAAC,YAAY,CAAC;qBACrB;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iCAAiC;qBAC/C;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;aAC5B;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,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"}
@@ -65,6 +65,7 @@ export const tool = {
65
65
  custom_fields: {
66
66
  type: 'object',
67
67
  description: 'Custom fields to attach to the credit grant.',
68
+ additionalProperties: true,
68
69
  },
69
70
  effective_at: {
70
71
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"create-v1-credit-grants.mjs","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/create-v1-credit-grants.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,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEF,MAAM,CAAC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,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,kEAAkE;wBAC/E,IAAI,EAAE,CAAC,gBAAgB,CAAC;qBACzB;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,wEAAwE;qBACtF;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;aAC5B;YACD,0BAA0B,EAAE;gBAC1B,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oEAAoE;wBACjF,IAAI,EAAE,CAAC,YAAY,CAAC;qBACrB;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iCAAiC;qBAC/C;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;aAC5B;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtG,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_credit_grants',
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 credit grants. This list does not included voided grants.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the credit grant'\n },\n balance: {\n type: 'object',\n description: 'The effective balance of the grant as of the end of the customer\\'s current billing period. Expiration deductions will be included only if the grant expires before the end of the current billing period.',\n properties: {\n effective_at: {\n type: 'string',\n description: 'The end_date of the customer\\'s current billing period.',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted deductions. If the grant has expired, this amount will be 0.'\n },\n including_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted and pending deductions. If the grant expires before the end of the customer\\'s current billing period, this amount will be 0.'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n custom_fields: {\n type: 'object'\n },\n customer_id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n expires_at: {\n type: 'string',\n format: 'date-time'\n },\n grant_amount: {\n type: 'object',\n description: 'the amount of credits initially granted',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n name: {\n type: 'string'\n },\n paid_amount: {\n type: 'object',\n description: 'the amount paid for this credit grant',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n pending_deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n priority: {\n type: 'number'\n },\n credit_grant_type: {\n type: 'string'\n },\n invoice_id: {\n type: 'string',\n description: 'the Metronome ID of the invoice with the purchase charge for this credit grant, if applicable'\n },\n products: {\n type: 'array',\n description: 'The products which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.)',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n reason: {\n type: 'string'\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'balance',\n 'custom_fields',\n 'customer_id',\n 'deductions',\n 'effective_at',\n 'expires_at',\n 'grant_amount',\n 'name',\n 'paid_amount',\n 'pending_deductions',\n 'priority'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
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 credit grants. This list does not included voided grants.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the credit grant'\n },\n balance: {\n type: 'object',\n description: 'The effective balance of the grant as of the end of the customer\\'s current billing period. Expiration deductions will be included only if the grant expires before the end of the current billing period.',\n properties: {\n effective_at: {\n type: 'string',\n description: 'The end_date of the customer\\'s current billing period.',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted deductions. If the grant has expired, this amount will be 0.'\n },\n including_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted and pending deductions. If the grant expires before the end of the customer\\'s current billing period, this amount will be 0.'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n customer_id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n expires_at: {\n type: 'string',\n format: 'date-time'\n },\n grant_amount: {\n type: 'object',\n description: 'the amount of credits initially granted',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n name: {\n type: 'string'\n },\n paid_amount: {\n type: 'object',\n description: 'the amount paid for this credit grant',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n pending_deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n priority: {\n type: 'number'\n },\n credit_grant_type: {\n type: 'string'\n },\n invoice_id: {\n type: 'string',\n description: 'the Metronome ID of the invoice with the purchase charge for this credit grant, if applicable'\n },\n products: {\n type: 'array',\n description: 'The products which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.)',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n reason: {\n type: 'string'\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'balance',\n 'custom_fields',\n 'customer_id',\n 'deductions',\n 'effective_at',\n 'expires_at',\n 'grant_amount',\n 'name',\n 'paid_amount',\n 'pending_deductions',\n 'priority'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
18
18
  inputSchema: {
19
19
  type: 'object',
20
20
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"list-v1-credit-grants.js","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/list-v1-credit-grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,wBAAwB;IAClC,WAAW,EAAE,eAAe;CAC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AAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-v1-credit-grants.js","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/list-v1-credit-grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,wBAAwB;IAClC,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,8iNAA8iN;IAChjN,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,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,gBAAgB,EAAE;gBAChB,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,gHAAgH;gBAClH,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,2FAA2F;gBAC7F,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,kGAAkG;gBACpG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iFAAiF;gBAC9F,MAAM,EAAE,WAAW;aACpB;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mEAAmE;gBAChF,MAAM,EAAE,WAAW;aACpB;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,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,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,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_credit_grants',
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 credit grants. This list does not included voided grants.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the credit grant'\n },\n balance: {\n type: 'object',\n description: 'The effective balance of the grant as of the end of the customer\\'s current billing period. Expiration deductions will be included only if the grant expires before the end of the current billing period.',\n properties: {\n effective_at: {\n type: 'string',\n description: 'The end_date of the customer\\'s current billing period.',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted deductions. If the grant has expired, this amount will be 0.'\n },\n including_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted and pending deductions. If the grant expires before the end of the customer\\'s current billing period, this amount will be 0.'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n custom_fields: {\n type: 'object'\n },\n customer_id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n expires_at: {\n type: 'string',\n format: 'date-time'\n },\n grant_amount: {\n type: 'object',\n description: 'the amount of credits initially granted',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n name: {\n type: 'string'\n },\n paid_amount: {\n type: 'object',\n description: 'the amount paid for this credit grant',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n pending_deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n priority: {\n type: 'number'\n },\n credit_grant_type: {\n type: 'string'\n },\n invoice_id: {\n type: 'string',\n description: 'the Metronome ID of the invoice with the purchase charge for this credit grant, if applicable'\n },\n products: {\n type: 'array',\n description: 'The products which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.)',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n reason: {\n type: 'string'\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'balance',\n 'custom_fields',\n 'customer_id',\n 'deductions',\n 'effective_at',\n 'expires_at',\n 'grant_amount',\n 'name',\n 'paid_amount',\n 'pending_deductions',\n 'priority'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
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 credit grants. This list does not included voided grants.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'the Metronome ID of the credit grant'\n },\n balance: {\n type: 'object',\n description: 'The effective balance of the grant as of the end of the customer\\'s current billing period. Expiration deductions will be included only if the grant expires before the end of the current billing period.',\n properties: {\n effective_at: {\n type: 'string',\n description: 'The end_date of the customer\\'s current billing period.',\n format: 'date-time'\n },\n excluding_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted deductions. If the grant has expired, this amount will be 0.'\n },\n including_pending: {\n type: 'number',\n description: 'The grant\\'s current balance including all posted and pending deductions. If the grant expires before the end of the customer\\'s current billing period, this amount will be 0.'\n }\n },\n required: [ 'effective_at',\n 'excluding_pending',\n 'including_pending'\n ]\n },\n custom_fields: {\n type: 'object',\n additionalProperties: true\n },\n customer_id: {\n type: 'string',\n description: 'the Metronome ID of the customer'\n },\n deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n expires_at: {\n type: 'string',\n format: 'date-time'\n },\n grant_amount: {\n type: 'object',\n description: 'the amount of credits initially granted',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n name: {\n type: 'string'\n },\n paid_amount: {\n type: 'object',\n description: 'the amount paid for this credit grant',\n properties: {\n amount: {\n type: 'number'\n },\n credit_type: {\n $ref: '#/$defs/credit_type_data'\n }\n },\n required: [ 'amount',\n 'credit_type'\n ]\n },\n pending_deductions: {\n type: 'array',\n items: {\n $ref: '#/$defs/credit_ledger_entry'\n }\n },\n priority: {\n type: 'number'\n },\n credit_grant_type: {\n type: 'string'\n },\n invoice_id: {\n type: 'string',\n description: 'the Metronome ID of the invoice with the purchase charge for this credit grant, if applicable'\n },\n products: {\n type: 'array',\n description: 'The products which these credits will be applied to. (If unspecified, the credits will be applied to charges for all products.)',\n items: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n },\n reason: {\n type: 'string'\n },\n uniqueness_key: {\n type: 'string',\n description: 'Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.'\n }\n },\n required: [ 'id',\n 'balance',\n 'custom_fields',\n 'customer_id',\n 'deductions',\n 'effective_at',\n 'expires_at',\n 'grant_amount',\n 'name',\n 'paid_amount',\n 'pending_deductions',\n 'priority'\n ]\n }\n },\n next_page: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'next_page'\n ],\n $defs: {\n credit_ledger_entry: {\n type: 'object',\n properties: {\n amount: {\n type: 'number',\n description: 'an amount representing the change to the customer\\'s credit balance'\n },\n created_by: {\n type: 'string'\n },\n credit_grant_id: {\n type: 'string',\n description: 'the credit grant this entry is related to'\n },\n effective_at: {\n type: 'string',\n format: 'date-time'\n },\n reason: {\n type: 'string'\n },\n running_balance: {\n type: 'number',\n description: 'the running balance for this credit type at the time of the ledger entry, including all preceding charges'\n },\n invoice_id: {\n type: 'string',\n description: 'if this entry is a deduction, the Metronome ID of the invoice where the credit deduction was consumed; if this entry is a grant, the Metronome ID of the invoice where the grant\\'s paid_amount was charged'\n }\n },\n required: [ 'amount',\n 'created_by',\n 'credit_grant_id',\n 'effective_at',\n 'reason',\n 'running_balance'\n ]\n },\n credit_type_data: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n name: {\n type: 'string'\n }\n },\n required: [ 'id',\n 'name'\n ]\n }\n }\n}\n```",
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"list-v1-credit-grants.mjs","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/list-v1-credit-grants.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,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB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AAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACtE,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"list-v1-credit-grants.mjs","sourceRoot":"","sources":["../../../src/tools/v1/credit-grants/list-v1-credit-grants.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,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,wBAAwB;IAClC,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,8iNAA8iN;IAChjN,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,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,gBAAgB,EAAE;gBAChB,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,gHAAgH;gBAClH,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,2FAA2F;gBAC7F,KA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