@mintlify/validation 0.1.296 → 0.1.298

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 (24) hide show
  1. package/dist/mint-config/schemas/v2/index.d.ts +317 -19812
  2. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +2 -2
  3. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +23 -9
  4. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +27 -6
  5. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +2 -2
  6. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +23 -9
  7. package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +2 -264
  8. package/dist/mint-config/schemas/v2/properties/navigation/global.js +2 -1
  9. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +24 -2912
  10. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +2 -2
  11. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +23 -9
  12. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +2 -2
  13. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +20 -9
  14. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +2 -2
  15. package/dist/mint-config/schemas/v2/properties/navigation/version.js +23 -9
  16. package/dist/mint-config/schemas/v2/themes/linden.d.ts +75 -3974
  17. package/dist/mint-config/schemas/v2/themes/maple.d.ts +75 -3974
  18. package/dist/mint-config/schemas/v2/themes/mint.d.ts +75 -3974
  19. package/dist/mint-config/schemas/v2/themes/palm.d.ts +75 -3974
  20. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +21 -2548
  21. package/dist/mint-config/schemas/v2/themes/willow.d.ts +75 -3974
  22. package/dist/mint-config/validateConfig.d.ts +168 -7028
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/package.json +3 -3
@@ -47,8 +47,6 @@ export declare const baseAnchorSchema: z.ZodObject<{
47
47
  hidden?: boolean | undefined;
48
48
  }>;
49
49
  export type BaseAnchorSchema = z.infer<typeof baseAnchorSchema>;
50
- export declare const anchorSchema: z.ZodType<AnchorNavigation<'default'>>;
51
- export declare const decoratedAnchorSchema: z.ZodType<AnchorNavigation<'decorated'>>;
52
50
  export declare const nonRecursiveAnchorSchema: z.ZodObject<{
53
51
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
54
52
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -98,6 +96,8 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<{
98
96
  } | undefined;
99
97
  hidden?: boolean | undefined;
100
98
  }>;
99
+ export declare const anchorSchema: z.ZodType<AnchorNavigation<'default'>>;
100
+ export declare const decoratedAnchorSchema: z.ZodType<AnchorNavigation<'decorated'>>;
101
101
  export declare const anchorsSchema: z.ZodArray<z.ZodType<AnchorNavigation<"default">, z.ZodTypeDef, AnchorNavigation<"default">>, "many">;
102
102
  export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodType<AnchorNavigation<"decorated">, z.ZodTypeDef, AnchorNavigation<"decorated">>, "many">;
103
103
  export type AnchorsConfig = z.infer<typeof anchorsSchema>;
@@ -5,6 +5,7 @@ import { hrefSchema } from '../reusable/href.js';
5
5
  import { iconSchema } from '../reusable/icon.js';
6
6
  import { openApiSchema } from '../reusable/openapi.js';
7
7
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
8
+ import { globalSchema } from './global.js';
8
9
  import { decoratedGroupsSchema, groupsSchema } from './groups.js';
9
10
  import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
10
11
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
@@ -16,44 +17,57 @@ export const baseAnchorSchema = z.object({
16
17
  color: colorSchemaWithOptionalLightAndDark.optional(),
17
18
  hidden: hiddenSchema.optional(),
18
19
  });
