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 src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.10.4/PHP';
protected $userAgent = 'OpenAPI-Generator/1.10.8/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -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.8' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
4 changes: 2 additions & 2 deletions src/Model/RichCaptionAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down
46 changes: 40 additions & 6 deletions src/Model/RichTextBackground.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];

/**
Expand All @@ -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
];

/**
Expand All @@ -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
];

/**
Expand Down Expand Up @@ -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'
];

/**
Expand All @@ -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'
];

/**
Expand All @@ -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'
];

/**
Expand Down Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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.
*
Expand Down