getstream-ruby 4.1.0 → 5.0.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +7 -10
  3. data/lib/getstream_ruby/generated/common_client.rb +56 -0
  4. data/lib/getstream_ruby/generated/feeds_client.rb +49 -3
  5. data/lib/getstream_ruby/generated/models/activity_request.rb +2 -1
  6. data/lib/getstream_ruby/generated/models/activity_response.rb +6 -1
  7. data/lib/getstream_ruby/generated/models/add_activity_request.rb +2 -1
  8. data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +2 -1
  9. data/lib/getstream_ruby/generated/models/add_comment_request.rb +2 -1
  10. data/lib/getstream_ruby/generated/models/add_reaction_request.rb +2 -1
  11. data/lib/getstream_ruby/generated/models/add_user_group_members_request.rb +5 -0
  12. data/lib/getstream_ruby/generated/models/aggregation_config.rb +6 -1
  13. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  14. data/lib/getstream_ruby/generated/models/call_level_event_payload.rb +46 -0
  15. data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +10 -0
  16. data/lib/getstream_ruby/generated/models/check_request.rb +5 -0
  17. data/lib/getstream_ruby/generated/models/comment_restored_event.rb +66 -0
  18. data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +1 -1
  19. data/lib/getstream_ruby/generated/models/enriched_collection.rb +61 -0
  20. data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
  21. data/lib/getstream_ruby/generated/models/escalate_payload.rb +41 -0
  22. data/lib/getstream_ruby/generated/models/escalation_metadata.rb +41 -0
  23. data/lib/getstream_ruby/generated/models/feeds_preferences.rb +6 -1
  24. data/lib/getstream_ruby/generated/models/feeds_preferences_response.rb +5 -0
  25. data/lib/getstream_ruby/generated/models/feeds_reaction_group.rb +41 -0
  26. data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +206 -0
  27. data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +141 -0
  28. data/lib/getstream_ruby/generated/models/follow_request.rb +2 -1
  29. data/lib/getstream_ruby/generated/models/get_external_storage_awss3_response.rb +46 -0
  30. data/lib/getstream_ruby/generated/models/get_external_storage_response.rb +51 -0
  31. data/lib/getstream_ruby/generated/models/get_flag_count_request.rb +36 -0
  32. data/lib/getstream_ruby/generated/models/get_flag_count_response.rb +36 -0
  33. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_request.rb +51 -0
  34. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +12 -2
  35. data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
  36. data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +56 -0
  37. data/lib/getstream_ruby/generated/models/insert_action_log_response.rb +31 -0
  38. data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
  39. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -0
  40. data/lib/getstream_ruby/generated/models/notification_target.rb +5 -0
  41. data/lib/getstream_ruby/generated/models/notification_trigger.rb +6 -1
  42. data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +1 -1
  43. data/lib/getstream_ruby/generated/models/query_call_members_request.rb +2 -2
  44. data/lib/getstream_ruby/generated/models/query_call_participants_request.rb +1 -1
  45. data/lib/getstream_ruby/generated/models/query_call_session_participant_stats_response.rb +6 -1
  46. data/lib/getstream_ruby/generated/models/query_call_stats_request.rb +2 -2
  47. data/lib/getstream_ruby/generated/models/query_calls_request.rb +1 -1
  48. data/lib/getstream_ruby/generated/models/query_channels_request.rb +1 -1
  49. data/lib/getstream_ruby/generated/models/query_members_payload.rb +3 -3
  50. data/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +2 -2
  51. data/lib/getstream_ruby/generated/models/query_user_feedback_request.rb +2 -2
  52. data/lib/getstream_ruby/generated/models/query_users_payload.rb +3 -3
  53. data/lib/getstream_ruby/generated/models/reaction_group_response.rb +6 -1
  54. data/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +41 -0
  55. data/lib/getstream_ruby/generated/models/restore_comment_request.rb +36 -0
  56. data/lib/getstream_ruby/generated/models/restore_comment_response.rb +41 -0
  57. data/lib/getstream_ruby/generated/models/retention_run_response.rb +46 -0
  58. data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +22 -2
  59. data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +2 -2
  60. data/lib/getstream_ruby/generated/models/submit_action_request.rb +6 -1
  61. data/lib/getstream_ruby/generated/models/text_content_parameters.rb +5 -0
  62. data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +2 -2
  63. data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +1 -1
  64. data/lib/getstream_ruby/generated/models/unfollow_pair.rb +41 -0
  65. data/lib/getstream_ruby/generated/models/update_activity_partial_change_request.rb +2 -1
  66. data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +2 -1
  67. data/lib/getstream_ruby/generated/models/update_activity_request.rb +2 -1
  68. data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +67 -0
  69. data/lib/getstream_ruby/generated/models/update_comment_partial_response.rb +36 -0
  70. data/lib/getstream_ruby/generated/models/update_comment_request.rb +2 -1
  71. data/lib/getstream_ruby/generated/models/update_follow_request.rb +2 -1
  72. data/lib/getstream_ruby/generated/models/upsert_external_storage_awss3_request.rb +46 -0
  73. data/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +36 -0
  74. data/lib/getstream_ruby/generated/models/upsert_external_storage_response.rb +31 -0
  75. data/lib/getstream_ruby/generated/models/validate_external_storage_response.rb +31 -0
  76. data/lib/getstream_ruby/generated/models/video_content_parameters.rb +5 -0
  77. data/lib/getstream_ruby/generated/moderation_client.rb +34 -0
  78. data/lib/getstream_ruby/generated/webhook.rb +4 -0
  79. data/lib/getstream_ruby/version.rb +1 -1
  80. metadata +28 -2
