stream-chat-ruby 3.23.0 → 3.24.0

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: c4ef092c72fd38655964df3e01060882dce267369cc5fabb82f0aa77cb58a75a
4
+ data.tar.gz: 5cea63ed4298d413f0bc6ff96168b0a7afc24554bb1884444dda03ee353ea2cd
5
5
  SHA512:
6
- metadata.gz: 152671fd7190cb2762c3499996ade2c7fd4d4e1dfa823a05214da862d399ae39bcef64183b6ebd6e23912cba9b1685e93b8a1b7e4a06a43f8248d129bd460de4
7
- data.tar.gz: 5f92a082a28faedd95b017fcc5f70f43b7c82d386da8149e4d50b03a60486f63360588b9ae280e8c71aff086cdecf6a60209fd447156e1315a02fea983b447fa
6
+ metadata.gz: 2e0e5e53dd62876ac3d292744a4f2e7d73fa08c7ca7e0182252ce668c006aa54d57de9580e0f0ee558cd6851716c0b605d159370fccbbb7ec8c517b075afdbc5
7
+ data.tar.gz: c1a1200464aa02ffba1ace3d76a98f624823814067fa1838ed5d67f0980e13fbe59e87d71ce091d82c94d109b419e644ee5730567b2ae3b31902e02941c98321
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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.24.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.23.1...v3.24.0) (2026-02-26)
6
+
7
+
8
+ ### Features
9
+
10
+ * remove filterTags from channel batch update API ([#198](https://github.com/GetStream/stream-chat-ruby/issues/198)) ([f8aa0f0](https://github.com/GetStream/stream-chat-ruby/commit/f8aa0f02579cdff4c6610cf5c4021f574065a1d6))
11
+
12
+ ### [3.23.1](https://github.com/GetStream/stream-chat-ruby/compare/v3.23.0...v3.23.1) (2026-02-17)
13
+
14
+
15
+ ### Features
16
+
17
+ * 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))
18
+
5
19
  ## [3.23.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.22.0...v3.23.0) (2026-01-29)
6
20
 
7
21
  ## [3.22.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.21.0...v3.22.0) (2026-01-15)
@@ -180,35 +180,5 @@ module StreamChat
180
180
  }
181
181
  )
182
182
  end
183
-
184
- # addFilterTags - Add filter tags to channels matching the filter
185
- # @param filter [StringKeyHash] Filter to select channels
186
- # @param tags [T::Array[String]] Tags to add
187
- # @return [StreamChat::StreamResponse] The server response
188
- sig { params(filter: StringKeyHash, tags: T::Array[String]).returns(StreamChat::StreamResponse) }
189
- def add_filter_tags(filter, tags)
190
- @client.update_channels_batch(
191
- {
192
- operation: 'addFilterTags',
193
- filter: filter,
194
- filter_tags_update: tags
195
- }
196
- )
197
- end
198
-
199
- # removeFilterTags - Remove filter tags from channels matching the filter
200
- # @param filter [StringKeyHash] Filter to select channels
201
- # @param tags [T::Array[String]] Tags to remove
202
- # @return [StreamChat::StreamResponse] The server response
203
- sig { params(filter: StringKeyHash, tags: T::Array[String]).returns(StreamChat::StreamResponse) }
204
- def remove_filter_tags(filter, tags)
205
- @client.update_channels_batch(
206
- {
207
- operation: 'removeFilterTags',
208
- filter: filter,
209
- filter_tags_update: tags
210
- }
211
- )
212
- end
213
183
  end
214
184
  end
@@ -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.24.0'
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.24.0
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-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday