@mintlify/validation 0.1.251 → 0.1.253

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 (26) hide show
  1. package/README.md +1 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/mint-config/schemas/v2/index.d.ts +920 -155
  5. package/dist/mint-config/schemas/v2/properties/api.d.ts +18 -3
  6. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +72 -12
  7. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +72 -12
  8. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +96 -12
  9. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +256 -40
  10. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +80 -20
  11. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +5 -0
  12. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +72 -12
  13. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +80 -20
  14. package/dist/mint-config/schemas/v2/properties/reusable/openapi.d.ts +22 -1
  15. package/dist/mint-config/schemas/v2/properties/reusable/openapi.js +7 -1
  16. package/dist/mint-config/schemas/v2/themes/linden.d.ts +182 -29
  17. package/dist/mint-config/schemas/v2/themes/maple.d.ts +182 -29
  18. package/dist/mint-config/schemas/v2/themes/mint.d.ts +182 -29
  19. package/dist/mint-config/schemas/v2/themes/palm.d.ts +182 -29
  20. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +146 -23
  21. package/dist/mint-config/schemas/v2/themes/willow.d.ts +182 -29
  22. package/dist/mint-config/validateConfig.d.ts +4333 -0
  23. package/dist/mint-config/{validateMintConfig.js → validateConfig.js} +10 -0
  24. package/dist/tsconfig.build.tsbuildinfo +1 -1
  25. package/package.json +3 -3
  26. package/dist/mint-config/validateMintConfig.d.ts +0 -478
@@ -379,11 +379,26 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
379
379
  }, {
380
380
  href: string;
381
381
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
382
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
382
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
383
+ source: z.ZodEffects<z.ZodString, string, string>;
384
+ directory: z.ZodOptional<z.ZodString>;
385
+ }, "strict", z.ZodTypeAny, {
386
+ source: string;
387
+ directory?: string | undefined;
388
+ }, {
389
+ source: string;
390
+ directory?: string | undefined;
391
+ }>]>>;
383
392
  }, "strip", z.ZodTypeAny, {
384
- openapi?: string | string[] | undefined;
393
+ openapi?: string | string[] | {
394
+ source: string;
395
+ directory?: string | undefined;
396
+ } | undefined;
385
397
  }, {
386
- openapi?: string | string[] | undefined;
398
+ openapi?: string | string[] | {
399
+ source: string;
400
+ directory?: string | undefined;
401
+ } | undefined;
387
402
  }>>, "many">;
388
403
  }, "strip", z.ZodTypeAny, {
389
404
  languages: any[];
@@ -421,11 +436,26 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
421
436
  }, {
422
437
  href: string;
423
438
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
424
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
439
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
440
+ source: z.ZodEffects<z.ZodString, string, string>;
441
+ directory: z.ZodOptional<z.ZodString>;
442
+ }, "strict", z.ZodTypeAny, {
443
+ source: string;
444
+ directory?: string | undefined;
445
+ }, {
446
+ source: string;
447
+ directory?: string | undefined;
448
+ }>]>>;
425
449
  }, "strip", z.ZodTypeAny, {
426
- openapi?: string | string[] | undefined;
450
+ openapi?: string | string[] | {
451
+ source: string;
452
+ directory?: string | undefined;
453
+ } | undefined;
427
454
  }, {
428
- openapi?: string | string[] | undefined;
455
+ openapi?: string | string[] | {
456
+ source: string;
457
+ directory?: string | undefined;
458
+ } | undefined;
429
459
  }>>, "many">;
430
460
  }, "strip", z.ZodTypeAny, {
431
461
  versions: any[];
@@ -499,11 +529,26 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
499
529
  }, {
500
530
  href: string;
501
531
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
502
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
532
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
533
+ source: z.ZodEffects<z.ZodString, string, string>;
534
+ directory: z.ZodOptional<z.ZodString>;
535
+ }, "strict", z.ZodTypeAny, {
536
+ source: string;
537
+ directory?: string | undefined;
538
+ }, {
539
+ source: string;
540
+ directory?: string | undefined;
541
+ }>]>>;
503
542
  }, "strip", z.ZodTypeAny, {
504
- openapi?: string | string[] | undefined;
543
+ openapi?: string | string[] | {
544
+ source: string;
545
+ directory?: string | undefined;
546
+ } | undefined;
505
547
  }, {
506
- openapi?: string | string[] | undefined;
548
+ openapi?: string | string[] | {
549
+ source: string;
550
+ directory?: string | undefined;
551
+ } | undefined;
507
552
  }>>, "many">;
