v1.0.0-beta.210

openmeterio/openmeterv1.0.0-beta.210Apr 15, 2025by github-actions[bot]

AI Summary

Adds plan-addon compatibility, pre-line metered quantity recording, AI resource metrics, and usage discounts. Includes fixes for JS client and database constraints.

Key Highlights

  • Plan-addon compatibility and add-on assignments
  • Pre-line metered quantity recording
  • AI resource count metrics for collectors
  • Usage discounts implementation

Breaking Changes

  • Refactor: allow single discount per type

New Features

  • Plan-addon compatibility
  • Pre-line metered quantity recording
  • Add-on assignments
  • AI resource count metrics
  • Usage discounts
  • JS client query return type fixes

Full Release Notes

<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-beta.210 -->

## What's Changed
### Exciting New Features 🎉
* feat: add plan-addon compatibility by @chrisgacsal in https://github.com/openmeterio/openmeter/pull/2635
* feat: record pre line metered quantity by @turip in https://github.com/openmeterio/openmeter/pull/2647
* feat(api): add add-on assignments by @chrisgacsal in https://github.com/openmeterio/openmeter/pull/2658
* feat(collector): add run_ai_resource_count metric and status code to run_ai_http_request_ns by @tothandras in https://github.com/openmeterio/openmeter/pull/2666
* feat: usage discounts by @turip in https://github.com/openmeterio/openmeter/pull/2634
* SubscriptionAddons II - Refactors by @GAlexIHU in https://github.com/openmeterio/openmeter/pull/2667
### Bug Fixes 🐛
* fix(client): JS exports by @tothandras in https://github.com/openmeterio/openmeter/pull/2641
* fix(client): JS client query return type by @tothandras in https://github.com/openmeterio/openmeter/pull/2643
* Fix RC serialization in events by @GAlexIHU in https://github.com/openmeterio/openmeter/pull/2644
* fix(db): fix unique key constraint of meters by @tothandras in https://github.com/openmeterio/openmeter/pull/2660
* fix(pc): fix rc comparison by @GAlexIHU in https://github.com/openmeterio/openmeter/pull/2664
* fix(collector): run-ai metric timestamps by @tothandras in https://github.com/openmeterio/openmeter/pull/2665
### Breaking Changes 🛠
* refactor: allow single discount per type by @turip in https://github.com/openmeterio/openmeter/pull/2639
### Other Changes
* chore: fix broken URL by @wey-gu in https://github.com/openmeterio/openmeter/pull/2659
* [bot] Re-generate JavaScript client by @openmeterbot in https://github.com/openmeterio/openmeter/pull/2662

## New Contributors
* @wey-gu made their first contribution in https://github.com/openmeterio/openmeter/pull/2659

**Full Changelog**: https://github.com/openmeterio/openmeter/compare/v1.0.0-beta.209...v1.0.0-beta.210