@shotstack/schemas 1.15.0 → 1.16.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 +197 -122
- package/dist/json-schema/edit.json +38 -134
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -3
- package/dist/schema.d.ts +208 -88
- package/dist/zod/zod.gen.cjs +78 -79
- package/dist/zod/zod.gen.d.ts +525 -2032
- package/dist/zod/zod.gen.js +72 -73
- package/dist/zod/zod.gen.ts +79 -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
|
*/
|
|
@@ -2193,34 +2200,27 @@ exports.tweenTweenSchema = zod_1.z.object({
|
|
|
2193
2200
|
exports.tweenSchema = exports.tweenTweenSchema;
|
|
2194
2201
|
/**
|
|
2195
2202
|
* The AudioAsset adds audio to a Clip. The audio can be sourced from a URL
|
|
2196
|
-
* (`src`)
|
|
2197
|
-
* `prompt` must be provided.
|
|
2203
|
+
* (`src`), generated from a text prompt (`prompt`), or both. At least one of
|
|
2204
|
+
* `src` or `prompt` must be provided.
|
|
2198
2205
|
*
|
|
2199
2206
|
* - **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
|
-
*
|
|
2207
|
+
* - **Generated speech:** set `prompt` to the spoken text and choose a
|
|
2208
|
+
* text-to-speech `model`; set the voice via `options`.
|
|
2209
|
+
* - **Generated music or SFX:** set `prompt` describing the sound and choose
|
|
2210
|
+
* a music generation `model`.
|
|
2211
|
+
* - **Both:** `src` acts as a preview placeholder while `prompt` drives
|
|
2212
|
+
* generation — the audio is regenerated from the prompt at render time.
|
|
2213
|
+
* Unchanged prompts and options resolve from the generation cache.
|
|
2214
|
+
* - Use `model` to choose the generator and `options` to configure it. The
|
|
2215
|
+
* generated `src` is filled in automatically.
|
|
2205
2216
|
*
|
|
2206
2217
|
*/
|
|
2207
2218
|
exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
2208
2219
|
type: zod_1.z.enum(['audio']),
|
|
2209
2220
|
src: zod_1.z.optional(zod_1.z.string().min(1).regex(/\S/)),
|
|
2210
2221
|
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
2222
|
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)),
|
|
2223
|
+
options: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())),
|
|
2224
2224
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2225
2225
|
return undefined; if (Array.isArray(v))
|
|
2226
2226
|
return v; if (typeof v === 'string') {
|
|
@@ -2441,52 +2441,25 @@ exports.transformationTransformationSchema = zod_1.z.object({
|
|
|
2441
2441
|
exports.transformationSchema = exports.transformationTransformationSchema;
|
|
2442
2442
|
/**
|
|
2443
2443
|
* The VideoAsset adds a video to a Clip. The video can be sourced from a URL
|
|
2444
|
-
* (`src`)
|
|
2445
|
-
*
|
|
2444
|
+
* (`src`), generated from a text prompt (`prompt`), or both. At least one of
|
|
2445
|
+
* `src` or `prompt` must be provided.
|
|
2446
2446
|
*
|
|
2447
2447
|
* - **Source URL:** set `src` to the URL of an mp4 (or compatible) video file.
|
|
2448
|
-
* - **Generated:** set `prompt` to describe the motion.
|
|
2449
|
-
*
|
|
2450
|
-
*
|
|
2448
|
+
* - **Generated:** set `prompt` to describe the motion. Choose a generator
|
|
2449
|
+
* with `model` and configure it with model-specific `options` (including a
|
|
2450
|
+
* starting image for image-to-video). The generated `src` is filled in
|
|
2451
2451
|
* automatically.
|
|
2452
|
+
* - **Both:** `src` acts as a preview placeholder while `prompt` drives
|
|
2453
|
+
* generation — the video is regenerated from the prompt at render time.
|
|
2454
|
+
* Unchanged prompts and options resolve from the generation cache.
|
|
2452
2455
|
*
|
|
2453
2456
|
*/
|
|
2454
2457
|
exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
2455
2458
|
type: zod_1.z.enum(['video']),
|
|
2456
2459
|
src: zod_1.z.optional(zod_1.z.string().min(1).regex(/\S/)),
|
|
2457
2460
|
prompt: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
2458
|
-
inputSrc: zod_1.z.optional(zod_1.z.string().min(1)),
|
|
2459
2461
|
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),
|
|
2462
|
+
options: zod_1.z.optional(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())),
|
|
2490
2463
|
transcode: zod_1.z.optional(zod_1.z.boolean()),
|
|
2491
2464
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2492
2465
|
return undefined; if (Array.isArray(v))
|
|
@@ -2889,6 +2862,32 @@ exports.probeRequest = zod_1.z.object({
|
|
|
2889
2862
|
* FFprobe response formatted as JSON.
|
|
2890
2863
|
*/
|
|
2891
2864
|
exports.probeResponse = exports.proberesponseProbeResponseSchema;
|
|
2865
|
+
exports.postGenerateRequest = zod_1.z.object({
|
|
2866
|
+
body: zod_1.z.optional(zod_1.z.object({
|
|
2867
|
+
asset: zod_1.z.union([
|
|
2868
|
+
exports.imageassetImageAssetSchema,
|
|
2869
|
+
exports.videoassetVideoAssetSchema,
|
|
2870
|
+
exports.audioassetAudioAssetSchema
|
|
2871
|
+
])
|
|
2872
|
+
})),
|
|
2873
|
+
path: zod_1.z.optional(zod_1.z.never()),
|
|
2874
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
2875
|
+
}).strict();
|
|
2876
|
+
/**
|
|
2877
|
+
* The generated asset was already cached and is immediately available.
|
|
2878
|
+
*/
|
|
2879
|
+
exports.postGenerateResponse = exports.generationresponseGenerationResponseSchema;
|
|
2880
|
+
exports.getGenerateRequest = zod_1.z.object({
|
|
2881
|
+
body: zod_1.z.optional(zod_1.z.never()),
|
|
2882
|
+
path: zod_1.z.object({
|
|
2883
|
+
id: zod_1.z.string()
|
|
2884
|
+
}),
|
|
2885
|
+
query: zod_1.z.optional(zod_1.z.never())
|
|
2886
|
+
}).strict();
|
|
2887
|
+
/**
|
|
2888
|
+
* The generation job has finished (done or failed).
|
|
2889
|
+
*/
|
|
2890
|
+
exports.getGenerateResponse = exports.generationresponseGenerationResponseSchema;
|
|
2892
2891
|
exports.deleteAssetRequest = zod_1.z.object({
|
|
2893
2892
|
body: zod_1.z.optional(zod_1.z.never()),
|
|
2894
2893
|
path: zod_1.z.object({
|