@shotstack/schemas 1.9.6 → 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 (34) hide show
  1. package/dist/api.bundled.json +82 -1261
  2. package/dist/json-schema/asset.json +1 -853
  3. package/dist/json-schema/clip.json +1 -853
  4. package/dist/json-schema/edit.json +2 -854
  5. package/dist/json-schema/schemas.json +5 -950
  6. package/dist/json-schema/svg-asset.json +6 -857
  7. package/dist/json-schema/timeline.json +2 -854
  8. package/dist/json-schema/track.json +2 -854
  9. package/dist/schema.d.ts +14 -1038
  10. package/dist/zod/zod.gen.cjs +35 -725
  11. package/dist/zod/zod.gen.d.ts +469 -11518
  12. package/dist/zod/zod.gen.js +28 -717
  13. package/dist/zod/zod.gen.ts +30 -710
  14. package/package.json +1 -1
  15. package/dist/json-schema/svg-arrow-shape.json +0 -49
  16. package/dist/json-schema/svg-circle-shape.json +0 -28
  17. package/dist/json-schema/svg-cross-shape.json +0 -42
  18. package/dist/json-schema/svg-ellipse-shape.json +0 -35
  19. package/dist/json-schema/svg-fill.json +0 -169
  20. package/dist/json-schema/svg-gradient-stop.json +0 -25
  21. package/dist/json-schema/svg-heart-shape.json +0 -28
  22. package/dist/json-schema/svg-line-shape.json +0 -35
  23. package/dist/json-schema/svg-linear-gradient-fill.json +0 -80
  24. package/dist/json-schema/svg-path-shape.json +0 -26
  25. package/dist/json-schema/svg-polygon-shape.json +0 -35
  26. package/dist/json-schema/svg-radial-gradient-fill.json +0 -66
  27. package/dist/json-schema/svg-rectangle-shape.json +0 -49
  28. package/dist/json-schema/svg-ring-shape.json +0 -35
  29. package/dist/json-schema/svg-shadow.json +0 -79
  30. package/dist/json-schema/svg-shape.json +0 -404
  31. package/dist/json-schema/svg-solid-fill.json +0 -40
  32. package/dist/json-schema/svg-star-shape.json +0 -42
  33. package/dist/json-schema/svg-stroke.json +0 -115
  34. package/dist/json-schema/svg-transform.json +0 -93
@@ -2588,865 +2588,13 @@
2588
2588
  ]
2589
2589
  },
2590
2590
  "src": {
2591
- "anyOf": [
2592
- {
2593
- "type": "string"
2594
- },
2595
- {
2596
- "type": "null"
2597
- }
2598
- ]
2599
- },
2600
- "shape": {
2601
- "anyOf": [
2602
- {
2603
- "$ref": "#/$defs/SvgShape"
2604
- },
2605
- {
2606
- "type": "null"
2607
- }
2608
- ]
2609
- },
2610
- "fill": {
2611
- "anyOf": [
2612
- {
2613
- "$ref": "#/$defs/SvgFill"
2614
- },
2615
- {
2616
- "type": "null"
2617
- }
2618
- ]
2619
- },
2620
- "stroke": {
2621
- "anyOf": [
2622
- {
2623
- "$ref": "#/$defs/SvgStroke"
2624
- },
2625
- {
2626
- "type": "null"
2627
- }
2628
- ]
2629
- },
2630
- "shadow": {
2631
- "anyOf": [
2632
- {
2633
- "$ref": "#/$defs/SvgShadow"
2634
- },
2635
- {
2636
- "type": "null"
2637
- }
2638
- ]
2639
- },
2640
- "transform": {
2641
- "anyOf": [
2642
- {
2643
- "$ref": "#/$defs/SvgTransform"
2644
- },
2645
- {
2646
- "type": "null"
2647
- }
2648
- ]
2649
- },
2650
- "opacity": {
2651
- "anyOf": [
2652
- {
2653
- "type": "number",
2654
- "minimum": 0,
2655
- "maximum": 1
2656
- },
2657
- {
2658
- "type": "null"
2659
- }
2660
- ]
2661
- },
2662
- "width": {
2663
- "anyOf": [
2664
- {
2665
- "type": "integer",
2666
- "minimum": 1,
2667
- "maximum": 4096
2668
- },
2669
- {
2670
- "type": "null"
2671
- }
2672
- ]
2673
- },
2674
- "height": {
2675
- "anyOf": [
2676
- {
2677
- "type": "integer",
2678
- "minimum": 1,
2679
- "maximum": 4096
2680
- },
2681
- {
2682
- "type": "null"
2683
- }
2684
- ]
2685
- }
2686
- },
2687
- "additionalProperties": false,
2688
- "required": [
2689
- "type",
2690
- "src",
2691
- "shape",
2692
- "fill",
2693
- "stroke",
2694
- "shadow",
2695
- "transform",
2696
- "opacity",
2697
- "width",
2698
- "height"
2699
- ]
2700
- },
2701
- "SvgShape": {
2702
- "anyOf": [
2703
- {
2704
- "$ref": "#/$defs/SvgRectangleShape"
2705
- },
2706
- {
2707
- "$ref": "#/$defs/SvgCircleShape"
2708
- },
2709
- {
2710
- "$ref": "#/$defs/SvgEllipseShape"
2711
- },
2712
- {
2713
- "$ref": "#/$defs/SvgLineShape"
2714
- },
2715
- {
2716
- "$ref": "#/$defs/SvgPolygonShape"
2717
- },
2718
- {
2719
- "$ref": "#/$defs/SvgStarShape"
2720
- },
2721
- {
2722
- "$ref": "#/$defs/SvgArrowShape"
2723
- },
2724
- {
2725
- "$ref": "#/$defs/SvgHeartShape"
2726
- },
2727
- {
2728
- "$ref": "#/$defs/SvgCrossShape"
2729
- },
2730
- {
2731
- "$ref": "#/$defs/SvgRingShape"
2732
- },
2733
- {
2734
- "$ref": "#/$defs/SvgPathShape"
2735
- }
2736
- ]
2737
- },
2738
- "SvgRectangleShape": {
2739
- "type": "object",
2740
- "additionalProperties": false,
2741
- "properties": {
2742
- "type": {
2743
- "type": "string",
2744
- "enum": [
2745
- "rectangle"
2746
- ]
2747
- },
2748
- "width": {
2749
- "type": "number",
2750
- "minimum": 1,
2751
- "maximum": 4096
2752
- },
2753
- "height": {
2754
- "type": "number",
2755
- "minimum": 1,
2756
- "maximum": 4096
2757
- },
2758
- "cornerRadius": {
2759
- "anyOf": [
2760
- {
2761
- "type": "number",
2762
- "minimum": 0,
2763
- "maximum": 2048
2764
- },
2765
- {
2766
- "type": "null"
2767
- }
2768
- ]
2769
- }
2770
- },
2771
- "required": [
2772
- "type",
2773
- "width",
2774
- "height",
2775
- "cornerRadius"
2776
- ]
2777
- },
2778
- "SvgCircleShape": {
2779
- "type": "object",
2780
- "additionalProperties": false,
2781
- "properties": {
2782
- "type": {
2783
- "type": "string",
2784
- "enum": [
2785
- "circle"
2786
- ]
2787
- },
2788
- "radius": {
2789
- "type": "number",
2790
- "minimum": 1,
2791
- "maximum": 2048
2792
- }
2793
- },
2794
- "required": [
2795
- "type",
2796
- "radius"
2797
- ]
2798
- },
2799
- "SvgEllipseShape": {
2800
- "type": "object",
2801
- "additionalProperties": false,
2802
- "properties": {
2803
- "type": {
2804
- "type": "string",
2805
- "enum": [
2806
- "ellipse"
2807
- ]
2808
- },
2809
- "radiusX": {
2810
- "type": "number",
2811
- "minimum": 1,
2812
- "maximum": 2048
2813
- },
2814
- "radiusY": {
2815
- "type": "number",
2816
- "minimum": 1,
2817
- "maximum": 2048
2818
- }
2819
- },
2820
- "required": [
2821
- "type",
2822
- "radiusX",
2823
- "radiusY"
2824
- ]
2825
- },
2826
- "SvgLineShape": {
2827
- "type": "object",
2828
- "additionalProperties": false,
2829
- "properties": {
2830
- "type": {
2831
- "type": "string",
2832
- "enum": [
2833
- "line"
2834
- ]
2835
- },
2836
- "length": {
2837
- "type": "number",
2838
- "minimum": 1,
2839
- "maximum": 4096
2840
- },
2841
- "thickness": {
2842
- "type": "number",
2843
- "minimum": 1,
2844
- "maximum": 500
2845
- }
2846
- },
2847
- "required": [
2848
- "type",
2849
- "length",
2850
- "thickness"
2851
- ]
2852
- },
2853
- "SvgPolygonShape": {
2854
- "type": "object",
2855
- "additionalProperties": false,
2856
- "properties": {
2857
- "type": {
2858
- "type": "string",
2859
- "enum": [
2860
- "polygon"
2861
- ]
2862
- },
2863
- "sides": {
2864
- "type": "integer",
2865
- "minimum": 3,
2866
- "maximum": 100
2867
- },
2868
- "radius": {
2869
- "type": "number",
2870
- "minimum": 1,
2871
- "maximum": 2048
2591
+ "type": "string"
2872
2592
  }
2873
2593
  },
2874
- "required": [
2875
- "type",
2876
- "sides",
2877
- "radius"
2878
- ]
2879
- },
2880
- "SvgStarShape": {
2881
- "type": "object",
2882
2594
  "additionalProperties": false,
2883
- "properties": {
2884
- "type": {
2885
- "type": "string",
2886
- "enum": [
2887
- "star"
2888
- ]
2889
- },
2890
- "points": {
2891
- "type": "integer",
2892
- "minimum": 3,
2893
- "maximum": 100
2894
- },
2895
- "outerRadius": {
2896
- "type": "number",
2897
- "minimum": 1,
2898
- "maximum": 2048
2899
- },
2900
- "innerRadius": {
2901
- "type": "number",
2902
- "minimum": 1,
2903
- "maximum": 2048
2904
- }
2905
- },
2906
2595
  "required": [
2907
2596
  "type",
2908
- "points",
2909
- "outerRadius",
2910
- "innerRadius"
2911
- ]
2912
- },
2913
- "SvgArrowShape": {
2914
- "type": "object",
2915
- "additionalProperties": false,
2916
- "properties": {
2917
- "type": {
2918
- "type": "string",
2919
- "enum": [
2920
- "arrow"
2921
- ]
2922
- },
2923
- "length": {
2924
- "type": "number",
2925
- "minimum": 1,
2926
- "maximum": 4096
2927
- },
2928
- "headWidth": {
2929
- "type": "number",
2930
- "minimum": 1,
2931
- "maximum": 1000
2932
- },
2933
- "headLength": {
2934
- "type": "number",
2935
- "minimum": 1,
2936
- "maximum": 1000
2937
- },
2938
- "shaftWidth": {
2939
- "type": "number",
2940
- "minimum": 1,
2941
- "maximum": 1000
2942
- }
2943
- },
2944
- "required": [
2945
- "type",
2946
- "length",
2947
- "headWidth",
2948
- "headLength",
2949
- "shaftWidth"
2950
- ]
2951
- },
2952
- "SvgHeartShape": {
2953
- "type": "object",
2954
- "additionalProperties": false,
2955
- "properties": {
2956
- "type": {
2957
- "type": "string",
2958
- "enum": [
2959
- "heart"
2960
- ]
2961
- },
2962
- "size": {
2963
- "type": "number",
2964
- "minimum": 1,
2965
- "maximum": 4096
2966
- }
2967
- },
2968
- "required": [
2969
- "type",
2970
- "size"
2971
- ]
2972
- },
2973
- "SvgCrossShape": {
2974
- "type": "object",
2975
- "additionalProperties": false,
2976
- "properties": {
2977
- "type": {
2978
- "type": "string",
2979
- "enum": [
2980
- "cross"
2981
- ]
2982
- },
2983
- "width": {
2984
- "type": "number",
2985
- "minimum": 1,
2986
- "maximum": 4096
2987
- },
2988
- "height": {
2989
- "type": "number",
2990
- "minimum": 1,
2991
- "maximum": 4096
2992
- },
2993
- "thickness": {
2994
- "type": "number",
2995
- "minimum": 1,
2996
- "maximum": 500
2997
- }
2998
- },
2999
- "required": [
3000
- "type",
3001
- "width",
3002
- "height",
3003
- "thickness"
3004
- ]
3005
- },
3006
- "SvgRingShape": {
3007
- "type": "object",
3008
- "additionalProperties": false,
3009
- "properties": {
3010
- "type": {
3011
- "type": "string",
3012
- "enum": [
3013
- "ring"
3014
- ]
3015
- },
3016
- "outerRadius": {
3017
- "type": "number",
3018
- "minimum": 1,
3019
- "maximum": 2048
3020
- },
3021
- "innerRadius": {
3022
- "type": "number",
3023
- "minimum": 0,
3024
- "maximum": 2048
3025
- }
3026
- },
3027
- "required": [
3028
- "type",
3029
- "outerRadius",
3030
- "innerRadius"
3031
- ]
3032
- },
3033
- "SvgPathShape": {
3034
- "type": "object",
3035
- "additionalProperties": false,
3036
- "properties": {
3037
- "type": {
3038
- "type": "string",
3039
- "enum": [
3040
- "path"
3041
- ]
3042
- },
3043
- "d": {
3044
- "type": "string"
3045
- }
3046
- },
3047
- "required": [
3048
- "type",
3049
- "d"
3050
- ]
3051
- },
3052
- "SvgFill": {
3053
- "anyOf": [
3054
- {
3055
- "$ref": "#/$defs/SvgSolidFill"
3056
- },
3057
- {
3058
- "$ref": "#/$defs/SvgLinearGradientFill"
3059
- },
3060
- {
3061
- "$ref": "#/$defs/SvgRadialGradientFill"
3062
- }
3063
- ]
3064
- },
3065
- "SvgSolidFill": {
3066
- "type": "object",
3067
- "additionalProperties": false,
3068
- "properties": {
3069
- "type": {
3070
- "type": "string",
3071
- "enum": [
3072
- "solid"
3073
- ]
3074
- },
3075
- "color": {
3076
- "type": "string"
3077
- },
3078
- "opacity": {
3079
- "anyOf": [
3080
- {
3081
- "type": "number",
3082
- "minimum": 0,
3083
- "maximum": 1
3084
- },
3085
- {
3086
- "type": "null"
3087
- }
3088
- ]
3089
- }
3090
- },
3091
- "required": [
3092
- "type",
3093
- "color",
3094
- "opacity"
3095
- ]
3096
- },
3097
- "SvgLinearGradientFill": {
3098
- "type": "object",
3099
- "additionalProperties": false,
3100
- "properties": {
3101
- "type": {
3102
- "type": "string",
3103
- "enum": [
3104
- "linear"
3105
- ]
3106
- },
3107
- "angle": {
3108
- "anyOf": [
3109
- {
3110
- "type": "number",
3111
- "minimum": 0,
3112
- "maximum": 360
3113
- },
3114
- {
3115
- "type": "null"
3116
- }
3117
- ]
3118
- },
3119
- "stops": {
3120
- "type": "array",
3121
- "items": {
3122
- "$ref": "#/$defs/SvgGradientStop"
3123
- }
3124
- },
3125
- "opacity": {
3126
- "anyOf": [
3127
- {
3128
- "type": "number",
3129
- "minimum": 0,
3130
- "maximum": 1
3131
- },
3132
- {
3133
- "type": "null"
3134
- }
3135
- ]
3136
- }
3137
- },
3138
- "required": [
3139
- "type",
3140
- "angle",
3141
- "stops",
3142
- "opacity"
3143
- ]
3144
- },
3145
- "SvgGradientStop": {
3146
- "type": "object",
3147
- "additionalProperties": false,
3148
- "properties": {
3149
- "offset": {
3150
- "type": "number",
3151
- "minimum": 0,
3152
- "maximum": 1
3153
- },
3154
- "color": {
3155
- "type": "string"
3156
- }
3157
- },
3158
- "required": [
3159
- "offset",
3160
- "color"
3161
- ]
3162
- },
3163
- "SvgRadialGradientFill": {
3164
- "type": "object",
3165
- "additionalProperties": false,
3166
- "properties": {
3167
- "type": {
3168
- "type": "string",
3169
- "enum": [
3170
- "radial"
3171
- ]
3172
- },
3173
- "stops": {
3174
- "type": "array",
3175
- "items": {
3176
- "$ref": "#/$defs/SvgGradientStop"
3177
- }
3178
- },
3179
- "opacity": {
3180
- "anyOf": [
3181
- {
3182
- "type": "number",
3183
- "minimum": 0,
3184
- "maximum": 1
3185
- },
3186
- {
3187
- "type": "null"
3188
- }
3189
- ]
3190
- }
3191
- },
3192
- "required": [
3193
- "type",
3194
- "stops",
3195
- "opacity"
3196
- ]
3197
- },
3198
- "SvgStroke": {
3199
- "type": "object",
3200
- "additionalProperties": false,
3201
- "properties": {
3202
- "color": {
3203
- "anyOf": [
3204
- {
3205
- "type": "string"
3206
- },
3207
- {
3208
- "type": "null"
3209
- }
3210
- ]
3211
- },
3212
- "width": {
3213
- "anyOf": [
3214
- {
3215
- "type": "number",
3216
- "minimum": 0,
3217
- "maximum": 100
3218
- },
3219
- {
3220
- "type": "null"
3221
- }
3222
- ]
3223
- },
3224
- "opacity": {
3225
- "anyOf": [
3226
- {
3227
- "type": "number",
3228
- "minimum": 0,
3229
- "maximum": 1
3230
- },
3231
- {
3232
- "type": "null"
3233
- }
3234
- ]
3235
- },
3236
- "lineCap": {
3237
- "anyOf": [
3238
- {
3239
- "type": "string",
3240
- "enum": [
3241
- "butt",
3242
- "round",
3243
- "square"
3244
- ]
3245
- },
3246
- {
3247
- "type": "null"
3248
- }
3249
- ]
3250
- },
3251
- "lineJoin": {
3252
- "anyOf": [
3253
- {
3254
- "type": "string",
3255
- "enum": [
3256
- "miter",
3257
- "round",
3258
- "bevel"
3259
- ]
3260
- },
3261
- {
3262
- "type": "null"
3263
- }
3264
- ]
3265
- },
3266
- "dashArray": {
3267
- "anyOf": [
3268
- {
3269
- "type": "array",
3270
- "items": {
3271
- "type": "number",
3272
- "minimum": 0
3273
- }
3274
- },
3275
- {
3276
- "type": "null"
3277
- }
3278
- ]
3279
- },
3280
- "dashOffset": {
3281
- "anyOf": [
3282
- {
3283
- "type": "number"
3284
- },
3285
- {
3286
- "type": "null"
3287
- }
3288
- ]
3289
- }
3290
- },
3291
- "required": [
3292
- "color",
3293
- "width",
3294
- "opacity",
3295
- "lineCap",
3296
- "lineJoin",
3297
- "dashArray",
3298
- "dashOffset"
3299
- ]
3300
- },
3301
- "SvgShadow": {
3302
- "type": "object",
3303
- "additionalProperties": false,
3304
- "properties": {
3305
- "offsetX": {
3306
- "anyOf": [
3307
- {
3308
- "type": "number"
3309
- },
3310
- {
3311
- "type": "null"
3312
- }
3313
- ]
3314
- },
3315
- "offsetY": {
3316
- "anyOf": [
3317
- {
3318
- "type": "number"
3319
- },
3320
- {
3321
- "type": "null"
3322
- }
3323
- ]
3324
- },
3325
- "blur": {
3326
- "anyOf": [
3327
- {
3328
- "type": "number",
3329
- "minimum": 0
3330
- },
3331
- {
3332
- "type": "null"
3333
- }
3334
- ]
3335
- },
3336
- "color": {
3337
- "anyOf": [
3338
- {
3339
- "type": "string",
3340
- "enum": [
3341
- "#000000"
3342
- ]
3343
- },
3344
- {
3345
- "type": "null"
3346
- }
3347
- ]
3348
- },
3349
- "opacity": {
3350
- "anyOf": [
3351
- {
3352
- "type": "number",
3353
- "minimum": 0,
3354
- "maximum": 1
3355
- },
3356
- {
3357
- "type": "null"
3358
- }
3359
- ]
3360
- }
3361
- },
3362
- "required": [
3363
- "offsetX",
3364
- "offsetY",
3365
- "blur",
3366
- "color",
3367
- "opacity"
3368
- ]
3369
- },
3370
- "SvgTransform": {
3371
- "type": "object",
3372
- "additionalProperties": false,
3373
- "properties": {
3374
- "x": {
3375
- "anyOf": [
3376
- {
3377
- "type": "number"
3378
- },
3379
- {
3380
- "type": "null"
3381
- }
3382
- ]
3383
- },
3384
- "y": {
3385
- "anyOf": [
3386
- {
3387
- "type": "number"
3388
- },
3389
- {
3390
- "type": "null"
3391
- }
3392
- ]
3393
- },
3394
- "rotation": {
3395
- "anyOf": [
3396
- {
3397
- "type": "number",
3398
- "minimum": -360,
3399
- "maximum": 360
3400
- },
3401
- {
3402
- "type": "null"
3403
- }
3404
- ]
3405
- },
3406
- "scale": {
3407
- "anyOf": [
3408
- {
3409
- "type": "number",
3410
- "minimum": 0.01,
3411
- "maximum": 100
3412
- },
3413
- {
3414
- "type": "null"
3415
- }
3416
- ]
3417
- },
3418
- "originX": {
3419
- "anyOf": [
3420
- {
3421
- "type": "number",
3422
- "minimum": 0,
3423
- "maximum": 1
3424
- },
3425
- {
3426
- "type": "null"
3427
- }
3428
- ]
3429
- },
3430
- "originY": {
3431
- "anyOf": [
3432
- {
3433
- "type": "number",
3434
- "minimum": 0,
3435
- "maximum": 1
3436
- },
3437
- {
3438
- "type": "null"
3439
- }
3440
- ]
3441
- }
3442
- },
3443
- "required": [
3444
- "x",
3445
- "y",
3446
- "rotation",
3447
- "scale",
3448
- "originX",
3449
- "originY"
2597
+ "src"
3450
2598
  ]
3451
2599
  },
3452
2600
  "TextToImageAsset": {