getstream-ruby 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/getstream_ruby/generated/feeds_client.rb +81 -4
- data/lib/getstream_ruby/generated/models/activity_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/activity_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/add_comment_bookmark_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/add_comment_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/aggregation_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/ban_action_request_payload.rb +5 -0
- data/lib/getstream_ruby/generated/models/bookmark_response.rb +20 -0
- data/lib/getstream_ruby/generated/models/bypass_action_request.rb +31 -0
- data/lib/getstream_ruby/generated/models/bypass_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/bypass_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +20 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_session.rb +15 -0
- data/lib/getstream_ruby/generated/models/call_stats_report_ready_event.rb +5 -0
- data/lib/getstream_ruby/generated/models/call_stats_session_response.rb +61 -0
- data/lib/getstream_ruby/generated/models/comment_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/delete_comment_bookmark_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/emau_stats_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/entity_creator_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_input.rb +6 -1
- data/lib/getstream_ruby/generated/models/feed_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/feed_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_suggestion_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/follow_batch_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/follow_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/full_user_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/import_v2_task_item.rb +6 -1
- data/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +5 -0
- data/lib/getstream_ruby/generated/models/location.rb +10 -15
- data/lib/getstream_ruby/generated/models/query_activities_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_call_session_stats_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/query_call_session_stats_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/query_comments_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_reactions_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_threads_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/raw_record_settings.rb +6 -1
- data/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/submit_action_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/threaded_comment_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/unban_action_request_payload.rb +6 -1
- data/lib/getstream_ruby/generated/models/update_activities_partial_batch_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_activity_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/update_bookmark_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/update_comment_bookmark_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_comment_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_feed_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb +22 -12
- data/lib/getstream_ruby/generated/models/user_response.rb +5 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +27 -3
- data/lib/getstream_ruby/generated/video_client.rb +17 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59378b9d494daa078a110dbbf3b4a3966540a92d519046328912d707e5d58c51
|
|
4
|
+
data.tar.gz: 1ecc4e58ee556bac9dbec872aa0caa3ee678306a34b3e137b755d4fffa0e7baf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36e1370906f8f491e5360ebafdca9ce5c08846ebb4ba5901744f10a45a863a7c6b2b9792578fe71166a7cc7bda3e08b523f0b3fbda69d723d723999b2b0bdb56
|
|
7
|
+
data.tar.gz: 07d8cdcf47b41728081e35ab749e53a19ffba1daeed5206d178e0b44c2a64c195f02ba209666ca9f73f6641414b5238ec9452740dd8b60828e729a86a84f4989
|
|
@@ -335,16 +335,25 @@ module GetStream
|
|
|
335
335
|
# Returns activity by ID
|
|
336
336
|
#
|
|
337
337
|
# @param _id [String]
|
|
338
|
+
# @param comment_sort [String]
|
|
339
|
+
# @param comment_limit [Integer]
|
|
340
|
+
# @param user_id [String]
|
|
338
341
|
# @return [Models::GetActivityResponse]
|
|
339
|
-
def get_activity(_id)
|
|
342
|
+
def get_activity(_id, comment_sort = nil, comment_limit = nil, user_id = nil)
|
|
340
343
|
path = '/api/v2/feeds/activities/{id}'
|
|
341
344
|
# Replace path parameters
|
|
342
345
|
path = path.gsub('{id}', _id.to_s)
|
|
346
|
+
# Build query parameters
|
|
347
|
+
query_params = {}
|
|
348
|
+
query_params['comment_sort'] = comment_sort unless comment_sort.nil?
|
|
349
|
+
query_params['comment_limit'] = comment_limit unless comment_limit.nil?
|
|
350
|
+
query_params['user_id'] = user_id unless user_id.nil?
|
|
343
351
|
|
|
344
352
|
# Make the API request
|
|
345
353
|
@client.make_request(
|
|
346
354
|
:get,
|
|
347
|
-
path
|
|
355
|
+
path,
|
|
356
|
+
query_params: query_params
|
|
348
357
|
)
|
|
349
358
|
end
|
|
350
359
|
|
|
@@ -676,6 +685,69 @@ module GetStream
|
|
|
676
685
|
)
|
|
677
686
|
end
|
|
678
687
|
|
|
688
|
+
# Deletes a bookmark from a comment
|
|
689
|
+
#
|
|
690
|
+
# @param comment_id [String]
|
|
691
|
+
# @param folder_id [String]
|
|
692
|
+
# @param user_id [String]
|
|
693
|
+
# @return [Models::DeleteCommentBookmarkResponse]
|
|
694
|
+
def delete_comment_bookmark(comment_id, folder_id = nil, user_id = nil)
|
|
695
|
+
path = '/api/v2/feeds/comments/{comment_id}/bookmarks'
|
|
696
|
+
# Replace path parameters
|
|
697
|
+
path = path.gsub('{comment_id}', comment_id.to_s)
|
|
698
|
+
# Build query parameters
|
|
699
|
+
query_params = {}
|
|
700
|
+
query_params['folder_id'] = folder_id unless folder_id.nil?
|
|
701
|
+
query_params['user_id'] = user_id unless user_id.nil?
|
|
702
|
+
|
|
703
|
+
# Make the API request
|
|
704
|
+
@client.make_request(
|
|
705
|
+
:delete,
|
|
706
|
+
path,
|
|
707
|
+
query_params: query_params
|
|
708
|
+
)
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
# Updates a bookmark for a comment
|
|
712
|
+
#
|
|
713
|
+
# @param comment_id [String]
|
|
714
|
+
# @param update_comment_bookmark_request [UpdateCommentBookmarkRequest]
|
|
715
|
+
# @return [Models::UpdateCommentBookmarkResponse]
|
|
716
|
+
def update_comment_bookmark(comment_id, update_comment_bookmark_request)
|
|
717
|
+
path = '/api/v2/feeds/comments/{comment_id}/bookmarks'
|
|
718
|
+
# Replace path parameters
|
|
719
|
+
path = path.gsub('{comment_id}', comment_id.to_s)
|
|
720
|
+
# Build request body
|
|
721
|
+
body = update_comment_bookmark_request
|
|
722
|
+
|
|
723
|
+
# Make the API request
|
|
724
|
+
@client.make_request(
|
|
725
|
+
:patch,
|
|
726
|
+
path,
|
|
727
|
+
body: body
|
|
728
|
+
)
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
# Adds a bookmark to a comment
|
|
732
|
+
#
|
|
733
|
+
# @param comment_id [String]
|
|
734
|
+
# @param add_comment_bookmark_request [AddCommentBookmarkRequest]
|
|
735
|
+
# @return [Models::AddCommentBookmarkResponse]
|
|
736
|
+
def add_comment_bookmark(comment_id, add_comment_bookmark_request)
|
|
737
|
+
path = '/api/v2/feeds/comments/{comment_id}/bookmarks'
|
|
738
|
+
# Replace path parameters
|
|
739
|
+
path = path.gsub('{comment_id}', comment_id.to_s)
|
|
740
|
+
# Build request body
|
|
741
|
+
body = add_comment_bookmark_request
|
|
742
|
+
|
|
743
|
+
# Make the API request
|
|
744
|
+
@client.make_request(
|
|
745
|
+
:post,
|
|
746
|
+
path,
|
|
747
|
+
body: body
|
|
748
|
+
)
|
|
749
|
+
end
|
|
750
|
+
|
|
679
751
|
# Deletes a comment from an object (e.g., activity) and broadcasts appropriate events
|
|
680
752
|
#
|
|
681
753
|
# @param _id [String]
|
|
@@ -702,16 +774,21 @@ module GetStream
|
|
|
702
774
|
# Get a comment by ID
|
|
703
775
|
#
|
|
704
776
|
# @param _id [String]
|
|
777
|
+
# @param user_id [String]
|
|
705
778
|
# @return [Models::GetCommentResponse]
|
|
706
|
-
def get_comment(_id)
|
|
779
|
+
def get_comment(_id, user_id = nil)
|
|
707
780
|
path = '/api/v2/feeds/comments/{id}'
|
|
708
781
|
# Replace path parameters
|
|
709
782
|
path = path.gsub('{id}', _id.to_s)
|
|
783
|
+
# Build query parameters
|
|
784
|
+
query_params = {}
|
|
785
|
+
query_params['user_id'] = user_id unless user_id.nil?
|
|
710
786
|
|
|
711
787
|
# Make the API request
|
|
712
788
|
@client.make_request(
|
|
713
789
|
:get,
|
|
714
|
-
path
|
|
790
|
+
path,
|
|
791
|
+
query_params: query_params
|
|
715
792
|
)
|
|
716
793
|
end
|
|
717
794
|
|
|
@@ -74,7 +74,7 @@ module GetStream
|
|
|
74
74
|
# @return [Object] Custom data for the activity
|
|
75
75
|
attr_accessor :custom
|
|
76
76
|
# @!attribute location
|
|
77
|
-
# @return [
|
|
77
|
+
# @return [Location]
|
|
78
78
|
attr_accessor :location
|
|
79
79
|
# @!attribute search_data
|
|
80
80
|
# @return [Object] Additional data for search indexing
|
|
@@ -133,7 +133,7 @@ module GetStream
|
|
|
133
133
|
# @return [FeedResponse]
|
|
134
134
|
attr_accessor :current_feed
|
|
135
135
|
# @!attribute location
|
|
136
|
-
# @return [
|
|
136
|
+
# @return [Location]
|
|
137
137
|
attr_accessor :location
|
|
138
138
|
# @!attribute metrics
|
|
139
139
|
# @return [Hash<String, Integer>]
|
|
@@ -28,6 +28,9 @@ module GetStream
|
|
|
28
28
|
# @!attribute expires_at
|
|
29
29
|
# @return [String] Expiration time for the activity
|
|
30
30
|
attr_accessor :expires_at
|
|
31
|
+
# @!attribute force_moderation
|
|
32
|
+
# @return [Boolean]
|
|
33
|
+
attr_accessor :force_moderation
|
|
31
34
|
# @!attribute id
|
|
32
35
|
# @return [String] Optional ID for the activity
|
|
33
36
|
attr_accessor :id
|
|
@@ -77,7 +80,7 @@ module GetStream
|
|
|
77
80
|
# @return [Object] Custom data for the activity
|
|
78
81
|
attr_accessor :custom
|
|
79
82
|
# @!attribute location
|
|
80
|
-
# @return [
|
|
83
|
+
# @return [Location]
|
|
81
84
|
attr_accessor :location
|
|
82
85
|
# @!attribute search_data
|
|
83
86
|
# @return [Object] Additional data for search indexing
|
|
@@ -92,6 +95,7 @@ module GetStream
|
|
|
92
95
|
@create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil
|
|
93
96
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
94
97
|
@expires_at = attributes[:expires_at] || attributes['expires_at'] || nil
|
|
98
|
+
@force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil
|
|
95
99
|
@id = attributes[:id] || attributes['id'] || nil
|
|
96
100
|
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
97
101
|
@poll_id = attributes[:poll_id] || attributes['poll_id'] || nil
|
|
@@ -121,6 +125,7 @@ module GetStream
|
|
|
121
125
|
create_notification_activity: 'create_notification_activity',
|
|
122
126
|
enrich_own_fields: 'enrich_own_fields',
|
|
123
127
|
expires_at: 'expires_at',
|
|
128
|
+
force_moderation: 'force_moderation',
|
|
124
129
|
id: 'id',
|
|
125
130
|
parent_id: 'parent_id',
|
|
126
131
|
poll_id: 'poll_id',
|
|
@@ -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 AddCommentBookmarkRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute folder_id
|
|
13
|
+
# @return [String] ID of the folder to add the bookmark to
|
|
14
|
+
attr_accessor :folder_id
|
|
15
|
+
# @!attribute user_id
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :user_id
|
|
18
|
+
# @!attribute custom
|
|
19
|
+
# @return [Object] Custom data for the bookmark
|
|
20
|
+
attr_accessor :custom
|
|
21
|
+
# @!attribute new_folder
|
|
22
|
+
# @return [AddFolderRequest]
|
|
23
|
+
attr_accessor :new_folder
|
|
24
|
+
# @!attribute user
|
|
25
|
+
# @return [UserRequest]
|
|
26
|
+
attr_accessor :user
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@folder_id = attributes[:folder_id] || attributes['folder_id'] || nil
|
|
32
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
33
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
34
|
+
@new_folder = attributes[:new_folder] || attributes['new_folder'] || nil
|
|
35
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
folder_id: 'folder_id',
|
|
42
|
+
user_id: 'user_id',
|
|
43
|
+
custom: 'custom',
|
|
44
|
+
new_folder: 'new_folder',
|
|
45
|
+
user: 'user'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class AddCommentBookmarkResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute bookmark
|
|
16
|
+
# @return [BookmarkResponse]
|
|
17
|
+
attr_accessor :bookmark
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@bookmark = attributes[:bookmark] || attributes['bookmark']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
bookmark: 'bookmark'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -22,6 +22,9 @@ module GetStream
|
|
|
22
22
|
# @!attribute create_notification_activity
|
|
23
23
|
# @return [Boolean] Whether to create a notification activity for this comment
|
|
24
24
|
attr_accessor :create_notification_activity
|
|
25
|
+
# @!attribute force_moderation
|
|
26
|
+
# @return [Boolean] If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
|
|
27
|
+
attr_accessor :force_moderation
|
|
25
28
|
# @!attribute id
|
|
26
29
|
# @return [String] Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated.
|
|
27
30
|
attr_accessor :id
|
|
@@ -60,6 +63,7 @@ module GetStream
|
|
|
60
63
|
@comment = attributes[:comment] || attributes['comment'] || nil
|
|
61
64
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
62
65
|
@create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil
|
|
66
|
+
@force_moderation = attributes[:force_moderation] || attributes['force_moderation'] || nil
|
|
63
67
|
@id = attributes[:id] || attributes['id'] || nil
|
|
64
68
|
@object_type = attributes[:object_type] || attributes['object_type'] || nil
|
|
65
69
|
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
@@ -79,6 +83,7 @@ module GetStream
|
|
|
79
83
|
comment: 'comment',
|
|
80
84
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
81
85
|
create_notification_activity: 'create_notification_activity',
|
|
86
|
+
force_moderation: 'force_moderation',
|
|
82
87
|
id: 'id',
|
|
83
88
|
object_type: 'object_type',
|
|
84
89
|
parent_id: 'parent_id',
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class AggregationConfig < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute activities_sort
|
|
13
|
+
# @return [String] Order of member activities inside each aggregated group for non-stories feeds: created_at_desc (newest first, default) or created_at_asc (oldest first). Stories feeds ignore this and always use oldest first.
|
|
14
|
+
attr_accessor :activities_sort
|
|
12
15
|
# @!attribute format
|
|
13
16
|
# @return [String] Format for activity aggregation
|
|
14
17
|
attr_accessor :format
|
|
@@ -19,6 +22,7 @@ module GetStream
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
25
|
+
@activities_sort = attributes[:activities_sort] || attributes['activities_sort'] || nil
|
|
22
26
|
@format = attributes[:format] || attributes['format'] || nil
|
|
23
27
|
@score_strategy = attributes[:score_strategy] || attributes['score_strategy'] || nil
|
|
24
28
|
end
|
|
@@ -26,6 +30,7 @@ module GetStream
|
|
|
26
30
|
# Override field mappings for JSON serialization
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
33
|
+
activities_sort: 'activities_sort',
|
|
29
34
|
format: 'format',
|
|
30
35
|
score_strategy: 'score_strategy'
|
|
31
36
|
}
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class BanActionRequestPayload < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute ban_from_future_channels
|
|
13
|
+
# @return [Boolean] Also ban user from all channels this moderator creates in the future
|
|
14
|
+
attr_accessor :ban_from_future_channels
|
|
12
15
|
# @!attribute channel_ban_only
|
|
13
16
|
# @return [Boolean] Ban only from specific channel
|
|
14
17
|
attr_accessor :channel_ban_only
|
|
@@ -37,6 +40,7 @@ module GetStream
|
|
|
37
40
|
# Initialize with attributes
|
|
38
41
|
def initialize(attributes = {})
|
|
39
42
|
super(attributes)
|
|
43
|
+
@ban_from_future_channels = attributes[:ban_from_future_channels] || attributes['ban_from_future_channels'] || nil
|
|
40
44
|
@channel_ban_only = attributes[:channel_ban_only] || attributes['channel_ban_only'] || nil
|
|
41
45
|
@channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil
|
|
42
46
|
@delete_messages = attributes[:delete_messages] || attributes['delete_messages'] || nil
|
|
@@ -50,6 +54,7 @@ module GetStream
|
|
|
50
54
|
# Override field mappings for JSON serialization
|
|
51
55
|
def self.json_field_mappings
|
|
52
56
|
{
|
|
57
|
+
ban_from_future_channels: 'ban_from_future_channels',
|
|
53
58
|
channel_ban_only: 'channel_ban_only',
|
|
54
59
|
channel_cid: 'channel_cid',
|
|
55
60
|
delete_messages: 'delete_messages',
|
|
@@ -9,9 +9,15 @@ module GetStream
|
|
|
9
9
|
class BookmarkResponse < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute _object_id
|
|
13
|
+
# @return [String] ID of the bookmarked object
|
|
14
|
+
attr_accessor :_object_id
|
|
12
15
|
# @!attribute created_at
|
|
13
16
|
# @return [DateTime] When the bookmark was created
|
|
14
17
|
attr_accessor :created_at
|
|
18
|
+
# @!attribute object_type
|
|
19
|
+
# @return [String] Type of the bookmarked object (activity or comment)
|
|
20
|
+
attr_accessor :object_type
|
|
15
21
|
# @!attribute updated_at
|
|
16
22
|
# @return [DateTime] When the bookmark was last updated
|
|
17
23
|
attr_accessor :updated_at
|
|
@@ -21,6 +27,12 @@ module GetStream
|
|
|
21
27
|
# @!attribute user
|
|
22
28
|
# @return [UserResponse]
|
|
23
29
|
attr_accessor :user
|
|
30
|
+
# @!attribute activity_id
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :activity_id
|
|
33
|
+
# @!attribute comment
|
|
34
|
+
# @return [CommentResponse]
|
|
35
|
+
attr_accessor :comment
|
|
24
36
|
# @!attribute custom
|
|
25
37
|
# @return [Object] Custom data for the bookmark
|
|
26
38
|
attr_accessor :custom
|
|
@@ -31,10 +43,14 @@ module GetStream
|
|
|
31
43
|
# Initialize with attributes
|
|
32
44
|
def initialize(attributes = {})
|
|
33
45
|
super(attributes)
|
|
46
|
+
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
34
47
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
48
|
+
@object_type = attributes[:object_type] || attributes['object_type']
|
|
35
49
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
36
50
|
@activity = attributes[:activity] || attributes['activity']
|
|
37
51
|
@user = attributes[:user] || attributes['user']
|
|
52
|
+
@activity_id = attributes[:activity_id] || attributes['activity_id'] || nil
|
|
53
|
+
@comment = attributes[:comment] || attributes['comment'] || nil
|
|
38
54
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
39
55
|
@folder = attributes[:folder] || attributes['folder'] || nil
|
|
40
56
|
end
|
|
@@ -42,10 +58,14 @@ module GetStream
|
|
|
42
58
|
# Override field mappings for JSON serialization
|
|
43
59
|
def self.json_field_mappings
|
|
44
60
|
{
|
|
61
|
+
_object_id: 'object_id',
|
|
45
62
|
created_at: 'created_at',
|
|
63
|
+
object_type: 'object_type',
|
|
46
64
|
updated_at: 'updated_at',
|
|
47
65
|
activity: 'activity',
|
|
48
66
|
user: 'user',
|
|
67
|
+
activity_id: 'activity_id',
|
|
68
|
+
comment: 'comment',
|
|
49
69
|
custom: 'custom',
|
|
50
70
|
folder: 'folder'
|
|
51
71
|
}
|
|
@@ -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 BypassActionRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute enabled
|
|
13
|
+
# @return [Boolean]
|
|
14
|
+
attr_accessor :enabled
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@enabled = attributes[:enabled] || attributes['enabled'] || nil
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
enabled: 'enabled'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
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 BypassRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute enabled
|
|
13
|
+
# @return [Boolean] Whether to enable moderation bypass for this user
|
|
14
|
+
attr_accessor :enabled
|
|
15
|
+
# @!attribute target_user_id
|
|
16
|
+
# @return [String] ID of the user to update
|
|
17
|
+
attr_accessor :target_user_id
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@enabled = attributes[:enabled] || attributes['enabled']
|
|
23
|
+
@target_user_id = attributes[:target_user_id] || attributes['target_user_id']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
enabled: 'enabled',
|
|
30
|
+
target_user_id: 'target_user_id'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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 BypassResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
duration: 'duration'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -27,12 +27,24 @@ module GetStream
|
|
|
27
27
|
# @!attribute sessions
|
|
28
28
|
# @return [Integer]
|
|
29
29
|
attr_accessor :sessions
|
|
30
|
+
# @!attribute sfus_used
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
attr_accessor :sfus_used
|
|
33
|
+
# @!attribute average_jitter_ms
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
attr_accessor :average_jitter_ms
|
|
36
|
+
# @!attribute average_latency_ms
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :average_latency_ms
|
|
30
39
|
# @!attribute call_event_count
|
|
31
40
|
# @return [Integer]
|
|
32
41
|
attr_accessor :call_event_count
|
|
33
42
|
# @!attribute cq_score
|
|
34
43
|
# @return [Integer]
|
|
35
44
|
attr_accessor :cq_score
|
|
45
|
+
# @!attribute max_freezes_duration_ms
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
attr_accessor :max_freezes_duration_ms
|
|
36
48
|
# @!attribute total_participant_duration
|
|
37
49
|
# @return [Integer]
|
|
38
50
|
attr_accessor :total_participant_duration
|
|
@@ -46,8 +58,12 @@ module GetStream
|
|
|
46
58
|
@peak_concurrent_users = attributes[:peak_concurrent_users] || attributes['peak_concurrent_users']
|
|
47
59
|
@publishers = attributes[:publishers] || attributes['publishers']
|
|
48
60
|
@sessions = attributes[:sessions] || attributes['sessions']
|
|
61
|
+
@sfus_used = attributes[:sfus_used] || attributes['sfus_used']
|
|
62
|
+
@average_jitter_ms = attributes[:average_jitter_ms] || attributes['average_jitter_ms'] || nil
|
|
63
|
+
@average_latency_ms = attributes[:average_latency_ms] || attributes['average_latency_ms'] || nil
|
|
49
64
|
@call_event_count = attributes[:call_event_count] || attributes['call_event_count'] || nil
|
|
50
65
|
@cq_score = attributes[:cq_score] || attributes['cq_score'] || nil
|
|
66
|
+
@max_freezes_duration_ms = attributes[:max_freezes_duration_ms] || attributes['max_freezes_duration_ms'] || nil
|
|
51
67
|
@total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration'] || nil
|
|
52
68
|
end
|
|
53
69
|
|
|
@@ -60,8 +76,12 @@ module GetStream
|
|
|
60
76
|
peak_concurrent_users: 'peak_concurrent_users',
|
|
61
77
|
publishers: 'publishers',
|
|
62
78
|
sessions: 'sessions',
|
|
79
|
+
sfus_used: 'sfus_used',
|
|
80
|
+
average_jitter_ms: 'average_jitter_ms',
|
|
81
|
+
average_latency_ms: 'average_latency_ms',
|
|
63
82
|
call_event_count: 'call_event_count',
|
|
64
83
|
cq_score: 'cq_score',
|
|
84
|
+
max_freezes_duration_ms: 'max_freezes_duration_ms',
|
|
65
85
|
total_participant_duration: 'total_participant_duration'
|
|
66
86
|
}
|
|
67
87
|
end
|
|
@@ -39,6 +39,15 @@ module GetStream
|
|
|
39
39
|
# @!attribute ended_at
|
|
40
40
|
# @return [DateTime]
|
|
41
41
|
attr_accessor :ended_at
|
|
42
|
+
# @!attribute freezes_duration_ms
|
|
43
|
+
# @return [Integer]
|
|
44
|
+
attr_accessor :freezes_duration_ms
|
|
45
|
+
# @!attribute jitter_ms
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
attr_accessor :jitter_ms
|
|
48
|
+
# @!attribute latency_ms
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :latency_ms
|
|
42
51
|
# @!attribute os
|
|
43
52
|
# @return [String]
|
|
44
53
|
attr_accessor :os
|
|
@@ -77,6 +86,9 @@ module GetStream
|
|
|
77
86
|
@current_sfu = attributes[:current_sfu] || attributes['current_sfu'] || nil
|
|
78
87
|
@distance_to_sfu_kilometers = attributes[:distance_to_sfu_kilometers] || attributes['distance_to_sfu_kilometers'] || nil
|
|
79
88
|
@ended_at = attributes[:ended_at] || attributes['ended_at'] || nil
|
|
89
|
+
@freezes_duration_ms = attributes[:freezes_duration_ms] || attributes['freezes_duration_ms'] || nil
|
|
90
|
+
@jitter_ms = attributes[:jitter_ms] || attributes['jitter_ms'] || nil
|
|
91
|
+
@latency_ms = attributes[:latency_ms] || attributes['latency_ms'] || nil
|
|
80
92
|
@os = attributes[:os] || attributes['os'] || nil
|
|
81
93
|
@publisher_type = attributes[:publisher_type] || attributes['publisher_type'] || nil
|
|
82
94
|
@sdk = attributes[:sdk] || attributes['sdk'] || nil
|
|
@@ -100,6 +112,9 @@ module GetStream
|
|
|
100
112
|
current_sfu: 'current_sfu',
|
|
101
113
|
distance_to_sfu_kilometers: 'distance_to_sfu_kilometers',
|
|
102
114
|
ended_at: 'ended_at',
|
|
115
|
+
freezes_duration_ms: 'freezes_duration_ms',
|
|
116
|
+
jitter_ms: 'jitter_ms',
|
|
117
|
+
latency_ms: 'latency_ms',
|
|
103
118
|
os: 'os',
|
|
104
119
|
publisher_type: 'publisher_type',
|
|
105
120
|
sdk: 'sdk',
|
|
@@ -18,6 +18,9 @@ module GetStream
|
|
|
18
18
|
# @!attribute session_id
|
|
19
19
|
# @return [String] Call session ID
|
|
20
20
|
attr_accessor :session_id
|
|
21
|
+
# @!attribute counts
|
|
22
|
+
# @return [CallStatsParticipantCounts]
|
|
23
|
+
attr_accessor :counts
|
|
21
24
|
# @!attribute type
|
|
22
25
|
# @return [String] The type of event, "call.report_ready" in this case
|
|
23
26
|
attr_accessor :type
|
|
@@ -34,6 +37,7 @@ module GetStream
|
|
|
34
37
|
@call_cid = attributes[:call_cid] || attributes['call_cid']
|
|
35
38
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
36
39
|
@session_id = attributes[:session_id] || attributes['session_id']
|
|
40
|
+
@counts = attributes[:counts] || attributes['counts']
|
|
37
41
|
@type = attributes[:type] || attributes['type'] || "call.stats_report_ready"
|
|
38
42
|
@is_trimmed = attributes[:is_trimmed] || attributes['is_trimmed'] || nil
|
|
39
43
|
@participants_overview = attributes[:participants_overview] || attributes['participants_overview'] || nil
|
|
@@ -45,6 +49,7 @@ module GetStream
|
|
|
45
49
|
call_cid: 'call_cid',
|
|
46
50
|
created_at: 'created_at',
|
|
47
51
|
session_id: 'session_id',
|
|
52
|
+
counts: 'counts',
|
|
48
53
|
type: 'type',
|
|
49
54
|
is_trimmed: 'is_trimmed',
|
|
50
55
|
participants_overview: 'participants_overview'
|