stream-chat-ruby 3.23.0 → 3.23.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b7896b214aa6d889a30c567056fdf2d0f6d4b6220d83a17acee469ba2b88aca
4
- data.tar.gz: 4d7127a19485858f8ff18eef48996adc46dc4f6ae5661c6813a984a38017dd4b
3
+ metadata.gz: 977bc17be602b7d46fac9ecaeef94efa65d5650360749b5ebf5e4911a3e97db8
4
+ data.tar.gz: fbf8e464be8d85e3f10e8c951b6aefdb9cccf459854ff88e17038a3795bb3c17
5
5
  SHA512:
6
- metadata.gz: 152671fd7190cb2762c3499996ade2c7fd4d4e1dfa823a05214da862d399ae39bcef64183b6ebd6e23912cba9b1685e93b8a1b7e4a06a43f8248d129bd460de4
7
- data.tar.gz: 5f92a082a28faedd95b017fcc5f70f43b7c82d386da8149e4d50b03a60486f63360588b9ae280e8c71aff086cdecf6a60209fd447156e1315a02fea983b447fa
6
+ metadata.gz: 8ca0cbc98d29de6fad8c64d42f7db87468ffa70b625332556ab056859886e71f756811e8c2764c4e6bd15776aaa0f58b5d73643ac6f3ed968a9c80e620665425
7
+ data.tar.gz: aed94b699d33b51b8e0d7c1e4b9cd1393b3ec91b515c3f8e916ffb351ce855a95d8ace38bf61c5049f2c3a0d545893767dc8364e9851990186212487a2f15d57
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.23.1](https://github.com/GetStream/stream-chat-ruby/compare/v3.23.0...v3.23.1) (2026-02-17)
6
+
7
+
8
+ ### Features
9
+
10
+ * add query_team_usage_stats API for multi-tenant metrics ([#195](https://github.com/GetStream/stream-chat-ruby/issues/195)) ([5ef2cc6](https://github.com/GetStream/stream-chat-ruby/commit/5ef2cc6409eb21e5430c9cc64d0e5fc77cb9b288))
11
+
5
12
  ## [3.23.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.22.0...v3.23.0) (2026-01-29)
6
13
 
7
14
  ## [3.22.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.21.0...v3.22.0) (2026-01-15)
@@ -1195,6 +1195,27 @@ module StreamChat
1195
1195
  ChannelBatchUpdater.new(self)
1196
1196
  end
1197
1197
 
1198
+ # Queries team-level usage statistics from the warehouse database.
1199
+ #
1200
+ # Returns all 16 metrics grouped by team with cursor-based pagination.
1201
+ # This endpoint is server-side only.
1202
+ #
1203
+ # Date Range Options (mutually exclusive):
1204
+ # - Use 'month' parameter (YYYY-MM format) for monthly aggregated values
1205
+ # - Use 'start_date'/'end_date' parameters (YYYY-MM-DD format) for daily breakdown
1206
+ # - If neither provided, defaults to current month (monthly mode)
1207
+ #
1208
+ # @param month [String, nil] Month in YYYY-MM format (e.g., '2026-01')
1209
+ # @param start_date [String, nil] Start date in YYYY-MM-DD format
1210
+ # @param end_date [String, nil] End date in YYYY-MM-DD format
1211
+ # @param limit [Integer, nil] Maximum number of teams to return per page (default: 30, max: 30)
1212
+ # @param next_cursor [String, nil] Cursor for pagination to fetch next page of teams
1213
+ # @return [StreamChat::StreamResponse] Response with teams array and optional next cursor
1214
+ sig { params(options: T.untyped).returns(StreamChat::StreamResponse) }
1215
+ def query_team_usage_stats(**options)
1216
+ post('stats/team_usage', data: options)
1217
+ end
1218
+
1198
1219
  private
1199
1220
 
1200
1221
  sig { returns(T::Hash[String, String]) }
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module StreamChat
5
- VERSION = '3.23.0'
5
+ VERSION = '3.23.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-chat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.23.0
4
+ version: 3.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - getstream.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-30 00:00:00.000000000 Z
11
+ date: 2026-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday