getstream-ruby 4.0.1 → 4.1.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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +67 -0
  3. data/lib/getstream_ruby/generated/models/ai_image_label_definition.rb +46 -0
  4. data/lib/getstream_ruby/generated/models/app_response_fields.rb +5 -0
  5. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  6. data/lib/getstream_ruby/generated/models/aws_rekognition_rule.rb +1 -1
  7. data/lib/getstream_ruby/generated/models/call_ended_event.rb +5 -0
  8. data/lib/getstream_ruby/generated/models/channel_config.rb +6 -1
  9. data/lib/getstream_ruby/generated/models/channel_config_with_info.rb +5 -0
  10. data/lib/getstream_ruby/generated/models/channel_push_preferences_response.rb +6 -1
  11. data/lib/getstream_ruby/generated/models/channel_type_config.rb +6 -1
  12. data/lib/getstream_ruby/generated/models/chat_preferences.rb +66 -0
  13. data/lib/getstream_ruby/generated/models/chat_preferences_input.rb +61 -0
  14. data/lib/getstream_ruby/generated/models/chat_preferences_response.rb +61 -0
  15. data/lib/getstream_ruby/generated/models/check_response.rb +6 -1
  16. data/lib/getstream_ruby/generated/models/config_overrides_request.rb +10 -0
  17. data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
  18. data/lib/getstream_ruby/generated/models/create_channel_type_request.rb +5 -0
  19. data/lib/getstream_ruby/generated/models/create_channel_type_response.rb +6 -1
  20. data/lib/getstream_ruby/generated/models/create_sip_trunk_request.rb +11 -1
  21. data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +31 -0
  22. data/lib/getstream_ruby/generated/models/delete_retention_policy_response.rb +31 -0
  23. data/lib/getstream_ruby/generated/models/filter_config_response.rb +6 -1
  24. data/lib/getstream_ruby/generated/models/get_channel_type_response.rb +6 -1
  25. data/lib/getstream_ruby/generated/models/get_retention_policy_response.rb +36 -0
  26. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +36 -0
  27. data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
  28. data/lib/getstream_ruby/generated/models/image_rule_parameters.rb +5 -0
  29. data/lib/getstream_ruby/generated/models/policy_config.rb +31 -0
  30. data/lib/getstream_ruby/generated/models/push_preference_input.rb +5 -0
  31. data/lib/getstream_ruby/generated/models/push_preferences_response.rb +5 -0
  32. data/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +10 -0
  33. data/lib/getstream_ruby/generated/models/resolve_sip_auth_request.rb +46 -0
  34. data/lib/getstream_ruby/generated/models/resolve_sip_auth_response.rb +51 -0
  35. data/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb +10 -5
  36. data/lib/getstream_ruby/generated/models/retention_cleanup_run.rb +76 -0
  37. data/lib/getstream_ruby/generated/models/retention_policy.rb +46 -0
  38. data/lib/getstream_ruby/generated/models/rule_builder_action.rb +5 -0
  39. data/lib/getstream_ruby/generated/models/run_stats.rb +36 -0
  40. data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +36 -0
  41. data/lib/getstream_ruby/generated/models/set_retention_policy_response.rb +36 -0
  42. data/lib/getstream_ruby/generated/models/sip_trunk_response.rb +5 -0
  43. data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +51 -0
  44. data/lib/getstream_ruby/generated/models/update_app_request.rb +5 -0
  45. data/lib/getstream_ruby/generated/models/update_channel_type_request.rb +5 -0
  46. data/lib/getstream_ruby/generated/models/update_channel_type_response.rb +6 -1
  47. data/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_request.rb +5 -5
  48. data/lib/getstream_ruby/generated/models/update_sip_trunk_request.rb +11 -1
  49. data/lib/getstream_ruby/generated/video_client.rb +17 -0
  50. data/lib/getstream_ruby/version.rb +1 -1
  51. metadata +19 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67fb494f48aa4c0226e6edd69ab9d1359fadecba476ada6238e49e22796a5825
4
- data.tar.gz: 3f0b6355056108b0742838d4d28bc2122b98891d1116b49c76b6dac58595e1bc
3
+ metadata.gz: '09783400d9df1d885d1ef3772691019380c27be23dc35aa3c778076561b8b737'
4
+ data.tar.gz: 65f31d412caca10cfb1977fc5c4d85c4bd1b51d2f5f6d422cd12d46227fab9ab
5
5
  SHA512:
