getstream-ruby 4.1.0 → 6.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.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +7 -10
  3. data/lib/getstream_ruby/generated/common_client.rb +56 -0
  4. data/lib/getstream_ruby/generated/feeds_client.rb +130 -7
  5. data/lib/getstream_ruby/generated/models/activity_request.rb +3 -2
  6. data/lib/getstream_ruby/generated/models/activity_response.rb +7 -2
  7. data/lib/getstream_ruby/generated/models/add_activity_request.rb +8 -2
  8. data/lib/getstream_ruby/generated/models/add_comment_bookmark_request.rb +51 -0
  9. data/lib/getstream_ruby/generated/models/add_comment_bookmark_response.rb +36 -0
  10. data/lib/getstream_ruby/generated/models/add_comment_reaction_request.rb +2 -1
  11. data/lib/getstream_ruby/generated/models/add_comment_request.rb +7 -1
  12. data/lib/getstream_ruby/generated/models/add_reaction_request.rb +2 -1
  13. data/lib/getstream_ruby/generated/models/add_user_group_members_request.rb +5 -0
  14. data/lib/getstream_ruby/generated/models/aggregation_config.rb +11 -1
  15. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  16. data/lib/getstream_ruby/generated/models/ban_action_request_payload.rb +5 -0
  17. data/lib/getstream_ruby/generated/models/bookmark_response.rb +20 -0
  18. data/lib/getstream_ruby/generated/models/bypass_action_request.rb +31 -0
  19. data/lib/getstream_ruby/generated/models/bypass_request.rb +36 -0
  20. data/lib/getstream_ruby/generated/models/bypass_response.rb +31 -0
  21. data/lib/getstream_ruby/generated/models/call_level_event_payload.rb +46 -0
  22. data/lib/getstream_ruby/generated/models/call_stats_participant_counts.rb +30 -0
  23. data/lib/getstream_ruby/generated/models/call_stats_participant_session.rb +15 -0
  24. data/lib/getstream_ruby/generated/models/call_stats_report_ready_event.rb +5 -0
  25. data/lib/getstream_ruby/generated/models/call_stats_session_response.rb +61 -0
  26. data/lib/getstream_ruby/generated/models/check_request.rb +5 -0
  27. data/lib/getstream_ruby/generated/models/comment_response.rb +5 -0
  28. data/lib/getstream_ruby/generated/models/comment_restored_event.rb +66 -0
  29. data/lib/getstream_ruby/generated/models/delete_comment_bookmark_response.rb +36 -0
  30. data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +1 -1
  31. data/lib/getstream_ruby/generated/models/emau_stats_response.rb +41 -0
  32. data/lib/getstream_ruby/generated/models/enriched_collection.rb +61 -0
  33. data/lib/getstream_ruby/generated/models/enrichment_options.rb +5 -0
  34. data/lib/getstream_ruby/generated/models/entity_creator_response.rb +5 -0
  35. data/lib/getstream_ruby/generated/models/escalate_payload.rb +41 -0
  36. data/lib/getstream_ruby/generated/models/escalation_metadata.rb +41 -0
  37. data/lib/getstream_ruby/generated/models/feed_input.rb +6 -1
  38. data/lib/getstream_ruby/generated/models/feed_request.rb +6 -1
  39. data/lib/getstream_ruby/generated/models/feed_response.rb +5 -0
  40. data/lib/getstream_ruby/generated/models/feed_suggestion_response.rb +5 -0
  41. data/lib/getstream_ruby/generated/models/feeds_preferences.rb +6 -1
  42. data/lib/getstream_ruby/generated/models/feeds_preferences_response.rb +5 -0
  43. data/lib/getstream_ruby/generated/models/feeds_reaction_group.rb +41 -0
  44. data/lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb +206 -0
  45. data/lib/getstream_ruby/generated/models/feeds_v3_comment_response.rb +141 -0
  46. data/lib/getstream_ruby/generated/models/follow_batch_request.rb +5 -0
  47. data/lib/getstream_ruby/generated/models/follow_request.rb +12 -1
  48. data/lib/getstream_ruby/generated/models/full_user_response.rb +5 -0
  49. data/lib/getstream_ruby/generated/models/get_external_storage_awss3_response.rb +46 -0
  50. data/lib/getstream_ruby/generated/models/get_external_storage_response.rb +51 -0
  51. data/lib/getstream_ruby/generated/models/get_flag_count_request.rb +36 -0
  52. data/lib/getstream_ruby/generated/models/get_flag_count_response.rb +36 -0
  53. data/lib/getstream_ruby/generated/models/get_import_v2_task_response.rb +6 -1
  54. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_request.rb +51 -0
  55. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +12 -2
  56. data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
  57. data/lib/getstream_ruby/generated/models/import_v2_task_item.rb +6 -1
  58. data/lib/getstream_ruby/generated/models/import_v2_task_settings.rb +5 -0
  59. data/lib/getstream_ruby/generated/models/insert_action_log_request.rb +56 -0
  60. data/lib/getstream_ruby/generated/models/insert_action_log_response.rb +31 -0
  61. data/lib/getstream_ruby/generated/models/location.rb +10 -15
  62. data/lib/getstream_ruby/generated/models/moderation_action_config_response.rb +5 -0
  63. data/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +10 -0
  64. data/lib/getstream_ruby/generated/models/notification_target.rb +5 -0
  65. data/lib/getstream_ruby/generated/models/notification_trigger.rb +6 -1
  66. data/lib/getstream_ruby/generated/models/query_activities_request.rb +5 -0
  67. data/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +1 -1
  68. data/lib/getstream_ruby/generated/models/query_call_members_request.rb +2 -2
  69. data/lib/getstream_ruby/generated/models/query_call_participants_request.rb +1 -1
  70. data/lib/getstream_ruby/generated/models/query_call_session_participant_stats_response.rb +6 -1
  71. data/lib/getstream_ruby/generated/models/query_call_session_stats_request.rb +51 -0
  72. data/lib/getstream_ruby/generated/models/query_call_session_stats_response.rb +46 -0
  73. data/lib/getstream_ruby/generated/models/query_call_stats_request.rb +2 -2
  74. data/lib/getstream_ruby/generated/models/query_calls_request.rb +1 -1
  75. data/lib/getstream_ruby/generated/models/query_channels_request.rb +1 -1
  76. data/lib/getstream_ruby/generated/models/query_comments_request.rb +2 -2
  77. data/lib/getstream_ruby/generated/models/query_feeds_usage_stats_response.rb +6 -1
  78. data/lib/getstream_ruby/generated/models/query_members_payload.rb +3 -3
  79. data/lib/getstream_ruby/generated/models/query_message_flags_payload.rb +2 -2
  80. data/lib/getstream_ruby/generated/models/query_reactions_request.rb +2 -2
  81. data/lib/getstream_ruby/generated/models/query_threads_request.rb +2 -2
  82. data/lib/getstream_ruby/generated/models/query_user_feedback_request.rb +2 -2
  83. data/lib/getstream_ruby/generated/models/query_users_payload.rb +3 -3
  84. data/lib/getstream_ruby/generated/models/raw_record_settings.rb +6 -1
  85. data/lib/getstream_ruby/generated/models/raw_recording_settings_request.rb +6 -1
  86. data/lib/getstream_ruby/generated/models/raw_recording_settings_response.rb +6 -1
  87. data/lib/getstream_ruby/generated/models/reaction_group_response.rb +6 -1
  88. data/lib/getstream_ruby/generated/models/reaction_group_user_response.rb +41 -0
  89. data/lib/getstream_ruby/generated/models/restore_comment_request.rb +36 -0
  90. data/lib/getstream_ruby/generated/models/restore_comment_response.rb +41 -0
  91. data/lib/getstream_ruby/generated/models/retention_run_response.rb +46 -0
  92. data/lib/getstream_ruby/generated/models/review_queue_item_response.rb +22 -2
  93. data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +2 -2
  94. data/lib/getstream_ruby/generated/models/submit_action_request.rb +11 -1
  95. data/lib/getstream_ruby/generated/models/text_content_parameters.rb +5 -0
  96. data/lib/getstream_ruby/generated/models/threaded_comment_response.rb +5 -0
  97. data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +2 -2
  98. data/lib/getstream_ruby/generated/models/unban_action_request_payload.rb +6 -1
  99. data/lib/getstream_ruby/generated/models/unfollow_batch_request.rb +1 -1
  100. data/lib/getstream_ruby/generated/models/unfollow_pair.rb +41 -0
  101. data/lib/getstream_ruby/generated/models/update_activities_partial_batch_request.rb +6 -1
  102. data/lib/getstream_ruby/generated/models/update_activity_partial_change_request.rb +2 -1
  103. data/lib/getstream_ruby/generated/models/update_activity_partial_request.rb +7 -1
  104. data/lib/getstream_ruby/generated/models/update_activity_request.rb +8 -2
  105. data/lib/getstream_ruby/generated/models/update_bookmark_request.rb +2 -2
  106. data/lib/getstream_ruby/generated/models/update_comment_bookmark_request.rb +56 -0
  107. data/lib/getstream_ruby/generated/models/update_comment_bookmark_response.rb +36 -0
  108. data/lib/getstream_ruby/generated/models/update_comment_partial_request.rb +72 -0
  109. data/lib/getstream_ruby/generated/models/update_comment_partial_response.rb +36 -0
  110. data/lib/getstream_ruby/generated/models/update_comment_request.rb +7 -1
  111. data/lib/getstream_ruby/generated/models/update_feed_request.rb +11 -1
  112. data/lib/getstream_ruby/generated/models/update_follow_request.rb +12 -1
  113. data/lib/getstream_ruby/generated/models/upsert_activities_request.rb +6 -1
  114. data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
  115. data/lib/getstream_ruby/generated/models/upsert_external_storage_awss3_request.rb +46 -0
  116. data/lib/getstream_ruby/generated/models/upsert_external_storage_request.rb +36 -0
  117. data/lib/getstream_ruby/generated/models/upsert_external_storage_response.rb +31 -0
  118. data/lib/getstream_ruby/generated/models/upsert_moderation_rule_request.rb +22 -12
  119. data/lib/getstream_ruby/generated/models/user_response.rb +5 -0
  120. data/lib/getstream_ruby/generated/models/validate_external_storage_response.rb +31 -0
  121. data/lib/getstream_ruby/generated/models/video_content_parameters.rb +5 -0
  122. data/lib/getstream_ruby/generated/moderation_client.rb +61 -3
  123. data/lib/getstream_ruby/generated/video_client.rb +17 -0
  124. data/lib/getstream_ruby/generated/webhook.rb +4 -0
  125. data/lib/getstream_ruby/version.rb +1 -1
  126. metadata +40 -2
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute enrich_own_followings
13
13
  # @return [Boolean] Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds).