20
+ export const nonRecursiveAnchorSchema = baseAnchorSchema.extend({ href: hrefSchema });
19
21
  export const anchorSchema = z.union([
20
- baseAnchorSchema.extend({ href: hrefSchema, openapi: openApiSchema.optional() }),
22
+ baseAnchorSchema.extend({
23
+ href: hrefSchema,
24
+ openapi: openApiSchema.optional(),
25
+ global: z.lazy(() => globalSchema.optional()),
26
+ }),
21
27
  baseAnchorSchema.extend({
22
28
  languages: z.lazy(() => languagesSchema),
23
29
  openapi: openApiSchema.optional(),
30
+ global: z.lazy(() => globalSchema).optional(),
24
31
  }),
25
32
  baseAnchorSchema.extend({
26
33
  versions: z.lazy(() => versionsSchema),
27
34
  openapi: openApiSchema.optional(),
35
+ global: z.lazy(() => globalSchema).optional(),
28
36
  }),
29
37
  baseAnchorSchema.extend({
30
38
  dropdowns: z.lazy(() => dropdownsSchema),
31
39
  openapi: openApiSchema.optional(),
40
+ global: z.lazy(() => globalSchema).optional(),
32
41
  }),
33
42
  baseAnchorSchema.extend({
34
43
  tabs: z.lazy(() => tabsSchema),
35
44
  openapi: openApiSchema.optional(),
45
+ global: z.lazy(() => globalSchema).optional(),
36
46
  }),
37
47
  baseAnchorSchema.extend({
38
48
  groups: z.lazy(() => groupsSchema),
39
49
  openapi: openApiSchema.optional(),
50
+ global: z.lazy(() => globalSchema).optional(),
40
51
  }),
41
52
  baseAnchorSchema.extend({
42
53
  pages: z.lazy(() => pagesSchema),
43
54
  openapi: openApiSchema.optional(),
55
+ global: z.lazy(() => globalSchema).optional(),
56
+ }),
57
+ baseAnchorSchema.extend({
58
+ openapi: openApiSchema,
59
+ global: z.lazy(() => globalSchema).optional(),
44
60
  }),
45
- baseAnchorSchema.extend({ openapi: openApiSchema }),
46
61
  ]);
47
62
  export const decoratedAnchorSchema = baseAnchorSchema.and(z.union([
48
63
  z.object({ href: hrefSchema }),
49
- z.lazy(() => z.object({ languages: decoratedLanguagesSchema })),
50
- z.lazy(() => z.object({ versions: decoratedVersionsSchema })),
51
- z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema })),
52
- z.lazy(() => z.object({ tabs: decoratedTabsSchema })),
53
- z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
54
- z.lazy(() => z.object({ pages: decoratedPagesSchema })),
64
+ z.lazy(() => z.object({ languages: decoratedLanguagesSchema, global: globalSchema.optional() })),
65
+ z.lazy(() => z.object({ versions: decoratedVersionsSchema, global: globalSchema.optional() })),
66
+ z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema, global: globalSchema.optional() })),
67
+ z.lazy(() => z.object({ tabs: decoratedTabsSchema, global: globalSchema.optional() })),
68
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema, global: globalSchema.optional() })),
69
+ z.lazy(() => z.object({ pages: decoratedPagesSchema, global: globalSchema.optional() })),
55
70
  ]));
56
- export const nonRecursiveAnchorSchema = baseAnchorSchema.extend({ href: hrefSchema });
57
71
  export const anchorsSchema = z
58
72
  .array(anchorSchema)
59
73
  .min(1, 'At least one anchor must be specified')
@@ -30,7 +30,11 @@ declare const OpenApiSchema: z.ZodObject<{
30
30
  directory?: string | undefined;
31
31
  } | undefined;
32
32
  }>;
