@shotstack/schemas 1.15.1 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.bundled.json +217 -122
- package/dist/json-schema/edit.json +62 -134
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +222 -88
- package/dist/zod/zod.gen.cjs +80 -79
- package/dist/zod/zod.gen.d.ts +837 -2032
- package/dist/zod/zod.gen.js +74 -73
- package/dist/zod/zod.gen.ts +81 -67
- package/package.json +1 -1
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = void 0;
|
|
4
|
+
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.azureBlobStorageDestinationAzureBlobStorageDestinationSchema = exports.azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema = exports.akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = exports.akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema = exports.cropSchema = exports.cropCropSchema = 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.generateidRootSchema = exports.generateRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
|
+
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.html5AssetSchema = exports.html5AssetHtml5AssetSchema = 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;
|
|
6
|
+
exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richcaptionpropertiesRichCaptionStyleSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.richcaptionpropertiesRichCaptionFontSchema = exports.richCaptionAnimationSchema = exports.richcaptionpropertiesRichCaptionAnimationSchema = exports.richCaptionActiveFontSchema = exports.richcaptionpropertiesRichCaptionActiveFontSchema = exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema = exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema = exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema = exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema = exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema = exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema = exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema = exports.probeResponseSchema = exports.proberesponseProbeResponseSchema = exports.generationresponseGenerationResponseSchema = exports.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = exports.posterSchema = exports.posterPosterSchema = exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = void 0;
|
|
7
|
+
exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richCaptionAssetSchema = exports.richcaptionassetRichCaptionAssetSchema = exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema = exports.richTextStrokeSchema = void 0;
|
|
8
|
+
exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = exports.thumbnailThumbnailSchema = exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = void 0;
|
|
9
|
+
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.getGenerateResponse = exports.getGenerateRequest = exports.postGenerateResponse = exports.postGenerateRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = void 0;
|
|
10
10
|
const zod_1 = require("zod");
|
|
11
11
|
exports.editRootSchema = zod_1.z.unknown();
|
|
12
12
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
13
13
|
exports.assetsRootSchema = zod_1.z.unknown();
|
|
14
14
|
exports.assetsidRootSchema = zod_1.z.unknown();
|
|
15
15
|
exports.assetsrenderidRootSchema = zod_1.z.unknown();
|
|
16
|
+
exports.generateRootSchema = zod_1.z.unknown();
|
|
17
|
+
exports.generateidRootSchema = zod_1.z.unknown();
|
|
16
18
|
exports.probeRootSchema = zod_1.z.unknown();
|
|
17
19
|
exports.renderRootSchema = zod_1.z.unknown();
|
|
18
20
|
exports.renderidRootSchema = zod_1.z.unknown();
|
|
@@ -474,12 +476,16 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
|
|
|
474
476
|
exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
|
|
475
477
|
/**
|
|
476
478
|
* The ImageAsset adds an image to a Clip. The image can be sourced from a URL
|
|
477
|
-
* (`src`)
|
|
478
|
-
* `prompt` must be provided.
|
|
479
|
+
* (`src`), generated from a text prompt (`prompt`), or both. At least one of
|
|
480
|
+
* `src` or `prompt` must be provided.
|
|
479
481
|
*
|
|
480
482
|
* - **Source URL:** set `src` to the publicly accessible URL of a jpg or png file.
|
|
481
|
-
* - **Generated:** set `prompt` to describe the image
|
|
482
|
-
*
|
|
483
|
+
* - **Generated:** set `prompt` to describe the image. Choose a generator with
|
|
484
|
+
* `model` and configure it with model-specific `options`; the engine fills
|
|
485
|
+
* `src` in automatically.
|
|
486
|
+
* - **Both:** `src` acts as a preview placeholder while `prompt` drives
|
|
487
|
+
* generation — the image is regenerated from the prompt at render time.
|
|
488
|
+
* Unchanged prompts and options resolve from the generation cache.
|
|
483
489
|
*
|
|
484
490
|
*/
|
|
485
491
|
exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
@@ -487,20 +493,7 @@ exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
|
487
493
|
src: zod_1.z.optional(zod_1.z.string().min(1).regex(/\S/)),
|
|
488
494
|
prompt: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
489
495
|
model: zod_1.z.optional(zod_1.z.string()),
|
|
490
|
-
|
|
491
|
-
'1K',
|
|
492
|
-
'2K',
|
|
493
|
-
'4K'
|
|
494
|
-
])),
|
|
495
|
-
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
496
|
-
'1:1',
|
|
497
|
-
'16:9',
|
|
498
|
-
'9:16',
|
|
499
|
-
'4:3',
|
|
500
|
-
'3:4',
|
|
501
|
-
'21:9',
|
|
502
|
-
'9:21'
|
|
503
|
-
])),
|
|
496
|
+
options: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())),
|
|
504
497
|
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
505
498
|
}).strict().superRefine((data, ctx) => {
|
|
506
499
|
var hasSrc = typeof data.src === "string" && data.src.trim().length > 0;
|
|
@@ -766,6 +759,20 @@ exports.assetresponseAssetResponseSchema = zod_1.z.object({
|
|
|
766
759
|
data: exports.assetresponsedataAssetResponseDataSchema
|
|
767
760
|
}).strict();
|
|
768
761
|
exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
|
|
762
|
+
/**
|
|
763
|
+
* The status of an on-demand asset generation job. Completed jobs include the public URL of the generated asset.
|
|
764
|
+
*/
|
|
765
|
+
exports.generationresponseGenerationResponseSchema = zod_1.z.object({
|
|
766
|
+
id: zod_1.z.string(),
|
|
767
|
+
status: zod_1.z.enum([
|
|
768
|
+
'queued',
|
|
769
|
+
'processing',
|
|
770
|
+
'done',
|
|
771
|
+
'failed'
|
|
772
|
+
]),
|
|
773
|
+
url: zod_1.z.optional(zod_1.z.string()),
|
|
774
|
+
error: zod_1.z.optional(zod_1.z.string())
|
|
775
|
+
}).strict();
|
|
769
776
|
/**
|
|
770
777
|
* The response received after a [probe request](#inspect-media) is submitted. The probe requests returns data from FFprobe formatted as JSON.
|
|
771
778
|
*/
|
|
@@ -900,6 +907,7 @@ exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
|
900
907
|
return Number(v);
|
|
901
908
|
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
902
909
|
weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
|
|
910
|
+
style: zod_1.z.optional(zod_1.z.enum(['normal', 'italic'])),
|
|
903
911
|
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'),
|
|
904
912
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
905
913
|
return undefined; if (Array.isArray(v))
|
|
@@ -1220,6 +1228,7 @@ exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
|
|
|
1220
1228
|
return Number(v);
|
|
1221
1229
|
} return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1222
1230
|
weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
|
|
1231
|
+
style: zod_1.z.optional(zod_1.z.enum(['normal', 'italic'])),
|
|
1223
1232
|
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'),
|
|
1224
1233
|
opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1225
1234
|
return undefined; if (Array.isArray(v))
|
|
@@ -2193,34 +2202,27 @@ exports.tweenTweenSchema = zod_1.z.object({
|
|
|
2193
2202
|
exports.tweenSchema = exports.tweenTweenSchema;
|
|
2194
2203
|
/**
|
|
2195
2204
|
* The AudioAsset adds audio to a Clip. The audio can be sourced from a URL
|
|
2196
|
-
* (`src`)
|
|
2197
|
-
* `prompt` must be provided.
|
|
2205
|
+
* (`src`), generated from a text prompt (`prompt`), or both. At least one of
|
|
2206
|
+
* `src` or `prompt` must be provided.
|
|
2198
2207
|
*
|
|
2199
2208
|
* - **Source URL:** set `src` to a publicly accessible audio URL (e.g. mp3).
|
|
2200
|
-
* - **Generated speech:** set `prompt` to the spoken text and
|
|
2201
|
-
*
|
|
2202
|
-
* - **Generated music or SFX:** set `prompt` describing the sound
|
|
2203
|
-
*
|
|
2204
|
-
*
|
|
2209
|
+
* - **Generated speech:** set `prompt` to the spoken text and choose a
|
|
2210
|
+
* text-to-speech `model`; set the voice via `options`.
|
|
2211
|
+
* - **Generated music or SFX:** set `prompt` describing the sound and choose
|
|
2212
|
+
* a music generation `model`.
|
|
2213
|
+
* - **Both:** `src` acts as a preview placeholder while `prompt` drives
|
|
2214
|
+
* generation — the audio is regenerated from the prompt at render time.
|
|
2215
|
+
* Unchanged prompts and options resolve from the generation cache.
|
|
2216
|
+
* - Use `model` to choose the generator and `options` to configure it. The
|
|
2217
|
+
* generated `src` is filled in automatically.
|
|
2205
2218
|
*
|
|
2206
2219
|
*/
|
|
2207
2220
|
exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
2208
2221
|
type: zod_1.z.enum(['audio']),
|
|
2209
2222
|
src: zod_1.z.optional(zod_1.z.string().min(1).regex(/\S/)),
|
|
2210
2223
|
prompt: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
2211
|
-
voice: zod_1.z.optional(zod_1.z.string()),
|
|
2212
|
-
language: zod_1.z.optional(zod_1.z.string()),
|
|
2213
|
-
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
2214
2224
|
model: zod_1.z.optional(zod_1.z.string()),
|
|
2215
|
-
|
|
2216
|
-
return undefined; if (Array.isArray(v))
|
|
2217
|
-
return v; if (typeof v === 'string') {
|
|
2218
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2219
|
-
return v;
|
|
2220
|
-
return Number(v);
|
|
2221
|
-
} return v; }), zod_1.z.number().gte(3000).lte(600000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2222
|
-
forceInstrumental: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
2223
|
-
compositionPlan: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
2225
|
+
options: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())),
|
|
2224
2226
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2225
2227
|
return undefined; if (Array.isArray(v))
|
|
2226
2228
|
return v; if (typeof v === 'string') {
|
|
@@ -2441,52 +2443,25 @@ exports.transformationTransformationSchema = zod_1.z.object({
|
|
|
2441
2443
|
exports.transformationSchema = exports.transformationTransformationSchema;
|
|
2442
2444
|
/**
|
|
2443
2445
|
* The VideoAsset adds a video to a Clip. The video can be sourced from a URL
|
|
2444
|
-
* (`src`)
|
|
2445
|
-
*
|
|
2446
|
+
* (`src`), generated from a text prompt (`prompt`), or both. At least one of
|
|
2447
|
+
* `src` or `prompt` must be provided.
|
|
2446
2448
|
*
|
|
2447
2449
|
* - **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.
|
|
2448
|
-
* - **Generated:** set `prompt` to describe the motion.
|
|
2449
|
-
*
|
|
2450
|
-
*
|
|
2450
|
+
* - **Generated:** set `prompt` to describe the motion. Choose a generator
|
|
2451
|
+
* with `model` and configure it with model-specific `options` (including a
|
|
2452
|
+
* starting image for image-to-video). The generated `src` is filled in
|
|
2451
2453
|
* automatically.
|
|
2454
|
+
* - **Both:** `src` acts as a preview placeholder while `prompt` drives
|
|
2455
|
+
* generation — the video is regenerated from the prompt at render time.
|
|
2456
|
+
* Unchanged prompts and options resolve from the generation cache.
|
|
2452
2457
|
*
|
|
2453
2458
|
*/
|
|
2454
2459
|
exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
2455
2460
|
type: zod_1.z.enum(['video']),
|
|
2456
2461
|
src: zod_1.z.optional(zod_1.z.string().min(1).regex(/\S/)),
|
|
2457
2462
|
prompt: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
2458
|
-
inputSrc: zod_1.z.optional(zod_1.z.string().min(1)),
|
|
2459
2463
|
model: zod_1.z.optional(zod_1.z.string()),
|
|
2460
|
-
|
|
2461
|
-
'480p',
|
|
2462
|
-
'720p',
|
|
2463
|
-
'1080p'
|
|
2464
|
-
])),
|
|
2465
|
-
duration: zod_1.z.optional(zod_1.z.enum([
|
|
2466
|
-
'auto',
|
|
2467
|
-
'4',
|
|
2468
|
-
'5',
|
|
2469
|
-
'6',
|
|
2470
|
-
'7',
|
|
2471
|
-
'8',
|
|
2472
|
-
'9',
|
|
2473
|
-
'10',
|
|
2474
|
-
'11',
|
|
2475
|
-
'12',
|
|
2476
|
-
'13',
|
|
2477
|
-
'14',
|
|
2478
|
-
'15'
|
|
2479
|
-
])),
|
|
2480
|
-
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
2481
|
-
'1:1',
|
|
2482
|
-
'16:9',
|
|
2483
|
-
'9:16',
|
|
2484
|
-
'4:3',
|
|
2485
|
-
'3:4',
|
|
2486
|
-
'21:9',
|
|
2487
|
-
'9:21'
|
|
2488
|
-
])),
|
|
2489
|
-
generateAudio: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
2464
|
+
options: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())),
|
|
2490
2465
|
transcode: zod_1.z.optional(zod_1.z.boolean()),
|
|
2491
2466
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2492
2467
|
return undefined; if (Array.isArray(v))
|
|
@@ -2889,6 +2864,32 @@ exports.probeRequest = zod_1.z.object({
|
|
|
2889
2864
|
* FFprobe response formatted as JSON.
|
|
2890
2865
|
*/
|
|
2891
2866
|
exports.probeResponse = exports.proberesponseProbeResponseSchema;
|
|
2867
|
+
exports.postGenerateRequest = zod_1.z.object({
|
|
2868
|
+
body: zod_1.z.optional(zod_1.z.object({
|
|
2869
|
+
asset: zod_1.z.union([
|
|
2870
|
+
exports.imageassetImageAssetSchema,
|
|
2871
|
+
exports.videoassetVideoAssetSchema,
|
|
2872
|
+
exports.audioassetAudioAssetSchema
|
|
2873
|
+
])
|
|
2874
|
+
})),
|
|
2875
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2876
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
2877
|
+
}).strict();
|
|
2878
|
+
/**
|
|
2879
|
+
* The generated asset was already cached and is immediately available.
|
|
2880
|
+
*/
|
|
2881
|
+
exports.postGenerateResponse = exports.generationresponseGenerationResponseSchema;
|
|
2882
|
+
exports.getGenerateRequest = zod_1.z.object({
|
|
2883
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2884
|
+
path: zod_1.z.object({
|
|
2885
|
+
id: zod_1.z.string()
|
|
2886
|
+
}),
|
|
2887
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
2888
|
+
}).strict();
|
|
2889
|
+
/**
|
|
2890
|
+
* The generation job has finished (done or failed).
|
|
2891
|
+
*/
|
|
2892
|
+
exports.getGenerateResponse = exports.generationresponseGenerationResponseSchema;
|
|
2892
2893
|
exports.deleteAssetRequest = zod_1.z.object({
|
|
2893
2894
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
2894
2895
|
path: zod_1.z.object({
|