getstream-ruby 11.0.1 → 12.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 (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +143 -3
  3. data/lib/getstream_ruby/generated/common_client.rb +53 -0
  4. data/lib/getstream_ruby/generated/feed.rb +9 -0
  5. data/lib/getstream_ruby/generated/feeds_client.rb +20 -2
  6. data/lib/getstream_ruby/generated/models/accept_follow_request.rb +1 -1
  7. data/lib/getstream_ruby/generated/models/activity_processing_config.rb +36 -0
  8. data/lib/getstream_ruby/generated/models/activity_processor_config.rb +11 -1
  9. data/lib/getstream_ruby/generated/models/ai_video_config.rb +5 -0
  10. data/lib/getstream_ruby/generated/models/ai_video_config_request.rb +41 -0
  11. data/lib/getstream_ruby/generated/models/ai_video_config_response.rb +41 -0
  12. data/lib/getstream_ruby/generated/models/analyze_response.rb +1 -1
  13. data/lib/getstream_ruby/generated/models/app_response_fields.rb +15 -0
  14. data/lib/getstream_ruby/generated/models/bulk_action_appeals_request.rb +2 -2
  15. data/lib/getstream_ruby/generated/models/channel_batch_update_request.rb +10 -0
  16. data/lib/getstream_ruby/generated/models/channel_config.rb +5 -0
  17. data/lib/getstream_ruby/generated/models/channel_config_with_info.rb +5 -0
  18. data/lib/getstream_ruby/generated/models/channel_member_request.rb +6 -6
  19. data/lib/getstream_ruby/generated/models/channel_type_config.rb +5 -0
  20. data/lib/getstream_ruby/generated/models/classification.rb +5 -0
  21. data/lib/getstream_ruby/generated/models/config_response.rb +1 -1
  22. data/lib/getstream_ruby/generated/models/create_channel_type_response.rb +5 -0
  23. data/lib/getstream_ruby/generated/models/create_feed_group_request.rb +10 -0
  24. data/lib/getstream_ruby/generated/models/create_feeds_batch_request.rb +5 -0
  25. data/lib/getstream_ruby/generated/models/create_permission_request.rb +61 -0
  26. data/lib/getstream_ruby/generated/models/create_predefined_filter_request.rb +51 -0
  27. data/lib/getstream_ruby/generated/models/create_predefined_filter_response.rb +36 -0
  28. data/lib/getstream_ruby/generated/models/create_reminder_response.rb +36 -0
  29. data/lib/getstream_ruby/generated/models/feed_group.rb +5 -0
  30. data/lib/getstream_ruby/generated/models/feed_group_response.rb +10 -0
  31. data/lib/getstream_ruby/generated/models/follow_response.rb +1 -1
  32. data/lib/getstream_ruby/generated/models/get_channel_type_response.rb +5 -0
  33. data/lib/getstream_ruby/generated/models/get_feed_counts_response.rb +46 -0
  34. data/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +10 -0
  35. data/lib/getstream_ruby/generated/models/get_pinned_messages_response.rb +36 -0
  36. data/lib/getstream_ruby/generated/models/get_predefined_filter_response.rb +36 -0
  37. data/lib/getstream_ruby/generated/models/member_user_request.rb +76 -0
  38. data/lib/getstream_ruby/generated/models/message_response.rb +5 -0
  39. data/lib/getstream_ruby/generated/models/message_with_channel_response.rb +5 -0
  40. data/lib/getstream_ruby/generated/models/moderation_flag_response.rb +5 -0
  41. data/lib/getstream_ruby/generated/models/performance_analysis_response.rb +71 -0
  42. data/lib/getstream_ruby/generated/models/permission_request.rb +56 -0
  43. data/lib/getstream_ruby/generated/models/poll_response_data.rb +1 -1
  44. data/lib/getstream_ruby/generated/models/predefined_filter_response.rb +76 -0
  45. data/lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb +41 -0
  46. data/lib/getstream_ruby/generated/models/push_notification_config.rb +1 -1
  47. data/lib/getstream_ruby/generated/models/query_members_payload.rb +5 -5
  48. data/lib/getstream_ruby/generated/models/query_predefined_filters_response.rb +46 -0
  49. data/lib/getstream_ruby/generated/models/query_team_usage_stats_request.rb +6 -1
  50. data/lib/getstream_ruby/generated/models/reminder_created_event.rb +6 -6
  51. data/lib/getstream_ruby/generated/models/reminder_deleted_event.rb +6 -6
  52. data/lib/getstream_ruby/generated/models/reminder_notification_event.rb +6 -6
  53. data/lib/getstream_ruby/generated/models/reminder_updated_event.rb +6 -6
  54. data/lib/getstream_ruby/generated/models/restore_action_request_payload.rb +1 -1
  55. data/lib/getstream_ruby/generated/models/search_result_message.rb +5 -0
  56. data/lib/getstream_ruby/generated/models/sort_param.rb +41 -0
  57. data/lib/getstream_ruby/generated/models/submit_action_request.rb +2 -2
  58. data/lib/getstream_ruby/generated/models/translate_message_response.rb +36 -0
  59. data/lib/getstream_ruby/generated/models/unban_request.rb +2 -1
  60. data/lib/getstream_ruby/generated/models/unblock_action_request_payload.rb +1 -1
  61. data/lib/getstream_ruby/generated/models/update_app_request.rb +10 -0
  62. data/lib/getstream_ruby/generated/models/update_channel_type_request.rb +5 -0
  63. data/lib/getstream_ruby/generated/models/update_channel_type_response.rb +5 -0
  64. data/lib/getstream_ruby/generated/models/update_feed_group_request.rb +11 -1
  65. data/lib/getstream_ruby/generated/models/update_follow_request.rb +1 -1
  66. data/lib/getstream_ruby/generated/models/update_predefined_filter_request.rb +46 -0
  67. data/lib/getstream_ruby/generated/models/update_predefined_filter_response.rb +36 -0
  68. data/lib/getstream_ruby/generated/models/upsert_config_request.rb +1 -1
  69. data/lib/getstream_ruby/generated/video_client.rb +3 -3
  70. data/lib/getstream_ruby/version.rb +1 -1
  71. metadata +22 -2
@@ -36,6 +36,9 @@ module GetStream
36
36
  # @!attribute max_message_length
37
37
  # @return [Integer]
38
38
  attr_accessor :max_message_length
39
+ # @!attribute message_retention
40
+ # @return [String]
41
+ attr_accessor :message_retention
39
42
  # @!attribute mutes
40
43
  # @return [Boolean]
41
44
  attr_accessor :mutes
@@ -133,6 +136,7 @@ module GetStream
133
136
  @delivery_events = attributes[:delivery_events] || attributes['delivery_events']
134
137
  @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending']
135
138
  @max_message_length = attributes[:max_message_length] || attributes['max_message_length']
139
+ @message_retention = attributes[:message_retention] || attributes['message_retention']
136
140
  @mutes = attributes[:mutes] || attributes['mutes']
137
141
  @name = attributes[:name] || attributes['name']
138
142
  @polls = attributes[:polls] || attributes['polls']
@@ -175,6 +179,7 @@ module GetStream
175
179
  delivery_events: 'delivery_events',
176
180
  mark_messages_pending: 'mark_messages_pending',
177
181
  max_message_length: 'max_message_length',
182
+ message_retention: 'message_retention',
178
183
  mutes: 'mutes',
179
184
  name: 'name',
180
185
  polls: 'polls',
@@ -9,24 +9,24 @@ module GetStream
9
9
  class ChannelMemberRequest < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
- # @!attribute user_id
13
- # @return [String]
14
- attr_accessor :user_id
15
12
  # @!attribute channel_role
16
13
  # @return [String] Role of the member in the channel
17
14
  attr_accessor :channel_role
15
+ # @!attribute user_id
16
+ # @return [String]
17
+ attr_accessor :user_id
18
18
  # @!attribute custom
19
19
  # @return [Object]
20
20
  attr_accessor :custom
21
21
  # @!attribute user
22
- # @return [UserResponse] User response object
22
+ # @return [MemberUserRequest]
23
23
  attr_accessor :user
24
24
 
25
25
  # Initialize with attributes
26
26
  def initialize(attributes = {})
27
27
  super(attributes)
28
- @user_id = attributes[:user_id] || attributes['user_id']
29
28
  @channel_role = attributes[:channel_role] || attributes['channel_role'] || nil
29
+ @user_id = attributes[:user_id] || attributes['user_id'] || nil
30
30
  @custom = attributes[:custom] || attributes['custom'] || nil
31
31
  @user = attributes[:user] || attributes['user'] || nil
32
32
  end
@@ -34,8 +34,8 @@ module GetStream
34
34
  # Override field mappings for JSON serialization
35
35
  def self.json_field_mappings
36
36
  {
37
- user_id: 'user_id',
38
37
  channel_role: 'channel_role',
38
+ user_id: 'user_id',
39
39
  custom: 'custom',
40
40
  user: 'user'
41
41
  }
@@ -36,6 +36,9 @@ module GetStream
36
36
  # @!attribute max_message_length
37
37
  # @return [Integer]
38
38
  attr_accessor :max_message_length
39
+ # @!attribute message_retention
40
+ # @return [String]
41
+ attr_accessor :message_retention
39
42
  # @!attribute mutes
40
43
  # @return [Boolean]
41
44
  attr_accessor :mutes
@@ -136,6 +139,7 @@ module GetStream
136
139
  @delivery_events = attributes[:delivery_events] || attributes['delivery_events']
137
140
  @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending']
138
141
  @max_message_length = attributes[:max_message_length] || attributes['max_message_length']
142
+ @message_retention = attributes[:message_retention] || attributes['message_retention']
139
143
  @mutes = attributes[:mutes] || attributes['mutes']
140
144
  @name = attributes[:name] || attributes['name']
141
145
  @polls = attributes[:polls] || attributes['polls']
@@ -179,6 +183,7 @@ module GetStream
179
183
  delivery_events: 'delivery_events',
180
184
  mark_messages_pending: 'mark_messages_pending',
181
185
  max_message_length: 'max_message_length',
186
+ message_retention: 'message_retention',
182
187
  mutes: 'mutes',
183
188
  name: 'name',
184
189
  polls: 'polls',
@@ -18,6 +18,9 @@ module GetStream
18
18
  # @!attribute severity
19
19
  # @return [String]
20
20
  attr_accessor :severity
21
+ # @!attribute matched_contributors
22
+ # @return [Array<String>]
23
+ attr_accessor :matched_contributors
21
24
  # @!attribute subclassifications
22
25
  # @return [Array<Classification>]
23
26
  attr_accessor :subclassifications
@@ -28,6 +31,7 @@ module GetStream
28
31
  @name = attributes[:name] || attributes['name']
29
32
  @confidence = attributes[:confidence] || attributes['confidence'] || nil
30
33
  @severity = attributes[:severity] || attributes['severity'] || nil
34
+ @matched_contributors = attributes[:matched_contributors] || attributes['matched_contributors'] || nil
31
35
  @subclassifications = attributes[:subclassifications] || attributes['subclassifications'] || nil
32
36
  end
33
37
 
@@ -37,6 +41,7 @@ module GetStream
37
41
  name: 'name',
38
42
  confidence: 'confidence',
39
43
  severity: 'severity',
44
+ matched_contributors: 'matched_contributors',
40
45
  subclassifications: 'subclassifications'
41
46
  }
