@mintlify/validation 0.1.297 → 0.1.299

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 (27) hide show
  1. package/README.md +3 -3
  2. package/dist/mint-config/schemas/v1/config.d.ts +7 -7
  3. package/dist/mint-config/schemas/v1/versions.d.ts +5 -5
  4. package/dist/mint-config/schemas/v2/index.d.ts +317 -19812
  5. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +2 -2
  6. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +23 -9
  7. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +27 -6
  8. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +2 -2
  9. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +23 -9
  10. package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +2 -264
  11. package/dist/mint-config/schemas/v2/properties/navigation/global.js +2 -1
  12. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +24 -2912
  13. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +8 -8
  14. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +24 -10
  15. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +2 -2
  16. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +20 -9
  17. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +2 -2
  18. package/dist/mint-config/schemas/v2/properties/navigation/version.js +23 -9
  19. package/dist/mint-config/schemas/v2/themes/linden.d.ts +75 -3974
  20. package/dist/mint-config/schemas/v2/themes/maple.d.ts +75 -3974
  21. package/dist/mint-config/schemas/v2/themes/mint.d.ts +75 -3974
  22. package/dist/mint-config/schemas/v2/themes/palm.d.ts +75 -3974
  23. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +21 -2548
  24. package/dist/mint-config/schemas/v2/themes/willow.d.ts +75 -3974
  25. package/dist/mint-config/validateConfig.d.ts +170 -7030
  26. package/dist/tsconfig.build.tsbuildinfo +1 -1
  27. package/package.json +3 -3
@@ -1,37 +1,37 @@
1
1
  import { z } from 'zod';
2
2
  import { LanguageNavigation } from './divisionNav.js';
3
3
  export declare const baseLanguageSchema: z.ZodObject<{
4
- language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
4
+ language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de", "ko"]>;
5
5
  default: z.ZodOptional<z.ZodBoolean>;
6
6
  hidden: z.ZodOptional<z.ZodBoolean>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
8
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
9
9
  default?: boolean | undefined;
10
10
  hidden?: boolean | undefined;
11
11
  }, {
12
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
12
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
13
13
  default?: boolean | undefined;
14
14
  hidden?: boolean | undefined;
15
15
  }>;
16
16
  export type BaseLanguageSchema = z.infer<typeof baseLanguageSchema>;
17
- export declare const languageSchema: z.ZodType<LanguageNavigation<'default'>>;
18
- export declare const decoratedLanguageSchema: z.ZodType<LanguageNavigation<'decorated'>>;
19
17
  export declare const nonRecursiveLanguageSchema: z.ZodObject<{
20
18
  default: z.ZodOptional<z.ZodBoolean>;
21
19
  hidden: z.ZodOptional<z.ZodBoolean>;
22
- language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
20
+ language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de", "ko"]>;
23
21
  href: z.ZodString;
24
22
  }, "strip", z.ZodTypeAny, {
25
23
  href: string;
26
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
24
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
27
25
  default?: boolean | undefined;
28
26
  hidden?: boolean | undefined;
29
27
  }, {
30
28
  href: string;
31
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
29
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
32
30
  default?: boolean | undefined;
33
31
  hidden?: boolean | undefined;
34
32
  }>;
33
+ export declare const languageSchema: z.ZodType<LanguageNavigation<'default'>>;
34
+ export declare const decoratedLanguageSchema: z.ZodType<LanguageNavigation<'decorated'>>;
35
35
  export declare const languagesSchema: z.ZodArray<z.ZodType<LanguageNavigation<"default">, z.ZodTypeDef, LanguageNavigation<"default">>, "many">;
36
36
  export declare const decoratedLanguagesSchema: z.ZodArray<z.ZodType<LanguageNavigation<"decorated">, z.ZodTypeDef, LanguageNavigation<"decorated">>, "many">;
37
37
  export type LanguagesConfig = z.infer<typeof languagesSchema>;
@@ -4,59 +4,73 @@ import { hrefSchema } from '../reusable/href.js';
4
4
  import { openApiSchema } from '../reusable/openapi.js';
5
5
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
6
6
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
7
+ import { globalSchema } from './global.js';
7
8
  import { decoratedGroupsSchema, groupsSchema } from './groups.js';
8
9
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
9
10
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
10
11
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
11
12
  export const baseLanguageSchema = z.object({
12
13
  language: z
13
- .enum(['en', 'cn', 'es', 'fr', 'jp', 'pt', 'pt-BR', 'de'])
14
+ .enum(['en', 'cn', 'es', 'fr', 'jp', 'pt', 'pt-BR', 'de', 'ko'])
14
15
  .describe('The name of the language in the ISO 639-1 format'),
15
16
  default: z.boolean().optional().describe('Whether this language is the default language'),
16
17
  hidden: hiddenSchema.optional(),
17
18
  });
