getstream-ruby 11.1.0 → 12.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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +5 -3
  3. data/lib/getstream_ruby/generated/common_client.rb +5 -1
  4. data/lib/getstream_ruby/generated/feeds_client.rb +7 -3
  5. data/lib/getstream_ruby/generated/models/accept_follow_request.rb +1 -1
  6. data/lib/getstream_ruby/generated/models/activity_marks_config.rb +36 -0
  7. data/lib/getstream_ruby/generated/models/activity_processing_config.rb +41 -0
  8. data/lib/getstream_ruby/generated/models/activity_selector_config.rb +5 -0
  9. data/lib/getstream_ruby/generated/models/activity_selector_config_response.rb +5 -0
  10. data/lib/getstream_ruby/generated/models/ai_video_config.rb +5 -0
  11. data/lib/getstream_ruby/generated/models/ai_video_config_request.rb +41 -0
  12. data/lib/getstream_ruby/generated/models/ai_video_config_response.rb +41 -0
  13. data/lib/getstream_ruby/generated/models/analyze_response.rb +1 -1
  14. data/lib/getstream_ruby/generated/models/app_response_fields.rb +15 -0
  15. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  16. data/lib/getstream_ruby/generated/models/channel_batch_update_request.rb +15 -0
  17. data/lib/getstream_ruby/generated/models/channel_member_request.rb +6 -6
  18. data/lib/getstream_ruby/generated/models/config_response.rb +1 -1
  19. data/lib/getstream_ruby/generated/models/create_feed_group_request.rb +15 -0
  20. data/lib/getstream_ruby/generated/models/create_feeds_batch_request.rb +5 -0
  21. data/lib/getstream_ruby/generated/models/create_reminder_response.rb +36 -0
  22. data/lib/getstream_ruby/generated/models/delete_channels_request.rb +7 -2
  23. data/lib/getstream_ruby/generated/models/feed_group.rb +5 -0
  24. data/lib/getstream_ruby/generated/models/feed_group_response.rb +15 -0
  25. data/lib/getstream_ruby/generated/models/feed_group_scope.rb +36 -0
  26. data/lib/getstream_ruby/generated/models/follow_response.rb +1 -1
  27. data/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb +10 -0
  28. data/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +15 -0
  29. data/lib/getstream_ruby/generated/models/get_rate_limits_response.rb +10 -0
  30. data/lib/getstream_ruby/generated/models/member_user_request.rb +76 -0
  31. data/lib/getstream_ruby/generated/models/message_response.rb +5 -0
  32. data/lib/getstream_ruby/generated/models/message_with_channel_response.rb +5 -0
  33. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +5 -0
  34. data/lib/getstream_ruby/generated/models/moderation_flag_response.rb +5 -0
  35. data/lib/getstream_ruby/generated/models/pagination_params.rb +20 -0
  36. data/lib/getstream_ruby/generated/models/poll_response_data.rb +1 -1
  37. data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +20 -0
  38. data/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb +20 -0
  39. data/lib/getstream_ruby/generated/models/query_members_payload.rb +45 -5
  40. data/lib/getstream_ruby/generated/models/query_users_payload.rb +20 -0
  41. data/lib/getstream_ruby/generated/models/reminder_created_event.rb +6 -6
  42. data/lib/getstream_ruby/generated/models/reminder_deleted_event.rb +6 -6
  43. data/lib/getstream_ruby/generated/models/reminder_notification_event.rb +6 -6
  44. data/lib/getstream_ruby/generated/models/reminder_updated_event.rb +6 -6
  45. data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +5 -0
  46. data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +5 -0
  47. data/lib/getstream_ruby/generated/models/run_stats.rb +5 -0
  48. data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
  49. data/lib/getstream_ruby/generated/models/translate_message_response.rb +36 -0
  50. data/lib/getstream_ruby/generated/models/unban_request.rb +2 -1
  51. data/lib/getstream_ruby/generated/models/update_app_request.rb +10 -0
  52. data/lib/getstream_ruby/generated/models/update_feed_group_request.rb +16 -1
  53. data/lib/getstream_ruby/generated/models/update_follow_request.rb +1 -1
  54. data/lib/getstream_ruby/generated/models/update_users_response.rb +2 -1
  55. data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
  56. data/lib/getstream_ruby/generated/models/user_reaction_count_rule_parameters.rb +36 -0
  57. data/lib/getstream_ruby/generated/models/webhook_failover_config.rb +30 -0
  58. data/lib/getstream_ruby/generated/video_client.rb +3 -3
  59. data/lib/getstream_ruby/version.rb +1 -1
  60. metadata +11 -2
