@mintlify/validation 0.1.660 → 0.1.662

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/mint-config/schemas/v2/index.d.ts +520 -0
  2. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +6 -0
  3. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +2 -7
  4. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +6 -0
  5. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +2 -8
  6. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +13 -0
  7. package/dist/mint-config/schemas/v2/properties/navigation/groups.js +10 -19
  8. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +43 -0
  9. package/dist/mint-config/schemas/v2/properties/navigation/index.js +3 -3
  10. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +6 -0
  11. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +2 -9
  12. package/dist/mint-config/schemas/v2/properties/navigation/menu.d.ts +6 -0
  13. package/dist/mint-config/schemas/v2/properties/navigation/menu.js +2 -7
  14. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +4 -0
  15. package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +6 -0
  16. package/dist/mint-config/schemas/v2/properties/navigation/products.js +2 -9
  17. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +6 -0
  18. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +2 -7
  19. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +6 -0
  20. package/dist/mint-config/schemas/v2/properties/navigation/version.js +2 -7
  21. package/dist/mint-config/schemas/v2/themes/almond.d.ts +52 -0
  22. package/dist/mint-config/schemas/v2/themes/aspen.d.ts +52 -0
  23. package/dist/mint-config/schemas/v2/themes/linden.d.ts +52 -0
  24. package/dist/mint-config/schemas/v2/themes/luma.d.ts +52 -0
  25. package/dist/mint-config/schemas/v2/themes/maple.d.ts +52 -0
  26. package/dist/mint-config/schemas/v2/themes/mint.d.ts +52 -0
  27. package/dist/mint-config/schemas/v2/themes/palm.d.ts +52 -0
  28. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +32 -0
  29. package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +52 -0
  30. package/dist/mint-config/schemas/v2/themes/willow.d.ts +52 -0
  31. package/dist/mint-config/validateConfig.d.ts +180 -0
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/dist/types/deployment/assistant.d.ts +2 -1
  34. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { AnchorNavigation } from './divisionNav.js';
3
3
  export declare const baseAnchorSchema: z.ZodObject<{
4
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
4
5
  anchor: z.ZodString;
5
6
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
6
7
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -37,6 +38,7 @@ export declare const baseAnchorSchema: z.ZodObject<{
37
38
  light?: string | undefined;
38
39
  dark?: string | undefined;
39
40
  } | undefined;
41
+ directory?: "none" | "card" | "accordion" | undefined;
40
42
  hidden?: boolean | undefined;
41
43
  }, {
42
44
  anchor: string;
@@ -49,10 +51,12 @@ export declare const baseAnchorSchema: z.ZodObject<{
49
51
  light?: string | undefined;
50
52
  dark?: string | undefined;
51
53
  } | undefined;
54
+ directory?: "none" | "card" | "accordion" | undefined;
52
55
  hidden?: boolean | undefined;
53
56
  }>;
54
57
  export type BaseAnchorSchema = z.infer<typeof baseAnchorSchema>;
55
58
  export declare const nonRecursiveAnchorSchema: z.ZodObject<z.objectUtil.extendShape<{
59
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
56
60
  anchor: z.ZodString;
57
61
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
58
62
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -92,6 +96,7 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<z.objectUtil.extendSh
92
96
  light?: string | undefined;
93
97
  dark?: string | undefined;
94
98
  } | undefined;
99
+ directory?: "none" | "card" | "accordion" | undefined;
95
100
  hidden?: boolean | undefined;
96
101
  }, {
97
102
  href: string;
@@ -105,6 +110,7 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<z.objectUtil.extendSh
105
110
  light?: string | undefined;
106
111
  dark?: string | undefined;
107
112
  } | undefined;
113
+ directory?: "none" | "card" | "accordion" | undefined;
108
114
  hidden?: boolean | undefined;
109
115
  }>;
110
116
  export declare const anchorSchema: z.ZodType<AnchorNavigation<'default'>>;
@@ -7,18 +7,13 @@ import { iconSchema } from '../reusable/icon.js';
7
7
  import { openApiSchema } from '../reusable/openapi.js';
8
8
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
9
9
  import { globalSchema } from './global.js';
10
- import { decoratedGroupsSchema, groupsSchema } from './groups.js';
10
+ import { decoratedGroupsSchema, directoryField, groupsSchema } from './groups.js';
11
11
  import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
12
12
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
13
13
  import { decoratedProductsSchema, productsSchema } from './products.js';
14
14
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
15
15
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
16
- export const baseAnchorSchema = z.object({
17
- anchor: z.string().nonempty().describe('The name of the anchor'),
18
- icon: iconSchema.optional(),
19
- color: colorSchemaWithOptionalLightAndDark.optional(),
20
- hidden: hiddenSchema.optional(),
21
- });
16
+ export const baseAnchorSchema = z.object(Object.assign({ anchor: z.string().nonempty().describe('The name of the anchor'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), hidden: hiddenSchema.optional() }, directoryField));
22
17
  export const nonRecursiveAnchorSchema = baseAnchorSchema.extend({ href: hrefSchema });
23
18
  export const anchorSchema = z.union([
24
19
  baseAnchorSchema.extend({
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { DropdownNavigation } from './divisionNav.js';
3
3
  export declare const baseDropdownSchema: z.ZodObject<{
4
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
4
5
  dropdown: z.ZodString;
5
6
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
6
7
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -38,6 +39,7 @@ export declare const baseDropdownSchema: z.ZodObject<{
38
39
  light?: string | undefined;
39
40
  dark?: string | undefined;
40
41
  } | undefined;
42
+ directory?: "none" | "card" | "accordion" | undefined;
41
43
  description?: string | undefined;
42
44
  hidden?: boolean | undefined;
43
45
  }, {
@@ -51,11 +53,13 @@ export declare const baseDropdownSchema: z.ZodObject<{
51
53
  light?: string | undefined;
52
54
  dark?: string | undefined;
53
55
  } | undefined;
56
+ directory?: "none" | "card" | "accordion" | undefined;
54
57
  description?: string | undefined;
55
58
  hidden?: boolean | undefined;
56
59
  }>;
57
60
  export type BaseDropdownSchema = z.infer<typeof baseDropdownSchema>;
58
61
  export declare const nonRecursiveDropdownSchema: z.ZodObject<z.objectUtil.extendShape<{
62
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
59
63
  dropdown: z.ZodString;
60
64
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
61
65
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -96,6 +100,7 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<z.objectUtil.extend
96
100
  light?: string | undefined;
97
101
  dark?: string | undefined;
98
102
  } | undefined;
103
+ directory?: "none" | "card" | "accordion" | undefined;
99
104
  description?: string | undefined;
100
105
  hidden?: boolean | undefined;
101
106
  }, {
@@ -110,6 +115,7 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<z.objectUtil.extend
110
115
  light?: string | undefined;
111
116
  dark?: string | undefined;
112
117
  } | undefined;
118
+ directory?: "none" | "card" | "accordion" | undefined;
113
119
  description?: string | undefined;
114
120
  hidden?: boolean | undefined;
115
121
  }>;
@@ -7,19 +7,13 @@ import { iconSchema } from '../reusable/icon.js';
7
7
  import { openApiSchema } from '../reusable/openapi.js';
8
8
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
9
9
  import { globalSchema } from './global.js';
10
- import { decoratedGroupsSchema, groupsSchema } from './groups.js';
10
+ import { decoratedGroupsSchema, directoryField, groupsSchema } from './groups.js';
11
11
  import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
12
12
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
13
13
  import { decoratedProductsSchema, productsSchema } from './products.js';
14
14
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
15
15
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
16
- export const baseDropdownSchema = z.object({
17
- dropdown: z.string().nonempty().describe('The name of the dropdown'),
18
- icon: iconSchema.optional(),
19
- color: colorSchemaWithOptionalLightAndDark.optional(),
20
- description: z.string().optional().describe('The description of the dropdown'),
21
- hidden: hiddenSchema.optional(),
22
- });
16
+ export const baseDropdownSchema = z.object(Object.assign({ dropdown: z.string().nonempty().describe('The name of the dropdown'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the dropdown'), hidden: hiddenSchema.optional() }, directoryField));
23
17
  export const nonRecursiveDropdownSchema = baseDropdownSchema.extend({ href: hrefSchema });
24
18
  export const dropdownSchema = z.union([
25
19
  baseDropdownSchema.extend({
@@ -1,6 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  import { GroupNavigation } from './divisionNav.js';
3
+ /** How automatic directory UI is shown for group roots under this navigation node. Inherits through `navigation`. */
4
+ export declare const NAVIGATION_DIRECTORY: readonly ["none", "accordion", "card"];
5
+ export type NavigationDirectory = (typeof NAVIGATION_DIRECTORY)[number];
6
+ export declare const directoryField: {
7
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
8
+ };
3
9
  export declare const baseGroupSchema: z.ZodObject<{
10
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
4
11
  group: z.ZodString;
5
12
  public: z.ZodOptional<z.ZodBoolean>;
6
13
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -29,6 +36,7 @@ export declare const baseGroupSchema: z.ZodObject<{
29
36
  } | undefined;
30
37
  expanded?: boolean | undefined;
31
38
  public?: boolean | undefined;
39
+ directory?: "none" | "card" | "accordion" | undefined;
32
40
  tag?: string | undefined;
33
41
  hidden?: boolean | undefined;
34
42
  root?: string | undefined;
@@ -41,6 +49,7 @@ export declare const baseGroupSchema: z.ZodObject<{
41
49
  } | undefined;
42
50
  expanded?: boolean | undefined;
43
51
  public?: boolean | undefined;
52
+ directory?: "none" | "card" | "accordion" | undefined;
44
53
  tag?: string | undefined;
45
54
  hidden?: boolean | undefined;
46
55
  root?: string | undefined;
@@ -57,6 +66,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<{
57
66
  } | undefined;
58
67
  expanded?: boolean | undefined;
59
68
  public?: boolean | undefined;
69
+ directory?: "none" | "card" | "accordion" | undefined;
60
70
  tag?: string | undefined;
61
71
  hidden?: boolean | undefined;
62
72
  root?: string | undefined;
@@ -80,6 +90,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<{
80
90
  } | undefined;
81
91
  expanded?: boolean | undefined;
82
92
  public?: boolean | undefined;
93
+ directory?: "none" | "card" | "accordion" | undefined;
83
94
  tag?: string | undefined;
84
95
  hidden?: boolean | undefined;
85
96
  root?: string | undefined;
@@ -104,6 +115,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
104
115
  } | undefined;
105
116
  expanded?: boolean | undefined;
106
117
  public?: boolean | undefined;
118
+ directory?: "none" | "card" | "accordion" | undefined;
107
119
  tag?: string | undefined;
108
120
  hidden?: boolean | undefined;
109
121
  root?: string | undefined;
@@ -119,6 +131,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
119
131
  } | undefined;
120
132
  expanded?: boolean | undefined;
121
133
  public?: boolean | undefined;
134
+ directory?: "none" | "card" | "accordion" | undefined;
122
135
  tag?: string | undefined;
123
136
  hidden?: boolean | undefined;
124
137
  root?: string | undefined;
@@ -5,15 +5,15 @@ import { iconSchema } from '../reusable/icon.js';
5
5
  import { openApiSchema } from '../reusable/openapi.js';
6
6
  import { decoratedPageSchema, pageSchema } from '../reusable/page.js';
7
7
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
8
- export const baseGroupSchema = z.object({
9
- group: z.string().nonempty().describe('The name of the group'),
10
- public: z.boolean().optional().describe('Whether the group is public'),
11
- icon: iconSchema.optional(),
12
- hidden: hiddenSchema.optional(),
13
- root: pageSchema.optional(),
14
- tag: z.string().optional().describe('Tag for the group'),
15
- expanded: z.boolean().optional().describe('Whether the group is expanded by default'),
16
- });
8
+ /** How automatic directory UI is shown for group roots under this navigation node. Inherits through `navigation`. */
9
+ export const NAVIGATION_DIRECTORY = ['none', 'accordion', 'card'];
10
+ export const directoryField = {
11
+ directory: z
12
+ .enum(NAVIGATION_DIRECTORY)
13
+ .optional()
14
+ .describe('Directory layout for this navigation node and its descendants. "accordion" and "card" show automatic directory UI on eligible root pages; "none" disables it. Inherits recursively; descendants can override.'),
15
+ };
16
+ export const baseGroupSchema = z.object(Object.assign({ group: z.string().nonempty().describe('The name of the group'), public: z.boolean().optional().describe('Whether the group is public'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), root: pageSchema.optional(), tag: z.string().optional().describe('Tag for the group'), expanded: z.boolean().optional().describe('Whether the group is expanded by default') }, directoryField));
17
17
  export const groupSchema = z
18
18
  .union([
19
19
  baseGroupSchema.extend({
@@ -28,16 +28,7 @@ export const groupSchema = z
28
28
  ])
29
29
  .describe('Organizing by groups');
30
30
  export const decoratedGroupSchema = z
31
- .object({
32
- group: z.string().nonempty().describe('The name of the group'),
33
- public: z.boolean().optional().describe('Whether the group is public'),
34
- icon: iconSchema.optional(),
35
- hidden: hiddenSchema.optional(),
36
- root: decoratedPageSchema.optional(),
37
- pages: z.lazy(() => decoratedPagesSchema),
38
- tag: z.string().optional().describe('Tag for the group'),
39
- expanded: z.boolean().optional().describe('Whether the group is expanded by default'),
40
- })
31
+ .object(Object.assign({ group: z.string().nonempty().describe('The name of the group'), public: z.boolean().optional().describe('Whether the group is public'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), root: decoratedPageSchema.optional(), pages: z.lazy(() => decoratedPagesSchema), tag: z.string().optional().describe('Tag for the group'), expanded: z.boolean().optional().describe('Whether the group is expanded by default') }, directoryField))
41
32
  .describe('Organizing by groups');
42
33
  export const groupsSchema = z
43
34
  .array(groupSchema)
@@ -8,66 +8,85 @@ import { DecoratedProductConfig, ProductConfig } from './products.js';
8
8
  import { DecoratedTabConfig, TabAlign, TabConfig } from './tabs.js';
9
9
  import { DecoratedVersionConfig, VersionConfig } from './version.js';
10
10
  export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
11
12
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
12
13
  }, {
13
14
  products: z.ZodArray<z.ZodType<import("./divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").ProductNavigation<"default">>, "many">;
14
15
  }>, "strip", z.ZodTypeAny, {
15
16
  products: import("./divisionNav.js").ProductNavigation<"default">[];
17
+ directory?: "none" | "card" | "accordion" | undefined;
16
18
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
17
19
  }, {
18
20
  products: import("./divisionNav.js").ProductNavigation<"default">[];
21
+ directory?: "none" | "card" | "accordion" | undefined;
19
22
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
20
23
  }>, z.ZodObject<z.objectUtil.extendShape<{
24
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
21
25
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
22
26
  }, {
23
27
  languages: z.ZodArray<z.ZodType<import("./divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").LanguageNavigation<"default">>, "many">;
24
28
  }>, "strip", z.ZodTypeAny, {
25
29
  languages: import("./divisionNav.js").LanguageNavigation<"default">[];
30
+ directory?: "none" | "card" | "accordion" | undefined;
26
31
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
27
32
  }, {
28
33
  languages: import("./divisionNav.js").LanguageNavigation<"default">[];
34
+ directory?: "none" | "card" | "accordion" | undefined;
29
35
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
30
36
  }>, z.ZodObject<z.objectUtil.extendShape<{
37
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
31
38
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
32
39
  }, {
33
40
  versions: z.ZodArray<z.ZodType<import("./divisionNav.js").VersionNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").VersionNavigation<"default">>, "many">;
34
41
  }>, "strip", z.ZodTypeAny, {
35
42
  versions: import("./divisionNav.js").VersionNavigation<"default">[];
43
+ directory?: "none" | "card" | "accordion" | undefined;
36
44
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
37
45
  }, {
38
46
  versions: import("./divisionNav.js").VersionNavigation<"default">[];
47
+ directory?: "none" | "card" | "accordion" | undefined;
39
48
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
40
49
  }>, z.ZodObject<z.objectUtil.extendShape<{
50
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
41
51
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
42
52
  }, {
43
53
  tabs: z.ZodArray<z.ZodType<import("./divisionNav.js").TabNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").TabNavigation<"default">>, "many">;
44
54
  }>, "strip", z.ZodTypeAny, {
45
55
  tabs: import("./divisionNav.js").TabNavigation<"default">[];
56
+ directory?: "none" | "card" | "accordion" | undefined;
46
57
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
47
58
  }, {
48
59
  tabs: import("./divisionNav.js").TabNavigation<"default">[];
60
+ directory?: "none" | "card" | "accordion" | undefined;
49
61
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
50
62
  }>, z.ZodObject<z.objectUtil.extendShape<{
63
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
51
64
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
52
65
  }, {
53
66
  dropdowns: z.ZodArray<z.ZodType<import("./divisionNav.js").DropdownNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").DropdownNavigation<"default">>, "many">;
54
67
  }>, "strip", z.ZodTypeAny, {
55
68
  dropdowns: import("./divisionNav.js").DropdownNavigation<"default">[];
69
+ directory?: "none" | "card" | "accordion" | undefined;
56
70
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
57
71
  }, {
58
72
  dropdowns: import("./divisionNav.js").DropdownNavigation<"default">[];
73
+ directory?: "none" | "card" | "accordion" | undefined;
59
74
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
60
75
  }>, z.ZodObject<z.objectUtil.extendShape<{
76
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
61
77
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
62
78
  }, {
63
79
  anchors: z.ZodArray<z.ZodType<import("./divisionNav.js").AnchorNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").AnchorNavigation<"default">>, "many">;
64
80
  }>, "strip", z.ZodTypeAny, {
65
81
  anchors: import("./divisionNav.js").AnchorNavigation<"default">[];
82
+ directory?: "none" | "card" | "accordion" | undefined;
66
83
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
67
84
  }, {
68
85
  anchors: import("./divisionNav.js").AnchorNavigation<"default">[];
86
+ directory?: "none" | "card" | "accordion" | undefined;
69
87
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
70
88
  }>, z.ZodObject<z.objectUtil.extendShape<{
89
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
71
90
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
72
91
  }, {
73
92
  groups: z.ZodArray<z.ZodType<{
@@ -79,6 +98,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
79
98
  } | undefined;
80
99
  expanded?: boolean | undefined;
81
100
  public?: boolean | undefined;
101
+ directory?: "none" | "card" | "accordion" | undefined;
82
102
  tag?: string | undefined;
83
103
  hidden?: boolean | undefined;
84
104
  root?: string | undefined;
@@ -102,6 +122,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
102
122
  } | undefined;
103
123
  expanded?: boolean | undefined;
104
124
  public?: boolean | undefined;
125
+ directory?: "none" | "card" | "accordion" | undefined;
105
126
  tag?: string | undefined;
106
127
  hidden?: boolean | undefined;
107
128
  root?: string | undefined;
@@ -127,6 +148,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
127
148
  } | undefined;
128
149
  expanded?: boolean | undefined;
129
150
  public?: boolean | undefined;
151
+ directory?: "none" | "card" | "accordion" | undefined;
130
152
  tag?: string | undefined;
131
153
  hidden?: boolean | undefined;
132
154
  root?: string | undefined;
@@ -142,6 +164,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
142
164
  } & {
143
165
  pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
144
166
  })[];
167
+ directory?: "none" | "card" | "accordion" | undefined;
145
168
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
146
169
  }, {
147
170
  groups: ({
@@ -153,6 +176,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
153
176
  } | undefined;
154
177
  expanded?: boolean | undefined;
155
178
  public?: boolean | undefined;
179
+ directory?: "none" | "card" | "accordion" | undefined;
156
180
  tag?: string | undefined;
157
181
  hidden?: boolean | undefined;
158
182
  root?: string | undefined;
@@ -168,8 +192,10 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
168
192
  } & {
169
193
  pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
170
194
  })[];
195
+ directory?: "none" | "card" | "accordion" | undefined;
171
196
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
172
197
  }>, z.ZodObject<z.objectUtil.extendShape<{
198
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
173
199
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
174
200
  }, {
175
201
  pages: z.ZodArray<z.ZodType<string | ({
@@ -181,6 +207,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
181
207
  } | undefined;
182
208
  expanded?: boolean | undefined;
183
209
  public?: boolean | undefined;
210
+ directory?: "none" | "card" | "accordion" | undefined;
184
211
  tag?: string | undefined;
185
212
  hidden?: boolean | undefined;
186
213
  root?: string | undefined;
@@ -204,6 +231,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
204
231
  } | undefined;
205
232
  expanded?: boolean | undefined;
206
233
  public?: boolean | undefined;
234
+ directory?: "none" | "card" | "accordion" | undefined;
207
235
  tag?: string | undefined;
208
236
  hidden?: boolean | undefined;
209
237
  root?: string | undefined;
@@ -229,6 +257,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
229
257
  } | undefined;
230
258
  expanded?: boolean | undefined;
231
259
  public?: boolean | undefined;
260
+ directory?: "none" | "card" | "accordion" | undefined;
232
261
  tag?: string | undefined;
233
262
  hidden?: boolean | undefined;
234
263
  root?: string | undefined;
@@ -244,6 +273,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
244
273
  } & {
245
274
  pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
246
275
  }))[];
276
+ directory?: "none" | "card" | "accordion" | undefined;
247
277
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
248
278
  }, {
249
279
  pages: (string | ({
@@ -255,6 +285,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
255
285
  } | undefined;
256
286
  expanded?: boolean | undefined;
257
287
  public?: boolean | undefined;
288
+ directory?: "none" | "card" | "accordion" | undefined;
258
289
  tag?: string | undefined;
259
290
  hidden?: boolean | undefined;
260
291
  root?: string | undefined;
@@ -270,6 +301,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exte
270
301
  } & {
271
302
  pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
272
303
  }))[];
304
+ directory?: "none" | "card" | "accordion" | undefined;
273
305
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
274
306
  }>]>;