14
14
  attr_accessor :enrich_own_followings
15
+ # @!attribute include_score_vars
16
+ # @return [Boolean] Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
17
+ attr_accessor :include_score_vars
15
18
  # @!attribute skip_activity
16
19
  # @return [Boolean] Default: false. When true, skips all activity enrichments.
17
20
  attr_accessor :skip_activity
@@ -68,6 +71,7 @@ module GetStream
68
71
  def initialize(attributes = {})
69
72
  super(attributes)
70
73
  @enrich_own_followings = attributes[:enrich_own_followings] || attributes['enrich_own_followings'] || nil
74
+ @include_score_vars = attributes[:include_score_vars] || attributes['include_score_vars'] || nil
71
75
  @skip_activity = attributes[:skip_activity] || attributes['skip_activity'] || nil
72
76
  @skip_activity_collections = attributes[:skip_activity_collections] || attributes['skip_activity_collections'] || nil
73
77
  @skip_activity_comments = attributes[:skip_activity_comments] || attributes['skip_activity_comments'] || nil
@@ -91,6 +95,7 @@ module GetStream
91
95
  def self.json_field_mappings
92
96
  {
93
97
  enrich_own_followings: 'enrich_own_followings',
98
+ include_score_vars: 'include_score_vars',
94
99
  skip_activity: 'skip_activity',
95
100
  skip_activity_collections: 'skip_activity_collections',
96
101
  skip_activity_comments: 'skip_activity_comments',
@@ -60,6 +60,9 @@ module GetStream
60
60
  # @!attribute ban_expires
61
61
  # @return [DateTime]
62
62
  attr_accessor :ban_expires
63
+ # @!attribute bypass_moderation
64
+ # @return [Boolean]
65
+ attr_accessor :bypass_moderation
63
66
  # @!attribute deactivated_at
64
67
  # @return [DateTime]
65
68
  attr_accessor :deactivated_at
@@ -111,6 +114,7 @@ module GetStream
111
114
  @custom = attributes[:custom] || attributes['custom']
112
115
  @avg_response_time = attributes[:avg_response_time] || attributes['avg_response_time'] || nil
113
116
  @ban_expires = attributes[:ban_expires] || attributes['ban_expires'] || nil
117
+ @bypass_moderation = attributes[:bypass_moderation] || attributes['bypass_moderation'] || nil
114
118
  @deactivated_at = attributes[:deactivated_at] || attributes['deactivated_at'] || nil
115
119
  @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
116
120
  @image = attributes[:image] || attributes['image'] || nil
@@ -143,6 +147,7 @@ module GetStream
143
147
  custom: 'custom',
144
148
  avg_response_time: 'avg_response_time',
145
149
  ban_expires: 'ban_expires',
150
+ bypass_moderation: 'bypass_moderation',
146
151
  deactivated_at: 'deactivated_at',
147
152
  deleted_at: 'deleted_at',
148
153
  image: 'image',
@@ -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
@@ -27,6 +27,9 @@ module GetStream
27
27
  # @!attribute custom
28
28
  # @return [Object]
29
29
  attr_accessor :custom
30
+ # @!attribute location
31
+ # @return [Location]
32
+ attr_accessor :location
30
33
 
31
34
  # Initialize with attributes
32
35
  def initialize(attributes = {})
@@ -37,6 +40,7 @@ module GetStream
37
40
  @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil
38
41
  @members = attributes[:members] || attributes['members'] || nil
39
42
  @custom = attributes[:custom] || attributes['custom'] || nil
43
+ @location = attributes[:location] || attributes['location'] || nil
40
44
  end
41
45
 
42
46
  # Override field mappings for JSON serialization
@@ -47,7 +51,8 @@ module GetStream
47
51
  visibility: 'visibility',
48
52
  filter_tags: 'filter_tags',
49
53
  members: 'members',
50
- custom: 'custom'
54
+ custom: 'custom',
55
+ location: 'location'
51
56
  }
