getstream-ruby 11.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/getstream_ruby/client.rb +1 -0
- data/lib/getstream_ruby/configuration.rb +4 -2
- data/lib/getstream_ruby/generated/chat_client.rb +141 -1
- 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 +18 -0
- data/lib/getstream_ruby/generated/models/activity_processor_config.rb +11 -1
- data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb +2 -2
- 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_type_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/classification.rb +5 -0
- data/lib/getstream_ruby/generated/models/create_channel_type_response.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/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_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/performance_analysis_response.rb +71 -0
- data/lib/getstream_ruby/generated/models/permission_request.rb +56 -0
- 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_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/restore_action_request_payload.rb +1 -1
- 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/unblock_action_request_payload.rb +1 -1
- 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_predefined_filter_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/update_predefined_filter_response.rb +36 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +16 -2
|
@@ -39,6 +39,9 @@ module GetStream
|
|
|
39
39
|
# @!attribute max_message_length
|
|
40
40
|
# @return [Integer]
|
|
41
41
|
attr_accessor :max_message_length
|
|
42
|
+
# @!attribute message_retention
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :message_retention
|
|
42
45
|
# @!attribute mutes
|
|
43
46
|
# @return [Boolean]
|
|
44
47
|
attr_accessor :mutes
|
|
@@ -140,6 +143,7 @@ module GetStream
|
|
|
140
143
|
@duration = attributes[:duration] || attributes['duration']
|
|
141
144
|
@mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending']
|
|
142
145
|
@max_message_length = attributes[:max_message_length] || attributes['max_message_length']
|
|
146
|
+
@message_retention = attributes[:message_retention] || attributes['message_retention']
|
|
143
147
|
@mutes = attributes[:mutes] || attributes['mutes']
|
|
144
148
|
@name = attributes[:name] || attributes['name']
|
|
145
149
|
@polls = attributes[:polls] || attributes['polls']
|
|
@@ -184,6 +188,7 @@ module GetStream
|
|
|
184
188
|
duration: 'duration',
|
|
185
189
|
mark_messages_pending: 'mark_messages_pending',
|
|
186
190
|
max_message_length: 'max_message_length',
|
|
191
|
+
message_retention: 'message_retention',
|
|
187
192
|
mutes: 'mutes',
|
|
188
193
|
name: 'name',
|
|
189
194
|
polls: 'polls',
|
|
@@ -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 GetFeedCountsResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute activity_count
|
|
13
|
+
# @return [Integer] Number of activities in the feed
|
|
14
|
+
attr_accessor :activity_count
|
|
15
|
+
# @!attribute comment_count
|
|
16
|
+
# @return [Integer] Total number of comments on those activities, including nested replies
|
|
17
|
+
attr_accessor :comment_count
|
|
18
|
+
# @!attribute duration
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :duration
|
|
21
|
+
# @!attribute total_count
|
|
22
|
+
# @return [Integer] Sum of activity_count and comment_count
|
|
23
|
+
attr_accessor :total_count
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@activity_count = attributes[:activity_count] || attributes['activity_count']
|
|
29
|
+
@comment_count = attributes[:comment_count] || attributes['comment_count']
|
|
30
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
31
|
+
@total_count = attributes[:total_count] || attributes['total_count']
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
activity_count: 'activity_count',
|
|
38
|
+
comment_count: 'comment_count',
|
|
39
|
+
duration: 'duration',
|
|
40
|
+
total_count: 'total_count'
|
|
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
|
+
#
|
|
9
|
+
class GetPinnedMessagesResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String] Duration of the request in milliseconds
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute messages
|
|
16
|
+
# @return [Array<MessageResponse>] Messages
|
|
17
|
+
attr_accessor :messages
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@messages = attributes[:messages] || attributes['messages']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
messages: 'messages'
|
|
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 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,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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
module GetStream
|
|
6
6
|
module Generated
|
|
7
7
|
module Models
|
|
8
|
-
# Configuration for restore action
|
|
8
|
+
# Configuration for restore action. State-aware: reverses whichever of a delete, a block, or a shadow block currently applies to the content (including both a delete and a block/shadow block at once).
|
|
9
9
|
class RestoreActionRequestPayload < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
@@ -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 SortParam < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute direction
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :direction
|
|
15
|
+
# @!attribute field
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :field
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@direction = attributes[:direction] || attributes['direction']
|
|
26
|
+
@field = attributes[:field] || attributes['field']
|
|
27
|
+
@type = attributes[:type] || attributes['type']
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
direction: 'direction',
|
|
34
|
+
field: 'field',
|
|
35
|
+
type: 'type'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -64,7 +64,7 @@ module GetStream
|
|
|
64
64
|
# @return [RejectAppealRequestPayload] Configuration for rejecting an appeal
|
|
65
65
|
attr_accessor :reject_appeal
|
|
66
66
|
# @!attribute restore
|
|
67
|
-
# @return [RestoreActionRequestPayload] Configuration for restore action
|
|
67
|
+
# @return [RestoreActionRequestPayload] Configuration for restore action. State-aware: reverses whichever of a delete, a block, or a shadow block currently applies to the content (including both a delete and a block/shadow block at once).
|
|
68
68
|
attr_accessor :restore
|
|
69
69
|
# @!attribute shadow_block
|
|
70
70
|
# @return [ShadowBlockActionRequestPayload] Configuration for shadow block action
|
|
@@ -73,7 +73,7 @@ module GetStream
|
|
|
73
73
|
# @return [UnbanActionRequestPayload] Configuration for unban moderation action
|
|
74
74
|
attr_accessor :unban
|
|
75
75
|
# @!attribute unblock
|
|
76
|
-
# @return [UnblockActionRequestPayload] Configuration for unblock action
|
|
76
|
+
# @return [UnblockActionRequestPayload] Deprecated: use restore instead — it now also reverses a block or shadow block. Configuration for unblock action.
|
|
77
77
|
attr_accessor :unblock
|
|
78
78
|
# @!attribute user
|
|
79
79
|
# @return [UserRequest] User request object
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
module GetStream
|
|
6
6
|
module Generated
|
|
7
7
|
module Models
|
|
8
|
-
# Configuration for unblock action
|
|
8
|
+
# Deprecated: use restore instead — it now also reverses a block or shadow block. Configuration for unblock action.
|
|
9
9
|
class UnblockActionRequestPayload < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
@@ -39,6 +39,9 @@ module GetStream
|
|
|
39
39
|
# @!attribute mark_messages_pending
|
|
40
40
|
# @return [Boolean]
|
|
41
41
|
attr_accessor :mark_messages_pending
|
|
42
|
+
# @!attribute message_retention
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :message_retention
|
|
42
45
|
# @!attribute mutes
|
|
43
46
|
# @return [Boolean]
|
|
44
47
|
attr_accessor :mutes
|
|
@@ -128,6 +131,7 @@ module GetStream
|
|
|
128
131
|
@custom_events = attributes[:custom_events] || attributes['custom_events'] || nil
|
|
129
132
|
@delivery_events = attributes[:delivery_events] || attributes['delivery_events'] || nil
|
|
130
133
|
@mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending'] || nil
|
|
134
|
+
@message_retention = attributes[:message_retention] || attributes['message_retention'] || nil
|
|
131
135
|
@mutes = attributes[:mutes] || attributes['mutes'] || nil
|
|
132
136
|
@partition_size = attributes[:partition_size] || attributes['partition_size'] || nil
|
|
133
137
|
@partition_ttl = attributes[:partition_ttl] || attributes['partition_ttl'] || nil
|
|
@@ -168,6 +172,7 @@ module GetStream
|
|
|
168
172
|
custom_events: 'custom_events',
|
|
169
173
|
delivery_events: 'delivery_events',
|
|
170
174
|
mark_messages_pending: 'mark_messages_pending',
|
|
175
|
+
message_retention: 'message_retention',
|
|
171
176
|
mutes: 'mutes',
|
|
172
177
|
partition_size: 'partition_size',
|
|
173
178
|
partition_ttl: 'partition_ttl',
|
|
@@ -39,6 +39,9 @@ module GetStream
|
|
|
39
39
|
# @!attribute max_message_length
|
|
40
40
|
# @return [Integer]
|
|
41
41
|
attr_accessor :max_message_length
|
|
42
|
+
# @!attribute message_retention
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :message_retention
|
|
42
45
|
# @!attribute mutes
|
|
43
46
|
# @return [Boolean]
|
|
44
47
|
attr_accessor :mutes
|
|
@@ -140,6 +143,7 @@ module GetStream
|
|
|
140
143
|
@duration = attributes[:duration] || attributes['duration']
|
|
141
144
|
@mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending']
|
|
142
145
|
@max_message_length = attributes[:max_message_length] || attributes['max_message_length']
|
|
146
|
+
@message_retention = attributes[:message_retention] || attributes['message_retention']
|
|
143
147
|
@mutes = attributes[:mutes] || attributes['mutes']
|
|
144
148
|
@name = attributes[:name] || attributes['name']
|
|
145
149
|
@polls = attributes[:polls] || attributes['polls']
|
|
@@ -184,6 +188,7 @@ module GetStream
|
|
|
184
188
|
duration: 'duration',
|
|
185
189
|
mark_messages_pending: 'mark_messages_pending',
|
|
186
190
|
max_message_length: 'max_message_length',
|
|
191
|
+
message_retention: 'message_retention',
|
|
187
192
|
mutes: 'mutes',
|
|
188
193
|
name: 'name',
|
|
189
194
|
polls: 'polls',
|
|
@@ -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 UpdatePredefinedFilterRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute operation
|
|
13
|
+
# @return [String] The operation this filter is for (e.g., QueryChannels)
|
|
14
|
+
attr_accessor :operation
|
|
15
|
+
# @!attribute filter
|
|
16
|
+
# @return [Object] Filter to apply to the query
|
|
17
|
+
attr_accessor :filter
|
|
18
|
+
# @!attribute description
|
|
19
|
+
# @return [String] The description of the predefined filter
|
|
20
|
+
attr_accessor :description
|
|
21
|
+
# @!attribute sort
|
|
22
|
+
# @return [Array<Object>]
|
|
23
|
+
attr_accessor :sort
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@operation = attributes[:operation] || attributes['operation']
|
|
29
|
+
@filter = attributes[:filter] || attributes['filter']
|
|
30
|
+
@description = attributes[:description] || attributes['description'] || nil
|
|
31
|
+
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
operation: 'operation',
|
|
38
|
+
filter: 'filter',
|
|
39
|
+
description: 'description',
|
|
40
|
+
sort: 'sort'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|