@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
@@ -41,15 +41,30 @@ export declare const palmConfigSchema: z.ZodObject<{
41
41
  dark: string;
42
42
  }>]>>;
43
43
  api: z.ZodOptional<z.ZodObject<{
44
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
44
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
45
45
  source: z.ZodEffects<z.ZodString, string, string>;
46
46
  directory: z.ZodOptional<z.ZodString>;
47
+ overlays: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
47
48
  }, "strict", z.ZodTypeAny, {
48
49
  source: string;
49
50
  directory?: string | undefined;
51
+ overlays?: string[] | undefined;
50
52
  }, {
51
53
  source: string;
52
54
  directory?: string | undefined;
55
+ overlays?: string[] | undefined;
56
+ }>]>, "many">, z.ZodObject<{
57
+ source: z.ZodEffects<z.ZodString, string, string>;
58
+ directory: z.ZodOptional<z.ZodString>;
59
+ overlays: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ source: string;
62
+ directory?: string | undefined;
63
+ overlays?: string[] | undefined;
64
+ }, {
65
+ source: string;
66
+ directory?: string | undefined;
67
+ overlays?: string[] | undefined;
53
68
  }>]>>;
54
69
  asyncapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
55
70
  source: z.ZodEffects<z.ZodString, string, string>;
@@ -132,10 +147,15 @@ export declare const palmConfigSchema: z.ZodObject<{
132
147
  post?: string[] | undefined;
133
148
  } | undefined;
134
149
  url?: "full" | undefined;
