getstream-ruby 1.0.1 → 1.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/lib/getstream_ruby/generated/common_client.rb +67 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +6 -2
- data/lib/getstream_ruby/generated/models/activity_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/activity_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/add_activity_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/add_comment_reaction_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/add_comment_response.rb +11 -1
- data/lib/getstream_ruby/generated/models/add_reaction_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/appeal_accepted_event.rb +51 -0
- data/lib/getstream_ruby/generated/models/appeal_created_event.rb +51 -0
- data/lib/getstream_ruby/generated/models/appeal_item_response.rb +81 -0
- data/lib/getstream_ruby/generated/models/appeal_rejected_event.rb +51 -0
- data/lib/getstream_ruby/generated/models/appeal_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/appeal_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/call_recording_failed_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_recording_ready_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_recording_started_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_recording_stopped_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_settings.rb +10 -0
- data/lib/getstream_ruby/generated/models/call_settings_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/call_settings_response.rb +10 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +6 -1
- data/lib/getstream_ruby/generated/models/channel_batch_completed_event.rb +81 -0
- data/lib/getstream_ruby/generated/models/channel_batch_started_event.rb +81 -0
- data/lib/getstream_ruby/generated/models/comment_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/composite_recording_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/create_import_v2_task_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/create_import_v2_task_response.rb +66 -0
- data/lib/getstream_ruby/generated/models/delete_import_v2_task_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/egress_response.rb +16 -1
- data/lib/getstream_ruby/generated/models/enrichment_options.rb +23 -18
- data/lib/getstream_ruby/generated/models/event_hook.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_own_data.rb +5 -0
- 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/future_channel_ban_response.rb +56 -0
- data/lib/getstream_ruby/generated/models/get_appeal_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb +66 -0
- data/lib/getstream_ruby/generated/models/go_live_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/import_v2_task_item.rb +61 -0
- data/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +36 -0
- data/lib/getstream_ruby/generated/models/import_v2_task_settings_s3.rb +41 -0
- data/lib/getstream_ruby/generated/models/individual_record_settings.rb +31 -0
- data/lib/getstream_ruby/generated/models/individual_recording_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/individual_recording_settings_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/individual_recording_settings_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/ingress_error_event.rb +61 -0
- data/lib/getstream_ruby/generated/models/ingress_started_event.rb +71 -0
- data/lib/getstream_ruby/generated/models/ingress_stopped_event.rb +51 -0
- data/lib/getstream_ruby/generated/models/list_import_v2_tasks_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/mark_reviewed_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/message_new_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/own_batch_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/participant_session_details.rb +61 -0
- data/lib/getstream_ruby/generated/models/poll_vote_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_appeals_request.rb +61 -0
- data/lib/getstream_ruby/generated/models/query_appeals_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb +76 -0
- data/lib/getstream_ruby/generated/models/query_channels_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb +56 -0
- data/lib/getstream_ruby/generated/models/query_future_channel_bans_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/ranking_config.rb +1 -1
- data/lib/getstream_ruby/generated/models/raw_record_settings.rb +31 -0
- data/lib/getstream_ruby/generated/models/raw_recording_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/reject_appeal_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/restore_action_request.rb +18 -1
- data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +10 -0
- data/lib/getstream_ruby/generated/models/search_payload.rb +5 -0
- data/lib/getstream_ruby/generated/models/single_follow_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/stop_live_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/submit_action_request.rb +21 -1
- data/lib/getstream_ruby/generated/models/submit_action_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/text_rule_parameters.rb +10 -0
- data/lib/getstream_ruby/generated/models/threaded_comment_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/unban_action_request.rb +18 -1
- data/lib/getstream_ruby/generated/models/unblock_action_request.rb +18 -1
- data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/update_activity_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/update_comment_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_feed_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/upsert_activities_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/user_identical_content_count_parameters.rb +36 -0
- data/lib/getstream_ruby/generated/models/user_role_parameters.rb +36 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +50 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +41 -2
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute offset
|
|
22
22
|
# @return [Integer] Channel pagination offset
|
|
23
23
|
attr_accessor :offset
|
|
24
|
+
# @!attribute predefined_filter
|
|
25
|
+
# @return [String] ID of a predefined filter to use instead of filter_conditions
|
|
26
|
+
attr_accessor :predefined_filter
|
|
24
27
|
# @!attribute state
|
|
25
28
|
# @return [Boolean] Whether to update channel state or not
|
|
26
29
|
attr_accessor :state
|
|
@@ -33,6 +36,12 @@ module GetStream
|
|
|
33
36
|
# @!attribute filter_conditions
|
|
34
37
|
# @return [Object]
|
|
35
38
|
attr_accessor :filter_conditions
|
|
39
|
+
# @!attribute filter_values
|
|
40
|
+
# @return [Object] Values to interpolate into the predefined filter template
|
|
41
|
+
attr_accessor :filter_values
|
|
42
|
+
# @!attribute sort_values
|
|
43
|
+
# @return [Object]
|
|
44
|
+
attr_accessor :sort_values
|
|
36
45
|
# @!attribute user
|
|
37
46
|
# @return [UserRequest]
|
|
38
47
|
attr_accessor :user
|
|
@@ -44,10 +53,13 @@ module GetStream
|
|
|
44
53
|
@member_limit = attributes[:member_limit] || attributes['member_limit'] || nil
|
|
45
54
|
@message_limit = attributes[:message_limit] || attributes['message_limit'] || nil
|
|
46
55
|
@offset = attributes[:offset] || attributes['offset'] || nil
|
|
56
|
+
@predefined_filter = attributes[:predefined_filter] || attributes['predefined_filter'] || nil
|
|
47
57
|
@state = attributes[:state] || attributes['state'] || nil
|
|
48
58
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
49
59
|
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
50
60
|
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil
|
|
61
|
+
@filter_values = attributes[:filter_values] || attributes['filter_values'] || nil
|
|
62
|
+
@sort_values = attributes[:sort_values] || attributes['sort_values'] || nil
|
|
51
63
|
@user = attributes[:user] || attributes['user'] || nil
|
|
52
64
|
end
|
|
53
65
|
|
|
@@ -58,10 +70,13 @@ module GetStream
|
|
|
58
70
|
member_limit: 'member_limit',
|
|
59
71
|
message_limit: 'message_limit',
|
|
60
72
|
offset: 'offset',
|
|
73
|
+
predefined_filter: 'predefined_filter',
|
|
61
74
|
state: 'state',
|
|
62
75
|
user_id: 'user_id',
|
|
63
76
|
sort: 'sort',
|
|
64
77
|
filter_conditions: 'filter_conditions',
|
|
78
|
+
filter_values: 'filter_values',
|
|
79
|
+
sort_values: 'sort_values',
|
|
65
80
|
user: 'user'
|
|
66
81
|
}
|
|
67
82
|
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
|
+
#
|
|
9
|
+
class QueryFutureChannelBansPayload < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute exclude_expired_bans
|
|
13
|
+
# @return [Boolean] Whether to exclude expired bans or not
|
|
14
|
+
attr_accessor :exclude_expired_bans
|
|
15
|
+
# @!attribute limit
|
|
16
|
+
# @return [Integer] Number of records to return
|
|
17
|
+
attr_accessor :limit
|
|
18
|
+
# @!attribute offset
|
|
19
|
+
# @return [Integer] Number of records to offset
|
|
20
|
+
attr_accessor :offset
|
|
21
|
+
# @!attribute target_user_id
|
|
22
|
+
# @return [String] Filter by the target user ID. For server-side requests only.
|
|
23
|
+
attr_accessor :target_user_id
|
|
24
|
+
# @!attribute user_id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :user_id
|
|
27
|
+
# @!attribute user
|
|
28
|
+
# @return [UserRequest]
|
|
29
|
+
attr_accessor :user
|
|
30
|
+
|
|
31
|
+
# Initialize with attributes
|
|
32
|
+
def initialize(attributes = {})
|
|
33
|
+
super(attributes)
|
|
34
|
+
@exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil
|
|
35
|
+
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
36
|
+
@offset = attributes[:offset] || attributes['offset'] || nil
|
|
37
|
+
@target_user_id = attributes[:target_user_id] || attributes['target_user_id'] || nil
|
|
38
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
39
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Override field mappings for JSON serialization
|
|
43
|
+
def self.json_field_mappings
|
|
44
|
+
{
|
|
45
|
+
exclude_expired_bans: 'exclude_expired_bans',
|
|
46
|
+
limit: 'limit',
|
|
47
|
+
offset: 'offset',
|
|
48
|
+
target_user_id: 'target_user_id',
|
|
49
|
+
user_id: 'user_id',
|
|
50
|
+
user: 'user'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
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 QueryFutureChannelBansResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute bans
|
|
16
|
+
# @return [Array<FutureChannelBanResponse>] List of found future channel bans
|
|
17
|
+
attr_accessor :bans
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@bans = attributes[:bans] || attributes['bans']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
bans: 'bans'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -10,7 +10,7 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute type
|
|
13
|
-
# @return [String] Type of ranking algorithm. Required. Must be one of:
|
|
13
|
+
# @return [String] Type of ranking algorithm. Required. Must be one of: expression, interest
|
|
14
14
|
attr_accessor :type
|
|
15
15
|
# @!attribute score
|
|
16
16
|
# @return [String] Scoring formula. Required when type is 'expression' or 'interest'
|
|
@@ -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
|
+
#
|
|
9
|
+
class RawRecordSettings < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute mode
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :mode
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@mode = attributes[:mode] || attributes['mode']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
mode: 'mode'
|
|
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
|
+
#
|
|
9
|
+
class RawRecordingResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute status
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :status
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@status = attributes[:status] || attributes['status']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
status: 'status'
|
|
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
|
+
#
|
|
9
|
+
class RawRecordingSettingsRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute mode
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :mode
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@mode = attributes[:mode] || attributes['mode']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
mode: 'mode'
|
|
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
|
+
#
|
|
9
|
+
class RawRecordingSettingsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute mode
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :mode
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@mode = attributes[:mode] || attributes['mode']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
mode: 'mode'
|
|
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
|
+
#
|
|
9
|
+
class RejectAppealRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute decision_reason
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :decision_reason
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@decision_reason = attributes[:decision_reason] || attributes['decision_reason']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
decision_reason: 'decision_reason'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -18,6 +18,9 @@ module GetStream
|
|
|
18
18
|
# @!attribute challenge
|
|
19
19
|
# @return [SIPChallenge]
|
|
20
20
|
attr_accessor :challenge
|
|
21
|
+
# @!attribute routing_number
|
|
22
|
+
# @return [String] Optional routing number for routing number-based call routing (10 digits)
|
|
23
|
+
attr_accessor :routing_number
|
|
21
24
|
# @!attribute sip_headers
|
|
22
25
|
# @return [Hash<String, String>] Optional SIP headers as key-value pairs
|
|
23
26
|
attr_accessor :sip_headers
|
|
@@ -28,6 +31,7 @@ module GetStream
|
|
|
28
31
|
@sip_caller_number = attributes[:sip_caller_number] || attributes['sip_caller_number']
|
|
29
32
|
@sip_trunk_number = attributes[:sip_trunk_number] || attributes['sip_trunk_number']
|
|
30
33
|
@challenge = attributes[:challenge] || attributes['challenge']
|
|
34
|
+
@routing_number = attributes[:routing_number] || attributes['routing_number'] || nil
|
|
31
35
|
@sip_headers = attributes[:sip_headers] || attributes['sip_headers'] || nil
|
|
32
36
|
end
|
|
33
37
|
|
|
@@ -37,6 +41,7 @@ module GetStream
|
|
|
37
41
|
sip_caller_number: 'sip_caller_number',
|
|
38
42
|
sip_trunk_number: 'sip_trunk_number',
|
|
39
43
|
challenge: 'challenge',
|
|
44
|
+
routing_number: 'routing_number',
|
|
40
45
|
sip_headers: 'sip_headers'
|
|
41
46
|
}
|
|
42
47
|
end
|
|
@@ -7,7 +7,24 @@ module GetStream
|
|
|
7
7
|
module Models
|
|
8
8
|
#
|
|
9
9
|
class RestoreActionRequest < GetStream::BaseModel
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute decision_reason
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :decision_reason
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
decision_reason: 'decision_reason'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
11
28
|
end
|
|
12
29
|
end
|
|
13
30
|
end
|
|
@@ -75,6 +75,9 @@ module GetStream
|
|
|
75
75
|
# @!attribute activity
|
|
76
76
|
# @return [EnrichedActivity]
|
|
77
77
|
attr_accessor :activity
|
|
78
|
+
# @!attribute appeal
|
|
79
|
+
# @return [AppealItemResponse]
|
|
80
|
+
attr_accessor :appeal
|
|
78
81
|
# @!attribute assigned_to
|
|
79
82
|
# @return [UserResponse]
|
|
80
83
|
attr_accessor :assigned_to
|
|
@@ -131,6 +134,7 @@ module GetStream
|
|
|
131
134
|
@reviewed_at = attributes[:reviewed_at] || attributes['reviewed_at'] || nil
|
|
132
135
|
@teams = attributes[:teams] || attributes['teams'] || nil
|
|
133
136
|
@activity = attributes[:activity] || attributes['activity'] || nil
|
|
137
|
+
@appeal = attributes[:appeal] || attributes['appeal'] || nil
|
|
134
138
|
@assigned_to = attributes[:assigned_to] || attributes['assigned_to'] || nil
|
|
135
139
|
@call = attributes[:call] || attributes['call'] || nil
|
|
136
140
|
@entity_creator = attributes[:entity_creator] || attributes['entity_creator'] || nil
|
|
@@ -168,6 +172,7 @@ module GetStream
|
|
|
168
172
|
reviewed_at: 'reviewed_at',
|
|
169
173
|
teams: 'teams',
|
|
170
174
|
activity: 'activity',
|
|
175
|
+
appeal: 'appeal',
|
|
171
176
|
assigned_to: 'assigned_to',
|
|
172
177
|
call: 'call',
|
|
173
178
|
entity_creator: 'entity_creator',
|
|
@@ -42,6 +42,12 @@ module GetStream
|
|
|
42
42
|
# @!attribute user_flag_count_rule_params
|
|
43
43
|
# @return [FlagCountRuleParameters]
|
|
44
44
|
attr_accessor :user_flag_count_rule_params
|
|
45
|
+
# @!attribute user_identical_content_count_params
|
|
46
|
+
# @return [UserIdenticalContentCountParameters]
|
|
47
|
+
attr_accessor :user_identical_content_count_params
|
|
48
|
+
# @!attribute user_role_params
|
|
49
|
+
# @return [UserRoleParameters]
|
|
50
|
+
attr_accessor :user_role_params
|
|
45
51
|
# @!attribute user_rule_params
|
|
46
52
|
# @return [UserRuleParameters]
|
|
47
53
|
attr_accessor :user_rule_params
|
|
@@ -66,6 +72,8 @@ module GetStream
|
|
|
66
72
|
@user_created_within_params = attributes[:user_created_within_params] || attributes['user_created_within_params'] || nil
|
|
67
73
|
@user_custom_property_params = attributes[:user_custom_property_params] || attributes['user_custom_property_params'] || nil
|
|
68
74
|
@user_flag_count_rule_params = attributes[:user_flag_count_rule_params] || attributes['user_flag_count_rule_params'] || nil
|
|
75
|
+
@user_identical_content_count_params = attributes[:user_identical_content_count_params] || attributes['user_identical_content_count_params'] || nil
|
|
76
|
+
@user_role_params = attributes[:user_role_params] || attributes['user_role_params'] || nil
|
|
69
77
|
@user_rule_params = attributes[:user_rule_params] || attributes['user_rule_params'] || nil
|
|
70
78
|
@video_content_params = attributes[:video_content_params] || attributes['video_content_params'] || nil
|
|
71
79
|
@video_rule_params = attributes[:video_rule_params] || attributes['video_rule_params'] || nil
|
|
@@ -85,6 +93,8 @@ module GetStream
|
|
|
85
93
|
user_created_within_params: 'user_created_within_params',
|
|
86
94
|
user_custom_property_params: 'user_custom_property_params',
|
|
87
95
|
user_flag_count_rule_params: 'user_flag_count_rule_params',
|
|
96
|
+
user_identical_content_count_params: 'user_identical_content_count_params',
|
|
97
|
+
user_role_params: 'user_role_params',
|
|
88
98
|
user_rule_params: 'user_rule_params',
|
|
89
99
|
video_content_params: 'video_content_params',
|
|
90
100
|
video_rule_params: 'video_rule_params'
|
|
@@ -15,6 +15,9 @@ module GetStream
|
|
|
15
15
|
# @!attribute force_default_search
|
|
16
16
|
# @return [Boolean]
|
|
17
17
|
attr_accessor :force_default_search
|
|
18
|
+
# @!attribute force_sql_v2_backend
|
|
19
|
+
# @return [Boolean]
|
|
20
|
+
attr_accessor :force_sql_v2_backend
|
|
18
21
|
# @!attribute limit
|
|
19
22
|
# @return [Integer] Number of messages to return
|
|
20
23
|
attr_accessor :limit
|
|
@@ -42,6 +45,7 @@ module GetStream
|
|
|
42
45
|
super(attributes)
|
|
43
46
|
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions']
|
|
44
47
|
@force_default_search = attributes[:force_default_search] || attributes['force_default_search'] || nil
|
|
48
|
+
@force_sql_v2_backend = attributes[:force_sql_v2_backend] || attributes['force_sql_v2_backend'] || nil
|
|
45
49
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
46
50
|
@next = attributes[:next] || attributes['next'] || nil
|
|
47
51
|
@offset = attributes[:offset] || attributes['offset'] || nil
|
|
@@ -56,6 +60,7 @@ module GetStream
|
|
|
56
60
|
{
|
|
57
61
|
filter_conditions: 'filter_conditions',
|
|
58
62
|
force_default_search: 'force_default_search',
|
|
63
|
+
force_sql_v2_backend: 'force_sql_v2_backend',
|
|
59
64
|
limit: 'limit',
|
|
60
65
|
next: 'next',
|
|
61
66
|
offset: 'offset',
|
|
@@ -15,19 +15,24 @@ module GetStream
|
|
|
15
15
|
# @!attribute follow
|
|
16
16
|
# @return [FollowResponse]
|
|
17
17
|
attr_accessor :follow
|
|
18
|
+
# @!attribute notification_created
|
|
19
|
+
# @return [Boolean] Whether a notification activity was successfully created
|
|
20
|
+
attr_accessor :notification_created
|
|
18
21
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@duration = attributes[:duration] || attributes['duration']
|
|
23
26
|
@follow = attributes[:follow] || attributes['follow']
|
|
27
|
+
@notification_created = attributes[:notification_created] || attributes['notification_created'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
# Override field mappings for JSON serialization
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
duration: 'duration',
|
|
30
|
-
follow: 'follow'
|
|
34
|
+
follow: 'follow',
|
|
35
|
+
notification_created: 'notification_created'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
33
38
|
end
|
|
@@ -12,9 +12,18 @@ module GetStream
|
|
|
12
12
|
# @!attribute continue_closed_caption
|
|
13
13
|
# @return [Boolean]
|
|
14
14
|
attr_accessor :continue_closed_caption
|
|
15
|
+
# @!attribute continue_composite_recording
|
|
16
|
+
# @return [Boolean]
|
|
17
|
+
attr_accessor :continue_composite_recording
|
|
15
18
|
# @!attribute continue_hls
|
|
16
19
|
# @return [Boolean]
|
|
17
20
|
attr_accessor :continue_hls
|
|
21
|
+
# @!attribute continue_individual_recording
|
|
22
|
+
# @return [Boolean]
|
|
23
|
+
attr_accessor :continue_individual_recording
|
|
24
|
+
# @!attribute continue_raw_recording
|
|
25
|
+
# @return [Boolean]
|
|
26
|
+
attr_accessor :continue_raw_recording
|
|
18
27
|
# @!attribute continue_recording
|
|
19
28
|
# @return [Boolean]
|
|
20
29
|
attr_accessor :continue_recording
|
|
@@ -29,7 +38,10 @@ module GetStream
|
|
|
29
38
|
def initialize(attributes = {})
|
|
30
39
|
super(attributes)
|
|
31
40
|
@continue_closed_caption = attributes[:continue_closed_caption] || attributes['continue_closed_caption'] || nil
|
|
41
|
+
@continue_composite_recording = attributes[:continue_composite_recording] || attributes['continue_composite_recording'] || nil
|
|
32
42
|
@continue_hls = attributes[:continue_hls] || attributes['continue_hls'] || nil
|
|
43
|
+
@continue_individual_recording = attributes[:continue_individual_recording] || attributes['continue_individual_recording'] || nil
|
|
44
|
+
@continue_raw_recording = attributes[:continue_raw_recording] || attributes['continue_raw_recording'] || nil
|
|
33
45
|
@continue_recording = attributes[:continue_recording] || attributes['continue_recording'] || nil
|
|
34
46
|
@continue_rtmp_broadcasts = attributes[:continue_rtmp_broadcasts] || attributes['continue_rtmp_broadcasts'] || nil
|
|
35
47
|
@continue_transcription = attributes[:continue_transcription] || attributes['continue_transcription'] || nil
|
|
@@ -39,7 +51,10 @@ module GetStream
|
|
|
39
51
|
def self.json_field_mappings
|
|
40
52
|
{
|
|
41
53
|
continue_closed_caption: 'continue_closed_caption',
|
|
54
|
+
continue_composite_recording: 'continue_composite_recording',
|
|
42
55
|
continue_hls: 'continue_hls',
|
|
56
|
+
continue_individual_recording: 'continue_individual_recording',
|
|
57
|
+
continue_raw_recording: 'continue_raw_recording',
|
|
43
58
|
continue_recording: 'continue_recording',
|
|
44
59
|
continue_rtmp_broadcasts: 'continue_rtmp_broadcasts',
|
|
45
60
|
continue_transcription: 'continue_transcription'
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute action_type
|
|
13
13
|
# @return [String] Type of moderation action to perform (mark_reviewed, delete_message, etc.)
|
|
14
14
|
attr_accessor :action_type
|
|
15
|
+
# @!attribute appeal_id
|
|
16
|
+
# @return [String] UUID of the appeal to act on (required for reject_appeal, optional for other actions)
|
|
17
|
+
attr_accessor :appeal_id
|
|
15
18
|
# @!attribute item_id
|
|
16
19
|
# @return [String] UUID of the review queue item to act on
|
|
17
20
|
attr_accessor :item_id
|
|
@@ -45,12 +48,21 @@ module GetStream
|
|
|
45
48
|
# @!attribute mark_reviewed
|
|
46
49
|
# @return [MarkReviewedRequest]
|
|
47
50
|
attr_accessor :mark_reviewed
|
|
51
|
+
# @!attribute reject_appeal
|
|
52
|
+
# @return [RejectAppealRequest]
|
|
53
|
+
attr_accessor :reject_appeal
|
|
54
|
+
# @!attribute restore
|
|
55
|
+
# @return [RestoreActionRequest]
|
|
56
|
+
attr_accessor :restore
|
|
48
57
|
# @!attribute shadow_block
|
|
49
58
|
# @return [ShadowBlockActionRequest]
|
|
50
59
|
attr_accessor :shadow_block
|
|
51
60
|
# @!attribute unban
|
|
52
61
|
# @return [UnbanActionRequest]
|
|
53
62
|
attr_accessor :unban
|
|
63
|
+
# @!attribute unblock
|
|
64
|
+
# @return [UnblockActionRequest]
|
|
65
|
+
attr_accessor :unblock
|
|
54
66
|
# @!attribute user
|
|
55
67
|
# @return [UserRequest]
|
|
56
68
|
attr_accessor :user
|
|
@@ -59,7 +71,8 @@ module GetStream
|
|
|
59
71
|
def initialize(attributes = {})
|
|
60
72
|
super(attributes)
|
|
61
73
|
@action_type = attributes[:action_type] || attributes['action_type']
|
|
62
|
-
@
|
|
74
|
+
@appeal_id = attributes[:appeal_id] || attributes['appeal_id'] || nil
|
|
75
|
+
@item_id = attributes[:item_id] || attributes['item_id'] || nil
|
|
63
76
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
64
77
|
@ban = attributes[:ban] || attributes['ban'] || nil
|
|
65
78
|
@block = attributes[:block] || attributes['block'] || nil
|
|
@@ -70,8 +83,11 @@ module GetStream
|
|
|
70
83
|
@delete_reaction = attributes[:delete_reaction] || attributes['delete_reaction'] || nil
|
|
71
84
|
@delete_user = attributes[:delete_user] || attributes['delete_user'] || nil
|
|
72
85
|
@mark_reviewed = attributes[:mark_reviewed] || attributes['mark_reviewed'] || nil
|
|
86
|
+
@reject_appeal = attributes[:reject_appeal] || attributes['reject_appeal'] || nil
|
|
87
|
+
@restore = attributes[:restore] || attributes['restore'] || nil
|
|
73
88
|
@shadow_block = attributes[:shadow_block] || attributes['shadow_block'] || nil
|
|
74
89
|
@unban = attributes[:unban] || attributes['unban'] || nil
|
|
90
|
+
@unblock = attributes[:unblock] || attributes['unblock'] || nil
|
|
75
91
|
@user = attributes[:user] || attributes['user'] || nil
|
|
76
92
|
end
|
|
77
93
|
|
|
@@ -79,6 +95,7 @@ module GetStream
|
|
|
79
95
|
def self.json_field_mappings
|
|
80
96
|
{
|
|
81
97
|
action_type: 'action_type',
|
|
98
|
+
appeal_id: 'appeal_id',
|
|
82
99
|
item_id: 'item_id',
|
|
83
100
|
user_id: 'user_id',
|
|
84
101
|
ban: 'ban',
|
|
@@ -90,8 +107,11 @@ module GetStream
|
|
|
90
107
|
delete_reaction: 'delete_reaction',
|
|
91
108
|
delete_user: 'delete_user',
|
|
92
109
|
mark_reviewed: 'mark_reviewed',
|
|
110
|
+
reject_appeal: 'reject_appeal',
|
|
111
|
+
restore: 'restore',
|
|
93
112
|
shadow_block: 'shadow_block',
|
|
94
113
|
unban: 'unban',
|
|
114
|
+
unblock: 'unblock',
|
|
95
115
|
user: 'user'
|
|
96
116
|
}
|
|
97
117
|
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute duration
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :duration
|
|
15
|
+
# @!attribute appeal_item
|
|
16
|
+
# @return [AppealItemResponse]
|
|
17
|
+
attr_accessor :appeal_item
|
|
15
18
|
# @!attribute item
|
|
16
19
|
# @return [ReviewQueueItemResponse]
|
|
17
20
|
attr_accessor :item
|
|
@@ -20,6 +23,7 @@ module GetStream
|
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@duration = attributes[:duration] || attributes['duration']
|
|
26
|
+
@appeal_item = attributes[:appeal_item] || attributes['appeal_item'] || nil
|
|
23
27
|
@item = attributes[:item] || attributes['item'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
@@ -27,6 +31,7 @@ module GetStream
|
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
duration: 'duration',
|
|
34
|
+
appeal_item: 'appeal_item',
|
|
30
35
|
item: 'item'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute contains_url
|
|
13
13
|
# @return [Boolean]
|
|
14
14
|
attr_accessor :contains_url
|
|
15
|
+
# @!attribute semantic_filter_min_threshold
|
|
16
|
+
# @return [Float]
|
|
17
|
+
attr_accessor :semantic_filter_min_threshold
|
|
15
18
|
# @!attribute severity
|
|
16
19
|
# @return [String]
|
|
17
20
|
attr_accessor :severity
|
|
@@ -27,6 +30,9 @@ module GetStream
|
|
|
27
30
|
# @!attribute harm_labels
|
|
28
31
|
# @return [Array<String>]
|
|
29
32
|
attr_accessor :harm_labels
|
|
33
|
+
# @!attribute semantic_filter_names
|
|
34
|
+
# @return [Array<String>]
|
|
35
|
+
attr_accessor :semantic_filter_names
|
|
30
36
|
# @!attribute llm_harm_labels
|
|
31
37
|
# @return [Hash<String, String>]
|
|
32
38
|
attr_accessor :llm_harm_labels
|
|
@@ -35,11 +41,13 @@ module GetStream
|
|
|
35
41
|
def initialize(attributes = {})
|
|
36
42
|
super(attributes)
|
|
37
43
|
@contains_url = attributes[:contains_url] || attributes['contains_url'] || nil
|
|
44
|
+
@semantic_filter_min_threshold = attributes[:semantic_filter_min_threshold] || attributes['semantic_filter_min_threshold'] || nil
|
|
38
45
|
@severity = attributes[:severity] || attributes['severity'] || nil
|
|
39
46
|
@threshold = attributes[:threshold] || attributes['threshold'] || nil
|
|
40
47
|
@time_window = attributes[:time_window] || attributes['time_window'] || nil
|
|
41
48
|
@blocklist_match = attributes[:blocklist_match] || attributes['blocklist_match'] || nil
|
|
42
49
|
@harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
|
|
50
|
+
@semantic_filter_names = attributes[:semantic_filter_names] || attributes['semantic_filter_names'] || nil
|
|
43
51
|
@llm_harm_labels = attributes[:llm_harm_labels] || attributes['llm_harm_labels'] || nil
|
|
44
52
|
end
|
|
45
53
|
|
|
@@ -47,11 +55,13 @@ module GetStream
|
|
|
47
55
|
def self.json_field_mappings
|
|
48
56
|
{
|
|
49
57
|
contains_url: 'contains_url',
|
|
58
|
+
semantic_filter_min_threshold: 'semantic_filter_min_threshold',
|
|
50
59
|
severity: 'severity',
|
|
51
60
|
threshold: 'threshold',
|
|
52
61
|
time_window: 'time_window',
|
|
53
62
|
blocklist_match: 'blocklist_match',
|
|
54
63
|
harm_labels: 'harm_labels',
|
|
64
|
+
semantic_filter_names: 'semantic_filter_names',
|
|
55
65
|
llm_harm_labels: 'llm_harm_labels'
|
|
56
66
|
}
|
|
57
67
|
end
|