275
307
  export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
@@ -318,6 +350,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
318
350
  } | undefined;
319
351
  expanded?: boolean | undefined;
320
352
  public?: boolean | undefined;
353
+ directory?: "none" | "card" | "accordion" | undefined;
321
354
  tag?: string | undefined;
322
355
  hidden?: boolean | undefined;
323
356
  root?: string | undefined;
@@ -333,6 +366,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
333
366
  } | undefined;
334
367
  expanded?: boolean | undefined;
335
368
  public?: boolean | undefined;
369
+ directory?: "none" | "card" | "accordion" | undefined;
336
370
  tag?: string | undefined;
337
371
  hidden?: boolean | undefined;
338
372
  root?: string | undefined;
@@ -350,6 +384,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
350
384
  } | undefined;
351
385
  expanded?: boolean | undefined;
352
386
  public?: boolean | undefined;
387
+ directory?: "none" | "card" | "accordion" | undefined;
353
388
  tag?: string | undefined;
354
389
  hidden?: boolean | undefined;
355
390
  root?: string | undefined;
@@ -367,6 +402,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
367
402
  } | undefined;
368
403
  expanded?: boolean | undefined;
369
404
  public?: boolean | undefined;
405
+ directory?: "none" | "card" | "accordion" | undefined;
370
406
  tag?: string | undefined;
371
407
  hidden?: boolean | undefined;
372
408
  root?: string | undefined;
@@ -432,6 +468,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
432
468
  } | undefined;
433
469
  expanded?: boolean | undefined;
434
470
  public?: boolean | undefined;
471
+ directory?: "none" | "card" | "accordion" | undefined;
435
472
  tag?: string | undefined;
436
473
  hidden?: boolean | undefined;
437
474
  root?: string | undefined;
@@ -495,6 +532,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
495
532
  } | undefined;
496
533
  expanded?: boolean | undefined;
497
534
  public?: boolean | undefined;
535
+ directory?: "none" | "card" | "accordion" | undefined;
498
536
  tag?: string | undefined;
499
537
  hidden?: boolean | undefined;
500
538
  root?: string | undefined;
@@ -560,6 +598,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
560
598
  } | undefined;
561
599
  expanded?: boolean | undefined;
562
600
  public?: boolean | undefined;
601
+ directory?: "none" | "card" | "accordion" | undefined;
563
602
  tag?: string | undefined;
564
603
  hidden?: boolean | undefined;
565
604
  root?: string | undefined;
@@ -625,6 +664,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
625
664
  } | undefined;
626
665
  expanded?: boolean | undefined;
627
666
  public?: boolean | undefined;
667
+ directory?: "none" | "card" | "accordion" | undefined;
628
668
  tag?: string | undefined;
