@shotstack/schemas 1.7.1 → 1.8.2

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