52
57
  end
53
58
  end
@@ -36,6 +36,9 @@ module GetStream
36
36
  # @!attribute custom
37
37
  # @return [Object] Custom data for the feed
38
38
  attr_accessor :custom
39
+ # @!attribute location
40
+ # @return [Location]
41
+ attr_accessor :location
39
42
 
40
43
  # Initialize with attributes
41
44
  def initialize(attributes = {})
@@ -49,6 +52,7 @@ module GetStream
49
52
  @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil
50
53
  @members = attributes[:members] || attributes['members'] || nil
51
54
  @custom = attributes[:custom] || attributes['custom'] || nil
55
+ @location = attributes[:location] || attributes['location'] || nil
52
56
  end
53
57
 
54
58
  # Override field mappings for JSON serialization
@@ -62,7 +66,8 @@ module GetStream
62
66
  visibility: 'visibility',
63
67
  filter_tags: 'filter_tags',
64
68
  members: 'members',
65
- custom: 'custom'
69
+ custom: 'custom',
70
+ location: 'location'
66
71
  }
67
72
  end
68
73
  end
@@ -69,6 +69,9 @@ module GetStream
69
69
  # @!attribute custom
70
70
  # @return [Object] Custom data for the feed
71
71
  attr_accessor :custom
72
+ # @!attribute location
73
+ # @return [Location]
74
+ attr_accessor :location
72
75
  # @!attribute own_membership
