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
|
@@ -0,0 +1,141 @@
|
|
|
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 FeedsV3CommentResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute _object_id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :_object_id
|
|
15
|
+
# @!attribute confidence_score
|
|
16
|
+
# @return [Float]
|
|
17
|
+
attr_accessor :confidence_score
|
|
18
|
+
# @!attribute created_at
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
# @!attribute downvote_count
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
attr_accessor :downvote_count
|
|
24
|
+
# @!attribute id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :id
|
|
27
|
+
# @!attribute object_type
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :object_type
|
|
30
|
+
# @!attribute reaction_count
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
attr_accessor :reaction_count
|
|
33
|
+
# @!attribute reply_count
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
attr_accessor :reply_count
|
|
36
|
+
# @!attribute score
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :score
|
|
39
|
+
# @!attribute status
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :status
|
|
42
|
+
# @!attribute updated_at
|
|
43
|
+
# @return [DateTime]
|
|
44
|
+
attr_accessor :updated_at
|
|
45
|
+
# @!attribute upvote_count
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
attr_accessor :upvote_count
|
|
48
|
+
# @!attribute mentioned_users
|
|
49
|
+
# @return [Array<UserResponse>]
|
|
50
|
+
attr_accessor :mentioned_users
|
|
51
|
+
# @!attribute own_reactions
|
|
52
|
+
# @return [Array]
|
|
53
|
+
attr_accessor :own_reactions
|
|
54
|
+
# @!attribute user
|
|
55
|
+
# @return [UserResponse]
|
|
56
|
+
attr_accessor :user
|
|
57
|
+
# @!attribute controversy_score
|
|
58
|
+
# @return [Float]
|
|
59
|
+
attr_accessor :controversy_score
|
|
60
|
+
# @!attribute deleted_at
|
|
61
|
+
# @return [DateTime]
|
|
62
|
+
attr_accessor :deleted_at
|
|
63
|
+
# @!attribute edited_at
|
|
64
|
+
# @return [DateTime]
|
|
65
|
+
attr_accessor :edited_at
|
|
66
|
+
# @!attribute parent_id
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :parent_id
|
|
69
|
+
# @!attribute text
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :text
|
|
72
|
+
# @!attribute attachments
|
|
73
|
+
# @return [Array<Attachment>]
|
|
74
|
+
attr_accessor :attachments
|
|
75
|
+
# @!attribute custom
|
|
76
|
+
# @return [Object]
|
|
77
|
+
attr_accessor :custom
|
|
78
|
+
# @!attribute moderation
|
|
79
|
+
# @return [ModerationV2Response]
|
|
80
|
+
attr_accessor :moderation
|
|
81
|
+
|
|
82
|
+
# Initialize with attributes
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
super(attributes)
|
|
85
|
+
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
86
|
+
@confidence_score = attributes[:confidence_score] || attributes['confidence_score']
|
|
87
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
88
|
+
@downvote_count = attributes[:downvote_count] || attributes['downvote_count']
|
|
89
|
+
@id = attributes[:id] || attributes['id']
|
|
90
|
+
@object_type = attributes[:object_type] || attributes['object_type']
|
|
91
|
+
@reaction_count = attributes[:reaction_count] || attributes['reaction_count']
|
|
92
|
+
@reply_count = attributes[:reply_count] || attributes['reply_count']
|
|
93
|
+
@score = attributes[:score] || attributes['score']
|
|
94
|
+
@status = attributes[:status] || attributes['status']
|
|
95
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
96
|
+
@upvote_count = attributes[:upvote_count] || attributes['upvote_count']
|
|
97
|
+
@mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users']
|
|
98
|
+
@own_reactions = attributes[:own_reactions] || attributes['own_reactions']
|
|
99
|
+
@user = attributes[:user] || attributes['user']
|
|
100
|
+
@controversy_score = attributes[:controversy_score] || attributes['controversy_score'] || nil
|
|
101
|
+
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
102
|
+
@edited_at = attributes[:edited_at] || attributes['edited_at'] || nil
|
|
103
|
+
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
104
|
+
@text = attributes[:text] || attributes['text'] || nil
|
|
105
|
+
@attachments = attributes[:attachments] || attributes['attachments'] || nil
|
|
106
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
107
|
+
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Override field mappings for JSON serialization
|
|
111
|
+
def self.json_field_mappings
|
|
112
|
+
{
|
|
113
|
+
_object_id: 'object_id',
|
|
114
|
+
confidence_score: 'confidence_score',
|
|
115
|
+
created_at: 'created_at',
|
|
116
|
+
downvote_count: 'downvote_count',
|
|
117
|
+
id: 'id',
|
|
118
|
+
object_type: 'object_type',
|
|
119
|
+
reaction_count: 'reaction_count',
|
|
120
|
+
reply_count: 'reply_count',
|
|
121
|
+
score: 'score',
|
|
122
|
+
status: 'status',
|
|
123
|
+
updated_at: 'updated_at',
|
|
124
|
+
upvote_count: 'upvote_count',
|
|
125
|
+
mentioned_users: 'mentioned_users',
|
|
126
|
+
own_reactions: 'own_reactions',
|
|
127
|
+
user: 'user',
|
|
128
|
+
controversy_score: 'controversy_score',
|
|
129
|
+
deleted_at: 'deleted_at',
|
|
130
|
+
edited_at: 'edited_at',
|
|
131
|
+
parent_id: 'parent_id',
|
|
132
|
+
text: 'text',
|
|
133
|
+
attachments: 'attachments',
|
|
134
|
+
custom: 'custom',
|
|
135
|
+
moderation: 'moderation'
|
|
136
|
+
}
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute follows
|
|
13
13
|
# @return [Array<FollowRequest>] List of follow relationships to create
|
|
14
14
|
attr_accessor :follows
|
|
15
|
+
# @!attribute create_users
|
|
16
|
+
# @return [Boolean] If true, auto-creates users referenced by source/target FIDs in the batch when they don't already exist. Server-side only. Defaults to false. This top-level field is the only supported batch/upsert create_users control.
|
|
17
|
+
attr_accessor :create_users
|
|
15
18
|
# @!attribute enrich_own_fields
|
|
16
19
|
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
17
20
|
attr_accessor :enrich_own_fields
|
|
@@ -20,6 +23,7 @@ module GetStream
|
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@follows = attributes[:follows] || attributes['follows']
|
|
26
|
+
@create_users = attributes[:create_users] || attributes['create_users'] || nil
|
|
23
27
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
@@ -27,6 +31,7 @@ module GetStream
|
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
follows: 'follows',
|
|
34
|
+
create_users: 'create_users',
|
|
30
35
|
enrich_own_fields: 'enrich_own_fields'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
@@ -15,12 +15,19 @@ module GetStream
|
|
|
15
15
|
# @!attribute target
|
|
16
16
|
# @return [String] Fully qualified ID of the target feed
|
|
17
17
|
attr_accessor :target
|
|
18
|
+
# @!attribute activity_copy_limit
|
|
19
|
+
# @return [Integer] Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
|
|
20
|
+
attr_accessor :activity_copy_limit
|
|
18
21
|
# @!attribute copy_custom_to_notification
|
|
19
|
-
#
|
|
22
|
+
# @deprecated This field is deprecated.
|
|
23
|
+
# @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
24
|
attr_accessor :copy_custom_to_notification
|
|
21
25
|
# @!attribute create_notification_activity
|
|
22
26
|
# @return [Boolean] Whether to create a notification activity for this follow
|
|
23
27
|
attr_accessor :create_notification_activity
|
|
28
|
+
# @!attribute create_users
|
|
29
|
+
# @return [Boolean] If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
|
|
30
|
+
attr_accessor :create_users
|
|
24
31
|
# @!attribute enrich_own_fields
|
|
25
32
|
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
26
33
|
attr_accessor :enrich_own_fields
|
|
@@ -42,8 +49,10 @@ module GetStream
|
|
|
42
49
|
super(attributes)
|
|
43
50
|
@source = attributes[:source] || attributes['source']
|
|
44
51
|
@target = attributes[:target] || attributes['target']
|
|
52
|
+
@activity_copy_limit = attributes[:activity_copy_limit] || attributes['activity_copy_limit'] || nil
|
|
45
53
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
46
54
|
@create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil
|
|
55
|
+
@create_users = attributes[:create_users] || attributes['create_users'] || nil
|
|
47
56
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
48
57
|
@push_preference = attributes[:push_preference] || attributes['push_preference'] || nil
|
|
49
58
|
@skip_push = attributes[:skip_push] || attributes['skip_push'] || nil
|
|
@@ -56,8 +65,10 @@ module GetStream
|
|
|
56
65
|
{
|
|
57
66
|
source: 'source',
|
|
58
67
|
target: 'target',
|
|
68
|
+
activity_copy_limit: 'activity_copy_limit',
|
|
59
69
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
60
70
|
create_notification_activity: 'create_notification_activity',
|
|
71
|
+
create_users: 'create_users',
|
|
61
72
|
enrich_own_fields: 'enrich_own_fields',
|
|
62
73
|
push_preference: 'push_preference',
|
|
63
74
|
skip_push: 'skip_push',
|
|
@@ -72,6 +72,9 @@ module GetStream
|
|
|
72
72
|
# @!attribute ban_expires
|
|
73
73
|
# @return [DateTime]
|
|
74
74
|
attr_accessor :ban_expires
|
|
75
|
+
# @!attribute bypass_moderation
|
|
76
|
+
# @return [Boolean]
|
|
77
|
+
attr_accessor :bypass_moderation
|
|
75
78
|
# @!attribute deactivated_at
|
|
76
79
|
# @return [DateTime]
|
|
77
80
|
attr_accessor :deactivated_at
|
|
@@ -124,6 +127,7 @@ module GetStream
|
|
|
124
127
|
@custom = attributes[:custom] || attributes['custom']
|
|
125
128
|
@avg_response_time = attributes[:avg_response_time] || attributes['avg_response_time'] || nil
|
|
126
129
|
@ban_expires = attributes[:ban_expires] || attributes['ban_expires'] || nil
|
|
130
|
+
@bypass_moderation = attributes[:bypass_moderation] || attributes['bypass_moderation'] || nil
|
|
127
131
|
@deactivated_at = attributes[:deactivated_at] || attributes['deactivated_at'] || nil
|
|
128
132
|
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
129
133
|
@image = attributes[:image] || attributes['image'] || nil
|
|
@@ -159,6 +163,7 @@ module GetStream
|
|
|
159
163
|
custom: 'custom',
|
|
160
164
|
avg_response_time: 'avg_response_time',
|
|
161
165
|
ban_expires: 'ban_expires',
|
|
166
|
+
bypass_moderation: 'bypass_moderation',
|
|
162
167
|
deactivated_at: 'deactivated_at',
|
|
163
168
|
deleted_at: 'deleted_at',
|
|
164
169
|
image: 'image',
|
|
@@ -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 GetExternalStorageAWSS3Response < 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,51 @@
|
|
|
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 GetExternalStorageResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime]
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute duration
|
|
16
|
+
# @return [String] Duration of the request in milliseconds
|
|
17
|
+
attr_accessor :duration
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
# @!attribute updated_at
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :updated_at
|
|
24
|
+
# @!attribute aws_s3
|
|
25
|
+
# @return [GetExternalStorageAWSS3Response]
|
|
26
|
+
attr_accessor :aws_s3
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
32
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
33
|
+
@type = attributes[:type] || attributes['type']
|
|
34
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
35
|
+
@aws_s3 = attributes[:aws_s3] || attributes['aws_s3'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
created_at: 'created_at',
|
|
42
|
+
duration: 'duration',
|
|
43
|
+
type: 'type',
|
|
44
|
+
updated_at: 'updated_at',
|
|
45
|
+
aws_s3: 'aws_s3'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
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 GetFlagCountRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute entity_creator_id
|
|
13
|
+
# @return [String] ID of the user whose content was flagged
|
|
14
|
+
attr_accessor :entity_creator_id
|
|
15
|
+
# @!attribute entity_type
|
|
16
|
+
# @return [String] Optional entity type filter (e.g., stream:chat:v1:message, stream:user)
|
|
17
|
+
attr_accessor :entity_type
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id']
|
|
23
|
+
@entity_type = attributes[:entity_type] || attributes['entity_type'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
entity_creator_id: 'entity_creator_id',
|
|
30
|
+
entity_type: 'entity_type'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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 GetFlagCountResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute count
|
|
13
|
+
# @return [Integer] Total number of flags against the specified user's content
|
|
14
|
+
attr_accessor :count
|
|
15
|
+
# @!attribute duration
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :duration
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@count = attributes[:count] || attributes['count']
|
|
23
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
count: 'count',
|
|
30
|
+
duration: 'duration'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -33,6 +33,9 @@ module GetStream
|
|
|
33
33
|
# @!attribute settings
|
|
34
34
|
# @return [ImportV2TaskSettings]
|
|
35
35
|
attr_accessor :settings
|
|
36
|
+
# @!attribute result
|
|
37
|
+
# @return [Object]
|
|
38
|
+
attr_accessor :result
|
|
36
39
|
|
|
37
40
|
# Initialize with attributes
|
|
38
41
|
def initialize(attributes = {})
|
|
@@ -45,6 +48,7 @@ module GetStream
|
|
|
45
48
|
@state = attributes[:state] || attributes['state']
|
|
46
49
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
47
50
|
@settings = attributes[:settings] || attributes['settings']
|
|
51
|
+
@result = attributes[:result] || attributes['result'] || nil
|
|
48
52
|
end
|
|
49
53
|
|
|
50
54
|
# Override field mappings for JSON serialization
|
|
@@ -57,7 +61,8 @@ module GetStream
|
|
|
57
61
|
product: 'product',
|
|
58
62
|
state: 'state',
|
|
59
63
|
updated_at: 'updated_at',
|
|
60
|
-
settings: 'settings'
|
|
64
|
+
settings: 'settings',
|
|
65
|
+
result: 'result'
|
|
61
66
|
}
|
|
62
67
|
end
|
|
63
68
|
end
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GetRetentionPolicyRunsRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute limit
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :limit
|
|
15
|
+
# @!attribute next
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :next
|
|
18
|
+
# @!attribute prev
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :prev
|
|
21
|
+
# @!attribute sort
|
|
22
|
+
# @return [Array<SortParamRequest>] Array of sort parameters
|
|
23
|
+
attr_accessor :sort
|
|
24
|
+
# @!attribute filter_conditions
|
|
25
|
+
# @return [Object] Filter conditions to apply to the query
|
|
26
|
+
attr_accessor :filter_conditions
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
32
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
33
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
34
|
+
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
35
|
+
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
limit: 'limit',
|
|
42
|
+
next: 'next',
|
|
43
|
+
prev: 'prev',
|
|
44
|
+
sort: 'sort',
|
|
45
|
+
filter_conditions: 'filter_conditions'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -13,21 +13,31 @@ module GetStream
|
|
|
13
13
|
# @return [String] Duration of the request in milliseconds
|
|
14
14
|
attr_accessor :duration
|
|
15
15
|
# @!attribute runs
|
|
16
|
-
# @return [Array<
|
|
16
|
+
# @return [Array<RetentionRunResponse>]
|
|
17
17
|
attr_accessor :runs
|
|
18
|
+
# @!attribute next
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :next
|
|
21
|
+
# @!attribute prev
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :prev
|
|
18
24
|
|
|
19
25
|
# Initialize with attributes
|
|
20
26
|
def initialize(attributes = {})
|
|
21
27
|
super(attributes)
|
|
22
28
|
@duration = attributes[:duration] || attributes['duration']
|
|
23
29
|
@runs = attributes[:runs] || attributes['runs']
|
|
30
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
31
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
24
32
|
end
|
|
25
33
|
|
|
26
34
|
# Override field mappings for JSON serialization
|
|
27
35
|
def self.json_field_mappings
|
|
28
36
|
{
|
|
29
37
|
duration: 'duration',
|
|
30
|
-
runs: 'runs'
|
|
38
|
+
runs: 'runs',
|
|
39
|
+
next: 'next',
|
|
40
|
+
prev: 'prev'
|
|
31
41
|
}
|
|
32
42
|
end
|
|
33
43
|
end
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class ImageContentParameters < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute label_operator
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :label_operator
|
|
12
15
|
# @!attribute min_confidence
|
|
13
16
|
# @return [Float]
|
|
14
17
|
attr_accessor :min_confidence
|
|
@@ -19,6 +22,7 @@ module GetStream
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
25
|
+
@label_operator = attributes[:label_operator] || attributes['label_operator'] || nil
|
|
22
26
|
@min_confidence = attributes[:min_confidence] || attributes['min_confidence'] || nil
|
|
23
27
|
@harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
|
|
24
28
|
end
|
|
@@ -26,6 +30,7 @@ module GetStream
|
|
|
26
30
|
# Override field mappings for JSON serialization
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
33
|
+
label_operator: 'label_operator',
|
|
29
34
|
min_confidence: 'min_confidence',
|
|
30
35
|
harm_labels: 'harm_labels'
|
|
31
36
|
}
|
|
@@ -30,6 +30,9 @@ module GetStream
|
|
|
30
30
|
# @!attribute settings
|
|
31
31
|
# @return [ImportV2TaskSettings]
|
|
32
32
|
attr_accessor :settings
|
|
33
|
+
# @!attribute result
|
|
34
|
+
# @return [Object]
|
|
35
|
+
attr_accessor :result
|
|
33
36
|
|
|
34
37
|
# Initialize with attributes
|
|
35
38
|
def initialize(attributes = {})
|
|
@@ -41,6 +44,7 @@ module GetStream
|
|
|
41
44
|
@state = attributes[:state] || attributes['state']
|
|
42
45
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
43
46
|
@settings = attributes[:settings] || attributes['settings']
|
|
47
|
+
@result = attributes[:result] || attributes['result'] || nil
|
|
44
48
|
end
|
|
45
49
|
|
|
46
50
|
# Override field mappings for JSON serialization
|
|
@@ -52,7 +56,8 @@ module GetStream
|
|
|
52
56
|
product: 'product',
|
|
53
57
|
state: 'state',
|
|
54
58
|
updated_at: 'updated_at',
|
|
55
|
-
settings: 'settings'
|
|
59
|
+
settings: 'settings',
|
|
60
|
+
result: 'result'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
end
|
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute skip_references_check
|
|
22
22
|
# @return [Boolean]
|
|
23
23
|
attr_accessor :skip_references_check
|
|
24
|
+
# @!attribute source
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :source
|
|
24
27
|
# @!attribute s3
|
|
25
28
|
# @return [ImportV2TaskSettingsS3]
|
|
26
29
|
attr_accessor :s3
|
|
@@ -32,6 +35,7 @@ module GetStream
|
|
|
32
35
|
@mode = attributes[:mode] || attributes['mode'] || nil
|
|
33
36
|
@path = attributes[:path] || attributes['path'] || nil
|
|
34
37
|
@skip_references_check = attributes[:skip_references_check] || attributes['skip_references_check'] || nil
|
|
38
|
+
@source = attributes[:source] || attributes['source'] || nil
|
|
35
39
|
@s3 = attributes[:s3] || attributes['s3'] || nil
|
|
36
40
|
end
|
|
37
41
|
|
|
@@ -42,6 +46,7 @@ module GetStream
|
|
|
42
46
|
mode: 'mode',
|
|
43
47
|
path: 'path',
|
|
44
48
|
skip_references_check: 'skip_references_check',
|
|
49
|
+
source: 'source',
|
|
45
50
|
s3: 's3'
|
|
46
51
|
}
|
|
47
52
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
# Request to insert a moderation action log entry
|
|
9
|
+
class InsertActionLogRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute action_type
|
|
13
|
+
# @return [String] Type of moderation action taken
|
|
14
|
+
attr_accessor :action_type
|
|
15
|
+
# @!attribute entity_creator_id
|
|
16
|
+
# @return [String] ID of the user who created the entity
|
|
17
|
+
attr_accessor :entity_creator_id
|
|
18
|
+
# @!attribute entity_id
|
|
19
|
+
# @return [String] ID of the entity the action was taken on
|
|
20
|
+
attr_accessor :entity_id
|
|
21
|
+
# @!attribute entity_type
|
|
22
|
+
# @return [String] Type of entity the action was taken on
|
|
23
|
+
attr_accessor :entity_type
|
|
24
|
+
# @!attribute reason
|
|
25
|
+
# @return [String] Reason for the action
|
|
26
|
+
attr_accessor :reason
|
|
27
|
+
# @!attribute custom
|
|
28
|
+
# @return [Object] Custom metadata for the action log
|
|
29
|
+
attr_accessor :custom
|
|
30
|
+
|
|
31
|
+
# Initialize with attributes
|
|
32
|
+
def initialize(attributes = {})
|
|
33
|
+
super(attributes)
|
|
34
|
+
@action_type = attributes[:action_type] || attributes['action_type']
|
|
35
|
+
@entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id']
|
|
36
|
+
@entity_id = attributes[:entity_id] || attributes['entity_id']
|
|
37
|
+
@entity_type = attributes[:entity_type] || attributes['entity_type']
|
|
38
|
+
@reason = attributes[:reason] || attributes['reason'] || nil
|
|
39
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Override field mappings for JSON serialization
|
|
43
|
+
def self.json_field_mappings
|
|
44
|
+
{
|
|
45
|
+
action_type: 'action_type',
|
|
46
|
+
entity_creator_id: 'entity_creator_id',
|
|
47
|
+
entity_id: 'entity_id',
|
|
48
|
+
entity_type: 'entity_type',
|
|
49
|
+
reason: 'reason',
|
|
50
|
+
custom: 'custom'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|