@@ -12,9 +12,18 @@ module GetStream
12
12
  # @!attribute type
13
13
  # @return [String]
14
14
  attr_accessor :type
15
- # @!attribute filter_conditions
16
- # @return [Object] Filter conditions to apply to the query
17
- attr_accessor :filter_conditions
15
+ # @!attribute created_at_after
16
+ # @return [DateTime]
17
+ attr_accessor :created_at_after
18
+ # @!attribute created_at_after_or_equal
19
+ # @return [DateTime]
20
+ attr_accessor :created_at_after_or_equal
21
+ # @!attribute created_at_before
22
+ # @return [DateTime]
23
+ attr_accessor :created_at_before
24
+ # @!attribute created_at_before_or_equal
25
+ # @return [DateTime]
26
+ attr_accessor :created_at_before_or_equal
18
27
  # @!attribute id
19
28
  # @return [String]
20
29
  attr_accessor :id
@@ -27,12 +36,27 @@ module GetStream
27
36
  # @!attribute user_id
28
37
  # @return [String]
29
38
  attr_accessor :user_id
39
+ # @!attribute user_id_gt
40
+ # @return [String]
41
+ attr_accessor :user_id_gt
42
+ # @!attribute user_id_gte
43
+ # @return [String]
44
+ attr_accessor :user_id_gte
45
+ # @!attribute user_id_lt
46
+ # @return [String]
47
+ attr_accessor :user_id_lt
48
+ # @!attribute user_id_lte
49
+ # @return [String]
50
+ attr_accessor :user_id_lte
30
51
  # @!attribute members
31
52
  # @return [Array<ChannelMemberRequest>]
32
53
  attr_accessor :members
33
54
  # @!attribute sort
34
55
  # @return [Array<SortParamRequest>] Array of sort parameters
35
56
  attr_accessor :sort
57
+ # @!attribute filter_conditions
58
+ # @return [Object] Filter conditions to apply to the query
59
+ attr_accessor :filter_conditions
36
60
  # @!attribute user
37
61
  # @return [UserRequest] User request object
38
62
  attr_accessor :user
@@ -41,13 +65,21 @@ module GetStream
41
65
  def initialize(attributes = {})
42
66
  super(attributes)
43
67
  @type = attributes[:type] || attributes['type']
44
- @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions']
68
+ @created_at_after = attributes[:created_at_after] || attributes['created_at_after'] || nil
69
+ @created_at_after_or_equal = attributes[:created_at_after_or_equal] || attributes['created_at_after_or_equal'] || nil
70
+ @created_at_before = attributes[:created_at_before] || attributes['created_at_before'] || nil
71
+ @created_at_before_or_equal = attributes[:created_at_before_or_equal] || attributes['created_at_before_or_equal'] || nil
45
72
  @id = attributes[:id] || attributes['id'] || nil
46
73
  @limit = attributes[:limit] || attributes['limit'] || nil
47
74
  @offset = attributes[:offset] || attributes['offset'] || nil
48
75
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
76
+ @user_id_gt = attributes[:user_id_gt] || attributes['user_id_gt'] || nil
77
+ @user_id_gte = attributes[:user_id_gte] || attributes['user_id_gte'] || nil
78
+ @user_id_lt = attributes[:user_id_lt] || attributes['user_id_lt'] || nil
79
+ @user_id_lte = attributes[:user_id_lte] || attributes['user_id_lte'] || nil
49
80
  @members = attributes[:members] || attributes['members'] || nil
50
81
  @sort = attributes[:sort] || attributes['sort'] || nil
82
+ @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil
51
83
  @user = attributes[:user] || attributes['user'] || nil
52
84
  end
53
85
 
@@ -55,13 +87,21 @@ module GetStream
55
87
  def self.json_field_mappings
56
88
  {
57
89
  type: 'type',
58
- filter_conditions: 'filter_conditions',
90
+ created_at_after: 'created_at_after',
91
+ created_at_after_or_equal: 'created_at_after_or_equal',
92
+ created_at_before: 'created_at_before',
93
+ created_at_before_or_equal: 'created_at_before_or_equal',
59
94
  id: 'id',
60
95
  limit: 'limit',
61
96
  offset: 'offset',
62
97
  user_id: 'user_id',
98
+ user_id_gt: 'user_id_gt',
99
+ user_id_gte: 'user_id_gte',
100
+ user_id_lt: 'user_id_lt',
101
+ user_id_lte: 'user_id_lte',
63
102
  members: 'members',
64
103
  sort: 'sort',
104
+ filter_conditions: 'filter_conditions',
65
105
  user: 'user'
66
106
  }
67
107
  end
@@ -12,6 +12,18 @@ module GetStream
12
12
  # @!attribute filter_conditions
13
13
  # @return [Object] Filter conditions to apply to the query
14
14
  attr_accessor :filter_conditions
15
+ # @!attribute id_gt
16
+ # @return [String]
17
+ attr_accessor :id_gt
18
+ # @!attribute id_gte
19
+ # @return [String]
20
+ attr_accessor :id_gte
21
+ # @!attribute id_lt
22
+ # @return [String]
23
+ attr_accessor :id_lt
24
+ # @!attribute id_lte
25
+ # @return [String]
26
+ attr_accessor :id_lte
15
27
  # @!attribute include_deactivated_users
16
28
  # @return [Boolean]
17
29
  attr_accessor :include_deactivated_users
@@ -38,6 +50,10 @@ module GetStream
38
50
  def initialize(attributes = {})
39
51
  super(attributes)
40
52
  @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions']
53
+ @id_gt = attributes[:id_gt] || attributes['id_gt'] || nil
54
+ @id_gte = attributes[:id_gte] || attributes['id_gte'] || nil
55
+ @id_lt = attributes[:id_lt] || attributes['id_lt'] || nil
56
+ @id_lte = attributes[:id_lte] || attributes['id_lte'] || nil
41
57
  @include_deactivated_users = attributes[:include_deactivated_users] || attributes['include_deactivated_users'] || nil
42
58
  @limit = attributes[:limit] || attributes['limit'] || nil
43
59
  @offset = attributes[:offset] || attributes['offset'] || nil
@@ -51,6 +67,10 @@ module GetStream
51
67
  def self.json_field_mappings
52
68
  {
53
69
  filter_conditions: 'filter_conditions',
70
+ id_gt: 'id_gt',
71
+ id_gte: 'id_gte',
72
+ id_lt: 'id_lt',
73
+ id_lte: 'id_lte',
54
74
  include_deactivated_users: 'include_deactivated_users',
55
75
  limit: 'limit',
56
76
  offset: 'offset',
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute custom
25
25
  # @return [Object]
26
26
  attr_accessor :custom
27
+ # @!attribute reminder
28
+ # @return [ReminderResponseData]
29
+ attr_accessor :reminder
27
30
  # @!attribute type
28
31
  # @return [String] The type of event: "reminder.created" in this case
29
32
  attr_accessor :type
@@ -33,9 +36,6 @@ module GetStream
33
36
  # @!attribute received_at
34
37
  # @return [DateTime]
35
38
  attr_accessor :received_at
36
- # @!attribute reminder
37
- # @return [ReminderResponseData]
38
- attr_accessor :reminder
39
39
 
40
40
  # Initialize with attributes
41
41
  def initialize(attributes = {})
@@ -45,10 +45,10 @@ module GetStream
45
45
  @message_id = attributes[:message_id] || attributes['message_id']
46
46
  @user_id = attributes[:user_id] || attributes['user_id']
47
47
  @custom = attributes[:custom] || attributes['custom']
48
+ @reminder = attributes[:reminder] || attributes['reminder']
48
49
  @type = attributes[:type] || attributes['type'] || "reminder.created"
49
50
  @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
50
51
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
51
- @reminder = attributes[:reminder] || attributes['reminder'] || nil
52
52
  end
53
53
 
54
54
  # Override field mappings for JSON serialization
@@ -59,10 +59,10 @@ module GetStream
59
59
  message_id: 'message_id',
60
60
  user_id: 'user_id',
61
61
  custom: 'custom',
62
+ reminder: 'reminder',
62
63
  type: 'type',
63
64
  parent_id: 'parent_id',
64
- received_at: 'received_at',
65
- reminder: 'reminder'
65
+ received_at: 'received_at'
66
66
  }
67
67
  end
68
68
  end
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute custom
25
25
  # @return [Object]
26
26
  attr_accessor :custom
27
+ # @!attribute reminder
28
+ # @return [ReminderResponseData]
29
+ attr_accessor :reminder
27
30
  # @!attribute type
28
31
  # @return [String] The type of event: "reminder.deleted" in this case
29
32
  attr_accessor :type
@@ -33,9 +36,6 @@ module GetStream
33
36
  # @!attribute received_at
34
37
  # @return [DateTime]
35
38
  attr_accessor :received_at
36
- # @!attribute reminder
37
- # @return [ReminderResponseData]
38
- attr_accessor :reminder
39
39
 
40
40
  # Initialize with attributes
41
41
  def initialize(attributes = {})
@@ -45,10 +45,10 @@ module GetStream
45
45
  @message_id = attributes[:message_id] || attributes['message_id']
46
46
  @user_id = attributes[:user_id] || attributes['user_id']
47
47
  @custom = attributes[:custom] || attributes['custom']
48
+ @reminder = attributes[:reminder] || attributes['reminder']
48
49
  @type = attributes[:type] || attributes['type'] || "reminder.deleted"
49
50
  @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
50
51
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
51
- @reminder = attributes[:reminder] || attributes['reminder'] || nil
52
52
  end
53
53
 
54
54
  # Override field mappings for JSON serialization
@@ -59,10 +59,10 @@ module GetStream
59
59
  message_id: 'message_id',
60
60
  user_id: 'user_id',
61
61
  custom: 'custom',
62
+ reminder: 'reminder',
62
63
  type: 'type',
63
64
  parent_id: 'parent_id',
64
- received_at: 'received_at',
65
- reminder: 'reminder'
65
+ received_at: 'received_at'
66
66
  }
67
67
  end
68
68
  end
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute custom
25
25
  # @return [Object]
26
26
  attr_accessor :custom
27
+ # @!attribute reminder
28
+ # @return [ReminderResponseData]
29
+ attr_accessor :reminder
27
30
  # @!attribute type
28
31
  # @return [String] The type of event: "notification.reminder_due" in this case
29
32
  attr_accessor :type
@@ -33,9 +36,6 @@ module GetStream
33
36
  # @!attribute received_at
34
37
  # @return [DateTime]
35
38
  attr_accessor :received_at
36
- # @!attribute reminder
37
- # @return [ReminderResponseData]
38
- attr_accessor :reminder
39
39
 
40
40
  # Initialize with attributes
41
41
  def initialize(attributes = {})
@@ -45,10 +45,10 @@ module GetStream
45
45
  @message_id = attributes[:message_id] || attributes['message_id']
46
46
  @user_id = attributes[:user_id] || attributes['user_id']
47
47
  @custom = attributes[:custom] || attributes['custom']
48
+ @reminder = attributes[:reminder] || attributes['reminder']
48
49
  @type = attributes[:type] || attributes['type'] || "notification.reminder_due"
49
50
  @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
50
51
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
51
- @reminder = attributes[:reminder] || attributes['reminder'] || nil
52
52
  end
53
53
 
54
54
  # Override field mappings for JSON serialization
@@ -59,10 +59,10 @@ module GetStream
59
59
  message_id: 'message_id',
60
60
  user_id: 'user_id',
61
61
  custom: 'custom',
62
+ reminder: 'reminder',
62
63
  type: 'type',
63
64
  parent_id: 'parent_id',
64
- received_at: 'received_at',
65
- reminder: 'reminder'
65
+ received_at: 'received_at'
66
66
  }
67
67
  end
68
68
  end
@@ -24,6 +24,9 @@ module GetStream
24
24
  # @!attribute custom
25
25
  # @return [Object]
26
26
  attr_accessor :custom
27
+ # @!attribute reminder
28
+ # @return [ReminderResponseData]
29
+ attr_accessor :reminder
27
30
  # @!attribute type
28
31
  # @return [String] The type of event: "reminder.updated" in this case
29
32
  attr_accessor :type
@@ -33,9 +36,6 @@ module GetStream
33
36
  # @!attribute received_at
34
37
  # @return [DateTime]
35
38
  attr_accessor :received_at
36
- # @!attribute reminder
37
- # @return [ReminderResponseData]
38
- attr_accessor :reminder
39
39
 
40
40
  # Initialize with attributes
41
41
  def initialize(attributes = {})
@@ -45,10 +45,10 @@ module GetStream
45
45
  @message_id = attributes[:message_id] || attributes['message_id']
46
46
  @user_id = attributes[:user_id] || attributes['user_id']
47
47
  @custom = attributes[:custom] || attributes['custom']
48
+ @reminder = attributes[:reminder] || attributes['reminder']
48
49
  @type = attributes[:type] || attributes['type'] || "reminder.updated"
49
50
  @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
50
51
  @received_at = attributes[:received_at] || attributes['received_at'] || nil
51
- @reminder = attributes[:reminder] || attributes['reminder'] || nil
52
52
  end
53
53
 
54
54
  # Override field mappings for JSON serialization
@@ -59,10 +59,10 @@ module GetStream
59
59
  message_id: 'message_id',
60
60
  user_id: 'user_id',
61
61
  custom: 'custom',
62
+ reminder: 'reminder',
62
63
  type: 'type',
63
64
  parent_id: 'parent_id',
64
- received_at: 'received_at',
65
- reminder: 'reminder'
65
+ received_at: 'received_at'
66
66
  }
67
67
  end
68
68
  end
@@ -63,6 +63,9 @@ module GetStream
63
63
  # @!attribute completed_at
64
64
  # @return [DateTime] When the review was completed
65
65
  attr_accessor :completed_at
66
+ # @!attribute confidence_score
67
+ # @return [Float] Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one
68
+ attr_accessor :confidence_score
66
69
  # @!attribute config_key
67
70
  # @return [String]
68
71
  attr_accessor :config_key
@@ -142,6 +145,7 @@ module GetStream
142
145
  @flags = attributes[:flags] || attributes['flags']
143
146
  @languages = attributes[:languages] || attributes['languages']
144
147
  @completed_at = attributes[:completed_at] || attributes['completed_at'] || nil
148
+ @confidence_score = attributes[:confidence_score] || attributes['confidence_score'] || nil
145
149
  @config_key = attributes[:config_key] || attributes['config_key'] || nil
146
150
  @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil
147
151
  @escalated_at = attributes[:escalated_at] || attributes['escalated_at'] || nil
@@ -184,6 +188,7 @@ module GetStream
184
188
  flags: 'flags',
185
189
  languages: 'languages',
186
190
  completed_at: 'completed_at',
191
+ confidence_score: 'confidence_score',
187
192
  config_key: 'config_key',
188
193
  entity_creator_id: 'entity_creator_id',
189
194
  escalated_at: 'escalated_at',
@@ -87,6 +87,9 @@ module GetStream
87
87
  # @!attribute user_identical_content_count_params
88
88
  # @return [UserIdenticalContentCountParameters]
89
89
  attr_accessor :user_identical_content_count_params
90
+ # @!attribute user_reaction_count_params
91
+ # @return [UserReactionCountRuleParameters]
92
+ attr_accessor :user_reaction_count_params
90
93
  # @!attribute user_role_params
91
94
  # @return [UserRoleParameters]
92
95
  attr_accessor :user_role_params
@@ -129,6 +132,7 @@ module GetStream
129
132
  @user_custom_property_params = attributes[:user_custom_property_params] || attributes['user_custom_property_params'] || nil
130
133
  @user_flag_count_rule_params = attributes[:user_flag_count_rule_params] || attributes['user_flag_count_rule_params'] || nil
131
134
  @user_identical_content_count_params = attributes[:user_identical_content_count_params] || attributes['user_identical_content_count_params'] || nil
135
+ @user_reaction_count_params = attributes[:user_reaction_count_params] || attributes['user_reaction_count_params'] || nil
132
136
  @user_role_params = attributes[:user_role_params] || attributes['user_role_params'] || nil
133
137
  @user_rule_params = attributes[:user_rule_params] || attributes['user_rule_params'] || nil
134
138
  @video_content_params = attributes[:video_content_params] || attributes['video_content_params'] || nil
@@ -164,6 +168,7 @@ module GetStream
164
168
  user_custom_property_params: 'user_custom_property_params',
165
169
  user_flag_count_rule_params: 'user_flag_count_rule_params',
166
170
  user_identical_content_count_params: 'user_identical_content_count_params',
171
+ user_reaction_count_params: 'user_reaction_count_params',
167
172
  user_role_params: 'user_role_params',
168
173
  user_rule_params: 'user_rule_params',
169
174
  video_content_params: 'video_content_params',
@@ -9,6 +9,9 @@ module GetStream
9
9
  class RunStats < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute activities_deleted
13
+ # @return [Integer]
14
+ attr_accessor :activities_deleted
12
15
  # @!attribute channels_deleted
13
16
  # @return [Integer]
14
17
  attr_accessor :channels_deleted
@@ -19,6 +22,7 @@ module GetStream
19
22
  # Initialize with attributes
20
23
  def initialize(attributes = {})
21
24
  super(attributes)
25
+ @activities_deleted = attributes[:activities_deleted] || attributes['activities_deleted'] || nil
22
26
  @channels_deleted = attributes[:channels_deleted] || attributes['channels_deleted'] || nil
23
27
  @messages_deleted = attributes[:messages_deleted] || attributes['messages_deleted'] || nil
24
28
  end
@@ -26,6 +30,7 @@ module GetStream
26
30
  # Override field mappings for JSON serialization
27
31
  def self.json_field_mappings
28
32
  {
33
+ activities_deleted: 'activities_deleted',
29
34
  channels_deleted: 'channels_deleted',
30
35
  messages_deleted: 'messages_deleted'
31
36
  }
@@ -138,6 +138,9 @@ module GetStream
138
138
  # @!attribute member
139
139
  # @return [ChannelMemberPartialResponse]
140
140
  attr_accessor :member
141
+ # @!attribute mentioned_channel_members
142
+ # @return [Hash<String, ChannelMemberPartialResponse>]
143
+ attr_accessor :mentioned_channel_members
141
144
  # @!attribute moderation
142
145
  # @return [ModerationV2Response]
143
146
  attr_accessor :moderation
@@ -206,6 +209,7 @@ module GetStream
206
209
  @i18n = attributes[:i18n] || attributes['i18n'] || nil
207
210
  @image_labels = attributes[:image_labels] || attributes['image_labels'] || nil
208
211
  @member = attributes[:member] || attributes['member'] || nil
212
+ @mentioned_channel_members = attributes[:mentioned_channel_members] || attributes['mentioned_channel_members'] || nil
209
213
  @moderation = attributes[:moderation] || attributes['moderation'] || nil
210
214
  @pinned_by = attributes[:pinned_by] || attributes['pinned_by'] || nil
211
215
  @poll = attributes[:poll] || attributes['poll'] || nil