19
+ export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
18
20
  export const languageSchema = z
19
21
  .union([
20
- baseLanguageSchema.extend({ href: hrefSchema, openapi: openApiSchema.optional() }),
22
+ baseLanguageSchema.extend({
23
+ href: hrefSchema,
24
+ openapi: openApiSchema.optional(),
25
+ global: z.lazy(() => globalSchema).optional(),
26
+ }),
21
27
  baseLanguageSchema.extend({
22
28
  versions: z.lazy(() => versionsSchema),
23
29
  openapi: openApiSchema.optional(),
30
+ global: z.lazy(() => globalSchema).optional(),
24
31
  }),
25
32
  baseLanguageSchema.extend({
26
33
  tabs: z.lazy(() => tabsSchema),
27
34
  openapi: openApiSchema.optional(),
35
+ global: z.lazy(() => globalSchema).optional(),
28
36
  }),
29
37
  baseLanguageSchema.extend({
30
38
  dropdowns: z.lazy(() => dropdownsSchema),
31
39
  openapi: openApiSchema.optional(),
40
+ global: z.lazy(() => globalSchema).optional(),
32
41
  }),
33
42
  baseLanguageSchema.extend({
34
43
  anchors: z.lazy(() => anchorsSchema),
35
44
  openapi: openApiSchema.optional(),
45
+ global: z.lazy(() => globalSchema).optional(),
36
46
  }),
37
47
  baseLanguageSchema.extend({
38
48
  groups: z.lazy(() => groupsSchema),
39
49
  openapi: openApiSchema.optional(),
50
+ global: z.lazy(() => globalSchema).optional(),
40
51
  }),
41
52
  baseLanguageSchema.extend({
42
53
  pages: z.lazy(() => pagesSchema),
43
54
  openapi: openApiSchema.optional(),
55
+ global: z.lazy(() => globalSchema).optional(),
56
+ }),
57
+ baseLanguageSchema.extend({
58
+ openapi: openApiSchema,
59
+ global: z.lazy(() => globalSchema).optional(),
44
60
  }),
45
- baseLanguageSchema.extend({ openapi: openApiSchema }),
46
61
  ])
47
62
  .describe('Organizing by languages');
48
63
  export const decoratedLanguageSchema = baseLanguageSchema
49
64
  .and(z.union([
50
65
  z.object({ href: hrefSchema }),
51
- z.lazy(() => z.object({ versions: decoratedVersionsSchema })),
52
- z.lazy(() => z.object({ tabs: decoratedTabsSchema })),
53
- z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema })),
54
- z.lazy(() => z.object({ anchors: decoratedAnchorsSchema })),
55
- z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
56
- z.lazy(() => z.object({ pages: decoratedPagesSchema })),
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({ dropdowns: decoratedDropdownsSchema, global: globalSchema.optional() })),
69
+ z.lazy(() => z.object({ anchors: decoratedAnchorsSchema, global: globalSchema.optional() })),
70
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema, global: globalSchema.optional() })),
71
+ z.lazy(() => z.object({ pages: decoratedPagesSchema, global: globalSchema.optional() })),
57
72
  ]))
58
73
  .describe('Organizing by languages');
59
- export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
60
74
  export const languagesSchema = z
61
75
  .array(languageSchema)
62
76
  .min(1, 'At least one language must be specified')
@@ -29,8 +29,6 @@ export declare const baseTabSchema: z.ZodObject<{
29
29
  hidden?: boolean | undefined;
30
30
  }>;
31
31
  export type BaseTabSchema = z.infer<typeof baseTabSchema>;
32
- export declare const tabSchema: z.ZodType<TabNavigation<'default'>>;
33
- export declare const decoratedTabSchema: z.ZodType<TabNavigation<'decorated'>>;
34
32
  export declare const nonRecursiveTabSchema: z.ZodObject<{
35
33
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
36
34
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -62,6 +60,8 @@ export declare const nonRecursiveTabSchema: z.ZodObject<{
62
60
  } | undefined;
63
61
  hidden?: boolean | undefined;
64
62
  }>;
63
+ export declare const tabSchema: z.ZodType<TabNavigation<'default'>>;
64
+ export declare const decoratedTabSchema: z.ZodType<TabNavigation<'decorated'>>;
65
65
  export declare const tabsSchema: z.ZodArray<z.ZodType<TabNavigation<"default">, z.ZodTypeDef, TabNavigation<"default">>, "many">;
66
66
  export declare const decoratedTabsSchema: z.ZodArray<z.ZodType<TabNavigation<"decorated">, z.ZodTypeDef, TabNavigation<"decorated">>, "many">;
67
67
  export type TabsConfig = z.infer<typeof tabsSchema>;
