@mintlify/validation 0.1.227 → 0.1.228
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 +8 -0
- package/dist/index.js +4 -11
- package/dist/mint-config/schemas/{anchors.d.ts → v1/anchors.d.ts} +4 -4
- package/dist/mint-config/schemas/{config.d.ts → v1/config.d.ts} +8 -8
- package/dist/mint-config/schemas/{navigation.d.ts → v1/navigation.d.ts} +2 -2
- package/dist/mint-config/schemas/{navigation.js → v1/navigation.js} +1 -1
- package/dist/mint-config/schemas/{openapiString.js → v1/openapiString.js} +1 -1
- package/dist/mint-config/schemas/v2/index.d.ts +6123 -0
- package/dist/mint-config/schemas/v2/index.js +11 -0
- package/dist/mint-config/schemas/v2/properties/$schema.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/$schema.js +7 -0
- package/dist/mint-config/schemas/v2/properties/api.d.ts +36 -0
- package/dist/mint-config/schemas/v2/properties/api.js +29 -0
- package/dist/mint-config/schemas/v2/properties/appearance.d.ts +11 -0
- package/dist/mint-config/schemas/v2/properties/appearance.js +10 -0
- package/dist/mint-config/schemas/v2/properties/background.d.ts +44 -0
- package/dist/mint-config/schemas/v2/properties/background.js +21 -0
- package/dist/mint-config/schemas/v2/properties/colors.d.ts +14 -0
- package/dist/mint-config/schemas/v2/properties/colors.js +10 -0
- package/dist/mint-config/schemas/v2/properties/description.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/description.js +5 -0
- package/dist/mint-config/schemas/v2/properties/favicon.d.ts +11 -0
- package/dist/mint-config/schemas/v2/properties/favicon.js +16 -0
- 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/font.d.ts +132 -0
- package/dist/mint-config/schemas/v2/properties/font.js +33 -0
- package/dist/mint-config/schemas/v2/properties/footer.d.ts +83 -0
- package/dist/mint-config/schemas/v2/properties/footer.js +32 -0
- package/dist/mint-config/schemas/v2/properties/icons.d.ts +8 -0
- package/dist/mint-config/schemas/v2/properties/icons.js +6 -0
- package/dist/mint-config/schemas/v2/properties/integrations.d.ts +241 -0
- package/dist/mint-config/schemas/v2/properties/integrations.js +85 -0
- package/dist/mint-config/schemas/v2/properties/legacy.d.ts +11 -0
- package/dist/mint-config/schemas/v2/properties/legacy.js +9 -0
- package/dist/mint-config/schemas/v2/properties/logo.d.ts +14 -0
- package/dist/mint-config/schemas/v2/properties/logo.js +21 -0
- package/dist/mint-config/schemas/v2/properties/name.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/name.js +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +30 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +28 -0
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +87 -0
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +16 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +295 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +19 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +125 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +32 -0
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +14 -0
- package/dist/mint-config/schemas/v2/properties/navigation/pages.js +5 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +28 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +26 -0
- package/dist/mint-config/schemas/v2/properties/redirects.d.ts +22 -0
- package/dist/mint-config/schemas/v2/properties/redirects.js +16 -0
- package/dist/mint-config/schemas/v2/properties/reusable/color.d.ts +12 -0
- package/dist/mint-config/schemas/v2/properties/reusable/color.js +11 -0
- package/dist/mint-config/schemas/v2/properties/reusable/hidden.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/reusable/hidden.js +2 -0
- package/dist/mint-config/schemas/v2/properties/reusable/href.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/reusable/href.js +5 -0
- package/dist/mint-config/schemas/v2/properties/reusable/icon.d.ts +11 -0
- package/dist/mint-config/schemas/v2/properties/reusable/icon.js +22 -0
- package/dist/mint-config/schemas/v2/properties/reusable/openapi.d.ts +3 -0
- package/dist/mint-config/schemas/v2/properties/reusable/openapi.js +35 -0
- package/dist/mint-config/schemas/v2/properties/reusable/page.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/reusable/page.js +7 -0
- package/dist/mint-config/schemas/v2/properties/search.d.ts +8 -0
- package/dist/mint-config/schemas/v2/properties/search.js +9 -0
- package/dist/mint-config/schemas/v2/properties/seo.d.ts +12 -0
- package/dist/mint-config/schemas/v2/properties/seo.js +14 -0
- package/dist/mint-config/schemas/v2/properties/styling.d.ts +14 -0
- package/dist/mint-config/schemas/v2/properties/styling.js +16 -0
- package/dist/mint-config/schemas/v2/properties/topbar.d.ts +61 -0
- package/dist/mint-config/schemas/v2/properties/topbar.js +22 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +1532 -0
- package/dist/mint-config/schemas/v2/themes/mint.js +3 -0
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +1532 -0
- package/dist/mint-config/schemas/v2/themes/prism.js +3 -0
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +1532 -0
- package/dist/mint-config/schemas/v2/themes/quill.js +3 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +956 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +46 -0
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +1532 -0
- package/dist/mint-config/schemas/v2/themes/venus.js +3 -0
- package/dist/mint-config/validateMintConfig.d.ts +4 -4
- package/dist/mint-config/validateMintConfig.js +1 -1
- package/dist/mint-config/warnings/aggregateWarnings.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- /package/dist/mint-config/schemas/{analytics.d.ts → v1/analytics.d.ts} +0 -0
- /package/dist/mint-config/schemas/{analytics.js → v1/analytics.js} +0 -0
- /package/dist/mint-config/schemas/{anchorColors.d.ts → v1/anchorColors.d.ts} +0 -0
- /package/dist/mint-config/schemas/{anchorColors.js → v1/anchorColors.js} +0 -0
- /package/dist/mint-config/schemas/{anchors.js → v1/anchors.js} +0 -0
- /package/dist/mint-config/schemas/{apiReference.d.ts → v1/apiReference.d.ts} +0 -0
- /package/dist/mint-config/schemas/{apiReference.js → v1/apiReference.js} +0 -0
- /package/dist/mint-config/schemas/{background.d.ts → v1/background.d.ts} +0 -0
- /package/dist/mint-config/schemas/{background.js → v1/background.js} +0 -0
- /package/dist/mint-config/schemas/{basics.d.ts → v1/basics.d.ts} +0 -0
- /package/dist/mint-config/schemas/{basics.js → v1/basics.js} +0 -0
- /package/dist/mint-config/schemas/{colors.d.ts → v1/colors.d.ts} +0 -0
- /package/dist/mint-config/schemas/{colors.js → v1/colors.js} +0 -0
- /package/dist/mint-config/schemas/{config.js → v1/config.js} +0 -0
- /package/dist/mint-config/schemas/{favicon.d.ts → v1/favicon.d.ts} +0 -0
- /package/dist/mint-config/schemas/{favicon.js → v1/favicon.js} +0 -0
- /package/dist/mint-config/schemas/{font.d.ts → v1/font.d.ts} +0 -0
- /package/dist/mint-config/schemas/{font.js → v1/font.js} +0 -0
- /package/dist/mint-config/schemas/{footer.d.ts → v1/footer.d.ts} +0 -0
- /package/dist/mint-config/schemas/{footer.js → v1/footer.js} +0 -0
- /package/dist/mint-config/schemas/{hexColor.d.ts → v1/hexColor.d.ts} +0 -0
- /package/dist/mint-config/schemas/{hexColor.js → v1/hexColor.js} +0 -0
- /package/dist/mint-config/schemas/{integrations.d.ts → v1/integrations.d.ts} +0 -0
- /package/dist/mint-config/schemas/{integrations.js → v1/integrations.js} +0 -0
- /package/dist/mint-config/schemas/{openapiAnchorOrTab.d.ts → v1/openapiAnchorOrTab.d.ts} +0 -0
- /package/dist/mint-config/schemas/{openapiAnchorOrTab.js → v1/openapiAnchorOrTab.js} +0 -0
- /package/dist/mint-config/schemas/{openapiString.d.ts → v1/openapiString.d.ts} +0 -0
- /package/dist/mint-config/schemas/{seo.d.ts → v1/seo.d.ts} +0 -0
- /package/dist/mint-config/schemas/{seo.js → v1/seo.js} +0 -0
- /package/dist/mint-config/schemas/{sidebar.d.ts → v1/sidebar.d.ts} +0 -0
- /package/dist/mint-config/schemas/{sidebar.js → v1/sidebar.js} +0 -0
- /package/dist/mint-config/schemas/{tabs.d.ts → v1/tabs.d.ts} +0 -0
- /package/dist/mint-config/schemas/{tabs.js → v1/tabs.js} +0 -0
- /package/dist/mint-config/schemas/{topbar.d.ts → v1/topbar.d.ts} +0 -0
- /package/dist/mint-config/schemas/{topbar.js → v1/topbar.js} +0 -0
- /package/dist/mint-config/schemas/{versions.d.ts → v1/versions.d.ts} +0 -0
- /package/dist/mint-config/schemas/{versions.js → v1/versions.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DocsConfig } from './mint-config/schemas/v2/index.js';
|
|
1
2
|
export * from './openapi/types/endpoint.js';
|
|
2
3
|
export * from './openapi/OpenApiToEndpointConverter.js';
|
|
3
4
|
export { stripComponents } from './openapi/stripComponents.js';
|
|
@@ -12,3 +13,10 @@ export declare const mintConfigJsonSchema: import("zod-to-json-schema/src/parseD
|
|
|
12
13
|
[key: string]: import("zod-to-json-schema/src/parseDef.js").JsonSchema7Type;
|
|
13
14
|
} | undefined;
|
|
14
15
|
};
|
|
16
|
+
export declare const docsConfigJsonSchema: import("zod-to-json-schema/src/parseDef.js").JsonSchema7Type & {
|
|
17
|
+
$schema?: string | undefined;
|
|
18
|
+
definitions?: {
|
|
19
|
+
[key: string]: import("zod-to-json-schema/src/parseDef.js").JsonSchema7Type;
|
|
20
|
+
} | undefined;
|
|
21
|
+
};
|
|
22
|
+
export type { DocsConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { mintConfigSchema } from './mint-config/schemas/v1/config.js';
|
|
3
|
+
import { docsConfigSchema } from './mint-config/schemas/v2/index.js';
|
|
4
4
|
export * from './openapi/types/endpoint.js';
|
|
5
5
|
export * from './openapi/OpenApiToEndpointConverter.js';
|
|
6
6
|
export { stripComponents } from './openapi/stripComponents.js';
|
|
@@ -9,12 +9,5 @@ export { generateExampleFromSchema } from './openapi/generateExampleFromSchema.j
|
|
|
9
9
|
export { generateFirstIncrementalSchema, generateNextIncrementalSchema, } from './openapi/IncrementalEvaluator.js';
|
|
10
10
|
export { validateMintConfig } from './mint-config/validateMintConfig.js';
|
|
11
11
|
export { formatIssue } from './mint-config/formatIssue.js';
|
|
12
|
-
export const mintConfigJsonSchema = (
|
|
13
|
-
|
|
14
|
-
colors: colorsSchema.omit({
|
|
15
|
-
ultraDark: true,
|
|
16
|
-
ultraLight: true,
|
|
17
|
-
}),
|
|
18
|
-
});
|
|
19
|
-
return zodToJsonSchema(cleanedSchema, 'Schema');
|
|
20
|
-
})();
|
|
12
|
+
export const mintConfigJsonSchema = zodToJsonSchema(mintConfigSchema, 'Schema');
|
|
13
|
+
export const docsConfigJsonSchema = zodToJsonSchema(docsConfigSchema, 'Schema');
|
|
@@ -24,7 +24,7 @@ export declare const anchorSchema: z.ZodObject<{
|
|
|
24
24
|
name: string;
|
|
25
25
|
url: string;
|
|
26
26
|
icon?: string | undefined;
|
|
27
|
-
iconType?: "
|
|
27
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
28
28
|
color?: string | {
|
|
29
29
|
from: string;
|
|
30
30
|
to: string;
|
|
@@ -37,7 +37,7 @@ export declare const anchorSchema: z.ZodObject<{
|
|
|
37
37
|
name: string;
|
|
38
38
|
url: string;
|
|
39
39
|
icon?: string | undefined;
|
|
40
|
-
iconType?: "
|
|
40
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
41
41
|
color?: string | {
|
|
42
42
|
from: string;
|
|
43
43
|
to: string;
|
|
@@ -54,9 +54,9 @@ export declare const topAnchorSchema: z.ZodObject<{
|
|
|
54
54
|
}, "strict", z.ZodTypeAny, {
|
|
55
55
|
name: string;
|
|
56
56
|
icon?: string | undefined;
|
|
57
|
-
iconType?: "
|
|
57
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
name: string;
|
|
60
60
|
icon?: string | undefined;
|
|
61
|
-
iconType?: "
|
|
61
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
62
62
|
}>;
|
|
@@ -318,11 +318,11 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
318
318
|
}, "strict", z.ZodTypeAny, {
|
|
319
319
|
name: string;
|
|
320
320
|
icon?: string | undefined;
|
|
321
|
-
iconType?: "
|
|
321
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
322
322
|
}, {
|
|
323
323
|
name: string;
|
|
324
324
|
icon?: string | undefined;
|
|
325
|
-
iconType?: "
|
|
325
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
326
326
|
}>>;
|
|
327
327
|
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
328
328
|
name: z.ZodString;
|
|
@@ -349,7 +349,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
349
349
|
name: string;
|
|
350
350
|
url: string;
|
|
351
351
|
icon?: string | undefined;
|
|
352
|
-
iconType?: "
|
|
352
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
353
353
|
color?: string | {
|
|
354
354
|
from: string;
|
|
355
355
|
to: string;
|
|
@@ -362,7 +362,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
362
362
|
name: string;
|
|
363
363
|
url: string;
|
|
364
364
|
icon?: string | undefined;
|
|
365
|
-
iconType?: "
|
|
365
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
366
366
|
color?: string | {
|
|
367
367
|
from: string;
|
|
368
368
|
to: string;
|
|
@@ -944,13 +944,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
944
944
|
topAnchor?: {
|
|
945
945
|
name: string;
|
|
946
946
|
icon?: string | undefined;
|
|
947
|
-
iconType?: "
|
|
947
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
948
948
|
} | undefined;
|
|
949
949
|
anchors?: {
|
|
950
950
|
name: string;
|
|
951
951
|
url: string;
|
|
952
952
|
icon?: string | undefined;
|
|
953
|
-
iconType?: "
|
|
953
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
954
954
|
color?: string | {
|
|
955
955
|
from: string;
|
|
956
956
|
to: string;
|
|
@@ -1180,13 +1180,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1180
1180
|
topAnchor?: {
|
|
1181
1181
|
name: string;
|
|
1182
1182
|
icon?: string | undefined;
|
|
1183
|
-
iconType?: "
|
|
1183
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1184
1184
|
} | undefined;
|
|
1185
1185
|
anchors?: {
|
|
1186
1186
|
name: string;
|
|
1187
1187
|
url: string;
|
|
1188
1188
|
icon?: string | undefined;
|
|
1189
|
-
iconType?: "
|
|
1189
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1190
1190
|
color?: string | {
|
|
1191
1191
|
from: string;
|
|
1192
1192
|
to: string;
|
|
@@ -8,12 +8,12 @@ export declare const baseNavigationGroupSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
9
|
group: string;
|
|
10
10
|
icon?: string | undefined;
|
|
11
|
-
iconType?: "
|
|
11
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
12
12
|
version?: string | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
group: string;
|
|
15
15
|
icon?: string | undefined;
|
|
16
|
-
iconType?: "
|
|
16
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
17
17
|
version?: string | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const navigationSchema: z.ZodArray<z.ZodType<NavigationGroup, z.ZodTypeDef, NavigationGroup>, "many">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { iconTypes } from '@mintlify/models';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { normalizeRelativePath } from '
|
|
3
|
+
import { normalizeRelativePath } from '../../transforms/normalizeRelativePath.js';
|
|
4
4
|
// export to allow type testing against @mintlify/models
|
|
5
5
|
export const baseNavigationGroupSchema = z
|
|
6
6
|
.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import isAbsoluteUrl from 'is-absolute-url';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { normalizeRelativePath } from '
|
|
3
|
+
import { normalizeRelativePath } from '../../transforms/normalizeRelativePath.js';
|
|
4
4
|
export const openapiStringSchema = z
|
|
5
5
|
.string()
|
|
6
6
|
.trim()
|