getstream-ruby 11.0.1 → 12.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/chat_client.rb +143 -3
- data/lib/getstream_ruby/generated/common_client.rb +53 -0
- data/lib/getstream_ruby/generated/feed.rb +9 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +20 -2
- data/lib/getstream_ruby/generated/models/accept_follow_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/activity_processing_config.rb +36 -0
- data/lib/getstream_ruby/generated/models/activity_processor_config.rb +11 -1
- data/lib/getstream_ruby/generated/models/ai_video_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/ai_video_config_request.rb +41 -0
- data/lib/getstream_ruby/generated/models/ai_video_config_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/analyze_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/app_response_fields.rb +15 -0
- data/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/channel_batch_update_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/channel_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/channel_config_with_info.rb +5 -0
- data/lib/getstream_ruby/generated/models/channel_member_request.rb +6 -6
- data/lib/getstream_ruby/generated/models/channel_type_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/classification.rb +5 -0
- data/lib/getstream_ruby/generated/models/config_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/create_channel_type_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/create_feed_group_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/create_feeds_batch_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/create_permission_request.rb +61 -0
- data/lib/getstream_ruby/generated/models/create_predefined_filter_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/create_predefined_filter_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/create_reminder_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/feed_group.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_group_response.rb +10 -0
- data/lib/getstream_ruby/generated/models/follow_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/get_channel_type_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/get_feed_counts_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/get_pinned_messages_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_predefined_filter_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/member_user_request.rb +76 -0
- data/lib/getstream_ruby/generated/models/message_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/message_with_channel_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_flag_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/performance_analysis_response.rb +71 -0
- data/lib/getstream_ruby/generated/models/permission_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/poll_response_data.rb +1 -1
- data/lib/getstream_ruby/generated/models/predefined_filter_response.rb +76 -0
- data/lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/push_notification_config.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_members_payload.rb +5 -5
- data/lib/getstream_ruby/generated/models/query_predefined_filters_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/reminder_created_event.rb +6 -6
- data/lib/getstream_ruby/generated/models/reminder_deleted_event.rb +6 -6
- data/lib/getstream_ruby/generated/models/reminder_notification_event.rb +6 -6
- data/lib/getstream_ruby/generated/models/reminder_updated_event.rb +6 -6
- data/lib/getstream_ruby/generated/models/restore_action_request_payload.rb +1 -1
- data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
- data/lib/getstream_ruby/generated/models/sort_param.rb +41 -0
- data/lib/getstream_ruby/generated/models/submit_action_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/translate_message_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/unban_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/unblock_action_request_payload.rb +1 -1
- data/lib/getstream_ruby/generated/models/update_app_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/update_channel_type_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_channel_type_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/update_feed_group_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/update_predefined_filter_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/update_predefined_filter_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
- data/lib/getstream_ruby/generated/video_client.rb +3 -3
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +22 -2
|
@@ -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 GetPredefinedFilterResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute predefined_filter
|
|
16
|
+
# @return [PredefinedFilterResponse]
|
|
17
|
+
attr_accessor :predefined_filter
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@predefined_filter = attributes[:predefined_filter] || attributes['predefined_filter'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
predefined_filter: 'predefined_filter'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class MemberUserRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
# @!attribute image
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :image
|
|
18
|
+
# @!attribute invisible
|
|
19
|
+
# @return [Boolean]
|
|
20
|
+
attr_accessor :invisible
|
|
21
|
+
# @!attribute language
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :language
|
|
24
|
+
# @!attribute name
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
# @!attribute role
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :role
|
|
30
|
+
# @!attribute teams
|
|
31
|
+
# @return [Array<String>]
|
|
32
|
+
attr_accessor :teams
|
|
33
|
+
# @!attribute custom
|
|
34
|
+
# @return [Object]
|
|
35
|
+
attr_accessor :custom
|
|
36
|
+
# @!attribute privacy_settings
|
|
37
|
+
# @return [PrivacySettingsResponse]
|
|
38
|
+
attr_accessor :privacy_settings
|
|
39
|
+
# @!attribute teams_role
|
|
40
|
+
# @return [Hash<String, String>]
|
|
41
|
+
attr_accessor :teams_role
|
|
42
|
+
|
|
43
|
+
# Initialize with attributes
|
|
44
|
+
def initialize(attributes = {})
|
|
45
|
+
super(attributes)
|
|
46
|
+
@id = attributes[:id] || attributes['id']
|
|
47
|
+
@image = attributes[:image] || attributes['image'] || nil
|
|
48
|
+
@invisible = attributes[:invisible] || attributes['invisible'] || nil
|
|
49
|
+
@language = attributes[:language] || attributes['language'] || nil
|
|
50
|
+
@name = attributes[:name] || attributes['name'] || nil
|
|
51
|
+
@role = attributes[:role] || attributes['role'] || nil
|
|
52
|
+
@teams = attributes[:teams] || attributes['teams'] || nil
|
|
53
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
54
|
+
@privacy_settings = attributes[:privacy_settings] || attributes['privacy_settings'] || nil
|
|
55
|
+
@teams_role = attributes[:teams_role] || attributes['teams_role'] || nil
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Override field mappings for JSON serialization
|
|
59
|
+
def self.json_field_mappings
|
|
60
|
+
{
|
|
61
|
+
id: 'id',
|
|
62
|
+
image: 'image',
|
|
63
|
+
invisible: 'invisible',
|
|
64
|
+
language: 'language',
|
|
65
|
+
name: 'name',
|
|
66
|
+
role: 'role',
|
|
67
|
+
teams: 'teams',
|
|
68
|
+
custom: 'custom',
|
|
69
|
+
privacy_settings: 'privacy_settings',
|
|
70
|
+
teams_role: 'teams_role'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -135,6 +135,9 @@ module GetStream
|
|
|
135
135
|
# @!attribute member
|
|
136
136
|
# @return [ChannelMemberPartialResponse]
|
|
137
137
|
attr_accessor :member
|
|
138
|
+
# @!attribute mentioned_channel_members
|
|
139
|
+
# @return [Hash<String, ChannelMemberPartialResponse>] Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
|
|
140
|
+
attr_accessor :mentioned_channel_members
|
|
138
141
|
# @!attribute moderation
|
|
139
142
|
# @return [ModerationV2Response]
|
|
140
143
|
attr_accessor :moderation
|
|
@@ -202,6 +205,7 @@ module GetStream
|
|
|
202
205
|
@i18n = attributes[:i18n] || attributes['i18n'] || nil
|
|
203
206
|
@image_labels = attributes[:image_labels] || attributes['image_labels'] || nil
|
|
204
207
|
@member = attributes[:member] || attributes['member'] || nil
|
|
208
|
+
@mentioned_channel_members = attributes[:mentioned_channel_members] || attributes['mentioned_channel_members'] || nil
|
|
205
209
|
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
206
210
|
@pinned_by = attributes[:pinned_by] || attributes['pinned_by'] || nil
|
|
207
211
|
@poll = attributes[:poll] || attributes['poll'] || nil
|
|
@@ -256,6 +260,7 @@ module GetStream
|
|
|
256
260
|
i18n: 'i18n',
|
|
257
261
|
image_labels: 'image_labels',
|
|
258
262
|
member: 'member',
|
|
263
|
+
mentioned_channel_members: 'mentioned_channel_members',
|
|
259
264
|
moderation: 'moderation',
|
|
260
265
|
pinned_by: 'pinned_by',
|
|
261
266
|
poll: 'poll',
|
|
@@ -138,6 +138,9 @@ module GetStream
|
|
|
138
138
|
# @!attribute member
|
|
139
139
|
# @return [ChannelMemberPartialResponse]
|
|
140
140
|
attr_accessor :member
|
|
141
|
+
# @!attribute mentioned_channel_members
|
|
142
|
+
# @return [Hash<String, ChannelMemberPartialResponse>] Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
|
|
143
|
+
attr_accessor :mentioned_channel_members
|
|
141
144
|
# @!attribute moderation
|
|
142
145
|
# @return [ModerationV2Response]
|
|
143
146
|
attr_accessor :moderation
|
|
@@ -206,6 +209,7 @@ module GetStream
|
|
|
206
209
|
@i18n = attributes[:i18n] || attributes['i18n'] || nil
|
|
207
210
|
@image_labels = attributes[:image_labels] || attributes['image_labels'] || nil
|
|
208
211
|
@member = attributes[:member] || attributes['member'] || nil
|
|
212
|
+
@mentioned_channel_members = attributes[:mentioned_channel_members] || attributes['mentioned_channel_members'] || nil
|
|
209
213
|
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
210
214
|
@pinned_by = attributes[:pinned_by] || attributes['pinned_by'] || nil
|
|
211
215
|
@poll = attributes[:poll] || attributes['poll'] || nil
|
|
@@ -261,6 +265,7 @@ module GetStream
|
|
|
261
265
|
i18n: 'i18n',
|
|
262
266
|
image_labels: 'image_labels',
|
|
263
267
|
member: 'member',
|
|
268
|
+
mentioned_channel_members: 'mentioned_channel_members',
|
|
264
269
|
moderation: 'moderation',
|
|
265
270
|
pinned_by: 'pinned_by',
|
|
266
271
|
poll: 'poll',
|
|
@@ -30,6 +30,9 @@ module GetStream
|
|
|
30
30
|
# @!attribute result
|
|
31
31
|
# @return [Array<Object>]
|
|
32
32
|
attr_accessor :result
|
|
33
|
+
# @!attribute content_published_at
|
|
34
|
+
# @return [DateTime]
|
|
35
|
+
attr_accessor :content_published_at
|
|
33
36
|
# @!attribute entity_creator_id
|
|
34
37
|
# @return [String]
|
|
35
38
|
attr_accessor :entity_creator_id
|
|
@@ -65,6 +68,7 @@ module GetStream
|
|
|
65
68
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
66
69
|
@user_id = attributes[:user_id] || attributes['user_id']
|
|
67
70
|
@result = attributes[:result] || attributes['result']
|
|
71
|
+
@content_published_at = attributes[:content_published_at] || attributes['content_published_at'] || nil
|
|
68
72
|
@entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil
|
|
69
73
|
@reason = attributes[:reason] || attributes['reason'] || nil
|
|
70
74
|
@review_queue_item_id = attributes[:review_queue_item_id] || attributes['review_queue_item_id'] || nil
|
|
@@ -85,6 +89,7 @@ module GetStream
|
|
|
85
89
|
updated_at: 'updated_at',
|
|
86
90
|
user_id: 'user_id',
|
|
87
91
|
result: 'result',
|
|
92
|
+
content_published_at: 'content_published_at',
|
|
88
93
|
entity_creator_id: 'entity_creator_id',
|
|
89
94
|
reason: 'reason',
|
|
90
95
|
review_queue_item_id: 'review_queue_item_id',
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class PerformanceAnalysisResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute analysis_type
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :analysis_type
|
|
15
|
+
# @!attribute score
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :score
|
|
18
|
+
# @!attribute indexed_fields
|
|
19
|
+
# @return [Array<String>]
|
|
20
|
+
attr_accessor :indexed_fields
|
|
21
|
+
# @!attribute recommendations
|
|
22
|
+
# @return [Array<String>]
|
|
23
|
+
attr_accessor :recommendations
|
|
24
|
+
# @!attribute unindexed_fields
|
|
25
|
+
# @return [Array<String>]
|
|
26
|
+
attr_accessor :unindexed_fields
|
|
27
|
+
# @!attribute unindexed_sort_fields
|
|
28
|
+
# @return [Array<String>]
|
|
29
|
+
attr_accessor :unindexed_sort_fields
|
|
30
|
+
# @!attribute warnings
|
|
31
|
+
# @return [Array<String>]
|
|
32
|
+
attr_accessor :warnings
|
|
33
|
+
# @!attribute last_analyzed
|
|
34
|
+
# @return [DateTime]
|
|
35
|
+
attr_accessor :last_analyzed
|
|
36
|
+
# @!attribute scan_type
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :scan_type
|
|
39
|
+
|
|
40
|
+
# Initialize with attributes
|
|
41
|
+
def initialize(attributes = {})
|
|
42
|
+
super(attributes)
|
|
43
|
+
@analysis_type = attributes[:analysis_type] || attributes['analysis_type']
|
|
44
|
+
@score = attributes[:score] || attributes['score']
|
|
45
|
+
@indexed_fields = attributes[:indexed_fields] || attributes['indexed_fields']
|
|
46
|
+
@recommendations = attributes[:recommendations] || attributes['recommendations']
|
|
47
|
+
@unindexed_fields = attributes[:unindexed_fields] || attributes['unindexed_fields']
|
|
48
|
+
@unindexed_sort_fields = attributes[:unindexed_sort_fields] || attributes['unindexed_sort_fields']
|
|
49
|
+
@warnings = attributes[:warnings] || attributes['warnings']
|
|
50
|
+
@last_analyzed = attributes[:last_analyzed] || attributes['last_analyzed'] || nil
|
|
51
|
+
@scan_type = attributes[:scan_type] || attributes['scan_type'] || nil
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Override field mappings for JSON serialization
|
|
55
|
+
def self.json_field_mappings
|
|
56
|
+
{
|
|
57
|
+
analysis_type: 'analysis_type',
|
|
58
|
+
score: 'score',
|
|
59
|
+
indexed_fields: 'indexed_fields',
|
|
60
|
+
recommendations: 'recommendations',
|
|
61
|
+
unindexed_fields: 'unindexed_fields',
|
|
62
|
+
unindexed_sort_fields: 'unindexed_sort_fields',
|
|
63
|
+
warnings: 'warnings',
|
|
64
|
+
last_analyzed: 'last_analyzed',
|
|
65
|
+
scan_type: 'scan_type'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
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 PermissionRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute action
|
|
13
|
+
# @return [String] Action name this permission is for (e.g. SendMessage)
|
|
14
|
+
attr_accessor :action
|
|
15
|
+
# @!attribute name
|
|
16
|
+
# @return [String] Name of the permission
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
# @!attribute condition
|
|
19
|
+
# @return [Object] MongoDB style condition which decides whether or not the permission is granted
|
|
20
|
+
attr_accessor :condition
|
|
21
|
+
# @!attribute description
|
|
22
|
+
# @return [String] Description of the permission
|
|
23
|
+
attr_accessor :description
|
|
24
|
+
# @!attribute owner
|
|
25
|
+
# @return [Boolean] Whether this permission applies to resource owner or not
|
|
26
|
+
attr_accessor :owner
|
|
27
|
+
# @!attribute same_team
|
|
28
|
+
# @return [Boolean] Whether this permission applies to teammates (multi-tenancy mode only)
|
|
29
|
+
attr_accessor :same_team
|
|
30
|
+
|
|
31
|
+
# Initialize with attributes
|
|
32
|
+
def initialize(attributes = {})
|
|
33
|
+
super(attributes)
|
|
34
|
+
@action = attributes[:action] || attributes['action']
|
|
35
|
+
@name = attributes[:name] || attributes['name']
|
|
36
|
+
@condition = attributes[:condition] || attributes['condition']
|
|
37
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
38
|
+
@owner = attributes[:owner] || attributes['owner'] || nil
|
|
39
|
+
@same_team = attributes[:same_team] || attributes['same_team'] || nil
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Override field mappings for JSON serialization
|
|
43
|
+
def self.json_field_mappings
|
|
44
|
+
{
|
|
45
|
+
action: 'action',
|
|
46
|
+
name: 'name',
|
|
47
|
+
condition: 'condition',
|
|
48
|
+
description: 'description',
|
|
49
|
+
owner: 'owner',
|
|
50
|
+
same_team: 'same_team'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -43,7 +43,7 @@ module GetStream
|
|
|
43
43
|
# @return [Integer]
|
|
44
44
|
attr_accessor :vote_count
|
|
45
45
|
# @!attribute voting_visibility
|
|
46
|
-
# @return [String]
|
|
46
|
+
# @return [String] Voting visibility of the poll
|
|
47
47
|
attr_accessor :voting_visibility
|
|
48
48
|
# @!attribute latest_answers
|
|
49
49
|
# @return [Array<PollVoteResponseData>]
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class PredefinedFilterResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime]
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute name
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
# @!attribute operation
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :operation
|
|
21
|
+
# @!attribute updated_at
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :updated_at
|
|
24
|
+
# @!attribute filter
|
|
25
|
+
# @return [Object]
|
|
26
|
+
attr_accessor :filter
|
|
27
|
+
# @!attribute description
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :description
|
|
30
|
+
# @!attribute query_id
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
attr_accessor :query_id
|
|
33
|
+
# @!attribute sort
|
|
34
|
+
# @return [Array<SortParam>]
|
|
35
|
+
attr_accessor :sort
|
|
36
|
+
# @!attribute performance
|
|
37
|
+
# @return [PerformanceAnalysisResponse]
|
|
38
|
+
attr_accessor :performance
|
|
39
|
+
# @!attribute stats
|
|
40
|
+
# @return [PredefinedFilterStatsResponse]
|
|
41
|
+
attr_accessor :stats
|
|
42
|
+
|
|
43
|
+
# Initialize with attributes
|
|
44
|
+
def initialize(attributes = {})
|
|
45
|
+
super(attributes)
|
|
46
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
47
|
+
@name = attributes[:name] || attributes['name']
|
|
48
|
+
@operation = attributes[:operation] || attributes['operation']
|
|
49
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
50
|
+
@filter = attributes[:filter] || attributes['filter']
|
|
51
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
52
|
+
@query_id = attributes[:query_id] || attributes['query_id'] || nil
|
|
53
|
+
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
54
|
+
@performance = attributes[:performance] || attributes['performance'] || nil
|
|
55
|
+
@stats = attributes[:stats] || attributes['stats'] || nil
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Override field mappings for JSON serialization
|
|
59
|
+
def self.json_field_mappings
|
|
60
|
+
{
|
|
61
|
+
created_at: 'created_at',
|
|
62
|
+
name: 'name',
|
|
63
|
+
operation: 'operation',
|
|
64
|
+
updated_at: 'updated_at',
|
|
65
|
+
filter: 'filter',
|
|
66
|
+
description: 'description',
|
|
67
|
+
query_id: 'query_id',
|
|
68
|
+
sort: 'sort',
|
|
69
|
+
performance: 'performance',
|
|
70
|
+
stats: 'stats'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
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 PredefinedFilterStatsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute calls
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :calls
|
|
15
|
+
# @!attribute max_latency_ms
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :max_latency_ms
|
|
18
|
+
# @!attribute last_seen
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :last_seen
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@calls = attributes[:calls] || attributes['calls']
|
|
26
|
+
@max_latency_ms = attributes[:max_latency_ms] || attributes['max_latency_ms']
|
|
27
|
+
@last_seen = attributes[:last_seen] || attributes['last_seen'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
calls: 'calls',
|
|
34
|
+
max_latency_ms: 'max_latency_ms',
|
|
35
|
+
last_seen: 'last_seen'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -13,7 +13,7 @@ module GetStream
|
|
|
13
13
|
# @return [Boolean] Whether push notifications are enabled for this feed group
|
|
14
14
|
attr_accessor :enable_push
|
|
15
15
|
# @!attribute push_types
|
|
16
|
-
# @return [Array<String>]
|
|
16
|
+
# @return [Array<String>] Allowlist of notification types that may trigger push (e.g. follow, comment, reaction, comment_reaction, mention, or any custom activity.type). Empty or omitted means no types. Built-in notifications match notification_context.trigger.type; manually added notification activities match activity.type.
|
|
17
17
|
attr_accessor :push_types
|
|
18
18
|
|
|
19
19
|
# Initialize with attributes
|
|
@@ -12,9 +12,6 @@ module GetStream
|
|
|
12
12
|
# @!attribute type
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :type
|
|
15
|
-
# @!attribute filter_conditions
|
|
16
|
-
# @return [Object] Filter conditions to apply to the query
|
|
17
|
-
attr_accessor :filter_conditions
|
|
18
15
|
# @!attribute id
|
|
19
16
|
# @return [String]
|
|
20
17
|
attr_accessor :id
|
|
@@ -33,6 +30,9 @@ module GetStream
|
|
|
33
30
|
# @!attribute sort
|
|
34
31
|
# @return [Array<SortParamRequest>] Array of sort parameters
|
|
35
32
|
attr_accessor :sort
|
|
33
|
+
# @!attribute filter_conditions
|
|
34
|
+
# @return [Object] Filter conditions to apply to the query
|
|
35
|
+
attr_accessor :filter_conditions
|
|
36
36
|
# @!attribute user
|
|
37
37
|
# @return [UserRequest] User request object
|
|
38
38
|
attr_accessor :user
|
|
@@ -41,13 +41,13 @@ module GetStream
|
|
|
41
41
|
def initialize(attributes = {})
|
|
42
42
|
super(attributes)
|
|
43
43
|
@type = attributes[:type] || attributes['type']
|
|
44
|
-
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions']
|
|
45
44
|
@id = attributes[:id] || attributes['id'] || nil
|
|
46
45
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
47
46
|
@offset = attributes[:offset] || attributes['offset'] || nil
|
|
48
47
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
49
48
|
@members = attributes[:members] || attributes['members'] || nil
|
|
50
49
|
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
50
|
+
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil
|
|
51
51
|
@user = attributes[:user] || attributes['user'] || nil
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -55,13 +55,13 @@ module GetStream
|
|
|
55
55
|
def self.json_field_mappings
|
|
56
56
|
{
|
|
57
57
|
type: 'type',
|
|
58
|
-
filter_conditions: 'filter_conditions',
|
|
59
58
|
id: 'id',
|
|
60
59
|
limit: 'limit',
|
|
61
60
|
offset: 'offset',
|
|
62
61
|
user_id: 'user_id',
|
|
63
62
|
members: 'members',
|
|
64
63
|
sort: 'sort',
|
|
64
|
+
filter_conditions: 'filter_conditions',
|
|
65
65
|
user: 'user'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class QueryPredefinedFiltersResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute predefined_filters
|
|
16
|
+
# @return [Array<PredefinedFilterResponse>] Predefined filters
|
|
17
|
+
attr_accessor :predefined_filters
|
|
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
|
+
@predefined_filters = attributes[:predefined_filters] || attributes['predefined_filters']
|
|
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
|
+
predefined_filters: 'predefined_filters',
|
|
39
|
+
next: 'next',
|
|
40
|
+
prev: 'prev'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute start_date
|
|
25
25
|
# @return [String] Start date in YYYY-MM-DD format. Used with end_date for custom date range. Returns daily breakdown.
|
|
26
26
|
attr_accessor :start_date
|
|
27
|
+
# @!attribute team
|
|
28
|
+
# @return [String] Filter results to a single team ID. Empty string selects users not assigned to any team. Mutually exclusive with 'next'.
|
|
29
|
+
attr_accessor :team
|
|
27
30
|
|
|
28
31
|
# Initialize with attributes
|
|
29
32
|
def initialize(attributes = {})
|
|
@@ -33,6 +36,7 @@ module GetStream
|
|
|
33
36
|
@month = attributes[:month] || attributes['month'] || nil
|
|
34
37
|
@next = attributes[:next] || attributes['next'] || nil
|
|
35
38
|
@start_date = attributes[:start_date] || attributes['start_date'] || nil
|
|
39
|
+
@team = attributes[:team] || attributes['team'] || nil
|
|
36
40
|
end
|
|
37
41
|
|
|
38
42
|
# Override field mappings for JSON serialization
|
|
@@ -42,7 +46,8 @@ module GetStream
|
|
|
42
46
|
limit: 'limit',
|
|
43
47
|
month: 'month',
|
|
44
48
|
next: 'next',
|
|
45
|
-
start_date: 'start_date'
|
|
49
|
+
start_date: 'start_date',
|
|
50
|
+
team: 'team'
|
|
46
51
|
}
|
|
47
52
|
end
|
|
48
53
|
end
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute custom
|
|
25
25
|
# @return [Object]
|
|
26
26
|
attr_accessor :custom
|
|
27
|
+
# @!attribute reminder
|
|
28
|
+
# @return [ReminderResponseData]
|
|
29
|
+
attr_accessor :reminder
|
|
27
30
|
# @!attribute type
|
|
28
31
|
# @return [String] The type of event: "reminder.created" in this case
|
|
29
32
|
attr_accessor :type
|
|
@@ -33,9 +36,6 @@ module GetStream
|
|
|
33
36
|
# @!attribute received_at
|
|
34
37
|
# @return [DateTime]
|
|
35
38
|
attr_accessor :received_at
|
|
36
|
-
# @!attribute reminder
|
|
37
|
-
# @return [ReminderResponseData]
|
|
38
|
-
attr_accessor :reminder
|
|
39
39
|
|
|
40
40
|
# Initialize with attributes
|
|
41
41
|
def initialize(attributes = {})
|
|
@@ -45,10 +45,10 @@ module GetStream
|
|
|
45
45
|
@message_id = attributes[:message_id] || attributes['message_id']
|
|
46
46
|
@user_id = attributes[:user_id] || attributes['user_id']
|
|
47
47
|
@custom = attributes[:custom] || attributes['custom']
|
|
48
|
+
@reminder = attributes[:reminder] || attributes['reminder']
|
|
48
49
|
@type = attributes[:type] || attributes['type'] || "reminder.created"
|
|
49
50
|
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
50
51
|
@received_at = attributes[:received_at] || attributes['received_at'] || nil
|
|
51
|
-
@reminder = attributes[:reminder] || attributes['reminder'] || nil
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# Override field mappings for JSON serialization
|
|
@@ -59,10 +59,10 @@ module GetStream
|
|
|
59
59
|
message_id: 'message_id',
|
|
60
60
|
user_id: 'user_id',
|
|
61
61
|
custom: 'custom',
|
|
62
|
+
reminder: 'reminder',
|
|
62
63
|
type: 'type',
|
|
63
64
|
parent_id: 'parent_id',
|
|
64
|
-
received_at: 'received_at'
|
|
65
|
-
reminder: 'reminder'
|
|
65
|
+
received_at: 'received_at'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
end
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute custom
|
|
25
25
|
# @return [Object]
|
|
26
26
|
attr_accessor :custom
|
|
27
|
+
# @!attribute reminder
|
|
28
|
+
# @return [ReminderResponseData]
|
|
29
|
+
attr_accessor :reminder
|
|
27
30
|
# @!attribute type
|
|
28
31
|
# @return [String] The type of event: "reminder.deleted" in this case
|
|
29
32
|
attr_accessor :type
|
|
@@ -33,9 +36,6 @@ module GetStream
|
|
|
33
36
|
# @!attribute received_at
|
|
34
37
|
# @return [DateTime]
|
|
35
38
|
attr_accessor :received_at
|
|
36
|
-
# @!attribute reminder
|
|
37
|
-
# @return [ReminderResponseData]
|
|
38
|
-
attr_accessor :reminder
|
|
39
39
|
|
|
40
40
|
# Initialize with attributes
|
|
41
41
|
def initialize(attributes = {})
|
|
@@ -45,10 +45,10 @@ module GetStream
|
|
|
45
45
|
@message_id = attributes[:message_id] || attributes['message_id']
|
|
46
46
|
@user_id = attributes[:user_id] || attributes['user_id']
|
|
47
47
|
@custom = attributes[:custom] || attributes['custom']
|
|
48
|
+
@reminder = attributes[:reminder] || attributes['reminder']
|
|
48
49
|
@type = attributes[:type] || attributes['type'] || "reminder.deleted"
|
|
49
50
|
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
50
51
|
@received_at = attributes[:received_at] || attributes['received_at'] || nil
|
|
51
|
-
@reminder = attributes[:reminder] || attributes['reminder'] || nil
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# Override field mappings for JSON serialization
|
|
@@ -59,10 +59,10 @@ module GetStream
|
|
|
59
59
|
message_id: 'message_id',
|
|
60
60
|
user_id: 'user_id',
|
|
61
61
|
custom: 'custom',
|
|
62
|
+
reminder: 'reminder',
|
|
62
63
|
type: 'type',
|
|
63
64
|
parent_id: 'parent_id',
|
|
64
|
-
received_at: 'received_at'
|
|
65
|
-
reminder: 'reminder'
|
|
65
|
+
received_at: 'received_at'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
end
|