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