@@ -5,6 +5,7 @@ import { iconSchema } from '../reusable/icon.js';
5
5
  import { openApiSchema } from '../reusable/openapi.js';
6
6
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.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';
@@ -14,44 +15,54 @@ export const baseTabSchema = z.object({
14
15
  icon: iconSchema.optional(),
15
16
  hidden: hiddenSchema.optional(),
16
17
  });
18
+ export const nonRecursiveTabSchema = baseTabSchema.extend({ href: hrefSchema });
17
19
  export const tabSchema = z.union([
18
- baseTabSchema.extend({ href: hrefSchema, openapi: openApiSchema.optional() }),
20
+ baseTabSchema.extend({
21
+ href: hrefSchema,
22
+ openapi: openApiSchema.optional(),
23
+ global: z.lazy(() => globalSchema).optional(),
24
+ }),
19
25
  baseTabSchema.extend({
20
26
  languages: z.lazy(() => languagesSchema),
21
27
  openapi: openApiSchema.optional(),
28
+ global: z.lazy(() => globalSchema).optional(),
22
29
  }),
23
30
  baseTabSchema.extend({
24
31
  versions: z.lazy(() => versionsSchema),
25
32
  openapi: openApiSchema.optional(),
33
+ global: z.lazy(() => globalSchema).optional(),
26
34
  }),
27
35
  baseTabSchema.extend({
28
36
  dropdowns: z.lazy(() => dropdownsSchema),
29
37
  openapi: openApiSchema.optional(),
38
+ global: z.lazy(() => globalSchema).optional(),
30
39
  }),
31
40
  baseTabSchema.extend({
32
41
  anchors: z.lazy(() => anchorsSchema),
33
42
  openapi: openApiSchema.optional(),
43
+ global: z.lazy(() => globalSchema).optional(),
34
44
  }),
35
45
  baseTabSchema.extend({
36
46
  groups: z.lazy(() => groupsSchema),
37
47
  openapi: openApiSchema.optional(),
48
+ global: z.lazy(() => globalSchema).optional(),
38
49
  }),
39
50
  baseTabSchema.extend({
40
51
  pages: z.lazy(() => pagesSchema),
41
52
  openapi: openApiSchema.optional(),
53
+ global: z.lazy(() => globalSchema).optional(),
42
54
  }),
43
- baseTabSchema.extend({ openapi: openApiSchema }),
55
+ baseTabSchema.extend({ openapi: openApiSchema, global: z.lazy(() => globalSchema).optional() }),
44
56
  ]);
45
57
  export const decoratedTabSchema = baseTabSchema.and(z.union([
46
58
  z.object({ href: hrefSchema }),
47
- z.lazy(() => z.object({ languages: decoratedLanguagesSchema })),
48
- z.lazy(() => z.object({ versions: decoratedVersionsSchema })),
49
- z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema })),
50
- z.lazy(() => z.object({ anchors: decoratedAnchorsSchema })),
51
- z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
52
- z.lazy(() => z.object({ pages: decoratedPagesSchema })),
59
+ z.lazy(() => z.object({ languages: decoratedLanguagesSchema, global: globalSchema.optional() })),
60
+ z.lazy(() => z.object({ versions: decoratedVersionsSchema, global: globalSchema.optional() })),
61
+ z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema, global: globalSchema.optional() })),
62
+ z.lazy(() => z.object({ anchors: decoratedAnchorsSchema, global: globalSchema.optional() })),
63
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema, global: globalSchema.optional() })),
64
+ z.lazy(() => z.object({ pages: decoratedPagesSchema, global: globalSchema.optional() })),
53
65
  ]));
54
- export const nonRecursiveTabSchema = baseTabSchema.extend({ href: hrefSchema });
55
66
  export const tabsSchema = z
56
67
  .array(tabSchema)
57
68
  .min(1, 'At least one tab must be specified')
@@ -14,8 +14,6 @@ export declare const baseVersionSchema: z.ZodObject<{
14
14
  hidden?: boolean | undefined;
15
15
  }>;
16
16
  export type BaseVersionSchema = z.infer<typeof baseVersionSchema>;
