@shotstack/schemas 1.9.1 → 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 +40 -7
- package/dist/json-schema/asset.json +74 -17
- package/dist/json-schema/clip.json +74 -17
- package/dist/json-schema/edit.json +74 -17
- package/dist/json-schema/rich-caption-asset.json +162 -105
- package/dist/json-schema/schemas.json +80 -19
- package/dist/json-schema/timeline.json +74 -17
- package/dist/json-schema/track.json +74 -17
- package/dist/schema.d.ts +27 -5
- package/dist/zod/zod.gen.cjs +67 -41
- package/dist/zod/zod.gen.d.ts +115 -337
- package/dist/zod/zod.gen.js +62 -36
- package/dist/zod/zod.gen.ts +47 -32
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1030,16 +1030,38 @@ export interface components {
|
|
|
1030
1030
|
* @example #000000
|
|
1031
1031
|
*/
|
|
1032
1032
|
background?: string;
|
|
1033
|
+
};
|
|
1034
|
+
/** @description Text style properties including spacing, line height, and transformations. */
|
|
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;
|
|
1033
1048
|
/**
|
|
1034
|
-
* @description Text
|
|
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.
|
|
1035
1057
|
* @default none
|
|
1036
1058
|
* @example underline
|
|
1037
1059
|
* @enum {string}
|
|
1038
1060
|
*/
|
|
1039
1061
|
textDecoration?: "none" | "underline" | "line-through";
|
|
1062
|
+
/** @description Gradient fill for text instead of solid color. */
|
|
1063
|
+
gradient?: components["schemas"]["RichTextGradient"];
|
|
1040
1064
|
};
|
|
1041
|
-
/** @description Text style properties including spacing, line height, and transformations. */
|
|
1042
|
-
style?: components["schemas"]["RichTextStyle"];
|
|
1043
1065
|
/** @description Text stroke (outline) properties for inactive words. */
|
|
1044
1066
|
stroke?: components["schemas"]["RichTextStroke"];
|
|
1045
1067
|
/** @description Text shadow properties. */
|
|
@@ -1112,8 +1134,8 @@ export interface components {
|
|
|
1112
1134
|
* <li>`typewriter` - Words appear one by one and stay visible</li>
|
|
1113
1135
|
* <li>`none` - No animation, all words visible immediately</li>
|
|
1114
1136
|
* </ul>
|
|
1115
|
-
* @default
|
|
1116
|
-
* @example
|
|
1137
|
+
* @default highlight
|
|
1138
|
+
* @example highlight
|
|
1117
1139
|
* @enum {string}
|
|
1118
1140
|
*/
|
|
1119
1141
|
style: "karaoke" | "highlight" | "pop" | "fade" | "slide" | "bounce" | "typewriter" | "none";
|
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();
|
|
@@ -1408,12 +1408,7 @@ exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
|
1408
1408
|
return v;
|
|
1409
1409
|
return Number(v);
|
|
1410
1410
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1411
|
-
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
|
-
textDecoration: zod_1.z.optional(zod_1.z.enum([
|
|
1413
|
-
'none',
|
|
1414
|
-
'underline',
|
|
1415
|
-
'line-through'
|
|
1416
|
-
]))
|
|
1411
|
+
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*\}\}$/)]))
|
|
1417
1412
|
}).strict();
|
|
1418
1413
|
/**
|
|
1419
1414
|
* Word-level animation properties for caption effects.
|
|
@@ -1553,6 +1548,37 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
|
1553
1548
|
})).min(2)
|
|
1554
1549
|
}).strict();
|
|
1555
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();
|
|
1556
1582
|
/**
|
|
1557
1583
|
* Padding properties for individual sides of the text bounding box.
|
|
1558
1584
|
*/
|
|
@@ -1664,6 +1690,36 @@ exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
|
|
|
1664
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)
|
|
1665
1691
|
}).strict();
|
|
1666
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;
|
|
1667
1723
|
/**
|
|
1668
1724
|
* Font properties for rich text.
|
|
1669
1725
|
*/
|
|
@@ -1728,36 +1784,6 @@ exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
|
|
|
1728
1784
|
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema)
|
|
1729
1785
|
}).strict();
|
|
1730
1786
|
exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
1731
|
-
/**
|
|
1732
|
-
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1733
|
-
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1734
|
-
* files or auto-transcription via aliases.
|
|
1735
|
-
*
|
|
1736
|
-
*/
|
|
1737
|
-
exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
1738
|
-
type: zod_1.z.enum(['rich-caption']),
|
|
1739
|
-
src: zod_1.z.string().min(1),
|
|
1740
|
-
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionFontSchema),
|
|
1741
|
-
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1742
|
-
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1743
|
-
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1744
|
-
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1745
|
-
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1746
|
-
padding: zod_1.z.optional(zod_1.z.union([
|
|
1747
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1748
|
-
return undefined; if (Array.isArray(v))
|
|
1749
|
-
return v; if (typeof v === 'string') {
|
|
1750
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1751
|
-
return v;
|
|
1752
|
-
return Number(v);
|
|
1753
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1754
|
-
exports.richtextpropertiesRichTextPaddingSchema
|
|
1755
|
-
])),
|
|
1756
|
-
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1757
|
-
active: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveSchema),
|
|
1758
|
-
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1759
|
-
}).strict();
|
|
1760
|
-
exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
1761
1787
|
/**
|
|
1762
1788
|
* The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
|
|
1763
1789
|
* animations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.
|