@mintlify/validation 0.1.229 → 0.1.230
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 +188 -188
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +6 -6
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +6 -6
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +10 -10
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +1 -1
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +31 -31
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +17 -17
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +6 -6
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +1 -13
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +6 -6
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +6 -6
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +47 -47
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +47 -47
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +47 -47
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +31 -31
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +47 -47
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -20,11 +20,11 @@ const anchorSchema = z
|
|
|
20
20
|
.and(z.union([
|
|
21
21
|
z.object({ href: hrefSchema }),
|
|
22
22
|
z.object({ openapi: openApiSchema }),
|
|
23
|
-
z.object({ languages: languagesSchema }),
|
|
24
|
-
z.object({ versions: versionsSchema }),
|
|
25
|
-
z.object({ dropdowns: dropdownsSchema }),
|
|
26
|
-
z.object({ tabs: tabsSchema }),
|
|
27
|
-
z.object({ groups: groupsSchema }),
|
|
28
|
-
z.object({ pages: pagesSchema }),
|
|
23
|
+
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
24
|
+
z.lazy(() => z.object({ versions: versionsSchema })),
|
|
25
|
+
z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
|
|
26
|
+
z.lazy(() => z.object({ tabs: tabsSchema })),
|
|
27
|
+
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
28
|
+
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
29
29
|
]));
|
|
30
30
|
export const anchorsSchema = z.array(anchorSchema).describe('Organizing by anchors');
|
|
@@ -18,11 +18,11 @@ const dropdownSchema = z
|
|
|
18
18
|
.and(z.union([
|
|
19
19
|
z.object({ href: hrefSchema }),
|
|
20
20
|
z.object({ openapi: openApiSchema }),
|
|
21
|
-
z.object({ languages: languagesSchema }),
|
|
22
|
-
z.object({ versions: versionsSchema }),
|
|
23
|
-
z.object({ tabs: tabsSchema }),
|
|
24
|
-
z.object({ anchors: anchorsSchema }),
|
|
25
|
-
z.object({ groups: groupsSchema }),
|
|
26
|
-
z.object({ pages: pagesSchema }),
|
|
21
|
+
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
22
|
+
z.lazy(() => z.object({ versions: versionsSchema })),
|
|
23
|
+
z.lazy(() => z.object({ tabs: tabsSchema })),
|
|
24
|
+
z.lazy(() => z.object({ anchors: anchorsSchema })),
|
|
25
|
+
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
26
|
+
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
27
27
|
]));
|
|
28
28
|
export const dropdownsSchema = z.array(dropdownSchema).describe('Organizing by dropdowns');
|
|
@@ -35,13 +35,13 @@ export declare const groupSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
35
35
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
36
36
|
}, {
|
|
37
37
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
38
|
-
}>, z.ZodObject<{
|
|
39
|
-
pages: z.ZodArray<z.ZodType<
|
|
38
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
39
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
pages:
|
|
41
|
+
pages: any[];
|
|
42
42
|
}, {
|
|
43
|
-
pages:
|
|
44
|
-
}
|
|
43
|
+
pages: any[];
|
|
44
|
+
}>>]>>;
|
|
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<{
|
|
@@ -78,10 +78,10 @@ export declare const groupsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
78
78
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
79
79
|
}, {
|
|
80
80
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
81
|
-
}>, z.ZodObject<{
|
|
82
|
-
pages: z.ZodArray<z.ZodType<
|
|
81
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
82
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
pages:
|
|
84
|
+
pages: any[];
|
|
85
85
|
}, {
|
|
86
|
-
pages:
|
|
87
|
-
}
|
|
86
|
+
pages: any[];
|
|
87
|
+
}>>]>>, "many">;
|
|
@@ -11,6 +11,6 @@ export const groupSchema = z
|
|
|
11
11
|
hidden: hiddenSchema.optional(),
|
|
12
12
|
root: pageSchema.optional(),
|
|
13
13
|
})
|
|
14
|
-
.and(z.union([z.object({ openapi: openApiSchema }), z.object({ pages: pagesSchema })]))
|
|
14
|
+
.and(z.union([z.object({ openapi: openApiSchema }), z.lazy(() => z.object({ pages: pagesSchema }))]))
|
|
15
15
|
.describe('Organizing by groups');
|
|
16
16
|
export const groupsSchema = z.array(groupSchema);
|
|
@@ -21,31 +21,31 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
21
21
|
href: string;
|
|
22
22
|
}, {
|
|
23
23
|
href: string;
|
|
24
|
-
}>, z.ZodObject<{
|
|
24
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
25
25
|
versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
versions: any[];
|
|
28
28
|
}, {
|
|
29
29
|
versions: any[];
|
|
30
|
-
}
|
|
30
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
31
31
|
tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
tabs: any[];
|
|
34
34
|
}, {
|
|
35
35
|
tabs: any[];
|
|
36
|
-
}
|
|
36
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
37
37
|
dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
dropdowns: any[];
|
|
40
40
|
}, {
|
|
41
41
|
dropdowns: any[];
|
|
42
|
-
}
|
|
42
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
43
43
|
anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
anchors: any[];
|
|
46
46
|
}, {
|
|
47
47
|
anchors: any[];
|
|
48
|
-
}
|
|
48
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
49
49
|
groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
50
50
|
group: z.ZodString;
|
|
51
51
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
@@ -82,13 +82,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
82
82
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
83
83
|
}, {
|
|
84
84
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
85
|
-
}>, z.ZodObject<{
|
|
86
|
-
pages: z.ZodArray<z.ZodType<
|
|
85
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
86
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
pages:
|
|
88
|
+
pages: any[];
|
|
89
89
|
}, {
|
|
90
|
-
pages:
|
|
91
|
-
}
|
|
90
|
+
pages: any[];
|
|
91
|
+
}>>]>>, "many">;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
groups: ({
|
|
94
94
|
group: string;
|
|
@@ -101,7 +101,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
101
101
|
} & ({
|
|
102
102
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
103
103
|
} | {
|
|
104
|
-
pages:
|
|
104
|
+
pages: any[];
|
|
105
105
|
}))[];
|
|
106
106
|
}, {
|
|
107
107
|
groups: ({
|
|
@@ -115,15 +115,15 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
115
115
|
} & ({
|
|
116
116
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
117
117
|
} | {
|
|
118
|
-
pages:
|
|
118
|
+
pages: any[];
|
|
119
119
|
}))[];
|
|
120
|
-
}
|
|
121
|
-
pages: z.ZodArray<z.ZodType<
|
|
120
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
121
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
pages:
|
|
123
|
+
pages: any[];
|
|
124
124
|
}, {
|
|
125
|
-
pages:
|
|
126
|
-
}
|
|
125
|
+
pages: any[];
|
|
126
|
+
}>>]>>, "many">;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
languages: ({
|
|
129
129
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
@@ -152,10 +152,10 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
152
152
|
} & ({
|
|
153
153
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
154
154
|
} | {
|
|
155
|
-
pages:
|
|
155
|
+
pages: any[];
|
|
156
156
|
}))[];
|
|
157
157
|
} | {
|
|
158
|
-
pages:
|
|
158
|
+
pages: any[];
|
|
159
159
|
}))[];
|
|
160
160
|
}, {
|
|
161
161
|
languages: ({
|
|
@@ -185,10 +185,10 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
185
185
|
} & ({
|
|
186
186
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
187
187
|
} | {
|
|
188
|
-
pages:
|
|
188
|
+
pages: any[];
|
|
189
189
|
}))[];
|
|
190
190
|
} | {
|
|
191
|
-
pages:
|
|
191
|
+
pages: any[];
|
|
192
192
|
}))[];
|
|
193
193
|
}>, z.ZodObject<{
|
|
194
194
|
versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
@@ -251,13 +251,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
251
251
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
252
252
|
}, {
|
|
253
253
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
254
|
-
}>, z.ZodObject<{
|
|
255
|
-
pages: z.ZodArray<z.ZodType<
|
|
254
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
255
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
pages:
|
|
257
|
+
pages: any[];
|
|
258
258
|
}, {
|
|
259
|
-
pages:
|
|
260
|
-
}
|
|
259
|
+
pages: any[];
|
|
260
|
+
}>>]>>, "many">;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
groups: ({
|
|
263
263
|
group: string;
|
|
@@ -270,7 +270,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
270
270
|
} & ({
|
|
271
271
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
272
272
|
} | {
|
|
273
|
-
pages:
|
|
273
|
+
pages: any[];
|
|
274
274
|
}))[];
|
|
275
275
|
}, {
|
|
276
276
|
groups: ({
|
|
@@ -284,12 +284,12 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
284
284
|
} & ({
|
|
285
285
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
286
286
|
} | {
|
|
287
|
-
pages:
|
|
287
|
+
pages: any[];
|
|
288
288
|
}))[];
|
|
289
289
|
}>, z.ZodObject<{
|
|
290
|
-
pages: z.ZodArray<z.ZodType<
|
|
290
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
pages:
|
|
292
|
+
pages: any[];
|
|
293
293
|
}, {
|
|
294
|
-
pages:
|
|
294
|
+
pages: any[];
|
|
295
295
|
}>]>;
|
|
@@ -20,31 +20,31 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
20
20
|
href: string;
|
|
21
21
|
}, {
|
|
22
22
|
href: string;
|
|
23
|
-
}>, z.ZodObject<{
|
|
23
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
24
24
|
versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
versions: any[];
|
|
27
27
|
}, {
|
|
28
28
|
versions: any[];
|
|
29
|
-
}
|
|
29
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
30
30
|
tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
tabs: any[];
|
|
33
33
|
}, {
|
|
34
34
|
tabs: any[];
|
|
35
|
-
}
|
|
35
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
36
36
|
dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
dropdowns: any[];
|
|
39
39
|
}, {
|
|
40
40
|
dropdowns: any[];
|
|
41
|
-
}
|
|
41
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
42
42
|
anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
anchors: any[];
|
|
45
45
|
}, {
|
|
46
46
|
anchors: any[];
|
|
47
|
-
}
|
|
47
|
+
}>>, z.ZodLazy<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<{
|
|
@@ -81,13 +81,13 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
81
81
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
82
82
|
}, {
|
|
83
83
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
84
|
-
}>, z.ZodObject<{
|
|
85
|
-
pages: z.ZodArray<z.ZodType<
|
|
84
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
85
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
pages:
|
|
87
|
+
pages: any[];
|
|
88
88
|
}, {
|
|
89
|
-
pages:
|
|
90
|
-
}
|
|
89
|
+
pages: any[];
|
|
90
|
+
}>>]>>, "many">;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
groups: ({
|
|
93
93
|
group: string;
|
|
@@ -100,7 +100,7 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
100
100
|
} & ({
|
|
101
101
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
102
102
|
} | {
|
|
103
|
-
pages:
|
|
103
|
+
pages: any[];
|
|
104
104
|
}))[];
|
|
105
105
|
}, {
|
|
106
106
|
groups: ({
|
|
@@ -114,12 +114,12 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
114
114
|
} & ({
|
|
115
115
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
116
116
|
} | {
|
|
117
|
-
pages:
|
|
117
|
+
pages: any[];
|
|
118
118
|
}))[];
|
|
119
|
-
}
|
|
120
|
-
pages: z.ZodArray<z.ZodType<
|
|
119
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
120
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
pages:
|
|
122
|
+
pages: any[];
|
|
123
123
|
}, {
|
|
124
|
-
pages:
|
|
125
|
-
}
|
|
124
|
+
pages: any[];
|
|
125
|
+
}>>]>>, "many">;
|
|
@@ -18,12 +18,12 @@ const languageSchema = z
|
|
|
18
18
|
.and(z.union([
|
|
19
19
|
z.object({ openapi: openApiSchema }),
|
|
20
20
|
z.object({ href: hrefSchema }),
|
|
21
|
-
z.object({ versions: versionsSchema }),
|
|
22
|
-
z.object({ tabs: tabsSchema }),
|
|
23
|
-
z.object({ dropdowns: dropdownsSchema }),
|
|
24
|
-
z.object({ anchors: anchorsSchema }),
|
|
25
|
-
z.object({ groups: groupsSchema }),
|
|
26
|
-
z.object({ pages: pagesSchema }),
|
|
21
|
+
z.lazy(() => z.object({ versions: versionsSchema })),
|
|
22
|
+
z.lazy(() => z.object({ tabs: tabsSchema })),
|
|
23
|
+
z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
|
|
24
|
+
z.lazy(() => z.object({ anchors: anchorsSchema })),
|
|
25
|
+
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
26
|
+
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
27
27
|
]))
|
|
28
28
|
.describe('Organizing by languages');
|
|
29
29
|
export const languagesSchema = z
|
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export
|
|
3
|
-
export type Group = {
|
|
4
|
-
group: string;
|
|
5
|
-
openapi?: string | string[];
|
|
6
|
-
hidden?: boolean;
|
|
7
|
-
homepage?: string;
|
|
8
|
-
pages?: Page[];
|
|
9
|
-
} & ({
|
|
10
|
-
openapi: string | string[];
|
|
11
|
-
} | {
|
|
12
|
-
pages: Page[];
|
|
13
|
-
});
|
|
14
|
-
export declare const pagesSchema: z.ZodArray<z.ZodType<Page, z.ZodTypeDef, Page>, "many">;
|
|
2
|
+
export declare const pagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
@@ -18,11 +18,11 @@ const tabSchema = z
|
|
|
18
18
|
.and(z.union([
|
|
19
19
|
z.object({ openapi: openApiSchema }),
|
|
20
20
|
z.object({ href: hrefSchema }),
|
|
21
|
-
z.object({ languages: languagesSchema }),
|
|
22
|
-
z.object({ versions: versionsSchema }),
|
|
23
|
-
z.object({ dropdowns: dropdownsSchema }),
|
|
24
|
-
z.object({ anchors: anchorsSchema }),
|
|
25
|
-
z.object({ groups: groupsSchema }),
|
|
26
|
-
z.object({ pages: pagesSchema }),
|
|
21
|
+
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
22
|
+
z.lazy(() => z.object({ versions: versionsSchema })),
|
|
23
|
+
z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
|
|
24
|
+
z.lazy(() => z.object({ anchors: anchorsSchema })),
|
|
25
|
+
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
26
|
+
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
27
27
|
]));
|
|
28
28
|
export const tabsSchema = z.array(tabSchema).describe('Organizing by tabs');
|
|
@@ -16,11 +16,11 @@ const versionSchema = z
|
|
|
16
16
|
.and(z.union([
|
|
17
17
|
z.object({ openapi: openApiSchema }),
|
|
18
18
|
z.object({ href: hrefSchema }),
|
|
19
|
-
z.object({ languages: languagesSchema }),
|
|
20
|
-
z.object({ tabs: tabsSchema }),
|
|
21
|
-
z.object({ dropdowns: dropdownsSchema }),
|
|
22
|
-
z.object({ anchors: anchorsSchema }),
|
|
23
|
-
z.object({ groups: groupsSchema }),
|
|
24
|
-
z.object({ pages: pagesSchema }),
|
|
19
|
+
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
20
|
+
z.lazy(() => z.object({ tabs: tabsSchema })),
|
|
21
|
+
z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
|
|
22
|
+
z.lazy(() => z.object({ anchors: anchorsSchema })),
|
|
23
|
+
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
24
|
+
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
25
25
|
]));
|
|
26
26
|
export const versionsSchema = z.array(versionSchema).describe('Organizing by versions');
|
|
@@ -210,31 +210,31 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
210
210
|
href: string;
|
|
211
211
|
}, {
|
|
212
212
|
href: string;
|
|
213
|
-
}>, z.ZodObject<{
|
|
213
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
214
214
|
versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
215
215
|
}, "strip", z.ZodTypeAny, {
|
|
216
216
|
versions: any[];
|
|
217
217
|
}, {
|
|
218
218
|
versions: any[];
|
|
219
|
-
}
|
|
219
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
220
220
|
tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
222
|
tabs: any[];
|
|
223
223
|
}, {
|
|
224
224
|
tabs: any[];
|
|
225
|
-
}
|
|
225
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
226
226
|
dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
228
|
dropdowns: any[];
|
|
229
229
|
}, {
|
|
230
230
|
dropdowns: any[];
|
|
231
|
-
}
|
|
231
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
232
232
|
anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
234
|
anchors: any[];
|
|
235
235
|
}, {
|
|
236
236
|
anchors: any[];
|
|
237
|
-
}
|
|
237
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
238
238
|
groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
239
239
|
group: z.ZodString;
|
|
240
240
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
@@ -271,13 +271,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
271
271
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
272
272
|
}, {
|
|
273
273
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
274
|
-
}>, z.ZodObject<{
|
|
275
|
-
pages: z.ZodArray<z.ZodType<
|
|
274
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
275
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
pages:
|
|
277
|
+
pages: any[];
|
|
278
278
|
}, {
|
|
279
|
-
pages:
|
|
280
|
-
}
|
|
279
|
+
pages: any[];
|
|
280
|
+
}>>]>>, "many">;
|
|
281
281
|
}, "strip", z.ZodTypeAny, {
|
|
282
282
|
groups: ({
|
|
283
283
|
group: string;
|
|
@@ -290,7 +290,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
290
290
|
} & ({
|
|
291
291
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
292
292
|
} | {
|
|
293
|
-
pages:
|
|
293
|
+
pages: any[];
|
|
294
294
|
}))[];
|
|
295
295
|
}, {
|
|
296
296
|
groups: ({
|
|
@@ -304,15 +304,15 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
304
304
|
} & ({
|
|
305
305
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
306
306
|
} | {
|
|
307
|
-
pages:
|
|
307
|
+
pages: any[];
|
|
308
308
|
}))[];
|
|
309
|
-
}
|
|
310
|
-
pages: z.ZodArray<z.ZodType<
|
|
309
|
+
}>>, z.ZodLazy<z.ZodObject<{
|
|
310
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
-
pages:
|
|
312
|
+
pages: any[];
|
|
313
313
|
}, {
|
|
314
|
-
pages:
|
|
315
|
-
}
|
|
314
|
+
pages: any[];
|
|
315
|
+
}>>]>>, "many">;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
languages: ({
|
|
318
318
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
@@ -341,10 +341,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
341
341
|
} & ({
|
|
342
342
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
343
343
|
} | {
|
|
344
|
-
pages:
|
|
344
|
+
pages: any[];
|
|
345
345
|
}))[];
|
|
346
346
|
} | {
|
|
347
|
-
pages:
|
|
347
|
+
pages: any[];
|
|
348
348
|
}))[];
|
|
349
349
|
}, {
|
|
350
350
|
languages: ({
|
|
@@ -374,10 +374,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
374
374
|
} & ({
|
|
375
375
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
376
376
|
} | {
|
|
377
|
-
pages:
|
|
377
|
+
pages: any[];
|
|
378
378
|
}))[];
|
|
379
379
|
} | {
|
|
380
|
-
pages:
|
|
380
|
+
pages: any[];
|
|
381
381
|
}))[];
|
|
382
382
|
}>, z.ZodObject<{
|
|
383
383
|
versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
@@ -440,13 +440,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
440
440
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
441
441
|
}, {
|
|
442
442
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
443
|
-
}>, z.ZodObject<{
|
|
444
|
-
pages: z.ZodArray<z.ZodType<
|
|
443
|
+
}>, z.ZodLazy<z.ZodObject<{
|
|
444
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
445
445
|
}, "strip", z.ZodTypeAny, {
|
|
446
|
-
pages:
|
|
446
|
+
pages: any[];
|
|
447
447
|
}, {
|
|
448
|
-
pages:
|
|
449
|
-
}
|
|
448
|
+
pages: any[];
|
|
449
|
+
}>>]>>, "many">;
|
|
450
450
|
}, "strip", z.ZodTypeAny, {
|
|
451
451
|
groups: ({
|
|
452
452
|
group: string;
|
|
@@ -459,7 +459,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
459
459
|
} & ({
|
|
460
460
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
461
461
|
} | {
|
|
462
|
-
pages:
|
|
462
|
+
pages: any[];
|
|
463
463
|
}))[];
|
|
464
464
|
}, {
|
|
465
465
|
groups: ({
|
|
@@ -473,14 +473,14 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
473
473
|
} & ({
|
|
474
474
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
475
475
|
} | {
|
|
476
|
-
pages:
|
|
476
|
+
pages: any[];
|
|
477
477
|
}))[];
|
|
478
478
|
}>, z.ZodObject<{
|
|
479
|
-
pages: z.ZodArray<z.ZodType<
|
|
479
|
+
pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
480
480
|
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
pages:
|
|
481
|
+
pages: any[];
|
|
482
482
|
}, {
|
|
483
|
-
pages:
|
|
483
|
+
pages: any[];
|
|
484
484
|
}>]>;
|
|
485
485
|
footer: z.ZodOptional<z.ZodObject<{
|
|
486
486
|
socials: z.ZodOptional<z.ZodRecord<z.ZodEnum<["x", "website", "facebook", "youtube", "discord", "slack", "github", "linkedin", "instagram", "hacker-news", "medium", "telegram", "twitter"]>, z.ZodString>>;
|
|
@@ -992,10 +992,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
992
992
|
} & ({
|
|
993
993
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
994
994
|
} | {
|
|
995
|
-
pages:
|
|
995
|
+
pages: any[];
|
|
996
996
|
}))[];
|
|
997
997
|
} | {
|
|
998
|
-
pages:
|
|
998
|
+
pages: any[];
|
|
999
999
|
}))[];
|
|
1000
1000
|
} | {
|
|
1001
1001
|
versions: any[];
|
|
@@ -1017,10 +1017,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1017
1017
|
} & ({
|
|
1018
1018
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1019
1019
|
} | {
|
|
1020
|
-
pages:
|
|
1020
|
+
pages: any[];
|
|
1021
1021
|
}))[];
|
|
1022
1022
|
} | {
|
|
1023
|
-
pages:
|
|
1023
|
+
pages: any[];
|
|
1024
1024
|
}) & ({
|
|
1025
1025
|
languages: ({
|
|
1026
1026
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
@@ -1049,10 +1049,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1049
1049
|
} & ({
|
|
1050
1050
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1051
1051
|
} | {
|
|
1052
|
-
pages:
|
|
1052
|
+
pages: any[];
|
|
1053
1053
|
}))[];
|
|
1054
1054
|
} | {
|
|
1055
|
-
pages:
|
|
1055
|
+
pages: any[];
|
|
1056
1056
|
}))[];
|
|
1057
1057
|
} | {
|
|
1058
1058
|
versions: any[];
|
|
@@ -1074,10 +1074,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1074
1074
|
} & ({
|
|
1075
1075
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1076
1076
|
} | {
|
|
1077
|
-
pages:
|
|
1077
|
+
pages: any[];
|
|
1078
1078
|
}))[];
|
|
1079
1079
|
} | {
|
|
1080
|
-
pages:
|
|
1080
|
+
pages: any[];
|
|
1081
1081
|
} | undefined);
|
|
1082
1082
|
description?: string | undefined;
|
|
1083
1083
|
logo?: string | {
|
|
@@ -1278,10 +1278,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1278
1278
|
} & ({
|
|
1279
1279
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1280
1280
|
} | {
|
|
1281
|
-
pages:
|
|
1281
|
+
pages: any[];
|
|
1282
1282
|
}))[];
|
|
1283
1283
|
} | {
|
|
1284
|
-
pages:
|
|
1284
|
+
pages: any[];
|
|
1285
1285
|
}))[];
|
|
1286
1286
|
} | {
|
|
1287
1287
|
versions: any[];
|
|
@@ -1303,10 +1303,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1303
1303
|
} & ({
|
|
1304
1304
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1305
1305
|
} | {
|
|
1306
|
-
pages:
|
|
1306
|
+
pages: any[];
|
|
1307
1307
|
}))[];
|
|
1308
1308
|
} | {
|
|
1309
|
-
pages:
|
|
1309
|
+
pages: any[];
|
|
1310
1310
|
}) & ({
|
|
1311
1311
|
languages: ({
|
|
1312
1312
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
@@ -1335,10 +1335,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1335
1335
|
} & ({
|
|
1336
1336
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1337
1337
|
} | {
|
|
1338
|
-
pages:
|
|
1338
|
+
pages: any[];
|
|
1339
1339
|
}))[];
|
|
1340
1340
|
} | {
|
|
1341
|
-
pages:
|
|
1341
|
+
pages: any[];
|
|
1342
1342
|
}))[];
|
|
1343
1343
|
} | {
|
|
1344
1344
|
versions: any[];
|
|
@@ -1360,10 +1360,10 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1360
1360
|
} & ({
|
|
1361
1361
|
openapi: (string | string[]) & (string | string[] | undefined);
|
|
1362
1362
|
} | {
|
|
1363
|
-
pages:
|
|
1363
|
+
pages: any[];
|
|
1364
1364
|
}))[];
|
|
1365
1365
|
} | {
|
|
1366
|
-
pages:
|
|
1366
|
+
pages: any[];
|
|
1367
1367
|
} | undefined);
|
|
1368
1368
|
$schema?: string | undefined;
|
|
1369
1369
|
description?: string | undefined;
|