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
|
@@ -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 IndividualRecordingResponse < 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 IndividualRecordingSettingsRequest < 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 IndividualRecordingSettingsResponse < 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,61 @@
|
|
|
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
|
+
# This event is sent when a critical error occurs that breaks the streaming pipeline
|
|
9
|
+
class IngressErrorEvent < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute call_cid
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :call_cid
|
|
15
|
+
# @!attribute created_at
|
|
16
|
+
# @return [DateTime]
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
# @!attribute error
|
|
19
|
+
# @return [String] Human-readable error message
|
|
20
|
+
attr_accessor :error
|
|
21
|
+
# @!attribute ingress_stream_id
|
|
22
|
+
# @return [String] Unique identifier for the stream
|
|
23
|
+
attr_accessor :ingress_stream_id
|
|
24
|
+
# @!attribute user_id
|
|
25
|
+
# @return [String] User who was streaming
|
|
26
|
+
attr_accessor :user_id
|
|
27
|
+
# @!attribute type
|
|
28
|
+
# @return [String] The type of event: "ingress.error" in this case
|
|
29
|
+
attr_accessor :type
|
|
30
|
+
# @!attribute code
|
|
31
|
+
# @return [String] Error code
|
|
32
|
+
attr_accessor :code
|
|
33
|
+
|
|
34
|
+
# Initialize with attributes
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
super(attributes)
|
|
37
|
+
@call_cid = attributes[:call_cid] || attributes['call_cid']
|
|
38
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
39
|
+
@error = attributes[:error] || attributes['error']
|
|
40
|
+
@ingress_stream_id = attributes[:ingress_stream_id] || attributes['ingress_stream_id']
|
|
41
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
42
|
+
@type = attributes[:type] || attributes['type'] || "ingress.error"
|
|
43
|
+
@code = attributes[:code] || attributes['code'] || nil
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Override field mappings for JSON serialization
|
|
47
|
+
def self.json_field_mappings
|
|
48
|
+
{
|
|
49
|
+
call_cid: 'call_cid',
|
|
50
|
+
created_at: 'created_at',
|
|
51
|
+
error: 'error',
|
|
52
|
+
ingress_stream_id: 'ingress_stream_id',
|
|
53
|
+
user_id: 'user_id',
|
|
54
|
+
type: 'type',
|
|
55
|
+
code: 'code'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
# This event is sent when a user begins streaming into a call
|
|
9
|
+
class IngressStartedEvent < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute call_cid
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :call_cid
|
|
15
|
+
# @!attribute created_at
|
|
16
|
+
# @return [DateTime]
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
# @!attribute ingress_stream_id
|
|
19
|
+
# @return [String] Unique identifier for this stream
|
|
20
|
+
attr_accessor :ingress_stream_id
|
|
21
|
+
# @!attribute publisher_type
|
|
22
|
+
# @return [String] Streaming protocol (e.g., 'rtmps', 'srt', 'rtmp', 'rtsp')
|
|
23
|
+
attr_accessor :publisher_type
|
|
24
|
+
# @!attribute user_id
|
|
25
|
+
# @return [String] User who started the stream
|
|
26
|
+
attr_accessor :user_id
|
|
27
|
+
# @!attribute type
|
|
28
|
+
# @return [String] The type of event: "ingress.started" in this case
|
|
29
|
+
attr_accessor :type
|
|
30
|
+
# @!attribute client_ip
|
|
31
|
+
# @return [String] Client IP address
|
|
32
|
+
attr_accessor :client_ip
|
|
33
|
+
# @!attribute client_name
|
|
34
|
+
# @return [String] Streaming client software name (e.g., 'OBS Studio')
|
|
35
|
+
attr_accessor :client_name
|
|
36
|
+
# @!attribute version
|
|
37
|
+
# @return [String] Client software version
|
|
38
|
+
attr_accessor :version
|
|
39
|
+
|
|
40
|
+
# Initialize with attributes
|
|
41
|
+
def initialize(attributes = {})
|
|
42
|
+
super(attributes)
|
|
43
|
+
@call_cid = attributes[:call_cid] || attributes['call_cid']
|
|
44
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
45
|
+
@ingress_stream_id = attributes[:ingress_stream_id] || attributes['ingress_stream_id']
|
|
46
|
+
@publisher_type = attributes[:publisher_type] || attributes['publisher_type']
|
|
47
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
48
|
+
@type = attributes[:type] || attributes['type'] || "ingress.started"
|
|
49
|
+
@client_ip = attributes[:client_ip] || attributes['client_ip'] || nil
|
|
50
|
+
@client_name = attributes[:client_name] || attributes['client_name'] || nil
|
|
51
|
+
@version = attributes[:version] || attributes['version'] || nil
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Override field mappings for JSON serialization
|
|
55
|
+
def self.json_field_mappings
|
|
56
|
+
{
|
|
57
|
+
call_cid: 'call_cid',
|
|
58
|
+
created_at: 'created_at',
|
|
59
|
+
ingress_stream_id: 'ingress_stream_id',
|
|
60
|
+
publisher_type: 'publisher_type',
|
|
61
|
+
user_id: 'user_id',
|
|
62
|
+
type: 'type',
|
|
63
|
+
client_ip: 'client_ip',
|
|
64
|
+
client_name: 'client_name',
|
|
65
|
+
version: 'version'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
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
|
+
# This event is sent when streaming stops due to user action or call ended
|
|
9
|
+
class IngressStoppedEvent < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute call_cid
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :call_cid
|
|
15
|
+
# @!attribute created_at
|
|
16
|
+
# @return [DateTime]
|
|
17
|
+
attr_accessor :created_at
|
|
18
|
+
# @!attribute ingress_stream_id
|
|
19
|
+
# @return [String] Unique identifier for the stream
|
|
20
|
+
attr_accessor :ingress_stream_id
|
|
21
|
+
# @!attribute user_id
|
|
22
|
+
# @return [String] User who was streaming
|
|
23
|
+
attr_accessor :user_id
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# @return [String] The type of event: "ingress.stopped" in this case
|
|
26
|
+
attr_accessor :type
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@call_cid = attributes[:call_cid] || attributes['call_cid']
|
|
32
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
33
|
+
@ingress_stream_id = attributes[:ingress_stream_id] || attributes['ingress_stream_id']
|
|
34
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
35
|
+
@type = attributes[:type] || attributes['type'] || "ingress.stopped"
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
call_cid: 'call_cid',
|
|
42
|
+
created_at: 'created_at',
|
|
43
|
+
ingress_stream_id: 'ingress_stream_id',
|
|
44
|
+
user_id: 'user_id',
|
|
45
|
+
type: 'type'
|
|
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
|
+
# Basic response information
|
|
9
|
+
class ListImportV2TasksResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute import_tasks
|
|
16
|
+
# @return [Array<ImportV2TaskItem>]
|
|
17
|
+
attr_accessor :import_tasks
|
|
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
|
+
@import_tasks = attributes[:import_tasks] || attributes['import_tasks']
|
|
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
|
+
import_tasks: 'import_tasks',
|
|
39
|
+
next: 'next',
|
|
40
|
+
prev: 'prev'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute content_to_mark_as_reviewed_limit
|
|
13
13
|
# @return [Integer]
|
|
14
14
|
attr_accessor :content_to_mark_as_reviewed_limit
|
|
15
|
+
# @!attribute decision_reason
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :decision_reason
|
|
15
18
|
# @!attribute disable_marking_content_as_reviewed
|
|
16
19
|
# @return [Boolean]
|
|
17
20
|
attr_accessor :disable_marking_content_as_reviewed
|
|
@@ -20,6 +23,7 @@ module GetStream
|
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@content_to_mark_as_reviewed_limit = attributes[:content_to_mark_as_reviewed_limit] || attributes['content_to_mark_as_reviewed_limit'] || nil
|
|
26
|
+
@decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil
|
|
23
27
|
@disable_marking_content_as_reviewed = attributes[:disable_marking_content_as_reviewed] || attributes['disable_marking_content_as_reviewed'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
@@ -27,6 +31,7 @@ module GetStream
|
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
content_to_mark_as_reviewed_limit: 'content_to_mark_as_reviewed_limit',
|
|
34
|
+
decision_reason: 'decision_reason',
|
|
30
35
|
disable_marking_content_as_reviewed: 'disable_marking_content_as_reviewed'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
@@ -48,7 +48,7 @@ module GetStream
|
|
|
48
48
|
@cid = attributes[:cid] || attributes['cid']
|
|
49
49
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
50
50
|
@watcher_count = attributes[:watcher_count] || attributes['watcher_count']
|
|
51
|
-
@type = attributes[:type] || attributes['type'] || "
|
|
51
|
+
@type = attributes[:type] || attributes['type'] || "message.new"
|
|
52
52
|
@team = attributes[:team] || attributes['team'] || nil
|
|
53
53
|
@thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil
|
|
54
54
|
@message = attributes[:message] || attributes['message'] || nil
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
module GetStream
|
|
6
6
|
module Generated
|
|
7
7
|
module Models
|
|
8
|
-
# Request to get own_follows, own_capabilities, and/or own_membership for multiple feeds. If fields is not specified, all
|
|
8
|
+
# Request to get own_follows, own_followings, own_capabilities, and/or own_membership for multiple feeds. If fields is not specified, all fields are returned.
|
|
9
9
|
class OwnBatchRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
@@ -16,7 +16,7 @@ module GetStream
|
|
|
16
16
|
# @return [String]
|
|
17
17
|
attr_accessor :user_id
|
|
18
18
|
# @!attribute fields
|
|
19
|
-
# @return [Array<String>] Optional list of specific fields to return. If not specified, all fields (own_follows, own_capabilities, own_membership) are returned
|
|
19
|
+
# @return [Array<String>] Optional list of specific fields to return. If not specified, all fields (own_follows, own_followings, own_capabilities, own_membership) are returned
|
|
20
20
|
attr_accessor :fields
|
|
21
21
|
# @!attribute user
|
|
22
22
|
# @return [UserRequest]
|
|
@@ -0,0 +1,61 @@
|
|
|
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 ParticipantSessionDetails < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute publisher_type
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :publisher_type
|
|
15
|
+
# @!attribute user_id
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :user_id
|
|
18
|
+
# @!attribute user_session_id
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :user_session_id
|
|
21
|
+
# @!attribute roles
|
|
22
|
+
# @return [Array<String>]
|
|
23
|
+
attr_accessor :roles
|
|
24
|
+
# @!attribute duration_in_seconds
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
attr_accessor :duration_in_seconds
|
|
27
|
+
# @!attribute joined_at
|
|
28
|
+
# @return [DateTime]
|
|
29
|
+
attr_accessor :joined_at
|
|
30
|
+
# @!attribute left_at
|
|
31
|
+
# @return [DateTime]
|
|
32
|
+
attr_accessor :left_at
|
|
33
|
+
|
|
34
|
+
# Initialize with attributes
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
super(attributes)
|
|
37
|
+
@publisher_type = attributes[:publisher_type] || attributes['publisher_type']
|
|
38
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
39
|
+
@user_session_id = attributes[:user_session_id] || attributes['user_session_id']
|
|
40
|
+
@roles = attributes[:roles] || attributes['roles']
|
|
41
|
+
@duration_in_seconds = attributes[:duration_in_seconds] || attributes['duration_in_seconds'] || nil
|
|
42
|
+
@joined_at = attributes[:joined_at] || attributes['joined_at'] || nil
|
|
43
|
+
@left_at = attributes[:left_at] || attributes['left_at'] || nil
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Override field mappings for JSON serialization
|
|
47
|
+
def self.json_field_mappings
|
|
48
|
+
{
|
|
49
|
+
publisher_type: 'publisher_type',
|
|
50
|
+
user_id: 'user_id',
|
|
51
|
+
user_session_id: 'user_session_id',
|
|
52
|
+
roles: 'roles',
|
|
53
|
+
duration_in_seconds: 'duration_in_seconds',
|
|
54
|
+
joined_at: 'joined_at',
|
|
55
|
+
left_at: 'left_at'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute duration
|
|
13
13
|
# @return [String] Duration of the request in milliseconds
|
|
14
14
|
attr_accessor :duration
|
|
15
|
+
# @!attribute poll
|
|
16
|
+
# @return [PollResponseData]
|
|
17
|
+
attr_accessor :poll
|
|
15
18
|
# @!attribute vote
|
|
16
19
|
# @return [PollVoteResponseData]
|
|
17
20
|
attr_accessor :vote
|
|
@@ -20,6 +23,7 @@ module GetStream
|
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@duration = attributes[:duration] || attributes['duration']
|
|
26
|
+
@poll = attributes[:poll] || attributes['poll'] || nil
|
|
23
27
|
@vote = attributes[:vote] || attributes['vote'] || 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
|
+
poll: 'poll',
|
|
30
35
|
vote: 'vote'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
@@ -0,0 +1,61 @@
|
|
|
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 QueryAppealsRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute limit
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :limit
|
|
15
|
+
# @!attribute next
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :next
|
|
18
|
+
# @!attribute prev
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :prev
|
|
21
|
+
# @!attribute user_id
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :user_id
|
|
24
|
+
# @!attribute sort
|
|
25
|
+
# @return [Array<SortParamRequest>] Sorting parameters for appeals
|
|
26
|
+
attr_accessor :sort
|
|
27
|
+
# @!attribute filter
|
|
28
|
+
# @return [Object] Filter conditions for appeals
|
|
29
|
+
attr_accessor :filter
|
|
30
|
+
# @!attribute user
|
|
31
|
+
# @return [UserRequest]
|
|
32
|
+
attr_accessor :user
|
|
33
|
+
|
|
34
|
+
# Initialize with attributes
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
super(attributes)
|
|
37
|
+
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
38
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
39
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
40
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
41
|
+
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
42
|
+
@filter = attributes[:filter] || attributes['filter'] || nil
|
|
43
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Override field mappings for JSON serialization
|
|
47
|
+
def self.json_field_mappings
|
|
48
|
+
{
|
|
49
|
+
limit: 'limit',
|
|
50
|
+
next: 'next',
|
|
51
|
+
prev: 'prev',
|
|
52
|
+
user_id: 'user_id',
|
|
53
|
+
sort: 'sort',
|
|
54
|
+
filter: 'filter',
|
|
55
|
+
user: 'user'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
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 QueryAppealsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute items
|
|
16
|
+
# @return [Array<AppealItemResponse>] List of Appeal Items
|
|
17
|
+
attr_accessor :items
|
|
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
|
+
@items = attributes[:items] || attributes['items']
|
|
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
|
+
items: 'items',
|
|
39
|
+
next: 'next',
|
|
40
|
+
prev: 'prev'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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
|
+
# Basic response information
|
|
9
|
+
class QueryCallParticipantSessionsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute call_id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :call_id
|
|
15
|
+
# @!attribute call_session_id
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :call_session_id
|
|
18
|
+
# @!attribute call_type
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :call_type
|
|
21
|
+
# @!attribute duration
|
|
22
|
+
# @return [Integer] Duration of the request in milliseconds
|
|
23
|
+
attr_accessor :duration
|
|
24
|
+
# @!attribute total_participant_duration
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
attr_accessor :total_participant_duration
|
|
27
|
+
# @!attribute total_participant_sessions
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
attr_accessor :total_participant_sessions
|
|
30
|
+
# @!attribute participants_sessions
|
|
31
|
+
# @return [Array<ParticipantSessionDetails>]
|
|
32
|
+
attr_accessor :participants_sessions
|
|
33
|
+
# @!attribute next
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :next
|
|
36
|
+
# @!attribute prev
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :prev
|
|
39
|
+
# @!attribute session
|
|
40
|
+
# @return [CallSessionResponse]
|
|
41
|
+
attr_accessor :session
|
|
42
|
+
|
|
43
|
+
# Initialize with attributes
|
|
44
|
+
def initialize(attributes = {})
|
|
45
|
+
super(attributes)
|
|
46
|
+
@call_id = attributes[:call_id] || attributes['call_id']
|
|
47
|
+
@call_session_id = attributes[:call_session_id] || attributes['call_session_id']
|
|
48
|
+
@call_type = attributes[:call_type] || attributes['call_type']
|
|
49
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
50
|
+
@total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration']
|
|
51
|
+
@total_participant_sessions = attributes[:total_participant_sessions] || attributes['total_participant_sessions']
|
|
52
|
+
@participants_sessions = attributes[:participants_sessions] || attributes['participants_sessions']
|
|
53
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
54
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
55
|
+
@session = attributes[:session] || attributes['session'] || nil
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Override field mappings for JSON serialization
|
|
59
|
+
def self.json_field_mappings
|
|
60
|
+
{
|
|
61
|
+
call_id: 'call_id',
|
|
62
|
+
call_session_id: 'call_session_id',
|
|
63
|
+
call_type: 'call_type',
|
|
64
|
+
duration: 'duration',
|
|
65
|
+
total_participant_duration: 'total_participant_duration',
|
|
66
|
+
total_participant_sessions: 'total_participant_sessions',
|
|
67
|
+
participants_sessions: 'participants_sessions',
|
|
68
|
+
next: 'next',
|
|
69
|
+
prev: 'prev',
|
|
70
|
+
session: 'session'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|