508
553
  }, "strip", z.ZodTypeAny, {
509
554
  tabs: any[];
@@ -577,11 +622,26 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
577
622
  }, {
578
623
  href: string;
579
624
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
580
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
625
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
626
+ source: z.ZodEffects<z.ZodString, string, string>;
627
+ directory: z.ZodOptional<z.ZodString>;
628
+ }, "strict", z.ZodTypeAny, {
629
+ source: string;
630
+ directory?: string | undefined;
631
+ }, {
632
+ source: string;
633
+ directory?: string | undefined;
634
+ }>]>>;
581
635
  }, "strip", z.ZodTypeAny, {
582
- openapi?: string | string[] | undefined;
636
+ openapi?: string | string[] | {
637
+ source: string;
638
+ directory?: string | undefined;
639
+ } | undefined;
583
640
  }, {
584
- openapi?: string | string[] | undefined;
641
+ openapi?: string | string[] | {
642
+ source: string;
643
+ directory?: string | undefined;
644
+ } | undefined;
585
645
  }>>, "many">;
586
646
  }, "strip", z.ZodTypeAny, {
587
647
  dropdowns: any[];
@@ -691,11 +751,26 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
691
751
  }, {
692
752
  href: string;
693
753
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
694
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
754
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
755
+ source: z.ZodEffects<z.ZodString, string, string>;
756
+ directory: z.ZodOptional<z.ZodString>;
757
+ }, "strict", z.ZodTypeAny, {
758
+ source: string;
759
+ directory?: string | undefined;
760
+ }, {
761
+ source: string;
762
+ directory?: string | undefined;
763
+ }>]>>;
695
764
  }, "strip", z.ZodTypeAny, {
696
- openapi?: string | string[] | undefined;
765
+ openapi?: string | string[] | {
766
+ source: string;
767
+ directory?: string | undefined;
768
+ } | undefined;
697
769
  }, {
698
- openapi?: string | string[] | undefined;
770
+ openapi?: string | string[] | {
771
+ source: string;
772
+ directory?: string | undefined;
773
+ } | undefined;
699
774
  }>>, "many">;
700
775
  }, "strip", z.ZodTypeAny, {
701
776
  anchors: any[];
@@ -869,11 +944,32 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
869
944
  isPublic?: boolean | undefined;
870
945
  } | undefined;
871
946
  }>, z.ZodUnion<[z.ZodObject<{
872
- openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
947
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
948
+ source: z.ZodEffects<z.ZodString, string, string>;
949
+ directory: z.ZodOptional<z.ZodString>;
950
+ }, "strict", z.ZodTypeAny, {
951
+ source: string;
952
+ directory?: string | undefined;
953
+ }, {
954
+ source: string;
955
+ directory?: string | undefined;
956
+ }>]>;
873
957
  }, "strip", z.ZodTypeAny, {
874
- openapi: (string | string[]) & (string | string[] | undefined);
958
+ openapi: (string | string[] | {
959
+ source: string;
960
+ directory?: string | undefined;
961
+ }) & (string | string[] | {
962
+ source: string;
963
+ directory?: string | undefined;
964
+ } | undefined);
875
965
  }, {
876
- openapi: (string | string[]) & (string | string[] | undefined);
966
+ openapi: (string | string[] | {
967
+ source: string;
968
+ directory?: string | undefined;
969
+ }) & (string | string[] | {
970
+ source: string;
971
+ directory?: string | undefined;
972
+ } | undefined);
877
973
  }>, z.ZodLazy<z.ZodObject<{
878
974
  pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
879
975
  }, "strip", z.ZodTypeAny, {
@@ -917,7 +1013,13 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
917
1013
  isPublic?: boolean | undefined;
918
1014
  } | undefined;
919
1015
  } & ({
920
- openapi: (string | string[]) & (string | string[] | undefined);
1016
+ openapi: (string | string[] | {
1017
+ source: string;
1018
+ directory?: string | undefined;
1019
+ }) & (string | string[] | {
1020
+ source: string;
1021
+ directory?: string | undefined;
1022
+ } | undefined);
921
1023
  } | {
922
1024
  pages: any[];
923
1025
  }))[];
@@ -957,7 +1059,13 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodObject<{
957
1059
  isPublic?: boolean | undefined;
958
1060
  } | undefined;
959
1061
  } & ({
960
- openapi: (string | string[]) & (string | string[] | undefined);
1062
+ openapi: (string | string[] | {
1063
+ source: string;
1064
+ directory?: string | undefined;
1065
+ }) & (string | string[] | {
1066
+ source: string;
1067
+ directory?: string | undefined;
1068
+ } | undefined);
961
1069
  } | {
962
1070
  pages: any[];
963
1071
  }))[];