42
47
  end
@@ -46,7 +46,7 @@ module GetStream
46
46
  # @return [AITextConfig]
47
47
  attr_accessor :ai_text_config
48
48
  # @!attribute ai_video_config
49
- # @return [AIVideoConfig]
49
+ # @return [AIVideoConfigResponse]
50
50
  attr_accessor :ai_video_config
51
51
  # @!attribute automod_platform_circumvention_config
52
52
  # @return [AutomodPlatformCircumventionConfig]
@@ -39,6 +39,9 @@ module GetStream
39
39
  # @!attribute max_message_length
40
40
  # @return [Integer]
41
41
  attr_accessor :max_message_length
42
+ # @!attribute message_retention
43
+ # @return [String]
44
+ attr_accessor :message_retention
42
45
  # @!attribute mutes
43
46
  # @return [Boolean]
44
47
  attr_accessor :mutes
@@ -140,6 +143,7 @@ module GetStream
140
143
  @duration = attributes[:duration] || attributes['duration']
141
144
  @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending']
142
145
  @max_message_length = attributes[:max_message_length] || attributes['max_message_length']
146
+ @message_retention = attributes[:message_retention] || attributes['message_retention']
143
147
  @mutes = attributes[:mutes] || attributes['mutes']
144
148
  @name = attributes[:name] || attributes['name']
