@mintlify/validation 0.1.237 → 0.1.239

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 (39) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/mint-config/schemas/v2/index.d.ts +784 -1132
  4. package/dist/mint-config/schemas/v2/properties/$schema.js +1 -1
  5. package/dist/mint-config/schemas/v2/properties/feedback.d.ts +14 -0
  6. package/dist/mint-config/schemas/v2/properties/feedback.js +8 -0
  7. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +8 -12
  8. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +1 -1
  9. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +6 -12
  10. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +1 -1
  11. package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +47 -96
  12. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +12 -10
  13. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +97 -166
  14. package/dist/mint-config/schemas/v2/properties/navigation/index.js +1 -1
  15. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +17 -21
  16. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +1 -1
  17. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +1 -0
  18. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +8 -12
  19. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +1 -1
  20. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +3 -7
  21. package/dist/mint-config/schemas/v2/properties/navigation/version.js +1 -1
  22. package/dist/mint-config/schemas/v2/properties/reusable/icon.d.ts +4 -3
  23. package/dist/mint-config/schemas/v2/properties/reusable/icon.js +1 -1
  24. package/dist/mint-config/schemas/v2/properties/seo.d.ts +1 -1
  25. package/dist/mint-config/schemas/v2/properties/seo.js +1 -0
  26. package/dist/mint-config/schemas/v2/properties/topbar.d.ts +22 -0
  27. package/dist/mint-config/schemas/v2/properties/topbar.js +1 -1
  28. package/dist/mint-config/schemas/v2/themes/mint.d.ts +196 -283
  29. package/dist/mint-config/schemas/v2/themes/prism.d.ts +196 -283
  30. package/dist/mint-config/schemas/v2/themes/quill.d.ts +196 -283
  31. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +110 -167
  32. package/dist/mint-config/schemas/v2/themes/reusable/index.js +2 -0
  33. package/dist/mint-config/schemas/v2/themes/venus.d.ts +196 -283
  34. package/dist/mint-config/upgrades/updateNavigationToDocsConfig.d.ts +10 -0
  35. package/dist/mint-config/upgrades/updateNavigationToDocsConfig.js +240 -0
  36. package/dist/mint-config/upgrades/upgradeToDocsConfig.d.ts +6 -0
  37. package/dist/mint-config/upgrades/upgradeToDocsConfig.js +223 -0
  38. package/dist/tsconfig.build.tsbuildinfo +1 -1
  39. package/package.json +2 -2
@@ -48,14 +48,14 @@ export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
48
48
  groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
49
49
  group: z.ZodString;
50
50
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
51
- style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
51
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
52
52
  name: z.ZodEffects<z.ZodString, string, string>;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  name: string;
55
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
55
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
56
56
  }, {
57
57
  name: string;
58
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
58
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
59
59
  }>]>>;
60
60
  hidden: z.ZodOptional<z.ZodBoolean>;
61
61
  root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -63,7 +63,7 @@ export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
63
63
  group: string;
64
64
  icon?: string | {
65
65
  name: string;
66
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
66
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
67
67
  } | undefined;
68
68
  hidden?: boolean | undefined;
69
69
  root?: string | undefined;
@@ -71,7 +71,7 @@ export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
71
71
  group: string;
72
72
  icon?: string | {
73
73
  name: string;
74
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
74
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
75
75
  } | undefined;
76
76
  hidden?: boolean | undefined;
77
77
  root?: string | undefined;
@@ -93,7 +93,7 @@ export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
93
93
  group: string;
94
94
  icon?: string | {
95
95
  name: string;
96
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
96
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
97
97
  } | undefined;
98
98
  hidden?: boolean | undefined;
99
99
  root?: string | undefined;
@@ -107,7 +107,7 @@ export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
107
107
  group: string;
108
108
  icon?: string | {
109
109
  name: string;
110
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
110
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
111
111
  } | undefined;
112
112
  hidden?: boolean | undefined;
113
113
  root?: string | undefined;
@@ -132,19 +132,13 @@ export declare const nonRecursiveLanguageSchema: z.ZodIntersection<z.ZodObject<{
132
132
  }, {
133
133
  language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
134
134
  hidden?: boolean | undefined;
135
- }>, z.ZodUnion<[z.ZodObject<{
136
- openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
137
- }, "strip", z.ZodTypeAny, {
138
- openapi: (string | string[]) & (string | string[] | undefined);
139
- }, {
140
- openapi: (string | string[]) & (string | string[] | undefined);
141
135
  }>, z.ZodObject<{
142
136
  href: z.ZodString;
143
137
  }, "strip", z.ZodTypeAny, {
144
138
  href: string;
145
139
  }, {
146
140
  href: string;
147
- }>]>>;
141
+ }>>;
148
142
  export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
