getstream-ruby 7.1.0 → 8.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/client.rb +11 -1
- data/lib/getstream_ruby/generated/chat_client.rb +57 -0
- data/lib/getstream_ruby/generated/common_client.rb +16 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +55 -0
- data/lib/getstream_ruby/generated/models/add_segment_targets_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/analyze_image_field.rb +56 -0
- data/lib/getstream_ruby/generated/models/analyze_request.rb +81 -0
- data/lib/getstream_ruby/generated/models/analyze_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/analyze_text_field.rb +56 -0
- data/lib/getstream_ruby/generated/models/app_response_fields.rb +15 -0
- data/lib/getstream_ruby/generated/models/appeal_item_response.rb +60 -0
- data/lib/getstream_ruby/generated/models/appeal_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/block_list_response.rb +10 -0
- data/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb +71 -0
- data/lib/getstream_ruby/generated/models/bulk_action_appeals_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/bulk_appeal_error.rb +36 -0
- data/lib/getstream_ruby/generated/models/bulk_appeal_result.rb +36 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +10 -0
- data/lib/getstream_ruby/generated/models/cancel_import_v2_task_request.rb +14 -0
- data/lib/getstream_ruby/generated/models/cancel_import_v2_task_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/channel_config_overrides.rb +106 -0
- data/lib/getstream_ruby/generated/models/channel_data_update.rb +1 -1
- data/lib/getstream_ruby/generated/models/channel_input.rb +1 -1
- data/lib/getstream_ruby/generated/models/chat_message_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/classification.rb +46 -0
- data/lib/getstream_ruby/generated/models/client_event.rb +156 -0
- data/lib/getstream_ruby/generated/models/closed_caption_rule_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/content_custom_property_count_parameters.rb +46 -0
- data/lib/getstream_ruby/generated/models/content_custom_property_parameters.rb +36 -0
- data/lib/getstream_ruby/generated/models/create_block_list_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/create_device_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/create_segment_request.rb +61 -0
- data/lib/getstream_ruby/generated/models/create_segment_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/delivery_receipts_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/device_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/filter_config_response.rb +9 -4
- data/lib/getstream_ruby/generated/models/flag_details.rb +36 -0
- data/lib/getstream_ruby/generated/models/flag_item_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/flag_response.rb +69 -9
- data/lib/getstream_ruby/generated/models/flood_config.rb +36 -0
- data/lib/getstream_ruby/generated/models/flood_identical_config.rb +46 -0
- data/lib/getstream_ruby/generated/models/flood_similar_config.rb +51 -0
- data/lib/getstream_ruby/generated/models/follow_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/get_or_create_feed_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/get_or_create_follow_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/get_or_create_unfollow_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_or_create_unfollow_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/get_setup_session_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_user_interests_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/grouped_channels_bucket.rb +10 -0
- data/lib/getstream_ruby/generated/models/grouped_channels_group_request.rb +41 -0
- data/lib/getstream_ruby/generated/models/grouped_query_channels_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +5 -0
- data/lib/getstream_ruby/generated/models/interest_tag_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/keyframe_ocr_rule_parameters.rb +41 -0
- data/lib/getstream_ruby/generated/models/keyframe_rule_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/label_result_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/labels_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/labels_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/llm_rule.rb +5 -5
- data/lib/getstream_ruby/generated/models/matched_content.rb +61 -0
- data/lib/getstream_ruby/generated/models/message_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/message_with_channel_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_ban_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/moderation_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +15 -0
- data/lib/getstream_ruby/generated/models/moderation_image_analysis_complete_event.rb +81 -0
- data/lib/getstream_ruby/generated/models/moderation_rules_triggered_event.rb +6 -1
- data/lib/getstream_ruby/generated/models/moderation_text_analysis_complete_event.rb +76 -0
- data/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +10 -0
- data/lib/getstream_ruby/generated/models/query_review_queue_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/read_receipts_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/report_client_event_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/report_client_event_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/rule_builder_action.rb +5 -0
- data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +15 -0
- data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
- data/lib/getstream_ruby/generated/models/setup_session.rb +56 -0
- data/lib/getstream_ruby/generated/models/submit_action_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/target_resolution.rb +6 -6
- data/lib/getstream_ruby/generated/models/text_content_parameters.rb +10 -0
- data/lib/getstream_ruby/generated/models/translation_settings.rb +2 -2
- data/lib/getstream_ruby/generated/models/typing_indicators_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/update_app_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/update_block_list_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/update_segment_request.rb +41 -0
- data/lib/getstream_ruby/generated/models/update_segment_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/upsert_config_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/upsert_setup_session_request.rb +41 -0
- data/lib/getstream_ruby/generated/models/upsert_setup_session_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/user_banned_event.rb +5 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +66 -2
- data/lib/getstream_ruby/generated/video_client.rb +17 -0
- data/lib/getstream_ruby/generated/webhook.rb +8 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +44 -2
|
@@ -16,7 +16,7 @@ module GetStream
|
|
|
16
16
|
# Initialize with attributes
|
|
17
17
|
def initialize(attributes = {})
|
|
18
18
|
super(attributes)
|
|
19
|
-
@enabled = attributes[:enabled] || attributes['enabled']
|
|
19
|
+
@enabled = attributes[:enabled] || attributes['enabled']
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# Override field mappings for JSON serialization
|
|
@@ -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
|
+
# Reports a batch of client-side telemetry events. Each event is validated and processed independently; one invalid event does not block the rest of the batch.
|
|
9
|
+
class ReportClientEventRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute events
|
|
13
|
+
# @return [Array<ClientEvent>] Client-side events to report (1-100 per request)
|
|
14
|
+
attr_accessor :events
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@events = attributes[:events] || attributes['events']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
events: 'events'
|
|
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
|
+
# Response for reporting client-side telemetry events
|
|
9
|
+
class ReportClientEventResponse < 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 RuleBuilderAction < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute reason
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :reason
|
|
12
15
|
# @!attribute skip_inbox
|
|
13
16
|
# @return [Boolean]
|
|
14
17
|
attr_accessor :skip_inbox
|
|
@@ -28,6 +31,7 @@ module GetStream
|
|
|
28
31
|
# Initialize with attributes
|
|
29
32
|
def initialize(attributes = {})
|
|
30
33
|
super(attributes)
|
|
34
|
+
@reason = attributes[:reason] || attributes['reason'] || nil
|
|
31
35
|
@skip_inbox = attributes[:skip_inbox] || attributes['skip_inbox'] || nil
|
|
32
36
|
@type = attributes[:type] || attributes['type'] || nil
|
|
33
37
|
@ban_options = attributes[:ban_options] || attributes['ban_options'] || nil
|
|
@@ -38,6 +42,7 @@ module GetStream
|
|
|
38
42
|
# Override field mappings for JSON serialization
|
|
39
43
|
def self.json_field_mappings
|
|
40
44
|
{
|
|
45
|
+
reason: 'reason',
|
|
41
46
|
skip_inbox: 'skip_inbox',
|
|
42
47
|
type: 'type',
|
|
43
48
|
ban_options: 'ban_options',
|
|
@@ -33,6 +33,12 @@ module GetStream
|
|
|
33
33
|
# @!attribute content_count_rule_params
|
|
34
34
|
# @return [ContentCountRuleParameters]
|
|
35
35
|
attr_accessor :content_count_rule_params
|
|
36
|
+
# @!attribute content_custom_property_count_params
|
|
37
|
+
# @return [ContentCustomPropertyCountParameters]
|
|
38
|
+
attr_accessor :content_custom_property_count_params
|
|
39
|
+
# @!attribute content_custom_property_params
|
|
40
|
+
# @return [ContentCustomPropertyParameters]
|
|
41
|
+
attr_accessor :content_custom_property_params
|
|
36
42
|
# @!attribute content_flag_count_rule_params
|
|
37
43
|
# @return [FlagCountRuleParameters]
|
|
38
44
|
attr_accessor :content_flag_count_rule_params
|
|
@@ -42,6 +48,9 @@ module GetStream
|
|
|
42
48
|
# @!attribute image_rule_params
|
|
43
49
|
# @return [ImageRuleParameters]
|
|
44
50
|
attr_accessor :image_rule_params
|
|
51
|
+
# @!attribute keyframe_ocr_rule_params
|
|
52
|
+
# @return [KeyframeOCRRuleParameters]
|
|
53
|
+
attr_accessor :keyframe_ocr_rule_params
|
|
45
54
|
# @!attribute keyframe_rule_params
|
|
46
55
|
# @return [KeyframeRuleParameters]
|
|
47
56
|
attr_accessor :keyframe_rule_params
|
|
@@ -87,9 +96,12 @@ module GetStream
|
|
|
87
96
|
@channel_message_count_rule_params = attributes[:channel_message_count_rule_params] || attributes['channel_message_count_rule_params'] || nil
|
|
88
97
|
@closed_caption_rule_params = attributes[:closed_caption_rule_params] || attributes['closed_caption_rule_params'] || nil
|
|
89
98
|
@content_count_rule_params = attributes[:content_count_rule_params] || attributes['content_count_rule_params'] || nil
|
|
99
|
+
@content_custom_property_count_params = attributes[:content_custom_property_count_params] || attributes['content_custom_property_count_params'] || nil
|
|
100
|
+
@content_custom_property_params = attributes[:content_custom_property_params] || attributes['content_custom_property_params'] || nil
|
|
90
101
|
@content_flag_count_rule_params = attributes[:content_flag_count_rule_params] || attributes['content_flag_count_rule_params'] || nil
|
|
91
102
|
@image_content_params = attributes[:image_content_params] || attributes['image_content_params'] || nil
|
|
92
103
|
@image_rule_params = attributes[:image_rule_params] || attributes['image_rule_params'] || nil
|
|
104
|
+
@keyframe_ocr_rule_params = attributes[:keyframe_ocr_rule_params] || attributes['keyframe_ocr_rule_params'] || nil
|
|
93
105
|
@keyframe_rule_params = attributes[:keyframe_rule_params] || attributes['keyframe_rule_params'] || nil
|
|
94
106
|
@text_content_params = attributes[:text_content_params] || attributes['text_content_params'] || nil
|
|
95
107
|
@text_rule_params = attributes[:text_rule_params] || attributes['text_rule_params'] || nil
|
|
@@ -114,9 +126,12 @@ module GetStream
|
|
|
114
126
|
channel_message_count_rule_params: 'channel_message_count_rule_params',
|
|
115
127
|
closed_caption_rule_params: 'closed_caption_rule_params',
|
|
116
128
|
content_count_rule_params: 'content_count_rule_params',
|
|
129
|
+
content_custom_property_count_params: 'content_custom_property_count_params',
|
|
130
|
+
content_custom_property_params: 'content_custom_property_params',
|
|
117
131
|
content_flag_count_rule_params: 'content_flag_count_rule_params',
|
|
118
132
|
image_content_params: 'image_content_params',
|
|
119
133
|
image_rule_params: 'image_rule_params',
|
|
134
|
+
keyframe_ocr_rule_params: 'keyframe_ocr_rule_params',
|
|
120
135
|
keyframe_rule_params: 'keyframe_rule_params',
|
|
121
136
|
text_content_params: 'text_content_params',
|
|
122
137
|
text_rule_params: 'text_rule_params',
|
|
@@ -114,6 +114,9 @@ module GetStream
|
|
|
114
114
|
# @!attribute mentioned_group_ids
|
|
115
115
|
# @return [Array<String>]
|
|
116
116
|
attr_accessor :mentioned_group_ids
|
|
117
|
+
# @!attribute mentioned_groups
|
|
118
|
+
# @return [Array<UserGroupResponse>]
|
|
119
|
+
attr_accessor :mentioned_groups
|
|
117
120
|
# @!attribute mentioned_roles
|
|
118
121
|
# @return [Array<String>]
|
|
119
122
|
attr_accessor :mentioned_roles
|
|
@@ -195,6 +198,7 @@ module GetStream
|
|
|
195
198
|
@quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil
|
|
196
199
|
@show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil
|
|
197
200
|
@mentioned_group_ids = attributes[:mentioned_group_ids] || attributes['mentioned_group_ids'] || nil
|
|
201
|
+
@mentioned_groups = attributes[:mentioned_groups] || attributes['mentioned_groups'] || nil
|
|
198
202
|
@mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil
|
|
199
203
|
@thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil
|
|
200
204
|
@channel = attributes[:channel] || attributes['channel'] || nil
|
|
@@ -249,6 +253,7 @@ module GetStream
|
|
|
249
253
|
quoted_message_id: 'quoted_message_id',
|
|
250
254
|
show_in_channel: 'show_in_channel',
|
|
251
255
|
mentioned_group_ids: 'mentioned_group_ids',
|
|
256
|
+
mentioned_groups: 'mentioned_groups',
|
|
252
257
|
mentioned_roles: 'mentioned_roles',
|
|
253
258
|
thread_participants: 'thread_participants',
|
|
254
259
|
channel: 'channel',
|
|
@@ -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
|
+
#
|
|
9
|
+
class SetupSession < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime]
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute current_step
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :current_step
|
|
18
|
+
# @!attribute status
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :status
|
|
21
|
+
# @!attribute updated_at
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :updated_at
|
|
24
|
+
# @!attribute setup_data
|
|
25
|
+
# @return [Object]
|
|
26
|
+
attr_accessor :setup_data
|
|
27
|
+
# @!attribute completed_at
|
|
28
|
+
# @return [DateTime]
|
|
29
|
+
attr_accessor :completed_at
|
|
30
|
+
|
|
31
|
+
# Initialize with attributes
|
|
32
|
+
def initialize(attributes = {})
|
|
33
|
+
super(attributes)
|
|
34
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
35
|
+
@current_step = attributes[:current_step] || attributes['current_step']
|
|
36
|
+
@status = attributes[:status] || attributes['status']
|
|
37
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
38
|
+
@setup_data = attributes[:setup_data] || attributes['setup_data']
|
|
39
|
+
@completed_at = attributes[:completed_at] || attributes['completed_at'] || nil
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Override field mappings for JSON serialization
|
|
43
|
+
def self.json_field_mappings
|
|
44
|
+
{
|
|
45
|
+
created_at: 'created_at',
|
|
46
|
+
current_step: 'current_step',
|
|
47
|
+
status: 'status',
|
|
48
|
+
updated_at: 'updated_at',
|
|
49
|
+
setup_data: 'setup_data',
|
|
50
|
+
completed_at: 'completed_at'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute duration
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :duration
|
|
15
|
+
# @!attribute auto_restore_warning
|
|
16
|
+
# @return [String] Present when the appeal was accepted but the entity could not be restored automatically. The moderator should restore it manually.
|
|
17
|
+
attr_accessor :auto_restore_warning
|
|
15
18
|
# @!attribute appeal_item
|
|
16
19
|
# @return [AppealItemResponse]
|
|
17
20
|
attr_accessor :appeal_item
|
|
@@ -23,6 +26,7 @@ module GetStream
|
|
|
23
26
|
def initialize(attributes = {})
|
|
24
27
|
super(attributes)
|
|
25
28
|
@duration = attributes[:duration] || attributes['duration']
|
|
29
|
+
@auto_restore_warning = attributes[:auto_restore_warning] || attributes['auto_restore_warning'] || nil
|
|
26
30
|
@appeal_item = attributes[:appeal_item] || attributes['appeal_item'] || nil
|
|
27
31
|
@item = attributes[:item] || attributes['item'] || nil
|
|
28
32
|
end
|
|
@@ -31,6 +35,7 @@ module GetStream
|
|
|
31
35
|
def self.json_field_mappings
|
|
32
36
|
{
|
|
33
37
|
duration: 'duration',
|
|
38
|
+
auto_restore_warning: 'auto_restore_warning',
|
|
34
39
|
appeal_item: 'appeal_item',
|
|
35
40
|
item: 'item'
|
|
36
41
|
}
|
|
@@ -9,30 +9,30 @@ module GetStream
|
|
|
9
9
|
class TargetResolution < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
-
# @!attribute bitrate
|
|
13
|
-
# @return [Integer]
|
|
14
|
-
attr_accessor :bitrate
|
|
15
12
|
# @!attribute height
|
|
16
13
|
# @return [Integer]
|
|
17
14
|
attr_accessor :height
|
|
18
15
|
# @!attribute width
|
|
19
16
|
# @return [Integer]
|
|
20
17
|
attr_accessor :width
|
|
18
|
+
# @!attribute bitrate
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
attr_accessor :bitrate
|
|
21
21
|
|
|
22
22
|
# Initialize with attributes
|
|
23
23
|
def initialize(attributes = {})
|
|
24
24
|
super(attributes)
|
|
25
|
-
@bitrate = attributes[:bitrate] || attributes['bitrate']
|
|
26
25
|
@height = attributes[:height] || attributes['height']
|
|
27
26
|
@width = attributes[:width] || attributes['width']
|
|
27
|
+
@bitrate = attributes[:bitrate] || attributes['bitrate'] || nil
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# Override field mappings for JSON serialization
|
|
31
31
|
def self.json_field_mappings
|
|
32
32
|
{
|
|
33
|
-
bitrate: 'bitrate',
|
|
34
33
|
height: 'height',
|
|
35
|
-
width: 'width'
|
|
34
|
+
width: 'width',
|
|
35
|
+
bitrate: 'bitrate'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -18,6 +18,12 @@ module GetStream
|
|
|
18
18
|
# @!attribute severity
|
|
19
19
|
# @return [String]
|
|
20
20
|
attr_accessor :severity
|
|
21
|
+
# @!attribute text_length
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
attr_accessor :text_length
|
|
24
|
+
# @!attribute text_length_operator
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :text_length_operator
|
|
21
27
|
# @!attribute blocklist_match
|
|
22
28
|
# @return [Array<String>]
|
|
23
29
|
attr_accessor :blocklist_match
|
|
@@ -34,6 +40,8 @@ module GetStream
|
|
|
34
40
|
@contains_url = attributes[:contains_url] || attributes['contains_url'] || nil
|
|
35
41
|
@label_operator = attributes[:label_operator] || attributes['label_operator'] || nil
|
|
36
42
|
@severity = attributes[:severity] || attributes['severity'] || nil
|
|
43
|
+
@text_length = attributes[:text_length] || attributes['text_length'] || nil
|
|
44
|
+
@text_length_operator = attributes[:text_length_operator] || attributes['text_length_operator'] || nil
|
|
37
45
|
@blocklist_match = attributes[:blocklist_match] || attributes['blocklist_match'] || nil
|
|
38
46
|
@harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
|
|
39
47
|
@llm_harm_labels = attributes[:llm_harm_labels] || attributes['llm_harm_labels'] || nil
|
|
@@ -45,6 +53,8 @@ module GetStream
|
|
|
45
53
|
contains_url: 'contains_url',
|
|
46
54
|
label_operator: 'label_operator',
|
|
47
55
|
severity: 'severity',
|
|
56
|
+
text_length: 'text_length',
|
|
57
|
+
text_length_operator: 'text_length_operator',
|
|
48
58
|
blocklist_match: 'blocklist_match',
|
|
49
59
|
harm_labels: 'harm_labels',
|
|
50
60
|
llm_harm_labels: 'llm_harm_labels'
|
|
@@ -19,8 +19,8 @@ module GetStream
|
|
|
19
19
|
# Initialize with attributes
|
|
20
20
|
def initialize(attributes = {})
|
|
21
21
|
super(attributes)
|
|
22
|
-
@enabled = attributes[:enabled] || attributes['enabled']
|
|
23
|
-
@languages = attributes[:languages] || attributes['languages']
|
|
22
|
+
@enabled = attributes[:enabled] || attributes['enabled'] || nil
|
|
23
|
+
@languages = attributes[:languages] || attributes['languages'] || nil
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
# Override field mappings for JSON serialization
|
|
@@ -16,7 +16,7 @@ module GetStream
|
|
|
16
16
|
# Initialize with attributes
|
|
17
17
|
def initialize(attributes = {})
|
|
18
18
|
super(attributes)
|
|
19
|
-
@enabled = attributes[:enabled] || attributes['enabled']
|
|
19
|
+
@enabled = attributes[:enabled] || attributes['enabled']
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# Override field mappings for JSON serialization
|
|
@@ -15,6 +15,9 @@ module GetStream
|
|
|
15
15
|
# @!attribute auto_translation_enabled
|
|
16
16
|
# @return [Boolean]
|
|
17
17
|
attr_accessor :auto_translation_enabled
|
|
18
|
+
# @!attribute before_message_send_hook_attempt_timeout_ms
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
attr_accessor :before_message_send_hook_attempt_timeout_ms
|
|
18
21
|
# @!attribute before_message_send_hook_url
|
|
19
22
|
# @return [String]
|
|
20
23
|
attr_accessor :before_message_send_hook_url
|
|
@@ -63,6 +66,9 @@ module GetStream
|
|
|
63
66
|
# @!attribute moderation_enabled
|
|
64
67
|
# @return [Boolean]
|
|
65
68
|
attr_accessor :moderation_enabled
|
|
69
|
+
# @!attribute moderation_onboarding_complete
|
|
70
|
+
# @return [Boolean]
|
|
71
|
+
attr_accessor :moderation_onboarding_complete
|
|
66
72
|
# @!attribute moderation_s3_image_access_role_arn
|
|
67
73
|
# @return [String]
|
|
68
74
|
attr_accessor :moderation_s3_image_access_role_arn
|
|
@@ -105,6 +111,9 @@ module GetStream
|
|
|
105
111
|
# @!attribute user_response_time_enabled
|
|
106
112
|
# @return [Boolean]
|
|
107
113
|
attr_accessor :user_response_time_enabled
|
|
114
|
+
# @!attribute video_primary_use_case
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :video_primary_use_case
|
|
108
117
|
# @!attribute webhook_url
|
|
109
118
|
# @return [String]
|
|
110
119
|
attr_accessor :webhook_url
|
|
@@ -168,6 +177,7 @@ module GetStream
|
|
|
168
177
|
super(attributes)
|
|
169
178
|
@async_url_enrich_enabled = attributes[:async_url_enrich_enabled] || attributes['async_url_enrich_enabled'] || nil
|
|
170
179
|
@auto_translation_enabled = attributes[:auto_translation_enabled] || attributes['auto_translation_enabled'] || nil
|
|
180
|
+
@before_message_send_hook_attempt_timeout_ms = attributes[:before_message_send_hook_attempt_timeout_ms] || attributes['before_message_send_hook_attempt_timeout_ms'] || nil
|
|
171
181
|
@before_message_send_hook_url = attributes[:before_message_send_hook_url] || attributes['before_message_send_hook_url'] || nil
|
|
172
182
|
@cdn_expiration_seconds = attributes[:cdn_expiration_seconds] || attributes['cdn_expiration_seconds'] || nil
|
|
173
183
|
@channel_hide_members_only = attributes[:channel_hide_members_only] || attributes['channel_hide_members_only'] || nil
|
|
@@ -184,6 +194,7 @@ module GetStream
|
|
|
184
194
|
@migrate_permissions_to_v2 = attributes[:migrate_permissions_to_v2] || attributes['migrate_permissions_to_v2'] || nil
|
|
185
195
|
@moderation_analytics_enabled = attributes[:moderation_analytics_enabled] || attributes['moderation_analytics_enabled'] || nil
|
|
186
196
|
@moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled'] || nil
|
|
197
|
+
@moderation_onboarding_complete = attributes[:moderation_onboarding_complete] || attributes['moderation_onboarding_complete'] || nil
|
|
187
198
|
@moderation_s3_image_access_role_arn = attributes[:moderation_s3_image_access_role_arn] || attributes['moderation_s3_image_access_role_arn'] || nil
|
|
188
199
|
@moderation_webhook_url = attributes[:moderation_webhook_url] || attributes['moderation_webhook_url'] || nil
|
|
189
200
|
@multi_tenant_enabled = attributes[:multi_tenant_enabled] || attributes['multi_tenant_enabled'] || nil
|
|
@@ -198,6 +209,7 @@ module GetStream
|
|
|
198
209
|
@sqs_secret = attributes[:sqs_secret] || attributes['sqs_secret'] || nil
|
|
199
210
|
@sqs_url = attributes[:sqs_url] || attributes['sqs_url'] || nil
|
|
200
211
|
@user_response_time_enabled = attributes[:user_response_time_enabled] || attributes['user_response_time_enabled'] || nil
|
|
212
|
+
@video_primary_use_case = attributes[:video_primary_use_case] || attributes['video_primary_use_case'] || nil
|
|
201
213
|
@webhook_url = attributes[:webhook_url] || attributes['webhook_url'] || nil
|
|
202
214
|
@allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
|
|
203
215
|
@event_hooks = attributes[:event_hooks] || attributes['event_hooks'] || nil
|
|
@@ -224,6 +236,7 @@ module GetStream
|
|
|
224
236
|
{
|
|
225
237
|
async_url_enrich_enabled: 'async_url_enrich_enabled',
|
|
226
238
|
auto_translation_enabled: 'auto_translation_enabled',
|
|
239
|
+
before_message_send_hook_attempt_timeout_ms: 'before_message_send_hook_attempt_timeout_ms',
|
|
227
240
|
before_message_send_hook_url: 'before_message_send_hook_url',
|
|
228
241
|
cdn_expiration_seconds: 'cdn_expiration_seconds',
|
|
229
242
|
channel_hide_members_only: 'channel_hide_members_only',
|
|
@@ -240,6 +253,7 @@ module GetStream
|
|
|
240
253
|
migrate_permissions_to_v2: 'migrate_permissions_to_v2',
|
|
241
254
|
moderation_analytics_enabled: 'moderation_analytics_enabled',
|
|
242
255
|
moderation_enabled: 'moderation_enabled',
|
|
256
|
+
moderation_onboarding_complete: 'moderation_onboarding_complete',
|
|
243
257
|
moderation_s3_image_access_role_arn: 'moderation_s3_image_access_role_arn',
|
|
244
258
|
moderation_webhook_url: 'moderation_webhook_url',
|
|
245
259
|
multi_tenant_enabled: 'multi_tenant_enabled',
|
|
@@ -254,6 +268,7 @@ module GetStream
|
|
|
254
268
|
sqs_secret: 'sqs_secret',
|
|
255
269
|
sqs_url: 'sqs_url',
|
|
256
270
|
user_response_time_enabled: 'user_response_time_enabled',
|
|
271
|
+
video_primary_use_case: 'video_primary_use_case',
|
|
257
272
|
webhook_url: 'webhook_url',
|
|
258
273
|
allowed_flag_reasons: 'allowed_flag_reasons',
|
|
259
274
|
event_hooks: 'event_hooks',
|
|
@@ -9,12 +9,18 @@ module GetStream
|
|
|
9
9
|
class UpdateBlockListRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute is_confusable_folding_enabled
|
|
13
|
+
# @return [Boolean]
|
|
14
|
+
attr_accessor :is_confusable_folding_enabled
|
|
12
15
|
# @!attribute is_leet_check_enabled
|
|
13
16
|
# @return [Boolean]
|
|
14
17
|
attr_accessor :is_leet_check_enabled
|
|
15
18
|
# @!attribute is_plural_check_enabled
|
|
16
19
|
# @return [Boolean]
|
|
17
20
|
attr_accessor :is_plural_check_enabled
|
|
21
|
+
# @!attribute is_substring_matching_enabled
|
|
22
|
+
# @return [Boolean]
|
|
23
|
+
attr_accessor :is_substring_matching_enabled
|
|
18
24
|
# @!attribute team
|
|
19
25
|
# @return [String]
|
|
20
26
|
attr_accessor :team
|
|
@@ -25,8 +31,10 @@ module GetStream
|
|
|
25
31
|
# Initialize with attributes
|
|
26
32
|
def initialize(attributes = {})
|
|
27
33
|
super(attributes)
|
|
34
|
+
@is_confusable_folding_enabled = attributes[:is_confusable_folding_enabled] || attributes['is_confusable_folding_enabled'] || nil
|
|
28
35
|
@is_leet_check_enabled = attributes[:is_leet_check_enabled] || attributes['is_leet_check_enabled'] || nil
|
|
29
36
|
@is_plural_check_enabled = attributes[:is_plural_check_enabled] || attributes['is_plural_check_enabled'] || nil
|
|
37
|
+
@is_substring_matching_enabled = attributes[:is_substring_matching_enabled] || attributes['is_substring_matching_enabled'] || nil
|
|
30
38
|
@team = attributes[:team] || attributes['team'] || nil
|
|
31
39
|
@words = attributes[:words] || attributes['words'] || nil
|
|
32
40
|
end
|
|
@@ -34,8 +42,10 @@ module GetStream
|
|
|
34
42
|
# Override field mappings for JSON serialization
|
|
35
43
|
def self.json_field_mappings
|
|
36
44
|
{
|
|
45
|
+
is_confusable_folding_enabled: 'is_confusable_folding_enabled',
|
|
37
46
|
is_leet_check_enabled: 'is_leet_check_enabled',
|
|
38
47
|
is_plural_check_enabled: 'is_plural_check_enabled',
|
|
48
|
+
is_substring_matching_enabled: 'is_substring_matching_enabled',
|
|
39
49
|
team: 'team',
|
|
40
50
|
words: 'words'
|
|
41
51
|
}
|
|
@@ -26,7 +26,7 @@ module GetStream
|
|
|
26
26
|
# @return [Boolean] Whether to create a notification activity for this follow
|
|
27
27
|
attr_accessor :create_notification_activity
|
|
28
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.
|
|
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. Use directly on single follow endpoints (Follow, GetOrCreateFollow). On batch endpoints (FollowBatch, GetOrCreateFollows), use the top-level create_users field; per-item follows[i].create_users is rejected.
|
|
30
30
|
attr_accessor :create_users
|
|
31
31
|
# @!attribute enrich_own_fields
|
|
32
32
|
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
@@ -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 UpdateSegmentRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute description
|
|
13
|
+
# @return [String] The description of the segment (max 256 characters)
|
|
14
|
+
attr_accessor :description
|
|
15
|
+
# @!attribute name
|
|
16
|
+
# @return [String] The name of the segment (max 128 characters)
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
# @!attribute filter
|
|
19
|
+
# @return [Object] Filter to apply to the query
|
|
20
|
+
attr_accessor :filter
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
26
|
+
@name = attributes[:name] || attributes['name'] || nil
|
|
27
|
+
@filter = attributes[:filter] || attributes['filter'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
description: 'description',
|
|
34
|
+
name: 'name',
|
|
35
|
+
filter: 'filter'
|
|
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 UpdateSegmentResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute segment
|
|
16
|
+
# @return [SegmentResponse]
|
|
17
|
+
attr_accessor :segment
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@segment = attributes[:segment] || attributes['segment']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
segment: 'segment'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -48,6 +48,9 @@ module GetStream
|
|
|
48
48
|
# @!attribute bodyguard_config
|
|
49
49
|
# @return [AITextConfig]
|
|
50
50
|
attr_accessor :bodyguard_config
|
|
51
|
+
# @!attribute flood_config
|
|
52
|
+
# @return [FloodConfig]
|
|
53
|
+
attr_accessor :flood_config
|
|
51
54
|
# @!attribute google_vision_config
|
|
52
55
|
# @return [GoogleVisionConfig]
|
|
53
56
|
attr_accessor :google_vision_config
|
|
@@ -83,6 +86,7 @@ module GetStream
|
|
|
83
86
|
@aws_rekognition_config = attributes[:aws_rekognition_config] || attributes['aws_rekognition_config'] || nil
|
|
84
87
|
@block_list_config = attributes[:block_list_config] || attributes['block_list_config'] || nil
|
|
85
88
|
@bodyguard_config = attributes[:bodyguard_config] || attributes['bodyguard_config'] || nil
|
|
89
|
+
@flood_config = attributes[:flood_config] || attributes['flood_config'] || nil
|
|
86
90
|
@google_vision_config = attributes[:google_vision_config] || attributes['google_vision_config'] || nil
|
|
87
91
|
@llm_config = attributes[:llm_config] || attributes['llm_config'] || nil
|
|
88
92
|
@rule_builder_config = attributes[:rule_builder_config] || attributes['rule_builder_config'] || nil
|
|
@@ -107,6 +111,7 @@ module GetStream
|
|
|
107
111
|
aws_rekognition_config: 'aws_rekognition_config',
|
|
108
112
|
block_list_config: 'block_list_config',
|
|
109
113
|
bodyguard_config: 'bodyguard_config',
|
|
114
|
+
flood_config: 'flood_config',
|
|
110
115
|
google_vision_config: 'google_vision_config',
|
|
111
116
|
llm_config: 'llm_config',
|
|
112
117
|
rule_builder_config: 'rule_builder_config',
|
|
@@ -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 UpsertSetupSessionRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute current_step
|
|
13
|
+
# @return [String] The current step of the setup wizard. One of: welcome, input, configure, live
|
|
14
|
+
attr_accessor :current_step
|
|
15
|
+
# @!attribute status
|
|
16
|
+
# @return [String] The status of the setup session. One of: in_progress, completed
|
|
17
|
+
attr_accessor :status
|
|
18
|
+
# @!attribute setup_data
|
|
19
|
+
# @return [Object] Per-step data keyed by step name (welcome, input, configure, live)
|
|
20
|
+
attr_accessor :setup_data
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@current_step = attributes[:current_step] || attributes['current_step']
|
|
26
|
+
@status = attributes[:status] || attributes['status']
|
|
27
|
+
@setup_data = attributes[:setup_data] || attributes['setup_data'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
current_step: 'current_step',
|
|
34
|
+
status: 'status',
|
|
35
|
+
setup_data: 'setup_data'
|
|
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 UpsertSetupSessionResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute setup_session
|
|
16
|
+
# @return [SetupSession]
|
|
17
|
+
attr_accessor :setup_session
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@setup_session = attributes[:setup_session] || attributes['setup_session'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
setup_session: 'setup_session'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|