@metronome/mcp 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -22
- 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/index.ts +6 -0
- 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 +10 -3
- 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 +64 -8
- package/src/tools/v1/contracts/list-balances-v1-contracts.ts +13 -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 +11 -4
- package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +11 -4
- package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +11 -4
- package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +11 -4
- package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +11 -4
- 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 +11 -1
- package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +2 -1
- package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +14 -6
- package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +11 -4
- 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 +50 -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 +13 -6
- 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 +11 -4
- 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 +11 -4
- package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +11 -4
- package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +11 -4
- 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 +14 -5
- package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +13 -6
- package/src/tools/v1/customers/retrieve-v1-customers.ts +10 -3
- package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +21 -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 +11 -4
- package/src/tools/v1/payments/cancel-v1-payments.ts +11 -4
- package/src/tools/v1/payments/list-v1-payments.ts +11 -4
- package/src/tools/v1/plans/get-details-v1-plans.ts +11 -4
- package/src/tools/v1/plans/list-charges-v1-plans.ts +11 -4
- package/src/tools/v1/plans/list-customers-v1-plans.ts +11 -4
- package/src/tools/v1/plans/list-v1-plans.ts +11 -4
- 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 +67 -0
- package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +55 -0
- package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +77 -0
- 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 +161 -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/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +6 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +6 -0
- package/tools/index.mjs.map +1 -1
- 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 +14 -2
- package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.mjs +12 -3
- 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 +60 -7
- package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.mjs +58 -8
- 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 +17 -1
- package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.mjs +15 -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 +14 -2
- package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs +13 -4
- 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 +14 -2
- package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +13 -4
- 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 +14 -2
- 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 +13 -4
- 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 +14 -2
- package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs +13 -4
- 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 +14 -2
- package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs +13 -4
- 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 +9 -1
- 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 +9 -1
- 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/delete-customers-v1-billing-config.js +2 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +2 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.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 +15 -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 +14 -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 +15 -3
- package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs +13 -4
- 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 +49 -1
- package/tools/v1/customers/create-v1-customers.js.map +1 -1
- package/tools/v1/customers/create-v1-customers.mjs +48 -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 +14 -2
- 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 +13 -4
- 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 +14 -2
- package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs +13 -4
- 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 +14 -2
- package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs +13 -4
- 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 +14 -2
- package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs +13 -4
- 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 +14 -2
- package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs +13 -4
- 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 +17 -4
- package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.mjs +15 -5
- 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 +14 -2
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +13 -4
- 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 +22 -4
- package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +20 -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 +14 -2
- package/tools/v1/payments/attempt-v1-payments.js.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.mjs +13 -4
- 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 +14 -2
- package/tools/v1/payments/cancel-v1-payments.js.map +1 -1
- package/tools/v1/payments/cancel-v1-payments.mjs +13 -4
- 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 +14 -2
- package/tools/v1/payments/list-v1-payments.js.map +1 -1
- package/tools/v1/payments/list-v1-payments.mjs +13 -4
- 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 +14 -2
- package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.mjs +13 -4
- 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 +14 -2
- package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs +13 -4
- 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 +14 -2
- package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs +13 -4
- 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 +14 -2
- package/tools/v1/plans/list-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-v1-plans.mjs +13 -4
- 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 +51 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +1 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +51 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +1 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +64 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +1 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +57 -0
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +51 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +51 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +53 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +1 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +46 -0
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +51 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +51 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +73 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +1 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +66 -0
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +1 -0
- 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 +155 -4
- package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.mjs +153 -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/README.md
CHANGED
|
@@ -36,12 +36,36 @@ For clients with a configuration JSON, it might look something like this:
|
|
|
36
36
|
}
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
### Cursor
|
|
40
|
+
|
|
41
|
+
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
|
|
42
|
+
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
|
|
43
|
+
|
|
44
|
+
[](https://cursor.com/en-US/install-mcp?name=@metronome/mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBtZXRyb25vbWUvbWNwIl0sImVudiI6eyJNRVRST05PTUVfQkVBUkVSX1RPS0VOIjoiU2V0IHlvdXIgTUVUUk9OT01FX0JFQVJFUl9UT0tFTiBoZXJlLiIsIk1FVFJPTk9NRV9XRUJIT09LX1NFQ1JFVCI6IlNldCB5b3VyIE1FVFJPTk9NRV9XRUJIT09LX1NFQ1JFVCBoZXJlLiJ9fQ)
|
|
45
|
+
|
|
46
|
+
### VS Code
|
|
47
|
+
|
|
48
|
+
If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables
|
|
49
|
+
in VS Code's `mcp.json`, which can be found via Command Palette > MCP: Open User Configuration.
|
|
50
|
+
|
|
51
|
+
[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40metronome%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40metronome%2Fmcp%22%5D%2C%22env%22%3A%7B%22METRONOME_BEARER_TOKEN%22%3A%22Set%20your%20METRONOME_BEARER_TOKEN%20here.%22%2C%22METRONOME_WEBHOOK_SECRET%22%3A%22Set%20your%20METRONOME_WEBHOOK_SECRET%20here.%22%7D%7D)
|
|
52
|
+
|
|
53
|
+
### Claude Code
|
|
54
|
+
|
|
55
|
+
If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your
|
|
56
|
+
environment variables in Claude Code's `.claude.json`, which can be found in your home directory.
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
claude mcp add --transport stdio metronome_sdk_api --env METRONOME_BEARER_TOKEN="Your METRONOME_BEARER_TOKEN here." METRONOME_WEBHOOK_SECRET="Your METRONOME_WEBHOOK_SECRET here." -- npx -y @metronome/mcp
|
|
60
|
+
```
|
|
61
|
+
|
|
39
62
|
## Exposing endpoints to your MCP Client
|
|
40
63
|
|
|
41
|
-
There are
|
|
64
|
+
There are three ways to expose endpoints as tools in the MCP server:
|
|
42
65
|
|
|
43
66
|
1. Exposing one tool per endpoint, and filtering as necessary
|
|
44
67
|
2. Exposing a set of tools to dynamically discover and invoke endpoints from the API
|
|
68
|
+
3. Exposing a docs search tool and a code execution tool, allowing the client to write code to be executed against the TypeScript client
|
|
45
69
|
|
|
46
70
|
### Filtering endpoints and tools
|
|
47
71
|
|
|
@@ -76,6 +100,18 @@ All of these command-line options can be repeated, combined together, and have c
|
|
|
76
100
|
|
|
77
101
|
Use `--list` to see the list of available tools, or see below.
|
|
78
102
|
|
|
103
|
+
### Code execution
|
|
104
|
+
|
|
105
|
+
If you specify `--tools=code` to the MCP server, it will expose just two tools:
|
|
106
|
+
|
|
107
|
+
- `search_docs` - Searches the API documentation and returns a list of markdown results
|
|
108
|
+
- `execute` - Runs code against the TypeScript client
|
|
109
|
+
|
|
110
|
+
This allows the LLM to implement more complex logic by chaining together many API calls without loading
|
|
111
|
+
intermediary results into its context window.
|
|
112
|
+
|
|
113
|
+
The code execution itself happens in a Deno sandbox that has network access only to the base URL for the API.
|
|
114
|
+
|
|
79
115
|
### Specifying the MCP Client
|
|
80
116
|
|
|
81
117
|
Different clients have varying abilities to handle arbitrary tools and schemas.
|
|
@@ -333,18 +369,18 @@ The following tools are available in this MCP server.
|
|
|
333
369
|
|
|
334
370
|
### Resource `v1.plans`:
|
|
335
371
|
|
|
336
|
-
- `list_v1_plans` (`read`): List all available plans.
|
|
337
|
-
- `get_details_v1_plans` (`read`): Fetch high level details of a specific plan.
|
|
338
|
-
- `list_charges_v1_plans` (`read`): Fetches a list of charges of a specific plan.
|
|
339
|
-
- `list_customers_v1_plans` (`read`): Fetches a list of customers on a specific plan (by default, only currently active plans are included)
|
|
372
|
+
- `list_v1_plans` (`read`): List all available plans. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
373
|
+
- `get_details_v1_plans` (`read`): Fetch high level details of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
374
|
+
- `list_charges_v1_plans` (`read`): Fetches a list of charges of a specific plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
375
|
+
- `list_customers_v1_plans` (`read`): Fetches a list of customers on a specific plan (by default, only currently active plans are included). This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
340
376
|
|
|
341
377
|
### Resource `v1.credit_grants`:
|
|
342
378
|
|
|
343
|
-
- `create_v1_credit_grants` (`write`): Create a new credit grant
|
|
344
|
-
- `list_v1_credit_grants` (`write`): List credit grants. This list does not included voided grants.
|
|
345
|
-
- `edit_v1_credit_grants` (`write`): Edit an existing credit grant
|
|
346
|
-
- `list_entries_v1_credit_grants` (`write`): Fetches a list of credit ledger entries. Returns lists of ledgers per customer. Ledger entries are returned in chronological order. Ledger entries associated with voided credit grants are not included.
|
|
347
|
-
- `void_v1_credit_grants` (`write`): Void a credit grant
|
|
379
|
+
- `create_v1_credit_grants` (`write`): Create a new credit grant. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
380
|
+
- `list_v1_credit_grants` (`write`): List credit grants. This list does not included voided grants. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
381
|
+
- `edit_v1_credit_grants` (`write`): Edit an existing credit grant. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
382
|
+
- `list_entries_v1_credit_grants` (`write`): Fetches a list of credit ledger entries. Returns lists of ledgers per customer. Ledger entries are returned in chronological order. Ledger entries associated with voided credit grants are not included. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
383
|
+
- `void_v1_credit_grants` (`write`): Void a credit grant. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
348
384
|
|
|
349
385
|
### Resource `v1.pricing_units`:
|
|
350
386
|
|
|
@@ -389,8 +425,8 @@ The following tools are available in this MCP server.
|
|
|
389
425
|
- Any notifications associated with the customer will no longer be triggered.
|
|
390
426
|
|
|
391
427
|
- `list_billable_metrics_v1_customers` (`read`): Get all billable metrics available for a specific customer. Supports pagination and filtering by current plan status or archived metrics. Use this endpoint to see which metrics are being tracked for billing calculations for a given customer.
|
|
392
|
-
- `list_costs_v1_customers` (`read`): Fetch daily pending costs for the specified customer, broken down by credit type and line items. Note: this is not supported for customers whose plan includes a UNIQUE-type billable metric.
|
|
393
|
-
- `preview_events_v1_customers` (`write`): Preview how a set of events will affect a customer's invoices. Generates draft invoices for a customer using their current contract configuration and the provided events. This is useful for testing how new events will affect the customer's invoices before they are actually processed.
|
|
428
|
+
- `list_costs_v1_customers` (`read`): Fetch daily pending costs for the specified customer, broken down by credit type and line items. Note: this is not supported for customers whose plan includes a UNIQUE-type billable metric. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
429
|
+
- `preview_events_v1_customers` (`write`): Preview how a set of events will affect a customer's invoices. Generates draft invoices for a customer using their current contract configuration and the provided events. This is useful for testing how new events will affect the customer's invoices before they are actually processed. Customers on contracts with SQL billable metrics are not supported.
|
|
394
430
|
- `retrieve_billing_configurations_v1_customers` (`write`): Returns all billing configurations previously set for the customer. Use during the contract provisioning process to fetch the `billing_provider_configuration_id` needed to set the contract billing configuration.
|
|
395
431
|
- `set_billing_configurations_v1_customers` (`write`): Create a billing configuration for a customer. Once created, these configurations are available to associate to a contract and dictates which downstream system to collect payment in or send the invoice to. You can create multiple configurations per customer. The configuration formats are distinct for each downstream provider.
|
|
396
432
|
|
|
@@ -514,10 +550,10 @@ The following tools are available in this MCP server.
|
|
|
514
550
|
|
|
515
551
|
### Resource `v1.customers.plans`:
|
|
516
552
|
|
|
517
|
-
- `list_customers_v1_plans` (`read`): List the given customer's plans in reverse-chronological order.
|
|
518
|
-
- `add_customers_v1_plans` (`write`): Associate an existing customer with a plan for a specified date range. See the [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments) for details on the price adjustments.
|
|
519
|
-
- `end_customers_v1_plans` (`write`): Change the end date of a customer's plan.
|
|
520
|
-
- `list_price_adjustments_customers_v1_plans` (`read`): Lists a customer plans adjustments. See the [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments) for details.
|
|
553
|
+
- `list_customers_v1_plans` (`read`): List the given customer's plans in reverse-chronological order. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
554
|
+
- `add_customers_v1_plans` (`write`): Associate an existing customer with a plan for a specified date range. See the [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments) for details on the price adjustments. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
555
|
+
- `end_customers_v1_plans` (`write`): Change the end date of a customer's plan. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
556
|
+
- `list_price_adjustments_customers_v1_plans` (`read`): Lists a customer plans adjustments. See the [price adjustments documentation](https://plans-docs.metronome.com/pricing/managing-plans/#price-adjustments) for details. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
521
557
|
|
|
522
558
|
### Resource `v1.customers.invoices`:
|
|
523
559
|
|
|
@@ -586,7 +622,7 @@ The following tools are available in this MCP server.
|
|
|
586
622
|
External billing provider statuses (like Stripe payment status) are included when applicable
|
|
587
623
|
- Voided invoices are included in results by default unless filtered out by status
|
|
588
624
|
|
|
589
|
-
- `add_charge_customers_v1_invoices` (`write`): Add a one time charge to the specified invoice
|
|
625
|
+
- `add_charge_customers_v1_invoices` (`write`): Add a one time charge to the specified invoice. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
590
626
|
- `list_breakdowns_customers_v1_invoices` (`read`): Retrieve granular time-series breakdowns of invoice data at hourly or daily intervals. This endpoint transforms standard invoices into detailed timelines, enabling you to track usage patterns, identify consumption spikes, and provide customers with transparency into their billing details throughout the billing period.
|
|
591
627
|
|
|
592
628
|
### Use this endpoint to:
|
|
@@ -638,9 +674,10 @@ The following tools are available in this MCP server.
|
|
|
638
674
|
|
|
639
675
|
### Resource `v1.customers.billing_config`:
|
|
640
676
|
|
|
641
|
-
- `create_customers_v1_billing_config` (`write`): Set the billing configuration for a given customer.
|
|
642
|
-
- `retrieve_customers_v1_billing_config` (`read`): Fetch the billing configuration for the given customer.
|
|
643
|
-
- `delete_customers_v1_billing_config` (`write`): Delete the billing configuration for a given customer.
|
|
677
|
+
- `create_customers_v1_billing_config` (`write`): Set the billing configuration for a given customer. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
678
|
+
- `retrieve_customers_v1_billing_config` (`read`): Fetch the billing configuration for the given customer. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
679
|
+
- `delete_customers_v1_billing_config` (`write`): Delete the billing configuration for a given customer.
|
|
680
|
+
Note: this is unsupported for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
|
|
644
681
|
|
|
645
682
|
### Resource `v1.customers.commits`:
|
|
646
683
|
|
|
@@ -664,7 +701,7 @@ The following tools are available in this MCP server.
|
|
|
664
701
|
|
|
665
702
|
#### Billing configuration:
|
|
666
703
|
|
|
667
|
-
- invoice_contract_id is required for postpaid commits and for prepaid commits with billing (only optional for free prepaid commits)
|
|
704
|
+
- invoice_contract_id is required for postpaid commits and for prepaid commits with billing (only optional for free prepaid commits) unless do_not_invoice is set to true
|
|
668
705
|
- For postpaid commits: access_schedule and invoice_schedule must have matching amounts
|
|
669
706
|
- For postpaid commits: only one schedule item is allowed in both schedules.
|
|
670
707
|
|
|
@@ -1187,7 +1224,7 @@ The following tools are available in this MCP server.
|
|
|
1187
1224
|
|
|
1188
1225
|
Manual ledger entries can be extremely useful for resolving discrepancies in Metronome. However, most corrections to inaccurate billings can be modified upstream of the commit, whether that is via contract editing, rate editing, or other actions that cause an invoice to be recalculated.
|
|
1189
1226
|
|
|
1190
|
-
- `amend_v1_contracts` (`write`): Amendments will be replaced by Contract editing. New clients should implement using the `editContract` endpoint. Read more about the migration to contract editing [here](
|
|
1227
|
+
- `amend_v1_contracts` (`write`): Amendments will be replaced by Contract editing. New clients should implement using the `editContract` endpoint. Read more about the migration to contract editing [here](/guides/implement-metronome/migrate-amendments-to-edits/) and reach out to your Metronome representative for more details. Once contract editing is enabled, access to this endpoint will be removed.
|
|
1191
1228
|
- `archive_v1_contracts` (`write`): Permanently end and archive a contract along with all its terms. Any draft invoices will be canceled, and all upcoming scheduled invoices will be voided–also all finalized invoices can optionally be voided. Use this in the event a contract was incorrectly created and needed to be removed from a customer.
|
|
1192
1229
|
|
|
1193
1230
|
#### Impact on commits and credits:
|
|
@@ -1362,3 +1399,12 @@ The following tools are available in this MCP server.
|
|
|
1362
1399
|
Attempting to payment on an ineligible Invoice or Customer will result in a `400` response.
|
|
1363
1400
|
|
|
1364
1401
|
- `cancel_v1_payments` (`write`): Cancel an existing payment attempt for an invoice.
|
|
1402
|
+
|
|
1403
|
+
### Resource `v1.settings`:
|
|
1404
|
+
|
|
1405
|
+
- `upsert_avalara_credentials_v1_settings` (`write`): Set the Avalara credentials for some specified `delivery_method_ids`, which can be found in the `/listConfiguredBillingProviders` response. This maps the Avalara credentials to the appropriate billing entity. These credentials are only used for PLG Invoicing today.
|
|
1406
|
+
|
|
1407
|
+
### Resource `v1.settings.billing_providers`:
|
|
1408
|
+
|
|
1409
|
+
- `create_settings_v1_billing_providers` (`write`): Set up account-level configuration for a billing provider. Once configured, individual contracts across customers can be mapped to this configuration using the returned delivery_method_id.
|
|
1410
|
+
- `list_settings_v1_billing_providers` (`write`): Lists all configured billing providers and their delivery method configurations for your account. Returns provider details, delivery method IDs, and configuration settings needed for mapping individual customer contracts to billing integrations.
|
package/code-tool-types.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-types.d.mts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;
|
|
1
|
+
{"version":3,"file":"code-tool-types.d.mts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC"}
|
package/code-tool-types.d.ts
CHANGED
package/code-tool-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-types.d.ts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;
|
|
1
|
+
{"version":3,"file":"code-tool-types.d.ts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC"}
|
package/code-tool.d.mts
CHANGED
|
@@ -1,12 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Metadata, ToolCallResult } from "./tools/types.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
|
9
9
|
* @param endpoints - The endpoints to include in the list.
|
|
10
10
|
*/
|
|
11
|
-
export declare function codeTool(): Promise<
|
|
11
|
+
export declare function codeTool(): Promise<{
|
|
12
|
+
metadata: Metadata;
|
|
13
|
+
tool: {
|
|
14
|
+
inputSchema: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
type: "object";
|
|
17
|
+
properties?: {
|
|
18
|
+
[x: string]: object;
|
|
19
|
+
} | undefined;
|
|
20
|
+
required?: string[] | undefined;
|
|
21
|
+
};
|
|
22
|
+
name: string;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
outputSchema?: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
type: "object";
|
|
27
|
+
properties?: {
|
|
28
|
+
[x: string]: object;
|
|
29
|
+
} | undefined;
|
|
30
|
+
required?: string[] | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
annotations?: {
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
readOnlyHint?: boolean | undefined;
|
|
35
|
+
destructiveHint?: boolean | undefined;
|
|
36
|
+
idempotentHint?: boolean | undefined;
|
|
37
|
+
openWorldHint?: boolean | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
execution?: {
|
|
40
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
_meta?: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
} | undefined;
|
|
45
|
+
icons?: {
|
|
46
|
+
src: string;
|
|
47
|
+
mimeType?: string | undefined;
|
|
48
|
+
sizes?: string[] | undefined;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
title?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
handler: (_: unknown, args: any) => Promise<ToolCallResult>;
|
|
53
|
+
}>;
|
|
12
54
|
//# sourceMappingURL=code-tool.d.mts.map
|
package/code-tool.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,cAAc,EAAuB;AAIxD;;;;;;;;GAQG;AACH,wBAAsB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQF,OAAO,QAAQ,GAAG,KAAG,OAAO,CAAC,cAAc,CAAC;GAuCvE"}
|
package/code-tool.d.ts
CHANGED
|
@@ -1,12 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Metadata, ToolCallResult } from "./tools/types.js";
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
|
9
9
|
* @param endpoints - The endpoints to include in the list.
|
|
10
10
|
*/
|
|
11
|
-
export declare function codeTool(): Promise<
|
|
11
|
+
export declare function codeTool(): Promise<{
|
|
12
|
+
metadata: Metadata;
|
|
13
|
+
tool: {
|
|
14
|
+
inputSchema: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
type: "object";
|
|
17
|
+
properties?: {
|
|
18
|
+
[x: string]: object;
|
|
19
|
+
} | undefined;
|
|
20
|
+
required?: string[] | undefined;
|
|
21
|
+
};
|
|
22
|
+
name: string;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
outputSchema?: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
type: "object";
|
|
27
|
+
properties?: {
|
|
28
|
+
[x: string]: object;
|
|
29
|
+
} | undefined;
|
|
30
|
+
required?: string[] | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
annotations?: {
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
readOnlyHint?: boolean | undefined;
|
|
35
|
+
destructiveHint?: boolean | undefined;
|
|
36
|
+
idempotentHint?: boolean | undefined;
|
|
37
|
+
openWorldHint?: boolean | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
execution?: {
|
|
40
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
_meta?: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
} | undefined;
|
|
45
|
+
icons?: {
|
|
46
|
+
src: string;
|
|
47
|
+
mimeType?: string | undefined;
|
|
48
|
+
sizes?: string[] | undefined;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
title?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
handler: (_: unknown, args: any) => Promise<ToolCallResult>;
|
|
53
|
+
}>;
|
|
12
54
|
//# sourceMappingURL=code-tool.d.ts.map
|
package/code-tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,cAAc,EAAuB;AAIxD;;;;;;;;GAQG;AACH,wBAAsB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQF,OAAO,QAAQ,GAAG,KAAG,OAAO,CAAC,cAAc,CAAC;GAuCvE"}
|
package/code-tool.js
CHANGED
|
@@ -1,46 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
4
|
exports.codeTool = codeTool;
|
|
38
|
-
const
|
|
39
|
-
const
|
|
5
|
+
const types_1 = require("./tools/types.js");
|
|
6
|
+
const server_1 = require("./server.js");
|
|
40
7
|
/**
|
|
41
8
|
* A tool that runs code against a copy of the SDK.
|
|
42
9
|
*
|
|
43
|
-
* 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,
|
|
44
11
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
45
12
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
46
13
|
*
|
|
@@ -50,108 +17,36 @@ async function codeTool() {
|
|
|
50
17
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
51
18
|
const tool = {
|
|
52
19
|
name: 'execute',
|
|
53
|
-
description: 'Runs
|
|
20
|
+
description: 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.\nWrite code within this template:\n\n```\nasync function run(client) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
54
21
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
55
22
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
spawnOptions: {
|
|
73
|
-
cwd: (0, node_path_1.dirname)(workerPath),
|
|
23
|
+
const handler = async (_, args) => {
|
|
24
|
+
const code = args.code;
|
|
25
|
+
// this is not required, but passing a Stainless API key for the matching project_name
|
|
26
|
+
// will allow you to run code-mode queries against non-published versions of your SDK.
|
|
27
|
+
const stainlessAPIKey = (0, server_1.readEnv)('STAINLESS_API_KEY');
|
|
28
|
+
const codeModeEndpoint = (0, server_1.readEnv)('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
|
|
29
|
+
const res = await fetch(codeModeEndpoint, {
|
|
30
|
+
method: 'POST',
|
|
31
|
+
headers: {
|
|
32
|
+
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
33
|
+
'Content-Type': 'application/json',
|
|
34
|
+
client_envs: JSON.stringify({
|
|
35
|
+
METRONOME_BEARER_TOKEN: (0, server_1.readEnv)('METRONOME_BEARER_TOKEN'),
|
|
36
|
+
METRONOME_WEBHOOK_SECRET: (0, server_1.readEnv)('METRONOME_WEBHOOK_SECRET'),
|
|
37
|
+
METRONOME_BASE_URL: (0, server_1.readEnv)('METRONOME_BASE_URL'),
|
|
38
|
+
}),
|
|
74
39
|
},
|
|
40
|
+
body: JSON.stringify({
|
|
41
|
+
project_name: 'metronome',
|
|
42
|
+
client_opts: {},
|
|
43
|
+
code,
|
|
44
|
+
}),
|
|
75
45
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
worker.addEventListener('exit', (exitCode) => {
|
|
79
|
-
reject(new Error(`Worker exited with code ${exitCode}`));
|
|
80
|
-
});
|
|
81
|
-
const opts = {
|
|
82
|
-
baseURL: client.baseURL,
|
|
83
|
-
bearerToken: client.bearerToken,
|
|
84
|
-
webhookSecret: client.webhookSecret,
|
|
85
|
-
defaultHeaders: {
|
|
86
|
-
'X-Stainless-MCP': 'true',
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
const req = worker.request('http://localhost', {
|
|
90
|
-
headers: {
|
|
91
|
-
'content-type': 'application/json',
|
|
92
|
-
},
|
|
93
|
-
method: 'POST',
|
|
94
|
-
}, (resp) => {
|
|
95
|
-
const body = [];
|
|
96
|
-
resp.on('error', (err) => {
|
|
97
|
-
reject(err);
|
|
98
|
-
});
|
|
99
|
-
resp.on('data', (chunk) => {
|
|
100
|
-
body.push(chunk);
|
|
101
|
-
});
|
|
102
|
-
resp.on('end', () => {
|
|
103
|
-
resolve(new Response(Buffer.concat(body).toString(), {
|
|
104
|
-
status: resp.statusCode ?? 200,
|
|
105
|
-
headers: resp.headers,
|
|
106
|
-
}));
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
const body = JSON.stringify({
|
|
110
|
-
opts,
|
|
111
|
-
code,
|
|
112
|
-
});
|
|
113
|
-
req.write(body, (err) => {
|
|
114
|
-
if (err !== null && err !== undefined) {
|
|
115
|
-
reject(err);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
req.end();
|
|
119
|
-
});
|
|
120
|
-
if (resp.status === 200) {
|
|
121
|
-
const { result, logLines, errLines } = (await resp.json());
|
|
122
|
-
const returnOutput = result === null ? null
|
|
123
|
-
: result === undefined ? null
|
|
124
|
-
: {
|
|
125
|
-
type: 'text',
|
|
126
|
-
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
127
|
-
};
|
|
128
|
-
const logOutput = logLines.length === 0 ?
|
|
129
|
-
null
|
|
130
|
-
: {
|
|
131
|
-
type: 'text',
|
|
132
|
-
text: logLines.join('\n'),
|
|
133
|
-
};
|
|
134
|
-
const errOutput = errLines.length === 0 ?
|
|
135
|
-
null
|
|
136
|
-
: {
|
|
137
|
-
type: 'text',
|
|
138
|
-
text: 'Error output:\n' + errLines.join('\n'),
|
|
139
|
-
};
|
|
140
|
-
return {
|
|
141
|
-
content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
const { message } = (await resp.json());
|
|
146
|
-
throw new Error(message);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
catch (e) {
|
|
150
|
-
throw e;
|
|
151
|
-
}
|
|
152
|
-
finally {
|
|
153
|
-
worker.terminate();
|
|
46
|
+
if (!res.ok) {
|
|
47
|
+
throw new Error(`${res.status}: ${res.statusText} error when trying to contact Code Tool server. Details: ${await res.text()}`);
|
|
154
48
|
}
|
|
49
|
+
return (0, types_1.asTextContentResult)((await res.json()));
|
|
155
50
|
};
|
|
156
51
|
return { metadata, tool, handler };
|
|
157
52
|
}
|
package/code-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAetF,4BA+CC;AA5DD,4CAA8E;AAE9E,wCAAmC;AAEnC;;;;;;;;GAQG;AACI,KAAK,UAAU,QAAQ;IAC5B,MAAM,QAAQ,GAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,MAAM,IAAI,GAAS;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,iiCAAiiC;QACniC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;KAC1E,CAAC;IACF,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAS,EAA2B,EAAE;QACvE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAc,CAAC;QAEjC,sFAAsF;QACtF,sFAAsF;QACtF,MAAM,eAAe,GAAG,IAAA,gBAAO,EAAC,mBAAmB,CAAC,CAAC;QACrD,MAAM,gBAAgB,GACpB,IAAA,gBAAO,EAAC,wBAAwB,CAAC,IAAI,4CAA4C,CAAC;QAEpF,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,gBAAgB,EAAE;YACxC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,GAAG,CAAC,eAAe,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;gBAC1D,cAAc,EAAE,kBAAkB;gBAClC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;oBAC1B,sBAAsB,EAAE,IAAA,gBAAO,EAAC,wBAAwB,CAAC;oBACzD,wBAAwB,EAAE,IAAA,gBAAO,EAAC,0BAA0B,CAAC;oBAC7D,kBAAkB,EAAE,IAAA,gBAAO,EAAC,oBAAoB,CAAC;iBAClD,CAAC;aACH;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,YAAY,EAAE,WAAW;gBACzB,WAAW,EAAE,EAAE;gBACf,IAAI;aACL,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,CAAC,MAAM,KACX,GAAG,CAAC,UACN,4DAA4D,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAC/E,CAAC;QACJ,CAAC;QAED,OAAO,IAAA,2BAAmB,EAAC,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAkB,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|