@shotstack/schemas 1.4.4 → 1.4.6

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.
@@ -939,6 +939,7 @@
939
939
  "tracks": {
940
940
  "description": "A timeline consists of an array of tracks, each track containing clips. Tracks are layered on top of each other in the same order they are added to the array with the top most track layered over the top of those below it. Ensure that a track containing titles is the top most track so that it is displayed above videos and images.",
941
941
  "type": "array",
942
+ "minItems": 1,
942
943
  "items": {
943
944
  "$ref": "#/components/schemas/Track"
944
945
  }
@@ -959,6 +960,8 @@
959
960
  "src": {
960
961
  "description": "The URL of the mp3 audio file. The URL must be publicly accessible or include credentials.",
961
962
  "type": "string",
963
+ "minLength": 1,
964
+ "pattern": "\\S",
962
965
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/music.mp3"
963
966
  },
964
967
  "effect": {
@@ -1000,6 +1003,7 @@
1000
1003
  "clips": {
1001
1004
  "description": "An array of Clips comprising of TitleClip, ImageClip or VideoClip.",
1002
1005
  "type": "array",
1006
+ "minItems": 1,
1003
1007
  "items": {
1004
1008
  "$ref": "#/components/schemas/Clip"
1005
1009
  }
@@ -1022,6 +1026,7 @@
1022
1026
  {
1023
1027
  "type": "number",
1024
1028
  "description": "The start position of the Clip on the timeline, in seconds. For example, to start the Clip at 2 seconds, set the start value to 2.",
1029
+ "minimum": 0,
1025
1030
  "example": 2
1026
1031
  },
1027
1032
  {
@@ -1038,6 +1043,7 @@
1038
1043
  {
1039
1044
  "type": "number",
1040
1045
  "description": "The duration the Clip should play for, in seconds. For example, to play the Clip for 5 seconds, set the length value to 5.",
1046
+ "minimum": 0,
1041
1047
  "example": 5
1042
1048
  },
1043
1049
  {
@@ -1078,14 +1084,16 @@
1078
1084
  },
1079
1085
  "width": {
1080
1086
  "description": "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.",
1081
- "type": "integer",
1087
+ "type": "number",
1088
+ "format": "float",
1082
1089
  "minimum": 1,
1083
1090
  "maximum": 3840,
1084
1091
  "example": 800
1085
1092
  },
1086
1093
  "height": {
1087
1094
  "description": "Set the height of the clip bounding box in pixels. This constrains the height of the clip, overriding the default behavior where clips fill the viewport height.",
1088
- "type": "integer",
1095
+ "type": "number",
1096
+ "format": "float",
1089
1097
  "minimum": 1,
1090
1098
  "maximum": 2160,
1091
1099
  "example": 600
@@ -1266,6 +1274,8 @@
1266
1274
  "src": {
1267
1275
  "description": "The video source URL. The URL must be publicly accessible or include credentials.",
1268
1276
  "type": "string",
1277
+ "minLength": 1,
1278
+ "pattern": "\\S",
1269
1279
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/video.mp4"
1270
1280
  },
1271
1281
  "transcode": {
@@ -1343,6 +1353,8 @@
1343
1353
  "src": {
1344
1354
  "description": "The image source URL. The URL must be publicly accessible or include credentials.",
1345
1355
  "type": "string",
1356
+ "minLength": 1,
1357
+ "pattern": "\\S",
1346
1358
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg"
1347
1359
  },
1348
1360
  "crop": {
@@ -1369,6 +1381,8 @@
1369
1381
  "text": {
1370
1382
  "description": "The text string to display.",
1371
1383
  "type": "string",
1384
+ "minLength": 1,
1385
+ "pattern": "\\S",
1372
1386
  "example": "Hello World"
1373
1387
  },
1374
1388
  "width": {
@@ -1462,8 +1476,10 @@
1462
1476
  "text": {
1463
1477
  "description": "The text string to display. Maximum 5000 characters.",
1464
1478
  "type": "string",
1465
- "example": "Hello World",
1466
- "maxLength": 5000
1479
+ "minLength": 1,
1480
+ "maxLength": 5000,
1481
+ "pattern": "\\S",
1482
+ "example": "Hello World"
1467
1483
  },
1468
1484
  "font": {
1469
1485
  "description": "Font styling properties.",
@@ -1590,6 +1606,8 @@
1590
1606
  "src": {
1591
1607
  "description": "The audio source URL. The URL must be publicly accessible or include credentials.",
1592
1608
  "type": "string",
1609
+ "minLength": 1,
1610
+ "pattern": "\\S",
1593
1611
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/sound.mp3"
1594
1612
  },
1595
1613
  "trim": {
@@ -1783,6 +1801,8 @@
1783
1801
  "src": {
1784
1802
  "description": "The luma matte source URL. The URL must be publicly accessible or include credentials.",
1785
1803
  "type": "string",
1804
+ "minLength": 1,
1805
+ "pattern": "\\S",
1786
1806
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/mask.mp4"
1787
1807
  },
1788
1808
  "trim": {
@@ -1810,6 +1830,8 @@
1810
1830
  "src": {
1811
1831
  "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. The system will automatically transcribe the audio and detect the language.",
1812
1832
  "type": "string",
1833
+ "minLength": 1,
1834
+ "pattern": "\\S",
1813
1835
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/captions.srt"
1814
1836
  },
1815
1837
  "font": {
@@ -1892,6 +1914,7 @@
1892
1914
  "src": {
1893
1915
  "description": "The image source URL. The URL must be publicly accessible or include credentials.",
1894
1916
  "type": "string",
1917
+ "minLength": 1,
1895
1918
  "example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg"
1896
1919
  },
1897
1920
  "prompt": {
@@ -1924,7 +1947,12 @@
1924
1947
  "crop": {
1925
1948
  "$ref": "#/components/schemas/Crop"
1926
1949
  }
1927
- }
1950
+ },
1951
+ "type": "object",
1952
+ "required": [
1953
+ "type",
1954
+ "src"
1955
+ ]
1928
1956
  },
1929
1957
  "HtmlAsset": {
1930
1958
  "deprecated": true,
@@ -1942,6 +1970,8 @@
1942
1970
  "html": {
1943
1971
  "description": "The HTML text string. See list of [supported HTML tags](https://shotstack.io/docs/guide/architecting-an-application/html-support/#supported-html-tags).",
1944
1972
  "type": "string",
1973
+ "minLength": 1,
1974
+ "pattern": "\\S",
1945
1975
  "example": "<p>Hello <b>World</b></p>"
1946
1976
  },
1947
1977
  "css": {
@@ -3613,16 +3643,8 @@
3613
3643
  ],
3614
3644
  "example": "shift"
3615
3645
  },
3616
- "speed": {
3617
- "description": "Animation speed multiplier. Must be between 0.1 and 10. Higher is faster.",
3618
- "type": "number",
3619
- "minimum": 0.1,
3620
- "maximum": 10,
3621
- "default": 1,
3622
- "example": 1.5
3623
- },
3624
3646
  "duration": {
3625
- "description": "Override animation duration in seconds. If not specified, calculated based on text length and speed. Must be between 0.1 and 30 seconds.",
3647
+ "description": "Override animation duration in seconds. Must be between 0.1 and 30 seconds.",
3626
3648
  "type": "number",
3627
3649
  "minimum": 0.1,
3628
3650
  "maximum": 30,
package/dist/schema.d.ts CHANGED
@@ -515,11 +515,13 @@ export interface components {
515
515
  /** @description Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks. Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation. */
516
516
  scale?: number | components["schemas"]["Tween"][];
517
517
  /**
518
+ * Format: float
518
519
  * @description 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.
519
520
  * @example 800
520
521
  */
521
522
  width?: number;
522
523
  /**
524
+ * Format: float
523
525
  * @description Set the height of the clip bounding box in pixels. This constrains the height of the clip, overriding the default behavior where clips fill the viewport height.
524
526
  * @example 600
525
527
  */
@@ -992,8 +994,7 @@ export interface components {
992
994
  /** @description The ImageToVideoAsset lets you create a video from an image and a text prompt. */
993
995
  ImageToVideoAsset: {
994
996
  /**
995
- * @description The type of asset to generate - set to `image-to-video` for image-to-video.
996
- * @default image-to-video
997
+ * @description The type of asset to generate - set to `image-to-video` for image-to-video. (enum property replaced by openapi-typescript)
997
998
  * @enum {string}
998
999
  */
999
1000
  type: "image-to-video";
@@ -1001,7 +1002,7 @@ export interface components {
1001
1002
  * @description The image source URL. The URL must be publicly accessible or include credentials.
1002
1003
  * @example https://s3-ap-northeast-1.amazonaws.com/my-bucket/image.jpg
1003
1004
  */
1004
- src?: string;
1005
+ src: string;
1005
1006
  /**
1006
1007
  * @description The instructions for modifying the image into a video sequence.
1007
1008
  * @example Slowly zoom out and orbit left around the object.
@@ -2237,13 +2238,7 @@ export interface components {
2237
2238
  */
2238
2239
  preset: "fadeIn" | "slideIn" | "typewriter" | "ascend" | "shift" | "movingLetters";
2239
2240
  /**
2240
- * @description Animation speed multiplier. Must be between 0.1 and 10. Higher is faster.
2241
- * @default 1
2242
- * @example 1.5
2243
- */
2244
- speed: number;
2245
- /**
2246
- * @description Override animation duration in seconds. If not specified, calculated based on text length and speed. Must be between 0.1 and 30 seconds.
2241
+ * @description Override animation duration in seconds. Must be between 0.1 and 30 seconds.
2247
2242
  * @example 2
2248
2243
  */
2249
2244
  duration?: number;