Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .spec-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
spec: openapi-v241.28.4
generator: chat v241.28.4
spec: openapi-v241.28.5
generator: chat v241.28.5
7 changes: 6 additions & 1 deletion lib/getstream_ruby/generated/models/audience.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class Audience < GetStream::BaseModel
# @!attribute shape
# @return [String]
attr_accessor :shape
# @!attribute concurrency_max_by_5min
# @return [ConcurrencyBuckets]
attr_accessor :concurrency_max_by_5min

# Initialize with attributes
def initialize(attributes = {})
Expand All @@ -57,6 +60,7 @@ def initialize(attributes = {})
@retention_at_90pct_mark = attributes.fetch(:retention_at_90pct_mark) { attributes.fetch('retention_at_90pct_mark', nil) }
@retention_at_midpoint = attributes.fetch(:retention_at_midpoint) { attributes.fetch('retention_at_midpoint', nil) }
@shape = attributes.fetch(:shape) { attributes.fetch('shape', nil) }
@concurrency_max_by_5min = attributes.fetch(:concurrency_max_by_5min) { attributes.fetch('concurrency_max_by_5min', nil) }
end

# Override field mappings for JSON serialization
Expand All @@ -72,7 +76,8 @@ def self.json_field_mappings
ramp_up_min_to_90pct_peak: 'ramp_up_min_to_90pct_peak',
retention_at_90pct_mark: 'retention_at_90pct_mark',
retention_at_midpoint: 'retention_at_midpoint',
shape: 'shape'
shape: 'shape',
concurrency_max_by_5min: 'concurrency_max_by_5min'
}
end
end
Expand Down
31 changes: 31 additions & 0 deletions lib/getstream_ruby/generated/models/auto_translation_config.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
# Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
class AutoTranslationConfig < GetStream::BaseModel

# Model attributes
# @!attribute detect_member_languages
# @return [DetectMemberLanguagesConfig] How auto translation picks target languages from the languages of the channel's members
attr_accessor :detect_member_languages

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@detect_member_languages = attributes.fetch(:detect_member_languages) { attributes.fetch('detect_member_languages', nil) }
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
detect_member_languages: 'detect_member_languages'
}
end
end
end
end
end
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/channel_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class ChannelConfig < GetStream::BaseModel
# @!attribute mark_types
# @return [Array<String>]
attr_accessor :mark_types
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute automod_thresholds
# @return [Thresholds] Sets thresholds for AI moderation
attr_accessor :automod_thresholds
Expand Down Expand Up @@ -167,6 +170,7 @@ def initialize(attributes = {})
@allowed_flag_reasons = attributes.fetch(:allowed_flag_reasons) { attributes.fetch('allowed_flag_reasons', nil) }
@blocklists = attributes.fetch(:blocklists) { attributes.fetch('blocklists', nil) }
@mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
end
Expand Down Expand Up @@ -211,6 +215,7 @@ def self.json_field_mappings
allowed_flag_reasons: 'allowed_flag_reasons',
blocklists: 'blocklists',
mark_types: 'mark_types',
auto_translation: 'auto_translation',
automod_thresholds: 'automod_thresholds',
chat_preferences: 'chat_preferences'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class ChannelConfigOverrides < GetStream::BaseModel
# @!attribute commands
# @return [Array<String>] List of commands that channel supports
attr_accessor :commands
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute chat_preferences
# @return [ChatPreferences]
attr_accessor :chat_preferences
Expand All @@ -79,6 +82,7 @@ def initialize(attributes = {})
@user_message_reminders = attributes.fetch(:user_message_reminders) { attributes.fetch('user_message_reminders', nil) }
@voice_transcription = attributes.fetch(:voice_transcription) { attributes.fetch('voice_transcription', nil) }
@commands = attributes.fetch(:commands) { attributes.fetch('commands', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
@grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) }
end
Expand All @@ -101,6 +105,7 @@ def self.json_field_mappings
user_message_reminders: 'user_message_reminders',
voice_transcription: 'voice_transcription',
commands: 'commands',
auto_translation: 'auto_translation',
chat_preferences: 'chat_preferences',
grants: 'grants'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ class ChannelConfigWithInfo < GetStream::BaseModel
# @!attribute mark_types
# @return [Array<String>]
attr_accessor :mark_types
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute automod_thresholds
# @return [Thresholds] Sets thresholds for AI moderation
attr_accessor :automod_thresholds
Expand Down Expand Up @@ -186,6 +189,7 @@ def initialize(attributes = {})
@allowed_flag_reasons = attributes.fetch(:allowed_flag_reasons) { attributes.fetch('allowed_flag_reasons', nil) }
@blocklists = attributes.fetch(:blocklists) { attributes.fetch('blocklists', nil) }
@mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
@grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) }
Expand Down Expand Up @@ -235,6 +239,7 @@ def self.json_field_mappings
allowed_flag_reasons: 'allowed_flag_reasons',
blocklists: 'blocklists',
mark_types: 'mark_types',
auto_translation: 'auto_translation',
automod_thresholds: 'automod_thresholds',
chat_preferences: 'chat_preferences',
grants: 'grants'
Expand Down
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/channel_type_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ class ChannelTypeConfig < GetStream::BaseModel
# @!attribute mark_types
# @return [Array<String>]
attr_accessor :mark_types
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute automod_thresholds
# @return [Thresholds] Sets thresholds for AI moderation
attr_accessor :automod_thresholds
Expand Down Expand Up @@ -175,6 +178,7 @@ def initialize(attributes = {})
@allowed_flag_reasons = attributes.fetch(:allowed_flag_reasons) { attributes.fetch('allowed_flag_reasons', nil) }
@blocklists = attributes.fetch(:blocklists) { attributes.fetch('blocklists', nil) }
@mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
end
Expand Down Expand Up @@ -221,6 +225,7 @@ def self.json_field_mappings
allowed_flag_reasons: 'allowed_flag_reasons',
blocklists: 'blocklists',
mark_types: 'mark_types',
auto_translation: 'auto_translation',
automod_thresholds: 'automod_thresholds',
chat_preferences: 'chat_preferences'
}
Expand Down
41 changes: 41 additions & 0 deletions lib/getstream_ruby/generated/models/concurrency_buckets.rb
Original file line number Diff line number Diff line change
@@ -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
#
class ConcurrencyBuckets < GetStream::BaseModel

