@shotstack/schemas 1.5.0 → 1.5.2

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.
@@ -68,6 +68,10 @@ export const captionpropertiesCaptionMarginSchema = z.object({
68
68
  return undefined; if (Array.isArray(v))
69
69
  return v; if (typeof v === 'string')
70
70
  return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
71
+ bottom: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
72
+ return undefined; if (Array.isArray(v))
73
+ return v; if (typeof v === 'string')
74
+ return Number(v); return v; }), z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
71
75
  left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
72
76
  return undefined; if (Array.isArray(v))
73
77
  return v; if (typeof v === 'string')
@@ -1324,6 +1328,7 @@ export const richtextassetRichTextAssetSchema = z.object({
1324
1328
  text: z.string().max(5000),
1325
1329
  font: z.optional(richtextpropertiesRichTextFontSchema),
1326
1330
  style: z.optional(richtextpropertiesRichTextStyleSchema),
1331
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1327
1332
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1328
1333
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1329
1334
  border: z.optional(richtextpropertiesRichTextBorderSchema),
@@ -2741,6 +2746,9 @@ export const editEditSchema = z.object({
2741
2746
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2742
2747
  callback: z.optional(z.string()),
2743
2748
  disk: z.optional(z.enum(["local", "mount"])),
2749
+ instance: z.optional(z.string()),
2750
+ poster: z.optional(posterPosterSchema),
2751
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2744
2752
  }).strict();
2745
2753
  export const editSchema = editEditSchema;
2746
2754
  /**
@@ -66,6 +66,7 @@ export const captionFontSchema = captionpropertiesCaptionFontSchema;
66
66
  */
67
67
  export const captionpropertiesCaptionMarginSchema = z.object({
68
68
  top: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
69
+ bottom: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
69
70
  left: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
70
71
  right: z.optional(z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()))),
71
72
  }).strict();
@@ -1447,6 +1448,7 @@ export const richtextassetRichTextAssetSchema = z.object({
1447
1448
  text: z.string().max(5000),
1448
1449
  font: z.optional(richtextpropertiesRichTextFontSchema),
1449
1450
  style: z.optional(richtextpropertiesRichTextStyleSchema),
1451
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1450
1452
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1451
1453
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1452
1454
  border: z.optional(richtextpropertiesRichTextBorderSchema),
@@ -2759,6 +2761,9 @@ export const editEditSchema = z.object({
2759
2761
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2760
2762
  callback: z.optional(z.string()),
2761
2763
  disk: z.optional(z.enum(["local", "mount"])),
2764
+ instance: z.optional(z.string()),
2765
+ poster: z.optional(posterPosterSchema),
2766
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2762
2767
  }).strict();
2763
2768
 
2764
2769
  export const editSchema = editEditSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",