@shotstack/schemas 1.13.3 → 1.14.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.
@@ -333,6 +333,75 @@
333
333
  }
334
334
  ]
335
335
  },
336
+ "resolution": {
337
+ "anyOf": [
338
+ {
339
+ "type": "string",
340
+ "enum": [
341
+ "480p",
342
+ "720p",
343
+ "1080p"
344
+ ]
345
+ },
346
+ {
347
+ "type": "null"
348
+ }
349
+ ]
350
+ },
351
+ "duration": {
352
+ "anyOf": [
353
+ {
354
+ "type": "string",
355
+ "enum": [
356
+ "auto",
357
+ "4",
358
+ "5",
359
+ "6",
360
+ "7",
361
+ "8",
362
+ "9",
363
+ "10",
364
+ "11",
365
+ "12",
366
+ "13",
367
+ "14",
368
+ "15"
369
+ ]
370
+ },
371
+ {
372
+ "type": "null"
373
+ }
374
+ ]
375
+ },
376
+ "aspectRatio": {
377
+ "anyOf": [
378
+ {
379
+ "type": "string",
380
+ "enum": [
381
+ "1:1",
382
+ "16:9",
383
+ "9:16",
384
+ "4:3",
385
+ "3:4",
386
+ "21:9",
387
+ "9:21"
388
+ ]
389
+ },
390
+ {
391
+ "type": "null"
392
+ }
393
+ ]
394
+ },
395
+ "generateAudio": {
396
+ "anyOf": [
397
+ {
398
+ "type": "boolean"
399
+ },
400
+ {
401
+ "type": "null"
402
+ }
403
+ ]
404
+ },
336
405
  "transcode": {
337
406
  "anyOf": [
338
407
  {
@@ -427,6 +496,10 @@
427
496
  "prompt",
428
497
  "inputSrc",
429
498
  "model",
499
+ "resolution",
500
+ "duration",
501
+ "aspectRatio",
502
+ "generateAudio",
430
503
  "transcode",
431
504
  "trim",
432
505
  "volume",
@@ -682,6 +755,40 @@
682
755
  }
683
756
  ]
684
757
  },
758
+ "resolution": {
759
+ "anyOf": [
760
+ {
761
+ "type": "string",
762
+ "enum": [
763
+ "1K",
764
+ "2K",
765
+ "4K"
766
+ ]
767
+ },
768
+ {
769
+ "type": "null"
770
+ }
771
+ ]
772
+ },
773
+ "aspectRatio": {
774
+ "anyOf": [
775
+ {
776
+ "type": "string",
777
+ "enum": [
778
+ "1:1",
779
+ "16:9",
780
+ "9:16",
781
+ "4:3",
782
+ "3:4",
783
+ "21:9",
784
+ "9:21"
785
+ ]
786
+ },
787
+ {
788
+ "type": "null"
789
+ }
790
+ ]
791
+ },
685
792
  "crop": {
686
793
  "anyOf": [
687
794
  {
@@ -699,6 +806,8 @@
699
806
  "src",
700
807
  "prompt",
701
808
  "model",
809
+ "resolution",
810
+ "aspectRatio",
702
811
  "crop"
703
812
  ]
704
813
  },
@@ -1526,6 +1635,38 @@
1526
1635
  }
1527
1636
  ]
1528
1637
  },
1638
+ "musicLengthMs": {
1639
+ "anyOf": [
1640
+ {
1641
+ "type": "number",
1642
+ "minimum": 3000,
1643
+ "maximum": 600000
1644
+ },
1645
+ {
1646
+ "type": "null"
1647
+ }
1648
+ ]
1649
+ },
1650
+ "forceInstrumental": {
1651
+ "anyOf": [
1652
+ {
1653
+ "type": "boolean"
1654
+ },
1655
+ {
1656
+ "type": "null"
1657
+ }
1658
+ ]
1659
+ },
1660
+ "compositionPlan": {
1661
+ "anyOf": [
1662
+ {
1663
+ "type": "string"
1664
+ },
1665
+ {
1666
+ "type": "null"
1667
+ }
1668
+ ]
1669
+ },
1529
1670
  "trim": {
1530
1671
  "anyOf": [
1531
1672
  {
@@ -1592,6 +1733,9 @@
1592
1733
  "language",
1593
1734
  "newscaster",
1594
1735
  "model",
1736
+ "musicLengthMs",
1737
+ "forceInstrumental",
1738
+ "compositionPlan",
1595
1739
  "trim",
1596
1740
  "volume",
1597
1741
  "speed",
@@ -403,7 +403,14 @@
403
403
  ]
404
404
  },
405
405
  "options": {
406
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
406
+ "anyOf": [
407
+ {
408
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
409
+ },
410
+ {
411
+ "type": "null"
412
+ }
413
+ ]
407
414
  }
408
415
  },