135
- openapi?: string | string[] | {
150
+ openapi?: string | {
136
151
  source: string;
137
152
  directory?: string | undefined;
138
- } | undefined;
153
+ overlays?: string[] | undefined;
154
+ } | (string | {
155
+ source: string;
156
+ directory?: string | undefined;
157
+ overlays?: string[] | undefined;
158
+ })[] | undefined;
139
159
  playground?: {
140
160
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
141
161
  proxy?: boolean | undefined;
@@ -164,10 +184,15 @@ export declare const palmConfigSchema: z.ZodObject<{
164
184
  post?: string[] | undefined;
165
185
  } | undefined;
166
186
  url?: "full" | undefined;
167
- openapi?: string | string[] | {
187
+ openapi?: string | {
168
188
  source: string;
169
189
  directory?: string | undefined;
170
- } | undefined;
190
+ overlays?: string[] | undefined;
191
+ } | (string | {
192
+ source: string;
193
+ directory?: string | undefined;
194
+ overlays?: string[] | undefined;
195
+ })[] | undefined;
171
196
  playground?: {
172
197
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
173
198
  proxy?: boolean | undefined;
@@ -406,16 +431,16 @@ export declare const palmConfigSchema: z.ZodObject<{
406
431
  label?: string | undefined;
407
432
  } | undefined;
408
433
  links?: ({
434
+ type: "github";
409
435
  href: string;
410
- label: string;
411
- type?: string | undefined;
412
436
  icon?: string | {
413
437
  name: string;
414
438
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
415
439
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
416
440
  } | undefined;
441
+ label?: string | undefined;
417
442
  } | {
418
- type: "github";
443
+ type: "discord";
419
444
  href: string;
420
445
  icon?: string | {
421
446
  name: string;
@@ -424,14 +449,14 @@ export declare const palmConfigSchema: z.ZodObject<{
424
449
  } | undefined;
425
450
  label?: string | undefined;
426
451
  } | {
427
- type: "discord";
428
452
  href: string;
453
+ label: string;
454
+ type?: string | undefined;
429
455
  icon?: string | {
430
456
  name: string;
431
457
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
432
458
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
433
459
  } | undefined;
434
- label?: string | undefined;
435
460
  })[] | undefined;
436
461
  }, {
437
462
  primary?: {
@@ -448,16 +473,16 @@ export declare const palmConfigSchema: z.ZodObject<{
448
473
  label?: string | undefined;
449
474
  } | undefined;
450
475
  links?: ({
476
+ type: "github";
451
477
  href: string;
452
- label: string;
453
- type?: string | undefined;
454
478
  icon?: string | {
455
479
  name: string;
456
480
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
457
481
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
458
482
  } | undefined;
483
+ label?: string | undefined;
459
484
  } | {
460
- type: "github";
485
+ type: "discord";
461
486
  href: string;
462
487
  icon?: string | {
463
488
  name: string;
@@ -466,14 +491,14 @@ export declare const palmConfigSchema: z.ZodObject<{
466
491
  } | undefined;
467
492
  label?: string | undefined;
468
493
  } | {
469
- type: "discord";
470
494
  href: string;
495
+ label: string;
496
+ type?: string | undefined;
471
497
  icon?: string | {
472
498
  name: string;
473
499
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
474
500
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
475
501
  } | undefined;
476
- label?: string | undefined;
477
502
  })[] | undefined;
478
503
  }>>;
479
504
  navigation: z.ZodUnion<[z.ZodObject<{
@@ -614,10 +639,15 @@ export declare const palmConfigSchema: z.ZodObject<{
614
639
  sdk?: undefined;
615
640
  root?: string | undefined;
616
641
  }, "sdk"> & {
617
- openapi?: string | string[] | {
642
+ openapi?: string | {
618
643
  source: string;
619
644
  directory?: string | undefined;
620
- } | undefined;
645
+ overlays?: string[] | undefined;
646
+ } | (string | {
647
+ source: string;
648
+ directory?: string | undefined;
649
+ overlays?: string[] | undefined;
650
+ })[] | undefined;
621
651
  asyncapi?: string | string[] | {
622
652
  source: string;
623
653
  directory?: string | undefined;
@@ -643,10 +673,15 @@ export declare const palmConfigSchema: z.ZodObject<{
643
673
  sdk?: undefined;
644
674
  root?: string | undefined;
645
675
  }, "sdk"> & {
646
- openapi?: string | string[] | {
676
+ openapi?: string | {
647
677
  source: string;
648
678
  directory?: string | undefined;
649
- } | undefined;
679
+ overlays?: string[] | undefined;
680
+ } | (string | {
681
+ source: string;
682
+ directory?: string | undefined;
683
+ overlays?: string[] | undefined;
684
+ })[] | undefined;
650
685
  asyncapi?: string | string[] | {
651
686
  source: string;
652
687
  directory?: string | undefined;
@@ -674,10 +709,15 @@ export declare const palmConfigSchema: z.ZodObject<{
674
709
  sdk?: undefined;
675
710
  root?: string | undefined;
676
711
  }, "sdk"> & {
677
- openapi?: string | string[] | {
712
+ openapi?: string | {
678
713
  source: string;
679
714
  directory?: string | undefined;
680
- } | undefined;
715
+ overlays?: string[] | undefined;
716
+ } | (string | {
717
+ source: string;
718
+ directory?: string | undefined;
719
+ overlays?: string[] | undefined;
720
+ })[] | undefined;
681
721
  asyncapi?: string | string[] | {
682
722
  source: string;
683
723
  directory?: string | undefined;
@@ -709,10 +749,15 @@ export declare const palmConfigSchema: z.ZodObject<{
709
749
  sdk?: undefined;
710
750
  root?: string | undefined;
711
751
  }, "sdk"> & {
712
- openapi?: string | string[] | {
752
+ openapi?: string | {
713
753
  source: string;
714
754
  directory?: string | undefined;
715
- } | undefined;
755
+ overlays?: string[] | undefined;
756
+ } | (string | {
757
+ source: string;
758
+ directory?: string | undefined;
759
+ overlays?: string[] | undefined;
760
+ })[] | undefined;
716
761
  asyncapi?: string | string[] | {
717
762
  source: string;
718
763
  directory?: string | undefined;
@@ -749,10 +794,15 @@ export declare const palmConfigSchema: z.ZodObject<{
749
794
  sdk?: undefined;
750
795
  root?: string | undefined;
751
796
  }, "sdk"> & {
752
- openapi?: string | string[] | {
797
+ openapi?: string | {
753
798
  source: string;
754
799
  directory?: string | undefined;
755
- } | undefined;
800
+ overlays?: string[] | undefined;
801
+ } | (string | {
802
+ source: string;
803
+ directory?: string | undefined;
804
+ overlays?: string[] | undefined;
805
+ })[] | undefined;
756
806
  asyncapi?: string | string[] | {
757
807
  source: string;
758
808
  directory?: string | undefined;
@@ -778,10 +828,15 @@ export declare const palmConfigSchema: z.ZodObject<{
778
828
  sdk?: undefined;
779
829
  root?: string | undefined;
780
830
  }, "sdk"> & {
781
- openapi?: string | string[] | {
831
+ openapi?: string | {
782
832
  source: string;
783
833
  directory?: string | undefined;
784
- } | undefined;
834
+ overlays?: string[] | undefined;
835
+ } | (string | {
836
+ source: string;
837
+ directory?: string | undefined;
838
+ overlays?: string[] | undefined;
839
+ })[] | undefined;
785
840
  asyncapi?: string | string[] | {
786
841
  source: string;
787
842
  directory?: string | undefined;
@@ -809,10 +864,15 @@ export declare const palmConfigSchema: z.ZodObject<{
809
864
  sdk?: undefined;
810
865
  root?: string | undefined;
811
866
  }, "sdk"> & {
812
- openapi?: string | string[] | {
867
+ openapi?: string | {
813
868
  source: string;
814
869
  directory?: string | undefined;
815
- } | undefined;
870
+ overlays?: string[] | undefined;
871
+ } | (string | {
872
+ source: string;
873
+ directory?: string | undefined;
874
+ overlays?: string[] | undefined;
875
+ })[] | undefined;
816
876
  asyncapi?: string | string[] | {
817
877
  source: string;
818
878
  directory?: string | undefined;
@@ -844,10 +904,15 @@ export declare const palmConfigSchema: z.ZodObject<{
844
904
  sdk?: undefined;
845
905
  root?: string | undefined;
846
906
  }, "sdk"> & {
847
- openapi?: string | string[] | {
907
+ openapi?: string | {
848
908
  source: string;
849
909
  directory?: string | undefined;
850
- } | undefined;
910
+ overlays?: string[] | undefined;
911
+ } | (string | {
912
+ source: string;
913
+ directory?: string | undefined;
914
+ overlays?: string[] | undefined;
915
+ })[] | undefined;
851
916
  asyncapi?: string | string[] | {
852
917
  source: string;
853
918
  directory?: string | undefined;
@@ -1831,10 +1896,15 @@ export declare const palmConfigSchema: z.ZodObject<{
1831
1896
  sdk?: undefined;
1832
1897
  root?: string | undefined;
1833
1898
  }, "sdk"> & {
1834
- openapi?: string | string[] | {
1899
+ openapi?: string | {
1835
1900
  source: string;
1836
1901
  directory?: string | undefined;
1837
- } | undefined;
1902
+ overlays?: string[] | undefined;
1903
+ } | (string | {
1904
+ source: string;
1905
+ directory?: string | undefined;
1906
+ overlays?: string[] | undefined;
1907
+ })[] | undefined;
1838
1908
  asyncapi?: string | string[] | {
1839
1909
  source: string;
1840
1910
  directory?: string | undefined;
@@ -1866,10 +1936,15 @@ export declare const palmConfigSchema: z.ZodObject<{
1866
1936
  sdk?: undefined;
1867
1937
  root?: string | undefined;
1868
1938
  }, "sdk"> & {
1869
- openapi?: string | string[] | {
1939
+ openapi?: string | {
1870
1940
  source: string;
1871
1941
  directory?: string | undefined;
1872
- } | undefined;
1942
+ overlays?: string[] | undefined;
1943
+ } | (string | {
1944
+ source: string;
1945
+ directory?: string | undefined;
1946
+ overlays?: string[] | undefined;
1947
+ })[] | undefined;
1873
1948
  asyncapi?: string | string[] | {
1874
1949
  source: string;
1875
1950
  directory?: string | undefined;
@@ -1910,10 +1985,15 @@ export declare const palmConfigSchema: z.ZodObject<{
1910
1985
  post?: string[] | undefined;
1911
1986
  } | undefined;
1912
1987
  url?: "full" | undefined;
1913
- openapi?: string | string[] | {
1988
+ openapi?: string | {
1914
1989
  source: string;
1915
1990
  directory?: string | undefined;
1916
- } | undefined;
1991
+ overlays?: string[] | undefined;
1992
+ } | (string | {
1993
+ source: string;
1994
+ directory?: string | undefined;
1995
+ overlays?: string[] | undefined;
1996
+ })[] | undefined;
1917
1997
  playground?: {
1918
1998
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
1919
1999
  proxy?: boolean | undefined;
@@ -2097,16 +2177,16 @@ export declare const palmConfigSchema: z.ZodObject<{
2097
2177
  label?: string | undefined;
2098
2178
  } | undefined;
2099
2179
  links?: ({
2180
+ type: "github";
2100
2181
  href: string;
2101
- label: string;
2102
- type?: string | undefined;
2103
2182
  icon?: string | {
2104
2183
  name: string;
2105
2184
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2106
2185
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2107
2186
  } | undefined;
2187
+ label?: string | undefined;
2108
2188
  } | {
2109
- type: "github";
2189
+ type: "discord";
2110
2190
  href: string;
2111
2191
  icon?: string | {
2112
2192
  name: string;
@@ -2115,14 +2195,14 @@ export declare const palmConfigSchema: z.ZodObject<{
2115
2195
  } | undefined;
2116
2196
  label?: string | undefined;
2117
2197
  } | {
2118
- type: "discord";
2119
2198
  href: string;
2199
+ label: string;
2200
+ type?: string | undefined;
2120
2201
  icon?: string | {
2121
2202
  name: string;
2122
2203
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2123
2204
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2124
2205
  } | undefined;
2125
- label?: string | undefined;
2126
2206
  })[] | undefined;
2127
2207
  } | undefined;
2128
2208
  appearance?: {
@@ -2249,10 +2329,15 @@ export declare const palmConfigSchema: z.ZodObject<{
2249
2329
  sdk?: undefined;
2250
2330
  root?: string | undefined;
2251
2331
  }, "sdk"> & {
2252
- openapi?: string | string[] | {
2332
+ openapi?: string | {
2253
2333
  source: string;
2254
2334
  directory?: string | undefined;
2255
- } | undefined;
2335
+ overlays?: string[] | undefined;
2336
+ } | (string | {
2337
+ source: string;
2338
+ directory?: string | undefined;
2339
+ overlays?: string[] | undefined;
2340
+ })[] | undefined;
2256
2341
  asyncapi?: string | string[] | {
2257
2342
  source: string;
2258
2343
  directory?: string | undefined;
@@ -2284,10 +2369,15 @@ export declare const palmConfigSchema: z.ZodObject<{
2284
2369
  sdk?: undefined;
2285
2370
  root?: string | undefined;
2286
2371
  }, "sdk"> & {
2287
- openapi?: string | string[] | {
2372
+ openapi?: string | {
2288
2373
  source: string;
2289
2374
  directory?: string | undefined;
2290
- } | undefined;
2375
+ overlays?: string[] | undefined;
2376
+ } | (string | {
2377
+ source: string;
2378
+ directory?: string | undefined;
2379
+ overlays?: string[] | undefined;
2380
+ })[] | undefined;
2291
2381
  asyncapi?: string | string[] | {
2292
2382
  source: string;
2293
2383
  directory?: string | undefined;
@@ -2329,10 +2419,15 @@ export declare const palmConfigSchema: z.ZodObject<{
2329
2419
  post?: string[] | undefined;
2330
2420
  } | undefined;
2331
2421
  url?: "full" | undefined;
2332
- openapi?: string | string[] | {
2422
+ openapi?: string | {
2333
2423
  source: string;
2334
2424
  directory?: string | undefined;
2335
- } | undefined;
2425
+ overlays?: string[] | undefined;
2426
+ } | (string | {
2427
+ source: string;
2428
+ directory?: string | undefined;
2429
+ overlays?: string[] | undefined;
2430
+ })[] | undefined;
2336
2431
  playground?: {
2337
2432
  display?: "auth" | "simple" | "none" | "interactive" | undefined;
2338
2433
  proxy?: boolean | undefined;
@@ -2516,16 +2611,16 @@ export declare const palmConfigSchema: z.ZodObject<{
2516
2611
  label?: string | undefined;
2517
2612
  } | undefined;
2518
2613
  links?: ({
2614
+ type: "github";
2519
2615
  href: string;
2520
- label: string;
2521
- type?: string | undefined;
2522
2616
  icon?: string | {
2523
2617
  name: string;
2524
2618
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2525
2619
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2526
2620
  } | undefined;
2621
+ label?: string | undefined;
2527
2622
  } | {
2528
- type: "github";
2623
+ type: "discord";
2529
2624
  href: string;
2530
2625
  icon?: string | {
2531
2626
  name: string;
@@ -2534,14 +2629,14 @@ export declare const palmConfigSchema: z.ZodObject<{
2534
2629
  } | undefined;
2535
2630
  label?: string | undefined;
2536
2631
  } | {
2537
- type: "discord";
2538
2632
  href: string;
2633
+ label: string;
2634
+ type?: string | undefined;
2539
2635
  icon?: string | {
2540
2636
  name: string;
2541
2637
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2542
2638
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
2543
2639
  } | undefined;
2544
- label?: string | undefined;
2545
2640
  })[] | undefined;
2546
2641
  } | undefined;
2547
2642
  appearance?: {