@@ -261,6 +265,7 @@ module GetStream
261
265
  i18n: 'i18n',
262
266
  image_labels: 'image_labels',
263
267
  member: 'member',
268
+ mentioned_channel_members: 'mentioned_channel_members',
264
269
  moderation: 'moderation',
265
270
  pinned_by: 'pinned_by',
266
271
  poll: 'poll',
@@ -0,0 +1,36 @@
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
+ # Basic response information
9
+ class TranslateMessageResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute message
16
+ # @return [MessageResponse] Represents any chat message
17
+ attr_accessor :message
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @message = attributes[:message] || attributes['message']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ message: 'message'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -10,7 +10,8 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute unbanned_by_id
13
- # @return [String] ID of the user performing the unban
13
+ # @deprecated This field is deprecated.
14
+ # @return [String] ID of the user performing the unban Deprecated: not used by the unban flow
14
15
  attr_accessor :unbanned_by_id
15
16
  # @!attribute unbanned_by
16
17
  # @return [UserRequest] User request object
@@ -63,9 +63,15 @@ module GetStream
63
63
  # @!attribute max_aggregated_activities_length
64
64
  # @return [Integer]
65
65
  attr_accessor :max_aggregated_activities_length
66
+ # @!attribute member_custom_on_mentioned_users_enabled
67
+ # @return [Boolean]
68
+ attr_accessor :member_custom_on_mentioned_users_enabled
66
69
  # @!attribute member_custom_on_messages_enabled
67
70
  # @return [Boolean]
68
71
  attr_accessor :member_custom_on_messages_enabled
72
+ # @!attribute member_custom_on_typing_events_enabled
73
+ # @return [Boolean]
74
+ attr_accessor :member_custom_on_typing_events_enabled
69
75
  # @!attribute migrate_permissions_to_v2
70
76
  # @return [Boolean]
71
77
  attr_accessor :migrate_permissions_to_v2
@@ -205,7 +211,9 @@ module GetStream
205
211
  @guest_user_creation_disabled = attributes[:guest_user_creation_disabled] || attributes['guest_user_creation_disabled'] || nil
206
212
  @image_moderation_enabled = attributes[:image_moderation_enabled] || attributes['image_moderation_enabled'] || nil
207
213
  @max_aggregated_activities_length = attributes[:max_aggregated_activities_length] || attributes['max_aggregated_activities_length'] || nil
214
+ @member_custom_on_mentioned_users_enabled = attributes[:member_custom_on_mentioned_users_enabled] || attributes['member_custom_on_mentioned_users_enabled'] || nil
208
215
  @member_custom_on_messages_enabled = attributes[:member_custom_on_messages_enabled] || attributes['member_custom_on_messages_enabled'] || nil
216
+ @member_custom_on_typing_events_enabled = attributes[:member_custom_on_typing_events_enabled] || attributes['member_custom_on_typing_events_enabled'] || nil
209
217
  @migrate_permissions_to_v2 = attributes[:migrate_permissions_to_v2] || attributes['migrate_permissions_to_v2'] || nil
210
218
  @moderation_analytics_enabled = attributes[:moderation_analytics_enabled] || attributes['moderation_analytics_enabled'] || nil
211
219
  @moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled'] || nil
@@ -268,7 +276,9 @@ module GetStream
268
276
  guest_user_creation_disabled: 'guest_user_creation_disabled',
269
277
  image_moderation_enabled: 'image_moderation_enabled',
270
278
  max_aggregated_activities_length: 'max_aggregated_activities_length',
279
+ member_custom_on_mentioned_users_enabled: 'member_custom_on_mentioned_users_enabled',
271
280
  member_custom_on_messages_enabled: 'member_custom_on_messages_enabled',
281
+ member_custom_on_typing_events_enabled: 'member_custom_on_typing_events_enabled',
272
282
  migrate_permissions_to_v2: 'migrate_permissions_to_v2',
273
283
  moderation_analytics_enabled: 'moderation_analytics_enabled',
274
284
  moderation_enabled: 'moderation_enabled',