629
669
  hidden?: boolean | undefined;
630
670
  root?: string | undefined;
@@ -633,10 +673,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
633
673
  root?: import("../index.js").DecoratedPageConfig;
634
674
  }))[];
635
675
  }>]>, z.ZodObject<{
676
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
636
677
  global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
637
678
  }, "strip", z.ZodTypeAny, {
679
+ directory?: "none" | "card" | "accordion" | undefined;
638
680
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
639
681
  }, {
682
+ directory?: "none" | "card" | "accordion" | undefined;
640
683
  global?: import("./divisionNav.js").GlobalNavigation | undefined;
641
684
  }>>;
642
685
  export type NavigationConfig = z.infer<typeof navigationSchema>;
@@ -2,13 +2,13 @@ import { z } from 'zod';
2
2
  import { anchorsSchema, decoratedAnchorsSchema, } from './anchors.js';
3
3
  import { decoratedDropdownsSchema, dropdownsSchema, } from './dropdown.js';
4
4
  import { globalSchema } from './global.js';
5
- import { decoratedGroupsSchema, groupsSchema, } from './groups.js';
5
+ import { decoratedGroupsSchema, directoryField, groupsSchema, } from './groups.js';
6
6
  import { decoratedLanguagesSchema, languagesSchema, } from './languages.js';
