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 e297b0e..1e922a8 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.channels.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/call_violation_count_parameters.rb b/lib/getstream_ruby/generated/models/call_violation_count_parameters.rb new file mode 100644 index 0000000..78350b6 --- /dev/null +++ b/lib/getstream_ruby/generated/models/call_violation_count_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 CallViolationCountParameters < 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/message_request.rb b/lib/getstream_ruby/generated/models/message_request.rb index f2fb16d..a17fb05 100644 --- a/lib/getstream_ruby/generated/models/message_request.rb +++ b/lib/getstream_ruby/generated/models/message_request.rb @@ -60,6 +60,9 @@ class MessageRequest < GetStream::BaseModel # @!attribute attachments # @return [Array] Array of message attachments attr_accessor :attachments + # @!attribute mentioned_roles + # @return [Array] + attr_accessor :mentioned_roles # @!attribute mentioned_users # @return [Array] Array of user IDs to mention attr_accessor :mentioned_users @@ -96,6 +99,7 @@ def initialize(attributes = {}) @type = attributes[:type] || attributes['type'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil + @mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil @mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users'] || nil @restricted_visibility = attributes[:restricted_visibility] || attributes['restricted_visibility'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @@ -123,6 +127,7 @@ def self.json_field_mappings type: 'type', user_id: 'user_id', attachments: 'attachments', + mentioned_roles: 'mentioned_roles', mentioned_users: 'mentioned_users', restricted_visibility: 'restricted_visibility', custom: 'custom', diff --git a/lib/getstream_ruby/generated/models/message_response.rb b/lib/getstream_ruby/generated/models/message_response.rb index a49ba4d..fd34cb4 100644 --- a/lib/getstream_ruby/generated/models/message_response.rb +++ b/lib/getstream_ruby/generated/models/message_response.rb @@ -111,6 +111,9 @@ class MessageResponse < GetStream::BaseModel # @!attribute show_in_channel # @return [Boolean] Whether thread reply should be shown in the channel as well attr_accessor :show_in_channel + # @!attribute mentioned_roles + # @return [Array] List of roles mentioned in the message (e.g. admin, channel_moderator, custom roles). Members with matching roles will receive push notifications based on their push preferences. Max 10 roles + attr_accessor :mentioned_roles # @!attribute thread_participants # @return [Array] List of users who participate in thread attr_accessor :thread_participants @@ -185,6 +188,7 @@ def initialize(attributes = {}) @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil + @mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @draft = attributes[:draft] || attributes['draft'] || nil @i18n = attributes[:i18n] || attributes['i18n'] || nil @@ -236,6 +240,7 @@ def self.json_field_mappings poll_id: 'poll_id', quoted_message_id: 'quoted_message_id', show_in_channel: 'show_in_channel', + mentioned_roles: 'mentioned_roles', thread_participants: 'thread_participants', draft: 'draft', i18n: 'i18n', diff --git a/lib/getstream_ruby/generated/models/message_with_channel_response.rb b/lib/getstream_ruby/generated/models/message_with_channel_response.rb index 99934f0..5400b70 100644 --- a/lib/getstream_ruby/generated/models/message_with_channel_response.rb +++ b/lib/getstream_ruby/generated/models/message_with_channel_response.rb @@ -114,6 +114,9 @@ class MessageWithChannelResponse < GetStream::BaseModel # @!attribute show_in_channel # @return [Boolean] Whether thread reply should be shown in the channel as well attr_accessor :show_in_channel + # @!attribute mentioned_roles + # @return [Array] List of roles mentioned in the message (e.g. admin, channel_moderator, custom roles). Members with matching roles will receive push notifications based on their push preferences. Max 10 roles + attr_accessor :mentioned_roles # @!attribute thread_participants # @return [Array] List of users who participate in thread attr_accessor :thread_participants @@ -189,6 +192,7 @@ def initialize(attributes = {}) @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil + @mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @draft = attributes[:draft] || attributes['draft'] || nil @i18n = attributes[:i18n] || attributes['i18n'] || nil @@ -241,6 +245,7 @@ def self.json_field_mappings poll_id: 'poll_id', quoted_message_id: 'quoted_message_id', show_in_channel: 'show_in_channel', + mentioned_roles: 'mentioned_roles', thread_participants: 'thread_participants', draft: 'draft', i18n: 'i18n', diff --git a/lib/getstream_ruby/generated/models/rule_builder_condition.rb b/lib/getstream_ruby/generated/models/rule_builder_condition.rb index f7b5ed2..16d4739 100644 --- a/lib/getstream_ruby/generated/models/rule_builder_condition.rb +++ b/lib/getstream_ruby/generated/models/rule_builder_condition.rb @@ -21,6 +21,9 @@ class RuleBuilderCondition < GetStream::BaseModel # @!attribute call_type_rule_params # @return [CallTypeRuleParameters] attr_accessor :call_type_rule_params + # @!attribute call_violation_count_params + # @return [CallViolationCountParameters] + attr_accessor :call_violation_count_params # @!attribute closed_caption_rule_params # @return [ClosedCaptionRuleParameters] attr_accessor :closed_caption_rule_params @@ -77,6 +80,7 @@ def initialize(attributes = {}) @type = attributes[:type] || attributes['type'] || nil @call_custom_property_params = attributes[:call_custom_property_params] || attributes['call_custom_property_params'] || nil @call_type_rule_params = attributes[:call_type_rule_params] || attributes['call_type_rule_params'] || nil + @call_violation_count_params = attributes[:call_violation_count_params] || attributes['call_violation_count_params'] || nil @closed_caption_rule_params = attributes[:closed_caption_rule_params] || attributes['closed_caption_rule_params'] || nil @content_count_rule_params = attributes[:content_count_rule_params] || attributes['content_count_rule_params'] || nil @content_flag_count_rule_params = attributes[:content_flag_count_rule_params] || attributes['content_flag_count_rule_params'] || nil @@ -102,6 +106,7 @@ def self.json_field_mappings type: 'type', call_custom_property_params: 'call_custom_property_params', call_type_rule_params: 'call_type_rule_params', + call_violation_count_params: 'call_violation_count_params', closed_caption_rule_params: 'closed_caption_rule_params', content_count_rule_params: 'content_count_rule_params', content_flag_count_rule_params: 'content_flag_count_rule_params', diff --git a/lib/getstream_ruby/generated/models/search_result_message.rb b/lib/getstream_ruby/generated/models/search_result_message.rb index 348034f..c54004c 100644 --- a/lib/getstream_ruby/generated/models/search_result_message.rb +++ b/lib/getstream_ruby/generated/models/search_result_message.rb @@ -111,6 +111,9 @@ class SearchResultMessage < GetStream::BaseModel # @!attribute show_in_channel # @return [Boolean] attr_accessor :show_in_channel + # @!attribute mentioned_roles + # @return [Array] + attr_accessor :mentioned_roles # @!attribute thread_participants # @return [Array] attr_accessor :thread_participants @@ -188,6 +191,7 @@ def initialize(attributes = {}) @poll_id = attributes[:poll_id] || attributes['poll_id'] || nil @quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id'] || nil @show_in_channel = attributes[:show_in_channel] || attributes['show_in_channel'] || nil + @mentioned_roles = attributes[:mentioned_roles] || attributes['mentioned_roles'] || nil @thread_participants = attributes[:thread_participants] || attributes['thread_participants'] || nil @channel = attributes[:channel] || attributes['channel'] || nil @draft = attributes[:draft] || attributes['draft'] || nil @@ -240,6 +244,7 @@ def self.json_field_mappings poll_id: 'poll_id', quoted_message_id: 'quoted_message_id', show_in_channel: 'show_in_channel', + mentioned_roles: 'mentioned_roles', thread_participants: 'thread_participants', channel: 'channel', draft: 'draft', diff --git a/lib/getstream_ruby/generated/models/undelete_message_request.rb b/lib/getstream_ruby/generated/models/undelete_message_request.rb new file mode 100644 index 0000000..bf746b1 --- /dev/null +++ b/lib/getstream_ruby/generated/models/undelete_message_request.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +# Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. + +module GetStream + module Generated + module Models + # + class UndeleteMessageRequest < GetStream::BaseModel + + # Model attributes + # @!attribute undeleted_by + # @return [String] ID of the user who is undeleting the message + attr_accessor :undeleted_by + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @undeleted_by = attributes[:undeleted_by] || attributes['undeleted_by'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + undeleted_by: 'undeleted_by' + } + end + end + end + end +end diff --git a/lib/getstream_ruby/generated/models/undelete_message_response.rb b/lib/getstream_ruby/generated/models/undelete_message_response.rb new file mode 100644 index 0000000..ab348cb --- /dev/null +++ b/lib/getstream_ruby/generated/models/undelete_message_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 UndeleteMessageResponse < GetStream::BaseModel + + # Model attributes + # @!attribute duration + # @return [String] Duration of the request in milliseconds + attr_accessor :duration + # @!attribute message + # @return [MessageResponse] + attr_accessor :message + + # Initialize with attributes + def initialize(attributes = {}) + super(attributes) + @duration = attributes[:duration] || attributes['duration'] + @message = attributes[:message] || attributes['message'] + end + + # Override field mappings for JSON serialization + def self.json_field_mappings + { + duration: 'duration', + message: 'message' + } + end + end + end + end +end