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