@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
@@ -2303,13 +2303,865 @@
2303
2303
  ]
2304
2304
  },
2305
2305
  "src": {
2306
- "type": "string"
2306
+ "anyOf": [
2307
+ {
2308
+ "type": "string"
2309
+ },
2310
+ {
2311
+ "type": "null"
2312
+ }
2313
+ ]
2314
+ },
2315
+ "shape": {
2316
+ "anyOf": [
2317
+ {
2318
+ "$ref": "#/$defs/SvgShape"
2319
+ },
2320
+ {
2321
+ "type": "null"
2322
+ }
2323
+ ]
2324
+ },
2325
+ "fill": {
2326
+ "anyOf": [
2327
+ {
2328
+ "$ref": "#/$defs/SvgFill"
2329
+ },
2330
+ {
2331
+ "type": "null"
2332
+ }
2333
+ ]
2334
+ },
2335
+ "stroke": {
2336
+ "anyOf": [
2337
+ {
2338
+ "$ref": "#/$defs/SvgStroke"
2339
+ },
2340
+ {
2341
+ "type": "null"
2342
+ }
2343
+ ]
2344
+ },
2345
+ "shadow": {
2346
+ "anyOf": [
2347
+ {
2348
+ "$ref": "#/$defs/SvgShadow"
2349
+ },
2350
+ {
2351
+ "type": "null"
2352
+ }
2353
+ ]
2354
+ },
2355
+ "transform": {
2356
+ "anyOf": [
2357
+ {
2358
+ "$ref": "#/$defs/SvgTransform"
2359
+ },
2360
+ {
2361
+ "type": "null"
2362
+ }
2363
+ ]
2364
+ },
2365
+ "opacity": {
2366
+ "anyOf": [
2367
+ {
2368
+ "type": "number",
2369
+ "minimum": 0,
2370
+ "maximum": 1
2371
+ },
2372
+ {
2373
+ "type": "null"
2374
+ }
2375
+ ]
2376
+ },
2377
+ "width": {
2378
+ "anyOf": [
2379
+ {
2380
+ "type": "integer",
2381
+ "minimum": 1,
2382
+ "maximum": 4096
2383
+ },
2384
+ {
2385
+ "type": "null"
2386
+ }
2387
+ ]
2388
+ },
2389
+ "height": {
2390
+ "anyOf": [
2391
+ {
2392
+ "type": "integer",
2393
+ "minimum": 1,
2394
+ "maximum": 4096
2395
+ },
2396
+ {
2397
+ "type": "null"
2398
+ }
2399
+ ]
2400
+ }
2401
+ },
2402
+ "additionalProperties": false,
2403
+ "required": [
2404
+ "type",
2405
+ "src",
2406
+ "shape",
2407
+ "fill",
2408
+ "stroke",
2409
+ "shadow",
2410
+ "transform",
2411
+ "opacity",
2412
+ "width",
2413
+ "height"
2414
+ ]
2415
+ },
2416
+ "SvgShape": {
2417
+ "anyOf": [
2418
+ {
2419
+ "$ref": "#/$defs/SvgRectangleShape"
2420
+ },
2421
+ {
2422
+ "$ref": "#/$defs/SvgCircleShape"
2423
+ },
2424
+ {
2425
+ "$ref": "#/$defs/SvgEllipseShape"
2426
+ },
2427
+ {
2428
+ "$ref": "#/$defs/SvgLineShape"
2429
+ },
2430
+ {
2431
+ "$ref": "#/$defs/SvgPolygonShape"
2432
+ },
2433
+ {
2434
+ "$ref": "#/$defs/SvgStarShape"
2435
+ },
2436
+ {
2437
+ "$ref": "#/$defs/SvgArrowShape"
2438
+ },
2439
+ {
2440
+ "$ref": "#/$defs/SvgHeartShape"
2441
+ },
2442
+ {
2443
+ "$ref": "#/$defs/SvgCrossShape"
2444
+ },
2445
+ {
2446
+ "$ref": "#/$defs/SvgRingShape"
2447
+ },
2448
+ {
2449
+ "$ref": "#/$defs/SvgPathShape"
2450
+ }
2451
+ ]
2452
+ },
2453
+ "SvgRectangleShape": {
2454
+ "type": "object",
2455
+ "additionalProperties": false,
2456
+ "properties": {
2457
+ "type": {
2458
+ "type": "string",
2459
+ "enum": [
2460
+ "rectangle"
2461
+ ]
2462
+ },
2463
+ "width": {
2464
+ "type": "number",
2465
+ "minimum": 1,
2466
+ "maximum": 4096
2467
+ },
2468
+ "height": {
2469
+ "type": "number",
2470
+ "minimum": 1,
2471
+ "maximum": 4096
2472
+ },
2473
+ "cornerRadius": {
2474
+ "anyOf": [
2475
+ {
2476
+ "type": "number",
2477
+ "minimum": 0,
2478
+ "maximum": 2048
2479
+ },
2480
+ {
2481
+ "type": "null"
2482
+ }
2483
+ ]
2484
+ }
2485
+ },
2486
+ "required": [
2487
+ "type",
2488
+ "width",
2489
+ "height",
2490
+ "cornerRadius"
2491
+ ]
2492
+ },
2493
+ "SvgCircleShape": {
2494
+ "type": "object",
2495
+ "additionalProperties": false,
2496
+ "properties": {
2497
+ "type": {
2498
+ "type": "string",
2499
+ "enum": [
2500
+ "circle"
2501
+ ]
2502
+ },
2503
+ "radius": {
2504
+ "type": "number",
2505
+ "minimum": 1,
2506
+ "maximum": 2048
2507
+ }
2508
+ },
2509
+ "required": [
2510
+ "type",
2511
+ "radius"
2512
+ ]
2513
+ },
2514
+ "SvgEllipseShape": {
2515
+ "type": "object",
2516
+ "additionalProperties": false,
2517
+ "properties": {
2518
+ "type": {
2519
+ "type": "string",
2520
+ "enum": [
2521
+ "ellipse"
2522
+ ]
2523
+ },
2524
+ "radiusX": {
2525
+ "type": "number",
2526
+ "minimum": 1,
2527
+ "maximum": 2048
2528
+ },
2529
+ "radiusY": {
2530
+ "type": "number",
2531
+ "minimum": 1,
2532
+ "maximum": 2048
2533
+ }
2534
+ },
2535
+ "required": [
2536
+ "type",
2537
+ "radiusX",
2538
+ "radiusY"
2539
+ ]
2540
+ },
2541
+ "SvgLineShape": {
2542
+ "type": "object",
2543
+ "additionalProperties": false,
2544
+ "properties": {
2545
+ "type": {
2546
+ "type": "string",
2547
+ "enum": [
2548
+ "line"
2549
+ ]
2550
+ },
2551
+ "length": {
2552
+ "type": "number",
2553
+ "minimum": 1,
2554
+ "maximum": 4096
2555
+ },
2556
+ "thickness": {
2557
+ "type": "number",
2558
+ "minimum": 1,
2559
+ "maximum": 500
2560
+ }
2561
+ },
2562
+ "required": [
2563
+ "type",
2564
+ "length",
2565
+ "thickness"
2566
+ ]
2567
+ },
2568
+ "SvgPolygonShape": {
2569
+ "type": "object",
2570
+ "additionalProperties": false,
2571
+ "properties": {
2572
+ "type": {
2573
+ "type": "string",
2574
+ "enum": [
2575
+ "polygon"
2576
+ ]
2577
+ },
2578
+ "sides": {
2579
+ "type": "integer",
2580
+ "minimum": 3,
2581
+ "maximum": 100
2582
+ },
2583
+ "radius": {
2584
+ "type": "number",
2585
+ "minimum": 1,
2586
+ "maximum": 2048
2307
2587
  }
2308
2588
  },
2589
+ "required": [
2590
+ "type",
2591
+ "sides",
2592
+ "radius"
2593
+ ]
2594
+ },
2595
+ "SvgStarShape": {
2596
+ "type": "object",
2309
2597
  "additionalProperties": false,
2598
+ "properties": {
2599
+ "type": {
2600
+ "type": "string",
2601
+ "enum": [
2602
+ "star"
2603
+ ]
2604
+ },
2605
+ "points": {
2606
+ "type": "integer",
2607
+ "minimum": 3,
2608
+ "maximum": 100
2609
+ },
2610
+ "outerRadius": {
2611
+ "type": "number",
2612
+ "minimum": 1,
2613
+ "maximum": 2048
2614
+ },
2615
+ "innerRadius": {
2616
+ "type": "number",
2617
+ "minimum": 1,
2618
+ "maximum": 2048
2619
+ }
2620
+ },
2310
2621
  "required": [
2311
2622
  "type",
2312
- "src"
2623
+ "points",
2624
+ "outerRadius",
2625
+ "innerRadius"
2626
+ ]
2627
+ },
2628
+ "SvgArrowShape": {
2629
+ "type": "object",
2630
+ "additionalProperties": false,
2631
+ "properties": {
2632
+ "type": {
2633
+ "type": "string",
2634
+ "enum": [
2635
+ "arrow"
2636
+ ]
2637
+ },
2638
+ "length": {
2639
+ "type": "number",
2640
+ "minimum": 1,
2641
+ "maximum": 4096
2642
+ },
2643
+ "headWidth": {
2644
+ "type": "number",
2645
+ "minimum": 1,
2646
+ "maximum": 1000
2647
+ },
2648
+ "headLength": {
2649
+ "type": "number",
2650
+ "minimum": 1,
2651
+ "maximum": 1000
2652
+ },
2653
+ "shaftWidth": {
2654
+ "type": "number",
2655
+ "minimum": 1,
2656
+ "maximum": 1000
2657
+ }
2658
+ },
2659
+ "required": [
2660
+ "type",
2661
+ "length",
2662
+ "headWidth",
2663
+ "headLength",
2664
+ "shaftWidth"
2665
+ ]
2666
+ },
2667
+ "SvgHeartShape": {
2668
+ "type": "object",
2669
+ "additionalProperties": false,
2670
+ "properties": {
2671
+ "type": {
2672
+ "type": "string",
2673
+ "enum": [
2674
+ "heart"
2675
+ ]
2676
+ },
2677
+ "size": {
2678
+ "type": "number",
2679
+ "minimum": 1,
2680
+ "maximum": 4096
2681
+ }
2682
+ },
2683
+ "required": [
2684
+ "type",
2685
+ "size"
2686
+ ]
2687
+ },
2688
+ "SvgCrossShape": {
2689
+ "type": "object",
2690
+ "additionalProperties": false,
2691
+ "properties": {
2692
+ "type": {
2693
+ "type": "string",
2694
+ "enum": [
2695
+ "cross"
2696
+ ]
2697
+ },
2698
+ "width": {
2699
+ "type": "number",
2700
+ "minimum": 1,
2701
+ "maximum": 4096
2702
+ },
2703
+ "height": {
2704
+ "type": "number",
2705
+ "minimum": 1,
2706
+ "maximum": 4096
2707
+ },
2708
+ "thickness": {
2709
+ "type": "number",
2710
+ "minimum": 1,
2711
+ "maximum": 500
2712
+ }
2713
+ },
2714
+ "required": [
2715
+ "type",
2716
+ "width",
2717
+ "height",
2718
+ "thickness"
2719
+ ]
2720
+ },
2721
+ "SvgRingShape": {
2722
+ "type": "object",
2723
+ "additionalProperties": false,
2724
+ "properties": {
2725
+ "type": {
2726
+ "type": "string",
2727
+ "enum": [
2728
+ "ring"
2729
+ ]
2730
+ },
2731
+ "outerRadius": {
2732
+ "type": "number",
2733
+ "minimum": 1,
2734
+ "maximum": 2048
2735
+ },
2736
+ "innerRadius": {
2737
+ "type": "number",
2738
+ "minimum": 0,
2739
+ "maximum": 2048
2740
+ }
2741
+ },
2742
+ "required": [
2743
+ "type",
2744
+ "outerRadius",
2745
+ "innerRadius"
2746
+ ]
2747
+ },
2748
+ "SvgPathShape": {
2749
+ "type": "object",
2750
+ "additionalProperties": false,
2751
+ "properties": {
2752
+ "type": {
2753
+ "type": "string",
2754
+ "enum": [
2755
+ "path"
2756
+ ]
2757
+ },
2758
+ "d": {
2759
+ "type": "string"
2760
+ }
2761
+ },
2762
+ "required": [
2763
+ "type",
2764
+ "d"
2765
+ ]
2766
+ },
2767
+ "SvgFill": {
2768
+ "anyOf": [
2769
+ {
2770
+ "$ref": "#/$defs/SvgSolidFill"
2771
+ },
2772
+ {
2773
+ "$ref": "#/$defs/SvgLinearGradientFill"
2774
+ },
2775
+ {
2776
+ "$ref": "#/$defs/SvgRadialGradientFill"
2777
+ }
2778
+ ]
2779
+ },
2780
+ "SvgSolidFill": {
2781
+ "type": "object",
2782
+ "additionalProperties": false,
2783
+ "properties": {
2784
+ "type": {
2785
+ "type": "string",
2786
+ "enum": [
2787
+ "solid"
2788
+ ]
2789
+ },
2790
+ "color": {
2791
+ "type": "string"
2792
+ },
2793
+ "opacity": {
2794
+ "anyOf": [
2795
+ {
2796
+ "type": "number",
2797
+ "minimum": 0,
2798
+ "maximum": 1
2799
+ },
2800
+ {
2801
+ "type": "null"
2802
+ }
2803
+ ]
2804
+ }
2805
+ },
2806
+ "required": [
2807
+ "type",
2808
+ "color",
2809
+ "opacity"
2810
+ ]
2811
+ },
2812
+ "SvgLinearGradientFill": {
2813
+ "type": "object",
2814
+ "additionalProperties": false,
2815
+ "properties": {
2816
+ "type": {
2817
+ "type": "string",
2818
+ "enum": [
2819
+ "linear"
2820
+ ]
2821
+ },
2822
+ "angle": {
2823
+ "anyOf": [
2824
+ {
2825
+ "type": "number",
2826
+ "minimum": 0,
2827
+ "maximum": 360
2828
+ },
2829
+ {
2830
+ "type": "null"
2831
+ }
2832
+ ]
2833
+ },
2834
+ "stops": {
2835
+ "type": "array",
2836
+ "items": {
2837
+ "$ref": "#/$defs/SvgGradientStop"
2838
+ }
2839
+ },
2840
+ "opacity": {
2841
+ "anyOf": [
2842
+ {
2843
+ "type": "number",
2844
+ "minimum": 0,
2845
+ "maximum": 1
2846
+ },
2847
+ {
2848
+ "type": "null"
2849
+ }
2850
+ ]
2851
+ }
2852
+ },
2853
+ "required": [
2854
+ "type",
2855
+ "angle",
2856
+ "stops",
2857
+ "opacity"
2858
+ ]
2859
+ },
2860
+ "SvgGradientStop": {
2861
+ "type": "object",
2862
+ "additionalProperties": false,
2863
+ "properties": {
2864
+ "offset": {
2865
+ "type": "number",
2866
+ "minimum": 0,
2867
+ "maximum": 1
2868
+ },
2869
+ "color": {
2870
+ "type": "string"
2871
+ }
2872
+ },
2873
+ "required": [
2874
+ "offset",
2875
+ "color"
2876
+ ]
2877
+ },
2878
+ "SvgRadialGradientFill": {
2879
+ "type": "object",
2880
+ "additionalProperties": false,
2881
+ "properties": {
2882
+ "type": {
2883
+ "type": "string",
2884
+ "enum": [
2885
+ "radial"
2886
+ ]
2887
+ },
2888
+ "stops": {
2889
+ "type": "array",
2890
+ "items": {
2891
+ "$ref": "#/$defs/SvgGradientStop"
2892
+ }
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
+ "stops",
2910
+ "opacity"
2911
+ ]
2912
+ },
2913
+ "SvgStroke": {
2914
+ "type": "object",
2915
+ "additionalProperties": false,
2916
+ "properties": {
2917
+ "color": {
2918
+ "anyOf": [
2919
+ {
2920
+ "type": "string"
2921
+ },
2922
+ {
2923
+ "type": "null"
2924
+ }
2925
+ ]
2926
+ },
2927
+ "width": {
2928
+ "anyOf": [
2929
+ {
2930
+ "type": "number",
2931
+ "minimum": 0,
2932
+ "maximum": 100
2933
+ },
2934
+ {
2935
+ "type": "null"
2936
+ }
2937
+ ]
2938
+ },
2939
+ "opacity": {
2940
+ "anyOf": [
2941
+ {
2942
+ "type": "number",
2943
+ "minimum": 0,
2944
+ "maximum": 1
2945
+ },
2946
+ {
2947
+ "type": "null"
2948
+ }
2949
+ ]
2950
+ },
2951
+ "lineCap": {
2952
+ "anyOf": [
2953
+ {
2954
+ "type": "string",
2955
+ "enum": [
2956
+ "butt",
2957
+ "round",
2958
+ "square"
2959
+ ]
2960
+ },
2961
+ {
2962
+ "type": "null"
2963
+ }
2964
+ ]
2965
+ },
2966
+ "lineJoin": {
2967
+ "anyOf": [
2968
+ {
2969
+ "type": "string",
2970
+ "enum": [
2971
+ "miter",
2972
+ "round",
2973
+ "bevel"
2974
+ ]
2975
+ },
2976
+ {
2977
+ "type": "null"
2978
+ }
2979
+ ]
2980
+ },
2981
+ "dashArray": {
2982
+ "anyOf": [
2983
+ {
2984
+ "type": "array",
2985
+ "items": {
2986
+ "type": "number",
2987
+ "minimum": 0
2988
+ }
2989
+ },
2990
+ {
2991
+ "type": "null"
2992
+ }
2993
+ ]
2994
+ },
2995
+ "dashOffset": {
2996
+ "anyOf": [
2997
+ {
2998
+ "type": "number"
2999
+ },
3000
+ {
3001
+ "type": "null"
3002
+ }
3003
+ ]
3004
+ }
3005
+ },
3006
+ "required": [
3007
+ "color",
3008
+ "width",
3009
+ "opacity",
3010
+ "lineCap",
3011
+ "lineJoin",
3012
+ "dashArray",
3013
+ "dashOffset"
3014
+ ]
3015
+ },
3016
+ "SvgShadow": {
3017
+ "type": "object",
3018
+ "additionalProperties": false,
3019
+ "properties": {
3020
+ "offsetX": {
3021
+ "anyOf": [
3022
+ {
3023
+ "type": "number"
3024
+ },
3025
+ {
3026
+ "type": "null"
3027
+ }
3028
+ ]
3029
+ },
3030
+ "offsetY": {
3031
+ "anyOf": [
3032
+ {
3033
+ "type": "number"
3034
+ },
3035
+ {
3036
+ "type": "null"
3037
+ }
3038
+ ]
3039
+ },
3040
+ "blur": {
3041
+ "anyOf": [
3042
+ {
3043
+ "type": "number",
3044
+ "minimum": 0
3045
+ },
3046
+ {
3047
+ "type": "null"
3048
+ }
3049
+ ]
3050
+ },
3051
+ "color": {
3052
+ "anyOf": [
3053
+ {
3054
+ "type": "string",
3055
+ "enum": [
3056
+ "#000000"
3057
+ ]
3058
+ },
3059
+ {
3060
+ "type": "null"
3061
+ }
3062
+ ]
3063
+ },
3064
+ "opacity": {
3065
+ "anyOf": [
3066
+ {
3067
+ "type": "number",
3068
+ "minimum": 0,
3069
+ "maximum": 1
3070
+ },
3071
+ {
3072
+ "type": "null"
3073
+ }
3074
+ ]
3075
+ }
3076
+ },
3077
+ "required": [
3078
+ "offsetX",
3079
+ "offsetY",
3080
+ "blur",
3081
+ "color",
3082
+ "opacity"
3083
+ ]
3084
+ },
3085
+ "SvgTransform": {
3086
+ "type": "object",
3087
+ "additionalProperties": false,
3088
+ "properties": {
3089
+ "x": {
3090
+ "anyOf": [
3091
+ {
3092
+ "type": "number"
3093
+ },
3094
+ {
3095
+ "type": "null"
3096
+ }
3097
+ ]
3098
+ },
3099
+ "y": {
3100
+ "anyOf": [
3101
+ {
3102
+ "type": "number"
3103
+ },
3104
+ {
3105
+ "type": "null"
3106
+ }
3107
+ ]
3108
+ },
3109
+ "rotation": {
3110
+ "anyOf": [
3111
+ {
3112
+ "type": "number",
3113
+ "minimum": -360,
3114
+ "maximum": 360
3115
+ },
3116
+ {
3117
+ "type": "null"
3118
+ }
3119
+ ]
3120
+ },
3121
+ "scale": {
3122
+ "anyOf": [
3123
+ {
3124
+ "type": "number",
3125
+ "minimum": 0.01,
3126
+ "maximum": 100
3127
+ },
3128
+ {
3129
+ "type": "null"
3130
+ }
3131
+ ]
3132
+ },
3133
+ "originX": {
3134
+ "anyOf": [
3135
+ {
3136
+ "type": "number",
3137
+ "minimum": 0,
3138
+ "maximum": 1
3139
+ },
3140
+ {
3141
+ "type": "null"
3142
+ }
3143
+ ]
3144
+ },
3145
+ "originY": {
3146
+ "anyOf": [
3147
+ {
3148
+ "type": "number",
3149
+ "minimum": 0,
3150
+ "maximum": 1
3151
+ },
3152
+ {
3153
+ "type": "null"
3154
+ }
3155
+ ]
3156
+ }
3157
+ },
3158
+ "required": [
3159
+ "x",
3160
+ "y",
3161
+ "rotation",
3162
+ "scale",
3163
+ "originX",
3164
+ "originY"
2313
3165
  ]
2314
3166
  },
2315
3167
  "TextToImageAsset": {