stream-chat-ruby 3.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84015e1d070503f9f6078ee5cd287742ddf5dc7fc0c740021a16dd4e20038d26
4
- data.tar.gz: caaeb73673bc7711ebda06b9ceb90429f53f64dcb5da3158e6ee05fe20ebbb89
3
+ metadata.gz: fcd0ddcef7bd5eb3ec3e7bda222c1c85a49e314e02e78813ff1693000151c923
4
+ data.tar.gz: 954fe0f720a0b19bbd129bb12bdd3c0441d645eed0b7190dc5b779b92b7a85b7
5
5
  SHA512:
6
- metadata.gz: eb8017becca4ae15c9fd12cd0455355e42c73dc2153d1ae12a235360a70cd679e4dda518444a2bacdd15f069ff0786b7c29cdc3969dcb5f2e4875a29f65707e6
7
- data.tar.gz: b19f118cd243550bceb3b5b1fcce954ceaedb80134cf9827b3471856d5509b003e2ebd1826203d31f6a35089cf1f8e34b1090495f31d47cac5750723e282cb9b
6
+ metadata.gz: 2bc836ebbb76efae25a3899741bef34b7d8d30c0c9229e718172ecf8b4c9446834e561c6888695e3f5c5fec888b66fdefe44f276c986d9bd3ec2d44b1f06ee87
7
+ data.tar.gz: 82408f7f86c14aca15548d7965fc44fa68732967f3c8a5ddc2eccb7cbd3376b11f81757af729717017f79aad4ec3f70e42f7199fed7869a47670055645f68d6b
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.19.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.18.0...v3.19.0) (2025-07-07)
6
+
5
7
  ## [3.18.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.17.0...v3.18.0) (2025-06-30)
6
8
 
7
9
  ## [3.17.0](https://github.com/GetStream/stream-chat-ruby/compare/v3.16.0...v3.17.0) (2025-06-25)
@@ -827,6 +827,33 @@ module StreamChat
827
827
  post('drafts/query', data: data)
828
828
  end
829
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
+
830
857
  # Gets a comamnd.
831
858
  sig { params(name: String).returns(StreamChat::StreamResponse) }
832
859
  def get_command(name)
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module StreamChat
5
- VERSION = '3.18.0'
5
+ VERSION = '3.19.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.18.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2025-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday