@mintlify/validation 0.1.226 → 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/{basics.d.ts → v1/basics.d.ts} +7 -0
- package/dist/mint-config/schemas/{basics.js → v1/basics.js} +3 -0
- package/dist/mint-config/schemas/{config.d.ts → v1/config.d.ts} +21 -8
- package/dist/mint-config/schemas/{config.js → v1/config.js} +2 -1
- 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 +10 -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 +3 -3
- /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/{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/{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
|
}>;
|
|
@@ -23,6 +23,13 @@ export declare const modeToggleSchema: z.ZodObject<{
|
|
|
23
23
|
default?: "light" | "dark" | undefined;
|
|
24
24
|
isHidden?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
|
+
export declare const eyebrowSchema: z.ZodObject<{
|
|
27
|
+
display: z.ZodOptional<z.ZodEnum<["section", "breadcrumbs"]>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
display?: "section" | "breadcrumbs" | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
display?: "section" | "breadcrumbs" | undefined;
|
|
32
|
+
}>;
|
|
26
33
|
export declare const isWhiteLabeledSchema: z.ZodBoolean;
|
|
27
34
|
export declare const metadataSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
28
35
|
export declare const codeBlockSchema: z.ZodObject<{
|
|
@@ -13,6 +13,9 @@ export const modeToggleSchema = z.object({
|
|
|
13
13
|
default: z.enum(['light', 'dark']).optional(),
|
|
14
14
|
isHidden: z.boolean().optional(),
|
|
15
15
|
});
|
|
16
|
+
export const eyebrowSchema = z.object({
|
|
17
|
+
display: z.enum(['section', 'breadcrumbs']).optional(),
|
|
18
|
+
});
|
|
16
19
|
export const isWhiteLabeledSchema = z.boolean();
|
|
17
20
|
export const metadataSchema = z.record(z.string(), z.string().nonempty());
|
|
18
21
|
export const codeBlockSchema = z.object({
|
|
@@ -237,6 +237,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
237
237
|
ultraLight?: any;
|
|
238
238
|
ultraDark?: any;
|
|
239
239
|
}>;
|
|
240
|
+
eyebrow: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
display: z.ZodOptional<z.ZodEnum<["section", "breadcrumbs"]>>;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
display?: "section" | "breadcrumbs" | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
display?: "section" | "breadcrumbs" | undefined;
|
|
246
|
+
}>>;
|
|
240
247
|
topbarCtaButton: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
241
248
|
type: z.ZodOptional<z.ZodLiteral<"link">>;
|
|
242
249
|
name: z.ZodString;
|
|
@@ -311,11 +318,11 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
311
318
|
}, "strict", z.ZodTypeAny, {
|
|
312
319
|
name: string;
|
|
313
320
|
icon?: string | undefined;
|
|
314
|
-
iconType?: "
|
|
321
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
315
322
|
}, {
|
|
316
323
|
name: string;
|
|
317
324
|
icon?: string | undefined;
|
|
318
|
-
iconType?: "
|
|
325
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
319
326
|
}>>;
|
|
320
327
|
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
328
|
name: z.ZodString;
|
|
@@ -342,7 +349,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
342
349
|
name: string;
|
|
343
350
|
url: string;
|
|
344
351
|
icon?: string | undefined;
|
|
345
|
-
iconType?: "
|
|
352
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
346
353
|
color?: string | {
|
|
347
354
|
from: string;
|
|
348
355
|
to: string;
|
|
@@ -355,7 +362,7 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
355
362
|
name: string;
|
|
356
363
|
url: string;
|
|
357
364
|
icon?: string | undefined;
|
|
358
|
-
iconType?: "
|
|
365
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
359
366
|
color?: string | {
|
|
360
367
|
from: string;
|
|
361
368
|
to: string;
|
|
@@ -907,6 +914,9 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
907
914
|
codeBlock?: {
|
|
908
915
|
mode?: "dark" | "auto" | undefined;
|
|
909
916
|
} | undefined;
|
|
917
|
+
eyebrow?: {
|
|
918
|
+
display?: "section" | "breadcrumbs" | undefined;
|
|
919
|
+
} | undefined;
|
|
910
920
|
topbarCtaButton?: {
|
|
911
921
|
name: string;
|
|
912
922
|
url: string;
|
|
@@ -934,13 +944,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
934
944
|
topAnchor?: {
|
|
935
945
|
name: string;
|
|
936
946
|
icon?: string | undefined;
|
|
937
|
-
iconType?: "
|
|
947
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
938
948
|
} | undefined;
|
|
939
949
|
anchors?: {
|
|
940
950
|
name: string;
|
|
941
951
|
url: string;
|
|
942
952
|
icon?: string | undefined;
|
|
943
|
-
iconType?: "
|
|
953
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
944
954
|
color?: string | {
|
|
945
955
|
from: string;
|
|
946
956
|
to: string;
|
|
@@ -1140,6 +1150,9 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1140
1150
|
codeBlock?: {
|
|
1141
1151
|
mode?: "dark" | "auto" | undefined;
|
|
1142
1152
|
} | undefined;
|
|
1153
|
+
eyebrow?: {
|
|
1154
|
+
display?: "section" | "breadcrumbs" | undefined;
|
|
1155
|
+
} | undefined;
|
|
1143
1156
|
topbarCtaButton?: {
|
|
1144
1157
|
name: string;
|
|
1145
1158
|
url: string;
|
|
@@ -1167,13 +1180,13 @@ export declare const mintConfigSchema: z.ZodObject<{
|
|
|
1167
1180
|
topAnchor?: {
|
|
1168
1181
|
name: string;
|
|
1169
1182
|
icon?: string | undefined;
|
|
1170
|
-
iconType?: "
|
|
1183
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1171
1184
|
} | undefined;
|
|
1172
1185
|
anchors?: {
|
|
1173
1186
|
name: string;
|
|
1174
1187
|
url: string;
|
|
1175
1188
|
icon?: string | undefined;
|
|
1176
|
-
iconType?: "
|
|
1189
|
+
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1177
1190
|
color?: string | {
|
|
1178
1191
|
from: string;
|
|
1179
1192
|
to: string;
|
|
@@ -6,7 +6,7 @@ import { analyticsSchema } from './analytics.js';
|
|
|
6
6
|
import { anchorSchema, topAnchorSchema } from './anchors.js';
|
|
7
7
|
import { apiSchema, openApiSchema } from './apiReference.js';
|
|
8
8
|
import { backgroundSchema } from './background.js';
|
|
9
|
-
import { codeBlockSchema, ctaButtonSchema, feedbackSchema, isWhiteLabeledSchema, logoSchema, metadataSchema, modeToggleSchema, nameSchema, redirectsSchema, searchSchema, } from './basics.js';
|
|
9
|
+
import { codeBlockSchema, ctaButtonSchema, eyebrowSchema, feedbackSchema, isWhiteLabeledSchema, logoSchema, metadataSchema, modeToggleSchema, nameSchema, redirectsSchema, searchSchema, } from './basics.js';
|
|
10
10
|
import { colorsSchema } from './colors.js';
|
|
11
11
|
import { faviconSchema } from './favicon.js';
|
|
12
12
|
import { fontSchema } from './font.js';
|
|
@@ -36,6 +36,7 @@ export const mintConfigSchema = z.object({
|
|
|
36
36
|
metadata: metadataSchema.optional(),
|
|
37
37
|
codeBlock: codeBlockSchema.optional(),
|
|
38
38
|
colors: colorsSchema,
|
|
39
|
+
eyebrow: eyebrowSchema.optional(),
|
|
39
40
|
topbarCtaButton: ctaButtonSchema.optional(),
|
|
40
41
|
topbarLinks: ctaButtonSchema.array().optional(),
|
|
41
42
|
navigation: navigationSchema,
|
|
@@ -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()
|