@@ -1347,11 +1455,26 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1347
1455
  }, {
1348
1456
  href: string;
1349
1457
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
1350
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
1458
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
1459
+ source: z.ZodEffects<z.ZodString, string, string>;
1460
+ directory: z.ZodOptional<z.ZodString>;
1461
+ }, "strict", z.ZodTypeAny, {
1462
+ source: string;
1463
+ directory?: string | undefined;
1464
+ }, {
1465
+ source: string;
1466
+ directory?: string | undefined;
1467
+ }>]>>;
1351
1468
  }, "strip", z.ZodTypeAny, {
1352
- openapi?: string | string[] | undefined;
1469
+ openapi?: string | string[] | {
1470
+ source: string;
1471
+ directory?: string | undefined;
1472
+ } | undefined;
1353
1473
  }, {
1354
- openapi?: string | string[] | undefined;
1474
+ openapi?: string | string[] | {
1475
+ source: string;
1476
+ directory?: string | undefined;
1477
+ } | undefined;
1355
1478
  }>>, "many">;
1356
1479
  }, "strip", z.ZodTypeAny, {
1357
1480
  languages: any[];
@@ -1389,11 +1512,26 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1389
1512
  }, {
1390
1513
  href: string;
1391
1514
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
1392
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
1515
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
1516
+ source: z.ZodEffects<z.ZodString, string, string>;
1517
+ directory: z.ZodOptional<z.ZodString>;
1518
+ }, "strict", z.ZodTypeAny, {
1519
+ source: string;
1520
+ directory?: string | undefined;
1521
+ }, {
1522
+ source: string;
1523
+ directory?: string | undefined;
1524
+ }>]>>;
1393
1525
  }, "strip", z.ZodTypeAny, {
1394
- openapi?: string | string[] | undefined;
1526
+ openapi?: string | string[] | {
1527
+ source: string;
1528
+ directory?: string | undefined;
1529
+ } | undefined;
1395
1530
  }, {
1396
- openapi?: string | string[] | undefined;
1531
+ openapi?: string | string[] | {
1532
+ source: string;
1533
+ directory?: string | undefined;
1534
+ } | undefined;
1397
1535
  }>>, "many">;
1398
1536
  }, "strip", z.ZodTypeAny, {
1399
1537
  versions: any[];
@@ -1467,11 +1605,26 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1467
1605
  }, {
1468
1606
  href: string;
1469
1607
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
1470
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
1608
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
1609
+ source: z.ZodEffects<z.ZodString, string, string>;
1610
+ directory: z.ZodOptional<z.ZodString>;
1611
+ }, "strict", z.ZodTypeAny, {
1612
+ source: string;
1613
+ directory?: string | undefined;
1614
+ }, {
1615
+ source: string;
1616
+ directory?: string | undefined;
1617
+ }>]>>;
1471
1618
  }, "strip", z.ZodTypeAny, {
1472
- openapi?: string | string[] | undefined;
1619
+ openapi?: string | string[] | {
1620
+ source: string;
1621
+ directory?: string | undefined;
1622
+ } | undefined;
1473
1623
  }, {
1474
- openapi?: string | string[] | undefined;
1624
+ openapi?: string | string[] | {
1625
+ source: string;
1626
+ directory?: string | undefined;
1627
+ } | undefined;
1475
1628
  }>>, "many">;
1476
1629
  }, "strip", z.ZodTypeAny, {
1477
1630
  tabs: any[];
@@ -1545,11 +1698,26 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1545
1698
  }, {
1546
1699
  href: string;
1547
1700
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
1548
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
1701
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
1702
+ source: z.ZodEffects<z.ZodString, string, string>;
1703
+ directory: z.ZodOptional<z.ZodString>;
1704
+ }, "strict", z.ZodTypeAny, {
1705
+ source: string;
1706
+ directory?: string | undefined;
1707
+ }, {
1708
+ source: string;
1709
+ directory?: string | undefined;
1710
+ }>]>>;
1549
1711
  }, "strip", z.ZodTypeAny, {
1550
- openapi?: string | string[] | undefined;
1712
+ openapi?: string | string[] | {
1713
+ source: string;
1714
+ directory?: string | undefined;
1715
+ } | undefined;
1551
1716
  }, {
1552
- openapi?: string | string[] | undefined;
1717
+ openapi?: string | string[] | {
1718
+ source: string;
1719
+ directory?: string | undefined;
1720
+ } | undefined;
1553
1721
  }>>, "many">;
