@mintlify/validation 0.1.848 → 0.1.850

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 (30) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +2 -0
  3. package/dist/mint-config/collectOpenApiOverlays.d.ts +13 -0
  4. package/dist/mint-config/collectOpenApiOverlays.js +73 -0
  5. package/dist/mint-config/schemas/v2/index.d.ts +1480 -530
  6. package/dist/mint-config/schemas/v2/properties/api.d.ts +30 -5
  7. package/dist/mint-config/schemas/v2/properties/navbar.d.ts +10 -10
  8. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +30 -5
  9. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +14 -4
  10. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +56 -16
  11. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +40 -40
  12. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +14 -4
  13. package/dist/mint-config/schemas/v2/properties/reusable/openapi.d.ts +26 -1
  14. package/dist/mint-config/schemas/v2/properties/reusable/openapi.js +23 -2
  15. package/dist/mint-config/schemas/v2/themes/almond.d.ts +148 -53
  16. package/dist/mint-config/schemas/v2/themes/aspen.d.ts +148 -53
  17. package/dist/mint-config/schemas/v2/themes/linden.d.ts +148 -53
  18. package/dist/mint-config/schemas/v2/themes/luma.d.ts +148 -53
  19. package/dist/mint-config/schemas/v2/themes/maple.d.ts +148 -53
  20. package/dist/mint-config/schemas/v2/themes/mint.d.ts +148 -53
  21. package/dist/mint-config/schemas/v2/themes/palm.d.ts +148 -53
  22. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +96 -31
  23. package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +148 -53
  24. package/dist/mint-config/schemas/v2/themes/willow.d.ts +148 -53
  25. package/dist/mint-config/validateConfig.d.ts +468 -198
  26. package/dist/openapi/overlay.d.ts +555 -0
  27. package/dist/openapi/overlay.js +118 -0
  28. package/dist/tsconfig.build.tsbuildinfo +1 -1
  29. package/dist/types/postLoginRedirects.js +12 -5
  30. package/package.json +2 -2
@@ -73,15 +73,30 @@ export declare const willowConfigSchema: z.ZodObject<{
73
73
  dark: string;
74
74
  }>]>>;
75
75
  api: z.ZodOptional<z.ZodObject<{
76
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
76
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
77
77
  source: z.ZodEffects<z.ZodString, string, string>;
78
78
  directory: z.ZodOptional<z.ZodString>;
79
+ overlays: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
79
80
  }, "strict", z.ZodTypeAny, {
80
81
  source: string;
81
82
  directory?: string | undefined;
83
+ overlays?: string[] | undefined;
82
84
  }, {
83
85
  source: string;
84
86
  directory?: string | undefined;
87
+ overlays?: string[] | undefined;
88
+ }>]>, "many">, z.ZodObject<{
89
+ source: z.ZodEffects<z.ZodString, string, string>;
90
+ directory: z.ZodOptional<z.ZodString>;
91
+ overlays: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ source: string;
94
+ directory?: string | undefined;
95
+ overlays?: string[] | undefined;
96
+ }, {
97
+ source: string;
98
+ directory?: string | undefined;
99
+ overlays?: string[] | undefined;
85
100
  }>]>>;
86
101
  asyncapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
87
102
  source: z.ZodEffects<z.ZodString, string, string>;
@@ -164,10 +179,15 @@ export declare const willowConfigSchema: z.ZodObject<{
164
179
  post?: string[] | undefined;
165
180
  } | undefined;
166
181
  url?: "full" | undefined;
167
- openapi?: string | string[] | {
182
+ openapi?: string | {
168
183
  source: string;
169
184
  directory?: string | undefined;
170
- } | undefined;
185
+ overlays?: string[] | undefined;
186
+ } | (string | {
187
+ source: string;
188
+ directory?: string | undefined;
189
+ overlays?: string[] | undefined;
190
+ })[] | undefined;
171
191
  playground?: {
172
192
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
173
193
  proxy?: boolean | undefined;
@@ -196,10 +216,15 @@ export declare const willowConfigSchema: z.ZodObject<{
196
216
  post?: string[] | undefined;
197
217
  } | undefined;
198
218
  url?: "full" | undefined;
199
- openapi?: string | string[] | {
219
+ openapi?: string | {
200
220
  source: string;
201
221
  directory?: string | undefined;
202
- } | undefined;
222
+ overlays?: string[] | undefined;
223
+ } | (string | {
224
+ source: string;
225
+ directory?: string | undefined;
226
+ overlays?: string[] | undefined;
227
+ })[] | undefined;
203
228
  playground?: {
204
229
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
205
230
  proxy?: boolean | undefined;
@@ -438,16 +463,16 @@ export declare const willowConfigSchema: z.ZodObject<{
438
463
  label?: string | undefined;
439
464
  } | undefined;
440
465
  links?: ({
466
+ type: "github";
441
467
  href: string;
442
- label: string;
443
- type?: string | undefined;
444
468
  icon?: string | {
445
469
  name: string;
446
470
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
447
471
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
448
472
  } | undefined;
473
+ label?: string | undefined;
449
474
  } | {
450
- type: "github";
475
+ type: "discord";
451
476
  href: string;
452
477
  icon?: string | {
453
478
  name: string;
@@ -456,14 +481,14 @@ export declare const willowConfigSchema: z.ZodObject<{
456
481
  } | undefined;
457
482
  label?: string | undefined;
458
483
  } | {
459
- type: "discord";
460
484
  href: string;
485
+ label: string;
486
+ type?: string | undefined;
461
487
  icon?: string | {
462
488
  name: string;
463
489
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
464
490
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
465
491
  } | undefined;
466
- label?: string | undefined;
467
492
  })[] | undefined;
468
493
  }, {
469
494
  primary?: {
@@ -480,16 +505,16 @@ export declare const willowConfigSchema: z.ZodObject<{
480
505
  label?: string | undefined;
481
506
  } | undefined;
482
507
  links?: ({
508
+ type: "github";
483
509
  href: string;
484
- label: string;
485
- type?: string | undefined;
486
510
  icon?: string | {
487
511
  name: string;
488
512
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
489
513
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
490
514
  } | undefined;
515
+ label?: string | undefined;
491
516
  } | {
492
- type: "github";
517
+ type: "discord";
493
518
  href: string;
494
519
  icon?: string | {
495
520
  name: string;
@@ -498,14 +523,14 @@ export declare const willowConfigSchema: z.ZodObject<{
498
523
  } | undefined;
499
524
  label?: string | undefined;
500
525
  } | {
501
- type: "discord";
502
526
  href: string;
527
+ label: string;
528
+ type?: string | undefined;
503
529
  icon?: string | {
504
530
  name: string;
505
531
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
506
532
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
507
533
  } | undefined;
508
- label?: string | undefined;
509
534
  })[] | undefined;
510
535
  }>>;
511
536
  navigation: z.ZodUnion<[z.ZodObject<{
@@ -646,10 +671,15 @@ export declare const willowConfigSchema: z.ZodObject<{
646
671
  sdk?: undefined;
647
672
  root?: string | undefined;
648
673
  }, "sdk"> & {
649
- openapi?: string | string[] | {
674
+ openapi?: string | {
650
675
  source: string;
651
676
  directory?: string | undefined;
652
- } | undefined;
677
+ overlays?: string[] | undefined;
678
+ } | (string | {
679
+ source: string;
680
+ directory?: string | undefined;
681
+ overlays?: string[] | undefined;
682
+ })[] | undefined;
653
683
  asyncapi?: string | string[] | {
654
684
  source: string;
655
685
  directory?: string | undefined;
@@ -675,10 +705,15 @@ export declare const willowConfigSchema: z.ZodObject<{
675
705
  sdk?: undefined;
676
706
  root?: string | undefined;
677
707
  }, "sdk"> & {
678
- openapi?: string | string[] | {
708
+ openapi?: string | {
679
709
  source: string;
680
710
  directory?: string | undefined;
681
- } | undefined;
711
+ overlays?: string[] | undefined;
712
+ } | (string | {
713
+ source: string;
714
+ directory?: string | undefined;
715
+ overlays?: string[] | undefined;
716
+ })[] | undefined;
682
717
  asyncapi?: string | string[] | {
683
718
  source: string;
684
719
  directory?: string | undefined;
@@ -706,10 +741,15 @@ export declare const willowConfigSchema: z.ZodObject<{
706
741
  sdk?: undefined;
707
742
  root?: string | undefined;
708
743
  }, "sdk"> & {
709
- openapi?: string | string[] | {
744
+ openapi?: string | {
710
745
  source: string;
711
746
  directory?: string | undefined;
712
- } | undefined;
747
+ overlays?: string[] | undefined;
748
+ } | (string | {
749
+ source: string;
750
+ directory?: string | undefined;
751
+ overlays?: string[] | undefined;
752
+ })[] | undefined;
713
753
  asyncapi?: string | string[] | {
714
754
  source: string;
715
755
  directory?: string | undefined;
@@ -741,10 +781,15 @@ export declare const willowConfigSchema: z.ZodObject<{
741
781
  sdk?: undefined;
742
782
  root?: string | undefined;
743
783
  }, "sdk"> & {
744
- openapi?: string | string[] | {
784
+ openapi?: string | {
745
785
  source: string;
746
786
  directory?: string | undefined;
747
- } | undefined;
787
+ overlays?: string[] | undefined;
788
+ } | (string | {
789
+ source: string;
790
+ directory?: string | undefined;
791
+ overlays?: string[] | undefined;
792
+ })[] | undefined;
748
793
  asyncapi?: string | string[] | {
749
794
  source: string;
750
795
  directory?: string | undefined;
@@ -781,10 +826,15 @@ export declare const willowConfigSchema: z.ZodObject<{
781
826
  sdk?: undefined;
782
827
  root?: string | undefined;
783
828
  }, "sdk"> & {
784
- openapi?: string | string[] | {
829
+ openapi?: string | {
785
830
  source: string;
786
831
  directory?: string | undefined;
787
- } | undefined;
832
+ overlays?: string[] | undefined;
833
+ } | (string | {
834
+ source: string;
835
+ directory?: string | undefined;
836
+ overlays?: string[] | undefined;
837
+ })[] | undefined;
788
838
  asyncapi?: string | string[] | {
789
839
  source: string;
790
840
  directory?: string | undefined;
@@ -810,10 +860,15 @@ export declare const willowConfigSchema: z.ZodObject<{
810
860
  sdk?: undefined;
811
861
  root?: string | undefined;
812
862
  }, "sdk"> & {
813
- openapi?: string | string[] | {
863
+ openapi?: string | {
814
864
  source: string;
815
865
  directory?: string | undefined;
816
- } | undefined;
866
+ overlays?: string[] | undefined;
867
+ } | (string | {
868
+ source: string;
869
+ directory?: string | undefined;
870
+ overlays?: string[] | undefined;
871
+ })[] | undefined;
817
872
  asyncapi?: string | string[] | {
818
873
  source: string;
819
874
  directory?: string | undefined;
@@ -841,10 +896,15 @@ export declare const willowConfigSchema: z.ZodObject<{
841
896
  sdk?: undefined;
842
897
  root?: string | undefined;
843
898
  }, "sdk"> & {
844
- openapi?: string | string[] | {
899
+ openapi?: string | {
845
900
  source: string;
846
901
  directory?: string | undefined;
847
- } | undefined;
902
+ overlays?: string[] | undefined;
903
+ } | (string | {
904
+ source: string;
905
+ directory?: string | undefined;
906
+ overlays?: string[] | undefined;
907
+ })[] | undefined;
848
908
  asyncapi?: string | string[] | {
849
909
  source: string;
850
910
  directory?: string | undefined;
@@ -876,10 +936,15 @@ export declare const willowConfigSchema: z.ZodObject<{
876
936
  sdk?: undefined;
877
937
  root?: string | undefined;
878
938
  }, "sdk"> & {
879
- openapi?: string | string[] | {
939
+ openapi?: string | {
880
940
  source: string;
881
941
  directory?: string | undefined;
882
- } | undefined;
942
+ overlays?: string[] | undefined;
943
+ } | (string | {
944
+ source: string;
945
+ directory?: string | undefined;
946
+ overlays?: string[] | undefined;
947
+ })[] | undefined;
883
948
  asyncapi?: string | string[] | {
884
949
  source: string;
885
950
  directory?: string | undefined;
@@ -1863,10 +1928,15 @@ export declare const willowConfigSchema: z.ZodObject<{
1863
1928
  sdk?: undefined;
1864
1929
  root?: string | undefined;
1865
1930
  }, "sdk"> & {
1866
- openapi?: string | string[] | {
1931
+ openapi?: string | {
1867
1932
  source: string;
1868
1933
  directory?: string | undefined;
1869
- } | undefined;
1934
+ overlays?: string[] | undefined;
1935
+ } | (string | {
1936
+ source: string;
1937
+ directory?: string | undefined;
1938
+ overlays?: string[] | undefined;
1939
+ })[] | undefined;
1870
1940
  asyncapi?: string | string[] | {
1871
1941
  source: string;
1872
1942
  directory?: string | undefined;
@@ -1898,10 +1968,15 @@ export declare const willowConfigSchema: z.ZodObject<{
1898
1968
  sdk?: undefined;
1899
1969
  root?: string | undefined;
1900
1970
  }, "sdk"> & {
1901
- openapi?: string | string[] | {
1971
+ openapi?: string | {
1902
1972
  source: string;
1903
1973
  directory?: string | undefined;
1904
- } | undefined;
1974
+ overlays?: string[] | undefined;
1975
+ } | (string | {
1976
+ source: string;
1977
+ directory?: string | undefined;
1978
+ overlays?: string[] | undefined;
1979
+ })[] | undefined;
1905
1980
  asyncapi?: string | string[] | {
1906
1981
  source: string;
1907
1982
  directory?: string | undefined;
@@ -1942,10 +2017,15 @@ export declare const willowConfigSchema: z.ZodObject<{
1942
2017
  post?: string[] | undefined;
1943
2018
  } | undefined;
1944
2019
  url?: "full" | undefined;
1945
- openapi?: string | string[] | {
2020
+ openapi?: string | {
1946
2021
  source: string;
1947
2022
  directory?: string | undefined;
1948
- } | undefined;
2023
+ overlays?: string[] | undefined;
2024
+ } | (string | {
2025
+ source: string;
2026
+ directory?: string | undefined;
2027
+ overlays?: string[] | undefined;
2028
+ })[] | undefined;
1949
2029
  playground?: {
1950
2030
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
1951
2031
  proxy?: boolean | undefined;
@@ -2129,16 +2209,16 @@ export declare const willowConfigSchema: z.ZodObject<{
2129
2209
  label?: string | undefined;
2130
2210
  } | undefined;
2131
2211
  links?: ({
2212
+ type: "github";
2132
2213
  href: string;
2133
- label: string;
2134
- type?: string | undefined;
2135
2214
  icon?: string | {
2136
2215
  name: string;
2137
2216
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2138
2217
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2139
2218
  } | undefined;
2219
+ label?: string | undefined;
2140
2220
  } | {
2141
- type: "github";
2221
+ type: "discord";
2142
2222
  href: string;
2143
2223
  icon?: string | {
2144
2224
  name: string;
@@ -2147,14 +2227,14 @@ export declare const willowConfigSchema: z.ZodObject<{
2147
2227
  } | undefined;
2148
2228
  label?: string | undefined;
2149
2229
  } | {
2150
- type: "discord";
2151
2230
  href: string;
2231
+ label: string;
2232
+ type?: string | undefined;
2152
2233
  icon?: string | {
2153
2234
  name: string;
2154
2235
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2155
2236
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2156
2237
  } | undefined;
2157
- label?: string | undefined;
2158
2238
  })[] | undefined;
2159
2239
  } | undefined;
2160
2240
  appearance?: {
@@ -2287,10 +2367,15 @@ export declare const willowConfigSchema: z.ZodObject<{
2287
2367
  sdk?: undefined;
2288
2368
  root?: string | undefined;
2289
2369
  }, "sdk"> & {
2290
- openapi?: string | string[] | {
2370
+ openapi?: string | {
2291
2371
  source: string;
2292
2372
  directory?: string | undefined;
2293
- } | undefined;
2373
+ overlays?: string[] | undefined;
2374
+ } | (string | {
2375
+ source: string;
2376
+ directory?: string | undefined;
2377
+ overlays?: string[] | undefined;
2378
+ })[] | undefined;
2294
2379
  asyncapi?: string | string[] | {
2295
2380
  source: string;
2296
2381
  directory?: string | undefined;
@@ -2322,10 +2407,15 @@ export declare const willowConfigSchema: z.ZodObject<{
2322
2407
  sdk?: undefined;
2323
2408
  root?: string | undefined;
2324
2409
  }, "sdk"> & {
2325
- openapi?: string | string[] | {
2410
+ openapi?: string | {
2326
2411
  source: string;
2327
2412
  directory?: string | undefined;
2328
- } | undefined;
2413
+ overlays?: string[] | undefined;
2414
+ } | (string | {
2415
+ source: string;
2416
+ directory?: string | undefined;
2417
+ overlays?: string[] | undefined;
2418
+ })[] | undefined;
2329
2419
  asyncapi?: string | string[] | {
2330
2420
  source: string;
2331
2421
  directory?: string | undefined;
@@ -2367,10 +2457,15 @@ export declare const willowConfigSchema: z.ZodObject<{
2367
2457
  post?: string[] | undefined;
2368
2458
  } | undefined;
2369
2459
  url?: "full" | undefined;
2370
- openapi?: string | string[] | {
2460
+ openapi?: string | {
2371
2461
  source: string;
2372
2462
  directory?: string | undefined;
2373
- } | undefined;
2463
+ overlays?: string[] | undefined;
2464
+ } | (string | {
2465
+ source: string;
2466
+ directory?: string | undefined;
2467
+ overlays?: string[] | undefined;
2468
+ })[] | undefined;
2374
2469
  playground?: {
2375
2470
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
2376
2471
  proxy?: boolean | undefined;
@@ -2554,16 +2649,16 @@ export declare const willowConfigSchema: z.ZodObject<{
2554
2649
  label?: string | undefined;
2555
2650
  } | undefined;
2556
2651
  links?: ({
2652
+ type: "github";
2557
2653
  href: string;
2558
- label: string;
2559
- type?: string | undefined;
2560
2654
  icon?: string | {
2561
2655
  name: string;
2562
2656
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2563
2657
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2564
2658
  } | undefined;
2659
+ label?: string | undefined;
2565
2660
  } | {
2566
- type: "github";
2661
+ type: "discord";
2567
2662
  href: string;
2568
2663
  icon?: string | {
2569
2664
  name: string;
@@ -2572,14 +2667,14 @@ export declare const willowConfigSchema: z.ZodObject<{
2572
2667
  } | undefined;
2573
2668
  label?: string | undefined;
2574
2669
  } | {
2575
- type: "discord";
2576
2670
  href: string;
2671
+ label: string;
2672
+ type?: string | undefined;
2577
2673
  icon?: string | {
2578
2674
  name: string;
2579
2675
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2580
2676
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2581
2677
  } | undefined;
2582
- label?: string | undefined;
2583
2678
  })[] | undefined;
2584
2679
  } | undefined;
2585
2680
  appearance?: {