@shotstack/schemas 1.23.4 → 1.24.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.bundled.json +608 -0
- package/dist/json-schema/edit.json +631 -0
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +132 -0
- package/dist/zod/zod.gen.cjs +292 -7
- package/dist/zod/zod.gen.d.ts +51888 -23587
- package/dist/zod/zod.gen.js +286 -1
- package/dist/zod/zod.gen.ts +196 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -696,6 +696,8 @@ export interface components {
|
|
|
696
696
|
* @enum {string}
|
|
697
697
|
*/
|
|
698
698
|
filter?: "none" | "blur" | "boost" | "contrast" | "darken" | "greyscale" | "lighten" | "muted" | "negative";
|
|
699
|
+
/** @description A list of filters to apply to the Clip, in the order they appear. Each filter has a `type` and its own properties. The same type can be used more than once and numeric properties can be animated with [Tween](./#tocs_tween) objects. If `filter` is also set, the filters in this list are applied before it. */
|
|
700
|
+
filters?: components["schemas"]["Filter"][];
|
|
699
701
|
/** @description Offset an asset on the horizontal axis (left or right). Use a number or an array of [Tween](./#tocs_tween) objects to create a custom animation. */
|
|
700
702
|
opacity?: number | components["schemas"]["Tween"][];
|
|
701
703
|
/** @description A transformation lets you modify the visual properties of a clip. Available transformations are <b>rotate</b>, <b>skew</b> and <b>flip</b>. Transformations can be combined to create interesting new shapes and effects. */
|
|
@@ -998,6 +1000,7 @@ export interface components {
|
|
|
998
1000
|
* @enum {string}
|
|
999
1001
|
*/
|
|
1000
1002
|
effect?: "none" | "fadeIn" | "fadeOut" | "fadeInFadeOut";
|
|
1003
|
+
duck?: components["schemas"]["Duck"];
|
|
1001
1004
|
};
|
|
1002
1005
|
/**
|
|
1003
1006
|
* @description The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.
|
|
@@ -1738,6 +1741,17 @@ export interface components {
|
|
|
1738
1741
|
*/
|
|
1739
1742
|
right?: number;
|
|
1740
1743
|
};
|
|
1744
|
+
/** @description Lowers the clip's volume while other clips play and restores it afterwards, for example to keep music under a voiceover. The volume ramps down just before each referenced clip starts and back up after it ends. Requires a numeric `volume` on the clip and cannot be combined with `speed`. */
|
|
1745
|
+
Duck: {
|
|
1746
|
+
/** @description The clip or clips to duck under, each referenced by its alias in the form `alias://clip-name`. */
|
|
1747
|
+
under: string | string[];
|
|
1748
|
+
/**
|
|
1749
|
+
* Format: float
|
|
1750
|
+
* @description The volume while ducked, from 0 to 1 (defaults to 0.2). It must be lower than the clip's own volume.
|
|
1751
|
+
* @example 0.2
|
|
1752
|
+
*/
|
|
1753
|
+
volume?: number;
|
|
1754
|
+
};
|
|
1741
1755
|
/** @description Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects. */
|
|
1742
1756
|
Transformation: {
|
|
1743
1757
|
rotate?: components["schemas"]["RotateTransformation"];
|
|
@@ -2312,6 +2326,124 @@ export interface components {
|
|
|
2312
2326
|
*/
|
|
2313
2327
|
easing?: "ease" | "easeIn" | "easeOut" | "easeInOut" | "easeInQuad" | "easeInCubic" | "easeInQuart" | "easeInQuint" | "easeInSine" | "easeInExpo" | "easeInCirc" | "easeInBack" | "easeOutQuad" | "easeOutCubic" | "easeOutQuart" | "easeOutQuint" | "easeOutSine" | "easeOutExpo" | "easeOutCirc" | "easeOutBack" | "easeInOutQuad" | "easeInOutCubic" | "easeInOutQuart" | "easeInOutQuint" | "easeInOutSine" | "easeInOutExpo" | "easeInOutCirc" | "easeInOutBack";
|
|
2314
2328
|
};
|
|
2329
|
+
/** @description A filter that adjusts the look of a Clip. Choose from one of the available filter types below. Keyframe values outside a field's range are limited to that range. */
|
|
2330
|
+
Filter: components["schemas"]["BrightnessFilter"] | components["schemas"]["ContrastFilter"] | components["schemas"]["SaturationFilter"] | components["schemas"]["HueFilter"] | components["schemas"]["GradeFilter"] | components["schemas"]["BlurFilter"] | components["schemas"]["SharpenFilter"] | components["schemas"]["PixelateFilter"] | components["schemas"]["RgbSplitFilter"] | components["schemas"]["NegativeFilter"];
|
|
2331
|
+
/** @description Lightens or darkens the clip. */
|
|
2332
|
+
BrightnessFilter: {
|
|
2333
|
+
/**
|
|
2334
|
+
* @description The filter type - set to `brightness`. (enum property replaced by openapi-typescript)
|
|
2335
|
+
* @enum {string}
|
|
2336
|
+
*/
|
|
2337
|
+
type: "brightness";
|
|
2338
|
+
/** @description Sets the brightness shift of the clip. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2339
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2340
|
+
};
|
|
2341
|
+
/** @description Increases or decreases the difference between the light and dark areas of the clip. */
|
|
2342
|
+
ContrastFilter: {
|
|
2343
|
+
/**
|
|
2344
|
+
* @description The filter type - set to `contrast`. (enum property replaced by openapi-typescript)
|
|
2345
|
+
* @enum {string}
|
|
2346
|
+
*/
|
|
2347
|
+
type: "contrast";
|
|
2348
|
+
/** @description Sets the contrast of the clip. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2349
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2350
|
+
};
|
|
2351
|
+
/** @description Increases or decreases the intensity of the colors in the clip. */
|
|
2352
|
+
SaturationFilter: {
|
|
2353
|
+
/**
|
|
2354
|
+
* @description The filter type - set to `saturation`. (enum property replaced by openapi-typescript)
|
|
2355
|
+
* @enum {string}
|
|
2356
|
+
*/
|
|
2357
|
+
type: "saturation";
|
|
2358
|
+
/** @description Sets the saturation of the clip. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2359
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2360
|
+
};
|
|
2361
|
+
/** @description Rotates the hues of the clip around the color wheel. */
|
|
2362
|
+
HueFilter: {
|
|
2363
|
+
/**
|
|
2364
|
+
* @description The filter type - set to `hue`. (enum property replaced by openapi-typescript)
|
|
2365
|
+
* @enum {string}
|
|
2366
|
+
*/
|
|
2367
|
+
type: "hue";
|
|
2368
|
+
/** @description Sets the hue rotation of the clip in degrees. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2369
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2370
|
+
};
|
|
2371
|
+
/** @description Applies several grading adjustments at once: exposure, temperature, tint, highlights, shadows and vibrance. Every property is optional and an omitted property leaves the clip unchanged. */
|
|
2372
|
+
GradeFilter: {
|
|
2373
|
+
/**
|
|
2374
|
+
* @description The filter type - set to `grade`. (enum property replaced by openapi-typescript)
|
|
2375
|
+
* @enum {string}
|
|
2376
|
+
*/
|
|
2377
|
+
type: "grade";
|
|
2378
|
+
/** @description Sets the exposure of the clip in stops. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2379
|
+
exposure?: number | components["schemas"]["Tween"][];
|
|
2380
|
+
/** @description Sets the white balance of the clip. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2381
|
+
temperature?: number | components["schemas"]["Tween"][];
|
|
2382
|
+
/** @description Sets the tint of the clip between green and magenta. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2383
|
+
tint?: number | components["schemas"]["Tween"][];
|
|
2384
|
+
/** @description Adjusts the brightest areas of the clip. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2385
|
+
highlights?: number | components["schemas"]["Tween"][];
|
|
2386
|
+
/** @description Adjusts the darkest areas of the clip. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2387
|
+
shadows?: number | components["schemas"]["Tween"][];
|
|
2388
|
+
/** @description Adjusts the saturation of the clip, with a stronger effect on muted colors than on colors that are already vivid. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2389
|
+
vibrance?: number | components["schemas"]["Tween"][];
|
|
2390
|
+
};
|
|
2391
|
+
/** @description Blurs the clip. Set `value` to blur both axes equally, or set `x` and `y` to blur each axis separately. */
|
|
2392
|
+
BlurFilter: {
|
|
2393
|
+
/**
|
|
2394
|
+
* @description The filter type - set to `blur`. (enum property replaced by openapi-typescript)
|
|
2395
|
+
* @enum {string}
|
|
2396
|
+
*/
|
|
2397
|
+
type: "blur";
|
|
2398
|
+
/** @description Sets the blur radius in pixels, measured on the clip before it is scaled to fit the viewport. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2399
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2400
|
+
/** @description Sets the horizontal blur radius in pixels, overriding `value` on that axis. When omitted, `value` is used. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2401
|
+
x?: number | components["schemas"]["Tween"][];
|
|
2402
|
+
/** @description Sets the vertical blur radius in pixels, overriding `value` on that axis. When omitted, `value` is used. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2403
|
+
y?: number | components["schemas"]["Tween"][];
|
|
2404
|
+
};
|
|
2405
|
+
/** @description Sharpens the clip. */
|
|
2406
|
+
SharpenFilter: {
|
|
2407
|
+
/**
|
|
2408
|
+
* @description The filter type - set to `sharpen`. (enum property replaced by openapi-typescript)
|
|
2409
|
+
* @enum {string}
|
|
2410
|
+
*/
|
|
2411
|
+
type: "sharpen";
|
|
2412
|
+
/** @description Sets the amount of sharpening. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2413
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2414
|
+
/** @description Sets the sharpening radius in pixels for a 720p frame. It scales with the frame height. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2415
|
+
radius?: number | components["schemas"]["Tween"][];
|
|
2416
|
+
};
|
|
2417
|
+
/** @description Turns the clip into blocky pixels. */
|
|
2418
|
+
PixelateFilter: {
|
|
2419
|
+
/**
|
|
2420
|
+
* @description The filter type - set to `pixelate`. (enum property replaced by openapi-typescript)
|
|
2421
|
+
* @enum {string}
|
|
2422
|
+
*/
|
|
2423
|
+
type: "pixelate";
|
|
2424
|
+
/** @description Sets the strength of the pixelation. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2425
|
+
value?: number | components["schemas"]["Tween"][];
|
|
2426
|
+
};
|
|
2427
|
+
/** @description Offsets the red and blue channels in opposite directions to create a color fringing effect. */
|
|
2428
|
+
RgbSplitFilter: {
|
|
2429
|
+
/**
|
|
2430
|
+
* @description The filter type - set to `rgbSplit`. (enum property replaced by openapi-typescript)
|
|
2431
|
+
* @enum {string}
|
|
2432
|
+
*/
|
|
2433
|
+
type: "rgbSplit";
|
|
2434
|
+
/** @description Sets the horizontal offset of the red and blue channels as a fraction of the clip's frame. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2435
|
+
x?: number | components["schemas"]["Tween"][];
|
|
2436
|
+
/** @description Sets the vertical offset of the red and blue channels as a fraction of the clip's frame. Use a number or an array of [Tween](./#tocs_tween) objects to change it over time. */
|
|
2437
|
+
y?: number | components["schemas"]["Tween"][];
|
|
2438
|
+
};
|
|
2439
|
+
/** @description Inverts the clip, turning light areas dark and dark areas light. It has no properties other than `type` and cannot be animated. */
|
|
2440
|
+
NegativeFilter: {
|
|
2441
|
+
/**
|
|
2442
|
+
* @description The filter type - set to `negative`. (enum property replaced by openapi-typescript)
|
|
2443
|
+
* @enum {string}
|
|
2444
|
+
*/
|
|
2445
|
+
type: "negative";
|
|
2446
|
+
};
|
|
2315
2447
|
/** @description A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `"{{NAME}}"`. A placeholder can be used for any value within the JSON edit. */
|
|
2316
2448
|
MergeField: {
|
|
2317
2449
|
/**
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
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.modelsidRootSchema = exports.modelsRootSchema = exports.generatequoteRootSchema = exports.generateidRootSchema = exports.generateRootSchema = exports.assetsrenderidRootSchema = exports.assetsidRootSchema = exports.assetsRootSchema = exports.sourceRootSchema = exports.editRootSchema = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
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.getModelResponse = void 0;
|
|
5
|
+
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.generationRequestSchema = exports.generationrequestGenerationRequestSchema = exports.generationModelSchema = exports.generationmodelGenerationModelSchema = exports.generationAssetSchema = exports.generationassetGenerationAssetSchema = exports.fontSchema = exports.fontFontSchema = exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema = exports.duckSchema = exports.duckDuckSchema = exports.destinationsSchema = exports.destinationsDestinationsSchema = exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema = exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = exports.tiktokDestinationTiktokDestinationSchema = exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema = exports.s3DestinationSchema = void 0;
|
|
6
|
+
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.generationResponseSchema = exports.generationresponseGenerationResponseSchema = exports.generationQuoteSchema = exports.generationquoteGenerationQuoteSchema = exports.generationModelListResponseSchema = exports.generationmodellistresponseGenerationModelListResponseSchema = exports.generationModelErrorResponseSchema = exports.generationmodelerrorresponseGenerationModelErrorResponseSchema = exports.generationErrorResponseSchema = exports.generationerrorresponseGenerationErrorResponseSchema = 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.negativeFilterSchema = exports.negativefilterNegativeFilterSchema = 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 = void 0;
|
|
7
|
+
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 = exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richTextPaddingSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richcaptionpropertiesRichCaptionStyleSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richTextBorderSchema = 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 = void 0;
|
|
8
|
+
exports.gradefilterGradeFilterSchema = exports.contrastFilterSchema = exports.contrastfilterContrastFilterSchema = exports.brightnessFilterSchema = exports.brightnessfilterBrightnessFilterSchema = exports.blurFilterSchema = exports.blurfilterBlurFilterSchema = 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 = 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 = void 0;
|
|
9
|
+
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.filterSchema = exports.filterFilterSchema = exports.sharpenFilterSchema = exports.sharpenfilterSharpenFilterSchema = exports.saturationFilterSchema = exports.saturationfilterSaturationFilterSchema = exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.rgbSplitFilterSchema = exports.rgbsplitfilterRgbSplitFilterSchema = exports.pixelateFilterSchema = exports.pixelatefilterPixelateFilterSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.hueFilterSchema = exports.huefilterHueFilterSchema = exports.gradeFilterSchema = void 0;
|
|
10
|
+
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.getModelResponse = exports.getModelRequest = exports.getModelsResponse = exports.getModelsRequest = exports.getGenerateResponse = exports.getGenerateRequest = exports.postGenerateQuoteResponse = exports.postGenerateQuoteRequest = 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 = void 0;
|
|
11
11
|
const zod_1 = require("zod");
|
|
12
12
|
exports.editRootSchema = zod_1.z.unknown();
|
|
13
13
|
exports.sourceRootSchema = zod_1.z.unknown();
|
|
@@ -426,6 +426,23 @@ exports.destinationsDestinationsSchema = zod_1.z.discriminatedUnion("provider",
|
|
|
426
426
|
exports.azureBlobStorageDestinationAzureBlobStorageDestinationSchema
|
|
427
427
|
]);
|
|
428
428
|
exports.destinationsSchema = exports.destinationsDestinationsSchema;
|
|
429
|
+
/**
|
|
430
|
+
* Lowers the clip's volume while other clips play and restores it afterwards, for example to keep music under a voiceover. The volume ramps down just before each referenced clip starts and back up after it ends. Requires a numeric `volume` on the clip and cannot be combined with `speed`.
|
|
431
|
+
*/
|
|
432
|
+
exports.duckDuckSchema = zod_1.z.object({
|
|
433
|
+
under: zod_1.z.union([
|
|
434
|
+
zod_1.z.union([zod_1.z.string().regex(/^alias:\/\/[A-Za-z0-9_-]+$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
435
|
+
zod_1.z.array(zod_1.z.union([zod_1.z.string().regex(/^alias:\/\/[A-Za-z0-9_-]+$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).min(1)
|
|
436
|
+
]),
|
|
437
|
+
volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
438
|
+
return undefined; if (Array.isArray(v))
|
|
439
|
+
return v; if (typeof v === 'string') {
|
|
440
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
441
|
+
return v;
|
|
442
|
+
return Number(v);
|
|
443
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
444
|
+
}).strict();
|
|
445
|
+
exports.duckSchema = exports.duckDuckSchema;
|
|
429
446
|
/**
|
|
430
447
|
* Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.
|
|
431
448
|
*/
|
|
@@ -761,6 +778,13 @@ exports.mergefieldMergeFieldSchema = zod_1.z.object({
|
|
|
761
778
|
replace: zod_1.z.unknown()
|
|
762
779
|
}).strict();
|
|
763
780
|
exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
|
|
781
|
+
/**
|
|
782
|
+
* Inverts the clip, turning light areas dark and dark areas light. It has no properties other than `type` and cannot be animated.
|
|
783
|
+
*/
|
|
784
|
+
exports.negativefilterNegativeFilterSchema = zod_1.z.object({
|
|
785
|
+
type: zod_1.z.enum(['negative'])
|
|
786
|
+
}).strict();
|
|
787
|
+
exports.negativeFilterSchema = exports.negativefilterNegativeFilterSchema;
|
|
764
788
|
/**
|
|
765
789
|
* Generate a poster image for the video at a specific point from the timeline. The poster image size will match the size of the output video.
|
|
766
790
|
*/
|
|
@@ -2381,7 +2405,8 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
2381
2405
|
'fadeIn',
|
|
2382
2406
|
'fadeOut',
|
|
2383
2407
|
'fadeInFadeOut'
|
|
2384
|
-
]))
|
|
2408
|
+
])),
|
|
2409
|
+
duck: zod_1.z.optional(exports.duckDuckSchema)
|
|
2385
2410
|
}).strict().superRefine((data, ctx) => {
|
|
2386
2411
|
var hasSrc = typeof data.src === "string" && data.src.trim().length > 0;
|
|
2387
2412
|
var hasPrompt = typeof data.prompt === "string" && data.prompt.trim().length > 0;
|
|
@@ -2394,6 +2419,161 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
2394
2419
|
}
|
|
2395
2420
|
});
|
|
2396
2421
|
exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
|
|
2422
|
+
/**
|
|
2423
|
+
* Blurs the clip. Set `value` to blur both axes equally, or set `x` and `y` to blur each axis separately.
|
|
2424
|
+
*/
|
|
2425
|
+
exports.blurfilterBlurFilterSchema = zod_1.z.object({
|
|
2426
|
+
type: zod_1.z.enum(['blur']),
|
|
2427
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2428
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2429
|
+
return undefined; if (Array.isArray(v))
|
|
2430
|
+
return v; if (typeof v === 'string') {
|
|
2431
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2432
|
+
return v;
|
|
2433
|
+
return Number(v);
|
|
2434
|
+
} return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2435
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2436
|
+
])),
|
|
2437
|
+
x: zod_1.z.optional(zod_1.z.union([
|
|
2438
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2439
|
+
return undefined; if (Array.isArray(v))
|
|
2440
|
+
return v; if (typeof v === 'string') {
|
|
2441
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2442
|
+
return v;
|
|
2443
|
+
return Number(v);
|
|
2444
|
+
} return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2445
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2446
|
+
])),
|
|
2447
|
+
y: zod_1.z.optional(zod_1.z.union([
|
|
2448
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2449
|
+
return undefined; if (Array.isArray(v))
|
|
2450
|
+
return v; if (typeof v === 'string') {
|
|
2451
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2452
|
+
return v;
|
|
2453
|
+
return Number(v);
|
|
2454
|
+
} return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2455
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2456
|
+
]))
|
|
2457
|
+
}).strict();
|
|
2458
|
+
exports.blurFilterSchema = exports.blurfilterBlurFilterSchema;
|
|
2459
|
+
/**
|
|
2460
|
+
* Lightens or darkens the clip.
|
|
2461
|
+
*/
|
|
2462
|
+
exports.brightnessfilterBrightnessFilterSchema = zod_1.z.object({
|
|
2463
|
+
type: zod_1.z.enum(['brightness']),
|
|
2464
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2465
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2466
|
+
return undefined; if (Array.isArray(v))
|
|
2467
|
+
return v; if (typeof v === 'string') {
|
|
2468
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2469
|
+
return v;
|
|
2470
|
+
return Number(v);
|
|
2471
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2472
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2473
|
+
]))
|
|
2474
|
+
}).strict();
|
|
2475
|
+
exports.brightnessFilterSchema = exports.brightnessfilterBrightnessFilterSchema;
|
|
2476
|
+
/**
|
|
2477
|
+
* Increases or decreases the difference between the light and dark areas of the clip.
|
|
2478
|
+
*/
|
|
2479
|
+
exports.contrastfilterContrastFilterSchema = zod_1.z.object({
|
|
2480
|
+
type: zod_1.z.enum(['contrast']),
|
|
2481
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2482
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2483
|
+
return undefined; if (Array.isArray(v))
|
|
2484
|
+
return v; if (typeof v === 'string') {
|
|
2485
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2486
|
+
return v;
|
|
2487
|
+
return Number(v);
|
|
2488
|
+
} return v; }), zod_1.z.number().gte(0).lte(4)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2489
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2490
|
+
]))
|
|
2491
|
+
}).strict();
|
|
2492
|
+
exports.contrastFilterSchema = exports.contrastfilterContrastFilterSchema;
|
|
2493
|
+
/**
|
|
2494
|
+
* Applies several grading adjustments at once: exposure, temperature, tint, highlights, shadows and vibrance. Every property is optional and an omitted property leaves the clip unchanged.
|
|
2495
|
+
*/
|
|
2496
|
+
exports.gradefilterGradeFilterSchema = zod_1.z.object({
|
|
2497
|
+
type: zod_1.z.enum(['grade']),
|
|
2498
|
+
exposure: zod_1.z.optional(zod_1.z.union([
|
|
2499
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2500
|
+
return undefined; if (Array.isArray(v))
|
|
2501
|
+
return v; if (typeof v === 'string') {
|
|
2502
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2503
|
+
return v;
|
|
2504
|
+
return Number(v);
|
|
2505
|
+
} return v; }), zod_1.z.number().gte(-4).lte(4)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2506
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2507
|
+
])),
|
|
2508
|
+
temperature: zod_1.z.optional(zod_1.z.union([
|
|
2509
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2510
|
+
return undefined; if (Array.isArray(v))
|
|
2511
|
+
return v; if (typeof v === 'string') {
|
|
2512
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2513
|
+
return v;
|
|
2514
|
+
return Number(v);
|
|
2515
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2516
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2517
|
+
])),
|
|
2518
|
+
tint: zod_1.z.optional(zod_1.z.union([
|
|
2519
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2520
|
+
return undefined; if (Array.isArray(v))
|
|
2521
|
+
return v; if (typeof v === 'string') {
|
|
2522
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2523
|
+
return v;
|
|
2524
|
+
return Number(v);
|
|
2525
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2526
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2527
|
+
])),
|
|
2528
|
+
highlights: zod_1.z.optional(zod_1.z.union([
|
|
2529
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2530
|
+
return undefined; if (Array.isArray(v))
|
|
2531
|
+
return v; if (typeof v === 'string') {
|
|
2532
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2533
|
+
return v;
|
|
2534
|
+
return Number(v);
|
|
2535
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2536
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2537
|
+
])),
|
|
2538
|
+
shadows: zod_1.z.optional(zod_1.z.union([
|
|
2539
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2540
|
+
return undefined; if (Array.isArray(v))
|
|
2541
|
+
return v; if (typeof v === 'string') {
|
|
2542
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2543
|
+
return v;
|
|
2544
|
+
return Number(v);
|
|
2545
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2546
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2547
|
+
])),
|
|
2548
|
+
vibrance: zod_1.z.optional(zod_1.z.union([
|
|
2549
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2550
|
+
return undefined; if (Array.isArray(v))
|
|
2551
|
+
return v; if (typeof v === 'string') {
|
|
2552
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2553
|
+
return v;
|
|
2554
|
+
return Number(v);
|
|
2555
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2556
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2557
|
+
]))
|
|
2558
|
+
}).strict();
|
|
2559
|
+
exports.gradeFilterSchema = exports.gradefilterGradeFilterSchema;
|
|
2560
|
+
/**
|
|
2561
|
+
* Rotates the hues of the clip around the color wheel.
|
|
2562
|
+
*/
|
|
2563
|
+
exports.huefilterHueFilterSchema = zod_1.z.object({
|
|
2564
|
+
type: zod_1.z.enum(['hue']),
|
|
2565
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2566
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2567
|
+
return undefined; if (Array.isArray(v))
|
|
2568
|
+
return v; if (typeof v === 'string') {
|
|
2569
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2570
|
+
return v;
|
|
2571
|
+
return Number(v);
|
|
2572
|
+
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2573
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2574
|
+
]))
|
|
2575
|
+
}).strict();
|
|
2576
|
+
exports.hueFilterSchema = exports.huefilterHueFilterSchema;
|
|
2397
2577
|
/**
|
|
2398
2578
|
* Offsets the position of an asset horizontally or vertically by a relative distance.
|
|
2399
2579
|
*/
|
|
@@ -2420,6 +2600,50 @@ exports.offsetOffsetSchema = zod_1.z.object({
|
|
|
2420
2600
|
]))
|
|
2421
2601
|
}).strict();
|
|
2422
2602
|
exports.offsetSchema = exports.offsetOffsetSchema;
|
|
2603
|
+
/**
|
|
2604
|
+
* Turns the clip into blocky pixels.
|
|
2605
|
+
*/
|
|
2606
|
+
exports.pixelatefilterPixelateFilterSchema = zod_1.z.object({
|
|
2607
|
+
type: zod_1.z.enum(['pixelate']),
|
|
2608
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2609
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2610
|
+
return undefined; if (Array.isArray(v))
|
|
2611
|
+
return v; if (typeof v === 'string') {
|
|
2612
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2613
|
+
return v;
|
|
2614
|
+
return Number(v);
|
|
2615
|
+
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2616
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2617
|
+
]))
|
|
2618
|
+
}).strict();
|
|
2619
|
+
exports.pixelateFilterSchema = exports.pixelatefilterPixelateFilterSchema;
|
|
2620
|
+
/**
|
|
2621
|
+
* Offsets the red and blue channels in opposite directions to create a color fringing effect.
|
|
2622
|
+
*/
|
|
2623
|
+
exports.rgbsplitfilterRgbSplitFilterSchema = zod_1.z.object({
|
|
2624
|
+
type: zod_1.z.enum(['rgbSplit']),
|
|
2625
|
+
x: zod_1.z.optional(zod_1.z.union([
|
|
2626
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2627
|
+
return undefined; if (Array.isArray(v))
|
|
2628
|
+
return v; if (typeof v === 'string') {
|
|
2629
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2630
|
+
return v;
|
|
2631
|
+
return Number(v);
|
|
2632
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2633
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2634
|
+
])),
|
|
2635
|
+
y: zod_1.z.optional(zod_1.z.union([
|
|
2636
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2637
|
+
return undefined; if (Array.isArray(v))
|
|
2638
|
+
return v; if (typeof v === 'string') {
|
|
2639
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2640
|
+
return v;
|
|
2641
|
+
return Number(v);
|
|
2642
|
+
} return v; }), zod_1.z.number().gte(-1).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2643
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2644
|
+
]))
|
|
2645
|
+
}).strict();
|
|
2646
|
+
exports.rgbSplitFilterSchema = exports.rgbsplitfilterRgbSplitFilterSchema;
|
|
2423
2647
|
/**
|
|
2424
2648
|
* Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
|
|
2425
2649
|
*/
|
|
@@ -2436,6 +2660,66 @@ exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
|
|
|
2436
2660
|
]))
|
|
2437
2661
|
}).strict();
|
|
2438
2662
|
exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
|
|
2663
|
+
/**
|
|
2664
|
+
* Increases or decreases the intensity of the colors in the clip.
|
|
2665
|
+
*/
|
|
2666
|
+
exports.saturationfilterSaturationFilterSchema = zod_1.z.object({
|
|
2667
|
+
type: zod_1.z.enum(['saturation']),
|
|
2668
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2669
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2670
|
+
return undefined; if (Array.isArray(v))
|
|
2671
|
+
return v; if (typeof v === 'string') {
|
|
2672
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2673
|
+
return v;
|
|
2674
|
+
return Number(v);
|
|
2675
|
+
} return v; }), zod_1.z.number().gte(0).lte(4)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2676
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2677
|
+
]))
|
|
2678
|
+
}).strict();
|
|
2679
|
+
exports.saturationFilterSchema = exports.saturationfilterSaturationFilterSchema;
|
|
2680
|
+
/**
|
|
2681
|
+
* Sharpens the clip.
|
|
2682
|
+
*/
|
|
2683
|
+
exports.sharpenfilterSharpenFilterSchema = zod_1.z.object({
|
|
2684
|
+
type: zod_1.z.enum(['sharpen']),
|
|
2685
|
+
value: zod_1.z.optional(zod_1.z.union([
|
|
2686
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2687
|
+
return undefined; if (Array.isArray(v))
|
|
2688
|
+
return v; if (typeof v === 'string') {
|
|
2689
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2690
|
+
return v;
|
|
2691
|
+
return Number(v);
|
|
2692
|
+
} return v; }), zod_1.z.number().gte(0).lte(40)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2693
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2694
|
+
])),
|
|
2695
|
+
radius: zod_1.z.optional(zod_1.z.union([
|
|
2696
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2697
|
+
return undefined; if (Array.isArray(v))
|
|
2698
|
+
return v; if (typeof v === 'string') {
|
|
2699
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2700
|
+
return v;
|
|
2701
|
+
return Number(v);
|
|
2702
|
+
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2703
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2704
|
+
]))
|
|
2705
|
+
}).strict();
|
|
2706
|
+
exports.sharpenFilterSchema = exports.sharpenfilterSharpenFilterSchema;
|
|
2707
|
+
/**
|
|
2708
|
+
* A filter that adjusts the look of a Clip. Choose from one of the available filter types below. Keyframe values outside a field's range are limited to that range.
|
|
2709
|
+
*/
|
|
2710
|
+
exports.filterFilterSchema = zod_1.z.discriminatedUnion("type", [
|
|
2711
|
+
exports.brightnessfilterBrightnessFilterSchema,
|
|
2712
|
+
exports.contrastfilterContrastFilterSchema,
|
|
2713
|
+
exports.saturationfilterSaturationFilterSchema,
|
|
2714
|
+
exports.huefilterHueFilterSchema,
|
|
2715
|
+
exports.gradefilterGradeFilterSchema,
|
|
2716
|
+
exports.blurfilterBlurFilterSchema,
|
|
2717
|
+
exports.sharpenfilterSharpenFilterSchema,
|
|
2718
|
+
exports.pixelatefilterPixelateFilterSchema,
|
|
2719
|
+
exports.rgbsplitfilterRgbSplitFilterSchema,
|
|
2720
|
+
exports.negativefilterNegativeFilterSchema,
|
|
2721
|
+
]);
|
|
2722
|
+
exports.filterSchema = exports.filterFilterSchema;
|
|
2439
2723
|
/**
|
|
2440
2724
|
* 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.
|
|
2441
2725
|
*/
|
|
@@ -2763,6 +3047,7 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
2763
3047
|
'muted',
|
|
2764
3048
|
'negative'
|
|
2765
3049
|
])),
|
|
3050
|
+
filters: zod_1.z.optional(zod_1.z.array(exports.filterFilterSchema)),
|
|
2766
3051
|
opacity: zod_1.z.optional(zod_1.z.union([
|
|
2767
3052
|
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2768
3053
|
return undefined; if (Array.isArray(v))
|