@metronome/mcp 2.0.0 → 2.2.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 (1021) hide show
  1. package/README.md +68 -22
  2. package/code-tool-types.d.mts +2 -0
  3. package/code-tool-types.d.mts.map +1 -1
  4. package/code-tool-types.d.ts +2 -0
  5. package/code-tool-types.d.ts.map +1 -1
  6. package/code-tool.d.mts +45 -3
  7. package/code-tool.d.mts.map +1 -1
  8. package/code-tool.d.ts +45 -3
  9. package/code-tool.d.ts.map +1 -1
  10. package/code-tool.js +28 -133
  11. package/code-tool.js.map +1 -1
  12. package/code-tool.mjs +28 -100
  13. package/code-tool.mjs.map +1 -1
  14. package/docs-search-tool.d.mts +12 -6
  15. package/docs-search-tool.d.mts.map +1 -1
  16. package/docs-search-tool.d.ts +12 -6
  17. package/docs-search-tool.d.ts.map +1 -1
  18. package/docs-search-tool.js +10 -2
  19. package/docs-search-tool.js.map +1 -1
  20. package/docs-search-tool.mjs +10 -2
  21. package/docs-search-tool.mjs.map +1 -1
  22. package/dynamic-tools.d.mts +1 -1
  23. package/dynamic-tools.d.ts +1 -1
  24. package/dynamic-tools.js +1 -1
  25. package/dynamic-tools.mjs +1 -1
  26. package/filtering.d.mts +1 -0
  27. package/filtering.d.mts.map +1 -1
  28. package/filtering.d.ts +1 -0
  29. package/filtering.d.ts.map +1 -1
  30. package/filtering.js +4 -0
  31. package/filtering.js.map +1 -1
  32. package/filtering.mjs +3 -0
  33. package/filtering.mjs.map +1 -1
  34. package/headers.d.mts.map +1 -1
  35. package/headers.d.ts.map +1 -1
  36. package/headers.js +1 -1
  37. package/headers.js.map +1 -1
  38. package/headers.mjs +1 -1
  39. package/headers.mjs.map +1 -1
  40. package/http.js +2 -2
  41. package/http.js.map +1 -1
  42. package/http.mjs +2 -2
  43. package/http.mjs.map +1 -1
  44. package/options.d.mts.map +1 -1
  45. package/options.d.ts.map +1 -1
  46. package/options.js +6 -3
  47. package/options.js.map +1 -1
  48. package/options.mjs +6 -3
  49. package/options.mjs.map +1 -1
  50. package/package.json +6 -20
  51. package/server.js +1 -1
  52. package/server.mjs +1 -1
  53. package/src/code-tool-types.ts +5 -1
  54. package/src/code-tool.ts +38 -122
  55. package/src/docs-search-tool.ts +14 -3
  56. package/src/dynamic-tools.ts +1 -1
  57. package/src/filtering.ts +4 -0
  58. package/src/headers.ts +3 -1
  59. package/src/http.ts +2 -2
  60. package/src/options.ts +10 -3
  61. package/src/server.ts +1 -1
  62. package/src/tools/index.ts +6 -0
  63. package/src/tools/types.ts +12 -0
  64. package/src/tools/v1/alerts/archive-v1-alerts.ts +10 -3
  65. package/src/tools/v1/alerts/create-v1-alerts.ts +27 -3
  66. package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +10 -3
  67. package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +10 -3
  68. package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +10 -3
  69. package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +10 -3
  70. package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +10 -3
  71. package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +6 -0
  72. package/src/tools/v1/contracts/amend-v1-contracts.ts +10 -3
  73. package/src/tools/v1/contracts/archive-v1-contracts.ts +10 -3
  74. package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +9 -2
  75. package/src/tools/v1/contracts/create-v1-contracts.ts +64 -8
  76. package/src/tools/v1/contracts/list-balances-v1-contracts.ts +13 -2
  77. package/src/tools/v1/contracts/list-v1-contracts.ts +9 -2
  78. package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +12 -5
  79. package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +12 -3
  80. package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +10 -3
  81. package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +10 -3
  82. package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +12 -3
  83. package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +10 -3
  84. package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +12 -3
  85. package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +12 -3
  86. package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +10 -3
  87. package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +12 -5
  88. package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +12 -5
  89. package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +12 -5
  90. package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +12 -5
  91. package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +12 -5
  92. package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +10 -3
  93. package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +12 -5
  94. package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +12 -5
  95. package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +12 -3
  96. package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +12 -5
  97. package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +12 -5
  98. package/src/tools/v1/contracts/retrieve-v1-contracts.ts +9 -2
  99. package/src/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.ts +9 -2
  100. package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +10 -3
  101. package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +11 -4
  102. package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +11 -4
  103. package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +11 -4
  104. package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +11 -4
  105. package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +11 -4
  106. package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +10 -3
  107. package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +11 -4
  108. package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +25 -2
  109. package/src/tools/v1/customers/archive-v1-customers.ts +10 -3
  110. package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +11 -1
  111. package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +2 -1
  112. package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +14 -6
  113. package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +11 -4
  114. package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +9 -2
  115. package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +12 -5
  116. package/src/tools/v1/customers/create-v1-customers.ts +50 -3
  117. package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +10 -3
  118. package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +9 -2
  119. package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +12 -5
  120. package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +13 -6
  121. package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +9 -2
  122. package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +9 -2
  123. package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +9 -2
  124. package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +1 -1
  125. package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +10 -3
  126. package/src/tools/v1/customers/list-costs-v1-customers.ts +11 -4
  127. package/src/tools/v1/customers/list-v1-customers.ts +10 -3
  128. package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +12 -5
  129. package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +11 -4
  130. package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +11 -4
  131. package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +11 -4
  132. package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +11 -4
  133. package/src/tools/v1/customers/preview-events-v1-customers.ts +14 -5
  134. package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +13 -6
  135. package/src/tools/v1/customers/retrieve-v1-customers.ts +10 -3
  136. package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +21 -5
  137. package/src/tools/v1/customers/set-name-v1-customers.ts +10 -3
  138. package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +12 -3
  139. package/src/tools/v1/invoices/regenerate-v1-invoices.ts +10 -3
  140. package/src/tools/v1/invoices/void-v1-invoices.ts +10 -3
  141. package/src/tools/v1/payments/attempt-v1-payments.ts +11 -4
  142. package/src/tools/v1/payments/cancel-v1-payments.ts +11 -4
  143. package/src/tools/v1/payments/list-v1-payments.ts +11 -4
  144. package/src/tools/v1/plans/get-details-v1-plans.ts +11 -4
  145. package/src/tools/v1/plans/list-charges-v1-plans.ts +11 -4
  146. package/src/tools/v1/plans/list-customers-v1-plans.ts +11 -4
  147. package/src/tools/v1/plans/list-v1-plans.ts +11 -4
  148. package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +10 -3
  149. package/src/tools/v1/services/list-v1-services.ts +10 -3
  150. package/src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts +67 -0
  151. package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +55 -0
  152. package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +77 -0
  153. package/src/tools/v1/usage/list-v1-usage.ts +10 -3
  154. package/src/tools/v1/usage/list-with-groups-v1-usage.ts +10 -3
  155. package/src/tools/v1/usage/search-v1-usage.ts +11 -4
  156. package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +18 -3
  157. package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +18 -3
  158. package/src/tools/v2/contracts/edit-v2-contracts.ts +161 -5
  159. package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +9 -2
  160. package/src/tools/v2/contracts/list-v2-contracts.ts +9 -2
  161. package/src/tools/v2/contracts/retrieve-v2-contracts.ts +9 -2
  162. package/tools/index.d.mts.map +1 -1
  163. package/tools/index.d.ts.map +1 -1
  164. package/tools/index.js +6 -0
  165. package/tools/index.js.map +1 -1
  166. package/tools/index.mjs +6 -0
  167. package/tools/index.mjs.map +1 -1
  168. package/tools/types.d.mts +1 -0
  169. package/tools/types.d.mts.map +1 -1
  170. package/tools/types.d.ts +1 -0
  171. package/tools/types.d.ts.map +1 -1
  172. package/tools/types.js +12 -0
  173. package/tools/types.js.map +1 -1
  174. package/tools/types.mjs +11 -0
  175. package/tools/types.mjs.map +1 -1
  176. package/tools/v1/alerts/archive-v1-alerts.d.mts +12 -6
  177. package/tools/v1/alerts/archive-v1-alerts.d.mts.map +1 -1
  178. package/tools/v1/alerts/archive-v1-alerts.d.ts +12 -6
  179. package/tools/v1/alerts/archive-v1-alerts.d.ts.map +1 -1
  180. package/tools/v1/alerts/archive-v1-alerts.js +13 -1
  181. package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
  182. package/tools/v1/alerts/archive-v1-alerts.mjs +12 -3
  183. package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
  184. package/tools/v1/alerts/create-v1-alerts.d.mts +12 -6
  185. package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
  186. package/tools/v1/alerts/create-v1-alerts.d.ts +12 -6
  187. package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
  188. package/tools/v1/alerts/create-v1-alerts.js +29 -1
  189. package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
  190. package/tools/v1/alerts/create-v1-alerts.mjs +28 -3
  191. package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
  192. package/tools/v1/audit-logs/list-v1-audit-logs.d.mts +12 -6
  193. package/tools/v1/audit-logs/list-v1-audit-logs.d.mts.map +1 -1
  194. package/tools/v1/audit-logs/list-v1-audit-logs.d.ts +12 -6
  195. package/tools/v1/audit-logs/list-v1-audit-logs.d.ts.map +1 -1
  196. package/tools/v1/audit-logs/list-v1-audit-logs.js +13 -1
  197. package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
  198. package/tools/v1/audit-logs/list-v1-audit-logs.mjs +12 -3
  199. package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
  200. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts +12 -6
  201. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts.map +1 -1
  202. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts +12 -6
  203. package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts.map +1 -1
  204. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +13 -1
  205. package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
  206. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +12 -3
  207. package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
  208. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts +12 -6
  209. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +1 -1
  210. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts +12 -6
  211. package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +1 -1
  212. package/tools/v1/billable-metrics/create-v1-billable-metrics.js +13 -1
  213. package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
  214. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +12 -3
  215. package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
  216. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts +12 -6
  217. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts.map +1 -1
  218. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts +12 -6
  219. package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts.map +1 -1
  220. package/tools/v1/billable-metrics/list-v1-billable-metrics.js +13 -1
  221. package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
  222. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +12 -3
  223. package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
  224. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts +12 -6
  225. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts.map +1 -1
  226. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts +12 -6
  227. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts.map +1 -1
  228. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +13 -1
  229. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
  230. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +12 -3
  231. package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
  232. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts +12 -6
  233. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +1 -1
  234. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts +12 -6
  235. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +1 -1
  236. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +5 -0
  237. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +1 -1
  238. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +5 -0
  239. package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +1 -1
  240. package/tools/v1/contracts/amend-v1-contracts.d.mts +12 -6
  241. package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
  242. package/tools/v1/contracts/amend-v1-contracts.d.ts +12 -6
  243. package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
  244. package/tools/v1/contracts/amend-v1-contracts.js +14 -2
  245. package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
  246. package/tools/v1/contracts/amend-v1-contracts.mjs +12 -3
  247. package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
  248. package/tools/v1/contracts/archive-v1-contracts.d.mts +12 -6
  249. package/tools/v1/contracts/archive-v1-contracts.d.mts.map +1 -1
  250. package/tools/v1/contracts/archive-v1-contracts.d.ts +12 -6
  251. package/tools/v1/contracts/archive-v1-contracts.d.ts.map +1 -1
  252. package/tools/v1/contracts/archive-v1-contracts.js +13 -1
  253. package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
  254. package/tools/v1/contracts/archive-v1-contracts.mjs +12 -3
  255. package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
  256. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts +12 -6
  257. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
  258. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts +12 -6
  259. package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
  260. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +13 -1
  261. package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
  262. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +11 -2
  263. package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
  264. package/tools/v1/contracts/create-v1-contracts.d.mts +12 -6
  265. package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
  266. package/tools/v1/contracts/create-v1-contracts.d.ts +12 -6
  267. package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
  268. package/tools/v1/contracts/create-v1-contracts.js +60 -7
  269. package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
  270. package/tools/v1/contracts/create-v1-contracts.mjs +58 -8
  271. package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
  272. package/tools/v1/contracts/list-balances-v1-contracts.d.mts +12 -6
  273. package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
  274. package/tools/v1/contracts/list-balances-v1-contracts.d.ts +12 -6
  275. package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
  276. package/tools/v1/contracts/list-balances-v1-contracts.js +17 -1
  277. package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
  278. package/tools/v1/contracts/list-balances-v1-contracts.mjs +15 -2
  279. package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
  280. package/tools/v1/contracts/list-v1-contracts.d.mts +12 -6
  281. package/tools/v1/contracts/list-v1-contracts.d.mts.map +1 -1
  282. package/tools/v1/contracts/list-v1-contracts.d.ts +12 -6
  283. package/tools/v1/contracts/list-v1-contracts.d.ts.map +1 -1
  284. package/tools/v1/contracts/list-v1-contracts.js +13 -1
  285. package/tools/v1/contracts/list-v1-contracts.js.map +1 -1
  286. package/tools/v1/contracts/list-v1-contracts.mjs +11 -2
  287. package/tools/v1/contracts/list-v1-contracts.mjs.map +1 -1
  288. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts +12 -6
  289. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts.map +1 -1
  290. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts +12 -6
  291. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts.map +1 -1
  292. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +13 -1
  293. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
  294. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +12 -3
  295. package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
  296. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts +12 -6
  297. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +1 -1
  298. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts +12 -6
  299. package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +1 -1
  300. package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts +12 -6
  301. package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts.map +1 -1
  302. package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts +12 -6
  303. package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts.map +1 -1
  304. package/tools/v1/contracts/products/archive-contracts-v1-products.js +13 -1
  305. package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
  306. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +12 -3
  307. package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
  308. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts +12 -6
  309. package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
  310. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts +12 -6
  311. package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
  312. package/tools/v1/contracts/products/create-contracts-v1-products.js +13 -1
  313. package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
  314. package/tools/v1/contracts/products/create-contracts-v1-products.mjs +12 -3
  315. package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
  316. package/tools/v1/contracts/products/list-contracts-v1-products.d.mts +12 -6
  317. package/tools/v1/contracts/products/list-contracts-v1-products.d.mts.map +1 -1
  318. package/tools/v1/contracts/products/list-contracts-v1-products.d.ts +12 -6
  319. package/tools/v1/contracts/products/list-contracts-v1-products.d.ts.map +1 -1
  320. package/tools/v1/contracts/products/list-contracts-v1-products.js +13 -1
  321. package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
  322. package/tools/v1/contracts/products/list-contracts-v1-products.mjs +12 -3
  323. package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
  324. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts +12 -6
  325. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts.map +1 -1
  326. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts +12 -6
  327. package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts.map +1 -1
  328. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +13 -1
  329. package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
  330. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +12 -3
  331. package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
  332. package/tools/v1/contracts/products/update-contracts-v1-products.d.mts +12 -6
  333. package/tools/v1/contracts/products/update-contracts-v1-products.d.mts.map +1 -1
  334. package/tools/v1/contracts/products/update-contracts-v1-products.d.ts +12 -6
  335. package/tools/v1/contracts/products/update-contracts-v1-products.d.ts.map +1 -1
  336. package/tools/v1/contracts/products/update-contracts-v1-products.js +13 -1
  337. package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
  338. package/tools/v1/contracts/products/update-contracts-v1-products.mjs +12 -3
  339. package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
  340. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts +12 -6
  341. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts.map +1 -1
  342. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts +12 -6
  343. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts.map +1 -1
  344. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +13 -1
  345. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
  346. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +12 -3
  347. package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
  348. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts +12 -6
  349. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
  350. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts +12 -6
  351. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
  352. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +13 -1
  353. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
  354. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +12 -3
  355. package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
  356. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts +12 -6
  357. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +1 -1
  358. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts +12 -6
  359. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +1 -1
  360. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +13 -1
  361. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
  362. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +12 -3
  363. package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
  364. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts +12 -6
  365. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  366. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts +12 -6
  367. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  368. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +13 -1
  369. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
  370. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +12 -3
  371. package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
  372. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts +12 -6
  373. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
  374. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts +12 -6
  375. package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
  376. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts +12 -6
  377. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts.map +1 -1
  378. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts +12 -6
  379. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts.map +1 -1
  380. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +13 -1
  381. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
  382. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +12 -3
  383. package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  384. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts +12 -6
  385. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts.map +1 -1
  386. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts +12 -6
  387. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts.map +1 -1
  388. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +13 -1
  389. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
  390. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +12 -3
  391. package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
  392. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts +12 -6
  393. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  394. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts +12 -6
  395. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  396. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +13 -1
  397. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
  398. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +12 -3
  399. package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
  400. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts +12 -6
  401. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  402. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts +12 -6
  403. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  404. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +13 -1
  405. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
  406. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +12 -3
  407. package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
  408. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts +12 -6
  409. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +1 -1
  410. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts +12 -6
  411. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +1 -1
  412. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +13 -1
  413. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
  414. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +12 -3
  415. package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
  416. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts +12 -6
  417. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts.map +1 -1
  418. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts +12 -6
  419. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts.map +1 -1
  420. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +13 -1
  421. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
  422. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +12 -3
  423. package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
  424. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts +12 -6
  425. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +1 -1
  426. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts +12 -6
  427. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +1 -1
  428. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +13 -1
  429. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
  430. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +12 -3
  431. package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
  432. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts +12 -6
  433. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts.map +1 -1
  434. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts +12 -6
  435. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts.map +1 -1
  436. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +13 -1
  437. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
  438. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +12 -3
  439. package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
  440. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts +12 -6
  441. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +1 -1
  442. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts +12 -6
  443. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +1 -1
  444. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +13 -1
  445. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
  446. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +12 -3
  447. package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
  448. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts +12 -6
  449. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts.map +1 -1
  450. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts +12 -6
  451. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts.map +1 -1
  452. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +13 -1
  453. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
  454. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +12 -3
  455. package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
  456. package/tools/v1/contracts/retrieve-v1-contracts.d.mts +12 -6
  457. package/tools/v1/contracts/retrieve-v1-contracts.d.mts.map +1 -1
  458. package/tools/v1/contracts/retrieve-v1-contracts.d.ts +12 -6
  459. package/tools/v1/contracts/retrieve-v1-contracts.d.ts.map +1 -1
  460. package/tools/v1/contracts/retrieve-v1-contracts.js +13 -1
  461. package/tools/v1/contracts/retrieve-v1-contracts.js.map +1 -1
  462. package/tools/v1/contracts/retrieve-v1-contracts.mjs +11 -2
  463. package/tools/v1/contracts/retrieve-v1-contracts.mjs.map +1 -1
  464. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts +12 -6
  465. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts.map +1 -1
  466. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts +12 -6
  467. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts.map +1 -1
  468. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js +13 -1
  469. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js.map +1 -1
  470. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs +11 -2
  471. package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs.map +1 -1
  472. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts +12 -6
  473. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +1 -1
  474. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts +12 -6
  475. package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +1 -1
  476. package/tools/v1/contracts/update-end-date-v1-contracts.d.mts +12 -6
  477. package/tools/v1/contracts/update-end-date-v1-contracts.d.mts.map +1 -1
  478. package/tools/v1/contracts/update-end-date-v1-contracts.d.ts +12 -6
  479. package/tools/v1/contracts/update-end-date-v1-contracts.d.ts.map +1 -1
  480. package/tools/v1/contracts/update-end-date-v1-contracts.js +13 -1
  481. package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
  482. package/tools/v1/contracts/update-end-date-v1-contracts.mjs +12 -3
  483. package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
  484. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts +12 -6
  485. package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +1 -1
  486. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts +12 -6
  487. package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +1 -1
  488. package/tools/v1/credit-grants/create-v1-credit-grants.js +14 -2
  489. package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
  490. package/tools/v1/credit-grants/create-v1-credit-grants.mjs +13 -4
  491. package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
  492. package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts +12 -6
  493. package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts.map +1 -1
  494. package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts +12 -6
  495. package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts.map +1 -1
  496. package/tools/v1/credit-grants/edit-v1-credit-grants.js +14 -2
  497. package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
  498. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +13 -4
  499. package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
  500. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts +12 -6
  501. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts.map +1 -1
  502. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts +12 -6
  503. package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts.map +1 -1
  504. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +14 -2
  505. package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
  506. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +13 -4
  507. package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
  508. package/tools/v1/credit-grants/list-v1-credit-grants.d.mts +12 -6
  509. package/tools/v1/credit-grants/list-v1-credit-grants.d.mts.map +1 -1
  510. package/tools/v1/credit-grants/list-v1-credit-grants.d.ts +12 -6
  511. package/tools/v1/credit-grants/list-v1-credit-grants.d.ts.map +1 -1
  512. package/tools/v1/credit-grants/list-v1-credit-grants.js +14 -2
  513. package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
  514. package/tools/v1/credit-grants/list-v1-credit-grants.mjs +13 -4
  515. package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
  516. package/tools/v1/credit-grants/void-v1-credit-grants.d.mts +12 -6
  517. package/tools/v1/credit-grants/void-v1-credit-grants.d.mts.map +1 -1
  518. package/tools/v1/credit-grants/void-v1-credit-grants.d.ts +12 -6
  519. package/tools/v1/credit-grants/void-v1-credit-grants.d.ts.map +1 -1
  520. package/tools/v1/credit-grants/void-v1-credit-grants.js +14 -2
  521. package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
  522. package/tools/v1/credit-grants/void-v1-credit-grants.mjs +13 -4
  523. package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
  524. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts +12 -6
  525. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts.map +1 -1
  526. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts +12 -6
  527. package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts.map +1 -1
  528. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts +12 -6
  529. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +1 -1
  530. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts +12 -6
  531. package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +1 -1
  532. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts +12 -6
  533. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts.map +1 -1
  534. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts +12 -6
  535. package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts.map +1 -1
  536. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +13 -1
  537. package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
  538. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +12 -3
  539. package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
  540. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts +12 -6
  541. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +1 -1
  542. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts +12 -6
  543. package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +1 -1
  544. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts +12 -6
  545. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
  546. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts +12 -6
  547. package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
  548. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts +12 -6
  549. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +1 -1
  550. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts +12 -6
  551. package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +1 -1
  552. package/tools/v1/customers/alerts/list-customers-v1-alerts.js +14 -2
  553. package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
  554. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +13 -4
  555. package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
  556. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts +12 -6
  557. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +1 -1
  558. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts +12 -6
  559. package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +1 -1
  560. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts +12 -6
  561. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +1 -1
  562. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts +12 -6
  563. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +1 -1
  564. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +28 -1
  565. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
  566. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +26 -2
  567. package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
  568. package/tools/v1/customers/archive-v1-customers.d.mts +12 -6
  569. package/tools/v1/customers/archive-v1-customers.d.mts.map +1 -1
  570. package/tools/v1/customers/archive-v1-customers.d.ts +12 -6
  571. package/tools/v1/customers/archive-v1-customers.d.ts.map +1 -1
  572. package/tools/v1/customers/archive-v1-customers.js +13 -1
  573. package/tools/v1/customers/archive-v1-customers.js.map +1 -1
  574. package/tools/v1/customers/archive-v1-customers.mjs +12 -3
  575. package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
  576. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts +12 -6
  577. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
  578. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts +12 -6
  579. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
  580. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +9 -1
  581. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
  582. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +9 -1
  583. package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
  584. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts +12 -6
  585. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +1 -1
  586. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts +12 -6
  587. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +1 -1
  588. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js +2 -1
  589. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +1 -1
  590. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +2 -1
  591. package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.map +1 -1
  592. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts +12 -6
  593. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +1 -1
  594. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts +12 -6
  595. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +1 -1
  596. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +15 -2
  597. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
  598. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +14 -4
  599. package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
  600. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts +12 -6
  601. package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
  602. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts +12 -6
  603. package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
  604. package/tools/v1/customers/commits/create-customers-v1-commits.js +15 -3
  605. package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
  606. package/tools/v1/customers/commits/create-customers-v1-commits.mjs +13 -4
  607. package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
  608. package/tools/v1/customers/commits/list-customers-v1-commits.d.mts +12 -6
  609. package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +1 -1
  610. package/tools/v1/customers/commits/list-customers-v1-commits.d.ts +12 -6
  611. package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +1 -1
  612. package/tools/v1/customers/commits/list-customers-v1-commits.js +13 -1
  613. package/tools/v1/customers/commits/list-customers-v1-commits.js.map +1 -1
  614. package/tools/v1/customers/commits/list-customers-v1-commits.mjs +11 -2
  615. package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +1 -1
  616. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts +12 -6
  617. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts.map +1 -1
  618. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts +12 -6
  619. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts.map +1 -1
  620. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +13 -1
  621. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
  622. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +12 -3
  623. package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
  624. package/tools/v1/customers/create-v1-customers.d.mts +12 -6
  625. package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
  626. package/tools/v1/customers/create-v1-customers.d.ts +12 -6
  627. package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
  628. package/tools/v1/customers/create-v1-customers.js +49 -1
  629. package/tools/v1/customers/create-v1-customers.js.map +1 -1
  630. package/tools/v1/customers/create-v1-customers.mjs +48 -3
  631. package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
  632. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts +12 -6
  633. package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
  634. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts +12 -6
  635. package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
  636. package/tools/v1/customers/credits/create-customers-v1-credits.js +13 -1
  637. package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
  638. package/tools/v1/customers/credits/create-customers-v1-credits.mjs +12 -3
  639. package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
  640. package/tools/v1/customers/credits/list-customers-v1-credits.d.mts +12 -6
  641. package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +1 -1
  642. package/tools/v1/customers/credits/list-customers-v1-credits.d.ts +12 -6
  643. package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +1 -1
  644. package/tools/v1/customers/credits/list-customers-v1-credits.js +13 -1
  645. package/tools/v1/customers/credits/list-customers-v1-credits.js.map +1 -1
  646. package/tools/v1/customers/credits/list-customers-v1-credits.mjs +11 -2
  647. package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +1 -1
  648. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts +12 -6
  649. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts.map +1 -1
  650. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts +12 -6
  651. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts.map +1 -1
  652. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +13 -1
  653. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
  654. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +12 -3
  655. package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
  656. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts +12 -6
  657. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts.map +1 -1
  658. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts +12 -6
  659. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts.map +1 -1
  660. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +14 -2
  661. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
  662. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +13 -4
  663. package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
  664. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts +12 -6
  665. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts.map +1 -1
  666. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts +12 -6
  667. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts.map +1 -1
  668. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +13 -1
  669. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +1 -1
  670. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +11 -2
  671. package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +1 -1
  672. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts +12 -6
  673. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts.map +1 -1
  674. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts +12 -6
  675. package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts.map +1 -1
  676. package/tools/v1/customers/invoices/list-customers-v1-invoices.js +13 -1
  677. package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +1 -1
  678. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +11 -2
  679. package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +1 -1
  680. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts +12 -6
  681. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +1 -1
  682. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts +12 -6
  683. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +1 -1
  684. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +13 -1
  685. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +1 -1
  686. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +11 -2
  687. package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +1 -1
  688. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +12 -6
  689. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +1 -1
  690. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +12 -6
  691. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +1 -1
  692. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +1 -1
  693. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +1 -1
  694. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +1 -1
  695. package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +1 -1
  696. package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts +12 -6
  697. package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts.map +1 -1
  698. package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts +12 -6
  699. package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts.map +1 -1
  700. package/tools/v1/customers/list-billable-metrics-v1-customers.js +13 -1
  701. package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
  702. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +12 -3
  703. package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
  704. package/tools/v1/customers/list-costs-v1-customers.d.mts +12 -6
  705. package/tools/v1/customers/list-costs-v1-customers.d.mts.map +1 -1
  706. package/tools/v1/customers/list-costs-v1-customers.d.ts +12 -6
  707. package/tools/v1/customers/list-costs-v1-customers.d.ts.map +1 -1
  708. package/tools/v1/customers/list-costs-v1-customers.js +14 -2
  709. package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
  710. package/tools/v1/customers/list-costs-v1-customers.mjs +13 -4
  711. package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
  712. package/tools/v1/customers/list-v1-customers.d.mts +12 -6
  713. package/tools/v1/customers/list-v1-customers.d.mts.map +1 -1
  714. package/tools/v1/customers/list-v1-customers.d.ts +12 -6
  715. package/tools/v1/customers/list-v1-customers.d.ts.map +1 -1
  716. package/tools/v1/customers/list-v1-customers.js +13 -1
  717. package/tools/v1/customers/list-v1-customers.js.map +1 -1
  718. package/tools/v1/customers/list-v1-customers.mjs +12 -3
  719. package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
  720. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts +12 -6
  721. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts.map +1 -1
  722. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts +12 -6
  723. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts.map +1 -1
  724. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +13 -1
  725. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
  726. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +12 -3
  727. package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
  728. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts +12 -6
  729. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +1 -1
  730. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts +12 -6
  731. package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +1 -1
  732. package/tools/v1/customers/plans/add-customers-v1-plans.d.mts +12 -6
  733. package/tools/v1/customers/plans/add-customers-v1-plans.d.mts.map +1 -1
  734. package/tools/v1/customers/plans/add-customers-v1-plans.d.ts +12 -6
  735. package/tools/v1/customers/plans/add-customers-v1-plans.d.ts.map +1 -1
  736. package/tools/v1/customers/plans/add-customers-v1-plans.js +14 -2
  737. package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
  738. package/tools/v1/customers/plans/add-customers-v1-plans.mjs +13 -4
  739. package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
  740. package/tools/v1/customers/plans/end-customers-v1-plans.d.mts +12 -6
  741. package/tools/v1/customers/plans/end-customers-v1-plans.d.mts.map +1 -1
  742. package/tools/v1/customers/plans/end-customers-v1-plans.d.ts +12 -6
  743. package/tools/v1/customers/plans/end-customers-v1-plans.d.ts.map +1 -1
  744. package/tools/v1/customers/plans/end-customers-v1-plans.js +14 -2
  745. package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
  746. package/tools/v1/customers/plans/end-customers-v1-plans.mjs +13 -4
  747. package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
  748. package/tools/v1/customers/plans/list-customers-v1-plans.d.mts +12 -6
  749. package/tools/v1/customers/plans/list-customers-v1-plans.d.mts.map +1 -1
  750. package/tools/v1/customers/plans/list-customers-v1-plans.d.ts +12 -6
  751. package/tools/v1/customers/plans/list-customers-v1-plans.d.ts.map +1 -1
  752. package/tools/v1/customers/plans/list-customers-v1-plans.js +14 -2
  753. package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
  754. package/tools/v1/customers/plans/list-customers-v1-plans.mjs +13 -4
  755. package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
  756. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts +12 -6
  757. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts.map +1 -1
  758. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts +12 -6
  759. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts.map +1 -1
  760. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +14 -2
  761. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
  762. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +13 -4
  763. package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
  764. package/tools/v1/customers/preview-events-v1-customers.d.mts +12 -6
  765. package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
  766. package/tools/v1/customers/preview-events-v1-customers.d.ts +12 -6
  767. package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
  768. package/tools/v1/customers/preview-events-v1-customers.js +17 -4
  769. package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
  770. package/tools/v1/customers/preview-events-v1-customers.mjs +15 -5
  771. package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
  772. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts +12 -6
  773. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts.map +1 -1
  774. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts +12 -6
  775. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts.map +1 -1
  776. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +14 -2
  777. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -1
  778. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +13 -4
  779. package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -1
  780. package/tools/v1/customers/retrieve-v1-customers.d.mts +12 -6
  781. package/tools/v1/customers/retrieve-v1-customers.d.mts.map +1 -1
  782. package/tools/v1/customers/retrieve-v1-customers.d.ts +12 -6
  783. package/tools/v1/customers/retrieve-v1-customers.d.ts.map +1 -1
  784. package/tools/v1/customers/retrieve-v1-customers.js +13 -1
  785. package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
  786. package/tools/v1/customers/retrieve-v1-customers.mjs +12 -3
  787. package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
  788. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts +12 -6
  789. package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -1
  790. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts +12 -6
  791. package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -1
  792. package/tools/v1/customers/set-billing-configurations-v1-customers.js +22 -4
  793. package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -1
  794. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +20 -5
  795. package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -1
  796. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts +12 -6
  797. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts.map +1 -1
  798. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts +12 -6
  799. package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts.map +1 -1
  800. package/tools/v1/customers/set-name-v1-customers.d.mts +12 -6
  801. package/tools/v1/customers/set-name-v1-customers.d.mts.map +1 -1
  802. package/tools/v1/customers/set-name-v1-customers.d.ts +12 -6
  803. package/tools/v1/customers/set-name-v1-customers.d.ts.map +1 -1
  804. package/tools/v1/customers/set-name-v1-customers.js +13 -1
  805. package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
  806. package/tools/v1/customers/set-name-v1-customers.mjs +12 -3
  807. package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
  808. package/tools/v1/customers/update-config-v1-customers.d.mts +12 -6
  809. package/tools/v1/customers/update-config-v1-customers.d.mts.map +1 -1
  810. package/tools/v1/customers/update-config-v1-customers.d.ts +12 -6
  811. package/tools/v1/customers/update-config-v1-customers.d.ts.map +1 -1
  812. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts +12 -6
  813. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +1 -1
  814. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts +12 -6
  815. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +1 -1
  816. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +13 -1
  817. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
  818. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +12 -3
  819. package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
  820. package/tools/v1/invoices/regenerate-v1-invoices.d.mts +12 -6
  821. package/tools/v1/invoices/regenerate-v1-invoices.d.mts.map +1 -1
  822. package/tools/v1/invoices/regenerate-v1-invoices.d.ts +12 -6
  823. package/tools/v1/invoices/regenerate-v1-invoices.d.ts.map +1 -1
  824. package/tools/v1/invoices/regenerate-v1-invoices.js +13 -1
  825. package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
  826. package/tools/v1/invoices/regenerate-v1-invoices.mjs +12 -3
  827. package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
  828. package/tools/v1/invoices/void-v1-invoices.d.mts +12 -6
  829. package/tools/v1/invoices/void-v1-invoices.d.mts.map +1 -1
  830. package/tools/v1/invoices/void-v1-invoices.d.ts +12 -6
  831. package/tools/v1/invoices/void-v1-invoices.d.ts.map +1 -1
  832. package/tools/v1/invoices/void-v1-invoices.js +13 -1
  833. package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
  834. package/tools/v1/invoices/void-v1-invoices.mjs +12 -3
  835. package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
  836. package/tools/v1/payments/attempt-v1-payments.d.mts +12 -6
  837. package/tools/v1/payments/attempt-v1-payments.d.mts.map +1 -1
  838. package/tools/v1/payments/attempt-v1-payments.d.ts +12 -6
  839. package/tools/v1/payments/attempt-v1-payments.d.ts.map +1 -1
  840. package/tools/v1/payments/attempt-v1-payments.js +14 -2
  841. package/tools/v1/payments/attempt-v1-payments.js.map +1 -1
  842. package/tools/v1/payments/attempt-v1-payments.mjs +13 -4
  843. package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -1
  844. package/tools/v1/payments/cancel-v1-payments.d.mts +12 -6
  845. package/tools/v1/payments/cancel-v1-payments.d.mts.map +1 -1
  846. package/tools/v1/payments/cancel-v1-payments.d.ts +12 -6
  847. package/tools/v1/payments/cancel-v1-payments.d.ts.map +1 -1
  848. package/tools/v1/payments/cancel-v1-payments.js +14 -2
  849. package/tools/v1/payments/cancel-v1-payments.js.map +1 -1
  850. package/tools/v1/payments/cancel-v1-payments.mjs +13 -4
  851. package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -1
  852. package/tools/v1/payments/list-v1-payments.d.mts +12 -6
  853. package/tools/v1/payments/list-v1-payments.d.mts.map +1 -1
  854. package/tools/v1/payments/list-v1-payments.d.ts +12 -6
  855. package/tools/v1/payments/list-v1-payments.d.ts.map +1 -1
  856. package/tools/v1/payments/list-v1-payments.js +14 -2
  857. package/tools/v1/payments/list-v1-payments.js.map +1 -1
  858. package/tools/v1/payments/list-v1-payments.mjs +13 -4
  859. package/tools/v1/payments/list-v1-payments.mjs.map +1 -1
  860. package/tools/v1/plans/get-details-v1-plans.d.mts +12 -6
  861. package/tools/v1/plans/get-details-v1-plans.d.mts.map +1 -1
  862. package/tools/v1/plans/get-details-v1-plans.d.ts +12 -6
  863. package/tools/v1/plans/get-details-v1-plans.d.ts.map +1 -1
  864. package/tools/v1/plans/get-details-v1-plans.js +14 -2
  865. package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
  866. package/tools/v1/plans/get-details-v1-plans.mjs +13 -4
  867. package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
  868. package/tools/v1/plans/list-charges-v1-plans.d.mts +12 -6
  869. package/tools/v1/plans/list-charges-v1-plans.d.mts.map +1 -1
  870. package/tools/v1/plans/list-charges-v1-plans.d.ts +12 -6
  871. package/tools/v1/plans/list-charges-v1-plans.d.ts.map +1 -1
  872. package/tools/v1/plans/list-charges-v1-plans.js +14 -2
  873. package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
  874. package/tools/v1/plans/list-charges-v1-plans.mjs +13 -4
  875. package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
  876. package/tools/v1/plans/list-customers-v1-plans.d.mts +12 -6
  877. package/tools/v1/plans/list-customers-v1-plans.d.mts.map +1 -1
  878. package/tools/v1/plans/list-customers-v1-plans.d.ts +12 -6
  879. package/tools/v1/plans/list-customers-v1-plans.d.ts.map +1 -1
  880. package/tools/v1/plans/list-customers-v1-plans.js +14 -2
  881. package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
  882. package/tools/v1/plans/list-customers-v1-plans.mjs +13 -4
  883. package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
  884. package/tools/v1/plans/list-v1-plans.d.mts +12 -6
  885. package/tools/v1/plans/list-v1-plans.d.mts.map +1 -1
  886. package/tools/v1/plans/list-v1-plans.d.ts +12 -6
  887. package/tools/v1/plans/list-v1-plans.d.ts.map +1 -1
  888. package/tools/v1/plans/list-v1-plans.js +14 -2
  889. package/tools/v1/plans/list-v1-plans.js.map +1 -1
  890. package/tools/v1/plans/list-v1-plans.mjs +13 -4
  891. package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
  892. package/tools/v1/pricing-units/list-v1-pricing-units.d.mts +12 -6
  893. package/tools/v1/pricing-units/list-v1-pricing-units.d.mts.map +1 -1
  894. package/tools/v1/pricing-units/list-v1-pricing-units.d.ts +12 -6
  895. package/tools/v1/pricing-units/list-v1-pricing-units.d.ts.map +1 -1
  896. package/tools/v1/pricing-units/list-v1-pricing-units.js +13 -1
  897. package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
  898. package/tools/v1/pricing-units/list-v1-pricing-units.mjs +12 -3
  899. package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
  900. package/tools/v1/services/list-v1-services.d.mts +12 -6
  901. package/tools/v1/services/list-v1-services.d.mts.map +1 -1
  902. package/tools/v1/services/list-v1-services.d.ts +12 -6
  903. package/tools/v1/services/list-v1-services.d.ts.map +1 -1
  904. package/tools/v1/services/list-v1-services.js +13 -1
  905. package/tools/v1/services/list-v1-services.js.map +1 -1
  906. package/tools/v1/services/list-v1-services.mjs +12 -3
  907. package/tools/v1/services/list-v1-services.mjs.map +1 -1
  908. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts +51 -0
  909. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +1 -0
  910. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +51 -0
  911. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +1 -0
  912. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +64 -0
  913. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +1 -0
  914. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +57 -0
  915. package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +1 -0
  916. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +51 -0
  917. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +1 -0
  918. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +51 -0
  919. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +1 -0
  920. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +53 -0
  921. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +1 -0
  922. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +46 -0
  923. package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +1 -0
  924. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +51 -0
  925. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +1 -0
  926. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +51 -0
  927. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +1 -0
  928. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +73 -0
  929. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +1 -0
  930. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +66 -0
  931. package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +1 -0
  932. package/tools/v1/usage/ingest-v1-usage.d.mts +12 -6
  933. package/tools/v1/usage/ingest-v1-usage.d.mts.map +1 -1
  934. package/tools/v1/usage/ingest-v1-usage.d.ts +12 -6
  935. package/tools/v1/usage/ingest-v1-usage.d.ts.map +1 -1
  936. package/tools/v1/usage/list-v1-usage.d.mts +12 -6
  937. package/tools/v1/usage/list-v1-usage.d.mts.map +1 -1
  938. package/tools/v1/usage/list-v1-usage.d.ts +12 -6
  939. package/tools/v1/usage/list-v1-usage.d.ts.map +1 -1
  940. package/tools/v1/usage/list-v1-usage.js +13 -1
  941. package/tools/v1/usage/list-v1-usage.js.map +1 -1
  942. package/tools/v1/usage/list-v1-usage.mjs +12 -3
  943. package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
  944. package/tools/v1/usage/list-with-groups-v1-usage.d.mts +12 -6
  945. package/tools/v1/usage/list-with-groups-v1-usage.d.mts.map +1 -1
  946. package/tools/v1/usage/list-with-groups-v1-usage.d.ts +12 -6
  947. package/tools/v1/usage/list-with-groups-v1-usage.d.ts.map +1 -1
  948. package/tools/v1/usage/list-with-groups-v1-usage.js +13 -1
  949. package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
  950. package/tools/v1/usage/list-with-groups-v1-usage.mjs +12 -3
  951. package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
  952. package/tools/v1/usage/search-v1-usage.d.mts +12 -6
  953. package/tools/v1/usage/search-v1-usage.d.mts.map +1 -1
  954. package/tools/v1/usage/search-v1-usage.d.ts +12 -6
  955. package/tools/v1/usage/search-v1-usage.d.ts.map +1 -1
  956. package/tools/v1/usage/search-v1-usage.js +14 -2
  957. package/tools/v1/usage/search-v1-usage.js.map +1 -1
  958. package/tools/v1/usage/search-v1-usage.mjs +13 -4
  959. package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
  960. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts +12 -6
  961. package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
  962. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts +12 -6
  963. package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
  964. package/tools/v2/contracts/edit-commit-v2-contracts.js +21 -1
  965. package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
  966. package/tools/v2/contracts/edit-commit-v2-contracts.mjs +20 -3
  967. package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
  968. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts +12 -6
  969. package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
  970. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts +12 -6
  971. package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
  972. package/tools/v2/contracts/edit-credit-v2-contracts.js +21 -1
  973. package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
  974. package/tools/v2/contracts/edit-credit-v2-contracts.mjs +20 -3
  975. package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
  976. package/tools/v2/contracts/edit-v2-contracts.d.mts +12 -6
  977. package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
  978. package/tools/v2/contracts/edit-v2-contracts.d.ts +12 -6
  979. package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
  980. package/tools/v2/contracts/edit-v2-contracts.js +155 -4
  981. package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
  982. package/tools/v2/contracts/edit-v2-contracts.mjs +153 -5
  983. package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
  984. package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts +12 -6
  985. package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts.map +1 -1
  986. package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts +12 -6
  987. package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts.map +1 -1
  988. package/tools/v2/contracts/get-edit-history-v2-contracts.js +13 -1
  989. package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +1 -1
  990. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +11 -2
  991. package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +1 -1
  992. package/tools/v2/contracts/list-v2-contracts.d.mts +12 -6
  993. package/tools/v2/contracts/list-v2-contracts.d.mts.map +1 -1
  994. package/tools/v2/contracts/list-v2-contracts.d.ts +12 -6
  995. package/tools/v2/contracts/list-v2-contracts.d.ts.map +1 -1
  996. package/tools/v2/contracts/list-v2-contracts.js +13 -1
  997. package/tools/v2/contracts/list-v2-contracts.js.map +1 -1
  998. package/tools/v2/contracts/list-v2-contracts.mjs +11 -2
  999. package/tools/v2/contracts/list-v2-contracts.mjs.map +1 -1
  1000. package/tools/v2/contracts/retrieve-v2-contracts.d.mts +12 -6
  1001. package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +1 -1
  1002. package/tools/v2/contracts/retrieve-v2-contracts.d.ts +12 -6
  1003. package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +1 -1
  1004. package/tools/v2/contracts/retrieve-v2-contracts.js +13 -1
  1005. package/tools/v2/contracts/retrieve-v2-contracts.js.map +1 -1
  1006. package/tools/v2/contracts/retrieve-v2-contracts.mjs +11 -2
  1007. package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +1 -1
  1008. package/code-tool-paths.cjs +0 -6
  1009. package/code-tool-paths.cjs.map +0 -1
  1010. package/code-tool-paths.d.cts +0 -2
  1011. package/code-tool-paths.d.cts.map +0 -1
  1012. package/code-tool-worker.d.mts +0 -5
  1013. package/code-tool-worker.d.mts.map +0 -1
  1014. package/code-tool-worker.d.ts +0 -5
  1015. package/code-tool-worker.d.ts.map +0 -1
  1016. package/code-tool-worker.js +0 -45
  1017. package/code-tool-worker.js.map +0 -1
  1018. package/code-tool-worker.mjs +0 -40
  1019. package/code-tool-worker.mjs.map +0 -1
  1020. package/src/code-tool-paths.cts +0 -3
  1021. package/src/code-tool-worker.ts +0 -46