409
416
  "type": "object",
@@ -416,7 +423,14 @@
416
423
  "GoogleDriveDestinationOptions": {
417
424
  "properties": {
418
425
  "folderId": {
419
- "type": "string"
426
+ "anyOf": [
427
+ {
428
+ "type": "string"
429
+ },
430
+ {
431
+ "type": "null"
432
+ }
433
+ ]
420
434
  },
421
435
  "filename": {
422
436
  "anyOf": [
@@ -429,12 +443,12 @@
429
443
  ]
430
444
  }
431
445
  },
446
+ "type": "object",
447
+ "additionalProperties": false,
432
448
  "required": [
433
449
  "folderId",
434
450
  "filename"
435
- ],
436
- "type": "object",
437
- "additionalProperties": false
451
+ ]
438
452
  },
439
453
  "VimeoDestination": {
440
454
  "properties": {
@@ -517,6 +517,75 @@
517
517
  }
518
518
  ]
519
519
  },
520
+ "resolution": {
521
+ "anyOf": [
522
+ {
523
+ "type": "string",
524
+ "enum": [
525
+ "480p",
526
+ "720p",
527
+ "1080p"
528
+ ]
529
+ },
530
+ {
531
+ "type": "null"
532
+ }
533
+ ]
534
+ },
535
+ "duration": {
536
+ "anyOf": [
537
+ {
538
+ "type": "string",
539
+ "enum": [
540
+ "auto",
541
+ "4",
542
+ "5",
543
+ "6",
544
+ "7",
545
+ "8",
546
+ "9",
547
+ "10",
548
+ "11",
549
+ "12",
550
+ "13",
551
+ "14",
552
+ "15"
553
+ ]
554
+ },
555
+ {
556
+ "type": "null"
557
+ }
558
+ ]
559
+ },
560
+ "aspectRatio": {
561
+ "anyOf": [
562
+ {
563
+ "type": "string",
564
+ "enum": [
565
+ "1:1",
566
+ "16:9",
567
+ "9:16",
568
+ "4:3",
569
+ "3:4",
570
+ "21:9",
571
+ "9:21"
572
+ ]
573
+ },
574
+ {
575
+ "type": "null"
576
+ }
577
+ ]
578
+ },
579
+ "generateAudio": {
580
+ "anyOf": [
581
+ {
582
+ "type": "boolean"
583
+ },
584
+ {
585
+ "type": "null"
586
+ }
587
+ ]
588
+ },
520
589
  "transcode": {
521
590
  "anyOf": [
522
591
  {
@@ -611,6 +680,10 @@
611
680
  "prompt",
612
681
  "inputSrc",
613
682
  "model",
683
+ "resolution",
684
+ "duration",
685
+ "aspectRatio",
686
+ "generateAudio",
614
687
  "transcode",
615
688
  "trim",
616
689
  "volume",
@@ -866,6 +939,40 @@
866
939
  }
867
940
  ]
868
941
  },
942
+ "resolution": {
943
+ "anyOf": [
944
+ {
945
+ "type": "string",
946
+ "enum": [
947
+ "1K",
948
+ "2K",
949
+ "4K"
950
+ ]
951
+ },
952
+ {
953
+ "type": "null"
954
+ }
955
+ ]
956
+ },
957
+ "aspectRatio": {
958
+ "anyOf": [
959
+ {
960
+ "type": "string",
961
+ "enum": [
962
+ "1:1",
963
+ "16:9",
964
+ "9:16",
965
+ "4:3",
966
+ "3:4",
967
+ "21:9",
968
+ "9:21"
969
+ ]
970
+ },
971
+ {
972
+ "type": "null"
973
+ }
974
+ ]
975
+ },
869
976
  "crop": {
870
977
  "anyOf": [
871
978
  {
@@ -883,6 +990,8 @@
883
990
  "src",
884
991
  "prompt",
885
992
  "model",
993
+ "resolution",
994
+ "aspectRatio",
886
995
  "crop"
887
996
  ]
888
997
  },
@@ -1710,6 +1819,38 @@
1710
1819
  }