@@ -0,0 +1,41 @@
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 RestoreCommentResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+ # @!attribute activity
16
+ # @return [ActivityResponse]
17
+ attr_accessor :activity
18
+ # @!attribute comment
19
+ # @return [CommentResponse]
20
+ attr_accessor :comment
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @duration = attributes[:duration] || attributes['duration']
26
+ @activity = attributes[:activity] || attributes['activity']
27
+ @comment = attributes[:comment] || attributes['comment']
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ duration: 'duration',
34
+ activity: 'activity',
35
+ comment: 'comment'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ 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 RetentionRunResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute app_pk
13
+ # @return [Integer]
14
+ attr_accessor :app_pk
15
+ # @!attribute date
16
+ # @return [String]
17
+ attr_accessor :date
18
+ # @!attribute policy
19
+ # @return [String]
20
+ attr_accessor :policy
21
+ # @!attribute stats
22
+ # @return [RunStats]
23
+ attr_accessor :stats
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @app_pk = attributes[:app_pk] || attributes['app_pk']
29
+ @date = attributes[:date] || attributes['date']
30
+ @policy = attributes[:policy] || attributes['policy']
31
+ @stats = attributes[:stats] || attributes['stats']
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ app_pk: 'app_pk',
38
+ date: 'date',
39
+ policy: 'policy',
40
+ stats: 'stats'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -21,6 +21,9 @@ module GetStream
21
21
  # @!attribute entity_type
22
22
  # @return [String] Type of entity being reviewed
23
23
  attr_accessor :entity_type
24
+ # @!attribute escalated
25
+ # @return [Boolean] Whether the item has been escalated
26
+ attr_accessor :escalated
24
27
  # @!attribute flags_count
25
28
  # @return [Integer]
26
29
  attr_accessor :flags_count
@@ -66,6 +69,12 @@ module GetStream
66
69
  # @!attribute entity_creator_id
67
70
  # @return [String] ID of who created the entity
68
71
  attr_accessor :entity_creator_id
72
+ # @!attribute escalated_at
73
+ # @return [DateTime] When the item was escalated
74
+ attr_accessor :escalated_at
75
+ # @!attribute escalated_by
76
+ # @return [String] ID of the moderator who escalated the item
77
+ attr_accessor :escalated_by
69
78
  # @!attribute reviewed_at
70
79
  # @return [DateTime] When the item was reviewed
71
80
  attr_accessor :reviewed_at
@@ -87,6 +96,9 @@ module GetStream
87
96
  # @!attribute entity_creator
88
97
  # @return [EntityCreatorResponse]
89
98
  attr_accessor :entity_creator
99
+ # @!attribute escalation_metadata
100
+ # @return [EscalationMetadata]
101
+ attr_accessor :escalation_metadata
90
102
  # @!attribute feeds_v2_activity
91
103
  # @return [EnrichedActivity]
92
104
  attr_accessor :feeds_v2_activity
