@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.
@@ -213,7 +213,37 @@
213
213
  "easing": {
214
214
  "anyOf": [
215
215
  {
216
- "type": "string"
216
+ "type": "string",
217
+ "enum": [
218
+ "ease",
219
+ "easeIn",
220
+ "easeOut",
221
+ "easeInOut",
222
+ "easeInQuad",
223
+ "easeInCubic",
224
+ "easeInQuart",
225
+ "easeInQuint",
226
+ "easeInSine",
227
+ "easeInExpo",
228
+ "easeInCirc",
229
+ "easeInBack",
230
+ "easeOutQuad",
231
+ "easeOutCubic",
232
+ "easeOutQuart",
233
+ "easeOutQuint",
234
+ "easeOutSine",
235
+ "easeOutExpo",
236
+ "easeOutCirc",
237
+ "easeOutBack",
238
+ "easeInOutQuad",
239
+ "easeInOutCubic",
240
+ "easeInOutQuart",
241
+ "easeInOutQuint",
242
+ "easeInOutSine",
243
+ "easeInOutExpo",
244
+ "easeInOutCirc",
245
+ "easeInOutBack"
246
+ ]
217
247
  },
218
248
  {
219
249
  "type": "null"
@@ -156,7 +156,37 @@
156
156
  "anyOf": [
157
157
  {
158
158
  "type": "string",
159
- "description": "The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`."
159
+ "description": "The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`.",
160
+ "enum": [
161
+ "ease",
162
+ "easeIn",
163
+ "easeOut",
164
+ "easeInOut",
165
+ "easeInQuad",
166
+ "easeInCubic",
167
+ "easeInQuart",
168
+ "easeInQuint",
169
+ "easeInSine",
170
+ "easeInExpo",
171
+ "easeInCirc",
172
+ "easeInBack",
173
+ "easeOutQuad",
174
+ "easeOutCubic",
175
+ "easeOutQuart",
176
+ "easeOutQuint",
177
+ "easeOutSine",
178
+ "easeOutExpo",
179
+ "easeOutCirc",
180
+ "easeOutBack",
181
+ "easeInOutQuad",
182
+ "easeInOutCubic",
183
+ "easeInOutQuart",
184
+ "easeInOutQuint",
185
+ "easeInOutSine",
186
+ "easeInOutExpo",
187
+ "easeInOutCirc",
188
+ "easeInOutBack"
189
+ ]
160
190
  },
161
191
  {
162
192
  "type": "null"
@@ -0,0 +1,380 @@
1
+ {
2
+ "name": "Blueprint",
3
+ "strict": true,
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "output": {
8
+ "$ref": "#/$defs/Output"
9
+ },
10
+ "merge": {
11
+ "anyOf": [
12
+ {
13
+ "type": "array",
14
+ "items": {
15
+ "$ref": "#/$defs/MergeField"
16
+ }
17
+ },
18
+ {
19
+ "type": "null"
20
+ }
21
+ ]
22
+ },
23
+ "timeline": {
24
+ "type": "object",
25
+ "properties": {
26
+ "tracks": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "properties": {
31
+ "clips": {
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/$defs/BlueprintClip"
35
+ }
36
+ }
37
+ },
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "clips"
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ "additionalProperties": false,
46
+ "required": [
47
+ "tracks"
48
+ ]
49
+ }
50
+ },
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "output",
54
+ "merge",
55
+ "timeline"
56
+ ],
57
+ "$defs": {
58
+ "BlueprintClip": {
59
+ "type": "object",
60
+ "properties": {
61
+ "asset": {
62
+ "type": "string",
63
+ "enum": [
64
+ "video",
65
+ "image",
66
+ "audio",
67
+ "rich-text",
68
+ "svg",
69
+ "caption"
70
+ ]
71
+ },
72
+ "start": {
73
+ "anyOf": [
74
+ {
75
+ "type": "number",
76
+ "minimum": 0
77
+ },
78
+ {
79
+ "type": "string"
80
+ }
81
+ ]
82
+ },
83
+ "length": {
84
+ "anyOf": [
85
+ {
86
+ "type": "number",
87
+ "minimum": 0
88
+ },
89
+ {
90
+ "type": "string"
91
+ }
92
+ ]
93
+ },
94
+ "fit": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string",
98
+ "enum": [
99
+ "cover",
100
+ "contain",
101
+ "crop",
102
+ "none"
103
+ ]
104
+ },
105
+ {
106
+ "type": "null"
107
+ }
108
+ ]
109
+ },
110
+ "position": {
111
+ "anyOf": [
112
+ {
113
+ "type": "string",
114
+ "enum": [
115
+ "top",
116
+ "topRight",
117
+ "right",
118
+ "bottomRight",
119
+ "bottom",
120
+ "bottomLeft",
121
+ "left",
122
+ "topLeft",
123
+ "center"
124
+ ]
125
+ },
126
+ {
127
+ "type": "null"
128
+ }
129
+ ]
130
+ },
131
+ "transition": {
132
+ "anyOf": [
133
+ {
134
+ "$ref": "#/$defs/Transition"
135
+ },
136
+ {
137
+ "type": "null"
138
+ }
139
+ ]
140
+ },
141
+ "effect": {
142
+ "anyOf": [
143
+ {
144
+ "type": "string"
145
+ },
146
+ {
147
+ "type": "null"
148
+ }
149
+ ]
150
+ },
151
+ "mergeField": {
152
+ "anyOf": [
153
+ {
154
+ "type": "string"
155
+ },
156
+ {
157
+ "type": "null"
158
+ }
159
+ ]
160
+ },
161
+ "textHint": {
162
+ "anyOf": [
163
+ {
164
+ "type": "string"
165
+ },
166
+ {
167
+ "type": "null"
168
+ }
169
+ ]
170
+ }
171
+ },
172
+ "additionalProperties": false,
173
+ "required": [
174
+ "asset",
175
+ "start",
176
+ "length",
177
+ "fit",
178
+ "position",
179
+ "transition",
180
+ "effect",
181
+ "mergeField",
182
+ "textHint"
183
+ ]
184
+ },
185
+ "Transition": {
186
+ "properties": {
187
+ "in": {
188
+ "anyOf": [
189
+ {
190
+ "type": "string",
191
+ "enum": [
192
+ "none",
193
+ "fade",
194
+ "reveal",
195
+ "wipeLeft",
196
+ "wipeRight",
197
+ "slideLeft",
198
+ "slideRight",
199
+ "slideUp",
200
+ "slideDown",
201
+ "carouselLeft",
202
+ "carouselRight",
203
+ "carouselUp",
204
+ "carouselDown",
205
+ "shuffleTopRight",
206
+ "shuffleRightTop",
207
+ "shuffleRightBottom",
208
+ "shuffleBottomRight",
209
+ "shuffleBottomLeft",
210
+ "shuffleLeftBottom",
211
+ "shuffleLeftTop",
212
+ "shuffleTopLeft",
213
+ "zoom"
214
+ ]
215
+ },
216
+ {
217
+ "type": "null"
218
+ }
219
+ ]
220
+ },
221
+ "out": {
222
+ "anyOf": [
223
+ {
224
+ "type": "string",
225
+ "enum": [
226
+ "none",
227
+ "fade",
228
+ "reveal",
229
+ "wipeLeft",
230
+ "wipeRight",
231
+ "slideLeft",
232
+ "slideRight",
233
+ "slideUp",
234
+ "slideDown",
235
+ "carouselLeft",
236
+ "carouselRight",
237
+ "carouselUp",
238
+ "carouselDown",
239
+ "shuffleTopRight",
240
+ "shuffleRightTop",
241
+ "shuffleRightBottom",
242
+ "shuffleBottomRight",
243
+ "shuffleBottomLeft",
244
+ "shuffleLeftBottom",
245
+ "shuffleLeftTop",
246
+ "shuffleTopLeft",
247
+ "zoom"
248
+ ]
249
+ },
250
+ {
251
+ "type": "null"
252
+ }
253
+ ]
254
+ }
255
+ },
256
+ "additionalProperties": false,
257
+ "type": "object",
258
+ "required": [
259
+ "in",
260
+ "out"
261
+ ]
262
+ },
263
+ "Output": {
264
+ "properties": {
265
+ "format": {
266
+ "enum": [
267
+ "mp4",
268
+ "gif",
269
+ "mp3",
270
+ "jpg",
271
+ "png",
272
+ "bmp"
273
+ ],
274
+ "type": "string"
275
+ },
276
+ "resolution": {
277
+ "anyOf": [
278
+ {
279
+ "type": "string",
280
+ "enum": [
281
+ "preview",
282
+ "mobile",
283
+ "sd",
284
+ "hd",
285
+ "1080",
286
+ "4k"
287
+ ]
288
+ },
289
+ {
290
+ "type": "null"
291
+ }
292
+ ]
293
+ },
294
+ "aspectRatio": {
295
+ "anyOf": [
296
+ {
297
+ "type": "string",
298
+ "enum": [
299
+ "16:9",
300
+ "9:16",
301
+ "1:1",
302
+ "4:5",
303
+ "4:3"
304
+ ]
305
+ },
306
+ {
307
+ "type": "null"
308
+ }
309
+ ]
310
+ },
311
+ "fps": {
312
+ "anyOf": [
313
+ {
314
+ "type": "number",
315
+ "enum": [
316
+ 12,
317
+ 15,
318
+ 23.976,
319
+ 24,
320
+ 25,
321
+ 29.97,
322
+ 30,
323
+ 48,
324
+ 50,
325
+ 59.94,
326
+ 60
327
+ ]
328
+ },
329
+ {
330
+ "type": "null"
331
+ }
332
+ ]
333
+ },
334
+ "quality": {
335
+ "anyOf": [
336
+ {
337
+ "type": "string",
338
+ "enum": [
339
+ "verylow",
340
+ "low",
341
+ "medium",
342
+ "high",
343
+ "veryhigh"
344
+ ]
345
+ },
346
+ {
347
+ "type": "null"
348
+ }
349
+ ]
350
+ }
351
+ },
352
+ "additionalProperties": false,
353
+ "required": [
354
+ "format",
355
+ "resolution",
356
+ "aspectRatio",
357
+ "fps",
358
+ "quality"
359
+ ],
360
+ "type": "object"
361
+ },
362
+ "MergeField": {
363
+ "type": "object",
364
+ "properties": {
365
+ "find": {
366
+ "type": "string"
367
+ },
368
+ "replace": {
369
+ "type": "string"
370
+ }
371
+ },
372
+ "additionalProperties": false,
373
+ "required": [
374
+ "find",
375
+ "replace"
376
+ ]
377
+ }
378
+ }
379
+ }
380
+ }