1711
1820
  ]
1712
1821
  },
1822
+ "musicLengthMs": {
1823
+ "anyOf": [
1824
+ {
1825
+ "type": "number",
1826
+ "minimum": 3000,
1827
+ "maximum": 600000
1828
+ },
1829
+ {
1830
+ "type": "null"
1831
+ }
1832
+ ]
1833
+ },
1834
+ "forceInstrumental": {
1835
+ "anyOf": [
1836
+ {
1837
+ "type": "boolean"
1838
+ },
1839
+ {
1840
+ "type": "null"
1841
+ }
1842
+ ]
1843
+ },
1844
+ "compositionPlan": {
1845
+ "anyOf": [
1846
+ {
1847
+ "type": "string"
1848
+ },
1849
+ {
1850
+ "type": "null"
1851
+ }
1852
+ ]
1853
+ },
1713
1854
  "trim": {
1714
1855
  "anyOf": [
1715
1856
  {
@@ -1776,6 +1917,9 @@
1776
1917
  "language",
1777
1918
  "newscaster",
1778
1919
  "model",
1920
+ "musicLengthMs",
1921
+ "forceInstrumental",
1922
+ "compositionPlan",
1779
1923
  "trim",
1780
1924
  "volume",
1781
1925
  "speed",
@@ -3967,7 +4111,14 @@
3967
4111
  ]
3968
4112
  },
3969
4113
  "options": {
3970
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
4114
+ "anyOf": [
4115
+ {
4116
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
4117
+ },
4118
+ {
4119
+ "type": "null"
4120
+ }
4121
+ ]
3971
4122
  }
3972
4123
  },
3973
4124
  "type": "object",
@@ -3980,7 +4131,14 @@
3980
4131
  "GoogleDriveDestinationOptions": {
3981
4132
  "properties": {
3982
4133
  "folderId": {
3983
- "type": "string"
4134
+ "anyOf": [
4135
+ {
4136
+ "type": "string"
4137
+ },
4138
+ {
4139
+ "type": "null"
4140
+ }
4141
+ ]
3984
4142
  },
3985
4143
  "filename": {
3986
4144
  "anyOf": [
@@ -3993,12 +4151,12 @@
3993
4151
  ]
3994
4152
  }
3995
4153
  },
4154
+ "type": "object",
4155
+ "additionalProperties": false,
3996
4156
  "required": [
3997
4157
  "folderId",
3998
4158
  "filename"
3999
- ],
4000
- "type": "object",
4001
- "additionalProperties": false
4159
+ ]
4002
4160
  },
4003
4161
  "VimeoDestination": {
4004
4162
  "properties": {
@@ -5,8 +5,15 @@
5
5
  "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.",
6
6
  "properties": {
7
7
  "folderId": {
8
- "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
9
- "type": "string"
8
+ "anyOf": [
9
+ {
10
+ "type": "string",
11
+ "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>."
12
+ },
13
+ {
14
+ "type": "null"
15
+ }
16
+ ]
10
17
  },
11
18
  "filename": {
12
19
  "anyOf": [
@@ -20,11 +27,11 @@
20
27
  ]
21
28
  }
22
29
  },
30
+ "type": "object",
31
+ "additionalProperties": false,
23
32
  "required": [
24
33
  "folderId",
25
34
  "filename"
26
- ],
27
- "type": "object",
28
- "additionalProperties": false
35
+ ]
29
36
  }
30
37
  }
@@ -12,8 +12,15 @@
12
12
  ]
13
13
  },
14
14
  "options": {
15
- "description": "Additional Google Drive configuration and features.",
16
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
15
+ "anyOf": [
16
+ {
17
+ "description": "Additional Google Drive configuration and features. If omitted, files are saved to the root of My Drive using the default Shotstack filename.",
18
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
19
+ },
20
+ {
21
+ "type": "null"
22
+ }
23
+ ]
17
24
  }
18
25
  },
19
26
  "type": "object",
@@ -27,8 +34,15 @@
27
34
  "description": "Pass the folder ID and options to configure how assets are stored in Google Drive.",
