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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/stream-chat/client.rb +21 -0
- data/lib/stream-chat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 977bc17be602b7d46fac9ecaeef94efa65d5650360749b5ebf5e4911a3e97db8
|
|
4
|
+
data.tar.gz: fbf8e464be8d85e3f10e8c951b6aefdb9cccf459854ff88e17038a3795bb3c17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
data/lib/stream-chat/client.rb
CHANGED
|
@@ -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]) }
|
data/lib/stream-chat/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|