@shotstack/schemas 1.5.0 → 1.5.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.
@@ -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')
@@ -2741,6 +2745,9 @@ export const editEditSchema = z.object({
2741
2745
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2742
2746
  callback: z.optional(z.string()),
2743
2747
  disk: z.optional(z.enum(["local", "mount"])),
2748
+ instance: z.optional(z.string()),
2749
+ poster: z.optional(posterPosterSchema),
2750
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2744
2751
  }).strict();
2745
2752
  export const editSchema = editEditSchema;
2746
2753
  /**
@@ -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();
@@ -2759,6 +2760,9 @@ export const editEditSchema = z.object({
2759
2760
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2760
2761
  callback: z.optional(z.string()),
2761
2762
  disk: z.optional(z.enum(["local", "mount"])),
2763
+ instance: z.optional(z.string()),
2764
+ poster: z.optional(posterPosterSchema),
2765
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2762
2766
  }).strict();
2763
2767
 
2764
2768
  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.1",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",