@shotstack/schemas 1.7.0 → 1.8.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.
Files changed (53) hide show
  1. package/README.md +89 -89
  2. package/dist/api.bundled.json +49 -833
  3. package/dist/json-schema/asset.json +115 -856
  4. package/dist/json-schema/audio-asset.json +31 -1
  5. package/dist/json-schema/blueprint.json +380 -0
  6. package/dist/json-schema/caption-detailer.json +275 -0
  7. package/dist/json-schema/clip.json +256 -949
  8. package/dist/json-schema/edit.json +247 -940
  9. package/dist/json-schema/index.cjs +5 -0
  10. package/dist/json-schema/index.d.ts +5 -0
  11. package/dist/json-schema/index.js +5 -0
  12. package/dist/json-schema/offset.json +31 -1
  13. package/dist/json-schema/rich-caption-asset.json +221 -140
  14. package/dist/json-schema/rich-text-content.json +370 -0
  15. package/dist/json-schema/rich-text-effects.json +400 -0
  16. package/dist/json-schema/rotate-transformation.json +31 -1
  17. package/dist/json-schema/schemas.json +264 -1044
  18. package/dist/json-schema/skew-transformation.json +31 -1
  19. package/dist/json-schema/svg-asset.json +6 -857
  20. package/dist/json-schema/template.json +541 -0
  21. package/dist/json-schema/text-to-speech-asset.json +31 -1
  22. package/dist/json-schema/timeline.json +256 -949
  23. package/dist/json-schema/track.json +256 -949
  24. package/dist/json-schema/transformation.json +52 -22
  25. package/dist/json-schema/transition.json +50 -2
  26. package/dist/json-schema/tween.json +31 -1
  27. package/dist/json-schema/video-asset.json +56 -26
  28. package/dist/schema.d.ts +43 -660
  29. package/dist/zod/zod.gen.cjs +914 -1640
  30. package/dist/zod/zod.gen.d.ts +306 -8714
  31. package/dist/zod/zod.gen.js +911 -1636
  32. package/dist/zod/zod.gen.ts +1593 -1880
  33. package/package.json +79 -79
  34. package/dist/json-schema/svg-arrow-shape.json +0 -49
  35. package/dist/json-schema/svg-circle-shape.json +0 -28
  36. package/dist/json-schema/svg-cross-shape.json +0 -42
  37. package/dist/json-schema/svg-ellipse-shape.json +0 -35
  38. package/dist/json-schema/svg-fill.json +0 -169
  39. package/dist/json-schema/svg-gradient-stop.json +0 -25
  40. package/dist/json-schema/svg-heart-shape.json +0 -28
  41. package/dist/json-schema/svg-line-shape.json +0 -35
  42. package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
  43. package/dist/json-schema/svg-path-shape.json +0 -26
  44. package/dist/json-schema/svg-polygon-shape.json +0 -35
  45. package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
  46. package/dist/json-schema/svg-rectangle-shape.json +0 -49
  47. package/dist/json-schema/svg-ring-shape.json +0 -35
  48. package/dist/json-schema/svg-shadow.json +0 -79
  49. package/dist/json-schema/svg-shape.json +0 -404
  50. package/dist/json-schema/svg-solid-fill.json +0 -40
  51. package/dist/json-schema/svg-star-shape.json +0 -42
  52. package/dist/json-schema/svg-stroke.json +0 -115
  53. package/dist/json-schema/svg-transform.json +0 -93
