@shotstack/schemas 1.9.5 → 1.9.7

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 +83 -1263
  2. package/dist/json-schema/asset.json +3 -858
  3. package/dist/json-schema/clip.json +3 -858
  4. package/dist/json-schema/edit.json +3 -858
  5. package/dist/json-schema/rich-caption-active-font.json +1 -4
  6. package/dist/json-schema/rich-caption-active.json +1 -4
  7. package/dist/json-schema/rich-caption-asset.json +1 -4
  8. package/dist/json-schema/schemas.json +6 -954
  9. package/dist/json-schema/svg-asset.json +6 -857
  10. package/dist/json-schema/timeline.json +3 -858
  11. package/dist/json-schema/track.json +3 -858
  12. package/dist/schema.d.ts +15 -1040
  13. package/dist/zod/zod.gen.cjs +36 -726
  14. package/dist/zod/zod.gen.d.ts +542 -11591
  15. package/dist/zod/zod.gen.js +29 -718
  16. package/dist/zod/zod.gen.ts +31 -711
  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
@@ -2216,10 +2216,7 @@
2216
2216
  "color": {
2217
2217
  "anyOf": [
2218
2218
  {
2219
- "type": "string",
2220
- "enum": [
2221
- "#ffff00"
2222
- ]
2219
+ "type": "string"
2223
2220
  },
2224
2221
  {
2225
2222
  "type": "null"
@@ -2535,865 +2532,13 @@
2535
2532
  ]
2536
2533
  },
2537
2534
  "src": {
2538
- "anyOf": [
2539
- {
2540
- "type": "string"
2541
- },
2542
- {
2543
- "type": "null"
2544
- }
2545
- ]
2546
- },
2547
- "shape": {
2548
- "anyOf": [
2549
- {
2550
- "$ref": "#/$defs/SvgShape"
2551
- },
2552
- {
2553
- "type": "null"
2554
- }
2555
- ]
2556
- },
2557
- "fill": {
2558
- "anyOf": [
2559
- {
2560
- "$ref": "#/$defs/SvgFill"
2561
- },
2562
- {
2563
- "type": "null"
2564
- }
2565
- ]
2566
- },
2567
- "stroke": {
2568
- "anyOf": [
2569
- {
2570
- "$ref": "#/$defs/SvgStroke"
2571
- },
2572
- {
2573
- "type": "null"
2574
- }
2575
- ]
2576
- },
2577
- "shadow": {
2578
- "anyOf": [
2579
- {
2580
- "$ref": "#/$defs/SvgShadow"
2581
- },
2582
- {
2583
- "type": "null"
2584
- }
2585
- ]
2586
- },
2587
- "transform": {
2588
- "anyOf": [
2589
- {
2590
- "$ref": "#/$defs/SvgTransform"
2591
- },
2592
- {
2593
- "type": "null"
2594
- }
2595
- ]
2596
- },
2597
- "opacity": {
2598
- "anyOf": [
2599
- {
2600
- "type": "number",
2601
- "minimum": 0,
2602
- "maximum": 1
2603
- },
2604
- {
2605
- "type": "null"
2606
- }
2607
- ]
2608
- },
2609
- "width": {
2610
- "anyOf": [
2611
- {
2612
- "type": "integer",
2613
- "minimum": 1,
2614
- "maximum": 4096
2615
- },
2616
- {
2617
- "type": "null"
2618
- }
2619
- ]
2620
- },
2621
- "height": {
2622
- "anyOf": [
2623
- {
2624
- "type": "integer",
2625
- "minimum": 1,
2626
- "maximum": 4096
2627
- },
2628
- {
2629
- "type": "null"
2630
- }
2631
- ]
2632
- }
2633
- },
2634
- "additionalProperties": false,
2635
- "required": [
2636
- "type",
2637
- "src",
2638
- "shape",
2639
- "fill",
2640
- "stroke",
2641
- "shadow",
2642
- "transform",
2643
- "opacity",
2644
- "width",
2645
- "height"
2646
- ]
2647
- },
2648
- "SvgShape": {
2649
- "anyOf": [
2650
- {
2651
- "$ref": "#/$defs/SvgRectangleShape"
2652
- },
2653
- {
2654
- "$ref": "#/$defs/SvgCircleShape"
2655
- },
2656
- {
2657
- "$ref": "#/$defs/SvgEllipseShape"
2658
- },
2659
- {
2660
- "$ref": "#/$defs/SvgLineShape"
2661
- },
2662
- {
2663
- "$ref": "#/$defs/SvgPolygonShape"
2664
- },
2665
- {
2666
- "$ref": "#/$defs/SvgStarShape"
2667
- },
2668
- {
2669
- "$ref": "#/$defs/SvgArrowShape"
2670
- },
2671
- {
2672
- "$ref": "#/$defs/SvgHeartShape"
2673
- },
2674
- {
2675
- "$ref": "#/$defs/SvgCrossShape"
2676
- },
2677
- {
2678
- "$ref": "#/$defs/SvgRingShape"
2679
- },
2680
- {
2681
- "$ref": "#/$defs/SvgPathShape"
2682
- }
2683
- ]
2684
- },
2685
- "SvgRectangleShape": {
2686
- "type": "object",
2687
- "additionalProperties": false,
2688
- "properties": {
2689
- "type": {
2690
- "type": "string",
2691
- "enum": [
2692
- "rectangle"
2693
- ]
2694
- },
2695
- "width": {
2696
- "type": "number",
2697
- "minimum": 1,
2698
- "maximum": 4096
2699
- },
2700
- "height": {
2701
- "type": "number",
2702
- "minimum": 1,
2703
- "maximum": 4096
2704
- },
2705
- "cornerRadius": {
2706
- "anyOf": [
2707
- {
2708
- "type": "number",
2709
- "minimum": 0,
2710
- "maximum": 2048
2711
- },
2712
- {
2713
- "type": "null"
2714
- }
2715
- ]
2716
- }
2717
- },
2718
- "required": [
2719
- "type",
2720
- "width",
2721
- "height",
2722
- "cornerRadius"
2723
- ]
2724
- },
2725
- "SvgCircleShape": {
2726
- "type": "object",
2727
- "additionalProperties": false,
2728
- "properties": {
2729
- "type": {
2730
- "type": "string",
2731
- "enum": [
2732
- "circle"
2733
- ]
2734
- },
2735
- "radius": {
2736
- "type": "number",
2737
- "minimum": 1,
2738
- "maximum": 2048
2739
- }
2740
- },
2741
- "required": [
2742
- "type",
2743
- "radius"
2744
- ]
2745
- },
2746
- "SvgEllipseShape": {
2747
- "type": "object",
2748
- "additionalProperties": false,
2749
- "properties": {
2750
- "type": {
2751
- "type": "string",
2752
- "enum": [
2753
- "ellipse"
2754
- ]
2755
- },
2756
- "radiusX": {
2757
- "type": "number",
2758
- "minimum": 1,
2759
- "maximum": 2048
2760
- },
2761
- "radiusY": {
2762
- "type": "number",
2763
- "minimum": 1,
2764
- "maximum": 2048
2765
- }
2766
- },
2767
- "required": [
2768
- "type",
2769
- "radiusX",
2770
- "radiusY"
2771
- ]
2772
- },
2773
- "SvgLineShape": {
2774
- "type": "object",
2775
- "additionalProperties": false,
2776
- "properties": {
2777
- "type": {
2778
- "type": "string",
2779
- "enum": [
2780
- "line"
2781
- ]
2782
- },
2783
- "length": {
2784
- "type": "number",
2785
- "minimum": 1,
2786
- "maximum": 4096
2787
- },
2788
- "thickness": {
2789
- "type": "number",
2790
- "minimum": 1,
2791
- "maximum": 500
2792
- }
2793
- },
2794
- "required": [
2795
- "type",
2796
- "length",
2797
- "thickness"
2798
- ]
2799
- },
2800
- "SvgPolygonShape": {
2801
- "type": "object",
2802
- "additionalProperties": false,
2803
- "properties": {
2804
- "type": {
2805
- "type": "string",
2806
- "enum": [
2807
- "polygon"
2808
- ]
2809
- },
2810
- "sides": {
2811
- "type": "integer",
2812
- "minimum": 3,
2813
- "maximum": 100
2814
- },
2815
- "radius": {
2816
- "type": "number",
2817
- "minimum": 1,
2818
- "maximum": 2048
2819
- }
2820
- },
2821
- "required": [
2822
- "type",
2823
- "sides",
2824
- "radius"
2825
- ]
2826
- },
2827
- "SvgStarShape": {
2828
- "type": "object",
2829
- "additionalProperties": false,
2830
- "properties": {
2831
- "type": {
2832
- "type": "string",
2833
- "enum": [
2834
- "star"
2835
- ]
2836
- },
2837
- "points": {
2838
- "type": "integer",
2839
- "minimum": 3,
2840
- "maximum": 100
2841
- },
2842
- "outerRadius": {
2843
- "type": "number",
2844
- "minimum": 1,
2845
- "maximum": 2048
2846
- },
2847
- "innerRadius": {
2848
- "type": "number",
2849
- "minimum": 1,
2850
- "maximum": 2048
2535
+ "type": "string"
2851
2536
  }
2852
2537
  },
2853
- "required": [
2854
- "type",
2855
- "points",
2856
- "outerRadius",
2857
- "innerRadius"
2858
- ]
2859
- },
2860
- "SvgArrowShape": {
2861
- "type": "object",
2862
2538
  "additionalProperties": false,
2863
- "properties": {
2864
- "type": {
2865
- "type": "string",
2866
- "enum": [
2867
- "arrow"
2868
- ]
2869
- },
2870
- "length": {
2871
- "type": "number",
2872
- "minimum": 1,
2873
- "maximum": 4096
2874
- },
2875
- "headWidth": {
2876
- "type": "number",
2877
- "minimum": 1,
2878
- "maximum": 1000
2879
- },
2880
- "headLength": {
2881
- "type": "number",
2882
- "minimum": 1,
2883
- "maximum": 1000
2884
- },
2885
- "shaftWidth": {
2886
- "type": "number",
2887
- "minimum": 1,
2888
- "maximum": 1000
2889
- }
2890
- },
2891
2539
  "required": [
2892
2540
  "type",
2893
- "length",
2894
- "headWidth",
2895
- "headLength",
2896
- "shaftWidth"
2897
- ]
2898
- },
2899
- "SvgHeartShape": {
2900
- "type": "object",
2901
- "additionalProperties": false,
2902
- "properties": {
2903
- "type": {
2904
- "type": "string",
2905
- "enum": [
2906
- "heart"
2907
- ]
2908
- },
2909
- "size": {
2910
- "type": "number",
2911
- "minimum": 1,
2912
- "maximum": 4096
2913
- }
2914
- },
2915
- "required": [
2916
- "type",
2917
- "size"
2918
- ]
2919
- },
2920
- "SvgCrossShape": {
2921
- "type": "object",
2922
- "additionalProperties": false,
2923
- "properties": {
2924
- "type": {
2925
- "type": "string",
2926
- "enum": [
2927
- "cross"
2928
- ]
2929
- },
2930
- "width": {
2931
- "type": "number",
2932
- "minimum": 1,
2933
- "maximum": 4096
2934
- },
2935
- "height": {
2936
- "type": "number",
2937
- "minimum": 1,
2938
- "maximum": 4096
2939
- },
2940
- "thickness": {
2941
- "type": "number",
2942
- "minimum": 1,
2943
- "maximum": 500
2944
- }
2945
- },
2946
- "required": [
2947
- "type",
2948
- "width",
2949
- "height",
2950
- "thickness"
2951
- ]
2952
- },
2953
- "SvgRingShape": {
2954
- "type": "object",
2955
- "additionalProperties": false,
2956
- "properties": {
2957
- "type": {
2958
- "type": "string",
2959
- "enum": [
2960
- "ring"
2961
- ]
2962
- },
2963
- "outerRadius": {
2964
- "type": "number",
2965
- "minimum": 1,
2966
- "maximum": 2048
2967
- },
2968
- "innerRadius": {
2969
- "type": "number",
2970
- "minimum": 0,
2971
- "maximum": 2048
2972
- }
2973
- },
2974
- "required": [
2975
- "type",
2976
- "outerRadius",
2977
- "innerRadius"
2978
- ]
2979
- },
2980
- "SvgPathShape": {
2981
- "type": "object",
2982
- "additionalProperties": false,
2983
- "properties": {
2984
- "type": {
2985
- "type": "string",
2986
- "enum": [
2987
- "path"
2988
- ]
2989
- },
2990
- "d": {
2991
- "type": "string"
2992
- }
2993
- },
2994
- "required": [
2995
- "type",
2996
- "d"
2997
- ]
2998
- },
2999
- "SvgFill": {
3000
- "anyOf": [
3001
- {
3002
- "$ref": "#/$defs/SvgSolidFill"
3003
- },
3004
- {
3005
- "$ref": "#/$defs/SvgLinearGradientFill"
3006
- },
3007
- {
3008
- "$ref": "#/$defs/SvgRadialGradientFill"
3009
- }
3010
- ]
3011
- },
3012
- "SvgSolidFill": {
3013
- "type": "object",
3014
- "additionalProperties": false,
3015
- "properties": {
3016
- "type": {
3017
- "type": "string",
3018
- "enum": [
3019
- "solid"
3020
- ]
3021
- },
3022
- "color": {
3023
- "type": "string"
3024
- },
3025
- "opacity": {
3026
- "anyOf": [
3027
- {
3028
- "type": "number",
3029
- "minimum": 0,
3030
- "maximum": 1
3031
- },
3032
- {
3033
- "type": "null"
3034
- }
3035
- ]
3036
- }
3037
- },
3038
- "required": [
3039
- "type",
3040
- "color",
3041
- "opacity"
3042
- ]
3043
- },
3044
- "SvgLinearGradientFill": {
3045
- "type": "object",
3046
- "additionalProperties": false,
3047
- "properties": {
3048
- "type": {
3049
- "type": "string",
3050
- "enum": [
3051
- "linear"
3052
- ]
3053
- },
3054
- "angle": {
3055
- "anyOf": [
3056
- {
3057
- "type": "number",
3058
- "minimum": 0,
3059
- "maximum": 360
3060
- },
3061
- {
3062
- "type": "null"
3063
- }
3064
- ]
3065
- },
3066
- "stops": {
3067
- "type": "array",
3068
- "items": {
3069
- "$ref": "#/$defs/SvgGradientStop"
3070
- }
3071
- },
3072
- "opacity": {
3073
- "anyOf": [
3074
- {
3075
- "type": "number",
3076
- "minimum": 0,
3077
- "maximum": 1
3078
- },
3079
- {
3080
- "type": "null"
3081
- }
3082
- ]
3083
- }
3084
- },
3085
- "required": [
3086
- "type",
3087
- "angle",
3088
- "stops",
3089
- "opacity"
3090
- ]
3091
- },
3092
- "SvgGradientStop": {
3093
- "type": "object",
3094
- "additionalProperties": false,
3095
- "properties": {
3096
- "offset": {
3097
- "type": "number",
3098
- "minimum": 0,
3099
- "maximum": 1
3100
- },
3101
- "color": {
3102
- "type": "string"
3103
- }
3104
- },
3105
- "required": [
3106
- "offset",
3107
- "color"
3108
- ]
3109
- },
3110
- "SvgRadialGradientFill": {
3111
- "type": "object",
3112
- "additionalProperties": false,
3113
- "properties": {
3114
- "type": {
3115
- "type": "string",
3116
- "enum": [
3117
- "radial"
3118
- ]
3119
- },
3120
- "stops": {
3121
- "type": "array",
3122
- "items": {
3123
- "$ref": "#/$defs/SvgGradientStop"
3124
- }
3125
- },
3126
- "opacity": {
3127
- "anyOf": [
3128
- {
3129
- "type": "number",
3130
- "minimum": 0,
3131
- "maximum": 1
3132
- },
3133
- {
3134
- "type": "null"
3135
- }
3136
- ]
3137
- }
3138
- },
3139
- "required": [
3140
- "type",
3141
- "stops",
3142
- "opacity"
3143
- ]
3144
- },
3145
- "SvgStroke": {
3146
- "type": "object",
3147
- "additionalProperties": false,
3148
- "properties": {
3149
- "color": {
3150
- "anyOf": [
3151
- {
3152
- "type": "string"
3153
- },
3154
- {
3155
- "type": "null"
3156
- }
3157
- ]
3158
- },
3159
- "width": {
3160
- "anyOf": [
3161
- {
3162
- "type": "number",
3163
- "minimum": 0,
3164
- "maximum": 100
3165
- },
3166
- {
3167
- "type": "null"
3168
- }
3169
- ]
3170
- },
3171
- "opacity": {
3172
- "anyOf": [
3173
- {
3174
- "type": "number",
3175
- "minimum": 0,
3176
- "maximum": 1
3177
- },
3178
- {
3179
- "type": "null"
3180
- }
3181
- ]
3182
- },
3183
- "lineCap": {
3184
- "anyOf": [
3185
- {
3186
- "type": "string",
3187
- "enum": [
3188
- "butt",
3189
- "round",
3190
- "square"
3191
- ]
3192
- },
3193
- {
3194
- "type": "null"
3195
- }
3196
- ]
3197
- },
3198
- "lineJoin": {
3199
- "anyOf": [
3200
- {
3201
- "type": "string",
3202
- "enum": [
3203
- "miter",
3204
- "round",
3205
- "bevel"
3206
- ]
3207
- },
3208
- {
3209
- "type": "null"
3210
- }
3211
- ]
3212
- },
3213
- "dashArray": {
3214
- "anyOf": [
3215
- {
3216
- "type": "array",
3217
- "items": {
3218
- "type": "number",
3219
- "minimum": 0
3220
- }
3221
- },
3222
- {
3223
- "type": "null"
3224
- }
3225
- ]
3226
- },
3227
- "dashOffset": {
3228
- "anyOf": [
3229
- {
3230
- "type": "number"
3231
- },
3232
- {
3233
- "type": "null"
3234
- }
3235
- ]
3236
- }
3237
- },
3238
- "required": [
3239
- "color",
3240
- "width",
3241
- "opacity",
3242
- "lineCap",
3243
- "lineJoin",
3244
- "dashArray",
3245
- "dashOffset"
3246
- ]
3247
- },
3248
- "SvgShadow": {
3249
- "type": "object",
3250
- "additionalProperties": false,
3251
- "properties": {
3252
- "offsetX": {
3253
- "anyOf": [
3254
- {
3255
- "type": "number"
3256
- },
3257
- {
3258
- "type": "null"
3259
- }
3260
- ]
3261
- },
3262
- "offsetY": {
3263
- "anyOf": [
3264
- {
3265
- "type": "number"
3266
- },
3267
- {
3268
- "type": "null"
3269
- }
3270
- ]
3271
- },
3272
- "blur": {
3273
- "anyOf": [
3274
- {
3275
- "type": "number",
3276
- "minimum": 0
3277
- },
3278
- {
3279
- "type": "null"
3280
- }
3281
- ]
3282
- },
3283
- "color": {
3284
- "anyOf": [
3285
- {
3286
- "type": "string",
3287
- "enum": [
3288
- "#000000"
3289
- ]
3290
- },
3291
- {
3292
- "type": "null"
3293
- }
3294
- ]
3295
- },
3296
- "opacity": {
3297
- "anyOf": [
3298
- {
3299
- "type": "number",
3300
- "minimum": 0,
3301
- "maximum": 1
3302
- },
3303
- {
3304
- "type": "null"
3305
- }
3306
- ]
3307
- }
3308
- },
3309
- "required": [
3310
- "offsetX",
3311
- "offsetY",
3312
- "blur",
3313
- "color",
3314
- "opacity"
3315
- ]
3316
- },
3317
- "SvgTransform": {
3318
- "type": "object",
3319
- "additionalProperties": false,
3320
- "properties": {
3321
- "x": {
3322
- "anyOf": [
3323
- {
3324
- "type": "number"
3325
- },
3326
- {
3327
- "type": "null"
3328
- }
3329
- ]
3330
- },
3331
- "y": {
3332
- "anyOf": [
3333
- {
3334
- "type": "number"
3335
- },
3336
- {
3337
- "type": "null"
3338
- }
3339
- ]
3340
- },
3341
- "rotation": {
3342
- "anyOf": [
3343
- {
3344
- "type": "number",
3345
- "minimum": -360,
3346
- "maximum": 360
3347
- },
3348
- {
3349
- "type": "null"
3350
- }
3351
- ]
3352
- },
3353
- "scale": {
3354
- "anyOf": [
3355
- {
3356
- "type": "number",
3357
- "minimum": 0.01,
3358
- "maximum": 100
3359
- },
3360
- {
3361
- "type": "null"
3362
- }
3363
- ]
3364
- },
3365
- "originX": {
3366
- "anyOf": [
3367
- {
3368
- "type": "number",
3369
- "minimum": 0,
3370
- "maximum": 1
3371
- },
3372
- {
3373
- "type": "null"
3374
- }
3375
- ]
3376
- },
3377
- "originY": {
3378
- "anyOf": [
3379
- {
3380
- "type": "number",
3381
- "minimum": 0,
3382
- "maximum": 1
3383
- },
3384
- {
3385
- "type": "null"
3386
- }
3387
- ]
3388
- }
3389
- },
3390
- "required": [
3391
- "x",
3392
- "y",
3393
- "rotation",
3394
- "scale",
3395
- "originX",
3396
- "originY"
2541
+ "src"
3397
2542
  ]
3398
2543
  },
3399
2544
  "TextToImageAsset": {