7
7
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
8
8
  import { decoratedProductsSchema, productsSchema, } from './products.js';
9
9
  import { decoratedTabsSchema, tabsSchema, } from './tabs.js';
10
10
  import { decoratedVersionsSchema, versionsSchema, } from './version.js';
11
- const baseNavigationSchema = z.object({ global: globalSchema.optional() });
11
+ const baseNavigationSchema = z.object(Object.assign({ global: globalSchema.optional() }, directoryField));
12
12
  export const navigationSchema = z
13
13
  .union([
14
14
  baseNavigationSchema.extend({ products: productsSchema }),
@@ -32,5 +32,5 @@ export const decoratedNavigationSchema = z
32
32
  z.object({ groups: decoratedGroupsSchema }),
33
33
  z.object({ pages: decoratedPagesSchema }),
34
34
  ])
35
- .and(z.object({ global: globalSchema.optional() }))
35
+ .and(z.object(Object.assign({ global: globalSchema.optional() }, directoryField)))
36
36
  .describe('The navigation structure of the content');
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { LanguageNavigation } from './divisionNav.js';
3
3
  export declare const baseLanguageSchema: z.ZodObject<{
4
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
4
5
  language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
5
6
  default: z.ZodOptional<z.ZodBoolean>;
6
7
  banner: z.ZodOptional<z.ZodObject<{
@@ -305,6 +306,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
305
306
  }[] | undefined;
306
307
  socials?: Partial<Record<"github" | "x" | "website" | "facebook" | "youtube" | "discord" | "slack" | "linkedin" | "instagram" | "hacker-news" | "medium" | "telegram" | "twitter" | "x-twitter" | "earth-americas" | "bluesky" | "threads" | "reddit" | "podcast", string>> | undefined;
307
308
  } | undefined;
