@shotstack/schemas 1.8.2 → 1.8.3

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