@@ -0,0 +1,370 @@
1
+ {
2
+ "name": "RichTextContent",
3
+ "strict": true,
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "assets": {
8
+ "type": "array",
9
+ "items": {
10
+ "$ref": "#/$defs/RichTextAsset"
11
+ }
12
+ }
13
+ },
14
+ "additionalProperties": false,
15
+ "required": [
16
+ "assets"
17
+ ],
18
+ "$defs": {
19
+ "RichTextAsset": {
20
+ "type": "object",
21
+ "properties": {
22
+ "type": {
23
+ "enum": [
24
+ "rich-text"
25
+ ],
26
+ "type": "string"
27
+ },
28
+ "text": {
29
+ "type": "string"
30
+ },
31
+ "font": {
32
+ "anyOf": [
33
+ {
34
+ "$ref": "#/$defs/RichTextFont"
35
+ },
36
+ {
37
+ "type": "null"
38
+ }
39
+ ]
40
+ },
41
+ "background": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/$defs/RichTextBackground"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "border": {
52
+ "anyOf": [
53
+ {
54
+ "type": "object",
55
+ "properties": {
56
+ "width": {
57
+ "anyOf": [
58
+ {
59
+ "type": "number",
60
+ "minimum": 0
61
+ },
62
+ {
63
+ "type": "null"
64
+ }
65
+ ]
66
+ },
67
+ "color": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string"
71
+ },
72
+ {
73
+ "type": "null"
74
+ }
75
+ ]
76
+ },
77
+ "opacity": {
78
+ "anyOf": [
79
+ {
80
+ "type": "number",
81
+ "minimum": 0,
82
+ "maximum": 1
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ]
88
+ },
89
+ "radius": {
90
+ "anyOf": [
91
+ {
92
+ "type": "number",
93
+ "minimum": 0
94
+ },
95
+ {
96
+ "type": "null"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ "additionalProperties": false,
102
+ "required": [
103
+ "width",
104
+ "color",
105
+ "opacity",
106
+ "radius"
107
+ ]
108
+ },
109
+ {
110
+ "type": "null"
111
+ }
112
+ ]
113
+ },
114
+ "padding": {
115
+ "anyOf": [
116
+ {
117
+ "type": "number",
118
+ "minimum": 0
119
+ },
120
+ {
121
+ "properties": {
122
+ "top": {
123
+ "anyOf": [
124
+ {
125
+ "type": "number",
126
+ "minimum": 0
127
+ },
128
+ {
129
+ "type": "null"
130
+ }
131
+ ]
132
+ },
133
+ "right": {
134
+ "anyOf": [
135
+ {
136
+ "type": "number",
137
+ "minimum": 0
138
+ },
139
+ {
140
+ "type": "null"
141
+ }
142
+ ]
143
+ },
144
+ "bottom": {
145
+ "anyOf": [
146
+ {
147
+ "type": "number",
148
+ "minimum": 0
149
+ },
150
+ {
151
+ "type": "null"
152
+ }
153
+ ]
154
+ },
155
+ "left": {
156
+ "anyOf": [
157
+ {
158
+ "type": "number",
159
+ "minimum": 0
160
+ },
161
+ {
162
+ "type": "null"
163
+ }
164
+ ]
165
+ }
166
+ },
167
+ "additionalProperties": false,
168
+ "type": "object",
169
+ "required": [
170
+ "top",
171
+ "right",
172
+ "bottom",
173
+ "left"
174
+ ]
175
+ },
176
+ {
177
+ "type": "null"
178
+ }
179
+ ]
180
+ },
181
+ "align": {
182
+ "anyOf": [
183
+ {
184
+ "$ref": "#/$defs/RichTextAlignment"
185
+ },
186
+ {
187
+ "type": "null"
188
+ }
189
+ ]
190
+ }
191
+ },
192
+ "additionalProperties": false,
193
+ "required": [
194
+ "type",
195
+ "text",
196
+ "font",
197
+ "background",
198
+ "border",
199
+ "padding",
200
+ "align"
201
+ ]
202
+ },
203
+ "RichTextFont": {
204
+ "properties": {
205
+ "family": {
206
+ "anyOf": [
207
+ {
208
+ "type": "string",
209
+ "enum": [
210
+ "Open Sans"
211
+ ]
212
+ },
213
+ {
214
+ "type": "null"
215
+ }
216
+ ]
217
+ },
218
+ "size": {
219
+ "anyOf": [
220
+ {
221
+ "type": "integer",
222
+ "minimum": 1,
223
+ "maximum": 500
224
+ },
225
+ {
226
+ "type": "null"
227
+ }
228
+ ]
229
+ },
230
+ "weight": {
231
+ "anyOf": [
232
+ {
233
+ "type": "string"
234
+ },
235
+ {
236
+ "type": "null"
237
+ }
238
+ ]
239
+ },
240
+ "color": {
241
+ "anyOf": [
242
+ {
243
+ "type": "string"
244
+ },
245
+ {
246
+ "type": "null"
247
+ }
248
+ ]
249
+ },
250
+ "opacity": {
251
+ "anyOf": [
252
+ {
253
+ "type": "number",
254
+ "minimum": 0,
255
+ "maximum": 1
256
+ },
257
+ {
258
+ "type": "null"
259
+ }
260
+ ]
261
+ },
262
+ "background": {
263
+ "anyOf": [
264
+ {
265
+ "type": "string"
266
+ },
267
+ {
268
+ "type": "null"
269
+ }
270
+ ]
271
+ }
272
+ },
273
+ "additionalProperties": false,
274
+ "type": "object",
275
+ "required": [
276
+ "family",
277
+ "size",
278
+ "weight",
279
+ "color",
280
+ "opacity",
281
+ "background"
282
+ ]
283
+ },
284
+ "RichTextBackground": {
285
+ "properties": {
286
+ "color": {
287
+ "anyOf": [
288
+ {
289
+ "type": "string"
290
+ },
291
+ {
292
+ "type": "null"
293
+ }
294
+ ]
295
+ },
296
+ "opacity": {
297
+ "anyOf": [
298
+ {
299
+ "type": "number",
300
+ "minimum": 0,
301
+ "maximum": 1
302
+ },
303
+ {
304
+ "type": "null"
305
+ }
306
+ ]
307
+ },
308
+ "borderRadius": {
309
+ "anyOf": [
310
+ {
311
+ "type": "number",
312
+ "minimum": 0
313
+ },
314
+ {
315
+ "type": "null"
316
+ }
317
+ ]
318
+ }
319
+ },
320
+ "additionalProperties": false,
321
+ "type": "object",
322
+ "required": [
323
+ "color",
324
+ "opacity",
325
+ "borderRadius"
326
+ ]
327
+ },
328
+ "RichTextAlignment": {
329
+ "properties": {
330
+ "horizontal": {
331
+ "anyOf": [
332
+ {
333
+ "type": "string",
334
+ "enum": [
335
+ "left",
336
+ "center",
337
+ "right"
338
+ ]
339
+ },
340
+ {
341
+ "type": "null"
342
+ }
343
+ ]
344
+ },
345
+ "vertical": {
346
+ "anyOf": [
347
+ {
348
+ "type": "string",
349
+ "enum": [
350
+ "top",
351
+ "middle",
352
+ "bottom"
353
+ ]
354
+ },
355
+ {
356
+ "type": "null"
357
+ }
358
+ ]
359
+ }
360
+ },
361
+ "additionalProperties": false,
362
+ "type": "object",
363
+ "required": [
364
+ "horizontal",
365
+ "vertical"
366
+ ]
367
+ }
368
+ }
369
+ }
370
+ }