Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/message_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class MessageRequest < GetStream::BaseModel
# @!attribute attachments
# @return [Array<Attachment>] Array of message attachments
attr_accessor :attachments
# @!attribute mentioned_roles
# @return [Array<String>]
attr_accessor :mentioned_roles
# @!attribute mentioned_users
# @return [Array<String>] Array of user IDs to mention
attr_accessor :mentioned_users
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/message_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>] 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<UserResponse>] List of users who participate in thread
attr_accessor :thread_participants
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>] 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<UserResponse>] List of users who participate in thread
attr_accessor :thread_participants
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/rule_builder_condition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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',
Expand Down
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/search_result_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ class SearchResultMessage < GetStream::BaseModel
# @!attribute show_in_channel
# @return [Boolean]
attr_accessor :show_in_channel
# @!attribute mentioned_roles
# @return [Array<String>]
attr_accessor :mentioned_roles
# @!attribute thread_participants
# @return [Array<UserResponse>]
attr_accessor :thread_participants
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
31 changes: 31 additions & 0 deletions lib/getstream_ruby/generated/models/undelete_message_request.rb
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions lib/getstream_ruby/generated/models/undelete_message_response.rb
Original file line number Diff line number Diff line change
@@ -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
Loading