getstream-ruby 6.1.0 → 6.1.1

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/lib/getstream_ruby/client.rb +16 -5
  4. data/lib/getstream_ruby/configuration.rb +32 -5
  5. data/lib/getstream_ruby/generated/models/add_activity_request.rb +5 -0
  6. data/lib/getstream_ruby/generated/models/add_reaction_request.rb +5 -0
  7. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  8. data/lib/getstream_ruby/generated/models/bodyguard_profile_summary.rb +6 -1
  9. data/lib/getstream_ruby/generated/models/chat_draft_payload_response.rb +91 -0
  10. data/lib/getstream_ruby/generated/models/chat_draft_response.rb +56 -0
  11. data/lib/getstream_ruby/generated/models/chat_message_response.rb +59 -4
  12. data/lib/getstream_ruby/generated/models/chat_moderation_v2_response.rb +66 -0
  13. data/lib/getstream_ruby/generated/models/chat_reaction_group_response.rb +51 -0
  14. data/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb +41 -0
  15. data/lib/getstream_ruby/generated/models/chat_reaction_response.rb +66 -0
  16. data/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb +66 -0
  17. data/lib/getstream_ruby/generated/models/chat_shared_location_response_data.rb +76 -0
  18. data/lib/getstream_ruby/generated/models/feeds_activity_location.rb +36 -0
  19. data/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb +61 -0
  20. data/lib/getstream_ruby/generated/models/feeds_enriched_collection_response.rb +61 -0
  21. data/lib/getstream_ruby/generated/models/feeds_feed_response.rb +116 -0
  22. data/lib/getstream_ruby/generated/models/feeds_notification_comment.rb +46 -0
  23. data/lib/getstream_ruby/generated/models/feeds_notification_context.rb +36 -0
  24. data/lib/getstream_ruby/generated/models/feeds_notification_parent_activity.rb +51 -0
  25. data/lib/getstream_ruby/generated/models/feeds_notification_target.rb +71 -0
  26. data/lib/getstream_ruby/generated/models/feeds_notification_trigger.rb +46 -0
  27. data/lib/getstream_ruby/generated/models/feeds_reaction_group_response.rb +3 -3
  28. data/lib/getstream_ruby/generated/models/feeds_reaction_response.rb +6 -6
  29. data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +66 -6
  30. data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +17 -2
  31. data/lib/getstream_ruby/generated/models/submit_moderation_feedback_request.rb +71 -0
  32. data/lib/getstream_ruby/generated/models/submit_moderation_feedback_response.rb +31 -0
  33. data/lib/getstream_ruby/generated/models/update_app_request.rb +5 -0
  34. data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +5 -0
  35. data/lib/getstream_ruby/generated/moderation_client.rb +17 -0
  36. data/lib/getstream_ruby/version.rb +1 -1
  37. data/lib/getstream_ruby.rb +2 -3
  38. metadata +21 -2
