@shotstack/schemas 1.7.1 → 1.8.2
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 +49 -833
- package/dist/json-schema/asset.json +84 -855
- package/dist/json-schema/clip.json +84 -855
- package/dist/json-schema/edit.json +84 -855
- package/dist/json-schema/rich-caption-asset.json +221 -140
- package/dist/json-schema/schemas.json +93 -951
- package/dist/json-schema/svg-asset.json +6 -857
- package/dist/json-schema/timeline.json +84 -855
- package/dist/json-schema/track.json +84 -855
- package/dist/schema.d.ts +43 -660
- package/dist/zod/zod.gen.cjs +914 -1640
- package/dist/zod/zod.gen.d.ts +306 -8714
- package/dist/zod/zod.gen.js +911 -1636
- package/dist/zod/zod.gen.ts +1593 -1880
- package/package.json +79 -79
- package/dist/json-schema/svg-arrow-shape.json +0 -49
- package/dist/json-schema/svg-circle-shape.json +0 -28
- package/dist/json-schema/svg-cross-shape.json +0 -42
- package/dist/json-schema/svg-ellipse-shape.json +0 -35
- package/dist/json-schema/svg-fill.json +0 -169
- package/dist/json-schema/svg-gradient-stop.json +0 -25
- package/dist/json-schema/svg-heart-shape.json +0 -28
- package/dist/json-schema/svg-line-shape.json +0 -35
- package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
- package/dist/json-schema/svg-path-shape.json +0 -26
- package/dist/json-schema/svg-polygon-shape.json +0 -35
- package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
- package/dist/json-schema/svg-rectangle-shape.json +0 -49
- package/dist/json-schema/svg-ring-shape.json +0 -35
- package/dist/json-schema/svg-shadow.json +0 -79
- package/dist/json-schema/svg-shape.json +0 -404
- package/dist/json-schema/svg-solid-fill.json +0 -40
- package/dist/json-schema/svg-star-shape.json +0 -42
- package/dist/json-schema/svg-stroke.json +0 -115
- package/dist/json-schema/svg-transform.json +0 -93
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema = exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = exports.chromaKeySchema = exports.chromakeyChromaKeySchema = exports.captionAssetSchema = exports.captionassetCaptionAssetSchema = exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema = exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema = exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema = exports.uploadRootSchema = exports.templatesrenderRootSchema = exports.templatesidRootSchema = exports.templatesRootSchema = exports.sourcesidRootSchema = exports.sourcesRootSchema = exports.renderidRootSchema = exports.renderRootSchema = exports.probeRootSchema = exports.generateassetidRootSchema = exports.generateassetRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
5
|
exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema = exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema = exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema = exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema = exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema = exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = exports.cropSchema = exports.cropCropSchema = exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema = exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema = exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = void 0;
|
|
6
6
|
exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema = exports.transcriptionSchema = exports.transcriptionTranscriptionSchema = exports.speedSchema = exports.speedSpeedSchema = exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema = exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema = exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema = exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema = exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema = exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema = exports.enhancementsSchema = exports.enhancementsEnhancementsSchema = exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema = exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema = exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema = exports.imageAssetSchema = exports.imageassetImageAssetSchema = exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema = exports.fontSchema = exports.fontFontSchema = exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema = exports.destinationsSchema = exports.destinationsDestinationsSchema = exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema = exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = exports.tiktokDestinationTiktokDestinationSchema = exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = void 0;
|
|
7
|
+
exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.wordTimingSchema = exports.richcaptionpropertiesWordTimingSchema = 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 = void 0;
|
|
8
|
+
exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = 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 = void 0;
|
|
9
|
+
exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = exports.thumbnailThumbnailSchema = exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = void 0;
|
|
10
|
+
exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = void 0;
|
|
12
11
|
const zod_1 = require("zod");
|
|
13
12
|
exports.editRootSchema = zod_1.z.unknown();
|
|
14
13
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
@@ -51,7 +50,7 @@ exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
|
|
|
51
50
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
52
51
|
return v;
|
|
53
52
|
return Number(v);
|
|
54
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
53
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
55
54
|
}).strict();
|
|
56
55
|
exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
|
|
57
56
|
/**
|
|
@@ -88,7 +87,7 @@ exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
|
|
|
88
87
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
89
88
|
return v;
|
|
90
89
|
return Number(v);
|
|
91
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
90
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
92
91
|
}).strict();
|
|
93
92
|
exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
|
|
94
93
|
/**
|
|
@@ -115,7 +114,7 @@ exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
|
|
|
115
114
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
116
115
|
return v;
|
|
117
116
|
return Number(v);
|
|
118
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
117
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
119
118
|
}).strict();
|
|
120
119
|
exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
|
|
121
120
|
/**
|
|
@@ -131,7 +130,7 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
|
|
|
131
130
|
*
|
|
132
131
|
*/
|
|
133
132
|
exports.captionassetCaptionAssetSchema = zod_1.z.object({
|
|
134
|
-
type: zod_1.z.enum([
|
|
133
|
+
type: zod_1.z.enum(["caption"]),
|
|
135
134
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
136
135
|
font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
|
|
137
136
|
background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
|
|
@@ -149,7 +148,7 @@ exports.captionassetCaptionAssetSchema = zod_1.z.object({
|
|
|
149
148
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
150
149
|
return v;
|
|
151
150
|
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*\}\}$/)]))
|
|
151
|
+
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
153
152
|
}).strict();
|
|
154
153
|
exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
|
|
155
154
|
/**
|
|
@@ -170,23 +169,17 @@ exports.chromakeyChromaKeySchema = zod_1.z.object({
|
|
|
170
169
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
171
170
|
return v;
|
|
172
171
|
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*\}\}$/)]))
|
|
172
|
+
} return v; }), zod_1.z.number().int().gte(0).lte(250)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
174
173
|
}).strict();
|
|
175
174
|
exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
|
|
176
175
|
/**
|
|
177
176
|
* 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
177
|
*/
|
|
179
178
|
exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = zod_1.z.object({
|
|
180
|
-
type: zod_1.z.enum([
|
|
179
|
+
type: zod_1.z.enum(["text-to-avatar"]),
|
|
181
180
|
text: zod_1.z.string(),
|
|
182
|
-
avatar: zod_1.z.enum([
|
|
183
|
-
|
|
184
|
-
'lana',
|
|
185
|
-
'lily',
|
|
186
|
-
'matt',
|
|
187
|
-
'rian'
|
|
188
|
-
]),
|
|
189
|
-
background: zod_1.z.optional(zod_1.z.string())
|
|
181
|
+
avatar: zod_1.z.enum(["jack", "lana", "lily", "matt", "rian"]),
|
|
182
|
+
background: zod_1.z.optional(zod_1.z.string()),
|
|
190
183
|
}).strict();
|
|
191
184
|
exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
192
185
|
/**
|
|
@@ -196,35 +189,37 @@ exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAv
|
|
|
196
189
|
* <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
|
|
197
190
|
* </ul>
|
|
198
191
|
*/
|
|
199
|
-
exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
|
|
200
|
-
|
|
201
|
-
|
|
192
|
+
exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
|
|
193
|
+
.object({
|
|
194
|
+
type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
|
|
195
|
+
})
|
|
196
|
+
.and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
202
197
|
exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
|
|
203
198
|
/**
|
|
204
199
|
* 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.
|
|
205
200
|
*/
|
|
206
201
|
exports.didGeneratedAssetDidGeneratedAssetSchema = zod_1.z.object({
|
|
207
|
-
provider: zod_1.z.enum([
|
|
208
|
-
options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
|
|
202
|
+
provider: zod_1.z.enum(["d-id"]),
|
|
203
|
+
options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
|
|
209
204
|
}).strict();
|
|
210
205
|
exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema;
|
|
211
206
|
/**
|
|
212
207
|
* 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.
|
|
213
208
|
*/
|
|
214
209
|
exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = zod_1.z.object({
|
|
215
|
-
type: zod_1.z.enum([
|
|
210
|
+
type: zod_1.z.enum(["text-to-speech"]),
|
|
216
211
|
text: zod_1.z.string(),
|
|
217
212
|
voice: zod_1.z.enum([
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
])
|
|
213
|
+
"Adam",
|
|
214
|
+
"Antoni",
|
|
215
|
+
"Arnold",
|
|
216
|
+
"Bella",
|
|
217
|
+
"Domi",
|
|
218
|
+
"Elli",
|
|
219
|
+
"Josh",
|
|
220
|
+
"Rachel",
|
|
221
|
+
"Sam",
|
|
222
|
+
]),
|
|
228
223
|
}).strict();
|
|
229
224
|
exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
230
225
|
/**
|
|
@@ -234,141 +229,143 @@ exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOpti
|
|
|
234
229
|
* <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
|
|
235
230
|
* </ul>
|
|
236
231
|
*/
|
|
237
|
-
exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
|
|
238
|
-
|
|
239
|
-
|
|
232
|
+
exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
|
|
233
|
+
.object({
|
|
234
|
+
type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
|
|
235
|
+
})
|
|
236
|
+
.and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
240
237
|
exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
|
|
241
238
|
/**
|
|
242
239
|
* 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.
|
|
243
240
|
*/
|
|
244
241
|
exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = zod_1.z.object({
|
|
245
|
-
provider: zod_1.z.enum([
|
|
246
|
-
options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
|
|
242
|
+
provider: zod_1.z.enum(["elevenlabs"]),
|
|
243
|
+
options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
|
|
247
244
|
}).strict();
|
|
248
245
|
exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
249
246
|
/**
|
|
250
247
|
* 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.
|
|
251
248
|
*/
|
|
252
249
|
exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = zod_1.z.object({
|
|
253
|
-
type: zod_1.z.enum([
|
|
250
|
+
type: zod_1.z.enum(["text-to-avatar"]),
|
|
254
251
|
text: zod_1.z.string(),
|
|
255
252
|
avatar: zod_1.z.enum([
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
253
|
+
"Angela",
|
|
254
|
+
"Bill",
|
|
255
|
+
"Daisy",
|
|
256
|
+
"Derek",
|
|
257
|
+
"Eva",
|
|
258
|
+
"Jake",
|
|
259
|
+
"Jeff",
|
|
260
|
+
"Jerome",
|
|
261
|
+
"Joon",
|
|
262
|
+
"Kayla",
|
|
263
|
+
"Kent",
|
|
264
|
+
"Luna",
|
|
265
|
+
"Mark",
|
|
266
|
+
"Matthew",
|
|
267
|
+
"Monica",
|
|
268
|
+
"Peter",
|
|
269
|
+
"Selina",
|
|
270
|
+
"Tanya",
|
|
271
|
+
"Thomas",
|
|
272
|
+
"Tina",
|
|
273
|
+
"Tyler",
|
|
274
|
+
"Vanessa",
|
|
275
|
+
"Vera",
|
|
276
|
+
"Wilson",
|
|
277
|
+
"Zoey",
|
|
281
278
|
]),
|
|
282
279
|
voice: zod_1.z.enum([
|
|
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
|
-
|
|
365
|
-
|
|
366
|
-
|
|
280
|
+
"Abbi - Natural",
|
|
281
|
+
"Adam - Natural",
|
|
282
|
+
"Aiston - Friendly",
|
|
283
|
+
"Alice - Newscaster",
|
|
284
|
+
"Alison - Cheerful",
|
|
285
|
+
"Amber - Friendly",
|
|
286
|
+
"Amy - Warm",
|
|
287
|
+
"Ana - Cheerful",
|
|
288
|
+
"Antoni - Friendly",
|
|
289
|
+
"Aria - Newscaster",
|
|
290
|
+
"Arnold - Cheerful",
|
|
291
|
+
"Arthur - Natural",
|
|
292
|
+
"Bella - Friendly",
|
|
293
|
+
"Belle - Natural",
|
|
294
|
+
"Brandon - Warm",
|
|
295
|
+
"Brian - Natural",
|
|
296
|
+
"Bruce - Natural",
|
|
297
|
+
"Cerise - Cheerful",
|
|
298
|
+
"Christopher - Calm",
|
|
299
|
+
"Clara - Professional",
|
|
300
|
+
"Connor - Natural",
|
|
301
|
+
"Dahlia - Friendly",
|
|
302
|
+
"Davis - Professional",
|
|
303
|
+
"Dean - Natural",
|
|
304
|
+
"Delbert - Cheerful",
|
|
305
|
+
"Edward - Friendly",
|
|
306
|
+
"Elaine - Calm",
|
|
307
|
+
"Emily - Natural",
|
|
308
|
+
"Emma - Newscaster",
|
|
309
|
+
"Eric - Newscaster",
|
|
310
|
+
"Grace - Natural",
|
|
311
|
+
"Hailey - Calm",
|
|
312
|
+
"Indira - Cheerful",
|
|
313
|
+
"Isabella - Cheerful",
|
|
314
|
+
"Jacob - Natural",
|
|
315
|
+
"Jahmai - Friendly",
|
|
316
|
+
"Jane - Serious",
|
|
317
|
+
"Jason - Serious",
|
|
318
|
+
"Jelle - Friendly",
|
|
319
|
+
"Jen - Natural",
|
|
320
|
+
"Jenny - Professional",
|
|
321
|
+
"Jodi - Cheerful",
|
|
322
|
+
"Joey - Calm",
|
|
323
|
+
"Johan - Friendly",
|
|
324
|
+
"Josie - Cheerful",
|
|
325
|
+
"Keanan - Natural",
|
|
326
|
+
"Keith - Cheerful",
|
|
327
|
+
"Kellie - Friendly",
|
|
328
|
+
"Lauren - Friendly",
|
|
329
|
+
"Leah - Natural",
|
|
330
|
+
"Liam - Professional",
|
|
331
|
+
"Libby - Natural",
|
|
332
|
+
"Lily - Professional",
|
|
333
|
+
"Lucas - Natural",
|
|
334
|
+
"Luke - Professional",
|
|
335
|
+
"Luna - Natural",
|
|
336
|
+
"Marieke - Natural",
|
|
337
|
+
"Matthew - Professional",
|
|
338
|
+
"Michelle - Natural",
|
|
339
|
+
"Mitchell - Natural",
|
|
340
|
+
"Molly - Newscaster",
|
|
341
|
+
"Monica - Calm",
|
|
342
|
+
"Natasha - Professional",
|
|
343
|
+
"Neerja - Newscaster",
|
|
344
|
+
"Noah - Serious",
|
|
345
|
+
"Oliver - Newscaster",
|
|
346
|
+
"Olivia - Calm",
|
|
347
|
+
"Paul - Natural",
|
|
348
|
+
"Prabhat - Natural",
|
|
349
|
+
"Raveena - Natural",
|
|
350
|
+
"Rudi - Friendly",
|
|
351
|
+
"Ryan - Professional",
|
|
352
|
+
"Sam - Natural",
|
|
353
|
+
"Sara - Cheerful",
|
|
354
|
+
"Sherry - Friendly",
|
|
355
|
+
"Sonia - Warm",
|
|
356
|
+
"Thomas - Natural",
|
|
357
|
+
"Todd - Professional",
|
|
358
|
+
"Tony - Professional",
|
|
359
|
+
"Tracy - Cheerful",
|
|
360
|
+
"Wayne - Natural",
|
|
361
|
+
"Wilder - Natural",
|
|
362
|
+
"Wille - Natural",
|
|
363
|
+
"William - Friendly",
|
|
367
364
|
]),
|
|
368
|
-
avatarStyle: zod_1.z.optional(zod_1.z.enum([
|
|
365
|
+
avatarStyle: zod_1.z.optional(zod_1.z.enum(["normal", "circle"])),
|
|
369
366
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
370
|
-
ratio: zod_1.z.optional(zod_1.z.enum([
|
|
371
|
-
test: zod_1.z.optional(zod_1.z.boolean())
|
|
367
|
+
ratio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16"])),
|
|
368
|
+
test: zod_1.z.optional(zod_1.z.boolean()),
|
|
372
369
|
}).strict();
|
|
373
370
|
exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
374
371
|
/**
|
|
@@ -378,26 +375,28 @@ exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGe
|
|
|
378
375
|
* <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
|
|
379
376
|
* </ul>
|
|
380
377
|
*/
|
|
381
|
-
exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
|
|
382
|
-
|
|
383
|
-
|
|
378
|
+
exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
|
|
379
|
+
.object({
|
|
380
|
+
type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
|
|
381
|
+
})
|
|
382
|
+
.and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
384
383
|
exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
|
|
385
384
|
/**
|
|
386
385
|
* 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
386
|
*/
|
|
388
387
|
exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = zod_1.z.object({
|
|
389
|
-
provider: zod_1.z.enum([
|
|
390
|
-
options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
|
|
388
|
+
provider: zod_1.z.enum(["heygen"]),
|
|
389
|
+
options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
|
|
391
390
|
}).strict();
|
|
392
391
|
exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
393
392
|
/**
|
|
394
393
|
* 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
394
|
*/
|
|
396
395
|
exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = zod_1.z.object({
|
|
397
|
-
type: zod_1.z.enum([
|
|
396
|
+
type: zod_1.z.enum(["text-generator"]),
|
|
398
397
|
prompt: zod_1.z.string(),
|
|
399
|
-
model: zod_1.z.enum([
|
|
400
|
-
systemPrompt: zod_1.z.optional(zod_1.z.string())
|
|
398
|
+
model: zod_1.z.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
399
|
+
systemPrompt: zod_1.z.optional(zod_1.z.string()),
|
|
401
400
|
}).strict();
|
|
402
401
|
exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
403
402
|
/**
|
|
@@ -407,16 +406,18 @@ exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpe
|
|
|
407
406
|
* <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
|
|
408
407
|
* </ul>
|
|
409
408
|
*/
|
|
410
|
-
exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
|
|
410
|
+
.object({
|
|
411
|
+
type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
|
|
412
|
+
})
|
|
413
|
+
.and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
413
414
|
exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
|
|
414
415
|
/**
|
|
415
416
|
* 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.
|
|
416
417
|
*/
|
|
417
418
|
exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = zod_1.z.object({
|
|
418
|
-
provider: zod_1.z.enum([
|
|
419
|
-
options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
|
|
419
|
+
provider: zod_1.z.enum(["openai"]),
|
|
420
|
+
options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
|
|
420
421
|
}).strict();
|
|
421
422
|
exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
422
423
|
/**
|
|
@@ -425,14 +426,14 @@ exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGenerated
|
|
|
425
426
|
exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = zod_1.z.object({
|
|
426
427
|
status: zod_1.z.string(),
|
|
427
428
|
title: zod_1.z.string(),
|
|
428
|
-
detail: zod_1.z.string()
|
|
429
|
+
detail: zod_1.z.string(),
|
|
429
430
|
}).strict();
|
|
430
431
|
exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
431
432
|
/**
|
|
432
433
|
* Error response data for validation and other errors returned by the Create API.
|
|
433
434
|
*/
|
|
434
435
|
exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = zod_1.z.object({
|
|
435
|
-
errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
|
|
436
|
+
errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
|
|
436
437
|
}).strict();
|
|
437
438
|
exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
438
439
|
/**
|
|
@@ -440,23 +441,12 @@ exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseG
|
|
|
440
441
|
*/
|
|
441
442
|
exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = zod_1.z.object({
|
|
442
443
|
owner: zod_1.z.string(),
|
|
443
|
-
provider: zod_1.z.enum([
|
|
444
|
-
|
|
445
|
-
'elevenlabs',
|
|
446
|
-
'heygen',
|
|
447
|
-
'd-id'
|
|
448
|
-
]),
|
|
449
|
-
type: zod_1.z.enum(['text-to-speech', 'text-to-avatar']),
|
|
444
|
+
provider: zod_1.z.enum(["shotstack", "elevenlabs", "heygen", "d-id"]),
|
|
445
|
+
type: zod_1.z.enum(["text-to-speech", "text-to-avatar"]),
|
|
450
446
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
451
|
-
status: zod_1.z.enum([
|
|
452
|
-
'queued',
|
|
453
|
-
'processing',
|
|
454
|
-
'saving',
|
|
455
|
-
'done',
|
|
456
|
-
'failed'
|
|
457
|
-
]),
|
|
447
|
+
status: zod_1.z.enum(["queued", "processing", "saving", "done", "failed"]),
|
|
458
448
|
created: zod_1.z.string(),
|
|
459
|
-
updated: zod_1.z.string()
|
|
449
|
+
updated: zod_1.z.string(),
|
|
460
450
|
}).strict();
|
|
461
451
|
exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
462
452
|
/**
|
|
@@ -465,21 +455,21 @@ exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseA
|
|
|
465
455
|
exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = zod_1.z.object({
|
|
466
456
|
type: zod_1.z.string(),
|
|
467
457
|
id: zod_1.z.string(),
|
|
468
|
-
attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
|
|
458
|
+
attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
|
|
469
459
|
}).strict();
|
|
470
460
|
exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
471
461
|
/**
|
|
472
462
|
* 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.
|
|
473
463
|
*/
|
|
474
464
|
exports.generatedAssetResponseGeneratedAssetResponseSchema = zod_1.z.object({
|
|
475
|
-
data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema
|
|
465
|
+
data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema,
|
|
476
466
|
}).strict();
|
|
477
467
|
exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema;
|
|
478
468
|
/**
|
|
479
469
|
* 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.
|
|
480
470
|
*/
|
|
481
471
|
exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z.object({
|
|
482
|
-
type: zod_1.z.enum([
|
|
472
|
+
type: zod_1.z.enum(["image-to-video"]),
|
|
483
473
|
imageUrl: zod_1.z.string(),
|
|
484
474
|
guidanceScale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
485
475
|
return undefined; if (Array.isArray(v))
|
|
@@ -494,22 +484,22 @@ exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z
|
|
|
494
484
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
495
485
|
return v;
|
|
496
486
|
return Number(v);
|
|
497
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
|
|
487
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127),
|
|
498
488
|
}).strict();
|
|
499
489
|
exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
500
490
|
/**
|
|
501
491
|
* 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.
|
|
502
492
|
*/
|
|
503
493
|
exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = zod_1.z.object({
|
|
504
|
-
type: zod_1.z.enum([
|
|
505
|
-
prompt: zod_1.z.string()
|
|
494
|
+
type: zod_1.z.enum(["text-generator"]),
|
|
495
|
+
prompt: zod_1.z.string(),
|
|
506
496
|
}).strict();
|
|
507
497
|
exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
508
498
|
/**
|
|
509
499
|
* 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.
|
|
510
500
|
*/
|
|
511
501
|
exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.object({
|
|
512
|
-
type: zod_1.z.enum([
|
|
502
|
+
type: zod_1.z.enum(["text-to-image"]),
|
|
513
503
|
prompt: zod_1.z.string(),
|
|
514
504
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
515
505
|
return undefined; if (Array.isArray(v))
|
|
@@ -524,146 +514,154 @@ exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.o
|
|
|
524
514
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
525
515
|
return v;
|
|
526
516
|
return Number(v);
|
|
527
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
517
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
528
518
|
}).strict();
|
|
529
519
|
exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
530
520
|
/**
|
|
531
521
|
* 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.
|
|
532
522
|
*/
|
|
533
523
|
exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = zod_1.z.object({
|
|
534
|
-
type: zod_1.z.enum([
|
|
524
|
+
type: zod_1.z.enum(["text-to-speech"]),
|
|
535
525
|
text: zod_1.z.string(),
|
|
536
526
|
voice: zod_1.z.enum([
|
|
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
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
527
|
+
"Hala",
|
|
528
|
+
"Lisa",
|
|
529
|
+
"Arlet",
|
|
530
|
+
"Hiujin",
|
|
531
|
+
"Zhiyu",
|
|
532
|
+
"Sofie",
|
|
533
|
+
"Laura",
|
|
534
|
+
"Olivia",
|
|
535
|
+
"Amy",
|
|
536
|
+
"Emma",
|
|
537
|
+
"Brian",
|
|
538
|
+
"Arthur",
|
|
539
|
+
"Kajal",
|
|
540
|
+
"Niamh",
|
|
541
|
+
"Aria",
|
|
542
|
+
"Ayanda",
|
|
543
|
+
"Ivy",
|
|
544
|
+
"Joanna",
|
|
545
|
+
"Kendra",
|
|
546
|
+
"Kimberly",
|
|
547
|
+
"Salli",
|
|
548
|
+
"Joey",
|
|
549
|
+
"Justin",
|
|
550
|
+
"Kevin",
|
|
551
|
+
"Matthew",
|
|
552
|
+
"Ruth",
|
|
553
|
+
"Stephen",
|
|
554
|
+
"Suvi",
|
|
555
|
+
"Léa",
|
|
556
|
+
"Rémi",
|
|
557
|
+
"Gabrielle",
|
|
558
|
+
"Liam",
|
|
559
|
+
"Vicki",
|
|
560
|
+
"Daniel",
|
|
561
|
+
"Hannah",
|
|
562
|
+
"Kajal",
|
|
563
|
+
"Bianca",
|
|
564
|
+
"Adriano",
|
|
565
|
+
"Takumi",
|
|
566
|
+
"Kazuha",
|
|
567
|
+
"Tomoko",
|
|
568
|
+
"Seoyeon",
|
|
569
|
+
"Ida",
|
|
570
|
+
"Ola",
|
|
571
|
+
"Camila",
|
|
572
|
+
"Vitória",
|
|
573
|
+
"Vitoria",
|
|
574
|
+
"Thiago",
|
|
575
|
+
"Inês",
|
|
576
|
+
"Ines",
|
|
577
|
+
"Lucia",
|
|
578
|
+
"Sergio",
|
|
579
|
+
"Mia",
|
|
580
|
+
"Andrés",
|
|
581
|
+
"Lupe",
|
|
582
|
+
"Pedro",
|
|
583
|
+
"Elin",
|
|
594
584
|
]),
|
|
595
585
|
language: zod_1.z.optional(zod_1.z.enum([
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
586
|
+
"cmn-CN",
|
|
587
|
+
"da-DK",
|
|
588
|
+
"de-DE",
|
|
589
|
+
"en-AU",
|
|
590
|
+
"en-GB",
|
|
591
|
+
"en-IN",
|
|
592
|
+
"en-US",
|
|
593
|
+
"es-ES",
|
|
594
|
+
"es-MX",
|
|
595
|
+
"es-US",
|
|
596
|
+
"fr-CA",
|
|
597
|
+
"fr-FR",
|
|
598
|
+
"it-IT",
|
|
599
|
+
"ja-JP",
|
|
600
|
+
"hi-IN",
|
|
601
|
+
"ko-KR",
|
|
602
|
+
"nb-NO",
|
|
603
|
+
"nl-NL",
|
|
604
|
+
"pl-PL",
|
|
605
|
+
"pt-BR",
|
|
606
|
+
"pt-PT",
|
|
607
|
+
"sv-SE",
|
|
608
|
+
"en-NZ",
|
|
609
|
+
"en-ZA",
|
|
610
|
+
"ca-ES",
|
|
611
|
+
"de-AT",
|
|
612
|
+
"yue-CN",
|
|
613
|
+
"ar-AE",
|
|
614
|
+
"fi-FI",
|
|
625
615
|
])),
|
|
626
|
-
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false)
|
|
616
|
+
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
627
617
|
}).strict();
|
|
628
618
|
exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
629
619
|
/**
|
|
630
620
|
* Generate assets using the native Shotstack provider AI services.
|
|
631
621
|
*/
|
|
632
622
|
exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = zod_1.z.union([
|
|
633
|
-
zod_1.z
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
type: zod_1.z.literal(
|
|
641
|
-
})
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
623
|
+
zod_1.z
|
|
624
|
+
.object({
|
|
625
|
+
type: zod_1.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions"),
|
|
626
|
+
})
|
|
627
|
+
.and(exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
|
|
628
|
+
zod_1.z
|
|
629
|
+
.object({
|
|
630
|
+
type: zod_1.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions"),
|
|
631
|
+
})
|
|
632
|
+
.and(exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
|
|
633
|
+
zod_1.z
|
|
634
|
+
.object({
|
|
635
|
+
type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
|
|
636
|
+
})
|
|
637
|
+
.and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
638
|
+
zod_1.z
|
|
639
|
+
.object({
|
|
640
|
+
type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
|
|
641
|
+
})
|
|
642
|
+
.and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
|
|
645
643
|
]);
|
|
646
644
|
exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
|
|
647
645
|
/**
|
|
648
646
|
* 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.
|
|
649
647
|
*/
|
|
650
648
|
exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = zod_1.z.object({
|
|
651
|
-
provider: zod_1.z.enum([
|
|
652
|
-
options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
|
|
649
|
+
provider: zod_1.z.enum(["shotstack"]),
|
|
650
|
+
options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
|
|
653
651
|
}).strict();
|
|
654
652
|
exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
655
653
|
/**
|
|
656
654
|
* 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.
|
|
657
655
|
*/
|
|
658
656
|
exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1.z.object({
|
|
659
|
-
type: zod_1.z.enum([
|
|
657
|
+
type: zod_1.z.enum(["text-to-image"]),
|
|
660
658
|
prompt: zod_1.z.string(),
|
|
661
659
|
engine: zod_1.z.optional(zod_1.z.enum([
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
660
|
+
"stable-diffusion-xl-1024-v0-9",
|
|
661
|
+
"stable-diffusion-xl-1024-v1-0",
|
|
662
|
+
"stable-diffusion-v1-6",
|
|
663
|
+
"stable-diffusion-512-v2-1",
|
|
664
|
+
"stable-diffusion-xl-beta-v2-2-2",
|
|
667
665
|
])),
|
|
668
666
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
669
667
|
return undefined; if (Array.isArray(v))
|
|
@@ -701,24 +699,24 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
|
|
|
701
699
|
return Number(v);
|
|
702
700
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),
|
|
703
701
|
stylePreset: zod_1.z.optional(zod_1.z.enum([
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
]))
|
|
702
|
+
"3d-model",
|
|
703
|
+
"analog-film",
|
|
704
|
+
"anime",
|
|
705
|
+
"cinematic",
|
|
706
|
+
"comic-book",
|
|
707
|
+
"digital-art",
|
|
708
|
+
"enhance",
|
|
709
|
+
"fantasy-art",
|
|
710
|
+
"isometric",
|
|
711
|
+
"line-art",
|
|
712
|
+
"low-poly",
|
|
713
|
+
"modeling-compound",
|
|
714
|
+
"neon-punk",
|
|
715
|
+
"origami",
|
|
716
|
+
"photographic",
|
|
717
|
+
"pixel-art",
|
|
718
|
+
"tile-texture",
|
|
719
|
+
])),
|
|
722
720
|
}).strict();
|
|
723
721
|
exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
724
722
|
/**
|
|
@@ -728,40 +726,54 @@ exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOpti
|
|
|
728
726
|
* <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
|
|
729
727
|
* </ul>
|
|
730
728
|
*/
|
|
731
|
-
exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
|
|
732
|
-
|
|
733
|
-
|
|
729
|
+
exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
|
|
730
|
+
.object({
|
|
731
|
+
type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
|
|
732
|
+
})
|
|
733
|
+
.and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
734
734
|
exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
|
|
735
735
|
/**
|
|
736
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.
|
|
737
737
|
*/
|
|
738
738
|
exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = zod_1.z.object({
|
|
739
|
-
provider: zod_1.z.enum([
|
|
740
|
-
options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
|
|
739
|
+
provider: zod_1.z.enum(["stability-ai"]),
|
|
740
|
+
options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
|
|
741
741
|
}).strict();
|
|
742
742
|
exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
743
743
|
/**
|
|
744
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.
|
|
745
745
|
*/
|
|
746
746
|
exports.generatedAssetGeneratedAssetSchema = zod_1.z.union([
|
|
747
|
-
zod_1.z
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
provider: zod_1.z.literal(
|
|
755
|
-
})
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
zod_1.z
|
|
763
|
-
|
|
764
|
-
|
|
747
|
+
zod_1.z
|
|
748
|
+
.object({
|
|
749
|
+
provider: zod_1.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
|
|
750
|
+
})
|
|
751
|
+
.and(exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema),
|
|
752
|
+
zod_1.z
|
|
753
|
+
.object({
|
|
754
|
+
provider: zod_1.z.literal("didGeneratedAsset_DIDGeneratedAsset"),
|
|
755
|
+
})
|
|
756
|
+
.and(exports.didGeneratedAssetDidGeneratedAssetSchema),
|
|
757
|
+
zod_1.z
|
|
758
|
+
.object({
|
|
759
|
+
provider: zod_1.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
|
|
760
|
+
})
|
|
761
|
+
.and(exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
|
|
762
|
+
zod_1.z
|
|
763
|
+
.object({
|
|
764
|
+
provider: zod_1.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
|
|
765
|
+
})
|
|
766
|
+
.and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
767
|
+
zod_1.z
|
|
768
|
+
.object({
|
|
769
|
+
provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
|
|
770
|
+
})
|
|
771
|
+
.and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
772
|
+
zod_1.z
|
|
773
|
+
.object({
|
|
774
|
+
provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
|
|
775
|
+
})
|
|
776
|
+
.and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
|
|
765
777
|
]);
|
|
766
778
|
exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
|
|
767
779
|
/**
|
|
@@ -795,7 +807,7 @@ exports.cropCropSchema = zod_1.z.object({
|
|
|
795
807
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
796
808
|
return v;
|
|
797
809
|
return Number(v);
|
|
798
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
810
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
799
811
|
}).strict();
|
|
800
812
|
exports.cropSchema = exports.cropCropSchema;
|
|
801
813
|
/**
|
|
@@ -804,7 +816,7 @@ exports.cropSchema = exports.cropCropSchema;
|
|
|
804
816
|
exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = zod_1.z.object({
|
|
805
817
|
bucket: zod_1.z.string(),
|
|
806
818
|
prefix: zod_1.z.optional(zod_1.z.string()),
|
|
807
|
-
filename: zod_1.z.optional(zod_1.z.string())
|
|
819
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
808
820
|
}).strict();
|
|
809
821
|
exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
810
822
|
/**
|
|
@@ -812,7 +824,7 @@ exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageD
|
|
|
812
824
|
*/
|
|
813
825
|
exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
|
|
814
826
|
provider: zod_1.z.literal("google-cloud-storage"),
|
|
815
|
-
options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
827
|
+
options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
|
|
816
828
|
}).strict();
|
|
817
829
|
exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
818
830
|
/**
|
|
@@ -820,7 +832,7 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
|
|
|
820
832
|
*/
|
|
821
833
|
exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
|
|
822
834
|
folderId: zod_1.z.string(),
|
|
823
|
-
filename: zod_1.z.optional(zod_1.z.string())
|
|
835
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
824
836
|
}).strict();
|
|
825
837
|
exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
826
838
|
/**
|
|
@@ -828,15 +840,15 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
|
|
|
828
840
|
*/
|
|
829
841
|
exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
|
|
830
842
|
provider: zod_1.z.literal("google-drive"),
|
|
831
|
-
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
843
|
+
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
|
|
832
844
|
}).strict();
|
|
833
845
|
exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
|
|
834
846
|
/**
|
|
835
847
|
* Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
|
|
836
848
|
*/
|
|
837
849
|
exports.muxDestinationOptionsMuxDestinationOptionsSchema = zod_1.z.object({
|
|
838
|
-
playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum([
|
|
839
|
-
passthrough: zod_1.z.optional(zod_1.z.string().max(255))
|
|
850
|
+
playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(["public", "signed"]))),
|
|
851
|
+
passthrough: zod_1.z.optional(zod_1.z.string().max(255)),
|
|
840
852
|
}).strict();
|
|
841
853
|
exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
842
854
|
/**
|
|
@@ -844,7 +856,7 @@ exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinatio
|
|
|
844
856
|
*/
|
|
845
857
|
exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
|
|
846
858
|
provider: zod_1.z.literal("mux"),
|
|
847
|
-
options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
859
|
+
options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema),
|
|
848
860
|
}).strict();
|
|
849
861
|
exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
|
|
850
862
|
/**
|
|
@@ -855,7 +867,7 @@ exports.s3DestinationOptionsS3DestinationOptionsSchema = zod_1.z.object({
|
|
|
855
867
|
bucket: zod_1.z.string(),
|
|
856
868
|
prefix: zod_1.z.optional(zod_1.z.string()),
|
|
857
869
|
filename: zod_1.z.optional(zod_1.z.string()),
|
|
858
|
-
acl: zod_1.z.optional(zod_1.z.string())
|
|
870
|
+
acl: zod_1.z.optional(zod_1.z.string()),
|
|
859
871
|
}).strict();
|
|
860
872
|
exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema;
|
|
861
873
|
/**
|
|
@@ -863,7 +875,7 @@ exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOp
|
|
|
863
875
|
*/
|
|
864
876
|
exports.s3DestinationS3DestinationSchema = zod_1.z.object({
|
|
865
877
|
provider: zod_1.z.literal("s3"),
|
|
866
|
-
options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema)
|
|
878
|
+
options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema),
|
|
867
879
|
}).strict();
|
|
868
880
|
exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
869
881
|
/**
|
|
@@ -871,7 +883,7 @@ exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
|
|
|
871
883
|
*/
|
|
872
884
|
exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
|
|
873
885
|
provider: zod_1.z.literal("shotstack"),
|
|
874
|
-
exclude: zod_1.z.optional(zod_1.z.boolean())
|
|
886
|
+
exclude: zod_1.z.optional(zod_1.z.boolean()),
|
|
875
887
|
}).strict();
|
|
876
888
|
exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
|
|
877
889
|
/**
|
|
@@ -879,45 +891,27 @@ exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestin
|
|
|
879
891
|
*/
|
|
880
892
|
exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = zod_1.z.object({
|
|
881
893
|
title: zod_1.z.optional(zod_1.z.string().max(150)),
|
|
882
|
-
privacyLevel: zod_1.z.optional(zod_1.z.enum([
|
|
883
|
-
'public',
|
|
884
|
-
'friends',
|
|
885
|
-
'private'
|
|
886
|
-
])),
|
|
894
|
+
privacyLevel: zod_1.z.optional(zod_1.z.enum(["public", "friends", "private"])),
|
|
887
895
|
disableDuet: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
888
896
|
disableStitch: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
889
|
-
disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false)
|
|
897
|
+
disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
890
898
|
}).strict();
|
|
891
899
|
/**
|
|
892
900
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
893
901
|
*/
|
|
894
902
|
exports.tiktokDestinationTiktokDestinationSchema = zod_1.z.object({
|
|
895
903
|
provider: zod_1.z.literal("tiktok"),
|
|
896
|
-
options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
904
|
+
options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema),
|
|
897
905
|
}).strict();
|
|
898
906
|
/**
|
|
899
907
|
* Options to control the visibility of videos and privacy features.
|
|
900
908
|
*/
|
|
901
909
|
exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod_1.z.object({
|
|
902
|
-
view: zod_1.z.optional(zod_1.z.enum([
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
'contacts',
|
|
906
|
-
'password',
|
|
907
|
-
'unlisted'
|
|
908
|
-
])),
|
|
909
|
-
embed: zod_1.z.optional(zod_1.z.enum([
|
|
910
|
-
'public',
|
|
911
|
-
'private',
|
|
912
|
-
'whitelist'
|
|
913
|
-
])),
|
|
914
|
-
comments: zod_1.z.optional(zod_1.z.enum([
|
|
915
|
-
'anybody',
|
|
916
|
-
'nobody',
|
|
917
|
-
'contacts'
|
|
918
|
-
])),
|
|
910
|
+
view: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts", "password", "unlisted"])),
|
|
911
|
+
embed: zod_1.z.optional(zod_1.z.enum(["public", "private", "whitelist"])),
|
|
912
|
+
comments: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts"])),
|
|
919
913
|
download: zod_1.z.optional(zod_1.z.boolean()),
|
|
920
|
-
add: zod_1.z.optional(zod_1.z.boolean())
|
|
914
|
+
add: zod_1.z.optional(zod_1.z.boolean()),
|
|
921
915
|
}).strict();
|
|
922
916
|
exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
923
917
|
/**
|
|
@@ -927,7 +921,7 @@ exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = zod_1.z.object({
|
|
|
927
921
|
name: zod_1.z.optional(zod_1.z.string()),
|
|
928
922
|
description: zod_1.z.optional(zod_1.z.string()),
|
|
929
923
|
privacy: zod_1.z.optional(exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
|
|
930
|
-
folderUri: zod_1.z.optional(zod_1.z.string())
|
|
924
|
+
folderUri: zod_1.z.optional(zod_1.z.string()),
|
|
931
925
|
}).strict();
|
|
932
926
|
exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
933
927
|
/**
|
|
@@ -935,7 +929,7 @@ exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDest
|
|
|
935
929
|
*/
|
|
936
930
|
exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
|
|
937
931
|
provider: zod_1.z.literal("vimeo"),
|
|
938
|
-
options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
932
|
+
options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema),
|
|
939
933
|
}).strict();
|
|
940
934
|
exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
|
|
941
935
|
/**
|
|
@@ -958,14 +952,14 @@ exports.destinationsSchema = exports.destinationsDestinationsSchema;
|
|
|
958
952
|
*/
|
|
959
953
|
exports.fliptransformationFlipTransformationSchema = zod_1.z.object({
|
|
960
954
|
horizontal: zod_1.z.optional(zod_1.z.boolean()),
|
|
961
|
-
vertical: zod_1.z.optional(zod_1.z.boolean())
|
|
955
|
+
vertical: zod_1.z.optional(zod_1.z.boolean()),
|
|
962
956
|
}).strict();
|
|
963
957
|
exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema;
|
|
964
958
|
/**
|
|
965
959
|
* 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.
|
|
966
960
|
*/
|
|
967
961
|
exports.fontFontSchema = zod_1.z.object({
|
|
968
|
-
src: zod_1.z.string()
|
|
962
|
+
src: zod_1.z.string(),
|
|
969
963
|
}).strict();
|
|
970
964
|
exports.fontSchema = exports.fontFontSchema;
|
|
971
965
|
/**
|
|
@@ -979,7 +973,7 @@ exports.fontSchema = exports.fontFontSchema;
|
|
|
979
973
|
* @deprecated
|
|
980
974
|
*/
|
|
981
975
|
exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
982
|
-
type: zod_1.z.enum([
|
|
976
|
+
type: zod_1.z.enum(["html"]),
|
|
983
977
|
html: zod_1.z.string(),
|
|
984
978
|
css: zod_1.z.optional(zod_1.z.string()),
|
|
985
979
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -998,43 +992,35 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
|
998
992
|
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
999
993
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
1000
994
|
position: zod_1.z.optional(zod_1.z.enum([
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
]))
|
|
995
|
+
"top",
|
|
996
|
+
"topRight",
|
|
997
|
+
"right",
|
|
998
|
+
"bottomRight",
|
|
999
|
+
"bottom",
|
|
1000
|
+
"bottomLeft",
|
|
1001
|
+
"left",
|
|
1002
|
+
"topLeft",
|
|
1003
|
+
"center",
|
|
1004
|
+
])),
|
|
1011
1005
|
}).strict();
|
|
1012
1006
|
exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
|
|
1013
1007
|
/**
|
|
1014
1008
|
* 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.
|
|
1015
1009
|
*/
|
|
1016
1010
|
exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
1017
|
-
type: zod_1.z.enum([
|
|
1011
|
+
type: zod_1.z.enum(["image"]),
|
|
1018
1012
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
1019
|
-
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
1013
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
1020
1014
|
}).strict();
|
|
1021
1015
|
exports.imageAssetSchema = exports.imageassetImageAssetSchema;
|
|
1022
1016
|
/**
|
|
1023
1017
|
* The ImageToVideoAsset lets you create a video from an image and a text prompt.
|
|
1024
1018
|
*/
|
|
1025
1019
|
exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
|
|
1026
|
-
type: zod_1.z.enum([
|
|
1020
|
+
type: zod_1.z.enum(["image-to-video"]),
|
|
1027
1021
|
src: zod_1.z.string().min(1),
|
|
1028
1022
|
prompt: zod_1.z.optional(zod_1.z.string()),
|
|
1029
|
-
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
1030
|
-
'1:1',
|
|
1031
|
-
'4:3',
|
|
1032
|
-
'16:9',
|
|
1033
|
-
'9:16',
|
|
1034
|
-
'3:4',
|
|
1035
|
-
'21:9',
|
|
1036
|
-
'9:21'
|
|
1037
|
-
])),
|
|
1023
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
|
|
1038
1024
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1039
1025
|
return undefined; if (Array.isArray(v))
|
|
1040
1026
|
return v; if (typeof v === 'string') {
|
|
@@ -1042,7 +1028,7 @@ exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
|
|
|
1042
1028
|
return v;
|
|
1043
1029
|
return Number(v);
|
|
1044
1030
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1045
|
-
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
1031
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
1046
1032
|
}).strict();
|
|
1047
1033
|
exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema;
|
|
1048
1034
|
/**
|
|
@@ -1050,24 +1036,24 @@ exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSche
|
|
|
1050
1036
|
*/
|
|
1051
1037
|
exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = zod_1.z.object({
|
|
1052
1038
|
preset: zod_1.z.enum([
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
])
|
|
1039
|
+
"conference",
|
|
1040
|
+
"interview",
|
|
1041
|
+
"lecture",
|
|
1042
|
+
"meeting",
|
|
1043
|
+
"mobile_phone",
|
|
1044
|
+
"music",
|
|
1045
|
+
"podcast",
|
|
1046
|
+
"studio",
|
|
1047
|
+
"voice_over",
|
|
1048
|
+
]),
|
|
1063
1049
|
}).strict();
|
|
1064
1050
|
exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
1065
1051
|
/**
|
|
1066
1052
|
* 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.
|
|
1067
1053
|
*/
|
|
1068
1054
|
exports.dolbyEnhancementDolbyEnhancementSchema = zod_1.z.object({
|
|
1069
|
-
provider: zod_1.z.string().default(
|
|
1070
|
-
options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
|
|
1055
|
+
provider: zod_1.z.string().default("dolby"),
|
|
1056
|
+
options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
|
|
1071
1057
|
}).strict();
|
|
1072
1058
|
exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
|
|
1073
1059
|
/**
|
|
@@ -1076,15 +1062,17 @@ exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
|
|
|
1076
1062
|
* <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
|
|
1077
1063
|
* </ul>
|
|
1078
1064
|
*/
|
|
1079
|
-
exports.audioEnhancementAudioEnhancementSchema = zod_1.z
|
|
1080
|
-
|
|
1081
|
-
|
|
1065
|
+
exports.audioEnhancementAudioEnhancementSchema = zod_1.z
|
|
1066
|
+
.object({
|
|
1067
|
+
enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement"),
|
|
1068
|
+
})
|
|
1069
|
+
.and(exports.dolbyEnhancementDolbyEnhancementSchema);
|
|
1082
1070
|
exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema;
|
|
1083
1071
|
/**
|
|
1084
1072
|
* Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
|
|
1085
1073
|
*/
|
|
1086
1074
|
exports.enhancementsEnhancementsSchema = zod_1.z.object({
|
|
1087
|
-
audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema)
|
|
1075
|
+
audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema),
|
|
1088
1076
|
}).strict();
|
|
1089
1077
|
exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
|
|
1090
1078
|
/**
|
|
@@ -1093,14 +1081,14 @@ exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
|
|
|
1093
1081
|
exports.ingesterrorresponsedataIngestErrorResponseDataSchema = zod_1.z.object({
|
|
1094
1082
|
status: zod_1.z.string(),
|
|
1095
1083
|
title: zod_1.z.string(),
|
|
1096
|
-
detail: zod_1.z.string()
|
|
1084
|
+
detail: zod_1.z.string(),
|
|
1097
1085
|
}).strict();
|
|
1098
1086
|
exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
1099
1087
|
/**
|
|
1100
1088
|
* Error response data for validation and other errors returned by the Ingest API.
|
|
1101
1089
|
*/
|
|
1102
1090
|
exports.ingesterrorresponseIngestErrorResponseSchema = zod_1.z.object({
|
|
1103
|
-
errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema)
|
|
1091
|
+
errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema),
|
|
1104
1092
|
}).strict();
|
|
1105
1093
|
exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema;
|
|
1106
1094
|
/**
|
|
@@ -1108,14 +1096,14 @@ exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorRespon
|
|
|
1108
1096
|
*/
|
|
1109
1097
|
exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = zod_1.z.object({
|
|
1110
1098
|
type: zod_1.z.string(),
|
|
1111
|
-
id: zod_1.z.string()
|
|
1099
|
+
id: zod_1.z.string(),
|
|
1112
1100
|
}).strict();
|
|
1113
1101
|
exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
1114
1102
|
/**
|
|
1115
1103
|
* 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.
|
|
1116
1104
|
*/
|
|
1117
1105
|
exports.queuedsourceresponseQueuedSourceResponseSchema = zod_1.z.object({
|
|
1118
|
-
data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema
|
|
1106
|
+
data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema,
|
|
1119
1107
|
}).strict();
|
|
1120
1108
|
exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema;
|
|
1121
1109
|
/**
|
|
@@ -1124,7 +1112,7 @@ exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceRes
|
|
|
1124
1112
|
exports.uploadresponseattributesUploadResponseAttributesSchema = zod_1.z.object({
|
|
1125
1113
|
id: zod_1.z.string(),
|
|
1126
1114
|
url: zod_1.z.string(),
|
|
1127
|
-
expires: zod_1.z.string()
|
|
1115
|
+
expires: zod_1.z.string(),
|
|
1128
1116
|
}).strict();
|
|
1129
1117
|
exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema;
|
|
1130
1118
|
/**
|
|
@@ -1133,14 +1121,14 @@ exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadR
|
|
|
1133
1121
|
exports.uploadresponsedataUploadResponseDataSchema = zod_1.z.object({
|
|
1134
1122
|
type: zod_1.z.string(),
|
|
1135
1123
|
id: zod_1.z.string(),
|
|
1136
|
-
attributes: exports.uploadresponseattributesUploadResponseAttributesSchema
|
|
1124
|
+
attributes: exports.uploadresponseattributesUploadResponseAttributesSchema,
|
|
1137
1125
|
}).strict();
|
|
1138
1126
|
exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema;
|
|
1139
1127
|
/**
|
|
1140
1128
|
* 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.
|
|
1141
1129
|
*/
|
|
1142
1130
|
exports.uploadresponseUploadResponseSchema = zod_1.z.object({
|
|
1143
|
-
data: exports.uploadresponsedataUploadResponseDataSchema
|
|
1131
|
+
data: exports.uploadresponsedataUploadResponseDataSchema,
|
|
1144
1132
|
}).strict();
|
|
1145
1133
|
exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
|
|
1146
1134
|
/**
|
|
@@ -1154,21 +1142,21 @@ exports.speedSpeedSchema = zod_1.z.object({
|
|
|
1154
1142
|
return v;
|
|
1155
1143
|
return Number(v);
|
|
1156
1144
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1157
|
-
preservePitch: zod_1.z.optional(zod_1.z.boolean())
|
|
1145
|
+
preservePitch: zod_1.z.optional(zod_1.z.boolean()),
|
|
1158
1146
|
}).strict();
|
|
1159
1147
|
exports.speedSchema = exports.speedSpeedSchema;
|
|
1160
1148
|
/**
|
|
1161
1149
|
* Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
|
|
1162
1150
|
*/
|
|
1163
1151
|
exports.transcriptionTranscriptionSchema = zod_1.z.object({
|
|
1164
|
-
format: zod_1.z.optional(zod_1.z.enum([
|
|
1152
|
+
format: zod_1.z.optional(zod_1.z.enum(["srt", "vtt"])),
|
|
1165
1153
|
}).strict();
|
|
1166
1154
|
exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
|
|
1167
1155
|
/**
|
|
1168
1156
|
* 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.
|
|
1169
1157
|
*/
|
|
1170
1158
|
exports.lumaassetLumaAssetSchema = zod_1.z.object({
|
|
1171
|
-
type: zod_1.z.enum([
|
|
1159
|
+
type: zod_1.z.enum(["luma"]),
|
|
1172
1160
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
1173
1161
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1174
1162
|
return undefined; if (Array.isArray(v))
|
|
@@ -1176,7 +1164,7 @@ exports.lumaassetLumaAssetSchema = zod_1.z.object({
|
|
|
1176
1164
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1177
1165
|
return v;
|
|
1178
1166
|
return Number(v);
|
|
1179
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1167
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1180
1168
|
}).strict();
|
|
1181
1169
|
exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
|
|
1182
1170
|
/**
|
|
@@ -1184,7 +1172,7 @@ exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
|
|
|
1184
1172
|
*/
|
|
1185
1173
|
exports.mergefieldMergeFieldSchema = zod_1.z.object({
|
|
1186
1174
|
find: zod_1.z.string(),
|
|
1187
|
-
replace: zod_1.z.unknown()
|
|
1175
|
+
replace: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown())]),
|
|
1188
1176
|
}).strict();
|
|
1189
1177
|
exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
|
|
1190
1178
|
/**
|
|
@@ -1197,7 +1185,7 @@ exports.posterPosterSchema = zod_1.z.object({
|
|
|
1197
1185
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1198
1186
|
return v;
|
|
1199
1187
|
return Number(v);
|
|
1200
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1188
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1201
1189
|
}).strict();
|
|
1202
1190
|
exports.posterSchema = exports.posterPosterSchema;
|
|
1203
1191
|
/**
|
|
@@ -1217,7 +1205,7 @@ exports.rangeRangeSchema = zod_1.z.object({
|
|
|
1217
1205
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1218
1206
|
return v;
|
|
1219
1207
|
return Number(v);
|
|
1220
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1208
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1221
1209
|
}).strict();
|
|
1222
1210
|
exports.rangeSchema = exports.rangeRangeSchema;
|
|
1223
1211
|
/**
|
|
@@ -1231,14 +1219,9 @@ exports.assetresponseattributesAssetResponseAttributesSchema = zod_1.z.object({
|
|
|
1231
1219
|
providerId: zod_1.z.optional(zod_1.z.string()),
|
|
1232
1220
|
filename: zod_1.z.optional(zod_1.z.string()),
|
|
1233
1221
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
1234
|
-
status: zod_1.z.enum([
|
|
1235
|
-
'importing',
|
|
1236
|
-
'ready',
|
|
1237
|
-
'failed',
|
|
1238
|
-
'deleted'
|
|
1239
|
-
]),
|
|
1222
|
+
status: zod_1.z.enum(["importing", "ready", "failed", "deleted"]),
|
|
1240
1223
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
1241
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
1224
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
1242
1225
|
}).strict();
|
|
1243
1226
|
exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema;
|
|
1244
1227
|
/**
|
|
@@ -1246,21 +1229,21 @@ exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResp
|
|
|
1246
1229
|
*/
|
|
1247
1230
|
exports.assetresponsedataAssetResponseDataSchema = zod_1.z.object({
|
|
1248
1231
|
type: zod_1.z.string(),
|
|
1249
|
-
attributes: exports.assetresponseattributesAssetResponseAttributesSchema
|
|
1232
|
+
attributes: exports.assetresponseattributesAssetResponseAttributesSchema,
|
|
1250
1233
|
}).strict();
|
|
1251
1234
|
exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema;
|
|
1252
1235
|
/**
|
|
1253
1236
|
* 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.
|
|
1254
1237
|
*/
|
|
1255
1238
|
exports.assetrenderresponseAssetRenderResponseSchema = zod_1.z.object({
|
|
1256
|
-
data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema)
|
|
1239
|
+
data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema),
|
|
1257
1240
|
}).strict();
|
|
1258
1241
|
exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema;
|
|
1259
1242
|
/**
|
|
1260
1243
|
* 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.
|
|
1261
1244
|
*/
|
|
1262
1245
|
exports.assetresponseAssetResponseSchema = zod_1.z.object({
|
|
1263
|
-
data: exports.assetresponsedataAssetResponseDataSchema
|
|
1246
|
+
data: exports.assetresponsedataAssetResponseDataSchema,
|
|
1264
1247
|
}).strict();
|
|
1265
1248
|
exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
1266
1249
|
/**
|
|
@@ -1269,7 +1252,7 @@ exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
|
1269
1252
|
exports.proberesponseProbeResponseSchema = zod_1.z.object({
|
|
1270
1253
|
success: zod_1.z.boolean(),
|
|
1271
1254
|
message: zod_1.z.string(),
|
|
1272
|
-
response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())
|
|
1255
|
+
response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
1273
1256
|
}).strict();
|
|
1274
1257
|
exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
|
|
1275
1258
|
/**
|
|
@@ -1277,7 +1260,7 @@ exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
|
|
|
1277
1260
|
*/
|
|
1278
1261
|
exports.queuedresponsedataQueuedResponseDataSchema = zod_1.z.object({
|
|
1279
1262
|
message: zod_1.z.string(),
|
|
1280
|
-
id: zod_1.z.string()
|
|
1263
|
+
id: zod_1.z.string(),
|
|
1281
1264
|
}).strict();
|
|
1282
1265
|
exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema;
|
|
1283
1266
|
/**
|
|
@@ -1286,7 +1269,7 @@ exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataS
|
|
|
1286
1269
|
exports.queuedresponseQueuedResponseSchema = zod_1.z.object({
|
|
1287
1270
|
success: zod_1.z.boolean(),
|
|
1288
1271
|
message: zod_1.z.string(),
|
|
1289
|
-
response: exports.queuedresponsedataQueuedResponseDataSchema
|
|
1272
|
+
response: exports.queuedresponsedataQueuedResponseDataSchema,
|
|
1290
1273
|
}).strict();
|
|
1291
1274
|
exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema;
|
|
1292
1275
|
/**
|
|
@@ -1296,7 +1279,7 @@ exports.templatelistresponseitemTemplateListResponseItemSchema = zod_1.z.object(
|
|
|
1296
1279
|
id: zod_1.z.string(),
|
|
1297
1280
|
name: zod_1.z.string(),
|
|
1298
1281
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
1299
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
1282
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
1300
1283
|
}).strict();
|
|
1301
1284
|
exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema;
|
|
1302
1285
|
/**
|
|
@@ -1304,7 +1287,7 @@ exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplat
|
|
|
1304
1287
|
*/
|
|
1305
1288
|
exports.templatelistresponsedataTemplateListResponseDataSchema = zod_1.z.object({
|
|
1306
1289
|
owner: zod_1.z.string(),
|
|
1307
|
-
templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema)
|
|
1290
|
+
templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema),
|
|
1308
1291
|
}).strict();
|
|
1309
1292
|
exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema;
|
|
1310
1293
|
/**
|
|
@@ -1313,7 +1296,7 @@ exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplat
|
|
|
1313
1296
|
exports.templatelistresponseTemplateListResponseSchema = zod_1.z.object({
|
|
1314
1297
|
success: zod_1.z.boolean(),
|
|
1315
1298
|
message: zod_1.z.string(),
|
|
1316
|
-
response: exports.templatelistresponsedataTemplateListResponseDataSchema
|
|
1299
|
+
response: exports.templatelistresponsedataTemplateListResponseDataSchema,
|
|
1317
1300
|
}).strict();
|
|
1318
1301
|
exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema;
|
|
1319
1302
|
/**
|
|
@@ -1321,7 +1304,7 @@ exports.templateListResponseSchema = exports.templatelistresponseTemplateListRes
|
|
|
1321
1304
|
*/
|
|
1322
1305
|
exports.templateresponsedataTemplateResponseDataSchema = zod_1.z.object({
|
|
1323
1306
|
message: zod_1.z.string(),
|
|
1324
|
-
id: zod_1.z.string()
|
|
1307
|
+
id: zod_1.z.string(),
|
|
1325
1308
|
}).strict();
|
|
1326
1309
|
exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema;
|
|
1327
1310
|
/**
|
|
@@ -1330,14 +1313,14 @@ exports.templateResponseDataSchema = exports.templateresponsedataTemplateRespons
|
|
|
1330
1313
|
exports.templateresponseTemplateResponseSchema = zod_1.z.object({
|
|
1331
1314
|
success: zod_1.z.boolean(),
|
|
1332
1315
|
message: zod_1.z.string(),
|
|
1333
|
-
response: exports.templateresponsedataTemplateResponseDataSchema
|
|
1316
|
+
response: exports.templateresponsedataTemplateResponseDataSchema,
|
|
1334
1317
|
}).strict();
|
|
1335
1318
|
exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
|
|
1336
1319
|
/**
|
|
1337
1320
|
* Font properties for the active/highlighted word.
|
|
1338
1321
|
*/
|
|
1339
1322
|
exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
|
|
1340
|
-
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(
|
|
1323
|
+
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"),
|
|
1341
1324
|
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*\}\}$/)])),
|
|
1342
1325
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1343
1326
|
return undefined; if (Array.isArray(v))
|
|
@@ -1345,22 +1328,45 @@ exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
|
|
|
1345
1328
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1346
1329
|
return v;
|
|
1347
1330
|
return Number(v);
|
|
1348
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1331
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1349
1332
|
}).strict();
|
|
1350
1333
|
exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1334
|
+
/**
|
|
1335
|
+
* Font properties for rich captions. Defaults to Roboto.
|
|
1336
|
+
*/
|
|
1337
|
+
exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
1338
|
+
family: zod_1.z.optional(zod_1.z.string()).default("Roboto"),
|
|
1339
|
+
size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1340
|
+
return undefined; if (Array.isArray(v))
|
|
1341
|
+
return v; if (typeof v === 'string') {
|
|
1342
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1343
|
+
return v;
|
|
1344
|
+
return Number(v);
|
|
1345
|
+
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1346
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
|
|
1347
|
+
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"),
|
|
1348
|
+
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1349
|
+
return undefined; if (Array.isArray(v))
|
|
1350
|
+
return v; if (typeof v === 'string') {
|
|
1351
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1352
|
+
return v;
|
|
1353
|
+
return Number(v);
|
|
1354
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1355
|
+
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*\}\}$/)])),
|
|
1356
|
+
}).strict();
|
|
1351
1357
|
/**
|
|
1352
1358
|
* Word-level animation properties for caption effects.
|
|
1353
1359
|
*/
|
|
1354
1360
|
exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
1355
1361
|
style: zod_1.z.enum([
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1362
|
+
"karaoke",
|
|
1363
|
+
"highlight",
|
|
1364
|
+
"pop",
|
|
1365
|
+
"fade",
|
|
1366
|
+
"slide",
|
|
1367
|
+
"bounce",
|
|
1368
|
+
"typewriter",
|
|
1369
|
+
"none",
|
|
1364
1370
|
]),
|
|
1365
1371
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1366
1372
|
return undefined; if (Array.isArray(v))
|
|
@@ -1369,12 +1375,7 @@ exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
|
1369
1375
|
return v;
|
|
1370
1376
|
return Number(v);
|
|
1371
1377
|
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1372
|
-
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1373
|
-
'left',
|
|
1374
|
-
'right',
|
|
1375
|
-
'up',
|
|
1376
|
-
'down'
|
|
1377
|
-
]))
|
|
1378
|
+
direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
|
|
1378
1379
|
}).strict();
|
|
1379
1380
|
exports.richCaptionWordAnimationSchema = exports.richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1380
1381
|
/**
|
|
@@ -1402,23 +1403,15 @@ exports.richcaptionpropertiesWordTimingSchema = zod_1.z.object({
|
|
|
1402
1403
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1403
1404
|
return v;
|
|
1404
1405
|
return Number(v);
|
|
1405
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1406
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1406
1407
|
}).strict();
|
|
1407
1408
|
exports.wordTimingSchema = exports.richcaptionpropertiesWordTimingSchema;
|
|
1408
1409
|
/**
|
|
1409
1410
|
* Text alignment properties (horizontal and vertical).
|
|
1410
1411
|
*/
|
|
1411
1412
|
exports.richtextpropertiesRichTextAlignmentSchema = zod_1.z.object({
|
|
1412
|
-
horizontal: zod_1.z.optional(zod_1.z.enum([
|
|
1413
|
-
|
|
1414
|
-
'center',
|
|
1415
|
-
'right'
|
|
1416
|
-
])),
|
|
1417
|
-
vertical: zod_1.z.optional(zod_1.z.enum([
|
|
1418
|
-
'top',
|
|
1419
|
-
'middle',
|
|
1420
|
-
'bottom'
|
|
1421
|
-
]))
|
|
1413
|
+
horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
|
|
1414
|
+
vertical: zod_1.z.optional(zod_1.z.enum(["top", "middle", "bottom"])),
|
|
1422
1415
|
}).strict();
|
|
1423
1416
|
exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema;
|
|
1424
1417
|
/**
|
|
@@ -1426,12 +1419,12 @@ exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSch
|
|
|
1426
1419
|
*/
|
|
1427
1420
|
exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
|
|
1428
1421
|
preset: zod_1.z.enum([
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1422
|
+
"fadeIn",
|
|
1423
|
+
"slideIn",
|
|
1424
|
+
"typewriter",
|
|
1425
|
+
"ascend",
|
|
1426
|
+
"shift",
|
|
1427
|
+
"movingLetters",
|
|
1435
1428
|
]),
|
|
1436
1429
|
duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1437
1430
|
return undefined; if (Array.isArray(v))
|
|
@@ -1440,13 +1433,8 @@ exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
|
|
|
1440
1433
|
return v;
|
|
1441
1434
|
return Number(v);
|
|
1442
1435
|
} return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1443
|
-
style: zod_1.z.optional(zod_1.z.enum([
|
|
1444
|
-
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1445
|
-
'left',
|
|
1446
|
-
'right',
|
|
1447
|
-
'up',
|
|
1448
|
-
'down'
|
|
1449
|
-
]))
|
|
1436
|
+
style: zod_1.z.optional(zod_1.z.enum(["character", "word"])),
|
|
1437
|
+
direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
|
|
1450
1438
|
}).strict();
|
|
1451
1439
|
exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema;
|
|
1452
1440
|
/**
|
|
@@ -1467,7 +1455,7 @@ exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
|
|
|
1467
1455
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1468
1456
|
return v;
|
|
1469
1457
|
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)
|
|
1458
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1471
1459
|
}).strict();
|
|
1472
1460
|
exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
|
|
1473
1461
|
/**
|
|
@@ -1481,7 +1469,7 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
|
|
|
1481
1469
|
return v;
|
|
1482
1470
|
return Number(v);
|
|
1483
1471
|
} 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(
|
|
1472
|
+
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
1473
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1486
1474
|
return undefined; if (Array.isArray(v))
|
|
1487
1475
|
return v; if (typeof v === 'string') {
|
|
@@ -1495,13 +1483,13 @@ exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
|
|
|
1495
1483
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1496
1484
|
return v;
|
|
1497
1485
|
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)
|
|
1486
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1499
1487
|
}).strict();
|
|
1500
1488
|
/**
|
|
1501
1489
|
* Gradient properties for text fill.
|
|
1502
1490
|
*/
|
|
1503
1491
|
exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
1504
|
-
type: zod_1.z.optional(zod_1.z.enum([
|
|
1492
|
+
type: zod_1.z.optional(zod_1.z.enum(["linear", "radial"])),
|
|
1505
1493
|
angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1506
1494
|
return undefined; if (Array.isArray(v))
|
|
1507
1495
|
return v; if (typeof v === 'string') {
|
|
@@ -1509,7 +1497,8 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
|
1509
1497
|
return v;
|
|
1510
1498
|
return Number(v);
|
|
1511
1499
|
} 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
|
|
1500
|
+
stops: zod_1.z
|
|
1501
|
+
.array(zod_1.z.object({
|
|
1513
1502
|
offset: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1514
1503
|
return undefined; if (Array.isArray(v))
|
|
1515
1504
|
return v; if (typeof v === 'string') {
|
|
@@ -1517,8 +1506,9 @@ exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
|
|
|
1517
1506
|
return v;
|
|
1518
1507
|
return Number(v);
|
|
1519
1508
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1520
|
-
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*\}\}$/)])
|
|
1521
|
-
}))
|
|
1509
|
+
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*\}\}$/)]),
|
|
1510
|
+
}))
|
|
1511
|
+
.min(2),
|
|
1522
1512
|
}).strict();
|
|
1523
1513
|
exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
|
|
1524
1514
|
/**
|
|
@@ -1552,7 +1542,7 @@ exports.richtextpropertiesRichTextPaddingSchema = zod_1.z.object({
|
|
|
1552
1542
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1553
1543
|
return v;
|
|
1554
1544
|
return Number(v);
|
|
1555
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1545
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1556
1546
|
}).strict();
|
|
1557
1547
|
/**
|
|
1558
1548
|
* Text shadow properties.
|
|
@@ -1579,14 +1569,14 @@ exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
|
|
|
1579
1569
|
return v;
|
|
1580
1570
|
return Number(v);
|
|
1581
1571
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1582
|
-
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(
|
|
1572
|
+
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"),
|
|
1583
1573
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1584
1574
|
return undefined; if (Array.isArray(v))
|
|
1585
1575
|
return v; if (typeof v === 'string') {
|
|
1586
1576
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1587
1577
|
return v;
|
|
1588
1578
|
return Number(v);
|
|
1589
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
1579
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
|
|
1590
1580
|
}).strict();
|
|
1591
1581
|
exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
|
|
1592
1582
|
/**
|
|
@@ -1600,14 +1590,14 @@ exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
|
|
|
1600
1590
|
return v;
|
|
1601
1591
|
return Number(v);
|
|
1602
1592
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1603
|
-
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(
|
|
1593
|
+
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"),
|
|
1604
1594
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1605
1595
|
return undefined; if (Array.isArray(v))
|
|
1606
1596
|
return v; if (typeof v === 'string') {
|
|
1607
1597
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1608
1598
|
return v;
|
|
1609
1599
|
return Number(v);
|
|
1610
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1600
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1611
1601
|
}).strict();
|
|
1612
1602
|
exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
|
|
1613
1603
|
/**
|
|
@@ -1622,14 +1612,14 @@ exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
|
|
|
1622
1612
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1623
1613
|
return v;
|
|
1624
1614
|
return Number(v);
|
|
1625
|
-
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1615
|
+
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1626
1616
|
}).strict();
|
|
1627
1617
|
exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema;
|
|
1628
1618
|
/**
|
|
1629
1619
|
* Font properties for rich text.
|
|
1630
1620
|
*/
|
|
1631
1621
|
exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
1632
|
-
family: zod_1.z.optional(zod_1.z.string()).default(
|
|
1622
|
+
family: zod_1.z.optional(zod_1.z.string()).default("Open Sans"),
|
|
1633
1623
|
size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1634
1624
|
return undefined; if (Array.isArray(v))
|
|
1635
1625
|
return v; if (typeof v === 'string') {
|
|
@@ -1637,8 +1627,8 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
|
1637
1627
|
return v;
|
|
1638
1628
|
return Number(v);
|
|
1639
1629
|
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1640
|
-
weight: zod_1.z.optional(zod_1.z.unknown()).default(
|
|
1641
|
-
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(
|
|
1630
|
+
weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
|
|
1631
|
+
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"),
|
|
1642
1632
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1643
1633
|
return undefined; if (Array.isArray(v))
|
|
1644
1634
|
return v; if (typeof v === 'string') {
|
|
@@ -1647,7 +1637,7 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
|
1647
1637
|
return Number(v);
|
|
1648
1638
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1649
1639
|
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*\}\}$/)])),
|
|
1650
|
-
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema)
|
|
1640
|
+
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1651
1641
|
}).strict();
|
|
1652
1642
|
exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
|
|
1653
1643
|
/**
|
|
@@ -1675,18 +1665,9 @@ exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
|
|
|
1675
1665
|
return v;
|
|
1676
1666
|
return Number(v);
|
|
1677
1667
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
1678
|
-
textTransform: zod_1.z.optional(zod_1.z.enum([
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
'lowercase',
|
|
1682
|
-
'capitalize'
|
|
1683
|
-
])),
|
|
1684
|
-
textDecoration: zod_1.z.optional(zod_1.z.enum([
|
|
1685
|
-
'none',
|
|
1686
|
-
'underline',
|
|
1687
|
-
'line-through'
|
|
1688
|
-
])),
|
|
1689
|
-
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema)
|
|
1668
|
+
textTransform: zod_1.z.optional(zod_1.z.enum(["none", "uppercase", "lowercase", "capitalize"])),
|
|
1669
|
+
textDecoration: zod_1.z.optional(zod_1.z.enum(["none", "underline", "line-through"])),
|
|
1670
|
+
gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema),
|
|
1690
1671
|
}).strict();
|
|
1691
1672
|
exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
1692
1673
|
/**
|
|
@@ -1696,32 +1677,25 @@ exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
|
|
|
1696
1677
|
*
|
|
1697
1678
|
*/
|
|
1698
1679
|
exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
1699
|
-
type: zod_1.z.enum([
|
|
1680
|
+
type: zod_1.z.enum(["rich-caption"]),
|
|
1700
1681
|
src: zod_1.z.optional(zod_1.z.string().min(1)),
|
|
1701
1682
|
words: zod_1.z.optional(zod_1.z.array(exports.richcaptionpropertiesWordTimingSchema).max(100000)),
|
|
1702
|
-
font: zod_1.z.optional(exports.
|
|
1683
|
+
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionFontSchema),
|
|
1703
1684
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1704
1685
|
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1705
1686
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1706
1687
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1707
|
-
padding: zod_1.z.optional(zod_1.z.union([
|
|
1708
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1688
|
+
padding: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1709
1689
|
return undefined; if (Array.isArray(v))
|
|
1710
1690
|
return v; if (typeof v === 'string') {
|
|
1711
1691
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1712
1692
|
return v;
|
|
1713
1693
|
return Number(v);
|
|
1714
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1715
|
-
exports.richtextpropertiesRichTextPaddingSchema
|
|
1716
|
-
])),
|
|
1694
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), exports.richtextpropertiesRichTextPaddingSchema])),
|
|
1717
1695
|
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1718
1696
|
active: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveSchema),
|
|
1719
1697
|
wordAnimation: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionWordAnimationSchema),
|
|
1720
|
-
position: zod_1.z.optional(zod_1.z.enum([
|
|
1721
|
-
'top',
|
|
1722
|
-
'center',
|
|
1723
|
-
'bottom'
|
|
1724
|
-
])),
|
|
1698
|
+
position: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
|
|
1725
1699
|
maxWidth: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1726
1700
|
return undefined; if (Array.isArray(v))
|
|
1727
1701
|
return v; if (typeof v === 'string') {
|
|
@@ -1735,7 +1709,7 @@ exports.richcaptionassetRichCaptionAssetSchema = zod_1.z.object({
|
|
|
1735
1709
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1736
1710
|
return v;
|
|
1737
1711
|
return Number(v);
|
|
1738
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2)
|
|
1712
|
+
} return v; }), zod_1.z.number().int().gte(1).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2),
|
|
1739
1713
|
}).strict();
|
|
1740
1714
|
exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
1741
1715
|
/**
|
|
@@ -1744,7 +1718,7 @@ exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema;
|
|
|
1744
1718
|
*
|
|
1745
1719
|
*/
|
|
1746
1720
|
exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
1747
|
-
type: zod_1.z.enum([
|
|
1721
|
+
type: zod_1.z.enum(["rich-text"]),
|
|
1748
1722
|
text: zod_1.z.string().max(5000),
|
|
1749
1723
|
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1750
1724
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
@@ -1752,18 +1726,15 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
|
1752
1726
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1753
1727
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1754
1728
|
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
1755
|
-
padding: zod_1.z.optional(zod_1.z.union([
|
|
1756
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1729
|
+
padding: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1757
1730
|
return undefined; if (Array.isArray(v))
|
|
1758
1731
|
return v; if (typeof v === 'string') {
|
|
1759
1732
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1760
1733
|
return v;
|
|
1761
1734
|
return Number(v);
|
|
1762
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1763
|
-
exports.richtextpropertiesRichTextPaddingSchema
|
|
1764
|
-
])),
|
|
1735
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), exports.richtextpropertiesRichTextPaddingSchema])),
|
|
1765
1736
|
align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
|
|
1766
|
-
animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema)
|
|
1737
|
+
animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema),
|
|
1767
1738
|
}).strict();
|
|
1768
1739
|
exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
|
|
1769
1740
|
/**
|
|
@@ -1772,8 +1743,8 @@ exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
|
|
|
1772
1743
|
exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.object({
|
|
1773
1744
|
id: zod_1.z.optional(zod_1.z.string()),
|
|
1774
1745
|
owner: zod_1.z.optional(zod_1.z.string()),
|
|
1775
|
-
status: zod_1.z.optional(zod_1.z.enum([
|
|
1776
|
-
created: zod_1.z.optional(zod_1.z.string())
|
|
1746
|
+
status: zod_1.z.optional(zod_1.z.enum(["queued", "failed"])),
|
|
1747
|
+
created: zod_1.z.optional(zod_1.z.string()),
|
|
1777
1748
|
}).strict();
|
|
1778
1749
|
exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
|
|
1779
1750
|
/**
|
|
@@ -1781,14 +1752,14 @@ exports.transferResponseAttributesSchema = exports.transferresponseattributesTra
|
|
|
1781
1752
|
*/
|
|
1782
1753
|
exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
|
|
1783
1754
|
type: zod_1.z.optional(zod_1.z.string()),
|
|
1784
|
-
attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema)
|
|
1755
|
+
attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema),
|
|
1785
1756
|
}).strict();
|
|
1786
1757
|
exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
|
|
1787
1758
|
/**
|
|
1788
1759
|
* 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.
|
|
1789
1760
|
*/
|
|
1790
1761
|
exports.transferresponseTransferResponseSchema = zod_1.z.object({
|
|
1791
|
-
data: exports.transferresponsedataTransferResponseDataSchema
|
|
1762
|
+
data: exports.transferresponsedataTransferResponseDataSchema,
|
|
1792
1763
|
}).strict();
|
|
1793
1764
|
exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
|
|
1794
1765
|
/**
|
|
@@ -1797,7 +1768,7 @@ exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
|
|
|
1797
1768
|
exports.transferTransferSchema = zod_1.z.object({
|
|
1798
1769
|
url: zod_1.z.string(),
|
|
1799
1770
|
id: zod_1.z.string(),
|
|
1800
|
-
destinations: zod_1.z.array(exports.destinationsDestinationsSchema)
|
|
1771
|
+
destinations: zod_1.z.array(exports.destinationsDestinationsSchema),
|
|
1801
1772
|
}).strict();
|
|
1802
1773
|
exports.transferSchema = exports.transferTransferSchema;
|
|
1803
1774
|
/**
|
|
@@ -1806,12 +1777,8 @@ exports.transferSchema = exports.transferTransferSchema;
|
|
|
1806
1777
|
*
|
|
1807
1778
|
*/
|
|
1808
1779
|
exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
1809
|
-
type: zod_1.z.enum([
|
|
1810
|
-
shape: zod_1.z.enum([
|
|
1811
|
-
'rectangle',
|
|
1812
|
-
'circle',
|
|
1813
|
-
'line'
|
|
1814
|
-
]),
|
|
1780
|
+
type: zod_1.z.enum(["shape"]),
|
|
1781
|
+
shape: zod_1.z.enum(["rectangle", "circle", "line"]),
|
|
1815
1782
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1816
1783
|
return undefined; if (Array.isArray(v))
|
|
1817
1784
|
return v; if (typeof v === 'string') {
|
|
@@ -1834,7 +1801,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1834
1801
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1835
1802
|
return v;
|
|
1836
1803
|
return Number(v);
|
|
1837
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1804
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1838
1805
|
})),
|
|
1839
1806
|
stroke: zod_1.z.optional(zod_1.z.object({
|
|
1840
1807
|
color: zod_1.z.optional(zod_1.z.string()),
|
|
@@ -1844,7 +1811,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1844
1811
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1845
1812
|
return v;
|
|
1846
1813
|
return Number(v);
|
|
1847
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1814
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1848
1815
|
})),
|
|
1849
1816
|
rectangle: zod_1.z.optional(zod_1.z.object({
|
|
1850
1817
|
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1867,7 +1834,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1867
1834
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1868
1835
|
return v;
|
|
1869
1836
|
return Number(v);
|
|
1870
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1837
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1871
1838
|
})),
|
|
1872
1839
|
circle: zod_1.z.optional(zod_1.z.object({
|
|
1873
1840
|
radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1876,7 +1843,7 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1876
1843
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1877
1844
|
return v;
|
|
1878
1845
|
return Number(v);
|
|
1879
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1846
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1880
1847
|
})),
|
|
1881
1848
|
line: zod_1.z.optional(zod_1.z.object({
|
|
1882
1849
|
length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1892,8 +1859,8 @@ exports.shapeassetShapeAssetSchema = zod_1.z.object({
|
|
|
1892
1859
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1893
1860
|
return v;
|
|
1894
1861
|
return Number(v);
|
|
1895
|
-
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1896
|
-
}))
|
|
1862
|
+
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1863
|
+
})),
|
|
1897
1864
|
}).strict();
|
|
1898
1865
|
exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
|
|
1899
1866
|
/**
|
|
@@ -1913,7 +1880,7 @@ exports.sizeSizeSchema = zod_1.z.object({
|
|
|
1913
1880
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1914
1881
|
return v;
|
|
1915
1882
|
return Number(v);
|
|
1916
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1883
|
+
} return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1917
1884
|
}).strict();
|
|
1918
1885
|
exports.sizeSchema = exports.sizeSizeSchema;
|
|
1919
1886
|
/**
|
|
@@ -1921,35 +1888,25 @@ exports.sizeSchema = exports.sizeSizeSchema;
|
|
|
1921
1888
|
*/
|
|
1922
1889
|
exports.renditionRenditionSchema = zod_1.z.object({
|
|
1923
1890
|
format: zod_1.z.optional(zod_1.z.enum([
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1891
|
+
"mp4",
|
|
1892
|
+
"webm",
|
|
1893
|
+
"mov",
|
|
1894
|
+
"avi",
|
|
1895
|
+
"mkv",
|
|
1896
|
+
"ogv",
|
|
1897
|
+
"wmv",
|
|
1898
|
+
"avif",
|
|
1899
|
+
"gif",
|
|
1900
|
+
"mp3",
|
|
1901
|
+
"wav",
|
|
1902
|
+
"jpg",
|
|
1903
|
+
"png",
|
|
1904
|
+
"webp",
|
|
1905
|
+
"tif",
|
|
1939
1906
|
])),
|
|
1940
1907
|
size: zod_1.z.optional(exports.sizeSizeSchema),
|
|
1941
|
-
fit: zod_1.z.optional(zod_1.z.enum([
|
|
1942
|
-
|
|
1943
|
-
'contain',
|
|
1944
|
-
'crop'
|
|
1945
|
-
])),
|
|
1946
|
-
resolution: zod_1.z.optional(zod_1.z.enum([
|
|
1947
|
-
'preview',
|
|
1948
|
-
'mobile',
|
|
1949
|
-
'sd',
|
|
1950
|
-
'hd',
|
|
1951
|
-
'fhd'
|
|
1952
|
-
])),
|
|
1908
|
+
fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop"])),
|
|
1909
|
+
resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
|
|
1953
1910
|
quality: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1954
1911
|
return undefined; if (Array.isArray(v))
|
|
1955
1912
|
return v; if (typeof v === 'string') {
|
|
@@ -1968,7 +1925,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
|
|
|
1968
1925
|
zod_1.z.literal(48),
|
|
1969
1926
|
zod_1.z.literal(50),
|
|
1970
1927
|
zod_1.z.literal(59.94),
|
|
1971
|
-
zod_1.z.literal(60)
|
|
1928
|
+
zod_1.z.literal(60),
|
|
1972
1929
|
])),
|
|
1973
1930
|
speed: zod_1.z.optional(exports.speedSpeedSchema),
|
|
1974
1931
|
keyframeInterval: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1981,7 +1938,7 @@ exports.renditionRenditionSchema = zod_1.z.object({
|
|
|
1981
1938
|
fixOffset: zod_1.z.optional(zod_1.z.boolean()),
|
|
1982
1939
|
fixRotation: zod_1.z.optional(zod_1.z.boolean()),
|
|
1983
1940
|
enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
|
|
1984
|
-
filename: zod_1.z.optional(zod_1.z.string())
|
|
1941
|
+
filename: zod_1.z.optional(zod_1.z.string()),
|
|
1985
1942
|
}).strict();
|
|
1986
1943
|
exports.renditionSchema = exports.renditionRenditionSchema;
|
|
1987
1944
|
/**
|
|
@@ -1989,7 +1946,7 @@ exports.renditionSchema = exports.renditionRenditionSchema;
|
|
|
1989
1946
|
*/
|
|
1990
1947
|
exports.outputsOutputsSchema = zod_1.z.object({
|
|
1991
1948
|
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
|
|
1992
|
-
transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema)
|
|
1949
|
+
transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema),
|
|
1993
1950
|
}).strict();
|
|
1994
1951
|
exports.outputsSchema = exports.outputsOutputsSchema;
|
|
1995
1952
|
/**
|
|
@@ -1998,12 +1955,12 @@ exports.outputsSchema = exports.outputsOutputsSchema;
|
|
|
1998
1955
|
exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.object({
|
|
1999
1956
|
id: zod_1.z.string(),
|
|
2000
1957
|
status: zod_1.z.optional(zod_1.z.enum([
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
1958
|
+
"queued",
|
|
1959
|
+
"importing",
|
|
1960
|
+
"ready",
|
|
1961
|
+
"failed",
|
|
1962
|
+
"deleted",
|
|
1963
|
+
"overwritten",
|
|
2007
1964
|
])),
|
|
2008
1965
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
2009
1966
|
executionTime: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2041,14 +1998,14 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
|
|
|
2041
1998
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2042
1999
|
return v;
|
|
2043
2000
|
return Number(v);
|
|
2044
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2001
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2045
2002
|
}).strict();
|
|
2046
2003
|
exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
|
|
2047
2004
|
/**
|
|
2048
2005
|
* The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
|
|
2049
2006
|
*/
|
|
2050
2007
|
exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
|
|
2051
|
-
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema))
|
|
2008
|
+
renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema)),
|
|
2052
2009
|
}).strict();
|
|
2053
2010
|
exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
|
|
2054
2011
|
/**
|
|
@@ -2060,12 +2017,12 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
|
|
|
2060
2017
|
input: zod_1.z.optional(zod_1.z.string()),
|
|
2061
2018
|
source: zod_1.z.optional(zod_1.z.string()),
|
|
2062
2019
|
status: zod_1.z.optional(zod_1.z.enum([
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2020
|
+
"queued",
|
|
2021
|
+
"importing",
|
|
2022
|
+
"ready",
|
|
2023
|
+
"failed",
|
|
2024
|
+
"deleted",
|
|
2025
|
+
"overwritten",
|
|
2069
2026
|
])),
|
|
2070
2027
|
outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
|
|
2071
2028
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2097,7 +2054,7 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
|
|
|
2097
2054
|
return Number(v);
|
|
2098
2055
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2099
2056
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
2100
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
2057
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
2101
2058
|
}).strict();
|
|
2102
2059
|
exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
|
|
2103
2060
|
/**
|
|
@@ -2106,21 +2063,21 @@ exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceR
|
|
|
2106
2063
|
exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
|
|
2107
2064
|
type: zod_1.z.string(),
|
|
2108
2065
|
id: zod_1.z.string(),
|
|
2109
|
-
attributes: exports.sourceresponseattributesSourceResponseAttributesSchema
|
|
2066
|
+
attributes: exports.sourceresponseattributesSourceResponseAttributesSchema,
|
|
2110
2067
|
}).strict();
|
|
2111
2068
|
exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
|
|
2112
2069
|
/**
|
|
2113
2070
|
* A list of all ingested source files fetched or uploaded to a users account.
|
|
2114
2071
|
*/
|
|
2115
2072
|
exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
|
|
2116
|
-
data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema)
|
|
2073
|
+
data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema),
|
|
2117
2074
|
}).strict();
|
|
2118
2075
|
exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
|
|
2119
2076
|
/**
|
|
2120
2077
|
* 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.
|
|
2121
2078
|
*/
|
|
2122
2079
|
exports.sourceresponseSourceResponseSchema = zod_1.z.object({
|
|
2123
|
-
data: exports.sourceresponsedataSourceResponseDataSchema
|
|
2080
|
+
data: exports.sourceresponsedataSourceResponseDataSchema,
|
|
2124
2081
|
}).strict();
|
|
2125
2082
|
exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
|
|
2126
2083
|
/**
|
|
@@ -2131,7 +2088,7 @@ exports.sourceSourceSchema = zod_1.z.object({
|
|
|
2131
2088
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
2132
2089
|
outputs: zod_1.z.optional(exports.outputsOutputsSchema),
|
|
2133
2090
|
destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
|
|
2134
|
-
callback: zod_1.z.optional(zod_1.z.string())
|
|
2091
|
+
callback: zod_1.z.optional(zod_1.z.string()),
|
|
2135
2092
|
}).strict();
|
|
2136
2093
|
exports.sourceSchema = exports.sourceSourceSchema;
|
|
2137
2094
|
/**
|
|
@@ -2139,669 +2096,63 @@ exports.sourceSchema = exports.sourceSourceSchema;
|
|
|
2139
2096
|
*/
|
|
2140
2097
|
exports.soundtrackSoundtrackSchema = zod_1.z.object({
|
|
2141
2098
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
2142
|
-
effect: zod_1.z.optional(zod_1.z.enum([
|
|
2143
|
-
'fadeIn',
|
|
2144
|
-
'fadeOut',
|
|
2145
|
-
'fadeInFadeOut'
|
|
2146
|
-
])),
|
|
2099
|
+
effect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
2147
2100
|
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2148
2101
|
return undefined; if (Array.isArray(v))
|
|
2149
2102
|
return v; if (typeof v === 'string') {
|
|
2150
2103
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2151
2104
|
return v;
|
|
2152
2105
|
return Number(v);
|
|
2153
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2106
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2154
2107
|
}).strict();
|
|
2155
2108
|
exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
|
|
2156
2109
|
/**
|
|
2157
|
-
*
|
|
2158
|
-
*
|
|
2159
|
-
*
|
|
2160
|
-
*/
|
|
2161
|
-
exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
|
|
2162
|
-
offset: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2163
|
-
return undefined; if (Array.isArray(v))
|
|
2164
|
-
return v; if (typeof v === 'string') {
|
|
2165
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2166
|
-
return v;
|
|
2167
|
-
return Number(v);
|
|
2168
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2169
|
-
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*\}\}$/)])
|
|
2170
|
-
}).strict();
|
|
2171
|
-
exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
|
|
2172
|
-
/**
|
|
2173
|
-
* A linear gradient fill that transitions colors along a straight line.
|
|
2174
|
-
* The gradient direction is controlled by the `angle` property.
|
|
2175
|
-
*
|
|
2176
|
-
*/
|
|
2177
|
-
exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
|
|
2178
|
-
type: zod_1.z.enum(['linear']),
|
|
2179
|
-
angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2180
|
-
return undefined; if (Array.isArray(v))
|
|
2181
|
-
return v; if (typeof v === 'string') {
|
|
2182
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2183
|
-
return v;
|
|
2184
|
-
return Number(v);
|
|
2185
|
-
} return v; }), zod_1.z.number().gte(0).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2186
|
-
stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
|
|
2187
|
-
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2188
|
-
return undefined; if (Array.isArray(v))
|
|
2189
|
-
return v; if (typeof v === 'string') {
|
|
2190
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2191
|
-
return v;
|
|
2192
|
-
return Number(v);
|
|
2193
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2194
|
-
}).strict();
|
|
2195
|
-
exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
|
|
2196
|
-
/**
|
|
2197
|
-
* A radial gradient fill that transitions colors radiating outward from a center point.
|
|
2198
|
-
* The gradient creates a circular or elliptical color transition.
|
|
2199
|
-
*
|
|
2200
|
-
*/
|
|
2201
|
-
exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
|
|
2202
|
-
type: zod_1.z.enum(['radial']),
|
|
2203
|
-
stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
|
|
2204
|
-
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2205
|
-
return undefined; if (Array.isArray(v))
|
|
2206
|
-
return v; if (typeof v === 'string') {
|
|
2207
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2208
|
-
return v;
|
|
2209
|
-
return Number(v);
|
|
2210
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2211
|
-
}).strict();
|
|
2212
|
-
exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
|
|
2213
|
-
/**
|
|
2214
|
-
* Drop shadow properties for SVG shapes. Creates a shadow effect behind the shape.
|
|
2215
|
-
*
|
|
2216
|
-
*/
|
|
2217
|
-
exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
|
|
2218
|
-
offsetX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2219
|
-
return undefined; if (Array.isArray(v))
|
|
2220
|
-
return v; if (typeof v === 'string') {
|
|
2221
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2222
|
-
return v;
|
|
2223
|
-
return Number(v);
|
|
2224
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2225
|
-
offsetY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2226
|
-
return undefined; if (Array.isArray(v))
|
|
2227
|
-
return v; if (typeof v === 'string') {
|
|
2228
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2229
|
-
return v;
|
|
2230
|
-
return Number(v);
|
|
2231
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2232
|
-
blur: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2233
|
-
return undefined; if (Array.isArray(v))
|
|
2234
|
-
return v; if (typeof v === 'string') {
|
|
2235
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2236
|
-
return v;
|
|
2237
|
-
return Number(v);
|
|
2238
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2239
|
-
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'),
|
|
2240
|
-
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2241
|
-
return undefined; if (Array.isArray(v))
|
|
2242
|
-
return v; if (typeof v === 'string') {
|
|
2243
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2244
|
-
return v;
|
|
2245
|
-
return Number(v);
|
|
2246
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2247
|
-
}).strict();
|
|
2248
|
-
exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
|
|
2249
|
-
/**
|
|
2250
|
-
* A solid color fill for SVG shapes.
|
|
2251
|
-
*/
|
|
2252
|
-
exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
|
|
2253
|
-
type: zod_1.z.enum(['solid']),
|
|
2254
|
-
color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
|
|
2255
|
-
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2256
|
-
return undefined; if (Array.isArray(v))
|
|
2257
|
-
return v; if (typeof v === 'string') {
|
|
2258
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2259
|
-
return v;
|
|
2260
|
-
return Number(v);
|
|
2261
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2262
|
-
}).strict();
|
|
2263
|
-
exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
|
|
2264
|
-
/**
|
|
2265
|
-
* Fill properties for SVG shapes. Supports solid colors and gradients.
|
|
2266
|
-
* The fill defines how the interior of a shape is painted.
|
|
2267
|
-
*
|
|
2268
|
-
*/
|
|
2269
|
-
exports.svgpropertiesSvgFillSchema = zod_1.z.discriminatedUnion("type", [
|
|
2270
|
-
exports.svgpropertiesSvgSolidFillSchema,
|
|
2271
|
-
exports.svgpropertiesSvgLinearGradientFillSchema,
|
|
2272
|
-
exports.svgpropertiesSvgRadialGradientFillSchema,
|
|
2273
|
-
]);
|
|
2274
|
-
exports.svgFillSchema = exports.svgpropertiesSvgFillSchema;
|
|
2275
|
-
/**
|
|
2276
|
-
* Stroke (outline) properties for SVG shapes. The stroke defines how the outline
|
|
2277
|
-
* of a shape is painted, including its color, width, and line style.
|
|
2278
|
-
*
|
|
2279
|
-
*/
|
|
2280
|
-
exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
|
|
2281
|
-
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'),
|
|
2282
|
-
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2283
|
-
return undefined; if (Array.isArray(v))
|
|
2284
|
-
return v; if (typeof v === 'string') {
|
|
2285
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2286
|
-
return v;
|
|
2287
|
-
return Number(v);
|
|
2288
|
-
} return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2289
|
-
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2290
|
-
return undefined; if (Array.isArray(v))
|
|
2291
|
-
return v; if (typeof v === 'string') {
|
|
2292
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2293
|
-
return v;
|
|
2294
|
-
return Number(v);
|
|
2295
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2296
|
-
lineCap: zod_1.z.optional(zod_1.z.enum([
|
|
2297
|
-
'butt',
|
|
2298
|
-
'round',
|
|
2299
|
-
'square'
|
|
2300
|
-
])),
|
|
2301
|
-
lineJoin: zod_1.z.optional(zod_1.z.enum([
|
|
2302
|
-
'miter',
|
|
2303
|
-
'round',
|
|
2304
|
-
'bevel'
|
|
2305
|
-
])),
|
|
2306
|
-
dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2307
|
-
return undefined; if (Array.isArray(v))
|
|
2308
|
-
return v; if (typeof v === 'string') {
|
|
2309
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2310
|
-
return v;
|
|
2311
|
-
return Number(v);
|
|
2312
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),
|
|
2313
|
-
dashOffset: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2314
|
-
return undefined; if (Array.isArray(v))
|
|
2315
|
-
return v; if (typeof v === 'string') {
|
|
2316
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2317
|
-
return v;
|
|
2318
|
-
return Number(v);
|
|
2319
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2320
|
-
}).strict();
|
|
2321
|
-
exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
|
|
2322
|
-
/**
|
|
2323
|
-
* Transformation properties for positioning, rotating, and scaling SVG shapes.
|
|
2110
|
+
* The SvgAsset is used to create scalable vector graphic (SVG) assets using
|
|
2111
|
+
* raw SVG markup.
|
|
2324
2112
|
*
|
|
2325
|
-
*/
|
|
2326
|
-
exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
|
|
2327
|
-
x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2328
|
-
return undefined; if (Array.isArray(v))
|
|
2329
|
-
return v; if (typeof v === 'string') {
|
|
2330
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2331
|
-
return v;
|
|
2332
|
-
return Number(v);
|
|
2333
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2334
|
-
y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2335
|
-
return undefined; if (Array.isArray(v))
|
|
2336
|
-
return v; if (typeof v === 'string') {
|
|
2337
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2338
|
-
return v;
|
|
2339
|
-
return Number(v);
|
|
2340
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2341
|
-
rotation: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2342
|
-
return undefined; if (Array.isArray(v))
|
|
2343
|
-
return v; if (typeof v === 'string') {
|
|
2344
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2345
|
-
return v;
|
|
2346
|
-
return Number(v);
|
|
2347
|
-
} return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2348
|
-
scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2349
|
-
return undefined; if (Array.isArray(v))
|
|
2350
|
-
return v; if (typeof v === 'string') {
|
|
2351
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2352
|
-
return v;
|
|
2353
|
-
return Number(v);
|
|
2354
|
-
} return v; }), zod_1.z.number().gte(0.01).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2355
|
-
originX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2356
|
-
return undefined; if (Array.isArray(v))
|
|
2357
|
-
return v; if (typeof v === 'string') {
|
|
2358
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2359
|
-
return v;
|
|
2360
|
-
return Number(v);
|
|
2361
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
|
|
2362
|
-
originY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2363
|
-
return undefined; if (Array.isArray(v))
|
|
2364
|
-
return v; if (typeof v === 'string') {
|
|
2365
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2366
|
-
return v;
|
|
2367
|
-
return Number(v);
|
|
2368
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2369
|
-
}).strict();
|
|
2370
|
-
exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
|
|
2371
|
-
/**
|
|
2372
|
-
* An arrow shape pointing to the right by default.
|
|
2373
|
-
* Use transform rotation to change direction.
|
|
2374
|
-
*
|
|
2375
|
-
*/
|
|
2376
|
-
exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
|
|
2377
|
-
type: zod_1.z.enum(['arrow']),
|
|
2378
|
-
length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2379
|
-
return undefined; if (Array.isArray(v))
|
|
2380
|
-
return v; if (typeof v === 'string') {
|
|
2381
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2382
|
-
return v;
|
|
2383
|
-
return Number(v);
|
|
2384
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2385
|
-
headWidth: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2386
|
-
return undefined; if (Array.isArray(v))
|
|
2387
|
-
return v; if (typeof v === 'string') {
|
|
2388
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2389
|
-
return v;
|
|
2390
|
-
return Number(v);
|
|
2391
|
-
} return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2392
|
-
headLength: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2393
|
-
return undefined; if (Array.isArray(v))
|
|
2394
|
-
return v; if (typeof v === 'string') {
|
|
2395
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2396
|
-
return v;
|
|
2397
|
-
return Number(v);
|
|
2398
|
-
} return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2399
|
-
shaftWidth: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2400
|
-
return undefined; if (Array.isArray(v))
|
|
2401
|
-
return v; if (typeof v === 'string') {
|
|
2402
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2403
|
-
return v;
|
|
2404
|
-
return Number(v);
|
|
2405
|
-
} return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2406
|
-
}).strict();
|
|
2407
|
-
exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
|
|
2408
|
-
/**
|
|
2409
|
-
* A perfect circle shape defined by its radius.
|
|
2410
|
-
* The circle is centered at the shape's position.
|
|
2411
|
-
*
|
|
2412
|
-
*/
|
|
2413
|
-
exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
|
|
2414
|
-
type: zod_1.z.enum(['circle']),
|
|
2415
|
-
radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2416
|
-
return undefined; if (Array.isArray(v))
|
|
2417
|
-
return v; if (typeof v === 'string') {
|
|
2418
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2419
|
-
return v;
|
|
2420
|
-
return Number(v);
|
|
2421
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2422
|
-
}).strict();
|
|
2423
|
-
exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
|
|
2424
|
-
/**
|
|
2425
|
-
* A cross or plus shape with equal or different arm lengths.
|
|
2426
|
-
* Can be styled as a plus sign (+) or a cross (x with rotation).
|
|
2427
|
-
*
|
|
2428
|
-
*/
|
|
2429
|
-
exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
|
|
2430
|
-
type: zod_1.z.enum(['cross']),
|
|
2431
|
-
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2432
|
-
return undefined; if (Array.isArray(v))
|
|
2433
|
-
return v; if (typeof v === 'string') {
|
|
2434
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2435
|
-
return v;
|
|
2436
|
-
return Number(v);
|
|
2437
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2438
|
-
height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2439
|
-
return undefined; if (Array.isArray(v))
|
|
2440
|
-
return v; if (typeof v === 'string') {
|
|
2441
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2442
|
-
return v;
|
|
2443
|
-
return Number(v);
|
|
2444
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2445
|
-
thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2446
|
-
return undefined; if (Array.isArray(v))
|
|
2447
|
-
return v; if (typeof v === 'string') {
|
|
2448
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2449
|
-
return v;
|
|
2450
|
-
return Number(v);
|
|
2451
|
-
} return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2452
|
-
}).strict();
|
|
2453
|
-
exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
|
|
2454
|
-
/**
|
|
2455
|
-
* An ellipse (oval) shape with separate horizontal and vertical radii.
|
|
2456
|
-
* The ellipse is centered at the shape's position.
|
|
2457
|
-
*
|
|
2458
|
-
*/
|
|
2459
|
-
exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
|
|
2460
|
-
type: zod_1.z.enum(['ellipse']),
|
|
2461
|
-
radiusX: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2462
|
-
return undefined; if (Array.isArray(v))
|
|
2463
|
-
return v; if (typeof v === 'string') {
|
|
2464
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2465
|
-
return v;
|
|
2466
|
-
return Number(v);
|
|
2467
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2468
|
-
radiusY: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2469
|
-
return undefined; if (Array.isArray(v))
|
|
2470
|
-
return v; if (typeof v === 'string') {
|
|
2471
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2472
|
-
return v;
|
|
2473
|
-
return Number(v);
|
|
2474
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2475
|
-
}).strict();
|
|
2476
|
-
exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
|
|
2477
|
-
/**
|
|
2478
|
-
* A heart shape commonly used for love/like icons.
|
|
2479
|
-
* The heart is defined by a single size parameter.
|
|
2480
|
-
*
|
|
2481
|
-
*/
|
|
2482
|
-
exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
|
|
2483
|
-
type: zod_1.z.enum(['heart']),
|
|
2484
|
-
size: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2485
|
-
return undefined; if (Array.isArray(v))
|
|
2486
|
-
return v; if (typeof v === 'string') {
|
|
2487
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2488
|
-
return v;
|
|
2489
|
-
return Number(v);
|
|
2490
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2491
|
-
}).strict();
|
|
2492
|
-
exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
|
|
2493
|
-
/**
|
|
2494
|
-
* A straight line shape with a specified length and thickness.
|
|
2495
|
-
* The line is drawn horizontally by default and can be rotated using transform.
|
|
2496
|
-
*
|
|
2497
|
-
*/
|
|
2498
|
-
exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
|
|
2499
|
-
type: zod_1.z.enum(['line']),
|
|
2500
|
-
length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2501
|
-
return undefined; if (Array.isArray(v))
|
|
2502
|
-
return v; if (typeof v === 'string') {
|
|
2503
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2504
|
-
return v;
|
|
2505
|
-
return Number(v);
|
|
2506
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2507
|
-
thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2508
|
-
return undefined; if (Array.isArray(v))
|
|
2509
|
-
return v; if (typeof v === 'string') {
|
|
2510
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2511
|
-
return v;
|
|
2512
|
-
return Number(v);
|
|
2513
|
-
} return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2514
|
-
}).strict();
|
|
2515
|
-
exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
|
|
2516
|
-
/**
|
|
2517
|
-
* A custom shape defined by SVG path data.
|
|
2518
|
-
* Supports all standard SVG path commands for creating complex shapes.
|
|
2519
|
-
*
|
|
2520
|
-
* **Path Commands:**
|
|
2521
|
-
* - `M x y` / `m dx dy` - Move to (absolute/relative)
|
|
2522
|
-
* - `L x y` / `l dx dy` - Line to
|
|
2523
|
-
* - `H x` / `h dx` - Horizontal line to
|
|
2524
|
-
* - `V y` / `v dy` - Vertical line to
|
|
2525
|
-
* - `C x1 y1 x2 y2 x y` / `c` - Cubic Bezier curve
|
|
2526
|
-
* - `S x2 y2 x y` / `s` - Smooth cubic Bezier
|
|
2527
|
-
* - `Q x1 y1 x y` / `q` - Quadratic Bezier curve
|
|
2528
|
-
* - `T x y` / `t` - Smooth quadratic Bezier
|
|
2529
|
-
* - `A rx ry angle large-arc sweep x y` / `a` - Elliptical arc
|
|
2530
|
-
* - `Z` / `z` - Close path
|
|
2531
|
-
*
|
|
2532
|
-
*/
|
|
2533
|
-
exports.svgshapesSvgPathShapeSchema = zod_1.z.object({
|
|
2534
|
-
type: zod_1.z.enum(['path']),
|
|
2535
|
-
d: zod_1.z.string().min(1).max(100000)
|
|
2536
|
-
}).strict();
|
|
2537
|
-
exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
|
|
2538
|
-
/**
|
|
2539
|
-
* A regular polygon shape with a specified number of sides.
|
|
2540
|
-
* Examples: triangle (3), square (4), pentagon (5), hexagon (6), etc.
|
|
2541
|
-
* The polygon is inscribed in a circle of the given radius.
|
|
2542
|
-
*
|
|
2543
|
-
*/
|
|
2544
|
-
exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
|
|
2545
|
-
type: zod_1.z.enum(['polygon']),
|
|
2546
|
-
sides: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2547
|
-
return undefined; if (Array.isArray(v))
|
|
2548
|
-
return v; if (typeof v === 'string') {
|
|
2549
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2550
|
-
return v;
|
|
2551
|
-
return Number(v);
|
|
2552
|
-
} return v; }), zod_1.z.number().int().gte(3).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2553
|
-
radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2554
|
-
return undefined; if (Array.isArray(v))
|
|
2555
|
-
return v; if (typeof v === 'string') {
|
|
2556
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2557
|
-
return v;
|
|
2558
|
-
return Number(v);
|
|
2559
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2560
|
-
}).strict();
|
|
2561
|
-
exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
|
|
2562
|
-
/**
|
|
2563
|
-
* A rectangle shape with optional rounded corners.
|
|
2564
|
-
* The rectangle is defined by its width and height dimensions.
|
|
2565
|
-
*
|
|
2566
|
-
*/
|
|
2567
|
-
exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
|
|
2568
|
-
type: zod_1.z.enum(['rectangle']),
|
|
2569
|
-
width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2570
|
-
return undefined; if (Array.isArray(v))
|
|
2571
|
-
return v; if (typeof v === 'string') {
|
|
2572
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2573
|
-
return v;
|
|
2574
|
-
return Number(v);
|
|
2575
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2576
|
-
height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2577
|
-
return undefined; if (Array.isArray(v))
|
|
2578
|
-
return v; if (typeof v === 'string') {
|
|
2579
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2580
|
-
return v;
|
|
2581
|
-
return Number(v);
|
|
2582
|
-
} return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2583
|
-
cornerRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2584
|
-
return undefined; if (Array.isArray(v))
|
|
2585
|
-
return v; if (typeof v === 'string') {
|
|
2586
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2587
|
-
return v;
|
|
2588
|
-
return Number(v);
|
|
2589
|
-
} return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2590
|
-
}).strict();
|
|
2591
|
-
exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
|
|
2592
|
-
/**
|
|
2593
|
-
* A ring (donut/annulus) shape - a circle with a circular hole in the center.
|
|
2594
|
-
* The ring is defined by outer and inner radii.
|
|
2595
|
-
*
|
|
2596
|
-
*/
|
|
2597
|
-
exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
|
|
2598
|
-
type: zod_1.z.enum(['ring']),
|
|
2599
|
-
outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2600
|
-
return undefined; if (Array.isArray(v))
|
|
2601
|
-
return v; if (typeof v === 'string') {
|
|
2602
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2603
|
-
return v;
|
|
2604
|
-
return Number(v);
|
|
2605
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2606
|
-
innerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2607
|
-
return undefined; if (Array.isArray(v))
|
|
2608
|
-
return v; if (typeof v === 'string') {
|
|
2609
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2610
|
-
return v;
|
|
2611
|
-
return Number(v);
|
|
2612
|
-
} return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2613
|
-
}).strict();
|
|
2614
|
-
exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
|
|
2615
|
-
/**
|
|
2616
|
-
* A star shape with a specified number of points.
|
|
2617
|
-
* The star is defined by outer and inner radii, creating the characteristic
|
|
2618
|
-
* pointed appearance.
|
|
2619
|
-
*
|
|
2620
|
-
*/
|
|
2621
|
-
exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
|
|
2622
|
-
type: zod_1.z.enum(['star']),
|
|
2623
|
-
points: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2624
|
-
return undefined; if (Array.isArray(v))
|
|
2625
|
-
return v; if (typeof v === 'string') {
|
|
2626
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2627
|
-
return v;
|
|
2628
|
-
return Number(v);
|
|
2629
|
-
} return v; }), zod_1.z.number().int().gte(3).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2630
|
-
outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2631
|
-
return undefined; if (Array.isArray(v))
|
|
2632
|
-
return v; if (typeof v === 'string') {
|
|
2633
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2634
|
-
return v;
|
|
2635
|
-
return Number(v);
|
|
2636
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2637
|
-
innerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2638
|
-
return undefined; if (Array.isArray(v))
|
|
2639
|
-
return v; if (typeof v === 'string') {
|
|
2640
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2641
|
-
return v;
|
|
2642
|
-
return Number(v);
|
|
2643
|
-
} return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2644
|
-
}).strict();
|
|
2645
|
-
exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
|
|
2646
|
-
/**
|
|
2647
|
-
* The shape definition for an SVG asset. Each shape type has its own specific
|
|
2648
|
-
* properties. The `type` field determines which shape is rendered.
|
|
2649
|
-
*
|
|
2650
|
-
*/
|
|
2651
|
-
exports.svgshapesSvgShapeSchema = zod_1.z.discriminatedUnion("type", [
|
|
2652
|
-
exports.svgshapesSvgRectangleShapeSchema,
|
|
2653
|
-
exports.svgshapesSvgCircleShapeSchema,
|
|
2654
|
-
exports.svgshapesSvgEllipseShapeSchema,
|
|
2655
|
-
exports.svgshapesSvgLineShapeSchema,
|
|
2656
|
-
exports.svgshapesSvgPolygonShapeSchema,
|
|
2657
|
-
exports.svgshapesSvgStarShapeSchema,
|
|
2658
|
-
exports.svgshapesSvgArrowShapeSchema,
|
|
2659
|
-
exports.svgshapesSvgHeartShapeSchema,
|
|
2660
|
-
exports.svgshapesSvgCrossShapeSchema,
|
|
2661
|
-
exports.svgshapesSvgRingShapeSchema,
|
|
2662
|
-
exports.svgshapesSvgPathShapeSchema,
|
|
2663
|
-
]);
|
|
2664
|
-
exports.svgShapeSchema = exports.svgshapesSvgShapeSchema;
|
|
2665
|
-
/**
|
|
2666
|
-
* The SvgAsset is used to add scalable vector graphics (SVG) shapes to a video.
|
|
2667
|
-
* It provides two mutually exclusive ways to define shapes:
|
|
2668
|
-
*
|
|
2669
|
-
* **Option 1: Import SVG markup using `src`**
|
|
2670
2113
|
* ```json
|
|
2671
2114
|
* {
|
|
2672
2115
|
* "type": "svg",
|
|
2673
2116
|
* "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
|
|
2674
2117
|
* }
|
|
2675
2118
|
* ```
|
|
2676
|
-
* When using `src`, no other properties are allowed. The fill, stroke, and dimensions
|
|
2677
|
-
* are automatically extracted from the SVG markup.
|
|
2678
|
-
*
|
|
2679
|
-
* **Option 2: Define shapes programmatically using `shape`**
|
|
2680
|
-
* ```json
|
|
2681
|
-
* {
|
|
2682
|
-
* "type": "svg",
|
|
2683
|
-
* "shape": { "type": "circle", "radius": 50 },
|
|
2684
|
-
* "fill": { "type": "solid", "color": "#FF0000" }
|
|
2685
|
-
* }
|
|
2686
|
-
* ```
|
|
2687
|
-
* When using `shape`, you can customize fill, stroke, shadow, transform, and other properties.
|
|
2688
|
-
* The `src` property is not allowed in this mode.
|
|
2689
|
-
*
|
|
2690
|
-
* **Important:** You must provide either `src` OR `shape`, but not both.
|
|
2691
|
-
* These two modes are mutually exclusive.
|
|
2692
2119
|
*
|
|
2693
|
-
*
|
|
2694
|
-
* - `rectangle` - Rectangles with optional rounded corners
|
|
2695
|
-
* - `circle` - Perfect circles
|
|
2696
|
-
* - `ellipse` - Ellipses/ovals with separate x and y radii
|
|
2697
|
-
* - `line` - Straight lines with configurable thickness
|
|
2698
|
-
* - `polygon` - Regular polygons (triangle, pentagon, hexagon, etc.)
|
|
2699
|
-
* - `star` - Multi-pointed stars
|
|
2700
|
-
* - `arrow` - Directional arrows
|
|
2701
|
-
* - `heart` - Heart shapes
|
|
2702
|
-
* - `cross` - Plus/cross shapes
|
|
2703
|
-
* - `ring` - Donut/ring shapes
|
|
2704
|
-
* - `path` - Custom shapes using SVG path data
|
|
2705
|
-
*
|
|
2706
|
-
* See [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.
|
|
2120
|
+
* See [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for SVG markup syntax.
|
|
2707
2121
|
*
|
|
2708
2122
|
*/
|
|
2709
2123
|
exports.svgassetSvgAssetSchema = zod_1.z.object({
|
|
2710
2124
|
type: zod_1.z.enum(["svg"]),
|
|
2711
|
-
src: zod_1.z.
|
|
2712
|
-
|
|
2713
|
-
fill: zod_1.z.optional(exports.svgpropertiesSvgFillSchema),
|
|
2714
|
-
stroke: zod_1.z.optional(exports.svgpropertiesSvgStrokeSchema),
|
|
2715
|
-
shadow: zod_1.z.optional(exports.svgpropertiesSvgShadowSchema),
|
|
2716
|
-
transform: zod_1.z.optional(exports.svgpropertiesSvgTransformSchema),
|
|
2717
|
-
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2718
|
-
return undefined; if (Array.isArray(v))
|
|
2719
|
-
return v; if (typeof v === 'string') {
|
|
2720
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2721
|
-
return v;
|
|
2722
|
-
return Number(v);
|
|
2723
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2724
|
-
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2725
|
-
return undefined; if (Array.isArray(v))
|
|
2726
|
-
return v; if (typeof v === 'string') {
|
|
2727
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2728
|
-
return v;
|
|
2729
|
-
return Number(v);
|
|
2730
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2731
|
-
height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2732
|
-
return undefined; if (Array.isArray(v))
|
|
2733
|
-
return v; if (typeof v === 'string') {
|
|
2734
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2735
|
-
return v;
|
|
2736
|
-
return Number(v);
|
|
2737
|
-
} return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2738
|
-
}).strict().superRefine((data, ctx) => {
|
|
2739
|
-
const hasShape = data.shape !== undefined;
|
|
2740
|
-
const hasSrc = data.src !== undefined && data.src.trim() !== "";
|
|
2741
|
-
if (!hasShape && !hasSrc) {
|
|
2742
|
-
ctx.addIssue({
|
|
2743
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
2744
|
-
message: "Either 'src' or 'shape' must be provided",
|
|
2745
|
-
path: [],
|
|
2746
|
-
});
|
|
2747
|
-
}
|
|
2748
|
-
if (hasShape && hasSrc) {
|
|
2749
|
-
ctx.addIssue({
|
|
2750
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
2751
|
-
message: "Provide either 'src' or 'shape', not both",
|
|
2752
|
-
path: ["src"],
|
|
2753
|
-
});
|
|
2754
|
-
}
|
|
2755
|
-
if (hasSrc) {
|
|
2756
|
-
const disallowedProps = ["shape", "fill", "stroke", "shadow", "transform", "width", "height"];
|
|
2757
|
-
for (const prop of disallowedProps) {
|
|
2758
|
-
if (data[prop] !== undefined) {
|
|
2759
|
-
ctx.addIssue({
|
|
2760
|
-
code: zod_1.z.ZodIssueCode.custom,
|
|
2761
|
-
message: `'${prop}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,
|
|
2762
|
-
path: [prop],
|
|
2763
|
-
});
|
|
2764
|
-
}
|
|
2765
|
-
}
|
|
2766
|
-
}
|
|
2767
|
-
});
|
|
2125
|
+
src: zod_1.z.string().min(1).max(500000),
|
|
2126
|
+
}).strict();
|
|
2768
2127
|
exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
|
|
2769
2128
|
/**
|
|
2770
2129
|
* Configure the id and optional merge fields to render a template by id.
|
|
2771
2130
|
*/
|
|
2772
2131
|
exports.templaterenderTemplateRenderSchema = zod_1.z.object({
|
|
2773
2132
|
id: zod_1.z.string(),
|
|
2774
|
-
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema))
|
|
2133
|
+
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
|
|
2775
2134
|
}).strict();
|
|
2776
2135
|
exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
|
|
2777
2136
|
/**
|
|
2778
2137
|
* Horizontal and vertical alignment properties for text.
|
|
2779
2138
|
*/
|
|
2780
2139
|
exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
|
|
2781
|
-
horizontal: zod_1.z.optional(zod_1.z.enum([
|
|
2782
|
-
|
|
2783
|
-
'center',
|
|
2784
|
-
'right'
|
|
2785
|
-
])),
|
|
2786
|
-
vertical: zod_1.z.optional(zod_1.z.enum([
|
|
2787
|
-
'top',
|
|
2788
|
-
'center',
|
|
2789
|
-
'bottom'
|
|
2790
|
-
]))
|
|
2140
|
+
horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
|
|
2141
|
+
vertical: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
|
|
2791
2142
|
}).strict();
|
|
2792
2143
|
exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
|
|
2793
2144
|
/**
|
|
2794
2145
|
* Animation properties for text entrance effects.
|
|
2795
2146
|
*/
|
|
2796
2147
|
exports.textpropertiesTextAnimationSchema = zod_1.z.object({
|
|
2797
|
-
preset: zod_1.z.enum([
|
|
2148
|
+
preset: zod_1.z.enum(["typewriter"]),
|
|
2798
2149
|
duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2799
2150
|
return undefined; if (Array.isArray(v))
|
|
2800
2151
|
return v; if (typeof v === 'string') {
|
|
2801
2152
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2802
2153
|
return v;
|
|
2803
2154
|
return Number(v);
|
|
2804
|
-
} return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2155
|
+
} return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2805
2156
|
}).strict();
|
|
2806
2157
|
/**
|
|
2807
2158
|
* Displays a background box behind the text.
|
|
@@ -2828,7 +2179,7 @@ exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
|
|
|
2828
2179
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2829
2180
|
return v;
|
|
2830
2181
|
return Number(v);
|
|
2831
|
-
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2182
|
+
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2832
2183
|
}).strict();
|
|
2833
2184
|
exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
|
|
2834
2185
|
/**
|
|
@@ -2864,7 +2215,7 @@ exports.textpropertiesTextFontSchema = zod_1.z.object({
|
|
|
2864
2215
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2865
2216
|
return v;
|
|
2866
2217
|
return Number(v);
|
|
2867
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2218
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2868
2219
|
}).strict();
|
|
2869
2220
|
exports.textFontSchema = exports.textpropertiesTextFontSchema;
|
|
2870
2221
|
/**
|
|
@@ -2878,7 +2229,7 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
|
|
|
2878
2229
|
return v;
|
|
2879
2230
|
return Number(v);
|
|
2880
2231
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2881
|
-
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*\}\}$/)]))
|
|
2232
|
+
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*\}\}$/)])),
|
|
2882
2233
|
}).strict();
|
|
2883
2234
|
/**
|
|
2884
2235
|
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
@@ -2886,7 +2237,7 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
|
|
|
2886
2237
|
*
|
|
2887
2238
|
*/
|
|
2888
2239
|
exports.textassetTextAssetSchema = zod_1.z.object({
|
|
2889
|
-
type: zod_1.z.enum([
|
|
2240
|
+
type: zod_1.z.enum(["text"]),
|
|
2890
2241
|
text: zod_1.z.string(),
|
|
2891
2242
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2892
2243
|
return undefined; if (Array.isArray(v))
|
|
@@ -2907,14 +2258,14 @@ exports.textassetTextAssetSchema = zod_1.z.object({
|
|
|
2907
2258
|
alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
|
|
2908
2259
|
stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
|
|
2909
2260
|
animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
|
|
2910
|
-
ellipsis: zod_1.z.optional(zod_1.z.string())
|
|
2261
|
+
ellipsis: zod_1.z.optional(zod_1.z.string()),
|
|
2911
2262
|
}).strict();
|
|
2912
2263
|
exports.textAssetSchema = exports.textassetTextAssetSchema;
|
|
2913
2264
|
/**
|
|
2914
2265
|
* The TextToImageAsset lets you create a dynamic image from a text prompt.
|
|
2915
2266
|
*/
|
|
2916
2267
|
exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
|
|
2917
|
-
type: zod_1.z.enum([
|
|
2268
|
+
type: zod_1.z.enum(["text-to-image"]),
|
|
2918
2269
|
prompt: zod_1.z.string(),
|
|
2919
2270
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2920
2271
|
return undefined; if (Array.isArray(v))
|
|
@@ -2930,7 +2281,7 @@ exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
|
|
|
2930
2281
|
return v;
|
|
2931
2282
|
return Number(v);
|
|
2932
2283
|
} return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2933
|
-
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
2284
|
+
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
2934
2285
|
}).strict();
|
|
2935
2286
|
exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
|
|
2936
2287
|
/**
|
|
@@ -2950,36 +2301,16 @@ exports.thumbnailThumbnailSchema = zod_1.z.object({
|
|
|
2950
2301
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2951
2302
|
return v;
|
|
2952
2303
|
return Number(v);
|
|
2953
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2304
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2954
2305
|
}).strict();
|
|
2955
2306
|
exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
|
|
2956
2307
|
/**
|
|
2957
2308
|
* The output format, render range and type of media to generate.
|
|
2958
2309
|
*/
|
|
2959
2310
|
exports.outputOutputSchema = zod_1.z.object({
|
|
2960
|
-
format: zod_1.z.enum([
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
'mp3',
|
|
2964
|
-
'jpg',
|
|
2965
|
-
'png',
|
|
2966
|
-
'bmp'
|
|
2967
|
-
]),
|
|
2968
|
-
resolution: zod_1.z.optional(zod_1.z.enum([
|
|
2969
|
-
'preview',
|
|
2970
|
-
'mobile',
|
|
2971
|
-
'sd',
|
|
2972
|
-
'hd',
|
|
2973
|
-
'1080',
|
|
2974
|
-
'4k'
|
|
2975
|
-
])),
|
|
2976
|
-
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
2977
|
-
'16:9',
|
|
2978
|
-
'9:16',
|
|
2979
|
-
'1:1',
|
|
2980
|
-
'4:5',
|
|
2981
|
-
'4:3'
|
|
2982
|
-
])),
|
|
2311
|
+
format: zod_1.z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
|
|
2312
|
+
resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
2313
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
|
|
2983
2314
|
size: zod_1.z.optional(exports.sizeSizeSchema),
|
|
2984
2315
|
fps: zod_1.z.optional(zod_1.z.union([
|
|
2985
2316
|
zod_1.z.literal(12),
|
|
@@ -2992,29 +2323,16 @@ exports.outputOutputSchema = zod_1.z.object({
|
|
|
2992
2323
|
zod_1.z.literal(48),
|
|
2993
2324
|
zod_1.z.literal(50),
|
|
2994
2325
|
zod_1.z.literal(59.94),
|
|
2995
|
-
zod_1.z.literal(60)
|
|
2996
|
-
])),
|
|
2997
|
-
scaleTo: zod_1.z.optional(zod_1.z.enum([
|
|
2998
|
-
'preview',
|
|
2999
|
-
'mobile',
|
|
3000
|
-
'sd',
|
|
3001
|
-
'hd',
|
|
3002
|
-
'1080',
|
|
3003
|
-
'4k'
|
|
3004
|
-
])),
|
|
3005
|
-
quality: zod_1.z.optional(zod_1.z.enum([
|
|
3006
|
-
'verylow',
|
|
3007
|
-
'low',
|
|
3008
|
-
'medium',
|
|
3009
|
-
'high',
|
|
3010
|
-
'veryhigh'
|
|
2326
|
+
zod_1.z.literal(60),
|
|
3011
2327
|
])),
|
|
2328
|
+
scaleTo: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
2329
|
+
quality: zod_1.z.optional(zod_1.z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
|
|
3012
2330
|
repeat: zod_1.z.optional(zod_1.z.boolean()),
|
|
3013
2331
|
mute: zod_1.z.optional(zod_1.z.boolean()),
|
|
3014
2332
|
range: zod_1.z.optional(exports.rangeRangeSchema),
|
|
3015
2333
|
poster: zod_1.z.optional(exports.posterPosterSchema),
|
|
3016
2334
|
thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
|
|
3017
|
-
destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema))
|
|
2335
|
+
destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
|
|
3018
2336
|
}).strict();
|
|
3019
2337
|
exports.outputSchema = exports.outputOutputSchema;
|
|
3020
2338
|
/**
|
|
@@ -3022,133 +2340,133 @@ exports.outputSchema = exports.outputOutputSchema;
|
|
|
3022
2340
|
*/
|
|
3023
2341
|
exports.transitionTransitionSchema = zod_1.z.object({
|
|
3024
2342
|
in: zod_1.z.optional(zod_1.z.enum([
|
|
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
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
2343
|
+
"none",
|
|
2344
|
+
"fade",
|
|
2345
|
+
"fadeSlow",
|
|
2346
|
+
"fadeFast",
|
|
2347
|
+
"reveal",
|
|
2348
|
+
"revealSlow",
|
|
2349
|
+
"revealFast",
|
|
2350
|
+
"wipeLeft",
|
|
2351
|
+
"wipeLeftSlow",
|
|
2352
|
+
"wipeLeftFast",
|
|
2353
|
+
"wipeRight",
|
|
2354
|
+
"wipeRightSlow",
|
|
2355
|
+
"wipeRightFast",
|
|
2356
|
+
"slideLeft",
|
|
2357
|
+
"slideLeftSlow",
|
|
2358
|
+
"slideLeftFast",
|
|
2359
|
+
"slideRight",
|
|
2360
|
+
"slideRightSlow",
|
|
2361
|
+
"slideRightFast",
|
|
2362
|
+
"slideUp",
|
|
2363
|
+
"slideUpSlow",
|
|
2364
|
+
"slideUpFast",
|
|
2365
|
+
"slideDown",
|
|
2366
|
+
"slideDownSlow",
|
|
2367
|
+
"slideDownFast",
|
|
2368
|
+
"carouselLeft",
|
|
2369
|
+
"carouselLeftSlow",
|
|
2370
|
+
"carouselLeftFast",
|
|
2371
|
+
"carouselRight",
|
|
2372
|
+
"carouselRightSlow",
|
|
2373
|
+
"carouselRightFast",
|
|
2374
|
+
"carouselUp",
|
|
2375
|
+
"carouselUpSlow",
|
|
2376
|
+
"carouselUpFast",
|
|
2377
|
+
"carouselDown",
|
|
2378
|
+
"carouselDownSlow",
|
|
2379
|
+
"carouselDownFast",
|
|
2380
|
+
"shuffleTopRight",
|
|
2381
|
+
"shuffleTopRightSlow",
|
|
2382
|
+
"shuffleTopRightFast",
|
|
2383
|
+
"shuffleRightTop",
|
|
2384
|
+
"shuffleRightTopSlow",
|
|
2385
|
+
"shuffleRightTopFast",
|
|
2386
|
+
"shuffleRightBottom",
|
|
2387
|
+
"shuffleRightBottomSlow",
|
|
2388
|
+
"shuffleRightBottomFast",
|
|
2389
|
+
"shuffleBottomRight",
|
|
2390
|
+
"shuffleBottomRightSlow",
|
|
2391
|
+
"shuffleBottomRightFast",
|
|
2392
|
+
"shuffleBottomLeft",
|
|
2393
|
+
"shuffleBottomLeftSlow",
|
|
2394
|
+
"shuffleBottomLeftFast",
|
|
2395
|
+
"shuffleLeftBottom",
|
|
2396
|
+
"shuffleLeftBottomSlow",
|
|
2397
|
+
"shuffleLeftBottomFast",
|
|
2398
|
+
"shuffleLeftTop",
|
|
2399
|
+
"shuffleLeftTopSlow",
|
|
2400
|
+
"shuffleLeftTopFast",
|
|
2401
|
+
"shuffleTopLeft",
|
|
2402
|
+
"shuffleTopLeftSlow",
|
|
2403
|
+
"shuffleTopLeftFast",
|
|
2404
|
+
"zoom",
|
|
3087
2405
|
])),
|
|
3088
2406
|
out: zod_1.z.optional(zod_1.z.enum([
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
]))
|
|
2407
|
+
"none",
|
|
2408
|
+
"fade",
|
|
2409
|
+
"fadeSlow",
|
|
2410
|
+
"fadeFast",
|
|
2411
|
+
"reveal",
|
|
2412
|
+
"revealSlow",
|
|
2413
|
+
"revealFast",
|
|
2414
|
+
"wipeLeft",
|
|
2415
|
+
"wipeLeftSlow",
|
|
2416
|
+
"wipeLeftFast",
|
|
2417
|
+
"wipeRight",
|
|
2418
|
+
"wipeRightSlow",
|
|
2419
|
+
"wipeRightFast",
|
|
2420
|
+
"slideLeft",
|
|
2421
|
+
"slideLeftSlow",
|
|
2422
|
+
"slideLeftFast",
|
|
2423
|
+
"slideRight",
|
|
2424
|
+
"slideRightSlow",
|
|
2425
|
+
"slideRightFast",
|
|
2426
|
+
"slideUp",
|
|
2427
|
+
"slideUpSlow",
|
|
2428
|
+
"slideUpFast",
|
|
2429
|
+
"slideDown",
|
|
2430
|
+
"slideDownSlow",
|
|
2431
|
+
"slideDownFast",
|
|
2432
|
+
"carouselLeft",
|
|
2433
|
+
"carouselLeftSlow",
|
|
2434
|
+
"carouselLeftFast",
|
|
2435
|
+
"carouselRight",
|
|
2436
|
+
"carouselRightSlow",
|
|
2437
|
+
"carouselRightFast",
|
|
2438
|
+
"carouselUp",
|
|
2439
|
+
"carouselUpSlow",
|
|
2440
|
+
"carouselUpFast",
|
|
2441
|
+
"carouselDown",
|
|
2442
|
+
"carouselDownSlow",
|
|
2443
|
+
"carouselDownFast",
|
|
2444
|
+
"shuffleTopRight",
|
|
2445
|
+
"shuffleTopRightSlow",
|
|
2446
|
+
"shuffleTopRightFast",
|
|
2447
|
+
"shuffleRightTop",
|
|
2448
|
+
"shuffleRightTopSlow",
|
|
2449
|
+
"shuffleRightTopFast",
|
|
2450
|
+
"shuffleRightBottom",
|
|
2451
|
+
"shuffleRightBottomSlow",
|
|
2452
|
+
"shuffleRightBottomFast",
|
|
2453
|
+
"shuffleBottomRight",
|
|
2454
|
+
"shuffleBottomRightSlow",
|
|
2455
|
+
"shuffleBottomRightFast",
|
|
2456
|
+
"shuffleBottomLeft",
|
|
2457
|
+
"shuffleBottomLeftSlow",
|
|
2458
|
+
"shuffleBottomLeftFast",
|
|
2459
|
+
"shuffleLeftBottom",
|
|
2460
|
+
"shuffleLeftBottomSlow",
|
|
2461
|
+
"shuffleLeftBottomFast",
|
|
2462
|
+
"shuffleLeftTop",
|
|
2463
|
+
"shuffleLeftTopSlow",
|
|
2464
|
+
"shuffleLeftTopFast",
|
|
2465
|
+
"shuffleTopLeft",
|
|
2466
|
+
"shuffleTopLeftSlow",
|
|
2467
|
+
"shuffleTopLeftFast",
|
|
2468
|
+
"zoom",
|
|
2469
|
+
])),
|
|
3152
2470
|
}).strict();
|
|
3153
2471
|
exports.transitionSchema = exports.transitionTransitionSchema;
|
|
3154
2472
|
/**
|
|
@@ -3178,48 +2496,44 @@ exports.tweenTweenSchema = zod_1.z.object({
|
|
|
3178
2496
|
return v;
|
|
3179
2497
|
return Number(v);
|
|
3180
2498
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3181
|
-
interpolation: zod_1.z.optional(zod_1.z.enum([
|
|
3182
|
-
'linear',
|
|
3183
|
-
'bezier',
|
|
3184
|
-
'constant'
|
|
3185
|
-
])),
|
|
2499
|
+
interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
|
|
3186
2500
|
easing: zod_1.z.optional(zod_1.z.enum([
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
]))
|
|
2501
|
+
"ease",
|
|
2502
|
+
"easeIn",
|
|
2503
|
+
"easeOut",
|
|
2504
|
+
"easeInOut",
|
|
2505
|
+
"easeInQuad",
|
|
2506
|
+
"easeInCubic",
|
|
2507
|
+
"easeInQuart",
|
|
2508
|
+
"easeInQuint",
|
|
2509
|
+
"easeInSine",
|
|
2510
|
+
"easeInExpo",
|
|
2511
|
+
"easeInCirc",
|
|
2512
|
+
"easeInBack",
|
|
2513
|
+
"easeOutQuad",
|
|
2514
|
+
"easeOutCubic",
|
|
2515
|
+
"easeOutQuart",
|
|
2516
|
+
"easeOutQuint",
|
|
2517
|
+
"easeOutSine",
|
|
2518
|
+
"easeOutExpo",
|
|
2519
|
+
"easeOutCirc",
|
|
2520
|
+
"easeOutBack",
|
|
2521
|
+
"easeInOutQuad",
|
|
2522
|
+
"easeInOutCubic",
|
|
2523
|
+
"easeInOutQuart",
|
|
2524
|
+
"easeInOutQuint",
|
|
2525
|
+
"easeInOutSine",
|
|
2526
|
+
"easeInOutExpo",
|
|
2527
|
+
"easeInOutCirc",
|
|
2528
|
+
"easeInOutBack",
|
|
2529
|
+
])),
|
|
3216
2530
|
}).strict();
|
|
3217
2531
|
exports.tweenSchema = exports.tweenTweenSchema;
|
|
3218
2532
|
/**
|
|
3219
2533
|
* 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.
|
|
3220
2534
|
*/
|
|
3221
2535
|
exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
3222
|
-
type: zod_1.z.enum([
|
|
2536
|
+
type: zod_1.z.enum(["audio"]),
|
|
3223
2537
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
3224
2538
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3225
2539
|
return undefined; if (Array.isArray(v))
|
|
@@ -3228,16 +2542,13 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
3228
2542
|
return v;
|
|
3229
2543
|
return Number(v);
|
|
3230
2544
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3231
|
-
volume: zod_1.z.optional(zod_1.z.union([
|
|
3232
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2545
|
+
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3233
2546
|
return undefined; if (Array.isArray(v))
|
|
3234
2547
|
return v; if (typeof v === 'string') {
|
|
3235
2548
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3236
2549
|
return v;
|
|
3237
2550
|
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*\}\}$/)]),
|
|
3239
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3240
|
-
])),
|
|
2551
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3241
2552
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3242
2553
|
return undefined; if (Array.isArray(v))
|
|
3243
2554
|
return v; if (typeof v === 'string') {
|
|
@@ -3245,87 +2556,67 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
3245
2556
|
return v;
|
|
3246
2557
|
return Number(v);
|
|
3247
2558
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3248
|
-
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3249
|
-
'none',
|
|
3250
|
-
'fadeIn',
|
|
3251
|
-
'fadeOut',
|
|
3252
|
-
'fadeInFadeOut'
|
|
3253
|
-
]))
|
|
2559
|
+
effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
3254
2560
|
}).strict();
|
|
3255
2561
|
exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
|
|
3256
2562
|
/**
|
|
3257
2563
|
* Offsets the position of an asset horizontally or vertically by a relative distance.
|
|
3258
2564
|
*/
|
|
3259
2565
|
exports.offsetOffsetSchema = zod_1.z.object({
|
|
3260
|
-
x: zod_1.z.optional(zod_1.z.union([
|
|
3261
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2566
|
+
x: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3262
2567
|
return undefined; if (Array.isArray(v))
|
|
3263
2568
|
return v; if (typeof v === 'string') {
|
|
3264
2569
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3265
2570
|
return v;
|
|
3266
2571
|
return Number(v);
|
|
3267
|
-
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3268
|
-
|
|
3269
|
-
])),
|
|
3270
|
-
y: zod_1.z.optional(zod_1.z.union([
|
|
3271
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2572
|
+
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
2573
|
+
y: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3272
2574
|
return undefined; if (Array.isArray(v))
|
|
3273
2575
|
return v; if (typeof v === 'string') {
|
|
3274
2576
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3275
2577
|
return v;
|
|
3276
2578
|
return Number(v);
|
|
3277
|
-
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3278
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3279
|
-
]))
|
|
2579
|
+
} return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3280
2580
|
}).strict();
|
|
3281
2581
|
exports.offsetSchema = exports.offsetOffsetSchema;
|
|
3282
2582
|
/**
|
|
3283
2583
|
* Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
|
|
3284
2584
|
*/
|
|
3285
2585
|
exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
|
|
3286
|
-
angle: zod_1.z.optional(zod_1.z.union([
|
|
3287
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2586
|
+
angle: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3288
2587
|
return undefined; if (Array.isArray(v))
|
|
3289
2588
|
return v; if (typeof v === 'string') {
|
|
3290
2589
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3291
2590
|
return v;
|
|
3292
2591
|
return Number(v);
|
|
3293
|
-
} return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3294
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3295
|
-
]))
|
|
2592
|
+
} return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3296
2593
|
}).strict();
|
|
3297
2594
|
exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
|
|
3298
2595
|
/**
|
|
3299
2596
|
* 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.
|
|
3300
2597
|
*/
|
|
3301
2598
|
exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
|
|
3302
|
-
x: zod_1.z.optional(zod_1.z.union([
|
|
3303
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2599
|
+
x: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3304
2600
|
return undefined; if (Array.isArray(v))
|
|
3305
2601
|
return v; if (typeof v === 'string') {
|
|
3306
2602
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3307
2603
|
return v;
|
|
3308
2604
|
return Number(v);
|
|
3309
|
-
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3310
|
-
|
|
3311
|
-
])),
|
|
3312
|
-
y: zod_1.z.optional(zod_1.z.union([
|
|
3313
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2605
|
+
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
2606
|
+
y: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3314
2607
|
return undefined; if (Array.isArray(v))
|
|
3315
2608
|
return v; if (typeof v === 'string') {
|
|
3316
2609
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3317
2610
|
return v;
|
|
3318
2611
|
return Number(v);
|
|
3319
|
-
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3320
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3321
|
-
]))
|
|
2612
|
+
} return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3322
2613
|
}).strict();
|
|
3323
2614
|
exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
|
|
3324
2615
|
/**
|
|
3325
2616
|
* 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.
|
|
3326
2617
|
*/
|
|
3327
2618
|
exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
|
|
3328
|
-
type: zod_1.z.enum([
|
|
2619
|
+
type: zod_1.z.enum(["text-to-speech"]),
|
|
3329
2620
|
text: zod_1.z.string(),
|
|
3330
2621
|
voice: zod_1.z.string(),
|
|
3331
2622
|
language: zod_1.z.optional(zod_1.z.string()),
|
|
@@ -3337,16 +2628,13 @@ exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
|
|
|
3337
2628
|
return v;
|
|
3338
2629
|
return Number(v);
|
|
3339
2630
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3340
|
-
volume: zod_1.z.optional(zod_1.z.union([
|
|
3341
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2631
|
+
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3342
2632
|
return undefined; if (Array.isArray(v))
|
|
3343
2633
|
return v; if (typeof v === 'string') {
|
|
3344
2634
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3345
2635
|
return v;
|
|
3346
2636
|
return Number(v);
|
|
3347
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3348
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3349
|
-
])),
|
|
2637
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3350
2638
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3351
2639
|
return undefined; if (Array.isArray(v))
|
|
3352
2640
|
return v; if (typeof v === 'string') {
|
|
@@ -3354,12 +2642,7 @@ exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
|
|
|
3354
2642
|
return v;
|
|
3355
2643
|
return Number(v);
|
|
3356
2644
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3357
|
-
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3358
|
-
'none',
|
|
3359
|
-
'fadeIn',
|
|
3360
|
-
'fadeOut',
|
|
3361
|
-
'fadeInFadeOut'
|
|
3362
|
-
]))
|
|
2645
|
+
effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
3363
2646
|
}).strict();
|
|
3364
2647
|
exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema;
|
|
3365
2648
|
/**
|
|
@@ -3371,43 +2654,43 @@ exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSche
|
|
|
3371
2654
|
* @deprecated
|
|
3372
2655
|
*/
|
|
3373
2656
|
exports.titleassetTitleAssetSchema = zod_1.z.object({
|
|
3374
|
-
type: zod_1.z.enum([
|
|
2657
|
+
type: zod_1.z.enum(["title"]),
|
|
3375
2658
|
text: zod_1.z.string(),
|
|
3376
2659
|
style: zod_1.z.optional(zod_1.z.enum([
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
2660
|
+
"minimal",
|
|
2661
|
+
"blockbuster",
|
|
2662
|
+
"vogue",
|
|
2663
|
+
"sketchy",
|
|
2664
|
+
"skinny",
|
|
2665
|
+
"chunk",
|
|
2666
|
+
"chunkLight",
|
|
2667
|
+
"marker",
|
|
2668
|
+
"future",
|
|
2669
|
+
"subtitle",
|
|
3387
2670
|
])),
|
|
3388
2671
|
color: zod_1.z.optional(zod_1.z.string()),
|
|
3389
2672
|
size: zod_1.z.optional(zod_1.z.enum([
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
2673
|
+
"xx-small",
|
|
2674
|
+
"x-small",
|
|
2675
|
+
"small",
|
|
2676
|
+
"medium",
|
|
2677
|
+
"large",
|
|
2678
|
+
"x-large",
|
|
2679
|
+
"xx-large",
|
|
3397
2680
|
])),
|
|
3398
2681
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
3399
2682
|
position: zod_1.z.optional(zod_1.z.enum([
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
2683
|
+
"top",
|
|
2684
|
+
"topRight",
|
|
2685
|
+
"right",
|
|
2686
|
+
"bottomRight",
|
|
2687
|
+
"bottom",
|
|
2688
|
+
"bottomLeft",
|
|
2689
|
+
"left",
|
|
2690
|
+
"topLeft",
|
|
2691
|
+
"center",
|
|
3409
2692
|
])),
|
|
3410
|
-
offset: zod_1.z.optional(exports.offsetOffsetSchema)
|
|
2693
|
+
offset: zod_1.z.optional(exports.offsetOffsetSchema),
|
|
3411
2694
|
}).strict();
|
|
3412
2695
|
exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
|
|
3413
2696
|
/**
|
|
@@ -3416,14 +2699,14 @@ exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
|
|
|
3416
2699
|
exports.transformationTransformationSchema = zod_1.z.object({
|
|
3417
2700
|
rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
|
|
3418
2701
|
skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
|
|
3419
|
-
flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema)
|
|
2702
|
+
flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
|
|
3420
2703
|
}).strict();
|
|
3421
2704
|
exports.transformationSchema = exports.transformationTransformationSchema;
|
|
3422
2705
|
/**
|
|
3423
2706
|
* 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.
|
|
3424
2707
|
*/
|
|
3425
2708
|
exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
3426
|
-
type: zod_1.z.enum([
|
|
2709
|
+
type: zod_1.z.enum(["video"]),
|
|
3427
2710
|
src: zod_1.z.string().min(1).regex(/\S/),
|
|
3428
2711
|
transcode: zod_1.z.optional(zod_1.z.boolean()),
|
|
3429
2712
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3433,22 +2716,14 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
|
3433
2716
|
return v;
|
|
3434
2717
|
return Number(v);
|
|
3435
2718
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3436
|
-
volume: zod_1.z.optional(zod_1.z.union([
|
|
3437
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2719
|
+
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3438
2720
|
return undefined; if (Array.isArray(v))
|
|
3439
2721
|
return v; if (typeof v === 'string') {
|
|
3440
2722
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3441
2723
|
return v;
|
|
3442
2724
|
return Number(v);
|
|
3443
|
-
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3444
|
-
|
|
3445
|
-
])),
|
|
3446
|
-
volumeEffect: zod_1.z.optional(zod_1.z.enum([
|
|
3447
|
-
'none',
|
|
3448
|
-
'fadeIn',
|
|
3449
|
-
'fadeOut',
|
|
3450
|
-
'fadeInFadeOut'
|
|
3451
|
-
])),
|
|
2725
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
2726
|
+
volumeEffect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
3452
2727
|
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3453
2728
|
return undefined; if (Array.isArray(v))
|
|
3454
2729
|
return v; if (typeof v === 'string') {
|
|
@@ -3457,7 +2732,7 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
|
3457
2732
|
return Number(v);
|
|
3458
2733
|
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3459
2734
|
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
3460
|
-
chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
|
|
2735
|
+
chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
|
|
3461
2736
|
}).strict();
|
|
3462
2737
|
exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
|
|
3463
2738
|
/**
|
|
@@ -3494,7 +2769,7 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3494
2769
|
return v;
|
|
3495
2770
|
return Number(v);
|
|
3496
2771
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3497
|
-
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*\}\}$/)])
|
|
2772
|
+
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*\}\}$/)]),
|
|
3498
2773
|
]),
|
|
3499
2774
|
length: zod_1.z.union([
|
|
3500
2775
|
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3504,24 +2779,16 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3504
2779
|
return v;
|
|
3505
2780
|
return Number(v);
|
|
3506
2781
|
} return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3507
|
-
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*\}\}$/)])
|
|
2782
|
+
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*\}\}$/)]),
|
|
3508
2783
|
]),
|
|
3509
|
-
fit: zod_1.z.optional(zod_1.z.enum([
|
|
3510
|
-
|
|
3511
|
-
'contain',
|
|
3512
|
-
'crop',
|
|
3513
|
-
'none'
|
|
3514
|
-
])),
|
|
3515
|
-
scale: zod_1.z.optional(zod_1.z.union([
|
|
3516
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2784
|
+
fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
|
|
2785
|
+
scale: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3517
2786
|
return undefined; if (Array.isArray(v))
|
|
3518
2787
|
return v; if (typeof v === 'string') {
|
|
3519
2788
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3520
2789
|
return v;
|
|
3521
2790
|
return Number(v);
|
|
3522
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3523
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3524
|
-
])),
|
|
2791
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3525
2792
|
width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3526
2793
|
return undefined; if (Array.isArray(v))
|
|
3527
2794
|
return v; if (typeof v === 'string') {
|
|
@@ -3537,61 +2804,58 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3537
2804
|
return Number(v);
|
|
3538
2805
|
} return v; }), zod_1.z.number().gte(1).lte(2160)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3539
2806
|
position: zod_1.z.optional(zod_1.z.enum([
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
2807
|
+
"top",
|
|
2808
|
+
"topRight",
|
|
2809
|
+
"right",
|
|
2810
|
+
"bottomRight",
|
|
2811
|
+
"bottom",
|
|
2812
|
+
"bottomLeft",
|
|
2813
|
+
"left",
|
|
2814
|
+
"topLeft",
|
|
2815
|
+
"center",
|
|
3549
2816
|
])),
|
|
3550
2817
|
offset: zod_1.z.optional(exports.offsetOffsetSchema),
|
|
3551
2818
|
transition: zod_1.z.optional(exports.transitionTransitionSchema),
|
|
3552
2819
|
effect: zod_1.z.optional(zod_1.z.enum([
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
2820
|
+
"zoomIn",
|
|
2821
|
+
"zoomInSlow",
|
|
2822
|
+
"zoomInFast",
|
|
2823
|
+
"zoomOut",
|
|
2824
|
+
"zoomOutSlow",
|
|
2825
|
+
"zoomOutFast",
|
|
2826
|
+
"slideLeft",
|
|
2827
|
+
"slideLeftSlow",
|
|
2828
|
+
"slideLeftFast",
|
|
2829
|
+
"slideRight",
|
|
2830
|
+
"slideRightSlow",
|
|
2831
|
+
"slideRightFast",
|
|
2832
|
+
"slideUp",
|
|
2833
|
+
"slideUpSlow",
|
|
2834
|
+
"slideUpFast",
|
|
2835
|
+
"slideDown",
|
|
2836
|
+
"slideDownSlow",
|
|
2837
|
+
"slideDownFast",
|
|
3571
2838
|
])),
|
|
3572
2839
|
filter: zod_1.z.optional(zod_1.z.enum([
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
2840
|
+
"none",
|
|
2841
|
+
"blur",
|
|
2842
|
+
"boost",
|
|
2843
|
+
"contrast",
|
|
2844
|
+
"darken",
|
|
2845
|
+
"greyscale",
|
|
2846
|
+
"lighten",
|
|
2847
|
+
"muted",
|
|
2848
|
+
"negative",
|
|
3582
2849
|
])),
|
|
3583
|
-
opacity: zod_1.z.optional(zod_1.z.union([
|
|
3584
|
-
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2850
|
+
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3585
2851
|
return undefined; if (Array.isArray(v))
|
|
3586
2852
|
return v; if (typeof v === 'string') {
|
|
3587
2853
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3588
2854
|
return v;
|
|
3589
2855
|
return Number(v);
|
|
3590
|
-
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3591
|
-
zod_1.z.array(exports.tweenTweenSchema)
|
|
3592
|
-
])),
|
|
2856
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3593
2857
|
transform: zod_1.z.optional(exports.transformationTransformationSchema),
|
|
3594
|
-
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*\}\}$/)]))
|
|
2858
|
+
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*\}\}$/)])),
|
|
3595
2859
|
}).strict();
|
|
3596
2860
|
exports.clipSchema = exports.clipClipSchema;
|
|
3597
2861
|
// Clip schema with fit property filter for rich-text assets
|
|
@@ -3610,7 +2874,7 @@ const clipClipSchemaWithFitFilter = exports.clipClipSchema.transform((clip) => {
|
|
|
3610
2874
|
* 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.
|
|
3611
2875
|
*/
|
|
3612
2876
|
exports.trackTrackSchema = zod_1.z.object({
|
|
3613
|
-
clips: zod_1.z.array(clipClipSchemaWithFitFilter).min(1)
|
|
2877
|
+
clips: zod_1.z.array(clipClipSchemaWithFitFilter).min(1),
|
|
3614
2878
|
}).strict();
|
|
3615
2879
|
exports.trackSchema = exports.trackTrackSchema;
|
|
3616
2880
|
/**
|
|
@@ -3621,7 +2885,7 @@ exports.timelineTimelineSchema = zod_1.z.object({
|
|
|
3621
2885
|
background: zod_1.z.optional(zod_1.z.string()),
|
|
3622
2886
|
fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
|
|
3623
2887
|
tracks: zod_1.z.array(exports.trackTrackSchema).min(1),
|
|
3624
|
-
cache: zod_1.z.optional(zod_1.z.boolean())
|
|
2888
|
+
cache: zod_1.z.optional(zod_1.z.boolean()),
|
|
3625
2889
|
}).strict();
|
|
3626
2890
|
exports.timelineSchema = exports.timelineTimelineSchema;
|
|
3627
2891
|
/**
|
|
@@ -3632,12 +2896,8 @@ exports.editEditSchema = zod_1.z.object({
|
|
|
3632
2896
|
output: exports.outputOutputSchema,
|
|
3633
2897
|
merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
|
|
3634
2898
|
callback: zod_1.z.optional(zod_1.z.string()),
|
|
3635
|
-
disk: zod_1.z.optional(zod_1.z.enum([
|
|
3636
|
-
instance: zod_1.z.optional(zod_1.z.enum([
|
|
3637
|
-
's1',
|
|
3638
|
-
's2',
|
|
3639
|
-
'a1'
|
|
3640
|
-
]))
|
|
2899
|
+
disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
|
|
2900
|
+
instance: zod_1.z.optional(zod_1.z.enum(["s1", "s2", "a1"])),
|
|
3641
2901
|
}).strict();
|
|
3642
2902
|
exports.editSchema = exports.editEditSchema;
|
|
3643
2903
|
/**
|
|
@@ -3648,13 +2908,13 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
|
|
|
3648
2908
|
owner: zod_1.z.string(),
|
|
3649
2909
|
plan: zod_1.z.optional(zod_1.z.string()),
|
|
3650
2910
|
status: zod_1.z.enum([
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
2911
|
+
"queued",
|
|
2912
|
+
"fetching",
|
|
2913
|
+
"preprocessing",
|
|
2914
|
+
"rendering",
|
|
2915
|
+
"saving",
|
|
2916
|
+
"done",
|
|
2917
|
+
"failed",
|
|
3658
2918
|
]),
|
|
3659
2919
|
error: zod_1.z.optional(zod_1.z.string()),
|
|
3660
2920
|
duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3672,17 +2932,11 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
|
|
|
3672
2932
|
return Number(v);
|
|
3673
2933
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3674
2934
|
url: zod_1.z.optional(zod_1.z.string()),
|
|
3675
|
-
poster: zod_1.z.optional(zod_1.z.union([
|
|
3676
|
-
|
|
3677
|
-
zod_1.z.null()
|
|
3678
|
-
])),
|
|
3679
|
-
thumbnail: zod_1.z.optional(zod_1.z.union([
|
|
3680
|
-
zod_1.z.string(),
|
|
3681
|
-
zod_1.z.null()
|
|
3682
|
-
])),
|
|
2935
|
+
poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
2936
|
+
thumbnail: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
|
|
3683
2937
|
data: zod_1.z.optional(exports.editEditSchema),
|
|
3684
2938
|
created: zod_1.z.optional(zod_1.z.string()),
|
|
3685
|
-
updated: zod_1.z.optional(zod_1.z.string())
|
|
2939
|
+
updated: zod_1.z.optional(zod_1.z.string()),
|
|
3686
2940
|
}).strict();
|
|
3687
2941
|
exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
|
|
3688
2942
|
/**
|
|
@@ -3691,7 +2945,7 @@ exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataS
|
|
|
3691
2945
|
exports.renderresponseRenderResponseSchema = zod_1.z.object({
|
|
3692
2946
|
success: zod_1.z.boolean(),
|
|
3693
2947
|
message: zod_1.z.string(),
|
|
3694
|
-
response: exports.renderresponsedataRenderResponseDataSchema
|
|
2948
|
+
response: exports.renderresponsedataRenderResponseDataSchema,
|
|
3695
2949
|
}).strict();
|
|
3696
2950
|
exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
|
|
3697
2951
|
/**
|
|
@@ -3701,7 +2955,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
|
|
|
3701
2955
|
id: zod_1.z.string(),
|
|
3702
2956
|
name: zod_1.z.string(),
|
|
3703
2957
|
owner: zod_1.z.string(),
|
|
3704
|
-
template: exports.editEditSchema
|
|
2958
|
+
template: exports.editEditSchema,
|
|
3705
2959
|
}).strict();
|
|
3706
2960
|
exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
|
|
3707
2961
|
/**
|
|
@@ -3710,7 +2964,7 @@ exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplat
|
|
|
3710
2964
|
exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
|
|
3711
2965
|
success: zod_1.z.boolean(),
|
|
3712
2966
|
message: zod_1.z.string(),
|
|
3713
|
-
response: exports.templatedataresponsedataTemplateDataResponseDataSchema
|
|
2967
|
+
response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
|
|
3714
2968
|
}).strict();
|
|
3715
2969
|
exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
|
|
3716
2970
|
/**
|
|
@@ -3718,13 +2972,13 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
|
|
|
3718
2972
|
*/
|
|
3719
2973
|
exports.templateTemplateSchema = zod_1.z.object({
|
|
3720
2974
|
name: zod_1.z.string(),
|
|
3721
|
-
template: zod_1.z.optional(exports.editEditSchema)
|
|
2975
|
+
template: zod_1.z.optional(exports.editEditSchema),
|
|
3722
2976
|
}).strict();
|
|
3723
2977
|
exports.templateSchema = exports.templateTemplateSchema;
|
|
3724
2978
|
exports.postRenderRequest = zod_1.z.object({
|
|
3725
2979
|
body: exports.editEditSchema,
|
|
3726
2980
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3727
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
2981
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3728
2982
|
}).strict();
|
|
3729
2983
|
/**
|
|
3730
2984
|
* The queued render details
|
|
@@ -3733,12 +2987,14 @@ exports.postRenderResponse = exports.queuedresponseQueuedResponseSchema;
|
|
|
3733
2987
|
exports.getRenderRequest = zod_1.z.object({
|
|
3734
2988
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3735
2989
|
path: zod_1.z.object({
|
|
3736
|
-
id: zod_1.z
|
|
2990
|
+
id: zod_1.z
|
|
2991
|
+
.string()
|
|
2992
|
+
.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}$/),
|
|
3737
2993
|
}),
|
|
3738
2994
|
query: zod_1.z.optional(zod_1.z.object({
|
|
3739
2995
|
data: zod_1.z.optional(zod_1.z.boolean()),
|
|
3740
|
-
merged: zod_1.z.optional(zod_1.z.boolean())
|
|
3741
|
-
}))
|
|
2996
|
+
merged: zod_1.z.optional(zod_1.z.boolean()),
|
|
2997
|
+
})),
|
|
3742
2998
|
}).strict();
|
|
3743
2999
|
/**
|
|
3744
3000
|
* The render status details
|
|
@@ -3747,7 +3003,7 @@ exports.getRenderResponse = exports.renderresponseRenderResponseSchema;
|
|
|
3747
3003
|
exports.getTemplatesRequest = zod_1.z.object({
|
|
3748
3004
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3749
3005
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3750
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3006
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3751
3007
|
}).strict();
|
|
3752
3008
|
/**
|
|
3753
3009
|
* The list of templates stored against a users account
|
|
@@ -3756,7 +3012,7 @@ exports.getTemplatesResponse = exports.templatelistresponseTemplateListResponseS
|
|
|
3756
3012
|
exports.postTemplateRequest = zod_1.z.object({
|
|
3757
3013
|
body: exports.templateTemplateSchema,
|
|
3758
3014
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3759
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3015
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3760
3016
|
}).strict();
|
|
3761
3017
|
/**
|
|
3762
3018
|
* The saved template status including the id
|
|
@@ -3765,9 +3021,11 @@ exports.postTemplateResponse = exports.templateresponseTemplateResponseSchema;
|
|
|
3765
3021
|
exports.deleteTemplateRequest = zod_1.z.object({
|
|
3766
3022
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3767
3023
|
path: zod_1.z.object({
|
|
3768
|
-
id: zod_1.z
|
|
3024
|
+
id: zod_1.z
|
|
3025
|
+
.string()
|
|
3026
|
+
.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}$/),
|
|
3769
3027
|
}),
|
|
3770
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3028
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3771
3029
|
}).strict();
|
|
3772
3030
|
/**
|
|
3773
3031
|
* An empty response signifying the template has been deleted
|
|
@@ -3776,9 +3034,11 @@ exports.deleteTemplateResponse = zod_1.z.void();
|
|
|
3776
3034
|
exports.getTemplateRequest = zod_1.z.object({
|
|
3777
3035
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3778
3036
|
path: zod_1.z.object({
|
|
3779
|
-
id: zod_1.z
|
|
3037
|
+
id: zod_1.z
|
|
3038
|
+
.string()
|
|
3039
|
+
.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}$/),
|
|
3780
3040
|
}),
|
|
3781
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3041
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3782
3042
|
}).strict();
|
|
3783
3043
|
/**
|
|
3784
3044
|
* The template details including the [Edit](#tocs_edit)
|
|
@@ -3787,9 +3047,11 @@ exports.getTemplateResponse = exports.templatedataresponseTemplateDataResponseSc
|
|
|
3787
3047
|
exports.putTemplateRequest = zod_1.z.object({
|
|
3788
3048
|
body: exports.templateTemplateSchema,
|
|
3789
3049
|
path: zod_1.z.object({
|
|
3790
|
-
id: zod_1.z
|
|
3050
|
+
id: zod_1.z
|
|
3051
|
+
.string()
|
|
3052
|
+
.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}$/),
|
|
3791
3053
|
}),
|
|
3792
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3054
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3793
3055
|
}).strict();
|
|
3794
3056
|
/**
|
|
3795
3057
|
* Update a templates name and [Edit](#tocs_edit)
|
|
@@ -3798,7 +3060,7 @@ exports.putTemplateResponse = exports.templateresponseTemplateResponseSchema;
|
|
|
3798
3060
|
exports.postTemplateRenderRequest = zod_1.z.object({
|
|
3799
3061
|
body: exports.templaterenderTemplateRenderSchema,
|
|
3800
3062
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3801
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3063
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3802
3064
|
}).strict();
|
|
3803
3065
|
/**
|
|
3804
3066
|
* The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
|
|
@@ -3807,9 +3069,9 @@ exports.postTemplateRenderResponse = exports.queuedresponseQueuedResponseSchema;
|
|
|
3807
3069
|
exports.probeRequest = zod_1.z.object({
|
|
3808
3070
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3809
3071
|
path: zod_1.z.object({
|
|
3810
|
-
url: zod_1.z.string()
|
|
3072
|
+
url: zod_1.z.string(),
|
|
3811
3073
|
}),
|
|
3812
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3074
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3813
3075
|
}).strict();
|
|
3814
3076
|
/**
|
|
3815
3077
|
* FFprobe response formatted as JSON.
|
|
@@ -3818,9 +3080,11 @@ exports.probeResponse = exports.proberesponseProbeResponseSchema;
|
|
|
3818
3080
|
exports.deleteAssetRequest = zod_1.z.object({
|
|
3819
3081
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3820
3082
|
path: zod_1.z.object({
|
|
3821
|
-
id: zod_1.z
|
|
3083
|
+
id: zod_1.z
|
|
3084
|
+
.string()
|
|
3085
|
+
.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}$/),
|
|
3822
3086
|
}),
|
|
3823
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3087
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3824
3088
|
}).strict();
|
|
3825
3089
|
/**
|
|
3826
3090
|
* An empty response signifying the asset has been deleted
|
|
@@ -3829,9 +3093,11 @@ exports.deleteAssetResponse = zod_1.z.void();
|
|
|
3829
3093
|
exports.getAssetRequest = zod_1.z.object({
|
|
3830
3094
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3831
3095
|
path: zod_1.z.object({
|
|
3832
|
-
id: zod_1.z
|
|
3096
|
+
id: zod_1.z
|
|
3097
|
+
.string()
|
|
3098
|
+
.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}$/),
|
|
3833
3099
|
}),
|
|
3834
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3100
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3835
3101
|
}).strict();
|
|
3836
3102
|
/**
|
|
3837
3103
|
* Get asset by asset id
|
|
@@ -3840,9 +3106,11 @@ exports.getAssetResponse = exports.assetresponseAssetResponseSchema;
|
|
|
3840
3106
|
exports.getAssetByRenderIdRequest = zod_1.z.object({
|
|
3841
3107
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3842
3108
|
path: zod_1.z.object({
|
|
3843
|
-
id: zod_1.z
|
|
3109
|
+
id: zod_1.z
|
|
3110
|
+
.string()
|
|
3111
|
+
.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}$/),
|
|
3844
3112
|
}),
|
|
3845
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3113
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3846
3114
|
}).strict();
|
|
3847
3115
|
/**
|
|
3848
3116
|
* Get one or more assets by render id
|
|
@@ -3851,7 +3119,7 @@ exports.getAssetByRenderIdResponse = exports.assetrenderresponseAssetRenderRespo
|
|
|
3851
3119
|
exports.postServeAssetRequest = zod_1.z.object({
|
|
3852
3120
|
body: exports.transferTransferSchema,
|
|
3853
3121
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3854
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3122
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3855
3123
|
}).strict();
|
|
3856
3124
|
/**
|
|
3857
3125
|
* The transfer request details and status
|
|
@@ -3860,7 +3128,7 @@ exports.postServeAssetResponse = exports.transferresponseTransferResponseSchema;
|
|
|
3860
3128
|
exports.getSourcesRequest = zod_1.z.object({
|
|
3861
3129
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3862
3130
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3863
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3131
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3864
3132
|
}).strict();
|
|
3865
3133
|
/**
|
|
3866
3134
|
* The list of ingested source files stored against a users account
|
|
@@ -3869,7 +3137,7 @@ exports.getSourcesResponse = exports.sourcelistresponseSourceListResponseSchema;
|
|
|
3869
3137
|
exports.postSourceRequest = zod_1.z.object({
|
|
3870
3138
|
body: exports.sourceSourceSchema,
|
|
3871
3139
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3872
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3140
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3873
3141
|
}).strict();
|
|
3874
3142
|
/**
|
|
3875
3143
|
* The queued source file details
|
|
@@ -3878,9 +3146,11 @@ exports.postSourceResponse = exports.queuedsourceresponseQueuedSourceResponseSch
|
|
|
3878
3146
|
exports.deleteSourceRequest = zod_1.z.object({
|
|
3879
3147
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3880
3148
|
path: zod_1.z.object({
|
|
3881
|
-
id: zod_1.z
|
|
3149
|
+
id: zod_1.z
|
|
3150
|
+
.string()
|
|
3151
|
+
.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}$/),
|
|
3882
3152
|
}),
|
|
3883
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3153
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3884
3154
|
}).strict();
|
|
3885
3155
|
/**
|
|
3886
3156
|
* An empty response signifying the ingested source file has been deleted.
|
|
@@ -3889,9 +3159,11 @@ exports.deleteSourceResponse = zod_1.z.void();
|
|
|
3889
3159
|
exports.getSourceRequest = zod_1.z.object({
|
|
3890
3160
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3891
3161
|
path: zod_1.z.object({
|
|
3892
|
-
id: zod_1.z
|
|
3162
|
+
id: zod_1.z
|
|
3163
|
+
.string()
|
|
3164
|
+
.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}$/),
|
|
3893
3165
|
}),
|
|
3894
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3166
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3895
3167
|
}).strict();
|
|
3896
3168
|
/**
|
|
3897
3169
|
* Get source file details by id
|
|
@@ -3900,7 +3172,7 @@ exports.getSourceResponse = exports.sourceresponseSourceResponseSchema;
|
|
|
3900
3172
|
exports.getUploadSignedUrlRequest = zod_1.z.object({
|
|
3901
3173
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3902
3174
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3903
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3175
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3904
3176
|
}).strict();
|
|
3905
3177
|
/**
|
|
3906
3178
|
* The id and signed URL to upload to.
|
|
@@ -3909,7 +3181,7 @@ exports.getUploadSignedUrlResponse = exports.uploadresponseUploadResponseSchema;
|
|
|
3909
3181
|
exports.postGenerateAssetRequest = zod_1.z.object({
|
|
3910
3182
|
body: exports.generatedAssetGeneratedAssetSchema,
|
|
3911
3183
|
path: zod_1.z.optional(zod_1.z.never()),
|
|
3912
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3184
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3913
3185
|
}).strict();
|
|
3914
3186
|
/**
|
|
3915
3187
|
* The generated asset details
|
|
@@ -3918,9 +3190,11 @@ exports.postGenerateAssetResponse = exports.generatedAssetResponseGeneratedAsset
|
|
|
3918
3190
|
exports.getGeneratedAssetRequest = zod_1.z.object({
|
|
3919
3191
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
3920
3192
|
path: zod_1.z.object({
|
|
3921
|
-
id: zod_1.z
|
|
3193
|
+
id: zod_1.z
|
|
3194
|
+
.string()
|
|
3195
|
+
.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}$/),
|
|
3922
3196
|
}),
|
|
3923
|
-
query: zod_1.z.optional(zod_1.z.never())
|
|
3197
|
+
query: zod_1.z.optional(zod_1.z.never()),
|
|
3924
3198
|
}).strict();
|
|
3925
3199
|
/**
|
|
3926
3200
|
* The generated asset details
|