getstream-ruby 13.2.1 → 13.3.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/client.rb +14 -14
- data/lib/getstream_ruby/configuration.rb +4 -1
- data/lib/getstream_ruby/generated/chat_client.rb +16 -0
- data/lib/getstream_ruby/generated/common_client.rb +9 -5
- data/lib/getstream_ruby/generated/feeds_client.rb +18 -1
- data/lib/getstream_ruby/generated/models/activity_feedback_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/ai_video_config_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/ai_video_config_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/app_response_fields.rb +5 -0
- data/lib/getstream_ruby/generated/models/ban_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/budget_status_response.rb +56 -0
- data/lib/getstream_ruby/generated/models/budgets_response.rb +66 -0
- data/lib/getstream_ruby/generated/models/chat_message_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/engagement_rates.rb +51 -0
- data/lib/getstream_ruby/generated/models/engagement_stats_result.rb +51 -0
- data/lib/getstream_ruby/generated/models/export_users_request.rb +16 -1
- data/lib/getstream_ruby/generated/models/feeds_policy_config.rb +6 -1
- data/lib/getstream_ruby/generated/models/for_you_config.rb +10 -0
- data/lib/getstream_ruby/generated/models/for_you_experiment_config.rb +36 -0
- data/lib/getstream_ruby/generated/models/for_you_experiment_variant.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_blocked_users_response.rb +7 -2
- data/lib/getstream_ruby/generated/models/get_or_create_feed_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/get_rate_limits_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/mark_channels_read_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/message_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/message_schema_settings.rb +46 -0
- data/lib/getstream_ruby/generated/models/message_validation.rb +36 -0
- data/lib/getstream_ruby/generated/models/message_with_channel_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_appeals_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_appeals_response.rb +11 -1
- data/lib/getstream_ruby/generated/models/query_feeds_engagement_stats_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/query_feeds_engagement_stats_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/query_label_results_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/reaction_validation.rb +31 -0
- data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
- data/lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/submit_action_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/track_activity_metrics_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/transcribe_message_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/update_app_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/user_interest_request.rb +1 -1
- data/lib/getstream_ruby/generated/moderation_client.rb +3 -1
- data/lib/getstream_ruby/log_redaction.rb +17 -0
- data/lib/getstream_ruby/request_logging.rb +17 -7
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +14 -2
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class ForYouConfig < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute analytics
|
|
13
|
+
# @return [Boolean] Counts engagement per feed view and experiment. Requires enabled and a plan with activity metrics
|
|
14
|
+
attr_accessor :analytics
|
|
12
15
|
# @!attribute enabled
|
|
13
16
|
# @return [Boolean] Turns For You ranking on. Groups: only the non-aggregated 'foryou' group. Views: applies only when read on that group
|
|
14
17
|
attr_accessor :enabled
|
|
@@ -21,6 +24,9 @@ module GetStream
|
|
|
21
24
|
# @!attribute dwell
|
|
22
25
|
# @return [ForYouDwellConfig]
|
|
23
26
|
attr_accessor :dwell
|
|
27
|
+
# @!attribute experiment
|
|
28
|
+
# @return [ForYouExperimentConfig]
|
|
29
|
+
attr_accessor :experiment
|
|
24
30
|
# @!attribute exploration
|
|
25
31
|
# @return [ForYouExplorationConfig]
|
|
26
32
|
attr_accessor :exploration
|
|
@@ -28,20 +34,24 @@ module GetStream
|
|
|
28
34
|
# Initialize with attributes
|
|
29
35
|
def initialize(attributes = {})
|
|
30
36
|
super(attributes)
|
|
37
|
+
@analytics = attributes.fetch(:analytics) { attributes.fetch('analytics', nil) }
|
|
31
38
|
@enabled = attributes.fetch(:enabled) { attributes.fetch('enabled', nil) }
|
|
32
39
|
@preset = attributes.fetch(:preset) { attributes.fetch('preset', nil) }
|
|
33
40
|
@trending = attributes.fetch(:trending) { attributes.fetch('trending', nil) }
|
|
34
41
|
@dwell = attributes.fetch(:dwell) { attributes.fetch('dwell', nil) }
|
|
42
|
+
@experiment = attributes.fetch(:experiment) { attributes.fetch('experiment', nil) }
|
|
35
43
|
@exploration = attributes.fetch(:exploration) { attributes.fetch('exploration', nil) }
|
|
36
44
|
end
|
|
37
45
|
|
|
38
46
|
# Override field mappings for JSON serialization
|
|
39
47
|
def self.json_field_mappings
|
|
40
48
|
{
|
|
49
|
+
analytics: 'analytics',
|
|
41
50
|
enabled: 'enabled',
|
|
42
51
|
preset: 'preset',
|
|
43
52
|
trending: 'trending',
|
|
44
53
|
dwell: 'dwell',
|
|
54
|
+
experiment: 'experiment',
|
|
45
55
|
exploration: 'exploration'
|
|
46
56
|
}
|
|
47
57
|
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 ForYouExperimentConfig < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute id
|
|
13
|
+
# @return [String] Experiment identifier, 1 to 64 letters, digits, dashes or underscores
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
# @!attribute variants
|
|
16
|
+
# @return [Array<ForYouExperimentVariant>] 2 to 4 feed views with distinct ids; weights are percents summing to 100
|
|
17
|
+
attr_accessor :variants
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@id = attributes.fetch(:id) { attributes.fetch('id', nil) }
|
|
23
|
+
@variants = attributes.fetch(:variants) { attributes.fetch('variants', nil) }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
id: 'id',
|
|
30
|
+
variants: 'variants'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
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 ForYouExperimentVariant < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute view
|
|
13
|
+
# @return [String] ID of an existing feed view
|
|
14
|
+
attr_accessor :view
|
|
15
|
+
# @!attribute weight
|
|
16
|
+
# @return [Integer] Share of users in percent, 1 to 100
|
|
17
|
+
attr_accessor :weight
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@view = attributes.fetch(:view) { attributes.fetch('view', nil) }
|
|
23
|
+
@weight = attributes.fetch(:weight) { attributes.fetch('weight', nil) }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
view: 'view',
|
|
30
|
+
weight: 'weight'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -13,21 +13,26 @@ module GetStream
|
|
|
13
13
|
# @return [String] Duration of the request in milliseconds
|
|
14
14
|
attr_accessor :duration
|
|
15
15
|
# @!attribute blocks
|
|
16
|
-
# @return [Array<BlockedUserResponse>]
|
|
16
|
+
# @return [Array<BlockedUserResponse>] Blocked users on this page, oldest block first
|
|
17
17
|
attr_accessor :blocks
|
|
18
|
+
# @!attribute next
|
|
19
|
+
# @return [String] Cursor for the next page. Absent on the last page
|
|
20
|
+
attr_accessor :next
|
|
18
21
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
|
|
23
26
|
@blocks = attributes.fetch(:blocks) { attributes.fetch('blocks', nil) }
|
|
27
|
+
@next = attributes.fetch(:next) { attributes.fetch('next', nil) }
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
# Override field mappings for JSON serialization
|
|
27
31
|
def self.json_field_mappings
|
|
28
32
|
{
|
|
29
33
|
duration: 'duration',
|
|
30
|
-
blocks: 'blocks'
|
|
34
|
+
blocks: 'blocks',
|
|
35
|
+
next: 'next'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
33
38
|
end
|
|
@@ -43,7 +43,7 @@ module GetStream
|
|
|
43
43
|
# @return [String]
|
|
44
44
|
attr_accessor :prev
|
|
45
45
|
# @!attribute request_id
|
|
46
|
-
# @return [String] Signed token identifying this read. Pass it with activity metrics events to attribute them to this read. Only set on feed reads for paid plans with an authenticated user, when the app uses feed impressions (For You exploration, or a For You ranking that uses impressions_bucket)
|
|
46
|
+
# @return [String] Signed token identifying this read. Pass it with activity metrics events to attribute them to this read. Only set on feed reads for paid plans with an authenticated user, when the app uses feed impressions (For You exploration, or a For You ranking that uses impressions_bucket) or For You engagement analytics
|
|
47
47
|
attr_accessor :request_id
|
|
48
48
|
# @!attribute degraded_selectors
|
|
49
49
|
# @return [Array<String>] Activity selectors dropped from this read because they exceeded their time budget (see the time_budget_ms selector setting). Their activities are missing from this page, and they stay out for the rest of this pagination session. Omitted when every selector completed
|
|
@@ -15,6 +15,9 @@ module GetStream
|
|
|
15
15
|
# @!attribute android
|
|
16
16
|
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the Android platform
|
|
17
17
|
attr_accessor :android
|
|
18
|
+
# @!attribute budgets
|
|
19
|
+
# @return [BudgetsResponse]
|
|
20
|
+
attr_accessor :budgets
|
|
18
21
|
# @!attribute ios
|
|
19
22
|
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the iOS platform
|
|
20
23
|
attr_accessor :ios
|
|
@@ -39,6 +42,7 @@ module GetStream
|
|
|
39
42
|
super(attributes)
|
|
40
43
|
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
|
|
41
44
|
@android = attributes.fetch(:android) { attributes.fetch('android', nil) }
|
|
45
|
+
@budgets = attributes.fetch(:budgets) { attributes.fetch('budgets', nil) }
|
|
42
46
|
@ios = attributes.fetch(:ios) { attributes.fetch('ios', nil) }
|
|
43
47
|
@server_side = attributes.fetch(:server_side) { attributes.fetch('server_side', nil) }
|
|
44
48
|
@unity = attributes.fetch(:unity) { attributes.fetch('unity', nil) }
|
|
@@ -52,6 +56,7 @@ module GetStream
|
|
|
52
56
|
{
|
|
53
57
|
duration: 'duration',
|
|
54
58
|
android: 'android',
|
|
59
|
+
budgets: 'budgets',
|
|
55
60
|
ios: 'ios',
|
|
56
61
|
server_side: 'server_side',
|
|
57
62
|
unity: 'unity',
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute user_id
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :user_id
|
|
15
|
+
# @!attribute filter_conditions
|
|
16
|
+
# @return [Object] Filter conditions to apply to the query
|
|
17
|
+
attr_accessor :filter_conditions
|
|
15
18
|
# @!attribute read_by_channel
|
|
16
19
|
# @return [Hash<String, String>] Map of channel ID to last read message ID
|
|
17
20
|
attr_accessor :read_by_channel
|
|
@@ -23,6 +26,7 @@ module GetStream
|
|
|
23
26
|
def initialize(attributes = {})
|
|
24
27
|
super(attributes)
|
|
25
28
|
@user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
|
|
29
|
+
@filter_conditions = attributes.fetch(:filter_conditions) { attributes.fetch('filter_conditions', nil) }
|
|
26
30
|
@read_by_channel = attributes.fetch(:read_by_channel) { attributes.fetch('read_by_channel', nil) }
|
|
27
31
|
@user = attributes.fetch(:user) { attributes.fetch('user', nil) }
|
|
28
32
|
end
|
|
@@ -31,6 +35,7 @@ module GetStream
|
|
|
31
35
|
def self.json_field_mappings
|
|
32
36
|
{
|
|
33
37
|
user_id: 'user_id',
|
|
38
|
+
filter_conditions: 'filter_conditions',
|
|
34
39
|
read_by_channel: 'read_by_channel',
|
|
35
40
|
user: 'user'
|
|
36
41
|
}
|
|
@@ -126,6 +126,9 @@ module GetStream
|
|
|
126
126
|
# @!attribute thread_participants
|
|
127
127
|
# @return [Array<UserResponse>] List of users who participate in thread
|
|
128
128
|
attr_accessor :thread_participants
|
|
129
|
+
# @!attribute deleted_by
|
|
130
|
+
# @return [UserResponse] User response object
|
|
131
|
+
attr_accessor :deleted_by
|
|
129
132
|
# @!attribute draft
|
|
130
133
|
# @return [DraftResponse]
|
|
131
134
|
attr_accessor :draft
|
|
@@ -208,6 +211,7 @@ module GetStream
|
|
|
208
211
|
@mentioned_roles = attributes.fetch(:mentioned_roles) { attributes.fetch('mentioned_roles', nil) }
|
|
209
212
|
@own_marks = attributes.fetch(:own_marks) { attributes.fetch('own_marks', nil) }
|
|
210
213
|
@thread_participants = attributes.fetch(:thread_participants) { attributes.fetch('thread_participants', nil) }
|
|
214
|
+
@deleted_by = attributes.fetch(:deleted_by) { attributes.fetch('deleted_by', nil) }
|
|
211
215
|
@draft = attributes.fetch(:draft) { attributes.fetch('draft', nil) }
|
|
212
216
|
@i18n = attributes.fetch(:i18n) { attributes.fetch('i18n', nil) }
|
|
213
217
|
@image_labels = attributes.fetch(:image_labels) { attributes.fetch('image_labels', nil) }
|
|
@@ -265,6 +269,7 @@ module GetStream
|
|
|
265
269
|
mentioned_roles: 'mentioned_roles',
|
|
266
270
|
own_marks: 'own_marks',
|
|
267
271
|
thread_participants: 'thread_participants',
|
|
272
|
+
deleted_by: 'deleted_by',
|
|
268
273
|
draft: 'draft',
|
|
269
274
|
i18n: 'i18n',
|
|
270
275
|
image_labels: 'image_labels',
|
|
@@ -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
|
+
# The app's message schema settings: how strictly messages and reactions are checked, and the JSON Schemas they are checked against.
|
|
9
|
+
class MessageSchemaSettings < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute document_version
|
|
13
|
+
# @return [Integer] The settings document version to use. When omitted, the latest version is used; an unknown version is rejected
|
|
14
|
+
attr_accessor :document_version
|
|
15
|
+
# @!attribute mode
|
|
16
|
+
# @return [String] How violations are handled: off does not check, report checks and records violations without rejecting the write, enforce rejects writes that violate the schema. Defaults to off
|
|
17
|
+
attr_accessor :mode
|
|
18
|
+
# @!attribute message
|
|
19
|
+
# @return [MessageValidation] The rules a message is checked against.
|
|
20
|
+
attr_accessor :message
|
|
21
|
+
# @!attribute reaction
|
|
22
|
+
# @return [ReactionValidation] The rules a reaction is checked against.
|
|
23
|
+
attr_accessor :reaction
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@document_version = attributes.fetch(:document_version) { attributes.fetch('document_version', nil) }
|
|
29
|
+
@mode = attributes.fetch(:mode) { attributes.fetch('mode', nil) }
|
|
30
|
+
@message = attributes.fetch(:message) { attributes.fetch('message', nil) }
|
|
31
|
+
@reaction = attributes.fetch(:reaction) { attributes.fetch('reaction', nil) }
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
document_version: 'document_version',
|
|
38
|
+
mode: 'mode',
|
|
39
|
+
message: 'message',
|
|
40
|
+
reaction: 'reaction'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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
|
+
# The rules a message is checked against.
|
|
9
|
+
class MessageValidation < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute frozen_fields
|
|
13
|
+
# @return [Array<String>] Message document paths that cannot change after the message is created
|
|
14
|
+
attr_accessor :frozen_fields
|
|
15
|
+
# @!attribute schema
|
|
16
|
+
# @return [Object] A JSON Schema 2020-12 object validating {message, user}
|
|
17
|
+
attr_accessor :schema
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@frozen_fields = attributes.fetch(:frozen_fields) { attributes.fetch('frozen_fields', nil) }
|
|
23
|
+
@schema = attributes.fetch(:schema) { attributes.fetch('schema', nil) }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
frozen_fields: 'frozen_fields',
|
|
30
|
+
schema: 'schema'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -129,6 +129,9 @@ module GetStream
|
|
|
129
129
|
# @!attribute thread_participants
|
|
130
130
|
# @return [Array<UserResponse>] List of users who participate in thread
|
|
131
131
|
attr_accessor :thread_participants
|
|
132
|
+
# @!attribute deleted_by
|
|
133
|
+
# @return [UserResponse] User response object
|
|
134
|
+
attr_accessor :deleted_by
|
|
132
135
|
# @!attribute draft
|
|
133
136
|
# @return [DraftResponse]
|
|
134
137
|
attr_accessor :draft
|
|
@@ -212,6 +215,7 @@ module GetStream
|
|
|
212
215
|
@mentioned_roles = attributes.fetch(:mentioned_roles) { attributes.fetch('mentioned_roles', nil) }
|
|
213
216
|
@own_marks = attributes.fetch(:own_marks) { attributes.fetch('own_marks', nil) }
|
|
214
217
|
@thread_participants = attributes.fetch(:thread_participants) { attributes.fetch('thread_participants', nil) }
|
|
218
|
+
@deleted_by = attributes.fetch(:deleted_by) { attributes.fetch('deleted_by', nil) }
|
|
215
219
|
@draft = attributes.fetch(:draft) { attributes.fetch('draft', nil) }
|
|
216
220
|
@i18n = attributes.fetch(:i18n) { attributes.fetch('i18n', nil) }
|
|
217
221
|
@image_labels = attributes.fetch(:image_labels) { attributes.fetch('image_labels', nil) }
|
|
@@ -270,6 +274,7 @@ module GetStream
|
|
|
270
274
|
mentioned_roles: 'mentioned_roles',
|
|
271
275
|
own_marks: 'own_marks',
|
|
272
276
|
thread_participants: 'thread_participants',
|
|
277
|
+
deleted_by: 'deleted_by',
|
|
273
278
|
draft: 'draft',
|
|
274
279
|
i18n: 'i18n',
|
|
275
280
|
image_labels: 'image_labels',
|
|
@@ -27,6 +27,9 @@ module GetStream
|
|
|
27
27
|
# @!attribute disable_flagging_reviewed_entity
|
|
28
28
|
# @return [Boolean]
|
|
29
29
|
attr_accessor :disable_flagging_reviewed_entity
|
|
30
|
+
# @!attribute disable_review_queue
|
|
31
|
+
# @return [Boolean]
|
|
32
|
+
attr_accessor :disable_review_queue
|
|
30
33
|
# @!attribute enforce_shadow_server_side
|
|
31
34
|
# @return [Boolean]
|
|
32
35
|
attr_accessor :enforce_shadow_server_side
|
|
@@ -73,6 +76,7 @@ module GetStream
|
|
|
73
76
|
@disable_action_logs = attributes.fetch(:disable_action_logs) { attributes.fetch('disable_action_logs', nil) }
|
|
74
77
|
@disable_audit_logs = attributes.fetch(:disable_audit_logs) { attributes.fetch('disable_audit_logs', nil) }
|
|
75
78
|
@disable_flagging_reviewed_entity = attributes.fetch(:disable_flagging_reviewed_entity) { attributes.fetch('disable_flagging_reviewed_entity', nil) }
|
|
79
|
+
@disable_review_queue = attributes.fetch(:disable_review_queue) { attributes.fetch('disable_review_queue', nil) }
|
|
76
80
|
@enforce_shadow_server_side = attributes.fetch(:enforce_shadow_server_side) { attributes.fetch('enforce_shadow_server_side', nil) }
|
|
77
81
|
@escalation_queue_enabled = attributes.fetch(:escalation_queue_enabled) { attributes.fetch('escalation_queue_enabled', nil) }
|
|
78
82
|
@flag_user_on_flagged_content = attributes.fetch(:flag_user_on_flagged_content) { attributes.fetch('flag_user_on_flagged_content', nil) }
|
|
@@ -96,6 +100,7 @@ module GetStream
|
|
|
96
100
|
disable_action_logs: 'disable_action_logs',
|
|
97
101
|
disable_audit_logs: 'disable_audit_logs',
|
|
98
102
|
disable_flagging_reviewed_entity: 'disable_flagging_reviewed_entity',
|
|
103
|
+
disable_review_queue: 'disable_review_queue',
|
|
99
104
|
enforce_shadow_server_side: 'enforce_shadow_server_side',
|
|
100
105
|
escalation_queue_enabled: 'escalation_queue_enabled',
|
|
101
106
|
flag_user_on_flagged_content: 'flag_user_on_flagged_content',
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class QueryAppealsRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute include_count
|
|
13
|
+
# @return [Boolean] Whether to also return the number of appeals matching the filter (total and capped). Set limit to 0 to get only the count. Not returned for team-scoped moderators, or when the count fails.
|
|
14
|
+
attr_accessor :include_count
|
|
12
15
|
# @!attribute limit
|
|
13
16
|
# @return [Integer]
|
|
14
17
|
attr_accessor :limit
|
|
@@ -34,6 +37,7 @@ module GetStream
|
|
|
34
37
|
# Initialize with attributes
|
|
35
38
|
def initialize(attributes = {})
|
|
36
39
|
super(attributes)
|
|
40
|
+
@include_count = attributes.fetch(:include_count) { attributes.fetch('include_count', nil) }
|
|
37
41
|
@limit = attributes.fetch(:limit) { attributes.fetch('limit', nil) }
|
|
38
42
|
@next = attributes.fetch(:next) { attributes.fetch('next', nil) }
|
|
39
43
|
@prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) }
|
|
@@ -46,6 +50,7 @@ module GetStream
|
|
|
46
50
|
# Override field mappings for JSON serialization
|
|
47
51
|
def self.json_field_mappings
|
|
48
52
|
{
|
|
53
|
+
include_count: 'include_count',
|
|
49
54
|
limit: 'limit',
|
|
50
55
|
next: 'next',
|
|
51
56
|
prev: 'prev',
|
|
@@ -15,20 +15,28 @@ module GetStream
|
|
|
15
15
|
# @!attribute items
|
|
16
16
|
# @return [Array<AppealItemResponse>] List of Appeal Items
|
|
17
17
|
attr_accessor :items
|
|
18
|
+
# @!attribute capped
|
|
19
|
+
# @return [Boolean] Whether more appeals match than are counted exactly (1,000), so total is a lower bound. Returned when include_count is set.
|
|
20
|
+
attr_accessor :capped
|
|
18
21
|
# @!attribute next
|
|
19
22
|
# @return [String]
|
|
20
23
|
attr_accessor :next
|
|
21
24
|
# @!attribute prev
|
|
22
25
|
# @return [String]
|
|
23
26
|
attr_accessor :prev
|
|
27
|
+
# @!attribute total
|
|
28
|
+
# @return [Integer] Number of appeals matching the filter, returned when include_count is set. When capped is true, at least this many appeals match.
|
|
29
|
+
attr_accessor :total
|
|
24
30
|
|
|
25
31
|
# Initialize with attributes
|
|
26
32
|
def initialize(attributes = {})
|
|
27
33
|
super(attributes)
|
|
28
34
|
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
|
|
29
35
|
@items = attributes.fetch(:items) { attributes.fetch('items', nil) }
|
|
36
|
+
@capped = attributes.fetch(:capped) { attributes.fetch('capped', nil) }
|
|
30
37
|
@next = attributes.fetch(:next) { attributes.fetch('next', nil) }
|
|
31
38
|
@prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) }
|
|
39
|
+
@total = attributes.fetch(:total) { attributes.fetch('total', nil) }
|
|
32
40
|
end
|
|
33
41
|
|
|
34
42
|
# Override field mappings for JSON serialization
|
|
@@ -36,8 +44,10 @@ module GetStream
|
|
|
36
44
|
{
|
|
37
45
|
duration: 'duration',
|
|
38
46
|
items: 'items',
|
|
47
|
+
capped: 'capped',
|
|
39
48
|
next: 'next',
|
|
40
|
-
prev: 'prev'
|
|
49
|
+
prev: 'prev',
|
|
50
|
+
total: 'total'
|
|
41
51
|
}
|
|
42
52
|
end
|
|
43
53
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class QueryFeedsEngagementStatsRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute group_id
|
|
13
|
+
# @return [String] Feed group to report on
|
|
14
|
+
attr_accessor :group_id
|
|
15
|
+
# @!attribute experiment_id
|
|
16
|
+
# @return [String] Only this experiment (optional)
|
|
17
|
+
attr_accessor :experiment_id
|
|
18
|
+
# @!attribute from
|
|
19
|
+
# @return [String] Start date in YYYY-MM-DD format (optional, defaults to 29 days before to, so a 30-day range)
|
|
20
|
+
attr_accessor :from
|
|
21
|
+
# @!attribute limit
|
|
22
|
+
# @return [Integer] Maximum number of series (one per group, view and experiment), not rows, 1 to 100 (optional, defaults to 100, or 10,000 / days for ranges over 100 days). The limit never cuts a series; a metric's days with no events are omitted from its daily values. limit x days must not exceed 10,000
|
|
23
|
+
attr_accessor :limit
|
|
24
|
+
# @!attribute to
|
|
25
|
+
# @return [String] End date in YYYY-MM-DD format (optional, defaults to today UTC). The range is at most 396 days
|
|
26
|
+
attr_accessor :to
|
|
27
|
+
# @!attribute view_id
|
|
28
|
+
# @return [String] Only this view (optional)
|
|
29
|
+
attr_accessor :view_id
|
|
30
|
+
|
|
31
|
+
# Initialize with attributes
|
|
32
|
+
def initialize(attributes = {})
|
|
33
|
+
super(attributes)
|
|
34
|
+
@group_id = attributes.fetch(:group_id) { attributes.fetch('group_id', nil) }
|
|
35
|
+
@experiment_id = attributes.fetch(:experiment_id) { attributes.fetch('experiment_id', nil) }
|
|
36
|
+
@from = attributes.fetch(:from) { attributes.fetch('from', nil) }
|
|
37
|
+
@limit = attributes.fetch(:limit) { attributes.fetch('limit', nil) }
|
|
38
|
+
@to = attributes.fetch(:to) { attributes.fetch('to', nil) }
|
|
39
|
+
@view_id = attributes.fetch(:view_id) { attributes.fetch('view_id', nil) }
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Override field mappings for JSON serialization
|
|
43
|
+
def self.json_field_mappings
|
|
44
|
+
{
|
|
45
|
+
group_id: 'group_id',
|
|
46
|
+
experiment_id: 'experiment_id',
|
|
47
|
+
from: 'from',
|
|
48
|
+
limit: 'limit',
|
|
49
|
+
to: 'to',
|
|
50
|
+
view_id: 'view_id'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class QueryFeedsEngagementStatsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute results
|
|
16
|
+
# @return [Array<EngagementStatsResult>] One series per (group, view, experiment), in byte order of experiment, view, then group
|
|
17
|
+
attr_accessor :results
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
|
|
23
|
+
@results = attributes.fetch(:results) { attributes.fetch('results', nil) }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
results: 'results'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -25,7 +25,7 @@ module GetStream
|
|
|
25
25
|
# @return [Array<SortParamRequest>] Sorting parameters
|
|
26
26
|
attr_accessor :sort
|
|
27
27
|
# @!attribute filter
|
|
28
|
-
# @return [Object] Filter conditions
|
|
28
|
+
# @return [Object] Filter conditions. keyword searches the moderated content: "$q" matches whole words, while "$contains" is a case-insensitive substring match (text inside unspaced CJK sentences, word roots, emoji and symbols). "$contains" requires a date_range or created_at window within the last 7 days, at most 1 day long, or 7 days when the filter also narrows language to at most 3 non-empty values. The 7-day window is best effort: a language that covers most of an app's results can still time out.
|
|
29
29
|
attr_accessor :filter
|
|
30
30
|
# @!attribute user
|
|
31
31
|
# @return [UserRequest] User request object
|
|
@@ -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
|
+
# The rules a reaction is checked against.
|
|
9
|
+
class ReactionValidation < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute schema
|
|
13
|
+
# @return [Object] A JSON Schema 2020-12 object validating {reaction, user}
|
|
14
|
+
attr_accessor :schema
|
|
15
|
+
|
|
16
|
+
# Initialize with attributes
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
super(attributes)
|
|
19
|
+
@schema = attributes.fetch(:schema) { attributes.fetch('schema', nil) }
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Override field mappings for JSON serialization
|
|
23
|
+
def self.json_field_mappings
|
|
24
|
+
{
|
|
25
|
+
schema: 'schema'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -129,6 +129,9 @@ module GetStream
|
|
|
129
129
|
# @!attribute channel
|
|
130
130
|
# @return [ChannelResponse] Represents channel in chat
|
|
131
131
|
attr_accessor :channel
|
|
132
|
+
# @!attribute deleted_by
|
|
133
|
+
# @return [UserResponse] User response object
|
|
134
|
+
attr_accessor :deleted_by
|
|
132
135
|
# @!attribute draft
|
|
133
136
|
# @return [DraftResponse]
|
|
134
137
|
attr_accessor :draft
|
|
@@ -212,6 +215,7 @@ module GetStream
|
|
|
212
215
|
@own_marks = attributes.fetch(:own_marks) { attributes.fetch('own_marks', nil) }
|
|
213
216
|
@thread_participants = attributes.fetch(:thread_participants) { attributes.fetch('thread_participants', nil) }
|
|
214
217
|
@channel = attributes.fetch(:channel) { attributes.fetch('channel', nil) }
|
|
218
|
+
@deleted_by = attributes.fetch(:deleted_by) { attributes.fetch('deleted_by', nil) }
|
|
215
219
|
@draft = attributes.fetch(:draft) { attributes.fetch('draft', nil) }
|
|
216
220
|
@i18n = attributes.fetch(:i18n) { attributes.fetch('i18n', nil) }
|
|
217
221
|
@image_labels = attributes.fetch(:image_labels) { attributes.fetch('image_labels', nil) }
|
|
@@ -270,6 +274,7 @@ module GetStream
|
|
|
270
274
|
own_marks: 'own_marks',
|
|
271
275
|
thread_participants: 'thread_participants',
|
|
272
276
|
channel: 'channel',
|
|
277
|
+
deleted_by: 'deleted_by',
|
|
273
278
|
draft: 'draft',
|
|
274
279
|
i18n: 'i18n',
|
|
275
280
|
image_labels: 'image_labels',
|
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute feed_groups
|
|
22
22
|
# @return [Array<String>]
|
|
23
23
|
attr_accessor :feed_groups
|
|
24
|
+
# @!attribute filter_conditions
|
|
25
|
+
# @return [Object] Limits deletion to activities matching every condition; expires_at supports only $exists: true. Not allowed on old-activities. Omitted or null keeps the stored filter; {} removes it.
|
|
26
|
+
attr_accessor :filter_conditions
|
|
24
27
|
|
|
25
28
|
# Initialize with attributes
|
|
26
29
|
def initialize(attributes = {})
|
|
@@ -29,6 +32,7 @@ module GetStream
|
|
|
29
32
|
@policy = attributes.fetch(:policy) { attributes.fetch('policy', nil) }
|
|
30
33
|
@enabled = attributes.fetch(:enabled) { attributes.fetch('enabled', nil) }
|
|
31
34
|
@feed_groups = attributes.fetch(:feed_groups) { attributes.fetch('feed_groups', nil) }
|
|
35
|
+
@filter_conditions = attributes.fetch(:filter_conditions) { attributes.fetch('filter_conditions', nil) }
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
# Override field mappings for JSON serialization
|
|
@@ -37,7 +41,8 @@ module GetStream
|
|
|
37
41
|
max_age_hours: 'max_age_hours',
|
|
38
42
|
policy: 'policy',
|
|
39
43
|
enabled: 'enabled',
|
|
40
|
-
feed_groups: 'feed_groups'
|
|
44
|
+
feed_groups: 'feed_groups',
|
|
45
|
+
filter_conditions: 'filter_conditions'
|
|
41
46
|
}
|
|
42
47
|
end
|
|
43
48
|
end
|
|
@@ -15,6 +15,9 @@ module GetStream
|
|
|
15
15
|
# @!attribute auto_restore_warning
|
|
16
16
|
# @return [String] Present when the appeal was accepted but the entity could not be restored automatically. The moderator should restore it manually.
|
|
17
17
|
attr_accessor :auto_restore_warning
|
|
18
|
+
# @!attribute item_id
|
|
19
|
+
# @return [String] ID of the review queue item the action was performed on
|
|
20
|
+
attr_accessor :item_id
|
|
18
21
|
# @!attribute appeal_item
|
|
19
22
|
# @return [AppealItemResponse]
|
|
20
23
|
attr_accessor :appeal_item
|
|
@@ -27,6 +30,7 @@ module GetStream
|
|
|
27
30
|
super(attributes)
|
|
28
31
|
@duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
|
|
29
32
|
@auto_restore_warning = attributes.fetch(:auto_restore_warning) { attributes.fetch('auto_restore_warning', nil) }
|
|
33
|
+
@item_id = attributes.fetch(:item_id) { attributes.fetch('item_id', nil) }
|
|
30
34
|
@appeal_item = attributes.fetch(:appeal_item) { attributes.fetch('appeal_item', nil) }
|
|
31
35
|
@item = attributes.fetch(:item) { attributes.fetch('item', nil) }
|
|
32
36
|
end
|
|
@@ -36,6 +40,7 @@ module GetStream
|
|
|
36
40
|
{
|
|
37
41
|
duration: 'duration',
|
|
38
42
|
auto_restore_warning: 'auto_restore_warning',
|
|
43
|
+
item_id: 'item_id',
|
|
39
44
|
appeal_item: 'appeal_item',
|
|
40
45
|
item: 'item'
|
|
41
46
|
}
|