309
+ directory?: "none" | "card" | "accordion" | undefined;
308
310
  hidden?: boolean | undefined;
309
311
  banner?: {
310
312
  content: string;
@@ -366,6 +368,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
366
368
  }[] | undefined;
367
369
  socials?: Partial<Record<"github" | "x" | "website" | "facebook" | "youtube" | "discord" | "slack" | "linkedin" | "instagram" | "hacker-news" | "medium" | "telegram" | "twitter" | "x-twitter" | "earth-americas" | "bluesky" | "threads" | "reddit" | "podcast", string>> | undefined;
368
370
  } | undefined;
371
+ directory?: "none" | "card" | "accordion" | undefined;
369
372
  hidden?: boolean | undefined;
370
373
  banner?: {
371
374
  content: string;
@@ -417,6 +420,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
417
420
  }>;
418
421
  export type BaseLanguageSchema = z.infer<typeof baseLanguageSchema>;
419
422
  export declare const nonRecursiveLanguageSchema: z.ZodObject<z.objectUtil.extendShape<{
423
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
420
424
  language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
421
425
  default: z.ZodOptional<z.ZodBoolean>;
422
426
  banner: z.ZodOptional<z.ZodObject<{
@@ -724,6 +728,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<z.objectUtil.extend
724
728
  }[] | undefined;
725
729
  socials?: Partial<Record<"github" | "x" | "website" | "facebook" | "youtube" | "discord" | "slack" | "linkedin" | "instagram" | "hacker-news" | "medium" | "telegram" | "twitter" | "x-twitter" | "earth-americas" | "bluesky" | "threads" | "reddit" | "podcast", string>> | undefined;
726
730
  } | undefined;