6
- metadata.gz: 4b130692d9d5e63d1127107ac813976fd9e0d85f8365df8093e84885984fa4cc6b230c211238917486311728cefaaf59300a2d5552da601730d51a5137dfc99e
7
- data.tar.gz: 58f9aafcc97b537fcbba0042d6da4e25a1c67748dd2d468708efcef86573381094968caab90311c4296b8033b7afb718dc4a34d381e94665c3b62d9f7b762ddb
6
+ metadata.gz: 3526791434a33268b2e3735fe7a940581c9b2e8a2d1a09e4a2d57dad180dd87319e3b4fb265c364d9b984e45a8af5720aa65141c537f54e245daef2e5af47da8
7
+ data.tar.gz: f4f1f6b9a9afca68d354159832ed7d36bd6202ef5cef25e3e09e774d92a3c783263d55c7d87160db43d9487f845c036d3cf7463f920952e17597a66c27643129
@@ -1388,6 +1388,73 @@ module GetStream
1388
1388
  )
1389
1389
  end
1390
1390
 
1391
+ # Returns all retention policies configured for the app. Server-side only.
1392
+ #
1393
+ # @return [Models::GetRetentionPolicyResponse]
1394
+ def get_retention_policy()
1395
+ path = '/api/v2/chat/retention_policy'
1396
+
1397
+ # Make the API request
1398
+ @client.make_request(
1399
+ :get,
1400
+ path
1401
+ )
1402
+ end
1403
+
1404
+ # Creates or updates a retention policy for the app. Server-side only.
1405
+ #
1406
+ # @param set_retention_policy_request [SetRetentionPolicyRequest]
1407
+ # @return [Models::SetRetentionPolicyResponse]
1408
+ def set_retention_policy(set_retention_policy_request)
1409
+ path = '/api/v2/chat/retention_policy'
1410
+ # Build request body
1411
+ body = set_retention_policy_request
1412
+
1413
+ # Make the API request
1414
+ @client.make_request(
1415
+ :post,
1416
+ path,
1417
+ body: body
1418
+ )
1419
+ end
1420
+
1421
+ # Removes a retention policy for the app. Server-side only.
1422
+ #
1423
+ # @param delete_retention_policy_request [DeleteRetentionPolicyRequest]
1424
+ # @return [Models::DeleteRetentionPolicyResponse]
1425
+ def delete_retention_policy(delete_retention_policy_request)
1426
+ path = '/api/v2/chat/retention_policy/delete'
1427
+ # Build request body
1428
+ body = delete_retention_policy_request
1429
+
1430
+ # Make the API request
1431
+ @client.make_request(
1432
+ :post,
1433
+ path,
1434
+ body: body
1435
+ )
1436
+ end
1437
+
1438
+ # Returns paginated retention cleanup run history for the app. Server-side only.
1439
+ #
1440
+ # @param limit [Integer]
1441
+ # @param offset [Integer]
1442
+ # @return [Models::GetRetentionPolicyRunsResponse]
1443
+ def get_retention_policy_runs(limit = nil, offset = nil)
1444
+ path = '/api/v2/chat/retention_policy/runs'
1445
+ # Build query parameters
1446
+ query_params = {}
1447
+ query_params['limit'] = limit unless limit.nil?
1448
+ query_params['offset'] = offset unless offset.nil?
1449
+
1450
+ # Make the API request
1451
+ @client.make_request(
1452
+ :get,
1453
+ path,
1454
+ query_params: query_params
1455
+ )
1456
+ end
1457
+
1391
1458
  # Search messages across channels
1392
1459
  #
1393
1460
  # @param payload [SearchPayload]
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class AIImageLabelDefinition < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute description
13
+ # @return [String]
14
+ attr_accessor :description
15
+ # @!attribute group
16
+ # @return [String]
17
+ attr_accessor :group
18
+ # @!attribute key
19
+ # @return [String]
20
+ attr_accessor :key
21
+ # @!attribute label
22
+ # @return [String]
23
+ attr_accessor :label
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @description = attributes[:description] || attributes['description']
29
+ @group = attributes[:group] || attributes['group']
30
+ @key = attributes[:key] || attributes['key']
31
+ @label = attributes[:label] || attributes['label']
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ description: 'description',
38
+ group: 'group',
39
+ key: 'key',
40
+ label: 'label'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -165,6 +165,9 @@ module GetStream
165
165
  # @!attribute image_moderation_labels
