@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.
@@ -2082,12 +2082,32 @@
2082
2082
  "$ref": "#/components/schemas/RichCaptionActiveFont"
2083
2083
  },
2084
2084
  "stroke": {
2085
- "description": "Stroke properties for the active word.",
2086
- "$ref": "#/components/schemas/RichTextStroke"
2085
+ "description": "Stroke properties for the active word. Set to \"none\" to explicitly remove the base stroke on the active word.",
2086
+ "oneOf": [
2087
+ {
2088
+ "$ref": "#/components/schemas/RichTextStroke"
2089
+ },
2090
+ {
2091
+ "type": "string",
2092
+ "enum": [
2093
+ "none"
2094
+ ]
2095
+ }
2096
+ ]
2087
2097
  },
2088
2098
  "shadow": {
2089
- "description": "Shadow properties for the active word. Overrides the base shadow when a word is active.",
2090
- "$ref": "#/components/schemas/RichTextShadow"
2099
+ "description": "Shadow properties for the active word. Set to \"none\" to explicitly remove the base shadow on the active word.",
2100
+ "oneOf": [
2101
+ {
2102
+ "$ref": "#/components/schemas/RichTextShadow"
2103
+ },
2104
+ {
2105
+ "type": "string",
2106
+ "enum": [
2107
+ "none"
2108
+ ]
2109
+ }
2110
+ ]
2091
2111
  },
2092
2112
  "scale": {
2093
2113
  "description": "Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.",
@@ -2120,14 +2140,6 @@
2120
2140
  "default": "karaoke",
2121
2141
  "example": "karaoke"
2122
2142
  },
2123
- "speed": {
2124
- "description": "Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.",
2125
- "type": "number",
2126
- "minimum": 0.5,
2127
- "maximum": 2,
2128
- "default": 1,
2129
- "example": 1
2130
- },
2131
2143
  "direction": {
2132
2144
  "description": "Direction for directional animations (slide). Only applicable when style is `slide`.",
2133
2145
  "type": "string",
@@ -1732,6 +1732,12 @@
1732
1732
  {
1733
1733
  "$ref": "#/$defs/RichTextStroke"
1734
1734
  },
1735
+ {
1736
+ "type": "string",
1737
+ "enum": [
1738
+ "none"
1739
+ ]
1740
+ },
1735
1741
  {
1736
1742
  "type": "null"
1737
1743
  }
@@ -1742,6 +1748,12 @@
1742
1748
  {
1743
1749
  "$ref": "#/$defs/RichTextShadow"
1744
1750
  },
1751
+ {
1752
+ "type": "string",
1753
+ "enum": [
1754
+ "none"
1755
+ ]
1756
+ },
1745
1757
  {
1746
1758
  "type": "null"
1747
1759
  }
@@ -1846,18 +1858,6 @@
1846
1858
  "none"
1847
1859
  ]
1848
1860
  },
1849
- "speed": {
1850
- "anyOf": [
1851
- {
1852
- "type": "number",
1853
- "minimum": 0.5,
1854
- "maximum": 2
1855
- },
1856
- {
1857
- "type": "null"
1858
- }
1859
- ]
1860
- },
1861
1861
  "direction": {
1862
1862
  "anyOf": [
1863
1863
  {
@@ -1878,7 +1878,6 @@
1878
1878
  "additionalProperties": false,
1879
1879
  "required": [
1880
1880
  "style",
1881
- "speed",
1882
1881
  "direction"
1883
1882
  ]
1884
1883
  },
@@ -1964,6 +1964,12 @@
1964
1964
  {
1965
1965
  "$ref": "#/$defs/RichTextStroke"
1966
1966
  },
1967
+ {
1968
+ "type": "string",
1969
+ "enum": [
1970
+ "none"
1971
+ ]
1972
+ },
1967
1973
  {
1968
1974
  "type": "null"
1969
1975
  }
@@ -1974,6 +1980,12 @@
1974
1980
  {
1975
1981
  "$ref": "#/$defs/RichTextShadow"
1976
1982
  },
1983
+ {
1984
+ "type": "string",
1985
+ "enum": [
1986
+ "none"
1987
+ ]
1988
+ },
1977
1989
  {
1978
1990
  "type": "null"
1979
1991
  }
@@ -2078,18 +2090,6 @@
2078
2090
  "none"
2079
2091
  ]
2080
2092
  },
