@shotstack/schemas 1.8.3 → 1.8.4

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 (37) hide show
  1. package/dist/api.bundled.json +204 -972
  2. package/dist/json-schema/asset.json +3 -936
  3. package/dist/json-schema/clip.json +3 -936
  4. package/dist/json-schema/destinations.json +111 -23
  5. package/dist/json-schema/edit.json +256 -1083
  6. package/dist/json-schema/output.json +106 -0
  7. package/dist/json-schema/rich-caption-asset.json +140 -221
  8. package/dist/json-schema/schemas.json +295 -1207
  9. package/dist/json-schema/svg-asset.json +6 -857
  10. package/dist/json-schema/timeline.json +3 -936
  11. package/dist/json-schema/track.json +3 -936
  12. package/dist/schema.d.ts +68 -695
  13. package/dist/zod/zod.gen.cjs +44 -625
  14. package/dist/zod/zod.gen.d.ts +543 -8241
  15. package/dist/zod/zod.gen.js +38 -618
  16. package/dist/zod/zod.gen.ts +50 -382
  17. package/package.json +1 -1
  18. package/dist/json-schema/svg-arrow-shape.json +0 -49
  19. package/dist/json-schema/svg-circle-shape.json +0 -28
  20. package/dist/json-schema/svg-cross-shape.json +0 -42
  21. package/dist/json-schema/svg-ellipse-shape.json +0 -35
  22. package/dist/json-schema/svg-fill.json +0 -169
  23. package/dist/json-schema/svg-gradient-stop.json +0 -25
  24. package/dist/json-schema/svg-heart-shape.json +0 -28
  25. package/dist/json-schema/svg-line-shape.json +0 -35
  26. package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
  27. package/dist/json-schema/svg-path-shape.json +0 -26
  28. package/dist/json-schema/svg-polygon-shape.json +0 -35
  29. package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
  30. package/dist/json-schema/svg-rectangle-shape.json +0 -49
  31. package/dist/json-schema/svg-ring-shape.json +0 -35
  32. package/dist/json-schema/svg-shadow.json +0 -79
  33. package/dist/json-schema/svg-shape.json +0 -404
  34. package/dist/json-schema/svg-solid-fill.json +0 -40
  35. package/dist/json-schema/svg-star-shape.json +0 -42
  36. package/dist/json-schema/svg-stroke.json +0 -115
  37. package/dist/json-schema/svg-transform.json +0 -93