166
166
  # @return [Array<String>]
167
167
  attr_accessor :image_moderation_labels
168
+ # @!attribute activity_metrics_config
169
+ # @return [Hash<String, Integer>]
170
+ attr_accessor :activity_metrics_config
168
171
  # @!attribute datadog_info
169
172
  # @return [DataDogInfo]
170
173
  attr_accessor :datadog_info
@@ -227,6 +230,7 @@ module GetStream
227
230
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
228
231
  @geofences = attributes[:geofences] || attributes['geofences'] || nil
229
232
  @image_moderation_labels = attributes[:image_moderation_labels] || attributes['image_moderation_labels'] || nil
233
+ @activity_metrics_config = attributes[:activity_metrics_config] || attributes['activity_metrics_config'] || nil
230
234
  @datadog_info = attributes[:datadog_info] || attributes['datadog_info'] || nil
231
235
  @moderation_dashboard_preferences = attributes[:moderation_dashboard_preferences] || attributes['moderation_dashboard_preferences'] || nil
232
236
  end
@@ -286,6 +290,7 @@ module GetStream
286
290
  allowed_flag_reasons: 'allowed_flag_reasons',
287
291
  geofences: 'geofences',
288
292
  image_moderation_labels: 'image_moderation_labels',
293
+ activity_metrics_config: 'activity_metrics_config',
289
294
  datadog_info: 'datadog_info',
290
295
  moderation_dashboard_preferences: 'moderation_dashboard_preferences'
291
296
  }
@@ -43,7 +43,7 @@ module GetStream
43
43
  @started_at = attributes[:started_at] || attributes['started_at']
44
44
  @task_id = attributes[:task_id] || attributes['task_id']
45
45
  @custom = attributes[:custom] || attributes['custom']
46
- @type = attributes[:type] || attributes['type'] || "export.channels.error"
46
+ @type = attributes[:type] || attributes['type'] || "export.users.error"
47
47
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
48
48
  end
49
49
 
@@ -19,7 +19,7 @@ module GetStream
19
19
  # @return [Float]
20
20
  attr_accessor :min_confidence
21
21
  # @!attribute subclassifications
22
- # @return [Hash<String, Boolean>]
22
+ # @return [Object]
23
23
  attr_accessor :subclassifications
24
24
 
25
25
  # Initialize with attributes
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute reason
25
25
  # @return [String] The reason why the call ended, if available
26
26
  attr_accessor :reason
27
+ # @!attribute members
28
+ # @return [Array<MemberResponse>] The list of members in the call
29
+ attr_accessor :members
27
30
  # @!attribute user
28
31
  # @return [UserResponse]
29
32
  attr_accessor :user
@@ -36,6 +39,7 @@ module GetStream
36
39
  @call = attributes[:call] || attributes['call']
37
40
  @type = attributes[:type] || attributes['type'] || "call.ended"
38
41
  @reason = attributes[:reason] || attributes['reason'] || nil
42
+ @members = attributes[:members] || attributes['members'] || nil
39
43
  @user = attributes[:user] || attributes['user'] || nil
40
44
  end
41
45
 
@@ -47,6 +51,7 @@ module GetStream
47
51
  call: 'call',
48
52
  type: 'type',
49
53
  reason: 'reason',
54
+ members: 'members',
50
55
  user: 'user'
51
56
  }
52
57
  end
@@ -114,6 +114,9 @@ module GetStream
114
114
  # @!attribute automod_thresholds
115
115
  # @return [Thresholds]
116
116
  attr_accessor :automod_thresholds
117
+ # @!attribute chat_preferences
118
+ # @return [ChatPreferences]
119
+ attr_accessor :chat_preferences
117
120
 
118
121
  # Initialize with attributes
119
122
  def initialize(attributes = {})
@@ -153,6 +156,7 @@ module GetStream
153
156
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
154
157
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
155
158
  @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil
159
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
156
160
  end
157
161
 
158
162
  # Override field mappings for JSON serialization
@@ -192,7 +196,8 @@ module GetStream
192
196
  push_level: 'push_level',
193
197
  allowed_flag_reasons: 'allowed_flag_reasons',
194
198
  blocklists: 'blocklists',
195
- automod_thresholds: 'automod_thresholds'
199
+ automod_thresholds: 'automod_thresholds',
200
+ chat_preferences: 'chat_preferences'
196
201
  }
