@shotstack/schemas 1.3.1 → 1.3.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 +52 -9
- package/dist/schema.d.ts +36 -85
- package/dist/zod/zod.gen.cjs +40 -87
- package/dist/zod/zod.gen.d.ts +1109 -1136
- package/dist/zod/zod.gen.js +39 -86
- package/dist/zod/zod.gen.ts +41 -88
- package/package.json +3 -2
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -4,7 +4,7 @@ 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.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema = 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.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.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema = 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 = void 0;
|
|
7
|
-
exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.
|
|
7
|
+
exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richTextStrokeSchema = 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.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 = void 0;
|
|
8
8
|
exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = 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.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 = void 0;
|
|
9
9
|
exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = 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.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = void 0;
|
|
10
10
|
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 = void 0;
|
|
@@ -70,7 +70,7 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
|
|
|
70
70
|
*
|
|
71
71
|
*/
|
|
72
72
|
exports.captionassetCaptionAssetSchema = zod_1.z.object({
|
|
73
|
-
type: zod_1.z.
|
|
73
|
+
type: zod_1.z.enum(["caption"]),
|
|
74
74
|
src: zod_1.z.string(),
|
|
75
75
|
font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
|
|
76
76
|
background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
|
|
@@ -837,7 +837,7 @@ exports.fontSchema = exports.fontFontSchema;
|
|
|
837
837
|
* @deprecated
|
|
838
838
|
*/
|
|
839
839
|
exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
840
|
-
type: zod_1.z.
|
|
840
|
+
type: zod_1.z.enum(["html"]),
|
|
841
841
|
html: zod_1.z.string(),
|
|
842
842
|
css: zod_1.z.optional(zod_1.z.string()),
|
|
843
843
|
width: zod_1.z.optional(zod_1.z.int()),
|
|
@@ -860,7 +860,7 @@ exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
|
|
|
860
860
|
* The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
861
861
|
*/
|
|
862
862
|
exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
863
|
-
type: zod_1.z.
|
|
863
|
+
type: zod_1.z.enum(["image"]),
|
|
864
864
|
src: zod_1.z.string(),
|
|
865
865
|
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
866
866
|
});
|
|
@@ -996,7 +996,7 @@ exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
|
|
|
996
996
|
* The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
|
|
997
997
|
*/
|
|
998
998
|
exports.lumaassetLumaAssetSchema = zod_1.z.object({
|
|
999
|
-
type: zod_1.z.
|
|
999
|
+
type: zod_1.z.enum(["luma"]),
|
|
1000
1000
|
src: zod_1.z.string(),
|
|
1001
1001
|
trim: zod_1.z.optional(zod_1.z.number()),
|
|
1002
1002
|
});
|
|
@@ -1176,18 +1176,6 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
|
|
|
1176
1176
|
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1177
1177
|
radius: zod_1.z.optional(zod_1.z.number().gte(0)).default(0),
|
|
1178
1178
|
});
|
|
1179
|
-
/**
|
|
1180
|
-
* Font properties for rich text.
|
|
1181
|
-
*/
|
|
1182
|
-
exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
1183
|
-
family: zod_1.z.optional(zod_1.z.string()).default("Open Sans"),
|
|
1184
|
-
size: zod_1.z.optional(zod_1.z.int().gte(1).lte(500)).default(24),
|
|
1185
|
-
weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
|
|
1186
|
-
style: zod_1.z.optional(zod_1.z.enum(["normal", "italic", "oblique"])),
|
|
1187
|
-
color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
1188
|
-
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1189
|
-
});
|
|
1190
|
-
exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
|
|
1191
1179
|
/**
|
|
1192
1180
|
* Gradient properties for text fill.
|
|
1193
1181
|
*/
|
|
@@ -1231,6 +1219,19 @@ exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
|
|
|
1231
1219
|
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1232
1220
|
});
|
|
1233
1221
|
exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
|
|
1222
|
+
/**
|
|
1223
|
+
* Font properties for rich text.
|
|
1224
|
+
*/
|
|
1225
|
+
exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
1226
|
+
family: zod_1.z.optional(zod_1.z.string()).default("Open Sans"),
|
|
1227
|
+
size: zod_1.z.optional(zod_1.z.int().gte(1).lte(500)).default(24),
|
|
1228
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
|
|
1229
|
+
style: zod_1.z.optional(zod_1.z.enum(["normal", "italic", "oblique"])),
|
|
1230
|
+
color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
|
|
1231
|
+
opacity: zod_1.z.optional(zod_1.z.number().gte(0).lte(1)).default(1),
|
|
1232
|
+
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1233
|
+
});
|
|
1234
|
+
exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
|
|
1234
1235
|
/**
|
|
1235
1236
|
* Text style properties including spacing, line height, and transformations.
|
|
1236
1237
|
*/
|
|
@@ -1248,11 +1249,10 @@ exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
|
1248
1249
|
*
|
|
1249
1250
|
*/
|
|
1250
1251
|
exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
1251
|
-
type: zod_1.z.
|
|
1252
|
+
type: zod_1.z.enum(["rich-text"]),
|
|
1252
1253
|
text: zod_1.z.string().max(5000),
|
|
1253
1254
|
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1254
1255
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1255
|
-
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1256
1256
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1257
1257
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1258
1258
|
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
@@ -1301,7 +1301,7 @@ exports.transferSchema = exports.transferTransferSchema;
|
|
|
1301
1301
|
*
|
|
1302
1302
|
*/
|
|
1303
1303
|
exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
1304
|
-
type: zod_1.z.
|
|
1304
|
+
type: zod_1.z.enum(["shape"]),
|
|
1305
1305
|
shape: zod_1.z.enum(["rectangle", "circle", "line"]),
|
|
1306
1306
|
width: zod_1.z.optional(zod_1.z.int()),
|
|
1307
1307
|
height: zod_1.z.optional(zod_1.z.int()),
|
|
@@ -1537,7 +1537,7 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
|
|
|
1537
1537
|
*
|
|
1538
1538
|
*/
|
|
1539
1539
|
exports.textassetTextAssetSchema = zod_1.z.object({
|
|
1540
|
-
type: zod_1.z.
|
|
1540
|
+
type: zod_1.z.enum(["text"]),
|
|
1541
1541
|
text: zod_1.z.string(),
|
|
1542
1542
|
width: zod_1.z.optional(zod_1.z.int()),
|
|
1543
1543
|
height: zod_1.z.optional(zod_1.z.int()),
|
|
@@ -1555,8 +1555,8 @@ exports.textAssetSchema = exports.textassetTextAssetSchema;
|
|
|
1555
1555
|
exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
|
|
1556
1556
|
type: zod_1.z.enum(["text-to-image"]),
|
|
1557
1557
|
prompt: zod_1.z.string(),
|
|
1558
|
-
width: zod_1.z.int(),
|
|
1559
|
-
height: zod_1.z.int(),
|
|
1558
|
+
width: zod_1.z.optional(zod_1.z.int()),
|
|
1559
|
+
height: zod_1.z.optional(zod_1.z.int()),
|
|
1560
1560
|
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
1561
1561
|
});
|
|
1562
1562
|
exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
|
|
@@ -1785,7 +1785,7 @@ exports.tweenSchema = exports.tweenTweenSchema;
|
|
|
1785
1785
|
* The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
|
|
1786
1786
|
*/
|
|
1787
1787
|
exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
1788
|
-
type: zod_1.z.
|
|
1788
|
+
type: zod_1.z.enum(["audio"]),
|
|
1789
1789
|
src: zod_1.z.string(),
|
|
1790
1790
|
trim: zod_1.z.optional(zod_1.z.number()),
|
|
1791
1791
|
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.number().gte(0).lte(1), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
@@ -1825,7 +1825,7 @@ exports.skewTransformationSchema = exports.skewtransformationSkewTransformationS
|
|
|
1825
1825
|
* @deprecated
|
|
1826
1826
|
*/
|
|
1827
1827
|
exports.titleassetTitleAssetSchema = zod_1.z.object({
|
|
1828
|
-
type: zod_1.z.
|
|
1828
|
+
type: zod_1.z.enum(["title"]),
|
|
1829
1829
|
text: zod_1.z.string(),
|
|
1830
1830
|
style: zod_1.z.optional(zod_1.z.enum([
|
|
1831
1831
|
"minimal",
|
|
@@ -1877,7 +1877,7 @@ exports.transformationSchema = exports.transformationTransformationSchema;
|
|
|
1877
1877
|
* The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
|
|
1878
1878
|
*/
|
|
1879
1879
|
exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
1880
|
-
type: zod_1.z.
|
|
1880
|
+
type: zod_1.z.enum(["video"]),
|
|
1881
1881
|
src: zod_1.z.string(),
|
|
1882
1882
|
transcode: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
1883
1883
|
trim: zod_1.z.optional(zod_1.z.number()),
|
|
@@ -1891,67 +1891,19 @@ exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
|
|
|
1891
1891
|
/**
|
|
1892
1892
|
* The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below.
|
|
1893
1893
|
*/
|
|
1894
|
-
exports.assetAssetSchema = zod_1.z.
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
asset: zod_1.z.literal("textasset_TextAsset"),
|
|
1908
|
-
})
|
|
1909
|
-
.and(exports.textassetTextAssetSchema),
|
|
1910
|
-
zod_1.z
|
|
1911
|
-
.object({
|
|
1912
|
-
asset: zod_1.z.literal("richtextasset_RichTextAsset"),
|
|
1913
|
-
})
|
|
1914
|
-
.and(exports.richtextassetRichTextAssetSchema),
|
|
1915
|
-
zod_1.z
|
|
1916
|
-
.object({
|
|
1917
|
-
asset: zod_1.z.literal("audioasset_AudioAsset"),
|
|
1918
|
-
})
|
|
1919
|
-
.and(exports.audioassetAudioAssetSchema),
|
|
1920
|
-
zod_1.z
|
|
1921
|
-
.object({
|
|
1922
|
-
asset: zod_1.z.literal("lumaasset_LumaAsset"),
|
|
1923
|
-
})
|
|
1924
|
-
.and(exports.lumaassetLumaAssetSchema),
|
|
1925
|
-
zod_1.z
|
|
1926
|
-
.object({
|
|
1927
|
-
asset: zod_1.z.literal("captionasset_CaptionAsset"),
|
|
1928
|
-
})
|
|
1929
|
-
.and(exports.captionassetCaptionAssetSchema),
|
|
1930
|
-
zod_1.z
|
|
1931
|
-
.object({
|
|
1932
|
-
asset: zod_1.z.literal("htmlasset_HtmlAsset"),
|
|
1933
|
-
})
|
|
1934
|
-
.and(exports.htmlassetHtmlAssetSchema),
|
|
1935
|
-
zod_1.z
|
|
1936
|
-
.object({
|
|
1937
|
-
asset: zod_1.z.literal("titleasset_TitleAsset"),
|
|
1938
|
-
})
|
|
1939
|
-
.and(exports.titleassetTitleAssetSchema),
|
|
1940
|
-
zod_1.z
|
|
1941
|
-
.object({
|
|
1942
|
-
asset: zod_1.z.literal("shapeasset_ShapeAsset"),
|
|
1943
|
-
})
|
|
1944
|
-
.and(exports.shapeassetShapeAssetSchema),
|
|
1945
|
-
zod_1.z
|
|
1946
|
-
.object({
|
|
1947
|
-
asset: zod_1.z.literal("texttoimageasset_TextToImageAsset"),
|
|
1948
|
-
})
|
|
1949
|
-
.and(exports.texttoimageassetTextToImageAssetSchema),
|
|
1950
|
-
zod_1.z
|
|
1951
|
-
.object({
|
|
1952
|
-
asset: zod_1.z.literal("imagetovideoasset_ImageToVideoAsset"),
|
|
1953
|
-
})
|
|
1954
|
-
.and(exports.imagetovideoassetImageToVideoAssetSchema),
|
|
1894
|
+
exports.assetAssetSchema = zod_1.z.discriminatedUnion("type", [
|
|
1895
|
+
exports.videoassetVideoAssetSchema,
|
|
1896
|
+
exports.imageassetImageAssetSchema,
|
|
1897
|
+
exports.textassetTextAssetSchema,
|
|
1898
|
+
exports.richtextassetRichTextAssetSchema,
|
|
1899
|
+
exports.audioassetAudioAssetSchema,
|
|
1900
|
+
exports.lumaassetLumaAssetSchema,
|
|
1901
|
+
exports.captionassetCaptionAssetSchema,
|
|
1902
|
+
exports.htmlassetHtmlAssetSchema,
|
|
1903
|
+
exports.titleassetTitleAssetSchema,
|
|
1904
|
+
exports.shapeassetShapeAssetSchema,
|
|
1905
|
+
exports.texttoimageassetTextToImageAssetSchema,
|
|
1906
|
+
exports.imagetovideoassetImageToVideoAssetSchema,
|
|
1955
1907
|
]);
|
|
1956
1908
|
exports.assetSchema = exports.assetAssetSchema;
|
|
1957
1909
|
/**
|
|
@@ -1999,6 +1951,7 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
1999
1951
|
"slideDownFast",
|
|
2000
1952
|
])),
|
|
2001
1953
|
filter: zod_1.z.optional(zod_1.z.enum([
|
|
1954
|
+
"none",
|
|
2002
1955
|
"blur",
|
|
2003
1956
|
"boost",
|
|
2004
1957
|
"contrast",
|