731
+ directory?: "none" | "card" | "accordion" | undefined;
727
732
  hidden?: boolean | undefined;
728
733
  banner?: {
729
734
  content: string;
@@ -786,6 +791,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<z.objectUtil.extend
786
791
  }[] | undefined;
787
792
  socials?: Partial<Record<"github" | "x" | "website" | "facebook" | "youtube" | "discord" | "slack" | "linkedin" | "instagram" | "hacker-news" | "medium" | "telegram" | "twitter" | "x-twitter" | "earth-americas" | "bluesky" | "threads" | "reddit" | "podcast", string>> | undefined;
788
793
  } | undefined;
794
+ directory?: "none" | "card" | "accordion" | undefined;
789
795
  hidden?: boolean | undefined;
790
796
  banner?: {
791
797
  content: string;
@@ -10,19 +10,12 @@ import { openApiSchema } from '../reusable/openapi.js';
10
10
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
11
11
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
12
12
  import { globalSchema } from './global.js';
13
- import { decoratedGroupsSchema, groupsSchema } from './groups.js';
13
+ import { decoratedGroupsSchema, directoryField, groupsSchema } from './groups.js';
14
14
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
15
15
  import { decoratedProductsSchema, productsSchema } from './products.js';
16
16
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
17
17
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
18
- export const baseLanguageSchema = z.object({
19
- language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'),
20
- default: z.boolean().optional().describe('Whether this language is the default language'),
21
- banner: bannerSchema.optional().describe('Banner configuration specific to this language'),
22
- footer: footerSchema.optional().describe('Footer configuration specific to this language'),
23
- navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'),
24
- hidden: hiddenSchema.optional(),
25
- });
18
+ export const baseLanguageSchema = z.object(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField));
26
19
  export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
27
20
  export const languageSchema = z
28
21
  .union([
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { MenuItemNavigation } from './divisionNav.js';
3
3
  export declare const baseMenuItemSchema: z.ZodObject<{
4
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
4
5
  item: z.ZodString;
5
6
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
6
7
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -24,6 +25,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
24
25
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
25
26
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
26
27
  } | undefined;
28
+ directory?: "none" | "card" | "accordion" | undefined;
27
29
  description?: string | undefined;
28
30
  hidden?: boolean | undefined;
29
31
  }, {
@@ -33,11 +35,13 @@ export declare const baseMenuItemSchema: z.ZodObject<{
33
35
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
34
36
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
35
37
  } | undefined;
38
+ directory?: "none" | "card" | "accordion" | undefined;
36
39
  description?: string | undefined;
37
40
  hidden?: boolean | undefined;
38
41
  }>;
39
42
  export type BaseMenuItemSchema = z.infer<typeof baseMenuItemSchema>;
40
43
  export declare const nonRecursiveMenuItemSchema: z.ZodObject<z.objectUtil.extendShape<{
44
+ directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
41
45
  item: z.ZodString;
42
46
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
43
47
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -64,6 +68,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<z.objectUtil.extend
64
68
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
65
69
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
66
70
  } | undefined;
71
+ directory?: "none" | "card" | "accordion" | undefined;
67
72
  description?: string | undefined;
68
73
  hidden?: boolean | undefined;
69
74
  }, {
@@ -74,6 +79,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<z.objectUtil.extend
74
79
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
75
80
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
76
81
  } | undefined;
82
+ directory?: "none" | "card" | "accordion" | undefined;
77
83
  description?: string | undefined;
78
84
  hidden?: boolean | undefined;
79
85
  }>;