@mintlify/validation 0.1.235 → 0.1.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mint-config/schemas/v2/index.d.ts +3085 -545
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +59 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +5 -5
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +41 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +5 -5
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +299 -0
- package/dist/mint-config/schemas/v2/properties/navigation/global.js +16 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +419 -2
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +146 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +4 -3
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +41 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +23 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +4 -4
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +659 -24
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +659 -24
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +659 -24
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +419 -12
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +0 -2
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +659 -24
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/mint-config/schemas/v2/properties/legacy.d.ts +0 -11
- package/dist/mint-config/schemas/v2/properties/legacy.js +0 -10
|
@@ -1,2 +1,61 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const anchorSchema: z.ZodType;
|
|
3
|
+
export declare const nonRecursiveAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
+
anchor: z.ZodString;
|
|
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"]>;
|
|
7
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
11
|
+
}, {
|
|
12
|
+
name: string;
|
|
13
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
14
|
+
}>]>>;
|
|
15
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
light: z.ZodString;
|
|
17
|
+
dark: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
light: string;
|
|
20
|
+
dark: string;
|
|
21
|
+
}, {
|
|
22
|
+
light: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
}>>;
|
|
25
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
anchor: string;
|
|
28
|
+
icon?: string | {
|
|
29
|
+
name: string;
|
|
30
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
31
|
+
} | undefined;
|
|
32
|
+
color?: {
|
|
33
|
+
light: string;
|
|
34
|
+
dark: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
hidden?: boolean | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
anchor: string;
|
|
39
|
+
icon?: string | {
|
|
40
|
+
name: string;
|
|
41
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
42
|
+
} | undefined;
|
|
43
|
+
color?: {
|
|
44
|
+
light: string;
|
|
45
|
+
dark: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
hidden?: boolean | undefined;
|
|
48
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
49
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
52
|
+
}, {
|
|
53
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
54
|
+
}>, z.ZodObject<{
|
|
55
|
+
href: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
href: string;
|
|
58
|
+
}, {
|
|
59
|
+
href: string;
|
|
60
|
+
}>]>>;
|
|
2
61
|
export declare const anchorsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
@@ -10,16 +10,15 @@ import { languagesSchema } from './languages.js';
|
|
|
10
10
|
import { pagesSchema } from './pages.js';
|
|
11
11
|
import { tabsSchema } from './tabs.js';
|
|
12
12
|
import { versionsSchema } from './version.js';
|
|
13
|
-
const
|
|
14
|
-
.object({
|
|
13
|
+
const baseAnchorSchema = z.object({
|
|
15
14
|
anchor: z.string().nonempty().describe('The name of the anchor'),
|
|
16
15
|
icon: iconSchema.optional(),
|
|
17
16
|
color: colorSchema.optional(),
|
|
18
17
|
hidden: hiddenSchema.optional(),
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
z.object({ href: hrefSchema }),
|
|
18
|
+
});
|
|
19
|
+
export const anchorSchema = baseAnchorSchema.and(z.union([
|
|
22
20
|
z.object({ openapi: openApiSchema }),
|
|
21
|
+
z.object({ href: hrefSchema }),
|
|
23
22
|
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
24
23
|
z.lazy(() => z.object({ versions: versionsSchema })),
|
|
25
24
|
z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
|
|
@@ -27,4 +26,5 @@ const anchorSchema = z
|
|
|
27
26
|
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
28
27
|
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
29
28
|
]));
|
|
29
|
+
export const nonRecursiveAnchorSchema = baseAnchorSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
|
|
30
30
|
export const anchorsSchema = z.array(anchorSchema).describe('Organizing by anchors');
|
|
@@ -1,2 +1,43 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const dropdownSchema: z.ZodType;
|
|
3
|
+
export declare const nonRecursiveDropdownSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
+
dropdown: z.ZodString;
|
|
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"]>;
|
|
7
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
11
|
+
}, {
|
|
12
|
+
name: string;
|
|
13
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
14
|
+
}>]>>;
|
|
15
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
dropdown: string;
|
|
18
|
+
icon?: string | {
|
|
19
|
+
name: string;
|
|
20
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
21
|
+
} | undefined;
|
|
22
|
+
hidden?: boolean | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
dropdown: string;
|
|
25
|
+
icon?: string | {
|
|
26
|
+
name: string;
|
|
27
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
28
|
+
} | undefined;
|
|
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
|
+
}>, z.ZodObject<{
|
|
37
|
+
href: z.ZodString;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
href: string;
|
|
40
|
+
}, {
|
|
41
|
+
href: string;
|
|
42
|
+
}>]>>;
|
|
2
43
|
export declare const dropdownsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
@@ -9,15 +9,14 @@ import { languagesSchema } from './languages.js';
|
|
|
9
9
|
import { pagesSchema } from './pages.js';
|
|
10
10
|
import { tabsSchema } from './tabs.js';
|
|
11
11
|
import { versionsSchema } from './version.js';
|
|
12
|
-
const
|
|
13
|
-
.object({
|
|
12
|
+
const baseDropdownSchema = z.object({
|
|
14
13
|
dropdown: z.string().nonempty().describe('The name of the dropdown'),
|
|
15
14
|
icon: iconSchema.optional(),
|
|
16
15
|
hidden: hiddenSchema.optional(),
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
z.object({ href: hrefSchema }),
|
|
16
|
+
});
|
|
17
|
+
export const dropdownSchema = baseDropdownSchema.and(z.union([
|
|
20
18
|
z.object({ openapi: openApiSchema }),
|
|
19
|
+
z.object({ href: hrefSchema }),
|
|
21
20
|
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
22
21
|
z.lazy(() => z.object({ versions: versionsSchema })),
|
|
23
22
|
z.lazy(() => z.object({ tabs: tabsSchema })),
|
|
@@ -25,4 +24,5 @@ const dropdownSchema = z
|
|
|
25
24
|
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
26
25
|
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
27
26
|
]));
|
|
27
|
+
export const nonRecursiveDropdownSchema = baseDropdownSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
|
|
28
28
|
export const dropdownsSchema = z.array(dropdownSchema).describe('Organizing by dropdowns');
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const globalSchema: z.ZodObject<{
|
|
3
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
4
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
5
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
8
|
+
hidden?: boolean | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
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
|
+
}>, z.ZodObject<{
|
|
19
|
+
href: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
href: string;
|
|
22
|
+
}, {
|
|
23
|
+
href: string;
|
|
24
|
+
}>]>>, "many">>;
|
|
25
|
+
versions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
26
|
+
version: z.ZodString;
|
|
27
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
version: string;
|
|
30
|
+
hidden?: boolean | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
version: string;
|
|
33
|
+
hidden?: boolean | undefined;
|
|
34
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
35
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
38
|
+
}, {
|
|
39
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
40
|
+
}>, z.ZodObject<{
|
|
41
|
+
href: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
href: string;
|
|
44
|
+
}, {
|
|
45
|
+
href: string;
|
|
46
|
+
}>]>>, "many">>;
|
|
47
|
+
tabs: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
48
|
+
tab: z.ZodString;
|
|
49
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
50
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
51
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
name: string;
|
|
54
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
55
|
+
}, {
|
|
56
|
+
name: string;
|
|
57
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
58
|
+
}>]>>;
|
|
59
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
tab: string;
|
|
62
|
+
icon?: string | {
|
|
63
|
+
name: string;
|
|
64
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
65
|
+
} | undefined;
|
|
66
|
+
hidden?: boolean | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
tab: string;
|
|
69
|
+
icon?: string | {
|
|
70
|
+
name: string;
|
|
71
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
72
|
+
} | undefined;
|
|
73
|
+
hidden?: boolean | undefined;
|
|
74
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
75
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
78
|
+
}, {
|
|
79
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
80
|
+
}>, z.ZodObject<{
|
|
81
|
+
href: z.ZodString;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
href: string;
|
|
84
|
+
}, {
|
|
85
|
+
href: string;
|
|
86
|
+
}>]>>, "many">>;
|
|
87
|
+
dropdowns: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
88
|
+
dropdown: z.ZodString;
|
|
89
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
90
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
91
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
name: string;
|
|
94
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
95
|
+
}, {
|
|
96
|
+
name: string;
|
|
97
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
98
|
+
}>]>>;
|
|
99
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
dropdown: string;
|
|
102
|
+
icon?: string | {
|
|
103
|
+
name: string;
|
|
104
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
105
|
+
} | undefined;
|
|
106
|
+
hidden?: boolean | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
dropdown: string;
|
|
109
|
+
icon?: string | {
|
|
110
|
+
name: string;
|
|
111
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
112
|
+
} | undefined;
|
|
113
|
+
hidden?: boolean | undefined;
|
|
114
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
115
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
118
|
+
}, {
|
|
119
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
120
|
+
}>, z.ZodObject<{
|
|
121
|
+
href: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
href: string;
|
|
124
|
+
}, {
|
|
125
|
+
href: string;
|
|
126
|
+
}>]>>, "many">>;
|
|
127
|
+
anchors: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
128
|
+
anchor: z.ZodString;
|
|
129
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
130
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
131
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
name: string;
|
|
134
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
135
|
+
}, {
|
|
136
|
+
name: string;
|
|
137
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
138
|
+
}>]>>;
|
|
139
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
light: z.ZodString;
|
|
141
|
+
dark: z.ZodString;
|
|
142
|
+
}, "strict", z.ZodTypeAny, {
|
|
143
|
+
light: string;
|
|
144
|
+
dark: string;
|
|
145
|
+
}, {
|
|
146
|
+
light: string;
|
|
147
|
+
dark: string;
|
|
148
|
+
}>>;
|
|
149
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
anchor: string;
|
|
152
|
+
icon?: string | {
|
|
153
|
+
name: string;
|
|
154
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
155
|
+
} | undefined;
|
|
156
|
+
color?: {
|
|
157
|
+
light: string;
|
|
158
|
+
dark: string;
|
|
159
|
+
} | undefined;
|
|
160
|
+
hidden?: boolean | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
anchor: string;
|
|
163
|
+
icon?: string | {
|
|
164
|
+
name: string;
|
|
165
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
166
|
+
} | undefined;
|
|
167
|
+
color?: {
|
|
168
|
+
light: string;
|
|
169
|
+
dark: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
hidden?: boolean | undefined;
|
|
172
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
173
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
176
|
+
}, {
|
|
177
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
178
|
+
}>, z.ZodObject<{
|
|
179
|
+
href: z.ZodString;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
href: string;
|
|
182
|
+
}, {
|
|
183
|
+
href: string;
|
|
184
|
+
}>]>>, "many">>;
|
|
185
|
+
}, "strict", z.ZodTypeAny, {
|
|
186
|
+
languages?: ({
|
|
187
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
188
|
+
hidden?: boolean | undefined;
|
|
189
|
+
} & ({
|
|
190
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
191
|
+
} | {
|
|
192
|
+
href: string;
|
|
193
|
+
}))[] | undefined;
|
|
194
|
+
versions?: ({
|
|
195
|
+
version: string;
|
|
196
|
+
hidden?: boolean | undefined;
|
|
197
|
+
} & ({
|
|
198
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
199
|
+
} | {
|
|
200
|
+
href: string;
|
|
201
|
+
}))[] | undefined;
|
|
202
|
+
tabs?: ({
|
|
203
|
+
tab: string;
|
|
204
|
+
icon?: string | {
|
|
205
|
+
name: string;
|
|
206
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
207
|
+
} | undefined;
|
|
208
|
+
hidden?: boolean | undefined;
|
|
209
|
+
} & ({
|
|
210
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
211
|
+
} | {
|
|
212
|
+
href: string;
|
|
213
|
+
}))[] | undefined;
|
|
214
|
+
dropdowns?: ({
|
|
215
|
+
dropdown: string;
|
|
216
|
+
icon?: string | {
|
|
217
|
+
name: string;
|
|
218
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
219
|
+
} | undefined;
|
|
220
|
+
hidden?: boolean | undefined;
|
|
221
|
+
} & ({
|
|
222
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
223
|
+
} | {
|
|
224
|
+
href: string;
|
|
225
|
+
}))[] | undefined;
|
|
226
|
+
anchors?: ({
|
|
227
|
+
anchor: string;
|
|
228
|
+
icon?: string | {
|
|
229
|
+
name: string;
|
|
230
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
231
|
+
} | undefined;
|
|
232
|
+
color?: {
|
|
233
|
+
light: string;
|
|
234
|
+
dark: string;
|
|
235
|
+
} | undefined;
|
|
236
|
+
hidden?: boolean | undefined;
|
|
237
|
+
} & ({
|
|
238
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
239
|
+
} | {
|
|
240
|
+
href: string;
|
|
241
|
+
}))[] | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
languages?: ({
|
|
244
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
245
|
+
hidden?: boolean | undefined;
|
|
246
|
+
} & ({
|
|
247
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
248
|
+
} | {
|
|
249
|
+
href: string;
|
|
250
|
+
}))[] | undefined;
|
|
251
|
+
versions?: ({
|
|
252
|
+
version: string;
|
|
253
|
+
hidden?: boolean | undefined;
|
|
254
|
+
} & ({
|
|
255
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
256
|
+
} | {
|
|
257
|
+
href: string;
|
|
258
|
+
}))[] | undefined;
|
|
259
|
+
tabs?: ({
|
|
260
|
+
tab: string;
|
|
261
|
+
icon?: string | {
|
|
262
|
+
name: string;
|
|
263
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
264
|
+
} | undefined;
|
|
265
|
+
hidden?: boolean | undefined;
|
|
266
|
+
} & ({
|
|
267
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
268
|
+
} | {
|
|
269
|
+
href: string;
|
|
270
|
+
}))[] | undefined;
|
|
271
|
+
dropdowns?: ({
|
|
272
|
+
dropdown: string;
|
|
273
|
+
icon?: string | {
|
|
274
|
+
name: string;
|
|
275
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
276
|
+
} | undefined;
|
|
277
|
+
hidden?: boolean | undefined;
|
|
278
|
+
} & ({
|
|
279
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
280
|
+
} | {
|
|
281
|
+
href: string;
|
|
282
|
+
}))[] | undefined;
|
|
283
|
+
anchors?: ({
|
|
284
|
+
anchor: string;
|
|
285
|
+
icon?: string | {
|
|
286
|
+
name: string;
|
|
287
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
288
|
+
} | undefined;
|
|
289
|
+
color?: {
|
|
290
|
+
light: string;
|
|
291
|
+
dark: string;
|
|
292
|
+
} | undefined;
|
|
293
|
+
hidden?: boolean | undefined;
|
|
294
|
+
} & ({
|
|
295
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
296
|
+
} | {
|
|
297
|
+
href: string;
|
|
298
|
+
}))[] | undefined;
|
|
299
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { nonRecursiveAnchorSchema } from './anchors.js';
|
|
3
|
+
import { nonRecursiveDropdownSchema } from './dropdown.js';
|
|
4
|
+
import { nonRecursiveLanguageSchema } from './languages.js';
|
|
5
|
+
import { nonRecursiveTabSchema } from './tabs.js';
|
|
6
|
+
import { nonRecursiveVersionSchema } from './version.js';
|
|
7
|
+
export const globalSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
languages: z.array(nonRecursiveLanguageSchema).optional(),
|
|
10
|
+
versions: z.array(nonRecursiveVersionSchema).optional(),
|
|
11
|
+
tabs: z.array(nonRecursiveTabSchema).optional(),
|
|
12
|
+
dropdowns: z.array(nonRecursiveDropdownSchema).optional(),
|
|
13
|
+
anchors: z.array(nonRecursiveAnchorSchema).optional(),
|
|
14
|
+
})
|
|
15
|
+
.strict()
|
|
16
|
+
.describe('Add external links that will appear on all sections and pages irregardless of navigation nesting');
|