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 lib/getstream_ruby/generated/chat_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ def query_reactions(_id, query_reactions_request)
#
# @param _id [String]
# @param translate_message_request [TranslateMessageRequest]
# @return [Models::MessageActionResponse]
# @return [Models::TranslateMessageResponse]
def translate_message(_id, translate_message_request)
path = '/api/v2/chat/messages/{id}/translate'
# Replace path parameters
Expand Down Expand Up @@ -1398,7 +1398,7 @@ def update_reminder(message_id, update_reminder_request)
#
# @param message_id [String]
# @param create_reminder_request [CreateReminderRequest]
# @return [Models::ReminderResponseData]
# @return [Models::CreateReminderResponse]
def create_reminder(message_id, create_reminder_request)
path = '/api/v2/chat/messages/{message_id}/reminders'
# Replace path parameters
Expand Down
4 changes: 2 additions & 2 deletions lib/getstream_ruby/generated/feeds_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ def update_feed_group(_id, update_feed_group_request)
)
end

# List all feed views for a feed group
# List persisted feed views for the application.
#
# @return [Models::ListFeedViewsResponse]
def list_feed_views()
Expand Down Expand Up @@ -1831,7 +1831,7 @@ def follow(follow_request)
)
end

# Accepts a pending follow request
# Accepts a pending follow request. Follower role can only be set via server-side requests.
#
# @param accept_follow_request [AcceptFollowRequest]
# @return [Models::AcceptFollowResponse]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AcceptFollowRequest < GetStream::BaseModel
# @return [String] Fully qualified ID of the target feed
attr_accessor :target
# @!attribute follower_role
# @return [String] Optional role for the follower in the follow relationship
# @return [String] Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
attr_accessor :follower_role

# Initialize with attributes
Expand Down
36 changes: 36 additions & 0 deletions lib/getstream_ruby/generated/models/activity_processing_config.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
#
class ActivityProcessingConfig < GetStream::BaseModel

# Model attributes
# @!attribute allowed_tags
# @return [Array<String>] 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.
attr_accessor :allowed_tags
# @!attribute blocked_tags
# @return [Array<String>] Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
attr_accessor :blocked_tags

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@allowed_tags = attributes[:allowed_tags] || attributes['allowed_tags'] || nil
@blocked_tags = attributes[:blocked_tags] || attributes['blocked_tags'] || nil
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
allowed_tags: 'allowed_tags',
blocked_tags: 'blocked_tags'
}
end
end
end
end
end
5 changes: 5 additions & 0 deletions lib/getstream_ruby/generated/models/ai_video_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class AIVideoConfig < GetStream::BaseModel
# @!attribute enabled
# @return [Boolean]
attr_accessor :enabled
# @!attribute provider
# @return [String]
attr_accessor :provider
# @!attribute rules
# @return [Array<AWSRekognitionRule>]
attr_accessor :rules
Expand All @@ -24,6 +27,7 @@ def initialize(attributes = {})
super(attributes)
@async = attributes[:async] || attributes['async'] || nil
@enabled = attributes[:enabled] || attributes['enabled'] || nil
@provider = attributes[:provider] || attributes['provider'] || nil
@rules = attributes[:rules] || attributes['rules'] || nil
end

Expand All @@ -32,6 +36,7 @@ def self.json_field_mappings
{
async: 'async',
enabled: 'enabled',
provider: 'provider',
rules: 'rules'
}
end
Expand Down
41 changes: 41 additions & 0 deletions lib/getstream_ruby/generated/models/ai_video_config_request.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 AIVideoConfigRequest < GetStream::BaseModel

# Model attributes
# @!attribute async
# @return [Boolean]
attr_accessor :async
# @!attribute enabled
# @return [Boolean]
attr_accessor :enabled
# @!attribute rules
# @return [Array<AWSRekognitionRule>]
attr_accessor :rules

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@async = attributes[:async] || attributes['async'] || nil
@enabled = attributes[:enabled] || attributes['enabled'] || nil
@rules = attributes[:rules] || attributes['rules'] || nil
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
async: 'async',
enabled: 'enabled',
rules: 'rules'
}
end
end
end
end
end
41 changes: 41 additions & 0 deletions lib/getstream_ruby/generated/models/ai_video_config_response.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 AIVideoConfigResponse < GetStream::BaseModel

