@shotstack/schemas 1.7.1 → 1.8.2

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 (36) hide show
  1. package/README.md +89 -89
  2. package/dist/api.bundled.json +49 -833
  3. package/dist/json-schema/asset.json +84 -855
  4. package/dist/json-schema/clip.json +84 -855
  5. package/dist/json-schema/edit.json +84 -855
  6. package/dist/json-schema/rich-caption-asset.json +221 -140
  7. package/dist/json-schema/schemas.json +93 -951
  8. package/dist/json-schema/svg-asset.json +6 -857
  9. package/dist/json-schema/timeline.json +84 -855
  10. package/dist/json-schema/track.json +84 -855
  11. package/dist/schema.d.ts +43 -660
  12. package/dist/zod/zod.gen.cjs +914 -1640
  13. package/dist/zod/zod.gen.d.ts +306 -8714
  14. package/dist/zod/zod.gen.js +911 -1636
  15. package/dist/zod/zod.gen.ts +1593 -1880
  16. package/package.json +79 -79
  17. package/dist/json-schema/svg-arrow-shape.json +0 -49
  18. package/dist/json-schema/svg-circle-shape.json +0 -28
  19. package/dist/json-schema/svg-cross-shape.json +0 -42
  20. package/dist/json-schema/svg-ellipse-shape.json +0 -35
  21. package/dist/json-schema/svg-fill.json +0 -169
  22. package/dist/json-schema/svg-gradient-stop.json +0 -25
  23. package/dist/json-schema/svg-heart-shape.json +0 -28
  24. package/dist/json-schema/svg-line-shape.json +0 -35
  25. package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
  26. package/dist/json-schema/svg-path-shape.json +0 -26
  27. package/dist/json-schema/svg-polygon-shape.json +0 -35
  28. package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
  29. package/dist/json-schema/svg-rectangle-shape.json +0 -49
  30. package/dist/json-schema/svg-ring-shape.json +0 -35
  31. package/dist/json-schema/svg-shadow.json +0 -79
  32. package/dist/json-schema/svg-shape.json +0 -404
  33. package/dist/json-schema/svg-solid-fill.json +0 -40
  34. package/dist/json-schema/svg-star-shape.json +0 -42
  35. package/dist/json-schema/svg-stroke.json +0 -115
  36. package/dist/json-schema/svg-transform.json +0 -93
