@shotstack/schemas 1.5.6 → 1.5.8

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/schema.d.ts CHANGED
@@ -583,7 +583,7 @@ export interface components {
583
583
  alias?: string;
584
584
  };
585
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. */
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"];
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"]["RichCaptionAsset"] | components["schemas"]["HtmlAsset"] | components["schemas"]["TitleAsset"] | components["schemas"]["ShapeAsset"] | components["schemas"]["SvgAsset"] | components["schemas"]["TextToImageAsset"] | components["schemas"]["ImageToVideoAsset"] | components["schemas"]["TextToSpeechAsset"];
587
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. */
588
588
  VideoAsset: {
589
589
  /**
@@ -968,11 +968,154 @@ export interface components {
968
968
  */
969
969
  speed?: number;
970
970
  };
971
+ /**
972
+ * @description The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
973
+ * karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
974
+ * files or auto-transcription via aliases.
975
+ */
976
+ RichCaptionAsset: {
977
+ /**
978
+ * @description The type of asset - set to `rich-caption` for rich captions. (enum property replaced by openapi-typescript)
979
+ * @enum {string}
980
+ */
981
+ type: "rich-caption";
982
+ /**
983
+ * @description 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. Mutually exclusive with `words`.
984
+ * @example alias://audio
985
+ */
986
+ src?: string;
987
+ /** @description Pre-provided word-level timing data. Use this instead of `src` when you have word timestamps from an external source. Mutually exclusive with `src`. */
988
+ words?: components["schemas"]["WordTiming"][];
989
+ /** @description Font styling properties for inactive words. */
990
+ font?: components["schemas"]["RichTextFont"];
991
+ /** @description Text style properties including spacing, line height, and transformations. */
992
+ style?: components["schemas"]["RichTextStyle"];
993
+ /** @description Text stroke (outline) properties for inactive words. */
994
+ stroke?: components["schemas"]["RichTextStroke"];
995
+ /** @description Text shadow properties. */
996
+ shadow?: components["schemas"]["RichTextShadow"];
997
+ /** @description Background styling properties for the caption bounding box. */
998
+ background?: components["schemas"]["RichTextBackground"];
999
+ /** @description Padding inside the caption bounding box. Can be a single number (applied to all sides) or an object with individual sides. */
1000
+ padding?: number | components["schemas"]["RichTextAsset"]["padding"]["oneOf"]["1"];
1001
+ /** @description Text alignment properties (horizontal and vertical). */
1002
+ align?: components["schemas"]["RichTextAlignment"];
1003
+ /** @description Styling properties for the active/highlighted word. These override the base styling when a word is being spoken. */
1004
+ active?: components["schemas"]["RichCaptionActive"];
1005
+ /** @description Word-level animation properties controlling how words are highlighted or revealed. */
1006
+ wordAnimation?: components["schemas"]["RichCaptionWordAnimation"];
1007
+ /**
1008
+ * @description Vertical position of the caption on screen.
1009
+ * @default bottom
1010
+ * @example bottom
1011
+ * @enum {string}
1012
+ */
1013
+ position: "top" | "center" | "bottom";
1014
+ /**
1015
+ * @description Maximum width of the caption as a ratio of the frame width. Must be between 0.1 and 1.
1016
+ * @default 0.9
1017
+ * @example 0.85
1018
+ */
1019
+ maxWidth: number;
1020
+ /**
1021
+ * @description Maximum number of lines to display at once. Must be between 1 and 10.
1022
+ * @default 2
1023
+ * @example 2
1024
+ */
1025
+ maxLines: number;
1026
+ };
1027
+ /** @description Word-level timing information for caption animation. */
1028
+ WordTiming: {
1029
+ /**
1030
+ * @description The word text to display.
1031
+ * @example Hello
1032
+ */
1033
+ text: string;
1034
+ /**
1035
+ * @description Start time of the word in milliseconds.
1036
+ * @example 0
1037
+ */
1038
+ start: number;
1039
+ /**
1040
+ * @description End time of the word in milliseconds.
1041
+ * @example 400
1042
+ */
1043
+ end: number;
1044
+ /**
1045
+ * @description Speech-to-text confidence score between 0 and 1.
1046
+ * @example 0.98
1047
+ */
1048
+ confidence?: number;
1049
+ };
1050
+ /** @description Font properties for the active/highlighted word. */
1051
+ RichCaptionActiveFont: {
1052
+ /**
1053
+ * @description The active word color using hexadecimal color notation.
1054
+ * @default #ffff00
1055
+ * @example #ffff00
1056
+ */
1057
+ color: string;
1058
+ /**
1059
+ * @description The background color behind the active word using hexadecimal color notation.
1060
+ * @example #000000
1061
+ */
1062
+ background?: string;
1063
+ /**
1064
+ * @description The opacity of the active word where 1 is opaque and 0 is transparent.
1065
+ * @default 1
1066
+ * @example 1
1067
+ */
1068
+ opacity: number;
1069
+ };
1070
+ /** @description Styling properties for the active/highlighted word. */
1071
+ RichCaptionActive: {
1072
+ /** @description Font properties for the active word. */
1073
+ font?: components["schemas"]["RichCaptionActiveFont"];
1074
+ /** @description Stroke properties for the active word. */
1075
+ stroke?: components["schemas"]["RichTextStroke"];
1076
+ /**
1077
+ * @description Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.
1078
+ * @default 1
1079
+ * @example 1.2
1080
+ */
1081
+ scale: number;
1082
+ };
1083
+ /** @description Word-level animation properties for caption effects. */
1084
+ RichCaptionWordAnimation: {
1085
+ /**
1086
+ * @description The animation style to apply to words: <ul>
1087
+ * <li>`karaoke` - Word-by-word color fill as spoken (shows all words, highlights active)</li>
1088
+ * <li>`highlight` - Word changes to active color when spoken (shows all words)</li>
1089
+ * <li>`pop` - Each word scales up when active</li>
1090
+ * <li>`fade` - Gradual opacity transition per word</li>
1091
+ * <li>`slide` - Words slide in from a direction</li>
1092
+ * <li>`bounce` - Spring animation on word appearance</li>
1093
+ * <li>`typewriter` - Words appear one by one and stay visible</li>
1094
+ * <li>`none` - No animation, all words visible immediately</li>
1095
+ * </ul>
1096
+ * @default karaoke
1097
+ * @example karaoke
1098
+ * @enum {string}
1099
+ */
1100
+ style: "karaoke" | "highlight" | "pop" | "fade" | "slide" | "bounce" | "typewriter" | "none";
1101
+ /**
1102
+ * @description Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.
1103
+ * @default 1
1104
+ * @example 1
1105
+ */
1106
+ speed: number;
1107
+ /**
1108
+ * @description Direction for directional animations (slide). Only applicable when style is `slide`.
1109
+ * @default up
1110
+ * @example up
1111
+ * @enum {string}
1112
+ */
1113
+ direction: "left" | "right" | "up" | "down";
1114
+ };
971
1115
  /** @description The TextToImageAsset lets you create a dynamic image from a text prompt. */
972
1116
  TextToImageAsset: {
973
1117
  /**
974
- * @description The type of asset to generate - set to `text-to-image` for text-to-image.
975
- * @default text-to-image
1118
+ * @description The type of asset to generate - set to `text-to-image` for text-to-image. (enum property replaced by openapi-typescript)
976
1119
  * @enum {string}
977
1120
  */
978
1121
  type: "text-to-image";
@@ -2102,7 +2245,7 @@ export interface components {
2102
2245
  weight: unknown;
2103
2246
  /**
2104
2247
  * @description The text color using hexadecimal color notation.
2105
- * @default #ffffff
2248
+ * @default #000000
2106
2249
  * @example #ff0000
2107
2250
  */
2108
2251
  color: string;
@@ -2128,6 +2271,12 @@ export interface components {
2128
2271
  * @example 2
2129
2272
  */
2130
2273
  letterSpacing: number;
2274
+ /**
2275
+ * @description Additional spacing between words in pixels. A value of 0 uses the font's natural space width.
2276
+ * @default 0
2277
+ * @example 10
2278
+ */
2279
+ wordSpacing: number;
2131
2280
  /**
2132
2281
  * @description The line height as a multiplier of the font size. Must be between 0 and 10.
2133
2282
  * @default 1.2