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