@@ -9,8 +9,11 @@ module GetStream
9
9
  class UpdateFeedGroupRequest < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute default_follower_role
13
+ # @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
14
+ attr_accessor :default_follower_role
12
15
  # @!attribute default_visibility
13
- # @return [String]
16
+ # @return [String] Default visibility for the feed group. One of: public, visible, followers, members, private
14
17
  attr_accessor :default_visibility
15
18
  # @!attribute activity_processors
16
19
  # @return [Array<ActivityProcessorConfig>] Configuration for activity processors
@@ -21,6 +24,12 @@ module GetStream
21
24
  # @!attribute activity_filter
22
25
  # @return [ActivityFilterConfig]
23
26
  attr_accessor :activity_filter
27
+ # @!attribute activity_marks
28
+ # @return [ActivityMarksConfig]
29
+ attr_accessor :activity_marks
30
+ # @!attribute activity_processing
31
+ # @return [ActivityProcessingConfig]
32
+ attr_accessor :activity_processing
24
33
  # @!attribute aggregation
25
34
  # @return [AggregationConfig]
26
35
  attr_accessor :aggregation
@@ -43,10 +52,13 @@ module GetStream
43
52
  # Initialize with attributes
44
53
  def initialize(attributes = {})
45
54
  super(attributes)
55
+ @default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
46
56
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
47
57
  @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
48
58
  @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
49
59
  @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
60
+ @activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil
61
+ @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
50
62
  @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
51
63
  @custom = attributes[:custom] || attributes['custom'] || nil
52
64
  @notification = attributes[:notification] || attributes['notification'] || nil
@@ -58,10 +70,13 @@ module GetStream
58
70
  # Override field mappings for JSON serialization
59
71
  def self.json_field_mappings
60
72
  {
73
+ default_follower_role: 'default_follower_role',
61
74
  default_visibility: 'default_visibility',
62
75
  activity_processors: 'activity_processors',
63
76
  activity_selectors: 'activity_selectors',
64
77
  activity_filter: 'activity_filter',
78
+ activity_marks: 'activity_marks',
79
+ activity_processing: 'activity_processing',
65
80
  aggregation: 'aggregation',
66
81
  custom: 'custom',
67
82
  notification: 'notification',
@@ -32,7 +32,7 @@ module GetStream
32
32
  # @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
33
33
  attr_accessor :enrich_own_fields
34
34
  # @!attribute follower_role
35
- # @return [String]
35
+ # @return [String] Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
36
36
  attr_accessor :follower_role
37
37
  # @!attribute push_preference
38
38
  # @return [String] Push preference for the follow relationship
@@ -13,7 +13,8 @@ module GetStream
13
13
  # @return [String] Duration of the request in milliseconds
14
14
  attr_accessor :duration
15
15
  # @!attribute membership_deletion_task_id
16
- # @return [String]
16
+ # @deprecated This field is deprecated.
17
+ # @return [String] Deprecated: always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll
17
18
  attr_accessor :membership_deletion_task_id
18
19
  # @!attribute users
19
20
  # @return [Hash<String, FullUserResponse>] Object containing users
@@ -31,7 +31,7 @@ module GetStream
31
31
  # @return [AITextConfig]
32
32
  attr_accessor :ai_text_config
33
33
  # @!attribute ai_video_config
34
- # @return [AIVideoConfig]
34
+ # @return [AIVideoConfigRequest]
35
35
  attr_accessor :ai_video_config
36
36
  # @!attribute automod_platform_circumvention_config
37
37
  # @return [AutomodPlatformCircumventionConfig]
@@ -0,0 +1,36 @@
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 UserReactionCountRuleParameters < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute threshold
13
+ # @return [Integer]
14
+ attr_accessor :threshold
15
+ # @!attribute time_window
16
+ # @return [String]
17
+ attr_accessor :time_window
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @threshold = attributes[:threshold] || attributes['threshold'] || nil
23
+ @time_window = attributes[:time_window] || attributes['time_window'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ threshold: 'threshold',
30
+ time_window: 'time_window'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end