@mintlify/validation 0.1.235 → 0.1.237
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 +3085 -545
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +59 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +5 -5
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +41 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +5 -5
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +299 -0
- package/dist/mint-config/schemas/v2/properties/navigation/global.js +16 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +419 -2
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +146 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +4 -3
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +41 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +4 -4
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +23 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +4 -4
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +659 -24
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +659 -24
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +659 -24
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +419 -12
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +0 -2
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +659 -24
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/mint-config/schemas/v2/properties/legacy.d.ts +0 -11
- package/dist/mint-config/schemas/v2/properties/legacy.js +0 -10
|
@@ -9,13 +9,12 @@ import { groupsSchema } from './groups.js';
|
|
|
9
9
|
import { languagesSchema } from './languages.js';
|
|
10
10
|
import { pagesSchema } from './pages.js';
|
|
11
11
|
import { versionsSchema } from './version.js';
|
|
12
|
-
const
|
|
13
|
-
.object({
|
|
12
|
+
const baseTabSchema = z.object({
|
|
14
13
|
tab: z.string().nonempty().describe('The name of the tab'),
|
|
15
14
|
icon: iconSchema.optional(),
|
|
16
15
|
hidden: hiddenSchema.optional(),
|
|
17
|
-
})
|
|
18
|
-
|
|
16
|
+
});
|
|
17
|
+
export const tabSchema = baseTabSchema.and(z.union([
|
|
19
18
|
z.object({ openapi: openApiSchema }),
|
|
20
19
|
z.object({ href: hrefSchema }),
|
|
21
20
|
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
@@ -25,4 +24,5 @@ const tabSchema = z
|
|
|
25
24
|
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
26
25
|
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
27
26
|
]));
|
|
27
|
+
export const nonRecursiveTabSchema = baseTabSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
|
|
28
28
|
export const tabsSchema = z.array(tabSchema).describe('Organizing by tabs');
|
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const versionSchema: z.ZodType;
|
|
3
|
+
export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
|
+
version: z.ZodString;
|
|
5
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
version: string;
|
|
8
|
+
hidden?: boolean | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
version: string;
|
|
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
|
+
}>, z.ZodObject<{
|
|
19
|
+
href: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
href: string;
|
|
22
|
+
}, {
|
|
23
|
+
href: string;
|
|
24
|
+
}>]>>;
|
|
2
25
|
export declare const versionsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
|
|
@@ -8,12 +8,11 @@ import { groupsSchema } from './groups.js';
|
|
|
8
8
|
import { languagesSchema } from './languages.js';
|
|
9
9
|
import { pagesSchema } from './pages.js';
|
|
10
10
|
import { tabsSchema } from './tabs.js';
|
|
11
|
-
const
|
|
12
|
-
.object({
|
|
11
|
+
const baseVersionSchema = z.object({
|
|
13
12
|
version: z.string().nonempty().describe('The name of the version'),
|
|
14
13
|
hidden: hiddenSchema.optional(),
|
|
15
|
-
})
|
|
16
|
-
|
|
14
|
+
});
|
|
15
|
+
export const versionSchema = baseVersionSchema.and(z.union([
|
|
17
16
|
z.object({ openapi: openApiSchema }),
|
|
18
17
|
z.object({ href: hrefSchema }),
|
|
19
18
|
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
@@ -23,4 +22,5 @@ const versionSchema = z
|
|
|
23
22
|
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
24
23
|
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
25
24
|
]));
|
|
25
|
+
export const nonRecursiveVersionSchema = baseVersionSchema.and(z.union([z.object({ openapi: openApiSchema }), z.object({ href: hrefSchema })]));
|
|
26
26
|
export const versionsSchema = z.array(versionSchema).describe('Organizing by versions');
|