33
- type OpenApiSchema<T extends NavigationType> = T extends 'default' ? z.infer<typeof OpenApiSchema> : object;
33
+ type OtherConfigs<T extends NavigationType> = T extends 'default' ? z.infer<typeof OpenApiSchema> & {
34
+ global?: GlobalNavigation;
35
+ } : {
36
+ global?: GlobalNavigation;
37
+ };
34
38
  type BaseNavigation<T extends NavigationType, K extends Division> = {
35
39
  languages: K extends 'languages' ? never : LanguageNavigation<T>[];
36
40
  } | {
@@ -48,9 +52,26 @@ type BaseNavigation<T extends NavigationType, K extends Division> = {
48
52
  } | {
49
53
  href: string;
50
54
  };
51
- export type AnchorNavigation<T extends NavigationType> = BaseAnchorSchema & (OpenApiSchema<T> | (BaseNavigation<T, 'anchors'> & OpenApiSchema<T>));
52
- export type LanguageNavigation<T extends NavigationType> = BaseLanguageSchema & (OpenApiSchema<T> | (BaseNavigation<T, 'languages'> & OpenApiSchema<T>));
53
- export type VersionNavigation<T extends NavigationType> = BaseVersionSchema & (OpenApiSchema<T> | (BaseNavigation<T, 'versions'> & OpenApiSchema<T>));
54
- export type DropdownNavigation<T extends NavigationType> = BaseDropdownSchema & (OpenApiSchema<T> | (BaseNavigation<T, 'dropdowns'> & OpenApiSchema<T>));
55
- export type TabNavigation<T extends NavigationType> = BaseTabSchema & (OpenApiSchema<T> | (BaseNavigation<T, 'tabs'> & OpenApiSchema<T>));
55
+ export type AnchorNavigation<T extends NavigationType> = BaseAnchorSchema & (OtherConfigs<T> | (BaseNavigation<T, 'anchors'> & OtherConfigs<T>));
56
+ export type LanguageNavigation<T extends NavigationType> = BaseLanguageSchema & (OtherConfigs<T> | (BaseNavigation<T, 'languages'> & OtherConfigs<T>));
57
+ export type VersionNavigation<T extends NavigationType> = BaseVersionSchema & (OtherConfigs<T> | (BaseNavigation<T, 'versions'> & OtherConfigs<T>));
58
+ export type DropdownNavigation<T extends NavigationType> = BaseDropdownSchema & (OtherConfigs<T> | (BaseNavigation<T, 'dropdowns'> & OtherConfigs<T>));
59
+ export type TabNavigation<T extends NavigationType> = BaseTabSchema & (OtherConfigs<T> | (BaseNavigation<T, 'tabs'> & OtherConfigs<T>));
60
+ export type GlobalNavigation = {
61
+ languages?: (BaseLanguageSchema & {
62
+ href: string;
63
+ })[];
64
+ versions?: (BaseVersionSchema & {
65
+ href: string;
66
+ })[];
67
+ tabs?: (BaseTabSchema & {
68
+ href: string;
69
+ })[];
70
+ dropdowns?: (BaseDropdownSchema & {
71
+ href: string;
72
+ })[];
73
+ anchors?: (BaseAnchorSchema & {
74
+ href: string;
75
+ })[];
76
+ };
56
77
  export {};
@@ -50,8 +50,6 @@ export declare const baseDropdownSchema: z.ZodObject<{
50
50
  hidden?: boolean | undefined;
51
51
  }>;
52
52
  export type BaseDropdownSchema = z.infer<typeof baseDropdownSchema>;
53
- export declare const dropdownSchema: z.ZodType<DropdownNavigation<'default'>>;
54
- export declare const decoratedDropdownSchema: z.ZodType<DropdownNavigation<'decorated'>>;
55
53
  export declare const nonRecursiveDropdownSchema: z.ZodObject<{
56
54
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
57
55
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -104,6 +102,8 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<{
104
102
  description?: string | undefined;
105
103
  hidden?: boolean | undefined;
106
104
  }>;
105
+ export declare const dropdownSchema: z.ZodType<DropdownNavigation<'default'>>;
106
+ export declare const decoratedDropdownSchema: z.ZodType<DropdownNavigation<'decorated'>>;
107
107
  export declare const dropdownsSchema: z.ZodArray<z.ZodType<DropdownNavigation<"default">, z.ZodTypeDef, DropdownNavigation<"default">>, "many">;
108
108
  export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodType<DropdownNavigation<"decorated">, z.ZodTypeDef, DropdownNavigation<"decorated">>, "many">;
109
109
  export type DropdownConfig = z.infer<typeof dropdownSchema>;
@@ -5,6 +5,7 @@ import { hrefSchema } from '../reusable/href.js';
5
5
  import { iconSchema } from '../reusable/icon.js';
6
6
  import { openApiSchema } from '../reusable/openapi.js';
7
7
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
8
+ import { globalSchema } from './global.js';
8
9
  import { decoratedGroupsSchema, groupsSchema } from './groups.js';
9
10
  import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
10
11
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
@@ -17,44 +18,57 @@ export const baseDropdownSchema = z.object({
17
18
  description: z.string().optional().describe('The description of the dropdown'),
18
19
  hidden: hiddenSchema.optional(),
19
20
  });
21
+ export const nonRecursiveDropdownSchema = baseDropdownSchema.extend({ href: hrefSchema });
20
22
  export const dropdownSchema = z.union([
21
- baseDropdownSchema.extend({ href: hrefSchema, openapi: openApiSchema.optional() }),
23
+ baseDropdownSchema.extend({
24
+ href: hrefSchema,
25
+ openapi: openApiSchema.optional(),
26
+ global: z.lazy(() => globalSchema).optional(),
27
+ }),
22
28
  baseDropdownSchema.extend({
23
29
  languages: z.lazy(() => languagesSchema),
24
30
  openapi: openApiSchema.optional(),
31
+ global: z.lazy(() => globalSchema).optional(),
25
32
  }),
26
33
  baseDropdownSchema.extend({
27
34
  versions: z.lazy(() => versionsSchema),
28
35
  openapi: openApiSchema.optional(),
36
+ global: z.lazy(() => globalSchema).optional(),
29
37
  }),
30
38
  baseDropdownSchema.extend({
31
39
  tabs: z.lazy(() => tabsSchema),
32
40
  openapi: openApiSchema.optional(),
41
+ global: z.lazy(() => globalSchema).optional(),
33
42
  }),
34
43
  baseDropdownSchema.extend({
35
44
  anchors: z.lazy(() => anchorsSchema),
36
45
  openapi: openApiSchema.optional(),
46
+ global: z.lazy(() => globalSchema).optional(),
37
47
  }),
38
48
  baseDropdownSchema.extend({
39
49
  groups: z.lazy(() => groupsSchema),
40
50
  openapi: openApiSchema.optional(),
51
+ global: z.lazy(() => globalSchema).optional(),
41
52
  }),
42
53
  baseDropdownSchema.extend({
43
54
  pages: z.lazy(() => pagesSchema),
44
55
  openapi: openApiSchema.optional(),
56
+ global: z.lazy(() => globalSchema).optional(),
57
+ }),
58
+ baseDropdownSchema.extend({
59
+ openapi: openApiSchema,
60
+ global: z.lazy(() => globalSchema).optional(),
45
61
  }),
46
- baseDropdownSchema.extend({ openapi: openApiSchema }),
47
62
  ]);
48
63
  export const decoratedDropdownSchema = baseDropdownSchema.and(z.union([
49
64
  z.object({ href: hrefSchema }),
50
- z.lazy(() => z.object({ languages: decoratedLanguagesSchema })),
51
- z.lazy(() => z.object({ versions: decoratedVersionsSchema })),
52
- z.lazy(() => z.object({ tabs: decoratedTabsSchema })),
53
- z.lazy(() => z.object({ anchors: decoratedAnchorsSchema })),
54
- z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
55
- z.lazy(() => z.object({ pages: decoratedPagesSchema })),
65
+ z.lazy(() => z.object({ languages: decoratedLanguagesSchema, global: globalSchema.optional() })),
66
+ z.lazy(() => z.object({ versions: decoratedVersionsSchema, global: globalSchema.optional() })),
67
+ z.lazy(() => z.object({ tabs: decoratedTabsSchema, global: globalSchema.optional() })),
68
+ z.lazy(() => z.object({ anchors: decoratedAnchorsSchema, global: globalSchema.optional() })),
69
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema, global: globalSchema.optional() })),
70
+ z.lazy(() => z.object({ pages: decoratedPagesSchema, global: globalSchema.optional() })),
56
71
  ]));