145
149
  @polls = attributes[:polls] || attributes['polls']
@@ -184,6 +188,7 @@ module GetStream
184
188
  duration: 'duration',
185
189
  mark_messages_pending: 'mark_messages_pending',
186
190
  max_message_length: 'max_message_length',
191
+ message_retention: 'message_retention',
187
192
  mutes: 'mutes',
188
193
  name: 'name',
189
194
  polls: 'polls',
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute id
13
13
  # @return [String] Unique identifier for the feed group
14
14
  attr_accessor :id
15
+ # @!attribute default_follower_role
16
+ # @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
17
+ attr_accessor :default_follower_role
15
18
  # @!attribute default_visibility
16
19
  # @return [String] Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
17
20
  attr_accessor :default_visibility
@@ -24,6 +27,9 @@ module GetStream
24
27
  # @!attribute activity_filter
25
28
  # @return [ActivityFilterConfig]
26
29
  attr_accessor :activity_filter
30
+ # @!attribute activity_processing
31
+ # @return [ActivityProcessingConfig]
32
+ attr_accessor :activity_processing
27
33
  # @!attribute aggregation
28
34
  # @return [AggregationConfig]
29
35
  attr_accessor :aggregation
@@ -47,10 +53,12 @@ module GetStream
47
53
  def initialize(attributes = {})