2081
- "speed": {
2082
- "anyOf": [
2083
- {
2084
- "type": "number",
2085
- "minimum": 0.5,
2086
- "maximum": 2
2087
- },
2088
- {
2089
- "type": "null"
2090
- }
2091
- ]
2092
- },
2093
2093
  "direction": {
2094
2094
  "anyOf": [
2095
2095
  {
@@ -2110,7 +2110,6 @@
2110
2110
  "additionalProperties": false,
2111
2111
  "required": [
2112
2112
  "style",
2113
- "speed",
2114
2113
  "direction"
2115
2114
  ]
2116
2115
  },
@@ -2148,6 +2148,12 @@
2148
2148
  {
2149
2149
  "$ref": "#/$defs/RichTextStroke"
2150
2150
  },
2151
+ {
2152
+ "type": "string",
2153
+ "enum": [
2154
+ "none"
2155
+ ]
2156
+ },
2151
2157
  {
2152
2158
  "type": "null"
2153
2159
  }
@@ -2158,6 +2164,12 @@
2158
2164
  {
2159
2165
  "$ref": "#/$defs/RichTextShadow"
2160
2166
  },
2167
+ {
2168
+ "type": "string",
2169
+ "enum": [
2170
+ "none"
2171
+ ]
2172
+ },
2161
2173
  {
2162
2174
  "type": "null"
2163
2175
  }
@@ -2262,18 +2274,6 @@
2262
2274
  "none"
2263
2275
  ]
2264
2276
  },
2265
- "speed": {
2266
- "anyOf": [
2267
- {
2268
- "type": "number",
2269
- "minimum": 0.5,
2270
- "maximum": 2
2271
- },
2272
- {
2273
- "type": "null"
2274
- }
2275
- ]
2276
- },
2277
2277
  "direction": {
2278
2278
  "anyOf": [
2279
2279
  {
@@ -2294,7 +2294,6 @@
2294
2294
  "additionalProperties": false,
2295
2295
  "required": [
2296
2296
  "style",
2297
- "speed",
2298
2297
  "direction"
2299
2298
  ]
2300
2299
  },
@@ -17,22 +17,34 @@
17
17
  ]
18
18
  },
19
19
  "stroke": {
20
+ "description": "Stroke properties for the active word. Set to \"none\" to explicitly remove the base stroke on the active word.",
20
21
  "anyOf": [
21
22
  {
22
- "description": "Stroke properties for the active word.",
23
23
  "$ref": "#/$defs/RichTextStroke"
24
24
  },
25
+ {
26
+ "type": "string",
27
+ "enum": [
28
+ "none"
29
+ ]
30
+ },
25
31
  {
26
32
  "type": "null"
27
33
  }
28
34
  ]
29
35
  },
30
36
  "shadow": {
37
+ "description": "Shadow properties for the active word. Set to \"none\" to explicitly remove the base shadow on the active word.",
31
38
  "anyOf": [
32
39
  {
33
- "description": "Shadow properties for the active word. Overrides the base shadow when a word is active.",
34
40
  "$ref": "#/$defs/RichTextShadow"
35
41
  },
42
+ {
43
+ "type": "string",
44
+ "enum": [
45
+ "none"
46
+ ]
47
+ },
36
48
  {
37
49
  "type": "null"
38
50
  }
@@ -980,6 +980,12 @@
980
980
  {
981
981
  "$ref": "#/$defs/RichTextStroke"
982
982
  },
983
+ {
984
+ "type": "string",
985
+ "enum": [
986
+ "none"
987
+ ]
988
+ },
983
989
  {
984
990
  "type": "null"
985
991
  }
@@ -990,6 +996,12 @@
990
996
  {
991
997
  "$ref": "#/$defs/RichTextShadow"
992
998
  },
999
+ {
1000
+ "type": "string",
1001
+ "enum": [
1002
+ "none"
1003
+ ]
1004
+ },
993
1005
  {
994
1006
  "type": "null"
995
1007
  }
@@ -1094,18 +1106,6 @@
1094
1106
  "none"
1095
1107
  ]
1096
1108
  },
1097
- "speed": {
1098
- "anyOf": [
1099
- {
1100
- "type": "number",
1101
- "minimum": 0.5,
1102
- "maximum": 2
1103
- },
1104
- {
1105
- "type": "null"
1106
- }
1107
- ]
1108
- },
1109
1109
  "direction": {
1110
1110
  "anyOf": [
1111
1111
  {
@@ -1126,7 +1126,6 @@
1126
1126
  "additionalProperties": false,
1127
1127
  "required": [
1128
1128
  "style",
1129
- "speed",
1130
1129
  "direction"
1131
1130
  ]
1132
1131
  }
@@ -19,19 +19,6 @@
19
19
  "none"
20
20
  ]
21
21
  },
