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