getstream-ruby 6.0.0 → 6.1.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/README.md +15 -0
- data/lib/getstream_ruby/generated/chat_client.rb +70 -0
- data/lib/getstream_ruby/generated/feed.rb +10 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +41 -2
- data/lib/getstream_ruby/generated/models/action_log_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/{coordinates.rb → activity_filter_config.rb} +6 -11
- data/lib/getstream_ruby/generated/models/activity_selector_config.rb +1 -1
- data/lib/getstream_ruby/generated/models/activity_selector_config_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/app_response_fields.rb +5 -0
- data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/{delete_moderation_template_request.rb → bodyguard_profile_summary.rb} +8 -3
- data/lib/getstream_ruby/generated/models/{delete_bookmark_folder_request.rb → bulk_delete_action_config_request.rb} +6 -1
- data/lib/getstream_ruby/generated/models/{block_action_request.rb → bulk_delete_action_config_response.rb} +10 -5
- data/lib/getstream_ruby/generated/models/bulk_upsert_action_config_request.rb +41 -0
- data/lib/getstream_ruby/generated/models/bulk_upsert_action_config_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_session.rb +5 -0
- data/lib/getstream_ruby/generated/models/campaign_channel_template.rb +6 -6
- data/lib/getstream_ruby/generated/models/campaign_message_template.rb +8 -8
- data/lib/getstream_ruby/generated/models/change_feed_visibility_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/{reject_appeal_request.rb → change_feed_visibility_response.rb} +10 -5
- data/lib/getstream_ruby/generated/models/{custom_action_request.rb → channel_message_count_rule_parameters.rb} +10 -10
- data/lib/getstream_ruby/generated/models/{message.rb → chat_message_response.rb} +23 -58
- data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/create_campaign_request.rb +96 -0
- data/lib/getstream_ruby/generated/models/create_campaign_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/create_feed_group_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/{any_event.rb → delete_action_config_response.rb} +10 -10
- data/lib/getstream_ruby/generated/models/{delivery_receipts.rb → delete_campaign_response.rb} +7 -7
- data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
- data/lib/getstream_ruby/generated/models/error_result.rb +5 -0
- data/lib/getstream_ruby/generated/models/event_hook.rb +6 -1
- data/lib/getstream_ruby/generated/models/feed_group.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_group_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/get_action_config_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/grouped_channels_bucket.rb +36 -0
- data/lib/getstream_ruby/generated/models/{delete_collections_request.rb → grouped_query_channels_request.rb} +6 -1
- data/lib/getstream_ruby/generated/models/grouped_query_channels_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/label_result_response.rb +101 -0
- data/lib/getstream_ruby/generated/models/labels_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/labels_response.rb +71 -0
- data/lib/getstream_ruby/generated/models/message_new_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +5 -0
- data/lib/getstream_ruby/generated/models/notification_mark_unread_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_label_results_request.rb +61 -0
- data/lib/getstream_ruby/generated/models/query_label_results_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/query_review_queue_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_review_queue_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_revision_history_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/query_revision_history_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/revision_history_response.rb +66 -0
- data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_campaign_request.rb +96 -0
- data/lib/getstream_ruby/generated/models/update_feed_group_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/{moderation_action_config.rb → upsert_action_config_item.rb} +22 -12
- data/lib/getstream_ruby/generated/models/upsert_action_config_request.rb +76 -0
- data/lib/getstream_ruby/generated/models/upsert_action_config_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/webhook_failover_config.rb +46 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +132 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +33 -94
- data/lib/getstream_ruby/generated/models/activity_location.rb +0 -36
- data/lib/getstream_ruby/generated/models/activity_marked_event.rb +0 -66
- data/lib/getstream_ruby/generated/models/automod_details.rb +0 -51
- data/lib/getstream_ruby/generated/models/ban.rb +0 -61
- data/lib/getstream_ruby/generated/models/ban_action_request.rb +0 -56
- data/lib/getstream_ruby/generated/models/channel.rb +0 -161
- data/lib/getstream_ruby/generated/models/channel_batch_updated_completed_event.rb +0 -81
- data/lib/getstream_ruby/generated/models/channel_batch_updated_started_event.rb +0 -81
- data/lib/getstream_ruby/generated/models/channel_member.rb +0 -141
- data/lib/getstream_ruby/generated/models/channel_member_lookup.rb +0 -66
- data/lib/getstream_ruby/generated/models/channel_messages.rb +0 -36
- data/lib/getstream_ruby/generated/models/channel_push_preferences.rb +0 -36
- data/lib/getstream_ruby/generated/models/config_overrides.rb +0 -96
- data/lib/getstream_ruby/generated/models/delete_activity_reaction_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_activity_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_block_list_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_bookmark_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_call_type_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_channel_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_command_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_comment_reaction_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_comment_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_custom_role_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_device_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_draft_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_external_storage_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_feed_group_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_feed_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_feed_view_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_import_v2_task_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_membership_level_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_message_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_moderation_config_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_poll_option_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_poll_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_poll_vote_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_push_provider_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_reaction_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_recording_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_reminder_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_segment_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_sip_inbound_routing_rule_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_sip_trunk_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_transcription_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_user_group_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/delete_user_request.rb +0 -51
- data/lib/getstream_ruby/generated/models/denormalized_channel_fields.rb +0 -81
- data/lib/getstream_ruby/generated/models/device.rb +0 -66
- data/lib/getstream_ruby/generated/models/feeds_moderation_template_config.rb +0 -36
- data/lib/getstream_ruby/generated/models/file_delete_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/flag.rb +0 -96
- data/lib/getstream_ruby/generated/models/flag_details.rb +0 -41
- data/lib/getstream_ruby/generated/models/flag_feedback.rb +0 -41
- data/lib/getstream_ruby/generated/models/flag_message_details.rb +0 -46
- data/lib/getstream_ruby/generated/models/follow_pair.rb +0 -36
- data/lib/getstream_ruby/generated/models/get_channel_type_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/label.rb +0 -41
- data/lib/getstream_ruby/generated/models/limit_info.rb +0 -41
- data/lib/getstream_ruby/generated/models/mark_reviewed_request.rb +0 -41
- data/lib/getstream_ruby/generated/models/message_reminder.rb +0 -76
- data/lib/getstream_ruby/generated/models/own_user.rb +0 -166
- data/lib/getstream_ruby/generated/models/poll.rb +0 -131
- data/lib/getstream_ruby/generated/models/poll_option.rb +0 -41
- data/lib/getstream_ruby/generated/models/poll_vote.rb +0 -71
- data/lib/getstream_ruby/generated/models/privacy_settings.rb +0 -41
- data/lib/getstream_ruby/generated/models/push_preferences.rb +0 -51
- data/lib/getstream_ruby/generated/models/read_receipts.rb +0 -31
- data/lib/getstream_ruby/generated/models/restore_action_request.rb +0 -31
- data/lib/getstream_ruby/generated/models/retention_cleanup_run.rb +0 -76
- data/lib/getstream_ruby/generated/models/shadow_block_action_request.rb +0 -31
- data/lib/getstream_ruby/generated/models/sip_challenge.rb +0 -106
- data/lib/getstream_ruby/generated/models/sort_param.rb +0 -41
- data/lib/getstream_ruby/generated/models/typing_indicators.rb +0 -31
- data/lib/getstream_ruby/generated/models/unban_action_request.rb +0 -31
- data/lib/getstream_ruby/generated/models/unblock_action_request.rb +0 -31
- data/lib/getstream_ruby/generated/models/unfollow_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/unpin_activity_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/user_mute.rb +0 -51
- data/lib/getstream_ruby/generated/models/video_end_call_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/video_kick_user_request.rb +0 -14
- data/lib/getstream_ruby/generated/models/webhook_event.rb +0 -31
|
@@ -27,6 +27,9 @@ module GetStream
|
|
|
27
27
|
# @!attribute prev
|
|
28
28
|
# @return [String]
|
|
29
29
|
attr_accessor :prev
|
|
30
|
+
# @!attribute default_action_config
|
|
31
|
+
# @return [Hash<String, Array<ModerationActionConfigResponse>>]
|
|
32
|
+
attr_accessor :default_action_config
|
|
30
33
|
# @!attribute filter_config
|
|
31
34
|
# @return [FilterConfigResponse]
|
|
32
35
|
attr_accessor :filter_config
|
|
@@ -40,6 +43,7 @@ module GetStream
|
|
|
40
43
|
@stats = attributes[:stats] || attributes['stats']
|
|
41
44
|
@next = attributes[:next] || attributes['next'] || nil
|
|
42
45
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
46
|
+
@default_action_config = attributes[:default_action_config] || attributes['default_action_config'] || nil
|
|
43
47
|
@filter_config = attributes[:filter_config] || attributes['filter_config'] || nil
|
|
44
48
|
end
|
|
45
49
|
|
|
@@ -52,6 +56,7 @@ module GetStream
|
|
|
52
56
|
stats: 'stats',
|
|
53
57
|
next: 'next',
|
|
54
58
|
prev: 'prev',
|
|
59
|
+
default_action_config: 'default_action_config',
|
|
55
60
|
filter_config: 'filter_config'
|
|
56
61
|
}
|
|
57
62
|
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 QueryRevisionHistoryRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute filter
|
|
13
|
+
# @return [Object] Filter to apply to the query
|
|
14
|
+
attr_accessor :filter
|
|
15
|
+
# @!attribute limit
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :limit
|
|
18
|
+
# @!attribute next
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :next
|
|
21
|
+
# @!attribute prev
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :prev
|
|
24
|
+
# @!attribute sort
|
|
25
|
+
# @return [Array<SortParamRequest>] Array of sort parameters
|
|
26
|
+
attr_accessor :sort
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@filter = attributes[:filter] || attributes['filter']
|
|
32
|
+
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
33
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
34
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
35
|
+
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
filter: 'filter',
|
|
42
|
+
limit: 'limit',
|
|
43
|
+
next: 'next',
|
|
44
|
+
prev: 'prev',
|
|
45
|
+
sort: 'sort'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
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 QueryRevisionHistoryResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute revisions
|
|
16
|
+
# @return [Array<RevisionHistoryResponse>] Revision history entries
|
|
17
|
+
attr_accessor :revisions
|
|
18
|
+
# @!attribute next
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :next
|
|
21
|
+
# @!attribute prev
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :prev
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
29
|
+
@revisions = attributes[:revisions] || attributes['revisions']
|
|
30
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
31
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
duration: 'duration',
|
|
38
|
+
revisions: 'revisions',
|
|
39
|
+
next: 'next',
|
|
40
|
+
prev: 'prev'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -112,7 +112,7 @@ module GetStream
|
|
|
112
112
|
# @return [FeedsV3CommentResponse]
|
|
113
113
|
attr_accessor :feeds_v3_comment
|
|
114
114
|
# @!attribute message
|
|
115
|
-
# @return [
|
|
115
|
+
# @return [ChatMessageResponse]
|
|
116
116
|
attr_accessor :message
|
|
117
117
|
# @!attribute moderation_payload
|
|
118
118
|
# @return [ModerationPayloadResponse]
|
|
@@ -0,0 +1,66 @@
|
|
|
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 RevisionHistoryResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute _object_id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :_object_id
|
|
15
|
+
# @!attribute action_type
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :action_type
|
|
18
|
+
# @!attribute actor_type
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :actor_type
|
|
21
|
+
# @!attribute created_at
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :created_at
|
|
24
|
+
# @!attribute object_type
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :object_type
|
|
27
|
+
# @!attribute user_id
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :user_id
|
|
30
|
+
# @!attribute changed_fields
|
|
31
|
+
# @return [Array<String>]
|
|
32
|
+
attr_accessor :changed_fields
|
|
33
|
+
# @!attribute previous_obj_serialized
|
|
34
|
+
# @return [Object]
|
|
35
|
+
attr_accessor :previous_obj_serialized
|
|
36
|
+
|
|
37
|
+
# Initialize with attributes
|
|
38
|
+
def initialize(attributes = {})
|
|
39
|
+
super(attributes)
|
|
40
|
+
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
41
|
+
@action_type = attributes[:action_type] || attributes['action_type']
|
|
42
|
+
@actor_type = attributes[:actor_type] || attributes['actor_type']
|
|
43
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
44
|
+
@object_type = attributes[:object_type] || attributes['object_type']
|
|
45
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
46
|
+
@changed_fields = attributes[:changed_fields] || attributes['changed_fields'] || nil
|
|
47
|
+
@previous_obj_serialized = attributes[:previous_obj_serialized] || attributes['previous_obj_serialized'] || nil
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Override field mappings for JSON serialization
|
|
51
|
+
def self.json_field_mappings
|
|
52
|
+
{
|
|
53
|
+
_object_id: 'object_id',
|
|
54
|
+
action_type: 'action_type',
|
|
55
|
+
actor_type: 'actor_type',
|
|
56
|
+
created_at: 'created_at',
|
|
57
|
+
object_type: 'object_type',
|
|
58
|
+
user_id: 'user_id',
|
|
59
|
+
changed_fields: 'changed_fields',
|
|
60
|
+
previous_obj_serialized: 'previous_obj_serialized'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute call_violation_count_params
|
|
25
25
|
# @return [CallViolationCountParameters]
|
|
26
26
|
attr_accessor :call_violation_count_params
|
|
27
|
+
# @!attribute channel_message_count_rule_params
|
|
28
|
+
# @return [ChannelMessageCountRuleParameters]
|
|
29
|
+
attr_accessor :channel_message_count_rule_params
|
|
27
30
|
# @!attribute closed_caption_rule_params
|
|
28
31
|
# @return [ClosedCaptionRuleParameters]
|
|
29
32
|
attr_accessor :closed_caption_rule_params
|
|
@@ -81,6 +84,7 @@ module GetStream
|
|
|
81
84
|
@call_custom_property_params = attributes[:call_custom_property_params] || attributes['call_custom_property_params'] || nil
|
|
82
85
|
@call_type_rule_params = attributes[:call_type_rule_params] || attributes['call_type_rule_params'] || nil
|
|
83
86
|
@call_violation_count_params = attributes[:call_violation_count_params] || attributes['call_violation_count_params'] || nil
|
|
87
|
+
@channel_message_count_rule_params = attributes[:channel_message_count_rule_params] || attributes['channel_message_count_rule_params'] || nil
|
|
84
88
|
@closed_caption_rule_params = attributes[:closed_caption_rule_params] || attributes['closed_caption_rule_params'] || nil
|
|
85
89
|
@content_count_rule_params = attributes[:content_count_rule_params] || attributes['content_count_rule_params'] || nil
|
|
86
90
|
@content_flag_count_rule_params = attributes[:content_flag_count_rule_params] || attributes['content_flag_count_rule_params'] || nil
|
|
@@ -107,6 +111,7 @@ module GetStream
|
|
|
107
111
|
call_custom_property_params: 'call_custom_property_params',
|
|
108
112
|
call_type_rule_params: 'call_type_rule_params',
|
|
109
113
|
call_violation_count_params: 'call_violation_count_params',
|
|
114
|
+
channel_message_count_rule_params: 'channel_message_count_rule_params',
|
|
110
115
|
closed_caption_rule_params: 'closed_caption_rule_params',
|
|
111
116
|
content_count_rule_params: 'content_count_rule_params',
|
|
112
117
|
content_flag_count_rule_params: 'content_flag_count_rule_params',
|
|
@@ -0,0 +1,96 @@
|
|
|
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 UpdateCampaignRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute sender_id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :sender_id
|
|
15
|
+
# @!attribute message_template
|
|
16
|
+
# @return [CampaignMessageTemplate]
|
|
17
|
+
attr_accessor :message_template
|
|
18
|
+
# @!attribute create_channels
|
|
19
|
+
# @return [Boolean]
|
|
20
|
+
attr_accessor :create_channels
|
|
21
|
+
# @!attribute description
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
# @!attribute id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :id
|
|
27
|
+
# @!attribute name
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :name
|
|
30
|
+
# @!attribute sender_mode
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :sender_mode
|
|
33
|
+
# @!attribute sender_visibility
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :sender_visibility
|
|
36
|
+
# @!attribute show_channels
|
|
37
|
+
# @return [Boolean]
|
|
38
|
+
attr_accessor :show_channels
|
|
39
|
+
# @!attribute skip_push
|
|
40
|
+
# @return [Boolean]
|
|
41
|
+
attr_accessor :skip_push
|
|
42
|
+
# @!attribute skip_webhook
|
|
43
|
+
# @return [Boolean]
|
|
44
|
+
attr_accessor :skip_webhook
|
|
45
|
+
# @!attribute segment_ids
|
|
46
|
+
# @return [Array<String>]
|
|
47
|
+
attr_accessor :segment_ids
|
|
48
|
+
# @!attribute user_ids
|
|
49
|
+
# @return [Array<String>]
|
|
50
|
+
attr_accessor :user_ids
|
|
51
|
+
# @!attribute channel_template
|
|
52
|
+
# @return [CampaignChannelTemplate]
|
|
53
|
+
attr_accessor :channel_template
|
|
54
|
+
|
|
55
|
+
# Initialize with attributes
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
super(attributes)
|
|
58
|
+
@sender_id = attributes[:sender_id] || attributes['sender_id']
|
|
59
|
+
@message_template = attributes[:message_template] || attributes['message_template']
|
|
60
|
+
@create_channels = attributes[:create_channels] || attributes['create_channels'] || nil
|
|
61
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
62
|
+
@id = attributes[:id] || attributes['id'] || nil
|
|
63
|
+
@name = attributes[:name] || attributes['name'] || nil
|
|
64
|
+
@sender_mode = attributes[:sender_mode] || attributes['sender_mode'] || nil
|
|
65
|
+
@sender_visibility = attributes[:sender_visibility] || attributes['sender_visibility'] || nil
|
|
66
|
+
@show_channels = attributes[:show_channels] || attributes['show_channels'] || nil
|
|
67
|
+
@skip_push = attributes[:skip_push] || attributes['skip_push'] || nil
|
|
68
|
+
@skip_webhook = attributes[:skip_webhook] || attributes['skip_webhook'] || nil
|
|
69
|
+
@segment_ids = attributes[:segment_ids] || attributes['segment_ids'] || nil
|
|
70
|
+
@user_ids = attributes[:user_ids] || attributes['user_ids'] || nil
|
|
71
|
+
@channel_template = attributes[:channel_template] || attributes['channel_template'] || nil
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Override field mappings for JSON serialization
|
|
75
|
+
def self.json_field_mappings
|
|
76
|
+
{
|
|
77
|
+
sender_id: 'sender_id',
|
|
78
|
+
message_template: 'message_template',
|
|
79
|
+
create_channels: 'create_channels',
|
|
80
|
+
description: 'description',
|
|
81
|
+
id: 'id',
|
|
82
|
+
name: 'name',
|
|
83
|
+
sender_mode: 'sender_mode',
|
|
84
|
+
sender_visibility: 'sender_visibility',
|
|
85
|
+
show_channels: 'show_channels',
|
|
86
|
+
skip_push: 'skip_push',
|
|
87
|
+
skip_webhook: 'skip_webhook',
|
|
88
|
+
segment_ids: 'segment_ids',
|
|
89
|
+
user_ids: 'user_ids',
|
|
90
|
+
channel_template: 'channel_template'
|
|
91
|
+
}
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -18,6 +18,9 @@ module GetStream
|
|
|
18
18
|
# @!attribute activity_selectors
|
|
19
19
|
# @return [Array<ActivitySelectorConfig>] Configuration for activity selectors
|
|
20
20
|
attr_accessor :activity_selectors
|
|
21
|
+
# @!attribute activity_filter
|
|
22
|
+
# @return [ActivityFilterConfig]
|
|
23
|
+
attr_accessor :activity_filter
|
|
21
24
|
# @!attribute aggregation
|
|
22
25
|
# @return [AggregationConfig]
|
|
23
26
|
attr_accessor :aggregation
|
|
@@ -43,6 +46,7 @@ module GetStream
|
|
|
43
46
|
@default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
|
|
44
47
|
@activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
|
|
45
48
|
@activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
|
|
49
|
+
@activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
|
|
46
50
|
@aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
|
|
47
51
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
48
52
|
@notification = attributes[:notification] || attributes['notification'] || nil
|
|
@@ -57,6 +61,7 @@ module GetStream
|
|
|
57
61
|
default_visibility: 'default_visibility',
|
|
58
62
|
activity_processors: 'activity_processors',
|
|
59
63
|
activity_selectors: 'activity_selectors',
|
|
64
|
+
activity_filter: 'activity_filter',
|
|
60
65
|
aggregation: 'aggregation',
|
|
61
66
|
custom: 'custom',
|
|
62
67
|
notification: 'notification',
|
|
@@ -6,24 +6,30 @@ module GetStream
|
|
|
6
6
|
module Generated
|
|
7
7
|
module Models
|
|
8
8
|
#
|
|
9
|
-
class
|
|
9
|
+
class UpsertActionConfigItem < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute action
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :action
|
|
15
|
-
# @!attribute description
|
|
16
|
-
# @return [String]
|
|
17
|
-
attr_accessor :description
|
|
18
15
|
# @!attribute entity_type
|
|
19
16
|
# @return [String]
|
|
20
17
|
attr_accessor :entity_type
|
|
21
|
-
# @!attribute icon
|
|
22
|
-
# @return [String]
|
|
23
|
-
attr_accessor :icon
|
|
24
18
|
# @!attribute order
|
|
25
19
|
# @return [Integer]
|
|
26
20
|
attr_accessor :order
|
|
21
|
+
# @!attribute description
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
# @!attribute icon
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :icon
|
|
27
|
+
# @!attribute id
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :id
|
|
30
|
+
# @!attribute queue_type
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :queue_type
|
|
27
33
|
# @!attribute custom
|
|
28
34
|
# @return [Object]
|
|
29
35
|
attr_accessor :custom
|
|
@@ -32,21 +38,25 @@ module GetStream
|
|
|
32
38
|
def initialize(attributes = {})
|
|
33
39
|
super(attributes)
|
|
34
40
|
@action = attributes[:action] || attributes['action']
|
|
35
|
-
@description = attributes[:description] || attributes['description']
|
|
36
41
|
@entity_type = attributes[:entity_type] || attributes['entity_type']
|
|
37
|
-
@icon = attributes[:icon] || attributes['icon']
|
|
38
42
|
@order = attributes[:order] || attributes['order']
|
|
39
|
-
@
|
|
43
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
44
|
+
@icon = attributes[:icon] || attributes['icon'] || nil
|
|
45
|
+
@id = attributes[:id] || attributes['id'] || nil
|
|
46
|
+
@queue_type = attributes[:queue_type] || attributes['queue_type'] || nil
|
|
47
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
40
48
|
end
|
|
41
49
|
|
|
42
50
|
# Override field mappings for JSON serialization
|
|
43
51
|
def self.json_field_mappings
|
|
44
52
|
{
|
|
45
53
|
action: 'action',
|
|
46
|
-
description: 'description',
|
|
47
54
|
entity_type: 'entity_type',
|
|
48
|
-
icon: 'icon',
|
|
49
55
|
order: 'order',
|
|
56
|
+
description: 'description',
|
|
57
|
+
icon: 'icon',
|
|
58
|
+
id: 'id',
|
|
59
|
+
queue_type: 'queue_type',
|
|
50
60
|
custom: 'custom'
|
|
51
61
|
}
|
|
52
62
|
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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 UpsertActionConfigRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute action
|
|
13
|
+
# @return [String] The action to perform (e.g. ban, delete_message, custom)
|
|
14
|
+
attr_accessor :action
|
|
15
|
+
# @!attribute entity_type
|
|
16
|
+
# @return [String] Type of entity this action applies to (e.g. stream:chat:v1:message)
|
|
17
|
+
attr_accessor :entity_type
|
|
18
|
+
# @!attribute order
|
|
19
|
+
# @return [Integer] Display order in the dashboard (0–100, lower numbers shown first)
|
|
20
|
+
attr_accessor :order
|
|
21
|
+
# @!attribute description
|
|
22
|
+
# @return [String] Human-readable label for the dashboard button
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
# @!attribute icon
|
|
25
|
+
# @return [String] Icon identifier for the dashboard button
|
|
26
|
+
attr_accessor :icon
|
|
27
|
+
# @!attribute id
|
|
28
|
+
# @return [String] UUID of an existing action config to update; omit to create a new record
|
|
29
|
+
attr_accessor :id
|
|
30
|
+
# @!attribute queue_type
|
|
31
|
+
# @return [String] Queue this config belongs to; null means the default queue
|
|
32
|
+
attr_accessor :queue_type
|
|
33
|
+
# @!attribute user_id
|
|
34
|
+
# @return [String] Optional user ID to associate with the audit log entry
|
|
35
|
+
attr_accessor :user_id
|
|
36
|
+
# @!attribute custom
|
|
37
|
+
# @return [Object] Action-specific parameters passed to the action handler
|
|
38
|
+
attr_accessor :custom
|
|
39
|
+
# @!attribute user
|
|
40
|
+
# @return [UserRequest]
|
|
41
|
+
attr_accessor :user
|
|
42
|
+
|
|
43
|
+
# Initialize with attributes
|
|
44
|
+
def initialize(attributes = {})
|
|
45
|
+
super(attributes)
|
|
46
|
+
@action = attributes[:action] || attributes['action']
|
|
47
|
+
@entity_type = attributes[:entity_type] || attributes['entity_type']
|
|
48
|
+
@order = attributes[:order] || attributes['order']
|
|
49
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
50
|
+
@icon = attributes[:icon] || attributes['icon'] || nil
|
|
51
|
+
@id = attributes[:id] || attributes['id'] || nil
|
|
52
|
+
@queue_type = attributes[:queue_type] || attributes['queue_type'] || nil
|
|
53
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
54
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
55
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Override field mappings for JSON serialization
|
|
59
|
+
def self.json_field_mappings
|
|
60
|
+
{
|
|
61
|
+
action: 'action',
|
|
62
|
+
entity_type: 'entity_type',
|
|
63
|
+
order: 'order',
|
|
64
|
+
description: 'description',
|
|
65
|
+
icon: 'icon',
|
|
66
|
+
id: 'id',
|
|
67
|
+
queue_type: 'queue_type',
|
|
68
|
+
user_id: 'user_id',
|
|
69
|
+
custom: 'custom',
|
|
70
|
+
user: 'user'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
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 UpsertActionConfigResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute action_config
|
|
16
|
+
# @return [ModerationActionConfigResponse]
|
|
17
|
+
attr_accessor :action_config
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@action_config = attributes[:action_config] || attributes['action_config'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
action_config: 'action_config'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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 WebhookFailoverConfig < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute gcs_bucket
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :gcs_bucket
|
|
15
|
+
# @!attribute gcs_credentials
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :gcs_credentials
|
|
18
|
+
# @!attribute gcs_path
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :gcs_path
|
|
21
|
+
# @!attribute type
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :type
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@gcs_bucket = attributes[:gcs_bucket] || attributes['gcs_bucket'] || nil
|
|
29
|
+
@gcs_credentials = attributes[:gcs_credentials] || attributes['gcs_credentials'] || nil
|
|
30
|
+
@gcs_path = attributes[:gcs_path] || attributes['gcs_path'] || nil
|
|
31
|
+
@type = attributes[:type] || attributes['type'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
gcs_bucket: 'gcs_bucket',
|
|
38
|
+
gcs_credentials: 'gcs_credentials',
|
|
39
|
+
gcs_path: 'gcs_path',
|
|
40
|
+
type: 'type'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|