package/code-tool.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { dirname } from 'node:path';
3
- import { pathToFileURL } from 'node:url';
2
+ import { asTextContentResult } from "./tools/types.mjs";
3
+ import { readEnv } from "./server.mjs";
4
4
  /**
5
5
  * A tool that runs code against a copy of the SDK.
6
6
  *
7
- * Instead of exposing every endpoint as it's own tool, which uses up too many tokens for LLMs to use at once,
7
+ * Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
8
8
  * we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
9
9
  * a generic endpoint that can be used to invoke any endpoint with the provided arguments.
10
10
  *
@@ -14,108 +14,36 @@ export async function codeTool() {
14
14
  const metadata = { resource: 'all', operation: 'write', tags: [] };
15
15
  const tool = {
16
16
  name: 'execute',
17
- description: 'Runs Typescript code to interact with the API.\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client, and it will be run.\nDo not initialize a client, but instead use the client that you are given as a parameter.\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
17
+ description: 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
18
18
  inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
19
19
  };
20
- // Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
21
- const { newDenoHTTPWorker } = await import('@valtown/deno-http-worker');
22
- const { workerPath } = await import('./code-tool-paths.cjs');
23
- const handler = async (client, args) => {
24
- const baseURLHostname = new URL(client.baseURL).hostname;
25
- const { code } = args;
26
- const worker = await newDenoHTTPWorker(pathToFileURL(workerPath), {
27
- runFlags: [
28
- `--node-modules-dir=manual`,
29
- `--allow-read=code-tool-worker.mjs,${workerPath.replace(/([\/\\]node_modules)[\/\\].+$/, '$1')}/`,
30
- `--allow-net=${baseURLHostname}`,
31
- // Allow environment variables because instantiating the client will try to read from them,
32
- // even though they are not set.
33
- '--allow-env',
34
- ],
35
- printOutput: true,
36
- spawnOptions: {
37
- cwd: dirname(workerPath),
20
+ const handler = async (_, args) => {
21
+ const code = args.code;
22
+ // this is not required, but passing a Stainless API key for the matching project_name
23
+ // will allow you to run code-mode queries against non-published versions of your SDK.
24
+ const stainlessAPIKey = readEnv('STAINLESS_API_KEY');
25
+ const codeModeEndpoint = readEnv('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
26
+ const res = await fetch(codeModeEndpoint, {
27
+ method: 'POST',
28
+ headers: {
29
+ ...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
30
+ 'Content-Type': 'application/json',
31
+ client_envs: JSON.stringify({
32
+ METRONOME_BEARER_TOKEN: readEnv('METRONOME_BEARER_TOKEN'),
33
+ METRONOME_WEBHOOK_SECRET: readEnv('METRONOME_WEBHOOK_SECRET'),
34
+ METRONOME_BASE_URL: readEnv('METRONOME_BASE_URL'),
35
+ }),
38
36
  },
37
+ body: JSON.stringify({
38
+ project_name: 'metronome',
39
+ client_opts: {},
40
+ code,
41
+ }),
39
42
  });
40
- try {
41
- const resp = await new Promise((resolve, reject) => {
42
- worker.addEventListener('exit', (exitCode) => {
43
- reject(new Error(`Worker exited with code ${exitCode}`));
44
- });
45
- const opts = {
46
- baseURL: client.baseURL,
47
- bearerToken: client.bearerToken,
48
- webhookSecret: client.webhookSecret,
49
- defaultHeaders: {
50
- 'X-Stainless-MCP': 'true',
51
- },
52
- };
53
- const req = worker.request('http://localhost', {
54
- headers: {
55
- 'content-type': 'application/json',
56
- },
57
- method: 'POST',
58
- }, (resp) => {
59
- const body = [];
60
- resp.on('error', (err) => {
61
- reject(err);
62
- });
63
- resp.on('data', (chunk) => {
64
- body.push(chunk);
65
- });
66
- resp.on('end', () => {
67
- resolve(new Response(Buffer.concat(body).toString(), {
68
- status: resp.statusCode ?? 200,
69
- headers: resp.headers,
70
- }));
71
- });
72
- });
73
- const body = JSON.stringify({
74
- opts,
75
- code,
76
- });
77
- req.write(body, (err) => {
78
- if (err !== null && err !== undefined) {
79
- reject(err);
80
- }
81
- });
82
- req.end();
83
- });
84
- if (resp.status === 200) {
85
- const { result, logLines, errLines } = (await resp.json());
86
- const returnOutput = result === null ? null
87
- : result === undefined ? null
88
- : {
89
- type: 'text',
90
- text: typeof result === 'string' ? result : JSON.stringify(result),
91
- };
92
- const logOutput = logLines.length === 0 ?
93
- null
94
- : {
95
- type: 'text',
96
- text: logLines.join('\n'),
97
- };
98
- const errOutput = errLines.length === 0 ?
99
- null
100
- : {
101
- type: 'text',
102
- text: 'Error output:\n' + errLines.join('\n'),
103
- };
104
- return {
105
- content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
106
- };
107
- }
108
- else {
109
- const { message } = (await resp.json());
110
- throw new Error(message);
111
- }
112
- }
113
- catch (e) {
114
- throw e;
115
- }
116
- finally {
117
- worker.terminate();
43
+ if (!res.ok) {
44
+ throw new Error(`${res.status}: ${res.statusText} error when trying to contact Code Tool server. Details: ${await res.text()}`);
118
45
  }
46
+ return asTextContentResult((await res.json()));
119
47
  };
120
48
  return { metadata, tool, handler };
121
49
  }
package/code-tool.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE,MAAM,WAAW;OAC5B,EAAE,aAAa,EAAE,MAAM,UAAU;AAQxC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC5B,MAAM,QAAQ,GAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,MAAM,IAAI,GAAS;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,khCAAkhC;QACphC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;KAC1E,CAAC;IAEF,2GAA2G;IAC3G,MAAM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C7D,kBAAkB,EAAE,OAAO,CAAC,oBAAoB,CAAC;iBAClD,CAAC;aACH;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,YAAY,EAAE,WAAW;gBACzB,WAAW,EAAE,EAAE;gBACf,IAAI;aACL,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,CAAC,MAAM,KACX,GAAG,CAAC,UACN,4DAA4D,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,mBAAmB,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAkB,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
@@ -6,37 +6,43 @@ export declare const handler: (_: unknown, args: Record<string, unknown> | undef
6
6
  declare const _default: {
7
7
  metadata: Metadata;
8
8
  tool: {
9
- [x: string]: unknown;
10
- name: string;
11
9
  inputSchema: {
12
10
  [x: string]: unknown;
13
11
  type: "object";
14
12
  properties?: {
15
- [x: string]: unknown;
13
+ [x: string]: object;
16
14
  } | undefined;
17
15
  required?: string[] | undefined;
18
16
  };
19
- title?: string | undefined;
17
+ name: string;
20
18
  description?: string | undefined;
21
19
  outputSchema?: {
22
20
  [x: string]: unknown;
23
21
  type: "object";
24
22
  properties?: {
25
- [x: string]: unknown;
23
+ [x: string]: object;
26
24
  } | undefined;
27
25
  required?: string[] | undefined;
28
26
  } | undefined;
29
27
  annotations?: {
30
- [x: string]: unknown;
31
28
  title?: string | undefined;
32
29
  readOnlyHint?: boolean | undefined;
33
30
  destructiveHint?: boolean | undefined;
34
31
  idempotentHint?: boolean | undefined;
35
32
  openWorldHint?: boolean | undefined;
36
33
  } | undefined;
34
+ execution?: {
35
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
36
+ } | undefined;
37
37
  _meta?: {
38
38
  [x: string]: unknown;
39
39
  } | undefined;
40
+ icons?: {
41
+ src: string;
42
+ mimeType?: string | undefined;
43
+ sizes?: string[] | undefined;
44
+ }[] | undefined;
45
+ title?: string | undefined;
40
46
  };
41
47
  handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./tools/types").ToolCallResult>;
42
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oDAKlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAL+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAOnF,wBAA2C"}
1
+ {"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oDAYlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAZ+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAcnF,wBAA2C"}
@@ -6,37 +6,43 @@ export declare const handler: (_: unknown, args: Record<string, unknown> | undef
6
6
  declare const _default: {
7
7
  metadata: Metadata;
8
8
  tool: {
9
- [x: string]: unknown;
10
- name: string;
11
9
  inputSchema: {
12
10
  [x: string]: unknown;
13
11
  type: "object";
14
12
  properties?: {
15
- [x: string]: unknown;
13
+ [x: string]: object;
16
14
  } | undefined;
17
15
  required?: string[] | undefined;
18
16
  };
19
- title?: string | undefined;
17
+ name: string;
20
18
  description?: string | undefined;
21
19
  outputSchema?: {
22
20
  [x: string]: unknown;
23
21
  type: "object";
24
22
  properties?: {
25
- [x: string]: unknown;
23
+ [x: string]: object;
26
24
  } | undefined;
27
25
  required?: string[] | undefined;
28
26
  } | undefined;
29
27
  annotations?: {
30
- [x: string]: unknown;
31
28
  title?: string | undefined;
32
29
  readOnlyHint?: boolean | undefined;
33
30
  destructiveHint?: boolean | undefined;
34
31
  idempotentHint?: boolean | undefined;
35
32
  openWorldHint?: boolean | undefined;
36
33
  } | undefined;
34
+ execution?: {
35
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
36
+ } | undefined;
37
37
  _meta?: {
38
38
  [x: string]: unknown;
39
39
  } | undefined;
40
+ icons?: {
41
+ src: string;
42
+ mimeType?: string | undefined;
43
+ sizes?: string[] | undefined;
44
+ }[] | undefined;
45
+ title?: string | undefined;
40
46
  };
41
47
  handler: (_: unknown, args: Record<string, unknown> | undefined) => Promise<import("./tools/types").ToolCallResult>;
42
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oDAKlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAL+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAOnF,wBAA2C"}
1
+ {"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oDAYlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAZ+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAcnF,wBAA2C"}
@@ -11,7 +11,7 @@ exports.metadata = {
11
11
  };
12
12
  exports.tool = {
13
13
  name: 'search_docs',
14
- description: 'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
14
+ description: 'Search for documentation for how to use the client to interact with the API.',
15
15
  inputSchema: {
16
16
  type: 'object',
17
17
  properties: {
@@ -22,7 +22,12 @@ exports.tool = {
22
22
  language: {
23
23
  type: 'string',
24
24
  description: 'The language for the SDK to search for.',
25
- enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
25
+ enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
26
+ },
27
+ detail: {
28
+ type: 'string',
29
+ description: 'The amount of detail to return.',
30
+ enum: ['default', 'verbose'],
26
31
  },
27
32
  },
28
33
  required: ['query', 'language'],
@@ -36,6 +41,9 @@ const handler = async (_, args) => {
36
41
  const body = args;
37
42
  const query = new URLSearchParams(body).toString();
38
43
  const result = await fetch(`${docsSearchURL}?${query}`);
44
+ if (!result.ok) {
45
+ throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`);
46
+ }
39
47
  return (0, types_1.asTextContentResult)(await result.json());
40
48
  };
41
49
  exports.handler = handler;
@@ -1 +1 @@
1
- {"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAA8D;AAIjD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,wJAAwJ;IAC1J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aACpF;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,8DAA8D,CAAC;AAE5F,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,I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B;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,8DAA8D,CAAC;AAE5F,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,CACrG,CAAC;IACJ,CAAC;IAED,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAZW,QAAA,OAAO,WAYlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -8,7 +8,7 @@ export const metadata = {
8
8
  };
9
9
  export const tool = {
10
10
  name: 'search_docs',
11
- description: 'Search for documentation for how to use the client to interact with the API.\nThe tool will return an array of Markdown-formatted documentation pages.',
11
+ description: 'Search for documentation for how to use the client to interact with the API.',
12
12
  inputSchema: {
13
13
  type: 'object',
14
14
  properties: {
@@ -19,7 +19,12 @@ export const tool = {
19
19
  language: {
20
20
  type: 'string',
21
21
  description: 'The language for the SDK to search for.',
22
- enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
22
+ enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
23
+ },
24
+ detail: {
25
+ type: 'string',
26
+ description: 'The amount of detail to return.',
27
+ enum: ['default', 'verbose'],
23
28
  },
24
29
  },
25
30
  required: ['query', 'language'],
@@ -33,6 +38,9 @@ export const handler = async (_, args) => {
33
38
  const body = args;
34
39
  const query = new URLSearchParams(body).toString();
35
40
  const result = await fetch(`${docsSearchURL}?${query}`);
41
+ if (!result.ok) {
42
+ throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`);
43
+ }
36
44
  return asTextContentResult(await result.json());
37
45
  };
38
46
  export default { metadata, tool, handler };
@@ -1 +1 @@
1
- {"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE;AAIxC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,wJAAwJ;IAC1J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;aACpF;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,8DAA8D,CAAC;AAEnG,M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,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;KAChC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,8DAA8D,CAAC;AAEnG,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAyC,EAAE,EAAE;IACrF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,aAAa,IAAI,KAAK,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,CACrG,CAAC;IACJ,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -2,7 +2,7 @@ import { Endpoint } from "./tools/types.mjs";
2
2
  /**
3
3
  * A list of tools that expose all the endpoints in the API dynamically.
4
4
  *
5
- * Instead of exposing every endpoint as it's own tool, which uses up too many tokens for LLMs to use at once,
5
+ * Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
6
6
  * we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
7
7
  * a generic endpoint that can be used to invoke any endpoint with the provided arguments.
8
8
  *
@@ -2,7 +2,7 @@ import { Endpoint } from "./tools/types.js";
2
2
  /**
3
3
  * A list of tools that expose all the endpoints in the API dynamically.
4
4
  *
5
- * Instead of exposing every endpoint as it's own tool, which uses up too many tokens for LLMs to use at once,
5
+ * Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
6
6
  * we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
7
7
  * a generic endpoint that can be used to invoke any endpoint with the provided arguments.
8
8
  *
package/dynamic-tools.js CHANGED
@@ -14,7 +14,7 @@ function zodToInputSchema(schema) {
14
14
  /**
15
15
  * A list of tools that expose all the endpoints in the API dynamically.
16
16
  *
17
- * Instead of exposing every endpoint as it's own tool, which uses up too many tokens for LLMs to use at once,
17
+ * Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
18
18
  * we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
19
19
  * a generic endpoint that can be used to invoke any endpoint with the provided arguments.
20
20
  *
package/dynamic-tools.mjs CHANGED
@@ -11,7 +11,7 @@ function zodToInputSchema(schema) {
11
11
  /**
12
12
  * A list of tools that expose all the endpoints in the API dynamically.
13
13
  *
14
- * Instead of exposing every endpoint as it's own tool, which uses up too many tokens for LLMs to use at once,
14
+ * Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
15
15
  * we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
16
16
  * a generic endpoint that can be used to invoke any endpoint with the provided arguments.
17
17
  *
package/filtering.d.mts CHANGED
@@ -1,2 +1,3 @@
1
1
  export declare function maybeFilter(jqFilter: unknown | undefined, response: any): Promise<any>;
2
+ export declare function isJqError(error: any): error is Error;
2
3
  //# sourceMappingURL=filtering.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filtering.d.mts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F"}
1
+ {"version":3,"file":"filtering.d.mts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F;AAMD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAEpD"}
package/filtering.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export declare function maybeFilter(jqFilter: unknown | undefined, response: any): Promise<any>;
2
+ export declare function isJqError(error: any): error is Error;
2
3
  //# sourceMappingURL=filtering.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F"}
1
+ {"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F;AAMD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAEpD"}
package/filtering.js CHANGED
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.maybeFilter = maybeFilter;
7
+ exports.isJqError = isJqError;
7
8
  // @ts-nocheck
8
9
  const jq_web_1 = __importDefault(require("jq-web"));
9
10
  async function maybeFilter(jqFilter, response) {
@@ -17,4 +18,7 @@ async function maybeFilter(jqFilter, response) {
17
18
  async function jq(json, jqFilter) {
18
19
  return (await jq_web_1.default).json(json, jqFilter);
19
20
  }
21
+ function isJqError(error) {
22
+ return error instanceof Error && 'stderr' in error;
23
+ }
20
24
  //# sourceMappingURL=filtering.js.map
package/filtering.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"filtering.js","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":";;;;;AAGA,kCAMC;AATD,cAAc;AACd,oDAA4B;AAErB,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,gBAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"filtering.js","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":";;;;;AAGA,kCAMC;AAMD,8BAEC;AAjBD,cAAc;AACd,oDAA4B;AAErB,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,gBAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,SAAS,CAAC,KAAU;IAClC,OAAO,KAAK,YAAY,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC;AACrD,CAAC"}
package/filtering.mjs CHANGED
@@ -10,4 +10,7 @@ export async function maybeFilter(jqFilter, response) {
10
10
  async function jq(json, jqFilter) {
11
11
  return (await initJq).json(json, jqFilter);
12
12
  }
13
+ export function isJqError(error) {
14
+ return error instanceof Error && 'stderr' in error;
15
+ }
13
16
  //# sourceMappingURL=filtering.mjs.map
package/filtering.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"filtering.mjs","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"OACO,MAAM,MAAM,QAAQ;AAE3B,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"filtering.mjs","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"OACO,MAAM,MAAM,QAAQ;AAE3B,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,QAA6B,EAAE,QAAa;IAC5E,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC7C,OAAO,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC,IAAS,EAAE,QAAgB;IAC3C,OAAO,CAAC,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,KAAK,YAAY,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC;AACrD,CAAC"}
package/headers.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"headers.d.mts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,CAiB5E,CAAC"}
1
+ {"version":3,"file":"headers.d.mts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,CAmB5E,CAAC"}
package/headers.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,CAiB5E,CAAC"}
1
+ {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE,MAAM,WAAW;OACpC,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,eAAO,MAAM,gBAAgB,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,aAAa,CAmB5E,CAAC"}
package/headers.js CHANGED
@@ -10,7 +10,7 @@ const parseAuthHeaders = (req) => {
10
10
  case 'Bearer':
11
11
  return { bearerToken: req.headers.authorization.slice('Bearer '.length) };
12
12
  default:
13
- throw new Error(`Unsupported authorization scheme`);
13
+ throw new Error('Unsupported authorization scheme. Expected the "Authorization" header to be a supported scheme (Bearer).');
14
14
  }
15
15
  }
16
16
  const bearerToken = Array.isArray(req.headers['x-metronome-bearer-token']) ?
package/headers.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"headers.js","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAK/E,MAAM,gBAAgB,GAAG,CAAC,GAAoB,EAA0B,EAAE;IAC/E,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;QACxD,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjE,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,QAAQ;gBACX,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5E;gBACE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;IAED,MAAM,WAAW,GACf,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QACtD,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC5C,OAAO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC,CAAC;AAjBW,QAAA,gBAAgB,oBAiB3B"}
1
+ {"version":3,"file":"headers.js","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAK/E,MAAM,gBAAgB,GAAG,CAAC,GAAoB,EAA0B,EAAE;IAC/E,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;QACxD,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjE,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,QAAQ;gBACX,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5E;gBACE,MAAM,IAAI,KAAK,CACb,0GAA0G,CAC3G,CAAC;QACN,CAAC;IACH,CAAC;IAED,MAAM,WAAW,GACf,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QACtD,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC5C,OAAO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC,CAAC;AAnBW,QAAA,gBAAgB,oBAmB3B"}
package/headers.mjs CHANGED
@@ -7,7 +7,7 @@ export const parseAuthHeaders = (req) => {
7
7
  case 'Bearer':
8
8
  return { bearerToken: req.headers.authorization.slice('Bearer '.length) };
9
9
  default:
10
- throw new Error(`Unsupported authorization scheme`);
10
+ throw new Error('Unsupported authorization scheme. Expected the "Authorization" header to be a supported scheme (Bearer).');
11
11
  }
12
12
  }
13
13
  const bearerToken = Array.isArray(req.headers['x-metronome-bearer-token']) ?
package/headers.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"headers.mjs","sourceRoot":"","sources":["src/headers.ts"],"names":[],"mapp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G,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjE,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,QAAQ;gBACX,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5E;gBACE,MAAM,IAAI,KAAK,CACb,0GAA0G,CAC3G,CAAC;QACN,CAAC;IACH,CAAC;IAED,MAAM,WAAW,GACf,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QACtD,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC5C,OAAO,EAAE,WAAW,EAAE,CAAC;AACzB,CAAC,CAAC"}
package/http.js CHANGED
@@ -38,12 +38,12 @@ const newServer = ({ clientOptions, mcpOptions: defaultMcpOptions, req, res, })
38
38
  mcpOptions,
39
39
  });
40
40
  }
41
- catch {
41
+ catch (error) {
42
42
  res.status(401).json({
43
43
  jsonrpc: '2.0',
44
44
  error: {
45
45
  code: -32000,
46
- message: 'Unauthorized',
46
+ message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
47
47
  },
48
48
  });
49
49
  return null;
package/http.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAGtF,0FAAmG;AAEnG,sDAA8B;AAC9B,gDAAoD;AACpD,0CAA0D;AAC1D,wCAAsE;AACtE,0CAA6C;AAE7C,MAAM,SAAS,GAAG,CAAC,EACjB,aAAa,EACb,UAAU,EAAE,iBAAiB,EAC7B,GAAG,EACH,GAAG,GAMJ,EAAoB,EAAE;IACrB,MAAM,MAAM,GA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AC;AACb,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B;AAEK,MAAM,0BAA0B,GAAG,KAAK,EAAE,OAAmB,EAAE,IAAiC,EAAE,EAAE;IACzG,MAAM,GAAG,GAAG,IAAA,yBAAiB,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;IAEjC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,CAAC,KAAK,CAAC,4CAA4C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,iDAAiD,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,iDAAiD,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,0BAA0B,8BAYrC"}
package/http.mjs CHANGED
@@ -32,12 +32,12 @@ const newServer = ({ clientOptions, mcpOptions: defaultMcpOptions, req, res, })
32
32
  mcpOptions,
33
33
  });
34
34
  }
35
- catch {
35
+ catch (error) {
36
36
  res.status(401).json({
37
37
  jsonrpc: '2.0',
38
38
  error: {
39
39
  code: -32000,
40
- message: 'Unauthorized',
40
+ message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
41
41
  },
42
42
  });
43
43
  return null;
package/http.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"http.mjs","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,6BAA6B,EAAE,MAAM,oDAAoD;OAE3F,OAAO,MAAM,SAAS;OACtB,EAAE,SAAS,EAAE,MAAM,yBAAyB;OAC5C,EAAc,iB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;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AA+BF,wBAAgB,eAAe,IAAI,UAAU,CA6N5C;AAiCD,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,UAAU,CAgGxF"}
package/options.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":"OAIO,EAAa,MAAM,EAAE;OACrB,EAAE,kBAAkB,EAAgB,UAAU,EAAE;AAEvD,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AA+BF,wBAAgB,eAAe,IAAI,UAAU,CA6N5C;AA+BD,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,UAAU,CA2FxF"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":"OAIO,EAAa,MAAM,EAAE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