From 2efb959f754157f7ccf4ba2b50c0f4c22c9554ed Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Tue, 8 Sep 2026 16:08:35 +0200 Subject: [PATCH] feat!: [FEEDS-1763] regenerate OpenAPI client --- lib/getstream_ruby/generated/chat_client.rb | 8 ++-- lib/getstream_ruby/generated/common_client.rb | 6 ++- lib/getstream_ruby/generated/feeds_client.rb | 10 +++-- .../generated/models/activity_marks_config.rb | 36 ++++++++++++++++ .../models/activity_processing_config.rb | 7 +++- .../models/activity_selector_config.rb | 5 +++ .../activity_selector_config_response.rb | 5 +++ .../models/async_export_error_event.rb | 2 +- .../batch_query_activity_reactions_request.rb | 12 +++--- .../batch_query_comment_reactions_request.rb | 12 +++--- .../models/create_feed_group_request.rb | 5 +++ .../models/delete_channels_request.rb | 9 +++- .../generated/models/feed_group_response.rb | 5 +++ .../generated/models/feed_group_scope.rb | 36 ++++++++++++++++ .../models/get_feeds_rate_limits_response.rb | 10 +++++ .../get_or_create_feed_group_request.rb | 5 +++ .../models/get_rate_limits_response.rb | 10 +++++ .../moderation_dashboard_preferences.rb | 5 +++ .../generated/models/pagination_params.rb | 20 +++++++++ .../models/query_banned_users_payload.rb | 20 +++++++++ .../query_future_channel_bans_payload.rb | 20 +++++++++ .../generated/models/query_members_payload.rb | 40 ++++++++++++++++++ .../generated/models/query_users_payload.rb | 20 +++++++++ .../models/rule_builder_condition.rb | 5 +++ .../generated/models/run_stats.rb | 5 +++ .../models/stop_campaign_response.rb | 36 ++++++++++++++++ .../models/update_campaign_response.rb | 41 +++++++++++++++++++ .../models/update_channel_type_request.rb | 14 +++---- .../models/update_feed_group_request.rb | 5 +++ .../generated/models/update_users_response.rb | 3 +- .../user_reaction_count_rule_parameters.rb | 36 ++++++++++++++++ .../models/webhook_failover_config.rb | 30 ++++++++++++++ 32 files changed, 452 insertions(+), 31 deletions(-) create mode 100644 lib/getstream_ruby/generated/models/activity_marks_config.rb create mode 100644 lib/getstream_ruby/generated/models/feed_group_scope.rb create mode 100644 lib/getstream_ruby/generated/models/stop_campaign_response.rb create mode 100644 lib/getstream_ruby/generated/models/update_campaign_response.rb create mode 100644 lib/getstream_ruby/generated/models/user_reaction_count_rule_parameters.rb diff --git a/lib/getstream_ruby/generated/chat_client.rb b/lib/getstream_ruby/generated/chat_client.rb index a291b716..7924cff0 100644 --- a/lib/getstream_ruby/generated/chat_client.rb +++ b/lib/getstream_ruby/generated/chat_client.rb @@ -91,7 +91,7 @@ def get_campaign(_id, prev = nil, _next = nil, limit = nil) # # @param _id [String] # @param update_campaign_request [UpdateCampaignRequest] - # @return [Models::CampaignResponse] + # @return [Models::UpdateCampaignResponse] def update_campaign(_id, update_campaign_request) path = '/api/v2/chat/campaigns/{id}' # Replace path parameters @@ -131,7 +131,7 @@ def start_campaign(_id, start_campaign_request) # # @param _id [String] # @param stop_campaign_request [StopCampaignRequest] - # @return [Models::CampaignResponse] + # @return [Models::StopCampaignResponse] def stop_campaign(_id, stop_campaign_request) path = '/api/v2/chat/campaigns/{id}/stop' # Replace path parameters @@ -279,8 +279,9 @@ def get_or_create_distinct_channel(_type, channel_get_or_create_request) # @param _type [String] # @param _id [String] # @param hard_delete [Boolean] + # @param skip_truncate [Boolean] # @return [Models::DeleteChannelResponse] - def delete_channel(_type, _id, hard_delete = nil) + def delete_channel(_type, _id, hard_delete = nil, skip_truncate = nil) path = '/api/v2/chat/channels/{type}/{id}' # Replace path parameters path = path.gsub('{type}', _type.to_s) @@ -288,6 +289,7 @@ def delete_channel(_type, _id, hard_delete = nil) # Build query parameters query_params = {} query_params['hard_delete'] = hard_delete unless hard_delete.nil? + query_params['skip_truncate'] = skip_truncate unless skip_truncate.nil? # Make the API request @client.make_request( diff --git a/lib/getstream_ruby/generated/common_client.rb b/lib/getstream_ruby/generated/common_client.rb index 2a9cc968..09464b6a 100644 --- a/lib/getstream_ruby/generated/common_client.rb +++ b/lib/getstream_ruby/generated/common_client.rb @@ -1022,9 +1022,11 @@ def upsert_push_template(upsert_push_template_request) # @param ios [Boolean] # @param web [Boolean] # @param unity [Boolean] + # @param unity_desktop [Boolean] + # @param unity_console [Boolean] # @param endpoints [String] # @return [Models::GetRateLimitsResponse] - def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unity = nil, endpoints = nil) + def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unity = nil, unity_desktop = nil, unity_console = nil, endpoints = nil) path = '/api/v2/rate_limits' # Build query parameters query_params = {} @@ -1033,6 +1035,8 @@ def get_rate_limits(server_side = nil, android = nil, ios = nil, web = nil, unit query_params['ios'] = ios unless ios.nil? query_params['web'] = web unless web.nil? query_params['unity'] = unity unless unity.nil? + query_params['unity_desktop'] = unity_desktop unless unity_desktop.nil? + query_params['unity_console'] = unity_console unless unity_console.nil? query_params['endpoints'] = endpoints unless endpoints.nil? # Make the API request diff --git a/lib/getstream_ruby/generated/feeds_client.rb b/lib/getstream_ruby/generated/feeds_client.rb index 58d50d55..d7049c96 100644 --- a/lib/getstream_ruby/generated/feeds_client.rb +++ b/lib/getstream_ruby/generated/feeds_client.rb @@ -121,7 +121,7 @@ def query_activities(query_activities_request, language = nil, translate_text = ) end - # Returns a single user's reactions across a set of activity IDs, without activity payloads + # Returns a single user's activity reactions, optionally scoped to a set of activity IDs, without activity payloads # # @param batch_query_activity_reactions_request [BatchQueryActivityReactionsRequest] # @return [Models::BatchQueryActivityReactionsResponse] @@ -776,7 +776,7 @@ def query_comments(query_comments_request, language = nil, translate_text = nil) ) end - # Returns a single user's reactions across a set of comment IDs, without comment payloads + # Returns a single user's comment reactions, optionally scoped to a set of comment IDs, without comment payloads # # @param batch_query_comment_reactions_request [BatchQueryCommentReactionsRequest] # @return [Models::BatchQueryCommentReactionsResponse] @@ -1776,9 +1776,11 @@ def query_feeds(query_feeds_request) # @param ios [Boolean] # @param web [Boolean] # @param unity [Boolean] + # @param unity_desktop [Boolean] + # @param unity_console [Boolean] # @param server_side [Boolean] # @return [Models::GetFeedsRateLimitsResponse] - def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, unity = nil, server_side = nil) + def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, unity = nil, unity_desktop = nil, unity_console = nil, server_side = nil) path = '/api/v2/feeds/feeds/rate_limits' # Build query parameters query_params = {} @@ -1787,6 +1789,8 @@ def get_feeds_rate_limits(endpoints = nil, android = nil, ios = nil, web = nil, query_params['ios'] = ios unless ios.nil? query_params['web'] = web unless web.nil? query_params['unity'] = unity unless unity.nil? + query_params['unity_desktop'] = unity_desktop unless unity_desktop.nil? + query_params['unity_console'] = unity_console unless unity_console.nil? query_params['server_side'] = server_side unless server_side.nil? # Make the API request diff --git a/lib/getstream_ruby/generated/models/activity_marks_config.rb b/lib/getstream_ruby/generated/models/activity_marks_config.rb new file mode 100644 index 00000000..8aee3d4c --- /dev/null +++ b/lib/getstream_ruby/generated/models/activity_marks_config.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class ActivityMarksConfig < GetStream::BaseModel + + # Model attributes + # @!attribute track_read + # @return [Boolean] Whether to return per-activity read status on content feeds + attr_accessor :track_read + # @!attribute track_seen + # @return [Boolean] Whether to return per-activity seen status on content feeds + attr_accessor :track_seen + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @track_read = attributes[:track_read] || attributes['track_read'] || nil + @track_seen = attributes[:track_seen] || attributes['track_seen'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + track_read: 'track_read', + track_seen: 'track_seen' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/activity_processing_config.rb b/lib/getstream_ruby/generated/models/activity_processing_config.rb index b17e67ec..3d74d092 100644 --- a/lib/getstream_ruby/generated/models/activity_processing_config.rb +++ b/lib/getstream_ruby/generated/models/activity_processing_config.rb @@ -9,8 +9,11 @@ module Models class ActivityProcessingConfig < GetStream::BaseModel # Model attributes + # @!attribute send_allowed_tags_to_ai + # @return [Boolean] When true, this feed group's allowed_tags is given to the model as a constrained vocabulary so it maps its own wording onto a configured tag instead of that output being discarded. Improves how often a tag is produced, at the cost of sending the list on every request. Scoped to this group's own list: leaving it false keeps this group's tags out of the request even when another feed group on the same activity sets it true. Requires allowed_tags. Off by default. + attr_accessor :send_allowed_tags_to_ai # @!attribute allowed_tags - # @return [Array] When set, the LLM activity processors may only write interest tags from this list. Tags are matched literally after lower-casing and trimming, so a generic vocabulary matches more often than in-house terms. Mutually exclusive with blocked_tags. + # @return [Array] When set, the LLM activity processors may only write interest tags from this list. By default the model is not told about the list, so a tag is only written when the model happens to produce that exact word after lower-casing and trimming, which for any vocabulary is often not the case; set send_allowed_tags_to_ai to have the model choose from the list instead. Mutually exclusive with blocked_tags. attr_accessor :allowed_tags # @!attribute blocked_tags # @return [Array] Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags. @@ -19,6 +22,7 @@ class ActivityProcessingConfig < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @send_allowed_tags_to_ai = attributes[:send_allowed_tags_to_ai] || attributes['send_allowed_tags_to_ai'] || nil @allowed_tags = attributes[:allowed_tags] || attributes['allowed_tags'] || nil @blocked_tags = attributes[:blocked_tags] || attributes['blocked_tags'] || nil end @@ -26,6 +30,7 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + send_allowed_tags_to_ai: 'send_allowed_tags_to_ai', allowed_tags: 'allowed_tags', blocked_tags: 'blocked_tags' } diff --git a/lib/getstream_ruby/generated/models/activity_selector_config.rb b/lib/getstream_ruby/generated/models/activity_selector_config.rb index 43bd3b5e..d60f3e09 100644 --- a/lib/getstream_ruby/generated/models/activity_selector_config.rb +++ b/lib/getstream_ruby/generated/models/activity_selector_config.rb @@ -24,6 +24,9 @@ class ActivitySelectorConfig < GetStream::BaseModel # @!attribute sort # @return [Array] Sort parameters for activity selection attr_accessor :sort + # @!attribute feed_groups + # @return [FeedGroupScope] + attr_accessor :feed_groups # @!attribute filter # @return [Object] Filter for activity selection attr_accessor :filter @@ -39,6 +42,7 @@ def initialize(attributes = {}) @cutoff_window = attributes[:cutoff_window] || attributes['cutoff_window'] || nil @min_popularity = attributes[:min_popularity] || attributes['min_popularity'] || nil @sort = attributes[:sort] || attributes['sort'] || nil + @feed_groups = attributes[:feed_groups] || attributes['feed_groups'] || nil @filter = attributes[:filter] || attributes['filter'] || nil @params = attributes[:params] || attributes['params'] || nil end @@ -51,6 +55,7 @@ def self.json_field_mappings cutoff_window: 'cutoff_window', min_popularity: 'min_popularity', sort: 'sort', + feed_groups: 'feed_groups', filter: 'filter', params: 'params' } diff --git a/lib/getstream_ruby/generated/models/activity_selector_config_response.rb b/lib/getstream_ruby/generated/models/activity_selector_config_response.rb index a6670824..d270b411 100644 --- a/lib/getstream_ruby/generated/models/activity_selector_config_response.rb +++ b/lib/getstream_ruby/generated/models/activity_selector_config_response.rb @@ -24,6 +24,9 @@ class ActivitySelectorConfigResponse < GetStream::BaseModel # @!attribute sort # @return [Array] Sort parameters for activity selection attr_accessor :sort + # @!attribute feed_groups + # @return [FeedGroupScope] + attr_accessor :feed_groups # @!attribute filter # @return [Object] Filter for activity selection attr_accessor :filter @@ -39,6 +42,7 @@ def initialize(attributes = {}) @cutoff_window = attributes[:cutoff_window] || attributes['cutoff_window'] || nil @min_popularity = attributes[:min_popularity] || attributes['min_popularity'] || nil @sort = attributes[:sort] || attributes['sort'] || nil + @feed_groups = attributes[:feed_groups] || attributes['feed_groups'] || nil @filter = attributes[:filter] || attributes['filter'] || nil @params = attributes[:params] || attributes['params'] || nil end @@ -51,6 +55,7 @@ def self.json_field_mappings cutoff_window: 'cutoff_window', min_popularity: 'min_popularity', sort: 'sort', + feed_groups: 'feed_groups', filter: 'filter', params: 'params' } diff --git a/lib/getstream_ruby/generated/models/async_export_error_event.rb b/lib/getstream_ruby/generated/models/async_export_error_event.rb index 93f60716..1e922a82 100644 --- a/lib/getstream_ruby/generated/models/async_export_error_event.rb +++ b/lib/getstream_ruby/generated/models/async_export_error_event.rb @@ -43,7 +43,7 @@ def initialize(attributes = {}) @started_at = attributes[:started_at] || attributes['started_at'] @task_id = attributes[:task_id] || attributes['task_id'] @custom = attributes[:custom] || attributes['custom'] - @type = attributes[:type] || attributes['type'] || "export.review_queue.error" + @type = attributes[:type] || attributes['type'] || "export.users.error" @received_at = attributes[:received_at] || attributes['received_at'] || nil end diff --git a/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb b/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb index d03c3128..db9ddb76 100644 --- a/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/batch_query_activity_reactions_request.rb @@ -9,9 +9,6 @@ module Models class BatchQueryActivityReactionsRequest < GetStream::BaseModel # Model attributes - # @!attribute activity_ids - # @return [Array] Activity IDs to fetch the user's reactions for (max 100) - attr_accessor :activity_ids # @!attribute limit # @return [Integer] attr_accessor :limit @@ -24,11 +21,14 @@ class BatchQueryActivityReactionsRequest < GetStream::BaseModel # @!attribute user_id # @return [String] Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests attr_accessor :user_id + # @!attribute activity_ids + # @return [Array] Activity IDs to fetch the user's reactions for (max 100). Omit to page over all of the user's activity reactions + attr_accessor :activity_ids # @!attribute sort # @return [Array] attr_accessor :sort # @!attribute filter - # @return [Object] Optional filter on reaction_type or created_at + # @return [Object] Optional filter on reaction_type or created_at. To restrict by activity, prefer activity_ids over filter.activity_id: activity_ids is capped at 100 and served by the per-activity index, and filter.activity_id is rejected when activity_ids is omitted attr_accessor :filter # @!attribute user # @return [UserRequest] User request object @@ -37,11 +37,11 @@ class BatchQueryActivityReactionsRequest < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @activity_ids = attributes[:activity_ids] || attributes['activity_ids'] @limit = attributes[:limit] || attributes['limit'] || nil @next = attributes[:next] || attributes['next'] || nil @prev = attributes[:prev] || attributes['prev'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil + @activity_ids = attributes[:activity_ids] || attributes['activity_ids'] || nil @sort = attributes[:sort] || attributes['sort'] || nil @filter = attributes[:filter] || attributes['filter'] || nil @user = attributes[:user] || attributes['user'] || nil @@ -50,11 +50,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - activity_ids: 'activity_ids', limit: 'limit', next: 'next', prev: 'prev', user_id: 'user_id', + activity_ids: 'activity_ids', sort: 'sort', filter: 'filter', user: 'user' diff --git a/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb b/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb index 30284a59..745446ae 100644 --- a/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb +++ b/lib/getstream_ruby/generated/models/batch_query_comment_reactions_request.rb @@ -9,9 +9,6 @@ module Models class BatchQueryCommentReactionsRequest < GetStream::BaseModel # Model attributes - # @!attribute comment_ids - # @return [Array] Comment IDs to fetch the user's reactions for (max 100) - attr_accessor :comment_ids # @!attribute limit # @return [Integer] attr_accessor :limit @@ -24,11 +21,14 @@ class BatchQueryCommentReactionsRequest < GetStream::BaseModel # @!attribute user_id # @return [String] Server-side only. The user whose reactions to fetch; defaults to the authenticated user for client-side requests attr_accessor :user_id + # @!attribute comment_ids + # @return [Array] Comment IDs to fetch the user's reactions for (max 100). Omit to page over all of the user's comment reactions + attr_accessor :comment_ids # @!attribute sort # @return [Array] attr_accessor :sort # @!attribute filter - # @return [Object] Optional filter on reaction_type or created_at + # @return [Object] Optional filter on reaction_type or created_at. To restrict by comment, prefer comment_ids over filter.comment_id: comment_ids is capped at 100 and served by the per-comment index, and filter.comment_id is rejected when comment_ids is omitted attr_accessor :filter # @!attribute user # @return [UserRequest] User request object @@ -37,11 +37,11 @@ class BatchQueryCommentReactionsRequest < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @comment_ids = attributes[:comment_ids] || attributes['comment_ids'] @limit = attributes[:limit] || attributes['limit'] || nil @next = attributes[:next] || attributes['next'] || nil @prev = attributes[:prev] || attributes['prev'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil + @comment_ids = attributes[:comment_ids] || attributes['comment_ids'] || nil @sort = attributes[:sort] || attributes['sort'] || nil @filter = attributes[:filter] || attributes['filter'] || nil @user = attributes[:user] || attributes['user'] || nil @@ -50,11 +50,11 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { - comment_ids: 'comment_ids', limit: 'limit', next: 'next', prev: 'prev', user_id: 'user_id', + comment_ids: 'comment_ids', sort: 'sort', filter: 'filter', user: 'user' diff --git a/lib/getstream_ruby/generated/models/create_feed_group_request.rb b/lib/getstream_ruby/generated/models/create_feed_group_request.rb index 40e427a9..92e8ccb8 100644 --- a/lib/getstream_ruby/generated/models/create_feed_group_request.rb +++ b/lib/getstream_ruby/generated/models/create_feed_group_request.rb @@ -27,6 +27,9 @@ class CreateFeedGroupRequest < GetStream::BaseModel # @!attribute activity_filter # @return [ActivityFilterConfig] attr_accessor :activity_filter + # @!attribute activity_marks + # @return [ActivityMarksConfig] + attr_accessor :activity_marks # @!attribute activity_processing # @return [ActivityProcessingConfig] attr_accessor :activity_processing @@ -58,6 +61,7 @@ def initialize(attributes = {}) @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil + @activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @@ -76,6 +80,7 @@ def self.json_field_mappings activity_processors: 'activity_processors', activity_selectors: 'activity_selectors', activity_filter: 'activity_filter', + activity_marks: 'activity_marks', activity_processing: 'activity_processing', aggregation: 'aggregation', custom: 'custom', diff --git a/lib/getstream_ruby/generated/models/delete_channels_request.rb b/lib/getstream_ruby/generated/models/delete_channels_request.rb index a2760825..0efc7f16 100644 --- a/lib/getstream_ruby/generated/models/delete_channels_request.rb +++ b/lib/getstream_ruby/generated/models/delete_channels_request.rb @@ -13,21 +13,26 @@ class DeleteChannelsRequest < GetStream::BaseModel # @return [Array] All channels that should be deleted attr_accessor :cids # @!attribute hard_delete - # @return [Boolean] Specify if channels and all ressources should be hard deleted + # @return [Boolean] Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted. attr_accessor :hard_delete + # @!attribute skip_truncate + # @return [Boolean] Server-side only. When true, the soft delete preserves message history instead of hiding it, so a later recreation of any of these channel IDs restores the full history. Only supported for distinct channels. Cannot be combined with hard_delete. + attr_accessor :skip_truncate # Initialize with attributes def initialize(attributes = {}) super(attributes) @cids = attributes[:cids] || attributes['cids'] @hard_delete = attributes[:hard_delete] || attributes['hard_delete'] || nil + @skip_truncate = attributes[:skip_truncate] || attributes['skip_truncate'] || nil end # Override field mappings for JSON serialization def self.json_field_mappings { cids: 'cids', - hard_delete: 'hard_delete' + hard_delete: 'hard_delete', + skip_truncate: 'skip_truncate' } end end diff --git a/lib/getstream_ruby/generated/models/feed_group_response.rb b/lib/getstream_ruby/generated/models/feed_group_response.rb index a68f7314..1ce21846 100644 --- a/lib/getstream_ruby/generated/models/feed_group_response.rb +++ b/lib/getstream_ruby/generated/models/feed_group_response.rb @@ -36,6 +36,9 @@ class FeedGroupResponse < GetStream::BaseModel # @!attribute activity_filter # @return [ActivityFilterConfig] attr_accessor :activity_filter + # @!attribute activity_marks + # @return [ActivityMarksConfig] + attr_accessor :activity_marks # @!attribute activity_processing # @return [ActivityProcessingConfig] attr_accessor :activity_processing @@ -70,6 +73,7 @@ def initialize(attributes = {}) @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil + @activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @@ -91,6 +95,7 @@ def self.json_field_mappings activity_processors: 'activity_processors', activity_selectors: 'activity_selectors', activity_filter: 'activity_filter', + activity_marks: 'activity_marks', activity_processing: 'activity_processing', aggregation: 'aggregation', custom: 'custom', diff --git a/lib/getstream_ruby/generated/models/feed_group_scope.rb b/lib/getstream_ruby/generated/models/feed_group_scope.rb new file mode 100644 index 00000000..19848e96 --- /dev/null +++ b/lib/getstream_ruby/generated/models/feed_group_scope.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class FeedGroupScope < GetStream::BaseModel + + # Model attributes + # @!attribute exclude + # @return [Array] Select activities from every feed group except these. An activity cross-posted to an excluded and a non-excluded group is still selected. Mutually exclusive with include + attr_accessor :exclude + # @!attribute include + # @return [Array] Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude + attr_accessor :include + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @exclude = attributes[:exclude] || attributes['exclude'] || nil + @include = attributes[:include] || attributes['include'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + exclude: 'exclude', + include: 'include' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb b/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb index 37ba6c93..b86cff62 100644 --- a/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb +++ b/lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb @@ -24,6 +24,12 @@ class GetFeedsRateLimitsResponse < GetStream::BaseModel # @!attribute unity # @return [Hash] Rate limits for Unity platform (endpoint name -> limit info) attr_accessor :unity + # @!attribute unity_console + # @return [Hash] Rate limits for Unity console platform (endpoint name -> limit info) + attr_accessor :unity_console + # @!attribute unity_desktop + # @return [Hash] Rate limits for Unity desktop platform (endpoint name -> limit info) + attr_accessor :unity_desktop # @!attribute web # @return [Hash] Rate limits for Web platform (endpoint name -> limit info) attr_accessor :web @@ -36,6 +42,8 @@ def initialize(attributes = {}) @ios = attributes[:ios] || attributes['ios'] || nil @server_side = attributes[:server_side] || attributes['server_side'] || nil @unity = attributes[:unity] || attributes['unity'] || nil + @unity_console = attributes[:unity_console] || attributes['unity_console'] || nil + @unity_desktop = attributes[:unity_desktop] || attributes['unity_desktop'] || nil @web = attributes[:web] || attributes['web'] || nil end @@ -47,6 +55,8 @@ def self.json_field_mappings ios: 'ios', server_side: 'server_side', unity: 'unity', + unity_console: 'unity_console', + unity_desktop: 'unity_desktop', web: 'web' } end diff --git a/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb b/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb index 9a313b72..17f9a2ea 100644 --- a/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb +++ b/lib/getstream_ruby/generated/models/get_or_create_feed_group_request.rb @@ -24,6 +24,9 @@ class GetOrCreateFeedGroupRequest < GetStream::BaseModel # @!attribute activity_filter # @return [ActivityFilterConfig] attr_accessor :activity_filter + # @!attribute activity_marks + # @return [ActivityMarksConfig] + attr_accessor :activity_marks # @!attribute activity_processing # @return [ActivityProcessingConfig] attr_accessor :activity_processing @@ -54,6 +57,7 @@ def initialize(attributes = {}) @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil + @activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @@ -71,6 +75,7 @@ def self.json_field_mappings activity_processors: 'activity_processors', activity_selectors: 'activity_selectors', activity_filter: 'activity_filter', + activity_marks: 'activity_marks', activity_processing: 'activity_processing', aggregation: 'aggregation', custom: 'custom', diff --git a/lib/getstream_ruby/generated/models/get_rate_limits_response.rb b/lib/getstream_ruby/generated/models/get_rate_limits_response.rb index c9a67622..c763c202 100644 --- a/lib/getstream_ruby/generated/models/get_rate_limits_response.rb +++ b/lib/getstream_ruby/generated/models/get_rate_limits_response.rb @@ -24,6 +24,12 @@ class GetRateLimitsResponse < GetStream::BaseModel # @!attribute unity # @return [Hash] Map of endpoint rate limits for the Unity platform attr_accessor :unity + # @!attribute unity_console + # @return [Hash] Map of endpoint rate limits for the Unity console platform + attr_accessor :unity_console + # @!attribute unity_desktop + # @return [Hash] Map of endpoint rate limits for the Unity desktop platform + attr_accessor :unity_desktop # @!attribute web # @return [Hash] Map of endpoint rate limits for the web platform attr_accessor :web @@ -36,6 +42,8 @@ def initialize(attributes = {}) @ios = attributes[:ios] || attributes['ios'] || nil @server_side = attributes[:server_side] || attributes['server_side'] || nil @unity = attributes[:unity] || attributes['unity'] || nil + @unity_console = attributes[:unity_console] || attributes['unity_console'] || nil + @unity_desktop = attributes[:unity_desktop] || attributes['unity_desktop'] || nil @web = attributes[:web] || attributes['web'] || nil end @@ -47,6 +55,8 @@ def self.json_field_mappings ios: 'ios', server_side: 'server_side', unity: 'unity', + unity_console: 'unity_console', + unity_desktop: 'unity_desktop', web: 'web' } end diff --git a/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb b/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb index 0ad71327..6bdf1215 100644 --- a/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb +++ b/lib/getstream_ruby/generated/models/moderation_dashboard_preferences.rb @@ -24,6 +24,9 @@ class ModerationDashboardPreferences < GetStream::BaseModel # @!attribute disable_flagging_reviewed_entity # @return [Boolean] attr_accessor :disable_flagging_reviewed_entity + # @!attribute enforce_shadow_server_side + # @return [Boolean] + attr_accessor :enforce_shadow_server_side # @!attribute escalation_queue_enabled # @return [Boolean] attr_accessor :escalation_queue_enabled @@ -60,6 +63,7 @@ def initialize(attributes = {}) @custom_views_enabled = attributes[:custom_views_enabled] || attributes['custom_views_enabled'] || nil @disable_audit_logs = attributes[:disable_audit_logs] || attributes['disable_audit_logs'] || nil @disable_flagging_reviewed_entity = attributes[:disable_flagging_reviewed_entity] || attributes['disable_flagging_reviewed_entity'] || nil + @enforce_shadow_server_side = attributes[:enforce_shadow_server_side] || attributes['enforce_shadow_server_side'] || nil @escalation_queue_enabled = attributes[:escalation_queue_enabled] || attributes['escalation_queue_enabled'] || nil @flag_user_on_flagged_content = attributes[:flag_user_on_flagged_content] || attributes['flag_user_on_flagged_content'] || nil @include_attachment_payload = attributes[:include_attachment_payload] || attributes['include_attachment_payload'] || nil @@ -79,6 +83,7 @@ def self.json_field_mappings custom_views_enabled: 'custom_views_enabled', disable_audit_logs: 'disable_audit_logs', disable_flagging_reviewed_entity: 'disable_flagging_reviewed_entity', + enforce_shadow_server_side: 'enforce_shadow_server_side', escalation_queue_enabled: 'escalation_queue_enabled', flag_user_on_flagged_content: 'flag_user_on_flagged_content', include_attachment_payload: 'include_attachment_payload', diff --git a/lib/getstream_ruby/generated/models/pagination_params.rb b/lib/getstream_ruby/generated/models/pagination_params.rb index 7859b573..a41c8e5a 100644 --- a/lib/getstream_ruby/generated/models/pagination_params.rb +++ b/lib/getstream_ruby/generated/models/pagination_params.rb @@ -9,6 +9,18 @@ module Models class PaginationParams < GetStream::BaseModel # Model attributes + # @!attribute id_gt + # @return [Integer] + attr_accessor :id_gt + # @!attribute id_gte + # @return [Integer] + attr_accessor :id_gte + # @!attribute id_lt + # @return [Integer] + attr_accessor :id_lt + # @!attribute id_lte + # @return [Integer] + attr_accessor :id_lte # @!attribute limit # @return [Integer] attr_accessor :limit @@ -19,6 +31,10 @@ class PaginationParams < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @id_gt = attributes[:id_gt] || attributes['id_gt'] || nil + @id_gte = attributes[:id_gte] || attributes['id_gte'] || nil + @id_lt = attributes[:id_lt] || attributes['id_lt'] || nil + @id_lte = attributes[:id_lte] || attributes['id_lte'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @offset = attributes[:offset] || attributes['offset'] || nil end @@ -26,6 +42,10 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + id_gt: 'id_gt', + id_gte: 'id_gte', + id_lt: 'id_lt', + id_lte: 'id_lte', limit: 'limit', offset: 'offset' } diff --git a/lib/getstream_ruby/generated/models/query_banned_users_payload.rb b/lib/getstream_ruby/generated/models/query_banned_users_payload.rb index 2dded369..2afebac3 100644 --- a/lib/getstream_ruby/generated/models/query_banned_users_payload.rb +++ b/lib/getstream_ruby/generated/models/query_banned_users_payload.rb @@ -12,6 +12,18 @@ class QueryBannedUsersPayload < GetStream::BaseModel # @!attribute filter_conditions # @return [Object] Filter conditions to apply to the query attr_accessor :filter_conditions + # @!attribute created_at_after + # @return [DateTime] + attr_accessor :created_at_after + # @!attribute created_at_after_or_equal + # @return [DateTime] + attr_accessor :created_at_after_or_equal + # @!attribute created_at_before + # @return [DateTime] + attr_accessor :created_at_before + # @!attribute created_at_before_or_equal + # @return [DateTime] + attr_accessor :created_at_before_or_equal # @!attribute exclude_expired_bans # @return [Boolean] Whether to exclude expired bans or not attr_accessor :exclude_expired_bans @@ -35,6 +47,10 @@ class QueryBannedUsersPayload < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] + @created_at_after = attributes[:created_at_after] || attributes['created_at_after'] || nil + @created_at_after_or_equal = attributes[:created_at_after_or_equal] || attributes['created_at_after_or_equal'] || nil + @created_at_before = attributes[:created_at_before] || attributes['created_at_before'] || nil + @created_at_before_or_equal = attributes[:created_at_before_or_equal] || attributes['created_at_before_or_equal'] || nil @exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @offset = attributes[:offset] || attributes['offset'] || nil @@ -47,6 +63,10 @@ def initialize(attributes = {}) def self.json_field_mappings { filter_conditions: 'filter_conditions', + created_at_after: 'created_at_after', + created_at_after_or_equal: 'created_at_after_or_equal', + created_at_before: 'created_at_before', + created_at_before_or_equal: 'created_at_before_or_equal', exclude_expired_bans: 'exclude_expired_bans', limit: 'limit', offset: 'offset', diff --git a/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb b/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb index 67d1abce..91f9b074 100644 --- a/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb +++ b/lib/getstream_ruby/generated/models/query_future_channel_bans_payload.rb @@ -9,6 +9,18 @@ module Models class QueryFutureChannelBansPayload < GetStream::BaseModel # Model attributes + # @!attribute created_at_after + # @return [DateTime] + attr_accessor :created_at_after + # @!attribute created_at_after_or_equal + # @return [DateTime] + attr_accessor :created_at_after_or_equal + # @!attribute created_at_before + # @return [DateTime] + attr_accessor :created_at_before + # @!attribute created_at_before_or_equal + # @return [DateTime] + attr_accessor :created_at_before_or_equal # @!attribute exclude_expired_bans # @return [Boolean] Whether to exclude expired bans or not attr_accessor :exclude_expired_bans @@ -34,6 +46,10 @@ class QueryFutureChannelBansPayload < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @created_at_after = attributes[:created_at_after] || attributes['created_at_after'] || nil + @created_at_after_or_equal = attributes[:created_at_after_or_equal] || attributes['created_at_after_or_equal'] || nil + @created_at_before = attributes[:created_at_before] || attributes['created_at_before'] || nil + @created_at_before_or_equal = attributes[:created_at_before_or_equal] || attributes['created_at_before_or_equal'] || nil @exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil @include_total = attributes[:include_total] || attributes['include_total'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @@ -46,6 +62,10 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + created_at_after: 'created_at_after', + created_at_after_or_equal: 'created_at_after_or_equal', + created_at_before: 'created_at_before', + created_at_before_or_equal: 'created_at_before_or_equal', exclude_expired_bans: 'exclude_expired_bans', include_total: 'include_total', limit: 'limit', diff --git a/lib/getstream_ruby/generated/models/query_members_payload.rb b/lib/getstream_ruby/generated/models/query_members_payload.rb index 90f6b731..50637c75 100644 --- a/lib/getstream_ruby/generated/models/query_members_payload.rb +++ b/lib/getstream_ruby/generated/models/query_members_payload.rb @@ -12,6 +12,18 @@ class QueryMembersPayload < GetStream::BaseModel # @!attribute type # @return [String] attr_accessor :type + # @!attribute created_at_after + # @return [DateTime] + attr_accessor :created_at_after + # @!attribute created_at_after_or_equal + # @return [DateTime] + attr_accessor :created_at_after_or_equal + # @!attribute created_at_before + # @return [DateTime] + attr_accessor :created_at_before + # @!attribute created_at_before_or_equal + # @return [DateTime] + attr_accessor :created_at_before_or_equal # @!attribute id # @return [String] attr_accessor :id @@ -24,6 +36,18 @@ class QueryMembersPayload < GetStream::BaseModel # @!attribute user_id # @return [String] attr_accessor :user_id + # @!attribute user_id_gt + # @return [String] + attr_accessor :user_id_gt + # @!attribute user_id_gte + # @return [String] + attr_accessor :user_id_gte + # @!attribute user_id_lt + # @return [String] + attr_accessor :user_id_lt + # @!attribute user_id_lte + # @return [String] + attr_accessor :user_id_lte # @!attribute members # @return [Array] attr_accessor :members @@ -41,10 +65,18 @@ class QueryMembersPayload < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @type = attributes[:type] || attributes['type'] + @created_at_after = attributes[:created_at_after] || attributes['created_at_after'] || nil + @created_at_after_or_equal = attributes[:created_at_after_or_equal] || attributes['created_at_after_or_equal'] || nil + @created_at_before = attributes[:created_at_before] || attributes['created_at_before'] || nil + @created_at_before_or_equal = attributes[:created_at_before_or_equal] || attributes['created_at_before_or_equal'] || nil @id = attributes[:id] || attributes['id'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @offset = attributes[:offset] || attributes['offset'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil + @user_id_gt = attributes[:user_id_gt] || attributes['user_id_gt'] || nil + @user_id_gte = attributes[:user_id_gte] || attributes['user_id_gte'] || nil + @user_id_lt = attributes[:user_id_lt] || attributes['user_id_lt'] || nil + @user_id_lte = attributes[:user_id_lte] || attributes['user_id_lte'] || nil @members = attributes[:members] || attributes['members'] || nil @sort = attributes[:sort] || attributes['sort'] || nil @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] || nil @@ -55,10 +87,18 @@ def initialize(attributes = {}) def self.json_field_mappings { type: 'type', + created_at_after: 'created_at_after', + created_at_after_or_equal: 'created_at_after_or_equal', + created_at_before: 'created_at_before', + created_at_before_or_equal: 'created_at_before_or_equal', id: 'id', limit: 'limit', offset: 'offset', user_id: 'user_id', + user_id_gt: 'user_id_gt', + user_id_gte: 'user_id_gte', + user_id_lt: 'user_id_lt', + user_id_lte: 'user_id_lte', members: 'members', sort: 'sort', filter_conditions: 'filter_conditions', diff --git a/lib/getstream_ruby/generated/models/query_users_payload.rb b/lib/getstream_ruby/generated/models/query_users_payload.rb index 8feecbc5..1cdd333e 100644 --- a/lib/getstream_ruby/generated/models/query_users_payload.rb +++ b/lib/getstream_ruby/generated/models/query_users_payload.rb @@ -12,6 +12,18 @@ class QueryUsersPayload < GetStream::BaseModel # @!attribute filter_conditions # @return [Object] Filter conditions to apply to the query attr_accessor :filter_conditions + # @!attribute id_gt + # @return [String] + attr_accessor :id_gt + # @!attribute id_gte + # @return [String] + attr_accessor :id_gte + # @!attribute id_lt + # @return [String] + attr_accessor :id_lt + # @!attribute id_lte + # @return [String] + attr_accessor :id_lte # @!attribute include_deactivated_users # @return [Boolean] attr_accessor :include_deactivated_users @@ -38,6 +50,10 @@ class QueryUsersPayload < GetStream::BaseModel def initialize(attributes = {}) super(attributes) @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions'] + @id_gt = attributes[:id_gt] || attributes['id_gt'] || nil + @id_gte = attributes[:id_gte] || attributes['id_gte'] || nil + @id_lt = attributes[:id_lt] || attributes['id_lt'] || nil + @id_lte = attributes[:id_lte] || attributes['id_lte'] || nil @include_deactivated_users = attributes[:include_deactivated_users] || attributes['include_deactivated_users'] || nil @limit = attributes[:limit] || attributes['limit'] || nil @offset = attributes[:offset] || attributes['offset'] || nil @@ -51,6 +67,10 @@ def initialize(attributes = {}) def self.json_field_mappings { filter_conditions: 'filter_conditions', + id_gt: 'id_gt', + id_gte: 'id_gte', + id_lt: 'id_lt', + id_lte: 'id_lte', include_deactivated_users: 'include_deactivated_users', limit: 'limit', offset: 'offset', diff --git a/lib/getstream_ruby/generated/models/rule_builder_condition.rb b/lib/getstream_ruby/generated/models/rule_builder_condition.rb index 4ee0d92f..54ab4692 100644 --- a/lib/getstream_ruby/generated/models/rule_builder_condition.rb +++ b/lib/getstream_ruby/generated/models/rule_builder_condition.rb @@ -87,6 +87,9 @@ class RuleBuilderCondition < GetStream::BaseModel # @!attribute user_identical_content_count_params # @return [UserIdenticalContentCountParameters] attr_accessor :user_identical_content_count_params + # @!attribute user_reaction_count_params + # @return [UserReactionCountRuleParameters] + attr_accessor :user_reaction_count_params # @!attribute user_role_params # @return [UserRoleParameters] attr_accessor :user_role_params @@ -129,6 +132,7 @@ def initialize(attributes = {}) @user_custom_property_params = attributes[:user_custom_property_params] || attributes['user_custom_property_params'] || nil @user_flag_count_rule_params = attributes[:user_flag_count_rule_params] || attributes['user_flag_count_rule_params'] || nil @user_identical_content_count_params = attributes[:user_identical_content_count_params] || attributes['user_identical_content_count_params'] || nil + @user_reaction_count_params = attributes[:user_reaction_count_params] || attributes['user_reaction_count_params'] || nil @user_role_params = attributes[:user_role_params] || attributes['user_role_params'] || nil @user_rule_params = attributes[:user_rule_params] || attributes['user_rule_params'] || nil @video_content_params = attributes[:video_content_params] || attributes['video_content_params'] || nil @@ -164,6 +168,7 @@ def self.json_field_mappings user_custom_property_params: 'user_custom_property_params', user_flag_count_rule_params: 'user_flag_count_rule_params', user_identical_content_count_params: 'user_identical_content_count_params', + user_reaction_count_params: 'user_reaction_count_params', user_role_params: 'user_role_params', user_rule_params: 'user_rule_params', video_content_params: 'video_content_params', diff --git a/lib/getstream_ruby/generated/models/run_stats.rb b/lib/getstream_ruby/generated/models/run_stats.rb index a5fda1fa..5e4b2387 100644 --- a/lib/getstream_ruby/generated/models/run_stats.rb +++ b/lib/getstream_ruby/generated/models/run_stats.rb @@ -9,6 +9,9 @@ module Models class RunStats < GetStream::BaseModel # Model attributes + # @!attribute activities_deleted + # @return [Integer] + attr_accessor :activities_deleted # @!attribute channels_deleted # @return [Integer] attr_accessor :channels_deleted @@ -19,6 +22,7 @@ class RunStats < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) + @activities_deleted = attributes[:activities_deleted] || attributes['activities_deleted'] || nil @channels_deleted = attributes[:channels_deleted] || attributes['channels_deleted'] || nil @messages_deleted = attributes[:messages_deleted] || attributes['messages_deleted'] || nil end @@ -26,6 +30,7 @@ def initialize(attributes = {}) # Override field mappings for JSON serialization def self.json_field_mappings { + activities_deleted: 'activities_deleted', channels_deleted: 'channels_deleted', messages_deleted: 'messages_deleted' } diff --git a/lib/getstream_ruby/generated/models/stop_campaign_response.rb b/lib/getstream_ruby/generated/models/stop_campaign_response.rb new file mode 100644 index 00000000..e162968e --- /dev/null +++ b/lib/getstream_ruby/generated/models/stop_campaign_response.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class StopCampaignResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute campaign + # @return [CampaignResponse] + attr_accessor :campaign + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @campaign = attributes[:campaign] || attributes['campaign'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + campaign: 'campaign' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/update_campaign_response.rb b/lib/getstream_ruby/generated/models/update_campaign_response.rb new file mode 100644 index 00000000..654b9d87 --- /dev/null +++ b/lib/getstream_ruby/generated/models/update_campaign_response.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # Basic response information + class UpdateCampaignResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute campaign + # @return [CampaignResponse] + attr_accessor :campaign + # @!attribute users + # @return [PagerResponse] + attr_accessor :users + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @campaign = attributes[:campaign] || attributes['campaign'] || nil + @users = attributes[:users] || attributes['users'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + campaign: 'campaign', + users: 'users' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/update_channel_type_request.rb b/lib/getstream_ruby/generated/models/update_channel_type_request.rb index d8c19503..f11971ae 100644 --- a/lib/getstream_ruby/generated/models/update_channel_type_request.rb +++ b/lib/getstream_ruby/generated/models/update_channel_type_request.rb @@ -15,9 +15,6 @@ class UpdateChannelTypeRequest < GetStream::BaseModel # @!attribute automod_behavior # @return [String] attr_accessor :automod_behavior - # @!attribute max_message_length - # @return [Integer] - attr_accessor :max_message_length # @!attribute blocklist # @return [String] attr_accessor :blocklist @@ -39,6 +36,9 @@ class UpdateChannelTypeRequest < GetStream::BaseModel # @!attribute mark_messages_pending # @return [Boolean] attr_accessor :mark_messages_pending + # @!attribute max_message_length + # @return [Integer] + attr_accessor :max_message_length # @!attribute message_retention # @return [String] attr_accessor :message_retention @@ -121,9 +121,8 @@ class UpdateChannelTypeRequest < GetStream::BaseModel # Initialize with attributes def initialize(attributes = {}) super(attributes) - @automod = attributes[:automod] || attributes['automod'] - @automod_behavior = attributes[:automod_behavior] || attributes['automod_behavior'] - @max_message_length = attributes[:max_message_length] || attributes['max_message_length'] + @automod = attributes[:automod] || attributes['automod'] || nil + @automod_behavior = attributes[:automod_behavior] || attributes['automod_behavior'] || nil @blocklist = attributes[:blocklist] || attributes['blocklist'] || nil @blocklist_behavior = attributes[:blocklist_behavior] || attributes['blocklist_behavior'] || nil @connect_events = attributes[:connect_events] || attributes['connect_events'] || nil @@ -131,6 +130,7 @@ def initialize(attributes = {}) @custom_events = attributes[:custom_events] || attributes['custom_events'] || nil @delivery_events = attributes[:delivery_events] || attributes['delivery_events'] || nil @mark_messages_pending = attributes[:mark_messages_pending] || attributes['mark_messages_pending'] || nil + @max_message_length = attributes[:max_message_length] || attributes['max_message_length'] || nil @message_retention = attributes[:message_retention] || attributes['message_retention'] || nil @mutes = attributes[:mutes] || attributes['mutes'] || nil @partition_size = attributes[:partition_size] || attributes['partition_size'] || nil @@ -164,7 +164,6 @@ def self.json_field_mappings { automod: 'automod', automod_behavior: 'automod_behavior', - max_message_length: 'max_message_length', blocklist: 'blocklist', blocklist_behavior: 'blocklist_behavior', connect_events: 'connect_events', @@ -172,6 +171,7 @@ def self.json_field_mappings custom_events: 'custom_events', delivery_events: 'delivery_events', mark_messages_pending: 'mark_messages_pending', + max_message_length: 'max_message_length', message_retention: 'message_retention', mutes: 'mutes', partition_size: 'partition_size', diff --git a/lib/getstream_ruby/generated/models/update_feed_group_request.rb b/lib/getstream_ruby/generated/models/update_feed_group_request.rb index e88e1c40..74a5fb16 100644 --- a/lib/getstream_ruby/generated/models/update_feed_group_request.rb +++ b/lib/getstream_ruby/generated/models/update_feed_group_request.rb @@ -24,6 +24,9 @@ class UpdateFeedGroupRequest < GetStream::BaseModel # @!attribute activity_filter # @return [ActivityFilterConfig] attr_accessor :activity_filter + # @!attribute activity_marks + # @return [ActivityMarksConfig] + attr_accessor :activity_marks # @!attribute activity_processing # @return [ActivityProcessingConfig] attr_accessor :activity_processing @@ -54,6 +57,7 @@ def initialize(attributes = {}) @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil @activity_filter = attributes[:activity_filter] || attributes['activity_filter'] || nil + @activity_marks = attributes[:activity_marks] || attributes['activity_marks'] || nil @activity_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @@ -71,6 +75,7 @@ def self.json_field_mappings activity_processors: 'activity_processors', activity_selectors: 'activity_selectors', activity_filter: 'activity_filter', + activity_marks: 'activity_marks', activity_processing: 'activity_processing', aggregation: 'aggregation', custom: 'custom', diff --git a/lib/getstream_ruby/generated/models/update_users_response.rb b/lib/getstream_ruby/generated/models/update_users_response.rb index 815dbf3c..83989fc5 100644 --- a/lib/getstream_ruby/generated/models/update_users_response.rb +++ b/lib/getstream_ruby/generated/models/update_users_response.rb @@ -13,7 +13,8 @@ class UpdateUsersResponse < GetStream::BaseModel # @return [String] Duration of the request in milliseconds attr_accessor :duration # @!attribute membership_deletion_task_id - # @return [String] + # @deprecated This field is deprecated. + # @return [String] Deprecated: always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll attr_accessor :membership_deletion_task_id # @!attribute users # @return [Hash] Object containing users diff --git a/lib/getstream_ruby/generated/models/user_reaction_count_rule_parameters.rb b/lib/getstream_ruby/generated/models/user_reaction_count_rule_parameters.rb new file mode 100644 index 00000000..99789a25 --- /dev/null +++ b/lib/getstream_ruby/generated/models/user_reaction_count_rule_parameters.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class UserReactionCountRuleParameters < GetStream::BaseModel + + # Model attributes + # @!attribute threshold + # @return [Integer] + attr_accessor :threshold + # @!attribute time_window + # @return [String] + attr_accessor :time_window + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @threshold = attributes[:threshold] || attributes['threshold'] || nil + @time_window = attributes[:time_window] || attributes['time_window'] || nil + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + threshold: 'threshold', + time_window: 'time_window' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/webhook_failover_config.rb b/lib/getstream_ruby/generated/models/webhook_failover_config.rb index 2c06b475..3e16062f 100644 --- a/lib/getstream_ruby/generated/models/webhook_failover_config.rb +++ b/lib/getstream_ruby/generated/models/webhook_failover_config.rb @@ -18,6 +18,24 @@ class WebhookFailoverConfig < GetStream::BaseModel # @!attribute gcs_path # @return [String] attr_accessor :gcs_path + # @!attribute s3_api_key + # @return [String] + attr_accessor :s3_api_key + # @!attribute s3_bucket + # @return [String] + attr_accessor :s3_bucket + # @!attribute s3_path + # @return [String] + attr_accessor :s3_path + # @!attribute s3_region + # @return [String] + attr_accessor :s3_region + # @!attribute s3_role_arn + # @return [String] + attr_accessor :s3_role_arn + # @!attribute s3_secret + # @return [String] + attr_accessor :s3_secret # @!attribute type # @return [String] attr_accessor :type @@ -28,6 +46,12 @@ def initialize(attributes = {}) @gcs_bucket = attributes[:gcs_bucket] || attributes['gcs_bucket'] || nil @gcs_credentials = attributes[:gcs_credentials] || attributes['gcs_credentials'] || nil @gcs_path = attributes[:gcs_path] || attributes['gcs_path'] || nil + @s3_api_key = attributes[:s3_api_key] || attributes['s3_api_key'] || nil + @s3_bucket = attributes[:s3_bucket] || attributes['s3_bucket'] || nil + @s3_path = attributes[:s3_path] || attributes['s3_path'] || nil + @s3_region = attributes[:s3_region] || attributes['s3_region'] || nil + @s3_role_arn = attributes[:s3_role_arn] || attributes['s3_role_arn'] || nil + @s3_secret = attributes[:s3_secret] || attributes['s3_secret'] || nil @type = attributes[:type] || attributes['type'] || nil end @@ -37,6 +61,12 @@ def self.json_field_mappings gcs_bucket: 'gcs_bucket', gcs_credentials: 'gcs_credentials', gcs_path: 'gcs_path', + s3_api_key: 's3_api_key', + s3_bucket: 's3_bucket', + s3_path: 's3_path', + s3_region: 's3_region', + s3_role_arn: 's3_role_arn', + s3_secret: 's3_secret', type: 'type' } end