@@ -0,0 +1,71 @@
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 FeedsNotificationTarget < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute id
13
+ # @return [String]
14
+ attr_accessor :id
15
+ # @!attribute name
16
+ # @return [String]
17
+ attr_accessor :name
18
+ # @!attribute text
19
+ # @return [String]
20
+ attr_accessor :text
21
+ # @!attribute type
22
+ # @return [String]
23
+ attr_accessor :type
24
+ # @!attribute user_id
25
+ # @return [String]
26
+ attr_accessor :user_id
27
+ # @!attribute attachments
28
+ # @return [Array<Attachment>]
29
+ attr_accessor :attachments
30
+ # @!attribute comment
31
+ # @return [FeedsNotificationComment]
32
+ attr_accessor :comment
33
+ # @!attribute custom
34
+ # @return [Object]
35
+ attr_accessor :custom
36
+ # @!attribute parent_activity
37
+ # @return [FeedsNotificationParentActivity]
38
+ attr_accessor :parent_activity
39
+
40
+ # Initialize with attributes
41
+ def initialize(attributes = {})
42
+ super(attributes)
43
+ @id = attributes[:id] || attributes['id']
44
+ @name = attributes[:name] || attributes['name'] || nil
45
+ @text = attributes[:text] || attributes['text'] || nil
46
+ @type = attributes[:type] || attributes['type'] || nil
47
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
48
+ @attachments = attributes[:attachments] || attributes['attachments'] || nil
49
+ @comment = attributes[:comment] || attributes['comment'] || nil
50
+ @custom = attributes[:custom] || attributes['custom'] || nil
51
+ @parent_activity = attributes[:parent_activity] || attributes['parent_activity'] || nil
52
+ end
53
+
54
+ # Override field mappings for JSON serialization
55
+ def self.json_field_mappings
56
+ {
57
+ id: 'id',
58
+ name: 'name',
59
+ text: 'text',
60
+ type: 'type',
61
+ user_id: 'user_id',
62
+ attachments: 'attachments',
63
+ comment: 'comment',
64
+ custom: 'custom',
65
+ parent_activity: 'parent_activity'
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -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 FeedsNotificationTrigger < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute text
13
+ # @return [String]
14
+ attr_accessor :text
15
+ # @!attribute type
16
+ # @return [String]
17
+ attr_accessor :type
18
+ # @!attribute comment
19
+ # @return [FeedsNotificationComment]
20
+ attr_accessor :comment
21
+ # @!attribute custom
22
+ # @return [Object]
23
+ attr_accessor :custom
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @text = attributes[:text] || attributes['text']
29
+ @type = attributes[:type] || attributes['type']
30
+ @comment = attributes[:comment] || attributes['comment'] || nil
31
+ @custom = attributes[:custom] || attributes['custom'] || nil
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ text: 'text',
38
+ type: 'type',
39
+ comment: 'comment',
40
+ custom: 'custom'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -10,13 +10,13 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute count
13
- # @return [Integer] Number of reactions in this group
13
+ # @return [Integer]
14
14
  attr_accessor :count
15
15
  # @!attribute first_reaction_at
16
- # @return [DateTime] Time of the first reaction
16
+ # @return [DateTime]
17
17
  attr_accessor :first_reaction_at
18
18
  # @!attribute last_reaction_at
19
- # @return [DateTime] Time of the most recent reaction
19
+ # @return [DateTime]
20
20
  attr_accessor :last_reaction_at
21
21
 
22
22
  # Initialize with attributes
@@ -10,25 +10,25 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute activity_id
13
- # @return [String] ID of the activity that was reacted to
13
+ # @return [String]
14
14
  attr_accessor :activity_id
15
15
  # @!attribute created_at
16
- # @return [DateTime] When the reaction was created
16
+ # @return [DateTime]
17
17
  attr_accessor :created_at
18
18
  # @!attribute type
19
- # @return [String] Type of reaction
19
+ # @return [String]
20
20
  attr_accessor :type
21
21
  # @!attribute updated_at
22
- # @return [DateTime] When the reaction was last updated
22
+ # @return [DateTime]
23
23
  attr_accessor :updated_at
24
24
  # @!attribute user
25
25
  # @return [UserResponse]
26
26
  attr_accessor :user
27
27
  # @!attribute comment_id
28
- # @return [String] ID of the comment that was reacted to
28
+ # @return [String]
29
29
  attr_accessor :comment_id
30
30
  # @!attribute custom
31
- # @return [Object] Custom data for the reaction
31
+ # @return [Object]
32
32
  attr_accessor :custom
33
33
 
34
34
  # Initialize with attributes
@@ -67,25 +67,25 @@ module GetStream
67
67
  # @return [Array<String>]
68
68
  attr_accessor :interest_tags
69
69
  # @!attribute latest_reactions
70
- # @return [Array]
70
+ # @return [Array<FeedsReactionResponse>]
71
71
  attr_accessor :latest_reactions
72
72
  # @!attribute mentioned_users
73
73
  # @return [Array<UserResponse>]
74
74
  attr_accessor :mentioned_users
75
75
  # @!attribute own_bookmarks
76
- # @return [Array]
76
+ # @return [Array<FeedsBookmarkResponse>]
77
77
  attr_accessor :own_bookmarks
78
78
  # @!attribute own_reactions
79
- # @return [Array]
79
+ # @return [Array<FeedsReactionResponse>]
80
80
  attr_accessor :own_reactions
81
81
  # @!attribute collections
82
- # @return [Hash<String, EnrichedCollection>]
82
+ # @return [Hash<String, FeedsEnrichedCollectionResponse>]
83
83
  attr_accessor :collections
84
84
  # @!attribute custom
85
85
  # @return [Object]
86
86
  attr_accessor :custom
87
87
  # @!attribute reaction_groups
88
- # @return [Hash<String, FeedsReactionGroup>]
88
+ # @return [Hash<String, FeedsReactionGroupResponse>]
89
89
  attr_accessor :reaction_groups
90
90
  # @!attribute search_data
91
91
  # @return [Object]
@@ -102,21 +102,57 @@ module GetStream
102
102
  # @!attribute expires_at
103
103
  # @return [DateTime]
104
104
  attr_accessor :expires_at
105
+ # @!attribute friend_reaction_count
106
+ # @return [Integer]
107
+ attr_accessor :friend_reaction_count
108
+ # @!attribute is_read
109
+ # @return [Boolean]
110
+ attr_accessor :is_read
111
+ # @!attribute is_seen
112
+ # @return [Boolean]
113
+ attr_accessor :is_seen
114
+ # @!attribute is_watched
115
+ # @return [Boolean]
116
+ attr_accessor :is_watched
105
117
  # @!attribute moderation_action
106
118
  # @return [String]
107
119
  attr_accessor :moderation_action
120
+ # @!attribute selector_source
121
+ # @return [String]
122
+ attr_accessor :selector_source
108
123
  # @!attribute text
109
124
  # @return [String]
110
125
  attr_accessor :text
111
126
  # @!attribute visibility_tag
112
127
  # @return [String]
113
128
  attr_accessor :visibility_tag
129
+ # @!attribute friend_reactions
130
+ # @return [Array<FeedsReactionResponse>]
131
+ attr_accessor :friend_reactions
132
+ # @!attribute current_feed
133
+ # @return [FeedsFeedResponse]
134
+ attr_accessor :current_feed
135
+ # @!attribute location
136
+ # @return [FeedsActivityLocation]
137
+ attr_accessor :location
114
138
  # @!attribute metrics
115
139
  # @return [Hash<String, Integer>]
116
140
  attr_accessor :metrics
117
141
  # @!attribute moderation
118
142
  # @return [ModerationV2Response]
119
143
  attr_accessor :moderation
144
+ # @!attribute notification_context
145
+ # @return [FeedsNotificationContext]
146
+ attr_accessor :notification_context
147
+ # @!attribute parent
148
+ # @return [FeedsV3ActivityResponse]
149
+ attr_accessor :parent
150
+ # @!attribute poll
151
+ # @return [PollResponseData]
152
+ attr_accessor :poll
153
+ # @!attribute score_vars
154
+ # @return [Object]
155
+ attr_accessor :score_vars
120
156
 
121
157
  # Initialize with attributes
122
158
  def initialize(attributes = {})
@@ -152,11 +188,23 @@ module GetStream
152
188
  @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
153
189
  @edited_at = attributes[:edited_at] || attributes['edited_at'] || nil
154
190
  @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil
191
+ @friend_reaction_count = attributes[:friend_reaction_count] || attributes['friend_reaction_count'] || nil
192
+ @is_read = attributes[:is_read] || attributes['is_read'] || nil
193
+ @is_seen = attributes[:is_seen] || attributes['is_seen'] || nil
194
+ @is_watched = attributes[:is_watched] || attributes['is_watched'] || nil
155
195
  @moderation_action = attributes[:moderation_action] || attributes['moderation_action'] || nil
196
+ @selector_source = attributes[:selector_source] || attributes['selector_source'] || nil
156
197
  @text = attributes[:text] || attributes['text'] || nil
157
198
  @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil
199
+ @friend_reactions = attributes[:friend_reactions] || attributes['friend_reactions'] || nil
200
+ @current_feed = attributes[:current_feed] || attributes['current_feed'] || nil
201
+ @location = attributes[:location] || attributes['location'] || nil
158
202
  @metrics = attributes[:metrics] || attributes['metrics'] || nil
159
203
  @moderation = attributes[:moderation] || attributes['moderation'] || nil
204
+ @notification_context = attributes[:notification_context] || attributes['notification_context'] || nil
205
+ @parent = attributes[:parent] || attributes['parent'] || nil
206
+ @poll = attributes[:poll] || attributes['poll'] || nil
207
+ @score_vars = attributes[:score_vars] || attributes['score_vars'] || nil
160
208
  end
161
209
 
162
210
  # Override field mappings for JSON serialization
@@ -193,11 +241,23 @@ module GetStream
193
241
  deleted_at: 'deleted_at',
194
242
  edited_at: 'edited_at',
195
243
  expires_at: 'expires_at',
244
+ friend_reaction_count: 'friend_reaction_count',
245
+ is_read: 'is_read',
246
+ is_seen: 'is_seen',
247
+ is_watched: 'is_watched',
196
248
  moderation_action: 'moderation_action',
249
+ selector_source: 'selector_source',
197
250
  text: 'text',
198
251
  visibility_tag: 'visibility_tag',
252
+ friend_reactions: 'friend_reactions',
253
+ current_feed: 'current_feed',
254
+ location: 'location',
199
255
  metrics: 'metrics',
200
- moderation: 'moderation'
256
+ moderation: 'moderation',
257
+ notification_context: 'notification_context',
258
+ parent: 'parent',
259
+ poll: 'poll',
260
+ score_vars: 'score_vars'
201
261
  }
