stream-chat-ruby 2.11.3 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/stream-chat/client.rb +14 -0
- data/lib/stream-chat/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ca273c350cdc7bdc45e1bb675745d611c81a1d37c9f810ba1bfe50f81e2f5b
|
4
|
+
data.tar.gz: 654923dd0d2796bef150ea6796200753c6ccfe3c3085a8997d1d540037f0af34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 927c84dea77c1cd39149760b30bb59e87205e867244a46b88368e68b375c3681914d079ee5e65075ee692cace35e798f52db343a77d7547873c7d3fd4989d905
|
7
|
+
data.tar.gz: 1b25d0b7064a6d087f557fa45d1c676731382681fe33e7e60a1269b304f219abb80f066cf9fa319bb14cd3bd39f339a0517fa999b92ff90ff2c0dd7aaea823c7
|
data/CHANGELOG.md
CHANGED
data/lib/stream-chat/client.rb
CHANGED
@@ -12,6 +12,8 @@ require 'stream-chat/util'
|
|
12
12
|
|
13
13
|
module StreamChat
|
14
14
|
DEFAULT_BLOCKLIST = 'profanity_en_2020_v1'
|
15
|
+
SOFT_DELETE = 'soft'
|
16
|
+
HARD_DELETE = 'hard'
|
15
17
|
|
16
18
|
class Client
|
17
19
|
BASE_URL = 'https://chat.stream-io-api.com'
|
@@ -293,6 +295,18 @@ module StreamChat
|
|
293
295
|
get("export_channels/#{task_id}")
|
294
296
|
end
|
295
297
|
|
298
|
+
def get_task(task_id)
|
299
|
+
get("tasks/#{task_id}")
|
300
|
+
end
|
301
|
+
|
302
|
+
def delete_users(user_ids, user: SOFT_DELETE, messages: nil, conversations: nil)
|
303
|
+
post('users/delete', data: { user_ids: user_ids, user: user, messages: messages, conversations: conversations })
|
304
|
+
end
|
305
|
+
|
306
|
+
def delete_channels(cids, hard_delete: false)
|
307
|
+
post('channels/delete', data: { cids: cids, hard_delete: hard_delete })
|
308
|
+
end
|
309
|
+
|
296
310
|
def revoke_tokens(before)
|
297
311
|
before = before.rfc3339 if before.instance_of?(DateTime)
|
298
312
|
update_app_settings({ 'revoke_tokens_issued_before' => before })
|
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: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mircea Cosbuc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
124
|
+
rubygems_version: 3.1.2
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: The low level client for serverside calls for Stream Chat.
|