@mintlify/validation 0.1.237 → 0.1.239
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/$schema.js +1 -1
- 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
|
@@ -49,14 +49,14 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[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<{
|
|
52
|
-
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]
|
|
52
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
53
53
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
name: string;
|
|
56
|
-
style
|
|
56
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
name: string;
|
|
59
|
-
style
|
|
59
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
60
60
|
}>]>>;
|
|
61
61
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
62
62
|
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -64,7 +64,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
64
64
|
group: string;
|
|
65
65
|
icon?: string | {
|
|
66
66
|
name: string;
|
|
67
|
-
style
|
|
67
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
68
68
|
} | undefined;
|
|
69
69
|
hidden?: boolean | undefined;
|
|
70
70
|
root?: string | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
72
72
|
group: string;
|
|
73
73
|
icon?: string | {
|
|
74
74
|
name: string;
|
|
75
|
-
style
|
|
75
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
76
76
|
} | undefined;
|
|
77
77
|
hidden?: boolean | undefined;
|
|
78
78
|
root?: string | undefined;
|
|
@@ -94,7 +94,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
94
94
|
group: string;
|
|
95
95
|
icon?: string | {
|
|
96
96
|
name: string;
|
|
97
|
-
style
|
|
97
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
hidden?: boolean | undefined;
|
|
100
100
|
root?: string | undefined;
|
|
@@ -108,7 +108,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
108
108
|
group: string;
|
|
109
109
|
icon?: string | {
|
|
110
110
|
name: string;
|
|
111
|
-
style
|
|
111
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
112
112
|
} | undefined;
|
|
113
113
|
hidden?: boolean | undefined;
|
|
114
114
|
root?: string | undefined;
|
|
@@ -145,7 +145,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
145
145
|
group: string;
|
|
146
146
|
icon?: string | {
|
|
147
147
|
name: string;
|
|
148
|
-
style
|
|
148
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
149
149
|
} | undefined;
|
|
150
150
|
hidden?: boolean | undefined;
|
|
151
151
|
root?: string | undefined;
|
|
@@ -178,7 +178,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
178
178
|
group: string;
|
|
179
179
|
icon?: string | {
|
|
180
180
|
name: string;
|
|
181
|
-
style
|
|
181
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
182
182
|
} | undefined;
|
|
183
183
|
hidden?: boolean | undefined;
|
|
184
184
|
root?: string | undefined;
|
|
@@ -218,14 +218,14 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
218
218
|
groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
219
219
|
group: z.ZodString;
|
|
220
220
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
221
|
-
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]
|
|
221
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
222
222
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
223
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
224
|
name: string;
|
|
225
|
-
style
|
|
225
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
226
226
|
}, {
|
|
227
227
|
name: string;
|
|
228
|
-
style
|
|
228
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
229
229
|
}>]>>;
|
|
230
230
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
231
231
|
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -233,7 +233,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
233
233
|
group: string;
|
|
234
234
|
icon?: string | {
|
|
235
235
|
name: string;
|
|
236
|
-
style
|
|
236
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
237
237
|
} | undefined;
|
|
238
238
|
hidden?: boolean | undefined;
|
|
239
239
|
root?: string | undefined;
|
|
@@ -241,7 +241,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
241
241
|
group: string;
|
|
242
242
|
icon?: string | {
|
|
243
243
|
name: string;
|
|
244
|
-
style
|
|
244
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
245
245
|
} | undefined;
|
|
246
246
|
hidden?: boolean | undefined;
|
|
247
247
|
root?: string | undefined;
|
|
@@ -263,7 +263,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
263
263
|
group: string;
|
|
264
264
|
icon?: string | {
|
|
265
265
|
name: string;
|
|
266
|
-
style
|
|
266
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
267
267
|
} | undefined;
|
|
268
268
|
hidden?: boolean | undefined;
|
|
269
269
|
root?: string | undefined;
|
|
@@ -277,7 +277,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
277
277
|
group: string;
|
|
278
278
|
icon?: string | {
|
|
279
279
|
name: string;
|
|
280
|
-
style
|
|
280
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
281
281
|
} | undefined;
|
|
282
282
|
hidden?: boolean | undefined;
|
|
283
283
|
root?: string | undefined;
|
|
@@ -292,8 +292,8 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
292
292
|
pages: any[];
|
|
293
293
|
}, {
|
|
294
294
|
pages: any[];
|
|
295
|
-
}>]>, z.
|
|
296
|
-
global: z.ZodObject<{
|
|
295
|
+
}>]>, z.ZodObject<{
|
|
296
|
+
global: z.ZodOptional<z.ZodObject<{
|
|
297
297
|
languages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
298
298
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
299
299
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -303,19 +303,13 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
303
303
|
}, {
|
|
304
304
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
305
305
|
hidden?: boolean | undefined;
|
|
306
|
-
}>, z.ZodUnion<[z.ZodObject<{
|
|
307
|
-
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
308
|
-
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
310
|
-
}, {
|
|
311
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
312
306
|
}>, z.ZodObject<{
|
|
313
307
|
href: z.ZodString;
|
|
314
308
|
}, "strip", z.ZodTypeAny, {
|
|
315
309
|
href: string;
|
|
316
310
|
}, {
|
|
317
311
|
href: string;
|
|
318
|
-
}
|
|
312
|
+
}>>, "many">>;
|
|
319
313
|
versions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
320
314
|
version: z.ZodString;
|
|
321
315
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -325,110 +319,92 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
325
319
|
}, {
|
|
326
320
|
version: string;
|
|
327
321
|
hidden?: boolean | undefined;
|
|
328
|
-
}>, z.ZodUnion<[z.ZodObject<{
|
|
329
|
-
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
330
|
-
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
332
|
-
}, {
|
|
333
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
334
322
|
}>, z.ZodObject<{
|
|
335
323
|
href: z.ZodString;
|
|
336
324
|
}, "strip", z.ZodTypeAny, {
|
|
337
325
|
href: string;
|
|
338
326
|
}, {
|
|
339
327
|
href: string;
|
|
340
|
-
}
|
|
328
|
+
}>>, "many">>;
|
|
341
329
|
tabs: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
342
330
|
tab: z.ZodString;
|
|
343
331
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
344
|
-
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]
|
|
332
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
345
333
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
346
334
|
}, "strip", z.ZodTypeAny, {
|
|
347
335
|
name: string;
|
|
348
|
-
style
|
|
336
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
349
337
|
}, {
|
|
350
338
|
name: string;
|
|
351
|
-
style
|
|
339
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
352
340
|
}>]>>;
|
|
353
341
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
354
342
|
}, "strip", z.ZodTypeAny, {
|
|
355
343
|
tab: string;
|
|
356
344
|
icon?: string | {
|
|
357
345
|
name: string;
|
|
358
|
-
style
|
|
346
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
359
347
|
} | undefined;
|
|
360
348
|
hidden?: boolean | undefined;
|
|
361
349
|
}, {
|
|
362
350
|
tab: string;
|
|
363
351
|
icon?: string | {
|
|
364
352
|
name: string;
|
|
365
|
-
style
|
|
353
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
366
354
|
} | undefined;
|
|
367
355
|
hidden?: boolean | undefined;
|
|
368
|
-
}>, z.ZodUnion<[z.ZodObject<{
|
|
369
|
-
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
370
|
-
}, "strip", z.ZodTypeAny, {
|
|
371
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
372
|
-
}, {
|
|
373
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
374
356
|
}>, z.ZodObject<{
|
|
375
357
|
href: z.ZodString;
|
|
376
358
|
}, "strip", z.ZodTypeAny, {
|
|
377
359
|
href: string;
|
|
378
360
|
}, {
|
|
379
361
|
href: string;
|
|
380
|
-
}
|
|
362
|
+
}>>, "many">>;
|
|
381
363
|
dropdowns: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
382
364
|
dropdown: z.ZodString;
|
|
383
365
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
384
|
-
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]
|
|
366
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
385
367
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
386
368
|
}, "strip", z.ZodTypeAny, {
|
|
387
369
|
name: string;
|
|
388
|
-
style
|
|
370
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
389
371
|
}, {
|
|
390
372
|
name: string;
|
|
391
|
-
style
|
|
373
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
392
374
|
}>]>>;
|
|
393
375
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
394
376
|
}, "strip", z.ZodTypeAny, {
|
|
395
377
|
dropdown: string;
|
|
396
378
|
icon?: string | {
|
|
397
379
|
name: string;
|
|
398
|
-
style
|
|
380
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
399
381
|
} | undefined;
|
|
400
382
|
hidden?: boolean | undefined;
|
|
401
383
|
}, {
|
|
402
384
|
dropdown: string;
|
|
403
385
|
icon?: string | {
|
|
404
386
|
name: string;
|
|
405
|
-
style
|
|
387
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
406
388
|
} | undefined;
|
|
407
389
|
hidden?: boolean | undefined;
|
|
408
|
-
}>, z.ZodUnion<[z.ZodObject<{
|
|
409
|
-
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
410
|
-
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
412
|
-
}, {
|
|
413
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
414
390
|
}>, z.ZodObject<{
|
|
415
391
|
href: z.ZodString;
|
|
416
392
|
}, "strip", z.ZodTypeAny, {
|
|
417
393
|
href: string;
|
|
418
394
|
}, {
|
|
419
395
|
href: string;
|
|
420
|
-
}
|
|
396
|
+
}>>, "many">>;
|
|
421
397
|
anchors: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
422
398
|
anchor: z.ZodString;
|
|
423
399
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
424
|
-
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]
|
|
400
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
425
401
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
426
402
|
}, "strip", z.ZodTypeAny, {
|
|
427
403
|
name: string;
|
|
428
|
-
style
|
|
404
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
429
405
|
}, {
|
|
430
406
|
name: string;
|
|
431
|
-
style
|
|
407
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
432
408
|
}>]>>;
|
|
433
409
|
color: z.ZodOptional<z.ZodObject<{
|
|
434
410
|
light: z.ZodString;
|
|
@@ -445,7 +421,7 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
445
421
|
anchor: string;
|
|
446
422
|
icon?: string | {
|
|
447
423
|
name: string;
|
|
448
|
-
style
|
|
424
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
449
425
|
} | undefined;
|
|
450
426
|
color?: {
|
|
451
427
|
light: string;
|
|
@@ -456,257 +432,212 @@ export declare const navigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject
|
|
|
456
432
|
anchor: string;
|
|
457
433
|
icon?: string | {
|
|
458
434
|
name: string;
|
|
459
|
-
style
|
|
435
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
460
436
|
} | undefined;
|
|
461
437
|
color?: {
|
|
462
438
|
light: string;
|
|
463
439
|
dark: string;
|
|
464
440
|
} | undefined;
|
|
465
441
|
hidden?: boolean | undefined;
|
|
466
|
-
}>, z.ZodUnion<[z.ZodObject<{
|
|
467
|
-
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
468
|
-
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
470
|
-
}, {
|
|
471
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
472
442
|
}>, z.ZodObject<{
|
|
473
443
|
href: z.ZodString;
|
|
474
444
|
}, "strip", z.ZodTypeAny, {
|
|
475
445
|
href: string;
|
|
476
446
|
}, {
|
|
477
447
|
href: string;
|
|
478
|
-
}
|
|
448
|
+
}>>, "many">>;
|
|
479
449
|
}, "strict", z.ZodTypeAny, {
|
|
480
450
|
languages?: ({
|
|
481
451
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
482
452
|
hidden?: boolean | undefined;
|
|
483
|
-
} &
|
|
484
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
485
|
-
} | {
|
|
453
|
+
} & {
|
|
486
454
|
href: string;
|
|
487
|
-
})
|
|
455
|
+
})[] | undefined;
|
|
488
456
|
versions?: ({
|
|
489
457
|
version: string;
|
|
490
458
|
hidden?: boolean | undefined;
|
|
491
|
-
} &
|
|
492
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
493
|
-
} | {
|
|
459
|
+
} & {
|
|
494
460
|
href: string;
|
|
495
|
-
})
|
|
461
|
+
})[] | undefined;
|
|
496
462
|
tabs?: ({
|
|
497
463
|
tab: string;
|
|
498
464
|
icon?: string | {
|
|
499
465
|
name: string;
|
|
500
|
-
style
|
|
466
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
501
467
|
} | undefined;
|
|
502
468
|
hidden?: boolean | undefined;
|
|
503
|
-
} &
|
|
504
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
505
|
-
} | {
|
|
469
|
+
} & {
|
|
506
470
|
href: string;
|
|
507
|
-
})
|
|
471
|
+
})[] | undefined;
|
|
508
472
|
dropdowns?: ({
|
|
509
473
|
dropdown: string;
|
|
510
474
|
icon?: string | {
|
|
511
475
|
name: string;
|
|
512
|
-
style
|
|
476
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
513
477
|
} | undefined;
|
|
514
478
|
hidden?: boolean | undefined;
|
|
515
|
-
} &
|
|
516
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
517
|
-
} | {
|
|
479
|
+
} & {
|
|
518
480
|
href: string;
|
|
519
|
-
})
|
|
481
|
+
})[] | undefined;
|
|
520
482
|
anchors?: ({
|
|
521
483
|
anchor: string;
|
|
522
484
|
icon?: string | {
|
|
523
485
|
name: string;
|
|
524
|
-
style
|
|
486
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
525
487
|
} | undefined;
|
|
526
488
|
color?: {
|
|
527
489
|
light: string;
|
|
528
490
|
dark: string;
|
|
529
491
|
} | undefined;
|
|
530
492
|
hidden?: boolean | undefined;
|
|
531
|
-
} &
|
|
532
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
533
|
-
} | {
|
|
493
|
+
} & {
|
|
534
494
|
href: string;
|
|
535
|
-
})
|
|
495
|
+
})[] | undefined;
|
|
536
496
|
}, {
|
|
537
497
|
languages?: ({
|
|
538
498
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
539
499
|
hidden?: boolean | undefined;
|
|
540
|
-
} &
|
|
541
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
542
|
-
} | {
|
|
500
|
+
} & {
|
|
543
501
|
href: string;
|
|
544
|
-
})
|
|
502
|
+
})[] | undefined;
|
|
545
503
|
versions?: ({
|
|
546
504
|
version: string;
|
|
547
505
|
hidden?: boolean | undefined;
|
|
548
|
-
} &
|
|
549
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
550
|
-
} | {
|
|
506
|
+
} & {
|
|
551
507
|
href: string;
|
|
552
|
-
})
|
|
508
|
+
})[] | undefined;
|
|
553
509
|
tabs?: ({
|
|
554
510
|
tab: string;
|
|
555
511
|
icon?: string | {
|
|
556
512
|
name: string;
|
|
557
|
-
style
|
|
513
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
558
514
|
} | undefined;
|
|
559
515
|
hidden?: boolean | undefined;
|
|
560
|
-
} &
|
|
561
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
562
|
-
} | {
|
|
516
|
+
} & {
|
|
563
517
|
href: string;
|
|
564
|
-
})
|
|
518
|
+
})[] | undefined;
|
|
565
519
|
dropdowns?: ({
|
|
566
520
|
dropdown: string;
|
|
567
521
|
icon?: string | {
|
|
568
522
|
name: string;
|
|
569
|
-
style
|
|
523
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
570
524
|
} | undefined;
|
|
571
525
|
hidden?: boolean | undefined;
|
|
572
|
-
} &
|
|
573
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
574
|
-
} | {
|
|
526
|
+
} & {
|
|
575
527
|
href: string;
|
|
576
|
-
})
|
|
528
|
+
})[] | undefined;
|
|
577
529
|
anchors?: ({
|
|
578
530
|
anchor: string;
|
|
579
531
|
icon?: string | {
|
|
580
532
|
name: string;
|
|
581
|
-
style
|
|
533
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
582
534
|
} | undefined;
|
|
583
535
|
color?: {
|
|
584
536
|
light: string;
|
|
585
537
|
dark: string;
|
|
586
538
|
} | undefined;
|
|
587
539
|
hidden?: boolean | undefined;
|
|
588
|
-
} &
|
|
589
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
590
|
-
} | {
|
|
540
|
+
} & {
|
|
591
541
|
href: string;
|
|
592
|
-
})
|
|
593
|
-
}
|
|
542
|
+
})[] | undefined;
|
|
543
|
+
}>>;
|
|
594
544
|
}, "strip", z.ZodTypeAny, {
|
|
595
|
-
global
|
|
545
|
+
global?: {
|
|
596
546
|
languages?: ({
|
|
597
547
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
598
548
|
hidden?: boolean | undefined;
|
|
599
|
-
} &
|
|
600
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
601
|
-
} | {
|
|
549
|
+
} & {
|
|
602
550
|
href: string;
|
|
603
|
-
})
|
|
551
|
+
})[] | undefined;
|
|
604
552
|
versions?: ({
|
|
605
553
|
version: string;
|
|
606
554
|
hidden?: boolean | undefined;
|
|
607
|
-
} &
|
|
608
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
609
|
-
} | {
|
|
555
|
+
} & {
|
|
610
556
|
href: string;
|
|
611
|
-
})
|
|
557
|
+
})[] | undefined;
|
|
612
558
|
tabs?: ({
|
|
613
559
|
tab: string;
|
|
614
560
|
icon?: string | {
|
|
615
561
|
name: string;
|
|
616
|
-
style
|
|
562
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
617
563
|
} | undefined;
|
|
618
564
|
hidden?: boolean | undefined;
|
|
619
|
-
} &
|
|
620
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
621
|
-
} | {
|
|
565
|
+
} & {
|
|
622
566
|
href: string;
|
|
623
|
-
})
|
|
567
|
+
})[] | undefined;
|
|
624
568
|
dropdowns?: ({
|
|
625
569
|
dropdown: string;
|
|
626
570
|
icon?: string | {
|
|
627
571
|
name: string;
|
|
628
|
-
style
|
|
572
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
629
573
|
} | undefined;
|
|
630
574
|
hidden?: boolean | undefined;
|
|
631
|
-
} &
|
|
632
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
633
|
-
} | {
|
|
575
|
+
} & {
|
|
634
576
|
href: string;
|
|
635
|
-
})
|
|
577
|
+
})[] | undefined;
|
|
636
578
|
anchors?: ({
|
|
637
579
|
anchor: string;
|
|
638
580
|
icon?: string | {
|
|
639
581
|
name: string;
|
|
640
|
-
style
|
|
582
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
641
583
|
} | undefined;
|
|
642
584
|
color?: {
|
|
643
585
|
light: string;
|
|
644
586
|
dark: string;
|
|
645
587
|
} | undefined;
|
|
646
588
|
hidden?: boolean | undefined;
|
|
647
|
-
} &
|
|
648
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
649
|
-
} | {
|
|
589
|
+
} & {
|
|
650
590
|
href: string;
|
|
651
|
-
})
|
|
652
|
-
};
|
|
591
|
+
})[] | undefined;
|
|
592
|
+
} | undefined;
|
|
653
593
|
}, {
|
|
654
|
-
global
|
|
594
|
+
global?: {
|
|
655
595
|
languages?: ({
|
|
656
596
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
657
597
|
hidden?: boolean | undefined;
|
|
658
|
-
} &
|
|
659
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
660
|
-
} | {
|
|
598
|
+
} & {
|
|
661
599
|
href: string;
|
|
662
|
-
})
|
|
600
|
+
})[] | undefined;
|
|
663
601
|
versions?: ({
|
|
664
602
|
version: string;
|
|
665
603
|
hidden?: boolean | undefined;
|
|
666
|
-
} &
|
|
667
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
668
|
-
} | {
|
|
604
|
+
} & {
|
|
669
605
|
href: string;
|
|
670
|
-
})
|
|
606
|
+
})[] | undefined;
|
|
671
607
|
tabs?: ({
|
|
672
608
|
tab: string;
|
|
673
609
|
icon?: string | {
|
|
674
610
|
name: string;
|
|
675
|
-
style
|
|
611
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
676
612
|
} | undefined;
|
|
677
613
|
hidden?: boolean | undefined;
|
|
678
|
-
} &
|
|
679
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
680
|
-
} | {
|
|
614
|
+
} & {
|
|
681
615
|
href: string;
|
|
682
|
-
})
|
|
616
|
+
})[] | undefined;
|
|
683
617
|
dropdowns?: ({
|
|
684
618
|
dropdown: string;
|
|
685
619
|
icon?: string | {
|
|
686
620
|
name: string;
|
|
687
|
-
style
|
|
621
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
688
622
|
} | undefined;
|
|
689
623
|
hidden?: boolean | undefined;
|
|
690
|
-
} &
|
|
691
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
692
|
-
} | {
|
|
624
|
+
} & {
|
|
693
625
|
href: string;
|
|
694
|
-
})
|
|
626
|
+
})[] | undefined;
|
|
695
627
|
anchors?: ({
|
|
696
628
|
anchor: string;
|
|
697
629
|
icon?: string | {
|
|
698
630
|
name: string;
|
|
699
|
-
style
|
|
631
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
700
632
|
} | undefined;
|
|
701
633
|
color?: {
|
|
702
634
|
light: string;
|
|
703
635
|
dark: string;
|
|
704
636
|
} | undefined;
|
|
705
637
|
hidden?: boolean | undefined;
|
|
706
|
-
} &
|
|
707
|
-
openapi: (string | string[]) & (string | string[] | undefined);
|
|
708
|
-
} | {
|
|
638
|
+
} & {
|
|
709
639
|
href: string;
|
|
710
|
-
})
|
|
711
|
-
};
|
|
712
|
-
}
|
|
640
|
+
})[] | undefined;
|
|
641
|
+
} | undefined;
|
|
642
|
+
}>>;
|
|
643
|
+
export type NavigationConfig = z.infer<typeof navigationSchema>;
|
|
@@ -17,5 +17,5 @@ export const navigationSchema = z
|
|
|
17
17
|
z.object({ groups: groupsSchema }),
|
|
18
18
|
z.object({ pages: pagesSchema }),
|
|
19
19
|
])
|
|
20
|
-
.and(z.object({ global: globalSchema
|
|
20
|
+
.and(z.object({ global: globalSchema.optional() }))
|
|
21
21
|
.describe('The navigation structure of the content');
|