# Model attributes
# @!attribute enabled
# @return [Boolean]
attr_accessor :enabled
# @!attribute rules
# @return [Array<AWSRekognitionRule>]
attr_accessor :rules
# @!attribute async
# @return [Boolean]
attr_accessor :async

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@enabled = attributes[:enabled] || attributes['enabled']
@rules = attributes[:rules] || attributes['rules']
@async = attributes[:async] || attributes['async'] || nil
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
enabled: 'enabled',
rules: 'rules',
async: 'async'
}
end
end
end
end
end
2 changes: 1 addition & 1 deletion lib/getstream_ruby/generated/models/analyze_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AnalyzeResponse < GetStream::BaseModel
# @return [String]
attr_accessor :duration
# @!attribute status
# @return [String] Always `complete` — /analyze is sync-only and the full verdict is in the response.
# @return [String] `complete` (all fields screened), `partial` (mix of verdicts and per-field errors), or `pending` (async).
attr_accessor :status
# @!attribute images
# @return [Hash<String, AnalyzeImageField>] Per-image moderation verdicts keyed by caller label.
Expand Down
15 changes: 15 additions & 0 deletions lib/getstream_ruby/generated/models/app_response_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,24 @@ class AppResponseFields < GetStream::BaseModel
# @!attribute max_aggregated_activities_length
# @return [Integer]
attr_accessor :max_aggregated_activities_length
# @!attribute member_custom_on_mentioned_users_enabled
# @return [Boolean]
attr_accessor :member_custom_on_mentioned_users_enabled
# @!attribute member_custom_on_messages_enabled
# @return [Boolean]
attr_accessor :member_custom_on_messages_enabled
# @!attribute member_custom_on_typing_events_enabled
# @return [Boolean]
attr_accessor :member_custom_on_typing_events_enabled
# @!attribute moderation_audio_call_moderation_enabled
# @return [Boolean]
attr_accessor :moderation_audio_call_moderation_enabled
# @!attribute moderation_enabled
# @return [Boolean]
attr_accessor :moderation_enabled
# @!attribute moderation_keyframe_video_enabled
# @return [Boolean]
attr_accessor :moderation_keyframe_video_enabled
# @!attribute moderation_llm_configurability_enabled
# @return [Boolean]
attr_accessor :moderation_llm_configurability_enabled
Expand Down Expand Up @@ -210,9 +219,12 @@ def initialize(attributes = {})
@id = attributes[:id] || attributes['id']
@image_moderation_enabled = attributes[:image_moderation_enabled] || attributes['image_moderation_enabled']
@max_aggregated_activities_length = attributes[:max_aggregated_activities_length] || attributes['max_aggregated_activities_length']
@member_custom_on_mentioned_users_enabled = attributes[:member_custom_on_mentioned_users_enabled] || attributes['member_custom_on_mentioned_users_enabled']
@member_custom_on_messages_enabled = attributes[:member_custom_on_messages_enabled] || attributes['member_custom_on_messages_enabled']
@member_custom_on_typing_events_enabled = attributes[:member_custom_on_typing_events_enabled] || attributes['member_custom_on_typing_events_enabled']
@moderation_audio_call_moderation_enabled = attributes[:moderation_audio_call_moderation_enabled] || attributes['moderation_audio_call_moderation_enabled']
@moderation_enabled = attributes[:moderation_enabled] || attributes['moderation_enabled']
@moderation_keyframe_video_enabled = attributes[:moderation_keyframe_video_enabled] || attributes['moderation_keyframe_video_enabled']
@moderation_llm_configurability_enabled = attributes[:moderation_llm_configurability_enabled] || attributes['moderation_llm_configurability_enabled']
@moderation_multitenant_blocklist_enabled = attributes[:moderation_multitenant_blocklist_enabled] || attributes['moderation_multitenant_blocklist_enabled']
@moderation_video_call_moderation_enabled = attributes[:moderation_video_call_moderation_enabled] || attributes['moderation_video_call_moderation_enabled']
Expand Down Expand Up @@ -276,9 +288,12 @@ def self.json_field_mappings
id: 'id',
image_moderation_enabled: 'image_moderation_enabled',
max_aggregated_activities_length: 'max_aggregated_activities_length',
member_custom_on_mentioned_users_enabled: 'member_custom_on_mentioned_users_enabled',
member_custom_on_messages_enabled: 'member_custom_on_messages_enabled',
member_custom_on_typing_events_enabled: 'member_custom_on_typing_events_enabled',
moderation_audio_call_moderation_enabled: 'moderation_audio_call_moderation_enabled',
moderation_enabled: 'moderation_enabled',
moderation_keyframe_video_enabled: 'moderation_keyframe_video_enabled',
moderation_llm_configurability_enabled: 'moderation_llm_configurability_enabled',
moderation_multitenant_blocklist_enabled: 'moderation_multitenant_blocklist_enabled',
moderation_video_call_moderation_enabled: 'moderation_video_call_moderation_enabled',
Expand Down
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.users.error"
@type = attributes[:type] || attributes['type'] || "export.review_queue.error"
@received_at = attributes[:received_at] || attributes['received_at'] || nil
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ class ChannelBatchUpdateRequest < GetStream::BaseModel
# @!attribute filter
# @return [Object] Filter to apply to the query
attr_accessor :filter
# @!attribute custom_unset
# @return [Array<String>] `updateData` only. Deletes these keys from each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths; deleting a key that does not exist is a no-op. Cannot be combined with `data.custom`
attr_accessor :custom_unset
# @!attribute members
# @return [Array<ChannelBatchMemberRequest>]
attr_accessor :members
# @!attribute custom_set
# @return [Object] `updateData` only. Merges these keys into each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths, so `a.b` sets key `b` inside object `a` (the parent object must already exist). Cannot be combined with `data.custom`
attr_accessor :custom_set
# @!attribute data
# @return [ChannelDataUpdate]
attr_accessor :data
Expand All @@ -27,7 +33,9 @@ def initialize(attributes = {})
super(attributes)
@operation = attributes[:operation] || attributes['operation']
@filter = attributes[:filter] || attributes['filter']
@custom_unset = attributes[:custom_unset] || attributes['custom_unset'] || nil
@members = attributes[:members] || attributes['members'] || nil
@custom_set = attributes[:custom_set] || attributes['custom_set'] || nil
@data = attributes[:data] || attributes['data'] || nil
end

Expand All @@ -36,7 +44,9 @@ def self.json_field_mappings
{
operation: 'operation',
filter: 'filter',
custom_unset: 'custom_unset',
members: 'members',
custom_set: 'custom_set',
data: 'data'
}
end
Expand Down
12 changes: 6 additions & 6 deletions lib/getstream_ruby/generated/models/channel_member_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@ module Models
class ChannelMemberRequest < GetStream::BaseModel

# Model attributes
# @!attribute user_id
# @return [String]
attr_accessor :user_id
# @!attribute channel_role
# @return [String] Role of the member in the channel
attr_accessor :channel_role
# @!attribute user_id
# @return [String]
attr_accessor :user_id
# @!attribute custom
# @return [Object]
attr_accessor :custom
# @!attribute user
# @return [UserResponse] User response object
# @return [MemberUserRequest]
attr_accessor :user

# Initialize with attributes
def initialize(attributes = {})
super(attributes)
@user_id = attributes[:user_id] || attributes['user_id']
@channel_role = attributes[:channel_role] || attributes['channel_role'] || nil
@user_id = attributes[:user_id] || attributes['user_id'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
@user = attributes[:user] || attributes['user'] || nil
end

# Override field mappings for JSON serialization
def self.json_field_mappings
{
user_id: 'user_id',
channel_role: 'channel_role',
user_id: 'user_id',
custom: 'custom',
user: 'user'
}
Expand Down
2 changes: 1 addition & 1 deletion lib/getstream_ruby/generated/models/config_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ConfigResponse < GetStream::BaseModel
# @return [AITextConfig]
attr_accessor :ai_text_config
# @!attribute ai_video_config
# @return [AIVideoConfig]
# @return [AIVideoConfigResponse]
attr_accessor :ai_video_config
# @!attribute automod_platform_circumvention_config
# @return [AutomodPlatformCircumventionConfig]
Expand Down
10 changes: 10 additions & 0 deletions lib/getstream_ruby/generated/models/create_feed_group_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class CreateFeedGroupRequest < GetStream::BaseModel
# @!attribute id
# @return [String] Unique identifier for the feed group
attr_accessor :id
# @!attribute default_follower_role
# @return [String] Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
attr_accessor :default_follower_role
# @!attribute default_visibility
# @return [String] Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
attr_accessor :default_visibility
Expand All @@ -24,6 +27,9 @@ class CreateFeedGroupRequest < GetStream::BaseModel
# @!attribute activity_filter
# @return [ActivityFilterConfig]
attr_accessor :activity_filter
# @!attribute activity_processing
# @return [ActivityProcessingConfig]
attr_accessor :activity_processing
# @!attribute aggregation
# @return [AggregationConfig]
attr_accessor :aggregation
Expand All @@ -47,10 +53,12 @@ class CreateFeedGroupRequest < GetStream::BaseModel
def initialize(attributes = {})
super(attributes)
@id = attributes[:id] || attributes['id']
@default_follower_role = attributes[:default_follower_role] || attributes['default_follower_role'] || nil
@default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil
@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_processing = attributes[:activity_processing] || attributes['activity_processing'] || nil
@aggregation = attributes[:aggregation] || attributes['aggregation'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
@notification = attributes[:notification] || attributes['notification'] || nil
Expand All @@ -63,10 +71,12 @@ def initialize(attributes = {})
def self.json_field_mappings
{
id: 'id',
default_follower_role: 'default_follower_role',
default_visibility: 'default_visibility',
activity_processors: 'activity_processors',
activity_selectors: 'activity_selectors',
activity_filter: 'activity_filter',
activity_processing: 'activity_processing',
aggregation: 'aggregation',
custom: 'custom',
notification: 'notification',
Expand Down
Loading
Loading