@mintlify/prebuild 1.0.849 → 1.0.851

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.
package/dist/generate.js CHANGED
@@ -54,7 +54,11 @@ export const generateDecoratedDocsNavigationFromPages = (filenamePageMetadataMap
54
54
  if ('root' in processed && typeof processed.root === 'string') {
55
55
  processed.root = generateDecoratedPages(processed.root);
56
56
  }
57
- processed.pages = processed.pages.map((page) => typeof page === 'string' ? generateDecoratedPages(page) : traverseNav(page));
57
+ const processedPages = processed.pages.map((page) => typeof page === 'string'
58
+ ? generateDecoratedPages(page)
59
+ : traverseNav(page));
60
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
+ processed.pages = processedPages;
58
62
  }
59
63
  ['groups', ...divisions].forEach((division) => {
60
64
  const divisionNav = processed[division];
@@ -49,12 +49,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
49
49
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
50
50
  } | {
51
51
  groups: ({
52
- openapi: string | string[] | {
53
- source: string;
54
- directory?: string | undefined;
55
- };
56
52
  group: string;
57
- pages: any[];
58
53
  icon?: string | {
59
54
  name: string;
60
55
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -65,26 +60,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
65
60
  tag?: string | undefined;
66
61
  hidden?: boolean | undefined;
67
62
  root?: string | undefined;
68
- } | {
69
- group: string;
70
- pages: any[];
71
- asyncapi: string | string[] | {
63
+ } & {
64
+ openapi?: string | string[] | {
72
65
  source: string;
73
66
  directory?: string | undefined;
74
- };
75
- icon?: string | {
76
- name: string;
77
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
78
- library?: "fontawesome" | "lucide" | undefined;
79
67
  } | undefined;
80
- expanded?: boolean | undefined;
81
- public?: boolean | undefined;
82
- tag?: string | undefined;
83
- hidden?: boolean | undefined;
84
- root?: string | undefined;
85
- } | {
68
+ asyncapi?: string | string[] | {
69
+ source: string;
70
+ directory?: string | undefined;
71
+ } | undefined;
72
+ } & {
73
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
74
+ })[];
75
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
76
+ } | {
77
+ pages: (string | ({
86
78
  group: string;
87
- pages: any[];
88
79
  icon?: string | {
89
80
  name: string;
90
81
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -95,10 +86,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
95
86
  tag?: string | undefined;
96
87
  hidden?: boolean | undefined;
97
88
  root?: string | undefined;
98
- })[];
99
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
100
- } | {
101
- pages: any[];
89
+ } & {
90
+ openapi?: string | string[] | {
91
+ source: string;
92
+ directory?: string | undefined;
93
+ } | undefined;
94
+ asyncapi?: string | string[] | {
95
+ source: string;
96
+ directory?: string | undefined;
97
+ } | undefined;
98
+ } & {
99
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
100
+ }))[];
102
101
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
103
102
  };
104
103
  background?: {
@@ -395,12 +394,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
395
394
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
396
395
  } | {
397
396
  groups: ({
398
- openapi: string | string[] | {
399
- source: string;
400
- directory?: string | undefined;
401
- };
402
397
  group: string;
403
- pages: any[];
404
398
  icon?: string | {
405
399
  name: string;
406
400
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -411,26 +405,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
411
405
  tag?: string | undefined;
412
406
  hidden?: boolean | undefined;
413
407
  root?: string | undefined;
414
- } | {
415
- group: string;
416
- pages: any[];
417
- asyncapi: string | string[] | {
408
+ } & {
409
+ openapi?: string | string[] | {
418
410
  source: string;
419
411
  directory?: string | undefined;
420
- };
421
- icon?: string | {
422
- name: string;
423
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
424
- library?: "fontawesome" | "lucide" | undefined;
425
412
  } | undefined;
426
- expanded?: boolean | undefined;
427
- public?: boolean | undefined;
428
- tag?: string | undefined;
429
- hidden?: boolean | undefined;
430
- root?: string | undefined;
431
- } | {
413
+ asyncapi?: string | string[] | {
414
+ source: string;
415
+ directory?: string | undefined;
416
+ } | undefined;
417
+ } & {
418
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
419
+ })[];
420
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
421
+ } | {
422
+ pages: (string | ({
432
423
  group: string;
433
- pages: any[];
434
424
  icon?: string | {
435
425
  name: string;
436
426
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -441,10 +431,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
441
431
  tag?: string | undefined;
442
432
  hidden?: boolean | undefined;
443
433
  root?: string | undefined;
444
- })[];
445
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
446
- } | {
447
- pages: any[];
434
+ } & {
435
+ openapi?: string | string[] | {
436
+ source: string;
437
+ directory?: string | undefined;
438
+ } | undefined;
439
+ asyncapi?: string | string[] | {
440
+ source: string;
441
+ directory?: string | undefined;
442
+ } | undefined;
443
+ } & {
444
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
445
+ }))[];
448
446
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
449
447
  };
450
448
  background?: {
@@ -741,12 +739,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
741
739
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
742
740
  } | {
743
741
  groups: ({
744
- openapi: string | string[] | {
745
- source: string;
746
- directory?: string | undefined;
747
- };
748
742
  group: string;
749
- pages: any[];
750
743
  icon?: string | {
751
744
  name: string;
752
745
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -757,26 +750,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
757
750
  tag?: string | undefined;
758
751
  hidden?: boolean | undefined;
759
752
  root?: string | undefined;
760
- } | {
761
- group: string;
762
- pages: any[];
763
- asyncapi: string | string[] | {
753
+ } & {
754
+ openapi?: string | string[] | {
764
755
  source: string;
765
756
  directory?: string | undefined;
766
- };
767
- icon?: string | {
768
- name: string;
769
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
770
- library?: "fontawesome" | "lucide" | undefined;
771
757
  } | undefined;
772
- expanded?: boolean | undefined;
773
- public?: boolean | undefined;
774
- tag?: string | undefined;
775
- hidden?: boolean | undefined;
776
- root?: string | undefined;
777
- } | {
758
+ asyncapi?: string | string[] | {
759
+ source: string;
760
+ directory?: string | undefined;
761
+ } | undefined;
762
+ } & {
763
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
764
+ })[];
765
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
766
+ } | {
767
+ pages: (string | ({
778
768
  group: string;
779
- pages: any[];
780
769
  icon?: string | {
781
770
  name: string;
782
771
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -787,10 +776,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
787
776
  tag?: string | undefined;
788
777
  hidden?: boolean | undefined;
789
778
  root?: string | undefined;
790
- })[];
791
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
792
- } | {
793
- pages: any[];
779
+ } & {
780
+ openapi?: string | string[] | {
781
+ source: string;
782
+ directory?: string | undefined;
783
+ } | undefined;
784
+ asyncapi?: string | string[] | {
785
+ source: string;
786
+ directory?: string | undefined;
787
+ } | undefined;
788
+ } & {
789
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
790
+ }))[];
794
791
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
795
792
  };
796
793
  background?: {
@@ -1087,12 +1084,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1087
1084
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1088
1085
  } | {
1089
1086
  groups: ({
1090
- openapi: string | string[] | {
1091
- source: string;
1092
- directory?: string | undefined;
1093
- };
1094
1087
  group: string;
1095
- pages: any[];
1096
1088
  icon?: string | {
1097
1089
  name: string;
1098
1090
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -1103,26 +1095,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1103
1095
  tag?: string | undefined;
1104
1096
  hidden?: boolean | undefined;
1105
1097
  root?: string | undefined;
1106
- } | {
1107
- group: string;
1108
- pages: any[];
1109
- asyncapi: string | string[] | {
1098
+ } & {
1099
+ openapi?: string | string[] | {
1110
1100
  source: string;
1111
1101
  directory?: string | undefined;
1112
- };
1113
- icon?: string | {
1114
- name: string;
1115
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1116
- library?: "fontawesome" | "lucide" | undefined;
1117
1102
  } | undefined;
1118
- expanded?: boolean | undefined;
1119
- public?: boolean | undefined;
1120
- tag?: string | undefined;
1121
- hidden?: boolean | undefined;
1122
- root?: string | undefined;
1123
- } | {
1103
+ asyncapi?: string | string[] | {
1104
+ source: string;
1105
+ directory?: string | undefined;
1106
+ } | undefined;
1107
+ } & {
1108
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
1109
+ })[];
1110
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1111
+ } | {
1112
+ pages: (string | ({
1124
1113
  group: string;
1125
- pages: any[];
1126
1114
  icon?: string | {
1127
1115
  name: string;
1128
1116
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -1133,10 +1121,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1133
1121
  tag?: string | undefined;
1134
1122
  hidden?: boolean | undefined;
1135
1123
  root?: string | undefined;
1136
- })[];
1137
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1138
- } | {
1139
- pages: any[];
1124
+ } & {
1125
+ openapi?: string | string[] | {
1126
+ source: string;
1127
+ directory?: string | undefined;
1128
+ } | undefined;
1129
+ asyncapi?: string | string[] | {
1130
+ source: string;
1131
+ directory?: string | undefined;
1132
+ } | undefined;
1133
+ } & {
1134
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
1135
+ }))[];
1140
1136
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1141
1137
  };
1142
1138
  background?: {
@@ -1433,12 +1429,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1433
1429
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1434
1430
  } | {
1435
1431
  groups: ({
1436
- openapi: string | string[] | {
1437
- source: string;
1438
- directory?: string | undefined;
1439
- };
1440
1432
  group: string;
1441
- pages: any[];
1442
1433
  icon?: string | {
1443
1434
  name: string;
1444
1435
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -1449,26 +1440,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1449
1440
  tag?: string | undefined;
1450
1441
  hidden?: boolean | undefined;
1451
1442
  root?: string | undefined;
1452
- } | {
1453
- group: string;
1454
- pages: any[];
1455
- asyncapi: string | string[] | {
1443
+ } & {
1444
+ openapi?: string | string[] | {
1456
1445
  source: string;
1457
1446
  directory?: string | undefined;
1458
- };
1459
- icon?: string | {
1460
- name: string;
1461
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1462
- library?: "fontawesome" | "lucide" | undefined;
1463
1447
  } | undefined;
1464
- expanded?: boolean | undefined;
1465
- public?: boolean | undefined;
1466
- tag?: string | undefined;
1467
- hidden?: boolean | undefined;
1468
- root?: string | undefined;
1469
- } | {
1448
+ asyncapi?: string | string[] | {
1449
+ source: string;
1450
+ directory?: string | undefined;
1451
+ } | undefined;
1452
+ } & {
1453
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
1454
+ })[];
1455
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1456
+ } | {
1457
+ pages: (string | ({
1470
1458
  group: string;
1471
- pages: any[];
1472
1459
  icon?: string | {
1473
1460
  name: string;
1474
1461
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -1479,10 +1466,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1479
1466
  tag?: string | undefined;
1480
1467
  hidden?: boolean | undefined;
1481
1468
  root?: string | undefined;
1482
- })[];
1483
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1484
- } | {
1485
- pages: any[];
1469
+ } & {
1470
+ openapi?: string | string[] | {
1471
+ source: string;
1472
+ directory?: string | undefined;
1473
+ } | undefined;
1474
+ asyncapi?: string | string[] | {
1475
+ source: string;
1476
+ directory?: string | undefined;
1477
+ } | undefined;
1478
+ } & {
1479
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
1480
+ }))[];
1486
1481
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1487
1482
  };
1488
1483
  background?: {
@@ -1779,12 +1774,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1779
1774
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1780
1775
  } | {
1781
1776
  groups: ({
1782
- openapi: string | string[] | {
1783
- source: string;
1784
- directory?: string | undefined;
1785
- };
1786
1777
  group: string;
1787
- pages: any[];
1788
1778
  icon?: string | {
1789
1779
  name: string;
1790
1780
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -1795,26 +1785,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1795
1785
  tag?: string | undefined;
1796
1786
  hidden?: boolean | undefined;
1797
1787
  root?: string | undefined;
1798
- } | {
1799
- group: string;
1800
- pages: any[];
1801
- asyncapi: string | string[] | {
1788
+ } & {
1789
+ openapi?: string | string[] | {
1802
1790
  source: string;
1803
1791
  directory?: string | undefined;
1804
- };
1805
- icon?: string | {
1806
- name: string;
1807
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
1808
- library?: "fontawesome" | "lucide" | undefined;
1809
1792
  } | undefined;
1810
- expanded?: boolean | undefined;
1811
- public?: boolean | undefined;
1812
- tag?: string | undefined;
1813
- hidden?: boolean | undefined;
1814
- root?: string | undefined;
1815
- } | {
1793
+ asyncapi?: string | string[] | {
1794
+ source: string;
1795
+ directory?: string | undefined;
1796
+ } | undefined;
1797
+ } & {
1798
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
1799
+ })[];
1800
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1801
+ } | {
1802
+ pages: (string | ({
1816
1803
  group: string;
1817
- pages: any[];
1818
1804
  icon?: string | {
1819
1805
  name: string;
1820
1806
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -1825,10 +1811,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
1825
1811
  tag?: string | undefined;
1826
1812
  hidden?: boolean | undefined;
1827
1813
  root?: string | undefined;
1828
- })[];
1829
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1830
- } | {
1831
- pages: any[];
1814
+ } & {
1815
+ openapi?: string | string[] | {
1816
+ source: string;
1817
+ directory?: string | undefined;
1818
+ } | undefined;
1819
+ asyncapi?: string | string[] | {
1820
+ source: string;
1821
+ directory?: string | undefined;
1822
+ } | undefined;
1823
+ } & {
1824
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
1825
+ }))[];
1832
1826
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
1833
1827
  };
1834
1828
  background?: {
@@ -2125,12 +2119,7 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
2125
2119
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
2126
2120
  } | {
2127
2121
  groups: ({
2128
- openapi: string | string[] | {
2129
- source: string;
2130
- directory?: string | undefined;
2131
- };
2132
2122
  group: string;
2133
- pages: any[];
2134
2123
  icon?: string | {
2135
2124
  name: string;
2136
2125
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -2141,26 +2130,22 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
2141
2130
  tag?: string | undefined;
2142
2131
  hidden?: boolean | undefined;
2143
2132
  root?: string | undefined;
2144
- } | {
2145
- group: string;
2146
- pages: any[];
2147
- asyncapi: string | string[] | {
2133
+ } & {
2134
+ openapi?: string | string[] | {
2148
2135
  source: string;
2149
2136
  directory?: string | undefined;
2150
- };
2151
- icon?: string | {
2152
- name: string;
2153
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
2154
- library?: "fontawesome" | "lucide" | undefined;
2155
2137
  } | undefined;
2156
- expanded?: boolean | undefined;
2157
- public?: boolean | undefined;
2158
- tag?: string | undefined;
2159
- hidden?: boolean | undefined;
2160
- root?: string | undefined;
2161
- } | {
2138
+ asyncapi?: string | string[] | {
2139
+ source: string;
2140
+ directory?: string | undefined;
2141
+ } | undefined;
2142
+ } & {
2143
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
2144
+ })[];
2145
+ global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
2146
+ } | {
2147
+ pages: (string | ({
2162
2148
  group: string;
2163
- pages: any[];
2164
2149
  icon?: string | {
2165
2150
  name: string;
2166
2151
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
@@ -2171,10 +2156,18 @@ export declare const DocsConfigUpdater: ConfigUpdater<{
2171
2156
  tag?: string | undefined;
2172
2157
  hidden?: boolean | undefined;
2173
2158
  root?: string | undefined;
2174
- })[];
2175
- global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
2176
- } | {
2177
- pages: any[];
2159
+ } & {
2160
+ openapi?: string | string[] | {
2161
+ source: string;
2162
+ directory?: string | undefined;
2163
+ } | undefined;
2164
+ asyncapi?: string | string[] | {
2165
+ source: string;
2166
+ directory?: string | undefined;
2167
+ } | undefined;
2168
+ } & {
2169
+ pages?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").PageOrGroupNavigation<"default">[];
2170
+ }))[];
2178
2171
  global?: import("@mintlify/validation/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js").GlobalNavigation | undefined;
2179
2172
  };
2180
2173
  background?: {
@@ -66,7 +66,9 @@ export const generateAsyncApiFromDocsConfig = async (navigation, asyncApiFiles,
66
66
  ...divisionNav.nav,
67
67
  ...(divisionNav.division === 'group'
68
68
  ? {
69
- pages: 'pages' in nav ? [...nav.pages, ...allGeneratedNav] : allGeneratedNav,
69
+ pages: 'pages' in nav && Array.isArray(nav.pages)
70
+ ? [...nav.pages, ...allGeneratedNav]
71
+ : allGeneratedNav,
70
72
  }
71
73
  : {
72
74
  groups: 'groups' in nav ? [...nav.groups, ...allGeneratedNav] : allGeneratedNav,
@@ -64,7 +64,7 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
64
64
  ...divisionNav.nav,
65
65
  ...(divisionNav.division === 'group'
66
66
  ? {
67
- pages: 'pages' in nav
67
+ pages: 'pages' in nav && Array.isArray(nav.pages)
68
68
  ? [...nav.pages, ...navFromGeneratedOpenApiPages]
69
69
  : navFromGeneratedOpenApiPages,
70
70
  }
@@ -114,7 +114,8 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
114
114
  const currentOpenApiOwner = extracted.source ? nodeId : openApiOwner;
115
115
  let newNav = nav;
116
116
  if ('pages' in newNav) {
117
- newNav.pages = await Promise.all(newNav.pages.map(async (page) => {
117
+ const processedPages = await Promise.all(newNav.pages.map(async (page) => {
118
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
118
119
  if (typeof page === 'object' && page !== null && 'group' in page) {
119
120
  return processNav(page, currentOpenApi, currentDirectory, currentOpenApiOwner);
120
121
  }
@@ -213,6 +214,8 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
213
214
  }
214
215
  return page;
215
216
  }));
217
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
218
+ newNav.pages = processedPages;
216
219
  }
217
220
  for (const division of ['groups', ...divisions]) {
218
221
  if (division in newNav) {
@@ -237,12 +240,15 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
237
240
  updated = processed;
238
241
  }
239
242
  if ('pages' in updated) {
240
- updated.pages = await Promise.all(updated.pages.map(async (p) => {
243
+ const updatedPages = await Promise.all(updated.pages.map(async (p) => {
244
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
241
245
  if (typeof p === 'object' && p !== null && 'group' in p) {
242
246
  return generateBulkNav(p);
243
247
  }
244
248
  return p;
245
249
  }));
250
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
251
+ updated.pages = updatedPages;
246
252
  }
247
253
  for (const division of ['groups', ...divisions]) {
248
254
  if (division in updated) {