202
262
  end
203
263
  end
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute _object_id
13
13
  # @return [String]
14
14
  attr_accessor :_object_id
15
+ # @!attribute bookmark_count
16
+ # @return [Integer]
17
+ attr_accessor :bookmark_count
15
18
  # @!attribute confidence_score
16
19
  # @return [Float]
17
20
  attr_accessor :confidence_score
@@ -49,7 +52,7 @@ module GetStream
49
52
  # @return [Array<UserResponse>]
50
53
  attr_accessor :mentioned_users
51
54
  # @!attribute own_reactions
52
- # @return [Array]
55
+ # @return [Array<FeedsReactionResponse>]
53
56
  attr_accessor :own_reactions
54
57
  # @!attribute user
55
58
  # @return [UserResponse]
@@ -72,17 +75,24 @@ module GetStream
72
75
  # @!attribute attachments
73
76
  # @return [Array<Attachment>]
74
77
  attr_accessor :attachments
78
+ # @!attribute latest_reactions
79
+ # @return [Array<FeedsReactionResponse>]
80
+ attr_accessor :latest_reactions
75
81
  # @!attribute custom
76
82
  # @return [Object]
77
83
  attr_accessor :custom
78
84
  # @!attribute moderation
79
85
  # @return [ModerationV2Response]
80
86
  attr_accessor :moderation
87
+ # @!attribute reaction_groups
88
+ # @return [Hash<String, FeedsReactionGroupResponse>]
89
+ attr_accessor :reaction_groups
81
90
 
82
91
  # Initialize with attributes
83
92
  def initialize(attributes = {})
84
93
  super(attributes)
85
94
  @_object_id = attributes[:_object_id] || attributes['object_id']
95
+ @bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count']
86
96
  @confidence_score = attributes[:confidence_score] || attributes['confidence_score']
87
97
  @created_at = attributes[:created_at] || attributes['created_at']
88
98
  @downvote_count = attributes[:downvote_count] || attributes['downvote_count']
@@ -103,14 +113,17 @@ module GetStream
103
113
  @parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
104
114
  @text = attributes[:text] || attributes['text'] || nil
105
115
  @attachments = attributes[:attachments] || attributes['attachments'] || nil
116
+ @latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions'] || nil
106
117
  @custom = attributes[:custom] || attributes['custom'] || nil
107
118
  @moderation = attributes[:moderation] || attributes['moderation'] || nil
119
+ @reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] || nil
108
120
  end
109
121
 
110
122
  # Override field mappings for JSON serialization
111
123
  def self.json_field_mappings
112
124
  {
113
125
  _object_id: 'object_id',
126
+ bookmark_count: 'bookmark_count',
114
127
  confidence_score: 'confidence_score',
115
128
  created_at: 'created_at',
116
129
  downvote_count: 'downvote_count',
@@ -131,8 +144,10 @@ module GetStream
131
144
  parent_id: 'parent_id',
132
145
  text: 'text',
133
146
  attachments: 'attachments',
147
+ latest_reactions: 'latest_reactions',
134
148
  custom: 'custom',
135
- moderation: 'moderation'
149
+ moderation: 'moderation',
150
+ reaction_groups: 'reaction_groups'
136
151
  }
