stream-chat-ruby 3.17.0 → 3.19.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/stream-chat/client.rb +39 -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: fcd0ddcef7bd5eb3ec3e7bda222c1c85a49e314e02e78813ff1693000151c923
|
4
|
+
data.tar.gz: 954fe0f720a0b19bbd129bb12bdd3c0441d645eed0b7190dc5b779b92b7a85b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bc836ebbb76efae25a3899741bef34b7d8d30c0c9229e718172ecf8b4c9446834e561c6888695e3f5c5fec888b66fdefe44f276c986d9bd3ec2d44b1f06ee87
|
7
|
+
data.tar.gz: 82408f7f86c14aca15548d7965fc44fa68732967f3c8a5ddc2eccb7cbd3376b11f81757af729717017f79aad4ec3f70e42f7199fed7869a47670055645f68d6b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
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.19.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.18.0...v3.19.0) (2025-07-07)
|
6
|
+
|
7
|
+
## [3.18.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.17.0...v3.18.0) (2025-06-30)
|
8
|
+
|
5
9
|
## [3.17.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.16.0...v3.17.0) (2025-06-25)
|
6
10
|
|
7
11
|
## [3.16.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.15.0...v3.16.0) (2025-06-18)
|
data/lib/stream-chat/client.rb
CHANGED
@@ -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
|
@@ -815,6 +827,33 @@ module StreamChat
|
|
815
827
|
post('drafts/query', data: data)
|
816
828
|
end
|
817
829
|
|
830
|
+
# Get active_live_locations for the current user
|
831
|
+
#
|
832
|
+
# @return [StreamChat::StreamResponse]
|
833
|
+
sig { params(user_id: String).returns(StreamChat::StreamResponse) }
|
834
|
+
def get_active_live_locations(user_id)
|
835
|
+
get('users/live_locations', params: { user_id: user_id })
|
836
|
+
end
|
837
|
+
|
838
|
+
# Update live location
|
839
|
+
#
|
840
|
+
# @param [String] user_id The ID of the user to update the location
|
841
|
+
# @param [String] created_by_device_id The device ID that created the location
|
842
|
+
# @param [String] message_id The message ID associated with the location
|
843
|
+
# @param [Float] latitude Optional latitude coordinate
|
844
|
+
# @param [Float] longitude Optional longitude coordinate
|
845
|
+
# @param [String] end_at Optional end time for the location sharing
|
846
|
+
# @return [StreamChat::StreamResponse]
|
847
|
+
sig { params(user_id: String, created_by_device_id: String, message_id: String, options: T.untyped).returns(StreamChat::StreamResponse) }
|
848
|
+
def update_location(user_id, created_by_device_id:, message_id:, **options)
|
849
|
+
data = {
|
850
|
+
created_by_device_id: created_by_device_id,
|
851
|
+
message_id: message_id
|
852
|
+
}
|
853
|
+
data.merge!(options) if options
|
854
|
+
put('users/live_locations', data: data, params: { user_id: user_id })
|
855
|
+
end
|
856
|
+
|
818
857
|
# Gets a comamnd.
|
819
858
|
sig { params(name: String).returns(StreamChat::StreamResponse) }
|
820
859
|
def get_command(name)
|
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.
|
4
|
+
version: 3.19.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-
|
11
|
+
date: 2025-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|