@shotstack/schemas 1.6.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.
Files changed (95) hide show
  1. package/README.md +89 -89
  2. package/dist/json-schema/asset.json +3153 -0
  3. package/dist/json-schema/audio-asset.json +210 -0
  4. package/dist/json-schema/blueprint.json +380 -0
  5. package/dist/json-schema/caption-asset.json +285 -0
  6. package/dist/json-schema/caption-background.json +61 -0
  7. package/dist/json-schema/caption-detailer.json +275 -0
  8. package/dist/json-schema/caption-font.json +97 -0
  9. package/dist/json-schema/caption-margin.json +49 -0
  10. package/dist/json-schema/chroma-key.json +46 -0
  11. package/dist/json-schema/clip.json +3653 -0
  12. package/dist/json-schema/crop.json +69 -0
  13. package/dist/json-schema/destinations.json +495 -0
  14. package/dist/json-schema/edit.json +4618 -0
  15. package/dist/json-schema/flip-transformation.json +37 -0
  16. package/dist/json-schema/font.json +18 -0
  17. package/dist/json-schema/google-cloud-storage-destination-options.json +42 -0
  18. package/dist/json-schema/google-cloud-storage-destination.json +73 -0
  19. package/dist/json-schema/google-drive-destination-options.json +30 -0
  20. package/dist/json-schema/google-drive-destination.json +54 -0
  21. package/dist/json-schema/image-asset.json +104 -0
  22. package/dist/json-schema/image-to-video-asset.json +151 -0
  23. package/dist/json-schema/index.cjs +6 -0
  24. package/dist/json-schema/index.d.ts +11 -0
  25. package/dist/json-schema/index.js +8 -0
  26. package/dist/json-schema/luma-asset.json +38 -0
  27. package/dist/json-schema/merge-field.json +23 -0
  28. package/dist/json-schema/offset.json +175 -0
  29. package/dist/json-schema/output.json +771 -0
  30. package/dist/json-schema/poster.json +18 -0
  31. package/dist/json-schema/range.json +39 -0
  32. package/dist/json-schema/rich-caption-active-font.json +54 -0
  33. package/dist/json-schema/rich-caption-active.json +154 -0
  34. package/dist/json-schema/rich-caption-asset.json +1098 -0
  35. package/dist/json-schema/rich-caption-word-animation.json +60 -0
  36. package/dist/json-schema/rich-text-alignment.json +47 -0
  37. package/dist/json-schema/rich-text-animation.json +74 -0
  38. package/dist/json-schema/rich-text-asset.json +737 -0
  39. package/dist/json-schema/rich-text-background.json +52 -0
  40. package/dist/json-schema/rich-text-content.json +370 -0
  41. package/dist/json-schema/rich-text-effects.json +400 -0
  42. package/dist/json-schema/rich-text-font.json +157 -0
  43. package/dist/json-schema/rich-text-gradient.json +68 -0
  44. package/dist/json-schema/rich-text-shadow.json +79 -0
  45. package/dist/json-schema/rich-text-stroke.json +55 -0
  46. package/dist/json-schema/rich-text-style.json +165 -0
  47. package/dist/json-schema/rotate-transformation.json +153 -0
  48. package/dist/json-schema/s3destination-options.json +59 -0
  49. package/dist/json-schema/s3destination.json +90 -0
  50. package/dist/json-schema/schemas.json +5061 -0
  51. package/dist/json-schema/shape-asset.json +225 -0
  52. package/dist/json-schema/shotstack-destination.json +33 -0
  53. package/dist/json-schema/size.json +41 -0
  54. package/dist/json-schema/skew-transformation.json +175 -0
  55. package/dist/json-schema/soundtrack.json +47 -0
  56. package/dist/json-schema/svg-arrow-shape.json +49 -0
  57. package/dist/json-schema/svg-asset.json +877 -0
  58. package/dist/json-schema/svg-circle-shape.json +28 -0
  59. package/dist/json-schema/svg-cross-shape.json +42 -0
  60. package/dist/json-schema/svg-ellipse-shape.json +35 -0
  61. package/dist/json-schema/svg-fill.json +169 -0
  62. package/dist/json-schema/svg-gradient-stop.json +25 -0
  63. package/dist/json-schema/svg-heart-shape.json +28 -0
  64. package/dist/json-schema/svg-line-shape.json +35 -0
  65. package/dist/json-schema/svg-linear-gradient-fill.json +80 -0
  66. package/dist/json-schema/svg-path-shape.json +26 -0
  67. package/dist/json-schema/svg-polygon-shape.json +35 -0
  68. package/dist/json-schema/svg-radial-gradient-fill.json +66 -0
  69. package/dist/json-schema/svg-rectangle-shape.json +49 -0
  70. package/dist/json-schema/svg-ring-shape.json +35 -0
  71. package/dist/json-schema/svg-shadow.json +79 -0
  72. package/dist/json-schema/svg-shape.json +404 -0
  73. package/dist/json-schema/svg-solid-fill.json +40 -0
  74. package/dist/json-schema/svg-star-shape.json +42 -0
  75. package/dist/json-schema/svg-stroke.json +115 -0
  76. package/dist/json-schema/svg-transform.json +93 -0
  77. package/dist/json-schema/template.json +541 -0
  78. package/dist/json-schema/text-to-image-asset.json +128 -0
  79. package/dist/json-schema/text-to-speech-asset.json +239 -0
  80. package/dist/json-schema/thumbnail.json +25 -0
  81. package/dist/json-schema/timeline.json +3781 -0
  82. package/dist/json-schema/track.json +3668 -0
  83. package/dist/json-schema/transformation.json +281 -0
  84. package/dist/json-schema/transition.json +85 -0
  85. package/dist/json-schema/tween.json +120 -0
  86. package/dist/json-schema/video-asset.json +351 -0
  87. package/dist/json-schema/vimeo-destination-options.json +149 -0
  88. package/dist/json-schema/vimeo-destination-privacy-options.json +90 -0
  89. package/dist/json-schema/vimeo-destination.json +178 -0
  90. package/dist/json-schema/word-timing.json +44 -0
  91. package/dist/zod/zod.gen.cjs +1080 -921
  92. package/dist/zod/zod.gen.d.ts +139 -139
  93. package/dist/zod/zod.gen.js +1081 -922
  94. package/dist/zod/zod.gen.ts +1583 -1648
  95. package/package.json +79 -73
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "SvgTransform",
3
+ "strict": true,
4
+ "schema": {
5
+ "description": "Transformation properties for positioning, rotating, and scaling SVG shapes.\n",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "x": {
10
+ "anyOf": [
11
+ {
12
+ "type": "number",
13
+ "description": "The x-coordinate position of the shape in pixels.\nRelative to the top-left corner of the viewport.\n"
14
+ },
15
+ {
16
+ "type": "null"
17
+ }
18
+ ]
19
+ },
20
+ "y": {
21
+ "anyOf": [
22
+ {
23
+ "type": "number",
24
+ "description": "The y-coordinate position of the shape in pixels.\nRelative to the top-left corner of the viewport.\n"
25
+ },
26
+ {
27
+ "type": "null"
28
+ }
29
+ ]
30
+ },
31
+ "rotation": {
32
+ "anyOf": [
33
+ {
34
+ "type": "number",
35
+ "description": "Rotation angle in degrees. Positive values rotate clockwise,\nnegative values rotate counter-clockwise. Range: -360 to 360.\n",
36
+ "minimum": -360,
37
+ "maximum": 360
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ]
43
+ },
44
+ "scale": {
45
+ "anyOf": [
46
+ {
47
+ "type": "number",
48
+ "description": "Scale factor for the shape. `1` is original size, `2` is double size,\n`0.5` is half size. Must be greater than 0.\n",
49
+ "minimum": 0.01,
50
+ "maximum": 100
51
+ },
52
+ {
53
+ "type": "null"
54
+ }
55
+ ]
56
+ },
57
+ "originX": {
58
+ "anyOf": [
59
+ {
60
+ "type": "number",
61
+ "description": "The x-coordinate of the transformation origin as a value from 0 to 1.\n`0` is the left edge, `0.5` is the center, `1` is the right edge.\n",
62
+ "minimum": 0,
63
+ "maximum": 1
64
+ },
65
+ {
66
+ "type": "null"
67
+ }
68
+ ]
69
+ },
70
+ "originY": {
71
+ "anyOf": [
72
+ {
73
+ "type": "number",
74
+ "description": "The y-coordinate of the transformation origin as a value from 0 to 1.\n`0` is the top edge, `0.5` is the center, `1` is the bottom edge.\n",
75
+ "minimum": 0,
76
+ "maximum": 1
77
+ },
78
+ {
79
+ "type": "null"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ "required": [
85
+ "x",
86
+ "y",
87
+ "rotation",
88
+ "scale",
89
+ "originX",
90
+ "originY"
91
+ ]
92
+ }
93
+ }
@@ -0,0 +1,541 @@
1
+ {
2
+ "name": "Template",
3
+ "strict": true,
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "timeline": {
8
+ "$ref": "#/$defs/Timeline"
9
+ },
10
+ "output": {
11
+ "$ref": "#/$defs/Output"
12
+ },
13
+ "merge": {
14
+ "anyOf": [
15
+ {
16
+ "type": "array",
17
+ "items": {
18
+ "$ref": "#/$defs/MergeField"
19
+ }
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ "additionalProperties": false,
28
+ "required": [
29
+ "timeline",
30
+ "output",
31
+ "merge"
32
+ ],
33
+ "$defs": {
34
+ "Timeline": {
35
+ "properties": {
36
+ "tracks": {
37
+ "type": "array",
38
+ "items": {
39
+ "$ref": "#/$defs/Track"
40
+ }
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "tracks"
46
+ ],
47
+ "type": "object"
48
+ },
49
+ "Track": {
50
+ "properties": {
51
+ "clips": {
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "#/$defs/Clip"
55
+ }
56
+ }
57
+ },
58
+ "additionalProperties": false,
59
+ "required": [
60
+ "clips"
61
+ ],
62
+ "type": "object"
63
+ },
64
+ "Clip": {
65
+ "properties": {
66
+ "asset": {
67
+ "$ref": "#/$defs/Asset"
68
+ },
69
+ "start": {
70
+ "anyOf": [
71
+ {
72
+ "type": "number",
73
+ "minimum": 0
74
+ },
75
+ {
76
+ "type": "string"
77
+ }
78
+ ]
79
+ },
80
+ "length": {
81
+ "anyOf": [
82
+ {
83
+ "type": "number",
84
+ "minimum": 0
85
+ },
86
+ {
87
+ "type": "string"
88
+ }
89
+ ]
90
+ },
91
+ "fit": {
92
+ "anyOf": [
93
+ {
94
+ "type": "string",
95
+ "enum": [
96
+ "cover",
97
+ "contain",
98
+ "crop",
99
+ "none"
100
+ ]
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "position": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string",
111
+ "enum": [
112
+ "top",
113
+ "topRight",
114
+ "right",
115
+ "bottomRight",
116
+ "bottom",
117
+ "bottomLeft",
118
+ "left",
119
+ "topLeft",
120
+ "center"
121
+ ]
122
+ },
123
+ {
124
+ "type": "null"
125
+ }
126
+ ]
127
+ },
128
+ "transition": {
129
+ "anyOf": [
130
+ {
131
+ "$ref": "#/$defs/Transition"
132
+ },
133
+ {
134
+ "type": "null"
135
+ }
136
+ ]
137
+ },
138
+ "effect": {
139
+ "anyOf": [
140
+ {
141
+ "type": "string",
142
+ "enum": [
143
+ "zoomIn",
144
+ "zoomInSlow",
145
+ "zoomInFast",
146
+ "zoomOut",
147
+ "zoomOutSlow",
148
+ "zoomOutFast",
149
+ "slideLeft",
150
+ "slideLeftSlow",
151
+ "slideLeftFast",
152
+ "slideRight",
153
+ "slideRightSlow",
154
+ "slideRightFast",
155
+ "slideUp",
156
+ "slideUpSlow",
157
+ "slideUpFast",
158
+ "slideDown",
159
+ "slideDownSlow",
160
+ "slideDownFast"
161
+ ]
162
+ },
163
+ {
164
+ "type": "null"
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ "additionalProperties": false,
170
+ "required": [
171
+ "asset",
172
+ "start",
173
+ "length",
174
+ "fit",
175
+ "position",
176
+ "transition",
177
+ "effect"
178
+ ],
179
+ "type": "object"
180
+ },
181
+ "Asset": {
182
+ "anyOf": [
183
+ {
184
+ "$ref": "#/$defs/VideoAsset"
185
+ },
186
+ {
187
+ "$ref": "#/$defs/ImageAsset"
188
+ },
189
+ {
190
+ "$ref": "#/$defs/AudioAsset"
191
+ }
192
+ ]
193
+ },
194
+ "VideoAsset": {
195
+ "type": "object",
196
+ "properties": {
197
+ "type": {
198
+ "enum": [
199
+ "video"
200
+ ],
201
+ "type": "string"
202
+ },
203
+ "src": {
204
+ "type": "string"
205
+ },
206
+ "trim": {
207
+ "anyOf": [
208
+ {
209
+ "type": "number"
210
+ },
211
+ {
212
+ "type": "null"
213
+ }
214
+ ]
215
+ },
216
+ "volume": {
217
+ "anyOf": [
218
+ {
219
+ "type": "number",
220
+ "minimum": 0,
221
+ "maximum": 1
222
+ },
223
+ {
224
+ "type": "null"
225
+ }
226
+ ]
227
+ },
228
+ "volumeEffect": {
229
+ "anyOf": [
230
+ {
231
+ "type": "string",
232
+ "enum": [
233
+ "none",
234
+ "fadeIn",
235
+ "fadeOut",
236
+ "fadeInFadeOut"
237
+ ]
238
+ },
239
+ {
240
+ "type": "null"
241
+ }
242
+ ]
243
+ },
244
+ "speed": {
245
+ "anyOf": [
246
+ {
247
+ "type": "number",
248
+ "minimum": 0,
249
+ "maximum": 10
250
+ },
251
+ {
252
+ "type": "null"
253
+ }
254
+ ]
255
+ }
256
+ },
257
+ "additionalProperties": false,
258
+ "required": [
259
+ "type",
260
+ "src",
261
+ "trim",
262
+ "volume",
263
+ "volumeEffect",
264
+ "speed"
265
+ ]
266
+ },
267
+ "ImageAsset": {
268
+ "type": "object",
269
+ "properties": {
270
+ "type": {
271
+ "enum": [
272
+ "image"
273
+ ],
274
+ "type": "string"
275
+ },
276
+ "src": {
277
+ "type": "string"
278
+ }
279
+ },
280
+ "additionalProperties": false,
281
+ "required": [
282
+ "type",
283
+ "src"
284
+ ]
285
+ },
286
+ "AudioAsset": {
287
+ "type": "object",
288
+ "properties": {
289
+ "type": {
290
+ "enum": [
291
+ "audio"
292
+ ],
293
+ "type": "string"
294
+ },
295
+ "src": {
296
+ "type": "string"
297
+ },
298
+ "trim": {
299
+ "anyOf": [
300
+ {
301
+ "type": "number"
302
+ },
303
+ {
304
+ "type": "null"
305
+ }
306
+ ]
307
+ },
308
+ "volume": {
309
+ "anyOf": [
310
+ {
311
+ "type": "number",
312
+ "minimum": 0,
313
+ "maximum": 1
314
+ },
315
+ {
316
+ "type": "null"
317
+ }
318
+ ]
319
+ },
320
+ "effect": {
321
+ "anyOf": [
322
+ {
323
+ "type": "string",
324
+ "enum": [
325
+ "none",
326
+ "fadeIn",
327
+ "fadeOut",
328
+ "fadeInFadeOut"
329
+ ]
330
+ },
331
+ {
332
+ "type": "null"
333
+ }
334
+ ]
335
+ }
336
+ },
337
+ "additionalProperties": false,
338
+ "required": [
339
+ "type",
340
+ "src",
341
+ "trim",
342
+ "volume",
343
+ "effect"
344
+ ]
345
+ },
346
+ "Transition": {
347
+ "properties": {
348
+ "in": {
349
+ "anyOf": [
350
+ {
351
+ "type": "string",
352
+ "enum": [
353
+ "none",
354
+ "fade",
355
+ "reveal",
356
+ "wipeLeft",
357
+ "wipeRight",
358
+ "slideLeft",
359
+ "slideRight",
360
+ "slideUp",
361
+ "slideDown",
362
+ "carouselLeft",
363
+ "carouselRight",
364
+ "carouselUp",
365
+ "carouselDown",
366
+ "shuffleTopRight",
367
+ "shuffleRightTop",
368
+ "shuffleRightBottom",
369
+ "shuffleBottomRight",
370
+ "shuffleBottomLeft",
371
+ "shuffleLeftBottom",
372
+ "shuffleLeftTop",
373
+ "shuffleTopLeft",
374
+ "zoom"
375
+ ]
376
+ },
377
+ {
378
+ "type": "null"
379
+ }
380
+ ]
381
+ },
382
+ "out": {
383
+ "anyOf": [
384
+ {
385
+ "type": "string",
386
+ "enum": [
387
+ "none",
388
+ "fade",
389
+ "reveal",
390
+ "wipeLeft",
391
+ "wipeRight",
392
+ "slideLeft",
393
+ "slideRight",
394
+ "slideUp",
395
+ "slideDown",
396
+ "carouselLeft",
397
+ "carouselRight",
398
+ "carouselUp",
399
+ "carouselDown",
400
+ "shuffleTopRight",
401
+ "shuffleRightTop",
402
+ "shuffleRightBottom",
403
+ "shuffleBottomRight",
404
+ "shuffleBottomLeft",
405
+ "shuffleLeftBottom",
406
+ "shuffleLeftTop",
407
+ "shuffleTopLeft",
408
+ "zoom"
409
+ ]
410
+ },
411
+ {
412
+ "type": "null"
413
+ }
414
+ ]
415
+ }
416
+ },
417
+ "additionalProperties": false,
418
+ "type": "object",
419
+ "required": [
420
+ "in",
421
+ "out"
422
+ ]
423
+ },
424
+ "Output": {
425
+ "properties": {
426
+ "format": {
427
+ "enum": [
428
+ "mp4",
429
+ "gif",
430
+ "mp3",
431
+ "jpg",
432
+ "png",
433
+ "bmp"
434
+ ],
435
+ "type": "string"
436
+ },
437
+ "resolution": {
438
+ "anyOf": [
439
+ {
440
+ "type": "string",
441
+ "enum": [
442
+ "preview",
443
+ "mobile",
444
+ "sd",
445
+ "hd",
446
+ "1080",
447
+ "4k"
448
+ ]
449
+ },
450
+ {
451
+ "type": "null"
452
+ }
453
+ ]
454
+ },
455
+ "aspectRatio": {
456
+ "anyOf": [
457
+ {
458
+ "type": "string",
459
+ "enum": [
460
+ "16:9",
461
+ "9:16",
462
+ "1:1",
463
+ "4:5",
464
+ "4:3"
465
+ ]
466
+ },
467
+ {
468
+ "type": "null"
469
+ }
470
+ ]
471
+ },
472
+ "fps": {
473
+ "anyOf": [
474
+ {
475
+ "type": "number",
476
+ "enum": [
477
+ 12,
478
+ 15,
479
+ 23.976,
480
+ 24,
481
+ 25,
482
+ 29.97,
483
+ 30,
484
+ 48,
485
+ 50,
486
+ 59.94,
487
+ 60
488
+ ]
489
+ },
490
+ {
491
+ "type": "null"
492
+ }
493
+ ]
494
+ },
495
+ "quality": {
496
+ "anyOf": [
497
+ {
498
+ "type": "string",
499
+ "enum": [
500
+ "verylow",
501
+ "low",
502
+ "medium",
503
+ "high",
504
+ "veryhigh"
505
+ ]
506
+ },
507
+ {
508
+ "type": "null"
509
+ }
510
+ ]
511
+ }
512
+ },
513
+ "additionalProperties": false,
514
+ "required": [
515
+ "format",
516
+ "resolution",
517
+ "aspectRatio",
518
+ "fps",
519
+ "quality"
520
+ ],
521
+ "type": "object"
522
+ },
523
+ "MergeField": {
524
+ "type": "object",
525
+ "properties": {
526
+ "find": {
527
+ "type": "string"
528
+ },
529
+ "replace": {
530
+ "type": "string"
531
+ }
532
+ },
533
+ "additionalProperties": false,
534
+ "required": [
535
+ "find",
536
+ "replace"
537
+ ]
538
+ }
539
+ }
540
+ }
541
+ }