# Model attributes
# @!attribute bucket_minutes
# @return [Integer]
attr_accessor :bucket_minutes
# @!attribute start
# @return [String]
attr_accessor :start
# @!attribute max
# @return [Array<Integer>]
attr_accessor :max

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@bucket_minutes = attributes.fetch(:bucket_minutes) { attributes.fetch('bucket_minutes', nil) }
@start = attributes.fetch(:start) { attributes.fetch('start', nil) }
@max = attributes.fetch(:max) { attributes.fetch('max', nil) }
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
bucket_minutes: 'bucket_minutes',
start: 'start',
max: 'max'
}
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class ConfigOverridesRequest < GetStream::BaseModel
# @!attribute commands
# @return [Array<String>] List of available commands
attr_accessor :commands
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute chat_preferences
# @return [ChatPreferences]
attr_accessor :chat_preferences
Expand All @@ -79,6 +82,7 @@ def initialize(attributes = {})
@user_message_reminders = attributes.fetch(:user_message_reminders) { attributes.fetch('user_message_reminders', nil) }
@voice_transcription = attributes.fetch(:voice_transcription) { attributes.fetch('voice_transcription', nil) }
@commands = attributes.fetch(:commands) { attributes.fetch('commands', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
@grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) }
end
Expand All @@ -101,6 +105,7 @@ def self.json_field_mappings
user_message_reminders: 'user_message_reminders',
voice_transcription: 'voice_transcription',
commands: 'commands',
auto_translation: 'auto_translation',
chat_preferences: 'chat_preferences',
grants: 'grants'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ class CreateChannelTypeRequest < GetStream::BaseModel
# @!attribute permissions
# @return [Array<PolicyRequest>] List of permissions for the channel type
attr_accessor :permissions
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute automod_thresholds
# @return [Thresholds] Sets thresholds for AI moderation
attr_accessor :automod_thresholds
Expand Down Expand Up @@ -162,6 +165,7 @@ def initialize(attributes = {})
@commands = attributes.fetch(:commands) { attributes.fetch('commands', nil) }
@mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
@permissions = attributes.fetch(:permissions) { attributes.fetch('permissions', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
@grants = attributes.fetch(:grants) { attributes.fetch('grants', nil) }
Expand Down Expand Up @@ -205,6 +209,7 @@ def self.json_field_mappings
commands: 'commands',
mark_types: 'mark_types',
permissions: 'permissions',
auto_translation: 'auto_translation',
automod_thresholds: 'automod_thresholds',
chat_preferences: 'chat_preferences',
grants: 'grants'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class CreateChannelTypeResponse < GetStream::BaseModel
# @!attribute mark_types
# @return [Array<String>]
attr_accessor :mark_types
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute automod_thresholds
# @return [Thresholds] Sets thresholds for AI moderation
attr_accessor :automod_thresholds
Expand Down Expand Up @@ -179,6 +182,7 @@ def initialize(attributes = {})
@allowed_flag_reasons = attributes.fetch(:allowed_flag_reasons) { attributes.fetch('allowed_flag_reasons', nil) }
@blocklists = attributes.fetch(:blocklists) { attributes.fetch('blocklists', nil) }
@mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
end
Expand Down Expand Up @@ -226,6 +230,7 @@ def self.json_field_mappings
allowed_flag_reasons: 'allowed_flag_reasons',
blocklists: 'blocklists',
mark_types: 'mark_types',
auto_translation: 'auto_translation',
automod_thresholds: 'automod_thresholds',
chat_preferences: 'chat_preferences'
}
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
# How auto translation picks target languages from the languages of the channel's members
class DetectMemberLanguagesConfig < GetStream::BaseModel

# Model attributes
# @!attribute max_languages
# @return [Integer] Number of most common member languages to translate into, next to the channel's auto_translation_language. The author's language is skipped without picking another. Between 1 and 5, defaults to 2
attr_accessor :max_languages
# @!attribute min_member_share
# @return [Integer] Percentage of all channel members that must have that language set for it to be picked. Between 0 and 100, defaults to 0
attr_accessor :min_member_share

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@max_languages = attributes.fetch(:max_languages) { attributes.fetch('max_languages', nil) }
@min_member_share = attributes.fetch(:min_member_share) { attributes.fetch('min_member_share', nil) }
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
max_languages: 'max_languages',
min_member_share: 'min_member_share'
}
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class GetChannelTypeResponse < GetStream::BaseModel
# @!attribute mark_types
# @return [Array<String>]
attr_accessor :mark_types
# @!attribute auto_translation
# @return [AutoTranslationConfig] Auto translation settings. Unset fields take the default on a channel type and keep the channel type's value in config overrides.
attr_accessor :auto_translation
# @!attribute automod_thresholds
# @return [Thresholds] Sets thresholds for AI moderation
attr_accessor :automod_thresholds
Expand Down Expand Up @@ -179,6 +182,7 @@ def initialize(attributes = {})
@allowed_flag_reasons = attributes.fetch(:allowed_flag_reasons) { attributes.fetch('allowed_flag_reasons', nil) }
@blocklists = attributes.fetch(:blocklists) { attributes.fetch('blocklists', nil) }
@mark_types = attributes.fetch(:mark_types) { attributes.fetch('mark_types', nil) }
@auto_translation = attributes.fetch(:auto_translation) { attributes.fetch('auto_translation', nil) }
@automod_thresholds = attributes.fetch(:automod_thresholds) { attributes.fetch('automod_thresholds', nil) }
@chat_preferences = attributes.fetch(:chat_preferences) { attributes.fetch('chat_preferences', nil) }
end
Expand Down Expand Up @@ -226,6 +230,7 @@ def self.json_field_mappings
allowed_flag_reasons: 'allowed_flag_reasons',
blocklists: 'blocklists',
mark_types: 'mark_types',
auto_translation: 'auto_translation',
automod_thresholds: 'automod_thresholds',
chat_preferences: 'chat_preferences'
}
Expand Down
Loading
Loading