@@ -1879,7 +1879,88 @@
1879
1879
  "font": {
1880
1880
  "anyOf": [
1881
1881
  {
1882
- "$ref": "#/$defs/RichTextFont"
1882
+ "type": "object",
1883
+ "properties": {
1884
+ "family": {
1885
+ "anyOf": [
1886
+ {
1887
+ "type": "string",
1888
+ "enum": [
1889
+ "Roboto"
1890
+ ]
1891
+ },
1892
+ {
1893
+ "type": "null"
1894
+ }
1895
+ ]
1896
+ },
1897
+ "size": {
1898
+ "anyOf": [
1899
+ {
1900
+ "type": "integer",
1901
+ "minimum": 1,
1902
+ "maximum": 500
1903
+ },
1904
+ {
1905
+ "type": "null"
1906
+ }
1907
+ ]
1908
+ },
1909
+ "weight": {
1910
+ "anyOf": [
1911
+ {
1912
+ "type": "string"
1913
+ },
1914
+ {
1915
+ "type": "null"
1916
+ }
1917
+ ]
1918
+ },
1919
+ "color": {
1920
+ "anyOf": [
1921
+ {
1922
+ "type": "string",
1923
+ "enum": [
1924
+ "#ffffff"
1925
+ ]
1926
+ },
1927
+ {
1928
+ "type": "null"
1929
+ }
1930
+ ]
1931
+ },
1932
+ "opacity": {
1933
+ "anyOf": [
1934
+ {
1935
+ "type": "number",
1936
+ "minimum": 0,
1937
+ "maximum": 1
1938
+ },
1939
+ {
1940
+ "type": "null"
1941
+ }
1942
+ ]
1943
+ },
1944
+ "background": {
1945
+ "anyOf": [
1946
+ {
1947
+ "type": "string"
1948
+ },
1949
+ {
1950
+ "type": "null"
1951
+ }
1952
+ ]
1953
+ }
1954
+ },
1955
+ "additionalProperties": false,
1956
+ "required": [
1957
+ "family",
1958
+ "size",
1959
+ "weight",
1960
+ "color",
1961
+ "opacity",
1962
+ "background"
1963
+ ]
1883
1964
  },
1884
1965
  {
1885
1966
  "type": "null"
@@ -2416,865 +2497,13 @@
2416
2497
  ]
2417
2498
  },
2418
2499
  "src": {
2419
- "anyOf": [
2420
- {
2421
- "type": "string"
2422
- },
2423
- {
2424
- "type": "null"
2425
- }
2426
- ]
2427
- },
2428
- "shape": {
2429
- "anyOf": [
2430
- {
2431
- "$ref": "#/$defs/SvgShape"
2432
- },
2433
- {
2434
- "type": "null"
2435
- }
2436
- ]
2437
- },
2438
- "fill": {
2439
- "anyOf": [
2440
- {
2441
- "$ref": "#/$defs/SvgFill"
2442
- },
2443
- {
2444
- "type": "null"
2445
- }
2446
- ]
2447
- },
2448
- "stroke": {
2449
- "anyOf": [
2450
- {
2451
- "$ref": "#/$defs/SvgStroke"
2452
- },
2453
- {
2454
- "type": "null"
2455
- }
2456
- ]
2457
- },
2458
- "shadow": {
2459
- "anyOf": [
2460
- {
2461
- "$ref": "#/$defs/SvgShadow"
2462
- },
2463
- {
2464
- "type": "null"
2465
- }
2466
- ]
2467
- },
2468
- "transform": {
2469
- "anyOf": [
2470
- {
2471
- "$ref": "#/$defs/SvgTransform"
2472
- },
2473
- {
2474
- "type": "null"
2475
- }
2476
- ]
2477
- },
2478
- "opacity": {
2479
- "anyOf": [
2480
- {
2481
- "type": "number",
2482
- "minimum": 0,
2483
- "maximum": 1
2484
- },
2485
- {
2486
- "type": "null"
2487
- }
2488
- ]
2489
- },
2490
- "width": {
2491
- "anyOf": [
2492
- {
2493
- "type": "integer",
2494
- "minimum": 1,
2495
- "maximum": 4096
2496
- },
2497
- {
2498
- "type": "null"
2499
- }
2500
- ]
2501
- },
2502
- "height": {
2503
- "anyOf": [
2504
- {
2505
- "type": "integer",
2506
- "minimum": 1,
2507
- "maximum": 4096
2508
- },
2509
- {
2510
- "type": "null"
2511
- }
2512
- ]
2513
- }
2514
- },
2515
- "additionalProperties": false,
2516
- "required": [
2517
- "type",
2518
- "src",
2519
- "shape",
2520
- "fill",
2521
- "stroke",
2522
- "shadow",
2523
- "transform",
2524
- "opacity",
2525
- "width",
2526
- "height"
2527
- ]
2528
- },
2529
- "SvgShape": {
2530
- "anyOf": [
2531
- {
2532
- "$ref": "#/$defs/SvgRectangleShape"
2533
- },
2534
- {
2535
- "$ref": "#/$defs/SvgCircleShape"
2536
- },
2537
- {
2538
- "$ref": "#/$defs/SvgEllipseShape"
2539
- },
2540
- {
2541
- "$ref": "#/$defs/SvgLineShape"
2542
- },
2543
- {
2544
- "$ref": "#/$defs/SvgPolygonShape"
2545
- },
2546
- {
2547
- "$ref": "#/$defs/SvgStarShape"
2548
- },
2549
- {
2550
- "$ref": "#/$defs/SvgArrowShape"
2551
- },
2552
- {
2553
- "$ref": "#/$defs/SvgHeartShape"
2554
- },
2555
- {
2556
- "$ref": "#/$defs/SvgCrossShape"
2557
- },
2558
- {
2559
- "$ref": "#/$defs/SvgRingShape"
2560
- },
2561
- {
2562
- "$ref": "#/$defs/SvgPathShape"
2563
- }
2564
- ]
2565
- },
2566
- "SvgRectangleShape": {
2567
- "type": "object",
2568
- "additionalProperties": false,
2569
- "properties": {
2570
- "type": {
2571
- "type": "string",
2572
- "enum": [
2573
- "rectangle"
2574
- ]
2575
- },
2576
- "width": {
2577
- "type": "number",
2578
- "minimum": 1,
2579
- "maximum": 4096
2580
- },
2581
- "height": {
2582
- "type": "number",
2583
- "minimum": 1,
2584
- "maximum": 4096
2585
- },
2586
- "cornerRadius": {
2587
- "anyOf": [
2588
- {
2589
- "type": "number",
2590
- "minimum": 0,
2591
- "maximum": 2048
2592
- },
2593
- {
2594
- "type": "null"
2595
- }
2596
- ]
2597
- }
2598
- },
2599
- "required": [
2600
- "type",
2601
- "width",
2602
- "height",
2603
- "cornerRadius"
2604
- ]
2605
- },
2606
- "SvgCircleShape": {
2607
- "type": "object",
2608
- "additionalProperties": false,
2609
- "properties": {
2610
- "type": {
2611
- "type": "string",
2612
- "enum": [
2613
- "circle"
2614
- ]
2615
- },
2616
- "radius": {
2617
- "type": "number",
2618
- "minimum": 1,
2619
- "maximum": 2048
2500
+ "type": "string"
2620
2501
  }
2621
2502
  },
2622
- "required": [
2623
- "type",
2624
- "radius"
2625
- ]
2626
- },
2627
- "SvgEllipseShape": {
2628
- "type": "object",
2629
2503
  "additionalProperties": false,
2630
- "properties": {
2631
- "type": {
2632
- "type": "string",
2633
- "enum": [
2634
- "ellipse"
2635
- ]
2636
- },
2637
- "radiusX": {
2638
- "type": "number",
2639
- "minimum": 1,
2640
- "maximum": 2048
2641
- },
2642
- "radiusY": {
2643
- "type": "number",
2644
- "minimum": 1,
2645
- "maximum": 2048
2646
- }
2647
- },
2648
2504
  "required": [
2649
2505
  "type",
2650
- "radiusX",
2651
- "radiusY"
2652
- ]
2653
- },
2654
- "SvgLineShape": {
2655
- "type": "object",
2656
- "additionalProperties": false,
2657
- "properties": {
2658
- "type": {
2659
- "type": "string",
2660
- "enum": [
2661
- "line"
2662
- ]
2663
- },
2664
- "length": {
2665
- "type": "number",
2666
- "minimum": 1,
2667
- "maximum": 4096
2668
- },
2669
- "thickness": {
2670
- "type": "number",
2671
- "minimum": 1,
2672
- "maximum": 500
2673
- }
2674
- },
2675
- "required": [
2676
- "type",
2677
- "length",
2678
- "thickness"
2679
- ]
2680
- },
2681
- "SvgPolygonShape": {
2682
- "type": "object",
2683
- "additionalProperties": false,
2684
- "properties": {
2685
- "type": {
2686
- "type": "string",
2687
- "enum": [
2688
- "polygon"
2689
- ]
2690
- },
2691
- "sides": {
2692
- "type": "integer",
2693
- "minimum": 3,
2694
- "maximum": 100
2695
- },
2696
- "radius": {
2697
- "type": "number",
2698
- "minimum": 1,
2699
- "maximum": 2048
2700
- }
2701
- },
2702
- "required": [
2703
- "type",
2704
- "sides",
2705
- "radius"
2706
- ]
2707
- },
2708
- "SvgStarShape": {
2709
- "type": "object",
2710
- "additionalProperties": false,
2711
- "properties": {
2712
- "type": {
2713
- "type": "string",
2714
- "enum": [
2715
- "star"
2716
- ]
2717
- },
2718
- "points": {
2719
- "type": "integer",
2720
- "minimum": 3,
2721
- "maximum": 100
2722
- },
2723
- "outerRadius": {
2724
- "type": "number",
2725
- "minimum": 1,
2726
- "maximum": 2048
2727
- },
2728
- "innerRadius": {
2729
- "type": "number",
2730
- "minimum": 1,
2731
- "maximum": 2048
2732
- }
2733
- },
2734
- "required": [
2735
- "type",
2736
- "points",
2737
- "outerRadius",
2738
- "innerRadius"
2739
- ]
2740
- },
2741
- "SvgArrowShape": {
2742
- "type": "object",
2743
- "additionalProperties": false,
2744
- "properties": {
2745
- "type": {
2746
- "type": "string",
2747
- "enum": [
2748
- "arrow"
2749
- ]
2750
- },
2751
- "length": {
2752
- "type": "number",
2753
- "minimum": 1,
2754
- "maximum": 4096
2755
- },
2756
- "headWidth": {
2757
- "type": "number",
2758
- "minimum": 1,
2759
- "maximum": 1000
2760
- },
2761
- "headLength": {
2762
- "type": "number",
2763
- "minimum": 1,
2764
- "maximum": 1000
2765
- },
2766
- "shaftWidth": {
2767
- "type": "number",
2768
- "minimum": 1,
2769
- "maximum": 1000
2770
- }
2771
- },
2772
- "required": [
2773
- "type",
2774
- "length",
2775
- "headWidth",
2776
- "headLength",
2777
- "shaftWidth"
2778
- ]
2779
- },
2780
- "SvgHeartShape": {
2781
- "type": "object",
2782
- "additionalProperties": false,
2783
- "properties": {
2784
- "type": {
2785
- "type": "string",
2786
- "enum": [
2787
- "heart"
2788
- ]
2789
- },
2790
- "size": {
2791
- "type": "number",
2792
- "minimum": 1,
2793
- "maximum": 4096
2794
- }
2795
- },
2796
- "required": [
2797
- "type",
2798
- "size"
2799
- ]
2800
- },
2801
- "SvgCrossShape": {
2802
- "type": "object",
2803
- "additionalProperties": false,
2804
- "properties": {
2805
- "type": {
2806
- "type": "string",
2807
- "enum": [
2808
- "cross"
2809
- ]
2810
- },
2811
- "width": {
2812
- "type": "number",
2813
- "minimum": 1,
2814
- "maximum": 4096
2815
- },
2816
- "height": {
2817
- "type": "number",
2818
- "minimum": 1,
2819
- "maximum": 4096
2820
- },
2821
- "thickness": {
2822
- "type": "number",
2823
- "minimum": 1,
2824
- "maximum": 500
2825
- }
2826
- },
2827
- "required": [
2828
- "type",
2829
- "width",
2830
- "height",
2831
- "thickness"
2832
- ]
2833
- },
2834
- "SvgRingShape": {
2835
- "type": "object",
2836
- "additionalProperties": false,
2837
- "properties": {
2838
- "type": {
2839
- "type": "string",
2840
- "enum": [
2841
- "ring"
2842
- ]
2843
- },
2844
- "outerRadius": {
2845
- "type": "number",
2846
- "minimum": 1,
2847
- "maximum": 2048
2848
- },
2849
- "innerRadius": {
2850
- "type": "number",
2851
- "minimum": 0,
2852
- "maximum": 2048
2853
- }
2854
- },
2855
- "required": [
2856
- "type",
2857
- "outerRadius",
2858
- "innerRadius"
2859
- ]
2860
- },
2861
- "SvgPathShape": {
2862
- "type": "object",
2863
- "additionalProperties": false,
2864
- "properties": {
2865
- "type": {
2866
- "type": "string",
2867
- "enum": [
2868
- "path"
2869
- ]
2870
- },
2871
- "d": {
2872
- "type": "string"
2873
- }
2874
- },
2875
- "required": [
2876
- "type",
2877
- "d"
2878
- ]
2879
- },
2880
- "SvgFill": {
2881
- "anyOf": [
2882
- {
2883
- "$ref": "#/$defs/SvgSolidFill"
2884
- },
2885
- {
2886
- "$ref": "#/$defs/SvgLinearGradientFill"
2887
- },
2888
- {
2889
- "$ref": "#/$defs/SvgRadialGradientFill"
2890
- }
2891
- ]
2892
- },
2893
- "SvgSolidFill": {
2894
- "type": "object",
2895
- "additionalProperties": false,
2896
- "properties": {
2897
- "type": {
2898
- "type": "string",
2899
- "enum": [
2900
- "solid"
2901
- ]
2902
- },
2903
- "color": {
2904
- "type": "string"
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
- "color",
2922
- "opacity"
2923
- ]
2924
- },
2925
- "SvgLinearGradientFill": {
2926
- "type": "object",
2927
- "additionalProperties": false,
2928
- "properties": {
2929
- "type": {
2930
- "type": "string",
2931
- "enum": [
2932
- "linear"
2933
- ]
2934
- },
2935
- "angle": {
2936
- "anyOf": [
2937
- {
2938
- "type": "number",
2939
- "minimum": 0,
2940
- "maximum": 360
2941
- },
2942
- {
2943
- "type": "null"
2944
- }
2945
- ]
2946
- },
2947
- "stops": {
2948
- "type": "array",
2949
- "items": {
2950
- "$ref": "#/$defs/SvgGradientStop"
2951
- }
2952
- },
2953
- "opacity": {
2954
- "anyOf": [
2955
- {
2956
- "type": "number",
2957
- "minimum": 0,
2958
- "maximum": 1
2959
- },
2960
- {
2961
- "type": "null"
2962
- }
2963
- ]
2964
- }
2965
- },
2966
- "required": [
2967
- "type",
2968
- "angle",
2969
- "stops",
2970
- "opacity"
2971
- ]
2972
- },
2973
- "SvgGradientStop": {
2974
- "type": "object",
2975
- "additionalProperties": false,
2976
- "properties": {
2977
- "offset": {
2978
- "type": "number",
2979
- "minimum": 0,
2980
- "maximum": 1
2981
- },
2982
- "color": {
2983
- "type": "string"
2984
- }
2985
- },
2986
- "required": [
2987
- "offset",
2988
- "color"
2989
- ]
2990
- },
2991
- "SvgRadialGradientFill": {
2992
- "type": "object",
2993
- "additionalProperties": false,
2994
- "properties": {
2995
- "type": {
2996
- "type": "string",
2997
- "enum": [
2998
- "radial"
2999
- ]
3000
- },
3001
- "stops": {
3002
- "type": "array",
3003
- "items": {
3004
- "$ref": "#/$defs/SvgGradientStop"
3005
- }
3006
- },
3007
- "opacity": {
3008
- "anyOf": [
3009
- {
3010
- "type": "number",
3011
- "minimum": 0,
3012
- "maximum": 1
3013
- },
3014
- {
3015
- "type": "null"
3016
- }
3017
- ]
3018
- }
3019
- },
3020
- "required": [
3021
- "type",
3022
- "stops",
3023
- "opacity"
3024
- ]
3025
- },
3026
- "SvgStroke": {
3027
- "type": "object",
3028
- "additionalProperties": false,
3029
- "properties": {
3030
- "color": {
3031
- "anyOf": [
3032
- {
3033
- "type": "string"
3034
- },
3035
- {
3036
- "type": "null"
3037
- }
3038
- ]
3039
- },
3040
- "width": {
3041
- "anyOf": [
3042
- {
3043
- "type": "number",
3044
- "minimum": 0,
3045
- "maximum": 100
3046
- },
3047
- {
3048
- "type": "null"
3049
- }
3050
- ]
3051
- },
3052
- "opacity": {
3053
- "anyOf": [
3054
- {
3055
- "type": "number",
3056
- "minimum": 0,
3057
- "maximum": 1
3058
- },
3059
- {
3060
- "type": "null"
3061
- }
3062
- ]
3063
- },
3064
- "lineCap": {
3065
- "anyOf": [
3066
- {
3067
- "type": "string",
3068
- "enum": [
3069
- "butt",
3070
- "round",
3071
- "square"
3072
- ]
3073
- },
3074
- {
3075
- "type": "null"
3076
- }
3077
- ]
3078
- },
3079
- "lineJoin": {
3080
- "anyOf": [
3081
- {
3082
- "type": "string",
3083
- "enum": [
3084
- "miter",
3085
- "round",
3086
- "bevel"
3087
- ]
3088
- },
3089
- {
3090
- "type": "null"
3091
- }
3092
- ]
3093
- },
3094
- "dashArray": {
3095
- "anyOf": [
3096
- {
3097
- "type": "array",
3098
- "items": {
3099
- "type": "number",
3100
- "minimum": 0
3101
- }
3102
- },
3103
- {
3104
- "type": "null"
3105
- }
3106
- ]
3107
- },
3108
- "dashOffset": {
3109
- "anyOf": [
3110
- {
3111
- "type": "number"
3112
- },
3113
- {
3114
- "type": "null"
3115
- }
3116
- ]
3117
- }
3118
- },
3119
- "required": [
3120
- "color",
3121
- "width",
3122
- "opacity",
3123
- "lineCap",
3124
- "lineJoin",
3125
- "dashArray",
3126
- "dashOffset"
3127
- ]
3128
- },
3129
- "SvgShadow": {
3130
- "type": "object",
3131
- "additionalProperties": false,
3132
- "properties": {
3133
- "offsetX": {
3134
- "anyOf": [
3135
- {
3136
- "type": "number"
3137
- },
3138
- {
3139
- "type": "null"
3140
- }
3141
- ]
3142
- },
3143
- "offsetY": {
3144
- "anyOf": [
3145
- {
3146
- "type": "number"
3147
- },
3148
- {
3149
- "type": "null"
3150
- }
3151
- ]
3152
- },
3153
- "blur": {
3154
- "anyOf": [
3155
- {
3156
- "type": "number",
3157
- "minimum": 0
3158
- },
3159
- {
3160
- "type": "null"
3161
- }
3162
- ]
3163
- },
3164
- "color": {
3165
- "anyOf": [
3166
- {
3167
- "type": "string",
3168
- "enum": [
3169
- "#000000"
3170
- ]
3171
- },
3172
- {
3173
- "type": "null"
3174
- }
3175
- ]
3176
- },
3177
- "opacity": {
3178
- "anyOf": [
3179
- {
3180
- "type": "number",
3181
- "minimum": 0,
3182
- "maximum": 1
3183
- },
3184
- {
3185
- "type": "null"
3186
- }
3187
- ]
3188
- }
3189
- },
3190
- "required": [
3191
- "offsetX",
3192
- "offsetY",
3193
- "blur",
3194
- "color",
3195
- "opacity"
3196
- ]
3197
- },
3198
- "SvgTransform": {
3199
- "type": "object",
3200
- "additionalProperties": false,
3201
- "properties": {
3202
- "x": {
3203
- "anyOf": [
3204
- {
3205
- "type": "number"
3206
- },
3207
- {
3208
- "type": "null"
3209
- }
3210
- ]
3211
- },
3212
- "y": {
3213
- "anyOf": [
3214
- {
3215
- "type": "number"
3216
- },
3217
- {
3218
- "type": "null"
3219
- }
3220
- ]
3221
- },
3222
- "rotation": {
3223
- "anyOf": [
3224
- {
3225
- "type": "number",
3226
- "minimum": -360,
3227
- "maximum": 360
3228
- },
3229
- {
3230
- "type": "null"
3231
- }
3232
- ]
3233
- },
3234
- "scale": {
3235
- "anyOf": [
3236
- {
3237
- "type": "number",
3238
- "minimum": 0.01,
3239
- "maximum": 100
3240
- },
3241
- {
3242
- "type": "null"
3243
- }
3244
- ]
3245
- },
3246
- "originX": {
3247
- "anyOf": [
3248
- {
3249
- "type": "number",
3250
- "minimum": 0,
3251
- "maximum": 1
3252
- },
3253
- {
3254
- "type": "null"
3255
- }
3256
- ]
3257
- },
3258
- "originY": {
3259
- "anyOf": [
3260
- {
3261
- "type": "number",
3262
- "minimum": 0,
3263
- "maximum": 1
3264
- },
3265
- {
3266
- "type": "null"
3267
- }
3268
- ]
3269
- }
3270
- },
3271
- "required": [
3272
- "x",
3273
- "y",
3274
- "rotation",
3275
- "scale",
3276
- "originX",
3277
- "originY"
2506
+ "src"
3278
2507
  ]
3279
2508
  },
3280
2509
  "TextToImageAsset": {