Skip to content
Open
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
2 changes: 1 addition & 1 deletion .oas-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.4
1.10.8
4 changes: 2 additions & 2 deletions lib/shotstack/models/rich_caption_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 16 additions & 4 deletions lib/shotstack/models/rich_text_background.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -44,7 +48,8 @@ def self.openapi_types
{
:'color' => :'String',
:'opacity' => :'Float',
:'border_radius' => :'Float'
:'border_radius' => :'Float',
:'wrap' => :'Boolean'
}
end

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/shotstack/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module Shotstack
VERSION = '1.10.4'
VERSION = '1.10.8'
end