@shotstack/schemas 1.6.0 → 1.7.0

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 (90) hide show
  1. package/README.md +89 -89
  2. package/dist/json-schema/asset.json +3123 -0
  3. package/dist/json-schema/audio-asset.json +180 -0
  4. package/dist/json-schema/caption-asset.json +285 -0
  5. package/dist/json-schema/caption-background.json +61 -0
  6. package/dist/json-schema/caption-font.json +97 -0
  7. package/dist/json-schema/caption-margin.json +49 -0
  8. package/dist/json-schema/chroma-key.json +46 -0
  9. package/dist/json-schema/clip.json +3575 -0
  10. package/dist/json-schema/crop.json +69 -0
  11. package/dist/json-schema/destinations.json +495 -0
  12. package/dist/json-schema/edit.json +4540 -0
  13. package/dist/json-schema/flip-transformation.json +37 -0
  14. package/dist/json-schema/font.json +18 -0
  15. package/dist/json-schema/google-cloud-storage-destination-options.json +42 -0
  16. package/dist/json-schema/google-cloud-storage-destination.json +73 -0
  17. package/dist/json-schema/google-drive-destination-options.json +30 -0
  18. package/dist/json-schema/google-drive-destination.json +54 -0
  19. package/dist/json-schema/image-asset.json +104 -0
  20. package/dist/json-schema/image-to-video-asset.json +151 -0
  21. package/dist/json-schema/index.cjs +1 -0
  22. package/dist/json-schema/index.d.ts +6 -0
  23. package/dist/json-schema/index.js +3 -0
  24. package/dist/json-schema/luma-asset.json +38 -0
  25. package/dist/json-schema/merge-field.json +23 -0
  26. package/dist/json-schema/offset.json +145 -0
  27. package/dist/json-schema/output.json +771 -0
  28. package/dist/json-schema/poster.json +18 -0
  29. package/dist/json-schema/range.json +39 -0
  30. package/dist/json-schema/rich-caption-active-font.json +54 -0
  31. package/dist/json-schema/rich-caption-active.json +154 -0
  32. package/dist/json-schema/rich-caption-asset.json +1098 -0
  33. package/dist/json-schema/rich-caption-word-animation.json +60 -0
  34. package/dist/json-schema/rich-text-alignment.json +47 -0
  35. package/dist/json-schema/rich-text-animation.json +74 -0
  36. package/dist/json-schema/rich-text-asset.json +737 -0
  37. package/dist/json-schema/rich-text-background.json +52 -0
  38. package/dist/json-schema/rich-text-font.json +157 -0
  39. package/dist/json-schema/rich-text-gradient.json +68 -0
  40. package/dist/json-schema/rich-text-shadow.json +79 -0
  41. package/dist/json-schema/rich-text-stroke.json +55 -0
  42. package/dist/json-schema/rich-text-style.json +165 -0
  43. package/dist/json-schema/rotate-transformation.json +123 -0
  44. package/dist/json-schema/s3destination-options.json +59 -0
  45. package/dist/json-schema/s3destination.json +90 -0
  46. package/dist/json-schema/schemas.json +4983 -0
  47. package/dist/json-schema/shape-asset.json +225 -0
  48. package/dist/json-schema/shotstack-destination.json +33 -0
  49. package/dist/json-schema/size.json +41 -0
  50. package/dist/json-schema/skew-transformation.json +145 -0
  51. package/dist/json-schema/soundtrack.json +47 -0
  52. package/dist/json-schema/svg-arrow-shape.json +49 -0
  53. package/dist/json-schema/svg-asset.json +877 -0
  54. package/dist/json-schema/svg-circle-shape.json +28 -0
  55. package/dist/json-schema/svg-cross-shape.json +42 -0
  56. package/dist/json-schema/svg-ellipse-shape.json +35 -0
  57. package/dist/json-schema/svg-fill.json +169 -0
  58. package/dist/json-schema/svg-gradient-stop.json +25 -0
  59. package/dist/json-schema/svg-heart-shape.json +28 -0
  60. package/dist/json-schema/svg-line-shape.json +35 -0
  61. package/dist/json-schema/svg-linear-gradient-fill.json +80 -0
  62. package/dist/json-schema/svg-path-shape.json +26 -0
  63. package/dist/json-schema/svg-polygon-shape.json +35 -0
  64. package/dist/json-schema/svg-radial-gradient-fill.json +66 -0
  65. package/dist/json-schema/svg-rectangle-shape.json +49 -0
  66. package/dist/json-schema/svg-ring-shape.json +35 -0
  67. package/dist/json-schema/svg-shadow.json +79 -0
  68. package/dist/json-schema/svg-shape.json +404 -0
  69. package/dist/json-schema/svg-solid-fill.json +40 -0
  70. package/dist/json-schema/svg-star-shape.json +42 -0
  71. package/dist/json-schema/svg-stroke.json +115 -0
  72. package/dist/json-schema/svg-transform.json +93 -0
  73. package/dist/json-schema/text-to-image-asset.json +128 -0
  74. package/dist/json-schema/text-to-speech-asset.json +209 -0
  75. package/dist/json-schema/thumbnail.json +25 -0
  76. package/dist/json-schema/timeline.json +3703 -0
  77. package/dist/json-schema/track.json +3590 -0
  78. package/dist/json-schema/transformation.json +251 -0
  79. package/dist/json-schema/transition.json +37 -0
  80. package/dist/json-schema/tween.json +90 -0
  81. package/dist/json-schema/video-asset.json +321 -0
  82. package/dist/json-schema/vimeo-destination-options.json +149 -0
  83. package/dist/json-schema/vimeo-destination-privacy-options.json +90 -0
  84. package/dist/json-schema/vimeo-destination.json +178 -0
  85. package/dist/json-schema/word-timing.json +44 -0
  86. package/dist/zod/zod.gen.cjs +1080 -921
  87. package/dist/zod/zod.gen.d.ts +139 -139
  88. package/dist/zod/zod.gen.js +1081 -922
  89. package/dist/zod/zod.gen.ts +1583 -1648
  90. package/package.json +79 -73