22
- "speed": {
23
- "anyOf": [
24
- {
25
- "type": "number",
26
- "description": "Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.",
27
- "minimum": 0.5,
28
- "maximum": 2
29
- },
30
- {
31
- "type": "null"
32
- }
33
- ]
34
- },
35
22
  "direction": {
36
23
  "anyOf": [
37
24
  {
@@ -53,7 +40,6 @@
53
40
  "additionalProperties": false,
54
41
  "required": [
55
42
  "style",
56
- "speed",
57
43
  "direction"
58
44
  ]
59
45
  }
@@ -2279,22 +2279,34 @@
2279
2279
  ]
2280
2280
  },
2281
2281
  "stroke": {
2282
+ "description": "Stroke properties for the active word. Set to \"none\" to explicitly remove the base stroke on the active word.",
2282
2283
  "anyOf": [
2283
2284
  {
2284
- "description": "Stroke properties for the active word.",
2285
2285
  "$ref": "#/$defs/RichTextStroke"
2286
2286
  },
2287
+ {
2288
+ "type": "string",
2289
+ "enum": [
2290
+ "none"
2291
+ ]
2292
+ },
2287
2293
  {
2288
2294
  "type": "null"
2289
2295
  }
2290
2296
  ]
2291
2297
  },
2292
2298
  "shadow": {
2299
+ "description": "Shadow properties for the active word. Set to \"none\" to explicitly remove the base shadow on the active word.",
2293
2300
  "anyOf": [
2294
2301
  {
2295
- "description": "Shadow properties for the active word. Overrides the base shadow when a word is active.",
2296
2302
  "$ref": "#/$defs/RichTextShadow"
2297
2303
  },
2304
+ {
2305
+ "type": "string",
2306
+ "enum": [
2307
+ "none"
2308
+ ]
2309
+ },
2298
2310
  {
2299
2311
  "type": "null"
2300
2312
  }
@@ -2407,19 +2419,6 @@
2407
2419
  "none"
2408
2420
  ]
2409
2421
  },
2410
- "speed": {
2411
- "anyOf": [
2412
- {
2413
- "type": "number",
2414
- "description": "Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.",
2415
- "minimum": 0.5,
2416
- "maximum": 2
2417
- },
2418
- {
2419
- "type": "null"
2420
- }
2421
- ]
2422
- },
2423
2422
  "direction": {
2424
2423
  "anyOf": [
2425
2424
  {
@@ -2441,7 +2440,6 @@
2441
2440
  "additionalProperties": false,
2442
2441
  "required": [
2443
2442
  "style",
2444
- "speed",
2445
2443
  "direction"
2446
2444
  ]
2447
2445
  },
@@ -2092,6 +2092,12 @@
2092
2092
  {
2093
2093
  "$ref": "#/$defs/RichTextStroke"
2094
2094
  },
2095
+ {
2096
+ "type": "string",
2097
+ "enum": [
2098
+ "none"
2099
+ ]
2100
+ },
2095
2101
  {
2096
2102
  "type": "null"
2097
2103
  }
@@ -2102,6 +2108,12 @@
2102
2108
  {
2103
2109
  "$ref": "#/$defs/RichTextShadow"
2104
2110
  },
2111
+ {
2112
+ "type": "string",
2113
+ "enum": [
2114
+ "none"
2115
+ ]
2116
+ },
2105
2117
  {
2106
2118
  "type": "null"
2107
2119
  }
@@ -2206,18 +2218,6 @@
2206
2218
  "none"
2207
2219
  ]
2208
2220
  },
