Skip to content

Releases

v3.11.0

Choose a tag to compare

@metronome-stlc-bot metronome-stlc-bot released this 27 Oct 17:29
5e8d4ac

3.11.0 (2026-10-27)

Adds public billing and notification capabilities, including quantity-based balances, subscription controls, and custom pricing units.

Features

  • Support SPEND and QUANTITY access types when creating commits and credits, filtering balances, and configuring threshold notifications; expose quantity consumption on invoice line items. (94d646e) (ad105dd) (ea3d22d)
  • Rename billable metrics with client.v1.billableMetrics.update(). (397c698)
  • Rename subscriptions through contract edits and read subscription product custom fields. (d70f181) (fd04231)
  • Read credit creation timestamps from the created_at response field. (a4da635)
  • Create and archive custom pricing units with client.v1.pricingUnits.create() and .archive(). (7ead972)
  • Manage offset lifecycle notifications and list system notification types through client.v2.notifications; use client.v2.notifications.offset.edit() to enable or disable system notifications. (6b55f3b)
  • Create package usage-statement schedules with day: 'CUSTOM_DATE'. (b85fd25)
  • Configure the duration, rate type, and rollover fraction of commits created by prepaid balance thresholds. (8f85b7a)
  • Allow composite products to incorporate spend from other composite products with include_composite_spend. (7d52216)
  • Prevent duplicate manual balance entries with uniqueness_key. (99ad4d1)
  • Include historical commit invoices when listing invoices with include_historical_commit_invoices. (01e7deb)

Documentation

  • Clarify that archiving an already-archived threshold notification succeeds. (ccf9401)
  • Update support portal links in contract documentation. (bc0121a)

Breaking changes

  • client.v1.contracts.list() and client.v2.contracts.list() now return cursor-paginated pages. Iterate with for await (const contract of client.v2.contracts.list(params)) to retrieve every contract, or use page.getNextPage() after awaiting the first page. Replace removed ContractListResponse type imports with ContractsBodyCursorPageCursorField (v1) or ContractV2sBodyCursorPageCursorField (v2). (4134a04)
  • Recurring commit and credit response models now require anchor_date, and subscription response models require created_at. Add these timestamps to typed fixtures or mocks you construct. (d66b0d7) (01e7deb)
  • The @metronome/mcp server source and installation instructions have been removed from this repository. Existing published versions remain available; consumers who need that server should pin an existing version while arranging a replacement. (c2464b0)

v3.10.0

Choose a tag to compare

@stainless-app stainless-app released this 23 Jul 19:18
f8ac112

3.10.0 (2026-07-22)

Full Changelog: v3.9.0...v3.10.0

Features

  • Add add_credit_type_conversions field to update_rate_card endpoint
  • Add cost_basis to commits
  • Remove supersede from contract transition
  • Add applicable_contract_ids in edit customer commit

Docs

  • Add daily recurring commit description to docs
  • Update embeddable dashboard documentation

v3.9.0

Choose a tag to compare

@stainless-app stainless-app released this 02 Jul 17:49
bb1503b

3.9.0 (2026-07-02)

Full Changelog: v3.8.0...v3.9.0

Features

  • Adds customer billing provider configuration schedule to contract apis (b59f319)

v3.8.0

Choose a tag to compare

@stainless-app stainless-app released this 01 Jul 22:48
17740be

3.8.0 (2026-07-01)

Full Changelog: v3.7.0...v3.8.0

Features

  • Add rounding configuration for prorated recurring commit amounts
  • Add alert specifiers to for low_remaining_contract_credit_and_commit_balance_reached threshold notification creation payload
  • Add any_commit_and_credit_ids field to override specifier fields
  • Add get_subscription_seats_history endpoint
  • Add created_by field to commits
  • Add daily recurrence_frequency enum for recurring commits
  • Add skip_missing_seat_ids from balances
  • Add Action and Action_hover color overrides to embeddable dashboard endpoint api
  • Add contract *id,* invoice_type, & show_unbillable_invoices fields to embeddable dashboard api

