@shotstack/schemas 1.8.6 → 1.9.0
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/README.md +89 -89
- package/dist/api.bundled.json +76 -75
- package/dist/json-schema/asset.json +137 -100
- package/dist/json-schema/clip.json +137 -100
- package/dist/json-schema/edit.json +137 -100
- package/dist/json-schema/rich-caption-active-font.json +18 -1
- package/dist/json-schema/rich-caption-active.json +105 -1
- package/dist/json-schema/rich-caption-asset.json +278 -241
- package/dist/json-schema/schemas.json +150 -112
- package/dist/json-schema/timeline.json +137 -100
- package/dist/json-schema/track.json +137 -100
- package/dist/schema.d.ts +56 -47
- package/dist/zod/zod.gen.cjs +1116 -970
- package/dist/zod/zod.gen.d.ts +1921 -1709
- package/dist/zod/zod.gen.js +1112 -966
- package/dist/zod/zod.gen.ts +1605 -1674
- package/package.json +95 -79
- package/dist/json-schema/word-timing.json +0 -44
|
@@ -11,32 +11,109 @@
|
|
|
11
11
|
"type": "string"
|
|
12
12
|
},
|
|
13
13
|
"src": {
|
|
14
|
-
"
|
|
15
|
-
{
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"type": "null"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"words": {
|
|
24
|
-
"anyOf": [
|
|
25
|
-
{
|
|
26
|
-
"type": "array",
|
|
27
|
-
"items": {
|
|
28
|
-
"$ref": "#/$defs/WordTiming"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "null"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
14
|
+
"type": "string"
|
|
35
15
|
},
|
|
36
16
|
"font": {
|
|
37
17
|
"anyOf": [
|
|
38
18
|
{
|
|
39
|
-
"
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"family": {
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"Roboto"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "null"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"size": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"minimum": 1,
|
|
39
|
+
"maximum": 500
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "null"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"weight": {
|
|
47
|
+
"anyOf": [
|
|
48
|
+
{
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "null"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"color": {
|
|
57
|
+
"anyOf": [
|
|
58
|
+
{
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"#ffffff"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "null"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"opacity": {
|
|
70
|
+
"anyOf": [
|
|
71
|
+
{
|
|
72
|
+
"type": "number",
|
|
73
|
+
"minimum": 0,
|
|
74
|
+
"maximum": 1
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "null"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"background": {
|
|
82
|
+
"anyOf": [
|
|
83
|
+
{
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "null"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"textDecoration": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"none",
|
|
97
|
+
"underline",
|
|
98
|
+
"line-through"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "null"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": [
|
|
109
|
+
"family",
|
|
110
|
+
"size",
|
|
111
|
+
"weight",
|
|
112
|
+
"color",
|
|
113
|
+
"opacity",
|
|
114
|
+
"background",
|
|
115
|
+
"textDecoration"
|
|
116
|
+
]
|
|
40
117
|
},
|
|
41
118
|
{
|
|
42
119
|
"type": "null"
|
|
@@ -83,6 +160,16 @@
|
|
|
83
160
|
}
|
|
84
161
|
]
|
|
85
162
|
},
|
|
163
|
+
"border": {
|
|
164
|
+
"anyOf": [
|
|
165
|
+
{
|
|
166
|
+
"$ref": "#/$defs/RichTextAsset/properties/border"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "null"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
86
173
|
"padding": {
|
|
87
174
|
"anyOf": [
|
|
88
175
|
{
|
|
@@ -126,240 +213,24 @@
|
|
|
126
213
|
"type": "null"
|
|
127
214
|
}
|
|
128
215
|
]
|
|
129
|
-
},
|
|
130
|
-
"position": {
|
|
131
|
-
"anyOf": [
|
|
132
|
-
{
|
|
133
|
-
"type": "string",
|
|
134
|
-
"enum": [
|
|
135
|
-
"top",
|
|
136
|
-
"center",
|
|
137
|
-
"bottom"
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "null"
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
"maxWidth": {
|
|
146
|
-
"anyOf": [
|
|
147
|
-
{
|
|
148
|
-
"type": "number",
|
|
149
|
-
"minimum": 0.1,
|
|
150
|
-
"maximum": 1
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "null"
|
|
154
|
-
}
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
"maxLines": {
|
|
158
|
-
"anyOf": [
|
|
159
|
-
{
|
|
160
|
-
"type": "integer",
|
|
161
|
-
"minimum": 1,
|
|
162
|
-
"maximum": 10
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"type": "null"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
216
|
}
|
|
169
217
|
},
|
|
170
218
|
"additionalProperties": false,
|
|
171
219
|
"required": [
|
|
172
220
|
"type",
|
|
173
221
|
"src",
|
|
174
|
-
"words",
|
|
175
222
|
"font",
|
|
176
223
|
"style",
|
|
177
224
|
"stroke",
|
|
178
225
|
"shadow",
|
|
179
226
|
"background",
|
|
227
|
+
"border",
|
|
180
228
|
"padding",
|
|
181
229
|
"align",
|
|
182
230
|
"active",
|
|
183
|
-
"wordAnimation"
|
|
184
|
-
"position",
|
|
185
|
-
"maxWidth",
|
|
186
|
-
"maxLines"
|
|
231
|
+
"wordAnimation"
|
|
187
232
|
],
|
|
188
233
|
"$defs": {
|
|
189
|
-
"WordTiming": {
|
|
190
|
-
"type": "object",
|
|
191
|
-
"properties": {
|
|
192
|
-
"text": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
},
|
|
195
|
-
"start": {
|
|
196
|
-
"type": "number",
|
|
197
|
-
"minimum": 0
|
|
198
|
-
},
|
|
199
|
-
"end": {
|
|
200
|
-
"type": "number",
|
|
201
|
-
"minimum": 0
|
|
202
|
-
},
|
|
203
|
-
"confidence": {
|
|
204
|
-
"anyOf": [
|
|
205
|
-
{
|
|
206
|
-
"type": "number",
|
|
207
|
-
"minimum": 0,
|
|
208
|
-
"maximum": 1
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"type": "null"
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"additionalProperties": false,
|
|
217
|
-
"required": [
|
|
218
|
-
"text",
|
|
219
|
-
"start",
|
|
220
|
-
"end",
|
|
221
|
-
"confidence"
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
"RichTextFont": {
|
|
225
|
-
"properties": {
|
|
226
|
-
"family": {
|
|
227
|
-
"anyOf": [
|
|
228
|
-
{
|
|
229
|
-
"type": "string",
|
|
230
|
-
"enum": [
|
|
231
|
-
"Open Sans"
|
|
232
|
-
]
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"type": "null"
|
|
236
|
-
}
|
|
237
|
-
]
|
|
238
|
-
},
|
|
239
|
-
"size": {
|
|
240
|
-
"anyOf": [
|
|
241
|
-
{
|
|
242
|
-
"type": "integer",
|
|
243
|
-
"minimum": 1,
|
|
244
|
-
"maximum": 500
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"type": "null"
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
},
|
|
251
|
-
"weight": {
|
|
252
|
-
"anyOf": [
|
|
253
|
-
{
|
|
254
|
-
"type": "string"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"type": "null"
|
|
258
|
-
}
|
|
259
|
-
]
|
|
260
|
-
},
|
|
261
|
-
"color": {
|
|
262
|
-
"anyOf": [
|
|
263
|
-
{
|
|
264
|
-
"type": "string"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"type": "null"
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
},
|
|
271
|
-
"opacity": {
|
|
272
|
-
"anyOf": [
|
|
273
|
-
{
|
|
274
|
-
"type": "number",
|
|
275
|
-
"minimum": 0,
|
|
276
|
-
"maximum": 1
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"type": "null"
|
|
280
|
-
}
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
"background": {
|
|
284
|
-
"anyOf": [
|
|
285
|
-
{
|
|
286
|
-
"type": "string"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"type": "null"
|
|
290
|
-
}
|
|
291
|
-
]
|
|
292
|
-
},
|
|
293
|
-
"stroke": {
|
|
294
|
-
"anyOf": [
|
|
295
|
-
{
|
|
296
|
-
"$ref": "#/$defs/RichTextStroke"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"type": "null"
|
|
300
|
-
}
|
|
301
|
-
]
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
"additionalProperties": false,
|
|
305
|
-
"type": "object",
|
|
306
|
-
"required": [
|
|
307
|
-
"family",
|
|
308
|
-
"size",
|
|
309
|
-
"weight",
|
|
310
|
-
"color",
|
|
311
|
-
"opacity",
|
|
312
|
-
"background",
|
|
313
|
-
"stroke"
|
|
314
|
-
]
|
|
315
|
-
},
|
|
316
|
-
"RichTextStroke": {
|
|
317
|
-
"properties": {
|
|
318
|
-
"width": {
|
|
319
|
-
"anyOf": [
|
|
320
|
-
{
|
|
321
|
-
"type": "number",
|
|
322
|
-
"minimum": 0
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"type": "null"
|
|
326
|
-
}
|
|
327
|
-
]
|
|
328
|
-
},
|
|
329
|
-
"color": {
|
|
330
|
-
"anyOf": [
|
|
331
|
-
{
|
|
332
|
-
"type": "string",
|
|
333
|
-
"enum": [
|
|
334
|
-
"#000000"
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"type": "null"
|
|
339
|
-
}
|
|
340
|
-
]
|
|
341
|
-
},
|
|
342
|
-
"opacity": {
|
|
343
|
-
"anyOf": [
|
|
344
|
-
{
|
|
345
|
-
"type": "number",
|
|
346
|
-
"minimum": 0,
|
|
347
|
-
"maximum": 1
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"type": "null"
|
|
351
|
-
}
|
|
352
|
-
]
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
"additionalProperties": false,
|
|
356
|
-
"type": "object",
|
|
357
|
-
"required": [
|
|
358
|
-
"width",
|
|
359
|
-
"color",
|
|
360
|
-
"opacity"
|
|
361
|
-
]
|
|
362
|
-
},
|
|
363
234
|
"RichTextStyle": {
|
|
364
235
|
"properties": {
|
|
365
236
|
"letterSpacing": {
|
|
@@ -506,6 +377,53 @@
|
|
|
506
377
|
"additionalProperties": false,
|
|
507
378
|
"type": "object"
|
|
508
379
|
},
|
|
380
|
+
"RichTextStroke": {
|
|
381
|
+
"properties": {
|
|
382
|
+
"width": {
|
|
383
|
+
"anyOf": [
|
|
384
|
+
{
|
|
385
|
+
"type": "number",
|
|
386
|
+
"minimum": 0
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"type": "null"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"color": {
|
|
394
|
+
"anyOf": [
|
|
395
|
+
{
|
|
396
|
+
"type": "string",
|
|
397
|
+
"enum": [
|
|
398
|
+
"#000000"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"type": "null"
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
"opacity": {
|
|
407
|
+
"anyOf": [
|
|
408
|
+
{
|
|
409
|
+
"type": "number",
|
|
410
|
+
"minimum": 0,
|
|
411
|
+
"maximum": 1
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"type": "null"
|
|
415
|
+
}
|
|
416
|
+
]
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"additionalProperties": false,
|
|
420
|
+
"type": "object",
|
|
421
|
+
"required": [
|
|
422
|
+
"width",
|
|
423
|
+
"color",
|
|
424
|
+
"opacity"
|
|
425
|
+
]
|
|
426
|
+
},
|
|
509
427
|
"RichTextShadow": {
|
|
510
428
|
"properties": {
|
|
511
429
|
"offsetX": {
|
|
@@ -847,6 +765,98 @@
|
|
|
847
765
|
"animation"
|
|
848
766
|
]
|
|
849
767
|
},
|
|
768
|
+
"RichTextFont": {
|
|
769
|
+
"properties": {
|
|
770
|
+
"family": {
|
|
771
|
+
"anyOf": [
|
|
772
|
+
{
|
|
773
|
+
"type": "string",
|
|
774
|
+
"enum": [
|
|
775
|
+
"Open Sans"
|
|
776
|
+
]
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"type": "null"
|
|
780
|
+
}
|
|
781
|
+
]
|
|
782
|
+
},
|
|
783
|
+
"size": {
|
|
784
|
+
"anyOf": [
|
|
785
|
+
{
|
|
786
|
+
"type": "integer",
|
|
787
|
+
"minimum": 1,
|
|
788
|
+
"maximum": 500
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"type": "null"
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
"weight": {
|
|
796
|
+
"anyOf": [
|
|
797
|
+
{
|
|
798
|
+
"type": "string"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"type": "null"
|
|
802
|
+
}
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
"color": {
|
|
806
|
+
"anyOf": [
|
|
807
|
+
{
|
|
808
|
+
"type": "string"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"type": "null"
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
"opacity": {
|
|
816
|
+
"anyOf": [
|
|
817
|
+
{
|
|
818
|
+
"type": "number",
|
|
819
|
+
"minimum": 0,
|
|
820
|
+
"maximum": 1
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"type": "null"
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"background": {
|
|
828
|
+
"anyOf": [
|
|
829
|
+
{
|
|
830
|
+
"type": "string"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"type": "null"
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
"stroke": {
|
|
838
|
+
"anyOf": [
|
|
839
|
+
{
|
|
840
|
+
"$ref": "#/$defs/RichTextStroke"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"type": "null"
|
|
844
|
+
}
|
|
845
|
+
]
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"additionalProperties": false,
|
|
849
|
+
"type": "object",
|
|
850
|
+
"required": [
|
|
851
|
+
"family",
|
|
852
|
+
"size",
|
|
853
|
+
"weight",
|
|
854
|
+
"color",
|
|
855
|
+
"opacity",
|
|
856
|
+
"background",
|
|
857
|
+
"stroke"
|
|
858
|
+
]
|
|
859
|
+
},
|
|
850
860
|
"RichTextAlignment": {
|
|
851
861
|
"properties": {
|
|
852
862
|
"horizontal": {
|
|
@@ -975,6 +985,16 @@
|
|
|
975
985
|
}
|
|
976
986
|
]
|
|
977
987
|
},
|
|
988
|
+
"shadow": {
|
|
989
|
+
"anyOf": [
|
|
990
|
+
{
|
|
991
|
+
"$ref": "#/$defs/RichTextShadow"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"type": "null"
|
|
995
|
+
}
|
|
996
|
+
]
|
|
997
|
+
},
|
|
978
998
|
"scale": {
|
|
979
999
|
"anyOf": [
|
|
980
1000
|
{
|
|
@@ -992,6 +1012,7 @@
|
|
|
992
1012
|
"required": [
|
|
993
1013
|
"font",
|
|
994
1014
|
"stroke",
|
|
1015
|
+
"shadow",
|
|
995
1016
|
"scale"
|
|
996
1017
|
]
|
|
997
1018
|
},
|
|
@@ -1032,13 +1053,29 @@
|
|
|
1032
1053
|
"type": "null"
|
|
1033
1054
|
}
|
|
1034
1055
|
]
|
|
1056
|
+
},
|
|
1057
|
+
"textDecoration": {
|
|
1058
|
+
"anyOf": [
|
|
1059
|
+
{
|
|
1060
|
+
"type": "string",
|
|
1061
|
+
"enum": [
|
|
1062
|
+
"none",
|
|
1063
|
+
"underline",
|
|
1064
|
+
"line-through"
|
|
1065
|
+
]
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"type": "null"
|
|
1069
|
+
}
|
|
1070
|
+
]
|
|
1035
1071
|
}
|
|
1036
1072
|
},
|
|
1037
1073
|
"additionalProperties": false,
|
|
1038
1074
|
"required": [
|
|
1039
1075
|
"color",
|
|
1040
1076
|
"background",
|
|
1041
|
-
"opacity"
|
|
1077
|
+
"opacity",
|
|
1078
|
+
"textDecoration"
|
|
1042
1079
|
]
|
|
1043
1080
|
},
|
|
1044
1081
|
"RichCaptionWordAnimation": {
|