@shotstack/schemas 1.8.2 → 1.8.3

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