@shotstack/schemas 1.19.0 → 1.20.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 +18 -6
- package/dist/json-schema/edit.json +18 -6
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +2 -6
- package/dist/zod/zod.gen.cjs +10 -7
- package/dist/zod/zod.gen.d.ts +1484 -70
- package/dist/zod/zod.gen.js +10 -7
- package/dist/zod/zod.gen.ts +4 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -748,12 +748,8 @@ export interface components {
|
|
|
748
748
|
* @enum {string}
|
|
749
749
|
*/
|
|
750
750
|
volumeEffect?: "none" | "fadeIn" | "fadeOut" | "fadeInFadeOut";
|
|
751
|
-
/**
|
|
752
|
-
|
|
753
|
-
* @description Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).
|
|
754
|
-
* @example 1
|
|
755
|
-
*/
|
|
756
|
-
speed?: number;
|
|
751
|
+
/** @description Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x. */
|
|
752
|
+
speed?: number | components["schemas"]["Tween"][];
|
|
757
753
|
crop?: components["schemas"]["Crop"];
|
|
758
754
|
chromaKey?: components["schemas"]["ChromaKey"];
|
|
759
755
|
};
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -2574,13 +2574,16 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
|
2574
2574
|
'fadeOut',
|
|
2575
2575
|
'fadeInFadeOut'
|
|
2576
2576
|
])),
|
|
2577
|
-
speed: zod_1.z.optional(zod_1.z.union([
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2577
|
+
speed: zod_1.z.optional(zod_1.z.union([
|
|
2578
|
+
zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2579
|
+
return undefined; if (Array.isArray(v))
|
|
2580
|
+
return v; if (typeof v === 'string') {
|
|
2581
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2582
|
+
return v;
|
|
2583
|
+
return Number(v);
|
|
2584
|
+
} return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2585
|
+
zod_1.z.array(exports.tweenTweenSchema)
|
|
2586
|
+
])),
|
|
2584
2587
|
crop: zod_1.z.optional(exports.cropCropSchema),
|
|
2585
2588
|
chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema)
|
|
2586
2589
|
}).strict().superRefine((data, ctx) => {
|