Bug Fixes

  • client: send content-type header for requests with an omitted optional body

Documentation

  • Add RPS limit and batch recommendation to addRate endpoint
  • Mcp-server: warn about HTTP transport auth and local code execution risks
  • Add created_by description specifies excluding system created commits
  • Add documentation for real-time evaluation status for a specific threshold notification-customer pair
  • Add documentation for is_commit_specific field
  • Add description for threshold balance specifiers fields

v3.7.0

Choose a tag to compare

@stainless-app stainless-app released this 29 May 20:18
b06c1fe

3.7.0 (2026-05-29)

Full Changelog: v3.6.0...v3.7.0

Breaking Changes

  • editContract returns full edit in the response
  • remove all deprecated /payments/* endpoints from API
  • create contract returns contract data

Features

  • add spend tracker and discount caps to contract endpoints

Bug Fixes

  • mcp: use pure-lockfile when building mcp server
  • typescript: upgrade tsc-multi so that it works with Node 26

v3.6.0

Choose a tag to compare

@stainless-app stainless-app released this 18 May 20:52
a43f5df

3.6.0 (2026-05-18)

Full Changelog: v3.5.0...v3.6.0

Breaking changes

  • Remove billing anchor date field from api

Features

  • Add alert specifiers to contract create API
  • add contract_id filter to list invoices endpoint
  • Add invoice type filter for list invoices api
  • Add list seat balances API endpoint
  • Add regenerated_from_invoice_id to getInvoice response
  • Add custom fields to create contract with package
  • add archived_at to Credit schema
  • Add sql_breakdown_granularity flag to product create/edit
  • Ass custom fields to create contract with package

Bug Fixes

  • add archived_at to Credit schema (parity with Commit) (cfaba9b)

Docs

  • fix typo in Create a Contract page
  • fix API docs for one-off payment-gated commits

Bug Fixes

  • client: add missing f-string prefix in file type error message
  • use correct field name format for multipart file arrays

Chores

  • support setting headers via env

v3.5.0

Choose a tag to compare

@stainless-app stainless-app released this 21 Apr 20:18
633fb7d

3.5.0 (2026-04-17)

Full Changelog: v3.4.1...v3.5.0

Features

  • Add override created at in api responses
  • Add recurring_commit_ids and remove recurring_credit_ids from api
  • External fixes for rollover credits
  • Map missing contract_name when returning Packages
  • Add priority to threshold commit schemas
  • Add discount_configuration to contract edit API
  • Return day in package_list_response
  • Support nullable discount fraction on contract update inputs

Docs

  • Update balance guides
  • Fully document CreditAdd/CreditUpdate fields in API spec

Chores

  • ci: skip lint on metadata-only changes
  • tests: bump steady to v0.22.1

Refactors

  • tests: switch from prism to steady

v3.4.1

Choose a tag to compare

@stainless-app stainless-app released this 12 Mar 23:04
096b96a

3.4.1 (2026-03-12)

Full Changelog: v3.4.0...v3.4.1

Chores

  • internal: Enable OIDC auth for npm publisher (deea86d)
  • internal: configure MCP Server hosting (af9cfed)

v3.4.0

Choose a tag to compare

@stainless-app stainless-app released this 11 Mar 23:41
3b5ab0e

3.4.0 (2026-03-11)

Full Changelog: v3.3.0...v3.4.0

Features

  • Add archive_billing_configurations endpoint
  • Enable rollover fraction on credits

Bug Fixes

  • fix request delays for retrying to be more respectful of high requested delays

Docs

  • update documentation for /usage/groups

Chores

v3.3.0

Choose a tag to compare

@stainless-app stainless-app released this 03 Mar 21:37
c864e25

3.3.0 (2026-03-03)

Full Changelog: v3.2.0...v3.3.0

Breaking Change

  • Remove minimum config field from Rate and Override schemas