17
- export declare const versionSchema: z.ZodType<VersionNavigation<'default'>>;
18
- export declare const decoratedVersionSchema: z.ZodType<VersionNavigation<'decorated'>>;
19
17
  export declare const nonRecursiveVersionSchema: z.ZodObject<{
20
18
  version: z.ZodString;
21
19
  default: z.ZodOptional<z.ZodBoolean>;
@@ -32,6 +30,8 @@ export declare const nonRecursiveVersionSchema: z.ZodObject<{
32
30
  default?: boolean | undefined;
33
31
  hidden?: boolean | undefined;
34
32
  }>;
33
+ export declare const versionSchema: z.ZodType<VersionNavigation<'default'>>;
34
+ export declare const decoratedVersionSchema: z.ZodType<VersionNavigation<'decorated'>>;
35
35
  export declare const versionsSchema: z.ZodArray<z.ZodType<VersionNavigation<"default">, z.ZodTypeDef, VersionNavigation<"default">>, "many">;
36
36
  export declare const decoratedVersionsSchema: z.ZodArray<z.ZodType<VersionNavigation<"decorated">, z.ZodTypeDef, VersionNavigation<"decorated">>, "many">;
37
37
  export type VersionsConfig = z.infer<typeof versionsSchema>;
@@ -4,6 +4,7 @@ import { hrefSchema } from '../reusable/href.js';
4
4
  import { openApiSchema } from '../reusable/openapi.js';
5
5
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
6
6
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
7
+ import { globalSchema } from './global.js';
7
8
  import { decoratedGroupsSchema, groupsSchema } from './groups.js';
8
9
  import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
9
10
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
@@ -13,44 +14,57 @@ export const baseVersionSchema = z.object({
13
14
  default: z.boolean().optional().describe('Whether this version is the default version'),
14
15
  hidden: hiddenSchema.optional(),
15
16
  });
17
+ export const nonRecursiveVersionSchema = baseVersionSchema.extend({ href: hrefSchema });
16
18
  export const versionSchema = z.union([
17
- baseVersionSchema.extend({ href: hrefSchema, openapi: openApiSchema.optional() }),
19
+ baseVersionSchema.extend({
20
+ href: hrefSchema,
21
+ openapi: openApiSchema.optional(),
22
+ global: z.lazy(() => globalSchema).optional(),
23
+ }),
18
24
  baseVersionSchema.extend({
19
25
  languages: z.lazy(() => languagesSchema),
20
26
  openapi: openApiSchema.optional(),
27
+ global: z.lazy(() => globalSchema).optional(),
21
28
  }),
22
29
  baseVersionSchema.extend({
23
30
  tabs: z.lazy(() => tabsSchema),
24
31
  openapi: openApiSchema.optional(),
32
+ global: z.lazy(() => globalSchema).optional(),
25
33
  }),
26
34
  baseVersionSchema.extend({
27
35
  dropdowns: z.lazy(() => dropdownsSchema),
28
36
  openapi: openApiSchema.optional(),
37
+ global: z.lazy(() => globalSchema).optional(),
29
38
  }),
30
39
  baseVersionSchema.extend({
31
40
  anchors: z.lazy(() => anchorsSchema),
32
41
  openapi: openApiSchema.optional(),
42
+ global: z.lazy(() => globalSchema).optional(),
33
43
  }),
34
44
  baseVersionSchema.extend({
35
45
  groups: z.lazy(() => groupsSchema),
36
46
  openapi: openApiSchema.optional(),
47
+ global: z.lazy(() => globalSchema).optional(),
37
48
  }),
38
49
  baseVersionSchema.extend({
39
50
  pages: z.lazy(() => pagesSchema),
40
51
  openapi: openApiSchema.optional(),
52
+ global: z.lazy(() => globalSchema).optional(),
53
+ }),
54
+ baseVersionSchema.extend({
55
+ openapi: openApiSchema,
56
+ global: z.lazy(() => globalSchema).optional(),
41
57
  }),
42
- baseVersionSchema.extend({ openapi: openApiSchema }),
43
58
  ]);
44
59
  export const decoratedVersionSchema = baseVersionSchema.and(z.union([
45
60
  z.object({ href: hrefSchema }),
46
- z.lazy(() => z.object({ languages: decoratedLanguagesSchema })),
47
- z.lazy(() => z.object({ tabs: decoratedTabsSchema })),
48
- z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema })),
49
- z.lazy(() => z.object({ anchors: decoratedAnchorsSchema })),
50
- z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
51
- z.lazy(() => z.object({ pages: decoratedPagesSchema })),
61
+ z.lazy(() => z.object({ languages: decoratedLanguagesSchema, global: globalSchema.optional() })),
62
+ z.lazy(() => z.object({ tabs: decoratedTabsSchema, global: globalSchema.optional() })),
63
+ z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema, global: globalSchema.optional() })),
64
+ z.lazy(() => z.object({ anchors: decoratedAnchorsSchema, global: globalSchema.optional() })),
65
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema, global: globalSchema.optional() })),
66
+ z.lazy(() => z.object({ pages: decoratedPagesSchema, global: globalSchema.optional() })),
52
67
  ]));
53
- export const nonRecursiveVersionSchema = baseVersionSchema.extend({ href: hrefSchema });
54
68
  export const versionsSchema = z
55
69
  .array(versionSchema)
56
70
  .min(1, 'At least one version must be specified')