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
|
@@ -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 CallStatsSessionResponse < 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 generated_at
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :generated_at
|
|
24
|
+
# @!attribute counts
|
|
25
|
+
# @return [CallStatsParticipantCounts]
|
|
26
|
+
attr_accessor :counts
|
|
27
|
+
# @!attribute call_ended_at
|
|
28
|
+
# @return [DateTime]
|
|
29
|
+
attr_accessor :call_ended_at
|
|
30
|
+
# @!attribute call_started_at
|
|
31
|
+
# @return [DateTime]
|
|
32
|
+
attr_accessor :call_started_at
|
|
33
|
+
|
|
34
|
+
# Initialize with attributes
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
super(attributes)
|
|
37
|
+
@call_id = attributes[:call_id] || attributes['call_id']
|
|
38
|
+
@call_session_id = attributes[:call_session_id] || attributes['call_session_id']
|
|
39
|
+
@call_type = attributes[:call_type] || attributes['call_type']
|
|
40
|
+
@generated_at = attributes[:generated_at] || attributes['generated_at']
|
|
41
|
+
@counts = attributes[:counts] || attributes['counts']
|
|
42
|
+
@call_ended_at = attributes[:call_ended_at] || attributes['call_ended_at'] || nil
|
|
43
|
+
@call_started_at = attributes[:call_started_at] || attributes['call_started_at'] || nil
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Override field mappings for JSON serialization
|
|
47
|
+
def self.json_field_mappings
|
|
48
|
+
{
|
|
49
|
+
call_id: 'call_id',
|
|
50
|
+
call_session_id: 'call_session_id',
|
|
51
|
+
call_type: 'call_type',
|
|
52
|
+
generated_at: 'generated_at',
|
|
53
|
+
counts: 'counts',
|
|
54
|
+
call_ended_at: 'call_ended_at',
|
|
55
|
+
call_started_at: 'call_started_at'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute _object_id
|
|
13
13
|
# @return [String] ID of the object this comment is associated with
|
|
14
14
|
attr_accessor :_object_id
|
|
15
|
+
# @!attribute bookmark_count
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :bookmark_count
|
|
15
18
|
# @!attribute confidence_score
|
|
16
19
|
# @return [Float] Confidence score of the comment
|
|
17
20
|
attr_accessor :confidence_score
|
|
@@ -89,6 +92,7 @@ module GetStream
|
|
|
89
92
|
def initialize(attributes = {})
|
|
90
93
|
super(attributes)
|
|
91
94
|
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
95
|
+
@bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count']
|
|
92
96
|
@confidence_score = attributes[:confidence_score] || attributes['confidence_score']
|
|
93
97
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
94
98
|
@downvote_count = attributes[:downvote_count] || attributes['downvote_count']
|
|
@@ -119,6 +123,7 @@ module GetStream
|
|
|
119
123
|
def self.json_field_mappings
|
|
120
124
|
{
|
|
121
125
|
_object_id: 'object_id',
|
|
126
|
+
bookmark_count: 'bookmark_count',
|
|
122
127
|
confidence_score: 'confidence_score',
|
|
123
128
|
created_at: 'created_at',
|
|
124
129
|
downvote_count: 'downvote_count',
|
|
@@ -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 DeleteCommentBookmarkResponse < 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
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class EMAUStatsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute daily
|
|
13
|
+
# @return [Array<DailyMetricResponse>] Per-day unique engaged user counts
|
|
14
|
+
attr_accessor :daily
|
|
15
|
+
# @!attribute last_30_days
|
|
16
|
+
# @return [Array<DailyMetricResponse>] Rolling 30-day engaged user count snapshots
|
|
17
|
+
attr_accessor :last_30_days
|
|
18
|
+
# @!attribute month_to_date
|
|
19
|
+
# @return [Array<DailyMetricResponse>] Calendar month-to-date engaged user count snapshots
|
|
20
|
+
attr_accessor :month_to_date
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@daily = attributes[:daily] || attributes['daily']
|
|
26
|
+
@last_30_days = attributes[:last_30_days] || attributes['last_30_days']
|
|
27
|
+
@month_to_date = attributes[:month_to_date] || attributes['month_to_date']
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
daily: 'daily',
|
|
34
|
+
last_30_days: 'last_30_days',
|
|
35
|
+
month_to_date: 'month_to_date'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -60,6 +60,9 @@ module GetStream
|
|
|
60
60
|
# @!attribute ban_expires
|
|
61
61
|
# @return [DateTime]
|
|
62
62
|
attr_accessor :ban_expires
|
|
63
|
+
# @!attribute bypass_moderation
|
|
64
|
+
# @return [Boolean]
|
|
65
|
+
attr_accessor :bypass_moderation
|
|
63
66
|
# @!attribute deactivated_at
|
|
64
67
|
# @return [DateTime]
|
|
65
68
|
attr_accessor :deactivated_at
|
|
@@ -111,6 +114,7 @@ module GetStream
|
|
|
111
114
|
@custom = attributes[:custom] || attributes['custom']
|
|
112
115
|
@avg_response_time = attributes[:avg_response_time] || attributes['avg_response_time'] || nil
|
|
113
116
|
@ban_expires = attributes[:ban_expires] || attributes['ban_expires'] || nil
|
|
117
|
+
@bypass_moderation = attributes[:bypass_moderation] || attributes['bypass_moderation'] || nil
|
|
114
118
|
@deactivated_at = attributes[:deactivated_at] || attributes['deactivated_at'] || nil
|
|
115
119
|
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
116
120
|
@image = attributes[:image] || attributes['image'] || nil
|
|
@@ -143,6 +147,7 @@ module GetStream
|
|
|
143
147
|
custom: 'custom',
|
|
144
148
|
avg_response_time: 'avg_response_time',
|
|
145
149
|
ban_expires: 'ban_expires',
|
|
150
|
+
bypass_moderation: 'bypass_moderation',
|
|
146
151
|
deactivated_at: 'deactivated_at',
|
|
147
152
|
deleted_at: 'deleted_at',
|
|
148
153
|
image: 'image',
|
|
@@ -27,6 +27,9 @@ module GetStream
|
|
|
27
27
|
# @!attribute custom
|
|
28
28
|
# @return [Object]
|
|
29
29
|
attr_accessor :custom
|
|
30
|
+
# @!attribute location
|
|
31
|
+
# @return [Location]
|
|
32
|
+
attr_accessor :location
|
|
30
33
|
|
|
31
34
|
# Initialize with attributes
|
|
32
35
|
def initialize(attributes = {})
|
|
@@ -37,6 +40,7 @@ module GetStream
|
|
|
37
40
|
@filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil
|
|
38
41
|
@members = attributes[:members] || attributes['members'] || nil
|
|
39
42
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
43
|
+
@location = attributes[:location] || attributes['location'] || nil
|
|
40
44
|
end
|
|
41
45
|
|
|
42
46
|
# Override field mappings for JSON serialization
|
|
@@ -47,7 +51,8 @@ module GetStream
|
|
|
47
51
|
visibility: 'visibility',
|
|
48
52
|
filter_tags: 'filter_tags',
|
|
49
53
|
members: 'members',
|
|
50
|
-
custom: 'custom'
|
|
54
|
+
custom: 'custom',
|
|
55
|
+
location: 'location'
|
|
51
56
|
}
|
|
52
57
|
end
|
|
53
58
|
end
|
|
@@ -36,6 +36,9 @@ module GetStream
|
|
|
36
36
|
# @!attribute custom
|
|
37
37
|
# @return [Object] Custom data for the feed
|
|
38
38
|
attr_accessor :custom
|
|
39
|
+
# @!attribute location
|
|
40
|
+
# @return [Location]
|
|
41
|
+
attr_accessor :location
|
|
39
42
|
|
|
40
43
|
# Initialize with attributes
|
|
41
44
|
def initialize(attributes = {})
|
|
@@ -49,6 +52,7 @@ module GetStream
|
|
|
49
52
|
@filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil
|
|
50
53
|
@members = attributes[:members] || attributes['members'] || nil
|
|
51
54
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
55
|
+
@location = attributes[:location] || attributes['location'] || nil
|
|
52
56
|
end
|
|
53
57
|
|
|
54
58
|
# Override field mappings for JSON serialization
|
|
@@ -62,7 +66,8 @@ module GetStream
|
|
|
62
66
|
visibility: 'visibility',
|
|
63
67
|
filter_tags: 'filter_tags',
|
|
64
68
|
members: 'members',
|
|
65
|
-
custom: 'custom'
|
|
69
|
+
custom: 'custom',
|
|
70
|
+
location: 'location'
|
|
66
71
|
}
|
|
67
72
|
end
|
|
68
73
|
end
|
|
@@ -69,6 +69,9 @@ module GetStream
|
|
|
69
69
|
# @!attribute custom
|
|
70
70
|
# @return [Object] Custom data for the feed
|
|
71
71
|
attr_accessor :custom
|
|
72
|
+
# @!attribute location
|
|
73
|
+
# @return [Location]
|
|
74
|
+
attr_accessor :location
|
|
72
75
|
# @!attribute own_membership
|
|
73
76
|
# @return [FeedMemberResponse]
|
|
74
77
|
attr_accessor :own_membership
|
|
@@ -96,6 +99,7 @@ module GetStream
|
|
|
96
99
|
@own_followings = attributes[:own_followings] || attributes['own_followings'] || nil
|
|
97
100
|
@own_follows = attributes[:own_follows] || attributes['own_follows'] || nil
|
|
98
101
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
102
|
+
@location = attributes[:location] || attributes['location'] || nil
|
|
99
103
|
@own_membership = attributes[:own_membership] || attributes['own_membership'] || nil
|
|
100
104
|
end
|
|
101
105
|
|
|
@@ -122,6 +126,7 @@ module GetStream
|
|
|
122
126
|
own_followings: 'own_followings',
|
|
123
127
|
own_follows: 'own_follows',
|
|
124
128
|
custom: 'custom',
|
|
129
|
+
location: 'location',
|
|
125
130
|
own_membership: 'own_membership'
|
|
126
131
|
}
|
|
127
132
|
end
|
|
@@ -78,6 +78,9 @@ module GetStream
|
|
|
78
78
|
# @!attribute custom
|
|
79
79
|
# @return [Object] Custom data for the feed
|
|
80
80
|
attr_accessor :custom
|
|
81
|
+
# @!attribute location
|
|
82
|
+
# @return [Location]
|
|
83
|
+
attr_accessor :location
|
|
81
84
|
# @!attribute own_membership
|
|
82
85
|
# @return [FeedMemberResponse]
|
|
83
86
|
attr_accessor :own_membership
|
|
@@ -108,6 +111,7 @@ module GetStream
|
|
|
108
111
|
@own_follows = attributes[:own_follows] || attributes['own_follows'] || nil
|
|
109
112
|
@algorithm_scores = attributes[:algorithm_scores] || attributes['algorithm_scores'] || nil
|
|
110
113
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
114
|
+
@location = attributes[:location] || attributes['location'] || nil
|
|
111
115
|
@own_membership = attributes[:own_membership] || attributes['own_membership'] || nil
|
|
112
116
|
end
|
|
113
117
|
|
|
@@ -137,6 +141,7 @@ module GetStream
|
|
|
137
141
|
own_follows: 'own_follows',
|
|
138
142
|
algorithm_scores: 'algorithm_scores',
|
|
139
143
|
custom: 'custom',
|
|
144
|
+
location: 'location',
|
|
140
145
|
own_membership: 'own_membership'
|
|
141
146
|
}
|
|
142
147
|
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute follows
|
|
13
13
|
# @return [Array<FollowRequest>] List of follow relationships to create
|
|
14
14
|
attr_accessor :follows
|
|
15
|
+
# @!attribute create_users
|
|
16
|
+
# @return [Boolean] If true, auto-creates users referenced by source/target FIDs in the batch when they don't already exist. Server-side only. Defaults to false. This top-level field is the only supported batch/upsert create_users control.
|
|
17
|
+
attr_accessor :create_users
|
|
15
18
|
# @!attribute enrich_own_fields
|
|
16
19
|
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
17
20
|
attr_accessor :enrich_own_fields
|
|
@@ -20,6 +23,7 @@ module GetStream
|
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@follows = attributes[:follows] || attributes['follows']
|
|
26
|
+
@create_users = attributes[:create_users] || attributes['create_users'] || nil
|
|
23
27
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
24
28
|
end
|
|
25
29
|
|
|
@@ -27,6 +31,7 @@ module GetStream
|
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
follows: 'follows',
|
|
34
|
+
create_users: 'create_users',
|
|
30
35
|
enrich_own_fields: 'enrich_own_fields'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
@@ -15,6 +15,9 @@ module GetStream
|
|
|
15
15
|
# @!attribute target
|
|
16
16
|
# @return [String] Fully qualified ID of the target feed
|
|
17
17
|
attr_accessor :target
|
|
18
|
+
# @!attribute activity_copy_limit
|
|
19
|
+
# @return [Integer] Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
|
|
20
|
+
attr_accessor :activity_copy_limit
|
|
18
21
|
# @!attribute copy_custom_to_notification
|
|
19
22
|
# @deprecated This field is deprecated.
|
|
20
23
|
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
@@ -22,6 +25,9 @@ module GetStream
|
|
|
22
25
|
# @!attribute create_notification_activity
|
|
23
26
|
# @return [Boolean] Whether to create a notification activity for this follow
|
|
24
27
|
attr_accessor :create_notification_activity
|
|
28
|
+
# @!attribute create_users
|
|
29
|
+
# @return [Boolean] If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
|
|
30
|
+
attr_accessor :create_users
|
|
25
31
|
# @!attribute enrich_own_fields
|
|
26
32
|
# @return [Boolean] If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
27
33
|
attr_accessor :enrich_own_fields
|
|
@@ -43,8 +49,10 @@ module GetStream
|
|
|
43
49
|
super(attributes)
|
|
44
50
|
@source = attributes[:source] || attributes['source']
|
|
45
51
|
@target = attributes[:target] || attributes['target']
|
|
52
|
+
@activity_copy_limit = attributes[:activity_copy_limit] || attributes['activity_copy_limit'] || nil
|
|
46
53
|
@copy_custom_to_notification = attributes[:copy_custom_to_notification] || attributes['copy_custom_to_notification'] || nil
|
|
47
54
|
@create_notification_activity = attributes[:create_notification_activity] || attributes['create_notification_activity'] || nil
|
|
55
|
+
@create_users = attributes[:create_users] || attributes['create_users'] || nil
|
|
48
56
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
49
57
|
@push_preference = attributes[:push_preference] || attributes['push_preference'] || nil
|
|
50
58
|
@skip_push = attributes[:skip_push] || attributes['skip_push'] || nil
|
|
@@ -57,8 +65,10 @@ module GetStream
|
|
|
57
65
|
{
|
|
58
66
|
source: 'source',
|
|
59
67
|
target: 'target',
|
|
68
|
+
activity_copy_limit: 'activity_copy_limit',
|
|
60
69
|
copy_custom_to_notification: 'copy_custom_to_notification',
|
|
61
70
|
create_notification_activity: 'create_notification_activity',
|
|
71
|
+
create_users: 'create_users',
|
|
62
72
|
enrich_own_fields: 'enrich_own_fields',
|
|
63
73
|
push_preference: 'push_preference',
|
|
64
74
|
skip_push: 'skip_push',
|
|
@@ -72,6 +72,9 @@ module GetStream
|
|
|
72
72
|
# @!attribute ban_expires
|
|
73
73
|
# @return [DateTime]
|
|
74
74
|
attr_accessor :ban_expires
|
|
75
|
+
# @!attribute bypass_moderation
|
|
76
|
+
# @return [Boolean]
|
|
77
|
+
attr_accessor :bypass_moderation
|
|
75
78
|
# @!attribute deactivated_at
|
|
76
79
|
# @return [DateTime]
|
|
77
80
|
attr_accessor :deactivated_at
|
|
@@ -124,6 +127,7 @@ module GetStream
|
|
|
124
127
|
@custom = attributes[:custom] || attributes['custom']
|
|
125
128
|
@avg_response_time = attributes[:avg_response_time] || attributes['avg_response_time'] || nil
|
|
126
129
|
@ban_expires = attributes[:ban_expires] || attributes['ban_expires'] || nil
|
|
130
|
+
@bypass_moderation = attributes[:bypass_moderation] || attributes['bypass_moderation'] || nil
|
|
127
131
|
@deactivated_at = attributes[:deactivated_at] || attributes['deactivated_at'] || nil
|
|
128
132
|
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
129
133
|
@image = attributes[:image] || attributes['image'] || nil
|
|
@@ -159,6 +163,7 @@ module GetStream
|
|
|
159
163
|
custom: 'custom',
|
|
160
164
|
avg_response_time: 'avg_response_time',
|
|
161
165
|
ban_expires: 'ban_expires',
|
|
166
|
+
bypass_moderation: 'bypass_moderation',
|
|
162
167
|
deactivated_at: 'deactivated_at',
|
|
163
168
|
deleted_at: 'deleted_at',
|
|
164
169
|
image: 'image',
|
|
@@ -33,6 +33,9 @@ module GetStream
|
|
|
33
33
|
# @!attribute settings
|
|
34
34
|
# @return [ImportV2TaskSettings]
|
|
35
35
|
attr_accessor :settings
|
|
36
|
+
# @!attribute result
|
|
37
|
+
# @return [Object]
|
|
38
|
+
attr_accessor :result
|
|
36
39
|
|
|
37
40
|
# Initialize with attributes
|
|
38
41
|
def initialize(attributes = {})
|
|
@@ -45,6 +48,7 @@ module GetStream
|
|
|
45
48
|
@state = attributes[:state] || attributes['state']
|
|
46
49
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
47
50
|
@settings = attributes[:settings] || attributes['settings']
|
|
51
|
+
@result = attributes[:result] || attributes['result'] || nil
|
|
48
52
|
end
|
|
49
53
|
|
|
50
54
|
# Override field mappings for JSON serialization
|
|
@@ -57,7 +61,8 @@ module GetStream
|
|
|
57
61
|
product: 'product',
|
|
58
62
|
state: 'state',
|
|
59
63
|
updated_at: 'updated_at',
|
|
60
|
-
settings: 'settings'
|
|
64
|
+
settings: 'settings',
|
|
65
|
+
result: 'result'
|
|
61
66
|
}
|
|
62
67
|
end
|
|
63
68
|
end
|
|
@@ -30,6 +30,9 @@ module GetStream
|
|
|
30
30
|
# @!attribute settings
|
|
31
31
|
# @return [ImportV2TaskSettings]
|
|
32
32
|
attr_accessor :settings
|
|
33
|
+
# @!attribute result
|
|
34
|
+
# @return [Object]
|
|
35
|
+
attr_accessor :result
|
|
33
36
|
|
|
34
37
|
# Initialize with attributes
|
|
35
38
|
def initialize(attributes = {})
|
|
@@ -41,6 +44,7 @@ module GetStream
|
|
|
41
44
|
@state = attributes[:state] || attributes['state']
|
|
42
45
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
43
46
|
@settings = attributes[:settings] || attributes['settings']
|
|
47
|
+
@result = attributes[:result] || attributes['result'] || nil
|
|
44
48
|
end
|
|
45
49
|
|
|
46
50
|
# Override field mappings for JSON serialization
|
|
@@ -52,7 +56,8 @@ module GetStream
|
|
|
52
56
|
product: 'product',
|
|
53
57
|
state: 'state',
|
|
54
58
|
updated_at: 'updated_at',
|
|
55
|
-
settings: 'settings'
|
|
59
|
+
settings: 'settings',
|
|
60
|
+
result: 'result'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
end
|
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute skip_references_check
|
|
22
22
|
# @return [Boolean]
|
|
23
23
|
attr_accessor :skip_references_check
|
|
24
|
+
# @!attribute source
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :source
|
|
24
27
|
# @!attribute s3
|
|
25
28
|
# @return [ImportV2TaskSettingsS3]
|
|
26
29
|
attr_accessor :s3
|
|
@@ -32,6 +35,7 @@ module GetStream
|
|
|
32
35
|
@mode = attributes[:mode] || attributes['mode'] || nil
|
|
33
36
|
@path = attributes[:path] || attributes['path'] || nil
|
|
34
37
|
@skip_references_check = attributes[:skip_references_check] || attributes['skip_references_check'] || nil
|
|
38
|
+
@source = attributes[:source] || attributes['source'] || nil
|
|
35
39
|
@s3 = attributes[:s3] || attributes['s3'] || nil
|
|
36
40
|
end
|
|
37
41
|
|
|
@@ -42,6 +46,7 @@ module GetStream
|
|
|
42
46
|
mode: 'mode',
|
|
43
47
|
path: 'path',
|
|
44
48
|
skip_references_check: 'skip_references_check',
|
|
49
|
+
source: 'source',
|
|
45
50
|
s3: 's3'
|
|
46
51
|
}
|
|
47
52
|
end
|
|
@@ -9,30 +9,25 @@ module GetStream
|
|
|
9
9
|
class Location < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
-
# @!attribute
|
|
13
|
-
# @return [
|
|
14
|
-
attr_accessor :
|
|
15
|
-
# @!attribute
|
|
16
|
-
# @return [
|
|
17
|
-
attr_accessor :
|
|
18
|
-
# @!attribute subdivision_iso_code
|
|
19
|
-
# @return [String]
|
|
20
|
-
attr_accessor :subdivision_iso_code
|
|
12
|
+
# @!attribute lat
|
|
13
|
+
# @return [Float] Latitude coordinate
|
|
14
|
+
attr_accessor :lat
|
|
15
|
+
# @!attribute lng
|
|
16
|
+
# @return [Float] Longitude coordinate
|
|
17
|
+
attr_accessor :lng
|
|
21
18
|
|
|
22
19
|
# Initialize with attributes
|
|
23
20
|
def initialize(attributes = {})
|
|
24
21
|
super(attributes)
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@subdivision_iso_code = attributes[:subdivision_iso_code] || attributes['subdivision_iso_code']
|
|
22
|
+
@lat = attributes[:lat] || attributes['lat']
|
|
23
|
+
@lng = attributes[:lng] || attributes['lng']
|
|
28
24
|
end
|
|
29
25
|
|
|
30
26
|
# Override field mappings for JSON serialization
|
|
31
27
|
def self.json_field_mappings
|
|
32
28
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
subdivision_iso_code: 'subdivision_iso_code'
|
|
29
|
+
lat: 'lat',
|
|
30
|
+
lng: 'lng'
|
|
36
31
|
}
|
|
37
32
|
end
|
|
38
33
|
end
|
|
@@ -18,6 +18,9 @@ module GetStream
|
|
|
18
18
|
# @!attribute include_private_activities
|
|
19
19
|
# @return [Boolean]
|
|
20
20
|
attr_accessor :include_private_activities
|
|
21
|
+
# @!attribute include_soft_deleted_activities
|
|
22
|
+
# @return [Boolean] When true, include soft-deleted activities in the result.
|
|
23
|
+
attr_accessor :include_soft_deleted_activities
|
|
21
24
|
# @!attribute limit
|
|
22
25
|
# @return [Integer]
|
|
23
26
|
attr_accessor :limit
|
|
@@ -46,6 +49,7 @@ module GetStream
|
|
|
46
49
|
@enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
|
|
47
50
|
@include_expired_activities = attributes[:include_expired_activities] || attributes['include_expired_activities'] || nil
|
|
48
51
|
@include_private_activities = attributes[:include_private_activities] || attributes['include_private_activities'] || nil
|
|
52
|
+
@include_soft_deleted_activities = attributes[:include_soft_deleted_activities] || attributes['include_soft_deleted_activities'] || nil
|
|
49
53
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
50
54
|
@next = attributes[:next] || attributes['next'] || nil
|
|
51
55
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
@@ -61,6 +65,7 @@ module GetStream
|
|
|
61
65
|
enrich_own_fields: 'enrich_own_fields',
|
|
62
66
|
include_expired_activities: 'include_expired_activities',
|
|
63
67
|
include_private_activities: 'include_private_activities',
|
|
68
|
+
include_soft_deleted_activities: 'include_soft_deleted_activities',
|
|
64
69
|
limit: 'limit',
|
|
65
70
|
next: 'next',
|
|
66
71
|
prev: 'prev',
|
|
@@ -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 QueryCallSessionStatsRequest < 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 sort
|
|
22
|
+
# @return [Array<SortParamRequest>] Array of sort parameters
|
|
23
|
+
attr_accessor :sort
|
|
24
|
+
# @!attribute filter_conditions
|
|
25
|
+
# @return [Object] Filter conditions to apply to the query
|
|
26
|
+
attr_accessor :filter_conditions
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
32
|
+
@next = attributes[:next] || attributes['next'] || nil
|
|
33
|
+
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
34
|
+
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
35
|
+
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
limit: 'limit',
|
|
42
|
+
next: 'next',
|
|
43
|
+
prev: 'prev',
|
|
44
|
+
sort: 'sort',
|
|
45
|
+
filter_conditions: 'filter_conditions'
|
|
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 QueryCallSessionStatsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute call_stats
|
|
16
|
+
# @return [Array<CallStatsSessionResponse>]
|
|
17
|
+
attr_accessor :call_stats
|
|
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
|
+
@call_stats = attributes[:call_stats] || attributes['call_stats']
|
|
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
|
+
call_stats: 'call_stats',
|
|
39
|
+
next: 'next',
|
|
40
|
+
prev: 'prev'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -10,7 +10,7 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute filter
|
|
13
|
-
# @return [Object]
|
|
13
|
+
# @return [Object] Filter to apply to the query
|
|
14
14
|
attr_accessor :filter
|
|
15
15
|
# @!attribute id_around
|
|
16
16
|
# @return [String] Returns the comment with the specified ID along with surrounding comments for context
|
|
@@ -25,7 +25,7 @@ module GetStream
|
|
|
25
25
|
# @return [String]
|
|
26
26
|
attr_accessor :prev
|
|
27
27
|
# @!attribute sort
|
|
28
|
-
# @return [String]
|
|
28
|
+
# @return [String] Array of sort parameters
|
|
29
29
|
attr_accessor :sort
|
|
30
30
|
# @!attribute user_id
|
|
31
31
|
# @return [String]
|