@mintlify/validation 0.1.940 → 0.1.942
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/editor-navigation/types.d.ts +1 -1
- package/dist/mint-config/schemas/v2/index.d.ts +24 -48
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +2 -2
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +8 -26
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +3 -3
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +32 -80
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/menu.d.ts +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +8 -20
- package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +2 -2
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +4 -4
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/luma.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +16 -32
- package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +24 -48
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +24 -48
- package/dist/mint-config/validateConfig.d.ts +73 -144
- package/dist/mint-config/validateConfig.js +17 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -69,8 +69,6 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
69
69
|
}>>;
|
|
70
70
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
71
71
|
group: z.ZodString;
|
|
72
|
-
graphql: z.ZodOptional<z.ZodNever>;
|
|
73
|
-
sdk: z.ZodOptional<z.ZodNever>;
|
|
74
72
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
75
73
|
boost: z.ZodOptional<z.ZodNumber>;
|
|
76
74
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
@@ -101,12 +99,10 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
101
99
|
expanded?: boolean | undefined;
|
|
102
100
|
public?: boolean | undefined;
|
|
103
101
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
104
|
-
graphql?: undefined;
|
|
105
102
|
tag?: string | undefined;
|
|
106
103
|
searchable?: boolean | undefined;
|
|
107
104
|
boost?: number | undefined;
|
|
108
105
|
hidden?: boolean | undefined;
|
|
109
|
-
sdk?: undefined;
|
|
110
106
|
root?: string | undefined;
|
|
111
107
|
thumbnail?: {
|
|
112
108
|
background?: string | undefined;
|
|
@@ -125,12 +121,10 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
125
121
|
expanded?: boolean | undefined;
|
|
126
122
|
public?: boolean | undefined;
|
|
127
123
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
128
|
-
graphql?: undefined;
|
|
129
124
|
tag?: string | undefined;
|
|
130
125
|
searchable?: boolean | undefined;
|
|
131
126
|
boost?: number | undefined;
|
|
132
127
|
hidden?: boolean | undefined;
|
|
133
|
-
sdk?: undefined;
|
|
134
128
|
root?: string | undefined;
|
|
135
129
|
thumbnail?: {
|
|
136
130
|
background?: string | undefined;
|
|
@@ -143,7 +137,7 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
143
137
|
export type BaseGroupSchema = z.infer<typeof baseGroupSchema>;
|
|
144
138
|
export declare const groupSchema: z.ZodType<GroupNavigation<'default'>>;
|
|
145
139
|
export declare const decoratedGroupSchema: z.ZodType<GroupNavigation<'decorated'>>;
|
|
146
|
-
export declare const groupsSchema: z.ZodArray<z.ZodType<
|
|
140
|
+
export declare const groupsSchema: z.ZodArray<z.ZodType<{
|
|
147
141
|
group: string;
|
|
148
142
|
icon?: string | {
|
|
149
143
|
name: string;
|
|
@@ -153,12 +147,10 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
153
147
|
expanded?: boolean | undefined;
|
|
154
148
|
public?: boolean | undefined;
|
|
155
149
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
156
|
-
graphql?: undefined;
|
|
157
150
|
tag?: string | undefined;
|
|
158
151
|
searchable?: boolean | undefined;
|
|
159
152
|
boost?: number | undefined;
|
|
160
153
|
hidden?: boolean | undefined;
|
|
161
|
-
sdk?: undefined;
|
|
162
154
|
root?: string | undefined;
|
|
163
155
|
thumbnail?: {
|
|
164
156
|
background?: string | undefined;
|
|
@@ -167,7 +159,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
167
159
|
appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
|
|
168
160
|
surface?: "neutral" | "brand" | undefined;
|
|
169
161
|
} | undefined;
|
|
170
|
-
}
|
|
162
|
+
} & {
|
|
171
163
|
openapi?: string | {
|
|
172
164
|
source: string;
|
|
173
165
|
directory?: string | undefined;
|
|
@@ -185,7 +177,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
185
177
|
sdk?: z.infer<typeof sdkSchema>;
|
|
186
178
|
graphql?: z.infer<typeof graphqlSchema>;
|
|
187
179
|
pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
|
|
188
|
-
}, z.ZodTypeDef,
|
|
180
|
+
}, z.ZodTypeDef, {
|
|
189
181
|
group: string;
|
|
190
182
|
icon?: string | {
|
|
191
183
|
name: string;
|
|
@@ -195,12 +187,10 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
195
187
|
expanded?: boolean | undefined;
|
|
196
188
|
public?: boolean | undefined;
|
|
197
189
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
198
|
-
graphql?: undefined;
|
|
199
190
|
tag?: string | undefined;
|
|
200
191
|
searchable?: boolean | undefined;
|
|
201
192
|
boost?: number | undefined;
|
|
202
193
|
hidden?: boolean | undefined;
|
|
203
|
-
sdk?: undefined;
|
|
204
194
|
root?: string | undefined;
|
|
205
195
|
thumbnail?: {
|
|
206
196
|
background?: string | undefined;
|
|
@@ -209,7 +199,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
209
199
|
appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
|
|
210
200
|
surface?: "neutral" | "brand" | undefined;
|
|
211
201
|
} | undefined;
|
|
212
|
-
}
|
|
202
|
+
} & {
|
|
213
203
|
openapi?: string | {
|
|
214
204
|
source: string;
|
|
215
205
|
directory?: string | undefined;
|
|
@@ -238,12 +228,10 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
238
228
|
expanded?: boolean | undefined;
|
|
239
229
|
public?: boolean | undefined;
|
|
240
230
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
241
|
-
graphql?: undefined;
|
|
242
231
|
tag?: string | undefined;
|
|
243
232
|
searchable?: boolean | undefined;
|
|
244
233
|
boost?: number | undefined;
|
|
245
234
|
hidden?: boolean | undefined;
|
|
246
|
-
sdk?: undefined;
|
|
247
235
|
root?: string | undefined;
|
|
248
236
|
thumbnail?: {
|
|
249
237
|
background?: string | undefined;
|
|
@@ -252,7 +240,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
252
240
|
appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
|
|
253
241
|
surface?: "neutral" | "brand" | undefined;
|
|
254
242
|
} | undefined;
|
|
255
|
-
}, "
|
|
243
|
+
}, "root"> & {
|
|
256
244
|
pages: (z.objectInputType<{
|
|
257
245
|
href: z.ZodString;
|
|
258
246
|
title: z.ZodString;
|
|
@@ -477,12 +465,10 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
477
465
|
expanded?: boolean | undefined;
|
|
478
466
|
public?: boolean | undefined;
|
|
479
467
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
480
|
-
graphql?: undefined;
|
|
481
468
|
tag?: string | undefined;
|
|
482
469
|
searchable?: boolean | undefined;
|
|
483
470
|
boost?: number | undefined;
|
|
484
471
|
hidden?: boolean | undefined;
|
|
485
|
-
sdk?: undefined;
|
|
486
472
|
root?: string | undefined;
|
|
487
473
|
thumbnail?: {
|
|
488
474
|
background?: string | undefined;
|
|
@@ -491,7 +477,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
491
477
|
appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
|
|
492
478
|
surface?: "neutral" | "brand" | undefined;
|
|
493
479
|
} | undefined;
|
|
494
|
-
}, "
|
|
480
|
+
}, "root"> & /*elided*/ any))[];
|
|
495
481
|
root?: z.objectInputType<{
|
|
496
482
|
href: z.ZodString;
|
|
497
483
|
title: z.ZodString;
|
|
@@ -717,12 +703,10 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
717
703
|
expanded?: boolean | undefined;
|
|
718
704
|
public?: boolean | undefined;
|
|
719
705
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
720
|
-
graphql?: undefined;
|
|
721
706
|
tag?: string | undefined;
|
|
722
707
|
searchable?: boolean | undefined;
|
|
723
708
|
boost?: number | undefined;
|
|
724
709
|
hidden?: boolean | undefined;
|
|
725
|
-
sdk?: undefined;
|
|
726
710
|
root?: string | undefined;
|
|
727
711
|
thumbnail?: {
|
|
728
712
|
background?: string | undefined;
|
|
@@ -731,7 +715,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
731
715
|
appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
|
|
732
716
|
surface?: "neutral" | "brand" | undefined;
|
|
733
717
|
} | undefined;
|
|
734
|
-
}, "
|
|
718
|
+
}, "root"> & {
|
|
735
719
|
pages: (z.objectInputType<{
|
|
736
720
|
href: z.ZodString;
|
|
737
721
|
title: z.ZodString;
|
|
@@ -956,12 +940,10 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
956
940
|
expanded?: boolean | undefined;
|
|
957
941
|
public?: boolean | undefined;
|
|
958
942
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
959
|
-
graphql?: undefined;
|
|
960
943
|
tag?: string | undefined;
|
|
961
944
|
searchable?: boolean | undefined;
|
|
962
945
|
boost?: number | undefined;
|
|
963
946
|
hidden?: boolean | undefined;
|
|
964
|
-
sdk?: undefined;
|
|
965
947
|
root?: string | undefined;
|
|
966
948
|
thumbnail?: {
|
|
967
949
|
background?: string | undefined;
|
|
@@ -970,7 +952,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
970
952
|
appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
|
|
971
953
|
surface?: "neutral" | "brand" | undefined;
|
|
972
954
|
} | undefined;
|
|
973
|
-
}, "
|
|
955
|
+
}, "root"> & /*elided*/ any))[];
|
|
974
956
|
root?: z.objectInputType<{
|
|
975
957
|
href: z.ZodString;
|
|
976
958
|
title: z.ZodString;
|
|
@@ -11,12 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
14
|
-
import {
|
|
14
|
+
import { graphqlSchema } from '../reusable/graphql.js';
|
|
15
15
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
16
16
|
import { iconSchema } from '../reusable/icon.js';
|
|
17
17
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
18
18
|
import { decoratedPageSchema, pageSchema } from '../reusable/page.js';
|
|
19
|
-
import {
|
|
19
|
+
import { sdkSchema } from '../reusable/sdk.js';
|
|
20
20
|
import { searchableSchema } from '../reusable/searchable.js';
|
|
21
21
|
import { thumbnailField } from '../thumbnails.js';
|
|
22
22
|
import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
@@ -28,7 +28,7 @@ export const directoryField = {
|
|
|
28
28
|
.optional()
|
|
29
29
|
.describe('Directory layout for this navigation node and its descendants. "accordion" and "card" show automatic directory UI on eligible root pages; "none" disables it. Inherits recursively; descendants can override.'),
|
|
30
30
|
};
|
|
31
|
-
export const baseGroupSchema = z.object(Object.assign(Object.assign({ group: z.string().nonempty().describe('The name of the group'),
|
|
31
|
+
export const baseGroupSchema = z.object(Object.assign(Object.assign({ group: z.string().nonempty().describe('The name of the group'), public: z.boolean().optional().describe('Whether the group is public'), boost: z
|
|
32
32
|
.number()
|
|
33
33
|
.optional()
|
|
34
34
|
.describe('Search ranking multiplier for pages in this group (e.g. 3 = 3x boost)'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), root: pageSchema.optional(), tag: z.string().optional().describe('Tag for the group'), expanded: z.boolean().optional().describe('Whether the group is expanded by default') }, directoryField), thumbnailField));
|