197
202
  end
198
203
  end
@@ -114,6 +114,9 @@ module GetStream
114
114
  # @!attribute automod_thresholds
115
115
  # @return [Thresholds]
116
116
  attr_accessor :automod_thresholds
117
+ # @!attribute chat_preferences
118
+ # @return [ChatPreferences]
119
+ attr_accessor :chat_preferences
117
120
  # @!attribute grants
118
121
  # @return [Hash<String, Array<String>>]
119
122
  attr_accessor :grants
@@ -156,6 +159,7 @@ module GetStream
156
159
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
157
160
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
158
161
  @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil
162
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
159
163
  @grants = attributes[:grants] || attributes['grants'] || nil
160
164
  end
161
165
 
@@ -197,6 +201,7 @@ module GetStream
197
201
  allowed_flag_reasons: 'allowed_flag_reasons',
198
202
  blocklists: 'blocklists',
199
203
  automod_thresholds: 'automod_thresholds',
204
+ chat_preferences: 'chat_preferences',
200
205
  grants: 'grants'
201
206
  }
202
207
  end
@@ -15,19 +15,24 @@ module GetStream
15
15
  # @!attribute disabled_until
16
16
  # @return [DateTime]
17
17
  attr_accessor :disabled_until
18
+ # @!attribute chat_preferences
19
+ # @return [ChatPreferencesResponse]
20
+ attr_accessor :chat_preferences
18
21
 
19
22
  # Initialize with attributes
20
23
  def initialize(attributes = {})
21
24
  super(attributes)
22
25
  @chat_level = attributes[:chat_level] || attributes['chat_level'] || nil
23
26
  @disabled_until = attributes[:disabled_until] || attributes['disabled_until'] || nil
27
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
24
28
  end
25
29
 
26
30
  # Override field mappings for JSON serialization
27
31
  def self.json_field_mappings
28
32
  {
29
33
  chat_level: 'chat_level',
30
- disabled_until: 'disabled_until'
34
+ disabled_until: 'disabled_until',
35
+ chat_preferences: 'chat_preferences'
31
36
  }
32
37
  end
33
38
  end
@@ -120,6 +120,9 @@ module GetStream
120
120
  # @!attribute automod_thresholds
121
121
  # @return [Thresholds]
122
122
  attr_accessor :automod_thresholds
123
+ # @!attribute chat_preferences
124
+ # @return [ChatPreferences]
125
+ attr_accessor :chat_preferences
123
126
 
124
127
  # Initialize with attributes
125
128
  def initialize(attributes = {})
@@ -161,6 +164,7 @@ module GetStream
161
164
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
162
165
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
163
166
  @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil
167
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
164
168
  end
165
169
 
166
170
  # Override field mappings for JSON serialization
@@ -202,7 +206,8 @@ module GetStream
202
206
  push_level: 'push_level',
203
207
  allowed_flag_reasons: 'allowed_flag_reasons',
204
208
  blocklists: 'blocklists',
205
- automod_thresholds: 'automod_thresholds'
209
+ automod_thresholds: 'automod_thresholds',
210
+ chat_preferences: 'chat_preferences'
206
211
  }
207
212
  end