@@ -0,0 +1,737 @@
1
+ {
2
+ "name": "RichTextAsset",
3
+ "strict": true,
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "enum": [
9
+ "rich-text"
10
+ ],
11
+ "type": "string"
12
+ },
13
+ "text": {
14
+ "type": "string"
15
+ },
16
+ "font": {
17
+ "anyOf": [
18
+ {
19
+ "$ref": "#/$defs/RichTextFont"
20
+ },
21
+ {
22
+ "type": "null"
23
+ }
24
+ ]
25
+ },
26
+ "style": {
27
+ "anyOf": [
28
+ {
29
+ "$ref": "#/$defs/RichTextStyle"
30
+ },
31
+ {
32
+ "type": "null"
33
+ }
34
+ ]
35
+ },
36
+ "stroke": {
37
+ "anyOf": [
38
+ {
39
+ "$ref": "#/$defs/RichTextStroke"
40
+ },
41
+ {
42
+ "type": "null"
43
+ }
44
+ ]
45
+ },
46
+ "shadow": {
47
+ "anyOf": [
48
+ {
49
+ "$ref": "#/$defs/RichTextShadow"
50
+ },
51
+ {
52
+ "type": "null"
53
+ }
54
+ ]
55
+ },
56
+ "background": {
57
+ "anyOf": [
58
+ {
59
+ "$ref": "#/$defs/RichTextBackground"
60
+ },
61
+ {
62
+ "type": "null"
63
+ }
64
+ ]
65
+ },
66
+ "border": {
67
+ "anyOf": [
68
+ {
69
+ "type": "object",
70
+ "properties": {
71
+ "width": {
72
+ "anyOf": [
73
+ {
74
+ "type": "number",
75
+ "minimum": 0
76
+ },
77
+ {
78
+ "type": "null"
79
+ }
80
+ ]
81
+ },
82
+ "color": {
83
+ "anyOf": [
84
+ {
85
+ "type": "string"
86
+ },
87
+ {
88
+ "type": "null"
89
+ }
90
+ ]
91
+ },
92
+ "opacity": {
93
+ "anyOf": [
94
+ {
95
+ "type": "number",
96
+ "minimum": 0,
97
+ "maximum": 1
98
+ },
99
+ {
100
+ "type": "null"
101
+ }
102
+ ]
103
+ },
104
+ "radius": {
105
+ "anyOf": [
106
+ {
107
+ "type": "number",
108
+ "minimum": 0
109
+ },
110
+ {
111
+ "type": "null"
112
+ }
113
+ ]
114
+ }
115
+ },
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "width",
119
+ "color",
120
+ "opacity",
121
+ "radius"
122
+ ]
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "padding": {
130
+ "anyOf": [
131
+ {
132
+ "type": "number",
133
+ "minimum": 0
134
+ },
135
+ {
136
+ "properties": {
137
+ "top": {
138
+ "anyOf": [
139
+ {
140
+ "type": "number",
141
+ "minimum": 0
142
+ },
143
+ {
144
+ "type": "null"
145
+ }
146
+ ]
147
+ },
148
+ "right": {
149
+ "anyOf": [
150
+ {
151
+ "type": "number",
152
+ "minimum": 0
153
+ },
154
+ {
155
+ "type": "null"
156
+ }
157
+ ]
158
+ },
159
+ "bottom": {
160
+ "anyOf": [
161
+ {
162
+ "type": "number",
163
+ "minimum": 0
164
+ },
165
+ {
166
+ "type": "null"
167
+ }
168
+ ]
169
+ },
170
+ "left": {
171
+ "anyOf": [
172
+ {
173
+ "type": "number",
174
+ "minimum": 0
175
+ },
176
+ {
177
+ "type": "null"
178
+ }
179
+ ]
180
+ }
181
+ },
182
+ "additionalProperties": false,
183
+ "type": "object",
184
+ "required": [
185
+ "top",
186
+ "right",
187
+ "bottom",
188
+ "left"
189
+ ]
190
+ },
191
+ {
192
+ "type": "null"
193
+ }
194
+ ]
195
+ },
196
+ "align": {
197
+ "anyOf": [
198
+ {
199
+ "$ref": "#/$defs/RichTextAlignment"
200
+ },
201
+ {
202
+ "type": "null"
203
+ }
204
+ ]
205
+ },
206
+ "animation": {
207
+ "anyOf": [
208
+ {
209
+ "$ref": "#/$defs/RichTextAnimation"
210
+ },
211
+ {
212
+ "type": "null"
213
+ }
214
+ ]
215
+ }
216
+ },
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "type",
220
+ "text",
221
+ "font",
222
+ "style",
223
+ "stroke",
224
+ "shadow",
225
+ "background",
226
+ "border",
227
+ "padding",
228
+ "align",
229
+ "animation"
230
+ ],
231
+ "$defs": {
232
+ "RichTextFont": {
233
+ "properties": {
234
+ "family": {
235
+ "anyOf": [
236
+ {
237
+ "type": "string",
238
+ "enum": [
239
+ "Open Sans"
240
+ ]
241
+ },
242
+ {
243
+ "type": "null"
244
+ }
245
+ ]
246
+ },
247
+ "size": {
248
+ "anyOf": [
249
+ {
250
+ "type": "integer",
251
+ "minimum": 1,
252
+ "maximum": 500
253
+ },
254
+ {
255
+ "type": "null"
256
+ }
257
+ ]
258
+ },
259
+ "weight": {
260
+ "anyOf": [
261
+ {
262
+ "type": "string"
263
+ },
264
+ {
265
+ "type": "null"
266
+ }
267
+ ]
268
+ },
269
+ "color": {
270
+ "anyOf": [
271
+ {
272
+ "type": "string"
273
+ },
274
+ {
275
+ "type": "null"
276
+ }
277
+ ]
278
+ },
279
+ "opacity": {
280
+ "anyOf": [
281
+ {
282
+ "type": "number",
283
+ "minimum": 0,
284
+ "maximum": 1
285
+ },
286
+ {
287
+ "type": "null"
288
+ }
289
+ ]
290
+ },
291
+ "background": {
292
+ "anyOf": [
293
+ {
294
+ "type": "string"
295
+ },
296
+ {
297
+ "type": "null"
298
+ }
299
+ ]
300
+ },
301
+ "stroke": {
302
+ "anyOf": [
303
+ {
304
+ "$ref": "#/$defs/RichTextStroke"
305
+ },
306
+ {
307
+ "type": "null"
308
+ }
309
+ ]
310
+ }
311
+ },
312
+ "additionalProperties": false,
313
+ "type": "object",
314
+ "required": [
315
+ "family",
316
+ "size",
317
+ "weight",
318
+ "color",
319
+ "opacity",
320
+ "background",
321
+ "stroke"
322
+ ]
323
+ },
324
+ "RichTextStroke": {
325
+ "properties": {
326
+ "width": {
327
+ "anyOf": [
328
+ {
329
+ "type": "number",
330
+ "minimum": 0
331
+ },
332
+ {
333
+ "type": "null"
334
+ }
335
+ ]
336
+ },
337
+ "color": {
338
+ "anyOf": [
339
+ {
340
+ "type": "string",
341
+ "enum": [
342
+ "#000000"
343
+ ]
344
+ },
345
+ {
346
+ "type": "null"
347
+ }
348
+ ]
349
+ },
350
+ "opacity": {
351
+ "anyOf": [
352
+ {
353
+ "type": "number",
354
+ "minimum": 0,
355
+ "maximum": 1
356
+ },
357
+ {
358
+ "type": "null"
359
+ }
360
+ ]
361
+ }
362
+ },
363
+ "additionalProperties": false,
364
+ "type": "object",
365
+ "required": [
366
+ "width",
367
+ "color",
368
+ "opacity"
369
+ ]
370
+ },
371
+ "RichTextStyle": {
372
+ "properties": {
373
+ "letterSpacing": {
374
+ "anyOf": [
375
+ {
376
+ "type": "number"
377
+ },
378
+ {
379
+ "type": "null"
380
+ }
381
+ ]
382
+ },
383
+ "wordSpacing": {
384
+ "anyOf": [
385
+ {
386
+ "type": "number",
387
+ "minimum": 0
388
+ },
389
+ {
390
+ "type": "null"
391
+ }
392
+ ]
393
+ },
394
+ "lineHeight": {
395
+ "anyOf": [
396
+ {
397
+ "type": "number",
398
+ "minimum": 0,
399
+ "maximum": 10
400
+ },
401
+ {
402
+ "type": "null"
403
+ }
404
+ ]
405
+ },
406
+ "textTransform": {
407
+ "anyOf": [
408
+ {
409
+ "type": "string",
410
+ "enum": [
411
+ "none",
412
+ "uppercase",
413
+ "lowercase",
414
+ "capitalize"
415
+ ]
416
+ },
417
+ {
418
+ "type": "null"
419
+ }
420
+ ]
421
+ },
422
+ "textDecoration": {
423
+ "anyOf": [
424
+ {
425
+ "type": "string",
426
+ "enum": [
427
+ "none",
428
+ "underline",
429
+ "line-through"
430
+ ]
431
+ },
432
+ {
433
+ "type": "null"
434
+ }
435
+ ]
436
+ },
437
+ "gradient": {
438
+ "anyOf": [
439
+ {
440
+ "$ref": "#/$defs/RichTextGradient"
441
+ },
442
+ {
443
+ "type": "null"
444
+ }
445
+ ]
446
+ }
447
+ },
448
+ "additionalProperties": false,
449
+ "type": "object",
450
+ "required": [
451
+ "letterSpacing",
452
+ "wordSpacing",
453
+ "lineHeight",
454
+ "textTransform",
455
+ "textDecoration",
456
+ "gradient"
457
+ ]
458
+ },
459
+ "RichTextGradient": {
460
+ "properties": {
461
+ "type": {
462
+ "anyOf": [
463
+ {
464
+ "type": "string",
465
+ "enum": [
466
+ "linear",
467
+ "radial"
468
+ ]
469
+ },
470
+ {
471
+ "type": "null"
472
+ }
473
+ ]
474
+ },
475
+ "angle": {
476
+ "anyOf": [
477
+ {
478
+ "type": "number",
479
+ "minimum": 0,
480
+ "maximum": 360
481
+ },
482
+ {
483
+ "type": "null"
484
+ }
485
+ ]
486
+ },
487
+ "stops": {
488
+ "type": "array",
489
+ "items": {
490
+ "type": "object",
491
+ "properties": {
492
+ "offset": {
493
+ "type": "number",
494
+ "minimum": 0,
495
+ "maximum": 1
496
+ },
497
+ "color": {
498
+ "type": "string"
499
+ }
500
+ },
501
+ "required": [
502
+ "offset",
503
+ "color"
504
+ ],
505
+ "additionalProperties": false
506
+ }
507
+ }
508
+ },
509
+ "required": [
510
+ "type",
511
+ "angle",
512
+ "stops"
513
+ ],
514
+ "additionalProperties": false,
515
+ "type": "object"
516
+ },
517
+ "RichTextShadow": {
518
+ "properties": {
519
+ "offsetX": {
520
+ "anyOf": [
521
+ {
522
+ "type": "number"
523
+ },
524
+ {
525
+ "type": "null"
526
+ }
527
+ ]
528
+ },
529
+ "offsetY": {
530
+ "anyOf": [
531
+ {
532
+ "type": "number"
533
+ },
534
+ {
535
+ "type": "null"
536
+ }
537
+ ]
538
+ },
539
+ "blur": {
540
+ "anyOf": [
541
+ {
542
+ "type": "number",
543
+ "minimum": 0
544
+ },
545
+ {
546
+ "type": "null"
547
+ }
548
+ ]
549
+ },
550
+ "color": {
551
+ "anyOf": [
552
+ {
553
+ "type": "string",
554
+ "enum": [
555
+ "#000000"
556
+ ]
557
+ },
558
+ {
559
+ "type": "null"
560
+ }
561
+ ]
562
+ },
563
+ "opacity": {
564
+ "anyOf": [
565
+ {
566
+ "type": "number",
567
+ "minimum": 0,
568
+ "maximum": 1
569
+ },
570
+ {
571
+ "type": "null"
572
+ }
573
+ ]
574
+ }
575
+ },
576
+ "additionalProperties": false,
577
+ "type": "object",
578
+ "required": [
579
+ "offsetX",
580
+ "offsetY",
581
+ "blur",
582
+ "color",
583
+ "opacity"
584
+ ]
585
+ },
586
+ "RichTextBackground": {
587
+ "properties": {
588
+ "color": {
589
+ "anyOf": [
590
+ {
591
+ "type": "string"
592
+ },
593
+ {
594
+ "type": "null"
595
+ }
596
+ ]
597
+ },
598
+ "opacity": {
599
+ "anyOf": [
600
+ {
601
+ "type": "number",
602
+ "minimum": 0,
603
+ "maximum": 1
604
+ },
605
+ {
606
+ "type": "null"
607
+ }
608
+ ]
609
+ },
610
+ "borderRadius": {
611
+ "anyOf": [
612
+ {
613
+ "type": "number",
614
+ "minimum": 0
615
+ },
616
+ {
617
+ "type": "null"
618
+ }
619
+ ]
620
+ }
621
+ },
622
+ "additionalProperties": false,
623
+ "type": "object",
624
+ "required": [
625
+ "color",
626
+ "opacity",
627
+ "borderRadius"
628
+ ]
629
+ },
630
+ "RichTextAlignment": {
631
+ "properties": {
632
+ "horizontal": {
633
+ "anyOf": [
634
+ {
635
+ "type": "string",
636
+ "enum": [
637
+ "left",
638
+ "center",
639
+ "right"
640
+ ]
641
+ },
642
+ {
643
+ "type": "null"
644
+ }
645
+ ]
646
+ },
647
+ "vertical": {
648
+ "anyOf": [
649
+ {
650
+ "type": "string",
651
+ "enum": [
652
+ "top",
653
+ "middle",
654
+ "bottom"
655
+ ]
656
+ },
657
+ {
658
+ "type": "null"
659
+ }
660
+ ]
661
+ }
662
+ },
663
+ "additionalProperties": false,
664
+ "type": "object",
665
+ "required": [
666
+ "horizontal",
667
+ "vertical"
668
+ ]
669
+ },
670
+ "RichTextAnimation": {
671
+ "properties": {
672
+ "preset": {
673
+ "type": "string",
674
+ "enum": [
675
+ "fadeIn",
676
+ "slideIn",
677
+ "typewriter",
678
+ "ascend",
679
+ "shift",
680
+ "movingLetters"
681
+ ]
682
+ },
683
+ "duration": {
684
+ "anyOf": [
685
+ {
686
+ "type": "number",
687
+ "minimum": 0.1,
688
+ "maximum": 30
689
+ },
690
+ {
691
+ "type": "null"
692
+ }
693
+ ]
694
+ },
695
+ "style": {
696
+ "anyOf": [
697
+ {
698
+ "type": "string",
699
+ "enum": [
700
+ "character",
701
+ "word"
702
+ ]
703
+ },
704
+ {
705
+ "type": "null"
706
+ }
707
+ ]
708
+ },
709
+ "direction": {
710
+ "anyOf": [
711
+ {
712
+ "type": "string",
713
+ "enum": [
714
+ "left",
715
+ "right",
716
+ "up",
717
+ "down"
718
+ ]
719
+ },
720
+ {
721
+ "type": "null"
722
+ }
723
+ ]
724
+ }
725
+ },
726
+ "required": [
727
+ "preset",
728
+ "duration",
729
+ "style",
730
+ "direction"
731
+ ],
732
+ "additionalProperties": false,
733
+ "type": "object"
734
+ }
735
+ }
736
+ }
737
+ }