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