@shotstack/schemas 1.8.6 → 1.9.0
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/README.md +89 -89
- package/dist/api.bundled.json +76 -75
- package/dist/json-schema/asset.json +137 -100
- package/dist/json-schema/clip.json +137 -100
- package/dist/json-schema/edit.json +137 -100
- package/dist/json-schema/rich-caption-active-font.json +18 -1
- package/dist/json-schema/rich-caption-active.json +105 -1
- package/dist/json-schema/rich-caption-asset.json +278 -241
- package/dist/json-schema/schemas.json +150 -112
- package/dist/json-schema/timeline.json +137 -100
- package/dist/json-schema/track.json +137 -100
- package/dist/schema.d.ts +56 -47
- package/dist/zod/zod.gen.cjs +1116 -970
- package/dist/zod/zod.gen.d.ts +1921 -1709
- package/dist/zod/zod.gen.js +1112 -966
- package/dist/zod/zod.gen.ts +1605 -1674
- package/package.json +95 -79
- package/dist/json-schema/word-timing.json +0 -44
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema = exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = exports.chromaKeySchema = exports.chromakeyChromaKeySchema = exports.captionAssetSchema = exports.captionassetCaptionAssetSchema = exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema = exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema = exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema = exports.uploadRootSchema = exports.templatesrenderRootSchema = exports.templatesidRootSchema = exports.templatesRootSchema = exports.sourcesidRootSchema = exports.sourcesRootSchema = exports.renderidRootSchema = exports.renderRootSchema = exports.probeRootSchema = exports.generateassetidRootSchema = exports.generateassetRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
5
|
exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema = exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema = exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema = exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema = exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema = exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema = exports.cropSchema = exports.cropCropSchema = exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema = exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema = exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = void 0;
|
|
6
6
|
exports.transcriptionSchema = exports.transcriptionTranscriptionSchema = exports.speedSchema = exports.speedSpeedSchema = exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema = exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema = exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema = exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema = exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema = exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema = exports.enhancementsSchema = exports.enhancementsEnhancementsSchema = exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema = exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema = exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema = exports.imageAssetSchema = exports.imageassetImageAssetSchema = exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema = exports.fontSchema = exports.fontFontSchema = exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema = exports.destinationsSchema = exports.destinationsDestinationsSchema = exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema = exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = exports.tiktokDestinationTiktokDestinationSchema = exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema = void 0;
|
|
7
|
-
exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.
|
|
8
|
-
exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema = exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema = exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema =
|
|
9
|
-
exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = exports.svgShapeSchema = exports.svgshapesSvgShapeSchema = exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema = exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema = exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema = exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema = exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema = exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema = exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema = exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema = exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema = exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema = exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema = exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema = exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema = exports.svgFillSchema = exports.svgpropertiesSvgFillSchema = exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema = exports.svgShadowSchema =
|
|
10
|
-
exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema =
|
|
11
|
-
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse =
|
|
7
|
+
exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionFontSchema = exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema = exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema = exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema = exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema = exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema = exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema = exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema = exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema = exports.probeResponseSchema = exports.proberesponseProbeResponseSchema = exports.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = exports.posterSchema = exports.posterPosterSchema = exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema = void 0;
|
|
8
|
+
exports.svgpropertiesSvgShadowSchema = exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema = exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema = exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = void 0;
|
|
9
|
+
exports.thumbnailThumbnailSchema = exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = exports.svgShapeSchema = exports.svgshapesSvgShapeSchema = exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema = exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema = exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema = exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema = exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema = exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema = exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema = exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema = exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema = exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema = exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema = exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema = exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema = exports.svgFillSchema = exports.svgpropertiesSvgFillSchema = exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema = exports.svgShadowSchema = void 0;
|
|
10
|
+
exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = void 0;
|
|
11
|
+
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = void 0;
|
|
12
12
|
const zod_1 = require("zod");
|
|
13
13
|
exports.editRootSchema = zod_1.z.unknown();
|
|
14
14
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
@@ -51,7 +51,7 @@ exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
|
|
|
51
51
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
52
52
|
return v;
|
|
53
53
|
return Number(v);
|
|
54
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
54
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
55
55
|
}).strict();
|
|
56
56
|
exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
|
|
57
57
|
/**
|
|
@@ -88,7 +88,7 @@ exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
|
|
|
88
88
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
89
89
|
return v;
|
|
90
90
|
return Number(v);
|
|
91
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
91
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
92
92
|
}).strict();
|
|
93
93
|
exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
|
|
94
94
|
/**
|
|
@@ -115,7 +115,7 @@ exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
|
|
|
115
115
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
116
116
|
return v;
|
|
117
117
|
return Number(v);
|
|
118
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
118
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
119
119
|
}).strict();
|
|
120
120
|
exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
|
|
121
121
|
/**
|
|
@@ -131,7 +131,7 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
|
|
|
131
131
|
*
|
|
132
132
|
*/
|
|
133
133
|
exports.captionassetCaptionAssetSchema = zod_1.z.object({
|
|
134
|
-
type: zod_1.z.enum([
|
|
134
|
+
type: zod_1.z.enum(['caption']),
|
|
135
135
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
136
136
|
font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
|
|
137
137
|
background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
|
|
@@ -149,7 +149,7 @@ exports.captionassetCaptionAssetSchema = zod_1.z.object({
|
|
|
149
149
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
150
150
|
return v;
|
|
151
151
|
return Number(v);
|
|
152
|
-
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
152
|
+
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
153
153
|
}).strict();
|
|
154
154
|
exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
|
|
155
155
|
/**
|
|
@@ -170,17 +170,23 @@ exports.chromakeyChromaKeySchema = zod_1.z.object({
|
|
|
170
170
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
171
171
|
return v;
|
|
172
172
|
return Number(v);
|
|
173
|
-
} return v; }), zod_1.z.number().int().gte(0).lte(250)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
173
|
+
} return v; }), zod_1.z.number().int().gte(0).lte(250)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
174
174
|
}).strict();
|
|
175
175
|
exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
|
|
176
176
|
/**
|
|
177
177
|
* Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
|
|
178
178
|
*/
|
|
179
179
|
exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = zod_1.z.object({
|
|
180
|
-
type: zod_1.z.enum([
|
|
180
|
+
type: zod_1.z.enum(['text-to-avatar']),
|
|
181
181
|
text: zod_1.z.string(),
|
|
182
|
-
avatar: zod_1.z.enum([
|
|
183
|
-
|
|
182
|
+
avatar: zod_1.z.enum([
|
|
183
|
+
'jack',
|
|
184
|
+
'lana',
|
|
185
|
+
'lily',
|
|
186
|
+
'matt',
|
|
187
|
+
'rian'
|
|
188
|
+
]),
|
|
189
|
+
background: zod_1.z.optional(zod_1.z.string())
|
|
184
190
|
}).strict();
|
|
185
191
|
exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
186
192
|
/**
|
|
@@ -190,37 +196,35 @@ exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAv
|
|
|
190
196
|
* <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
|
|
191
197
|
* </ul>
|
|
192
198
|
*/
|
|
193
|
-
exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
|
|
194
|
-
.
|
|
195
|
-
|
|
196
|
-
})
|
|
197
|
-
.and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
199
|
+
exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z.object({
|
|
200
|
+
type: zod_1.z.literal('didTextToAvatarOptions_DIDTextToAvatarOptions')
|
|
201
|
+
}).strict().and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
198
202
|
exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
|
|
199
203
|
/**
|
|
200
204
|
* Generate assets using D-ID. D-ID provide a text-to-avatar service. The D-ID provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/d-id), not in the request.
|
|
201
205
|
*/
|
|
202
206
|
exports.didGeneratedAssetDidGeneratedAssetSchema = zod_1.z.object({
|
|
203
|
-
provider: zod_1.z.enum([
|
|
204
|
-
options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
|
|
207
|
+
provider: zod_1.z.enum(['d-id']),
|
|
208
|
+
options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
|
|
205
209
|
}).strict();
|
|
206
210
|
exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema;
|
|
207
211
|
/**
|
|
208
212
|
* Options for the ElevenLabs text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
209
213
|
*/
|
|
210
214
|
exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = zod_1.z.object({
|
|
211
|
-
type: zod_1.z.enum([
|
|
215
|
+
type: zod_1.z.enum(['text-to-speech']),
|
|
212
216
|
text: zod_1.z.string(),
|
|
213
217
|
voice: zod_1.z.enum([
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
])
|
|
218
|
+
'Adam',
|
|
219
|
+
'Antoni',
|
|
220
|
+
'Arnold',
|
|
221
|
+
'Bella',
|
|
222
|
+
'Domi',
|
|
223
|
+
'Elli',
|
|
224
|
+
'Josh',
|
|
225
|
+
'Rachel',
|
|
226
|
+
'Sam'
|
|
227
|
+
])
|
|
224
228
|
}).strict();
|
|
225
229
|
exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
226
230
|
/**
|
|
@@ -230,143 +234,141 @@ exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOpti
|
|
|
230
234
|
* <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
|
|
231
235
|
* </ul>
|
|
232
236
|
*/
|
|
233
|
-
exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
|
|
234
|
-
.
|
|
235
|
-
|
|
236
|
-
})
|
|
237
|
-
.and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
237
|
+
exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z.object({
|
|
238
|
+
type: zod_1.z.literal('elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions')
|
|
239
|
+
}).strict().and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
238
240
|
exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
|
|
239
241
|
/**
|
|
240
242
|
* Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service. The ElevenLabs provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/elevenlabs), not in the request.
|
|
241
243
|
*/
|
|
242
244
|
exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = zod_1.z.object({
|
|
243
|
-
provider: zod_1.z.enum([
|
|
244
|
-
options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
|
|
245
|
+
provider: zod_1.z.enum(['elevenlabs']),
|
|
246
|
+
options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
|
|
245
247
|
}).strict();
|
|
246
248
|
exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
247
249
|
/**
|
|
248
250
|
* Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
|
|
249
251
|
*/
|
|
250
252
|
exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = zod_1.z.object({
|
|
251
|
-
type: zod_1.z.enum([
|
|
253
|
+
type: zod_1.z.enum(['text-to-avatar']),
|
|
252
254
|
text: zod_1.z.string(),
|
|
253
255
|
avatar: zod_1.z.enum([
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
256
|
+
'Angela',
|
|
257
|
+
'Bill',
|
|
258
|
+
'Daisy',
|
|
259
|
+
'Derek',
|
|
260
|
+
'Eva',
|
|
261
|
+
'Jake',
|
|
262
|
+
'Jeff',
|
|
263
|
+
'Jerome',
|
|
264
|
+
'Joon',
|
|
265
|
+
'Kayla',
|
|
266
|
+
'Kent',
|
|
267
|
+
'Luna',
|
|
268
|
+
'Mark',
|
|
269
|
+
'Matthew',
|
|
270
|
+
'Monica',
|
|
271
|
+
'Peter',
|
|
272
|
+
'Selina',
|
|
273
|
+
'Tanya',
|
|
274
|
+
'Thomas',
|
|
275
|
+
'Tina',
|
|
276
|
+
'Tyler',
|
|
277
|
+
'Vanessa',
|
|
278
|
+
'Vera',
|
|
279
|
+
'Wilson',
|
|
280
|
+
'Zoey'
|
|
279
281
|
]),
|
|
280
282
|
voice: zod_1.z.enum([
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
283
|
+
'Abbi - Natural',
|
|
284
|
+
'Adam - Natural',
|
|
285
|
+
'Aiston - Friendly',
|
|
286
|
+
'Alice - Newscaster',
|
|
287
|
+
'Alison - Cheerful',
|
|
288
|
+
'Amber - Friendly',
|
|
289
|
+
'Amy - Warm',
|
|
290
|
+
'Ana - Cheerful',
|
|
291
|
+
'Antoni - Friendly',
|
|
292
|
+
'Aria - Newscaster',
|
|
293
|
+
'Arnold - Cheerful',
|
|
294
|
+
'Arthur - Natural',
|
|
295
|
+
'Bella - Friendly',
|
|
296
|
+
'Belle - Natural',
|
|
297
|
+
'Brandon - Warm',
|
|
298
|
+
'Brian - Natural',
|
|
299
|
+
'Bruce - Natural',
|
|
300
|
+
'Cerise - Cheerful',
|
|
301
|
+
'Christopher - Calm',
|
|
302
|
+
'Clara - Professional',
|
|
303
|
+
'Connor - Natural',
|
|
304
|
+
'Dahlia - Friendly',
|
|
305
|
+
'Davis - Professional',
|
|
306
|
+
'Dean - Natural',
|
|
307
|
+
'Delbert - Cheerful',
|
|
308
|
+
'Edward - Friendly',
|
|
309
|
+
'Elaine - Calm',
|
|
310
|
+
'Emily - Natural',
|
|
311
|
+
'Emma - Newscaster',
|
|
312
|
+
'Eric - Newscaster',
|
|
313
|
+
'Grace - Natural',
|
|
314
|
+
'Hailey - Calm',
|
|
315
|
+
'Indira - Cheerful',
|
|
316
|
+
'Isabella - Cheerful',
|
|
317
|
+
'Jacob - Natural',
|
|
318
|
+
'Jahmai - Friendly',
|
|
319
|
+
'Jane - Serious',
|
|
320
|
+
'Jason - Serious',
|
|
321
|
+
'Jelle - Friendly',
|
|
322
|
+
'Jen - Natural',
|
|
323
|
+
'Jenny - Professional',
|
|
324
|
+
'Jodi - Cheerful',
|
|
325
|
+
'Joey - Calm',
|
|
326
|
+
'Johan - Friendly',
|
|
327
|
+
'Josie - Cheerful',
|
|
328
|
+
'Keanan - Natural',
|
|
329
|
+
'Keith - Cheerful',
|
|
330
|
+
'Kellie - Friendly',
|
|
331
|
+
'Lauren - Friendly',
|
|
332
|
+
'Leah - Natural',
|
|
333
|
+
'Liam - Professional',
|
|
334
|
+
'Libby - Natural',
|
|
335
|
+
'Lily - Professional',
|
|
336
|
+
'Lucas - Natural',
|
|
337
|
+
'Luke - Professional',
|
|
338
|
+
'Luna - Natural',
|
|
339
|
+
'Marieke - Natural',
|
|
340
|
+
'Matthew - Professional',
|
|
341
|
+
'Michelle - Natural',
|
|
342
|
+
'Mitchell - Natural',
|
|
343
|
+
'Molly - Newscaster',
|
|
344
|
+
'Monica - Calm',
|
|
345
|
+
'Natasha - Professional',
|
|
346
|
+
'Neerja - Newscaster',
|
|
347
|
+
'Noah - Serious',
|
|
348
|
+
'Oliver - Newscaster',
|
|
349
|
+
'Olivia - Calm',
|
|
350
|
+
'Paul - Natural',
|
|
351
|
+
'Prabhat - Natural',
|
|
352
|
+
'Raveena - Natural',
|
|
353
|
+
'Rudi - Friendly',
|
|
354
|
+
'Ryan - Professional',
|
|
355
|
+
'Sam - Natural',
|
|
356
|
+
'Sara - Cheerful',
|
|
357
|
+
'Sherry - Friendly',
|
|
358
|
+
'Sonia - Warm',
|
|
359
|
+
'Thomas - Natural',
|
|
360
|
+
'Todd - Professional',
|
|
361
|
+
'Tony - Professional',
|
|
362
|
+
'Tracy - Cheerful',
|
|
363
|
+
'Wayne - Natural',
|
|
364
|
+
'Wilder - Natural',
|
|
365
|
+
'Wille - Natural',
|
|
366
|
+
'William - Friendly'
|
|
365
367
|
]),
|
|
366
|
-
avatarStyle: zod_1.z.optional(zod_1.z.enum([
|
|
368
|
+
avatarStyle: zod_1.z.optional(zod_1.z.enum(['normal', 'circle'])),
|
|
367
369
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
368
|
-
ratio: zod_1.z.optional(zod_1.z.enum([
|
|
369
|
-
test: zod_1.z.optional(zod_1.z.boolean())
|
|
370
|
+
ratio: zod_1.z.optional(zod_1.z.enum(['16:9', '9:16'])),
|
|
371
|
+
test: zod_1.z.optional(zod_1.z.boolean())
|
|
370
372
|
}).strict();
|
|
371
373
|
exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
372
374
|
/**
|
|
@@ -376,28 +378,26 @@ exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGe
|
|
|
376
378
|
* <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
|
|
377
379
|
* </ul>
|
|
378
380
|
*/
|
|
379
|
-
exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
|
|
380
|
-
.
|
|
381
|
-
|
|
382
|
-
})
|
|
383
|
-
.and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
381
|
+
exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z.object({
|
|
382
|
+
type: zod_1.z.literal('heygenTextToAvatarOptions_HeyGenTextToAvatarOptions')
|
|
383
|
+
}).strict().and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
384
384
|
exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
|
|
385
385
|
/**
|
|
386
386
|
* Generate assets using HeyGen. HeyGen provide a text-to-avatar service. The HeyGen provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/heygen), not in the request.
|
|
387
387
|
*/
|
|
388
388
|
exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = zod_1.z.object({
|
|
389
|
-
provider: zod_1.z.enum([
|
|
390
|
-
options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
|
|
389
|
+
provider: zod_1.z.enum(['heygen']),
|
|
390
|
+
options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
|
|
391
391
|
}).strict();
|
|
392
392
|
exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
393
393
|
/**
|
|
394
394
|
* Options for the OpenAI text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
395
395
|
*/
|
|
396
396
|
exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = zod_1.z.object({
|
|
397
|
-
type: zod_1.z.enum([
|
|
397
|
+
type: zod_1.z.enum(['text-generator']),
|
|
398
398
|
prompt: zod_1.z.string(),
|
|
399
|
-
model: zod_1.z.enum([
|
|
400
|
-
systemPrompt: zod_1.z.optional(zod_1.z.string())
|
|
399
|
+
model: zod_1.z.enum(['gpt-3.5-turbo', 'gpt-4']),
|
|
400
|
+
systemPrompt: zod_1.z.optional(zod_1.z.string())
|
|
401
401
|
}).strict();
|
|
402
402
|
exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
403
403
|
/**
|
|
@@ -407,18 +407,16 @@ exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpe
|
|
|
407
407
|
* <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
|
|
408
408
|
* </ul>
|
|
409
409
|
*/
|
|
410
|
-
exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
|
|
411
|
-
.
|
|
412
|
-
|
|
413
|
-
})
|
|
414
|
-
.and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
410
|
+
exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z.object({
|
|
411
|
+
type: zod_1.z.literal('openaiTextGeneratorOptions_OpenAiTextGeneratorOptions')
|
|
412
|
+
}).strict().and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
415
413
|
exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
|
|
416
414
|
/**
|
|
417
415
|
* Generate assets using OpenAI. OpenAI provide a text generation service using ChatGPT 3.5 and 4. The OpenAI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/openai), not in the request.
|
|
418
416
|
*/
|
|
419
417
|
exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = zod_1.z.object({
|
|
420
|
-
provider: zod_1.z.enum([
|
|
421
|
-
options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
|
|
418
|
+
provider: zod_1.z.enum(['openai']),
|
|
419
|
+
options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
|
|
422
420
|
}).strict();
|
|
423
421
|
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
424
422
|
/**
|
|
@@ -427,14 +425,14 @@ exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGenerated
|
|
|
427
425
|
exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = zod_1.z.object({
|
|
428
426
|
status: zod_1.z.string(),
|
|
429
427
|
title: zod_1.z.string(),
|
|
430
|
-
detail: zod_1.z.string()
|
|
428
|
+
detail: zod_1.z.string()
|
|
431
429
|
}).strict();
|
|
432
430
|
exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
433
431
|
/**
|
|
434
432
|
* Error response data for validation and other errors returned by the Create API.
|
|
435
433
|
*/
|
|
436
434
|
exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = zod_1.z.object({
|
|
437
|
-
errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
|
|
435
|
+
errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
|
|
438
436
|
}).strict();
|
|
439
437
|
exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
440
438
|
/**
|
|
@@ -442,12 +440,23 @@ exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseG
|
|
|
442
440
|
*/
|
|
443
441
|
exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = zod_1.z.object({
|
|
444
442
|
owner: zod_1.z.string(),
|
|
445
|
-
provider: zod_1.z.enum([
|
|
446
|
-
|
|
443
|
+
provider: zod_1.z.enum([
|
|
444
|
+
'shotstack',
|
|
445
|
+
'elevenlabs',
|
|
446
|
+
'heygen',
|
|
447
|
+
'd-id'
|
|
448
|
+
]),
|
|
449
|
+
type: zod_1.z.enum(['text-to-speech', 'text-to-avatar']),
|
|
447
450
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
448
|
-
status: zod_1.z.enum([
|
|
451
|
+
status: zod_1.z.enum([
|
|
452
|
+
'queued',
|
|
453
|
+
'processing',
|
|
454
|
+
'saving',
|
|
455
|
+
'done',
|
|
456
|
+
'failed'
|
|
457
|
+
]),
|
|
449
458
|
created: zod_1.z.string(),
|
|
450
|
-
updated: zod_1.z.string()
|
|
459
|
+
updated: zod_1.z.string()
|
|
451
460
|
}).strict();
|
|
452
461
|
exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
453
462
|
/**
|
|
@@ -456,21 +465,21 @@ exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseA
|
|
|
456
465
|
exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = zod_1.z.object({
|
|
457
466
|
type: zod_1.z.string(),
|
|
458
467
|
id: zod_1.z.string(),
|
|
459
|
-
attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
|
|
468
|
+
attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
|
|
460
469
|
}).strict();
|
|
461
470
|
exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
462
471
|
/**
|
|
463
472
|
* The response returned by the Create API [generate asset](#generate-asset) and [get generated asset](#get-generated-asset) requests. Includes status and details of the generated asset. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
464
473
|
*/
|
|
465
474
|
exports.generatedAssetResponseGeneratedAssetResponseSchema = zod_1.z.object({
|
|
466
|
-
data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema
|
|
475
|
+
data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema
|
|
467
476
|
}).strict();
|
|
468
477
|
exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema;
|
|
469
478
|
/**
|
|
470
479
|
* Options for the Shotstack image-to-video service. Set the URL of an image to convert in to a video. The output will be generated as an MP4 file available at the URL returned in the response.
|
|
471
480
|
*/
|
|
472
481
|
exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z.object({
|
|
473
|
-
type: zod_1.z.enum([
|
|
482
|
+
type: zod_1.z.enum(['image-to-video']),
|
|
474
483
|
imageUrl: zod_1.z.string(),
|
|
475
484
|
guidanceScale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
476
485
|
return undefined; if (Array.isArray(v))
|
|
@@ -485,22 +494,22 @@ exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z
|
|
|
485
494
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
486
495
|
return v;
|
|
487
496
|
return Number(v);
|
|
488
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
|
|
497
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
|
|
489
498
|
}).strict();
|
|
490
499
|
exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
491
500
|
/**
|
|
492
501
|
* Options for the Shotstack text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
493
502
|
*/
|
|
494
503
|
exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = zod_1.z.object({
|
|
495
|
-
type: zod_1.z.enum([
|
|
496
|
-
prompt: zod_1.z.string()
|
|
504
|
+
type: zod_1.z.enum(['text-generator']),
|
|
505
|
+
prompt: zod_1.z.string()
|
|
497
506
|
}).strict();
|
|
498
507
|
exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
499
508
|
/**
|
|
500
509
|
* Options for the Shotstack text-to-image service. Set a text prompt to generate an image from. The output will be generated as a PNG file available at the URL returned in the response.
|
|
501
510
|
*/
|
|
502
511
|
exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.object({
|
|
503
|
-
type: zod_1.z.enum([
|
|
512
|
+
type: zod_1.z.enum(['text-to-image']),
|
|
504
513
|
prompt: zod_1.z.string(),
|
|
505
514
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
506
515
|
return undefined; if (Array.isArray(v))
|
|
@@ -515,154 +524,146 @@ exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.o
|
|
|
515
524
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
516
525
|
return v;
|
|
517
526
|
return Number(v);
|
|
518
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
527
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
519
528
|
}).strict();
|
|
520
529
|
exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
521
530
|
/**
|
|
522
531
|
* Options for the Shotstack text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
523
532
|
*/
|
|
524
533
|
exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = zod_1.z.object({
|
|
525
|
-
type: zod_1.z.enum([
|
|
534
|
+
type: zod_1.z.enum(['text-to-speech']),
|
|
526
535
|
text: zod_1.z.string(),
|
|
527
536
|
voice: zod_1.z.enum([
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
537
|
+
'Hala',
|
|
538
|
+
'Lisa',
|
|
539
|
+
'Arlet',
|
|
540
|
+
'Hiujin',
|
|
541
|
+
'Zhiyu',
|
|
542
|
+
'Sofie',
|
|
543
|
+
'Laura',
|
|
544
|
+
'Olivia',
|
|
545
|
+
'Amy',
|
|
546
|
+
'Emma',
|
|
547
|
+
'Brian',
|
|
548
|
+
'Arthur',
|
|
549
|
+
'Kajal',
|
|
550
|
+
'Niamh',
|
|
551
|
+
'Aria',
|
|
552
|
+
'Ayanda',
|
|
553
|
+
'Ivy',
|
|
554
|
+
'Joanna',
|
|
555
|
+
'Kendra',
|
|
556
|
+
'Kimberly',
|
|
557
|
+
'Salli',
|
|
558
|
+
'Joey',
|
|
559
|
+
'Justin',
|
|
560
|
+
'Kevin',
|
|
561
|
+
'Matthew',
|
|
562
|
+
'Ruth',
|
|
563
|
+
'Stephen',
|
|
564
|
+
'Suvi',
|
|
565
|
+
'Léa',
|
|
566
|
+
'Rémi',
|
|
567
|
+
'Gabrielle',
|
|
568
|
+
'Liam',
|
|
569
|
+
'Vicki',
|
|
570
|
+
'Daniel',
|
|
571
|
+
'Hannah',
|
|
572
|
+
'Kajal',
|
|
573
|
+
'Bianca',
|
|
574
|
+
'Adriano',
|
|
575
|
+
'Takumi',
|
|
576
|
+
'Kazuha',
|
|
577
|
+
'Tomoko',
|
|
578
|
+
'Seoyeon',
|
|
579
|
+
'Ida',
|
|
580
|
+
'Ola',
|
|
581
|
+
'Camila',
|
|
582
|
+
'Vitória',
|
|
583
|
+
'Vitoria',
|
|
584
|
+
'Thiago',
|
|
585
|
+
'Inês',
|
|
586
|
+
'Ines',
|
|
587
|
+
'Lucia',
|
|
588
|
+
'Sergio',
|
|
589
|
+
'Mia',
|
|
590
|
+
'Andrés',
|
|
591
|
+
'Lupe',
|
|
592
|
+
'Pedro',
|
|
593
|
+
'Elin'
|
|
585
594
|
]),
|
|
586
595
|
language: zod_1.z.optional(zod_1.z.enum([
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
596
|
+
'cmn-CN',
|
|
597
|
+
'da-DK',
|
|
598
|
+
'de-DE',
|
|
599
|
+
'en-AU',
|
|
600
|
+
'en-GB',
|
|
601
|
+
'en-IN',
|
|
602
|
+
'en-US',
|
|
603
|
+
'es-ES',
|
|
604
|
+
'es-MX',
|
|
605
|
+
'es-US',
|
|
606
|
+
'fr-CA',
|
|
607
|
+
'fr-FR',
|
|
608
|
+
'it-IT',
|
|
609
|
+
'ja-JP',
|
|
610
|
+
'hi-IN',
|
|
611
|
+
'ko-KR',
|
|
612
|
+
'nb-NO',
|
|
613
|
+
'nl-NL',
|
|
614
|
+
'pl-PL',
|
|
615
|
+
'pt-BR',
|
|
616
|
+
'pt-PT',
|
|
617
|
+
'sv-SE',
|
|
618
|
+
'en-NZ',
|
|
619
|
+
'en-ZA',
|
|
620
|
+
'ca-ES',
|
|
621
|
+
'de-AT',
|
|
622
|
+
'yue-CN',
|
|
623
|
+
'ar-AE',
|
|
624
|
+
'fi-FI'
|
|
616
625
|
])),
|
|
617
|
-
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false)
|
|
626
|
+
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false)
|
|
618
627
|
}).strict();
|
|
619
628
|
exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
620
629
|
/**
|
|
621
630
|
* Generate assets using the native Shotstack provider AI services.
|
|
622
631
|
*/
|
|
623
632
|
exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = zod_1.z.union([
|
|
624
|
-
zod_1.z
|
|
625
|
-
.
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
.
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
type: zod_1.z.literal(
|
|
632
|
-
})
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
|
|
637
|
-
})
|
|
638
|
-
.and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
639
|
-
zod_1.z
|
|
640
|
-
.object({
|
|
641
|
-
type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
|
|
642
|
-
})
|
|
643
|
-
.and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
|
|
633
|
+
zod_1.z.object({
|
|
634
|
+
type: zod_1.z.literal('shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions')
|
|
635
|
+
}).strict().and(exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
|
|
636
|
+
zod_1.z.object({
|
|
637
|
+
type: zod_1.z.literal('shotstackTextToImageOptions_ShotstackTextToImageOptions')
|
|
638
|
+
}).strict().and(exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
|
|
639
|
+
zod_1.z.object({
|
|
640
|
+
type: zod_1.z.literal('shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions')
|
|
641
|
+
}).strict().and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
642
|
+
zod_1.z.object({
|
|
643
|
+
type: zod_1.z.literal('shotstackImageToVideoOptions_ShotstackImageToVideoOptions')
|
|
644
|
+
}).strict().and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema)
|
|
644
645
|
]);
|
|
645
646
|
exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
|
|
646
647
|
/**
|
|
647
648
|
* Generate assets using the native Shotstack provider. Shotstack provides a text-to-speech and a text-to-image service. The Shotstack provider works natively with your existing API key, no additional credentials are required.
|
|
648
649
|
*/
|
|
649
650
|
exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = zod_1.z.object({
|
|
650
|
-
provider: zod_1.z.enum([
|
|
651
|
-
options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
|
|
651
|
+
provider: zod_1.z.enum(['shotstack']),
|
|
652
|
+
options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
|
|
652
653
|
}).strict();
|
|
653
654
|
exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
654
655
|
/**
|
|
655
656
|
* Options for the Stability AI text-to-image service. Set a text prompt to generate an image from plus other engine and configuration options. The output will be generated as a JPG file available at the URL returned in the response.
|
|
656
657
|
*/
|
|
657
658
|
exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1.z.object({
|
|
658
|
-
type: zod_1.z.enum([
|
|
659
|
+
type: zod_1.z.enum(['text-to-image']),
|
|
659
660
|
prompt: zod_1.z.string(),
|
|
660
661
|
engine: zod_1.z.optional(zod_1.z.enum([
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
662
|
+
'stable-diffusion-xl-1024-v0-9',
|
|
663
|
+
'stable-diffusion-xl-1024-v1-0',
|
|
664
|
+
'stable-diffusion-v1-6',
|
|
665
|
+
'stable-diffusion-512-v2-1',
|
|
666
|
+
'stable-diffusion-xl-beta-v2-2-2'
|
|
666
667
|
])),
|
|
667
668
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
668
669
|
return undefined; if (Array.isArray(v))
|
|
@@ -700,24 +701,24 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
|
|
|
700
701
|
return Number(v);
|
|
701
702
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),
|
|
702
703
|
stylePreset: zod_1.z.optional(zod_1.z.enum([
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
]))
|
|
704
|
+
'3d-model',
|
|
705
|
+
'analog-film',
|
|
706
|
+
'anime',
|
|
707
|
+
'cinematic',
|
|
708
|
+
'comic-book',
|
|
709
|
+
'digital-art',
|
|
710
|
+
'enhance',
|
|
711
|
+
'fantasy-art',
|
|
712
|
+
'isometric',
|
|
713
|
+
'line-art',
|
|
714
|
+
'low-poly',
|
|
715
|
+
'modeling-compound',
|
|
716
|
+
'neon-punk',
|
|
717
|
+
'origami',
|
|
718
|
+
'photographic',
|
|
719
|
+
'pixel-art',
|
|
720
|
+
'tile-texture'
|
|
721
|
+
]))
|
|
721
722
|
}).strict();
|
|
722
723
|
exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
723
724
|
/**
|
|
@@ -727,54 +728,40 @@ exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOpti
|
|
|
727
728
|
* <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
|
|
728
729
|
* </ul>
|
|
729
730
|
*/
|
|
730
|
-
exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
|
|
731
|
-
.
|
|
732
|
-
|
|
733
|
-
})
|
|
734
|
-
.and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
731
|
+
exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z.object({
|
|
732
|
+
type: zod_1.z.literal('stabilityAiTextToImageOptions_StabilityAiTextToImageOptions')
|
|
733
|
+
}).strict().and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
735
734
|
exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
|
|
736
735
|
/**
|
|
737
736
|
* Generate assets using Stability AI. Stability AI provide a text-to-image service using Stable Diffusion. The Stability AI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/stability-ai), not in the request.
|
|
738
737
|
*/
|
|
739
738
|
exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = zod_1.z.object({
|
|
740
|
-
provider: zod_1.z.enum([
|
|
741
|
-
options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
|
|
739
|
+
provider: zod_1.z.enum(['stability-ai']),
|
|
740
|
+
options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
|
|
742
741
|
}).strict();
|
|
743
742
|
exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
744
743
|
/**
|
|
745
744
|
* A generated asset is a media asset created by the Create API. You can use native or third party providers to generate video, audio and image files using Generative AI services like text-to-speech and text-to-avatar.
|
|
746
745
|
*/
|
|
747
746
|
exports.generatedAssetGeneratedAssetSchema = zod_1.z.union([
|
|
748
|
-
zod_1.z
|
|
749
|
-
.
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
.
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
provider: zod_1.z.literal(
|
|
756
|
-
})
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
zod_1.z
|
|
764
|
-
.
|
|
765
|
-
|
|
766
|
-
})
|
|
767
|
-
.and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
768
|
-
zod_1.z
|
|
769
|
-
.object({
|
|
770
|
-
provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
|
|
771
|
-
})
|
|
772
|
-
.and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
773
|
-
zod_1.z
|
|
774
|
-
.object({
|
|
775
|
-
provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
|
|
776
|
-
})
|
|
777
|
-
.and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
|
|
747
|
+
zod_1.z.object({
|
|
748
|
+
provider: zod_1.z.literal('shotstackGeneratedAsset_ShotstackGeneratedAsset')
|
|
749
|
+
}).strict().and(exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema),
|
|
750
|
+
zod_1.z.object({
|
|
751
|
+
provider: zod_1.z.literal('didGeneratedAsset_DIDGeneratedAsset')
|
|
752
|
+
}).strict().and(exports.didGeneratedAssetDidGeneratedAssetSchema),
|
|
753
|
+
zod_1.z.object({
|
|
754
|
+
provider: zod_1.z.literal('elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset')
|
|
755
|
+
}).strict().and(exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
|
|
756
|
+
zod_1.z.object({
|
|
757
|
+
provider: zod_1.z.literal('heygenGeneratedAsset_HeyGenGeneratedAsset')
|
|
758
|
+
}).strict().and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
759
|
+
zod_1.z.object({
|
|
760
|
+
provider: zod_1.z.literal('openaiGeneratedAsset_OpenAiGeneratedAsset')
|
|
761
|
+
}).strict().and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
762
|
+
zod_1.z.object({
|
|
763
|
+
provider: zod_1.z.literal('stabilityAiGeneratedAsset_StabilityAiGeneratedAsset')
|
|
764
|
+
}).strict().and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema)
|
|
778
765
|
]);
|
|
779
766
|
exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
|
|
780
767
|
/**
|
|
@@ -808,7 +795,7 @@ exports.cropCropSchema = zod_1.z.object({
|
|
|
808
795
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
809
796
|
return v;
|
|
810
797
|
return Number(v);
|
|
811
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
798
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
812
799
|
}).strict();
|
|
813
800
|
exports.cropSchema = exports.cropCropSchema;
|
|
814
801
|
/**
|
|
@@ -818,14 +805,14 @@ exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSche
|
|
|
818
805
|
host: zod_1.z.string(),
|
|
819
806
|
cpCode: zod_1.z.string(),
|
|
820
807
|
path: zod_1.z.optional(zod_1.z.unknown()),
|
|
821
|
-
filename: zod_1.z.optional(zod_1.z.unknown())
|
|
808
|
+
filename: zod_1.z.optional(zod_1.z.unknown())
|
|
822
809
|
}).strict();
|
|
823
810
|
/**
|
|
824
811
|
* Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.
|
|
825
812
|
*/
|
|
826
813
|
exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = zod_1.z.object({
|
|
827
814
|
provider: zod_1.z.literal("akamai-netstorage"),
|
|
828
|
-
options: zod_1.z.optional(exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema)
|
|
815
|
+
options: zod_1.z.optional(exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema)
|
|
829
816
|
}).strict();
|
|
830
817
|
/**
|
|
831
818
|
* Pass additional options to control how files are stored in Azure Blob Storage.
|
|
@@ -834,14 +821,14 @@ exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSche
|
|
|
834
821
|
accountName: zod_1.z.string(),
|
|
835
822
|
container: zod_1.z.string(),
|
|
836
823
|
prefix: zod_1.z.optional(zod_1.z.unknown()),
|
|
837
|
-
filename: zod_1.z.optional(zod_1.z.unknown())
|
|
824
|
+
filename: zod_1.z.optional(zod_1.z.unknown())
|
|
838
825
|
}).strict();
|
|
839
826
|
/**
|
|
840
827
|
* Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.
|
|
841
828
|
*/
|
|
842
829
|
exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = zod_1.z.object({
|
|
843
830
|
provider: zod_1.z.literal("azure-blob-storage"),
|
|
844
|
-
options: zod_1.z.optional(exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema)
|
|
831
|
+
options: zod_1.z.optional(exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema)
|
|
845
832
|
}).strict();
|
|
846
833
|
/**
|
|
847
834
|
* Pass additional options to control how files are stored in Google Cloud Storage.
|
|
@@ -849,7 +836,7 @@ exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = zod_1.z.o
|
|
|
849
836
|
exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = zod_1.z.object({
|
|
850
837
|
bucket: zod_1.z.string(),
|
|
851
838
|
prefix: zod_1.z.optional(zod_1.z.string()),
|
|
852
|
-
filename: zod_1.z.optional(zod_1.z.string())
|
|
839
|
+
filename: zod_1.z.optional(zod_1.z.string())
|
|
853
840
|
}).strict();
|
|
854
841
|
exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
855
842
|
/**
|
|
@@ -857,7 +844,7 @@ exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageD
|
|
|
857
844
|
*/
|
|
858
845
|
exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
|
|
859
846
|
provider: zod_1.z.literal("google-cloud-storage"),
|
|
860
|
-
options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
847
|
+
options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
861
848
|
}).strict();
|
|
862
849
|
exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
863
850
|
/**
|
|
@@ -865,7 +852,7 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
|
|
|
865
852
|
*/
|
|
866
853
|
exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
|
|
867
854
|
folderId: zod_1.z.string(),
|
|
868
|
-
filename: zod_1.z.optional(zod_1.z.string())
|
|
855
|
+
filename: zod_1.z.optional(zod_1.z.string())
|
|
869
856
|
}).strict();
|
|
870
857
|
exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
871
858
|
/**
|
|
@@ -873,15 +860,15 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
|
|
|
873
860
|
*/
|
|
874
861
|
exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
|
|
875
862
|
provider: zod_1.z.literal("google-drive"),
|
|
876
|
-
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
863
|
+
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
877
864
|
}).strict();
|
|
878
865
|
exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
|
|
879
866
|
/**
|
|
880
867
|
* Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
|
|
881
868
|
*/
|
|
882
869
|
exports.muxDestinationOptionsMuxDestinationOptionsSchema = zod_1.z.object({
|
|
883
|
-
playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum([
|
|
884
|
-
passthrough: zod_1.z.optional(zod_1.z.string().max(255))
|
|
870
|
+
playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(['public', 'signed']))),
|
|
871
|
+
passthrough: zod_1.z.optional(zod_1.z.string().max(255))
|
|
885
872
|
}).strict();
|
|
886
873
|
exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
887
874
|
/**
|
|
@@ -889,7 +876,7 @@ exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinatio
|
|
|
889
876
|
*/
|
|
890
877
|
exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
|
|
891
878
|
provider: zod_1.z.literal("mux"),
|
|
892
|
-
options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
879
|
+
options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
893
880
|
}).strict();
|
|
894
881
|
exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
|
|
895
882
|
/**
|
|
@@ -900,7 +887,7 @@ exports.s3DestinationOptionsS3DestinationOptionsSchema = zod_1.z.object({
|
|
|
900
887
|
bucket: zod_1.z.string(),
|
|
901
888
|
prefix: zod_1.z.optional(zod_1.z.string()),
|
|
902
889
|
filename: zod_1.z.optional(zod_1.z.string()),
|
|
903
|
-
acl: zod_1.z.optional(zod_1.z.string())
|
|
890
|
+
acl: zod_1.z.optional(zod_1.z.string())
|
|
904
891
|
}).strict();
|
|
905
892
|
exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema;
|
|
906
893
|
/**
|
|
@@ -908,7 +895,7 @@ exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOp
|
|
|
908
895
|
*/
|
|
909
896
|
exports.s3DestinationS3DestinationSchema = zod_1.z.object({
|
|
910
897
|
provider: zod_1.z.literal("s3"),
|
|
911
|
-
options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema)
|
|
898
|
+
options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema)
|
|
912
899
|
}).strict();
|
|
913
900
|
exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
914
901
|
/**
|
|
@@ -916,7 +903,7 @@ exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
|
916
903
|
*/
|
|
917
904
|
exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
|
|
918
905
|
provider: zod_1.z.literal("shotstack"),
|
|
919
|
-
exclude: zod_1.z.optional(zod_1.z.boolean())
|
|
906
|
+
exclude: zod_1.z.optional(zod_1.z.boolean())
|
|
920
907
|
}).strict();
|
|
921
908
|
exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
|
|
922
909
|
/**
|
|
@@ -924,27 +911,45 @@ exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestin
|
|
|
924
911
|
*/
|
|
925
912
|
exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = zod_1.z.object({
|
|
926
913
|
title: zod_1.z.optional(zod_1.z.string().max(150)),
|
|
927
|
-
privacyLevel: zod_1.z.optional(zod_1.z.enum([
|
|
914
|
+
privacyLevel: zod_1.z.optional(zod_1.z.enum([
|
|
915
|
+
'public',
|
|
916
|
+
'friends',
|
|
917
|
+
'private'
|
|
918
|
+
])),
|
|
928
919
|
disableDuet: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
929
920
|
disableStitch: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
930
|
-
disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false)
|
|
921
|
+
disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false)
|
|
931
922
|
}).strict();
|
|
932
923
|
/**
|
|
933
924
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
934
925
|
*/
|
|
935
926
|
exports.tiktokDestinationTiktokDestinationSchema = zod_1.z.object({
|
|
936
927
|
provider: zod_1.z.literal("tiktok"),
|
|
937
|
-
options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
928
|
+
options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
938
929
|
}).strict();
|
|
939
930
|
/**
|
|
940
931
|
* Options to control the visibility of videos and privacy features.
|
|
941
932
|
*/
|
|
942
933
|
exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod_1.z.object({
|
|
943
|
-
view: zod_1.z.optional(zod_1.z.enum([
|
|
944
|
-
|
|
945
|
-
|
|
934
|
+
view: zod_1.z.optional(zod_1.z.enum([
|
|
935
|
+
'anybody',
|
|
936
|
+
'nobody',
|
|
937
|
+
'contacts',
|
|
938
|
+
'password',
|
|
939
|
+
'unlisted'
|
|
940
|
+
])),
|
|
941
|
+
embed: zod_1.z.optional(zod_1.z.enum([
|
|
942
|
+
'public',
|
|
943
|
+
'private',
|
|
944
|
+
'whitelist'
|
|
945
|
+
])),
|
|
946
|
+
comments: zod_1.z.optional(zod_1.z.enum([
|
|
947
|
+
'anybody',
|
|
948
|
+
'nobody',
|
|
949
|
+
'contacts'
|
|
950
|
+
])),
|
|
946
951
|
download: zod_1.z.optional(zod_1.z.boolean()),
|
|
947
|
-
add: zod_1.z.optional(zod_1.z.boolean())
|
|
952
|
+
add: zod_1.z.optional(zod_1.z.boolean())
|
|
948
953
|
}).strict();
|
|
949
954
|
exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
950
955
|
/**
|
|
@@ -954,7 +959,7 @@ exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = zod_1.z.object({
|
|
|
954
959
|
name: zod_1.z.optional(zod_1.z.string()),
|
|
955
960
|
description: zod_1.z.optional(zod_1.z.string()),
|
|
956
961
|
privacy: zod_1.z.optional(exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
|
|
957
|
-
folderUri: zod_1.z.optional(zod_1.z.string())
|
|
962
|
+
folderUri: zod_1.z.optional(zod_1.z.string())
|
|
958
963
|
}).strict();
|
|
959
964
|
exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
960
965
|
/**
|
|
@@ -962,7 +967,7 @@ exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDest
|
|
|
962
967
|
*/
|
|
963
968
|
exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
|
|
964
969
|
provider: zod_1.z.literal("vimeo"),
|
|
965
|
-
options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
970
|
+
options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
966
971
|
}).strict();
|
|
967
972
|
exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
|
|
968
973
|
/**
|
|
@@ -987,14 +992,14 @@ exports.destinationsSchema = exports.destinationsDestinationsSchema;
|
|
|
987
992
|
*/
|
|
988
993
|
exports.fliptransformationFlipTransformationSchema = zod_1.z.object({
|
|
989
994
|
horizontal: zod_1.z.optional(zod_1.z.boolean()),
|
|
990
|
-
vertical: zod_1.z.optional(zod_1.z.boolean())
|
|
995
|
+
vertical: zod_1.z.optional(zod_1.z.boolean())
|
|
991
996
|
}).strict();
|
|
992
997
|
exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema;
|
|
993
998
|
/**
|
|
994
999
|
* Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
|
|
995
1000
|
*/
|
|
996
1001
|
exports.fontFontSchema = zod_1.z.object({
|
|
997
|
-
src: zod_1.z.string()
|
|
1002
|
+
src: zod_1.z.string()
|
|
998
1003
|
}).strict();
|
|
999
1004
|
exports.fontSchema = exports.fontFontSchema;
|
|
1000
1005
|
/**
|
|
@@ -1008,7 +1013,7 @@ exports.fontSchema = exports.fontFontSchema;
|
|
|
1008
1013
|
* @deprecated
|
|
1009
1014
|
*/
|
|
1010
1015
|
exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
1011
|
-
type: zod_1.z.enum([
|
|
1016
|
+
type: zod_1.z.enum(['html']),
|
|
1012
1017
|
html: zod_1.z.string(),
|
|
1013
1018
|
css: zod_1.z.optional(zod_1.z.string()),
|
|
1014
1019
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1027,35 +1032,43 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
|
1027
1032
|
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1028
1033
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
1029
1034
|
position: zod_1.z.optional(zod_1.z.enum([
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
]))
|
|
1035
|
+
'top',
|
|
1036
|
+
'topRight',
|
|
1037
|
+
'right',
|
|
1038
|
+
'bottomRight',
|
|
1039
|
+
'bottom',
|
|
1040
|
+
'bottomLeft',
|
|
1041
|
+
'left',
|
|
1042
|
+
'topLeft',
|
|
1043
|
+
'center'
|
|
1044
|
+
]))
|
|
1040
1045
|
}).strict();
|
|
1041
1046
|
exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
|
|
1042
1047
|
/**
|
|
1043
1048
|
* 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.
|
|
1044
1049
|
*/
|
|
1045
1050
|
exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
1046
|
-
type: zod_1.z.enum([
|
|
1051
|
+
type: zod_1.z.enum(['image']),
|
|
1047
1052
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
1048
|
-
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
1053
|
+
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
1049
1054
|
}).strict();
|
|
1050
1055
|
exports.imageAssetSchema = exports.imageassetImageAssetSchema;
|
|
1051
1056
|
/**
|
|
1052
1057
|
* The ImageToVideoAsset lets you create a video from an image and a text prompt.
|
|
1053
1058
|
*/
|
|
1054
1059
|
exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
|
|
1055
|
-
type: zod_1.z.enum([
|
|
1060
|
+
type: zod_1.z.enum(['image-to-video']),
|
|
1056
1061
|
src: zod_1.z.string().min(1),
|
|
1057
1062
|
prompt: zod_1.z.optional(zod_1.z.string()),
|
|
1058
|
-
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
1063
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
1064
|
+
'1:1',
|
|
1065
|
+
'4:3',
|
|
1066
|
+
'16:9',
|
|
1067
|
+
'9:16',
|
|
1068
|
+
'3:4',
|
|
1069
|
+
'21:9',
|
|
1070
|
+
'9:21'
|
|
1071
|
+
])),
|
|
1059
1072
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1060
1073
|
return undefined; if (Array.isArray(v))
|
|
1061
1074
|
return v; if (typeof v === 'string') {
|
|
@@ -1063,7 +1076,7 @@ exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
|
|
|
1063
1076
|
return v;
|
|
1064
1077
|
return Number(v);
|
|
1065
1078
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1066
|
-
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
1079
|
+
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
1067
1080
|
}).strict();
|
|
1068
1081
|
exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema;
|
|
1069
1082
|
/**
|
|
@@ -1071,24 +1084,24 @@ exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSche
|
|
|
1071
1084
|
*/
|
|
1072
1085
|
exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = zod_1.z.object({
|
|
1073
1086
|
preset: zod_1.z.enum([
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
])
|
|
1087
|
+
'conference',
|
|
1088
|
+
'interview',
|
|
1089
|
+
'lecture',
|
|
1090
|
+
'meeting',
|
|
1091
|
+
'mobile_phone',
|
|
1092
|
+
'music',
|
|
1093
|
+
'podcast',
|
|
1094
|
+
'studio',
|
|
1095
|
+
'voice_over'
|
|
1096
|
+
])
|
|
1084
1097
|
}).strict();
|
|
1085
1098
|
exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
1086
1099
|
/**
|
|
1087
1100
|
* Dolby.io audio enhancement provider. Credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/dolby), not in the request.
|
|
1088
1101
|
*/
|
|
1089
1102
|
exports.dolbyEnhancementDolbyEnhancementSchema = zod_1.z.object({
|
|
1090
|
-
provider: zod_1.z.string().default(
|
|
1091
|
-
options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
|
|
1103
|
+
provider: zod_1.z.string().default('dolby'),
|
|
1104
|
+
options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
|
|
1092
1105
|
}).strict();
|
|
1093
1106
|
exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
|
|
1094
1107
|
/**
|
|
@@ -1097,17 +1110,15 @@ exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
|
|
|
1097
1110
|
* <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
|
|
1098
1111
|
* </ul>
|
|
1099
1112
|
*/
|
|
1100
|
-
exports.audioEnhancementAudioEnhancementSchema = zod_1.z
|
|
1101
|
-
.
|
|
1102
|
-
|
|
1103
|
-
})
|
|
1104
|
-
.and(exports.dolbyEnhancementDolbyEnhancementSchema);
|
|
1113
|
+
exports.audioEnhancementAudioEnhancementSchema = zod_1.z.object({
|
|
1114
|
+
enhancement: zod_1.z.literal('dolbyEnhancement_DolbyEnhancement')
|
|
1115
|
+
}).strict().and(exports.dolbyEnhancementDolbyEnhancementSchema);
|
|
1105
1116
|
exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema;
|
|
1106
1117
|
/**
|
|
1107
1118
|
* Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
|
|
1108
1119
|
*/
|
|
1109
1120
|
exports.enhancementsEnhancementsSchema = zod_1.z.object({
|
|
1110
|
-
audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema)
|
|
1121
|
+
audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema)
|
|
1111
1122
|
}).strict();
|
|
1112
1123
|
exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
|
|
1113
1124
|
/**
|
|
@@ -1116,14 +1127,14 @@ exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
|
|
|
1116
1127
|
exports.ingesterrorresponsedataIngestErrorResponseDataSchema = zod_1.z.object({
|
|
1117
1128
|
status: zod_1.z.string(),
|
|
1118
1129
|
title: zod_1.z.string(),
|
|
1119
|
-
detail: zod_1.z.string()
|
|
1130
|
+
detail: zod_1.z.string()
|
|
1120
1131
|
}).strict();
|
|
1121
1132
|
exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
1122
1133
|
/**
|
|
1123
1134
|
* Error response data for validation and other errors returned by the Ingest API.
|
|
1124
1135
|
*/
|
|
1125
1136
|
exports.ingesterrorresponseIngestErrorResponseSchema = zod_1.z.object({
|
|
1126
|
-
errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema)
|
|
1137
|
+
errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema)
|
|
1127
1138
|
}).strict();
|
|
1128
1139
|
exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema;
|
|
1129
1140
|
/**
|
|
@@ -1131,14 +1142,14 @@ exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorRespon
|
|
|
1131
1142
|
*/
|
|
1132
1143
|
exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = zod_1.z.object({
|
|
1133
1144
|
type: zod_1.z.string(),
|
|
1134
|
-
id: zod_1.z.string()
|
|
1145
|
+
id: zod_1.z.string()
|
|
1135
1146
|
}).strict();
|
|
1136
1147
|
exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
1137
1148
|
/**
|
|
1138
1149
|
* The response returned by the Ingest API [fetch source](#fetch-source) request. Includes the id of the source file. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1139
1150
|
*/
|
|
1140
1151
|
exports.queuedsourceresponseQueuedSourceResponseSchema = zod_1.z.object({
|
|
1141
|
-
data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema
|
|
1152
|
+
data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema
|
|
1142
1153
|
}).strict();
|
|
1143
1154
|
exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema;
|
|
1144
1155
|
/**
|
|
@@ -1147,7 +1158,7 @@ exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceRes
|
|
|
1147
1158
|
exports.uploadresponseattributesUploadResponseAttributesSchema = zod_1.z.object({
|
|
1148
1159
|
id: zod_1.z.string(),
|
|
1149
1160
|
url: zod_1.z.string(),
|
|
1150
|
-
expires: zod_1.z.string()
|
|
1161
|
+
expires: zod_1.z.string()
|
|
1151
1162
|
}).strict();
|
|
1152
1163
|
exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema;
|
|
1153
1164
|
/**
|
|
@@ -1156,14 +1167,14 @@ exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadR
|
|
|
1156
1167
|
exports.uploadresponsedataUploadResponseDataSchema = zod_1.z.object({
|
|
1157
1168
|
type: zod_1.z.string(),
|
|
1158
1169
|
id: zod_1.z.string(),
|
|
1159
|
-
attributes: exports.uploadresponseattributesUploadResponseAttributesSchema
|
|
1170
|
+
attributes: exports.uploadresponseattributesUploadResponseAttributesSchema
|
|
1160
1171
|
}).strict();
|
|
1161
1172
|
exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema;
|
|
1162
1173
|
/**
|
|
1163
1174
|
* The response returned by the Ingest API [direct upload](#direct-upload) request. Includes the id of the file and the signed url to send the binary file to. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1164
1175
|
*/
|
|
1165
1176
|
exports.uploadresponseUploadResponseSchema = zod_1.z.object({
|
|
1166
|
-
data: exports.uploadresponsedataUploadResponseDataSchema
|
|
1177
|
+
data: exports.uploadresponsedataUploadResponseDataSchema
|
|
1167
1178
|
}).strict();
|
|
1168
1179
|
exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
|
|
1169
1180
|
/**
|
|
@@ -1177,21 +1188,21 @@ exports.speedSpeedSchema = zod_1.z.object({
|
|
|
1177
1188
|
return v;
|
|
1178
1189
|
return Number(v);
|
|
1179
1190
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1180
|
-
preservePitch: zod_1.z.optional(zod_1.z.boolean())
|
|
1191
|
+
preservePitch: zod_1.z.optional(zod_1.z.boolean())
|
|
1181
1192
|
}).strict();
|
|
1182
1193
|
exports.speedSchema = exports.speedSpeedSchema;
|
|
1183
1194
|
/**
|
|
1184
1195
|
* Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
|
|
1185
1196
|
*/
|
|
1186
1197
|
exports.transcriptionTranscriptionSchema = zod_1.z.object({
|
|
1187
|
-
format: zod_1.z.optional(zod_1.z.enum([
|
|
1198
|
+
format: zod_1.z.optional(zod_1.z.enum(['srt', 'vtt']))
|
|
1188
1199
|
}).strict();
|
|
1189
1200
|
exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
|
|
1190
1201
|
/**
|
|
1191
1202
|
* 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.
|
|
1192
1203
|
*/
|
|
1193
1204
|
exports.lumaassetLumaAssetSchema = zod_1.z.object({
|
|
1194
|
-
type: zod_1.z.enum([
|
|
1205
|
+
type: zod_1.z.enum(['luma']),
|
|
1195
1206
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
1196
1207
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1197
1208
|
return undefined; if (Array.isArray(v))
|
|
@@ -1199,7 +1210,7 @@ exports.lumaassetLumaAssetSchema = zod_1.z.object({
|
|
|
1199
1210
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1200
1211
|
return v;
|
|
1201
1212
|
return Number(v);
|
|
1202
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1213
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1203
1214
|
}).strict();
|
|
1204
1215
|
exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
|
|
1205
1216
|
/**
|
|
@@ -1207,7 +1218,7 @@ exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
|
|
|
1207
1218
|
*/
|
|
1208
1219
|
exports.mergefieldMergeFieldSchema = zod_1.z.object({
|
|
1209
1220
|
find: zod_1.z.string(),
|
|
1210
|
-
replace: zod_1.z.
|
|
1221
|
+
replace: zod_1.z.unknown()
|
|
1211
1222
|
}).strict();
|
|
1212
1223
|
exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
|
|
1213
1224
|
/**
|
|
@@ -1220,7 +1231,7 @@ exports.posterPosterSchema = zod_1.z.object({
|
|
|
1220
1231
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1221
1232
|
return v;
|
|
1222
1233
|
return Number(v);
|
|
1223
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1234
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1224
1235
|
}).strict();
|
|
1225
1236
|
exports.posterSchema = exports.posterPosterSchema;
|
|
1226
1237
|
/**
|
|
@@ -1240,7 +1251,7 @@ exports.rangeRangeSchema = zod_1.z.object({
|
|
|
1240
1251
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1241
1252
|
return v;
|
|
1242
1253
|
return Number(v);
|
|
1243
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1254
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1244
1255
|
}).strict();
|
|
1245
1256
|
exports.rangeSchema = exports.rangeRangeSchema;
|
|
1246
1257
|
/**
|
|
@@ -1254,9 +1265,14 @@ exports.assetresponseattributesAssetResponseAttributesSchema = zod_1.z.object({
|
|
|
1254
1265
|
providerId: zod_1.z.optional(zod_1.z.string()),
|
|
1255
1266
|
filename: zod_1.z.optional(zod_1.z.string()),
|
|
1256
1267
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
1257
|
-
status: zod_1.z.enum([
|
|
1268
|
+
status: zod_1.z.enum([
|
|
1269
|
+
'importing',
|
|
1270
|
+
'ready',
|
|
1271
|
+
'failed',
|
|
1272
|
+
'deleted'
|
|
1273
|
+
]),
|
|
1258
1274
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
1259
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
1275
|
+
updated: zod_1.z.optional(zod_1.z.string())
|
|
1260
1276
|
}).strict();
|
|
1261
1277
|
exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema;
|
|
1262
1278
|
/**
|
|
@@ -1264,21 +1280,21 @@ exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResp
|
|
|
1264
1280
|
*/
|
|
1265
1281
|
exports.assetresponsedataAssetResponseDataSchema = zod_1.z.object({
|
|
1266
1282
|
type: zod_1.z.string(),
|
|
1267
|
-
attributes: exports.assetresponseattributesAssetResponseAttributesSchema
|
|
1283
|
+
attributes: exports.assetresponseattributesAssetResponseAttributesSchema
|
|
1268
1284
|
}).strict();
|
|
1269
1285
|
exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema;
|
|
1270
1286
|
/**
|
|
1271
1287
|
* The response returned by the Serve API [get asset by render id](#get-asset-by-render-id) request. The response is an array of asset resources, including video, image, audio, thumbnail and poster image. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1272
1288
|
*/
|
|
1273
1289
|
exports.assetrenderresponseAssetRenderResponseSchema = zod_1.z.object({
|
|
1274
|
-
data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema)
|
|
1290
|
+
data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema)
|
|
1275
1291
|
}).strict();
|
|
1276
1292
|
exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema;
|
|
1277
1293
|
/**
|
|
1278
1294
|
* The response returned by the Serve API [get asset](#get-asset) request. Includes details of a hosted video, image, audio file, thumbnail or poster image. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1279
1295
|
*/
|
|
1280
1296
|
exports.assetresponseAssetResponseSchema = zod_1.z.object({
|
|
1281
|
-
data: exports.assetresponsedataAssetResponseDataSchema
|
|
1297
|
+
data: exports.assetresponsedataAssetResponseDataSchema
|
|
1282
1298
|
}).strict();
|
|
1283
1299
|
exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
1284
1300
|
/**
|
|
@@ -1287,7 +1303,7 @@ exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
|
1287
1303
|
exports.proberesponseProbeResponseSchema = zod_1.z.object({
|
|
1288
1304
|
success: zod_1.z.boolean(),
|
|
1289
1305
|
message: zod_1.z.string(),
|
|
1290
|
-
response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())
|
|
1306
|
+
response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())
|
|
1291
1307
|
}).strict();
|
|
1292
1308
|
exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
|
|
1293
1309
|
/**
|
|
@@ -1295,7 +1311,7 @@ exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
|
|
|
1295
1311
|
*/
|
|
1296
1312
|
exports.queuedresponsedataQueuedResponseDataSchema = zod_1.z.object({
|
|
1297
1313
|
message: zod_1.z.string(),
|
|
1298
|
-
id: zod_1.z.string()
|
|
1314
|
+
id: zod_1.z.string()
|
|
1299
1315
|
}).strict();
|
|
1300
1316
|
exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema;
|
|
1301
1317
|
/**
|
|
@@ -1304,7 +1320,7 @@ exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataS
|
|
|
1304
1320
|
exports.queuedresponseQueuedResponseSchema = zod_1.z.object({
|
|
1305
1321
|
success: zod_1.z.boolean(),
|
|
1306
1322
|
message: zod_1.z.string(),
|
|
1307
|
-
response: exports.queuedresponsedataQueuedResponseDataSchema
|
|
1323
|
+
response: exports.queuedresponsedataQueuedResponseDataSchema
|
|
1308
1324
|
}).strict();
|
|
1309
1325
|
exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema;
|
|
1310
1326
|
/**
|
|
@@ -1314,7 +1330,7 @@ exports.templatelistresponseitemTemplateListResponseItemSchema = zod_1.z.object(
|
|
|
1314
1330
|
id: zod_1.z.string(),
|
|
1315
1331
|
name: zod_1.z.string(),
|
|
1316
1332
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
1317
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
1333
|
+
updated: zod_1.z.optional(zod_1.z.string())
|
|
1318
1334
|
}).strict();
|
|
1319
1335
|
exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema;
|
|
1320
1336
|
/**
|
|
@@ -1322,7 +1338,7 @@ exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplat
|
|
|
1322
1338
|
*/
|
|
1323
1339
|
exports.templatelistresponsedataTemplateListResponseDataSchema = zod_1.z.object({
|
|
1324
1340
|
owner: zod_1.z.string(),
|
|
1325
|
-
templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema)
|
|
1341
|
+
templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema)
|
|
1326
1342
|
}).strict();
|
|
1327
1343
|
exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema;
|
|
1328
1344
|
/**
|
|
@@ -1331,7 +1347,7 @@ exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplat
|
|
|
1331
1347
|
exports.templatelistresponseTemplateListResponseSchema = zod_1.z.object({
|
|
1332
1348
|
success: zod_1.z.boolean(),
|
|
1333
1349
|
message: zod_1.z.string(),
|
|
1334
|
-
response: exports.templatelistresponsedataTemplateListResponseDataSchema
|
|
1350
|
+
response: exports.templatelistresponsedataTemplateListResponseDataSchema
|
|
1335
1351
|
}).strict();
|
|
1336
1352
|
exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema;
|
|
1337
1353
|
/**
|
|
@@ -1339,7 +1355,7 @@ exports.templateListResponseSchema = exports.templatelistresponseTemplateListRes
|
|
|
1339
1355
|
*/
|
|
1340
1356
|
exports.templateresponsedataTemplateResponseDataSchema = zod_1.z.object({
|
|
1341
1357
|
message: zod_1.z.string(),
|
|
1342
|
-
id: zod_1.z.string()
|
|
1358
|
+
id: zod_1.z.string()
|
|
1343
1359
|
}).strict();
|
|
1344
1360
|
exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema;
|
|
1345
1361
|
/**
|
|
@@ -1348,14 +1364,14 @@ exports.templateResponseDataSchema = exports.templateresponsedataTemplateRespons
|
|
|
1348
1364
|
exports.templateresponseTemplateResponseSchema = zod_1.z.object({
|
|
1349
1365
|
success: zod_1.z.boolean(),
|
|
1350
1366
|
message: zod_1.z.string(),
|
|
1351
|
-
response: exports.templateresponsedataTemplateResponseDataSchema
|
|
1367
|
+
response: exports.templateresponsedataTemplateResponseDataSchema
|
|
1352
1368
|
}).strict();
|
|
1353
1369
|
exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
|
|
1354
1370
|
/**
|
|
1355
1371
|
* Font properties for the active/highlighted word.
|
|
1356
1372
|
*/
|
|
1357
1373
|
exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
|
|
1358
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1374
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffff00'),
|
|
1359
1375
|
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*\}\}$/)])),
|
|
1360
1376
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1361
1377
|
return undefined; if (Array.isArray(v))
|
|
@@ -1364,66 +1380,84 @@ exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
|
|
|
1364
1380
|
return v;
|
|
1365
1381
|
return Number(v);
|
|
1366
1382
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1383
|
+
textDecoration: zod_1.z.optional(zod_1.z.enum([
|
|
1384
|
+
'none',
|
|
1385
|
+
'underline',
|
|
1386
|
+
'line-through'
|
|
1387
|
+
]))
|
|
1367
1388
|
}).strict();
|
|
1368
1389
|
exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1369
1390
|
/**
|
|
1370
|
-
*
|
|
1371
|
-
*/
|
|
1372
|
-
exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
1373
|
-
style: zod_1.z.enum([
|
|
1374
|
-
"karaoke",
|
|
1375
|
-
"highlight",
|
|
1376
|
-
"pop",
|
|
1377
|
-
"fade",
|
|
1378
|
-
"slide",
|
|
1379
|
-
"bounce",
|
|
1380
|
-
"typewriter",
|
|
1381
|
-
"none",
|
|
1382
|
-
]),
|
|
1383
|
-
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1384
|
-
return undefined; if (Array.isArray(v))
|
|
1385
|
-
return v; if (typeof v === 'string') {
|
|
1386
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1387
|
-
return v;
|
|
1388
|
-
return Number(v);
|
|
1389
|
-
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1390
|
-
direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
|
|
1391
|
-
}).strict();
|
|
1392
|
-
exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1393
|
-
/**
|
|
1394
|
-
* Word-level timing information for caption animation.
|
|
1391
|
+
* Font properties for rich captions. Defaults to Roboto.
|
|
1395
1392
|
*/
|
|
1396
|
-
exports.
|
|
1397
|
-
|
|
1398
|
-
|
|
1393
|
+
exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
1394
|
+
family: zod_1.z.optional(zod_1.z.string()).default('Roboto'),
|
|
1395
|
+
size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1399
1396
|
return undefined; if (Array.isArray(v))
|
|
1400
1397
|
return v; if (typeof v === 'string') {
|
|
1401
1398
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1402
1399
|
return v;
|
|
1403
1400
|
return Number(v);
|
|
1404
|
-
} return v; }), zod_1.z.number().gte(
|
|
1405
|
-
|
|
1401
|
+
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1402
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
|
|
1403
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
|
|
1404
|
+
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1406
1405
|
return undefined; if (Array.isArray(v))
|
|
1407
1406
|
return v; if (typeof v === 'string') {
|
|
1408
1407
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1409
1408
|
return v;
|
|
1410
1409
|
return Number(v);
|
|
1411
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1412
|
-
|
|
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
|
+
]))
|
|
1417
|
+
}).strict();
|
|
1418
|
+
/**
|
|
1419
|
+
* Word-level animation properties for caption effects.
|
|
1420
|
+
*/
|
|
1421
|
+
exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
1422
|
+
style: zod_1.z.enum([
|
|
1423
|
+
'karaoke',
|
|
1424
|
+
'highlight',
|
|
1425
|
+
'pop',
|
|
1426
|
+
'fade',
|
|
1427
|
+
'slide',
|
|
1428
|
+
'bounce',
|
|
1429
|
+
'typewriter',
|
|
1430
|
+
'none'
|
|
1431
|
+
]),
|
|
1432
|
+
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1413
1433
|
return undefined; if (Array.isArray(v))
|
|
1414
1434
|
return v; if (typeof v === 'string') {
|
|
1415
1435
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1416
1436
|
return v;
|
|
1417
1437
|
return Number(v);
|
|
1418
|
-
} return v; }), zod_1.z.number().gte(0).lte(
|
|
1438
|
+
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1439
|
+
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1440
|
+
'left',
|
|
1441
|
+
'right',
|
|
1442
|
+
'up',
|
|
1443
|
+
'down'
|
|
1444
|
+
]))
|
|
1419
1445
|
}).strict();
|
|
1420
|
-
exports.
|
|
1446
|
+
exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1421
1447
|
/**
|
|
1422
1448
|
* Text alignment properties (horizontal and vertical).
|
|
1423
1449
|
*/
|
|
1424
1450
|
exports.richtextpropertiesRichTextAlignmentSchema = zod_1.z.object({
|
|
1425
|
-
horizontal: zod_1.z.optional(zod_1.z.enum([
|
|
1426
|
-
|
|
1451
|
+
horizontal: zod_1.z.optional(zod_1.z.enum([
|
|
1452
|
+
'left',
|
|
1453
|
+
'center',
|
|
1454
|
+
'right'
|
|
1455
|
+
])),
|
|
1456
|
+
vertical: zod_1.z.optional(zod_1.z.enum([
|
|
1457
|
+
'top',
|
|
1458
|
+
'middle',
|
|
1459
|
+
'bottom'
|
|
1460
|
+
]))
|
|
1427
1461
|
}).strict();
|
|
1428
1462
|
exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema;
|
|
1429
1463
|
/**
|
|
@@ -1431,12 +1465,12 @@ exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSch
|
|
|
1431
1465
|
*/
|
|
1432
1466
|
exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
|
|
1433
1467
|
preset: zod_1.z.enum([
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1468
|
+
'fadeIn',
|
|
1469
|
+
'slideIn',
|
|
1470
|
+
'typewriter',
|
|
1471
|
+
'ascend',
|
|
1472
|
+
'shift',
|
|
1473
|
+
'movingLetters'
|
|
1440
1474
|
]),
|
|
1441
1475
|
duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1442
1476
|
return undefined; if (Array.isArray(v))
|
|
@@ -1445,8 +1479,13 @@ exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
|
|
|
1445
1479
|
return v;
|
|
1446
1480
|
return Number(v);
|
|
1447
1481
|
} return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1448
|
-
style: zod_1.z.optional(zod_1.z.enum([
|
|
1449
|
-
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1482
|
+
style: zod_1.z.optional(zod_1.z.enum(['character', 'word'])),
|
|
1483
|
+
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1484
|
+
'left',
|
|
1485
|
+
'right',
|
|
1486
|
+
'up',
|
|
1487
|
+
'down'
|
|
1488
|
+
]))
|
|
1450
1489
|
}).strict();
|
|
1451
1490
|
exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema;
|
|
1452
1491
|
/**
|
|
@@ -1467,7 +1506,7 @@ exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
|
|
|
1467
1506
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1468
1507
|
return v;
|
|
1469
1508
|
return Number(v);
|
|
1470
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1509
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1471
1510
|
}).strict();
|
|
1472
1511
|
exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
|
|
1473
1512
|
/**
|
|
@@ -1481,7 +1520,7 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
|
|
|
1481
1520
|
return v;
|
|
1482
1521
|
return Number(v);
|
|
1483
1522
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1484
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1523
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1485
1524
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1486
1525
|
return undefined; if (Array.isArray(v))
|
|
1487
1526
|
return v; if (typeof v === 'string') {
|
|
@@ -1495,13 +1534,13 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
|
|
|
1495
1534
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1496
1535
|
return v;
|
|
1497
1536
|
return Number(v);
|
|
1498
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1537
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1499
1538
|
}).strict();
|
|
1500
1539
|
/**
|
|
1501
1540
|
* Gradient properties for text fill.
|
|
1502
1541
|
*/
|
|
1503
1542
|
exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
1504
|
-
type: zod_1.z.optional(zod_1.z.enum([
|
|
1543
|
+
type: zod_1.z.optional(zod_1.z.enum(['linear', 'radial'])),
|
|
1505
1544
|
angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1506
1545
|
return undefined; if (Array.isArray(v))
|
|
1507
1546
|
return v; if (typeof v === 'string') {
|
|
@@ -1509,8 +1548,7 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
|
1509
1548
|
return v;
|
|
1510
1549
|
return Number(v);
|
|
1511
1550
|
} return v; }), zod_1.z.number().gte(0).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1512
|
-
stops: zod_1.z
|
|
1513
|
-
.array(zod_1.z.object({
|
|
1551
|
+
stops: zod_1.z.array(zod_1.z.object({
|
|
1514
1552
|
offset: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1515
1553
|
return undefined; if (Array.isArray(v))
|
|
1516
1554
|
return v; if (typeof v === 'string') {
|
|
@@ -1518,9 +1556,8 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
|
1518
1556
|
return v;
|
|
1519
1557
|
return Number(v);
|
|
1520
1558
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1521
|
-
color: 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*\}\}$/)])
|
|
1522
|
-
}))
|
|
1523
|
-
.min(2),
|
|
1559
|
+
color: 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*\}\}$/)])
|
|
1560
|
+
})).min(2)
|
|
1524
1561
|
}).strict();
|
|
1525
1562
|
exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
|
|
1526
1563
|
/**
|
|
@@ -1554,7 +1591,7 @@ exports.richtextpropertiesRichTextPaddingSchema = zod_1.z.object({
|
|
|
1554
1591
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1555
1592
|
return v;
|
|
1556
1593
|
return Number(v);
|
|
1557
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1594
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1558
1595
|
}).strict();
|
|
1559
1596
|
/**
|
|
1560
1597
|
* Text shadow properties.
|
|
@@ -1581,14 +1618,14 @@ exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
|
|
|
1581
1618
|
return v;
|
|
1582
1619
|
return Number(v);
|
|
1583
1620
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1584
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1621
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1585
1622
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1586
1623
|
return undefined; if (Array.isArray(v))
|
|
1587
1624
|
return v; if (typeof v === 'string') {
|
|
1588
1625
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1589
1626
|
return v;
|
|
1590
1627
|
return Number(v);
|
|
1591
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
1628
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
1592
1629
|
}).strict();
|
|
1593
1630
|
exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
|
|
1594
1631
|
/**
|
|
@@ -1602,14 +1639,14 @@ exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
|
|
|
1602
1639
|
return v;
|
|
1603
1640
|
return Number(v);
|
|
1604
1641
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1605
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1642
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1606
1643
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1607
1644
|
return undefined; if (Array.isArray(v))
|
|
1608
1645
|
return v; if (typeof v === 'string') {
|
|
1609
1646
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1610
1647
|
return v;
|
|
1611
1648
|
return Number(v);
|
|
1612
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1649
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1613
1650
|
}).strict();
|
|
1614
1651
|
exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
|
|
1615
1652
|
/**
|
|
@@ -1618,20 +1655,21 @@ exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
|
|
|
1618
1655
|
exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
|
|
1619
1656
|
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveFontSchema),
|
|
1620
1657
|
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1658
|
+
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1621
1659
|
scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1622
1660
|
return undefined; if (Array.isArray(v))
|
|
1623
1661
|
return v; if (typeof v === 'string') {
|
|
1624
1662
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1625
1663
|
return v;
|
|
1626
1664
|
return Number(v);
|
|
1627
|
-
} 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
|
+
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1628
1666
|
}).strict();
|
|
1629
1667
|
exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema;
|
|
1630
1668
|
/**
|
|
1631
1669
|
* Font properties for rich text.
|
|
1632
1670
|
*/
|
|
1633
1671
|
exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
1634
|
-
family: zod_1.z.optional(zod_1.z.string()).default(
|
|
1672
|
+
family: zod_1.z.optional(zod_1.z.string()).default('Open Sans'),
|
|
1635
1673
|
size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1636
1674
|
return undefined; if (Array.isArray(v))
|
|
1637
1675
|
return v; if (typeof v === 'string') {
|
|
@@ -1639,8 +1677,8 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
|
1639
1677
|
return v;
|
|
1640
1678
|
return Number(v);
|
|
1641
1679
|
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1642
|
-
weight: zod_1.z.optional(zod_1.z.unknown()).default(
|
|
1643
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1680
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
|
|
1681
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1644
1682
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1645
1683
|
return undefined; if (Array.isArray(v))
|
|
1646
1684
|
return v; if (typeof v === 'string') {
|
|
@@ -1649,7 +1687,7 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
|
1649
1687
|
return Number(v);
|
|
1650
1688
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1651
1689
|
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*\}\}$/)])),
|
|
1652
|
-
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema)
|
|
1690
|
+
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema)
|
|
1653
1691
|
}).strict();
|
|
1654
1692
|
exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
|
|
1655
1693
|
/**
|
|
@@ -1677,9 +1715,18 @@ exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
|
|
|
1677
1715
|
return v;
|
|
1678
1716
|
return Number(v);
|
|
1679
1717
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
1680
|
-
textTransform: zod_1.z.optional(zod_1.z.enum([
|
|
1681
|
-
|
|
1682
|
-
|
|
1718
|
+
textTransform: zod_1.z.optional(zod_1.z.enum([
|
|
1719
|
+
'none',
|
|
1720
|
+
'uppercase',
|
|
1721
|
+
'lowercase',
|
|
1722
|
+
'capitalize'
|
|
1723
|
+
])),
|
|
1724
|
+
textDecoration: zod_1.z.optional(zod_1.z.enum([
|
|
1725
|
+
'none',
|
|
1726
|
+
'underline',
|
|
1727
|
+
'line-through'
|
|
1728
|
+
])),
|
|
1729
|
+
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema)
|
|
1683
1730
|
}).strict();
|
|
1684
1731
|
exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
1685
1732
|
/**
|
|
@@ -1689,39 +1736,27 @@ exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
|
1689
1736
|
*
|
|
1690
1737
|
*/
|
|
1691
1738
|
exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
1692
|
-
type: zod_1.z.enum([
|
|
1693
|
-
src: zod_1.z.
|
|
1694
|
-
|
|
1695
|
-
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1739
|
+
type: zod_1.z.enum(['rich-caption']),
|
|
1740
|
+
src: zod_1.z.string().min(1),
|
|
1741
|
+
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionFontSchema),
|
|
1696
1742
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1697
1743
|
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1698
1744
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1699
1745
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1700
|
-
|
|
1746
|
+
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1747
|
+
padding: zod_1.z.optional(zod_1.z.union([
|
|
1748
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1701
1749
|
return undefined; if (Array.isArray(v))
|
|
1702
1750
|
return v; if (typeof v === 'string') {
|
|
1703
1751
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1704
1752
|
return v;
|
|
1705
1753
|
return Number(v);
|
|
1706
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1754
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1755
|
+
exports.richtextpropertiesRichTextPaddingSchema
|
|
1756
|
+
])),
|
|
1707
1757
|
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1708
1758
|
active: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveSchema),
|
|
1709
|
-
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1710
|
-
position: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
|
|
1711
|
-
maxWidth: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1712
|
-
return undefined; if (Array.isArray(v))
|
|
1713
|
-
return v; if (typeof v === 'string') {
|
|
1714
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1715
|
-
return v;
|
|
1716
|
-
return Number(v);
|
|
1717
|
-
} return v; }), zod_1.z.number().gte(0.1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.9),
|
|
1718
|
-
maxLines: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1719
|
-
return undefined; if (Array.isArray(v))
|
|
1720
|
-
return v; if (typeof v === 'string') {
|
|
1721
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1722
|
-
return v;
|
|
1723
|
-
return Number(v);
|
|
1724
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2),
|
|
1759
|
+
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1725
1760
|
}).strict();
|
|
1726
1761
|
exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
1727
1762
|
/**
|
|
@@ -1730,7 +1765,7 @@ exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
|
1730
1765
|
*
|
|
1731
1766
|
*/
|
|
1732
1767
|
exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
1733
|
-
type: zod_1.z.enum([
|
|
1768
|
+
type: zod_1.z.enum(['rich-text']),
|
|
1734
1769
|
text: zod_1.z.string().max(5000),
|
|
1735
1770
|
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1736
1771
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
@@ -1738,15 +1773,18 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
|
1738
1773
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1739
1774
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1740
1775
|
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1741
|
-
padding: zod_1.z.optional(zod_1.z.union([
|
|
1776
|
+
padding: zod_1.z.optional(zod_1.z.union([
|
|
1777
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1742
1778
|
return undefined; if (Array.isArray(v))
|
|
1743
1779
|
return v; if (typeof v === 'string') {
|
|
1744
1780
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1745
1781
|
return v;
|
|
1746
1782
|
return Number(v);
|
|
1747
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1783
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1784
|
+
exports.richtextpropertiesRichTextPaddingSchema
|
|
1785
|
+
])),
|
|
1748
1786
|
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1749
|
-
animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema)
|
|
1787
|
+
animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema)
|
|
1750
1788
|
}).strict();
|
|
1751
1789
|
exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
|
|
1752
1790
|
/**
|
|
@@ -1755,8 +1793,8 @@ exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
|
|
|
1755
1793
|
exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.object({
|
|
1756
1794
|
id: zod_1.z.optional(zod_1.z.string()),
|
|
1757
1795
|
owner: zod_1.z.optional(zod_1.z.string()),
|
|
1758
|
-
status: zod_1.z.optional(zod_1.z.enum([
|
|
1759
|
-
created: zod_1.z.optional(zod_1.z.string())
|
|
1796
|
+
status: zod_1.z.optional(zod_1.z.enum(['queued', 'failed'])),
|
|
1797
|
+
created: zod_1.z.optional(zod_1.z.string())
|
|
1760
1798
|
}).strict();
|
|
1761
1799
|
exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
|
|
1762
1800
|
/**
|
|
@@ -1764,14 +1802,14 @@ exports.transferResponseAttributesSchema = exports.transferresponseattributesTra
|
|
|
1764
1802
|
*/
|
|
1765
1803
|
exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
|
|
1766
1804
|
type: zod_1.z.optional(zod_1.z.string()),
|
|
1767
|
-
attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema)
|
|
1805
|
+
attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema)
|
|
1768
1806
|
}).strict();
|
|
1769
1807
|
exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
|
|
1770
1808
|
/**
|
|
1771
1809
|
* The response returned by the Serve API [transfer asset](#transfer-asset) request. The response includes the ID and transfer status. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
1772
1810
|
*/
|
|
1773
1811
|
exports.transferresponseTransferResponseSchema = zod_1.z.object({
|
|
1774
|
-
data: exports.transferresponsedataTransferResponseDataSchema
|
|
1812
|
+
data: exports.transferresponsedataTransferResponseDataSchema
|
|
1775
1813
|
}).strict();
|
|
1776
1814
|
exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
|
|
1777
1815
|
/**
|
|
@@ -1780,7 +1818,7 @@ exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
|
|
|
1780
1818
|
exports.transferTransferSchema = zod_1.z.object({
|
|
1781
1819
|
url: zod_1.z.string(),
|
|
1782
1820
|
id: zod_1.z.string(),
|
|
1783
|
-
destinations: zod_1.z.array(exports.destinationsDestinationsSchema)
|
|
1821
|
+
destinations: zod_1.z.array(exports.destinationsDestinationsSchema)
|
|
1784
1822
|
}).strict();
|
|
1785
1823
|
exports.transferSchema = exports.transferTransferSchema;
|
|
1786
1824
|
/**
|
|
@@ -1789,8 +1827,12 @@ exports.transferSchema = exports.transferTransferSchema;
|
|
|
1789
1827
|
*
|
|
1790
1828
|
*/
|
|
1791
1829
|
exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
1792
|
-
type: zod_1.z.enum([
|
|
1793
|
-
shape: zod_1.z.enum([
|
|
1830
|
+
type: zod_1.z.enum(['shape']),
|
|
1831
|
+
shape: zod_1.z.enum([
|
|
1832
|
+
'rectangle',
|
|
1833
|
+
'circle',
|
|
1834
|
+
'line'
|
|
1835
|
+
]),
|
|
1794
1836
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1795
1837
|
return undefined; if (Array.isArray(v))
|
|
1796
1838
|
return v; if (typeof v === 'string') {
|
|
@@ -1813,7 +1855,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1813
1855
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1814
1856
|
return v;
|
|
1815
1857
|
return Number(v);
|
|
1816
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1858
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1817
1859
|
})),
|
|
1818
1860
|
stroke: zod_1.z.optional(zod_1.z.object({
|
|
1819
1861
|
color: zod_1.z.optional(zod_1.z.string()),
|
|
@@ -1823,7 +1865,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1823
1865
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1824
1866
|
return v;
|
|
1825
1867
|
return Number(v);
|
|
1826
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1868
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1827
1869
|
})),
|
|
1828
1870
|
rectangle: zod_1.z.optional(zod_1.z.object({
|
|
1829
1871
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1846,7 +1888,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1846
1888
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1847
1889
|
return v;
|
|
1848
1890
|
return Number(v);
|
|
1849
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1891
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1850
1892
|
})),
|
|
1851
1893
|
circle: zod_1.z.optional(zod_1.z.object({
|
|
1852
1894
|
radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1855,7 +1897,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1855
1897
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1856
1898
|
return v;
|
|
1857
1899
|
return Number(v);
|
|
1858
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1900
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1859
1901
|
})),
|
|
1860
1902
|
line: zod_1.z.optional(zod_1.z.object({
|
|
1861
1903
|
length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1871,8 +1913,8 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1871
1913
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1872
1914
|
return v;
|
|
1873
1915
|
return Number(v);
|
|
1874
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1875
|
-
}))
|
|
1916
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1917
|
+
}))
|
|
1876
1918
|
}).strict();
|
|
1877
1919
|
exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
|
|
1878
1920
|
/**
|
|
@@ -1892,7 +1934,7 @@ exports.sizeSizeSchema = zod_1.z.object({
|
|
|
1892
1934
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1893
1935
|
return v;
|
|
1894
1936
|
return Number(v);
|
|
1895
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1937
|
+
} return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1896
1938
|
}).strict();
|
|
1897
1939
|
exports.sizeSchema = exports.sizeSizeSchema;
|
|
1898
1940
|
/**
|
|
@@ -1900,25 +1942,35 @@ exports.sizeSchema = exports.sizeSizeSchema;
|
|
|
1900
1942
|
*/
|
|
1901
1943
|
exports.renditionRenditionSchema = zod_1.z.object({
|
|
1902
1944
|
format: zod_1.z.optional(zod_1.z.enum([
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1945
|
+
'mp4',
|
|
1946
|
+
'webm',
|
|
1947
|
+
'mov',
|
|
1948
|
+
'avi',
|
|
1949
|
+
'mkv',
|
|
1950
|
+
'ogv',
|
|
1951
|
+
'wmv',
|
|
1952
|
+
'avif',
|
|
1953
|
+
'gif',
|
|
1954
|
+
'mp3',
|
|
1955
|
+
'wav',
|
|
1956
|
+
'jpg',
|
|
1957
|
+
'png',
|
|
1958
|
+
'webp',
|
|
1959
|
+
'tif'
|
|
1918
1960
|
])),
|
|
1919
1961
|
size: zod_1.z.optional(exports.sizeSizeSchema),
|
|
1920
|
-
fit: zod_1.z.optional(zod_1.z.enum([
|
|
1921
|
-
|
|
1962
|
+
fit: zod_1.z.optional(zod_1.z.enum([
|
|
1963
|
+
'cover',
|
|
1964
|
+
'contain',
|
|
1965
|
+
'crop'
|
|
1966
|
+
])),
|
|
1967
|
+
resolution: zod_1.z.optional(zod_1.z.enum([
|
|
1968
|
+
'preview',
|
|
1969
|
+
'mobile',
|
|
1970
|
+
'sd',
|
|
1971
|
+
'hd',
|
|
1972
|
+
'fhd'
|
|
1973
|
+
])),
|
|
1922
1974
|
quality: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1923
1975
|
return undefined; if (Array.isArray(v))
|
|
1924
1976
|
return v; if (typeof v === 'string') {
|
|
@@ -1937,7 +1989,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
|
|
|
1937
1989
|
zod_1.z.literal(48),
|
|
1938
1990
|
zod_1.z.literal(50),
|
|
1939
1991
|
zod_1.z.literal(59.94),
|
|
1940
|
-
zod_1.z.literal(60)
|
|
1992
|
+
zod_1.z.literal(60)
|
|
1941
1993
|
])),
|
|
1942
1994
|
speed: zod_1.z.optional(exports.speedSpeedSchema),
|
|
1943
1995
|
keyframeInterval: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1950,7 +2002,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
|
|
|
1950
2002
|
fixOffset: zod_1.z.optional(zod_1.z.boolean()),
|
|
1951
2003
|
fixRotation: zod_1.z.optional(zod_1.z.boolean()),
|
|
1952
2004
|
enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
|
|
1953
|
-
filename: zod_1.z.optional(zod_1.z.string())
|
|
2005
|
+
filename: zod_1.z.optional(zod_1.z.string())
|
|
1954
2006
|
}).strict();
|
|
1955
2007
|
exports.renditionSchema = exports.renditionRenditionSchema;
|
|
1956
2008
|
/**
|
|
@@ -1958,7 +2010,7 @@ exports.renditionSchema = exports.renditionRenditionSchema;
|
|
|
1958
2010
|
*/
|
|
1959
2011
|
exports.outputsOutputsSchema = zod_1.z.object({
|
|
1960
2012
|
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
|
|
1961
|
-
transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema)
|
|
2013
|
+
transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema)
|
|
1962
2014
|
}).strict();
|
|
1963
2015
|
exports.outputsSchema = exports.outputsOutputsSchema;
|
|
1964
2016
|
/**
|
|
@@ -1967,12 +2019,12 @@ exports.outputsSchema = exports.outputsOutputsSchema;
|
|
|
1967
2019
|
exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.object({
|
|
1968
2020
|
id: zod_1.z.string(),
|
|
1969
2021
|
status: zod_1.z.optional(zod_1.z.enum([
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
2022
|
+
'queued',
|
|
2023
|
+
'importing',
|
|
2024
|
+
'ready',
|
|
2025
|
+
'failed',
|
|
2026
|
+
'deleted',
|
|
2027
|
+
'overwritten'
|
|
1976
2028
|
])),
|
|
1977
2029
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
1978
2030
|
executionTime: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2010,14 +2062,14 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
|
|
|
2010
2062
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2011
2063
|
return v;
|
|
2012
2064
|
return Number(v);
|
|
2013
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2065
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2014
2066
|
}).strict();
|
|
2015
2067
|
exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
|
|
2016
2068
|
/**
|
|
2017
2069
|
* The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
|
|
2018
2070
|
*/
|
|
2019
2071
|
exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
|
|
2020
|
-
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema))
|
|
2072
|
+
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema))
|
|
2021
2073
|
}).strict();
|
|
2022
2074
|
exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
|
|
2023
2075
|
/**
|
|
@@ -2029,12 +2081,12 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
|
|
|
2029
2081
|
input: zod_1.z.optional(zod_1.z.string()),
|
|
2030
2082
|
source: zod_1.z.optional(zod_1.z.string()),
|
|
2031
2083
|
status: zod_1.z.optional(zod_1.z.enum([
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2084
|
+
'queued',
|
|
2085
|
+
'importing',
|
|
2086
|
+
'ready',
|
|
2087
|
+
'failed',
|
|
2088
|
+
'deleted',
|
|
2089
|
+
'overwritten'
|
|
2038
2090
|
])),
|
|
2039
2091
|
outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
|
|
2040
2092
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2066,7 +2118,7 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
|
|
|
2066
2118
|
return Number(v);
|
|
2067
2119
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2068
2120
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
2069
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
2121
|
+
updated: zod_1.z.optional(zod_1.z.string())
|
|
2070
2122
|
}).strict();
|
|
2071
2123
|
exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
|
|
2072
2124
|
/**
|
|
@@ -2075,21 +2127,21 @@ exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceR
|
|
|
2075
2127
|
exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
|
|
2076
2128
|
type: zod_1.z.string(),
|
|
2077
2129
|
id: zod_1.z.string(),
|
|
2078
|
-
attributes: exports.sourceresponseattributesSourceResponseAttributesSchema
|
|
2130
|
+
attributes: exports.sourceresponseattributesSourceResponseAttributesSchema
|
|
2079
2131
|
}).strict();
|
|
2080
2132
|
exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
|
|
2081
2133
|
/**
|
|
2082
2134
|
* A list of all ingested source files fetched or uploaded to a users account.
|
|
2083
2135
|
*/
|
|
2084
2136
|
exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
|
|
2085
|
-
data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema)
|
|
2137
|
+
data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema)
|
|
2086
2138
|
}).strict();
|
|
2087
2139
|
exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
|
|
2088
2140
|
/**
|
|
2089
2141
|
* The response returned by the Ingest API [get source](#get-source) request. Includes details of the ingested source file. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
2090
2142
|
*/
|
|
2091
2143
|
exports.sourceresponseSourceResponseSchema = zod_1.z.object({
|
|
2092
|
-
data: exports.sourceresponsedataSourceResponseDataSchema
|
|
2144
|
+
data: exports.sourceresponsedataSourceResponseDataSchema
|
|
2093
2145
|
}).strict();
|
|
2094
2146
|
exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
|
|
2095
2147
|
/**
|
|
@@ -2100,7 +2152,7 @@ exports.sourceSourceSchema = zod_1.z.object({
|
|
|
2100
2152
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
2101
2153
|
outputs: zod_1.z.optional(exports.outputsOutputsSchema),
|
|
2102
2154
|
destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
|
|
2103
|
-
callback: zod_1.z.optional(zod_1.z.string())
|
|
2155
|
+
callback: zod_1.z.optional(zod_1.z.string())
|
|
2104
2156
|
}).strict();
|
|
2105
2157
|
exports.sourceSchema = exports.sourceSourceSchema;
|
|
2106
2158
|
/**
|
|
@@ -2108,14 +2160,18 @@ exports.sourceSchema = exports.sourceSourceSchema;
|
|
|
2108
2160
|
*/
|
|
2109
2161
|
exports.soundtrackSoundtrackSchema = zod_1.z.object({
|
|
2110
2162
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
2111
|
-
effect: zod_1.z.optional(zod_1.z.enum([
|
|
2163
|
+
effect: zod_1.z.optional(zod_1.z.enum([
|
|
2164
|
+
'fadeIn',
|
|
2165
|
+
'fadeOut',
|
|
2166
|
+
'fadeInFadeOut'
|
|
2167
|
+
])),
|
|
2112
2168
|
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2113
2169
|
return undefined; if (Array.isArray(v))
|
|
2114
2170
|
return v; if (typeof v === 'string') {
|
|
2115
2171
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2116
2172
|
return v;
|
|
2117
2173
|
return Number(v);
|
|
2118
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2174
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2119
2175
|
}).strict();
|
|
2120
2176
|
exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
|
|
2121
2177
|
/**
|
|
@@ -2131,7 +2187,7 @@ exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
|
|
|
2131
2187
|
return v;
|
|
2132
2188
|
return Number(v);
|
|
2133
2189
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2134
|
-
color: 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*\}\}$/)])
|
|
2190
|
+
color: 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*\}\}$/)])
|
|
2135
2191
|
}).strict();
|
|
2136
2192
|
exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
|
|
2137
2193
|
/**
|
|
@@ -2140,7 +2196,7 @@ exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
|
|
|
2140
2196
|
*
|
|
2141
2197
|
*/
|
|
2142
2198
|
exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
|
|
2143
|
-
type: zod_1.z.enum([
|
|
2199
|
+
type: zod_1.z.enum(['linear']),
|
|
2144
2200
|
angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2145
2201
|
return undefined; if (Array.isArray(v))
|
|
2146
2202
|
return v; if (typeof v === 'string') {
|
|
@@ -2155,7 +2211,7 @@ exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
|
|
|
2155
2211
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2156
2212
|
return v;
|
|
2157
2213
|
return Number(v);
|
|
2158
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2214
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2159
2215
|
}).strict();
|
|
2160
2216
|
exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
|
|
2161
2217
|
/**
|
|
@@ -2164,7 +2220,7 @@ exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFill
|
|
|
2164
2220
|
*
|
|
2165
2221
|
*/
|
|
2166
2222
|
exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
|
|
2167
|
-
type: zod_1.z.enum([
|
|
2223
|
+
type: zod_1.z.enum(['radial']),
|
|
2168
2224
|
stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
|
|
2169
2225
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2170
2226
|
return undefined; if (Array.isArray(v))
|
|
@@ -2172,7 +2228,7 @@ exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
|
|
|
2172
2228
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2173
2229
|
return v;
|
|
2174
2230
|
return Number(v);
|
|
2175
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2231
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2176
2232
|
}).strict();
|
|
2177
2233
|
exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
|
|
2178
2234
|
/**
|
|
@@ -2201,32 +2257,29 @@ exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
|
|
|
2201
2257
|
return v;
|
|
2202
2258
|
return Number(v);
|
|
2203
2259
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2204
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
2260
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
2205
2261
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2206
2262
|
return undefined; if (Array.isArray(v))
|
|
2207
2263
|
return v; if (typeof v === 'string') {
|
|
2208
2264
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2209
2265
|
return v;
|
|
2210
2266
|
return Number(v);
|
|
2211
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2267
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2212
2268
|
}).strict();
|
|
2213
2269
|
exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
|
|
2214
2270
|
/**
|
|
2215
2271
|
* A solid color fill for SVG shapes.
|
|
2216
2272
|
*/
|
|
2217
2273
|
exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
|
|
2218
|
-
type: zod_1.z.enum([
|
|
2219
|
-
color: zod_1.z
|
|
2220
|
-
.string()
|
|
2221
|
-
.regex(/^#[A-Fa-f0-9]{6}$/)
|
|
2222
|
-
.default("#000000"),
|
|
2274
|
+
type: zod_1.z.enum(['solid']),
|
|
2275
|
+
color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
|
|
2223
2276
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2224
2277
|
return undefined; if (Array.isArray(v))
|
|
2225
2278
|
return v; if (typeof v === 'string') {
|
|
2226
2279
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2227
2280
|
return v;
|
|
2228
2281
|
return Number(v);
|
|
2229
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2282
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2230
2283
|
}).strict();
|
|
2231
2284
|
exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
|
|
2232
2285
|
/**
|
|
@@ -2246,7 +2299,7 @@ exports.svgFillSchema = exports.svgpropertiesSvgFillSchema;
|
|
|
2246
2299
|
*
|
|
2247
2300
|
*/
|
|
2248
2301
|
exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
|
|
2249
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
2302
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
2250
2303
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2251
2304
|
return undefined; if (Array.isArray(v))
|
|
2252
2305
|
return v; if (typeof v === 'string') {
|
|
@@ -2261,8 +2314,16 @@ exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
|
|
|
2261
2314
|
return v;
|
|
2262
2315
|
return Number(v);
|
|
2263
2316
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2264
|
-
lineCap: zod_1.z.optional(zod_1.z.enum([
|
|
2265
|
-
|
|
2317
|
+
lineCap: zod_1.z.optional(zod_1.z.enum([
|
|
2318
|
+
'butt',
|
|
2319
|
+
'round',
|
|
2320
|
+
'square'
|
|
2321
|
+
])),
|
|
2322
|
+
lineJoin: zod_1.z.optional(zod_1.z.enum([
|
|
2323
|
+
'miter',
|
|
2324
|
+
'round',
|
|
2325
|
+
'bevel'
|
|
2326
|
+
])),
|
|
2266
2327
|
dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2267
2328
|
return undefined; if (Array.isArray(v))
|
|
2268
2329
|
return v; if (typeof v === 'string') {
|
|
@@ -2276,7 +2337,7 @@ exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
|
|
|
2276
2337
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2277
2338
|
return v;
|
|
2278
2339
|
return Number(v);
|
|
2279
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2340
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2280
2341
|
}).strict();
|
|
2281
2342
|
exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
|
|
2282
2343
|
/**
|
|
@@ -2325,7 +2386,7 @@ exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
|
|
|
2325
2386
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2326
2387
|
return v;
|
|
2327
2388
|
return Number(v);
|
|
2328
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2389
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2329
2390
|
}).strict();
|
|
2330
2391
|
exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
|
|
2331
2392
|
/**
|
|
@@ -2334,7 +2395,7 @@ exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
|
|
|
2334
2395
|
*
|
|
2335
2396
|
*/
|
|
2336
2397
|
exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
|
|
2337
|
-
type: zod_1.z.enum([
|
|
2398
|
+
type: zod_1.z.enum(['arrow']),
|
|
2338
2399
|
length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2339
2400
|
return undefined; if (Array.isArray(v))
|
|
2340
2401
|
return v; if (typeof v === 'string') {
|
|
@@ -2362,7 +2423,7 @@ exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
|
|
|
2362
2423
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2363
2424
|
return v;
|
|
2364
2425
|
return Number(v);
|
|
2365
|
-
} return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2426
|
+
} return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2366
2427
|
}).strict();
|
|
2367
2428
|
exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
|
|
2368
2429
|
/**
|
|
@@ -2371,14 +2432,14 @@ exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
|
|
|
2371
2432
|
*
|
|
2372
2433
|
*/
|
|
2373
2434
|
exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
|
|
2374
|
-
type: zod_1.z.enum([
|
|
2435
|
+
type: zod_1.z.enum(['circle']),
|
|
2375
2436
|
radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2376
2437
|
return undefined; if (Array.isArray(v))
|
|
2377
2438
|
return v; if (typeof v === 'string') {
|
|
2378
2439
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2379
2440
|
return v;
|
|
2380
2441
|
return Number(v);
|
|
2381
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2442
|
+
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2382
2443
|
}).strict();
|
|
2383
2444
|
exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
|
|
2384
2445
|
/**
|
|
@@ -2387,7 +2448,7 @@ exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
|
|
|
2387
2448
|
*
|
|
2388
2449
|
*/
|
|
2389
2450
|
exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
|
|
2390
|
-
type: zod_1.z.enum([
|
|
2451
|
+
type: zod_1.z.enum(['cross']),
|
|
2391
2452
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2392
2453
|
return undefined; if (Array.isArray(v))
|
|
2393
2454
|
return v; if (typeof v === 'string') {
|
|
@@ -2408,7 +2469,7 @@ exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
|
|
|
2408
2469
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2409
2470
|
return v;
|
|
2410
2471
|
return Number(v);
|
|
2411
|
-
} return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2472
|
+
} return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2412
2473
|
}).strict();
|
|
2413
2474
|
exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
|
|
2414
2475
|
/**
|
|
@@ -2417,7 +2478,7 @@ exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
|
|
|
2417
2478
|
*
|
|
2418
2479
|
*/
|
|
2419
2480
|
exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
|
|
2420
|
-
type: zod_1.z.enum([
|
|
2481
|
+
type: zod_1.z.enum(['ellipse']),
|
|
2421
2482
|
radiusX: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2422
2483
|
return undefined; if (Array.isArray(v))
|
|
2423
2484
|
return v; if (typeof v === 'string') {
|
|
@@ -2431,7 +2492,7 @@ exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
|
|
|
2431
2492
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2432
2493
|
return v;
|
|
2433
2494
|
return Number(v);
|
|
2434
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2495
|
+
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2435
2496
|
}).strict();
|
|
2436
2497
|
exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
|
|
2437
2498
|
/**
|
|
@@ -2440,14 +2501,14 @@ exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
|
|
|
2440
2501
|
*
|
|
2441
2502
|
*/
|
|
2442
2503
|
exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
|
|
2443
|
-
type: zod_1.z.enum([
|
|
2504
|
+
type: zod_1.z.enum(['heart']),
|
|
2444
2505
|
size: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2445
2506
|
return undefined; if (Array.isArray(v))
|
|
2446
2507
|
return v; if (typeof v === 'string') {
|
|
2447
2508
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2448
2509
|
return v;
|
|
2449
2510
|
return Number(v);
|
|
2450
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2511
|
+
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2451
2512
|
}).strict();
|
|
2452
2513
|
exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
|
|
2453
2514
|
/**
|
|
@@ -2456,7 +2517,7 @@ exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
|
|
|
2456
2517
|
*
|
|
2457
2518
|
*/
|
|
2458
2519
|
exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
|
|
2459
|
-
type: zod_1.z.enum([
|
|
2520
|
+
type: zod_1.z.enum(['line']),
|
|
2460
2521
|
length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2461
2522
|
return undefined; if (Array.isArray(v))
|
|
2462
2523
|
return v; if (typeof v === 'string') {
|
|
@@ -2470,7 +2531,7 @@ exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
|
|
|
2470
2531
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2471
2532
|
return v;
|
|
2472
2533
|
return Number(v);
|
|
2473
|
-
} return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2534
|
+
} return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2474
2535
|
}).strict();
|
|
2475
2536
|
exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
|
|
2476
2537
|
/**
|
|
@@ -2491,8 +2552,8 @@ exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
|
|
|
2491
2552
|
*
|
|
2492
2553
|
*/
|
|
2493
2554
|
exports.svgshapesSvgPathShapeSchema = zod_1.z.object({
|
|
2494
|
-
type: zod_1.z.enum([
|
|
2495
|
-
d: zod_1.z.string().min(1).max(100000)
|
|
2555
|
+
type: zod_1.z.enum(['path']),
|
|
2556
|
+
d: zod_1.z.string().min(1).max(100000)
|
|
2496
2557
|
}).strict();
|
|
2497
2558
|
exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
|
|
2498
2559
|
/**
|
|
@@ -2502,7 +2563,7 @@ exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
|
|
|
2502
2563
|
*
|
|
2503
2564
|
*/
|
|
2504
2565
|
exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
|
|
2505
|
-
type: zod_1.z.enum([
|
|
2566
|
+
type: zod_1.z.enum(['polygon']),
|
|
2506
2567
|
sides: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2507
2568
|
return undefined; if (Array.isArray(v))
|
|
2508
2569
|
return v; if (typeof v === 'string') {
|
|
@@ -2516,7 +2577,7 @@ exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
|
|
|
2516
2577
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2517
2578
|
return v;
|
|
2518
2579
|
return Number(v);
|
|
2519
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2580
|
+
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2520
2581
|
}).strict();
|
|
2521
2582
|
exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
|
|
2522
2583
|
/**
|
|
@@ -2525,7 +2586,7 @@ exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
|
|
|
2525
2586
|
*
|
|
2526
2587
|
*/
|
|
2527
2588
|
exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
|
|
2528
|
-
type: zod_1.z.enum([
|
|
2589
|
+
type: zod_1.z.enum(['rectangle']),
|
|
2529
2590
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2530
2591
|
return undefined; if (Array.isArray(v))
|
|
2531
2592
|
return v; if (typeof v === 'string') {
|
|
@@ -2546,7 +2607,7 @@ exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
|
|
|
2546
2607
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2547
2608
|
return v;
|
|
2548
2609
|
return Number(v);
|
|
2549
|
-
} return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2610
|
+
} return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2550
2611
|
}).strict();
|
|
2551
2612
|
exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
|
|
2552
2613
|
/**
|
|
@@ -2555,7 +2616,7 @@ exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
|
|
|
2555
2616
|
*
|
|
2556
2617
|
*/
|
|
2557
2618
|
exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
|
|
2558
|
-
type: zod_1.z.enum([
|
|
2619
|
+
type: zod_1.z.enum(['ring']),
|
|
2559
2620
|
outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2560
2621
|
return undefined; if (Array.isArray(v))
|
|
2561
2622
|
return v; if (typeof v === 'string') {
|
|
@@ -2569,7 +2630,7 @@ exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
|
|
|
2569
2630
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2570
2631
|
return v;
|
|
2571
2632
|
return Number(v);
|
|
2572
|
-
} return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2633
|
+
} return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2573
2634
|
}).strict();
|
|
2574
2635
|
exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
|
|
2575
2636
|
/**
|
|
@@ -2579,7 +2640,7 @@ exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
|
|
|
2579
2640
|
*
|
|
2580
2641
|
*/
|
|
2581
2642
|
exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
|
|
2582
|
-
type: zod_1.z.enum([
|
|
2643
|
+
type: zod_1.z.enum(['star']),
|
|
2583
2644
|
points: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2584
2645
|
return undefined; if (Array.isArray(v))
|
|
2585
2646
|
return v; if (typeof v === 'string') {
|
|
@@ -2600,7 +2661,7 @@ exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
|
|
|
2600
2661
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2601
2662
|
return v;
|
|
2602
2663
|
return Number(v);
|
|
2603
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2664
|
+
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2604
2665
|
}).strict();
|
|
2605
2666
|
exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
|
|
2606
2667
|
/**
|
|
@@ -2731,29 +2792,37 @@ exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
|
|
|
2731
2792
|
*/
|
|
2732
2793
|
exports.templaterenderTemplateRenderSchema = zod_1.z.object({
|
|
2733
2794
|
id: zod_1.z.string(),
|
|
2734
|
-
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema))
|
|
2795
|
+
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema))
|
|
2735
2796
|
}).strict();
|
|
2736
2797
|
exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
|
|
2737
2798
|
/**
|
|
2738
2799
|
* Horizontal and vertical alignment properties for text.
|
|
2739
2800
|
*/
|
|
2740
2801
|
exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
|
|
2741
|
-
horizontal: zod_1.z.optional(zod_1.z.enum([
|
|
2742
|
-
|
|
2802
|
+
horizontal: zod_1.z.optional(zod_1.z.enum([
|
|
2803
|
+
'left',
|
|
2804
|
+
'center',
|
|
2805
|
+
'right'
|
|
2806
|
+
])),
|
|
2807
|
+
vertical: zod_1.z.optional(zod_1.z.enum([
|
|
2808
|
+
'top',
|
|
2809
|
+
'center',
|
|
2810
|
+
'bottom'
|
|
2811
|
+
]))
|
|
2743
2812
|
}).strict();
|
|
2744
2813
|
exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
|
|
2745
2814
|
/**
|
|
2746
2815
|
* Animation properties for text entrance effects.
|
|
2747
2816
|
*/
|
|
2748
2817
|
exports.textpropertiesTextAnimationSchema = zod_1.z.object({
|
|
2749
|
-
preset: zod_1.z.enum([
|
|
2818
|
+
preset: zod_1.z.enum(['typewriter']),
|
|
2750
2819
|
duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2751
2820
|
return undefined; if (Array.isArray(v))
|
|
2752
2821
|
return v; if (typeof v === 'string') {
|
|
2753
2822
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2754
2823
|
return v;
|
|
2755
2824
|
return Number(v);
|
|
2756
|
-
} return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2825
|
+
} return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2757
2826
|
}).strict();
|
|
2758
2827
|
/**
|
|
2759
2828
|
* Displays a background box behind the text.
|
|
@@ -2780,7 +2849,7 @@ exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
|
|
|
2780
2849
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2781
2850
|
return v;
|
|
2782
2851
|
return Number(v);
|
|
2783
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2852
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2784
2853
|
}).strict();
|
|
2785
2854
|
exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
|
|
2786
2855
|
/**
|
|
@@ -2816,7 +2885,7 @@ exports.textpropertiesTextFontSchema = zod_1.z.object({
|
|
|
2816
2885
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2817
2886
|
return v;
|
|
2818
2887
|
return Number(v);
|
|
2819
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2888
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2820
2889
|
}).strict();
|
|
2821
2890
|
exports.textFontSchema = exports.textpropertiesTextFontSchema;
|
|
2822
2891
|
/**
|
|
@@ -2830,7 +2899,7 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
|
|
|
2830
2899
|
return v;
|
|
2831
2900
|
return Number(v);
|
|
2832
2901
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2833
|
-
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2902
|
+
color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2834
2903
|
}).strict();
|
|
2835
2904
|
/**
|
|
2836
2905
|
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
@@ -2838,7 +2907,7 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
|
|
|
2838
2907
|
*
|
|
2839
2908
|
*/
|
|
2840
2909
|
exports.textassetTextAssetSchema = zod_1.z.object({
|
|
2841
|
-
type: zod_1.z.enum([
|
|
2910
|
+
type: zod_1.z.enum(['text']),
|
|
2842
2911
|
text: zod_1.z.string(),
|
|
2843
2912
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2844
2913
|
return undefined; if (Array.isArray(v))
|
|
@@ -2859,14 +2928,14 @@ exports.textassetTextAssetSchema = zod_1.z.object({
|
|
|
2859
2928
|
alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
|
|
2860
2929
|
stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
|
|
2861
2930
|
animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
|
|
2862
|
-
ellipsis: zod_1.z.optional(zod_1.z.string())
|
|
2931
|
+
ellipsis: zod_1.z.optional(zod_1.z.string())
|
|
2863
2932
|
}).strict();
|
|
2864
2933
|
exports.textAssetSchema = exports.textassetTextAssetSchema;
|
|
2865
2934
|
/**
|
|
2866
2935
|
* The TextToImageAsset lets you create a dynamic image from a text prompt.
|
|
2867
2936
|
*/
|
|
2868
2937
|
exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
|
|
2869
|
-
type: zod_1.z.enum([
|
|
2938
|
+
type: zod_1.z.enum(['text-to-image']),
|
|
2870
2939
|
prompt: zod_1.z.string(),
|
|
2871
2940
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2872
2941
|
return undefined; if (Array.isArray(v))
|
|
@@ -2882,7 +2951,7 @@ exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
|
|
|
2882
2951
|
return v;
|
|
2883
2952
|
return Number(v);
|
|
2884
2953
|
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2885
|
-
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
2954
|
+
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
2886
2955
|
}).strict();
|
|
2887
2956
|
exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
|
|
2888
2957
|
/**
|
|
@@ -2902,16 +2971,36 @@ exports.thumbnailThumbnailSchema = zod_1.z.object({
|
|
|
2902
2971
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2903
2972
|
return v;
|
|
2904
2973
|
return Number(v);
|
|
2905
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2974
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2906
2975
|
}).strict();
|
|
2907
2976
|
exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
|
|
2908
2977
|
/**
|
|
2909
2978
|
* The output format, render range and type of media to generate.
|
|
2910
2979
|
*/
|
|
2911
2980
|
exports.outputOutputSchema = zod_1.z.object({
|
|
2912
|
-
format: zod_1.z.enum([
|
|
2913
|
-
|
|
2914
|
-
|
|
2981
|
+
format: zod_1.z.enum([
|
|
2982
|
+
'mp4',
|
|
2983
|
+
'gif',
|
|
2984
|
+
'mp3',
|
|
2985
|
+
'jpg',
|
|
2986
|
+
'png',
|
|
2987
|
+
'bmp'
|
|
2988
|
+
]),
|
|
2989
|
+
resolution: zod_1.z.optional(zod_1.z.enum([
|
|
2990
|
+
'preview',
|
|
2991
|
+
'mobile',
|
|
2992
|
+
'sd',
|
|
2993
|
+
'hd',
|
|
2994
|
+
'1080',
|
|
2995
|
+
'4k'
|
|
2996
|
+
])),
|
|
2997
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
2998
|
+
'16:9',
|
|
2999
|
+
'9:16',
|
|
3000
|
+
'1:1',
|
|
3001
|
+
'4:5',
|
|
3002
|
+
'4:3'
|
|
3003
|
+
])),
|
|
2915
3004
|
size: zod_1.z.optional(exports.sizeSizeSchema),
|
|
2916
3005
|
fps: zod_1.z.optional(zod_1.z.union([
|
|
2917
3006
|
zod_1.z.literal(12),
|
|
@@ -2924,16 +3013,29 @@ exports.outputOutputSchema = zod_1.z.object({
|
|
|
2924
3013
|
zod_1.z.literal(48),
|
|
2925
3014
|
zod_1.z.literal(50),
|
|
2926
3015
|
zod_1.z.literal(59.94),
|
|
2927
|
-
zod_1.z.literal(60)
|
|
3016
|
+
zod_1.z.literal(60)
|
|
3017
|
+
])),
|
|
3018
|
+
scaleTo: zod_1.z.optional(zod_1.z.enum([
|
|
3019
|
+
'preview',
|
|
3020
|
+
'mobile',
|
|
3021
|
+
'sd',
|
|
3022
|
+
'hd',
|
|
3023
|
+
'1080',
|
|
3024
|
+
'4k'
|
|
3025
|
+
])),
|
|
3026
|
+
quality: zod_1.z.optional(zod_1.z.enum([
|
|
3027
|
+
'verylow',
|
|
3028
|
+
'low',
|
|
3029
|
+
'medium',
|
|
3030
|
+
'high',
|
|
3031
|
+
'veryhigh'
|
|
2928
3032
|
])),
|
|
2929
|
-
scaleTo: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
2930
|
-
quality: zod_1.z.optional(zod_1.z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
|
|
2931
3033
|
repeat: zod_1.z.optional(zod_1.z.boolean()),
|
|
2932
3034
|
mute: zod_1.z.optional(zod_1.z.boolean()),
|
|
2933
3035
|
range: zod_1.z.optional(exports.rangeRangeSchema),
|
|
2934
3036
|
poster: zod_1.z.optional(exports.posterPosterSchema),
|
|
2935
3037
|
thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
|
|
2936
|
-
destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema))
|
|
3038
|
+
destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema))
|
|
2937
3039
|
}).strict();
|
|
2938
3040
|
exports.outputSchema = exports.outputOutputSchema;
|
|
2939
3041
|
/**
|
|
@@ -2941,133 +3043,133 @@ exports.outputSchema = exports.outputOutputSchema;
|
|
|
2941
3043
|
*/
|
|
2942
3044
|
exports.transitionTransitionSchema = zod_1.z.object({
|
|
2943
3045
|
in: zod_1.z.optional(zod_1.z.enum([
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3046
|
+
'none',
|
|
3047
|
+
'fade',
|
|
3048
|
+
'fadeSlow',
|
|
3049
|
+
'fadeFast',
|
|
3050
|
+
'reveal',
|
|
3051
|
+
'revealSlow',
|
|
3052
|
+
'revealFast',
|
|
3053
|
+
'wipeLeft',
|
|
3054
|
+
'wipeLeftSlow',
|
|
3055
|
+
'wipeLeftFast',
|
|
3056
|
+
'wipeRight',
|
|
3057
|
+
'wipeRightSlow',
|
|
3058
|
+
'wipeRightFast',
|
|
3059
|
+
'slideLeft',
|
|
3060
|
+
'slideLeftSlow',
|
|
3061
|
+
'slideLeftFast',
|
|
3062
|
+
'slideRight',
|
|
3063
|
+
'slideRightSlow',
|
|
3064
|
+
'slideRightFast',
|
|
3065
|
+
'slideUp',
|
|
3066
|
+
'slideUpSlow',
|
|
3067
|
+
'slideUpFast',
|
|
3068
|
+
'slideDown',
|
|
3069
|
+
'slideDownSlow',
|
|
3070
|
+
'slideDownFast',
|
|
3071
|
+
'carouselLeft',
|
|
3072
|
+
'carouselLeftSlow',
|
|
3073
|
+
'carouselLeftFast',
|
|
3074
|
+
'carouselRight',
|
|
3075
|
+
'carouselRightSlow',
|
|
3076
|
+
'carouselRightFast',
|
|
3077
|
+
'carouselUp',
|
|
3078
|
+
'carouselUpSlow',
|
|
3079
|
+
'carouselUpFast',
|
|
3080
|
+
'carouselDown',
|
|
3081
|
+
'carouselDownSlow',
|
|
3082
|
+
'carouselDownFast',
|
|
3083
|
+
'shuffleTopRight',
|
|
3084
|
+
'shuffleTopRightSlow',
|
|
3085
|
+
'shuffleTopRightFast',
|
|
3086
|
+
'shuffleRightTop',
|
|
3087
|
+
'shuffleRightTopSlow',
|
|
3088
|
+
'shuffleRightTopFast',
|
|
3089
|
+
'shuffleRightBottom',
|
|
3090
|
+
'shuffleRightBottomSlow',
|
|
3091
|
+
'shuffleRightBottomFast',
|
|
3092
|
+
'shuffleBottomRight',
|
|
3093
|
+
'shuffleBottomRightSlow',
|
|
3094
|
+
'shuffleBottomRightFast',
|
|
3095
|
+
'shuffleBottomLeft',
|
|
3096
|
+
'shuffleBottomLeftSlow',
|
|
3097
|
+
'shuffleBottomLeftFast',
|
|
3098
|
+
'shuffleLeftBottom',
|
|
3099
|
+
'shuffleLeftBottomSlow',
|
|
3100
|
+
'shuffleLeftBottomFast',
|
|
3101
|
+
'shuffleLeftTop',
|
|
3102
|
+
'shuffleLeftTopSlow',
|
|
3103
|
+
'shuffleLeftTopFast',
|
|
3104
|
+
'shuffleTopLeft',
|
|
3105
|
+
'shuffleTopLeftSlow',
|
|
3106
|
+
'shuffleTopLeftFast',
|
|
3107
|
+
'zoom'
|
|
3006
3108
|
])),
|
|
3007
3109
|
out: zod_1.z.optional(zod_1.z.enum([
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
]))
|
|
3110
|
+
'none',
|
|
3111
|
+
'fade',
|
|
3112
|
+
'fadeSlow',
|
|
3113
|
+
'fadeFast',
|
|
3114
|
+
'reveal',
|
|
3115
|
+
'revealSlow',
|
|
3116
|
+
'revealFast',
|
|
3117
|
+
'wipeLeft',
|
|
3118
|
+
'wipeLeftSlow',
|
|
3119
|
+
'wipeLeftFast',
|
|
3120
|
+
'wipeRight',
|
|
3121
|
+
'wipeRightSlow',
|
|
3122
|
+
'wipeRightFast',
|
|
3123
|
+
'slideLeft',
|
|
3124
|
+
'slideLeftSlow',
|
|
3125
|
+
'slideLeftFast',
|
|
3126
|
+
'slideRight',
|
|
3127
|
+
'slideRightSlow',
|
|
3128
|
+
'slideRightFast',
|
|
3129
|
+
'slideUp',
|
|
3130
|
+
'slideUpSlow',
|
|
3131
|
+
'slideUpFast',
|
|
3132
|
+
'slideDown',
|
|
3133
|
+
'slideDownSlow',
|
|
3134
|
+
'slideDownFast',
|
|
3135
|
+
'carouselLeft',
|
|
3136
|
+
'carouselLeftSlow',
|
|
3137
|
+
'carouselLeftFast',
|
|
3138
|
+
'carouselRight',
|
|
3139
|
+
'carouselRightSlow',
|
|
3140
|
+
'carouselRightFast',
|
|
3141
|
+
'carouselUp',
|
|
3142
|
+
'carouselUpSlow',
|
|
3143
|
+
'carouselUpFast',
|
|
3144
|
+
'carouselDown',
|
|
3145
|
+
'carouselDownSlow',
|
|
3146
|
+
'carouselDownFast',
|
|
3147
|
+
'shuffleTopRight',
|
|
3148
|
+
'shuffleTopRightSlow',
|
|
3149
|
+
'shuffleTopRightFast',
|
|
3150
|
+
'shuffleRightTop',
|
|
3151
|
+
'shuffleRightTopSlow',
|
|
3152
|
+
'shuffleRightTopFast',
|
|
3153
|
+
'shuffleRightBottom',
|
|
3154
|
+
'shuffleRightBottomSlow',
|
|
3155
|
+
'shuffleRightBottomFast',
|
|
3156
|
+
'shuffleBottomRight',
|
|
3157
|
+
'shuffleBottomRightSlow',
|
|
3158
|
+
'shuffleBottomRightFast',
|
|
3159
|
+
'shuffleBottomLeft',
|
|
3160
|
+
'shuffleBottomLeftSlow',
|
|
3161
|
+
'shuffleBottomLeftFast',
|
|
3162
|
+
'shuffleLeftBottom',
|
|
3163
|
+
'shuffleLeftBottomSlow',
|
|
3164
|
+
'shuffleLeftBottomFast',
|
|
3165
|
+
'shuffleLeftTop',
|
|
3166
|
+
'shuffleLeftTopSlow',
|
|
3167
|
+
'shuffleLeftTopFast',
|
|
3168
|
+
'shuffleTopLeft',
|
|
3169
|
+
'shuffleTopLeftSlow',
|
|
3170
|
+
'shuffleTopLeftFast',
|
|
3171
|
+
'zoom'
|
|
3172
|
+
]))
|
|
3071
3173
|
}).strict();
|
|
3072
3174
|
exports.transitionSchema = exports.transitionTransitionSchema;
|
|
3073
3175
|
/**
|
|
@@ -3097,44 +3199,48 @@ exports.tweenTweenSchema = zod_1.z.object({
|
|
|
3097
3199
|
return v;
|
|
3098
3200
|
return Number(v);
|
|
3099
3201
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3100
|
-
interpolation: zod_1.z.optional(zod_1.z.enum([
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
"easeOut",
|
|
3105
|
-
"easeInOut",
|
|
3106
|
-
"easeInQuad",
|
|
3107
|
-
"easeInCubic",
|
|
3108
|
-
"easeInQuart",
|
|
3109
|
-
"easeInQuint",
|
|
3110
|
-
"easeInSine",
|
|
3111
|
-
"easeInExpo",
|
|
3112
|
-
"easeInCirc",
|
|
3113
|
-
"easeInBack",
|
|
3114
|
-
"easeOutQuad",
|
|
3115
|
-
"easeOutCubic",
|
|
3116
|
-
"easeOutQuart",
|
|
3117
|
-
"easeOutQuint",
|
|
3118
|
-
"easeOutSine",
|
|
3119
|
-
"easeOutExpo",
|
|
3120
|
-
"easeOutCirc",
|
|
3121
|
-
"easeOutBack",
|
|
3122
|
-
"easeInOutQuad",
|
|
3123
|
-
"easeInOutCubic",
|
|
3124
|
-
"easeInOutQuart",
|
|
3125
|
-
"easeInOutQuint",
|
|
3126
|
-
"easeInOutSine",
|
|
3127
|
-
"easeInOutExpo",
|
|
3128
|
-
"easeInOutCirc",
|
|
3129
|
-
"easeInOutBack",
|
|
3202
|
+
interpolation: zod_1.z.optional(zod_1.z.enum([
|
|
3203
|
+
'linear',
|
|
3204
|
+
'bezier',
|
|
3205
|
+
'constant'
|
|
3130
3206
|
])),
|
|
3207
|
+
easing: zod_1.z.optional(zod_1.z.enum([
|
|
3208
|
+
'ease',
|
|
3209
|
+
'easeIn',
|
|
3210
|
+
'easeOut',
|
|
3211
|
+
'easeInOut',
|
|
3212
|
+
'easeInQuad',
|
|
3213
|
+
'easeInCubic',
|
|
3214
|
+
'easeInQuart',
|
|
3215
|
+
'easeInQuint',
|
|
3216
|
+
'easeInSine',
|
|
3217
|
+
'easeInExpo',
|
|
3218
|
+
'easeInCirc',
|
|
3219
|
+
'easeInBack',
|
|
3220
|
+
'easeOutQuad',
|
|
3221
|
+
'easeOutCubic',
|
|
3222
|
+
'easeOutQuart',
|
|
3223
|
+
'easeOutQuint',
|
|
3224
|
+
'easeOutSine',
|
|
3225
|
+
'easeOutExpo',
|
|
3226
|
+
'easeOutCirc',
|
|
3227
|
+
'easeOutBack',
|
|
3228
|
+
'easeInOutQuad',
|
|
3229
|
+
'easeInOutCubic',
|
|
3230
|
+
'easeInOutQuart',
|
|
3231
|
+
'easeInOutQuint',
|
|
3232
|
+
'easeInOutSine',
|
|
3233
|
+
'easeInOutExpo',
|
|
3234
|
+
'easeInOutCirc',
|
|
3235
|
+
'easeInOutBack'
|
|
3236
|
+
]))
|
|
3131
3237
|
}).strict();
|
|
3132
3238
|
exports.tweenSchema = exports.tweenTweenSchema;
|
|
3133
3239
|
/**
|
|
3134
3240
|
* 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.
|
|
3135
3241
|
*/
|
|
3136
3242
|
exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
3137
|
-
type: zod_1.z.enum([
|
|
3243
|
+
type: zod_1.z.enum(['audio']),
|
|
3138
3244
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
3139
3245
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3140
3246
|
return undefined; if (Array.isArray(v))
|
|
@@ -3143,13 +3249,16 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
3143
3249
|
return v;
|
|
3144
3250
|
return Number(v);
|
|
3145
3251
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3146
|
-
volume: zod_1.z.optional(zod_1.z.union([
|
|
3252
|
+
volume: zod_1.z.optional(zod_1.z.union([
|
|
3253
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3147
3254
|
return undefined; if (Array.isArray(v))
|
|
3148
3255
|
return v; if (typeof v === 'string') {
|
|
3149
3256
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3150
3257
|
return v;
|
|
3151
3258
|
return Number(v);
|
|
3152
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3259
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3260
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3261
|
+
])),
|
|
3153
3262
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3154
3263
|
return undefined; if (Array.isArray(v))
|
|
3155
3264
|
return v; if (typeof v === 'string') {
|
|
@@ -3157,67 +3266,87 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
3157
3266
|
return v;
|
|
3158
3267
|
return Number(v);
|
|
3159
3268
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3160
|
-
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3269
|
+
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3270
|
+
'none',
|
|
3271
|
+
'fadeIn',
|
|
3272
|
+
'fadeOut',
|
|
3273
|
+
'fadeInFadeOut'
|
|
3274
|
+
]))
|
|
3161
3275
|
}).strict();
|
|
3162
3276
|
exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
|
|
3163
3277
|
/**
|
|
3164
3278
|
* Offsets the position of an asset horizontally or vertically by a relative distance.
|
|
3165
3279
|
*/
|
|
3166
3280
|
exports.offsetOffsetSchema = zod_1.z.object({
|
|
3167
|
-
x: zod_1.z.optional(zod_1.z.union([
|
|
3281
|
+
x: zod_1.z.optional(zod_1.z.union([
|
|
3282
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3168
3283
|
return undefined; if (Array.isArray(v))
|
|
3169
3284
|
return v; if (typeof v === 'string') {
|
|
3170
3285
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3171
3286
|
return v;
|
|
3172
3287
|
return Number(v);
|
|
3173
|
-
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3174
|
-
|
|
3288
|
+
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3289
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3290
|
+
])),
|
|
3291
|
+
y: zod_1.z.optional(zod_1.z.union([
|
|
3292
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3175
3293
|
return undefined; if (Array.isArray(v))
|
|
3176
3294
|
return v; if (typeof v === 'string') {
|
|
3177
3295
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3178
3296
|
return v;
|
|
3179
3297
|
return Number(v);
|
|
3180
|
-
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3298
|
+
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3299
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3300
|
+
]))
|
|
3181
3301
|
}).strict();
|
|
3182
3302
|
exports.offsetSchema = exports.offsetOffsetSchema;
|
|
3183
3303
|
/**
|
|
3184
3304
|
* Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
|
|
3185
3305
|
*/
|
|
3186
3306
|
exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
|
|
3187
|
-
angle: zod_1.z.optional(zod_1.z.union([
|
|
3307
|
+
angle: zod_1.z.optional(zod_1.z.union([
|
|
3308
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3188
3309
|
return undefined; if (Array.isArray(v))
|
|
3189
3310
|
return v; if (typeof v === 'string') {
|
|
3190
3311
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3191
3312
|
return v;
|
|
3192
3313
|
return Number(v);
|
|
3193
|
-
} return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3314
|
+
} return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3315
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3316
|
+
]))
|
|
3194
3317
|
}).strict();
|
|
3195
3318
|
exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
|
|
3196
3319
|
/**
|
|
3197
3320
|
* Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.
|
|
3198
3321
|
*/
|
|
3199
3322
|
exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
|
|
3200
|
-
x: zod_1.z.optional(zod_1.z.union([
|
|
3323
|
+
x: zod_1.z.optional(zod_1.z.union([
|
|
3324
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3201
3325
|
return undefined; if (Array.isArray(v))
|
|
3202
3326
|
return v; if (typeof v === 'string') {
|
|
3203
3327
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3204
3328
|
return v;
|
|
3205
3329
|
return Number(v);
|
|
3206
|
-
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3207
|
-
|
|
3330
|
+
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3331
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3332
|
+
])),
|
|
3333
|
+
y: zod_1.z.optional(zod_1.z.union([
|
|
3334
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3208
3335
|
return undefined; if (Array.isArray(v))
|
|
3209
3336
|
return v; if (typeof v === 'string') {
|
|
3210
3337
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3211
3338
|
return v;
|
|
3212
3339
|
return Number(v);
|
|
3213
|
-
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3340
|
+
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3341
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3342
|
+
]))
|
|
3214
3343
|
}).strict();
|
|
3215
3344
|
exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
|
|
3216
3345
|
/**
|
|
3217
3346
|
* The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.
|
|
3218
3347
|
*/
|
|
3219
3348
|
exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
|
|
3220
|
-
type: zod_1.z.enum([
|
|
3349
|
+
type: zod_1.z.enum(['text-to-speech']),
|
|
3221
3350
|
text: zod_1.z.string(),
|
|
3222
3351
|
voice: zod_1.z.string(),
|
|
3223
3352
|
language: zod_1.z.optional(zod_1.z.string()),
|
|
@@ -3229,13 +3358,16 @@ exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
|
|
|
3229
3358
|
return v;
|
|
3230
3359
|
return Number(v);
|
|
3231
3360
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3232
|
-
volume: zod_1.z.optional(zod_1.z.union([
|
|
3361
|
+
volume: zod_1.z.optional(zod_1.z.union([
|
|
3362
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3233
3363
|
return undefined; if (Array.isArray(v))
|
|
3234
3364
|
return v; if (typeof v === 'string') {
|
|
3235
3365
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3236
3366
|
return v;
|
|
3237
3367
|
return Number(v);
|
|
3238
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3368
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3369
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3370
|
+
])),
|
|
3239
3371
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3240
3372
|
return undefined; if (Array.isArray(v))
|
|
3241
3373
|
return v; if (typeof v === 'string') {
|
|
@@ -3243,7 +3375,12 @@ exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
|
|
|
3243
3375
|
return v;
|
|
3244
3376
|
return Number(v);
|
|
3245
3377
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3246
|
-
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3378
|
+
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3379
|
+
'none',
|
|
3380
|
+
'fadeIn',
|
|
3381
|
+
'fadeOut',
|
|
3382
|
+
'fadeInFadeOut'
|
|
3383
|
+
]))
|
|
3247
3384
|
}).strict();
|
|
3248
3385
|
exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema;
|
|
3249
3386
|
/**
|
|
@@ -3255,43 +3392,43 @@ exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSche
|
|
|
3255
3392
|
* @deprecated
|
|
3256
3393
|
*/
|
|
3257
3394
|
exports.titleassetTitleAssetSchema = zod_1.z.object({
|
|
3258
|
-
type: zod_1.z.enum([
|
|
3395
|
+
type: zod_1.z.enum(['title']),
|
|
3259
3396
|
text: zod_1.z.string(),
|
|
3260
3397
|
style: zod_1.z.optional(zod_1.z.enum([
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3398
|
+
'minimal',
|
|
3399
|
+
'blockbuster',
|
|
3400
|
+
'vogue',
|
|
3401
|
+
'sketchy',
|
|
3402
|
+
'skinny',
|
|
3403
|
+
'chunk',
|
|
3404
|
+
'chunkLight',
|
|
3405
|
+
'marker',
|
|
3406
|
+
'future',
|
|
3407
|
+
'subtitle'
|
|
3271
3408
|
])),
|
|
3272
3409
|
color: zod_1.z.optional(zod_1.z.string()),
|
|
3273
3410
|
size: zod_1.z.optional(zod_1.z.enum([
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3411
|
+
'xx-small',
|
|
3412
|
+
'x-small',
|
|
3413
|
+
'small',
|
|
3414
|
+
'medium',
|
|
3415
|
+
'large',
|
|
3416
|
+
'x-large',
|
|
3417
|
+
'xx-large'
|
|
3281
3418
|
])),
|
|
3282
3419
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
3283
3420
|
position: zod_1.z.optional(zod_1.z.enum([
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3421
|
+
'top',
|
|
3422
|
+
'topRight',
|
|
3423
|
+
'right',
|
|
3424
|
+
'bottomRight',
|
|
3425
|
+
'bottom',
|
|
3426
|
+
'bottomLeft',
|
|
3427
|
+
'left',
|
|
3428
|
+
'topLeft',
|
|
3429
|
+
'center'
|
|
3293
3430
|
])),
|
|
3294
|
-
offset: zod_1.z.optional(exports.offsetOffsetSchema)
|
|
3431
|
+
offset: zod_1.z.optional(exports.offsetOffsetSchema)
|
|
3295
3432
|
}).strict();
|
|
3296
3433
|
exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
|
|
3297
3434
|
/**
|
|
@@ -3300,14 +3437,14 @@ exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
|
|
|
3300
3437
|
exports.transformationTransformationSchema = zod_1.z.object({
|
|
3301
3438
|
rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
|
|
3302
3439
|
skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
|
|
3303
|
-
flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema)
|
|
3440
|
+
flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema)
|
|
3304
3441
|
}).strict();
|
|
3305
3442
|
exports.transformationSchema = exports.transformationTransformationSchema;
|
|
3306
3443
|
/**
|
|
3307
3444
|
* 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.
|
|
3308
3445
|
*/
|
|
3309
3446
|
exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
3310
|
-
type: zod_1.z.enum([
|
|
3447
|
+
type: zod_1.z.enum(['video']),
|
|
3311
3448
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
3312
3449
|
transcode: zod_1.z.optional(zod_1.z.boolean()),
|
|
3313
3450
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3317,14 +3454,22 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
|
3317
3454
|
return v;
|
|
3318
3455
|
return Number(v);
|
|
3319
3456
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3320
|
-
volume: zod_1.z.optional(zod_1.z.union([
|
|
3457
|
+
volume: zod_1.z.optional(zod_1.z.union([
|
|
3458
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3321
3459
|
return undefined; if (Array.isArray(v))
|
|
3322
3460
|
return v; if (typeof v === 'string') {
|
|
3323
3461
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3324
3462
|
return v;
|
|
3325
3463
|
return Number(v);
|
|
3326
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3327
|
-
|
|
3464
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3465
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3466
|
+
])),
|
|
3467
|
+
volumeEffect: zod_1.z.optional(zod_1.z.enum([
|
|
3468
|
+
'none',
|
|
3469
|
+
'fadeIn',
|
|
3470
|
+
'fadeOut',
|
|
3471
|
+
'fadeInFadeOut'
|
|
3472
|
+
])),
|
|
3328
3473
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3329
3474
|
return undefined; if (Array.isArray(v))
|
|
3330
3475
|
return v; if (typeof v === 'string') {
|
|
@@ -3333,7 +3478,7 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
|
3333
3478
|
return Number(v);
|
|
3334
3479
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3335
3480
|
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
3336
|
-
chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
|
|
3481
|
+
chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
|
|
3337
3482
|
}).strict();
|
|
3338
3483
|
exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
|
|
3339
3484
|
/**
|
|
@@ -3370,7 +3515,7 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3370
3515
|
return v;
|
|
3371
3516
|
return Number(v);
|
|
3372
3517
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3373
|
-
zod_1.z.union([zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3518
|
+
zod_1.z.union([zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3374
3519
|
]),
|
|
3375
3520
|
length: zod_1.z.union([
|
|
3376
3521
|
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3380,16 +3525,24 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3380
3525
|
return v;
|
|
3381
3526
|
return Number(v);
|
|
3382
3527
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3383
|
-
zod_1.z.union([zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3528
|
+
zod_1.z.union([zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3384
3529
|
]),
|
|
3385
|
-
fit: zod_1.z.optional(zod_1.z.enum([
|
|
3386
|
-
|
|
3530
|
+
fit: zod_1.z.optional(zod_1.z.enum([
|
|
3531
|
+
'cover',
|
|
3532
|
+
'contain',
|
|
3533
|
+
'crop',
|
|
3534
|
+
'none'
|
|
3535
|
+
])),
|
|
3536
|
+
scale: zod_1.z.optional(zod_1.z.union([
|
|
3537
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3387
3538
|
return undefined; if (Array.isArray(v))
|
|
3388
3539
|
return v; if (typeof v === 'string') {
|
|
3389
3540
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3390
3541
|
return v;
|
|
3391
3542
|
return Number(v);
|
|
3392
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3543
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3544
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3545
|
+
])),
|
|
3393
3546
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3394
3547
|
return undefined; if (Array.isArray(v))
|
|
3395
3548
|
return v; if (typeof v === 'string') {
|
|
@@ -3405,58 +3558,61 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3405
3558
|
return Number(v);
|
|
3406
3559
|
} return v; }), zod_1.z.number().gte(1).lte(2160)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3407
3560
|
position: zod_1.z.optional(zod_1.z.enum([
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3561
|
+
'top',
|
|
3562
|
+
'topRight',
|
|
3563
|
+
'right',
|
|
3564
|
+
'bottomRight',
|
|
3565
|
+
'bottom',
|
|
3566
|
+
'bottomLeft',
|
|
3567
|
+
'left',
|
|
3568
|
+
'topLeft',
|
|
3569
|
+
'center'
|
|
3417
3570
|
])),
|
|
3418
3571
|
offset: zod_1.z.optional(exports.offsetOffsetSchema),
|
|
3419
3572
|
transition: zod_1.z.optional(exports.transitionTransitionSchema),
|
|
3420
3573
|
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3574
|
+
'zoomIn',
|
|
3575
|
+
'zoomInSlow',
|
|
3576
|
+
'zoomInFast',
|
|
3577
|
+
'zoomOut',
|
|
3578
|
+
'zoomOutSlow',
|
|
3579
|
+
'zoomOutFast',
|
|
3580
|
+
'slideLeft',
|
|
3581
|
+
'slideLeftSlow',
|
|
3582
|
+
'slideLeftFast',
|
|
3583
|
+
'slideRight',
|
|
3584
|
+
'slideRightSlow',
|
|
3585
|
+
'slideRightFast',
|
|
3586
|
+
'slideUp',
|
|
3587
|
+
'slideUpSlow',
|
|
3588
|
+
'slideUpFast',
|
|
3589
|
+
'slideDown',
|
|
3590
|
+
'slideDownSlow',
|
|
3591
|
+
'slideDownFast'
|
|
3439
3592
|
])),
|
|
3440
3593
|
filter: zod_1.z.optional(zod_1.z.enum([
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3594
|
+
'none',
|
|
3595
|
+
'blur',
|
|
3596
|
+
'boost',
|
|
3597
|
+
'contrast',
|
|
3598
|
+
'darken',
|
|
3599
|
+
'greyscale',
|
|
3600
|
+
'lighten',
|
|
3601
|
+
'muted',
|
|
3602
|
+
'negative'
|
|
3450
3603
|
])),
|
|
3451
|
-
opacity: zod_1.z.optional(zod_1.z.union([
|
|
3604
|
+
opacity: zod_1.z.optional(zod_1.z.union([
|
|
3605
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3452
3606
|
return undefined; if (Array.isArray(v))
|
|
3453
3607
|
return v; if (typeof v === 'string') {
|
|
3454
3608
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3455
3609
|
return v;
|
|
3456
3610
|
return Number(v);
|
|
3457
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3611
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3612
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
3613
|
+
])),
|
|
3458
3614
|
transform: zod_1.z.optional(exports.transformationTransformationSchema),
|
|
3459
|
-
alias: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
3615
|
+
alias: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
3460
3616
|
}).strict();
|
|
3461
3617
|
exports.clipSchema = exports.clipClipSchema;
|
|
3462
3618
|
// Clip schema with fit property filter for rich-text assets
|
|
@@ -3475,7 +3631,7 @@ const clipClipSchemaWithFitFilter = exports.clipClipSchema.transform((clip) => {
|
|
|
3475
3631
|
* A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
|
|
3476
3632
|
*/
|
|
3477
3633
|
exports.trackTrackSchema = zod_1.z.object({
|
|
3478
|
-
clips: zod_1.z.array(clipClipSchemaWithFitFilter).min(1)
|
|
3634
|
+
clips: zod_1.z.array(clipClipSchemaWithFitFilter).min(1)
|
|
3479
3635
|
}).strict();
|
|
3480
3636
|
exports.trackSchema = exports.trackTrackSchema;
|
|
3481
3637
|
/**
|
|
@@ -3486,7 +3642,7 @@ exports.timelineTimelineSchema = zod_1.z.object({
|
|
|
3486
3642
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
3487
3643
|
fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
|
|
3488
3644
|
tracks: zod_1.z.array(exports.trackTrackSchema).min(1),
|
|
3489
|
-
cache: zod_1.z.optional(zod_1.z.boolean())
|
|
3645
|
+
cache: zod_1.z.optional(zod_1.z.boolean())
|
|
3490
3646
|
}).strict();
|
|
3491
3647
|
exports.timelineSchema = exports.timelineTimelineSchema;
|
|
3492
3648
|
/**
|
|
@@ -3497,8 +3653,12 @@ exports.editEditSchema = zod_1.z.object({
|
|
|
3497
3653
|
output: exports.outputOutputSchema,
|
|
3498
3654
|
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
|
|
3499
3655
|
callback: zod_1.z.optional(zod_1.z.string()),
|
|
3500
|
-
disk: zod_1.z.optional(zod_1.z.enum([
|
|
3501
|
-
instance: zod_1.z.optional(zod_1.z.enum([
|
|
3656
|
+
disk: zod_1.z.optional(zod_1.z.enum(['local', 'mount'])),
|
|
3657
|
+
instance: zod_1.z.optional(zod_1.z.enum([
|
|
3658
|
+
's1',
|
|
3659
|
+
's2',
|
|
3660
|
+
'a1'
|
|
3661
|
+
]))
|
|
3502
3662
|
}).strict();
|
|
3503
3663
|
exports.editSchema = exports.editEditSchema;
|
|
3504
3664
|
/**
|
|
@@ -3509,13 +3669,13 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
|
|
|
3509
3669
|
owner: zod_1.z.string(),
|
|
3510
3670
|
plan: zod_1.z.optional(zod_1.z.string()),
|
|
3511
3671
|
status: zod_1.z.enum([
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3672
|
+
'queued',
|
|
3673
|
+
'fetching',
|
|
3674
|
+
'preprocessing',
|
|
3675
|
+
'rendering',
|
|
3676
|
+
'saving',
|
|
3677
|
+
'done',
|
|
3678
|
+
'failed'
|
|
3519
3679
|
]),
|
|
3520
3680
|
error: zod_1.z.optional(zod_1.z.string()),
|
|
3521
3681
|
duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3533,11 +3693,17 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
|
|
|
3533
3693
|
return Number(v);
|
|
3534
3694
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3535
3695
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
3536
|
-
poster: zod_1.z.optional(zod_1.z.union([
|
|
3537
|
-
|
|
3696
|
+
poster: zod_1.z.optional(zod_1.z.union([
|
|
3697
|
+
zod_1.z.string(),
|
|
3698
|
+
zod_1.z.null()
|
|
3699
|
+
])),
|
|
3700
|
+
thumbnail: zod_1.z.optional(zod_1.z.union([
|
|
3701
|
+
zod_1.z.string(),
|
|
3702
|
+
zod_1.z.null()
|
|
3703
|
+
])),
|
|
3538
3704
|
data: zod_1.z.optional(exports.editEditSchema),
|
|
3539
3705
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
3540
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
3706
|
+
updated: zod_1.z.optional(zod_1.z.string())
|
|
3541
3707
|
}).strict();
|
|
3542
3708
|
exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
|
|
3543
3709
|
/**
|
|
@@ -3546,7 +3712,7 @@ exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataS
|
|
|
3546
3712
|
exports.renderresponseRenderResponseSchema = zod_1.z.object({
|
|
3547
3713
|
success: zod_1.z.boolean(),
|
|
3548
3714
|
message: zod_1.z.string(),
|
|
3549
|
-
response: exports.renderresponsedataRenderResponseDataSchema
|
|
3715
|
+
response: exports.renderresponsedataRenderResponseDataSchema
|
|
3550
3716
|
}).strict();
|
|
3551
3717
|
exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
|
|
3552
3718
|
/**
|
|
@@ -3556,7 +3722,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
|
|
|
3556
3722
|
id: zod_1.z.string(),
|
|
3557
3723
|
name: zod_1.z.string(),
|
|
3558
3724
|
owner: zod_1.z.string(),
|
|
3559
|
-
template: exports.editEditSchema
|
|
3725
|
+
template: exports.editEditSchema
|
|
3560
3726
|
}).strict();
|
|
3561
3727
|
exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
|
|
3562
3728
|
/**
|
|
@@ -3565,7 +3731,7 @@ exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplat
|
|
|
3565
3731
|
exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
|
|
3566
3732
|
success: zod_1.z.boolean(),
|
|
3567
3733
|
message: zod_1.z.string(),
|
|
3568
|
-
response: exports.templatedataresponsedataTemplateDataResponseDataSchema
|
|
3734
|
+
response: exports.templatedataresponsedataTemplateDataResponseDataSchema
|
|
3569
3735
|
}).strict();
|
|
3570
3736
|
exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
|
|
3571
3737
|
/**
|
|
@@ -3573,13 +3739,13 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
|
|
|
3573
3739
|
*/
|
|
3574
3740
|
exports.templateTemplateSchema = zod_1.z.object({
|
|
3575
3741
|
name: zod_1.z.string(),
|
|
3576
|
-
template: zod_1.z.optional(exports.editEditSchema)
|
|
3742
|
+
template: zod_1.z.optional(exports.editEditSchema)
|
|
3577
3743
|
}).strict();
|
|
3578
3744
|
exports.templateSchema = exports.templateTemplateSchema;
|
|
3579
3745
|
exports.postRenderRequest = zod_1.z.object({
|
|
3580
3746
|
body: exports.editEditSchema,
|
|
3581
3747
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3582
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3748
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3583
3749
|
}).strict();
|
|
3584
3750
|
/**
|
|
3585
3751
|
* The queued render details
|
|
@@ -3588,14 +3754,12 @@ exports.postRenderResponse = exports.queuedresponseQueuedResponseSchema;
|
|
|
3588
3754
|
exports.getRenderRequest = zod_1.z.object({
|
|
3589
3755
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3590
3756
|
path: zod_1.z.object({
|
|
3591
|
-
id: zod_1.z
|
|
3592
|
-
.string()
|
|
3593
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3757
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3594
3758
|
}),
|
|
3595
3759
|
query: zod_1.z.optional(zod_1.z.object({
|
|
3596
3760
|
data: zod_1.z.optional(zod_1.z.boolean()),
|
|
3597
|
-
merged: zod_1.z.optional(zod_1.z.boolean())
|
|
3598
|
-
}))
|
|
3761
|
+
merged: zod_1.z.optional(zod_1.z.boolean())
|
|
3762
|
+
}))
|
|
3599
3763
|
}).strict();
|
|
3600
3764
|
/**
|
|
3601
3765
|
* The render status details
|
|
@@ -3604,7 +3768,7 @@ exports.getRenderResponse = exports.renderresponseRenderResponseSchema;
|
|
|
3604
3768
|
exports.getTemplatesRequest = zod_1.z.object({
|
|
3605
3769
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3606
3770
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3607
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3771
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3608
3772
|
}).strict();
|
|
3609
3773
|
/**
|
|
3610
3774
|
* The list of templates stored against a users account
|
|
@@ -3613,7 +3777,7 @@ exports.getTemplatesResponse = exports.templatelistresponseTemplateListResponseS
|
|
|
3613
3777
|
exports.postTemplateRequest = zod_1.z.object({
|
|
3614
3778
|
body: exports.templateTemplateSchema,
|
|
3615
3779
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3616
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3780
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3617
3781
|
}).strict();
|
|
3618
3782
|
/**
|
|
3619
3783
|
* The saved template status including the id
|
|
@@ -3622,11 +3786,9 @@ exports.postTemplateResponse = exports.templateresponseTemplateResponseSchema;
|
|
|
3622
3786
|
exports.deleteTemplateRequest = zod_1.z.object({
|
|
3623
3787
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3624
3788
|
path: zod_1.z.object({
|
|
3625
|
-
id: zod_1.z
|
|
3626
|
-
.string()
|
|
3627
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3789
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3628
3790
|
}),
|
|
3629
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3791
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3630
3792
|
}).strict();
|
|
3631
3793
|
/**
|
|
3632
3794
|
* An empty response signifying the template has been deleted
|
|
@@ -3635,11 +3797,9 @@ exports.deleteTemplateResponse = zod_1.z.void();
|
|
|
3635
3797
|
exports.getTemplateRequest = zod_1.z.object({
|
|
3636
3798
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3637
3799
|
path: zod_1.z.object({
|
|
3638
|
-
id: zod_1.z
|
|
3639
|
-
.string()
|
|
3640
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3800
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3641
3801
|
}),
|
|
3642
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3802
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3643
3803
|
}).strict();
|
|
3644
3804
|
/**
|
|
3645
3805
|
* The template details including the [Edit](#tocs_edit)
|
|
@@ -3648,11 +3808,9 @@ exports.getTemplateResponse = exports.templatedataresponseTemplateDataResponseSc
|
|
|
3648
3808
|
exports.putTemplateRequest = zod_1.z.object({
|
|
3649
3809
|
body: exports.templateTemplateSchema,
|
|
3650
3810
|
path: zod_1.z.object({
|
|
3651
|
-
id: zod_1.z
|
|
3652
|
-
.string()
|
|
3653
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3811
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3654
3812
|
}),
|
|
3655
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3813
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3656
3814
|
}).strict();
|
|
3657
3815
|
/**
|
|
3658
3816
|
* Update a templates name and [Edit](#tocs_edit)
|
|
@@ -3661,7 +3819,7 @@ exports.putTemplateResponse = exports.templateresponseTemplateResponseSchema;
|
|
|
3661
3819
|
exports.postTemplateRenderRequest = zod_1.z.object({
|
|
3662
3820
|
body: exports.templaterenderTemplateRenderSchema,
|
|
3663
3821
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3664
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3822
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3665
3823
|
}).strict();
|
|
3666
3824
|
/**
|
|
3667
3825
|
* The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
|
|
@@ -3670,9 +3828,9 @@ exports.postTemplateRenderResponse = exports.queuedresponseQueuedResponseSchema;
|
|
|
3670
3828
|
exports.probeRequest = zod_1.z.object({
|
|
3671
3829
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3672
3830
|
path: zod_1.z.object({
|
|
3673
|
-
url: zod_1.z.string()
|
|
3831
|
+
url: zod_1.z.string()
|
|
3674
3832
|
}),
|
|
3675
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3833
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3676
3834
|
}).strict();
|
|
3677
3835
|
/**
|
|
3678
3836
|
* FFprobe response formatted as JSON.
|
|
@@ -3681,11 +3839,9 @@ exports.probeResponse = exports.proberesponseProbeResponseSchema;
|
|
|
3681
3839
|
exports.deleteAssetRequest = zod_1.z.object({
|
|
3682
3840
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3683
3841
|
path: zod_1.z.object({
|
|
3684
|
-
id: zod_1.z
|
|
3685
|
-
.string()
|
|
3686
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3842
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3687
3843
|
}),
|
|
3688
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3844
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3689
3845
|
}).strict();
|
|
3690
3846
|
/**
|
|
3691
3847
|
* An empty response signifying the asset has been deleted
|
|
@@ -3694,11 +3850,9 @@ exports.deleteAssetResponse = zod_1.z.void();
|
|
|
3694
3850
|
exports.getAssetRequest = zod_1.z.object({
|
|
3695
3851
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3696
3852
|
path: zod_1.z.object({
|
|
3697
|
-
id: zod_1.z
|
|
3698
|
-
.string()
|
|
3699
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3853
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3700
3854
|
}),
|
|
3701
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3855
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3702
3856
|
}).strict();
|
|
3703
3857
|
/**
|
|
3704
3858
|
* Get asset by asset id
|
|
@@ -3707,11 +3861,9 @@ exports.getAssetResponse = exports.assetresponseAssetResponseSchema;
|
|
|
3707
3861
|
exports.getAssetByRenderIdRequest = zod_1.z.object({
|
|
3708
3862
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3709
3863
|
path: zod_1.z.object({
|
|
3710
|
-
id: zod_1.z
|
|
3711
|
-
.string()
|
|
3712
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3864
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3713
3865
|
}),
|
|
3714
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3866
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3715
3867
|
}).strict();
|
|
3716
3868
|
/**
|
|
3717
3869
|
* Get one or more assets by render id
|
|
@@ -3720,7 +3872,7 @@ exports.getAssetByRenderIdResponse = exports.assetrenderresponseAssetRenderRespo
|
|
|
3720
3872
|
exports.postServeAssetRequest = zod_1.z.object({
|
|
3721
3873
|
body: exports.transferTransferSchema,
|
|
3722
3874
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3723
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3875
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3724
3876
|
}).strict();
|
|
3725
3877
|
/**
|
|
3726
3878
|
* The transfer request details and status
|
|
@@ -3729,7 +3881,7 @@ exports.postServeAssetResponse = exports.transferresponseTransferResponseSchema;
|
|
|
3729
3881
|
exports.getSourcesRequest = zod_1.z.object({
|
|
3730
3882
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3731
3883
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3732
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3884
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3733
3885
|
}).strict();
|
|
3734
3886
|
/**
|
|
3735
3887
|
* The list of ingested source files stored against a users account
|
|
@@ -3738,7 +3890,7 @@ exports.getSourcesResponse = exports.sourcelistresponseSourceListResponseSchema;
|
|
|
3738
3890
|
exports.postSourceRequest = zod_1.z.object({
|
|
3739
3891
|
body: exports.sourceSourceSchema,
|
|
3740
3892
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3741
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3893
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3742
3894
|
}).strict();
|
|
3743
3895
|
/**
|
|
3744
3896
|
* The queued source file details
|
|
@@ -3747,11 +3899,9 @@ exports.postSourceResponse = exports.queuedsourceresponseQueuedSourceResponseSch
|
|
|
3747
3899
|
exports.deleteSourceRequest = zod_1.z.object({
|
|
3748
3900
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3749
3901
|
path: zod_1.z.object({
|
|
3750
|
-
id: zod_1.z
|
|
3751
|
-
.string()
|
|
3752
|
-
.regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
|
|
3902
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3753
3903
|
}),
|
|
3754
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3904
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3755
3905
|
}).strict();
|
|
3756
3906
|
/**
|
|
3757
3907
|
* An empty response signifying the ingested source file has been deleted.
|
|
@@ -3760,11 +3910,9 @@ exports.deleteSourceResponse = zod_1.z.void();
|
|
|
3760
3910
|
exports.getSourceRequest = zod_1.z.object({
|
|
3761
3911
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3762
3912
|
path: zod_1.z.object({
|
|
3763
|
-
id: zod_1.z
|
|
3764
|
-
.string()
|
|
3765
|
-
.regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
|
|
3913
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3766
3914
|
}),
|
|
3767
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3915
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3768
3916
|
}).strict();
|
|
3769
3917
|
/**
|
|
3770
3918
|
* Get source file details by id
|
|
@@ -3773,7 +3921,7 @@ exports.getSourceResponse = exports.sourceresponseSourceResponseSchema;
|
|
|
3773
3921
|
exports.getUploadSignedUrlRequest = zod_1.z.object({
|
|
3774
3922
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3775
3923
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3776
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3924
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3777
3925
|
}).strict();
|
|
3778
3926
|
/**
|
|
3779
3927
|
* The id and signed URL to upload to.
|
|
@@ -3782,7 +3930,7 @@ exports.getUploadSignedUrlResponse = exports.uploadresponseUploadResponseSchema;
|
|
|
3782
3930
|
exports.postGenerateAssetRequest = zod_1.z.object({
|
|
3783
3931
|
body: exports.generatedAssetGeneratedAssetSchema,
|
|
3784
3932
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3785
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3933
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3786
3934
|
}).strict();
|
|
3787
3935
|
/**
|
|
3788
3936
|
* The generated asset details
|
|
@@ -3791,11 +3939,9 @@ exports.postGenerateAssetResponse = exports.generatedAssetResponseGeneratedAsset
|
|
|
3791
3939
|
exports.getGeneratedAssetRequest = zod_1.z.object({
|
|
3792
3940
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3793
3941
|
path: zod_1.z.object({
|
|
3794
|
-
id: zod_1.z
|
|
3795
|
-
.string()
|
|
3796
|
-
.regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),
|
|
3942
|
+
id: zod_1.z.union([zod_1.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3797
3943
|
}),
|
|
3798
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3944
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
3799
3945
|
}).strict();
|
|
3800
3946
|
/**
|
|
3801
3947
|
* The generated asset details
|