@shotstack/schemas 1.4.1 → 1.4.3
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 +30 -16
- package/dist/schema.d.ts +9 -12
- package/dist/zod/zod.gen.cjs +509 -340
- package/dist/zod/zod.gen.d.ts +1278 -404
- package/dist/zod/zod.gen.js +509 -340
- package/dist/zod/zod.gen.ts +171 -169
- package/package.json +1 -1
package/dist/api.bundled.json
CHANGED
|
@@ -1026,10 +1026,9 @@
|
|
|
1026
1026
|
},
|
|
1027
1027
|
{
|
|
1028
1028
|
"type": "string",
|
|
1029
|
-
"description": "The start position using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to automatically play the clip after the previous clip finishes.",
|
|
1030
|
-
"
|
|
1031
|
-
|
|
1032
|
-
]
|
|
1029
|
+
"description": "The start position using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to automatically play the clip after the previous clip finishes. Use `alias://clip-name` to inherit the start time from the referenced clip.",
|
|
1030
|
+
"pattern": "^(auto|alias://[A-Za-z0-9_-]+)$",
|
|
1031
|
+
"example": "auto"
|
|
1033
1032
|
}
|
|
1034
1033
|
]
|
|
1035
1034
|
},
|
|
@@ -1043,11 +1042,9 @@
|
|
|
1043
1042
|
},
|
|
1044
1043
|
{
|
|
1045
1044
|
"type": "string",
|
|
1046
|
-
"description": "The duration the Clip should play for using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to play the Clip for the duration of the asset. Set to `end` to display or play the clip to the end of the timeline.",
|
|
1047
|
-
"
|
|
1048
|
-
|
|
1049
|
-
"end"
|
|
1050
|
-
]
|
|
1045
|
+
"description": "The duration the Clip should play for using a [smart clip property](/docs/guide/architecting-an-application/smart-clips/). Set to `auto` to play the Clip for the duration of the asset. Set to `end` to display or play the clip to the end of the timeline. Use `alias://clip-name` to inherit the length from the referenced clip.",
|
|
1046
|
+
"pattern": "^(auto|end|alias://[A-Za-z0-9_-]+)$",
|
|
1047
|
+
"example": "auto"
|
|
1051
1048
|
}
|
|
1052
1049
|
]
|
|
1053
1050
|
},
|
|
@@ -1062,9 +1059,22 @@
|
|
|
1062
1059
|
"type": "string"
|
|
1063
1060
|
},
|
|
1064
1061
|
"scale": {
|
|
1065
|
-
"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.",
|
|
1066
|
-
"
|
|
1067
|
-
|
|
1062
|
+
"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.",
|
|
1063
|
+
"oneOf": [
|
|
1064
|
+
{
|
|
1065
|
+
"type": "number",
|
|
1066
|
+
"description": "Scale the asset to a fraction of the viewport size. For example, 0.5 will scale the asset to half the size of the viewport.",
|
|
1067
|
+
"format": "float",
|
|
1068
|
+
"example": 0.5
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"type": "array",
|
|
1072
|
+
"description": "An array of [Tween](./#tocs_tween) objects used to create a custom animation. Animate the scale of an asset over time.",
|
|
1073
|
+
"items": {
|
|
1074
|
+
"$ref": "#/components/schemas/Tween"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1068
1078
|
},
|
|
1069
1079
|
"width": {
|
|
1070
1080
|
"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.",
|
|
@@ -1798,7 +1808,7 @@
|
|
|
1798
1808
|
"type": "string"
|
|
1799
1809
|
},
|
|
1800
1810
|
"src": {
|
|
1801
|
-
"description": "The URL to an SRT or VTT subtitles file.
|
|
1811
|
+
"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.",
|
|
1802
1812
|
"type": "string",
|
|
1803
1813
|
"example": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/captions.srt"
|
|
1804
1814
|
},
|
|
@@ -1815,7 +1825,7 @@
|
|
|
1815
1825
|
"$ref": "#/components/schemas/CaptionMargin"
|
|
1816
1826
|
},
|
|
1817
1827
|
"trim": {
|
|
1818
|
-
"description": "The start trim point of the captions, in seconds (defaults to 0). Remove the trim length from
|
|
1828
|
+
"description": "The start trim point of the captions, in seconds (defaults to 0). Remove the trim length from the start of the captions and allow it to be synced with video or audio. The captions will play until the file ends or the Clip length is reached.",
|
|
1819
1829
|
"type": "number",
|
|
1820
1830
|
"example": 2
|
|
1821
1831
|
},
|
|
@@ -3733,11 +3743,12 @@
|
|
|
3733
3743
|
"type": "object"
|
|
3734
3744
|
},
|
|
3735
3745
|
"ChromaKey": {
|
|
3736
|
-
"description": "Chroma key
|
|
3746
|
+
"description": "Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects.",
|
|
3737
3747
|
"properties": {
|
|
3738
3748
|
"color": {
|
|
3739
|
-
"description": "The chroma key color as a hex value.
|
|
3749
|
+
"description": "The chroma key color as a hex value. Use green (#00b140) for green screens or blue (#0000FF) for blue screens. Any valid hex color can be used as the key color.",
|
|
3740
3750
|
"type": "string",
|
|
3751
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
3741
3752
|
"example": "#00b140"
|
|
3742
3753
|
},
|
|
3743
3754
|
"threshold": {
|
|
@@ -3755,6 +3766,9 @@
|
|
|
3755
3766
|
"example": 100
|
|
3756
3767
|
}
|
|
3757
3768
|
},
|
|
3769
|
+
"required": [
|
|
3770
|
+
"color"
|
|
3771
|
+
],
|
|
3758
3772
|
"type": "object"
|
|
3759
3773
|
},
|
|
3760
3774
|
"Tween": {
|
package/dist/schema.d.ts
CHANGED
|
@@ -498,9 +498,9 @@ export interface components {
|
|
|
498
498
|
Clip: {
|
|
499
499
|
asset: components["schemas"]["Asset"];
|
|
500
500
|
/** @description The start position of the Clip on the timeline. */
|
|
501
|
-
start: number |
|
|
501
|
+
start: number | string;
|
|
502
502
|
/** @description The duration the Clip should play for. */
|
|
503
|
-
length: number |
|
|
503
|
+
length: number | string;
|
|
504
504
|
/**
|
|
505
505
|
* @description Set how the asset should be scaled to fit the viewport using one of the following options:
|
|
506
506
|
* <ul>
|
|
@@ -512,11 +512,8 @@ export interface components {
|
|
|
512
512
|
* @enum {string}
|
|
513
513
|
*/
|
|
514
514
|
fit?: "cover" | "contain" | "crop" | "none";
|
|
515
|
-
/**
|
|
516
|
-
|
|
517
|
-
* @example 0
|
|
518
|
-
*/
|
|
519
|
-
scale?: number;
|
|
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
|
+
scale?: number | components["schemas"]["Tween"][];
|
|
520
517
|
/**
|
|
521
518
|
* @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.
|
|
522
519
|
* @example 800
|
|
@@ -945,7 +942,7 @@ export interface components {
|
|
|
945
942
|
*/
|
|
946
943
|
type: "caption";
|
|
947
944
|
/**
|
|
948
|
-
* @description The URL to an SRT or VTT subtitles file.
|
|
945
|
+
* @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.
|
|
949
946
|
* @example https://s3-ap-northeast-1.amazonaws.com/my-bucket/captions.srt
|
|
950
947
|
*/
|
|
951
948
|
src: string;
|
|
@@ -956,7 +953,7 @@ export interface components {
|
|
|
956
953
|
/** @description Margin properties. */
|
|
957
954
|
margin?: components["schemas"]["CaptionMargin"];
|
|
958
955
|
/**
|
|
959
|
-
* @description The start trim point of the captions, in seconds (defaults to 0). Remove the trim length from
|
|
956
|
+
* @description The start trim point of the captions, in seconds (defaults to 0). Remove the trim length from the start of the captions and allow it to be synced with video or audio. The captions will play until the file ends or the Clip length is reached.
|
|
960
957
|
* @example 2
|
|
961
958
|
*/
|
|
962
959
|
trim?: number;
|
|
@@ -2347,13 +2344,13 @@ export interface components {
|
|
|
2347
2344
|
*/
|
|
2348
2345
|
right?: number;
|
|
2349
2346
|
};
|
|
2350
|
-
/** @description Chroma key
|
|
2347
|
+
/** @description Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects. */
|
|
2351
2348
|
ChromaKey: {
|
|
2352
2349
|
/**
|
|
2353
|
-
* @description The chroma key color as a hex value.
|
|
2350
|
+
* @description The chroma key color as a hex value. Use green (#00b140) for green screens or blue (#0000FF) for blue screens. Any valid hex color can be used as the key color.
|
|
2354
2351
|
* @example #00b140
|
|
2355
2352
|
*/
|
|
2356
|
-
color
|
|
2353
|
+
color: string;
|
|
2357
2354
|
/**
|
|
2358
2355
|
* @description Pixels within this distance from the key color are eliminated by setting their alpha values to zero.
|
|
2359
2356
|
* @example 150
|