stream-chat-ruby 3.17.0 → 3.18.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: 1931489e635ef2e2a3f052c55bd01063d013571745721e37e6dfdee96d86ce84
4
- data.tar.gz: 020ebe362659ec374a3d45db80815cffa696f00dfca0ff1b57d329496d5762ed
3
+ metadata.gz: 84015e1d070503f9f6078ee5cd287742ddf5dc7fc0c740021a16dd4e20038d26
4
+ data.tar.gz: caaeb73673bc7711ebda06b9ceb90429f53f64dcb5da3158e6ee05fe20ebbb89
5
5
  SHA512:
6
- metadata.gz: 03ea03f3fe7831cd3f2424d937a75b27e98077e03aea57fd029105af3c5be15fc4c46bb7895a19960d8ba25c4dd9e5fef020ec670e5e4417d8b3a3c5889f147a
7
- data.tar.gz: 1e7c7a0b52920e7b3cd6a36b20503f46d0f02cedca6cf34cfb6ab25f443bfbc42f621cafd8ad45381796fc4f3106f78d1f7dc61a08e41a6cf78a1612eea53ca7
6
+ metadata.gz: eb8017becca4ae15c9fd12cd0455355e42c73dc2153d1ae12a235360a70cd679e4dda518444a2bacdd15f069ff0786b7c29cdc3969dcb5f2e4875a29f65707e6
7
+ data.tar.gz: b19f118cd243550bceb3b5b1fcce954ceaedb80134cf9827b3471856d5509b003e2ebd1826203d31f6a35089cf1f8e34b1090495f31d47cac5750723e282cb9b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.18.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.17.0...v3.18.0) (2025-06-30)
6
+
5
7
  ## [3.17.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.16.0...v3.17.0) (2025-06-25)
6
8
 
7
9
  ## [3.16.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.15.0...v3.16.0) (2025-06-18)
@@ -360,6 +360,18 @@ module StreamChat
360
360
  post('channels/read', data: payload)
361
361
  end
362
362
 
363
+ # Get unread count for a user.
364
+ sig { params(user_id: String).returns(StreamChat::StreamResponse) }
365
+ def unread_counts(user_id)
366
+ get('/unread', params: { user_id: user_id })
367
+ end
368
+
369
+ # Get unread counts for a batch of users.
370
+ sig { params(user_ids: T::Array[String]).returns(StreamChat::StreamResponse) }
371
+ def unread_counts_batch(user_ids)
372
+ post('/unread_batch', data: { user_ids: user_ids })
373
+ end
374
+
363
375
  # Pins a message.
364
376
  #
365
377
  # Pinned messages allow users to highlight important messages, make announcements, or temporarily
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module StreamChat
5
- VERSION = '3.17.0'
5
+ VERSION = '3.18.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.17.0
4
+ version: 3.18.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: 2025-06-25 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday