@shotstack/schemas 1.8.4 → 1.8.6

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