From 116b088da37b208026714ab711de8aadee4625a3 Mon Sep 17 00:00:00 2001 From: "getstream-sdk-bot[bot]" <352448594+getstream-sdk-bot[bot]@users.noreply.github.com> Date: Thu, 3 Dec 2026 18:13:09 +0000 Subject: [PATCH] feat: regenerate client from openapi-v241.37.0 --- .spec-version | 4 +- .../models/ai_video_config_request.rb | 7 +++- .../models/ai_video_config_response.rb | 7 +++- .../models/keyframe_config_request.rb | 41 +++++++++++++++++++ .../models/keyframe_config_response.rb | 41 +++++++++++++++++++ 5 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 lib/getstream_ruby/generated/models/keyframe_config_request.rb create mode 100644 lib/getstream_ruby/generated/models/keyframe_config_response.rb diff --git a/.spec-version b/.spec-version index 3c78d30..76b9da9 100644 --- a/.spec-version +++ b/.spec-version @@ -1,2 +1,2 @@ -spec: openapi-v241.36.0 -generator: chat v241.36.0 +spec: openapi-v241.37.0 +generator: chat v241.37.0 diff --git a/lib/getstream_ruby/generated/models/ai_video_config_request.rb b/lib/getstream_ruby/generated/models/ai_video_config_request.rb index 9b05a25..42490ab 100644 --- a/lib/getstream_ruby/generated/models/ai_video_config_request.rb +++ b/lib/getstream_ruby/generated/models/ai_video_config_request.rb @@ -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 = {}) @@ -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 @@ -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 diff --git a/lib/getstream_ruby/generated/models/ai_video_config_response.rb b/lib/getstream_ruby/generated/models/ai_video_config_response.rb index ec5aba5..12e18a5 100644 --- a/lib/getstream_ruby/generated/models/ai_video_config_response.rb +++ b/lib/getstream_ruby/generated/models/ai_video_config_response.rb @@ -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 = {}) @@ -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 @@ -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 diff --git a/lib/getstream_ruby/generated/models/keyframe_config_request.rb b/lib/getstream_ruby/generated/models/keyframe_config_request.rb new file mode 100644 index 0000000..5041e70 --- /dev/null +++ b/lib/getstream_ruby/generated/models/keyframe_config_request.rb @@ -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 diff --git a/lib/getstream_ruby/generated/models/keyframe_config_response.rb b/lib/getstream_ruby/generated/models/keyframe_config_response.rb new file mode 100644 index 0000000..267e8ac --- /dev/null +++ b/lib/getstream_ruby/generated/models/keyframe_config_response.rb @@ -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