@shotstack/schemas 1.8.5 → 1.8.7

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.
@@ -11,32 +11,93 @@
11
11
  "type": "string"
12
12
  },
13
13
  "src": {
14
- "anyOf": [
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
- "$ref": "#/$defs/RichTextFont"
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
+ },
92
+ "additionalProperties": false,
93
+ "required": [
94
+ "family",
95
+ "size",
96
+ "weight",
97
+ "color",
98
+ "opacity",
99
+ "background"
100
+ ]
40
101
  },
41
102
  {
42
103
  "type": "null"
@@ -83,6 +144,16 @@
83
144
  }
84
145
  ]
85
146
  },
147
+ "border": {
148
+ "anyOf": [
149
+ {
150
+ "$ref": "#/$defs/RichTextAsset/properties/border"
151
+ },
152
+ {
153
+ "type": "null"
154
+ }
155
+ ]
156
+ },
86
157
  "padding": {
87
158
  "anyOf": [
88
159
  {
@@ -126,240 +197,24 @@
126
197
  "type": "null"
127
198
  }
128
199
  ]
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
200
  }
169
201
  },
170
202
  "additionalProperties": false,
171
203
  "required": [
172
204
  "type",
173
205
  "src",
174
- "words",
175
206
  "font",
176
207
  "style",
177
208
  "stroke",
178
209
  "shadow",
179
210
  "background",
211
+ "border",
180
212
  "padding",
181
213
  "align",
182
214
  "active",
183
- "wordAnimation",
184
- "position",
185
- "maxWidth",
186
- "maxLines"
215
+ "wordAnimation"
187
216
  ],
188
217
  "$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
218
  "RichTextStyle": {
364
219
  "properties": {
365
220
  "letterSpacing": {
@@ -506,6 +361,53 @@
506
361
  "additionalProperties": false,
507
362
  "type": "object"
508
363
  },
364
+ "RichTextStroke": {
365
+ "properties": {
366
+ "width": {
367
+ "anyOf": [
368
+ {
369
+ "type": "number",
370
+ "minimum": 0
371
+ },
372
+ {
373
+ "type": "null"
374
+ }
375
+ ]
376
+ },
377
+ "color": {
378
+ "anyOf": [
379
+ {
380
+ "type": "string",
381
+ "enum": [
382
+ "#000000"
383
+ ]
384
+ },
385
+ {
386
+ "type": "null"
387
+ }
388
+ ]
389
+ },
390
+ "opacity": {
391
+ "anyOf": [
392
+ {
393
+ "type": "number",
394
+ "minimum": 0,
395
+ "maximum": 1
396
+ },
397
+ {
398
+ "type": "null"
399
+ }
400
+ ]
401
+ }
402
+ },
403
+ "additionalProperties": false,
404
+ "type": "object",
405
+ "required": [
406
+ "width",
407
+ "color",
408
+ "opacity"
409
+ ]
410
+ },
509
411
  "RichTextShadow": {
510
412
  "properties": {
511
413
  "offsetX": {
@@ -847,6 +749,98 @@
847
749
  "animation"
848
750
  ]
849
751
  },
752
+ "RichTextFont": {
753
+ "properties": {
754
+ "family": {
755
+ "anyOf": [
756
+ {
757
+ "type": "string",
758
+ "enum": [
759
+ "Open Sans"
760
+ ]
761
+ },
762
+ {
763
+ "type": "null"
764
+ }
765
+ ]
766
+ },
767
+ "size": {
768
+ "anyOf": [
769
+ {
770
+ "type": "integer",
771
+ "minimum": 1,
772
+ "maximum": 500
773
+ },
774
+ {
775
+ "type": "null"
776
+ }
777
+ ]
778
+ },
779
+ "weight": {
780
+ "anyOf": [
781
+ {
782
+ "type": "string"
783
+ },
784
+ {
785
+ "type": "null"
786
+ }
787
+ ]
788
+ },
789
+ "color": {
790
+ "anyOf": [
791
+ {
792
+ "type": "string"
793
+ },
794
+ {
795
+ "type": "null"
796
+ }
797
+ ]
798
+ },
799
+ "opacity": {
800
+ "anyOf": [
801
+ {
802
+ "type": "number",
803
+ "minimum": 0,
804
+ "maximum": 1
805
+ },
806
+ {
807
+ "type": "null"
808
+ }
809
+ ]
810
+ },
811
+ "background": {
812
+ "anyOf": [
813
+ {
814
+ "type": "string"
815
+ },
816
+ {
817
+ "type": "null"
818
+ }
819
+ ]
820
+ },
821
+ "stroke": {
822
+ "anyOf": [
823
+ {
824
+ "$ref": "#/$defs/RichTextStroke"
825
+ },
826
+ {
827
+ "type": "null"
828
+ }
829
+ ]
830
+ }
831
+ },
832
+ "additionalProperties": false,
833
+ "type": "object",
834
+ "required": [
835
+ "family",
836
+ "size",
837
+ "weight",
838
+ "color",
839
+ "opacity",
840
+ "background",
841
+ "stroke"
842
+ ]
843
+ },
850
844
  "RichTextAlignment": {
851
845
  "properties": {
852
846
  "horizontal": {