@shotstack/schemas 1.8.5 → 1.8.7
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 +50 -75
- package/dist/json-schema/asset.json +95 -101
- package/dist/json-schema/clip.json +95 -101
- package/dist/json-schema/edit.json +95 -101
- package/dist/json-schema/rich-caption-asset.json +234 -240
- package/dist/json-schema/schemas.json +103 -111
- package/dist/json-schema/timeline.json +95 -101
- package/dist/json-schema/track.json +95 -101
- package/dist/schema.d.ts +40 -47
- package/dist/zod/zod.gen.cjs +36 -54
- package/dist/zod/zod.gen.d.ts +1130 -1362
- package/dist/zod/zod.gen.js +31 -49
- package/dist/zod/zod.gen.ts +20 -21
- package/package.json +1 -1
- package/dist/json-schema/word-timing.json +0 -44
|
@@ -1741,32 +1741,93 @@
|
|
|
1741
1741
|
"type": "string"
|
|
1742
1742
|
},
|
|
1743
1743
|
"src": {
|
|
1744
|
-
"
|
|
1745
|
-
{
|
|
1746
|
-
"type": "string"
|
|
1747
|
-
},
|
|
1748
|
-
{
|
|
1749
|
-
"type": "null"
|
|
1750
|
-
}
|
|
1751
|
-
]
|
|
1752
|
-
},
|
|
1753
|
-
"words": {
|
|
1754
|
-
"anyOf": [
|
|
1755
|
-
{
|
|
1756
|
-
"type": "array",
|
|
1757
|
-
"items": {
|
|
1758
|
-
"$ref": "#/$defs/WordTiming"
|
|
1759
|
-
}
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
"type": "null"
|
|
1763
|
-
}
|
|
1764
|
-
]
|
|
1744
|
+
"type": "string"
|
|
1765
1745
|
},
|
|
1766
1746
|
"font": {
|
|
1767
1747
|
"anyOf": [
|
|
1768
1748
|
{
|
|
1769
|
-
"
|
|
1749
|
+
"type": "object",
|
|
1750
|
+
"properties": {
|
|
1751
|
+
"family": {
|
|
1752
|
+
"anyOf": [
|
|
1753
|
+
{
|
|
1754
|
+
"type": "string",
|
|
1755
|
+
"enum": [
|
|
1756
|
+
"Roboto"
|
|
1757
|
+
]
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"type": "null"
|
|
1761
|
+
}
|
|
1762
|
+
]
|
|
1763
|
+
},
|
|
1764
|
+
"size": {
|
|
1765
|
+
"anyOf": [
|
|
1766
|
+
{
|
|
1767
|
+
"type": "integer",
|
|
1768
|
+
"minimum": 1,
|
|
1769
|
+
"maximum": 500
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"type": "null"
|
|
1773
|
+
}
|
|
1774
|
+
]
|
|
1775
|
+
},
|
|
1776
|
+
"weight": {
|
|
1777
|
+
"anyOf": [
|
|
1778
|
+
{
|
|
1779
|
+
"type": "string"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"type": "null"
|
|
1783
|
+
}
|
|
1784
|
+
]
|
|
1785
|
+
},
|
|
1786
|
+
"color": {
|
|
1787
|
+
"anyOf": [
|
|
1788
|
+
{
|
|
1789
|
+
"type": "string",
|
|
1790
|
+
"enum": [
|
|
1791
|
+
"#ffffff"
|
|
1792
|
+
]
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"type": "null"
|
|
1796
|
+
}
|
|
1797
|
+
]
|
|
1798
|
+
},
|
|
1799
|
+
"opacity": {
|
|
1800
|
+
"anyOf": [
|
|
1801
|
+
{
|
|
1802
|
+
"type": "number",
|
|
1803
|
+
"minimum": 0,
|
|
1804
|
+
"maximum": 1
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"type": "null"
|
|
1808
|
+
}
|
|
1809
|
+
]
|
|
1810
|
+
},
|
|
1811
|
+
"background": {
|
|
1812
|
+
"anyOf": [
|
|
1813
|
+
{
|
|
1814
|
+
"type": "string"
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"type": "null"
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
"additionalProperties": false,
|
|
1823
|
+
"required": [
|
|
1824
|
+
"family",
|
|
1825
|
+
"size",
|
|
1826
|
+
"weight",
|
|
1827
|
+
"color",
|
|
1828
|
+
"opacity",
|
|
1829
|
+
"background"
|
|
1830
|
+
]
|
|
1770
1831
|
},
|
|
1771
1832
|
{
|
|
1772
1833
|
"type": "null"
|
|
@@ -1813,6 +1874,16 @@
|
|
|
1813
1874
|
}
|
|
1814
1875
|
]
|
|
1815
1876
|
},
|
|
1877
|
+
"border": {
|
|
1878
|
+
"anyOf": [
|
|
1879
|
+
{
|
|
1880
|
+
"$ref": "#/$defs/RichTextAsset/properties/border"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"type": "null"
|
|
1884
|
+
}
|
|
1885
|
+
]
|
|
1886
|
+
},
|
|
1816
1887
|
"padding": {
|
|
1817
1888
|
"anyOf": [
|
|
1818
1889
|
{
|
|
@@ -1856,99 +1927,22 @@
|
|
|
1856
1927
|
"type": "null"
|
|
1857
1928
|
}
|
|
1858
1929
|
]
|
|
1859
|
-
},
|
|
1860
|
-
"position": {
|
|
1861
|
-
"anyOf": [
|
|
1862
|
-
{
|
|
1863
|
-
"type": "string",
|
|
1864
|
-
"enum": [
|
|
1865
|
-
"top",
|
|
1866
|
-
"center",
|
|
1867
|
-
"bottom"
|
|
1868
|
-
]
|
|
1869
|
-
},
|
|
1870
|
-
{
|
|
1871
|
-
"type": "null"
|
|
1872
|
-
}
|
|
1873
|
-
]
|
|
1874
|
-
},
|
|
1875
|
-
"maxWidth": {
|
|
1876
|
-
"anyOf": [
|
|
1877
|
-
{
|
|
1878
|
-
"type": "number",
|
|
1879
|
-
"minimum": 0.1,
|
|
1880
|
-
"maximum": 1
|
|
1881
|
-
},
|
|
1882
|
-
{
|
|
1883
|
-
"type": "null"
|
|
1884
|
-
}
|
|
1885
|
-
]
|
|
1886
|
-
},
|
|
1887
|
-
"maxLines": {
|
|
1888
|
-
"anyOf": [
|
|
1889
|
-
{
|
|
1890
|
-
"type": "integer",
|
|
1891
|
-
"minimum": 1,
|
|
1892
|
-
"maximum": 10
|
|
1893
|
-
},
|
|
1894
|
-
{
|
|
1895
|
-
"type": "null"
|
|
1896
|
-
}
|
|
1897
|
-
]
|
|
1898
1930
|
}
|
|
1899
1931
|
},
|
|
1900
1932
|
"additionalProperties": false,
|
|
1901
1933
|
"required": [
|
|
1902
1934
|
"type",
|
|
1903
1935
|
"src",
|
|
1904
|
-
"words",
|
|
1905
1936
|
"font",
|
|
1906
1937
|
"style",
|
|
1907
1938
|
"stroke",
|
|
1908
1939
|
"shadow",
|
|
1909
1940
|
"background",
|
|
1941
|
+
"border",
|
|
1910
1942
|
"padding",
|
|
1911
1943
|
"align",
|
|
1912
1944
|
"active",
|
|
1913
|
-
"wordAnimation"
|
|
1914
|
-
"position",
|
|
1915
|
-
"maxWidth",
|
|
1916
|
-
"maxLines"
|
|
1917
|
-
]
|
|
1918
|
-
},
|
|
1919
|
-
"WordTiming": {
|
|
1920
|
-
"type": "object",
|
|
1921
|
-
"properties": {
|
|
1922
|
-
"text": {
|
|
1923
|
-
"type": "string"
|
|
1924
|
-
},
|
|
1925
|
-
"start": {
|
|
1926
|
-
"type": "number",
|
|
1927
|
-
"minimum": 0
|
|
1928
|
-
},
|
|
1929
|
-
"end": {
|
|
1930
|
-
"type": "number",
|
|
1931
|
-
"minimum": 0
|
|
1932
|
-
},
|
|
1933
|
-
"confidence": {
|
|
1934
|
-
"anyOf": [
|
|
1935
|
-
{
|
|
1936
|
-
"type": "number",
|
|
1937
|
-
"minimum": 0,
|
|
1938
|
-
"maximum": 1
|
|
1939
|
-
},
|
|
1940
|
-
{
|
|
1941
|
-
"type": "null"
|
|
1942
|
-
}
|
|
1943
|
-
]
|
|
1944
|
-
}
|
|
1945
|
-
},
|
|
1946
|
-
"additionalProperties": false,
|
|
1947
|
-
"required": [
|
|
1948
|
-
"text",
|
|
1949
|
-
"start",
|
|
1950
|
-
"end",
|
|
1951
|
-
"confidence"
|
|
1945
|
+
"wordAnimation"
|
|
1952
1946
|
]
|
|
1953
1947
|
},
|
|
1954
1948
|
"RichCaptionActive": {
|
package/dist/schema.d.ts
CHANGED
|
@@ -990,14 +990,47 @@ export interface components {
|
|
|
990
990
|
*/
|
|
991
991
|
type: "rich-caption";
|
|
992
992
|
/**
|
|
993
|
-
* @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.
|
|
993
|
+
* @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.
|
|
994
994
|
* @example alias://audio
|
|
995
995
|
*/
|
|
996
|
-
src
|
|
997
|
-
/** @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`. */
|
|
998
|
-
words?: components["schemas"]["WordTiming"][];
|
|
996
|
+
src: string;
|
|
999
997
|
/** @description Font styling properties for inactive words. */
|
|
1000
|
-
font?:
|
|
998
|
+
font?: {
|
|
999
|
+
/**
|
|
1000
|
+
* @description The font family name. This must be the Family name embedded in the font, i.e. "Roboto".
|
|
1001
|
+
* @default Roboto
|
|
1002
|
+
* @example Roboto
|
|
1003
|
+
*/
|
|
1004
|
+
family?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* @description The size of the font in pixels (px). Must be between 1 and 500.
|
|
1007
|
+
* @default 24
|
|
1008
|
+
* @example 48
|
|
1009
|
+
*/
|
|
1010
|
+
size?: number;
|
|
1011
|
+
/**
|
|
1012
|
+
* @description The weight of the font. Can be a number (100-900) or a string ('normal', 'bold', etc.). 100 is lightest, 900 is heaviest (boldest).
|
|
1013
|
+
* @default 400
|
|
1014
|
+
*/
|
|
1015
|
+
weight?: unknown;
|
|
1016
|
+
/**
|
|
1017
|
+
* @description The text color using hexadecimal color notation.
|
|
1018
|
+
* @default #ffffff
|
|
1019
|
+
* @example #ffffff
|
|
1020
|
+
*/
|
|
1021
|
+
color?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* @description The opacity of the text where 1 is opaque and 0 is transparent.
|
|
1024
|
+
* @default 1
|
|
1025
|
+
* @example 0.9
|
|
1026
|
+
*/
|
|
1027
|
+
opacity?: number;
|
|
1028
|
+
/**
|
|
1029
|
+
* @description The background color behind the text using hexadecimal color notation.
|
|
1030
|
+
* @example #000000
|
|
1031
|
+
*/
|
|
1032
|
+
background?: string;
|
|
1033
|
+
};
|
|
1001
1034
|
/** @description Text style properties including spacing, line height, and transformations. */
|
|
1002
1035
|
style?: components["schemas"]["RichTextStyle"];
|
|
1003
1036
|
/** @description Text stroke (outline) properties for inactive words. */
|
|
@@ -1006,6 +1039,8 @@ export interface components {
|
|
|
1006
1039
|
shadow?: components["schemas"]["RichTextShadow"];
|
|
1007
1040
|
/** @description Background styling properties for the caption bounding box. */
|
|
1008
1041
|
background?: components["schemas"]["RichTextBackground"];
|
|
1042
|
+
/** @description Border styling properties for the caption bounding box. */
|
|
1043
|
+
border?: components["schemas"]["RichTextAsset"]["border"];
|
|
1009
1044
|
/** @description Padding inside the caption bounding box. Can be a single number (applied to all sides) or an object with individual sides. */
|
|
1010
1045
|
padding?: number | components["schemas"]["RichTextAsset"]["padding"]["oneOf"]["1"];
|
|
1011
1046
|
/** @description Text alignment properties (horizontal and vertical). */
|
|
@@ -1014,48 +1049,6 @@ export interface components {
|
|
|
1014
1049
|
active?: components["schemas"]["RichCaptionActive"];
|
|
1015
1050
|
/** @description Word-level animation properties controlling how words are highlighted or revealed. */
|
|
1016
1051
|
wordAnimation?: components["schemas"]["RichCaptionWordAnimation"];
|
|
1017
|
-
/**
|
|
1018
|
-
* @description Vertical position of the caption on screen.
|
|
1019
|
-
* @default bottom
|
|
1020
|
-
* @example bottom
|
|
1021
|
-
* @enum {string}
|
|
1022
|
-
*/
|
|
1023
|
-
position?: "top" | "center" | "bottom";
|
|
1024
|
-
/**
|
|
1025
|
-
* @description Maximum width of the caption as a ratio of the frame width. Must be between 0.1 and 1.
|
|
1026
|
-
* @default 0.9
|
|
1027
|
-
* @example 0.85
|
|
1028
|
-
*/
|
|
1029
|
-
maxWidth?: number;
|
|
1030
|
-
/**
|
|
1031
|
-
* @description Maximum number of lines to display at once. Must be between 1 and 10.
|
|
1032
|
-
* @default 2
|
|
1033
|
-
* @example 2
|
|
1034
|
-
*/
|
|
1035
|
-
maxLines?: number;
|
|
1036
|
-
};
|
|
1037
|
-
/** @description Word-level timing information for caption animation. */
|
|
1038
|
-
WordTiming: {
|
|
1039
|
-
/**
|
|
1040
|
-
* @description The word text to display.
|
|
1041
|
-
* @example Hello
|
|
1042
|
-
*/
|
|
1043
|
-
text: string;
|
|
1044
|
-
/**
|
|
1045
|
-
* @description Start time of the word in milliseconds.
|
|
1046
|
-
* @example 0
|
|
1047
|
-
*/
|
|
1048
|
-
start: number;
|
|
1049
|
-
/**
|
|
1050
|
-
* @description End time of the word in milliseconds.
|
|
1051
|
-
* @example 400
|
|
1052
|
-
*/
|
|
1053
|
-
end: number;
|
|
1054
|
-
/**
|
|
1055
|
-
* @description Speech-to-text confidence score between 0 and 1.
|
|
1056
|
-
* @example 0.98
|
|
1057
|
-
*/
|
|
1058
|
-
confidence?: number;
|
|
1059
1052
|
};
|
|
1060
1053
|
/** @description Font properties for the active/highlighted word. */
|
|
1061
1054
|
RichCaptionActiveFont: {
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema = exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = exports.chromaKeySchema = exports.chromakeyChromaKeySchema = exports.captionAssetSchema = exports.captionassetCaptionAssetSchema = exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema = exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema = exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema = exports.uploadRootSchema = exports.templatesrenderRootSchema = exports.templatesidRootSchema = exports.templatesRootSchema = exports.sourcesidRootSchema = exports.sourcesRootSchema = exports.renderidRootSchema = exports.renderRootSchema = exports.probeRootSchema = exports.generateassetidRootSchema = exports.generateassetRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
5
|
exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema = exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema = exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema = exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema = exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema = exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema = exports.cropSchema = exports.cropCropSchema = exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema = exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema = exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = void 0;
|
|
6
6
|
exports.transcriptionSchema = exports.transcriptionTranscriptionSchema = exports.speedSchema = exports.speedSpeedSchema = exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema = exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema = exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema = exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema = exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema = exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema = exports.enhancementsSchema = exports.enhancementsEnhancementsSchema = exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema = exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema = exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema = exports.imageAssetSchema = exports.imageassetImageAssetSchema = exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema = exports.fontSchema = exports.fontFontSchema = exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema = exports.destinationsSchema = exports.destinationsDestinationsSchema = exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema = exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = exports.tiktokDestinationTiktokDestinationSchema = exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema = void 0;
|
|
7
|
-
exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.
|
|
8
|
-
exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema = exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema = exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema =
|
|
9
|
-
exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = exports.svgShapeSchema = exports.svgshapesSvgShapeSchema = exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema = exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema = exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema = exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema = exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema = exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema = exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema = exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema = exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema = exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema = exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema = exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema = exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema = exports.svgFillSchema = exports.svgpropertiesSvgFillSchema = exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema = exports.svgShadowSchema =
|
|
10
|
-
exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema =
|
|
11
|
-
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse =
|
|
7
|
+
exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionFontSchema = exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema = exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema = exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema = exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema = exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema = exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema = exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema = exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema = exports.probeResponseSchema = exports.proberesponseProbeResponseSchema = exports.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = exports.posterSchema = exports.posterPosterSchema = exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema = void 0;
|
|
8
|
+
exports.svgpropertiesSvgShadowSchema = exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema = exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema = exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = void 0;
|
|
9
|
+
exports.thumbnailThumbnailSchema = exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = exports.svgShapeSchema = exports.svgshapesSvgShapeSchema = exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema = exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema = exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema = exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema = exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema = exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema = exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema = exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema = exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema = exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema = exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema = exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema = exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema = exports.svgFillSchema = exports.svgpropertiesSvgFillSchema = exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema = exports.svgShadowSchema = void 0;
|
|
10
|
+
exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = void 0;
|
|
11
|
+
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = void 0;
|
|
12
12
|
const zod_1 = require("zod");
|
|
13
13
|
exports.editRootSchema = zod_1.z.unknown();
|
|
14
14
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
@@ -824,7 +824,7 @@ exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSche
|
|
|
824
824
|
* Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.
|
|
825
825
|
*/
|
|
826
826
|
exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = zod_1.z.object({
|
|
827
|
-
provider: zod_1.z.
|
|
827
|
+
provider: zod_1.z.literal("akamai-netstorage"),
|
|
828
828
|
options: zod_1.z.optional(exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema),
|
|
829
829
|
}).strict();
|
|
830
830
|
/**
|
|
@@ -840,7 +840,7 @@ exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSche
|
|
|
840
840
|
* Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.
|
|
841
841
|
*/
|
|
842
842
|
exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = zod_1.z.object({
|
|
843
|
-
provider: zod_1.z.
|
|
843
|
+
provider: zod_1.z.literal("azure-blob-storage"),
|
|
844
844
|
options: zod_1.z.optional(exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema),
|
|
845
845
|
}).strict();
|
|
846
846
|
/**
|
|
@@ -977,7 +977,9 @@ exports.destinationsDestinationsSchema = zod_1.z.discriminatedUnion("provider",
|
|
|
977
977
|
exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema,
|
|
978
978
|
exports.googleDriveDestinationGoogleDriveDestinationSchema,
|
|
979
979
|
exports.vimeoDestinationVimeoDestinationSchema,
|
|
980
|
-
exports.tiktokDestinationTiktokDestinationSchema
|
|
980
|
+
exports.tiktokDestinationTiktokDestinationSchema,
|
|
981
|
+
exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema,
|
|
982
|
+
exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema
|
|
981
983
|
]);
|
|
982
984
|
exports.destinationsSchema = exports.destinationsDestinationsSchema;
|
|
983
985
|
/**
|
|
@@ -1364,6 +1366,29 @@ exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
|
|
|
1364
1366
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1365
1367
|
}).strict();
|
|
1366
1368
|
exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1369
|
+
/**
|
|
1370
|
+
* Font properties for rich captions. Defaults to Roboto.
|
|
1371
|
+
*/
|
|
1372
|
+
exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
1373
|
+
family: zod_1.z.optional(zod_1.z.string()).default("Roboto"),
|
|
1374
|
+
size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1375
|
+
return undefined; if (Array.isArray(v))
|
|
1376
|
+
return v; if (typeof v === 'string') {
|
|
1377
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1378
|
+
return v;
|
|
1379
|
+
return Number(v);
|
|
1380
|
+
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1381
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
|
|
1382
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
1383
|
+
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1384
|
+
return undefined; if (Array.isArray(v))
|
|
1385
|
+
return v; if (typeof v === 'string') {
|
|
1386
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1387
|
+
return v;
|
|
1388
|
+
return Number(v);
|
|
1389
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1390
|
+
background: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1391
|
+
}).strict();
|
|
1367
1392
|
/**
|
|
1368
1393
|
* Word-level animation properties for caption effects.
|
|
1369
1394
|
*/
|
|
@@ -1388,34 +1413,6 @@ exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
|
1388
1413
|
direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
|
|
1389
1414
|
}).strict();
|
|
1390
1415
|
exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1391
|
-
/**
|
|
1392
|
-
* Word-level timing information for caption animation.
|
|
1393
|
-
*/
|
|
1394
|
-
exports.richcaptionpropertiesWordTimingSchema = zod_1.z.object({
|
|
1395
|
-
text: zod_1.z.string().min(1),
|
|
1396
|
-
start: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1397
|
-
return undefined; if (Array.isArray(v))
|
|
1398
|
-
return v; if (typeof v === 'string') {
|
|
1399
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1400
|
-
return v;
|
|
1401
|
-
return Number(v);
|
|
1402
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1403
|
-
end: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1404
|
-
return undefined; if (Array.isArray(v))
|
|
1405
|
-
return v; if (typeof v === 'string') {
|
|
1406
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1407
|
-
return v;
|
|
1408
|
-
return Number(v);
|
|
1409
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1410
|
-
confidence: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1411
|
-
return undefined; if (Array.isArray(v))
|
|
1412
|
-
return v; if (typeof v === 'string') {
|
|
1413
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1414
|
-
return v;
|
|
1415
|
-
return Number(v);
|
|
1416
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1417
|
-
}).strict();
|
|
1418
|
-
exports.wordTimingSchema = exports.richcaptionpropertiesWordTimingSchema;
|
|
1419
1416
|
/**
|
|
1420
1417
|
* Text alignment properties (horizontal and vertical).
|
|
1421
1418
|
*/
|
|
@@ -1688,13 +1685,13 @@ exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
|
1688
1685
|
*/
|
|
1689
1686
|
exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
1690
1687
|
type: zod_1.z.enum(["rich-caption"]),
|
|
1691
|
-
src: zod_1.z.
|
|
1692
|
-
|
|
1693
|
-
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1688
|
+
src: zod_1.z.string().min(1),
|
|
1689
|
+
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionFontSchema),
|
|
1694
1690
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1695
1691
|
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1696
1692
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1697
1693
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1694
|
+
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1698
1695
|
padding: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1699
1696
|
return undefined; if (Array.isArray(v))
|
|
1700
1697
|
return v; if (typeof v === 'string') {
|
|
@@ -1705,21 +1702,6 @@ exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
|
1705
1702
|
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1706
1703
|
active: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveSchema),
|
|
1707
1704
|
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema),
|
|
1708
|
-
position: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
|
|
1709
|
-
maxWidth: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1710
|
-
return undefined; if (Array.isArray(v))
|
|
1711
|
-
return v; if (typeof v === 'string') {
|
|
1712
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1713
|
-
return v;
|
|
1714
|
-
return Number(v);
|
|
1715
|
-
} return v; }), zod_1.z.number().gte(0.1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.9),
|
|
1716
|
-
maxLines: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1717
|
-
return undefined; if (Array.isArray(v))
|
|
1718
|
-
return v; if (typeof v === 'string') {
|
|
1719
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1720
|
-
return v;
|
|
1721
|
-
return Number(v);
|
|
1722
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2),
|
|
1723
1705
|
}).strict();
|
|
1724
1706
|
exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
1725
1707
|
/**
|