73
76
  # @return [FeedMemberResponse]
74
77
  attr_accessor :own_membership
@@ -96,6 +99,7 @@ module GetStream
96
99
  @own_followings = attributes[:own_followings] || attributes['own_followings'] || nil
97
100
  @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil
98
101
  @custom = attributes[:custom] || attributes['custom'] || nil
102
+ @location = attributes[:location] || attributes['location'] || nil
99
103
  @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil
100
104
  end
101
105
 
@@ -122,6 +126,7 @@ module GetStream
122
126
  own_followings: 'own_followings',
123
127
  own_follows: 'own_follows',
124
128
  custom: 'custom',
129
+ location: 'location',
125
130
  own_membership: 'own_membership'
126
131
  }
127
132
  end
@@ -78,6 +78,9 @@ module GetStream
78
78
  # @!attribute custom
79
79
  # @return [Object] Custom data for the feed
80
80
  attr_accessor :custom
81
+ # @!attribute location
82
+ # @return [Location]
83
+ attr_accessor :location
81
84
  # @!attribute own_membership
82
85
  # @return [FeedMemberResponse]
83
86
  attr_accessor :own_membership
@@ -108,6 +111,7 @@ module GetStream
108
111
  @own_follows = attributes[:own_follows] || attributes['own_follows'] || nil
109
112
  @algorithm_scores = attributes[:algorithm_scores] || attributes['algorithm_scores'] || nil
110
113
  @custom = attributes[:custom] || attributes['custom'] || nil
114
+ @location = attributes[:location] || attributes['location'] || nil
111
115
  @own_membership = attributes[:own_membership] || attributes['own_membership'] || nil
112
116
  end
113
117
 
@@ -137,6 +141,7 @@ module GetStream
137
141
  own_follows: 'own_follows',
138
142
  algorithm_scores: 'algorithm_scores',
139
143
  custom: 'custom',
144
+ location: 'location',
140
145
  own_membership: 'own_membership'
141
146
  }
142
147
  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 or comments. One of: all, none
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