@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.
@@ -2565,13 +2565,16 @@ export const videoassetVideoAssetSchema = z.object({
2565
2565
  'fadeOut',
2566
2566
  'fadeInFadeOut'
2567
2567
  ])),
2568
- speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2569
- return undefined; if (Array.isArray(v))
2570
- return v; if (typeof v === 'string') {
2571
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2572
- return v;
2573
- return Number(v);
2574
- } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2568
+ speed: z.optional(z.union([
2569
+ z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2570
+ return undefined; if (Array.isArray(v))
2571
+ return v; if (typeof v === 'string') {
2572
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2573
+ return v;
2574
+ return Number(v);
2575
+ } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2576
+ z.array(tweenTweenSchema)
2577
+ ])),
2575
2578
  crop: z.optional(cropCropSchema),
2576
2579
  chromaKey: z.optional(chromakeyChromaKeySchema)
2577
2580
  }).strict().superRefine((data, ctx) => {
@@ -2095,7 +2095,10 @@ export const videoassetVideoAssetSchema = z.object({
2095
2095
  'fadeOut',
2096
2096
  'fadeInFadeOut'
2097
2097
  ])),
2098
- speed: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2098
+ speed: z.optional(z.union([
2099
+ z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2100
+ z.array(tweenTweenSchema)
2101
+ ])),
2099
2102
  crop: z.optional(cropCropSchema),
2100
2103
  chromaKey: z.optional(chromakeyChromaKeySchema)
2101
2104
  }).strict().superRefine((data, ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",