@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.
- package/dist/api.bundled.json +94 -3
- package/dist/json-schema/asset.json +144 -0
- package/dist/json-schema/audio-asset.json +59 -21
- package/dist/json-schema/clip.json +144 -0
- package/dist/json-schema/edit.json +144 -0
- package/dist/json-schema/image-asset.json +39 -1
- package/dist/json-schema/schemas.json +156 -3
- package/dist/json-schema/template.json +145 -1
- package/dist/json-schema/timeline.json +144 -0
- package/dist/json-schema/track.json +144 -0
- package/dist/json-schema/video-asset.json +106 -29
- package/dist/schema.d.ts +51 -3
- package/dist/zod/zod.gen.cjs +53 -0
- package/dist/zod/zod.gen.d.ts +1735 -88
- package/dist/zod/zod.gen.js +53 -0
- package/dist/zod/zod.gen.ts +47 -0
- package/package.json +1 -1
|
@@ -251,6 +251,75 @@
|
|
|
251
251
|
}
|
|
252
252
|
]
|
|
253
253
|
},
|
|
254
|
+
"resolution": {
|
|
255
|
+
"anyOf": [
|
|
256
|
+
{
|
|
257
|
+
"type": "string",
|
|
258
|
+
"enum": [
|
|
259
|
+
"480p",
|
|
260
|
+
"720p",
|
|
261
|
+
"1080p"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "null"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"duration": {
|
|
270
|
+
"anyOf": [
|
|
271
|
+
{
|
|
272
|
+
"type": "string",
|
|
273
|
+
"enum": [
|
|
274
|
+
"auto",
|
|
275
|
+
"4",
|
|
276
|
+
"5",
|
|
277
|
+
"6",
|
|
278
|
+
"7",
|
|
279
|
+
"8",
|
|
280
|
+
"9",
|
|
281
|
+
"10",
|
|
282
|
+
"11",
|
|
283
|
+
"12",
|
|
284
|
+
"13",
|
|
285
|
+
"14",
|
|
286
|
+
"15"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "null"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"aspectRatio": {
|
|
295
|
+
"anyOf": [
|
|
296
|
+
{
|
|
297
|
+
"type": "string",
|
|
298
|
+
"enum": [
|
|
299
|
+
"1:1",
|
|
300
|
+
"16:9",
|
|
301
|
+
"9:16",
|
|
302
|
+
"4:3",
|
|
303
|
+
"3:4",
|
|
304
|
+
"21:9",
|
|
305
|
+
"9:21"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "null"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"generateAudio": {
|
|
314
|
+
"anyOf": [
|
|
315
|
+
{
|
|
316
|
+
"type": "boolean"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "null"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
254
323
|
"trim": {
|
|
255
324
|
"anyOf": [
|
|
256
325
|
{
|
|
@@ -309,6 +378,10 @@
|
|
|
309
378
|
"prompt",
|
|
310
379
|
"inputSrc",
|
|
311
380
|
"model",
|
|
381
|
+
"resolution",
|
|
382
|
+
"duration",
|
|
383
|
+
"aspectRatio",
|
|
384
|
+
"generateAudio",
|
|
312
385
|
"trim",
|
|
313
386
|
"volume",
|
|
314
387
|
"volumeEffect",
|
|
@@ -353,6 +426,40 @@
|
|
|
353
426
|
"type": "null"
|
|
354
427
|
}
|
|
355
428
|
]
|
|
429
|
+
},
|
|
430
|
+
"resolution": {
|
|
431
|
+
"anyOf": [
|
|
432
|
+
{
|
|
433
|
+
"type": "string",
|
|
434
|
+
"enum": [
|
|
435
|
+
"1K",
|
|
436
|
+
"2K",
|
|
437
|
+
"4K"
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"type": "null"
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"aspectRatio": {
|
|
446
|
+
"anyOf": [
|
|
447
|
+
{
|
|
448
|
+
"type": "string",
|
|
449
|
+
"enum": [
|
|
450
|
+
"1:1",
|
|
451
|
+
"16:9",
|
|
452
|
+
"9:16",
|
|
453
|
+
"4:3",
|
|
454
|
+
"3:4",
|
|
455
|
+
"21:9",
|
|
456
|
+
"9:21"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "null"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
356
463
|
}
|
|
357
464
|
},
|
|
358
465
|
"additionalProperties": false,
|
|
@@ -360,7 +467,9 @@
|
|
|
360
467
|
"type",
|
|
361
468
|
"src",
|
|
362
469
|
"prompt",
|
|
363
|
-
"model"
|
|
470
|
+
"model",
|
|
471
|
+
"resolution",
|
|
472
|
+
"aspectRatio"
|
|
364
473
|
]
|
|
365
474
|
},
|
|
366
475
|
"AudioAsset": {
|
|
@@ -432,6 +541,38 @@
|
|
|
432
541
|
}
|
|
433
542
|
]
|
|
434
543
|
},
|
|
544
|
+
"musicLengthMs": {
|
|
545
|
+
"anyOf": [
|
|
546
|
+
{
|
|
547
|
+
"type": "number",
|
|
548
|
+
"minimum": 3000,
|
|
549
|
+
"maximum": 600000
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"type": "null"
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
"forceInstrumental": {
|
|
557
|
+
"anyOf": [
|
|
558
|
+
{
|
|
559
|
+
"type": "boolean"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"type": "null"
|
|
563
|
+
}
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
"compositionPlan": {
|
|
567
|
+
"anyOf": [
|
|
568
|
+
{
|
|
569
|
+
"type": "string"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "null"
|
|
573
|
+
}
|
|
574
|
+
]
|
|
575
|
+
},
|
|
435
576
|
"trim": {
|
|
436
577
|
"anyOf": [
|
|
437
578
|
{
|
|
@@ -480,6 +621,9 @@
|
|
|
480
621
|
"language",
|
|
481
622
|
"newscaster",
|
|
482
623
|
"model",
|
|
624
|
+
"musicLengthMs",
|
|
625
|
+
"forceInstrumental",
|
|
626
|
+
"compositionPlan",
|
|
483
627
|
"trim",
|
|
484
628
|
"volume",
|
|
485
629
|
"effect"
|
|
@@ -461,6 +461,75 @@
|
|
|
461
461
|
}
|
|
462
462
|
]
|
|
463
463
|
},
|
|
464
|
+
"resolution": {
|
|
465
|
+
"anyOf": [
|
|
466
|
+
{
|
|
467
|
+
"type": "string",
|
|
468
|
+
"enum": [
|
|
469
|
+
"480p",
|
|
470
|
+
"720p",
|
|
471
|
+
"1080p"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "null"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"duration": {
|
|
480
|
+
"anyOf": [
|
|
481
|
+
{
|
|
482
|
+
"type": "string",
|
|
483
|
+
"enum": [
|
|
484
|
+
"auto",
|
|
485
|
+
"4",
|
|
486
|
+
"5",
|
|
487
|
+
"6",
|
|
488
|
+
"7",
|
|
489
|
+
"8",
|
|
490
|
+
"9",
|
|
491
|
+
"10",
|
|
492
|
+
"11",
|
|
493
|
+
"12",
|
|
494
|
+
"13",
|
|
495
|
+
"14",
|
|
496
|
+
"15"
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"type": "null"
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
"aspectRatio": {
|
|
505
|
+
"anyOf": [
|
|
506
|
+
{
|
|
507
|
+
"type": "string",
|
|
508
|
+
"enum": [
|
|
509
|
+
"1:1",
|
|
510
|
+
"16:9",
|
|
511
|
+
"9:16",
|
|
512
|
+
"4:3",
|
|
513
|
+
"3:4",
|
|
514
|
+
"21:9",
|
|
515
|
+
"9:21"
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"type": "null"
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
"generateAudio": {
|
|
524
|
+
"anyOf": [
|
|
525
|
+
{
|
|
526
|
+
"type": "boolean"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"type": "null"
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
},
|
|
464
533
|
"transcode": {
|
|
465
534
|
"anyOf": [
|
|
466
535
|
{
|
|
@@ -555,6 +624,10 @@
|
|
|
555
624
|
"prompt",
|
|
556
625
|
"inputSrc",
|
|
557
626
|
"model",
|
|
627
|
+
"resolution",
|
|
628
|
+
"duration",
|
|
629
|
+
"aspectRatio",
|
|
630
|
+
"generateAudio",
|
|
558
631
|
"transcode",
|
|
559
632
|
"trim",
|
|
560
633
|
"volume",
|
|
@@ -810,6 +883,40 @@
|
|
|
810
883
|
}
|
|
811
884
|
]
|
|
812
885
|
},
|
|
886
|
+
"resolution": {
|
|
887
|
+
"anyOf": [
|
|
888
|
+
{
|
|
889
|
+
"type": "string",
|
|
890
|
+
"enum": [
|
|
891
|
+
"1K",
|
|
892
|
+
"2K",
|
|
893
|
+
"4K"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"type": "null"
|
|
898
|
+
}
|
|
899
|
+
]
|
|
900
|
+
},
|
|
901
|
+
"aspectRatio": {
|
|
902
|
+
"anyOf": [
|
|
903
|
+
{
|
|
904
|
+
"type": "string",
|
|
905
|
+
"enum": [
|
|
906
|
+
"1:1",
|
|
907
|
+
"16:9",
|
|
908
|
+
"9:16",
|
|
909
|
+
"4:3",
|
|
910
|
+
"3:4",
|
|
911
|
+
"21:9",
|
|
912
|
+
"9:21"
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"type": "null"
|
|
917
|
+
}
|
|
918
|
+
]
|
|
919
|
+
},
|
|
813
920
|
"crop": {
|
|
814
921
|
"anyOf": [
|
|
815
922
|
{
|
|
@@ -827,6 +934,8 @@
|
|
|
827
934
|
"src",
|
|
828
935
|
"prompt",
|
|
829
936
|
"model",
|
|
937
|
+
"resolution",
|
|
938
|
+
"aspectRatio",
|
|
830
939
|
"crop"
|
|
831
940
|
]
|
|
832
941
|
},
|
|
@@ -1654,6 +1763,38 @@
|
|
|
1654
1763
|
}
|
|
1655
1764
|
]
|
|
1656
1765
|
},
|
|
1766
|
+
"musicLengthMs": {
|
|
1767
|
+
"anyOf": [
|
|
1768
|
+
{
|
|
1769
|
+
"type": "number",
|
|
1770
|
+
"minimum": 3000,
|
|
1771
|
+
"maximum": 600000
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"type": "null"
|
|
1775
|
+
}
|
|
1776
|
+
]
|
|
1777
|
+
},
|
|
1778
|
+
"forceInstrumental": {
|
|
1779
|
+
"anyOf": [
|
|
1780
|
+
{
|
|
1781
|
+
"type": "boolean"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"type": "null"
|
|
1785
|
+
}
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1788
|
+
"compositionPlan": {
|
|
1789
|
+
"anyOf": [
|
|
1790
|
+
{
|
|
1791
|
+
"type": "string"
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"type": "null"
|
|
1795
|
+
}
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1657
1798
|
"trim": {
|
|
1658
1799
|
"anyOf": [
|
|
1659
1800
|
{
|
|
@@ -1720,6 +1861,9 @@
|
|
|
1720
1861
|
"language",
|
|
1721
1862
|
"newscaster",
|
|
1722
1863
|
"model",
|
|
1864
|
+
"musicLengthMs",
|
|
1865
|
+
"forceInstrumental",
|
|
1866
|
+
"compositionPlan",
|
|
1723
1867
|
"trim",
|
|
1724
1868
|
"volume",
|
|
1725
1869
|
"speed",
|
|
@@ -348,6 +348,75 @@
|
|
|
348
348
|
}
|
|
349
349
|
]
|
|
350
350
|
},
|
|
351
|
+
"resolution": {
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"type": "string",
|
|
355
|
+
"enum": [
|
|
356
|
+
"480p",
|
|
357
|
+
"720p",
|
|
358
|
+
"1080p"
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"type": "null"
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
"duration": {
|
|
367
|
+
"anyOf": [
|
|
368
|
+
{
|
|
369
|
+
"type": "string",
|
|
370
|
+
"enum": [
|
|
371
|
+
"auto",
|
|
372
|
+
"4",
|
|
373
|
+
"5",
|
|
374
|
+
"6",
|
|
375
|
+
"7",
|
|
376
|
+
"8",
|
|
377
|
+
"9",
|
|
378
|
+
"10",
|
|
379
|
+
"11",
|
|
380
|
+
"12",
|
|
381
|
+
"13",
|
|
382
|
+
"14",
|
|
383
|
+
"15"
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"type": "null"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
"aspectRatio": {
|
|
392
|
+
"anyOf": [
|
|
393
|
+
{
|
|
394
|
+
"type": "string",
|
|
395
|
+
"enum": [
|
|
396
|
+
"1:1",
|
|
397
|
+
"16:9",
|
|
398
|
+
"9:16",
|
|
399
|
+
"4:3",
|
|
400
|
+
"3:4",
|
|
401
|
+
"21:9",
|
|
402
|
+
"9:21"
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "null"
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
"generateAudio": {
|
|
411
|
+
"anyOf": [
|
|
412
|
+
{
|
|
413
|
+
"type": "boolean"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"type": "null"
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
},
|
|
351
420
|
"transcode": {
|
|
352
421
|
"anyOf": [
|
|
353
422
|
{
|
|
@@ -442,6 +511,10 @@
|
|
|
442
511
|
"prompt",
|
|
443
512
|
"inputSrc",
|
|
444
513
|
"model",
|
|
514
|
+
"resolution",
|
|
515
|
+
"duration",
|
|
516
|
+
"aspectRatio",
|
|
517
|
+
"generateAudio",
|
|
445
518
|
"transcode",
|
|
446
519
|
"trim",
|
|
447
520
|
"volume",
|
|
@@ -697,6 +770,40 @@
|
|
|
697
770
|
}
|
|
698
771
|
]
|
|
699
772
|
},
|
|
773
|
+
"resolution": {
|
|
774
|
+
"anyOf": [
|
|
775
|
+
{
|
|
776
|
+
"type": "string",
|
|
777
|
+
"enum": [
|
|
778
|
+
"1K",
|
|
779
|
+
"2K",
|
|
780
|
+
"4K"
|
|
781
|
+
]
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"type": "null"
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
},
|
|
788
|
+
"aspectRatio": {
|
|
789
|
+
"anyOf": [
|
|
790
|
+
{
|
|
791
|
+
"type": "string",
|
|
792
|
+
"enum": [
|
|
793
|
+
"1:1",
|
|
794
|
+
"16:9",
|
|
795
|
+
"9:16",
|
|
796
|
+
"4:3",
|
|
797
|
+
"3:4",
|
|
798
|
+
"21:9",
|
|
799
|
+
"9:21"
|
|
800
|
+
]
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"type": "null"
|
|
804
|
+
}
|
|
805
|
+
]
|
|
806
|
+
},
|
|
700
807
|
"crop": {
|
|
701
808
|
"anyOf": [
|
|
702
809
|
{
|
|
@@ -714,6 +821,8 @@
|
|
|
714
821
|
"src",
|
|
715
822
|
"prompt",
|
|
716
823
|
"model",
|
|
824
|
+
"resolution",
|
|
825
|
+
"aspectRatio",
|
|
717
826
|
"crop"
|
|
718
827
|
]
|
|
719
828
|
},
|
|
@@ -1541,6 +1650,38 @@
|
|
|
1541
1650
|
}
|
|
1542
1651
|
]
|
|
1543
1652
|
},
|
|
1653
|
+
"musicLengthMs": {
|
|
1654
|
+
"anyOf": [
|
|
1655
|
+
{
|
|
1656
|
+
"type": "number",
|
|
1657
|
+
"minimum": 3000,
|
|
1658
|
+
"maximum": 600000
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"type": "null"
|
|
1662
|
+
}
|
|
1663
|
+
]
|
|
1664
|
+
},
|
|
1665
|
+
"forceInstrumental": {
|
|
1666
|
+
"anyOf": [
|
|
1667
|
+
{
|
|
1668
|
+
"type": "boolean"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"type": "null"
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
"compositionPlan": {
|
|
1676
|
+
"anyOf": [
|
|
1677
|
+
{
|
|
1678
|
+
"type": "string"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"type": "null"
|
|
1682
|
+
}
|
|
1683
|
+
]
|
|
1684
|
+
},
|
|
1544
1685
|
"trim": {
|
|
1545
1686
|
"anyOf": [
|
|
1546
1687
|
{
|
|
@@ -1607,6 +1748,9 @@
|
|
|
1607
1748
|
"language",
|
|
1608
1749
|
"newscaster",
|
|
1609
1750
|
"model",
|
|
1751
|
+
"musicLengthMs",
|
|
1752
|
+
"forceInstrumental",
|
|
1753
|
+
"compositionPlan",
|
|
1610
1754
|
"trim",
|
|
1611
1755
|
"volume",
|
|
1612
1756
|
"speed",
|