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.36.0
generator: chat v241.36.0
spec: openapi-v241.37.0
generator: chat v241.37.0
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class AIVideoConfigRequest < GetStream::BaseModel
# @!attribute audio_config
# @return [AIAudioConfigRequest]
attr_accessor :audio_config
# @!attribute keyframe_config
# @return [KeyframeConfigRequest]
attr_accessor :keyframe_config

# Initialize with attributes
def initialize(attributes = {})
Expand All @@ -37,6 +40,7 @@ def initialize(attributes = {})
@ocr_severity_rules = attributes.fetch(:ocr_severity_rules) { attributes.fetch('ocr_severity_rules', nil) }
@rules = attributes.fetch(:rules) { attributes.fetch('rules', nil) }
@audio_config = attributes.fetch(:audio_config) { attributes.fetch('audio_config', nil) }
@keyframe_config = attributes.fetch(:keyframe_config) { attributes.fetch('keyframe_config', nil) }
end

# Override field mappings for JSON serialization
Expand All @@ -47,7 +51,8 @@ def self.json_field_mappings
ocr_rules: 'ocr_rules',
ocr_severity_rules: 'ocr_severity_rules',
rules: 'rules',
audio_config: 'audio_config'
audio_config: 'audio_config',
keyframe_config: 'keyframe_config'
}
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class AIVideoConfigResponse < GetStream::BaseModel
# @!attribute audio_config
# @return [AIAudioConfigResponse]
attr_accessor :audio_config
# @!attribute keyframe_config
# @return [KeyframeConfigResponse]
attr_accessor :keyframe_config

# Initialize with attributes
def initialize(attributes = {})
Expand All @@ -37,6 +40,7 @@ def initialize(attributes = {})
@ocr_rules = attributes.fetch(:ocr_rules) { attributes.fetch('ocr_rules', nil) }
@ocr_severity_rules = attributes.fetch(:ocr_severity_rules) { attributes.fetch('ocr_severity_rules', nil) }
@audio_config = attributes.fetch(:audio_config) { attributes.fetch('audio_config', nil) }
@keyframe_config = attributes.fetch(:keyframe_config) { attributes.fetch('keyframe_config', nil) }
end

# Override field mappings for JSON serialization
Expand All @@ -47,7 +51,8 @@ def self.json_field_mappings
async: 'async',
ocr_rules: 'ocr_rules',
ocr_severity_rules: 'ocr_severity_rules',
audio_config: 'audio_config'
audio_config: 'audio_config',
keyframe_config: 'keyframe_config'
}
end
end
Expand Down
41 changes: 41 additions & 0 deletions lib/getstream_ruby/generated/models/keyframe_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 KeyframeConfigRequest < GetStream::BaseModel

# Model attributes
# @!attribute early_stop
# @return [Boolean] Stop scoring frames once one reaches the highest action the video rules can produce. The video's action is the same as scoring every frame, but its labels and per-frame results cover only the frames scored. Has no effect while a moderation rule has a video_content, video_rule or ocr_content condition, since those read the labels or text of every frame. Defaults to false
attr_accessor :early_stop
# @!attribute frames_per_second
# @return [Float] Frames sampled per second of video for keyframe moderation. 0 or omitted uses 1.0; otherwise between 0.017 and 1.0. At most 100 frames are taken from a video, spread evenly over its length
attr_accessor :frames_per_second
# @!attribute strategy
# @return [String] How sampled frames are chosen for scoring. uniform (default) scores every sampled frame; scene_change scores a sampled frame only when the scene changed, it is the first frame, or 10 s passed since the last scored frame
attr_accessor :strategy

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

# Override field mappings for JSON serialization
def self.json_field_mappings
{
early_stop: 'early_stop',
frames_per_second: 'frames_per_second',
strategy: 'strategy'
}
end
end
end
end
end
41 changes: 41 additions & 0 deletions lib/getstream_ruby/generated/models/keyframe_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 KeyframeConfigResponse < GetStream::BaseModel

# Model attributes
# @!attribute early_stop
# @return [Boolean] Stop scoring frames once one reaches the highest action the video rules can produce. The video's action is the same as scoring every frame, but its labels and per-frame results cover only the frames scored. Has no effect while a moderation rule has a video_content, video_rule or ocr_content condition, since those read the labels or text of every frame. Defaults to false
attr_accessor :early_stop
# @!attribute frames_per_second
# @return [Float] Frames sampled per second of video for keyframe moderation. 0 or omitted uses 1.0; otherwise between 0.017 and 1.0. At most 100 frames are taken from a video, spread evenly over its length
attr_accessor :frames_per_second
# @!attribute strategy
# @return [String] How sampled frames are chosen for scoring. uniform (default) scores every sampled frame; scene_change scores a sampled frame only when the scene changed, it is the first frame, or 10 s passed since the last scored frame
attr_accessor :strategy

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

# Override field mappings for JSON serialization
def self.json_field_mappings
{
early_stop: 'early_stop',
frames_per_second: 'frames_per_second',
strategy: 'strategy'
}
end
end
end
end
end
Loading