@shotstack/schemas 1.8.4 → 1.8.5

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