@@ -94,10 +106,10 @@ module GetStream
94
106
  # @return [Reaction]
95
107
  attr_accessor :feeds_v2_reaction
96
108
  # @!attribute feeds_v3_activity
97
- # @return [ActivityResponse]
109
+ # @return [FeedsV3ActivityResponse]
98
110
  attr_accessor :feeds_v3_activity
99
111
  # @!attribute feeds_v3_comment
100
- # @return [CommentResponse]
112
+ # @return [FeedsV3CommentResponse]
101
113
  attr_accessor :feeds_v3_comment
102
114
  # @!attribute message
103
115
  # @return [MessageResponse]
@@ -116,6 +128,7 @@ module GetStream
116
128
  @created_at = attributes[:created_at] || attributes['created_at']
117
129
  @entity_id = attributes[:entity_id] || attributes['entity_id']
118
130
  @entity_type = attributes[:entity_type] || attributes['entity_type']
131
+ @escalated = attributes[:escalated] || attributes['escalated']
119
132
  @flags_count = attributes[:flags_count] || attributes['flags_count']
120
133
  @id = attributes[:id] || attributes['id']
121
134
  @latest_moderator_action = attributes[:latest_moderator_action] || attributes['latest_moderator_action']
@@ -131,6 +144,8 @@ module GetStream
131
144
  @completed_at = attributes[:completed_at] || attributes['completed_at'] || nil
132
145
  @config_key = attributes[:config_key] || attributes['config_key'] || nil
133
146
  @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil
147
+ @escalated_at = attributes[:escalated_at] || attributes['escalated_at'] || nil
148
+ @escalated_by = attributes[:escalated_by] || attributes['escalated_by'] || nil
134
149
  @reviewed_at = attributes[:reviewed_at] || attributes['reviewed_at'] || nil
135
150
  @teams = attributes[:teams] || attributes['teams'] || nil
136
151
  @activity = attributes[:activity] || attributes['activity'] || nil
@@ -138,6 +153,7 @@ module GetStream
138
153
  @assigned_to = attributes[:assigned_to] || attributes['assigned_to'] || nil
139
154
  @call = attributes[:call] || attributes['call'] || nil
140
155
  @entity_creator = attributes[:entity_creator] || attributes['entity_creator'] || nil
156
+ @escalation_metadata = attributes[:escalation_metadata] || attributes['escalation_metadata'] || nil
141
157
  @feeds_v2_activity = attributes[:feeds_v2_activity] || attributes['feeds_v2_activity'] || nil
142
158
  @feeds_v2_reaction = attributes[:feeds_v2_reaction] || attributes['feeds_v2_reaction'] || nil
143
159
  @feeds_v3_activity = attributes[:feeds_v3_activity] || attributes['feeds_v3_activity'] || nil
@@ -154,6 +170,7 @@ module GetStream
154
170
  created_at: 'created_at',
155
171
  entity_id: 'entity_id',
156
172
  entity_type: 'entity_type',
173
+ escalated: 'escalated',
157
174
  flags_count: 'flags_count',
158
175
  id: 'id',
159
176
  latest_moderator_action: 'latest_moderator_action',
@@ -169,6 +186,8 @@ module GetStream
169
186
  completed_at: 'completed_at',
170
187
  config_key: 'config_key',
171
188
  entity_creator_id: 'entity_creator_id',
189
+ escalated_at: 'escalated_at',
190
+ escalated_by: 'escalated_by',
172
191
  reviewed_at: 'reviewed_at',
173
192
  teams: 'teams',
174
193
  activity: 'activity',
@@ -176,6 +195,7 @@ module GetStream
176
195
  assigned_to: 'assigned_to',
177
196
  call: 'call',
178
197
  entity_creator: 'entity_creator',
198
+ escalation_metadata: 'escalation_metadata',
179
199
  feeds_v2_activity: 'feeds_v2_activity',
180
200
  feeds_v2_reaction: 'feeds_v2_reaction',
181
201
  feeds_v3_activity: 'feeds_v3_activity',
@@ -19,8 +19,8 @@ module GetStream
19
19
  # Initialize with attributes
20
20
  def initialize(attributes = {})
21
21
  super(attributes)
