@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
@@ -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
+ }
@@ -0,0 +1,275 @@
1
+ {
2
+ "name": "CaptionDetails",
3
+ "strict": true,
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "assets": {
8
+ "type": "array",
9
+ "items": {
10
+ "$ref": "#/$defs/CaptionAsset"
11
+ }
12
+ }
13
+ },
14
+ "additionalProperties": false,
15
+ "required": [
16
+ "assets"
17
+ ],
18
+ "$defs": {
19
+ "CaptionAsset": {
20
+ "type": "object",
21
+ "properties": {
22
+ "type": {
23
+ "enum": [
24
+ "caption"
25
+ ],
26
+ "type": "string"
27
+ },
28
+ "src": {
29
+ "type": "string"
30
+ },
31
+ "font": {
32
+ "anyOf": [
33
+ {
34
+ "$ref": "#/$defs/CaptionFont"
35
+ },
36
+ {
37
+ "type": "null"
38
+ }
39
+ ]
40
+ },
41
+ "background": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/$defs/CaptionBackground"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "margin": {
52
+ "anyOf": [
53
+ {
54
+ "$ref": "#/$defs/CaptionMargin"
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ]
60
+ },
61
+ "trim": {
62
+ "anyOf": [
63
+ {
64
+ "type": "number"
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ]
70
+ },
71
+ "speed": {
72
+ "anyOf": [
73
+ {
74
+ "type": "number",
75
+ "minimum": 0,
76
+ "maximum": 10
77
+ },
78
+ {
79
+ "type": "null"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "type",
87
+ "src",
88
+ "font",
89
+ "background",
90
+ "margin",
91
+ "trim",
92
+ "speed"
93
+ ]
94
+ },
95
+ "CaptionFont": {
96
+ "properties": {
97
+ "family": {
98
+ "anyOf": [
99
+ {
100
+ "type": "string"
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "color": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string"
111
+ },
112
+ {
113
+ "type": "null"
114
+ }
115
+ ]
116
+ },
117
+ "opacity": {
118
+ "anyOf": [
119
+ {
120
+ "type": "number"
121
+ },
122
+ {
123
+ "type": "null"
124
+ }
125
+ ]
126
+ },
127
+ "size": {
128
+ "anyOf": [
129
+ {
130
+ "type": "integer"
131
+ },
132
+ {
133
+ "type": "null"
134
+ }
135
+ ]
136
+ },
137
+ "lineHeight": {
138
+ "anyOf": [
139
+ {
140
+ "type": "number"
141
+ },
142
+ {
143
+ "type": "null"
144
+ }
145
+ ]
146
+ },
147
+ "stroke": {
148
+ "anyOf": [
149
+ {
150
+ "type": "string"
151
+ },
152
+ {
153
+ "type": "null"
154
+ }
155
+ ]
156
+ },
157
+ "strokeWidth": {
158
+ "anyOf": [
159
+ {
160
+ "type": "number"
161
+ },
162
+ {
163
+ "type": "null"
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ "additionalProperties": false,
169
+ "type": "object",
170
+ "required": [
171
+ "family",
172
+ "color",
173
+ "opacity",
174
+ "size",
175
+ "lineHeight",
176
+ "stroke",
177
+ "strokeWidth"
178
+ ]
179
+ },
180
+ "CaptionBackground": {
181
+ "properties": {
182
+ "color": {
183
+ "anyOf": [
184
+ {
185
+ "type": "string"
186
+ },
187
+ {
188
+ "type": "null"
189
+ }
190
+ ]
191
+ },
192
+ "opacity": {
193
+ "anyOf": [
194
+ {
195
+ "type": "number"
196
+ },
197
+ {
198
+ "type": "null"
199
+ }
200
+ ]
201
+ },
202
+ "padding": {
203
+ "anyOf": [
204
+ {
205
+ "type": "integer"
206
+ },
207
+ {
208
+ "type": "null"
209
+ }
210
+ ]
211
+ },
212
+ "borderRadius": {
213
+ "anyOf": [
214
+ {
215
+ "type": "integer"
216
+ },
217
+ {
218
+ "type": "null"
219
+ }
220
+ ]
221
+ }
222
+ },
223
+ "additionalProperties": false,
224
+ "type": "object",
225
+ "required": [
226
+ "color",
227
+ "opacity",
228
+ "padding",
229
+ "borderRadius"
230
+ ]
231
+ },
232
+ "CaptionMargin": {
233
+ "properties": {
234
+ "top": {
235
+ "anyOf": [
236
+ {
237
+ "type": "number"
238
+ },
239
+ {
240
+ "type": "null"
241
+ }
242
+ ]
243
+ },
244
+ "left": {
245
+ "anyOf": [
246
+ {
247
+ "type": "number"
248
+ },
249
+ {
250
+ "type": "null"
251
+ }
252
+ ]
253
+ },
254
+ "right": {
255
+ "anyOf": [
256
+ {
257
+ "type": "number"
258
+ },
259
+ {
260
+ "type": "null"
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ "additionalProperties": false,
266
+ "type": "object",
267
+ "required": [
268
+ "top",
269
+ "left",
270
+ "right"
271
+ ]
272
+ }
273
+ }
274
+ }
275
+ }