@shotstack/schemas 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.bundled.json +87 -20
- package/dist/schema.d.ts +49 -16
- package/dist/zod/zod.gen.cjs +1425 -858
- package/dist/zod/zod.gen.d.ts +11789 -10061
- package/dist/zod/zod.gen.js +1423 -856
- package/dist/zod/zod.gen.ts +448 -377
- package/package.json +2 -7
package/dist/api.bundled.json
CHANGED
|
@@ -910,19 +910,6 @@
|
|
|
910
910
|
"mount"
|
|
911
911
|
],
|
|
912
912
|
"deprecated": true
|
|
913
|
-
},
|
|
914
|
-
"instance": {
|
|
915
|
-
"description": "The instance type to use for rendering. Different instance types have different capabilities and performance characteristics. Use `a1` for high-resolution 4K renders.",
|
|
916
|
-
"type": "string",
|
|
917
|
-
"example": "a1"
|
|
918
|
-
},
|
|
919
|
-
"poster": {
|
|
920
|
-
"description": "Generate a poster image from a specific point on the timeline.",
|
|
921
|
-
"$ref": "#/components/schemas/Poster"
|
|
922
|
-
},
|
|
923
|
-
"thumbnail": {
|
|
924
|
-
"description": "Generate a thumbnail image from a specific point on the timeline.",
|
|
925
|
-
"$ref": "#/components/schemas/Thumbnail"
|
|
926
913
|
}
|
|
927
914
|
},
|
|
928
915
|
"required": [
|
|
@@ -1226,7 +1213,8 @@
|
|
|
1226
1213
|
"shape": "#/components/schemas/ShapeAsset",
|
|
1227
1214
|
"svg": "#/components/schemas/SvgAsset",
|
|
1228
1215
|
"text-to-image": "#/components/schemas/TextToImageAsset",
|
|
1229
|
-
"image-to-video": "#/components/schemas/ImageToVideoAsset"
|
|
1216
|
+
"image-to-video": "#/components/schemas/ImageToVideoAsset",
|
|
1217
|
+
"text-to-speech": "#/components/schemas/TextToSpeechAsset"
|
|
1230
1218
|
}
|
|
1231
1219
|
},
|
|
1232
1220
|
"oneOf": [
|
|
@@ -1268,6 +1256,9 @@
|
|
|
1268
1256
|
},
|
|
1269
1257
|
{
|
|
1270
1258
|
"$ref": "#/components/schemas/ImageToVideoAsset"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"$ref": "#/components/schemas/TextToSpeechAsset"
|
|
1271
1262
|
}
|
|
1272
1263
|
],
|
|
1273
1264
|
"additionalProperties": false
|
|
@@ -1499,7 +1490,7 @@
|
|
|
1499
1490
|
"$ref": "#/components/schemas/RichTextStyle"
|
|
1500
1491
|
},
|
|
1501
1492
|
"stroke": {
|
|
1502
|
-
"description": "Text stroke (outline) properties
|
|
1493
|
+
"description": "Text stroke (outline) properties.",
|
|
1503
1494
|
"$ref": "#/components/schemas/RichTextStroke"
|
|
1504
1495
|
},
|
|
1505
1496
|
"shadow": {
|
|
@@ -1967,6 +1958,87 @@
|
|
|
1967
1958
|
"src"
|
|
1968
1959
|
]
|
|
1969
1960
|
},
|
|
1961
|
+
"TextToSpeechAsset": {
|
|
1962
|
+
"description": "The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.",
|
|
1963
|
+
"type": "object",
|
|
1964
|
+
"properties": {
|
|
1965
|
+
"type": {
|
|
1966
|
+
"type": "string",
|
|
1967
|
+
"description": "The type of asset - set to `text-to-speech` for text-to-speech.",
|
|
1968
|
+
"enum": [
|
|
1969
|
+
"text-to-speech"
|
|
1970
|
+
],
|
|
1971
|
+
"default": "text-to-speech"
|
|
1972
|
+
},
|
|
1973
|
+
"text": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"description": "The text to convert to speech.",
|
|
1976
|
+
"example": "This is a text to speech example generated by Shotstack"
|
|
1977
|
+
},
|
|
1978
|
+
"voice": {
|
|
1979
|
+
"type": "string",
|
|
1980
|
+
"description": "The voice to use for the text-to-speech conversion.",
|
|
1981
|
+
"example": "Matthew"
|
|
1982
|
+
},
|
|
1983
|
+
"language": {
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"description": "The language code for the text-to-speech conversion.",
|
|
1986
|
+
"example": "en-US"
|
|
1987
|
+
},
|
|
1988
|
+
"newscaster": {
|
|
1989
|
+
"type": "boolean",
|
|
1990
|
+
"description": "Set the voice to newscaster mode.",
|
|
1991
|
+
"default": false
|
|
1992
|
+
},
|
|
1993
|
+
"trim": {
|
|
1994
|
+
"description": "The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the trim point. The audio will play until the file ends or the Clip length is reached.",
|
|
1995
|
+
"type": "number"
|
|
1996
|
+
},
|
|
1997
|
+
"volume": {
|
|
1998
|
+
"description": "Set the volume of the audio clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions.",
|
|
1999
|
+
"oneOf": [
|
|
2000
|
+
{
|
|
2001
|
+
"type": "number",
|
|
2002
|
+
"description": "The volume level for the audio clip. Range varies from 0 to 1 where 0 is muted and 1 is full volume (defaults to 1).",
|
|
2003
|
+
"format": "float",
|
|
2004
|
+
"minimum": 0,
|
|
2005
|
+
"maximum": 1,
|
|
2006
|
+
"example": 0.5
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
"type": "array",
|
|
2010
|
+
"description": "An array of [Tween](./#tocs_tween) objects used to create a custom volume effect. Modify the volume of an asset over time.",
|
|
2011
|
+
"items": {
|
|
2012
|
+
"$ref": "#/components/schemas/Tween"
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
]
|
|
2016
|
+
},
|
|
2017
|
+
"speed": {
|
|
2018
|
+
"description": "Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length.",
|
|
2019
|
+
"type": "number",
|
|
2020
|
+
"format": "float",
|
|
2021
|
+
"minimum": 0,
|
|
2022
|
+
"maximum": 10,
|
|
2023
|
+
"example": 1
|
|
2024
|
+
},
|
|
2025
|
+
"effect": {
|
|
2026
|
+
"description": "The effect to apply to the audio asset <ul>\n <li>`fadeIn` - fade volume in only</li>\n <li>`fadeOut` - fade volume out only</li>\n <li>`fadeInFadeOut` - fade volume in and out</li>\n</ul>",
|
|
2027
|
+
"enum": [
|
|
2028
|
+
"none",
|
|
2029
|
+
"fadeIn",
|
|
2030
|
+
"fadeOut",
|
|
2031
|
+
"fadeInFadeOut"
|
|
2032
|
+
],
|
|
2033
|
+
"type": "string"
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
"required": [
|
|
2037
|
+
"type",
|
|
2038
|
+
"text",
|
|
2039
|
+
"voice"
|
|
2040
|
+
]
|
|
2041
|
+
},
|
|
1970
2042
|
"HtmlAsset": {
|
|
1971
2043
|
"deprecated": true,
|
|
1972
2044
|
"description": "**Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**\n\nThe HtmlAsset clip type lets you create text based layout and formatting using\nHTML and CSS. You can also set the height and width of a bounding box for the HTML\ncontent to sit within. Text and elements will wrap within the bounding box.\n",
|
|
@@ -3762,11 +3834,6 @@
|
|
|
3762
3834
|
"type": "number",
|
|
3763
3835
|
"example": 0.25
|
|
3764
3836
|
},
|
|
3765
|
-
"bottom": {
|
|
3766
|
-
"description": "The margin below the text. Pushes captions up the screen.",
|
|
3767
|
-
"type": "number",
|
|
3768
|
-
"example": 0.25
|
|
3769
|
-
},
|
|
3770
3837
|
"left": {
|
|
3771
3838
|
"description": "The margin to the left of the text. Pushes captions to the right.",
|
|
3772
3839
|
"type": "number",
|
package/dist/schema.d.ts
CHANGED
|
@@ -448,15 +448,6 @@ export interface components {
|
|
|
448
448
|
* @enum {string}
|
|
449
449
|
*/
|
|
450
450
|
disk?: "local" | "mount";
|
|
451
|
-
/**
|
|
452
|
-
* @description The instance type to use for rendering. Different instance types have different capabilities and performance characteristics. Use `a1` for high-resolution 4K renders.
|
|
453
|
-
* @example a1
|
|
454
|
-
*/
|
|
455
|
-
instance?: string;
|
|
456
|
-
/** @description Generate a poster image from a specific point on the timeline. */
|
|
457
|
-
poster?: components["schemas"]["Poster"];
|
|
458
|
-
/** @description Generate a thumbnail image from a specific point on the timeline. */
|
|
459
|
-
thumbnail?: components["schemas"]["Thumbnail"];
|
|
460
451
|
};
|
|
461
452
|
/** @description A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time. */
|
|
462
453
|
Timeline: {
|
|
@@ -592,7 +583,7 @@ export interface components {
|
|
|
592
583
|
alias?: string;
|
|
593
584
|
};
|
|
594
585
|
/** @description The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below. */
|
|
595
|
-
Asset: components["schemas"]["VideoAsset"] | components["schemas"]["ImageAsset"] | components["schemas"]["TextAsset"] | components["schemas"]["RichTextAsset"] | components["schemas"]["AudioAsset"] | components["schemas"]["LumaAsset"] | components["schemas"]["CaptionAsset"] | components["schemas"]["HtmlAsset"] | components["schemas"]["TitleAsset"] | components["schemas"]["ShapeAsset"] | components["schemas"]["SvgAsset"] | components["schemas"]["TextToImageAsset"] | components["schemas"]["ImageToVideoAsset"];
|
|
586
|
+
Asset: components["schemas"]["VideoAsset"] | components["schemas"]["ImageAsset"] | components["schemas"]["TextAsset"] | components["schemas"]["RichTextAsset"] | components["schemas"]["AudioAsset"] | components["schemas"]["LumaAsset"] | components["schemas"]["CaptionAsset"] | components["schemas"]["HtmlAsset"] | components["schemas"]["TitleAsset"] | components["schemas"]["ShapeAsset"] | components["schemas"]["SvgAsset"] | components["schemas"]["TextToImageAsset"] | components["schemas"]["ImageToVideoAsset"] | components["schemas"]["TextToSpeechAsset"];
|
|
596
587
|
/** @description The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file. */
|
|
597
588
|
VideoAsset: {
|
|
598
589
|
/**
|
|
@@ -734,7 +725,7 @@ export interface components {
|
|
|
734
725
|
font?: components["schemas"]["RichTextFont"];
|
|
735
726
|
/** @description Text style properties including spacing, line height, and transformations. */
|
|
736
727
|
style?: components["schemas"]["RichTextStyle"];
|
|
737
|
-
/** @description Text stroke (outline) properties
|
|
728
|
+
/** @description Text stroke (outline) properties. */
|
|
738
729
|
stroke?: components["schemas"]["RichTextStroke"];
|
|
739
730
|
/** @description Text shadow properties. */
|
|
740
731
|
shadow?: components["schemas"]["RichTextShadow"];
|
|
@@ -1033,6 +1024,53 @@ export interface components {
|
|
|
1033
1024
|
speed?: number;
|
|
1034
1025
|
crop?: components["schemas"]["Crop"];
|
|
1035
1026
|
};
|
|
1027
|
+
/** @description The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset. */
|
|
1028
|
+
TextToSpeechAsset: {
|
|
1029
|
+
/**
|
|
1030
|
+
* @description The type of asset - set to `text-to-speech` for text-to-speech. (enum property replaced by openapi-typescript)
|
|
1031
|
+
* @enum {string}
|
|
1032
|
+
*/
|
|
1033
|
+
type: "text-to-speech";
|
|
1034
|
+
/**
|
|
1035
|
+
* @description The text to convert to speech.
|
|
1036
|
+
* @example This is a text to speech example generated by Shotstack
|
|
1037
|
+
*/
|
|
1038
|
+
text: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* @description The voice to use for the text-to-speech conversion.
|
|
1041
|
+
* @example Matthew
|
|
1042
|
+
*/
|
|
1043
|
+
voice: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* @description The language code for the text-to-speech conversion.
|
|
1046
|
+
* @example en-US
|
|
1047
|
+
*/
|
|
1048
|
+
language?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* @description Set the voice to newscaster mode.
|
|
1051
|
+
* @default false
|
|
1052
|
+
*/
|
|
1053
|
+
newscaster: boolean;
|
|
1054
|
+
/** @description The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the trim point. The audio will play until the file ends or the Clip length is reached. */
|
|
1055
|
+
trim?: number;
|
|
1056
|
+
/** @description Set the volume of the audio clip. Use a number or an array of [Tween](./#tocs_tween) objects to create custom volume transitions. */
|
|
1057
|
+
volume?: number | components["schemas"]["Tween"][];
|
|
1058
|
+
/**
|
|
1059
|
+
* Format: float
|
|
1060
|
+
* @description Adjust the playback speed of the audio clip between 0 (paused) and 10 (10x normal speed), where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length.
|
|
1061
|
+
* @example 1
|
|
1062
|
+
*/
|
|
1063
|
+
speed?: number;
|
|
1064
|
+
/**
|
|
1065
|
+
* @description The effect to apply to the audio asset <ul>
|
|
1066
|
+
* <li>`fadeIn` - fade volume in only</li>
|
|
1067
|
+
* <li>`fadeOut` - fade volume out only</li>
|
|
1068
|
+
* <li>`fadeInFadeOut` - fade volume in and out</li>
|
|
1069
|
+
* </ul>
|
|
1070
|
+
* @enum {string}
|
|
1071
|
+
*/
|
|
1072
|
+
effect?: "none" | "fadeIn" | "fadeOut" | "fadeInFadeOut";
|
|
1073
|
+
};
|
|
1036
1074
|
/**
|
|
1037
1075
|
* @deprecated
|
|
1038
1076
|
* @description **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
|
|
@@ -2339,11 +2377,6 @@ export interface components {
|
|
|
2339
2377
|
* @example 0.25
|
|
2340
2378
|
*/
|
|
2341
2379
|
top?: number;
|
|
2342
|
-
/**
|
|
2343
|
-
* @description The margin below the text. Pushes captions up the screen.
|
|
2344
|
-
* @example 0.25
|
|
2345
|
-
*/
|
|
2346
|
-
bottom?: number;
|
|
2347
2380
|
/**
|
|
2348
2381
|
* @description The margin to the left of the text. Pushes captions to the right.
|
|
2349
2382
|
* @example 0.05
|