22
- @max_age_hours = attributes[:max_age_hours] || attributes['max_age_hours'] || nil
23
- @policy = attributes[:policy] || attributes['policy'] || nil
22
+ @max_age_hours = attributes[:max_age_hours] || attributes['max_age_hours']
23
+ @policy = attributes[:policy] || attributes['policy']
24
24
  end
25
25
 
26
26
  # Override field mappings for JSON serialization
@@ -10,7 +10,7 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute action_type
13
- # @return [String] Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call
13
+ # @return [String] Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate
14
14
  attr_accessor :action_type
15
15
  # @!attribute appeal_id
16
16
  # @return [String] UUID of the appeal to act on (required for reject_appeal, optional for other actions)
@@ -45,6 +45,9 @@ module GetStream
45
45
  # @!attribute delete_user
46
46
  # @return [DeleteUserRequestPayload]
47
47
  attr_accessor :delete_user
48
+ # @!attribute escalate
49
+ # @return [EscalatePayload]
50
+ attr_accessor :escalate
48
51
  # @!attribute flag
49
52
  # @return [FlagRequest]
50
53
  attr_accessor :flag
@@ -85,6 +88,7 @@ module GetStream
85
88
  @delete_message = attributes[:delete_message] || attributes['delete_message'] || nil
86
89
  @delete_reaction = attributes[:delete_reaction] || attributes['delete_reaction'] || nil
87
90
  @delete_user = attributes[:delete_user] || attributes['delete_user'] || nil
91
+ @escalate = attributes[:escalate] || attributes['escalate'] || nil
88
92
  @flag = attributes[:flag] || attributes['flag'] || nil
89
93
  @mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil
90
94
  @reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil
@@ -110,6 +114,7 @@ module GetStream
110
114
  delete_message: 'delete_message',
111
115
  delete_reaction: 'delete_reaction',
112
116
  delete_user: 'delete_user',
117
+ escalate: 'escalate',
113
118
  flag: 'flag',
114
119
  mark_reviewed: 'mark_reviewed',
115
120
  reject_appeal: 'reject_appeal',
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute contains_url
13
13
  # @return [Boolean]
14
14
  attr_accessor :contains_url
15
+ # @!attribute label_operator
16
+ # @return [String]
17
+ attr_accessor :label_operator
15
18
  # @!attribute severity
16
19
  # @return [String]
17
20
  attr_accessor :severity
@@ -29,6 +32,7 @@ module GetStream
29
32
  def initialize(attributes = {})
30
33
  super(attributes)
31
34
  @contains_url = attributes[:contains_url] || attributes['contains_url'] || nil
35
+ @label_operator = attributes[:label_operator] || attributes['label_operator'] || nil
32
36
  @severity = attributes[:severity] || attributes['severity'] || nil
33
37
  @blocklist_match = attributes[:blocklist_match] || attributes['blocklist_match'] || nil
34
38
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
@@ -39,6 +43,7 @@ module GetStream
39
43
  def self.json_field_mappings
