@mintlify/validation 0.1.324 → 0.1.325
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 +270 -0
- package/dist/mint-config/schemas/v2/properties/contextual.d.ts +10 -0
- package/dist/mint-config/schemas/v2/properties/contextual.js +15 -0
- package/dist/mint-config/schemas/v2/properties/errors.d.ts +28 -0
- package/dist/mint-config/schemas/v2/properties/errors.js +14 -0
- package/dist/mint-config/schemas/v2/properties/index.d.ts +1 -0
- package/dist/mint-config/schemas/v2/properties/index.js +1 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +54 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +54 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +54 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +54 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +34 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.js +4 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +54 -0
- package/dist/mint-config/validateConfig.d.ts +100 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1053,6 +1053,40 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
1053
1053
|
content: string;
|
|
1054
1054
|
dismissible?: boolean | undefined;
|
|
1055
1055
|
}>>;
|
|
1056
|
+
errors: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
'404': z.ZodObject<{
|
|
1058
|
+
redirect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1059
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
}, "strip", z.ZodTypeAny, {
|
|
1062
|
+
redirect: boolean;
|
|
1063
|
+
title?: string | undefined;
|
|
1064
|
+
description?: string | undefined;
|
|
1065
|
+
}, {
|
|
1066
|
+
redirect?: boolean | undefined;
|
|
1067
|
+
title?: string | undefined;
|
|
1068
|
+
description?: string | undefined;
|
|
1069
|
+
}>;
|
|
1070
|
+
}, "strip", z.ZodTypeAny, {
|
|
1071
|
+
'404': {
|
|
1072
|
+
redirect: boolean;
|
|
1073
|
+
title?: string | undefined;
|
|
1074
|
+
description?: string | undefined;
|
|
1075
|
+
};
|
|
1076
|
+
}, {
|
|
1077
|
+
'404': {
|
|
1078
|
+
redirect?: boolean | undefined;
|
|
1079
|
+
title?: string | undefined;
|
|
1080
|
+
description?: string | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
}>>;
|
|
1083
|
+
contextual: z.ZodOptional<z.ZodObject<{
|
|
1084
|
+
options: z.ZodEffects<z.ZodArray<z.ZodEnum<["copy", "view", "chatgpt", "claude"]>, "many">, ("copy" | "view" | "chatgpt" | "claude")[], ("copy" | "view" | "chatgpt" | "claude")[]>;
|
|
1085
|
+
}, "strip", z.ZodTypeAny, {
|
|
1086
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1087
|
+
}, {
|
|
1088
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1089
|
+
}>>;
|
|
1056
1090
|
theme: z.ZodLiteral<"palm">;
|
|
1057
1091
|
}, "strip", z.ZodTypeAny, {
|
|
1058
1092
|
name: string;
|
|
@@ -1368,6 +1402,16 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
1368
1402
|
content: string;
|
|
1369
1403
|
dismissible?: boolean | undefined;
|
|
1370
1404
|
} | undefined;
|
|
1405
|
+
errors?: {
|
|
1406
|
+
'404': {
|
|
1407
|
+
redirect: boolean;
|
|
1408
|
+
title?: string | undefined;
|
|
1409
|
+
description?: string | undefined;
|
|
1410
|
+
};
|
|
1411
|
+
} | undefined;
|
|
1412
|
+
contextual?: {
|
|
1413
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1414
|
+
} | undefined;
|
|
1371
1415
|
}, {
|
|
1372
1416
|
name: string;
|
|
1373
1417
|
theme: "palm";
|
|
@@ -1682,4 +1726,14 @@ export declare const palmConfigSchema: z.ZodObject<{
|
|
|
1682
1726
|
content: string;
|
|
1683
1727
|
dismissible?: boolean | undefined;
|
|
1684
1728
|
} | undefined;
|
|
1729
|
+
errors?: {
|
|
1730
|
+
'404': {
|
|
1731
|
+
redirect?: boolean | undefined;
|
|
1732
|
+
title?: string | undefined;
|
|
1733
|
+
description?: string | undefined;
|
|
1734
|
+
};
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
contextual?: {
|
|
1737
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1738
|
+
} | undefined;
|
|
1685
1739
|
}>;
|
|
@@ -1052,4 +1052,38 @@ export declare const standardConfigSchema: {
|
|
|
1052
1052
|
content: string;
|
|
1053
1053
|
dismissible?: boolean | undefined;
|
|
1054
1054
|
}>>;
|
|
1055
|
+
errors: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1056
|
+
'404': import("zod").ZodObject<{
|
|
1057
|
+
redirect: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
1058
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1059
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1060
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1061
|
+
redirect: boolean;
|
|
1062
|
+
title?: string | undefined;
|
|
1063
|
+
description?: string | undefined;
|
|
1064
|
+
}, {
|
|
1065
|
+
redirect?: boolean | undefined;
|
|
1066
|
+
title?: string | undefined;
|
|
1067
|
+
description?: string | undefined;
|
|
1068
|
+
}>;
|
|
1069
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1070
|
+
'404': {
|
|
1071
|
+
redirect: boolean;
|
|
1072
|
+
title?: string | undefined;
|
|
1073
|
+
description?: string | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
}, {
|
|
1076
|
+
'404': {
|
|
1077
|
+
redirect?: boolean | undefined;
|
|
1078
|
+
title?: string | undefined;
|
|
1079
|
+
description?: string | undefined;
|
|
1080
|
+
};
|
|
1081
|
+
}>>;
|
|
1082
|
+
contextual: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1083
|
+
options: import("zod").ZodEffects<import("zod").ZodArray<import("zod").ZodEnum<["copy", "view", "chatgpt", "claude"]>, "many">, ("copy" | "view" | "chatgpt" | "claude")[], ("copy" | "view" | "chatgpt" | "claude")[]>;
|
|
1084
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1085
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1086
|
+
}, {
|
|
1087
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1088
|
+
}>>;
|
|
1055
1089
|
};
|
|
@@ -5,7 +5,9 @@ import { appearanceSchema } from '../../properties/appearance.js';
|
|
|
5
5
|
import { backgroundSchema } from '../../properties/background.js';
|
|
6
6
|
import { bannerSchema } from '../../properties/banner.js';
|
|
7
7
|
import { colorsSchema } from '../../properties/colors.js';
|
|
8
|
+
import { contextualSchema } from '../../properties/contextual.js';
|
|
8
9
|
import { descriptionSchema } from '../../properties/description.js';
|
|
10
|
+
import { errorsSchema } from '../../properties/errors.js';
|
|
9
11
|
import { faviconSchema } from '../../properties/favicon.js';
|
|
10
12
|
import { fontsSchema } from '../../properties/font.js';
|
|
11
13
|
import { footerSchema } from '../../properties/footer.js';
|
|
@@ -39,4 +41,6 @@ export const standardConfigSchema = {
|
|
|
39
41
|
redirects: redirectsSchema.optional(),
|
|
40
42
|
integrations: integrationsSchema.optional(),
|
|
41
43
|
banner: bannerSchema.optional(),
|
|
44
|
+
errors: errorsSchema.optional(),
|
|
45
|
+
contextual: contextualSchema.optional(),
|
|
42
46
|
};
|
|
@@ -1053,6 +1053,40 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
1053
1053
|
content: string;
|
|
1054
1054
|
dismissible?: boolean | undefined;
|
|
1055
1055
|
}>>;
|
|
1056
|
+
errors: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
'404': z.ZodObject<{
|
|
1058
|
+
redirect: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1059
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
}, "strip", z.ZodTypeAny, {
|
|
1062
|
+
redirect: boolean;
|
|
1063
|
+
title?: string | undefined;
|
|
1064
|
+
description?: string | undefined;
|
|
1065
|
+
}, {
|
|
1066
|
+
redirect?: boolean | undefined;
|
|
1067
|
+
title?: string | undefined;
|
|
1068
|
+
description?: string | undefined;
|
|
1069
|
+
}>;
|
|
1070
|
+
}, "strip", z.ZodTypeAny, {
|
|
1071
|
+
'404': {
|
|
1072
|
+
redirect: boolean;
|
|
1073
|
+
title?: string | undefined;
|
|
1074
|
+
description?: string | undefined;
|
|
1075
|
+
};
|
|
1076
|
+
}, {
|
|
1077
|
+
'404': {
|
|
1078
|
+
redirect?: boolean | undefined;
|
|
1079
|
+
title?: string | undefined;
|
|
1080
|
+
description?: string | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
}>>;
|
|
1083
|
+
contextual: z.ZodOptional<z.ZodObject<{
|
|
1084
|
+
options: z.ZodEffects<z.ZodArray<z.ZodEnum<["copy", "view", "chatgpt", "claude"]>, "many">, ("copy" | "view" | "chatgpt" | "claude")[], ("copy" | "view" | "chatgpt" | "claude")[]>;
|
|
1085
|
+
}, "strip", z.ZodTypeAny, {
|
|
1086
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1087
|
+
}, {
|
|
1088
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1089
|
+
}>>;
|
|
1056
1090
|
theme: z.ZodLiteral<"willow">;
|
|
1057
1091
|
}, "strip", z.ZodTypeAny, {
|
|
1058
1092
|
name: string;
|
|
@@ -1368,6 +1402,16 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
1368
1402
|
content: string;
|
|
1369
1403
|
dismissible?: boolean | undefined;
|
|
1370
1404
|
} | undefined;
|
|
1405
|
+
errors?: {
|
|
1406
|
+
'404': {
|
|
1407
|
+
redirect: boolean;
|
|
1408
|
+
title?: string | undefined;
|
|
1409
|
+
description?: string | undefined;
|
|
1410
|
+
};
|
|
1411
|
+
} | undefined;
|
|
1412
|
+
contextual?: {
|
|
1413
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1414
|
+
} | undefined;
|
|
1371
1415
|
}, {
|
|
1372
1416
|
name: string;
|
|
1373
1417
|
theme: "willow";
|
|
@@ -1682,4 +1726,14 @@ export declare const willowConfigSchema: z.ZodObject<{
|
|
|
1682
1726
|
content: string;
|
|
1683
1727
|
dismissible?: boolean | undefined;
|
|
1684
1728
|
} | undefined;
|
|
1729
|
+
errors?: {
|
|
1730
|
+
'404': {
|
|
1731
|
+
redirect?: boolean | undefined;
|
|
1732
|
+
title?: string | undefined;
|
|
1733
|
+
description?: string | undefined;
|
|
1734
|
+
};
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
contextual?: {
|
|
1737
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1738
|
+
} | undefined;
|
|
1685
1739
|
}>;
|
|
@@ -790,6 +790,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
790
790
|
content: string;
|
|
791
791
|
dismissible?: boolean | undefined;
|
|
792
792
|
} | undefined;
|
|
793
|
+
errors?: {
|
|
794
|
+
'404': {
|
|
795
|
+
redirect?: boolean | undefined;
|
|
796
|
+
title?: string | undefined;
|
|
797
|
+
description?: string | undefined;
|
|
798
|
+
};
|
|
799
|
+
} | undefined;
|
|
800
|
+
contextual?: {
|
|
801
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
802
|
+
} | undefined;
|
|
793
803
|
} | {
|
|
794
804
|
name: string;
|
|
795
805
|
theme: "maple";
|
|
@@ -1104,6 +1114,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1104
1114
|
content: string;
|
|
1105
1115
|
dismissible?: boolean | undefined;
|
|
1106
1116
|
} | undefined;
|
|
1117
|
+
errors?: {
|
|
1118
|
+
'404': {
|
|
1119
|
+
redirect?: boolean | undefined;
|
|
1120
|
+
title?: string | undefined;
|
|
1121
|
+
description?: string | undefined;
|
|
1122
|
+
};
|
|
1123
|
+
} | undefined;
|
|
1124
|
+
contextual?: {
|
|
1125
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1126
|
+
} | undefined;
|
|
1107
1127
|
} | {
|
|
1108
1128
|
name: string;
|
|
1109
1129
|
theme: "mint";
|
|
@@ -1418,6 +1438,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1418
1438
|
content: string;
|
|
1419
1439
|
dismissible?: boolean | undefined;
|
|
1420
1440
|
} | undefined;
|
|
1441
|
+
errors?: {
|
|
1442
|
+
'404': {
|
|
1443
|
+
redirect?: boolean | undefined;
|
|
1444
|
+
title?: string | undefined;
|
|
1445
|
+
description?: string | undefined;
|
|
1446
|
+
};
|
|
1447
|
+
} | undefined;
|
|
1448
|
+
contextual?: {
|
|
1449
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1450
|
+
} | undefined;
|
|
1421
1451
|
} | {
|
|
1422
1452
|
name: string;
|
|
1423
1453
|
theme: "palm";
|
|
@@ -1732,6 +1762,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
1732
1762
|
content: string;
|
|
1733
1763
|
dismissible?: boolean | undefined;
|
|
1734
1764
|
} | undefined;
|
|
1765
|
+
errors?: {
|
|
1766
|
+
'404': {
|
|
1767
|
+
redirect?: boolean | undefined;
|
|
1768
|
+
title?: string | undefined;
|
|
1769
|
+
description?: string | undefined;
|
|
1770
|
+
};
|
|
1771
|
+
} | undefined;
|
|
1772
|
+
contextual?: {
|
|
1773
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
1774
|
+
} | undefined;
|
|
1735
1775
|
} | {
|
|
1736
1776
|
name: string;
|
|
1737
1777
|
theme: "willow";
|
|
@@ -2046,6 +2086,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2046
2086
|
content: string;
|
|
2047
2087
|
dismissible?: boolean | undefined;
|
|
2048
2088
|
} | undefined;
|
|
2089
|
+
errors?: {
|
|
2090
|
+
'404': {
|
|
2091
|
+
redirect?: boolean | undefined;
|
|
2092
|
+
title?: string | undefined;
|
|
2093
|
+
description?: string | undefined;
|
|
2094
|
+
};
|
|
2095
|
+
} | undefined;
|
|
2096
|
+
contextual?: {
|
|
2097
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
2098
|
+
} | undefined;
|
|
2049
2099
|
}> | {
|
|
2050
2100
|
warnings: z.ZodIssue[];
|
|
2051
2101
|
success: true;
|
|
@@ -2363,6 +2413,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2363
2413
|
content: string;
|
|
2364
2414
|
dismissible?: boolean | undefined;
|
|
2365
2415
|
} | undefined;
|
|
2416
|
+
errors?: {
|
|
2417
|
+
'404': {
|
|
2418
|
+
redirect: boolean;
|
|
2419
|
+
title?: string | undefined;
|
|
2420
|
+
description?: string | undefined;
|
|
2421
|
+
};
|
|
2422
|
+
} | undefined;
|
|
2423
|
+
contextual?: {
|
|
2424
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
2425
|
+
} | undefined;
|
|
2366
2426
|
} | {
|
|
2367
2427
|
name: string;
|
|
2368
2428
|
$schema: string;
|
|
@@ -2677,6 +2737,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2677
2737
|
content: string;
|
|
2678
2738
|
dismissible?: boolean | undefined;
|
|
2679
2739
|
} | undefined;
|
|
2740
|
+
errors?: {
|
|
2741
|
+
'404': {
|
|
2742
|
+
redirect: boolean;
|
|
2743
|
+
title?: string | undefined;
|
|
2744
|
+
description?: string | undefined;
|
|
2745
|
+
};
|
|
2746
|
+
} | undefined;
|
|
2747
|
+
contextual?: {
|
|
2748
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
2749
|
+
} | undefined;
|
|
2680
2750
|
} | {
|
|
2681
2751
|
name: string;
|
|
2682
2752
|
$schema: string;
|
|
@@ -2991,6 +3061,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
2991
3061
|
content: string;
|
|
2992
3062
|
dismissible?: boolean | undefined;
|
|
2993
3063
|
} | undefined;
|
|
3064
|
+
errors?: {
|
|
3065
|
+
'404': {
|
|
3066
|
+
redirect: boolean;
|
|
3067
|
+
title?: string | undefined;
|
|
3068
|
+
description?: string | undefined;
|
|
3069
|
+
};
|
|
3070
|
+
} | undefined;
|
|
3071
|
+
contextual?: {
|
|
3072
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
3073
|
+
} | undefined;
|
|
2994
3074
|
} | {
|
|
2995
3075
|
name: string;
|
|
2996
3076
|
$schema: string;
|
|
@@ -3305,6 +3385,16 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3305
3385
|
content: string;
|
|
3306
3386
|
dismissible?: boolean | undefined;
|
|
3307
3387
|
} | undefined;
|
|
3388
|
+
errors?: {
|
|
3389
|
+
'404': {
|
|
3390
|
+
redirect: boolean;
|
|
3391
|
+
title?: string | undefined;
|
|
3392
|
+
description?: string | undefined;
|
|
3393
|
+
};
|
|
3394
|
+
} | undefined;
|
|
3395
|
+
contextual?: {
|
|
3396
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
3397
|
+
} | undefined;
|
|
3308
3398
|
} | {
|
|
3309
3399
|
name: string;
|
|
3310
3400
|
$schema: string;
|
|
@@ -3619,5 +3709,15 @@ export declare function validateDocsConfig(value: unknown): z.SafeParseError<{
|
|
|
3619
3709
|
content: string;
|
|
3620
3710
|
dismissible?: boolean | undefined;
|
|
3621
3711
|
} | undefined;
|
|
3712
|
+
errors?: {
|
|
3713
|
+
'404': {
|
|
3714
|
+
redirect: boolean;
|
|
3715
|
+
title?: string | undefined;
|
|
3716
|
+
description?: string | undefined;
|
|
3717
|
+
};
|
|
3718
|
+
} | undefined;
|
|
3719
|
+
contextual?: {
|
|
3720
|
+
options: ("copy" | "view" | "chatgpt" | "claude")[];
|
|
3721
|
+
} | undefined;
|
|
3622
3722
|
};
|
|
3623
3723
|
};
|