@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.
@@ -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([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2563
- return undefined; if (Array.isArray(v))
2564
- return v; if (typeof v === 'string') {
2565
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2566
- return v;
2567
- return Number(v);
2568
- } 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
+ ])),
2569
2578
  crop: z.optional(cropCropSchema),
2570
2579
  chromaKey: z.optional(chromakeyChromaKeySchema)
2571
2580
  }).strict().superRefine((data, ctx) => {
@@ -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([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
+ ])),
2093
2102
  crop: z.optional(cropCropSchema),
2094
2103
  chromaKey: z.optional(chromakeyChromaKeySchema)
2095
2104
  }).strict().superRefine((data, ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.18.4",
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",