@shotstack/schemas 1.18.4 → 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 +34 -7
- 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 +16 -6
- package/dist/zod/zod.gen.cjs +17 -8
- package/dist/zod/zod.gen.d.ts +1714 -276
- package/dist/zod/zod.gen.js +17 -8
- package/dist/zod/zod.gen.ts +11 -2
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -484,7 +484,13 @@ export const generationmodelGenerationModelSchema = z.object({
|
|
|
484
484
|
name: z.optional(z.string()),
|
|
485
485
|
description: z.optional(z.string()),
|
|
486
486
|
pricing: z.optional(generationmodelpricingGenerationModelPricingSchema),
|
|
487
|
-
options: z.optional(z.record(z.string(), z.unknown()))
|
|
487
|
+
options: z.optional(z.record(z.string(), z.unknown())),
|
|
488
|
+
available: z.optional(z.boolean()),
|
|
489
|
+
unavailableReason: z.optional(z.enum([
|
|
490
|
+
'AiCapabilityNotIncluded',
|
|
491
|
+
'AiDisabled',
|
|
492
|
+
'AiAccessUnavailable'
|
|
493
|
+
]))
|
|
488
494
|
}).strict();
|
|
489
495
|
/**
|
|
490
496
|
* The Html5Asset renders full HTML5/CSS3/JS.
|
|
@@ -2559,13 +2565,16 @@ export const videoassetVideoAssetSchema = z.object({
|
|
|
2559
2565
|
'fadeOut',
|
|
2560
2566
|
'fadeInFadeOut'
|
|
2561
2567
|
])),
|
|
2562
|
-
speed: z.optional(z.union([
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
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
|
+
])),
|
|
2569
2578
|
crop: z.optional(cropCropSchema),
|
|
2570
2579
|
chromaKey: z.optional(chromakeyChromaKeySchema)
|
|
2571
2580
|
}).strict().superRefine((data, ctx) => {
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -415,7 +415,13 @@ export const generationmodelGenerationModelSchema = z.object({
|
|
|
415
415
|
name: z.optional(z.string()),
|
|
416
416
|
description: z.optional(z.string()),
|
|
417
417
|
pricing: z.optional(generationmodelpricingGenerationModelPricingSchema),
|
|
418
|
-
options: z.optional(z.record(z.string(), z.unknown()))
|
|
418
|
+
options: z.optional(z.record(z.string(), z.unknown())),
|
|
419
|
+
available: z.optional(z.boolean()),
|
|
420
|
+
unavailableReason: z.optional(z.enum([
|
|
421
|
+
'AiCapabilityNotIncluded',
|
|
422
|
+
'AiDisabled',
|
|
423
|
+
'AiAccessUnavailable'
|
|
424
|
+
]))
|
|
419
425
|
}).strict();
|
|
420
426
|
|
|
421
427
|
/**
|
|
@@ -2089,7 +2095,10 @@ export const videoassetVideoAssetSchema = z.object({
|
|
|
2089
2095
|
'fadeOut',
|
|
2090
2096
|
'fadeInFadeOut'
|
|
2091
2097
|
])),
|
|
2092
|
-
speed: z.optional(z.union([
|
|
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
|
+
])),
|
|
2093
2102
|
crop: z.optional(cropCropSchema),
|
|
2094
2103
|
chromaKey: z.optional(chromakeyChromaKeySchema)
|
|
2095
2104
|
}).strict().superRefine((data, ctx) => {
|