@shotstack/schemas 1.9.2 → 1.9.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 +45 -1
- package/dist/json-schema/asset.json +74 -1
- package/dist/json-schema/clip.json +74 -1
- package/dist/json-schema/edit.json +74 -1
- package/dist/json-schema/rich-caption-asset.json +162 -89
- package/dist/json-schema/schemas.json +79 -1
- package/dist/json-schema/timeline.json +74 -1
- package/dist/json-schema/track.json +74 -1
- package/dist/schema.d.ts +30 -1
- package/dist/zod/zod.gen.cjs +66 -35
- package/dist/zod/zod.gen.d.ts +115 -155
- package/dist/zod/zod.gen.js +61 -30
- package/dist/zod/zod.gen.ts +46 -26
- package/package.json +1 -1
|
@@ -1950,7 +1950,80 @@
|
|
|
1950
1950
|
"style": {
|
|
1951
1951
|
"anyOf": [
|
|
1952
1952
|
{
|
|
1953
|
-
"
|
|
1953
|
+
"type": "object",
|
|
1954
|
+
"properties": {
|
|
1955
|
+
"letterSpacing": {
|
|
1956
|
+
"anyOf": [
|
|
1957
|
+
{
|
|
1958
|
+
"type": "number"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"type": "null"
|
|
1962
|
+
}
|
|
1963
|
+
]
|
|
1964
|
+
},
|
|
1965
|
+
"lineHeight": {
|
|
1966
|
+
"anyOf": [
|
|
1967
|
+
{
|
|
1968
|
+
"type": "number",
|
|
1969
|
+
"minimum": 0,
|
|
1970
|
+
"maximum": 10
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"type": "null"
|
|
1974
|
+
}
|
|
1975
|
+
]
|
|
1976
|
+
},
|
|
1977
|
+
"textTransform": {
|
|
1978
|
+
"anyOf": [
|
|
1979
|
+
{
|
|
1980
|
+
"type": "string",
|
|
1981
|
+
"enum": [
|
|
1982
|
+
"none",
|
|
1983
|
+
"uppercase",
|
|
1984
|
+
"lowercase",
|
|
1985
|
+
"capitalize"
|
|
1986
|
+
]
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"type": "null"
|
|
1990
|
+
}
|
|
1991
|
+
]
|
|
1992
|
+
},
|
|
1993
|
+
"textDecoration": {
|
|
1994
|
+
"anyOf": [
|
|
1995
|
+
{
|
|
1996
|
+
"type": "string",
|
|
1997
|
+
"enum": [
|
|
1998
|
+
"none",
|
|
1999
|
+
"underline",
|
|
2000
|
+
"line-through"
|
|
2001
|
+
]
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
"type": "null"
|
|
2005
|
+
}
|
|
2006
|
+
]
|
|
2007
|
+
},
|
|
2008
|
+
"gradient": {
|
|
2009
|
+
"anyOf": [
|
|
2010
|
+
{
|
|
2011
|
+
"$ref": "#/$defs/RichTextGradient"
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"type": "null"
|
|
2015
|
+
}
|
|
2016
|
+
]
|
|
2017
|
+
}
|
|
2018
|
+
},
|
|
2019
|
+
"additionalProperties": false,
|
|
2020
|
+
"required": [
|
|
2021
|
+
"letterSpacing",
|
|
2022
|
+
"lineHeight",
|
|
2023
|
+
"textTransform",
|
|
2024
|
+
"textDecoration",
|
|
2025
|
+
"gradient"
|
|
2026
|
+
]
|
|
1954
2027
|
},
|
|
1955
2028
|
{
|
|
1956
2029
|
"type": "null"
|
|
@@ -1837,7 +1837,80 @@
|
|
|
1837
1837
|
"style": {
|
|
1838
1838
|
"anyOf": [
|
|
1839
1839
|
{
|
|
1840
|
-
"
|
|
1840
|
+
"type": "object",
|
|
1841
|
+
"properties": {
|
|
1842
|
+
"letterSpacing": {
|
|
1843
|
+
"anyOf": [
|
|
1844
|
+
{
|
|
1845
|
+
"type": "number"
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"type": "null"
|
|
1849
|
+
}
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1852
|
+
"lineHeight": {
|
|
1853
|
+
"anyOf": [
|
|
1854
|
+
{
|
|
1855
|
+
"type": "number",
|
|
1856
|
+
"minimum": 0,
|
|
1857
|
+
"maximum": 10
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"type": "null"
|
|
1861
|
+
}
|
|
1862
|
+
]
|
|
1863
|
+
},
|
|
1864
|
+
"textTransform": {
|
|
1865
|
+
"anyOf": [
|
|
1866
|
+
{
|
|
1867
|
+
"type": "string",
|
|
1868
|
+
"enum": [
|
|
1869
|
+
"none",
|
|
1870
|
+
"uppercase",
|
|
1871
|
+
"lowercase",
|
|
1872
|
+
"capitalize"
|
|
1873
|
+
]
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"type": "null"
|
|
1877
|
+
}
|
|
1878
|
+
]
|
|
1879
|
+
},
|
|
1880
|
+
"textDecoration": {
|
|
1881
|
+
"anyOf": [
|
|
1882
|
+
{
|
|
1883
|
+
"type": "string",
|
|
1884
|
+
"enum": [
|
|
1885
|
+
"none",
|
|
1886
|
+
"underline",
|
|
1887
|
+
"line-through"
|
|
1888
|
+
]
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"type": "null"
|
|
1892
|
+
}
|
|
1893
|
+
]
|
|
1894
|
+
},
|
|
1895
|
+
"gradient": {
|
|
1896
|
+
"anyOf": [
|
|
1897
|
+
{
|
|
1898
|
+
"$ref": "#/$defs/RichTextGradient"
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"type": "null"
|
|
1902
|
+
}
|
|
1903
|
+
]
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1906
|
+
"additionalProperties": false,
|
|
1907
|
+
"required": [
|
|
1908
|
+
"letterSpacing",
|
|
1909
|
+
"lineHeight",
|
|
1910
|
+
"textTransform",
|
|
1911
|
+
"textDecoration",
|
|
1912
|
+
"gradient"
|
|
1913
|
+
]
|
|
1841
1914
|
},
|
|
1842
1915
|
{
|
|
1843
1916
|
"type": "null"
|
package/dist/schema.d.ts
CHANGED
|
@@ -1032,7 +1032,36 @@ export interface components {
|
|
|
1032
1032
|
background?: string;
|
|
1033
1033
|
};
|
|
1034
1034
|
/** @description Text style properties including spacing, line height, and transformations. */
|
|
1035
|
-
style?:
|
|
1035
|
+
style?: {
|
|
1036
|
+
/**
|
|
1037
|
+
* @description Additional spacing between letters in pixels. Can be negative for tighter spacing.
|
|
1038
|
+
* @default 0
|
|
1039
|
+
* @example 2
|
|
1040
|
+
*/
|
|
1041
|
+
letterSpacing?: number;
|
|
1042
|
+
/**
|
|
1043
|
+
* @description The line height as a multiplier of the font size. Must be between 0 and 10.
|
|
1044
|
+
* @default 1.2
|
|
1045
|
+
* @example 1.5
|
|
1046
|
+
*/
|
|
1047
|
+
lineHeight?: number;
|
|
1048
|
+
/**
|
|
1049
|
+
* @description Text transformation to apply.
|
|
1050
|
+
* @default none
|
|
1051
|
+
* @example uppercase
|
|
1052
|
+
* @enum {string}
|
|
1053
|
+
*/
|
|
1054
|
+
textTransform?: "none" | "uppercase" | "lowercase" | "capitalize";
|
|
1055
|
+
/**
|
|
1056
|
+
* @description Text decoration to apply.
|
|
1057
|
+
* @default none
|
|
1058
|
+
* @example underline
|
|
1059
|
+
* @enum {string}
|
|
1060
|
+
*/
|
|
1061
|
+
textDecoration?: "none" | "underline" | "line-through";
|
|
1062
|
+
/** @description Gradient fill for text instead of solid color. */
|
|
1063
|
+
gradient?: components["schemas"]["RichTextGradient"];
|
|
1064
|
+
};
|
|
1036
1065
|
/** @description Text stroke (outline) properties for inactive words. */
|
|
1037
1066
|
stroke?: components["schemas"]["RichTextStroke"];
|
|
1038
1067
|
/** @description Text shadow properties. */
|
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.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
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;
|
|
7
|
+
exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richcaptionpropertiesRichCaptionStyleSchema = 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.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.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema = void 0;
|
|
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 = exports.svgpropertiesSvgShadowSchema = void 0;
|
|
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 = exports.thumbnailThumbnailSchema = 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 = exports.postTemplateRequest = 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();
|
|
@@ -1548,6 +1548,37 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
|
1548
1548
|
})).min(2)
|
|
1549
1549
|
}).strict();
|
|
1550
1550
|
exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
|
|
1551
|
+
/**
|
|
1552
|
+
* Text style properties for rich captions. Same as RichTextStyle but without wordSpacing.
|
|
1553
|
+
*/
|
|
1554
|
+
exports.richcaptionpropertiesRichCaptionStyleSchema = zod_1.z.object({
|
|
1555
|
+
letterSpacing: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1556
|
+
return undefined; if (Array.isArray(v))
|
|
1557
|
+
return v; if (typeof v === 'string') {
|
|
1558
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1559
|
+
return v;
|
|
1560
|
+
return Number(v);
|
|
1561
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1562
|
+
lineHeight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1563
|
+
return undefined; if (Array.isArray(v))
|
|
1564
|
+
return v; if (typeof v === 'string') {
|
|
1565
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1566
|
+
return v;
|
|
1567
|
+
return Number(v);
|
|
1568
|
+
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
1569
|
+
textTransform: zod_1.z.optional(zod_1.z.enum([
|
|
1570
|
+
'none',
|
|
1571
|
+
'uppercase',
|
|
1572
|
+
'lowercase',
|
|
1573
|
+
'capitalize'
|
|
1574
|
+
])),
|
|
1575
|
+
textDecoration: zod_1.z.optional(zod_1.z.enum([
|
|
1576
|
+
'none',
|
|
1577
|
+
'underline',
|
|
1578
|
+
'line-through'
|
|
1579
|
+
])),
|
|
1580
|
+
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema)
|
|
1581
|
+
}).strict();
|
|
1551
1582
|
/**
|
|
1552
1583
|
* Padding properties for individual sides of the text bounding box.
|
|
1553
1584
|
*/
|
|
@@ -1659,6 +1690,36 @@ exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
|
|
|
1659
1690
|
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1660
1691
|
}).strict();
|
|
1661
1692
|
exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema;
|
|
1693
|
+
/**
|
|
1694
|
+
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1695
|
+
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1696
|
+
* files or auto-transcription via aliases.
|
|
1697
|
+
*
|
|
1698
|
+
*/
|
|
1699
|
+
exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
1700
|
+
type: zod_1.z.enum(['rich-caption']),
|
|
1701
|
+
src: zod_1.z.string().min(1),
|
|
1702
|
+
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionFontSchema),
|
|
1703
|
+
style: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionStyleSchema),
|
|
1704
|
+
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1705
|
+
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1706
|
+
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1707
|
+
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1708
|
+
padding: zod_1.z.optional(zod_1.z.union([
|
|
1709
|
+
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)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1716
|
+
exports.richtextpropertiesRichTextPaddingSchema
|
|
1717
|
+
])),
|
|
1718
|
+
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1719
|
+
active: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveSchema),
|
|
1720
|
+
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1721
|
+
}).strict();
|
|
1722
|
+
exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
1662
1723
|
/**
|
|
1663
1724
|
* Font properties for rich text.
|
|
1664
1725
|
*/
|
|
@@ -1723,36 +1784,6 @@ exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
|
|
|
1723
1784
|
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema)
|
|
1724
1785
|
}).strict();
|
|
1725
1786
|
exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
1726
|
-
/**
|
|
1727
|
-
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1728
|
-
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1729
|
-
* files or auto-transcription via aliases.
|
|
1730
|
-
*
|
|
1731
|
-
*/
|
|
1732
|
-
exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
1733
|
-
type: zod_1.z.enum(['rich-caption']),
|
|
1734
|
-
src: zod_1.z.string().min(1),
|
|
1735
|
-
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionFontSchema),
|
|
1736
|
-
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1737
|
-
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1738
|
-
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1739
|
-
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1740
|
-
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1741
|
-
padding: zod_1.z.optional(zod_1.z.union([
|
|
1742
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1743
|
-
return undefined; if (Array.isArray(v))
|
|
1744
|
-
return v; if (typeof v === 'string') {
|
|
1745
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1746
|
-
return v;
|
|
1747
|
-
return Number(v);
|
|
1748
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1749
|
-
exports.richtextpropertiesRichTextPaddingSchema
|
|
1750
|
-
])),
|
|
1751
|
-
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1752
|
-
active: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveSchema),
|
|
1753
|
-
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1754
|
-
}).strict();
|
|
1755
|
-
exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
1756
1787
|
/**
|
|
1757
1788
|
* The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
|
|
1758
1789
|
* animations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.
|