@shotstack/schemas 1.9.0 → 1.9.1

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.
@@ -1419,13 +1419,6 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1419
1419
  'typewriter',
1420
1420
  'none'
1421
1421
  ]),
1422
- speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1423
- return undefined; if (Array.isArray(v))
1424
- return v; if (typeof v === 'string') {
1425
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1426
- return v;
1427
- return Number(v);
1428
- } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1429
1422
  direction: z.optional(z.enum([
1430
1423
  'left',
1431
1424
  'right',
@@ -1644,8 +1637,14 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1644
1637
  */
1645
1638
  export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1646
1639
  font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
1647
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1648
- shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1640
+ stroke: z.optional(z.union([
1641
+ richtextpropertiesRichTextStrokeSchema,
1642
+ z.enum(['none'])
1643
+ ])),
1644
+ shadow: z.optional(z.union([
1645
+ richtextpropertiesRichTextShadowSchema,
1646
+ z.enum(['none'])
1647
+ ])),
1649
1648
  scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1650
1649
  return undefined; if (Array.isArray(v))
1651
1650
  return v; if (typeof v === 'string') {
@@ -1378,7 +1378,6 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
1378
1378
  'typewriter',
1379
1379
  'none'
1380
1380
  ]),
1381
- 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.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1382
1381
  direction: z.optional(z.enum([
1383
1382
  'left',
1384
1383
  'right',
@@ -1505,8 +1504,14 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1505
1504
  */
1506
1505
  export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1507
1506
  font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
1508
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1509
- shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1507
+ stroke: z.optional(z.union([
1508
+ richtextpropertiesRichTextStrokeSchema,
1509
+ z.enum(['none'])
1510
+ ])),
1511
+ shadow: z.optional(z.union([
1512
+ richtextpropertiesRichTextShadowSchema,
1513
+ z.enum(['none'])
1514
+ ])),
1510
1515
  scale: 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.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1511
1516
  }).strict();
1512
1517
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",