28
35
  "properties": {
29
36
  "folderId": {
30
- "description": "The Google Drive folder ID where asset will be stored. The folder ID is required and can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>.",
31
- "type": "string"
37
+ "anyOf": [
38
+ {
39
+ "type": "string",
40
+ "description": "The Google Drive folder ID where the asset will be stored. If omitted, the asset is saved to the root of My Drive. The folder ID can be retrieved from the URL when logged in to Google Drive, e.g. <a href=\"#\">https://drive.google.com/drive/u/0/folders/1r-eTY6OLO8tzQRKwMyq-fIrQ_7AJEI6A</a>."
41
+ },
42
+ {
43
+ "type": "null"
44
+ }
45
+ ]
32
46
  },
33
47
  "filename": {
34
48
  "anyOf": [
@@ -42,12 +56,12 @@
42
56
  ]
43
57
  }
44
58
  },
59
+ "type": "object",
60
+ "additionalProperties": false,
45
61
  "required": [
46
62
  "folderId",
47
63
  "filename"
48
- ],
49
- "type": "object",
50
- "additionalProperties": false
64
+ ]
51
65
  }
52
66
  }
53
67
  }
@@ -38,7 +38,43 @@
38
38
  "anyOf": [
39
39
  {
40
40
  "type": "string",
41
- "description": "The generation model to use when `prompt` is set (e.g. `flux-schnell`). Defaults to the platform's preferred generator if omitted."
41
+ "description": "The generation model to use when `prompt` is set (e.g. `flux-schnell`, `fal/flux-schnell`, `fal/nano-banana-2`). Defaults to the platform's preferred generator if omitted."
42
+ },
43
+ {
44
+ "type": "null"
45
+ }
46
+ ]
47
+ },
48
+ "resolution": {
49
+ "anyOf": [
50
+ {
51
+ "type": "string",
52
+ "description": "Output resolution tier for supported image generation models. `1K` (default), `2K`, or `4K`. Only meaningful when `prompt` is set.",
53
+ "enum": [
54
+ "1K",
55
+ "2K",
56
+ "4K"
57
+ ]
58
+ },
59
+ {
60
+ "type": "null"
61
+ }
62
+ ]
63
+ },
64
+ "aspectRatio": {
65
+ "anyOf": [
66
+ {
67
+ "type": "string",
68
+ "description": "Aspect ratio for the generated image. Only meaningful when `prompt` is set and the model supports it.",
69
+ "enum": [
70
+ "1:1",
71
+ "16:9",
72
+ "9:16",
73
+ "4:3",
74
+ "3:4",
75
+ "21:9",
76
+ "9:21"
77
+ ]
42
78
  },
43
79
  {
44
80
  "type": "null"
@@ -62,6 +98,8 @@
62
98
  "src",
63
99
  "prompt",
64
100
  "model",
101
+ "resolution",
102
+ "aspectRatio",
65
103
  "crop"
66
104
  ],
67
105
  "$defs": {
@@ -697,7 +697,14 @@
697
697
  ]
698
698
  },
699
699
  "options": {
700
- "$ref": "#/$defs/GoogleDriveDestinationOptions"
700
+ "anyOf": [
701
+ {
702
+ "$ref": "#/$defs/GoogleDriveDestinationOptions"
703
+ },
704
+ {
705
+ "type": "null"
706
+ }
707
+ ]
701
708
  }
702
709
  },
703
710
  "type": "object",
@@ -710,7 +717,14 @@
710
717
  "GoogleDriveDestinationOptions": {
711
718
  "properties": {
712
719
  "folderId": {
713
- "type": "string"
720
+ "anyOf": [
721
+ {
722
+ "type": "string"
723
+ },
724
+ {
725
+ "type": "null"
726
+ }
727
+ ]
714
728
  },
715
729
  "filename": {
716
730
  "anyOf": [
@@ -723,12 +737,12 @@
723
737
  ]
724
738
  }
725
739
  },
740
+ "type": "object",
741
+ "additionalProperties": false,
726
742
  "required": [
727
743
  "folderId",
728
744
  "filename"
729
- ],
730
- "type": "object",
731
- "additionalProperties": false
745
+ ]
732
746
  },
733
747
  "VimeoDestination": {
734
748
  "properties": {