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