getstream-ruby 6.1.0 → 7.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/README.md +22 -6
- data/lib/getstream_ruby/client.rb +63 -5
- data/lib/getstream_ruby/configuration.rb +32 -5
- data/lib/getstream_ruby/generated/common_client.rb +26 -0
- data/lib/getstream_ruby/generated/feed.rb +3 -1
- data/lib/getstream_ruby/generated/feeds_client.rb +3 -1
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/add_reaction_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/bodyguard_profile_summary.rb +6 -1
- data/lib/getstream_ruby/generated/models/chat_draft_payload_response.rb +91 -0
- data/lib/getstream_ruby/generated/models/chat_draft_response.rb +56 -0
- data/lib/getstream_ruby/generated/models/chat_message_response.rb +59 -4
- data/lib/getstream_ruby/generated/models/chat_moderation_v2_response.rb +66 -0
- data/lib/getstream_ruby/generated/models/chat_reaction_group_response.rb +51 -0
- data/lib/getstream_ruby/generated/models/chat_reaction_group_user_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/chat_reaction_response.rb +66 -0
- data/lib/getstream_ruby/generated/models/chat_reminder_response_data.rb +66 -0
- data/lib/getstream_ruby/generated/models/chat_shared_location_response_data.rb +76 -0
- data/lib/getstream_ruby/generated/models/delete_feeds_batch_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/feeds_activity_location.rb +36 -0
- data/lib/getstream_ruby/generated/models/feeds_bookmark_response.rb +61 -0
- data/lib/getstream_ruby/generated/models/feeds_enriched_collection_response.rb +61 -0
- data/lib/getstream_ruby/generated/models/feeds_feed_response.rb +116 -0
- data/lib/getstream_ruby/generated/models/feeds_notification_comment.rb +46 -0
- data/lib/getstream_ruby/generated/models/feeds_notification_context.rb +36 -0
- data/lib/getstream_ruby/generated/models/feeds_notification_parent_activity.rb +51 -0
- data/lib/getstream_ruby/generated/models/feeds_notification_target.rb +71 -0
- data/lib/getstream_ruby/generated/models/feeds_notification_trigger.rb +46 -0
- data/lib/getstream_ruby/generated/models/feeds_reaction_group_response.rb +3 -3
- data/lib/getstream_ruby/generated/models/feeds_reaction_response.rb +6 -6
- data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +66 -6
- data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +17 -2
- data/lib/getstream_ruby/generated/models/labels_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/query_bookmarks_request.rb +11 -1
- data/lib/getstream_ruby/generated/models/search_roles_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/submit_moderation_feedback_request.rb +71 -0
- data/lib/getstream_ruby/generated/models/submit_moderation_feedback_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/update_app_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +5 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +17 -0
- data/lib/getstream_ruby/generated/webhook.rb +401 -170
- data/lib/getstream_ruby/version.rb +1 -1
- data/lib/getstream_ruby.rb +2 -3
- metadata +22 -2
|
@@ -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 FeedsNotificationComment < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute comment
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :comment
|
|
15
|
+
# @!attribute id
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
# @!attribute user_id
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :user_id
|
|
21
|
+
# @!attribute attachments
|
|
22
|
+
# @return [Array<Attachment>]
|
|
23
|
+
attr_accessor :attachments
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@comment = attributes[:comment] || attributes['comment']
|
|
29
|
+
@id = attributes[:id] || attributes['id']
|
|
30
|
+
@user_id = attributes[:user_id] || attributes['user_id']
|
|
31
|
+
@attachments = attributes[:attachments] || attributes['attachments'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
comment: 'comment',
|
|
38
|
+
id: 'id',
|
|
39
|
+
user_id: 'user_id',
|
|
40
|
+
attachments: 'attachments'
|
|
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 FeedsNotificationContext < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute target
|
|
13
|
+
# @return [FeedsNotificationTarget]
|
|
14
|
+
attr_accessor :target
|
|
15
|
+
# @!attribute trigger
|
|
16
|
+
# @return [FeedsNotificationTrigger]
|
|
17
|
+
attr_accessor :trigger
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@target = attributes[:target] || attributes['target'] || nil
|
|
23
|
+
@trigger = attributes[:trigger] || attributes['trigger'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
target: 'target',
|
|
30
|
+
trigger: 'trigger'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
|
|
4
|
+
|
|
5
|
+
module GetStream
|
|
6
|
+
module Generated
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
class FeedsNotificationParentActivity < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
# @!attribute text
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :text
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
# @!attribute user_id
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :user_id
|
|
24
|
+
# @!attribute attachments
|
|
25
|
+
# @return [Array<Attachment>]
|
|
26
|
+
attr_accessor :attachments
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@id = attributes[:id] || attributes['id']
|
|
32
|
+
@text = attributes[:text] || attributes['text'] || nil
|
|
33
|
+
@type = attributes[:type] || attributes['type'] || nil
|
|
34
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
35
|
+
@attachments = attributes[:attachments] || attributes['attachments'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
id: 'id',
|
|
42
|
+
text: 'text',
|
|
43
|
+
type: 'type',
|
|
44
|
+
user_id: 'user_id',
|
|
45
|
+
attachments: 'attachments'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
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 FeedsNotificationTarget < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
# @!attribute name
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
# @!attribute text
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :text
|
|
21
|
+
# @!attribute type
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :type
|
|
24
|
+
# @!attribute user_id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :user_id
|
|
27
|
+
# @!attribute attachments
|
|
28
|
+
# @return [Array<Attachment>]
|
|
29
|
+
attr_accessor :attachments
|
|
30
|
+
# @!attribute comment
|
|
31
|
+
# @return [FeedsNotificationComment]
|
|
32
|
+
attr_accessor :comment
|
|
33
|
+
# @!attribute custom
|
|
34
|
+
# @return [Object]
|
|
35
|
+
attr_accessor :custom
|
|
36
|
+
# @!attribute parent_activity
|
|
37
|
+
# @return [FeedsNotificationParentActivity]
|
|
38
|
+
attr_accessor :parent_activity
|
|
39
|
+
|
|
40
|
+
# Initialize with attributes
|
|
41
|
+
def initialize(attributes = {})
|
|
42
|
+
super(attributes)
|
|
43
|
+
@id = attributes[:id] || attributes['id']
|
|
44
|
+
@name = attributes[:name] || attributes['name'] || nil
|
|
45
|
+
@text = attributes[:text] || attributes['text'] || nil
|
|
46
|
+
@type = attributes[:type] || attributes['type'] || nil
|
|
47
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
48
|
+
@attachments = attributes[:attachments] || attributes['attachments'] || nil
|
|
49
|
+
@comment = attributes[:comment] || attributes['comment'] || nil
|
|
50
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
51
|
+
@parent_activity = attributes[:parent_activity] || attributes['parent_activity'] || nil
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Override field mappings for JSON serialization
|
|
55
|
+
def self.json_field_mappings
|
|
56
|
+
{
|
|
57
|
+
id: 'id',
|
|
58
|
+
name: 'name',
|
|
59
|
+
text: 'text',
|
|
60
|
+
type: 'type',
|
|
61
|
+
user_id: 'user_id',
|
|
62
|
+
attachments: 'attachments',
|
|
63
|
+
comment: 'comment',
|
|
64
|
+
custom: 'custom',
|
|
65
|
+
parent_activity: 'parent_activity'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
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 FeedsNotificationTrigger < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute text
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :text
|
|
15
|
+
# @!attribute type
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
# @!attribute comment
|
|
19
|
+
# @return [FeedsNotificationComment]
|
|
20
|
+
attr_accessor :comment
|
|
21
|
+
# @!attribute custom
|
|
22
|
+
# @return [Object]
|
|
23
|
+
attr_accessor :custom
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@text = attributes[:text] || attributes['text']
|
|
29
|
+
@type = attributes[:type] || attributes['type']
|
|
30
|
+
@comment = attributes[:comment] || attributes['comment'] || nil
|
|
31
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
text: 'text',
|
|
38
|
+
type: 'type',
|
|
39
|
+
comment: 'comment',
|
|
40
|
+
custom: 'custom'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -10,13 +10,13 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute count
|
|
13
|
-
# @return [Integer]
|
|
13
|
+
# @return [Integer]
|
|
14
14
|
attr_accessor :count
|
|
15
15
|
# @!attribute first_reaction_at
|
|
16
|
-
# @return [DateTime]
|
|
16
|
+
# @return [DateTime]
|
|
17
17
|
attr_accessor :first_reaction_at
|
|
18
18
|
# @!attribute last_reaction_at
|
|
19
|
-
# @return [DateTime]
|
|
19
|
+
# @return [DateTime]
|
|
20
20
|
attr_accessor :last_reaction_at
|
|
21
21
|
|
|
22
22
|
# Initialize with attributes
|
|
@@ -10,25 +10,25 @@ module GetStream
|
|
|
10
10
|
|
|
11
11
|
# Model attributes
|
|
12
12
|
# @!attribute activity_id
|
|
13
|
-
# @return [String]
|
|
13
|
+
# @return [String]
|
|
14
14
|
attr_accessor :activity_id
|
|
15
15
|
# @!attribute created_at
|
|
16
|
-
# @return [DateTime]
|
|
16
|
+
# @return [DateTime]
|
|
17
17
|
attr_accessor :created_at
|
|
18
18
|
# @!attribute type
|
|
19
|
-
# @return [String]
|
|
19
|
+
# @return [String]
|
|
20
20
|
attr_accessor :type
|
|
21
21
|
# @!attribute updated_at
|
|
22
|
-
# @return [DateTime]
|
|
22
|
+
# @return [DateTime]
|
|
23
23
|
attr_accessor :updated_at
|
|
24
24
|
# @!attribute user
|
|
25
25
|
# @return [UserResponse]
|
|
26
26
|
attr_accessor :user
|
|
27
27
|
# @!attribute comment_id
|
|
28
|
-
# @return [String]
|
|
28
|
+
# @return [String]
|
|
29
29
|
attr_accessor :comment_id
|
|
30
30
|
# @!attribute custom
|
|
31
|
-
# @return [Object]
|
|
31
|
+
# @return [Object]
|
|
32
32
|
attr_accessor :custom
|
|
33
33
|
|
|
34
34
|
# Initialize with attributes
|
|
@@ -67,25 +67,25 @@ module GetStream
|
|
|
67
67
|
# @return [Array<String>]
|
|
68
68
|
attr_accessor :interest_tags
|
|
69
69
|
# @!attribute latest_reactions
|
|
70
|
-
# @return [Array]
|
|
70
|
+
# @return [Array<FeedsReactionResponse>]
|
|
71
71
|
attr_accessor :latest_reactions
|
|
72
72
|
# @!attribute mentioned_users
|
|
73
73
|
# @return [Array<UserResponse>]
|
|
74
74
|
attr_accessor :mentioned_users
|
|
75
75
|
# @!attribute own_bookmarks
|
|
76
|
-
# @return [Array]
|
|
76
|
+
# @return [Array<FeedsBookmarkResponse>]
|
|
77
77
|
attr_accessor :own_bookmarks
|
|
78
78
|
# @!attribute own_reactions
|
|
79
|
-
# @return [Array]
|
|
79
|
+
# @return [Array<FeedsReactionResponse>]
|
|
80
80
|
attr_accessor :own_reactions
|
|
81
81
|
# @!attribute collections
|
|
82
|
-
# @return [Hash<String,
|
|
82
|
+
# @return [Hash<String, FeedsEnrichedCollectionResponse>]
|
|
83
83
|
attr_accessor :collections
|
|
84
84
|
# @!attribute custom
|
|
85
85
|
# @return [Object]
|
|
86
86
|
attr_accessor :custom
|
|
87
87
|
# @!attribute reaction_groups
|
|
88
|
-
# @return [Hash<String,
|
|
88
|
+
# @return [Hash<String, FeedsReactionGroupResponse>]
|
|
89
89
|
attr_accessor :reaction_groups
|
|
90
90
|
# @!attribute search_data
|
|
91
91
|
# @return [Object]
|
|
@@ -102,21 +102,57 @@ module GetStream
|
|
|
102
102
|
# @!attribute expires_at
|
|
103
103
|
# @return [DateTime]
|
|
104
104
|
attr_accessor :expires_at
|
|
105
|
+
# @!attribute friend_reaction_count
|
|
106
|
+
# @return [Integer]
|
|
107
|
+
attr_accessor :friend_reaction_count
|
|
108
|
+
# @!attribute is_read
|
|
109
|
+
# @return [Boolean]
|
|
110
|
+
attr_accessor :is_read
|
|
111
|
+
# @!attribute is_seen
|
|
112
|
+
# @return [Boolean]
|
|
113
|
+
attr_accessor :is_seen
|
|
114
|
+
# @!attribute is_watched
|
|
115
|
+
# @return [Boolean]
|
|
116
|
+
attr_accessor :is_watched
|
|
105
117
|
# @!attribute moderation_action
|
|
106
118
|
# @return [String]
|
|
107
119
|
attr_accessor :moderation_action
|
|
120
|
+
# @!attribute selector_source
|
|
121
|
+
# @return [String]
|
|
122
|
+
attr_accessor :selector_source
|
|
108
123
|
# @!attribute text
|
|
109
124
|
# @return [String]
|
|
110
125
|
attr_accessor :text
|
|
111
126
|
# @!attribute visibility_tag
|
|
112
127
|
# @return [String]
|
|
113
128
|
attr_accessor :visibility_tag
|
|
129
|
+
# @!attribute friend_reactions
|
|
130
|
+
# @return [Array<FeedsReactionResponse>]
|
|
131
|
+
attr_accessor :friend_reactions
|
|
132
|
+
# @!attribute current_feed
|
|
133
|
+
# @return [FeedsFeedResponse]
|
|
134
|
+
attr_accessor :current_feed
|
|
135
|
+
# @!attribute location
|
|
136
|
+
# @return [FeedsActivityLocation]
|
|
137
|
+
attr_accessor :location
|
|
114
138
|
# @!attribute metrics
|
|
115
139
|
# @return [Hash<String, Integer>]
|
|
116
140
|
attr_accessor :metrics
|
|
117
141
|
# @!attribute moderation
|
|
118
142
|
# @return [ModerationV2Response]
|
|
119
143
|
attr_accessor :moderation
|
|
144
|
+
# @!attribute notification_context
|
|
145
|
+
# @return [FeedsNotificationContext]
|
|
146
|
+
attr_accessor :notification_context
|
|
147
|
+
# @!attribute parent
|
|
148
|
+
# @return [FeedsV3ActivityResponse]
|
|
149
|
+
attr_accessor :parent
|
|
150
|
+
# @!attribute poll
|
|
151
|
+
# @return [PollResponseData]
|
|
152
|
+
attr_accessor :poll
|
|
153
|
+
# @!attribute score_vars
|
|
154
|
+
# @return [Object]
|
|
155
|
+
attr_accessor :score_vars
|
|
120
156
|
|
|
121
157
|
# Initialize with attributes
|
|
122
158
|
def initialize(attributes = {})
|
|
@@ -152,11 +188,23 @@ module GetStream
|
|
|
152
188
|
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
153
189
|
@edited_at = attributes[:edited_at] || attributes['edited_at'] || nil
|
|
154
190
|
@expires_at = attributes[:expires_at] || attributes['expires_at'] || nil
|
|
191
|
+
@friend_reaction_count = attributes[:friend_reaction_count] || attributes['friend_reaction_count'] || nil
|
|
192
|
+
@is_read = attributes[:is_read] || attributes['is_read'] || nil
|
|
193
|
+
@is_seen = attributes[:is_seen] || attributes['is_seen'] || nil
|
|
194
|
+
@is_watched = attributes[:is_watched] || attributes['is_watched'] || nil
|
|
155
195
|
@moderation_action = attributes[:moderation_action] || attributes['moderation_action'] || nil
|
|
196
|
+
@selector_source = attributes[:selector_source] || attributes['selector_source'] || nil
|
|
156
197
|
@text = attributes[:text] || attributes['text'] || nil
|
|
157
198
|
@visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil
|
|
199
|
+
@friend_reactions = attributes[:friend_reactions] || attributes['friend_reactions'] || nil
|
|
200
|
+
@current_feed = attributes[:current_feed] || attributes['current_feed'] || nil
|
|
201
|
+
@location = attributes[:location] || attributes['location'] || nil
|
|
158
202
|
@metrics = attributes[:metrics] || attributes['metrics'] || nil
|
|
159
203
|
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
204
|
+
@notification_context = attributes[:notification_context] || attributes['notification_context'] || nil
|
|
205
|
+
@parent = attributes[:parent] || attributes['parent'] || nil
|
|
206
|
+
@poll = attributes[:poll] || attributes['poll'] || nil
|
|
207
|
+
@score_vars = attributes[:score_vars] || attributes['score_vars'] || nil
|
|
160
208
|
end
|
|
161
209
|
|
|
162
210
|
# Override field mappings for JSON serialization
|
|
@@ -193,11 +241,23 @@ module GetStream
|
|
|
193
241
|
deleted_at: 'deleted_at',
|
|
194
242
|
edited_at: 'edited_at',
|
|
195
243
|
expires_at: 'expires_at',
|
|
244
|
+
friend_reaction_count: 'friend_reaction_count',
|
|
245
|
+
is_read: 'is_read',
|
|
246
|
+
is_seen: 'is_seen',
|
|
247
|
+
is_watched: 'is_watched',
|
|
196
248
|
moderation_action: 'moderation_action',
|
|
249
|
+
selector_source: 'selector_source',
|
|
197
250
|
text: 'text',
|
|
198
251
|
visibility_tag: 'visibility_tag',
|
|
252
|
+
friend_reactions: 'friend_reactions',
|
|
253
|
+
current_feed: 'current_feed',
|
|
254
|
+
location: 'location',
|
|
199
255
|
metrics: 'metrics',
|
|
200
|
-
moderation: 'moderation'
|
|
256
|
+
moderation: 'moderation',
|
|
257
|
+
notification_context: 'notification_context',
|
|
258
|
+
parent: 'parent',
|
|
259
|
+
poll: 'poll',
|
|
260
|
+
score_vars: 'score_vars'
|
|
201
261
|
}
|
|
202
262
|
end
|
|
203
263
|
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute _object_id
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :_object_id
|
|
15
|
+
# @!attribute bookmark_count
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :bookmark_count
|
|
15
18
|
# @!attribute confidence_score
|
|
16
19
|
# @return [Float]
|
|
17
20
|
attr_accessor :confidence_score
|
|
@@ -49,7 +52,7 @@ module GetStream
|
|
|
49
52
|
# @return [Array<UserResponse>]
|
|
50
53
|
attr_accessor :mentioned_users
|
|
51
54
|
# @!attribute own_reactions
|
|
52
|
-
# @return [Array]
|
|
55
|
+
# @return [Array<FeedsReactionResponse>]
|
|
53
56
|
attr_accessor :own_reactions
|
|
54
57
|
# @!attribute user
|
|
55
58
|
# @return [UserResponse]
|
|
@@ -72,17 +75,24 @@ module GetStream
|
|
|
72
75
|
# @!attribute attachments
|
|
73
76
|
# @return [Array<Attachment>]
|
|
74
77
|
attr_accessor :attachments
|
|
78
|
+
# @!attribute latest_reactions
|
|
79
|
+
# @return [Array<FeedsReactionResponse>]
|
|
80
|
+
attr_accessor :latest_reactions
|
|
75
81
|
# @!attribute custom
|
|
76
82
|
# @return [Object]
|
|
77
83
|
attr_accessor :custom
|
|
78
84
|
# @!attribute moderation
|
|
79
85
|
# @return [ModerationV2Response]
|
|
80
86
|
attr_accessor :moderation
|
|
87
|
+
# @!attribute reaction_groups
|
|
88
|
+
# @return [Hash<String, FeedsReactionGroupResponse>]
|
|
89
|
+
attr_accessor :reaction_groups
|
|
81
90
|
|
|
82
91
|
# Initialize with attributes
|
|
83
92
|
def initialize(attributes = {})
|
|
84
93
|
super(attributes)
|
|
85
94
|
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
95
|
+
@bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count']
|
|
86
96
|
@confidence_score = attributes[:confidence_score] || attributes['confidence_score']
|
|
87
97
|
@created_at = attributes[:created_at] || attributes['created_at']
|
|
88
98
|
@downvote_count = attributes[:downvote_count] || attributes['downvote_count']
|
|
@@ -103,14 +113,17 @@ module GetStream
|
|
|
103
113
|
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
104
114
|
@text = attributes[:text] || attributes['text'] || nil
|
|
105
115
|
@attachments = attributes[:attachments] || attributes['attachments'] || nil
|
|
116
|
+
@latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions'] || nil
|
|
106
117
|
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
107
118
|
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
119
|
+
@reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] || nil
|
|
108
120
|
end
|
|
109
121
|
|
|
110
122
|
# Override field mappings for JSON serialization
|
|
111
123
|
def self.json_field_mappings
|
|
112
124
|
{
|
|
113
125
|
_object_id: 'object_id',
|
|
126
|
+
bookmark_count: 'bookmark_count',
|
|
114
127
|
confidence_score: 'confidence_score',
|
|
115
128
|
created_at: 'created_at',
|
|
116
129
|
downvote_count: 'downvote_count',
|
|
@@ -131,8 +144,10 @@ module GetStream
|
|
|
131
144
|
parent_id: 'parent_id',
|
|
132
145
|
text: 'text',
|
|
133
146
|
attachments: 'attachments',
|
|
147
|
+
latest_reactions: 'latest_reactions',
|
|
134
148
|
custom: 'custom',
|
|
135
|
-
moderation: 'moderation'
|
|
149
|
+
moderation: 'moderation',
|
|
150
|
+
reaction_groups: 'reaction_groups'
|
|
136
151
|
}
|
|
137
152
|
end
|
|
138
153
|
end
|
|
@@ -21,6 +21,9 @@ module GetStream
|
|
|
21
21
|
# @!attribute content_type
|
|
22
22
|
# @return [String] Type of content: 'text' (default), 'message', or 'username'. Stored as-sent; only 'username' routes to the username moderation API.
|
|
23
23
|
attr_accessor :content_type
|
|
24
|
+
# @!attribute dry_run
|
|
25
|
+
# @return [Boolean] When true, run moderation and return labels without persisting the result. Useful for one-off checks (e.g. UI testers) that should not be recorded in the stored history.
|
|
26
|
+
attr_accessor :dry_run
|
|
24
27
|
# @!attribute policy
|
|
25
28
|
# @return [String] Optional moderation policy key (max 128 chars)
|
|
26
29
|
attr_accessor :policy
|
|
@@ -35,6 +38,7 @@ module GetStream
|
|
|
35
38
|
@category = attributes[:category] || attributes['category'] || nil
|
|
36
39
|
@content_id = attributes[:content_id] || attributes['content_id'] || nil
|
|
37
40
|
@content_type = attributes[:content_type] || attributes['content_type'] || nil
|
|
41
|
+
@dry_run = attributes[:dry_run] || attributes['dry_run'] || nil
|
|
38
42
|
@policy = attributes[:policy] || attributes['policy'] || nil
|
|
39
43
|
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
40
44
|
end
|
|
@@ -46,6 +50,7 @@ module GetStream
|
|
|
46
50
|
category: 'category',
|
|
47
51
|
content_id: 'content_id',
|
|
48
52
|
content_type: 'content_type',
|
|
53
|
+
dry_run: 'dry_run',
|
|
49
54
|
policy: 'policy',
|
|
50
55
|
user_id: 'user_id'
|
|
51
56
|
}
|
|
@@ -21,12 +21,18 @@ module GetStream
|
|
|
21
21
|
# @!attribute prev
|
|
22
22
|
# @return [String]
|
|
23
23
|
attr_accessor :prev
|
|
24
|
+
# @!attribute user_id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :user_id
|
|
24
27
|
# @!attribute sort
|
|
25
28
|
# @return [Array<SortParamRequest>] Sorting parameters for the query
|
|
26
29
|
attr_accessor :sort
|
|
27
30
|
# @!attribute filter
|
|
28
31
|
# @return [Object] Filters to apply to the query
|
|
29
32
|
attr_accessor :filter
|
|
33
|
+
# @!attribute user
|
|
34
|
+
# @return [UserRequest]
|
|
35
|
+
attr_accessor :user
|
|
30
36
|
|
|
31
37
|
# Initialize with attributes
|
|
32
38
|
def initialize(attributes = {})
|
|
@@ -35,8 +41,10 @@ module GetStream
|
|
|
35
41
|
@limit = attributes[:limit] || attributes['limit'] || nil
|
|
36
42
|
@next = attributes[:next] || attributes['next'] || nil
|
|
37
43
|
@prev = attributes[:prev] || attributes['prev'] || nil
|
|
44
|
+
@user_id = attributes[:user_id] || attributes['user_id'] || nil
|
|
38
45
|
@sort = attributes[:sort] || attributes['sort'] || nil
|
|
39
46
|
@filter = attributes[:filter] || attributes['filter'] || nil
|
|
47
|
+
@user = attributes[:user] || attributes['user'] || nil
|
|
40
48
|
end
|
|
41
49
|
|
|
42
50
|
# Override field mappings for JSON serialization
|
|
@@ -46,8 +54,10 @@ module GetStream
|
|
|
46
54
|
limit: 'limit',
|
|
47
55
|
next: 'next',
|
|
48
56
|
prev: 'prev',
|
|
57
|
+
user_id: 'user_id',
|
|
49
58
|
sort: 'sort',
|
|
50
|
-
filter: 'filter'
|
|
59
|
+
filter: 'filter',
|
|
60
|
+
user: 'user'
|
|
51
61
|
}
|
|
52
62
|
end
|
|
53
63
|
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 SearchRolesResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute duration
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :duration
|
|
15
|
+
# @!attribute roles
|
|
16
|
+
# @return [Array<Role>] Matching roles, sorted ascending by name
|
|
17
|
+
attr_accessor :roles
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
23
|
+
@roles = attributes[:roles] || attributes['roles']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
duration: 'duration',
|
|
30
|
+
roles: 'roles'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|