57
- export const nonRecursiveDropdownSchema = baseDropdownSchema.extend({ href: hrefSchema });
58
72
  export const dropdownsSchema = z.array(dropdownSchema).describe('Organizing by dropdowns');
59
73
  export const decoratedDropdownsSchema = z
60
74
  .array(decoratedDropdownSchema)
@@ -1,266 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const globalSchema: z.ZodObject<{
3
- languages: z.ZodOptional<z.ZodArray<z.ZodObject<{
4
- default: z.ZodOptional<z.ZodBoolean>;
5
- hidden: z.ZodOptional<z.ZodBoolean>;
6
- language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
7
- href: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- href: string;
10
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
11
- default?: boolean | undefined;
12
- hidden?: boolean | undefined;
13
- }, {
14
- href: string;
15
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
16
- default?: boolean | undefined;
17
- hidden?: boolean | undefined;
18
- }>, "many">>;
19
- versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
- version: z.ZodString;
21
- default: z.ZodOptional<z.ZodBoolean>;
22
- hidden: z.ZodOptional<z.ZodBoolean>;
23
- href: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- version: string;
26
- href: string;
27
- default?: boolean | undefined;
28
- hidden?: boolean | undefined;
29
- }, {
30
- version: string;
31
- href: string;
32
- default?: boolean | undefined;
33
- hidden?: boolean | undefined;
34
- }>, "many">>;
35
- tabs: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
37
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
38
- name: z.ZodEffects<z.ZodString, string, string>;
39
- }, "strip", z.ZodTypeAny, {
40
- name: string;
41
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
42
- }, {
43
- name: string;
44
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
45
- }>]>>;
46
- hidden: z.ZodOptional<z.ZodBoolean>;
47
- tab: z.ZodString;
48
- href: z.ZodString;
49
- }, "strip", z.ZodTypeAny, {
50
- href: string;
51
- tab: string;
52
- icon?: string | {
53
- name: string;
54
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
55
- } | undefined;
56
- hidden?: boolean | undefined;
57
- }, {
58
- href: string;
59
- tab: string;
60
- icon?: string | {
61
- name: string;
62
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
63
- } | undefined;
64
- hidden?: boolean | undefined;
65
- }>, "many">>;
66
- dropdowns: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
68
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
69
- name: z.ZodEffects<z.ZodString, string, string>;
70
- }, "strip", z.ZodTypeAny, {
71
- name: string;
72
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
73
- }, {
74
- name: string;
75
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
76
- }>]>>;
77
- color: z.ZodOptional<z.ZodObject<{
78
- light: z.ZodOptional<z.ZodString>;
79
- dark: z.ZodOptional<z.ZodString>;
80
- }, "strict", z.ZodTypeAny, {
81
- light?: string | undefined;
82
- dark?: string | undefined;
83
- }, {
84
- light?: string | undefined;
85
- dark?: string | undefined;
86
- }>>;
87
- description: z.ZodOptional<z.ZodString>;
88
- hidden: z.ZodOptional<z.ZodBoolean>;
89
- dropdown: z.ZodString;
90
- href: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- href: string;
93
- dropdown: string;
94
- icon?: string | {
95
- name: string;
96
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
97
- } | undefined;
98
- color?: {
99
- light?: string | undefined;
100
- dark?: string | undefined;
101
- } | undefined;
102
- description?: string | undefined;
103
- hidden?: boolean | undefined;
104
- }, {
105
- href: string;
106
- dropdown: string;
107
- icon?: string | {
108
- name: string;
109
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
110
- } | undefined;
111
- color?: {
112
- light?: string | undefined;
113
- dark?: string | undefined;
114
- } | undefined;
115
- description?: string | undefined;
116
- hidden?: boolean | undefined;
117
- }>, "many">>;
118
- anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
120
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
121
- name: z.ZodEffects<z.ZodString, string, string>;
122
- }, "strip", z.ZodTypeAny, {
123
- name: string;
124
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
125
- }, {
126
- name: string;
127
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
128
- }>]>>;
129
- color: z.ZodOptional<z.ZodObject<{
130
- light: z.ZodOptional<z.ZodString>;
131
- dark: z.ZodOptional<z.ZodString>;
132
- }, "strict", z.ZodTypeAny, {
133
- light?: string | undefined;
134
- dark?: string | undefined;
135
- }, {
136
- light?: string | undefined;
137
- dark?: string | undefined;
138
- }>>;
139
- hidden: z.ZodOptional<z.ZodBoolean>;
140
- anchor: z.ZodString;
141
- href: z.ZodString;
142
- }, "strip", z.ZodTypeAny, {
143
- href: string;
144
- anchor: string;
145
- icon?: string | {
146
- name: string;
147
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
148
- } | undefined;
149
- color?: {
150
- light?: string | undefined;
151
- dark?: string | undefined;
152
- } | undefined;
153
- hidden?: boolean | undefined;
154
- }, {
155
- href: string;
156
- anchor: string;
157
- icon?: string | {
158
- name: string;
159
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
160
- } | undefined;
161
- color?: {
162
- light?: string | undefined;
163
- dark?: string | undefined;
164
- } | undefined;
165
- hidden?: boolean | undefined;
166
- }>, "many">>;
167
- }, "strict", z.ZodTypeAny, {
168
- languages?: {
169
- href: string;
170
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
171
- default?: boolean | undefined;
172
- hidden?: boolean | undefined;
173
- }[] | undefined;
174
- versions?: {
175
- version: string;
176
- href: string;
177
- default?: boolean | undefined;
178
- hidden?: boolean | undefined;
179
- }[] | undefined;
180
- tabs?: {
181
- href: string;
182
- tab: string;
183
- icon?: string | {
184
- name: string;
185
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
186
- } | undefined;
187
- hidden?: boolean | undefined;
188
- }[] | undefined;
189
- dropdowns?: {
190
- href: string;
191
- dropdown: string;
192
- icon?: string | {
193
- name: string;
194
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
195
- } | undefined;
196
- color?: {
197
- light?: string | undefined;
198
- dark?: string | undefined;
199
- } | undefined;
200
- description?: string | undefined;
201
- hidden?: boolean | undefined;
202
- }[] | undefined;
203
- anchors?: {
204
- href: string;
205
- anchor: string;
206
- icon?: string | {
207
- name: string;
208
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
209
- } | undefined;
210
- color?: {
211
- light?: string | undefined;
212
- dark?: string | undefined;
213
- } | undefined;
214
- hidden?: boolean | undefined;
215
- }[] | undefined;
216
- }, {
217
- languages?: {
218
- href: string;
219
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
220
- default?: boolean | undefined;
221
- hidden?: boolean | undefined;
222
- }[] | undefined;
223
- versions?: {
224
- version: string;
225
- href: string;
226
- default?: boolean | undefined;
227
- hidden?: boolean | undefined;
228
- }[] | undefined;
229
- tabs?: {
230
- href: string;
231
- tab: string;
232
- icon?: string | {
233
- name: string;
234
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
235
- } | undefined;
236
- hidden?: boolean | undefined;
237
- }[] | undefined;
238
- dropdowns?: {
239
- href: string;
240
- dropdown: string;
241
- icon?: string | {
242
- name: string;
243
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
244
- } | undefined;
245
- color?: {
246
- light?: string | undefined;
247
- dark?: string | undefined;
248
- } | undefined;
249
- description?: string | undefined;
250
- hidden?: boolean | undefined;
251
- }[] | undefined;
252
- anchors?: {
253
- href: string;
254
- anchor: string;
255
- icon?: string | {
256
- name: string;
257
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
258
- } | undefined;
259
- color?: {
260
- light?: string | undefined;
261
- dark?: string | undefined;
262
- } | undefined;
263
- hidden?: boolean | undefined;
264
- }[] | undefined;
265
- }>;
2
+ import { GlobalNavigation } from './divisionNav.js';
3
+ export declare const globalSchema: z.ZodType<GlobalNavigation>;
266
4
  export type GlobalConfig = z.infer<typeof globalSchema>;
@@ -5,6 +5,7 @@ import { nonRecursiveLanguageSchema } from './languages.js';
5
5
  import { nonRecursiveTabSchema } from './tabs.js';
6
6
  import { nonRecursiveVersionSchema } from './version.js';
7
7
  export const globalSchema = z
8
+ .lazy(() => z
8
9
  .object({
9
10
  languages: z.array(nonRecursiveLanguageSchema).optional(),
10
11
  versions: z.array(nonRecursiveVersionSchema).optional(),
@@ -12,5 +13,5 @@ export const globalSchema = z
12
13
  dropdowns: z.array(nonRecursiveDropdownSchema).optional(),
13
14
  anchors: z.array(nonRecursiveAnchorSchema).optional(),
14
15
  })
15
- .strict()
16
+ .strict())
16
17
  .describe('Add external links that will appear on all sections and pages irregardless of navigation nesting');