@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
@@ -1935,7 +1935,88 @@
1935
1935
  "font": {
1936
1936
  "anyOf": [
1937
1937
  {
1938
- "$ref": "#/$defs/RichTextFont"
1938
+ "type": "object",
1939
+ "properties": {
1940
+ "family": {
1941
+ "anyOf": [
1942
+ {
1943
+ "type": "string",
1944
+ "enum": [
1945
+ "Roboto"
1946
+ ]
1947
+ },
1948
+ {
1949
+ "type": "null"
1950
+ }
1951
+ ]
1952
+ },
1953
+ "size": {
1954
+ "anyOf": [
1955
+ {
1956
+ "type": "integer",
1957
+ "minimum": 1,
1958
+ "maximum": 500
1959
+ },
1960
+ {
1961
+ "type": "null"
1962
+ }
1963
+ ]
1964
+ },
1965
+ "weight": {
1966
+ "anyOf": [
1967
+ {
1968
+ "type": "string"
1969
+ },
1970
+ {
1971
+ "type": "null"
1972
+ }
1973
+ ]
1974
+ },
1975
+ "color": {
1976
+ "anyOf": [
1977
+ {
1978
+ "type": "string",
1979
+ "enum": [
1980
+ "#ffffff"
1981
+ ]
1982
+ },
1983
+ {
1984
+ "type": "null"
1985
+ }
1986
+ ]
1987
+ },
1988
+ "opacity": {
1989
+ "anyOf": [
1990
+ {
1991
+ "type": "number",
1992
+ "minimum": 0,
1993
+ "maximum": 1
1994
+ },
1995
+ {
1996
+ "type": "null"
1997
+ }
1998
+ ]
1999
+ },
2000
+ "background": {
2001
+ "anyOf": [
2002
+ {
2003
+ "type": "string"
2004
+ },
2005
+ {
2006
+ "type": "null"
2007
+ }
2008
+ ]
2009
+ }
2010
+ },
2011
+ "additionalProperties": false,
2012
+ "required": [
2013
+ "family",
2014
+ "size",
2015
+ "weight",
2016
+ "color",
2017
+ "opacity",
2018
+ "background"
2019
+ ]
1939
2020
  },
1940
2021
  {
1941
2022
  "type": "null"
@@ -2472,865 +2553,13 @@
2472
2553
  ]
2473
2554
  },
2474
2555
  "src": {
2475
- "anyOf": [
2476
- {
2477
- "type": "string"
2478
- },
2479
- {
2480
- "type": "null"
2481
- }
2482
- ]
2483
- },
2484
- "shape": {
2485
- "anyOf": [
2486
- {
2487
- "$ref": "#/$defs/SvgShape"
2488
- },
2489
- {
2490
- "type": "null"
2491
- }
2492
- ]
2493
- },
2494
- "fill": {
2495
- "anyOf": [
2496
- {
2497
- "$ref": "#/$defs/SvgFill"
2498
- },
2499
- {
2500
- "type": "null"
2501
- }
2502
- ]
2503
- },
2504
- "stroke": {
2505
- "anyOf": [
2506
- {
2507
- "$ref": "#/$defs/SvgStroke"
2508
- },
2509
- {
2510
- "type": "null"
2511
- }
2512
- ]
2513
- },
2514
- "shadow": {
2515
- "anyOf": [
2516
- {
2517
- "$ref": "#/$defs/SvgShadow"
2518
- },
2519
- {
2520
- "type": "null"
2521
- }
2522
- ]
2523
- },
2524
- "transform": {
2525
- "anyOf": [
2526
- {
2527
- "$ref": "#/$defs/SvgTransform"
2528
- },
2529
- {
2530
- "type": "null"
2531
- }
2532
- ]
2533
- },
2534
- "opacity": {
2535
- "anyOf": [
2536
- {
2537
- "type": "number",
2538
- "minimum": 0,
2539
- "maximum": 1
2540
- },
2541
- {
2542
- "type": "null"
2543
- }
2544
- ]
2545
- },
2546
- "width": {
2547
- "anyOf": [
2548
- {
2549
- "type": "integer",
2550
- "minimum": 1,
2551
- "maximum": 4096
2552
- },
2553
- {
2554
- "type": "null"
2555
- }
2556
- ]
2557
- },
2558
- "height": {
2559
- "anyOf": [
2560
- {
2561
- "type": "integer",
2562
- "minimum": 1,
2563
- "maximum": 4096
2564
- },
2565
- {
2566
- "type": "null"
2567
- }
2568
- ]
2569
- }
2570
- },
2571
- "additionalProperties": false,
2572
- "required": [
2573
- "type",
2574
- "src",
2575
- "shape",
2576
- "fill",
2577
- "stroke",
2578
- "shadow",
2579
- "transform",
2580
- "opacity",
2581
- "width",
2582
- "height"
2583
- ]
2584
- },
2585
- "SvgShape": {
2586
- "anyOf": [
2587
- {
2588
- "$ref": "#/$defs/SvgRectangleShape"
2589
- },
2590
- {
2591
- "$ref": "#/$defs/SvgCircleShape"
2592
- },
2593
- {
2594
- "$ref": "#/$defs/SvgEllipseShape"
2595
- },
2596
- {
2597
- "$ref": "#/$defs/SvgLineShape"
2598
- },
2599
- {
2600
- "$ref": "#/$defs/SvgPolygonShape"
2601
- },
2602
- {
2603
- "$ref": "#/$defs/SvgStarShape"
2604
- },
2605
- {
2606
- "$ref": "#/$defs/SvgArrowShape"
2607
- },
2608
- {
2609
- "$ref": "#/$defs/SvgHeartShape"
2610
- },
2611
- {
2612
- "$ref": "#/$defs/SvgCrossShape"
2613
- },
2614
- {
2615
- "$ref": "#/$defs/SvgRingShape"
2616
- },
2617
- {
2618
- "$ref": "#/$defs/SvgPathShape"
2619
- }
2620
- ]
2621
- },
2622
- "SvgRectangleShape": {
2623
- "type": "object",
2624
- "additionalProperties": false,
2625
- "properties": {
2626
- "type": {
2627
- "type": "string",
2628
- "enum": [
2629
- "rectangle"
2630
- ]
2631
- },
2632
- "width": {
2633
- "type": "number",
2634
- "minimum": 1,
2635
- "maximum": 4096
2636
- },
2637
- "height": {
2638
- "type": "number",
2639
- "minimum": 1,
2640
- "maximum": 4096
2641
- },
2642
- "cornerRadius": {
2643
- "anyOf": [
2644
- {
2645
- "type": "number",
2646
- "minimum": 0,
2647
- "maximum": 2048
2648
- },
2649
- {
2650
- "type": "null"
2651
- }
2652
- ]
2653
- }
2654
- },
2655
- "required": [
2656
- "type",
2657
- "width",
2658
- "height",
2659
- "cornerRadius"
2660
- ]
2661
- },
2662
- "SvgCircleShape": {
2663
- "type": "object",
2664
- "additionalProperties": false,
2665
- "properties": {
2666
- "type": {
2667
- "type": "string",
2668
- "enum": [
2669
- "circle"
2670
- ]
2671
- },
2672
- "radius": {
2673
- "type": "number",
2674
- "minimum": 1,
2675
- "maximum": 2048
2556
+ "type": "string"
2676
2557
  }
2677
2558
  },
2678
- "required": [
2679
- "type",
2680
- "radius"
2681
- ]
2682
- },
2683
- "SvgEllipseShape": {
2684
- "type": "object",
2685
2559
  "additionalProperties": false,
2686
- "properties": {
2687
- "type": {
2688
- "type": "string",
2689
- "enum": [
2690
- "ellipse"
2691
- ]
2692
- },
2693
- "radiusX": {
2694
- "type": "number",
2695
- "minimum": 1,
2696
- "maximum": 2048
2697
- },
2698
- "radiusY": {
2699
- "type": "number",
2700
- "minimum": 1,
2701
- "maximum": 2048
2702
- }
2703
- },
2704
2560
  "required": [
2705
2561
  "type",
2706
- "radiusX",
2707
- "radiusY"
2708
- ]
2709
- },
2710
- "SvgLineShape": {
2711
- "type": "object",
2712
- "additionalProperties": false,
2713
- "properties": {
2714
- "type": {
2715
- "type": "string",
2716
- "enum": [
2717
- "line"
2718
- ]
2719
- },
2720
- "length": {
2721
- "type": "number",
2722
- "minimum": 1,
2723
- "maximum": 4096
2724
- },
2725
- "thickness": {
2726
- "type": "number",
2727
- "minimum": 1,
2728
- "maximum": 500
2729
- }
2730
- },
2731
- "required": [
2732
- "type",
2733
- "length",
2734
- "thickness"
2735
- ]
2736
- },
2737
- "SvgPolygonShape": {
2738
- "type": "object",
2739
- "additionalProperties": false,
2740
- "properties": {
2741
- "type": {
2742
- "type": "string",
2743
- "enum": [
2744
- "polygon"
2745
- ]
2746
- },
2747
- "sides": {
2748
- "type": "integer",
2749
- "minimum": 3,
2750
- "maximum": 100
2751
- },
2752
- "radius": {
2753
- "type": "number",
2754
- "minimum": 1,
2755
- "maximum": 2048
2756
- }
2757
- },
2758
- "required": [
2759
- "type",
2760
- "sides",
2761
- "radius"
2762
- ]
2763
- },
2764
- "SvgStarShape": {
2765
- "type": "object",
2766
- "additionalProperties": false,
2767
- "properties": {
2768
- "type": {
2769
- "type": "string",
2770
- "enum": [
2771
- "star"
2772
- ]
2773
- },
2774
- "points": {
2775
- "type": "integer",
2776
- "minimum": 3,
2777
- "maximum": 100
2778
- },
2779
- "outerRadius": {
2780
- "type": "number",
2781
- "minimum": 1,
2782
- "maximum": 2048
2783
- },
2784
- "innerRadius": {
2785
- "type": "number",
2786
- "minimum": 1,
2787
- "maximum": 2048
2788
- }
2789
- },
2790
- "required": [
2791
- "type",
2792
- "points",
2793
- "outerRadius",
2794
- "innerRadius"
2795
- ]
2796
- },
2797
- "SvgArrowShape": {
2798
- "type": "object",
2799
- "additionalProperties": false,
2800
- "properties": {
2801
- "type": {
2802
- "type": "string",
2803
- "enum": [
2804
- "arrow"
2805
- ]
2806
- },
2807
- "length": {
2808
- "type": "number",
2809
- "minimum": 1,
2810
- "maximum": 4096
2811
- },
2812
- "headWidth": {
2813
- "type": "number",
2814
- "minimum": 1,
2815
- "maximum": 1000
2816
- },
2817
- "headLength": {
2818
- "type": "number",
2819
- "minimum": 1,
2820
- "maximum": 1000
2821
- },
2822
- "shaftWidth": {
2823
- "type": "number",
2824
- "minimum": 1,
2825
- "maximum": 1000
2826
- }
2827
- },
2828
- "required": [
2829
- "type",
2830
- "length",
2831
- "headWidth",
2832
- "headLength",
2833
- "shaftWidth"
2834
- ]
2835
- },
2836
- "SvgHeartShape": {
2837
- "type": "object",
2838
- "additionalProperties": false,
2839
- "properties": {
2840
- "type": {
2841
- "type": "string",
2842
- "enum": [
2843
- "heart"
2844
- ]
2845
- },
2846
- "size": {
2847
- "type": "number",
2848
- "minimum": 1,
2849
- "maximum": 4096
2850
- }
2851
- },
2852
- "required": [
2853
- "type",
2854
- "size"
2855
- ]
2856
- },
2857
- "SvgCrossShape": {
2858
- "type": "object",
2859
- "additionalProperties": false,
2860
- "properties": {
2861
- "type": {
2862
- "type": "string",
2863
- "enum": [
2864
- "cross"
2865
- ]
2866
- },
2867
- "width": {
2868
- "type": "number",
2869
- "minimum": 1,
2870
- "maximum": 4096
2871
- },
2872
- "height": {
2873
- "type": "number",
2874
- "minimum": 1,
2875
- "maximum": 4096
2876
- },
2877
- "thickness": {
2878
- "type": "number",
2879
- "minimum": 1,
2880
- "maximum": 500
2881
- }
2882
- },
2883
- "required": [
2884
- "type",
2885
- "width",
2886
- "height",
2887
- "thickness"
2888
- ]
2889
- },
2890
- "SvgRingShape": {
2891
- "type": "object",
2892
- "additionalProperties": false,
2893
- "properties": {
2894
- "type": {
2895
- "type": "string",
2896
- "enum": [
2897
- "ring"
2898
- ]
2899
- },
2900
- "outerRadius": {
2901
- "type": "number",
2902
- "minimum": 1,
2903
- "maximum": 2048
2904
- },
2905
- "innerRadius": {
2906
- "type": "number",
2907
- "minimum": 0,
2908
- "maximum": 2048
2909
- }
2910
- },
2911
- "required": [
2912
- "type",
2913
- "outerRadius",
2914
- "innerRadius"
2915
- ]
2916
- },
2917
- "SvgPathShape": {
2918
- "type": "object",
2919
- "additionalProperties": false,
2920
- "properties": {
2921
- "type": {
2922
- "type": "string",
2923
- "enum": [
2924
- "path"
2925
- ]
2926
- },
2927
- "d": {
2928
- "type": "string"
2929
- }
2930
- },
2931
- "required": [
2932
- "type",
2933
- "d"
2934
- ]
2935
- },
2936
- "SvgFill": {
2937
- "anyOf": [
2938
- {
2939
- "$ref": "#/$defs/SvgSolidFill"
2940
- },
2941
- {
2942
- "$ref": "#/$defs/SvgLinearGradientFill"
2943
- },
2944
- {
2945
- "$ref": "#/$defs/SvgRadialGradientFill"
2946
- }
2947
- ]
2948
- },
2949
- "SvgSolidFill": {
2950
- "type": "object",
2951
- "additionalProperties": false,
2952
- "properties": {
2953
- "type": {
2954
- "type": "string",
2955
- "enum": [
2956
- "solid"
2957
- ]
2958
- },
2959
- "color": {
2960
- "type": "string"
2961
- },
2962
- "opacity": {
2963
- "anyOf": [
2964
- {
2965
- "type": "number",
2966
- "minimum": 0,
2967
- "maximum": 1
2968
- },
2969
- {
2970
- "type": "null"
2971
- }
2972
- ]
2973
- }
2974
- },
2975
- "required": [
2976
- "type",
2977
- "color",
2978
- "opacity"
2979
- ]
2980
- },
2981
- "SvgLinearGradientFill": {
2982
- "type": "object",
2983
- "additionalProperties": false,
2984
- "properties": {
2985
- "type": {
2986
- "type": "string",
2987
- "enum": [
2988
- "linear"
2989
- ]
2990
- },
2991
- "angle": {
2992
- "anyOf": [
2993
- {
2994
- "type": "number",
2995
- "minimum": 0,
2996
- "maximum": 360
2997
- },
2998
- {
2999
- "type": "null"
3000
- }
3001
- ]
3002
- },
3003
- "stops": {
3004
- "type": "array",
3005
- "items": {
3006
- "$ref": "#/$defs/SvgGradientStop"
3007
- }
3008
- },
3009
- "opacity": {
3010
- "anyOf": [
3011
- {
3012
- "type": "number",
3013
- "minimum": 0,
3014
- "maximum": 1
3015
- },
3016
- {
3017
- "type": "null"
3018
- }
3019
- ]
3020
- }
3021
- },
3022
- "required": [
3023
- "type",
3024
- "angle",
3025
- "stops",
3026
- "opacity"
3027
- ]
3028
- },
3029
- "SvgGradientStop": {
3030
- "type": "object",
3031
- "additionalProperties": false,
3032
- "properties": {
3033
- "offset": {
3034
- "type": "number",
3035
- "minimum": 0,
3036
- "maximum": 1
3037
- },
3038
- "color": {
3039
- "type": "string"
3040
- }
3041
- },
3042
- "required": [
3043
- "offset",
3044
- "color"
3045
- ]
3046
- },
3047
- "SvgRadialGradientFill": {
3048
- "type": "object",
3049
- "additionalProperties": false,
3050
- "properties": {
3051
- "type": {
3052
- "type": "string",
3053
- "enum": [
3054
- "radial"
3055
- ]
3056
- },
3057
- "stops": {
3058
- "type": "array",
3059
- "items": {
3060
- "$ref": "#/$defs/SvgGradientStop"
3061
- }
3062
- },
3063
- "opacity": {
3064
- "anyOf": [
3065
- {
3066
- "type": "number",
3067
- "minimum": 0,
3068
- "maximum": 1
3069
- },
3070
- {
3071
- "type": "null"
3072
- }
3073
- ]
3074
- }
3075
- },
3076
- "required": [
3077
- "type",
3078
- "stops",
3079
- "opacity"
3080
- ]
3081
- },
3082
- "SvgStroke": {
3083
- "type": "object",
3084
- "additionalProperties": false,
3085
- "properties": {
3086
- "color": {
3087
- "anyOf": [
3088
- {
3089
- "type": "string"
3090
- },
3091
- {
3092
- "type": "null"
3093
- }
3094
- ]
3095
- },
3096
- "width": {
3097
- "anyOf": [
3098
- {
3099
- "type": "number",
3100
- "minimum": 0,
3101
- "maximum": 100
3102
- },
3103
- {
3104
- "type": "null"
3105
- }
3106
- ]
3107
- },
3108
- "opacity": {
3109
- "anyOf": [
3110
- {
3111
- "type": "number",
3112
- "minimum": 0,
3113
- "maximum": 1
3114
- },
3115
- {
3116
- "type": "null"
3117
- }
3118
- ]
3119
- },
3120
- "lineCap": {
3121
- "anyOf": [
3122
- {
3123
- "type": "string",
3124
- "enum": [
3125
- "butt",
3126
- "round",
3127
- "square"
3128
- ]
3129
- },
3130
- {
3131
- "type": "null"
3132
- }
3133
- ]
3134
- },
3135
- "lineJoin": {
3136
- "anyOf": [
3137
- {
3138
- "type": "string",
3139
- "enum": [
3140
- "miter",
3141
- "round",
3142
- "bevel"
3143
- ]
3144
- },
3145
- {
3146
- "type": "null"
3147
- }
3148
- ]
3149
- },
3150
- "dashArray": {
3151
- "anyOf": [
3152
- {
3153
- "type": "array",
3154
- "items": {
3155
- "type": "number",
3156
- "minimum": 0
3157
- }
3158
- },
3159
- {
3160
- "type": "null"
3161
- }
3162
- ]
3163
- },
3164
- "dashOffset": {
3165
- "anyOf": [
3166
- {
3167
- "type": "number"
3168
- },
3169
- {
3170
- "type": "null"
3171
- }
3172
- ]
3173
- }
3174
- },
3175
- "required": [
3176
- "color",
3177
- "width",
3178
- "opacity",
3179
- "lineCap",
3180
- "lineJoin",
3181
- "dashArray",
3182
- "dashOffset"
3183
- ]
3184
- },
3185
- "SvgShadow": {
3186
- "type": "object",
3187
- "additionalProperties": false,
3188
- "properties": {
3189
- "offsetX": {
3190
- "anyOf": [
3191
- {
3192
- "type": "number"
3193
- },
3194
- {
3195
- "type": "null"
3196
- }
3197
- ]
3198
- },
3199
- "offsetY": {
3200
- "anyOf": [
3201
- {
3202
- "type": "number"
3203
- },
3204
- {
3205
- "type": "null"
3206
- }
3207
- ]
3208
- },
3209
- "blur": {
3210
- "anyOf": [
3211
- {
3212
- "type": "number",
3213
- "minimum": 0
3214
- },
3215
- {
3216
- "type": "null"
3217
- }
3218
- ]
3219
- },
3220
- "color": {
3221
- "anyOf": [
3222
- {
3223
- "type": "string",
3224
- "enum": [
3225
- "#000000"
3226
- ]
3227
- },
3228
- {
3229
- "type": "null"
3230
- }
3231
- ]
3232
- },
3233
- "opacity": {
3234
- "anyOf": [
3235
- {
3236
- "type": "number",
3237
- "minimum": 0,
3238
- "maximum": 1
3239
- },
3240
- {
3241
- "type": "null"
3242
- }
3243
- ]
3244
- }
3245
- },
3246
- "required": [
3247
- "offsetX",
3248
- "offsetY",
3249
- "blur",
3250
- "color",
3251
- "opacity"
3252
- ]
3253
- },
3254
- "SvgTransform": {
3255
- "type": "object",
3256
- "additionalProperties": false,
3257
- "properties": {
3258
- "x": {
3259
- "anyOf": [
3260
- {
3261
- "type": "number"
3262
- },
3263
- {
3264
- "type": "null"
3265
- }
3266
- ]
3267
- },
3268
- "y": {
3269
- "anyOf": [
3270
- {
3271
- "type": "number"
3272
- },
3273
- {
3274
- "type": "null"
3275
- }
3276
- ]
3277
- },
3278
- "rotation": {
3279
- "anyOf": [
3280
- {
3281
- "type": "number",
3282
- "minimum": -360,
3283
- "maximum": 360
3284
- },
3285
- {
3286
- "type": "null"
3287
- }
3288
- ]
3289
- },
3290
- "scale": {
3291
- "anyOf": [
3292
- {
3293
- "type": "number",
3294
- "minimum": 0.01,
3295
- "maximum": 100
3296
- },
3297
- {
3298
- "type": "null"
3299
- }
3300
- ]
3301
- },
3302
- "originX": {
3303
- "anyOf": [
3304
- {
3305
- "type": "number",
3306
- "minimum": 0,
3307
- "maximum": 1
3308
- },
3309
- {
3310
- "type": "null"
3311
- }
3312
- ]
3313
- },
3314
- "originY": {
3315
- "anyOf": [
3316
- {
3317
- "type": "number",
3318
- "minimum": 0,
3319
- "maximum": 1
3320
- },
3321
- {
3322
- "type": "null"
3323
- }
3324
- ]
3325
- }
3326
- },
3327
- "required": [
3328
- "x",
3329
- "y",
3330
- "rotation",
3331
- "scale",
3332
- "originX",
3333
- "originY"
2562
+ "src"
3334
2563
  ]
3335
2564
  },
3336
2565
  "TextToImageAsset": {