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.12.1
2 changes: 1 addition & 1 deletion shotstack_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "1.10.4"
__version__ = "1.12.1"

# import ApiClient
from shotstack_sdk.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion shotstack_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.10.4/python'
self.user_agent = 'OpenAPI-Generator/1.12.1/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion shotstack_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
"SDK Package Version: 1.10.4".\
"SDK Package Version: 1.12.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
30 changes: 24 additions & 6 deletions shotstack_sdk/model/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def lazy_import():
CaptionMargin
ChromaKey
Crop
Html5Asset
HtmlAsset
ImageAsset
ImageToVideoAsset
Expand Down Expand Up @@ -101,6 +102,7 @@ class Asset(ModelComposed):
''caption'': 'caption',
''rich-caption'': 'rich-caption',
''html'': 'html',
''html5'': 'html5',
''title'': 'title',
''shape'': 'shape',
''svg'': 'svg',
Expand Down Expand Up @@ -172,10 +174,19 @@ class Asset(ModelComposed):
('src',): {
'min_length': 1,
},
('html',): {
'max_length': 1000000,
},
('speed',): {
'inclusive_maximum': 10,
'inclusive_minimum': 0,
},
('css',): {
'max_length': 500000,
},
('js',): {
'max_length': 500000,
},
}

additional_properties_type = None
Expand Down Expand Up @@ -226,6 +237,7 @@ def openapi_types():
'active': (RichCaptionActive,), # noqa: E501
'css': (str,), # noqa: E501
'position': (str,), # noqa: E501
'js': (str,), # noqa: E501
'color': (str,), # noqa: E501
'size': (str,), # noqa: E501
'offset': (Offset,), # noqa: E501
Expand All @@ -245,6 +257,7 @@ def discriminator():
'audio': AudioAsset,
'caption': CaptionAsset,
'html': HtmlAsset,
'html5': Html5Asset,
'image': ImageAsset,
'image-to-video': ImageToVideoAsset,
'luma': LumaAsset,
Expand All @@ -259,6 +272,7 @@ def discriminator():
'video': VideoAsset,
'AudioAsset': AudioAsset,
'CaptionAsset': CaptionAsset,
'Html5Asset': Html5Asset,
'HtmlAsset': HtmlAsset,
'ImageAsset': ImageAsset,
'ImageToVideoAsset': ImageToVideoAsset,
Expand Down Expand Up @@ -310,6 +324,7 @@ def discriminator():
'active': 'active', # noqa: E501
'css': 'css', # noqa: E501
'position': 'position', # noqa: E501
'js': 'js', # noqa: E501
'color': 'color', # noqa: E501
'size': 'size', # noqa: E501
'offset': 'offset', # noqa: E501
Expand All @@ -331,10 +346,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
"""Asset - a model defined in OpenAPI

Keyword Args:
type (str): The type of asset - set to `video` for videos.. defaults to 'video', must be one of ['video', 'image', 'text', 'rich-text', 'audio', 'luma', 'caption', 'rich-caption', 'html', 'title', 'shape', 'svg', 'text-to-image', 'image-to-video', 'text-to-speech', ] # noqa: E501
type (str): The type of asset - set to `video` for videos.. defaults to 'video', must be one of ['video', 'image', 'text', 'rich-text', 'audio', 'luma', 'caption', 'rich-caption', 'html', 'html5', 'title', 'shape', 'svg', 'text-to-image', 'image-to-video', 'text-to-speech', ] # noqa: E501
src (str): The image source URL. The URL must be publicly accessible or include credentials.
text (str): The text to convert to speech.
html (str): The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).
html (str): The HTML markup for the asset. Max 1,000,000 characters.
shape (str): The shape to display.
prompt (str): The instructions for modifying the image into a video sequence.
voice (str): The voice to use for the text-to-speech conversion.
Expand Down Expand Up @@ -391,8 +406,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
effect (str): The effect to apply to the audio asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>. [optional] # noqa: E501
margin (CaptionMargin): [optional] # noqa: E501
active (RichCaptionActive): [optional] # noqa: E501
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-css-properties).. [optional] # noqa: E501
css (str): The CSS string applied to the HTML. Max 500,000 characters.. [optional] # noqa: E501
position (str): Place the title in one of nine predefined positions of the viewport. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>. [optional] # noqa: E501
js (str): Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters. . [optional] # noqa: E501
color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
Expand Down Expand Up @@ -473,10 +489,10 @@ def __init__(self, *args, **kwargs): # noqa: E501
"""Asset - a model defined in OpenAPI