1554
1722
  }, "strip", z.ZodTypeAny, {
1555
1723
  dropdowns: any[];
@@ -1659,11 +1827,26 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1659
1827
  }, {
1660
1828
  href: string;
1661
1829
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
1662
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
1830
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
1831
+ source: z.ZodEffects<z.ZodString, string, string>;
1832
+ directory: z.ZodOptional<z.ZodString>;
1833
+ }, "strict", z.ZodTypeAny, {
1834
+ source: string;
1835
+ directory?: string | undefined;
1836
+ }, {
1837
+ source: string;
1838
+ directory?: string | undefined;
1839
+ }>]>>;
1663
1840
  }, "strip", z.ZodTypeAny, {
1664
- openapi?: string | string[] | undefined;
1841
+ openapi?: string | string[] | {
1842
+ source: string;
1843
+ directory?: string | undefined;
1844
+ } | undefined;
1665
1845
  }, {
1666
- openapi?: string | string[] | undefined;
1846
+ openapi?: string | string[] | {
1847
+ source: string;
1848
+ directory?: string | undefined;
1849
+ } | undefined;
1667
1850
  }>>, "many">;
1668
1851
  }, "strip", z.ZodTypeAny, {
1669
1852
  anchors: any[];
@@ -1837,11 +2020,32 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1837
2020
  isPublic?: boolean | undefined;
1838
2021
  } | undefined;
1839
2022
  }>, z.ZodUnion<[z.ZodObject<{
1840
- openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
2023
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
2024
+ source: z.ZodEffects<z.ZodString, string, string>;
2025
+ directory: z.ZodOptional<z.ZodString>;
2026
+ }, "strict", z.ZodTypeAny, {
2027
+ source: string;
2028
+ directory?: string | undefined;
2029
+ }, {
2030
+ source: string;
2031
+ directory?: string | undefined;
2032
+ }>]>;
1841
2033
  }, "strip", z.ZodTypeAny, {
1842
- openapi: (string | string[]) & (string | string[] | undefined);
2034
+ openapi: (string | string[] | {
2035
+ source: string;
2036
+ directory?: string | undefined;
2037
+ }) & (string | string[] | {
2038
+ source: string;
2039
+ directory?: string | undefined;
2040
+ } | undefined);
1843
2041
  }, {
1844
- openapi: (string | string[]) & (string | string[] | undefined);
2042
+ openapi: (string | string[] | {
2043
+ source: string;
2044
+ directory?: string | undefined;
2045
+ }) & (string | string[] | {
2046
+ source: string;
2047
+ directory?: string | undefined;
2048
+ } | undefined);
1845
2049
  }>, z.ZodLazy<z.ZodObject<{
1846
2050
  pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
1847
2051
  }, "strip", z.ZodTypeAny, {
@@ -1885,7 +2089,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1885
2089
  isPublic?: boolean | undefined;
1886
2090
  } | undefined;
1887
2091
  } & ({
1888
- openapi: (string | string[]) & (string | string[] | undefined);
2092
+ openapi: (string | string[] | {
2093
+ source: string;
2094
+ directory?: string | undefined;
2095
+ }) & (string | string[] | {
2096
+ source: string;
2097
+ directory?: string | undefined;
2098
+ } | undefined);
1889
2099
  } | {
1890
2100
  pages: any[];
1891
2101
  }))[];
@@ -1925,7 +2135,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodObject<{
1925
2135
  isPublic?: boolean | undefined;
1926
2136
  } | undefined;
1927
2137
  } & ({
1928
- openapi: (string | string[]) & (string | string[] | undefined);
2138
+ openapi: (string | string[] | {
2139
+ source: string;
2140
+ directory?: string | undefined;
2141
+ }) & (string | string[] | {
2142
+ source: string;
2143
+ directory?: string | undefined;
2144
+ } | undefined);
1929
2145
  } | {
1930
2146
  pages: any[];
1931
2147
  }))[];
@@ -46,11 +46,26 @@ export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
46
46
  }, {
47
47
  href: string;
48
48
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
49
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
50
- }, "strip", z.ZodTypeAny, {
51
- openapi?: string | string[] | undefined;
52
- }, {
53
- openapi?: string | string[] | undefined;
49
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
50
+ source: z.ZodEffects<z.ZodString, string, string>;
51
+ directory: z.ZodOptional<z.ZodString>;
52
+ }, "strict", z.ZodTypeAny, {
53
+ source: string;
54
+ directory?: string | undefined;
55
+ }, {
56
+ source: string;
57
+ directory?: string | undefined;
58
+ }>]>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ openapi?: string | string[] | {
61
+ source: string;
62
+ directory?: string | undefined;
63
+ } | undefined;
64
+ }, {
65
+ openapi?: string | string[] | {
66
+ source: string;
67
+ directory?: string | undefined;
68
+ } | undefined;
54
69
  }>>;