@@ -1766,88 +1766,7 @@
1766
1766
  "font": {
1767
1767
  "anyOf": [
1768
1768
  {
1769
- "type": "object",
1770
- "properties": {
1771
- "family": {
1772
- "anyOf": [
1773
- {
1774
- "type": "string",
1775
- "enum": [
1776
- "Roboto"
1777
- ]
1778
- },
1779
- {
1780
- "type": "null"
1781
- }
1782
- ]
1783
- },
1784
- "size": {
1785
- "anyOf": [
1786
- {
1787
- "type": "integer",
1788
- "minimum": 1,
1789
- "maximum": 500
1790
- },
1791
- {
1792
- "type": "null"
1793
- }
1794
- ]
1795
- },
1796
- "weight": {
1797
- "anyOf": [
1798
- {
1799
- "type": "string"
1800
- },
1801
- {
1802
- "type": "null"
1803
- }
1804
- ]
1805
- },
1806
- "color": {
1807
- "anyOf": [
1808
- {
1809
- "type": "string",
1810
- "enum": [
1811
- "#ffffff"
1812
- ]
1813
- },
1814
- {
1815
- "type": "null"
1816
- }
1817
- ]
1818
- },
1819
- "opacity": {
1820
- "anyOf": [
1821
- {
1822
- "type": "number",
1823
- "minimum": 0,
1824
- "maximum": 1
1825
- },
1826
- {
1827
- "type": "null"
1828
- }
1829
- ]
1830
- },
1831
- "background": {
1832
- "anyOf": [
1833
- {
1834
- "type": "string"
1835
- },
1836
- {
1837
- "type": "null"
1838
- }
1839
- ]
1840
- }
1841
- },
1842
- "additionalProperties": false,
1843
- "required": [
1844
- "family",
1845
- "size",
1846
- "weight",
1847
- "color",
1848
- "opacity",
1849
- "background"
1850
- ]
1769
+ "$ref": "#/$defs/RichTextFont"
1851
1770
  },
1852
1771
  {
1853
1772
  "type": "null"
@@ -2384,865 +2303,13 @@
2384
2303
  ]
2385
2304
  },
2386
2305
  "src": {
2387
- "anyOf": [
2388
- {
2389
- "type": "string"
2390
- },
2391
- {
2392
- "type": "null"
2393
- }
2394
- ]
2395
- },
2396
- "shape": {
2397
- "anyOf": [
2398
- {
2399
- "$ref": "#/$defs/SvgShape"
2400
- },
2401
- {
2402
- "type": "null"
2403
- }
2404
- ]
2405
- },
2406
- "fill": {
2407
- "anyOf": [
2408
- {
2409
- "$ref": "#/$defs/SvgFill"
2410
- },
2411
- {
2412
- "type": "null"
2413
- }
2414
- ]
2415
- },
2416
- "stroke": {
2417
- "anyOf": [
2418
- {
2419
- "$ref": "#/$defs/SvgStroke"
2420
- },
2421
- {
2422
- "type": "null"
2423
- }
2424
- ]
2425
- },
2426
- "shadow": {
2427
- "anyOf": [
2428
- {
2429
- "$ref": "#/$defs/SvgShadow"
2430
- },
2431
- {
2432
- "type": "null"
2433
- }
2434
- ]
2435
- },
2436
- "transform": {
2437
- "anyOf": [
2438
- {
2439
- "$ref": "#/$defs/SvgTransform"
2440
- },
2441
- {
2442
- "type": "null"
2443
- }
2444
- ]
2445
- },
2446
- "opacity": {
2447
- "anyOf": [
2448
- {
2449
- "type": "number",
2450
- "minimum": 0,
2451
- "maximum": 1
2452
- },
2453
- {
2454
- "type": "null"
2455
- }
2456
- ]
2457
- },
2458
- "width": {
2459
- "anyOf": [
2460
- {
2461
- "type": "integer",
2462
- "minimum": 1,
2463
- "maximum": 4096
2464
- },
2465
- {
2466
- "type": "null"
2467
- }
2468
- ]
2469
- },
2470
- "height": {
2471
- "anyOf": [
2472
- {
2473
- "type": "integer",
2474
- "minimum": 1,
2475
- "maximum": 4096
2476
- },
2477
- {
2478
- "type": "null"
2479
- }
2480
- ]
2481
- }
2482
- },
2483
- "additionalProperties": false,
2484
- "required": [
2485
- "type",
2486
- "src",
2487
- "shape",
2488
- "fill",
2489
- "stroke",
2490
- "shadow",
2491
- "transform",
2492
- "opacity",
2493
- "width",
2494
- "height"
2495
- ]
2496
- },
2497
- "SvgShape": {
2498
- "anyOf": [
2499
- {
2500
- "$ref": "#/$defs/SvgRectangleShape"
2501
- },
2502
- {
2503
- "$ref": "#/$defs/SvgCircleShape"
2504
- },
2505
- {
2506
- "$ref": "#/$defs/SvgEllipseShape"
2507
- },
2508
- {
2509
- "$ref": "#/$defs/SvgLineShape"
2510
- },
2511
- {
2512
- "$ref": "#/$defs/SvgPolygonShape"
2513
- },
2514
- {
2515
- "$ref": "#/$defs/SvgStarShape"
2516
- },
2517
- {
2518
- "$ref": "#/$defs/SvgArrowShape"
2519
- },
2520
- {
2521
- "$ref": "#/$defs/SvgHeartShape"
2522
- },
2523
- {
2524
- "$ref": "#/$defs/SvgCrossShape"
2525
- },
2526
- {
2527
- "$ref": "#/$defs/SvgRingShape"
2528
- },
2529
- {
2530
- "$ref": "#/$defs/SvgPathShape"
2531
- }
2532
- ]
2533
- },
2534
- "SvgRectangleShape": {
2535
- "type": "object",
2536
- "additionalProperties": false,
2537
- "properties": {
2538
- "type": {
2539
- "type": "string",
2540
- "enum": [
2541
- "rectangle"
2542
- ]
2543
- },
2544
- "width": {
2545
- "type": "number",
2546
- "minimum": 1,
2547
- "maximum": 4096
2548
- },
2549
- "height": {
2550
- "type": "number",
2551
- "minimum": 1,
2552
- "maximum": 4096
2553
- },
2554
- "cornerRadius": {
2555
- "anyOf": [
2556
- {
2557
- "type": "number",
2558
- "minimum": 0,
2559
- "maximum": 2048
2560
- },
2561
- {
2562
- "type": "null"
2563
- }
2564
- ]
2565
- }
2566
- },
2567
- "required": [
2568
- "type",
2569
- "width",
2570
- "height",
2571
- "cornerRadius"
2572
- ]
2573
- },
2574
- "SvgCircleShape": {
2575
- "type": "object",
2576
- "additionalProperties": false,
2577
- "properties": {
2578
- "type": {
2579
- "type": "string",
2580
- "enum": [
2581
- "circle"
2582
- ]
2583
- },
2584
- "radius": {
2585
- "type": "number",
2586
- "minimum": 1,
2587
- "maximum": 2048
2306
+ "type": "string"
2588
2307
  }
2589
2308
  },
2590
- "required": [
2591
- "type",
2592
- "radius"
2593
- ]
2594
- },
2595
- "SvgEllipseShape": {
2596
- "type": "object",
2597
2309
  "additionalProperties": false,
2598
- "properties": {
2599
- "type": {
2600
- "type": "string",
2601
- "enum": [
2602
- "ellipse"
2603
- ]
2604
- },
2605
- "radiusX": {
2606
- "type": "number",
2607
- "minimum": 1,
2608
- "maximum": 2048
2609
- },
2610
- "radiusY": {
2611
- "type": "number",
2612
- "minimum": 1,
2613
- "maximum": 2048
2614
- }
2615
- },
2616
2310
  "required": [
2617
2311
  "type",
2618
- "radiusX",
2619
- "radiusY"
2620
- ]
2621
- },
2622
- "SvgLineShape": {
2623
- "type": "object",
2624
- "additionalProperties": false,
2625
- "properties": {
2626
- "type": {
2627
- "type": "string",
2628
- "enum": [
2629
- "line"
2630
- ]
2631
- },
2632
- "length": {
2633
- "type": "number",
2634
- "minimum": 1,
2635
- "maximum": 4096
2636
- },
2637
- "thickness": {
2638
- "type": "number",
2639
- "minimum": 1,
2640
- "maximum": 500
2641
- }
2642
- },
2643
- "required": [
2644
- "type",
2645
- "length",
2646
- "thickness"
2647
- ]
2648
- },
2649
- "SvgPolygonShape": {
2650
- "type": "object",
2651
- "additionalProperties": false,
2652
- "properties": {
2653
- "type": {
2654
- "type": "string",
2655
- "enum": [
2656
- "polygon"
2657
- ]
2658
- },
2659
- "sides": {
2660
- "type": "integer",
2661
- "minimum": 3,
2662
- "maximum": 100
2663
- },
2664
- "radius": {
2665
- "type": "number",
2666
- "minimum": 1,
2667
- "maximum": 2048
2668
- }
2669
- },
2670
- "required": [
2671
- "type",
2672
- "sides",
2673
- "radius"
2674
- ]
2675
- },
2676
- "SvgStarShape": {
2677
- "type": "object",
2678
- "additionalProperties": false,
2679
- "properties": {
2680
- "type": {
2681
- "type": "string",
2682
- "enum": [
2683
- "star"
2684
- ]
2685
- },
2686
- "points": {
2687
- "type": "integer",
2688
- "minimum": 3,
2689
- "maximum": 100
2690
- },
2691
- "outerRadius": {
2692
- "type": "number",
2693
- "minimum": 1,
2694
- "maximum": 2048
2695
- },
2696
- "innerRadius": {
2697
- "type": "number",
2698
- "minimum": 1,
2699
- "maximum": 2048
2700
- }
2701
- },
2702
- "required": [
2703
- "type",
2704
- "points",
2705
- "outerRadius",
2706
- "innerRadius"
2707
- ]
2708
- },
2709
- "SvgArrowShape": {
2710
- "type": "object",
2711
- "additionalProperties": false,
2712
- "properties": {
2713
- "type": {
2714
- "type": "string",
2715
- "enum": [
2716
- "arrow"
2717
- ]
2718
- },
2719
- "length": {
2720
- "type": "number",
2721
- "minimum": 1,
2722
- "maximum": 4096
2723
- },
2724
- "headWidth": {
2725
- "type": "number",
2726
- "minimum": 1,
2727
- "maximum": 1000
2728
- },
2729
- "headLength": {
2730
- "type": "number",
2731
- "minimum": 1,
2732
- "maximum": 1000
2733
- },
2734
- "shaftWidth": {
2735
- "type": "number",
2736
- "minimum": 1,
2737
- "maximum": 1000
2738
- }
2739
- },
2740
- "required": [
2741
- "type",
2742
- "length",
2743
- "headWidth",
2744
- "headLength",
2745
- "shaftWidth"
2746
- ]
2747
- },
2748
- "SvgHeartShape": {
2749
- "type": "object",
2750
- "additionalProperties": false,
2751
- "properties": {
2752
- "type": {
2753
- "type": "string",
2754
- "enum": [
2755
- "heart"
2756
- ]
2757
- },
2758
- "size": {
2759
- "type": "number",
2760
- "minimum": 1,
2761
- "maximum": 4096
2762
- }
2763
- },
2764
- "required": [
2765
- "type",
2766
- "size"
2767
- ]
2768
- },
2769
- "SvgCrossShape": {
2770
- "type": "object",
2771
- "additionalProperties": false,
2772
- "properties": {
2773
- "type": {
2774
- "type": "string",
2775
- "enum": [
2776
- "cross"
2777
- ]
2778
- },
2779
- "width": {
2780
- "type": "number",
2781
- "minimum": 1,
2782
- "maximum": 4096
2783
- },
2784
- "height": {
2785
- "type": "number",
2786
- "minimum": 1,
2787
- "maximum": 4096
2788
- },
2789
- "thickness": {
2790
- "type": "number",
2791
- "minimum": 1,
2792
- "maximum": 500
2793
- }
2794
- },
2795
- "required": [
2796
- "type",
2797
- "width",
2798
- "height",
2799
- "thickness"
2800
- ]
2801
- },
2802
- "SvgRingShape": {
2803
- "type": "object",
2804
- "additionalProperties": false,
2805
- "properties": {
2806
- "type": {
2807
- "type": "string",
2808
- "enum": [
2809
- "ring"
2810
- ]
2811
- },
2812
- "outerRadius": {
2813
- "type": "number",
2814
- "minimum": 1,
2815
- "maximum": 2048
2816
- },
2817
- "innerRadius": {
2818
- "type": "number",
2819
- "minimum": 0,
2820
- "maximum": 2048
2821
- }
2822
- },
2823
- "required": [
2824
- "type",
2825
- "outerRadius",
2826
- "innerRadius"
2827
- ]
2828
- },
2829
- "SvgPathShape": {
2830
- "type": "object",
2831
- "additionalProperties": false,
2832
- "properties": {
2833
- "type": {
2834
- "type": "string",
2835
- "enum": [
2836
- "path"
2837
- ]
2838
- },
2839
- "d": {
2840
- "type": "string"
2841
- }
2842
- },
2843
- "required": [
2844
- "type",
2845
- "d"
2846
- ]
2847
- },
2848
- "SvgFill": {
2849
- "anyOf": [
2850
- {
2851
- "$ref": "#/$defs/SvgSolidFill"
2852
- },
2853
- {
2854
- "$ref": "#/$defs/SvgLinearGradientFill"
2855
- },
2856
- {
2857
- "$ref": "#/$defs/SvgRadialGradientFill"
2858
- }
2859
- ]
2860
- },
2861
- "SvgSolidFill": {
2862
- "type": "object",
2863
- "additionalProperties": false,
2864
- "properties": {
2865
- "type": {
2866
- "type": "string",
2867
- "enum": [
2868
- "solid"
2869
- ]
2870
- },
2871
- "color": {
2872
- "type": "string"
2873
- },
2874
- "opacity": {
2875
- "anyOf": [
2876
- {
2877
- "type": "number",
2878
- "minimum": 0,
2879
- "maximum": 1
2880
- },
2881
- {
2882
- "type": "null"
2883
- }
2884
- ]
2885
- }
2886
- },
2887
- "required": [
2888
- "type",
2889
- "color",
2890
- "opacity"
2891
- ]
2892
- },
2893
- "SvgLinearGradientFill": {
2894
- "type": "object",
2895
- "additionalProperties": false,
2896
- "properties": {
2897
- "type": {
2898
- "type": "string",
2899
- "enum": [
2900
- "linear"
2901
- ]
2902
- },
2903
- "angle": {
2904
- "anyOf": [
2905
- {
2906
- "type": "number",
2907
- "minimum": 0,
2908
- "maximum": 360
2909
- },
2910
- {
2911
- "type": "null"
2912
- }
2913
- ]
2914
- },
2915
- "stops": {
2916
- "type": "array",
2917
- "items": {
2918
- "$ref": "#/$defs/SvgGradientStop"
2919
- }
2920
- },
2921
- "opacity": {
2922
- "anyOf": [
2923
- {
2924
- "type": "number",
2925
- "minimum": 0,
2926
- "maximum": 1
2927
- },
2928
- {
2929
- "type": "null"
2930
- }
2931
- ]
2932
- }
2933
- },
2934
- "required": [
2935
- "type",
2936
- "angle",
2937
- "stops",
2938
- "opacity"
2939
- ]
2940
- },
2941
- "SvgGradientStop": {
2942
- "type": "object",
2943
- "additionalProperties": false,
2944
- "properties": {
2945
- "offset": {
2946
- "type": "number",
2947
- "minimum": 0,
2948
- "maximum": 1
2949
- },
2950
- "color": {
2951
- "type": "string"
2952
- }
2953
- },
2954
- "required": [
2955
- "offset",
2956
- "color"
2957
- ]
2958
- },
2959
- "SvgRadialGradientFill": {
2960
- "type": "object",
2961
- "additionalProperties": false,
2962
- "properties": {
2963
- "type": {
2964
- "type": "string",
2965
- "enum": [
2966
- "radial"
2967
- ]
2968
- },
2969
- "stops": {
2970
- "type": "array",
2971
- "items": {
2972
- "$ref": "#/$defs/SvgGradientStop"
2973
- }
2974
- },
2975
- "opacity": {
2976
- "anyOf": [
2977
- {
2978
- "type": "number",
2979
- "minimum": 0,
2980
- "maximum": 1
2981
- },
2982
- {
2983
- "type": "null"
2984
- }
2985
- ]
2986
- }
2987
- },
2988
- "required": [
2989
- "type",
2990
- "stops",
2991
- "opacity"
2992
- ]
2993
- },
2994
- "SvgStroke": {
2995
- "type": "object",
2996
- "additionalProperties": false,
2997
- "properties": {
2998
- "color": {
2999
- "anyOf": [
3000
- {
3001
- "type": "string"
3002
- },
3003
- {
3004
- "type": "null"
3005
- }
3006
- ]
3007
- },
3008
- "width": {
3009
- "anyOf": [
3010
- {
3011
- "type": "number",
3012
- "minimum": 0,
3013
- "maximum": 100
3014
- },
3015
- {
3016
- "type": "null"
3017
- }
3018
- ]
3019
- },
3020
- "opacity": {
3021
- "anyOf": [
3022
- {
3023
- "type": "number",
3024
- "minimum": 0,
3025
- "maximum": 1
3026
- },
3027
- {
3028
- "type": "null"
3029
- }
3030
- ]
3031
- },
3032
- "lineCap": {
3033
- "anyOf": [
3034
- {
3035
- "type": "string",
3036
- "enum": [
3037
- "butt",
3038
- "round",
3039
- "square"
3040
- ]
3041
- },
3042
- {
3043
- "type": "null"
3044
- }
3045
- ]
3046
- },
3047
- "lineJoin": {
3048
- "anyOf": [
3049
- {
3050
- "type": "string",
3051
- "enum": [
3052
- "miter",
3053
- "round",
3054
- "bevel"
3055
- ]
3056
- },
3057
- {
3058
- "type": "null"
3059
- }
3060
- ]
3061
- },
3062
- "dashArray": {
3063
- "anyOf": [
3064
- {
3065
- "type": "array",
3066
- "items": {
3067
- "type": "number",
3068
- "minimum": 0
3069
- }
3070
- },
3071
- {
3072
- "type": "null"
3073
- }
3074
- ]
3075
- },
3076
- "dashOffset": {
3077
- "anyOf": [
3078
- {
3079
- "type": "number"
3080
- },
3081
- {
3082
- "type": "null"
3083
- }
3084
- ]
3085
- }
3086
- },
3087
- "required": [
3088
- "color",
3089
- "width",
3090
- "opacity",
3091
- "lineCap",
3092
- "lineJoin",
3093
- "dashArray",
3094
- "dashOffset"
3095
- ]
3096
- },
3097
- "SvgShadow": {
3098
- "type": "object",
3099
- "additionalProperties": false,
3100
- "properties": {
3101
- "offsetX": {
3102
- "anyOf": [
3103
- {
3104
- "type": "number"
3105
- },
3106
- {
3107
- "type": "null"
3108
- }
3109
- ]
3110
- },
3111
- "offsetY": {
3112
- "anyOf": [
3113
- {
3114
- "type": "number"
3115
- },
3116
- {
3117
- "type": "null"
3118
- }
3119
- ]
3120
- },
3121
- "blur": {
3122
- "anyOf": [
3123
- {
3124
- "type": "number",
3125
- "minimum": 0
3126
- },
3127
- {
3128
- "type": "null"
3129
- }
3130
- ]
3131
- },
3132
- "color": {
3133
- "anyOf": [
3134
- {
3135
- "type": "string",
3136
- "enum": [
3137
- "#000000"
3138
- ]
3139
- },
3140
- {
3141
- "type": "null"
3142
- }
3143
- ]
3144
- },
3145
- "opacity": {
3146
- "anyOf": [
3147
- {
3148
- "type": "number",
3149
- "minimum": 0,
3150
- "maximum": 1
3151
- },
3152
- {
3153
- "type": "null"
3154
- }
3155
- ]
3156
- }
3157
- },
3158
- "required": [
3159
- "offsetX",
3160
- "offsetY",
3161
- "blur",
3162
- "color",
3163
- "opacity"
3164
- ]
3165
- },
3166
- "SvgTransform": {
3167
- "type": "object",
3168
- "additionalProperties": false,
3169
- "properties": {
3170
- "x": {
3171
- "anyOf": [
3172
- {
3173
- "type": "number"
3174
- },
3175
- {
3176
- "type": "null"
3177
- }
3178
- ]
3179
- },
3180
- "y": {
3181
- "anyOf": [
3182
- {
3183
- "type": "number"
3184
- },
3185
- {
3186
- "type": "null"
3187
- }
3188
- ]
3189
- },
3190
- "rotation": {
3191
- "anyOf": [
3192
- {
3193
- "type": "number",
3194
- "minimum": -360,
3195
- "maximum": 360
3196
- },
3197
- {
3198
- "type": "null"
3199
- }
3200
- ]
3201
- },
3202
- "scale": {
3203
- "anyOf": [
3204
- {
3205
- "type": "number",
3206
- "minimum": 0.01,
3207
- "maximum": 100
3208
- },
3209
- {
3210
- "type": "null"
3211
- }
3212
- ]
3213
- },
3214
- "originX": {
3215
- "anyOf": [
3216
- {
3217
- "type": "number",
3218
- "minimum": 0,
3219
- "maximum": 1
3220
- },
3221
- {
3222
- "type": "null"
3223
- }
3224
- ]
3225
- },
3226
- "originY": {
3227
- "anyOf": [
3228
- {
3229
- "type": "number",
3230
- "minimum": 0,
3231
- "maximum": 1
3232
- },
3233
- {
3234
- "type": "null"
3235
- }
3236
- ]
3237
- }
3238
- },
3239
- "required": [
3240
- "x",
3241
- "y",
3242
- "rotation",
3243
- "scale",
3244
- "originX",
3245
- "originY"
2312
+ "src"
3246
2313
  ]
3247
2314
  },
3248
2315
  "TextToImageAsset": {