149
143
  language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
150
144
  hidden: z.ZodOptional<z.ZodBoolean>;
@@ -194,14 +188,14 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
194
188
  groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
195
189
  group: z.ZodString;
196
190
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
197
- style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
191
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
198
192
  name: z.ZodEffects<z.ZodString, string, string>;
199
193
  }, "strip", z.ZodTypeAny, {
200
194
  name: string;
201
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
195
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
202
196
  }, {
203
197
  name: string;
204
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
198
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
205
199
  }>]>>;
206
200
  hidden: z.ZodOptional<z.ZodBoolean>;
207
201
  root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -209,7 +203,7 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
209
203
  group: string;
210
204
  icon?: string | {
211
205
  name: string;
212
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
206
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
213
207
  } | undefined;
214
208
  hidden?: boolean | undefined;
215
209
  root?: string | undefined;
@@ -217,7 +211,7 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
217
211
  group: string;
218
212
  icon?: string | {
219
213
  name: string;
220
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
214
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
221
215
  } | undefined;
222
216
  hidden?: boolean | undefined;
223
217
  root?: string | undefined;
@@ -239,7 +233,7 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
239
233
  group: string;
240
234
  icon?: string | {
241
235
  name: string;
242
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
236
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
243
237
  } | undefined;
244
238
  hidden?: boolean | undefined;
245
239
  root?: string | undefined;
@@ -253,7 +247,7 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
253
247
  group: string;
254
248
  icon?: string | {
255
249
  name: string;
256
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
250
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
257
251
  } | undefined;
258
252
  hidden?: boolean | undefined;
259
253
  root?: string | undefined;
@@ -269,3 +263,5 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
269
263
  }, {
270
264
  pages: any[];
271
265
  }>>]>>, "many">;
266
+ export type LanguagesConfig = z.infer<typeof languagesSchema>;
267
+ export type LanguageConfig = z.infer<typeof languageSchema>;
@@ -26,7 +26,7 @@ export const languageSchema = baseLanguageSchema
26
26
  z.lazy(() => z.object({ pages: pagesSchema })),
27
27
  ]))
28
28
  .describe('Organizing by languages');
29
- export const nonRecursiveLanguageSchema = baseLanguageSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
29
+ export const nonRecursiveLanguageSchema = baseLanguageSchema.and(z.object({ href: hrefSchema }));
30
30
  export const languagesSchema = z
31
31
  .array(languageSchema)
32
32
  .min(1, 'At least one language must be specified')
@@ -1,2 +1,3 @@
1
1
  import { z } from 'zod';
2
2
  export declare const pagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
3
+ export type PagesConfig = z.infer<typeof pagesSchema>;
@@ -3,41 +3,37 @@ export declare const tabSchema: z.ZodType;
3
3
  export declare const nonRecursiveTabSchema: z.ZodIntersection<z.ZodObject<{
4
4
  tab: z.ZodString;
5
5
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
6
- style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
6
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
7
7
  name: z.ZodEffects<z.ZodString, string, string>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  name: string;
10
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
10
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
11
11
  }, {
12
12
  name: string;
13
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
13
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
14
14
  }>]>>;
15
15
  hidden: z.ZodOptional<z.ZodBoolean>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  tab: string;
18
18
  icon?: string | {
19
19
  name: string;
20
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
20
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
21
21
  } | undefined;
22
22
  hidden?: boolean | undefined;
23
23
  }, {
24
24
  tab: string;
25
25
  icon?: string | {
26
26
  name: string;
27
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
27
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
28
28
  } | undefined;
29
29
  hidden?: boolean | undefined;
30
- }>, z.ZodUnion<[z.ZodObject<{
31
- openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
32
- }, "strip", z.ZodTypeAny, {
33
- openapi: (string | string[]) & (string | string[] | undefined);
34
- }, {
35
- openapi: (string | string[]) & (string | string[] | undefined);
36
30
  }>, z.ZodObject<{
37
31
  href: z.ZodString;
38
32
  }, "strip", z.ZodTypeAny, {
39
33
  href: string;
40
34
  }, {
41
35
  href: string;
42
- }>]>>;
36
+ }>>;
43
37
  export declare const tabsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
38
+ export type TabsConfig = z.infer<typeof tabsSchema>;
39
+ export type TabConfig = z.infer<typeof tabSchema>;
@@ -24,5 +24,5 @@ export const tabSchema = baseTabSchema.and(z.union([
24
24
  z.lazy(() => z.object({ groups: groupsSchema })),
25
25
  z.lazy(() => z.object({ pages: pagesSchema })),
26
26
  ]));