2209
- "speed": {
2210
- "anyOf": [
2211
- {
2212
- "type": "number",
2213
- "minimum": 0.5,
2214
- "maximum": 2
2215
- },
2216
- {
2217
- "type": "null"
2218
- }
2219
- ]
2220
- },
2221
2221
  "direction": {
2222
2222
  "anyOf": [
2223
2223
  {
@@ -2238,7 +2238,6 @@
2238
2238
  "additionalProperties": false,
2239
2239
  "required": [
2240
2240
  "style",
2241
- "speed",
2242
2241
  "direction"
2243
2242
  ]
2244
2243
  },
@@ -1979,6 +1979,12 @@
1979
1979
  {
1980
1980
  "$ref": "#/$defs/RichTextStroke"
1981
1981
  },
1982
+ {
1983
+ "type": "string",
1984
+ "enum": [
1985
+ "none"
1986
+ ]
1987
+ },
1982
1988
  {
1983
1989
  "type": "null"
1984
1990
  }
@@ -1989,6 +1995,12 @@
1989
1995
  {
1990
1996
  "$ref": "#/$defs/RichTextShadow"
1991
1997
  },
1998
+ {
1999
+ "type": "string",
2000
+ "enum": [
2001
+ "none"
2002
+ ]
2003
+ },
1992
2004
  {
1993
2005
  "type": "null"
1994
2006
  }
@@ -2093,18 +2105,6 @@
2093
2105
  "none"
2094
2106
  ]
2095
2107
  },
2096
- "speed": {
2097
- "anyOf": [
2098
- {
2099
- "type": "number",
2100
- "minimum": 0.5,
2101
- "maximum": 2
2102
- },
2103
- {
2104
- "type": "null"
2105
- }
2106
- ]
2107
- },
2108
2108
  "direction": {
2109
2109
  "anyOf": [
2110
2110
  {
@@ -2125,7 +2125,6 @@
2125
2125
  "additionalProperties": false,
2126
2126
  "required": [
2127
2127
  "style",
2128
- "speed",
2129
2128
  "direction"
2130
2129
  ]
2131
2130
  },
package/dist/schema.d.ts CHANGED
@@ -1088,10 +1088,10 @@ export interface components {
1088
1088
  RichCaptionActive: {
1089
1089
  /** @description Font properties for the active word. */
1090
1090
  font?: components["schemas"]["RichCaptionActiveFont"];
1091
- /** @description Stroke properties for the active word. */
1092
- stroke?: components["schemas"]["RichTextStroke"];
1093
- /** @description Shadow properties for the active word. Overrides the base shadow when a word is active. */
1094
- shadow?: components["schemas"]["RichTextShadow"];
1091
+ /** @description Stroke properties for the active word. Set to "none" to explicitly remove the base stroke on the active word. */
1092
+ stroke?: components["schemas"]["RichTextStroke"] | "none";
1093
+ /** @description Shadow properties for the active word. Set to "none" to explicitly remove the base shadow on the active word. */
1094
+ shadow?: components["schemas"]["RichTextShadow"] | "none";
1095
1095
  /**
1096
1096
  * @description Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.
1097
1097
  * @default 1
@@ -1117,12 +1117,6 @@ export interface components {
1117
1117
  * @enum {string}
1118
1118
  */
1119
1119
  style: "karaoke" | "highlight" | "pop" | "fade" | "slide" | "bounce" | "typewriter" | "none";
1120
- /**
1121
- * @description Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.
1122
- * @default 1
1123
- * @example 1
1124
- */
1125
- speed?: number;
1126
1120
  /**
1127
1121
  * @description Direction for directional animations (slide). Only applicable when style is `slide`.
1128
1122
  * @default up
@@ -1429,13 +1429,6 @@ exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
1429
1429
  'typewriter',
1430
1430
  'none'
1431
1431
  ]),
1432
- speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1433
- return undefined; if (Array.isArray(v))
1434
- return v; if (typeof v === 'string') {
1435
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1436
- return v;
1437
- return Number(v);
1438
- } return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1439
1432
  direction: zod_1.z.optional(zod_1.z.enum([
1440
1433
  'left',
1441
1434
  'right',
@@ -1654,8 +1647,14 @@ exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
1654
1647
  */
1655
1648
  exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
1656
1649
  font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveFontSchema),
1657
- stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
1658
- shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
1650
+ stroke: zod_1.z.optional(zod_1.z.union([
1651
+ exports.richtextpropertiesRichTextStrokeSchema,
1652
+ zod_1.z.enum(['none'])
1653
+ ])),
1654
+ shadow: zod_1.z.optional(zod_1.z.union([
1655
+ exports.richtextpropertiesRichTextShadowSchema,
1656
+ zod_1.z.enum(['none'])
1657
+ ])),
1659
1658
  scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1660
1659
  return undefined; if (Array.isArray(v))
1661
1660
  return v; if (typeof v === 'string') {