137
152
  end
138
153
  end
@@ -0,0 +1,71 @@
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 SubmitModerationFeedbackRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute message
13
+ # @return [String] The moderated content the moderator is providing feedback on
14
+ attr_accessor :message
15
+ # @!attribute published_at
16
+ # @return [String] Original publication time of the moderated content (RFC3339)
17
+ attr_accessor :published_at
18
+ # @!attribute reference
19
+ # @return [String] Provider-side reference identifying the moderated content
20
+ attr_accessor :reference
21
+ # @!attribute channel_id
22
+ # @return [String] Optional moderation channel UUID for context
23
+ attr_accessor :channel_id
24
+ # @!attribute current_recommended_action
25
+ # @return [String] Action originally produced by the moderation system
26
+ attr_accessor :current_recommended_action
27
+ # @!attribute description
28
+ # @return [String] Optional free-form note explaining why the classification was wrong
29
+ attr_accessor :description
30
+ # @!attribute expected_recommended_action
31
+ # @return [String] Optional moderator-supplied action
32
+ attr_accessor :expected_recommended_action
33
+ # @!attribute current_labels
34
+ # @return [Array<String>] Classifications originally produced by the moderation system
35
+ attr_accessor :current_labels
36
+ # @!attribute expected_labels
37
+ # @return [Array<String>] Optional moderator-supplied classifications (up to 16 entries)
38
+ attr_accessor :expected_labels
39
+
40
+ # Initialize with attributes
41
+ def initialize(attributes = {})
42
+ super(attributes)
43
+ @message = attributes[:message] || attributes['message']
44
+ @published_at = attributes[:published_at] || attributes['published_at']
45
+ @reference = attributes[:reference] || attributes['reference']
46
+ @channel_id = attributes[:channel_id] || attributes['channel_id'] || nil
47
+ @current_recommended_action = attributes[:current_recommended_action] || attributes['current_recommended_action'] || nil
48
+ @description = attributes[:description] || attributes['description'] || nil
49
+ @expected_recommended_action = attributes[:expected_recommended_action] || attributes['expected_recommended_action'] || nil
50
+ @current_labels = attributes[:current_labels] || attributes['current_labels'] || nil
51
+ @expected_labels = attributes[:expected_labels] || attributes['expected_labels'] || nil
52
+ end
53
+
54
+ # Override field mappings for JSON serialization
55
+ def self.json_field_mappings
56
+ {
57
+ message: 'message',
58
+ published_at: 'published_at',
59
+ reference: 'reference',
60
+ channel_id: 'channel_id',
61
+ current_recommended_action: 'current_recommended_action',
62
+ description: 'description',
63
+ expected_recommended_action: 'expected_recommended_action',
64
+ current_labels: 'current_labels',
65
+ expected_labels: 'expected_labels'
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,31 @@
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 SubmitModerationFeedbackResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+
16
+ # Initialize with attributes
17
+ def initialize(attributes = {})
18
+ super(attributes)
19
+ @duration = attributes[:duration] || attributes['duration']
20
+ end
21
+
22
+ # Override field mappings for JSON serialization
23
+ def self.json_field_mappings
24
+ {
25
+ duration: 'duration'
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -33,6 +33,9 @@ module GetStream
33
33
  # @!attribute disable_permissions_checks
34
34
  # @return [Boolean]
35
35
  attr_accessor :disable_permissions_checks
36
+ # @!attribute enable_hook_payload_compression
37
+ # @return [Boolean]
38
+ attr_accessor :enable_hook_payload_compression
36
39
  # @!attribute enforce_unique_usernames
37
40
  # @return [String]
38
41
  attr_accessor :enforce_unique_usernames
@@ -171,6 +174,7 @@ module GetStream
171
174
  @custom_action_handler_url = attributes[:custom_action_handler_url] || attributes['custom_action_handler_url'] || nil
172
175
  @disable_auth_checks = attributes[:disable_auth_checks] || attributes['disable_auth_checks'] || nil
173
176
  @disable_permissions_checks = attributes[:disable_permissions_checks] || attributes['disable_permissions_checks'] || nil
177
+ @enable_hook_payload_compression = attributes[:enable_hook_payload_compression] || attributes['enable_hook_payload_compression'] || nil
174
178
  @enforce_unique_usernames = attributes[:enforce_unique_usernames] || attributes['enforce_unique_usernames'] || nil
175
179
  @feeds_moderation_enabled = attributes[:feeds_moderation_enabled] || attributes['feeds_moderation_enabled'] || nil
176
180
  @feeds_v2_region = attributes[:feeds_v2_region] || attributes['feeds_v2_region'] || nil
@@ -226,6 +230,7 @@ module GetStream
226
230
  custom_action_handler_url: 'custom_action_handler_url',
227
231
  disable_auth_checks: 'disable_auth_checks',
228
232
  disable_permissions_checks: 'disable_permissions_checks',
233
+ enable_hook_payload_compression: 'enable_hook_payload_compression',
229
234
  enforce_unique_usernames: 'enforce_unique_usernames',
230
235
  feeds_moderation_enabled: 'feeds_moderation_enabled',
231
236
  feeds_v2_region: 'feeds_v2_region',
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute activities
13
13
  # @return [Array<ActivityRequest>] List of activities to create or update
14
14
  attr_accessor :activities
15
+ # @!attribute create_users
16
+ # @return [Boolean] Server-side only. If true, auto-creates users referenced by activity user_id values that don't already exist. Default: false.
17
+ attr_accessor :create_users
15
18
  # @!attribute enrich_own_fields
16
19
  # @return [Boolean] If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
17
20
  attr_accessor :enrich_own_fields
@@ -23,6 +26,7 @@ module GetStream
23
26
  def initialize(attributes = {})
24
27
  super(attributes)
25
28
  @activities = attributes[:activities] || attributes['activities']
29
+ @create_users = attributes[:create_users] || attributes['create_users'] || nil
26
30
  @enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
27
31
  @force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil
28
32
  end
@@ -31,6 +35,7 @@ module GetStream
31
35
  def self.json_field_mappings
32
36
  {
33
37
  activities: 'activities',
38
+ create_users: 'create_users',
34
39
  enrich_own_fields: 'enrich_own_fields',
35
40
  force_moderation: 'force_moderation'
36
41
  }
@@ -634,6 +634,23 @@ module GetStream
634
634
  )
635
635
  end
636
636
 
637
+ # Forward a moderator-supplied correction to the moderation feedback pipeline. Server-side only.
638
+ #
639
+ # @param submit_moderation_feedback_request [SubmitModerationFeedbackRequest]
640
+ # @return [Models::SubmitModerationFeedbackResponse]
641
+ def submit_moderation_feedback(submit_moderation_feedback_request)
642
+ path = '/api/v2/moderation/submit_moderation_feedback'
643
+ # Build request body
644
+ body = submit_moderation_feedback_request
645
+
646
+ # Make the API request
647
+ @client.make_request(
648
+ :post,
649
+ path,
650
+ body: body
651
+ )
652
+ end
653
+
637
654
  # Unban a user from a channel or globally.
638
655
  #
639
656
  # @param unban_request [UnbanRequest]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GetStreamRuby
4
4
 
5
- VERSION = '6.1.0'
5
+ VERSION = '6.1.1'
6
6
 
7
7
  end
@@ -12,12 +12,11 @@ module GetStreamRuby
12
12
  class << self
13
13
 
14
14
  # Method 1: Manual configuration (highest priority)
15
- def manual(api_key:, api_secret:, base_url: nil, timeout: nil)
15
+ def manual(api_key:, api_secret:, **options)
16
16
  config = Configuration.manual(
17
17
  api_key: api_key,
18
18
  api_secret: api_secret,
19
- base_url: base_url,
20
- timeout: timeout,
19
+ **options,
21
20
  )
22
21
  Client.new(config)
23
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getstream-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-01 00:00:00.000000000 Z
11
+ date: 2026-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -375,10 +375,18 @@ files:
375
375
  - lib/getstream_ruby/generated/models/channel_updated_event.rb
376
376
  - lib/getstream_ruby/generated/models/channel_visible_event.rb
377
377
  - lib/getstream_ruby/generated/models/chat_activity_stats_response.rb
378
+ - lib/getstream_ruby/generated/models/chat_draft_payload_response.rb
379
+ - lib/getstream_ruby/generated/models/chat_draft_response.rb
378
380
  - lib/getstream_ruby/generated/models/chat_message_response.rb
381
+ - lib/getstream_ruby/generated/models/chat_moderation_v2_response.rb
379
382
  - lib/getstream_ruby/generated/models/chat_preferences.rb
380
383
  - lib/getstream_ruby/generated/models/chat_preferences_input.rb
381
384
  - lib/getstream_ruby/generated/models/chat_preferences_response.rb
385
+ - lib/getstream_ruby/generated/models/chat_reaction_group_response.rb
386
+ - lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb
387
+ - lib/getstream_ruby/generated/models/chat_reaction_response.rb
388
+ - lib/getstream_ruby/generated/models/chat_reminder_response_data.rb
389
+ - lib/getstream_ruby/generated/models/chat_shared_location_response_data.rb
382
390
  - lib/getstream_ruby/generated/models/check_external_storage_response.rb
383
391
  - lib/getstream_ruby/generated/models/check_push_request.rb
384
392
  - lib/getstream_ruby/generated/models/check_push_response.rb
@@ -584,7 +592,16 @@ files:
584
592
  - lib/getstream_ruby/generated/models/feed_updated_event.rb
585
593
  - lib/getstream_ruby/generated/models/feed_view_response.rb
586
594
  - lib/getstream_ruby/generated/models/feed_visibility_response.rb
595
+ - lib/getstream_ruby/generated/models/feeds_activity_location.rb
596
+ - lib/getstream_ruby/generated/models/feeds_bookmark_response.rb
597
+ - lib/getstream_ruby/generated/models/feeds_enriched_collection_response.rb
598
+ - lib/getstream_ruby/generated/models/feeds_feed_response.rb
587
599
  - lib/getstream_ruby/generated/models/feeds_moderation_template_config_payload.rb
600
+ - lib/getstream_ruby/generated/models/feeds_notification_comment.rb
601
+ - lib/getstream_ruby/generated/models/feeds_notification_context.rb
602
+ - lib/getstream_ruby/generated/models/feeds_notification_parent_activity.rb
603
+ - lib/getstream_ruby/generated/models/feeds_notification_target.rb
604
+ - lib/getstream_ruby/generated/models/feeds_notification_trigger.rb
588
605
  - lib/getstream_ruby/generated/models/feeds_preferences.rb
589
606
  - lib/getstream_ruby/generated/models/feeds_preferences_response.rb
590
607
  - lib/getstream_ruby/generated/models/feeds_reaction_group.rb
@@ -1179,6 +1196,8 @@ files:
1179
1196
  - lib/getstream_ruby/generated/models/stories_feed_updated_event.rb
1180
1197
  - lib/getstream_ruby/generated/models/submit_action_request.rb
1181
1198
  - lib/getstream_ruby/generated/models/submit_action_response.rb
1199
+ - lib/getstream_ruby/generated/models/submit_moderation_feedback_request.rb
1200
+ - lib/getstream_ruby/generated/models/submit_moderation_feedback_response.rb
1182
1201
  - lib/getstream_ruby/generated/models/subscriber_all_metrics.rb
1183
1202
  - lib/getstream_ruby/generated/models/subscriber_audio_metrics.rb
1184
1203
  - lib/getstream_ruby/generated/models/subscriber_stats_response.rb