@shotstack/schemas 1.7.0 → 1.7.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.
@@ -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
+ }