27
- export const nonRecursiveTabSchema = baseTabSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
27
+ export const nonRecursiveTabSchema = baseTabSchema.and(z.object({ href: hrefSchema }));
28
28
  export const tabsSchema = z.array(tabSchema).describe('Organizing by tabs');
@@ -9,17 +9,13 @@ export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
9
9
  }, {
10
10
  version: string;
11
11
  hidden?: boolean | undefined;
12
- }>, z.ZodUnion<[z.ZodObject<{
13
- openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
14
- }, "strip", z.ZodTypeAny, {
15
- openapi: (string | string[]) & (string | string[] | undefined);
16
- }, {
17
- openapi: (string | string[]) & (string | string[] | undefined);
18
12
  }>, z.ZodObject<{
19
13
  href: z.ZodString;
20
14
  }, "strip", z.ZodTypeAny, {
21
15
  href: string;
22
16
  }, {
23
17
  href: string;
24
- }>]>>;
18
+ }>>;
25
19
  export declare const versionsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
20
+ export type VersionsConfig = z.infer<typeof versionsSchema>;
21
+ export type VersionConfig = z.infer<typeof versionSchema>;
@@ -22,5 +22,5 @@ export const versionSchema = baseVersionSchema.and(z.union([
22
22
  z.lazy(() => z.object({ groups: groupsSchema })),
23
23
  z.lazy(() => z.object({ pages: pagesSchema })),
24
24
  ]));
25
- export const nonRecursiveVersionSchema = baseVersionSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
25
+ export const nonRecursiveVersionSchema = baseVersionSchema.and(z.object({ href: hrefSchema }));
26
26
  export const versionsSchema = z.array(versionSchema).describe('Organizing by versions');
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const iconSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
3
- style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
3
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
4
4
  name: z.ZodEffects<z.ZodString, string, string>;
5
5
  }, "strip", z.ZodTypeAny, {
6
6
  name: string;
7
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
7
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
8
8
  }, {
9
9
  name: string;
10
- style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
10
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
11
11
  }>]>;
12
+ export type IconConfig = z.infer<typeof iconSchema>;
@@ -18,5 +18,5 @@ const iconNameSchema = z
18
18
  })
19
19
  .refine((icon) => !icon.startsWith('fa-'), "Icon does not need to start with 'fa-'. Please delete 'fa-' and keep the rest of the icon name");
20
20
  export const iconSchema = z
21
- .union([iconNameSchema, z.object({ style: z.enum(iconTypes), name: iconNameSchema })])
21
+ .union([iconNameSchema, z.object({ style: z.enum(iconTypes).optional(), name: iconNameSchema })])
22
22
  .describe('The icon to be displayed in the section');
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const metatagsSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3
3
  export declare const seoSchema: z.ZodObject<{
4
4
  metatags: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
5
- indexing: z.ZodDefault<z.ZodEnum<["navigable", "all"]>>;
5
+ indexing: z.ZodDefault<z.ZodOptional<z.ZodEnum<["navigable", "all"]>>>;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  indexing: "all" | "navigable";
8
8
  metatags?: Record<string, string> | undefined;
@@ -8,6 +8,7 @@ export const seoSchema = z
8
8
  metatags: metatagsSchema.optional(),
9
9
  indexing: z
10
10
  .enum(['navigable', 'all'])
11
+ .optional()
11
12
  .default('navigable')
12
13
  .describe('Specify which pages to be indexed by search engines. Setting "navigable" indexes pages that are set in navigation, "all" indexes all pages'),
13
14
  })
@@ -1,4 +1,26 @@
1
1
  import { z } from 'zod';
2
+ export declare const primarySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ type: z.ZodLiteral<"button">;
4
+ label: z.ZodString;
5
+ href: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "button";
8
+ href: string;
9
+ label: string;
10
+ }, {
11
+ type: "button";
12
+ href: string;
13
+ label: string;
14
+ }>, z.ZodObject<{
15
+ type: z.ZodLiteral<"github">;
16
+ href: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "github";
19
+ href: string;
20
+ }, {
21
+ type: "github";
22
+ href: string;
23
+ }>]>;
2
24
  export declare const topbarSchema: z.ZodObject<{
3
25
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
4
26
  label: z.ZodString;
@@ -13,7 +13,7 @@ const githubSchema = z.object({
13
13
  type: z.literal('github'),
14
14
  href: hrefSchema,
15
15
  });
16
- const primarySchema = z.discriminatedUnion('type', [buttonSchema, githubSchema]);
16
+ export const primarySchema = z.discriminatedUnion('type', [buttonSchema, githubSchema]);
17
17
  export const topbarSchema = z
18
18
  .object({
19
19
  links: z.array(linkSchema).optional().describe('The links in the topbar'),