diff --git a/.oas-version b/.oas-version index 18b3114..b0dd753 100644 --- a/.oas-version +++ b/.oas-version @@ -1 +1 @@ -1.10.4 +1.10.9 diff --git a/src/Configuration.php b/src/Configuration.php index 9e404cf..2129dfd 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/1.10.4/PHP'; + protected $userAgent = 'OpenAPI-Generator/1.10.9/PHP'; /** * Debug switch (default set to false) @@ -433,7 +433,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: v1' . PHP_EOL; - $report .= ' SDK Package Version: 1.10.4' . PHP_EOL; + $report .= ' SDK Package Version: 1.10.9' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/Model/RichCaptionAsset.php b/src/Model/RichCaptionAsset.php index 07ef861..c650376 100644 --- a/src/Model/RichCaptionAsset.php +++ b/src/Model/RichCaptionAsset.php @@ -35,7 +35,7 @@ * RichCaptionAsset Class Doc Comment * * @category Class - * @description 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. + * @description 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. * @package ShotstackClient * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -449,7 +449,7 @@ public function getSrc() /** * Sets src * - * @param string $src 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. + * @param string $src 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. * * @return self */ diff --git a/src/Model/RichTextBackground.php b/src/Model/RichTextBackground.php index 0e23aae..f355c28 100644 --- a/src/Model/RichTextBackground.php +++ b/src/Model/RichTextBackground.php @@ -60,7 +60,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab protected static $openAPITypes = [ 'color' => 'string', 'opacity' => 'float', - 'border_radius' => 'float' + 'border_radius' => 'float', + 'wrap' => 'bool' ]; /** @@ -73,7 +74,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab protected static $openAPIFormats = [ 'color' => null, 'opacity' => null, - 'border_radius' => null + 'border_radius' => null, + 'wrap' => null ]; /** @@ -84,7 +86,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab protected static array $openAPINullables = [ 'color' => false, 'opacity' => false, - 'border_radius' => false + 'border_radius' => false, + 'wrap' => false ]; /** @@ -175,7 +178,8 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'color' => 'color', 'opacity' => 'opacity', - 'border_radius' => 'borderRadius' + 'border_radius' => 'borderRadius', + 'wrap' => 'wrap' ]; /** @@ -186,7 +190,8 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'color' => 'setColor', 'opacity' => 'setOpacity', - 'border_radius' => 'setBorderRadius' + 'border_radius' => 'setBorderRadius', + 'wrap' => 'setWrap' ]; /** @@ -197,7 +202,8 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'color' => 'getColor', 'opacity' => 'getOpacity', - 'border_radius' => 'getBorderRadius' + 'border_radius' => 'getBorderRadius', + 'wrap' => 'getWrap' ]; /** @@ -260,6 +266,7 @@ public function __construct(array $data = null) $this->setIfExists('color', $data ?? [], null); $this->setIfExists('opacity', $data ?? [], 1); $this->setIfExists('border_radius', $data ?? [], 0); + $this->setIfExists('wrap', $data ?? [], false); } /** @@ -418,6 +425,33 @@ public function setBorderRadius($border_radius) return $this; } + + /** + * Gets wrap + * + * @return bool|null + */ + public function getWrap() + { + return $this->container['wrap']; + } + + /** + * Sets wrap + * + * @param bool|null $wrap 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`. + * + * @return self + */ + public function setWrap($wrap) + { + if (is_null($wrap)) { + throw new \InvalidArgumentException('non-nullable wrap cannot be null'); + } + $this->container['wrap'] = $wrap; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/TextBackground.php b/src/Model/TextBackground.php index ea31b91..68092ff 100644 --- a/src/Model/TextBackground.php +++ b/src/Model/TextBackground.php @@ -61,7 +61,8 @@ class TextBackground implements ModelInterface, ArrayAccess, \JsonSerializable 'color' => 'string', 'opacity' => 'float', 'padding' => 'float', - 'border_radius' => 'float' + 'border_radius' => 'float', + 'wrap' => 'bool' ]; /** @@ -75,7 +76,8 @@ class TextBackground implements ModelInterface, ArrayAccess, \JsonSerializable 'color' => null, 'opacity' => null, 'padding' => null, - 'border_radius' => null + 'border_radius' => null, + 'wrap' => null ]; /** @@ -87,7 +89,8 @@ class TextBackground implements ModelInterface, ArrayAccess, \JsonSerializable 'color' => false, 'opacity' => false, 'padding' => false, - 'border_radius' => false + 'border_radius' => false, + 'wrap' => false ]; /** @@ -179,7 +182,8 @@ public function isNullableSetToNull(string $property): bool 'color' => 'color', 'opacity' => 'opacity', 'padding' => 'padding', - 'border_radius' => 'borderRadius' + 'border_radius' => 'borderRadius', + 'wrap' => 'wrap' ]; /** @@ -191,7 +195,8 @@ public function isNullableSetToNull(string $property): bool 'color' => 'setColor', 'opacity' => 'setOpacity', 'padding' => 'setPadding', - 'border_radius' => 'setBorderRadius' + 'border_radius' => 'setBorderRadius', + 'wrap' => 'setWrap' ]; /** @@ -203,7 +208,8 @@ public function isNullableSetToNull(string $property): bool 'color' => 'getColor', 'opacity' => 'getOpacity', 'padding' => 'getPadding', - 'border_radius' => 'getBorderRadius' + 'border_radius' => 'getBorderRadius', + 'wrap' => 'getWrap' ]; /** @@ -267,6 +273,7 @@ public function __construct(array $data = null) $this->setIfExists('opacity', $data ?? [], null); $this->setIfExists('padding', $data ?? [], null); $this->setIfExists('border_radius', $data ?? [], null); + $this->setIfExists('wrap', $data ?? [], null); } /** @@ -468,6 +475,33 @@ public function setBorderRadius($border_radius) return $this; } + + /** + * Gets wrap + * + * @return bool|null + */ + public function getWrap() + { + return $this->container['wrap']; + } + + /** + * Sets wrap + * + * @param bool|null $wrap Not supported on legacy `text` assets. Accepted here only so validators can emit a clear migration error pointing users to `rich-text` or `rich-caption`, which support background wrapping natively. + * + * @return self + */ + public function setWrap($wrap) + { + if (is_null($wrap)) { + throw new \InvalidArgumentException('non-nullable wrap cannot be null'); + } + $this->container['wrap'] = $wrap; + + return $this; + } /** * Returns true if offset exists. False otherwise. *