@shotstack/schemas 1.9.8 → 1.9.10
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 +15 -14
- package/dist/json-schema/asset.json +23 -14
- package/dist/json-schema/caption-asset.json +1 -1
- package/dist/json-schema/clip.json +23 -14
- package/dist/json-schema/edit.json +23 -14
- package/dist/json-schema/rich-caption-active-font.json +25 -1
- package/dist/json-schema/rich-caption-active.json +26 -16
- package/dist/json-schema/rich-caption-asset.json +23 -14
- package/dist/json-schema/schemas.json +30 -20
- package/dist/json-schema/svg-asset.json +2 -2
- package/dist/json-schema/timeline.json +23 -14
- package/dist/json-schema/track.json +23 -14
- package/dist/schema.d.ts +17 -19
- package/dist/zod/zod.gen.cjs +4 -16
- package/dist/zod/zod.gen.d.ts +147 -79
- package/dist/zod/zod.gen.js +4 -16
- package/dist/zod/zod.gen.ts +4 -10
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -114,7 +114,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
114
114
|
* flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
|
|
115
115
|
* captions.
|
|
116
116
|
*
|
|
117
|
-
* To sync captions with a video or audio file use a [Video](#tocs_videoasset
|
|
117
|
+
* To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
|
|
118
118
|
* matching start and end time.
|
|
119
119
|
*
|
|
120
120
|
*/
|
|
@@ -780,6 +780,8 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
|
780
780
|
* Font properties for the active/highlighted word.
|
|
781
781
|
*/
|
|
782
782
|
export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
783
|
+
family: z.optional(z.string()),
|
|
784
|
+
weight: z.optional(z.unknown()).default('400'),
|
|
783
785
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
784
786
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
785
787
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1103,14 +1105,7 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
|
1103
1105
|
shadow: z.optional(z.union([
|
|
1104
1106
|
richtextpropertiesRichTextShadowSchema,
|
|
1105
1107
|
z.enum(['none'])
|
|
1106
|
-
]))
|
|
1107
|
-
scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1108
|
-
return undefined; if (Array.isArray(v))
|
|
1109
|
-
return v; if (typeof v === 'string') {
|
|
1110
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1111
|
-
return v;
|
|
1112
|
-
return Number(v);
|
|
1113
|
-
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1108
|
+
]))
|
|
1114
1109
|
}).strict();
|
|
1115
1110
|
export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
|
|
1116
1111
|
/**
|
|
@@ -1625,13 +1620,6 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
|
1625
1620
|
/**
|
|
1626
1621
|
* The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
|
|
1627
1622
|
*
|
|
1628
|
-
* ```json
|
|
1629
|
-
* {
|
|
1630
|
-
* "type": "svg",
|
|
1631
|
-
* "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
|
|
1632
|
-
* }
|
|
1633
|
-
* ```
|
|
1634
|
-
*
|
|
1635
1623
|
* **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
|
|
1636
1624
|
* `<line>`, `<polygon>`, `<polyline>`
|
|
1637
1625
|
*
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -76,7 +76,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
76
76
|
* flexibility with styling and layout. For example you can scale, position or crop a video without modifying the
|
|
77
77
|
* captions.
|
|
78
78
|
*
|
|
79
|
-
* To sync captions with a video or audio file use a [Video](#tocs_videoasset
|
|
79
|
+
* To sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with
|
|
80
80
|
* matching start and end time.
|
|
81
81
|
*
|
|
82
82
|
*/
|
|
@@ -752,6 +752,8 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
|
752
752
|
* Font properties for the active/highlighted word.
|
|
753
753
|
*/
|
|
754
754
|
export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
755
|
+
family: z.optional(z.string()),
|
|
756
|
+
weight: z.optional(z.unknown()).default('400'),
|
|
755
757
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
756
758
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
757
759
|
opacity: 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(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
@@ -945,8 +947,7 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
|
945
947
|
shadow: z.optional(z.union([
|
|
946
948
|
richtextpropertiesRichTextShadowSchema,
|
|
947
949
|
z.enum(['none'])
|
|
948
|
-
]))
|
|
949
|
-
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)
|
|
950
|
+
]))
|
|
950
951
|
}).strict();
|
|
951
952
|
|
|
952
953
|
export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
|
|
@@ -1317,13 +1318,6 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
|
1317
1318
|
/**
|
|
1318
1319
|
* The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.
|
|
1319
1320
|
*
|
|
1320
|
-
* ```json
|
|
1321
|
-
* {
|
|
1322
|
-
* "type": "svg",
|
|
1323
|
-
* "src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#FF0000\"/></svg>"
|
|
1324
|
-
* }
|
|
1325
|
-
* ```
|
|
1326
|
-
*
|
|
1327
1321
|
* **Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
|
|
1328
1322
|
* `<line>`, `<polygon>`, `<polyline>`
|
|
1329
1323
|
*
|