40
44
  {
41
45
  contains_url: 'contains_url',
46
+ label_operator: 'label_operator',
42
47
  severity: 'severity',
43
48
  blocklist_match: 'blocklist_match',
44
49
  harm_labels: 'harm_labels',
@@ -13,13 +13,13 @@ module GetStream
13
13
  # @return [String] ID of the moderation rule that triggered
14
14
  attr_accessor :rule_id
15
15
  # @!attribute actions
16
- # @return [Array<String>] Array of action types resolved from the rule's action sequence (e.g. mute_video, kick_user, end_call, warning, blur)
16
+ # @return [Array<String>] Action types resolved from the rule's action sequence
17
17
  attr_accessor :actions
18
18
  # @!attribute rule_name
19
19
  # @return [String] Name of the moderation rule that triggered
20
20
  attr_accessor :rule_name
21
21
  # @!attribute violation_number
22
- # @return [Integer] The violation count for action sequence rules (1-based)
22
+ # @return [Integer] Violation count for action sequence rules (1-based)
23
23
  attr_accessor :violation_number
24
24
  # @!attribute call_options
25
25
  # @return [CallActionOptions]
@@ -10,7 +10,7 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute follows
13
- # @return [Array<FollowPair>] List of follow relationships to remove
13
+ # @return [Array<UnfollowPair>] List of follow relationships to remove, each with optional keep_history
14
14
  attr_accessor :follows
15
15
  # @!attribute delete_notification_activity
16
16
  # @return [Boolean] Whether to delete the corresponding notification activity (default: false)
@@ -0,0 +1,41 @@
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 UnfollowPair < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute source
13
+ # @return [String] Fully qualified ID of the source feed
14
+ attr_accessor :source
15
+ # @!attribute target
16
+ # @return [String] Fully qualified ID of the target feed
17
+ attr_accessor :target
18
+ # @!attribute keep_history
19
+ # @return [Boolean] When true, activities from the unfollowed feed will remain in the source feed's timeline (default: false)
20
+ attr_accessor :keep_history
21
+
22
+ # Initialize with attributes
23
+ def initialize(attributes = {})
24
+ super(attributes)
25
+ @source = attributes[:source] || attributes['source']
26
+ @target = attributes[:target] || attributes['target']
27
+ @keep_history = attributes[:keep_history] || attributes['keep_history'] || nil
28
+ end
29
+
30
+ # Override field mappings for JSON serialization
31
+ def self.json_field_mappings
32
+ {
33
+ source: 'source',
34
+ target: 'target',
35
+ keep_history: 'keep_history'
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -13,7 +13,8 @@ module GetStream
13
13
  # @return [String] ID of the activity to update
14
14
  attr_accessor :activity_id
15
15
  # @!attribute copy_custom_to_notification
16
- # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications)
16
+ # @deprecated This field is deprecated.
17
+ # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
17
18
  attr_accessor :copy_custom_to_notification
18
19
  # @!attribute handle_mention_notifications
19
20
  # @return [Boolean] When true and 'mentioned_user_ids' is updated, automatically creates or deletes mention notifications for added/removed users. Only applicable for client-side requests (ignored for server-side requests)
@@ -10,7 +10,8 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute copy_custom_to_notification
13
- # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications)
13
+ # @deprecated This field is deprecated.
14
+ # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
14
15
  attr_accessor :copy_custom_to_notification
15
16
  # @!attribute enrich_own_fields
16
17
  # @return [Boolean] If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
@@ -10,7 +10,8 @@ module GetStream
10
10
 
11
11
  # Model attributes
12
12
  # @!attribute copy_custom_to_notification
13
- # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications)
13
+ # @deprecated This field is deprecated.
14
+ # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
14
15
  attr_accessor :copy_custom_to_notification
15
16
  # @!attribute enrich_own_fields
16
17
  # @return [Boolean] If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
@@ -0,0 +1,67 @@
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 UpdateCommentPartialRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute copy_custom_to_notification
13
+ # @deprecated This field is deprecated.
14
+ # @return [Boolean] Whether to copy custom data to notification activities Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
15
+ attr_accessor :copy_custom_to_notification
16
+ # @!attribute handle_mention_notifications
17
+ # @return [Boolean] Whether to handle mention notification changes
18
+ attr_accessor :handle_mention_notifications
19
+ # @!attribute skip_enrich_url
20
+ # @return [Boolean] Whether to skip URL enrichment
21
+ attr_accessor :skip_enrich_url
22
+ # @!attribute skip_push
23
+ # @return [Boolean] Whether to skip push notifications
24
+ attr_accessor :skip_push
25
+ # @!attribute user_id
26
+ # @return [String]
27
+ attr_accessor :user_id
28
+ # @!attribute unset
29
+ # @return [Array<String>] List of field names to remove. Supported fields: 'custom', 'attachments', 'mentioned_user_ids', 'status'. Use dot-notation for nested custom fields (e.g., 'custom.field_name')
30
+ attr_accessor :unset
31
+ # @!attribute set
32
+ # @return [Object] Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'mentioned_user_ids', 'status'. Use dot-notation for nested custom fields (e.g., 'custom.field_name')
33
+ attr_accessor :set
34
+ # @!attribute user
35
+ # @return [UserRequest]
36
+ attr_accessor :user
37
+
38
+ # Initialize with attributes
39
+ def initialize(attributes = {})
40
+ super(attributes)
41
+ @copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
42
+ @handle_mention_notifications = attributes[:handle_mention_notifications] || attributes['handle_mention_notifications'] || nil
43
+ @skip_enrich_url = attributes[:skip_enrich_url] || attributes['skip_enrich_url'] || nil
44
+ @skip_push = attributes[:skip_push] || attributes['skip_push'] || nil
45
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
46
+ @unset = attributes[:unset] || attributes['unset'] || nil
47
+ @set = attributes[:set] || attributes['set'] || nil
48
+ @user = attributes[:user] || attributes['user'] || nil
49
+ end
50
+
51
+ # Override field mappings for JSON serialization
52
+ def self.json_field_mappings
53
+ {
54
+ copy_custom_to_notification: 'copy_custom_to_notification',
55
+ handle_mention_notifications: 'handle_mention_notifications',
56
+ skip_enrich_url: 'skip_enrich_url',
57
+ skip_push: 'skip_push',
58
+ user_id: 'user_id',
59
+ unset: 'unset',
60
+ set: 'set',
61
+ user: 'user'
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -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 UpdateCommentPartialResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String]
14
+ attr_accessor :duration
15
+ # @!attribute comment
16
+ # @return [CommentResponse]
17
+ attr_accessor :comment
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @comment = attributes[:comment] || attributes['comment']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ comment: 'comment'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -13,7 +13,8 @@ module GetStream
13
13
  # @return [String] Updated text content of the comment
14
14
  attr_accessor :comment
15
15
  # @!attribute copy_custom_to_notification
16
- # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications)
16
+ # @deprecated This field is deprecated.
17
+ # @return [Boolean] Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
17
18
  attr_accessor :copy_custom_to_notification
18
19
  # @!attribute handle_mention_notifications
19
20
  # @return [Boolean] If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
@@ -16,7 +16,8 @@ module GetStream
16
16
  # @return [String] Fully qualified ID of the target feed
17
17
  attr_accessor :target
18
18
  # @!attribute copy_custom_to_notification
19
- # @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true)
19
+ # @deprecated This field is deprecated.
20
+ # @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
20
21
  attr_accessor :copy_custom_to_notification
21
22
  # @!attribute create_notification_activity
22
23
  # @return [Boolean] Whether to create a notification activity for this follow
@@ -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 UpsertExternalStorageAWSS3Request < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute bucket
13
+ # @return [String]
14
+ attr_accessor :bucket
15
+ # @!attribute region
16
+ # @return [String]
17
+ attr_accessor :region
18
+ # @!attribute role_arn
19
+ # @return [String]
20
+ attr_accessor :role_arn
21
+ # @!attribute path_prefix
22
+ # @return [String]
23
+ attr_accessor :path_prefix
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @bucket = attributes[:bucket] || attributes['bucket']
29
+ @region = attributes[:region] || attributes['region']
30
+ @role_arn = attributes[:role_arn] || attributes['role_arn']
31
+ @path_prefix = attributes[:path_prefix] || attributes['path_prefix'] || nil
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ bucket: 'bucket',
38
+ region: 'region',
39
+ role_arn: 'role_arn',
40
+ path_prefix: 'path_prefix'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -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 UpsertExternalStorageRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute type
13
+ # @return [String]
14
+ attr_accessor :type
15
+ # @!attribute aws_s3
16
+ # @return [UpsertExternalStorageAWSS3Request]
17
+ attr_accessor :aws_s3
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @type = attributes[:type] || attributes['type']
23
+ @aws_s3 = attributes[:aws_s3] || attributes['aws_s3'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ type: 'type',
30
+ aws_s3: 'aws_s3'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ 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
+ # Basic response information
9
+ class UpsertExternalStorageResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
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
@@ -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
+ # Basic response information
9
+ class ValidateExternalStorageResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
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
@@ -9,6 +9,9 @@ module GetStream
9
9
  class VideoContentParameters < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute label_operator
13
+ # @return [String]
14
+ attr_accessor :label_operator
12
15
  # @!attribute harm_labels
13
16
  # @return [Array<String>]
14
17
  attr_accessor :harm_labels
@@ -16,12 +19,14 @@ module GetStream
16
19
  # Initialize with attributes
17
20
  def initialize(attributes = {})
18
21
  super(attributes)
22
+ @label_operator = attributes[:label_operator] || attributes['label_operator'] || nil
19
23
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
20
24
  end
21
25
 
22
26
  # Override field mappings for JSON serialization
23
27
  def self.json_field_mappings
24
28
  {
29
+ label_operator: 'label_operator',
25
30
  harm_labels: 'harm_labels'
26
31
  }
27
32
  end