getstream-ruby 4.1.0 → 6.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.
- checksums.yaml +4 -4
- data/lib/getstream_ruby/generated/chat_client.rb +7 -10
- data/lib/getstream_ruby/generated/common_client.rb +56 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +130 -7
- data/lib/getstream_ruby/generated/models/activity_request.rb +3 -2
- data/lib/getstream_ruby/generated/models/activity_response.rb +7 -2
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +8 -2
- data/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/add_comment_bookmark_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_comment_request.rb +7 -1
- data/lib/getstream_ruby/generated/models/add_reaction_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_user_group_members_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/aggregation_config.rb +11 -1
- data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/ban_action_request_payload.rb +5 -0
- data/lib/getstream_ruby/generated/models/bookmark_response.rb +20 -0
- data/lib/getstream_ruby/generated/models/bypass_action_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/bypass_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/bypass_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/call_level_event_payload.rb +46 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +30 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_session.rb +15 -0
- data/lib/getstream_ruby/generated/models/call_stats_report_ready_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_stats_session_response.rb +61 -0
- data/lib/getstream_ruby/generated/models/check_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/comment_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/comment_restored_event.rb +66 -0
- data/lib/getstream_ruby/generated/models/delete_comment_bookmark_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/emau_stats_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/enriched_collection.rb +61 -0
- data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
- data/lib/getstream_ruby/generated/models/entity_creator_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/escalate_payload.rb +41 -0
- data/lib/getstream_ruby/generated/models/escalation_metadata.rb +41 -0
- data/lib/getstream_ruby/generated/models/feed_input.rb +6 -1
- data/lib/getstream_ruby/generated/models/feed_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/feed_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_suggestion_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feeds_preferences.rb +6 -1
- data/lib/getstream_ruby/generated/models/feeds_preferences_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feeds_reaction_group.rb +41 -0
- data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +206 -0
- data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +141 -0
- data/lib/getstream_ruby/generated/models/follow_batch_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/follow_request.rb +12 -1
- data/lib/getstream_ruby/generated/models/full_user_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/get_external_storage_awss3_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/get_external_storage_response.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_flag_count_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_flag_count_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/get_retention_policy_runs_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +12 -2
- data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/import_v2_task_item.rb +6 -1
- data/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +5 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/location.rb +10 -15
- data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -0
- data/lib/getstream_ruby/generated/models/notification_target.rb +5 -0
- data/lib/getstream_ruby/generated/models/notification_trigger.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_activities_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_call_members_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_call_participants_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_call_session_participant_stats_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_call_session_stats_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/query_call_session_stats_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/query_call_stats_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_calls_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_channels_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_comments_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_members_payload.rb +3 -3
- data/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_reactions_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_threads_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_user_feedback_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_users_payload.rb +3 -3
- data/lib/getstream_ruby/generated/models/raw_record_settings.rb +6 -1
- data/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/reaction_group_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/restore_comment_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/restore_comment_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/retention_run_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +22 -2
- data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/submit_action_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/text_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/threaded_comment_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +2 -2
- data/lib/getstream_ruby/generated/models/unban_action_request_payload.rb +6 -1
- data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/unfollow_pair.rb +41 -0
- data/lib/getstream_ruby/generated/models/update_activities_partial_batch_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/update_activity_partial_change_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +7 -1
- data/lib/getstream_ruby/generated/models/update_activity_request.rb +8 -2
- data/lib/getstream_ruby/generated/models/update_bookmark_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/update_comment_bookmark_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +72 -0
- data/lib/getstream_ruby/generated/models/update_comment_partial_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/update_comment_request.rb +7 -1
- data/lib/getstream_ruby/generated/models/update_feed_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +12 -1
- data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/upsert_external_storage_awss3_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/upsert_external_storage_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb +22 -12
- data/lib/getstream_ruby/generated/models/user_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/validate_external_storage_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/video_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +61 -3
- data/lib/getstream_ruby/generated/video_client.rb +17 -0
- data/lib/getstream_ruby/generated/webhook.rb +4 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +40 -2
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute sum_scores
|
|
22
22
|
# @return [Integer] SumScores is the sum of all scores of reactions of this type. Medium allows you to clap articles more than once and shows the sum of all claps from all users. For example, you can send `clap` x5 using `score: 5`.
|
|
23
23
|
attr_accessor :sum_scores
|
|
24
|
+
# @!attribute latest_reactions_by
|
|
25
|
+
# @return [Array<ReactionGroupUserResponse>] The most recent users who reacted with this type, ordered by most recent first.
|
|
26
|
+
attr_accessor :latest_reactions_by
|
|
24
27
|
|
|
25
28
|
# Initialize with attributes
|
|
26
29
|
def initialize(attributes = {})
|
|
@@ -29,6 +32,7 @@ module GetStream
|
|
|
29
32
|
@first_reaction_at = attributes[:first_reaction_at] || attributes['first_reaction_at']
|
|
30
33
|
@last_reaction_at = attributes[:last_reaction_at] || attributes['last_reaction_at']
|
|
31
34
|
@sum_scores = attributes[:sum_scores] || attributes['sum_scores']
|
|
35
|
+
@latest_reactions_by = attributes[:latest_reactions_by] || attributes['latest_reactions_by']
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
# Override field mappings for JSON serialization
|
|
@@ -37,7 +41,8 @@ module GetStream
|
|
|
37
41
|
count: 'count',
|
|
38
42
|
first_reaction_at: 'first_reaction_at',
|
|
39
43
|
last_reaction_at: 'last_reaction_at',
|
|
40
|
-
sum_scores: 'sum_scores'
|
|
44
|
+
sum_scores: 'sum_scores',
|
|
45
|
+
latest_reactions_by: 'latest_reactions_by'
|
|
41
46
|
}
|
|
42
47
|
end
|
|
43
48
|
end
|
|
@@ -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
|
+
# Contains information about a user who reacted with this reaction type.
|
|
9
|
+
class ReactionGroupUserResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime] The time when the user reacted.
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute user_id
|
|
16
|
+
# @return [String] The ID of the user who reacted.
|
|
17
|
+
attr_accessor :user_id
|
|
18
|
+
# @!attribute user
|
|
19
|
+
# @return [UserResponse]
|
|
20
|
+
attr_accessor :user
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
26
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
27
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
created_at: 'created_at',
|
|
34
|
+
user_id: 'user_id',
|
|
35
|
+
user: 'user'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
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 RestoreCommentRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute user_id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :user_id
|
|
15
|
+
# @!attribute user
|
|
16
|
+
# @return [UserRequest]
|
|
17
|
+
attr_accessor :user
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
23
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
user_id: 'user_id',
|
|
30
|
+
user: 'user'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -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 [
|
|
109
|
+
# @return [FeedsV3ActivityResponse]
|
|
98
110
|
attr_accessor :feeds_v3_activity
|
|
99
111
|
# @!attribute feeds_v3_comment
|
|
100
|
-
# @return [
|
|
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']
|
|
23
|
-
@policy = attributes[:policy] || attributes['policy']
|
|
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)
|
|
@@ -27,6 +27,9 @@ module GetStream
|
|
|
27
27
|
# @!attribute block
|
|
28
28
|
# @return [BlockActionRequestPayload]
|
|
29
29
|
attr_accessor :block
|
|
30
|
+
# @!attribute bypass
|
|
31
|
+
# @return [BypassActionRequest]
|
|
32
|
+
attr_accessor :bypass
|
|
30
33
|
# @!attribute custom
|
|
31
34
|
# @return [CustomActionRequestPayload]
|
|
32
35
|
attr_accessor :custom
|
|
@@ -45,6 +48,9 @@ module GetStream
|
|
|
45
48
|
# @!attribute delete_user
|
|
46
49
|
# @return [DeleteUserRequestPayload]
|
|
47
50
|
attr_accessor :delete_user
|
|
51
|
+
# @!attribute escalate
|
|
52
|
+
# @return [EscalatePayload]
|
|
53
|
+
attr_accessor :escalate
|
|
48
54
|
# @!attribute flag
|
|
49
55
|
# @return [FlagRequest]
|
|
50
56
|
attr_accessor :flag
|
|
@@ -79,12 +85,14 @@ module GetStream
|
|
|
79
85
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
80
86
|
@ban = attributes[:ban] || attributes['ban'] || nil
|
|
81
87
|
@block = attributes[:block] || attributes['block'] || nil
|
|
88
|
+
@bypass = attributes[:bypass] || attributes['bypass'] || nil
|
|
82
89
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
83
90
|
@delete_activity = attributes[:delete_activity] || attributes['delete_activity'] || nil
|
|
84
91
|
@delete_comment = attributes[:delete_comment] || attributes['delete_comment'] || nil
|
|
85
92
|
@delete_message = attributes[:delete_message] || attributes['delete_message'] || nil
|
|
86
93
|
@delete_reaction = attributes[:delete_reaction] || attributes['delete_reaction'] || nil
|
|
87
94
|
@delete_user = attributes[:delete_user] || attributes['delete_user'] || nil
|
|
95
|
+
@escalate = attributes[:escalate] || attributes['escalate'] || nil
|
|
88
96
|
@flag = attributes[:flag] || attributes['flag'] || nil
|
|
89
97
|
@mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil
|
|
90
98
|
@reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil
|
|
@@ -104,12 +112,14 @@ module GetStream
|
|
|
104
112
|
user_id: 'user_id',
|
|
105
113
|
ban: 'ban',
|
|
106
114
|
block: 'block',
|
|
115
|
+
bypass: 'bypass',
|
|
107
116
|
custom: 'custom',
|
|
108
117
|
delete_activity: 'delete_activity',
|
|
109
118
|
delete_comment: 'delete_comment',
|
|
110
119
|
delete_message: 'delete_message',
|
|
111
120
|
delete_reaction: 'delete_reaction',
|
|
112
121
|
delete_user: 'delete_user',
|
|
122
|
+
escalate: 'escalate',
|
|
113
123
|
flag: 'flag',
|
|
114
124
|
mark_reviewed: 'mark_reviewed',
|
|
115
125
|
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',
|
|
@@ -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
|
|
@@ -95,6 +98,7 @@ module GetStream
|
|
|
95
98
|
def initialize(attributes = {})
|
|
96
99
|
super(attributes)
|
|
97
100
|
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
101
|
+
@bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count']
|
|
98
102
|
@confidence_score = attributes[:confidence_score] || attributes['confidence_score']
|
|
99
103
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
100
104
|
@downvote_count = attributes[:downvote_count] || attributes['downvote_count']
|
|
@@ -127,6 +131,7 @@ module GetStream
|
|
|
127
131
|
def self.json_field_mappings
|
|
128
132
|
{
|
|
129
133
|
_object_id: 'object_id',
|
|
134
|
+
bookmark_count: 'bookmark_count',
|
|
130
135
|
confidence_score: 'confidence_score',
|
|
131
136
|
created_at: 'created_at',
|
|
132
137
|
downvote_count: 'downvote_count',
|
|
@@ -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>]
|
|
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]
|
|
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]
|
|
@@ -15,19 +15,24 @@ module GetStream
|
|
|
15
15
|
# @!attribute decision_reason
|
|
16
16
|
# @return [String] Reason for the appeal decision
|
|
17
17
|
attr_accessor :decision_reason
|
|
18
|
+
# @!attribute remove_future_channels_ban
|
|
19
|
+
# @return [Boolean] Also remove the future channels ban for this user
|
|
20
|
+
attr_accessor :remove_future_channels_ban
|
|
18
21
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil
|
|
23
26
|
@decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil
|
|
27
|
+
@remove_future_channels_ban = attributes[:remove_future_channels_ban] || attributes['remove_future_channels_ban'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
# Override field mappings for JSON serialization
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
channel_cid: 'channel_cid',
|
|
30
|
-
decision_reason: 'decision_reason'
|
|
34
|
+
decision_reason: 'decision_reason',
|
|
35
|
+
remove_future_channels_ban: 'remove_future_channels_ban'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
33
38
|
end
|
|
@@ -10,7 +10,7 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute follows
|
|
13
|
-
# @return [Array<
|
|
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
|
|
@@ -12,17 +12,22 @@ module GetStream
|
|
|
12
12
|
# @!attribute changes
|
|
13
13
|
# @return [Array<UpdateActivityPartialChangeRequest>] List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset
|
|
14
14
|
attr_accessor :changes
|
|
15
|
+
# @!attribute force_moderation
|
|
16
|
+
# @return [Boolean] If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
17
|
+
attr_accessor :force_moderation
|
|
15
18
|
|
|
16
19
|
# Initialize with attributes
|
|
17
20
|
def initialize(attributes = {})
|
|
18
21
|
super(attributes)
|
|
19
22
|
@changes = attributes[:changes] || attributes['changes']
|
|
23
|
+
@force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
# Override field mappings for JSON serialization
|
|
23
27
|
def self.json_field_mappings
|
|
24
28
|
{
|
|
25
|
-
changes: 'changes'
|
|
29
|
+
changes: 'changes',
|
|
30
|
+
force_moderation: 'force_moderation'
|
|
26
31
|
}
|
|
27
32
|
end
|
|
28
33
|
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
|
-
#
|
|
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,11 +10,15 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute copy_custom_to_notification
|
|
13
|
-
#
|
|
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.
|
|
17
18
|
attr_accessor :enrich_own_fields
|
|
19
|
+
# @!attribute force_moderation
|
|
20
|
+
# @return [Boolean] If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
21
|
+
attr_accessor :force_moderation
|
|
18
22
|
# @!attribute handle_mention_notifications
|
|
19
23
|
# @return [Boolean] If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
|
|
20
24
|
attr_accessor :handle_mention_notifications
|
|
@@ -39,6 +43,7 @@ module GetStream
|
|
|
39
43
|
super(attributes)
|
|
40
44
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
41
45
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
46
|
+
@force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil
|
|
42
47
|
@handle_mention_notifications = attributes[:handle_mention_notifications] || attributes['handle_mention_notifications'] || nil
|
|
43
48
|
@run_activity_processors = attributes[:run_activity_processors] || attributes['run_activity_processors'] || nil
|
|
44
49
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
@@ -52,6 +57,7 @@ module GetStream
|
|
|
52
57
|
{
|
|
53
58
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
54
59
|
enrich_own_fields: 'enrich_own_fields',
|
|
60
|
+
force_moderation: 'force_moderation',
|
|
55
61
|
handle_mention_notifications: 'handle_mention_notifications',
|
|
56
62
|
run_activity_processors: 'run_activity_processors',
|
|
57
63
|
user_id: 'user_id',
|
|
@@ -10,7 +10,8 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute copy_custom_to_notification
|
|
13
|
-
#
|
|
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.
|
|
@@ -18,6 +19,9 @@ module GetStream
|
|
|
18
19
|
# @!attribute expires_at
|
|
19
20
|
# @return [DateTime] Time when the activity will expire
|
|
20
21
|
attr_accessor :expires_at
|
|
22
|
+
# @!attribute force_moderation
|
|
23
|
+
# @return [Boolean] If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
24
|
+
attr_accessor :force_moderation
|
|
21
25
|
# @!attribute handle_mention_notifications
|
|
22
26
|
# @return [Boolean] If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
|
|
23
27
|
attr_accessor :handle_mention_notifications
|
|
@@ -67,7 +71,7 @@ module GetStream
|
|
|
67
71
|
# @return [Object] Custom data for the activity
|
|
68
72
|
attr_accessor :custom
|
|
69
73
|
# @!attribute location
|
|
70
|
-
# @return [
|
|
74
|
+
# @return [Location]
|
|
71
75
|
attr_accessor :location
|
|
72
76
|
# @!attribute search_data
|
|
73
77
|
# @return [Object] Additional data for search indexing
|
|
@@ -82,6 +86,7 @@ module GetStream
|
|
|
82
86
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
83
87
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
84
88
|
@expires_at = attributes[:expires_at] || attributes['expires_at'] || nil
|
|
89
|
+
@force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil
|
|
85
90
|
@handle_mention_notifications = attributes[:handle_mention_notifications] || attributes['handle_mention_notifications'] || nil
|
|
86
91
|
@poll_id = attributes[:poll_id] || attributes['poll_id'] || nil
|
|
87
92
|
@restrict_replies = attributes[:restrict_replies] || attributes['restrict_replies'] || nil
|
|
@@ -109,6 +114,7 @@ module GetStream
|
|
|
109
114
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
110
115
|
enrich_own_fields: 'enrich_own_fields',
|
|
111
116
|
expires_at: 'expires_at',
|
|
117
|
+
force_moderation: 'force_moderation',
|
|
112
118
|
handle_mention_notifications: 'handle_mention_notifications',
|
|
113
119
|
poll_id: 'poll_id',
|
|
114
120
|
restrict_replies: 'restrict_replies',
|
|
@@ -10,10 +10,10 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute folder_id
|
|
13
|
-
# @return [String] ID of the folder
|
|
13
|
+
# @return [String] ID of the folder containing the bookmark
|
|
14
14
|
attr_accessor :folder_id
|
|
15
15
|
# @!attribute new_folder_id
|
|
16
|
-
# @return [String]
|
|
16
|
+
# @return [String] Move the bookmark to this folder (empty string removes the folder)
|
|
17
17
|
attr_accessor :new_folder_id
|
|
18
18
|
# @!attribute user_id
|
|
19
19
|
# @return [String]
|