@shotstack/schemas 1.9.2 → 1.9.4
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 +48 -4
- package/dist/json-schema/asset.json +78 -5
- package/dist/json-schema/clip.json +78 -5
- package/dist/json-schema/edit.json +78 -5
- package/dist/json-schema/{rich-caption-word-animation.json → rich-caption-animation.json} +1 -1
- package/dist/json-schema/rich-caption-asset.json +166 -93
- package/dist/json-schema/schemas.json +83 -5
- package/dist/json-schema/timeline.json +78 -5
- package/dist/json-schema/track.json +78 -5
- package/dist/schema.d.ts +32 -3
- package/dist/zod/zod.gen.cjs +88 -57
- package/dist/zod/zod.gen.d.ts +197 -237
- package/dist/zod/zod.gen.js +83 -52
- package/dist/zod/zod.gen.ts +60 -40
- package/package.json +1 -1
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.richcaptionpropertiesRichCaptionFontSchema = exports.richCaptionAnimationSchema = exports.richcaptionpropertiesRichCaptionAnimationSchema = 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();
|
|
@@ -1387,6 +1387,28 @@ exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
|
|
|
1387
1387
|
]))
|
|
1388
1388
|
}).strict();
|
|
1389
1389
|
exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1390
|
+
/**
|
|
1391
|
+
* Word-level animation properties for caption effects.
|
|
1392
|
+
*/
|
|
1393
|
+
exports.richcaptionpropertiesRichCaptionAnimationSchema = zod_1.z.object({
|
|
1394
|
+
style: zod_1.z.enum([
|
|
1395
|
+
'karaoke',
|
|
1396
|
+
'highlight',
|
|
1397
|
+
'pop',
|
|
1398
|
+
'fade',
|
|
1399
|
+
'slide',
|
|
1400
|
+
'bounce',
|
|
1401
|
+
'typewriter',
|
|
1402
|
+
'none'
|
|
1403
|
+
]),
|
|
1404
|
+
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1405
|
+
'left',
|
|
1406
|
+
'right',
|
|
1407
|
+
'up',
|
|
1408
|
+
'down'
|
|
1409
|
+
]))
|
|
1410
|
+
}).strict();
|
|
1411
|
+
exports.richCaptionAnimationSchema = exports.richcaptionpropertiesRichCaptionAnimationSchema;
|
|
1390
1412
|
/**
|
|
1391
1413
|
* Font properties for rich captions. Defaults to Roboto.
|
|
1392
1414
|
*/
|
|
@@ -1410,28 +1432,6 @@ exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
|
1410
1432
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1411
1433
|
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*\}\}$/)]))
|
|
1412
1434
|
}).strict();
|
|
1413
|
-
/**
|
|
1414
|
-
* Word-level animation properties for caption effects.
|
|
1415
|
-
*/
|
|
1416
|
-
exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
1417
|
-
style: zod_1.z.enum([
|
|
1418
|
-
'karaoke',
|
|
1419
|
-
'highlight',
|
|
1420
|
-
'pop',
|
|
1421
|
-
'fade',
|
|
1422
|
-
'slide',
|
|
1423
|
-
'bounce',
|
|
1424
|
-
'typewriter',
|
|
1425
|
-
'none'
|
|
1426
|
-
]),
|
|
1427
|
-
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1428
|
-
'left',
|
|
1429
|
-
'right',
|
|
1430
|
-
'up',
|
|
1431
|
-
'down'
|
|
1432
|
-
]))
|
|
1433
|
-
}).strict();
|
|
1434
|
-
exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Text alignment properties (horizontal and vertical).
|
|
1437
1437
|
*/
|
|
@@ -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
|
+
animation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionAnimationSchema)
|
|
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.
|