feat: add queryTeamUsageStats API for multi-tenant usage metrics#1685
Merged
feat: add queryTeamUsageStats API for multi-tenant usage metrics#1685
Conversation
Add server-side endpoint support for querying team-level usage statistics from the warehouse database. - Add queryTeamUsageStats() method to StreamChat client - Add types: QueryTeamUsageStatsOptions, QueryTeamUsageStatsResponse, TeamUsageStats, MetricStats, DailyValue - Support monthly aggregated mode (month parameter) - Support daily breakdown mode (start_date/end_date parameters) - Cursor-based pagination with limit and next parameters - Returns 16 metrics per team including DAU, MAU, messages, connections Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
Size Change: +792 B (+0.22%) Total Size: 364 kB
|
MartinCupela
approved these changes
Feb 10, 2026
github-actions bot
pushed a commit
that referenced
this pull request
Feb 11, 2026
## [9.32.0](v9.31.0...v9.32.0) (2026-02-11) ### Features * [CHA-1563] Add channel mentions and push_level on channel types ([#1684](#1684)) ([3eea8c6](3eea8c6)) * add queryTeamUsageStats API for multi-tenant usage metrics ([#1685](#1685)) ([75e6e21](75e6e21)) * export giphy attachment identity function ([#1686](#1686)) ([3898018](3898018))
|
🎉 This PR is included in version 9.32.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add server-side endpoint support for querying team-level usage statistics from the warehouse database.
CLA
Description of the changes, What, Why and How?
Changelog