208
213
  end
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class ChatPreferences < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute channel_mentions
13
+ # @return [String]
14
+ attr_accessor :channel_mentions
15
+ # @!attribute default_preference
16
+ # @return [String]
17
+ attr_accessor :default_preference
18
+ # @!attribute direct_mentions
19
+ # @return [String]
20
+ attr_accessor :direct_mentions
21
+ # @!attribute distinct_channel_messages
22
+ # @return [String]
23
+ attr_accessor :distinct_channel_messages
24
+ # @!attribute group_mentions
25
+ # @return [String]
26
+ attr_accessor :group_mentions
27
+ # @!attribute here_mentions
28
+ # @return [String]
29
+ attr_accessor :here_mentions
30
+ # @!attribute role_mentions
31
+ # @return [String]
32
+ attr_accessor :role_mentions
33
+ # @!attribute thread_replies
34
+ # @return [String]
35
+ attr_accessor :thread_replies
36
+
37
+ # Initialize with attributes
38
+ def initialize(attributes = {})
39
+ super(attributes)
40
+ @channel_mentions = attributes[:channel_mentions] || attributes['channel_mentions'] || nil
41
+ @default_preference = attributes[:default_preference] || attributes['default_preference'] || nil
42
+ @direct_mentions = attributes[:direct_mentions] || attributes['direct_mentions'] || nil
43
+ @distinct_channel_messages = attributes[:distinct_channel_messages] || attributes['distinct_channel_messages'] || nil
44
+ @group_mentions = attributes[:group_mentions] || attributes['group_mentions'] || nil
45
+ @here_mentions = attributes[:here_mentions] || attributes['here_mentions'] || nil
46
+ @role_mentions = attributes[:role_mentions] || attributes['role_mentions'] || nil
47
+ @thread_replies = attributes[:thread_replies] || attributes['thread_replies'] || nil
48
+ end
49
+
50
+ # Override field mappings for JSON serialization
51
+ def self.json_field_mappings
52
+ {
53
+ channel_mentions: 'channel_mentions',
54
+ default_preference: 'default_preference',
55
+ direct_mentions: 'direct_mentions',
56
+ distinct_channel_messages: 'distinct_channel_messages',
57
+ group_mentions: 'group_mentions',
58
+ here_mentions: 'here_mentions',
59
+ role_mentions: 'role_mentions',
60
+ thread_replies: 'thread_replies'
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class ChatPreferencesInput < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute channel_mentions
13
+ # @return [String]
14
+ attr_accessor :channel_mentions
15
+ # @!attribute default_preference
16
+ # @return [String]
17
+ attr_accessor :default_preference
18
+ # @!attribute direct_mentions
19
+ # @return [String]
20
+ attr_accessor :direct_mentions
21
+ # @!attribute group_mentions
22
+ # @return [String]
23
+ attr_accessor :group_mentions
24
+ # @!attribute here_mentions
25
+ # @return [String]
26
+ attr_accessor :here_mentions
27
+ # @!attribute role_mentions
28
+ # @return [String]
29
+ attr_accessor :role_mentions
30
+ # @!attribute thread_replies
31
+ # @return [String]
32
+ attr_accessor :thread_replies
33
+
34
+ # Initialize with attributes
35
+ def initialize(attributes = {})
36
+ super(attributes)
37
+ @channel_mentions = attributes[:channel_mentions] || attributes['channel_mentions'] || nil
38
+ @default_preference = attributes[:default_preference] || attributes['default_preference'] || nil
39
+ @direct_mentions = attributes[:direct_mentions] || attributes['direct_mentions'] || nil
40
+ @group_mentions = attributes[:group_mentions] || attributes['group_mentions'] || nil
41
+ @here_mentions = attributes[:here_mentions] || attributes['here_mentions'] || nil
42
+ @role_mentions = attributes[:role_mentions] || attributes['role_mentions'] || nil
43
+ @thread_replies = attributes[:thread_replies] || attributes['thread_replies'] || nil
44
+ end
45
+
46
+ # Override field mappings for JSON serialization
47
+ def self.json_field_mappings
48
+ {
49
+ channel_mentions: 'channel_mentions',
50
+ default_preference: 'default_preference',
51
+ direct_mentions: 'direct_mentions',
52
+ group_mentions: 'group_mentions',
53
+ here_mentions: 'here_mentions',
54
+ role_mentions: 'role_mentions',
55
+ thread_replies: 'thread_replies'
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class ChatPreferencesResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute channel_mentions
13
+ # @return [String]
14
+ attr_accessor :channel_mentions
15
+ # @!attribute default_preference
16
+ # @return [String]
17
+ attr_accessor :default_preference
18
+ # @!attribute direct_mentions
19
+ # @return [String]
20
+ attr_accessor :direct_mentions
21
+ # @!attribute group_mentions
22
+ # @return [String]
23
+ attr_accessor :group_mentions
24
+ # @!attribute here_mentions
25
+ # @return [String]
26
+ attr_accessor :here_mentions
27
+ # @!attribute role_mentions
28
+ # @return [String]
29
+ attr_accessor :role_mentions
30
+ # @!attribute thread_replies
31
+ # @return [String]
32
+ attr_accessor :thread_replies
33
+
34
+ # Initialize with attributes
35
+ def initialize(attributes = {})
36
+ super(attributes)
37
+ @channel_mentions = attributes[:channel_mentions] || attributes['channel_mentions'] || nil
38
+ @default_preference = attributes[:default_preference] || attributes['default_preference'] || nil
39
+ @direct_mentions = attributes[:direct_mentions] || attributes['direct_mentions'] || nil
40
+ @group_mentions = attributes[:group_mentions] || attributes['group_mentions'] || nil
41
+ @here_mentions = attributes[:here_mentions] || attributes['here_mentions'] || nil
42
+ @role_mentions = attributes[:role_mentions] || attributes['role_mentions'] || nil
43
+ @thread_replies = attributes[:thread_replies] || attributes['thread_replies'] || nil
44
+ end
45
+
46
+ # Override field mappings for JSON serialization
47
+ def self.json_field_mappings
48
+ {
49
+ channel_mentions: 'channel_mentions',
50
+ default_preference: 'default_preference',
51
+ direct_mentions: 'direct_mentions',
52
+ group_mentions: 'group_mentions',
53
+ here_mentions: 'here_mentions',
54
+ role_mentions: 'role_mentions',
55
+ thread_replies: 'thread_replies'
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute item
25
25
  # @return [ReviewQueueItemResponse]
26
26
  attr_accessor :item
27
+ # @!attribute triggered_rule
28
+ # @return [TriggeredRuleResponse]
29
+ attr_accessor :triggered_rule
27
30
 
28
31
  # Initialize with attributes
29
32
  def initialize(attributes = {})
@@ -33,6 +36,7 @@ module GetStream
33
36
  @status = attributes[:status] || attributes['status']
34
37
  @task_id = attributes[:task_id] || attributes['task_id'] || nil
35
38
  @item = attributes[:item] || attributes['item'] || nil
39
+ @triggered_rule = attributes[:triggered_rule] || attributes['triggered_rule'] || nil
36
40
  end
37
41
 
38
42
  # Override field mappings for JSON serialization
@@ -42,7 +46,8 @@ module GetStream
42
46
  recommended_action: 'recommended_action',
43
47
  status: 'status',
44
48
  task_id: 'task_id',
45
- item: 'item'
49
+ item: 'item',
50
+ triggered_rule: 'triggered_rule'
46
51
  }
47
52
  end
48
53
  end
@@ -21,6 +21,9 @@ module GetStream
21
21
  # @!attribute max_message_length
22
22
  # @return [Integer] Maximum message length
23
23
  attr_accessor :max_message_length
24
+ # @!attribute push_level
25
+ # @return [String]
26
+ attr_accessor :push_level
24
27
  # @!attribute quotes
25
28
  # @return [Boolean] Enable/disable quotes
26
29
  attr_accessor :quotes
@@ -48,6 +51,9 @@ module GetStream
48
51
  # @!attribute commands
49
52
  # @return [Array<String>] List of available commands
50
53
  attr_accessor :commands
54
+ # @!attribute chat_preferences
55
+ # @return [ChatPreferences]
56
+ attr_accessor :chat_preferences
51
57
  # @!attribute grants
52
58
  # @return [Hash<String, Array<String>>] Permission grants modifiers
53
59
  attr_accessor :grants
@@ -59,6 +65,7 @@ module GetStream
59
65
  @blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil
60
66
  @count_messages = attributes[:count_messages] || attributes['count_messages'] || nil
61
67
  @max_message_length = attributes[:max_message_length] || attributes['max_message_length'] || nil
68
+ @push_level = attributes[:push_level] || attributes['push_level'] || nil
62
69
  @quotes = attributes[:quotes] || attributes['quotes'] || nil
63
70
  @reactions = attributes[:reactions] || attributes['reactions'] || nil
64
71
  @replies = attributes[:replies] || attributes['replies'] || nil
@@ -68,6 +75,7 @@ module GetStream
68
75
  @url_enrichment = attributes[:url_enrichment] || attributes['url_enrichment'] || nil
69
76
  @user_message_reminders = attributes[:user_message_reminders] || attributes['user_message_reminders'] || nil
70
77
  @commands = attributes[:commands] || attributes['commands'] || nil
78
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
71
79
  @grants = attributes[:grants] || attributes['grants'] || nil
72
80
  end
73
81
 
@@ -78,6 +86,7 @@ module GetStream
78
86
  blocklist_behavior: 'blocklist_behavior',
79
87
  count_messages: 'count_messages',
80
88
  max_message_length: 'max_message_length',
89
+ push_level: 'push_level',
81
90
  quotes: 'quotes',
82
91
  reactions: 'reactions',
83
92
  replies: 'replies',
@@ -87,6 +96,7 @@ module GetStream
87
96
  url_enrichment: 'url_enrichment',
88
97
  user_message_reminders: 'user_message_reminders',
89
98
  commands: 'commands',
99
+ chat_preferences: 'chat_preferences',
90
100
  grants: 'grants'
91
101
  }
92
102
  end
@@ -27,6 +27,9 @@ module GetStream
27
27
  # @!attribute supported_video_call_harm_types
28
28
  # @return [Array<String>]
29
29
  attr_accessor :supported_video_call_harm_types
30
+ # @!attribute ai_image_label_definitions
31
+ # @return [Array<AIImageLabelDefinition>] Configurable image moderation label definitions for dashboard rendering
32
+ attr_accessor :ai_image_label_definitions
30
33
  # @!attribute ai_image_config
31
34
  # @return [AIImageConfig]
32
35
  attr_accessor :ai_image_config
@@ -70,6 +73,7 @@ module GetStream
70
73
  @team = attributes[:team] || attributes['team']
71
74
  @updated_at = attributes[:updated_at] || attributes['updated_at']
72
75
  @supported_video_call_harm_types = attributes[:supported_video_call_harm_types] || attributes['supported_video_call_harm_types']
76
+ @ai_image_label_definitions = attributes[:ai_image_label_definitions] || attributes['ai_image_label_definitions'] || nil
73
77
  @ai_image_config = attributes[:ai_image_config] || attributes['ai_image_config'] || nil
74
78
  @ai_image_subclassifications = attributes[:ai_image_subclassifications] || attributes['ai_image_subclassifications'] || nil
75
79
  @ai_text_config = attributes[:ai_text_config] || attributes['ai_text_config'] || nil
@@ -92,6 +96,7 @@ module GetStream
92
96
  team: 'team',
93
97
  updated_at: 'updated_at',
94
98
  supported_video_call_harm_types: 'supported_video_call_harm_types',
99
+ ai_image_label_definitions: 'ai_image_label_definitions',
95
100
  ai_image_config: 'ai_image_config',
96
101
  ai_image_subclassifications: 'ai_image_subclassifications',
97
102
  ai_text_config: 'ai_text_config',
@@ -102,6 +102,9 @@ module GetStream
102
102
  # @!attribute permissions
103
103
  # @return [Array<PolicyRequest>] List of permissions for the channel type
104
104
  attr_accessor :permissions
105
+ # @!attribute chat_preferences
106
+ # @return [ChatPreferences]
107
+ attr_accessor :chat_preferences
105
108
  # @!attribute grants
106
109
  # @return [Hash<String, Array<String>>] List of grants for the channel type
107
110
  attr_accessor :grants
@@ -140,6 +143,7 @@ module GetStream
140
143
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
141
144
  @commands = attributes[:commands] || attributes['commands'] || nil
142
145
  @permissions = attributes[:permissions] || attributes['permissions'] || nil
146
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
143
147
  @grants = attributes[:grants] || attributes['grants'] || nil
144
148
  end
145
149
 
@@ -177,6 +181,7 @@ module GetStream
177
181
  blocklists: 'blocklists',
178
182
  commands: 'commands',
179
183
  permissions: 'permissions',
184
+ chat_preferences: 'chat_preferences',
180
185
  grants: 'grants'
181
186
  }
182
187
  end
@@ -123,6 +123,9 @@ module GetStream
123
123
  # @!attribute automod_thresholds
124
124
  # @return [Thresholds]
125
125
  attr_accessor :automod_thresholds
126
+ # @!attribute chat_preferences
127
+ # @return [ChatPreferences]
128
+ attr_accessor :chat_preferences
126
129
 
127
130
  # Initialize with attributes
128
131
  def initialize(attributes = {})
@@ -165,6 +168,7 @@ module GetStream
165
168
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
166
169
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
167
170
  @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil
171
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
168
172
  end
169
173
 
170
174
  # Override field mappings for JSON serialization
@@ -207,7 +211,8 @@ module GetStream
207
211
  push_level: 'push_level',
208
212
  allowed_flag_reasons: 'allowed_flag_reasons',
209
213
  blocklists: 'blocklists',
210
- automod_thresholds: 'automod_thresholds'
214
+ automod_thresholds: 'automod_thresholds',
215
+ chat_preferences: 'chat_preferences'
211
216
  }
212
217
  end
213
218
  end