getstream-ruby 4.1.0 → 5.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 +7 -10
- data/lib/getstream_ruby/generated/common_client.rb +56 -0
- data/lib/getstream_ruby/generated/feeds_client.rb +49 -3
- data/lib/getstream_ruby/generated/models/activity_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/activity_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/add_activity_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_comment_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_reaction_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/add_user_group_members_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/aggregation_config.rb +6 -1
- data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
- data/lib/getstream_ruby/generated/models/call_level_event_payload.rb +46 -0
- data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +10 -0
- data/lib/getstream_ruby/generated/models/check_request.rb +5 -0
- data/lib/getstream_ruby/generated/models/comment_restored_event.rb +66 -0
- data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/enriched_collection.rb +61 -0
- data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
- data/lib/getstream_ruby/generated/models/escalate_payload.rb +41 -0
- data/lib/getstream_ruby/generated/models/escalation_metadata.rb +41 -0
- data/lib/getstream_ruby/generated/models/feeds_preferences.rb +6 -1
- data/lib/getstream_ruby/generated/models/feeds_preferences_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/feeds_reaction_group.rb +41 -0
- data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +206 -0
- data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +141 -0
- data/lib/getstream_ruby/generated/models/follow_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/get_external_storage_awss3_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/get_external_storage_response.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_flag_count_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_flag_count_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/get_retention_policy_runs_request.rb +51 -0
- data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +12 -2
- data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +56 -0
- data/lib/getstream_ruby/generated/models/insert_action_log_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
- data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -0
- data/lib/getstream_ruby/generated/models/notification_target.rb +5 -0
- data/lib/getstream_ruby/generated/models/notification_trigger.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_call_members_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_call_participants_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_call_session_participant_stats_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/query_call_stats_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_calls_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_channels_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/query_members_payload.rb +3 -3
- data/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_user_feedback_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/query_users_payload.rb +3 -3
- data/lib/getstream_ruby/generated/models/reaction_group_response.rb +6 -1
- data/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/restore_comment_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/restore_comment_response.rb +41 -0
- data/lib/getstream_ruby/generated/models/retention_run_response.rb +46 -0
- data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +22 -2
- data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +2 -2
- data/lib/getstream_ruby/generated/models/submit_action_request.rb +6 -1
- data/lib/getstream_ruby/generated/models/text_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +2 -2
- data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +1 -1
- data/lib/getstream_ruby/generated/models/unfollow_pair.rb +41 -0
- data/lib/getstream_ruby/generated/models/update_activity_partial_change_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_activity_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +67 -0
- data/lib/getstream_ruby/generated/models/update_comment_partial_response.rb +36 -0
- data/lib/getstream_ruby/generated/models/update_comment_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/update_follow_request.rb +2 -1
- data/lib/getstream_ruby/generated/models/upsert_external_storage_awss3_request.rb +46 -0
- data/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +36 -0
- data/lib/getstream_ruby/generated/models/upsert_external_storage_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/validate_external_storage_response.rb +31 -0
- data/lib/getstream_ruby/generated/models/video_content_parameters.rb +5 -0
- data/lib/getstream_ruby/generated/moderation_client.rb +34 -0
- data/lib/getstream_ruby/generated/webhook.rb +4 -0
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +28 -2
|
@@ -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
|
+
# Configuration for escalation action
|
|
9
|
+
class EscalatePayload < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute notes
|
|
13
|
+
# @return [String] Additional context for the reviewer
|
|
14
|
+
attr_accessor :notes
|
|
15
|
+
# @!attribute priority
|
|
16
|
+
# @return [String] Priority of the escalation (low, medium, high)
|
|
17
|
+
attr_accessor :priority
|
|
18
|
+
# @!attribute reason
|
|
19
|
+
# @return [String] Reason for the escalation (from configured escalation_reasons)
|
|
20
|
+
attr_accessor :reason
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@notes = attributes[:notes] || attributes['notes'] || nil
|
|
26
|
+
@priority = attributes[:priority] || attributes['priority'] || nil
|
|
27
|
+
@reason = attributes[:reason] || attributes['reason'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
notes: 'notes',
|
|
34
|
+
priority: 'priority',
|
|
35
|
+
reason: 'reason'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
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 EscalationMetadata < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute notes
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :notes
|
|
15
|
+
# @!attribute priority
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :priority
|
|
18
|
+
# @!attribute reason
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :reason
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@notes = attributes[:notes] || attributes['notes'] || nil
|
|
26
|
+
@priority = attributes[:priority] || attributes['priority'] || nil
|
|
27
|
+
@reason = attributes[:reason] || attributes['reason'] || nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
notes: 'notes',
|
|
34
|
+
priority: 'priority',
|
|
35
|
+
reason: 'reason'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute comment
|
|
13
13
|
# @return [String] Push notification preference for comments on user's activities. One of: all, none
|
|
14
14
|
attr_accessor :comment
|
|
15
|
+
# @!attribute comment_mention
|
|
16
|
+
# @return [String] Push notification preference for mentions in comments. One of: all, none
|
|
17
|
+
attr_accessor :comment_mention
|
|
15
18
|
# @!attribute comment_reaction
|
|
16
19
|
# @return [String] Push notification preference for reactions on comments. One of: all, none
|
|
17
20
|
attr_accessor :comment_reaction
|
|
@@ -22,7 +25,7 @@ module GetStream
|
|
|
22
25
|
# @return [String] Push notification preference for new followers. One of: all, none
|
|
23
26
|
attr_accessor :follow
|
|
24
27
|
# @!attribute mention
|
|
25
|
-
# @return [String] Push notification preference for mentions in activities
|
|
28
|
+
# @return [String] Push notification preference for mentions in activities. One of: all, none
|
|
26
29
|
attr_accessor :mention
|
|
27
30
|
# @!attribute reaction
|
|
28
31
|
# @return [String] Push notification preference for reactions on user's activities or comments. One of: all, none
|
|
@@ -35,6 +38,7 @@ module GetStream
|
|
|
35
38
|
def initialize(attributes = {})
|
|
36
39
|
super(attributes)
|
|
37
40
|
@comment = attributes[:comment] || attributes['comment'] || nil
|
|
41
|
+
@comment_mention = attributes[:comment_mention] || attributes['comment_mention'] || nil
|
|
38
42
|
@comment_reaction = attributes[:comment_reaction] || attributes['comment_reaction'] || nil
|
|
39
43
|
@comment_reply = attributes[:comment_reply] || attributes['comment_reply'] || nil
|
|
40
44
|
@follow = attributes[:follow] || attributes['follow'] || nil
|
|
@@ -47,6 +51,7 @@ module GetStream
|
|
|
47
51
|
def self.json_field_mappings
|
|
48
52
|
{
|
|
49
53
|
comment: 'comment',
|
|
54
|
+
comment_mention: 'comment_mention',
|
|
50
55
|
comment_reaction: 'comment_reaction',
|
|
51
56
|
comment_reply: 'comment_reply',
|
|
52
57
|
follow: 'follow',
|
|
@@ -12,6 +12,9 @@ module GetStream
|
|
|
12
12
|
# @!attribute comment
|
|
13
13
|
# @return [String]
|
|
14
14
|
attr_accessor :comment
|
|
15
|
+
# @!attribute comment_mention
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :comment_mention
|
|
15
18
|
# @!attribute comment_reaction
|
|
16
19
|
# @return [String]
|
|
17
20
|
attr_accessor :comment_reaction
|
|
@@ -35,6 +38,7 @@ module GetStream
|
|
|
35
38
|
def initialize(attributes = {})
|
|
36
39
|
super(attributes)
|
|
37
40
|
@comment = attributes[:comment] || attributes['comment'] || nil
|
|
41
|
+
@comment_mention = attributes[:comment_mention] || attributes['comment_mention'] || nil
|
|
38
42
|
@comment_reaction = attributes[:comment_reaction] || attributes['comment_reaction'] || nil
|
|
39
43
|
@comment_reply = attributes[:comment_reply] || attributes['comment_reply'] || nil
|
|
40
44
|
@follow = attributes[:follow] || attributes['follow'] || nil
|
|
@@ -47,6 +51,7 @@ module GetStream
|
|
|
47
51
|
def self.json_field_mappings
|
|
48
52
|
{
|
|
49
53
|
comment: 'comment',
|
|
54
|
+
comment_mention: 'comment_mention',
|
|
50
55
|
comment_reaction: 'comment_reaction',
|
|
51
56
|
comment_reply: 'comment_reply',
|
|
52
57
|
follow: 'follow',
|
|
@@ -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 FeedsReactionGroup < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute count
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :count
|
|
15
|
+
# @!attribute first_reaction_at
|
|
16
|
+
# @return [DateTime]
|
|
17
|
+
attr_accessor :first_reaction_at
|
|
18
|
+
# @!attribute last_reaction_at
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :last_reaction_at
|
|
21
|
+
|
|
22
|
+
# Initialize with attributes
|
|
23
|
+
def initialize(attributes = {})
|
|
24
|
+
super(attributes)
|
|
25
|
+
@count = attributes[:count] || attributes['count']
|
|
26
|
+
@first_reaction_at = attributes[:first_reaction_at] || attributes['first_reaction_at']
|
|
27
|
+
@last_reaction_at = attributes[:last_reaction_at] || attributes['last_reaction_at']
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Override field mappings for JSON serialization
|
|
31
|
+
def self.json_field_mappings
|
|
32
|
+
{
|
|
33
|
+
count: 'count',
|
|
34
|
+
first_reaction_at: 'first_reaction_at',
|
|
35
|
+
last_reaction_at: 'last_reaction_at'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,206 @@
|
|
|
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 FeedsV3ActivityResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute bookmark_count
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :bookmark_count
|
|
15
|
+
# @!attribute comment_count
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
attr_accessor :comment_count
|
|
18
|
+
# @!attribute created_at
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
# @!attribute hidden
|
|
22
|
+
# @return [Boolean]
|
|
23
|
+
attr_accessor :hidden
|
|
24
|
+
# @!attribute id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :id
|
|
27
|
+
# @!attribute popularity
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
attr_accessor :popularity
|
|
30
|
+
# @!attribute preview
|
|
31
|
+
# @return [Boolean]
|
|
32
|
+
attr_accessor :preview
|
|
33
|
+
# @!attribute reaction_count
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
attr_accessor :reaction_count
|
|
36
|
+
# @!attribute restrict_replies
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :restrict_replies
|
|
39
|
+
# @!attribute score
|
|
40
|
+
# @return [Float]
|
|
41
|
+
attr_accessor :score
|
|
42
|
+
# @!attribute share_count
|
|
43
|
+
# @return [Integer]
|
|
44
|
+
attr_accessor :share_count
|
|
45
|
+
# @!attribute type
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :type
|
|
48
|
+
# @!attribute updated_at
|
|
49
|
+
# @return [DateTime]
|
|
50
|
+
attr_accessor :updated_at
|
|
51
|
+
# @!attribute visibility
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_accessor :visibility
|
|
54
|
+
# @!attribute attachments
|
|
55
|
+
# @return [Array<Attachment>]
|
|
56
|
+
attr_accessor :attachments
|
|
57
|
+
# @!attribute comments
|
|
58
|
+
# @return [Array<FeedsV3CommentResponse>]
|
|
59
|
+
attr_accessor :comments
|
|
60
|
+
# @!attribute feeds
|
|
61
|
+
# @return [Array<String>]
|
|
62
|
+
attr_accessor :feeds
|
|
63
|
+
# @!attribute filter_tags
|
|
64
|
+
# @return [Array<String>]
|
|
65
|
+
attr_accessor :filter_tags
|
|
66
|
+
# @!attribute interest_tags
|
|
67
|
+
# @return [Array<String>]
|
|
68
|
+
attr_accessor :interest_tags
|
|
69
|
+
# @!attribute latest_reactions
|
|
70
|
+
# @return [Array]
|
|
71
|
+
attr_accessor :latest_reactions
|
|
72
|
+
# @!attribute mentioned_users
|
|
73
|
+
# @return [Array<UserResponse>]
|
|
74
|
+
attr_accessor :mentioned_users
|
|
75
|
+
# @!attribute own_bookmarks
|
|
76
|
+
# @return [Array]
|
|
77
|
+
attr_accessor :own_bookmarks
|
|
78
|
+
# @!attribute own_reactions
|
|
79
|
+
# @return [Array]
|
|
80
|
+
attr_accessor :own_reactions
|
|
81
|
+
# @!attribute collections
|
|
82
|
+
# @return [Hash<String, EnrichedCollection>]
|
|
83
|
+
attr_accessor :collections
|
|
84
|
+
# @!attribute custom
|
|
85
|
+
# @return [Object]
|
|
86
|
+
attr_accessor :custom
|
|
87
|
+
# @!attribute reaction_groups
|
|
88
|
+
# @return [Hash<String, FeedsReactionGroup>]
|
|
89
|
+
attr_accessor :reaction_groups
|
|
90
|
+
# @!attribute search_data
|
|
91
|
+
# @return [Object]
|
|
92
|
+
attr_accessor :search_data
|
|
93
|
+
# @!attribute user
|
|
94
|
+
# @return [UserResponse]
|
|
95
|
+
attr_accessor :user
|
|
96
|
+
# @!attribute deleted_at
|
|
97
|
+
# @return [DateTime]
|
|
98
|
+
attr_accessor :deleted_at
|
|
99
|
+
# @!attribute edited_at
|
|
100
|
+
# @return [DateTime]
|
|
101
|
+
attr_accessor :edited_at
|
|
102
|
+
# @!attribute expires_at
|
|
103
|
+
# @return [DateTime]
|
|
104
|
+
attr_accessor :expires_at
|
|
105
|
+
# @!attribute moderation_action
|
|
106
|
+
# @return [String]
|
|
107
|
+
attr_accessor :moderation_action
|
|
108
|
+
# @!attribute text
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :text
|
|
111
|
+
# @!attribute visibility_tag
|
|
112
|
+
# @return [String]
|
|
113
|
+
attr_accessor :visibility_tag
|
|
114
|
+
# @!attribute metrics
|
|
115
|
+
# @return [Hash<String, Integer>]
|
|
116
|
+
attr_accessor :metrics
|
|
117
|
+
# @!attribute moderation
|
|
118
|
+
# @return [ModerationV2Response]
|
|
119
|
+
attr_accessor :moderation
|
|
120
|
+
|
|
121
|
+
# Initialize with attributes
|
|
122
|
+
def initialize(attributes = {})
|
|
123
|
+
super(attributes)
|
|
124
|
+
@bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count']
|
|
125
|
+
@comment_count = attributes[:comment_count] || attributes['comment_count']
|
|
126
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
127
|
+
@hidden = attributes[:hidden] || attributes['hidden']
|
|
128
|
+
@id = attributes[:id] || attributes['id']
|
|
129
|
+
@popularity = attributes[:popularity] || attributes['popularity']
|
|
130
|
+
@preview = attributes[:preview] || attributes['preview']
|
|
131
|
+
@reaction_count = attributes[:reaction_count] || attributes['reaction_count']
|
|
132
|
+
@restrict_replies = attributes[:restrict_replies] || attributes['restrict_replies']
|
|
133
|
+
@score = attributes[:score] || attributes['score']
|
|
134
|
+
@share_count = attributes[:share_count] || attributes['share_count']
|
|
135
|
+
@type = attributes[:type] || attributes['type']
|
|
136
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
137
|
+
@visibility = attributes[:visibility] || attributes['visibility']
|
|
138
|
+
@attachments = attributes[:attachments] || attributes['attachments']
|
|
139
|
+
@comments = attributes[:comments] || attributes['comments']
|
|
140
|
+
@feeds = attributes[:feeds] || attributes['feeds']
|
|
141
|
+
@filter_tags = attributes[:filter_tags] || attributes['filter_tags']
|
|
142
|
+
@interest_tags = attributes[:interest_tags] || attributes['interest_tags']
|
|
143
|
+
@latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions']
|
|
144
|
+
@mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users']
|
|
145
|
+
@own_bookmarks = attributes[:own_bookmarks] || attributes['own_bookmarks']
|
|
146
|
+
@own_reactions = attributes[:own_reactions] || attributes['own_reactions']
|
|
147
|
+
@collections = attributes[:collections] || attributes['collections']
|
|
148
|
+
@custom = attributes[:custom] || attributes['custom']
|
|
149
|
+
@reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups']
|
|
150
|
+
@search_data = attributes[:search_data] || attributes['search_data']
|
|
151
|
+
@user = attributes[:user] || attributes['user']
|
|
152
|
+
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
153
|
+
@edited_at = attributes[:edited_at] || attributes['edited_at'] || nil
|
|
154
|
+
@expires_at = attributes[:expires_at] || attributes['expires_at'] || nil
|
|
155
|
+
@moderation_action = attributes[:moderation_action] || attributes['moderation_action'] || nil
|
|
156
|
+
@text = attributes[:text] || attributes['text'] || nil
|
|
157
|
+
@visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil
|
|
158
|
+
@metrics = attributes[:metrics] || attributes['metrics'] || nil
|
|
159
|
+
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Override field mappings for JSON serialization
|
|
163
|
+
def self.json_field_mappings
|
|
164
|
+
{
|
|
165
|
+
bookmark_count: 'bookmark_count',
|
|
166
|
+
comment_count: 'comment_count',
|
|
167
|
+
created_at: 'created_at',
|
|
168
|
+
hidden: 'hidden',
|
|
169
|
+
id: 'id',
|
|
170
|
+
popularity: 'popularity',
|
|
171
|
+
preview: 'preview',
|
|
172
|
+
reaction_count: 'reaction_count',
|
|
173
|
+
restrict_replies: 'restrict_replies',
|
|
174
|
+
score: 'score',
|
|
175
|
+
share_count: 'share_count',
|
|
176
|
+
type: 'type',
|
|
177
|
+
updated_at: 'updated_at',
|
|
178
|
+
visibility: 'visibility',
|
|
179
|
+
attachments: 'attachments',
|
|
180
|
+
comments: 'comments',
|
|
181
|
+
feeds: 'feeds',
|
|
182
|
+
filter_tags: 'filter_tags',
|
|
183
|
+
interest_tags: 'interest_tags',
|
|
184
|
+
latest_reactions: 'latest_reactions',
|
|
185
|
+
mentioned_users: 'mentioned_users',
|
|
186
|
+
own_bookmarks: 'own_bookmarks',
|
|
187
|
+
own_reactions: 'own_reactions',
|
|
188
|
+
collections: 'collections',
|
|
189
|
+
custom: 'custom',
|
|
190
|
+
reaction_groups: 'reaction_groups',
|
|
191
|
+
search_data: 'search_data',
|
|
192
|
+
user: 'user',
|
|
193
|
+
deleted_at: 'deleted_at',
|
|
194
|
+
edited_at: 'edited_at',
|
|
195
|
+
expires_at: 'expires_at',
|
|
196
|
+
moderation_action: 'moderation_action',
|
|
197
|
+
text: 'text',
|
|
198
|
+
visibility_tag: 'visibility_tag',
|
|
199
|
+
metrics: 'metrics',
|
|
200
|
+
moderation: 'moderation'
|
|
201
|
+
}
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
@@ -0,0 +1,141 @@
|
|
|
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 FeedsV3CommentResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute _object_id
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :_object_id
|
|
15
|
+
# @!attribute confidence_score
|
|
16
|
+
# @return [Float]
|
|
17
|
+
attr_accessor :confidence_score
|
|
18
|
+
# @!attribute created_at
|
|
19
|
+
# @return [DateTime]
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
# @!attribute downvote_count
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
attr_accessor :downvote_count
|
|
24
|
+
# @!attribute id
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :id
|
|
27
|
+
# @!attribute object_type
|
|
28
|
+
# @return [String]
|
|
29
|
+
attr_accessor :object_type
|
|
30
|
+
# @!attribute reaction_count
|
|
31
|
+
# @return [Integer]
|
|
32
|
+
attr_accessor :reaction_count
|
|
33
|
+
# @!attribute reply_count
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
attr_accessor :reply_count
|
|
36
|
+
# @!attribute score
|
|
37
|
+
# @return [Integer]
|
|
38
|
+
attr_accessor :score
|
|
39
|
+
# @!attribute status
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :status
|
|
42
|
+
# @!attribute updated_at
|
|
43
|
+
# @return [DateTime]
|
|
44
|
+
attr_accessor :updated_at
|
|
45
|
+
# @!attribute upvote_count
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
attr_accessor :upvote_count
|
|
48
|
+
# @!attribute mentioned_users
|
|
49
|
+
# @return [Array<UserResponse>]
|
|
50
|
+
attr_accessor :mentioned_users
|
|
51
|
+
# @!attribute own_reactions
|
|
52
|
+
# @return [Array]
|
|
53
|
+
attr_accessor :own_reactions
|
|
54
|
+
# @!attribute user
|
|
55
|
+
# @return [UserResponse]
|
|
56
|
+
attr_accessor :user
|
|
57
|
+
# @!attribute controversy_score
|
|
58
|
+
# @return [Float]
|
|
59
|
+
attr_accessor :controversy_score
|
|
60
|
+
# @!attribute deleted_at
|
|
61
|
+
# @return [DateTime]
|
|
62
|
+
attr_accessor :deleted_at
|
|
63
|
+
# @!attribute edited_at
|
|
64
|
+
# @return [DateTime]
|
|
65
|
+
attr_accessor :edited_at
|
|
66
|
+
# @!attribute parent_id
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :parent_id
|
|
69
|
+
# @!attribute text
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :text
|
|
72
|
+
# @!attribute attachments
|
|
73
|
+
# @return [Array<Attachment>]
|
|
74
|
+
attr_accessor :attachments
|
|
75
|
+
# @!attribute custom
|
|
76
|
+
# @return [Object]
|
|
77
|
+
attr_accessor :custom
|
|
78
|
+
# @!attribute moderation
|
|
79
|
+
# @return [ModerationV2Response]
|
|
80
|
+
attr_accessor :moderation
|
|
81
|
+
|
|
82
|
+
# Initialize with attributes
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
super(attributes)
|
|
85
|
+
@_object_id = attributes[:_object_id] || attributes['object_id']
|
|
86
|
+
@confidence_score = attributes[:confidence_score] || attributes['confidence_score']
|
|
87
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
88
|
+
@downvote_count = attributes[:downvote_count] || attributes['downvote_count']
|
|
89
|
+
@id = attributes[:id] || attributes['id']
|
|
90
|
+
@object_type = attributes[:object_type] || attributes['object_type']
|
|
91
|
+
@reaction_count = attributes[:reaction_count] || attributes['reaction_count']
|
|
92
|
+
@reply_count = attributes[:reply_count] || attributes['reply_count']
|
|
93
|
+
@score = attributes[:score] || attributes['score']
|
|
94
|
+
@status = attributes[:status] || attributes['status']
|
|
95
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
96
|
+
@upvote_count = attributes[:upvote_count] || attributes['upvote_count']
|
|
97
|
+
@mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users']
|
|
98
|
+
@own_reactions = attributes[:own_reactions] || attributes['own_reactions']
|
|
99
|
+
@user = attributes[:user] || attributes['user']
|
|
100
|
+
@controversy_score = attributes[:controversy_score] || attributes['controversy_score'] || nil
|
|
101
|
+
@deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
|
|
102
|
+
@edited_at = attributes[:edited_at] || attributes['edited_at'] || nil
|
|
103
|
+
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
|
|
104
|
+
@text = attributes[:text] || attributes['text'] || nil
|
|
105
|
+
@attachments = attributes[:attachments] || attributes['attachments'] || nil
|
|
106
|
+
@custom = attributes[:custom] || attributes['custom'] || nil
|
|
107
|
+
@moderation = attributes[:moderation] || attributes['moderation'] || nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Override field mappings for JSON serialization
|
|
111
|
+
def self.json_field_mappings
|
|
112
|
+
{
|
|
113
|
+
_object_id: 'object_id',
|
|
114
|
+
confidence_score: 'confidence_score',
|
|
115
|
+
created_at: 'created_at',
|
|
116
|
+
downvote_count: 'downvote_count',
|
|
117
|
+
id: 'id',
|
|
118
|
+
object_type: 'object_type',
|
|
119
|
+
reaction_count: 'reaction_count',
|
|
120
|
+
reply_count: 'reply_count',
|
|
121
|
+
score: 'score',
|
|
122
|
+
status: 'status',
|
|
123
|
+
updated_at: 'updated_at',
|
|
124
|
+
upvote_count: 'upvote_count',
|
|
125
|
+
mentioned_users: 'mentioned_users',
|
|
126
|
+
own_reactions: 'own_reactions',
|
|
127
|
+
user: 'user',
|
|
128
|
+
controversy_score: 'controversy_score',
|
|
129
|
+
deleted_at: 'deleted_at',
|
|
130
|
+
edited_at: 'edited_at',
|
|
131
|
+
parent_id: 'parent_id',
|
|
132
|
+
text: 'text',
|
|
133
|
+
attachments: 'attachments',
|
|
134
|
+
custom: 'custom',
|
|
135
|
+
moderation: 'moderation'
|
|
136
|
+
}
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
@@ -16,7 +16,8 @@ module GetStream
|
|
|
16
16
|
# @return [String] Fully qualified ID of the target feed
|
|
17
17
|
attr_accessor :target
|
|
18
18
|
# @!attribute copy_custom_to_notification
|
|
19
|
-
#
|
|
19
|
+
# @deprecated This field is deprecated.
|
|
20
|
+
# @return [Boolean] Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
20
21
|
attr_accessor :copy_custom_to_notification
|
|
21
22
|
# @!attribute create_notification_activity
|
|
22
23
|
# @return [Boolean] Whether to create a notification activity for this follow
|
|
@@ -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 GetExternalStorageAWSS3Response < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute bucket
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :bucket
|
|
15
|
+
# @!attribute region
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :region
|
|
18
|
+
# @!attribute role_arn
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :role_arn
|
|
21
|
+
# @!attribute path_prefix
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :path_prefix
|
|
24
|
+
|
|
25
|
+
# Initialize with attributes
|
|
26
|
+
def initialize(attributes = {})
|
|
27
|
+
super(attributes)
|
|
28
|
+
@bucket = attributes[:bucket] || attributes['bucket']
|
|
29
|
+
@region = attributes[:region] || attributes['region']
|
|
30
|
+
@role_arn = attributes[:role_arn] || attributes['role_arn']
|
|
31
|
+
@path_prefix = attributes[:path_prefix] || attributes['path_prefix'] || nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Override field mappings for JSON serialization
|
|
35
|
+
def self.json_field_mappings
|
|
36
|
+
{
|
|
37
|
+
bucket: 'bucket',
|
|
38
|
+
region: 'region',
|
|
39
|
+
role_arn: 'role_arn',
|
|
40
|
+
path_prefix: 'path_prefix'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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
|
+
# Basic response information
|
|
9
|
+
class GetExternalStorageResponse < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
# @return [DateTime]
|
|
14
|
+
attr_accessor :created_at
|
|
15
|
+
# @!attribute duration
|
|
16
|
+
# @return [String] Duration of the request in milliseconds
|
|
17
|
+
attr_accessor :duration
|
|
18
|
+
# @!attribute type
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
# @!attribute updated_at
|
|
22
|
+
# @return [DateTime]
|
|
23
|
+
attr_accessor :updated_at
|
|
24
|
+
# @!attribute aws_s3
|
|
25
|
+
# @return [GetExternalStorageAWSS3Response]
|
|
26
|
+
attr_accessor :aws_s3
|
|
27
|
+
|
|
28
|
+
# Initialize with attributes
|
|
29
|
+
def initialize(attributes = {})
|
|
30
|
+
super(attributes)
|
|
31
|
+
@created_at = attributes[:created_at] || attributes['created_at']
|
|
32
|
+
@duration = attributes[:duration] || attributes['duration']
|
|
33
|
+
@type = attributes[:type] || attributes['type']
|
|
34
|
+
@updated_at = attributes[:updated_at] || attributes['updated_at']
|
|
35
|
+
@aws_s3 = attributes[:aws_s3] || attributes['aws_s3'] || nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Override field mappings for JSON serialization
|
|
39
|
+
def self.json_field_mappings
|
|
40
|
+
{
|
|
41
|
+
created_at: 'created_at',
|
|
42
|
+
duration: 'duration',
|
|
43
|
+
type: 'type',
|
|
44
|
+
updated_at: 'updated_at',
|
|
45
|
+
aws_s3: 'aws_s3'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
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 GetFlagCountRequest < GetStream::BaseModel
|
|
10
|
+
|
|
11
|
+
# Model attributes
|
|
12
|
+
# @!attribute entity_creator_id
|
|
13
|
+
# @return [String] ID of the user whose content was flagged
|
|
14
|
+
attr_accessor :entity_creator_id
|
|
15
|
+
# @!attribute entity_type
|
|
16
|
+
# @return [String] Optional entity type filter (e.g., stream:chat:v1:message, stream:user)
|
|
17
|
+
attr_accessor :entity_type
|
|
18
|
+
|
|
19
|
+
# Initialize with attributes
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
super(attributes)
|
|
22
|
+
@entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id']
|
|
23
|
+
@entity_type = attributes[:entity_type] || attributes['entity_type'] || nil
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Override field mappings for JSON serialization
|
|
27
|
+
def self.json_field_mappings
|
|
28
|
+
{
|
|
29
|
+
entity_creator_id: 'entity_creator_id',
|
|
30
|
+
entity_type: 'entity_type'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|