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