diff --git a/.oas-version b/.oas-version index 18b3114..3cc3669 100644 --- a/.oas-version +++ b/.oas-version @@ -1 +1 @@ -1.10.4 +1.10.8 diff --git a/lib/shotstack/models/rich_caption_asset.rb b/lib/shotstack/models/rich_caption_asset.rb index b1adfb8..6f97c08 100644 --- a/lib/shotstack/models/rich_caption_asset.rb +++ b/lib/shotstack/models/rich_caption_asset.rb @@ -14,12 +14,12 @@ require 'time' module Shotstack - # The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT files or auto-transcription via aliases. + # The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports karaoke-style highlighting, word-by-word animations, and advanced typography. Captions can be sourced from SRT/VTT/TTML subtitle files, from audio/video media URLs (auto-transcribed), or from alias references to other clips in the same timeline. class RichCaptionAsset # The type of asset - set to `rich-caption` for rich captions. attr_accessor :type - # The URL to an SRT or VTT subtitles file, or an alias reference to auto-generate captions from an audio or video clip. For file URLs, the URL must be publicly accessible or include credentials. For auto-captioning, use the format `alias://clip-name` where clip-name is the alias of an audio, video, or text-to-speech clip. + # Source for the caption words. Accepts three formats: (1) the URL to a subtitle file (`.srt`, `.vtt`, `.ttml`, or `.dfxp`) which is parsed directly; (2) the URL to an audio or video media file (`.mp4`, `.mov`, `.webm`, `.mp3`, `.wav`, `.m4a`, `.flac`, `.aac`, `.ogg`, and related formats) which is auto-transcribed; (3) an alias reference in the form `alias://clip-name` where `clip-name` is the alias of another audio, video, or text-to-speech clip in the same timeline — the referenced clip's source is auto-transcribed. For file URLs, the URL must be publicly accessible or include credentials. Content is classified at runtime and unsupported content types (HTML, PDF, images, archives) are rejected with a structured error. attr_accessor :src attr_accessor :font diff --git a/lib/shotstack/models/rich_text_background.rb b/lib/shotstack/models/rich_text_background.rb index 1df053c..677c853 100644 --- a/lib/shotstack/models/rich_text_background.rb +++ b/lib/shotstack/models/rich_text_background.rb @@ -25,12 +25,16 @@ class RichTextBackground # The border radius of the background box in pixels. Must be 0 or greater. attr_accessor :border_radius + # When true, the background pill shrinks to fit the rendered text bounding box plus the asset's padding (and stroke width, if present), producing a pill or badge effect. When false (default), the background fills the full asset content area. Available on rich-text and rich-caption assets only; not supported on legacy `type: text`. + attr_accessor :wrap + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'color' => :'color', :'opacity' => :'opacity', - :'border_radius' => :'borderRadius' + :'border_radius' => :'borderRadius', + :'wrap' => :'wrap' } end @@ -44,7 +48,8 @@ def self.openapi_types { :'color' => :'String', :'opacity' => :'Float', - :'border_radius' => :'Float' + :'border_radius' => :'Float', + :'wrap' => :'Boolean' } end @@ -84,6 +89,12 @@ def initialize(attributes = {}) else self.border_radius = 0 end + + if attributes.key?(:'wrap') + self.wrap = attributes[:'wrap'] + else + self.wrap = false + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -176,7 +187,8 @@ def ==(o) self.class == o.class && color == o.color && opacity == o.opacity && - border_radius == o.border_radius + border_radius == o.border_radius && + wrap == o.wrap end # @see the `==` method @@ -188,7 +200,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [color, opacity, border_radius].hash + [color, opacity, border_radius, wrap].hash end # Builds the object from hash diff --git a/lib/shotstack/version.rb b/lib/shotstack/version.rb index 9dce678..332d9ad 100644 --- a/lib/shotstack/version.rb +++ b/lib/shotstack/version.rb @@ -11,5 +11,5 @@ =end module Shotstack - VERSION = '1.10.4' + VERSION = '1.10.8' end