@metronome/mcp 2.1.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.
- package/README.md +37 -1
- package/code-tool-types.d.mts +2 -0
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +2 -0
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +45 -3
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +45 -3
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +28 -133
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +28 -100
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +12 -6
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +12 -6
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +10 -2
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +10 -2
- package/docs-search-tool.mjs.map +1 -1
- package/dynamic-tools.d.mts +1 -1
- package/dynamic-tools.d.ts +1 -1
- package/dynamic-tools.js +1 -1
- package/dynamic-tools.mjs +1 -1
- package/filtering.d.mts +1 -0
- package/filtering.d.mts.map +1 -1
- package/filtering.d.ts +1 -0
- package/filtering.d.ts.map +1 -1
- package/filtering.js +4 -0
- package/filtering.js.map +1 -1
- package/filtering.mjs +3 -0
- package/filtering.mjs.map +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -1
- package/headers.js.map +1 -1
- package/headers.mjs +1 -1
- package/headers.mjs.map +1 -1
- package/http.js +2 -2
- package/http.js.map +1 -1
- package/http.mjs +2 -2
- package/http.mjs.map +1 -1
- package/options.d.mts.map +1 -1
- package/options.d.ts.map +1 -1
- package/options.js +6 -3
- package/options.js.map +1 -1
- package/options.mjs +6 -3
- package/options.mjs.map +1 -1
- package/package.json +6 -20
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-types.ts +5 -1
- package/src/code-tool.ts +38 -122
- package/src/docs-search-tool.ts +14 -3
- package/src/dynamic-tools.ts +1 -1
- package/src/filtering.ts +4 -0
- package/src/headers.ts +3 -1
- package/src/http.ts +2 -2
- package/src/options.ts +10 -3
- package/src/server.ts +1 -1
- package/src/tools/types.ts +12 -0
- package/src/tools/v1/alerts/archive-v1-alerts.ts +10 -3
- package/src/tools/v1/alerts/create-v1-alerts.ts +27 -3
- package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +10 -3
- package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +10 -3
- package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +10 -3
- package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +10 -3
- package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +10 -3
- package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +6 -0
- package/src/tools/v1/contracts/amend-v1-contracts.ts +9 -2
- package/src/tools/v1/contracts/archive-v1-contracts.ts +10 -3
- package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +9 -2
- package/src/tools/v1/contracts/create-v1-contracts.ts +58 -5
- package/src/tools/v1/contracts/list-balances-v1-contracts.ts +9 -2
- package/src/tools/v1/contracts/list-v1-contracts.ts +9 -2
- package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +12 -5
- package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +12 -3
- package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +10 -3
- package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +10 -3
- package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +12 -3
- package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +10 -3
- package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +12 -3
- package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +12 -3
- package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +10 -3
- package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +10 -3
- package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +12 -5
- package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +12 -3
- package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +12 -5
- package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +12 -5
- package/src/tools/v1/contracts/retrieve-v1-contracts.ts +9 -2
- package/src/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.ts +9 -2
- package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +10 -3
- package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +10 -3
- package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +10 -3
- package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +10 -3
- package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +10 -3
- package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +10 -3
- package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +10 -3
- package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +11 -4
- package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +25 -2
- package/src/tools/v1/customers/archive-v1-customers.ts +10 -3
- package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +6 -0
- package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +13 -6
- package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +9 -2
- package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +9 -2
- package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +12 -5
- package/src/tools/v1/customers/create-v1-customers.ts +47 -3
- package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +10 -3
- package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +9 -2
- package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +12 -5
- package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +12 -5
- package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +9 -2
- package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +9 -2
- package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +9 -2
- package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +1 -1
- package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +10 -3
- package/src/tools/v1/customers/list-costs-v1-customers.ts +10 -3
- package/src/tools/v1/customers/list-v1-customers.ts +10 -3
- package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +12 -5
- package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +10 -3
- package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +10 -3
- package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +10 -3
- package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +11 -4
- package/src/tools/v1/customers/preview-events-v1-customers.ts +9 -2
- package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +12 -5
- package/src/tools/v1/customers/retrieve-v1-customers.ts +10 -3
- package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +20 -5
- package/src/tools/v1/customers/set-name-v1-customers.ts +10 -3
- package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +12 -3
- package/src/tools/v1/invoices/regenerate-v1-invoices.ts +10 -3
- package/src/tools/v1/invoices/void-v1-invoices.ts +10 -3
- package/src/tools/v1/payments/attempt-v1-payments.ts +10 -3
- package/src/tools/v1/payments/cancel-v1-payments.ts +10 -3
- package/src/tools/v1/payments/list-v1-payments.ts +10 -3
- package/src/tools/v1/plans/get-details-v1-plans.ts +10 -3
- package/src/tools/v1/plans/list-charges-v1-plans.ts +10 -3
- package/src/tools/v1/plans/list-customers-v1-plans.ts +10 -3
- package/src/tools/v1/plans/list-v1-plans.ts +10 -3
- package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +10 -3
- package/src/tools/v1/services/list-v1-services.ts +10 -3
- package/src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts +13 -6
- package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +12 -5
- package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +17 -5
- package/src/tools/v1/usage/list-v1-usage.ts +10 -3
- package/src/tools/v1/usage/list-with-groups-v1-usage.ts +10 -3
- package/src/tools/v1/usage/search-v1-usage.ts +11 -4
- package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +18 -3
- package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +18 -3
- package/src/tools/v2/contracts/edit-v2-contracts.ts +158 -5
- package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +9 -2
- package/src/tools/v2/contracts/list-v2-contracts.ts +9 -2
- package/src/tools/v2/contracts/retrieve-v2-contracts.ts +9 -2
- package/tools/types.d.mts +1 -0
- package/tools/types.d.mts.map +1 -1
- package/tools/types.d.ts +1 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +12 -0
- package/tools/types.js.map +1 -1
- package/tools/types.mjs +11 -0
- package/tools/types.mjs.map +1 -1
- package/tools/v1/alerts/archive-v1-alerts.d.mts +12 -6
- package/tools/v1/alerts/archive-v1-alerts.d.mts.map +1 -1
- package/tools/v1/alerts/archive-v1-alerts.d.ts +12 -6
- package/tools/v1/alerts/archive-v1-alerts.d.ts.map +1 -1
- package/tools/v1/alerts/archive-v1-alerts.js +13 -1
- package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
- package/tools/v1/alerts/archive-v1-alerts.mjs +12 -3
- package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.d.mts +12 -6
- package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.d.ts +12 -6
- package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.js +29 -1
- package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.mjs +28 -3
- package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.d.mts +12 -6
- package/tools/v1/audit-logs/list-v1-audit-logs.d.mts.map +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.d.ts +12 -6
- package/tools/v1/audit-logs/list-v1-audit-logs.d.ts.map +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.js +13 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.mjs +12 -3
- package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts +12 -6
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts.map +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts +12 -6
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts.map +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +13 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +12 -3
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts +12 -6
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts +12 -6
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.js +13 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +12 -3
- package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts +12 -6
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts.map +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts +12 -6
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts.map +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.js +13 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +12 -3
- package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts +12 -6
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts.map +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts +12 -6
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts.map +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +13 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +12 -3
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +5 -0
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +5 -0
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.js +13 -1
- package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.mjs +11 -2
- package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/archive-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/archive-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/archive-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/archive-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/archive-v1-contracts.js +13 -1
- package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/archive-v1-contracts.mjs +12 -3
- package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +13 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +11 -2
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.js +57 -4
- package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.mjs +55 -5
- package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.js +13 -1
- package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.mjs +11 -2
- package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/list-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/list-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/list-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/list-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/list-v1-contracts.js +13 -1
- package/tools/v1/contracts/list-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/list-v1-contracts.mjs +11 -2
- package/tools/v1/contracts/list-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts +12 -6
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts.map +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts +12 -6
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts.map +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +13 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +12 -3
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts +12 -6
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +1 -1
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts +12 -6
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts +12 -6
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts.map +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts +12 -6
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts.map +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.js +13 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +12 -3
- package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.d.mts +12 -6
- package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.d.ts +12 -6
- package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.js +13 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.mjs +12 -3
- package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.d.mts +12 -6
- package/tools/v1/contracts/products/list-contracts-v1-products.d.mts.map +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.d.ts +12 -6
- package/tools/v1/contracts/products/list-contracts-v1-products.d.ts.map +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.js +13 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.mjs +12 -3
- package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts +12 -6
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts.map +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts +12 -6
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts.map +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +13 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +12 -3
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.d.mts +12 -6
- package/tools/v1/contracts/products/update-contracts-v1-products.d.mts.map +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.d.ts +12 -6
- package/tools/v1/contracts/products/update-contracts-v1-products.d.ts.map +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.js +13 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.mjs +12 -3
- package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +13 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +12 -3
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +13 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +12 -3
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +13 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +12 -3
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +13 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +12 -3
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +13 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +12 -3
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +13 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +12 -3
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +13 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +12 -3
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +13 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +12 -3
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +13 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +12 -3
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +13 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +12 -3
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +13 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +12 -3
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts +12 -6
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts +12 -6
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +13 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +12 -3
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +13 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +12 -3
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +13 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +12 -3
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/retrieve-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/retrieve-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/retrieve-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/retrieve-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/retrieve-v1-contracts.js +13 -1
- package/tools/v1/contracts/retrieve-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/retrieve-v1-contracts.mjs +11 -2
- package/tools/v1/contracts/retrieve-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js +13 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs +11 -2
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.d.mts +12 -6
- package/tools/v1/contracts/update-end-date-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.d.ts +12 -6
- package/tools/v1/contracts/update-end-date-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.js +13 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.mjs +12 -3
- package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.d.mts +12 -6
- package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.d.ts +12 -6
- package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js +13 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs +12 -3
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts +12 -6
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts +12 -6
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js +13 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +12 -3
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts +12 -6
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts +12 -6
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +13 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +12 -3
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.d.mts +12 -6
- package/tools/v1/credit-grants/list-v1-credit-grants.d.mts.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.d.ts +12 -6
- package/tools/v1/credit-grants/list-v1-credit-grants.d.ts.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js +13 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs +12 -3
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.d.mts +12 -6
- package/tools/v1/credit-grants/void-v1-credit-grants.d.mts.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.d.ts +12 -6
- package/tools/v1/credit-grants/void-v1-credit-grants.d.ts.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js +13 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs +12 -3
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts +12 -6
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts +12 -6
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts +12 -6
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts +12 -6
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts +12 -6
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts +12 -6
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +13 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +12 -3
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts +12 -6
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts +12 -6
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts +12 -6
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts +12 -6
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts +12 -6
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts +12 -6
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js +14 -2
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +13 -4
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts +12 -6
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +1 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts +12 -6
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts +12 -6
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts +12 -6
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +28 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +26 -2
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
- package/tools/v1/customers/archive-v1-customers.d.mts +12 -6
- package/tools/v1/customers/archive-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/archive-v1-customers.d.ts +12 -6
- package/tools/v1/customers/archive-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/archive-v1-customers.js +13 -1
- package/tools/v1/customers/archive-v1-customers.js.map +1 -1
- package/tools/v1/customers/archive-v1-customers.mjs +12 -3
- package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts +12 -6
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts +12 -6
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +6 -0
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +6 -0
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts +12 -6
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts +12 -6
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts +12 -6
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts +12 -6
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +14 -2
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +13 -4
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.d.mts +12 -6
- package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.d.ts +12 -6
- package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.js +13 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs +11 -2
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.d.mts +12 -6
- package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.d.ts +12 -6
- package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.js +13 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.mjs +11 -2
- package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts +12 -6
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts.map +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts +12 -6
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts.map +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +13 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +12 -3
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/create-v1-customers.d.mts +12 -6
- package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/create-v1-customers.d.ts +12 -6
- package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/create-v1-customers.js +47 -1
- package/tools/v1/customers/create-v1-customers.js.map +1 -1
- package/tools/v1/customers/create-v1-customers.mjs +46 -3
- package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.d.mts +12 -6
- package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.d.ts +12 -6
- package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.js +13 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.mjs +12 -3
- package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.d.mts +12 -6
- package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.d.ts +12 -6
- package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.js +13 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.js.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.mjs +11 -2
- package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts +12 -6
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts.map +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts +12 -6
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts.map +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +13 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +12 -3
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts +12 -6
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts +12 -6
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +13 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +12 -3
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts +12 -6
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts.map +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts +12 -6
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts.map +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +13 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +11 -2
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts +12 -6
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts.map +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts +12 -6
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts.map +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.js +13 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +11 -2
- package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts +12 -6
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts +12 -6
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +13 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +11 -2
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +12 -6
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +12 -6
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts +12 -6
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts +12 -6
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.js +13 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +12 -3
- package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.d.mts +12 -6
- package/tools/v1/customers/list-costs-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.d.ts +12 -6
- package/tools/v1/customers/list-costs-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.js +13 -1
- package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs +12 -3
- package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/list-v1-customers.d.mts +12 -6
- package/tools/v1/customers/list-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/list-v1-customers.d.ts +12 -6
- package/tools/v1/customers/list-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/list-v1-customers.js +13 -1
- package/tools/v1/customers/list-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-v1-customers.mjs +12 -3
- package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts +12 -6
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts.map +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts +12 -6
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts.map +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +13 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +12 -3
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts +12 -6
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +1 -1
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts +12 -6
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.d.mts +12 -6
- package/tools/v1/customers/plans/add-customers-v1-plans.d.mts.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.d.ts +12 -6
- package/tools/v1/customers/plans/add-customers-v1-plans.d.ts.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js +13 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs +12 -3
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.d.mts +12 -6
- package/tools/v1/customers/plans/end-customers-v1-plans.d.mts.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.d.ts +12 -6
- package/tools/v1/customers/plans/end-customers-v1-plans.d.ts.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js +13 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs +12 -3
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.d.mts +12 -6
- package/tools/v1/customers/plans/list-customers-v1-plans.d.mts.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.d.ts +12 -6
- package/tools/v1/customers/plans/list-customers-v1-plans.d.ts.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js +13 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs +12 -3
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts +12 -6
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts +12 -6
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +14 -2
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +13 -4
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.d.mts +12 -6
- package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.d.ts +12 -6
- package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.js +13 -1
- package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.mjs +11 -2
- package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts +12 -6
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts +12 -6
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +13 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +12 -3
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/retrieve-v1-customers.d.mts +12 -6
- package/tools/v1/customers/retrieve-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/retrieve-v1-customers.d.ts +12 -6
- package/tools/v1/customers/retrieve-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/retrieve-v1-customers.js +13 -1
- package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
- package/tools/v1/customers/retrieve-v1-customers.mjs +12 -3
- package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts +12 -6
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts +12 -6
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.js +21 -4
- package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +19 -5
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts +12 -6
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts +12 -6
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/set-name-v1-customers.d.mts +12 -6
- package/tools/v1/customers/set-name-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/set-name-v1-customers.d.ts +12 -6
- package/tools/v1/customers/set-name-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/set-name-v1-customers.js +13 -1
- package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
- package/tools/v1/customers/set-name-v1-customers.mjs +12 -3
- package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/update-config-v1-customers.d.mts +12 -6
- package/tools/v1/customers/update-config-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/update-config-v1-customers.d.ts +12 -6
- package/tools/v1/customers/update-config-v1-customers.d.ts.map +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts +12 -6
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts +12 -6
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +13 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +12 -3
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.d.mts +12 -6
- package/tools/v1/invoices/regenerate-v1-invoices.d.mts.map +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.d.ts +12 -6
- package/tools/v1/invoices/regenerate-v1-invoices.d.ts.map +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.js +13 -1
- package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.mjs +12 -3
- package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
- package/tools/v1/invoices/void-v1-invoices.d.mts +12 -6
- package/tools/v1/invoices/void-v1-invoices.d.mts.map +1 -1
- package/tools/v1/invoices/void-v1-invoices.d.ts +12 -6
- package/tools/v1/invoices/void-v1-invoices.d.ts.map +1 -1
- package/tools/v1/invoices/void-v1-invoices.js +13 -1
- package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
- package/tools/v1/invoices/void-v1-invoices.mjs +12 -3
- package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.d.mts +12 -6
- package/tools/v1/payments/attempt-v1-payments.d.mts.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.d.ts +12 -6
- package/tools/v1/payments/attempt-v1-payments.d.ts.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.js +13 -1
- package/tools/v1/payments/attempt-v1-payments.js.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.mjs +12 -3
- package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.d.mts +12 -6
- package/tools/v1/payments/cancel-v1-payments.d.mts.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.d.ts +12 -6
- package/tools/v1/payments/cancel-v1-payments.d.ts.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.js +13 -1
- package/tools/v1/payments/cancel-v1-payments.js.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.mjs +12 -3
- package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -1
- package/tools/v1/payments/list-v1-payments.d.mts +12 -6
- package/tools/v1/payments/list-v1-payments.d.mts.map +1 -1
- package/tools/v1/payments/list-v1-payments.d.ts +12 -6
- package/tools/v1/payments/list-v1-payments.d.ts.map +1 -1
- package/tools/v1/payments/list-v1-payments.js +13 -1
- package/tools/v1/payments/list-v1-payments.js.map +1 -1
- package/tools/v1/payments/list-v1-payments.mjs +12 -3
- package/tools/v1/payments/list-v1-payments.mjs.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.d.mts +12 -6
- package/tools/v1/plans/get-details-v1-plans.d.mts.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.d.ts +12 -6
- package/tools/v1/plans/get-details-v1-plans.d.ts.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.js +13 -1
- package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.mjs +12 -3
- package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.d.mts +12 -6
- package/tools/v1/plans/list-charges-v1-plans.d.mts.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.d.ts +12 -6
- package/tools/v1/plans/list-charges-v1-plans.d.ts.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.js +13 -1
- package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs +12 -3
- package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.d.mts +12 -6
- package/tools/v1/plans/list-customers-v1-plans.d.mts.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.d.ts +12 -6
- package/tools/v1/plans/list-customers-v1-plans.d.ts.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.js +13 -1
- package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs +12 -3
- package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-v1-plans.d.mts +12 -6
- package/tools/v1/plans/list-v1-plans.d.mts.map +1 -1
- package/tools/v1/plans/list-v1-plans.d.ts +12 -6
- package/tools/v1/plans/list-v1-plans.d.ts.map +1 -1
- package/tools/v1/plans/list-v1-plans.js +13 -1
- package/tools/v1/plans/list-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-v1-plans.mjs +12 -3
- package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.d.mts +12 -6
- package/tools/v1/pricing-units/list-v1-pricing-units.d.mts.map +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.d.ts +12 -6
- package/tools/v1/pricing-units/list-v1-pricing-units.d.ts.map +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.js +13 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.mjs +12 -3
- package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
- package/tools/v1/services/list-v1-services.d.mts +12 -6
- package/tools/v1/services/list-v1-services.d.mts.map +1 -1
- package/tools/v1/services/list-v1-services.d.ts +12 -6
- package/tools/v1/services/list-v1-services.d.ts.map +1 -1
- package/tools/v1/services/list-v1-services.js +13 -1
- package/tools/v1/services/list-v1-services.js.map +1 -1
- package/tools/v1/services/list-v1-services.mjs +12 -3
- package/tools/v1/services/list-v1-services.mjs.map +1 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts +12 -6
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +1 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +12 -6
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +1 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +14 -2
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +1 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +13 -4
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +1 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +12 -6
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +1 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +12 -6
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +1 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +13 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +1 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +12 -3
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +1 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +12 -6
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +1 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +12 -6
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +1 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +17 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +1 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +16 -3
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +1 -1
- package/tools/v1/usage/ingest-v1-usage.d.mts +12 -6
- package/tools/v1/usage/ingest-v1-usage.d.mts.map +1 -1
- package/tools/v1/usage/ingest-v1-usage.d.ts +12 -6
- package/tools/v1/usage/ingest-v1-usage.d.ts.map +1 -1
- package/tools/v1/usage/list-v1-usage.d.mts +12 -6
- package/tools/v1/usage/list-v1-usage.d.mts.map +1 -1
- package/tools/v1/usage/list-v1-usage.d.ts +12 -6
- package/tools/v1/usage/list-v1-usage.d.ts.map +1 -1
- package/tools/v1/usage/list-v1-usage.js +13 -1
- package/tools/v1/usage/list-v1-usage.js.map +1 -1
- package/tools/v1/usage/list-v1-usage.mjs +12 -3
- package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.d.mts +12 -6
- package/tools/v1/usage/list-with-groups-v1-usage.d.mts.map +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.d.ts +12 -6
- package/tools/v1/usage/list-with-groups-v1-usage.d.ts.map +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.js +13 -1
- package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.mjs +12 -3
- package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
- package/tools/v1/usage/search-v1-usage.d.mts +12 -6
- package/tools/v1/usage/search-v1-usage.d.mts.map +1 -1
- package/tools/v1/usage/search-v1-usage.d.ts +12 -6
- package/tools/v1/usage/search-v1-usage.d.ts.map +1 -1
- package/tools/v1/usage/search-v1-usage.js +14 -2
- package/tools/v1/usage/search-v1-usage.js.map +1 -1
- package/tools/v1/usage/search-v1-usage.mjs +13 -4
- package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.d.mts +12 -6
- package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.d.ts +12 -6
- package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.js +21 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.mjs +20 -3
- package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.d.mts +12 -6
- package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.d.ts +12 -6
- package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.js +21 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.mjs +20 -3
- package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.d.mts +12 -6
- package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.d.ts +12 -6
- package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.js +154 -4
- package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.mjs +152 -5
- package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts +12 -6
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts +12 -6
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.js +13 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +11 -2
- package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/list-v2-contracts.d.mts +12 -6
- package/tools/v2/contracts/list-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/list-v2-contracts.d.ts +12 -6
- package/tools/v2/contracts/list-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/list-v2-contracts.js +13 -1
- package/tools/v2/contracts/list-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/list-v2-contracts.mjs +11 -2
- package/tools/v2/contracts/list-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.d.mts +12 -6
- package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.d.ts +12 -6
- package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.js +13 -1
- package/tools/v2/contracts/retrieve-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.mjs +11 -2
- package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +1 -1
- package/code-tool-paths.cjs +0 -6
- package/code-tool-paths.cjs.map +0 -1
- package/code-tool-paths.d.cts +0 -2
- package/code-tool-paths.d.cts.map +0 -1
- package/code-tool-worker.d.mts +0 -5
- package/code-tool-worker.d.mts.map +0 -1
- package/code-tool-worker.d.ts +0 -5
- package/code-tool-worker.d.ts.map +0 -1
- package/code-tool-worker.js +0 -45
- package/code-tool-worker.js.map +0 -1
- package/code-tool-worker.mjs +0 -40
- package/code-tool-worker.mjs.map +0 -1
- package/src/code-tool-paths.cts +0 -3
- package/src/code-tool-worker.ts +0 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metronome/mcp",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "The official MCP Server for the Metronome API",
|
|
5
5
|
"author": "Metronome <dev-feedback@metronome.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -27,14 +27,16 @@
|
|
|
27
27
|
"fix": "eslint --fix --ext ts,js ."
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@metronome/sdk": "^2.
|
|
30
|
+
"@metronome/sdk": "^2.2.0",
|
|
31
31
|
"@cloudflare/cabidela": "^0.2.4",
|
|
32
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
33
33
|
"@valtown/deno-http-worker": "^0.0.21",
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^5.1.0",
|
|
36
|
-
"
|
|
36
|
+
"fuse.js": "^7.1.0",
|
|
37
|
+
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
|
|
37
38
|
"qs": "^6.14.0",
|
|
39
|
+
"typescript": "5.8.3",
|
|
38
40
|
"yargs": "^17.7.2",
|
|
39
41
|
"zod": "^3.25.20",
|
|
40
42
|
"zod-to-json-schema": "^3.24.5",
|
|
@@ -56,12 +58,6 @@
|
|
|
56
58
|
"types": "./index.d.mts",
|
|
57
59
|
"default": "./index.mjs"
|
|
58
60
|
},
|
|
59
|
-
"./code-tool-paths": {
|
|
60
|
-
"require": "./code-tool-paths.cjs"
|
|
61
|
-
},
|
|
62
|
-
"./code-tool-paths.cjs": {
|
|
63
|
-
"default": "./code-tool-paths.cjs"
|
|
64
|
-
},
|
|
65
61
|
"./code-tool-types": {
|
|
66
62
|
"import": "./code-tool-types.mjs",
|
|
67
63
|
"require": "./code-tool-types.js"
|
|
@@ -72,16 +68,6 @@
|
|
|
72
68
|
"./code-tool-types.mjs": {
|
|
73
69
|
"default": "./code-tool-types.mjs"
|
|
74
70
|
},
|
|
75
|
-
"./code-tool-worker": {
|
|
76
|
-
"import": "./code-tool-worker.mjs",
|
|
77
|
-
"require": "./code-tool-worker.js"
|
|
78
|
-
},
|
|
79
|
-
"./code-tool-worker.js": {
|
|
80
|
-
"default": "./code-tool-worker.js"
|
|
81
|
-
},
|
|
82
|
-
"./code-tool-worker.mjs": {
|
|
83
|
-
"default": "./code-tool-worker.mjs"
|
|
84
|
-
},
|
|
85
71
|
"./code-tool": {
|
|
86
72
|
"import": "./code-tool.mjs",
|
|
87
73
|
"require": "./code-tool.js"
|
package/server.js
CHANGED
|
@@ -22,7 +22,7 @@ var tools_2 = require("./tools.js");
|
|
|
22
22
|
Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
|
|
23
23
|
const newMcpServer = () => new mcp_js_1.McpServer({
|
|
24
24
|
name: 'metronome_sdk_api',
|
|
25
|
-
version: '2.
|
|
25
|
+
version: '2.2.0',
|
|
26
26
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
27
27
|
exports.newMcpServer = newMcpServer;
|
|
28
28
|
// Create server instance
|
package/server.mjs
CHANGED
|
@@ -11,7 +11,7 @@ export { ClientType } from "./compat.mjs";
|
|
|
11
11
|
export { endpoints } from "./tools.mjs";
|
|
12
12
|
export const newMcpServer = () => new McpServer({
|
|
13
13
|
name: 'metronome_sdk_api',
|
|
14
|
-
version: '2.
|
|
14
|
+
version: '2.2.0',
|
|
15
15
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
16
16
|
// Create server instance
|
|
17
17
|
export const server = newMcpServer();
|
package/src/code-tool-types.ts
CHANGED
package/src/code-tool.ts
CHANGED
|
@@ -1,146 +1,62 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import Metronome, { ClientOptions } from '@metronome/sdk';
|
|
6
|
-
import { Endpoint, ContentBlock, Metadata } from './tools/types';
|
|
7
|
-
|
|
3
|
+
import { Metadata, ToolCallResult, asTextContentResult } from './tools/types';
|
|
8
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
|
|
5
|
+
import { readEnv } from './server';
|
|
6
|
+
import { WorkerSuccess } from './code-tool-types';
|
|
12
7
|
/**
|
|
13
8
|
* A tool that runs code against a copy of the SDK.
|
|
14
9
|
*
|
|
15
|
-
* Instead of exposing every endpoint as
|
|
10
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
16
11
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
17
12
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
18
13
|
*
|
|
19
14
|
* @param endpoints - The endpoints to include in the list.
|
|
20
15
|
*/
|
|
21
|
-
export async function codeTool()
|
|
16
|
+
export async function codeTool() {
|
|
22
17
|
const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
23
18
|
const tool: Tool = {
|
|
24
19
|
name: 'execute',
|
|
25
20
|
description:
|
|
26
|
-
'Runs
|
|
21
|
+
'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.',
|
|
27
22
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
28
23
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
spawnOptions: {
|
|
49
|
-
cwd: dirname(workerPath),
|
|
24
|
+
const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
|
|
25
|
+
const code = args.code as string;
|
|
26
|
+
|
|
27
|
+
// this is not required, but passing a Stainless API key for the matching project_name
|
|
28
|
+
// will allow you to run code-mode queries against non-published versions of your SDK.
|
|
29
|
+
const stainlessAPIKey = readEnv('STAINLESS_API_KEY');
|
|
30
|
+
const codeModeEndpoint =
|
|
31
|
+
readEnv('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
|
|
32
|
+
|
|
33
|
+
const res = await fetch(codeModeEndpoint, {
|
|
34
|
+
method: 'POST',
|
|
35
|
+
headers: {
|
|
36
|
+
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
client_envs: JSON.stringify({
|
|
39
|
+
METRONOME_BEARER_TOKEN: readEnv('METRONOME_BEARER_TOKEN'),
|
|
40
|
+
METRONOME_WEBHOOK_SECRET: readEnv('METRONOME_WEBHOOK_SECRET'),
|
|
41
|
+
METRONOME_BASE_URL: readEnv('METRONOME_BASE_URL'),
|
|
42
|
+
}),
|
|
50
43
|
},
|
|
44
|
+
body: JSON.stringify({
|
|
45
|
+
project_name: 'metronome',
|
|
46
|
+
client_opts: {},
|
|
47
|
+
code,
|
|
48
|
+
}),
|
|
51
49
|
});
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
const opts: ClientOptions = {
|
|
60
|
-
baseURL: client.baseURL,
|
|
61
|
-
bearerToken: client.bearerToken,
|
|
62
|
-
webhookSecret: client.webhookSecret,
|
|
63
|
-
defaultHeaders: {
|
|
64
|
-
'X-Stainless-MCP': 'true',
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
const req = worker.request(
|
|
69
|
-
'http://localhost',
|
|
70
|
-
{
|
|
71
|
-
headers: {
|
|
72
|
-
'content-type': 'application/json',
|
|
73
|
-
},
|
|
74
|
-
method: 'POST',
|
|
75
|
-
},
|
|
76
|
-
(resp) => {
|
|
77
|
-
const body: Uint8Array[] = [];
|
|
78
|
-
resp.on('error', (err) => {
|
|
79
|
-
reject(err);
|
|
80
|
-
});
|
|
81
|
-
resp.on('data', (chunk) => {
|
|
82
|
-
body.push(chunk);
|
|
83
|
-
});
|
|
84
|
-
resp.on('end', () => {
|
|
85
|
-
resolve(
|
|
86
|
-
new Response(Buffer.concat(body).toString(), {
|
|
87
|
-
status: resp.statusCode ?? 200,
|
|
88
|
-
headers: resp.headers as any,
|
|
89
|
-
}),
|
|
90
|
-
);
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
const body = JSON.stringify({
|
|
96
|
-
opts,
|
|
97
|
-
code,
|
|
98
|
-
} satisfies WorkerInput);
|
|
99
|
-
|
|
100
|
-
req.write(body, (err) => {
|
|
101
|
-
if (err !== null && err !== undefined) {
|
|
102
|
-
reject(err);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
req.end();
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
if (resp.status === 200) {
|
|
110
|
-
const { result, logLines, errLines } = (await resp.json()) as WorkerSuccess;
|
|
111
|
-
const returnOutput: ContentBlock | null =
|
|
112
|
-
result === null ? null
|
|
113
|
-
: result === undefined ? null
|
|
114
|
-
: {
|
|
115
|
-
type: 'text',
|
|
116
|
-
text: typeof result === 'string' ? (result as string) : JSON.stringify(result),
|
|
117
|
-
};
|
|
118
|
-
const logOutput: ContentBlock | null =
|
|
119
|
-
logLines.length === 0 ?
|
|
120
|
-
null
|
|
121
|
-
: {
|
|
122
|
-
type: 'text',
|
|
123
|
-
text: logLines.join('\n'),
|
|
124
|
-
};
|
|
125
|
-
const errOutput: ContentBlock | null =
|
|
126
|
-
errLines.length === 0 ?
|
|
127
|
-
null
|
|
128
|
-
: {
|
|
129
|
-
type: 'text',
|
|
130
|
-
text: 'Error output:\n' + errLines.join('\n'),
|
|
131
|
-
};
|
|
132
|
-
return {
|
|
133
|
-
content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
|
|
134
|
-
};
|
|
135
|
-
} else {
|
|
136
|
-
const { message } = (await resp.json()) as WorkerError;
|
|
137
|
-
throw new Error(message);
|
|
138
|
-
}
|
|
139
|
-
} catch (e) {
|
|
140
|
-
throw e;
|
|
141
|
-
} finally {
|
|
142
|
-
worker.terminate();
|
|
51
|
+
if (!res.ok) {
|
|
52
|
+
throw new Error(
|
|
53
|
+
`${res.status}: ${
|
|
54
|
+
res.statusText
|
|
55
|
+
} error when trying to contact Code Tool server. Details: ${await res.text()}`,
|
|
56
|
+
);
|
|
143
57
|
}
|
|
58
|
+
|
|
59
|
+
return asTextContentResult((await res.json()) as WorkerSuccess);
|
|
144
60
|
};
|
|
145
61
|
|
|
146
62
|
return { metadata, tool, handler };
|
package/src/docs-search-tool.ts
CHANGED
|
@@ -13,8 +13,7 @@ export const metadata: Metadata = {
|
|
|
13
13
|
|
|
14
14
|
export const tool: Tool = {
|
|
15
15
|
name: 'search_docs',
|
|
16
|
-
description:
|
|
17
|
-
'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.',
|
|
16
|
+
description: 'Search for documentation for how to use the client to interact with the API.',
|
|
18
17
|
inputSchema: {
|
|
19
18
|
type: 'object',
|
|
20
19
|
properties: {
|
|
@@ -25,7 +24,12 @@ export const tool: Tool = {
|
|
|
25
24
|
language: {
|
|
26
25
|
type: 'string',
|
|
27
26
|
description: 'The language for the SDK to search for.',
|
|
28
|
-
enum: ['http', 'python', 'go', 'typescript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
27
|
+
enum: ['http', 'python', 'go', 'typescript', 'javascript', 'terraform', 'ruby', 'java', 'kotlin'],
|
|
28
|
+
},
|
|
29
|
+
detail: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'The amount of detail to return.',
|
|
32
|
+
enum: ['default', 'verbose'],
|
|
29
33
|
},
|
|
30
34
|
},
|
|
31
35
|
required: ['query', 'language'],
|
|
@@ -42,6 +46,13 @@ export const handler = async (_: unknown, args: Record<string, unknown> | undefi
|
|
|
42
46
|
const body = args as any;
|
|
43
47
|
const query = new URLSearchParams(body).toString();
|
|
44
48
|
const result = await fetch(`${docsSearchURL}?${query}`);
|
|
49
|
+
|
|
50
|
+
if (!result.ok) {
|
|
51
|
+
throw new Error(
|
|
52
|
+
`${result.status}: ${result.statusText} when using doc search tool. Details: ${await result.text()}`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
45
56
|
return asTextContentResult(await result.json());
|
|
46
57
|
};
|
|
47
58
|
|
package/src/dynamic-tools.ts
CHANGED
|
@@ -14,7 +14,7 @@ function zodToInputSchema(schema: z.ZodSchema) {
|
|
|
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
|
|
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/src/filtering.ts
CHANGED
|
@@ -12,3 +12,7 @@ export async function maybeFilter(jqFilter: unknown | undefined, response: any):
|
|
|
12
12
|
async function jq(json: any, jqFilter: string) {
|
|
13
13
|
return (await initJq).json(json, jqFilter);
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
export function isJqError(error: any): error is Error {
|
|
17
|
+
return error instanceof Error && 'stderr' in error;
|
|
18
|
+
}
|
package/src/headers.ts
CHANGED
|
@@ -11,7 +11,9 @@ export const parseAuthHeaders = (req: IncomingMessage): Partial<ClientOptions> =
|
|
|
11
11
|
case 'Bearer':
|
|
12
12
|
return { bearerToken: req.headers.authorization.slice('Bearer '.length) };
|
|
13
13
|
default:
|
|
14
|
-
throw new Error(
|
|
14
|
+
throw new Error(
|
|
15
|
+
'Unsupported authorization scheme. Expected the "Authorization" header to be a supported scheme (Bearer).',
|
|
16
|
+
);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
|
package/src/http.ts
CHANGED
|
@@ -46,12 +46,12 @@ const newServer = ({
|
|
|
46
46
|
},
|
|
47
47
|
mcpOptions,
|
|
48
48
|
});
|
|
49
|
-
} catch {
|
|
49
|
+
} catch (error) {
|
|
50
50
|
res.status(401).json({
|
|
51
51
|
jsonrpc: '2.0',
|
|
52
52
|
error: {
|
|
53
53
|
code: -32000,
|
|
54
|
-
message:
|
|
54
|
+
message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
return null;
|
package/src/options.ts
CHANGED
|
@@ -284,8 +284,10 @@ const coerceArray = <T extends z.ZodTypeAny>(zodType: T) =>
|
|
|
284
284
|
);
|
|
285
285
|
|
|
286
286
|
const QueryOptions = z.object({
|
|
287
|
-
tools: coerceArray(z.enum(['dynamic', 'all', 'docs'])).describe('
|
|
288
|
-
no_tools: coerceArray(z.enum(['dynamic', 'all', 'docs'])).describe(
|
|
287
|
+
tools: coerceArray(z.enum(['dynamic', 'all', 'code', 'docs'])).describe('Specify which MCP tools to use'),
|
|
288
|
+
no_tools: coerceArray(z.enum(['dynamic', 'all', 'code', 'docs'])).describe(
|
|
289
|
+
'Specify which MCP tools to not use.',
|
|
290
|
+
),
|
|
289
291
|
tool: coerceArray(z.string()).describe('Include tools matching the specified names'),
|
|
290
292
|
resource: coerceArray(z.string()).describe('Include tools matching the specified resources'),
|
|
291
293
|
operation: coerceArray(z.enum(['read', 'write'])).describe(
|
|
@@ -385,11 +387,16 @@ export function parseQueryOptions(defaultOptions: McpOptions, query: unknown): M
|
|
|
385
387
|
: queryOptions.tools?.includes('docs') ? true
|
|
386
388
|
: defaultOptions.includeDocsTools;
|
|
387
389
|
|
|
390
|
+
let codeTools: boolean | undefined =
|
|
391
|
+
queryOptions.no_tools && queryOptions.no_tools?.includes('code') ? false
|
|
392
|
+
: queryOptions.tools?.includes('code') && defaultOptions.includeCodeTools ? true
|
|
393
|
+
: defaultOptions.includeCodeTools;
|
|
394
|
+
|
|
388
395
|
return {
|
|
389
396
|
client: queryOptions.client ?? defaultOptions.client,
|
|
390
397
|
includeDynamicTools: dynamicTools,
|
|
391
398
|
includeAllTools: allTools,
|
|
392
|
-
includeCodeTools:
|
|
399
|
+
includeCodeTools: codeTools,
|
|
393
400
|
includeDocsTools: docsTools,
|
|
394
401
|
filters,
|
|
395
402
|
capabilities: clientCapabilities,
|
package/src/server.ts
CHANGED
package/src/tools/types.ts
CHANGED
|
@@ -87,6 +87,18 @@ export async function asBinaryContentResult(response: Response): Promise<ToolCal
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export function asErrorResult(message: string): ToolCallResult {
|
|
91
|
+
return {
|
|
92
|
+
content: [
|
|
93
|
+
{
|
|
94
|
+
type: 'text',
|
|
95
|
+
text: message,
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
isError: true,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
export type Metadata = {
|
|
91
103
|
resource: string;
|
|
92
104
|
operation: 'read' | 'write';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -44,7 +44,14 @@ export const tool: Tool = {
|
|
|
44
44
|
|
|
45
45
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
46
46
|
const { jq_filter, ...body } = args as any;
|
|
47
|
-
|
|
47
|
+
try {
|
|
48
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.v1.alerts.archive(body)));
|
|
49
|
+
} catch (error) {
|
|
50
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
51
|
+
return asErrorResult(error.message);
|
|
52
|
+
}
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -40,6 +40,7 @@ export const tool: Tool = {
|
|
|
40
40
|
'low_remaining_contract_credit_percentage_reached',
|
|
41
41
|
'low_remaining_contract_credit_and_commit_balance_reached',
|
|
42
42
|
'invoice_total_reached',
|
|
43
|
+
'low_remaining_seat_balance_reached',
|
|
43
44
|
],
|
|
44
45
|
},
|
|
45
46
|
name: {
|
|
@@ -130,6 +131,22 @@ export const tool: Tool = {
|
|
|
130
131
|
description:
|
|
131
132
|
'If provided, will create this threshold notification for this specific plan. To create a notification for all customers, do not specify a `plan_id`.',
|
|
132
133
|
},
|
|
134
|
+
seat_filter: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
description:
|
|
137
|
+
'Required for `low_remaining_seat_balance_reached` notifications. The alert is scoped to this seat group key-value pair.',
|
|
138
|
+
properties: {
|
|
139
|
+
seat_group_key: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
description: 'The seat group key (e.g., "seat_id", "user_id")',
|
|
142
|
+
},
|
|
143
|
+
seat_group_value: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
description: 'Optional seat identifier the alert is scoped to.',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
required: ['seat_group_key'],
|
|
149
|
+
},
|
|
133
150
|
uniqueness_key: {
|
|
134
151
|
type: 'string',
|
|
135
152
|
description:
|
|
@@ -149,7 +166,14 @@ export const tool: Tool = {
|
|
|
149
166
|
|
|
150
167
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
151
168
|
const { jq_filter, ...body } = args as any;
|
|
152
|
-
|
|
169
|
+
try {
|
|
170
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.v1.alerts.create(body)));
|
|
171
|
+
} catch (error) {
|
|
172
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
173
|
+
return asErrorResult(error.message);
|
|
174
|
+
}
|
|
175
|
+
throw error;
|
|
176
|
+
}
|
|
153
177
|
};
|
|
154
178
|
|
|
155
179
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -73,7 +73,14 @@ export const tool: Tool = {
|
|
|
73
73
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
74
74
|
const { jq_filter, ...body } = args as any;
|
|
75
75
|
const response = await client.v1.auditLogs.list(body).asResponse();
|
|
76
|
-
|
|
76
|
+
try {
|
|
77
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
78
|
+
} catch (error) {
|
|
79
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
80
|
+
return asErrorResult(error.message);
|
|
81
|
+
}
|
|
82
|
+
throw error;
|
|
83
|
+
}
|
|
77
84
|
};
|
|
78
85
|
|
|
79
86
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -39,7 +39,14 @@ export const tool: Tool = {
|
|
|
39
39
|
|
|
40
40
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
41
41
|
const { jq_filter, ...body } = args as any;
|
|
42
|
-
|
|
42
|
+
try {
|
|
43
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.v1.billableMetrics.archive(body)));
|
|
44
|
+
} catch (error) {
|
|
45
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
46
|
+
return asErrorResult(error.message);
|
|
47
|
+
}
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
43
50
|
};
|
|
44
51
|
|
|
45
52
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -137,7 +137,14 @@ export const tool: Tool = {
|
|
|
137
137
|
|
|
138
138
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
139
139
|
const { jq_filter, ...body } = args as any;
|
|
140
|
-
|
|
140
|
+
try {
|
|
141
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.v1.billableMetrics.create(body)));
|
|
142
|
+
} catch (error) {
|
|
143
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
144
|
+
return asErrorResult(error.message);
|
|
145
|
+
}
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
141
148
|
};
|
|
142
149
|
|
|
143
150
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -51,7 +51,14 @@ export const tool: Tool = {
|
|
|
51
51
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
52
52
|
const { jq_filter, ...body } = args as any;
|
|
53
53
|
const response = await client.v1.billableMetrics.list(body).asResponse();
|
|
54
|
-
|
|
54
|
+
try {
|
|
55
|
+
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
58
|
+
return asErrorResult(error.message);
|
|
59
|
+
}
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
55
62
|
};
|
|
56
63
|
|
|
57
64
|
export default { metadata, tool, handler };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
-
import { Metadata, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
3
|
+
import { isJqError, maybeFilter } from '@metronome/mcp/filtering';
|
|
4
|
+
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
5
5
|
|
|
6
6
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Metronome from '@metronome/sdk';
|
|
@@ -41,7 +41,14 @@ export const tool: Tool = {
|
|
|
41
41
|
|
|
42
42
|
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
43
43
|
const { jq_filter, ...body } = args as any;
|
|
44
|
-
|
|
44
|
+
try {
|
|
45
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.v1.billableMetrics.retrieve(body)));
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (error instanceof Metronome.APIError || isJqError(error)) {
|
|
48
|
+
return asErrorResult(error.message);
|
|
49
|
+
}
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
45
52
|
};
|
|
46
53
|
|
|
47
54
|
export default { metadata, tool, handler };
|
|
@@ -45,6 +45,12 @@ export const tool: Tool = {
|
|
|
45
45
|
type: 'string',
|
|
46
46
|
description: 'ID of the contract to update. Leave blank to update a customer level balance.',
|
|
47
47
|
},
|
|
48
|
+
per_group_amounts: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
description:
|
|
51
|
+
'If using individually configured commits/credits attached to seat managed subscriptions, the amount to add for each seat. Must sum to total amount.',
|
|
52
|
+
additionalProperties: true,
|
|
53
|
+
},
|
|
48
54
|
timestamp: {
|
|
49
55
|
type: 'string',
|
|
50
56
|
description:
|