@mintlify/validation 0.1.249 → 0.1.250
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 +945 -410
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +232 -19
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +160 -19
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +0 -25
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +364 -110
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +88 -19
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +160 -19
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +88 -19
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +6 -2
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +182 -55
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +182 -75
- package/dist/mint-config/upgrades/updateNavigationToDocsConfig.d.ts +2 -2
- package/dist/mint-config/upgrades/upgradeToDocsConfig.d.ts +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -2,15 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
3
|
version: z.ZodString;
|
|
4
4
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
6
5
|
}, "strip", z.ZodTypeAny, {
|
|
7
6
|
version: string;
|
|
8
7
|
hidden?: boolean | undefined;
|
|
9
|
-
openapi?: string | string[] | undefined;
|
|
10
8
|
}, {
|
|
11
9
|
version: string;
|
|
12
10
|
hidden?: boolean | undefined;
|
|
13
|
-
openapi?: string | string[] | undefined;
|
|
14
11
|
}>, z.ZodObject<{
|
|
15
12
|
href: z.ZodString;
|
|
16
13
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21,79 +18,151 @@ export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
21
18
|
export declare const versionSchema: z.ZodIntersection<z.ZodObject<{
|
|
22
19
|
version: z.ZodString;
|
|
23
20
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
25
21
|
}, "strip", z.ZodTypeAny, {
|
|
26
22
|
version: string;
|
|
27
23
|
hidden?: boolean | undefined;
|
|
28
|
-
openapi?: string | string[] | undefined;
|
|
29
24
|
}, {
|
|
30
25
|
version: string;
|
|
31
26
|
hidden?: boolean | undefined;
|
|
32
|
-
openapi?: string | string[] | undefined;
|
|
33
27
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
34
28
|
href: z.ZodString;
|
|
35
29
|
}, "strip", z.ZodTypeAny, {
|
|
36
30
|
href: string;
|
|
37
31
|
}, {
|
|
38
32
|
href: string;
|
|
39
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
40
|
-
export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
33
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
41
34
|
version: z.ZodString;
|
|
42
35
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
44
36
|
}, "strip", z.ZodTypeAny, {
|
|
45
37
|
version: string;
|
|
46
38
|
hidden?: boolean | undefined;
|
|
47
|
-
openapi?: string | string[] | undefined;
|
|
48
39
|
}, {
|
|
49
40
|
version: string;
|
|
50
41
|
hidden?: boolean | undefined;
|
|
42
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
43
|
+
href: z.ZodString;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
href: string;
|
|
46
|
+
}, {
|
|
47
|
+
href: string;
|
|
48
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
49
|
+
openapi: z.ZodOptional<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[] | undefined;
|
|
52
|
+
}, {
|
|
51
53
|
openapi?: string | string[] | undefined;
|
|
54
|
+
}>>;
|
|
55
|
+
export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
56
|
+
version: z.ZodString;
|
|
57
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
version: string;
|
|
60
|
+
hidden?: boolean | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
version: string;
|
|
63
|
+
hidden?: boolean | undefined;
|
|
52
64
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
53
65
|
href: z.ZodString;
|
|
54
66
|
}, "strip", z.ZodTypeAny, {
|
|
55
67
|
href: string;
|
|
56
68
|
}, {
|
|
57
69
|
href: string;
|
|
58
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
59
|
-
export declare const versionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
70
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
60
71
|
version: z.ZodString;
|
|
61
72
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
63
73
|
}, "strip", z.ZodTypeAny, {
|
|
64
74
|
version: string;
|
|
65
75
|
hidden?: boolean | undefined;
|
|
66
|
-
openapi?: string | string[] | undefined;
|
|
67
76
|
}, {
|
|
68
77
|
version: string;
|
|
69
78
|
hidden?: boolean | undefined;
|
|
79
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
80
|
+
href: z.ZodString;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
href: string;
|
|
83
|
+
}, {
|
|
84
|
+
href: string;
|
|
85
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
86
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
openapi?: string | string[] | undefined;
|
|
89
|
+
}, {
|
|
70
90
|
openapi?: string | string[] | undefined;
|
|
91
|
+
}>>;
|
|
92
|
+
export declare const versionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
93
|
+
version: z.ZodString;
|
|
94
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
version: string;
|
|
97
|
+
hidden?: boolean | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
version: string;
|
|
100
|
+
hidden?: boolean | undefined;
|
|
71
101
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
72
102
|
href: z.ZodString;
|
|
73
103
|
}, "strip", z.ZodTypeAny, {
|
|
74
104
|
href: string;
|
|
75
105
|
}, {
|
|
76
106
|
href: string;
|
|
77
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
78
|
-
export declare const decoratedVersionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
107
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
79
108
|
version: z.ZodString;
|
|
80
109
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
82
110
|
}, "strip", z.ZodTypeAny, {
|
|
83
111
|
version: string;
|
|
84
112
|
hidden?: boolean | undefined;
|
|
85
|
-
openapi?: string | string[] | undefined;
|
|
86
113
|
}, {
|
|
87
114
|
version: string;
|
|
88
115
|
hidden?: boolean | undefined;
|
|
116
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
117
|
+
href: z.ZodString;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
href: string;
|
|
120
|
+
}, {
|
|
121
|
+
href: string;
|
|
122
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
123
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
openapi?: string | string[] | undefined;
|
|
126
|
+
}, {
|
|
89
127
|
openapi?: string | string[] | undefined;
|
|
128
|
+
}>>, "many">;
|
|
129
|
+
export declare const decoratedVersionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
130
|
+
version: z.ZodString;
|
|
131
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
version: string;
|
|
134
|
+
hidden?: boolean | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
version: string;
|
|
137
|
+
hidden?: boolean | undefined;
|
|
90
138
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
91
139
|
href: z.ZodString;
|
|
92
140
|
}, "strip", z.ZodTypeAny, {
|
|
93
141
|
href: string;
|
|
94
142
|
}, {
|
|
95
143
|
href: string;
|
|
96
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
144
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
145
|
+
version: z.ZodString;
|
|
146
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
version: string;
|
|
149
|
+
hidden?: boolean | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
version: string;
|
|
152
|
+
hidden?: boolean | undefined;
|
|
153
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
154
|
+
href: z.ZodString;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
href: string;
|
|
157
|
+
}, {
|
|
158
|
+
href: string;
|
|
159
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
160
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
openapi?: string | string[] | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
openapi?: string | string[] | undefined;
|
|
165
|
+
}>>, "many">;
|
|
97
166
|
export type VersionsConfig = z.infer<typeof versionsSchema>;
|
|
98
167
|
export type VersionConfig = z.infer<typeof versionSchema>;
|
|
99
168
|
export type DecoratedVersionsConfig = z.infer<typeof decoratedVersionsSchema>;
|
|
@@ -6,9 +6,13 @@ import { getDivisionSchemasExcluding, registerDivisionSchema } from './divisionS
|
|
|
6
6
|
const baseVersionSchema = z.object({
|
|
7
7
|
version: z.string().nonempty().describe('The name of the version'),
|
|
8
8
|
hidden: hiddenSchema.optional(),
|
|
9
|
-
openapi: openApiSchema.optional(),
|
|
10
9
|
});
|
|
11
|
-
const createVersionSchema = (type) =>
|
|
10
|
+
const createVersionSchema = (type) => {
|
|
11
|
+
const baseSchema = baseVersionSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('versions', type)]));
|
|
12
|
+
return type === 'decorated'
|
|
13
|
+
? baseSchema
|
|
14
|
+
: baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
|
|
15
|
+
};
|
|
12
16
|
export const nonRecursiveVersionSchema = baseVersionSchema.and(z.object({ href: hrefSchema }));
|
|
13
17
|
export const versionSchema = createVersionSchema('default');
|
|
14
18
|
export const decoratedVersionSchema = createVersionSchema('decorated');
|