getstream-ruby 11.1.0 → 12.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/generated/chat_client.rb +5 -3
- data/lib/getstream_ruby/generated/common_client.rb +5 -1
- data/lib/getstream_ruby/generated/feeds_client.rb +7 -3
- data/lib/getstream_ruby/generated/models/accept_follow_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/activity_marks_config.rb +36 -0
- data/lib/getstream_ruby/generated/models/activity_processing_config.rb +41 -0
- data/lib/getstream_ruby/generated/models/activity_selector_config.rb +5 -0
- data/lib/getstream_ruby/generated/models/activity_selector_config_response.rb +5 -0
- 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/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/channel_batch_update_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/channel_member_request.rb +6 -6
- data/lib/getstream_ruby/generated/models/config_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/create_feed_group_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/create_feeds_batch_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/create_reminder_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/delete_channels_request.rb +7 -2
- data/lib/getstream_ruby/generated/models/feed_group.rb +5 -0
- data/lib/getstream_ruby/generated/models/feed_group_response.rb +15 -0
- data/lib/getstream_ruby/generated/models/feed_group_scope.rb +36 -0
- data/lib/getstream_ruby/generated/models/follow_response.rb +1 -1
- data/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb +10 -0
- data/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +15 -0
- data/lib/getstream_ruby/generated/models/get_rate_limits_response.rb +10 -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_dashboard_preferences.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_flag_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/pagination_params.rb +20 -0
- data/lib/getstream_ruby/generated/models/poll_response_data.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +20 -0
- data/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb +20 -0
- data/lib/getstream_ruby/generated/models/query_members_payload.rb +45 -5
- data/lib/getstream_ruby/generated/models/query_users_payload.rb +20 -0
- 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/review_queue_item_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/rule_builder_condition.rb +5 -0
- data/lib/getstream_ruby/generated/models/run_stats.rb +5 -0
- data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
- 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/update_app_request.rb +10 -0
- data/lib/getstream_ruby/generated/models/update_feed_group_request.rb +16 -1
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/update_users_response.rb +2 -1
- data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/user_reaction_count_rule_parameters.rb +36 -0
- data/lib/getstream_ruby/generated/models/webhook_failover_config.rb +30 -0
- data/lib/getstream_ruby/generated/video_client.rb +3 -3
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +11 -2
|
@@ -13,21 +13,26 @@ module GetStream
|
|
|
13
13
|
# @return [Array<String>] All channels that should be deleted
|
|
14
14
|
attr_accessor :cids
|
|
15
15
|
# @!attribute hard_delete
|
|
16
|
-
# @return [Boolean]
|
|
16
|
+
# @return [Boolean] Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
|
|
17
17
|
attr_accessor :hard_delete
|
|
18
|
+
# @!attribute skip_truncate
|
|
19
|
+
# @return [Boolean] Server-side only. When true, the soft delete preserves message history instead of hiding it, so a later recreation of any of these channel IDs restores the full history. Only supported for distinct channels. Cannot be combined with hard_delete.
|
|
20
|
+
attr_accessor :skip_truncate
|
|
18
21
|
|
|
19
22
|
# Initialize with attributes
|
|
20
23
|
def initialize(attributes = {})
|
|
21
24
|
super(attributes)
|
|
22
25
|
@cids = attributes[:cids] || attributes['cids']
|
|
23
26
|
@hard_delete = attributes[:hard_delete] || attributes['hard_delete'] || nil
|
|
27
|
+
@skip_truncate = attributes[:skip_truncate] || attributes['skip_truncate'] || 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
|
cids: 'cids',
|
|
30
|
-
hard_delete: 'hard_delete'
|
|
34
|
+
hard_delete: 'hard_delete',
|
|
35
|
+
skip_truncate: 'skip_truncate'
|
|
31
36
|
}
|
|
32
37
|
end
|
|
33
38
|
end
|
|
@@ -18,6 +18,9 @@ module GetStream
|
|
|
18
18
|
# @!attribute created_at
|
|
19
19
|
# @return [DateTime]
|
|
20
20
|
attr_accessor :created_at
|
|
21
|
+
# @!attribute default_follower_role
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :default_follower_role
|
|
21
24
|
# @!attribute default_visibility
|
|
22
25
|
# @return [String]
|
|
23
26
|
attr_accessor :default_visibility
|
|
@@ -67,6 +70,7 @@ module GetStream
|
|
|
67
70
|
@aggregation_version = attributes[:aggregation_version] || attributes['aggregation_version']
|
|
68
71
|
@app_pk = attributes[:app_pk] || attributes['app_pk']
|
|
69
72
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
73
|
+
@default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role']
|
|
70
74
|
@default_visibility = attributes[:default_visibility] || attributes['default_visibility']
|
|
71
75
|
@group_id = attributes[:group_id] || attributes['group_id']
|
|
72
76
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
@@ -89,6 +93,7 @@ module GetStream
|
|
|
89
93
|
aggregation_version: 'aggregation_version',
|
|
90
94
|
app_pk: 'app_pk',
|
|
91
95
|
created_at: 'created_at',
|
|
96
|
+
default_follower_role: 'default_follower_role',
|
|
92
97
|
default_visibility: 'default_visibility',
|
|
93
98
|
group_id: 'group_id',
|
|
94
99
|
updated_at: 'updated_at',
|
|
@@ -18,6 +18,9 @@ module GetStream
|
|
|
18
18
|
# @!attribute updated_at
|
|
19
19
|
# @return [DateTime] When the feed group was last updated
|
|
20
20
|
attr_accessor :updated_at
|
|
21
|
+
# @!attribute default_follower_role
|
|
22
|
+
# @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
23
|
+
attr_accessor :default_follower_role
|
|
21
24
|
# @!attribute default_visibility
|
|
22
25
|
# @return [String] Default visibility for activities. One of: public, visible, followers, members, private
|
|
23
26
|
attr_accessor :default_visibility
|
|
@@ -33,6 +36,12 @@ module GetStream
|
|
|
33
36
|
# @!attribute activity_filter
|
|
34
37
|
# @return [ActivityFilterConfig]
|
|
35
38
|
attr_accessor :activity_filter
|
|
39
|
+
# @!attribute activity_marks
|
|
40
|
+
# @return [ActivityMarksConfig]
|
|
41
|
+
attr_accessor :activity_marks
|
|
42
|
+
# @!attribute activity_processing
|
|
43
|
+
# @return [ActivityProcessingConfig]
|
|
44
|
+
attr_accessor :activity_processing
|
|
36
45
|
# @!attribute aggregation
|
|
37
46
|
# @return [AggregationConfig]
|
|
38
47
|
attr_accessor :aggregation
|
|
@@ -58,11 +67,14 @@ module GetStream
|
|
|
58
67
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
59
68
|
@id = attributes[:id] || attributes['id']
|
|
60
69
|
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
70
|
+
@default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
|
|
61
71
|
@default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
|
|
62
72
|
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
63
73
|
@activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
|
|
64
74
|
@activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
|
|
65
75
|
@activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
|
|
76
|
+
@activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil
|
|
77
|
+
@activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
|
|
66
78
|
@aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
|
|
67
79
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
68
80
|
@notification = attributes[:notification] || attributes['notification'] || nil
|
|
@@ -77,11 +89,14 @@ module GetStream
|
|
|
77
89
|
created_at: 'created_at',
|
|
78
90
|
id: 'id',
|
|
79
91
|
updated_at: 'updated_at',
|
|
92
|
+
default_follower_role: 'default_follower_role',
|
|
80
93
|
default_visibility: 'default_visibility',
|
|
81
94
|
deleted_at: 'deleted_at',
|
|
82
95
|
activity_processors: 'activity_processors',
|
|
83
96
|
activity_selectors: 'activity_selectors',
|
|
84
97
|
activity_filter: 'activity_filter',
|
|
98
|
+
activity_marks: 'activity_marks',
|
|
99
|
+
activity_processing: 'activity_processing',
|
|
85
100
|
aggregation: 'aggregation',
|
|
86
101
|
custom: 'custom',
|
|
87
102
|
notification: 'notification',
|
|
@@ -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 FeedGroupScope < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute exclude
|
|
13
|
+
# @return [Array<String>] Select activities from every feed group except these. An activity cross-posted to an excluded and a non-excluded group is still selected. Mutually exclusive with include
|
|
14
|
+
attr_accessor :exclude
|
|
15
|
+
# @!attribute include
|
|
16
|
+
# @return [Array<String>] Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
|
|
17
|
+
attr_accessor :include
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@exclude = attributes[:exclude] || attributes['exclude'] || nil
|
|
23
|
+
@include = attributes[:include] || attributes['include'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
exclude: 'exclude',
|
|
30
|
+
include: 'include'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -13,7 +13,7 @@ module GetStream
|
|
|
13
13
|
# @return [DateTime] When the follow relationship was created
|
|
14
14
|
attr_accessor :created_at
|
|
15
15
|
# @!attribute follower_role
|
|
16
|
-
# @return [String] Role of the follower (source user) in the follow relationship
|
|
16
|
+
# @return [String] Role of the follower (source user) in the follow relationship, as stored. A reserved name, or a role your app no longer defines, is reported as stored but evaluated as 'feed_follower'.
|
|
17
17
|
attr_accessor :follower_role
|
|
18
18
|
# @!attribute push_preference
|
|
19
19
|
# @return [String] Push preference for notifications. One of: all, none
|
|
@@ -24,6 +24,12 @@ module GetStream
|
|
|
24
24
|
# @!attribute unity
|
|
25
25
|
# @return [Hash<String, LimitInfoResponse>] Rate limits for Unity platform (endpoint name -> limit info)
|
|
26
26
|
attr_accessor :unity
|
|
27
|
+
# @!attribute unity_console
|
|
28
|
+
# @return [Hash<String, LimitInfoResponse>] Rate limits for Unity console platform (endpoint name -> limit info)
|
|
29
|
+
attr_accessor :unity_console
|
|
30
|
+
# @!attribute unity_desktop
|
|
31
|
+
# @return [Hash<String, LimitInfoResponse>] Rate limits for Unity desktop platform (endpoint name -> limit info)
|
|
32
|
+
attr_accessor :unity_desktop
|
|
27
33
|
# @!attribute web
|
|
28
34
|
# @return [Hash<String, LimitInfoResponse>] Rate limits for Web platform (endpoint name -> limit info)
|
|
29
35
|
attr_accessor :web
|
|
@@ -36,6 +42,8 @@ module GetStream
|
|
|
36
42
|
@ios = attributes[:ios] || attributes['ios'] || nil
|
|
37
43
|
@server_side = attributes[:server_side] || attributes['server_side'] || nil
|
|
38
44
|
@unity = attributes[:unity] || attributes['unity'] || nil
|
|
45
|
+
@unity_console = attributes[:unity_console] || attributes['unity_console'] || nil
|
|
46
|
+
@unity_desktop = attributes[:unity_desktop] || attributes['unity_desktop'] || nil
|
|
39
47
|
@web = attributes[:web] || attributes['web'] || nil
|
|
40
48
|
end
|
|
41
49
|
|
|
@@ -47,6 +55,8 @@ module GetStream
|
|
|
47
55
|
ios: 'ios',
|
|
48
56
|
server_side: 'server_side',
|
|
49
57
|
unity: 'unity',
|
|
58
|
+
unity_console: 'unity_console',
|
|
59
|
+
unity_desktop: 'unity_desktop',
|
|
50
60
|
web: 'web'
|
|
51
61
|
}
|
|
52
62
|
end
|
|
@@ -9,6 +9,9 @@ module GetStream
|
|
|
9
9
|
class GetOrCreateFeedGroupRequest < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute default_follower_role
|
|
13
|
+
# @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
14
|
+
attr_accessor :default_follower_role
|
|
12
15
|
# @!attribute default_visibility
|
|
13
16
|
# @return [String] Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
14
17
|
attr_accessor :default_visibility
|
|
@@ -21,6 +24,12 @@ module GetStream
|
|
|
21
24
|
# @!attribute activity_filter
|
|
22
25
|
# @return [ActivityFilterConfig]
|
|
23
26
|
attr_accessor :activity_filter
|
|
27
|
+
# @!attribute activity_marks
|
|
28
|
+
# @return [ActivityMarksConfig]
|
|
29
|
+
attr_accessor :activity_marks
|
|
30
|
+
# @!attribute activity_processing
|
|
31
|
+
# @return [ActivityProcessingConfig]
|
|
32
|
+
attr_accessor :activity_processing
|
|
24
33
|
# @!attribute aggregation
|
|
25
34
|
# @return [AggregationConfig]
|
|
26
35
|
attr_accessor :aggregation
|
|
@@ -43,10 +52,13 @@ module GetStream
|
|
|
43
52
|
# Initialize with attributes
|
|
44
53
|
def initialize(attributes = {})
|
|
45
54
|
super(attributes)
|
|
55
|
+
@default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
|
|
46
56
|
@default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
|
|
47
57
|
@activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
|
|
48
58
|
@activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
|
|
49
59
|
@activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
|
|
60
|
+
@activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil
|
|
61
|
+
@activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
|
|
50
62
|
@aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
|
|
51
63
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
52
64
|
@notification = attributes[:notification] || attributes['notification'] || nil
|
|
@@ -58,10 +70,13 @@ module GetStream
|
|
|
58
70
|
# Override field mappings for JSON serialization
|
|
59
71
|
def self.json_field_mappings
|
|
60
72
|
{
|
|
73
|
+
default_follower_role: 'default_follower_role',
|
|
61
74
|
default_visibility: 'default_visibility',
|
|
62
75
|
activity_processors: 'activity_processors',
|
|
63
76
|
activity_selectors: 'activity_selectors',
|
|
64
77
|
activity_filter: 'activity_filter',
|
|
78
|
+
activity_marks: 'activity_marks',
|
|
79
|
+
activity_processing: 'activity_processing',
|
|
65
80
|
aggregation: 'aggregation',
|
|
66
81
|
custom: 'custom',
|
|
67
82
|
notification: 'notification',
|
|
@@ -24,6 +24,12 @@ module GetStream
|
|
|
24
24
|
# @!attribute unity
|
|
25
25
|
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the Unity platform
|
|
26
26
|
attr_accessor :unity
|
|
27
|
+
# @!attribute unity_console
|
|
28
|
+
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the Unity console platform
|
|
29
|
+
attr_accessor :unity_console
|
|
30
|
+
# @!attribute unity_desktop
|
|
31
|
+
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the Unity desktop platform
|
|
32
|
+
attr_accessor :unity_desktop
|
|
27
33
|
# @!attribute web
|
|
28
34
|
# @return [Hash<String, LimitInfoResponse>] Map of endpoint rate limits for the web platform
|
|
29
35
|
attr_accessor :web
|
|
@@ -36,6 +42,8 @@ module GetStream
|
|
|
36
42
|
@ios = attributes[:ios] || attributes['ios'] || nil
|
|
37
43
|
@server_side = attributes[:server_side] || attributes['server_side'] || nil
|
|
38
44
|
@unity = attributes[:unity] || attributes['unity'] || nil
|
|
45
|
+
@unity_console = attributes[:unity_console] || attributes['unity_console'] || nil
|
|
46
|
+
@unity_desktop = attributes[:unity_desktop] || attributes['unity_desktop'] || nil
|
|
39
47
|
@web = attributes[:web] || attributes['web'] || nil
|
|
40
48
|
end
|
|
41
49
|
|
|
@@ -47,6 +55,8 @@ module GetStream
|
|
|
47
55
|
ios: 'ios',
|
|
48
56
|
server_side: 'server_side',
|
|
49
57
|
unity: 'unity',
|
|
58
|
+
unity_console: 'unity_console',
|
|
59
|
+
unity_desktop: 'unity_desktop',
|
|
50
60
|
web: 'web'
|
|
51
61
|
}
|
|
52
62
|
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',
|
|
@@ -24,6 +24,9 @@ module GetStream
|
|
|
24
24
|
# @!attribute disable_flagging_reviewed_entity
|
|
25
25
|
# @return [Boolean]
|
|
26
26
|
attr_accessor :disable_flagging_reviewed_entity
|
|
27
|
+
# @!attribute enforce_shadow_server_side
|
|
28
|
+
# @return [Boolean]
|
|
29
|
+
attr_accessor :enforce_shadow_server_side
|
|
27
30
|
# @!attribute escalation_queue_enabled
|
|
28
31
|
# @return [Boolean]
|
|
29
32
|
attr_accessor :escalation_queue_enabled
|
|
@@ -60,6 +63,7 @@ module GetStream
|
|
|
60
63
|
@custom_views_enabled = attributes[:custom_views_enabled] || attributes['custom_views_enabled'] || nil
|
|
61
64
|
@disable_audit_logs = attributes[:disable_audit_logs] || attributes['disable_audit_logs'] || nil
|
|
62
65
|
@disable_flagging_reviewed_entity = attributes[:disable_flagging_reviewed_entity] || attributes['disable_flagging_reviewed_entity'] || nil
|
|
66
|
+
@enforce_shadow_server_side = attributes[:enforce_shadow_server_side] || attributes['enforce_shadow_server_side'] || nil
|
|
63
67
|
@escalation_queue_enabled = attributes[:escalation_queue_enabled] || attributes['escalation_queue_enabled'] || nil
|
|
64
68
|
@flag_user_on_flagged_content = attributes[:flag_user_on_flagged_content] || attributes['flag_user_on_flagged_content'] || nil
|
|
65
69
|
@include_attachment_payload = attributes[:include_attachment_payload] || attributes['include_attachment_payload'] || nil
|
|
@@ -79,6 +83,7 @@ module GetStream
|
|
|
79
83
|
custom_views_enabled: 'custom_views_enabled',
|
|
80
84
|
disable_audit_logs: 'disable_audit_logs',
|
|
81
85
|
disable_flagging_reviewed_entity: 'disable_flagging_reviewed_entity',
|
|
86
|
+
enforce_shadow_server_side: 'enforce_shadow_server_side',
|
|
82
87
|
escalation_queue_enabled: 'escalation_queue_enabled',
|
|
83
88
|
flag_user_on_flagged_content: 'flag_user_on_flagged_content',
|
|
84
89
|
include_attachment_payload: 'include_attachment_payload',
|
|
@@ -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',
|
|
@@ -9,6 +9,18 @@ module GetStream
|
|
|
9
9
|
class PaginationParams < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute id_gt
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :id_gt
|
|
15
|
+
# @!attribute id_gte
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :id_gte
|
|
18
|
+
# @!attribute id_lt
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
attr_accessor :id_lt
|
|
21
|
+
# @!attribute id_lte
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
attr_accessor :id_lte
|
|
12
24
|
# @!attribute limit
|
|
13
25
|
# @return [Integer]
|
|
14
26
|
attr_accessor :limit
|
|
@@ -19,6 +31,10 @@ module GetStream
|
|
|
19
31
|
# Initialize with attributes
|
|
20
32
|
def initialize(attributes = {})
|
|
21
33
|
super(attributes)
|
|
34
|
+
@id_gt = attributes[:id_gt] || attributes['id_gt'] || nil
|
|
35
|
+
@id_gte = attributes[:id_gte] || attributes['id_gte'] || nil
|
|
36
|
+
@id_lt = attributes[:id_lt] || attributes['id_lt'] || nil
|
|
37
|
+
@id_lte = attributes[:id_lte] || attributes['id_lte'] || nil
|
|
22
38
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
23
39
|
@offset = attributes[:offset] || attributes['offset'] || nil
|
|
24
40
|
end
|
|
@@ -26,6 +42,10 @@ module GetStream
|
|
|
26
42
|
# Override field mappings for JSON serialization
|
|
27
43
|
def self.json_field_mappings
|
|
28
44
|
{
|
|
45
|
+
id_gt: 'id_gt',
|
|
46
|
+
id_gte: 'id_gte',
|
|
47
|
+
id_lt: 'id_lt',
|
|
48
|
+
id_lte: 'id_lte',
|
|
29
49
|
limit: 'limit',
|
|
30
50
|
offset: 'offset'
|
|
31
51
|
}
|
|
@@ -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>]
|
|
@@ -12,6 +12,18 @@ module GetStream
|
|
|
12
12
|
# @!attribute filter_conditions
|
|
13
13
|
# @return [Object] Filter conditions to apply to the query
|
|
14
14
|
attr_accessor :filter_conditions
|
|
15
|
+
# @!attribute created_at_after
|
|
16
|
+
# @return [DateTime]
|
|
17
|
+
attr_accessor :created_at_after
|
|
18
|
+
# @!attribute created_at_after_or_equal
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :created_at_after_or_equal
|
|
21
|
+
# @!attribute created_at_before
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :created_at_before
|
|
24
|
+
# @!attribute created_at_before_or_equal
|
|
25
|
+
# @return [DateTime]
|
|
26
|
+
attr_accessor :created_at_before_or_equal
|
|
15
27
|
# @!attribute exclude_expired_bans
|
|
16
28
|
# @return [Boolean] Whether to exclude expired bans or not
|
|
17
29
|
attr_accessor :exclude_expired_bans
|
|
@@ -35,6 +47,10 @@ module GetStream
|
|
|
35
47
|
def initialize(attributes = {})
|
|
36
48
|
super(attributes)
|
|
37
49
|
@filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions']
|
|
50
|
+
@created_at_after = attributes[:created_at_after] || attributes['created_at_after'] || nil
|
|
51
|
+
@created_at_after_or_equal = attributes[:created_at_after_or_equal] || attributes['created_at_after_or_equal'] || nil
|
|
52
|
+
@created_at_before = attributes[:created_at_before] || attributes['created_at_before'] || nil
|
|
53
|
+
@created_at_before_or_equal = attributes[:created_at_before_or_equal] || attributes['created_at_before_or_equal'] || nil
|
|
38
54
|
@exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil
|
|
39
55
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
40
56
|
@offset = attributes[:offset] || attributes['offset'] || nil
|
|
@@ -47,6 +63,10 @@ module GetStream
|
|
|
47
63
|
def self.json_field_mappings
|
|
48
64
|
{
|
|
49
65
|
filter_conditions: 'filter_conditions',
|
|
66
|
+
created_at_after: 'created_at_after',
|
|
67
|
+
created_at_after_or_equal: 'created_at_after_or_equal',
|
|
68
|
+
created_at_before: 'created_at_before',
|
|
69
|
+
created_at_before_or_equal: 'created_at_before_or_equal',
|
|
50
70
|
exclude_expired_bans: 'exclude_expired_bans',
|
|
51
71
|
limit: 'limit',
|
|
52
72
|
offset: 'offset',
|
|
@@ -9,6 +9,18 @@ module GetStream
|
|
|
9
9
|
class QueryFutureChannelBansPayload < GetStream::BaseModel
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
|
+
# @!attribute created_at_after
|
|
13
|
+
# @return [DateTime]
|
|
14
|
+
attr_accessor :created_at_after
|
|
15
|
+
# @!attribute created_at_after_or_equal
|
|
16
|
+
# @return [DateTime]
|
|
17
|
+
attr_accessor :created_at_after_or_equal
|
|
18
|
+
# @!attribute created_at_before
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :created_at_before
|
|
21
|
+
# @!attribute created_at_before_or_equal
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :created_at_before_or_equal
|
|
12
24
|
# @!attribute exclude_expired_bans
|
|
13
25
|
# @return [Boolean] Whether to exclude expired bans or not
|
|
14
26
|
attr_accessor :exclude_expired_bans
|
|
@@ -34,6 +46,10 @@ module GetStream
|
|
|
34
46
|
# Initialize with attributes
|
|
35
47
|
def initialize(attributes = {})
|
|
36
48
|
super(attributes)
|
|
49
|
+
@created_at_after = attributes[:created_at_after] || attributes['created_at_after'] || nil
|
|
50
|
+
@created_at_after_or_equal = attributes[:created_at_after_or_equal] || attributes['created_at_after_or_equal'] || nil
|
|
51
|
+
@created_at_before = attributes[:created_at_before] || attributes['created_at_before'] || nil
|
|
52
|
+
@created_at_before_or_equal = attributes[:created_at_before_or_equal] || attributes['created_at_before_or_equal'] || nil
|
|
37
53
|
@exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil
|
|
38
54
|
@include_total = attributes[:include_total] || attributes['include_total'] || nil
|
|
39
55
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
@@ -46,6 +62,10 @@ module GetStream
|
|
|
46
62
|
# Override field mappings for JSON serialization
|
|
47
63
|
def self.json_field_mappings
|
|
48
64
|
{
|
|
65
|
+
created_at_after: 'created_at_after',
|
|
66
|
+
created_at_after_or_equal: 'created_at_after_or_equal',
|
|
67
|
+
created_at_before: 'created_at_before',
|
|
68
|
+
created_at_before_or_equal: 'created_at_before_or_equal',
|
|
49
69
|
exclude_expired_bans: 'exclude_expired_bans',
|
|
50
70
|
include_total: 'include_total',
|
|
51
71
|
limit: 'limit',
|