@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
@@ -1856,10 +1856,7 @@
1856
1856
  "color": {
1857
1857
  "anyOf": [
1858
1858
  {
1859
- "type": "string",
1860
- "enum": [
1861
- "#ffff00"
1862
- ]
1859
+ "type": "string"
1863
1860
  },
1864
1861
  {
1865
1862
  "type": "null"
@@ -2175,865 +2172,13 @@
2175
2172
  ]
2176
2173
  },
2177
2174
  "src": {
2178
- "anyOf": [
2179
- {
2180
- "type": "string"
2181
- },
2182
- {
2183
- "type": "null"
2184
- }
2185
- ]
2186
- },
2187
- "shape": {
2188
- "anyOf": [
2189
- {
2190
- "$ref": "#/$defs/SvgShape"
2191
- },
2192
- {
2193
- "type": "null"
2194
- }
2195
- ]
2196
- },
2197
- "fill": {
2198
- "anyOf": [
2199
- {
2200
- "$ref": "#/$defs/SvgFill"
2201
- },
2202
- {
2203
- "type": "null"
2204
- }
2205
- ]
2206
- },
2207
- "stroke": {
2208
- "anyOf": [
2209
- {
2210
- "$ref": "#/$defs/SvgStroke"
2211
- },
2212
- {
2213
- "type": "null"
2214
- }
2215
- ]
2216
- },
2217
- "shadow": {
2218
- "anyOf": [
2219
- {
2220
- "$ref": "#/$defs/SvgShadow"
2221
- },
2222
- {
2223
- "type": "null"
2224
- }
2225
- ]
2226
- },
2227
- "transform": {
2228
- "anyOf": [
2229
- {
2230
- "$ref": "#/$defs/SvgTransform"
2231
- },
2232
- {
2233
- "type": "null"
2234
- }
2235
- ]
2236
- },
2237
- "opacity": {
2238
- "anyOf": [
2239
- {
2240
- "type": "number",
2241
- "minimum": 0,
2242
- "maximum": 1
2243
- },
2244
- {
2245
- "type": "null"
2246
- }
2247
- ]
2248
- },
2249
- "width": {
2250
- "anyOf": [
2251
- {
2252
- "type": "integer",
2253
- "minimum": 1,
2254
- "maximum": 4096
2255
- },
2256
- {
2257
- "type": "null"
2258
- }
2259
- ]
2260
- },
2261
- "height": {
2262
- "anyOf": [
2263
- {
2264
- "type": "integer",
2265
- "minimum": 1,
2266
- "maximum": 4096
2267
- },
2268
- {
2269
- "type": "null"
2270
- }
2271
- ]
2272
- }
2273
- },
2274
- "additionalProperties": false,
2275
- "required": [
2276
- "type",
2277
- "src",
2278
- "shape",
2279
- "fill",
2280
- "stroke",
2281
- "shadow",
2282
- "transform",
2283
- "opacity",
2284
- "width",
2285
- "height"
2286
- ]
2287
- },
2288
- "SvgShape": {
2289
- "anyOf": [
2290
- {
2291
- "$ref": "#/$defs/SvgRectangleShape"
2292
- },
2293
- {
2294
- "$ref": "#/$defs/SvgCircleShape"
2295
- },
2296
- {
2297
- "$ref": "#/$defs/SvgEllipseShape"
2298
- },
2299
- {
2300
- "$ref": "#/$defs/SvgLineShape"
2301
- },
2302
- {
2303
- "$ref": "#/$defs/SvgPolygonShape"
2304
- },
2305
- {
2306
- "$ref": "#/$defs/SvgStarShape"
2307
- },
2308
- {
2309
- "$ref": "#/$defs/SvgArrowShape"
2310
- },
2311
- {
2312
- "$ref": "#/$defs/SvgHeartShape"
2313
- },
2314
- {
2315
- "$ref": "#/$defs/SvgCrossShape"
2316
- },
2317
- {
2318
- "$ref": "#/$defs/SvgRingShape"
2319
- },
2320
- {
2321
- "$ref": "#/$defs/SvgPathShape"
2322
- }
2323
- ]
2324
- },
2325
- "SvgRectangleShape": {
2326
- "type": "object",
2327
- "additionalProperties": false,
2328
- "properties": {
2329
- "type": {
2330
- "type": "string",
2331
- "enum": [
2332
- "rectangle"
2333
- ]
2334
- },
2335
- "width": {
2336
- "type": "number",
2337
- "minimum": 1,
2338
- "maximum": 4096
2339
- },
2340
- "height": {
2341
- "type": "number",
2342
- "minimum": 1,
2343
- "maximum": 4096
2344
- },
2345
- "cornerRadius": {
2346
- "anyOf": [
2347
- {
2348
- "type": "number",
2349
- "minimum": 0,
2350
- "maximum": 2048
2351
- },
2352
- {
2353
- "type": "null"
2354
- }
2355
- ]
2356
- }
2357
- },
2358
- "required": [
2359
- "type",
2360
- "width",
2361
- "height",
2362
- "cornerRadius"
2363
- ]
2364
- },
2365
- "SvgCircleShape": {
2366
- "type": "object",
2367
- "additionalProperties": false,
2368
- "properties": {
2369
- "type": {
2370
- "type": "string",
2371
- "enum": [
2372
- "circle"
2373
- ]
2374
- },
2375
- "radius": {
2376
- "type": "number",
2377
- "minimum": 1,
2378
- "maximum": 2048
2379
- }
2380
- },
2381
- "required": [
2382
- "type",
2383
- "radius"
2384
- ]
2385
- },
2386
- "SvgEllipseShape": {
2387
- "type": "object",
2388
- "additionalProperties": false,
2389
- "properties": {
2390
- "type": {
2391
- "type": "string",
2392
- "enum": [
2393
- "ellipse"
2394
- ]
2395
- },
2396
- "radiusX": {
2397
- "type": "number",
2398
- "minimum": 1,
2399
- "maximum": 2048
2400
- },
2401
- "radiusY": {
2402
- "type": "number",
2403
- "minimum": 1,
2404
- "maximum": 2048
2405
- }
2406
- },
2407
- "required": [
2408
- "type",
2409
- "radiusX",
2410
- "radiusY"
2411
- ]
2412
- },
2413
- "SvgLineShape": {
2414
- "type": "object",
2415
- "additionalProperties": false,
2416
- "properties": {
2417
- "type": {
2418
- "type": "string",
2419
- "enum": [
2420
- "line"
2421
- ]
2422
- },
2423
- "length": {
2424
- "type": "number",
2425
- "minimum": 1,
2426
- "maximum": 4096
2427
- },
2428
- "thickness": {
2429
- "type": "number",
2430
- "minimum": 1,
2431
- "maximum": 500
2432
- }
2433
- },
2434
- "required": [
2435
- "type",
2436
- "length",
2437
- "thickness"
2438
- ]
2439
- },
2440
- "SvgPolygonShape": {
2441
- "type": "object",
2442
- "additionalProperties": false,
2443
- "properties": {
2444
- "type": {
2445
- "type": "string",
2446
- "enum": [
2447
- "polygon"
2448
- ]
2449
- },
2450
- "sides": {
2451
- "type": "integer",
2452
- "minimum": 3,
2453
- "maximum": 100
2454
- },
2455
- "radius": {
2456
- "type": "number",
2457
- "minimum": 1,
2458
- "maximum": 2048
2459
- }
2460
- },
2461
- "required": [
2462
- "type",
2463
- "sides",
2464
- "radius"
2465
- ]
2466
- },
2467
- "SvgStarShape": {
2468
- "type": "object",
2469
- "additionalProperties": false,
2470
- "properties": {
2471
- "type": {
2472
- "type": "string",
2473
- "enum": [
2474
- "star"
2475
- ]
2476
- },
2477
- "points": {
2478
- "type": "integer",
2479
- "minimum": 3,
2480
- "maximum": 100
2481
- },
2482
- "outerRadius": {
2483
- "type": "number",
2484
- "minimum": 1,
2485
- "maximum": 2048
2486
- },
2487
- "innerRadius": {
2488
- "type": "number",
2489
- "minimum": 1,
2490
- "maximum": 2048
2491
- }
2492
- },
2493
- "required": [
2494
- "type",
2495
- "points",
2496
- "outerRadius",
2497
- "innerRadius"
2498
- ]
2499
- },
2500
- "SvgArrowShape": {
2501
- "type": "object",
2502
- "additionalProperties": false,
2503
- "properties": {
2504
- "type": {
2505
- "type": "string",
2506
- "enum": [
2507
- "arrow"
2508
- ]
2509
- },
2510
- "length": {
2511
- "type": "number",
2512
- "minimum": 1,
2513
- "maximum": 4096
2514
- },
2515
- "headWidth": {
2516
- "type": "number",
2517
- "minimum": 1,
2518
- "maximum": 1000
2519
- },
2520
- "headLength": {
2521
- "type": "number",
2522
- "minimum": 1,
2523
- "maximum": 1000
2524
- },
2525
- "shaftWidth": {
2526
- "type": "number",
2527
- "minimum": 1,
2528
- "maximum": 1000
2175
+ "type": "string"
2529
2176
  }
2530
2177
  },
2531
- "required": [
2532
- "type",
2533
- "length",
2534
- "headWidth",
2535
- "headLength",
2536
- "shaftWidth"
2537
- ]
2538
- },
2539
- "SvgHeartShape": {
2540
- "type": "object",
2541
2178
  "additionalProperties": false,
2542
- "properties": {
2543
- "type": {
2544
- "type": "string",
2545
- "enum": [
2546
- "heart"
2547
- ]
2548
- },
2549
- "size": {
2550
- "type": "number",
2551
- "minimum": 1,
2552
- "maximum": 4096
2553
- }
2554
- },
2555
2179
  "required": [
2556
2180
  "type",
2557
- "size"
2558
- ]
2559
- },
2560
- "SvgCrossShape": {
2561
- "type": "object",
2562
- "additionalProperties": false,
2563
- "properties": {
2564
- "type": {
2565
- "type": "string",
2566
- "enum": [
2567
- "cross"
2568
- ]
2569
- },
2570
- "width": {
2571
- "type": "number",
2572
- "minimum": 1,
2573
- "maximum": 4096
2574
- },
2575
- "height": {
2576
- "type": "number",
2577
- "minimum": 1,
2578
- "maximum": 4096
2579
- },
2580
- "thickness": {
2581
- "type": "number",
2582
- "minimum": 1,
2583
- "maximum": 500
2584
- }
2585
- },
2586
- "required": [
2587
- "type",
2588
- "width",
2589
- "height",
2590
- "thickness"
2591
- ]
2592
- },
2593
- "SvgRingShape": {
2594
- "type": "object",
2595
- "additionalProperties": false,
2596
- "properties": {
2597
- "type": {
2598
- "type": "string",
2599
- "enum": [
2600
- "ring"
2601
- ]
2602
- },
2603
- "outerRadius": {
2604
- "type": "number",
2605
- "minimum": 1,
2606
- "maximum": 2048
2607
- },
2608
- "innerRadius": {
2609
- "type": "number",
2610
- "minimum": 0,
2611
- "maximum": 2048
2612
- }
2613
- },
2614
- "required": [
2615
- "type",
2616
- "outerRadius",
2617
- "innerRadius"
2618
- ]
2619
- },
2620
- "SvgPathShape": {
2621
- "type": "object",
2622
- "additionalProperties": false,
2623
- "properties": {
2624
- "type": {
2625
- "type": "string",
2626
- "enum": [
2627
- "path"
2628
- ]
2629
- },
2630
- "d": {
2631
- "type": "string"
2632
- }
2633
- },
2634
- "required": [
2635
- "type",
2636
- "d"
2637
- ]
2638
- },
2639
- "SvgFill": {
2640
- "anyOf": [
2641
- {
2642
- "$ref": "#/$defs/SvgSolidFill"
2643
- },
2644
- {
2645
- "$ref": "#/$defs/SvgLinearGradientFill"
2646
- },
2647
- {
2648
- "$ref": "#/$defs/SvgRadialGradientFill"
2649
- }
2650
- ]
2651
- },
2652
- "SvgSolidFill": {
2653
- "type": "object",
2654
- "additionalProperties": false,
2655
- "properties": {
2656
- "type": {
2657
- "type": "string",
2658
- "enum": [
2659
- "solid"
2660
- ]
2661
- },
2662
- "color": {
2663
- "type": "string"
2664
- },
2665
- "opacity": {
2666
- "anyOf": [
2667
- {
2668
- "type": "number",
2669
- "minimum": 0,
2670
- "maximum": 1
2671
- },
2672
- {
2673
- "type": "null"
2674
- }
2675
- ]
2676
- }
2677
- },
2678
- "required": [
2679
- "type",
2680
- "color",
2681
- "opacity"
2682
- ]
2683
- },
2684
- "SvgLinearGradientFill": {
2685
- "type": "object",
2686
- "additionalProperties": false,
2687
- "properties": {
2688
- "type": {
2689
- "type": "string",
2690
- "enum": [
2691
- "linear"
2692
- ]
2693
- },
2694
- "angle": {
2695
- "anyOf": [
2696
- {
2697
- "type": "number",
2698
- "minimum": 0,
2699
- "maximum": 360
2700
- },
2701
- {
2702
- "type": "null"
2703
- }
2704
- ]
2705
- },
2706
- "stops": {
2707
- "type": "array",
2708
- "items": {
2709
- "$ref": "#/$defs/SvgGradientStop"
2710
- }
2711
- },
2712
- "opacity": {
2713
- "anyOf": [
2714
- {
2715
- "type": "number",
2716
- "minimum": 0,
2717
- "maximum": 1
2718
- },
2719
- {
2720
- "type": "null"
2721
- }
2722
- ]
2723
- }
2724
- },
2725
- "required": [
2726
- "type",
2727
- "angle",
2728
- "stops",
2729
- "opacity"
2730
- ]
2731
- },
2732
- "SvgGradientStop": {
2733
- "type": "object",
2734
- "additionalProperties": false,
2735
- "properties": {
2736
- "offset": {
2737
- "type": "number",
2738
- "minimum": 0,
2739
- "maximum": 1
2740
- },
2741
- "color": {
2742
- "type": "string"
2743
- }
2744
- },
2745
- "required": [
2746
- "offset",
2747
- "color"
2748
- ]
2749
- },
2750
- "SvgRadialGradientFill": {
2751
- "type": "object",
2752
- "additionalProperties": false,
2753
- "properties": {
2754
- "type": {
2755
- "type": "string",
2756
- "enum": [
2757
- "radial"
2758
- ]
2759
- },
2760
- "stops": {
2761
- "type": "array",
2762
- "items": {
2763
- "$ref": "#/$defs/SvgGradientStop"
2764
- }
2765
- },
2766
- "opacity": {
2767
- "anyOf": [
2768
- {
2769
- "type": "number",
2770
- "minimum": 0,
2771
- "maximum": 1
2772
- },
2773
- {
2774
- "type": "null"
2775
- }
2776
- ]
2777
- }
2778
- },
2779
- "required": [
2780
- "type",
2781
- "stops",
2782
- "opacity"
2783
- ]
2784
- },
2785
- "SvgStroke": {
2786
- "type": "object",
2787
- "additionalProperties": false,
2788
- "properties": {
2789
- "color": {
2790
- "anyOf": [
2791
- {
2792
- "type": "string"
2793
- },
2794
- {
2795
- "type": "null"
2796
- }
2797
- ]
2798
- },
2799
- "width": {
2800
- "anyOf": [
2801
- {
2802
- "type": "number",
2803
- "minimum": 0,
2804
- "maximum": 100
2805
- },
2806
- {
2807
- "type": "null"
2808
- }
2809
- ]
2810
- },
2811
- "opacity": {
2812
- "anyOf": [
2813
- {
2814
- "type": "number",
2815
- "minimum": 0,
2816
- "maximum": 1
2817
- },
2818
- {
2819
- "type": "null"
2820
- }
2821
- ]
2822
- },
2823
- "lineCap": {
2824
- "anyOf": [
2825
- {
2826
- "type": "string",
2827
- "enum": [
2828
- "butt",
2829
- "round",
2830
- "square"
2831
- ]
2832
- },
2833
- {
2834
- "type": "null"
2835
- }
2836
- ]
2837
- },
2838
- "lineJoin": {
2839
- "anyOf": [
2840
- {
2841
- "type": "string",
2842
- "enum": [
2843
- "miter",
2844
- "round",
2845
- "bevel"
2846
- ]
2847
- },
2848
- {
2849
- "type": "null"
2850
- }
2851
- ]
2852
- },
2853
- "dashArray": {
2854
- "anyOf": [
2855
- {
2856
- "type": "array",
2857
- "items": {
2858
- "type": "number",
2859
- "minimum": 0
2860
- }
2861
- },
2862
- {
2863
- "type": "null"
2864
- }
2865
- ]
2866
- },
2867
- "dashOffset": {
2868
- "anyOf": [
2869
- {
2870
- "type": "number"
2871
- },
2872
- {
2873
- "type": "null"
2874
- }
2875
- ]
2876
- }
2877
- },
2878
- "required": [
2879
- "color",
2880
- "width",
2881
- "opacity",
2882
- "lineCap",
2883
- "lineJoin",
2884
- "dashArray",
2885
- "dashOffset"
2886
- ]
2887
- },
2888
- "SvgShadow": {
2889
- "type": "object",
2890
- "additionalProperties": false,
2891
- "properties": {
2892
- "offsetX": {
2893
- "anyOf": [
2894
- {
2895
- "type": "number"
2896
- },
2897
- {
2898
- "type": "null"
2899
- }
2900
- ]
2901
- },
2902
- "offsetY": {
2903
- "anyOf": [
2904
- {
2905
- "type": "number"
2906
- },
2907
- {
2908
- "type": "null"
2909
- }
2910
- ]
2911
- },
2912
- "blur": {
2913
- "anyOf": [
2914
- {
2915
- "type": "number",
2916
- "minimum": 0
2917
- },
2918
- {
2919
- "type": "null"
2920
- }
2921
- ]
2922
- },
2923
- "color": {
2924
- "anyOf": [
2925
- {
2926
- "type": "string",
2927
- "enum": [
2928
- "#000000"
2929
- ]
2930
- },
2931
- {
2932
- "type": "null"
2933
- }
2934
- ]
2935
- },
2936
- "opacity": {
2937
- "anyOf": [
2938
- {
2939
- "type": "number",
2940
- "minimum": 0,
2941
- "maximum": 1
2942
- },
2943
- {
2944
- "type": "null"
2945
- }
2946
- ]
2947
- }
2948
- },
2949
- "required": [
2950
- "offsetX",
2951
- "offsetY",
2952
- "blur",
2953
- "color",
2954
- "opacity"
2955
- ]
2956
- },
2957
- "SvgTransform": {
2958
- "type": "object",
2959
- "additionalProperties": false,
2960
- "properties": {
2961
- "x": {
2962
- "anyOf": [
2963
- {
2964
- "type": "number"
2965
- },
2966
- {
2967
- "type": "null"
2968
- }
2969
- ]
2970
- },
2971
- "y": {
2972
- "anyOf": [
2973
- {
2974
- "type": "number"
2975
- },
2976
- {
2977
- "type": "null"
2978
- }
2979
- ]
2980
- },
2981
- "rotation": {
2982
- "anyOf": [
2983
- {
2984
- "type": "number",
2985
- "minimum": -360,
2986
- "maximum": 360
2987
- },
2988
- {
2989
- "type": "null"
2990
- }
2991
- ]
2992
- },
2993
- "scale": {
2994
- "anyOf": [
2995
- {
2996
- "type": "number",
2997
- "minimum": 0.01,
2998
- "maximum": 100
2999
- },
3000
- {
3001
- "type": "null"
3002
- }
3003
- ]
3004
- },
3005
- "originX": {
3006
- "anyOf": [
3007
- {
3008
- "type": "number",
3009
- "minimum": 0,
3010
- "maximum": 1
3011
- },
3012
- {
3013
- "type": "null"
3014
- }
3015
- ]
3016
- },
3017
- "originY": {
3018
- "anyOf": [
3019
- {
3020
- "type": "number",
3021
- "minimum": 0,
3022
- "maximum": 1
3023
- },
3024
- {
3025
- "type": "null"
3026
- }
3027
- ]
3028
- }
3029
- },
3030
- "required": [
3031
- "x",
3032
- "y",
3033
- "rotation",
3034
- "scale",
3035
- "originX",
3036
- "originY"
2181
+ "src"
3037
2182
  ]
3038
2183
  },
3039
2184
  "TextToImageAsset": {