55
70
  export declare const decoratedLanguageSchema: z.ZodIntersection<z.ZodObject<{
56
71
  language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
@@ -83,11 +98,26 @@ export declare const decoratedLanguageSchema: z.ZodIntersection<z.ZodObject<{
83
98
  }, {
84
99
  href: string;
85
100
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
86
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
87
- }, "strip", z.ZodTypeAny, {
88
- openapi?: string | string[] | undefined;
89
- }, {
90
- openapi?: string | string[] | undefined;
101
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
102
+ source: z.ZodEffects<z.ZodString, string, string>;
103
+ directory: z.ZodOptional<z.ZodString>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ source: string;
106
+ directory?: string | undefined;
107
+ }, {
108
+ source: string;
109
+ directory?: string | undefined;
110
+ }>]>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ openapi?: string | string[] | {
113
+ source: string;
114
+ directory?: string | undefined;
115
+ } | undefined;
116
+ }, {
117
+ openapi?: string | string[] | {
118
+ source: string;
119
+ directory?: string | undefined;
120
+ } | undefined;
91
121
  }>>;
92
122
  export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
93
123
  language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
@@ -120,11 +150,26 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
120
150
  }, {
121
151
  href: string;
122
152
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
123
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
124
- }, "strip", z.ZodTypeAny, {
125
- openapi?: string | string[] | undefined;
126
- }, {
127
- openapi?: string | string[] | undefined;
153
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
154
+ source: z.ZodEffects<z.ZodString, string, string>;
155
+ directory: z.ZodOptional<z.ZodString>;
156
+ }, "strict", z.ZodTypeAny, {
157
+ source: string;
158
+ directory?: string | undefined;
159
+ }, {
160
+ source: string;
161
+ directory?: string | undefined;
162
+ }>]>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ openapi?: string | string[] | {
165
+ source: string;
166
+ directory?: string | undefined;
167
+ } | undefined;
168
+ }, {
169
+ openapi?: string | string[] | {
170
+ source: string;
171
+ directory?: string | undefined;
172
+ } | undefined;
128
173
  }>>, "many">;
129
174
  export declare const decoratedLanguagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
130
175
  language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
@@ -157,11 +202,26 @@ export declare const decoratedLanguagesSchema: z.ZodArray<z.ZodIntersection<z.Zo
157
202
  }, {
158
203
  href: string;
159
204
  }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
160
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
161
- }, "strip", z.ZodTypeAny, {
162
- openapi?: string | string[] | undefined;
163
- }, {
164
- openapi?: string | string[] | undefined;
205
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
206
+ source: z.ZodEffects<z.ZodString, string, string>;
207
+ directory: z.ZodOptional<z.ZodString>;
208
+ }, "strict", z.ZodTypeAny, {
209
+ source: string;
210
+ directory?: string | undefined;
211
+ }, {
212
+ source: string;
213
+ directory?: string | undefined;
214
+ }>]>>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ openapi?: string | string[] | {
217
+ source: string;
218
+ directory?: string | undefined;
219
+ } | undefined;
220
+ }, {
221
+ openapi?: string | string[] | {
222
+ source: string;
223
+ directory?: string | undefined;
224
+ } | undefined;
165
225
  }>>, "many">;
166
226
  export type LanguagesConfig = z.infer<typeof languagesSchema>;
167
227
  export type LanguageConfig = z.infer<typeof languageSchema>;
@@ -1,7 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { pageSchema } from '../reusable/page.js';
3
+ declare const pageOrGroupSchema: z.ZodType;
4
+ declare const decoratedPageOrGroupSchema: z.ZodType;
3
5
  export declare const pagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
4
6
  export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
5
7
  export type PageConfig = z.infer<typeof pageSchema>;
6
8
  export type PagesConfig = z.infer<typeof pagesSchema>;
7
9
  export type DecoratedPagesConfig = z.infer<typeof decoratedPagesSchema>;
10
+ export type PageOrGroupConfig = z.infer<typeof pageOrGroupSchema>;
11
+ export type DecoratedPageOrGroupConfig = z.infer<typeof decoratedPageOrGroupSchema>;
12
+ export {};