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