@shotstack/schemas 1.13.3 → 1.14.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.
@@ -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",
@@ -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",
@@ -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": {
@@ -497,7 +497,80 @@
497
497
  "anyOf": [
498
498
  {
499
499
  "type": "string",
500
- "description": "The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`). Defaults to the platform's preferred generator if omitted."
500
+ "description": "The generation model to use when `prompt` is set (e.g. `luma-ray-3`, `runpod-itv-mini`, `fal/seedance-2.0`). Defaults to the platform's preferred generator if omitted."
501
+ },
502
+ {
503
+ "type": "null"
504
+ }
505
+ ]
506
+ },
507
+ "resolution": {
508
+ "anyOf": [
509
+ {
510
+ "type": "string",
511
+ "description": "Output resolution for video generation. Only meaningful when `prompt` is set and the model supports it (e.g. `fal/seedance-2.0`).",
512
+ "enum": [
513
+ "480p",
514
+ "720p",
515
+ "1080p"
516
+ ]
517
+ },
518
+ {
519
+ "type": "null"
520
+ }
521
+ ]
522
+ },
523
+ "duration": {
524
+ "anyOf": [
525
+ {
526
+ "type": "string",
527
+ "description": "Target video duration in seconds for generation models that accept it. `\"auto\"` lets the model decide. Only meaningful when `prompt` is set.",
528
+ "enum": [
529
+ "auto",
530
+ "4",
531
+ "5",
532
+ "6",
533
+ "7",
534
+ "8",
535
+ "9",
536
+ "10",
537
+ "11",
538
+ "12",
539
+ "13",
540
+ "14",
541
+ "15"
542
+ ]
543
+ },
544
+ {
545
+ "type": "null"
546
+ }
547
+ ]
548
+ },
549
+ "aspectRatio": {
550
+ "anyOf": [
551
+ {
552
+ "type": "string",
553
+ "description": "Aspect ratio for the generated video. Only meaningful when `prompt` is set and the model supports it.",
554
+ "enum": [
555
+ "1:1",
556
+ "16:9",
557
+ "9:16",
558
+ "4:3",
559
+ "3:4",
560
+ "21:9",
561
+ "9:21"
562
+ ]
563
+ },
564
+ {
565
+ "type": "null"
566
+ }
567
+ ]
568
+ },
569
+ "generateAudio": {
570
+ "anyOf": [
571
+ {
572
+ "type": "boolean",
573
+ "description": "Set to `true` to request audio generation alongside the video. Only meaningful for video generation models that support it (e.g. `fal/seedance-2.0`)."
501
574
  },
502
575
  {
503
576
  "type": "null"
@@ -605,6 +678,10 @@
605
678
  "prompt",
606
679
  "inputSrc",
607
680
  "model",
681
+ "resolution",
682
+ "duration",
683
+ "aspectRatio",
684
+ "generateAudio",
608
685
  "transcode",
609
686
  "trim",
610
687
  "volume",
@@ -874,7 +951,43 @@
874
951
  "anyOf": [
875
952
  {
876
953
  "type": "string",
877
- "description": "The generation model to use when `prompt` is set (e.g. `flux-schnell`). Defaults to the platform's preferred generator if omitted."
954
+ "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."
955
+ },
956
+ {
957
+ "type": "null"
958
+ }
959
+ ]
960
+ },
961
+ "resolution": {
962
+ "anyOf": [
963
+ {
964
+ "type": "string",
965
+ "description": "Output resolution tier for supported image generation models. `1K` (default), `2K`, or `4K`. Only meaningful when `prompt` is set.",
966
+ "enum": [
967
+ "1K",
968
+ "2K",
969
+ "4K"
970
+ ]
971
+ },
972
+ {
973
+ "type": "null"
974
+ }
975
+ ]
976
+ },
977
+ "aspectRatio": {
978
+ "anyOf": [
979
+ {
980
+ "type": "string",
981
+ "description": "Aspect ratio for the generated image. Only meaningful when `prompt` is set and the model supports it.",
982
+ "enum": [
983
+ "1:1",
984
+ "16:9",
985
+ "9:16",
986
+ "4:3",
987
+ "3:4",
988
+ "21:9",
989
+ "9:21"
990
+ ]
878
991
  },
879
992
  {
880
993
  "type": "null"
@@ -898,6 +1011,8 @@
898
1011
  "src",
899
1012
  "prompt",
900
1013
  "model",
1014
+ "resolution",
1015
+ "aspectRatio",
901
1016
  "crop"
902
1017
  ]
903
1018
  },
@@ -1793,7 +1908,42 @@
1793
1908
  "anyOf": [
1794
1909
  {
1795
1910
  "type": "string",
1796
- "description": "The generation model to use when `prompt` is set (e.g. `polly-neural`). Defaults to the platform's preferred generator if omitted."
1911
+ "description": "The generation model to use when `prompt` is set (e.g. `polly-neural`, `fal/elevenlabs-tts`, `fal/minimax-speech`, `fal/elevenlabs-music`). Defaults to the platform's preferred generator if omitted."
1912
+ },
1913
+ {
1914
+ "type": "null"
1915
+ }
1916
+ ]
1917
+ },
1918
+ "musicLengthMs": {
1919
+ "anyOf": [
1920
+ {
1921
+ "type": "number",
1922
+ "description": "Target duration in milliseconds for generated music (3,000–600,000). Only meaningful when `prompt` is set and the model is a music generator (e.g. `fal/elevenlabs-music`).",
1923
+ "minimum": 3000,
1924
+ "maximum": 600000
1925
+ },
1926
+ {
1927
+ "type": "null"
1928
+ }
1929
+ ]
1930
+ },
1931
+ "forceInstrumental": {
1932
+ "anyOf": [
1933
+ {
1934
+ "type": "boolean",
1935
+ "description": "Set to `true` to force instrumental music (no vocals). Only meaningful for music generation models."
1936
+ },
1937
+ {
1938
+ "type": "null"
1939
+ }
1940
+ ]
1941
+ },
1942
+ "compositionPlan": {
1943
+ "anyOf": [
1944
+ {
1945
+ "type": "string",
1946
+ "description": "An optional structured composition plan for music generation. Only meaningful for music generation models (e.g. `fal/elevenlabs-music`)."
1797
1947
  },
1798
1948
  {
1799
1949
  "type": "null"
@@ -1872,6 +2022,9 @@
1872
2022
  "language",
1873
2023
  "newscaster",
1874
2024
  "model",
2025
+ "musicLengthMs",
2026
+ "forceInstrumental",
2027
+ "compositionPlan",
1875
2028
  "trim",
1876
2029
  "volume",
1877
2030
  "speed",