Keyword Args:
type (str): The type of asset - set to `video` for videos.. defaults to 'video', must be one of ['video', 'image', 'text', 'rich-text', 'audio', 'luma', 'caption', 'rich-caption', 'html', 'title', 'shape', 'svg', 'text-to-image', 'image-to-video', 'text-to-speech', ] # noqa: E501
type (str): The type of asset - set to `video` for videos.. defaults to 'video', must be one of ['video', 'image', 'text', 'rich-text', 'audio', 'luma', 'caption', 'rich-caption', 'html', 'html5', 'title', 'shape', 'svg', 'text-to-image', 'image-to-video', 'text-to-speech', ] # noqa: E501
src (str): The image source URL. The URL must be publicly accessible or include credentials.
text (str): The text to convert to speech.
html (str): The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).
html (str): The HTML markup for the asset. Max 1,000,000 characters.
shape (str): The shape to display.
prompt (str): The instructions for modifying the image into a video sequence.
voice (str): The voice to use for the text-to-speech conversion.
Expand Down Expand Up @@ -533,8 +549,9 @@ def __init__(self, *args, **kwargs): # noqa: E501
effect (str): The effect to apply to the audio asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>. [optional] # noqa: E501
margin (CaptionMargin): [optional] # noqa: E501
active (RichCaptionActive): [optional] # noqa: E501
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-css-properties).. [optional] # noqa: E501
css (str): The CSS string applied to the HTML. Max 500,000 characters.. [optional] # noqa: E501
position (str): Place the title in one of nine predefined positions of the viewport. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>. [optional] # noqa: E501
js (str): Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters. . [optional] # noqa: E501
color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
Expand Down Expand Up @@ -615,6 +632,7 @@ def _composed_schemas():
'oneOf': [
AudioAsset,
CaptionAsset,
Html5Asset,
HtmlAsset,
ImageAsset,
ImageToVideoAsset,
Expand Down
4 changes: 4 additions & 0 deletions shotstack_sdk/model/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def openapi_types():
'asset': (Asset,), # noqa: E501
'start': (ClipStart,), # noqa: E501
'length': (ClipLength,), # noqa: E501
'id': (str,), # noqa: E501
'fit': (str,), # noqa: E501
'scale': (ClipScale,), # noqa: E501
'width': (float,), # noqa: E501
Expand All @@ -174,6 +175,7 @@ def discriminator():
'asset': 'asset', # noqa: E501
'start': 'start', # noqa: E501
'length': 'length', # noqa: E501
'id': 'id', # noqa: E501
'fit': 'fit', # noqa: E501
'scale': 'scale', # noqa: E501
'width': 'width', # noqa: E501
Expand Down Expand Up @@ -234,6 +236,7 @@ def _from_openapi_data(cls, asset, start, length, *args, **kwargs): # noqa: E50
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.. [optional] # noqa: E501
fit (str): Set how the asset should be scaled to fit the viewport using one of the following options: <ul> <li>`crop` <b>(default)</b> - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.</li> <li>`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.</li> <li>`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.</li> <li>`none` - preserves the original asset dimensions and does not apply any scaling.</li> </ul>. [optional] # noqa: E501
scale (ClipScale): [optional] # noqa: E501
width (float): Set the width of the clip bounding box in pixels. This constrains the width of the clip, overriding the default behavior where clips fill the viewport width.. [optional] # noqa: E501
Expand Down Expand Up @@ -335,6 +338,7 @@ def __init__(self, asset, start, length, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): Optional client-generated identifier. Used by client SDKs (e.g. the Shotstack Studio SDK) to reference a clip across edits without relying on its position in the timeline. The render API does not use this field and it does not appear in render output.. [optional] # noqa: E501
fit (str): Set how the asset should be scaled to fit the viewport using one of the following options: <ul> <li>`crop` <b>(default)</b> - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.</li> <li>`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.</li> <li>`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.</li> <li>`none` - preserves the original asset dimensions and does not apply any scaling.</li> </ul>. [optional] # noqa: E501
scale (ClipScale): [optional] # noqa: E501
width (float): Set the width of the clip bounding box in pixels. This constrains the width of the clip, overriding the default behavior where clips fill the viewport width.. [optional] # noqa: E501
Expand Down
Loading