48
54
  super(attributes)
49
55
  @id = attributes[:id] || attributes['id']
56
+ @default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
50
57
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
51
58
  @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
52
59
  @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
53
60
  @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
61
+ @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
54
62
  @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
55
63
  @custom = attributes[:custom] || attributes['custom'] || nil
56
64
  @notification = attributes[:notification] || attributes['notification'] || nil
@@ -63,10 +71,12 @@ module GetStream
63
71
  def self.json_field_mappings
64
72
  {
65
73
  id: 'id',
74
+ default_follower_role: 'default_follower_role',
66
75
  default_visibility: 'default_visibility',
67
76
  activity_processors: 'activity_processors',
68
77
  activity_selectors: 'activity_selectors',
69
78
  activity_filter: 'activity_filter',
79
+ activity_processing: 'activity_processing',
70
80
  aggregation: 'aggregation',
71
81
  custom: 'custom',
72
82
  notification: 'notification',
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute feeds
13
13
  # @return [Array<FeedRequest>] List of feeds to create
14
14
  attr_accessor :feeds
15
+ # @!attribute create_users
16
+ # @return [Boolean] Server-side only. If true, auto-creates users referenced by feeds[].created_by_id that don't already exist. Default: false.
17
+ attr_accessor :create_users
15
18
  # @!attribute enrich_own_fields
16
19
  # @return [Boolean] If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
17
20
  attr_accessor :enrich_own_fields
@@ -20,6 +23,7 @@ module GetStream
20
23
  def initialize(attributes = {})
21
24
  super(attributes)
22
25
  @feeds = attributes[:feeds] || attributes['feeds']
26
+ @create_users = attributes[:create_users] || attributes['create_users'] || nil
23
27
  @enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil
24
28
  end
25
29
 
@@ -27,6 +31,7 @@ module GetStream
27
31
  def self.json_field_mappings
28
32
  {
29
33
  feeds: 'feeds',
34
+ create_users: 'create_users',
30
35
  enrich_own_fields: 'enrich_own_fields'
31
36
  }
32
37
  end
@@ -0,0 +1,61 @@
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 CreatePermissionRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute action
13
+ # @return [String] Action name this permission is for (e.g. SendMessage)
14
+ attr_accessor :action
15
+ # @!attribute id
16
+ # @return [String] Unique permission ID
17
+ attr_accessor :id
18
+ # @!attribute name
19
+ # @return [String] Name of the permission
20
+ attr_accessor :name
21
+ # @!attribute condition
22
+ # @return [Object] MongoDB style condition which decides whether or not the permission is granted
23
+ attr_accessor :condition
24
+ # @!attribute description
25
+ # @return [String] Description of the permission
26
+ attr_accessor :description
27
+ # @!attribute owner
28
+ # @return [Boolean] Whether this permission applies to resource owner or not
29
+ attr_accessor :owner
30
+ # @!attribute same_team
31
+ # @return [Boolean] Whether this permission applies to teammates (multi-tenancy mode only)
32
+ attr_accessor :same_team
33
+
34
+ # Initialize with attributes
35
+ def initialize(attributes = {})
36
+ super(attributes)
37
+ @action = attributes[:action] || attributes['action']
38
+ @id = attributes[:id] || attributes['id']
39
+ @name = attributes[:name] || attributes['name']
40
+ @condition = attributes[:condition] || attributes['condition']
41
+ @description = attributes[:description] || attributes['description'] || nil
42
+ @owner = attributes[:owner] || attributes['owner'] || nil
43
+ @same_team = attributes[:same_team] || attributes['same_team'] || nil
44
+ end
45
+
46
+ # Override field mappings for JSON serialization
47
+ def self.json_field_mappings
48
+ {
49
+ action: 'action',
50
+ id: 'id',
51
+ name: 'name',
52
+ condition: 'condition',
53
+ description: 'description',
54
+ owner: 'owner',
55
+ same_team: 'same_team'
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
61
+ 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 CreatePredefinedFilterRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute name
13
+ # @return [String] The unique name of the predefined filter (alphanumeric, _, - only)
14
+ attr_accessor :name
15
+ # @!attribute operation
16
+ # @return [String] The operation this filter is for (e.g., QueryChannels)
17
+ attr_accessor :operation
18
+ # @!attribute filter
19
+ # @return [Object] Filter to apply to the query
20
+ attr_accessor :filter
21
+ # @!attribute description
22
+ # @return [String] The description of the predefined filter
23
+ attr_accessor :description
24
+ # @!attribute sort
25
+ # @return [Array<Object>]
26
+ attr_accessor :sort
27
+
28
+ # Initialize with attributes
29
+ def initialize(attributes = {})
30
+ super(attributes)
31
+ @name = attributes[:name] || attributes['name']
32
+ @operation = attributes[:operation] || attributes['operation']
33
+ @filter = attributes[:filter] || attributes['filter']
34
+ @description = attributes[:description] || attributes['description'] || nil
35
+ @sort = attributes[:sort] || attributes['sort'] || nil
36
+ end
37
+
38
+ # Override field mappings for JSON serialization
39
+ def self.json_field_mappings
40
+ {
41
+ name: 'name',
42
+ operation: 'operation',
43
+ filter: 'filter',
44
+ description: 'description',
45
+ sort: 'sort'
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 CreatePredefinedFilterResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute predefined_filter
16
+ # @return [PredefinedFilterResponse]
17
+ attr_accessor :predefined_filter
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @predefined_filter = attributes[:predefined_filter] || attributes['predefined_filter'] || nil
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ predefined_filter: 'predefined_filter'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,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
+ # Basic response information
9
+ class CreateReminderResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute reminder
16
+ # @return [ReminderResponseData]
17
+ attr_accessor :reminder
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @reminder = attributes[:reminder] || attributes['reminder']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ reminder: 'reminder'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -18,6 +18,9 @@ module GetStream
18
18
  # @!attribute created_at
19
19
  # @return [DateTime]
20
20
  attr_accessor :created_at
21
+ # @!attribute default_follower_role
22
+ # @return [String]
23
+ attr_accessor :default_follower_role
21
24
  # @!attribute default_visibility
22
25
  # @return [String]
23
26
  attr_accessor :default_visibility
@@ -67,6 +70,7 @@ module GetStream
67
70
  @aggregation_version = attributes[:aggregation_version] || attributes['aggregation_version']
68
71
  @app_pk = attributes[:app_pk] || attributes['app_pk']
69
72
  @created_at = attributes[:created_at] || attributes['created_at']
73
+ @default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role']
70
74
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility']
71
75
  @group_id = attributes[:group_id] || attributes['group_id']
72
76
  @updated_at = attributes[:updated_at] || attributes['updated_at']
@@ -89,6 +93,7 @@ module GetStream
89
93
  aggregation_version: 'aggregation_version',
90
94
  app_pk: 'app_pk',
91
95
  created_at: 'created_at',
96
+ default_follower_role: 'default_follower_role',
92
97
  default_visibility: 'default_visibility',
93
98
  group_id: 'group_id',
94
99
  updated_at: 'updated_at',
@@ -18,6 +18,9 @@ module GetStream
18
18
  # @!attribute updated_at
19
19
  # @return [DateTime] When the feed group was last updated
20
20
  attr_accessor :updated_at
21
+ # @!attribute default_follower_role
22
+ # @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
23
+ attr_accessor :default_follower_role
21
24
  # @!attribute default_visibility
22
25
  # @return [String] Default visibility for activities. One of: public, visible, followers, members, private
23
26
  attr_accessor :default_visibility
@@ -33,6 +36,9 @@ module GetStream
33
36
  # @!attribute activity_filter
34
37
  # @return [ActivityFilterConfig]
35
38
  attr_accessor :activity_filter
39
+ # @!attribute activity_processing
40
+ # @return [ActivityProcessingConfig]
41
+ attr_accessor :activity_processing
36
42
  # @!attribute aggregation
37
43
  # @return [AggregationConfig]
38
44
  attr_accessor :aggregation
@@ -58,11 +64,13 @@ module GetStream
58
64
  @created_at = attributes[:created_at] || attributes['created_at']
59
65
  @id = attributes[:id] || attributes['id']
60
66
  @updated_at = attributes[:updated_at] || attributes['updated_at']
67
+ @default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
61
68
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
62
69
  @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil
63
70
  @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
64
71
  @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
65
72
  @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
73
+ @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
66
74
  @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
67
75
  @custom = attributes[:custom] || attributes['custom'] || nil
68
76
  @notification = attributes[:notification] || attributes['notification'] || nil
@@ -77,11 +85,13 @@ module GetStream
77
85
  created_at: 'created_at',
78
86
  id: 'id',
79
87
  updated_at: 'updated_at',
88
+ default_follower_role: 'default_follower_role',
80
89
  default_visibility: 'default_visibility',
81
90
  deleted_at: 'deleted_at',
82
91
  activity_processors: 'activity_processors',
83
92
  activity_selectors: 'activity_selectors',
84
93
  activity_filter: 'activity_filter',
94
+ activity_processing: 'activity_processing',
85
95
  aggregation: 'aggregation',
86
96
  custom: 'custom',
87
97
  notification: 'notification',
@@ -13,7 +13,7 @@ module GetStream
13
13
  # @return [DateTime] When the follow relationship was created
14
14
  attr_accessor :created_at
15
15
  # @!attribute follower_role
16
- # @return [String] Role of the follower (source user) in the follow relationship
16
+ # @return [String] Role of the follower (source user) in the follow relationship, as stored. A reserved name, or a role your app no longer defines, is reported as stored but evaluated as 'feed_follower'.
17
17
  attr_accessor :follower_role
18
18
  # @!attribute push_preference
19
19
  # @return [String] Push preference for notifications. One of: all, none
@@ -39,6 +39,9 @@ module GetStream
39
39
  # @!attribute max_message_length
40
40
  # @return [Integer]
41
41
  attr_accessor :max_message_length
42
+ # @!attribute message_retention
43
+ # @return [String]
44
+ attr_accessor :message_retention
42
45
  # @!attribute mutes
43
46
  # @return [Boolean]
44
47
  attr_accessor :mutes
@@ -140,6 +143,7 @@ module GetStream
140
143
  @duration = attributes[:duration] || attributes['duration']
141
144
  @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending']
142
145
  @max_message_length = attributes[:max_message_length] || attributes['max_message_length']
146
+ @message_retention = attributes[:message_retention] || attributes['message_retention']
143
147
  @mutes = attributes[:mutes] || attributes['mutes']
144
148
  @name = attributes[:name] || attributes['name']
145
149
  @polls = attributes[:polls] || attributes['polls']
@@ -184,6 +188,7 @@ module GetStream
184
188
  duration: 'duration',
185
189
  mark_messages_pending: 'mark_messages_pending',
186
190
  max_message_length: 'max_message_length',
191
+ message_retention: 'message_retention',
187
192
  mutes: 'mutes',
188
193
  name: 'name',
189
194
  polls: 'polls',
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class GetFeedCountsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute activity_count
13
+ # @return [Integer] Number of activities in the feed
14
+ attr_accessor :activity_count
15
+ # @!attribute comment_count
16
+ # @return [Integer] Total number of comments on those activities, including nested replies
17
+ attr_accessor :comment_count
18
+ # @!attribute duration
19
+ # @return [String]
20
+ attr_accessor :duration
21
+ # @!attribute total_count
22
+ # @return [Integer] Sum of activity_count and comment_count
23
+ attr_accessor :total_count
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @activity_count = attributes[:activity_count] || attributes['activity_count']
29
+ @comment_count = attributes[:comment_count] || attributes['comment_count']
30
+ @duration = attributes[:duration] || attributes['duration']
31
+ @total_count = attributes[:total_count] || attributes['total_count']
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ activity_count: 'activity_count',
38
+ comment_count: 'comment_count',
39
+ duration: 'duration',
40
+ total_count: 'total_count'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -9,6 +9,9 @@ module GetStream
9
9
  class GetOrCreateFeedGroupRequest < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute default_follower_role
13
+ # @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
14
+ attr_accessor :default_follower_role
12
15
  # @!attribute default_visibility
13
16
  # @return [String] Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
14
17
  attr_accessor :default_visibility
@@ -21,6 +24,9 @@ module GetStream
21
24
  # @!attribute activity_filter
22
25
  # @return [ActivityFilterConfig]
23
26
  attr_accessor :activity_filter
27
+ # @!attribute activity_processing
28
+ # @return [ActivityProcessingConfig]
29
+ attr_accessor :activity_processing
24
30
  # @!attribute aggregation
25
31
  # @return [AggregationConfig]
26
32
  attr_accessor :aggregation
@@ -43,10 +49,12 @@ module GetStream
43
49
  # Initialize with attributes
44
50
  def initialize(attributes = {})
45
51
  super(attributes)
52
+ @default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
46
53
  @default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
47
54
  @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil
48
55
  @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil
49
56
  @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil
57
+ @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
50
58
  @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
51
59
  @custom = attributes[:custom] || attributes['custom'] || nil
52
60
  @notification = attributes[:notification] || attributes['notification'] || nil
@@ -58,10 +66,12 @@ module GetStream
58
66
  # Override field mappings for JSON serialization
59
67
  def self.json_field_mappings
60
68
  {
69
+ default_follower_role: 'default_follower_role',
61
70
  default_visibility: 'default_visibility',
62
71
  activity_processors: 'activity_processors',
63
72
  activity_selectors: 'activity_selectors',
64
73
  activity_filter: 'activity_filter',
74
+ activity_processing: 'activity_processing',
65
75
  aggregation: 'aggregation',
66
76
  custom: 'custom',
67
77
  notification: 'notification',
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class GetPinnedMessagesResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute messages
16
+ # @return [Array<MessageResponse>] Messages
17
+ attr_accessor :messages
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @messages = attributes[:messages] || attributes['messages']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ messages: 'messages'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end