@mintlify/validation 0.1.44 → 0.1.46
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 +2 -6
- package/dist/index.js +1 -1
- package/dist/mint-config/schemas/analytics.d.ts +104 -0
- package/dist/mint-config/schemas/anchorColors.d.ts +14 -0
- package/dist/mint-config/schemas/anchors.d.ts +62 -0
- package/dist/mint-config/schemas/apiReference.d.ts +77 -0
- package/dist/mint-config/schemas/basics.d.ts +80 -0
- package/dist/mint-config/schemas/colors.d.ts +1 -0
- package/dist/mint-config/schemas/config.d.ts +4 -84
- package/dist/mint-config/schemas/integrations.d.ts +38 -0
- package/dist/mint-config/schemas/navigation.d.ts +2 -2
- package/dist/mint-config/schemas/tabs.d.ts +20 -0
- package/dist/mint-config/schemas/versions.d.ts +13 -0
- package/dist/mint-config/types/anchors.d.ts +0 -1
- package/dist/mint-config/types/config.d.ts +1 -2
- package/dist/mint-config/types/enums.d.ts +4 -0
- package/dist/mint-config/types/index.d.ts +12 -0
- package/dist/mint-config/types/navigation.d.ts +7 -0
- package/dist/mint-config/validateAnchorsWarnings.d.ts +3 -3
- package/dist/mint-config/validateVersionsInNavigation.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,106 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
declare const amplitudeConfigInterfaceSchema: z.ZodObject<{
|
|
3
|
+
apiKey: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
apiKey: string;
|
|
6
|
+
}, {
|
|
7
|
+
apiKey: string;
|
|
8
|
+
}>;
|
|
9
|
+
declare const clearbitConfigInterfaceSchema: z.ZodObject<{
|
|
10
|
+
publicApiKey: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
publicApiKey: string;
|
|
13
|
+
}, {
|
|
14
|
+
publicApiKey: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare const fathomConfigInterfaceSchema: z.ZodObject<{
|
|
17
|
+
siteId: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
siteId: string;
|
|
20
|
+
}, {
|
|
21
|
+
siteId: string;
|
|
22
|
+
}>;
|
|
23
|
+
declare const googleAnalyticsConfigInterfaceSchema: z.ZodObject<{
|
|
24
|
+
measurementId: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
measurementId: string;
|
|
27
|
+
}, {
|
|
28
|
+
measurementId: string;
|
|
29
|
+
}>;
|
|
30
|
+
declare const googleTagManagerConfigInterfaceSchema: z.ZodObject<{
|
|
31
|
+
tagId: z.ZodString;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
tagId: string;
|
|
34
|
+
}, {
|
|
35
|
+
tagId: string;
|
|
36
|
+
}>;
|
|
37
|
+
declare const hotjarConfigInterfaceSchema: z.ZodObject<{
|
|
38
|
+
hjid: z.ZodString;
|
|
39
|
+
hjsv: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
hjid: string;
|
|
42
|
+
hjsv: string;
|
|
43
|
+
}, {
|
|
44
|
+
hjid: string;
|
|
45
|
+
hjsv: string;
|
|
46
|
+
}>;
|
|
47
|
+
declare const koalaConfigInterfaceSchema: z.ZodObject<{
|
|
48
|
+
publicApiKey: z.ZodEffects<z.ZodString, string, string>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
publicApiKey: string;
|
|
51
|
+
}, {
|
|
52
|
+
publicApiKey: string;
|
|
53
|
+
}>;
|
|
54
|
+
declare const logrocketConfigInterfaceSchema: z.ZodObject<{
|
|
55
|
+
appId: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
appId: string;
|
|
58
|
+
}, {
|
|
59
|
+
appId: string;
|
|
60
|
+
}>;
|
|
61
|
+
declare const mixpanelConfigInterfaceSchema: z.ZodObject<{
|
|
62
|
+
projectToken: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
projectToken: string;
|
|
65
|
+
}, {
|
|
66
|
+
projectToken: string;
|
|
67
|
+
}>;
|
|
68
|
+
declare const pirschConfigInterfaceSchema: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
id: string;
|
|
72
|
+
}, {
|
|
73
|
+
id: string;
|
|
74
|
+
}>;
|
|
75
|
+
declare const postHogConfigInterfaceSchema: z.ZodObject<{
|
|
76
|
+
apiKey: z.ZodString;
|
|
77
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
apiKey: string;
|
|
80
|
+
apiHost?: string | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
apiKey: string;
|
|
83
|
+
apiHost?: string | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
declare const plausibleConfigInterfaceSchema: z.ZodObject<{
|
|
86
|
+
domain: z.ZodEffects<z.ZodString, string, string>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
domain: string;
|
|
89
|
+
}, {
|
|
90
|
+
domain: string;
|
|
91
|
+
}>;
|
|
92
|
+
export type AmplitudeConfigInterface = z.infer<typeof amplitudeConfigInterfaceSchema>;
|
|
93
|
+
export type ClearbitConfigInterface = z.infer<typeof clearbitConfigInterfaceSchema>;
|
|
94
|
+
export type FathomConfigInterface = z.infer<typeof fathomConfigInterfaceSchema>;
|
|
95
|
+
export type GoogleAnalyticsConfigInterface = z.infer<typeof googleAnalyticsConfigInterfaceSchema>;
|
|
96
|
+
export type GoogleTagManagerConfigInterface = z.infer<typeof googleTagManagerConfigInterfaceSchema>;
|
|
97
|
+
export type HotjarConfigInterface = z.infer<typeof hotjarConfigInterfaceSchema>;
|
|
98
|
+
export type KoalaConfigInterface = z.infer<typeof koalaConfigInterfaceSchema>;
|
|
99
|
+
export type LogrocketConfigInterface = z.infer<typeof logrocketConfigInterfaceSchema>;
|
|
100
|
+
export type MixpanelConfigInterface = z.infer<typeof mixpanelConfigInterfaceSchema>;
|
|
101
|
+
export type PirschConfigInterface = z.infer<typeof pirschConfigInterfaceSchema>;
|
|
102
|
+
export type PostHogConfigInterface = z.infer<typeof postHogConfigInterfaceSchema>;
|
|
103
|
+
export type PlausibleConfigInterface = z.infer<typeof plausibleConfigInterfaceSchema>;
|
|
2
104
|
export declare const analyticsSchema: z.ZodObject<{
|
|
3
105
|
amplitude: z.ZodOptional<z.ZodObject<{
|
|
4
106
|
apiKey: z.ZodString;
|
|
@@ -169,3 +271,5 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
169
271
|
domain: string;
|
|
170
272
|
} | undefined;
|
|
171
273
|
}>;
|
|
274
|
+
export type AnalyticsType = z.infer<typeof analyticsSchema>;
|
|
275
|
+
export {};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const gradientSchema: z.ZodObject<{
|
|
3
|
+
from: z.ZodString;
|
|
4
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5
|
+
to: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
via?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
via?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type GradientType = z.infer<typeof gradientSchema>;
|
|
2
16
|
export declare const anchorColorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3
17
|
from: z.ZodString;
|
|
4
18
|
via: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,49 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
declare const anchorSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
icon: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
6
|
+
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "sharp-solid", "solid", "thin"]>>;
|
|
7
|
+
color: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
8
|
+
from: z.ZodString;
|
|
9
|
+
via: z.ZodOptional<z.ZodString>;
|
|
10
|
+
to: z.ZodString;
|
|
11
|
+
}, "strict", z.ZodTypeAny, {
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
via?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
from: string;
|
|
17
|
+
to: string;
|
|
18
|
+
via?: string | undefined;
|
|
19
|
+
}>]>>;
|
|
20
|
+
isDefaultHidden: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
version: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
name: string;
|
|
24
|
+
url: string;
|
|
25
|
+
icon?: string | undefined;
|
|
26
|
+
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
27
|
+
color?: string | {
|
|
28
|
+
from: string;
|
|
29
|
+
to: string;
|
|
30
|
+
via?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
isDefaultHidden?: boolean | undefined;
|
|
33
|
+
version?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
name: string;
|
|
36
|
+
url: string;
|
|
37
|
+
icon?: string | undefined;
|
|
38
|
+
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
39
|
+
color?: string | {
|
|
40
|
+
from: string;
|
|
41
|
+
to: string;
|
|
42
|
+
via?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
isDefaultHidden?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
2
47
|
export declare const anchorsSchema: z.ZodArray<z.ZodObject<{
|
|
3
48
|
name: z.ZodString;
|
|
4
49
|
url: z.ZodString;
|
|
@@ -44,3 +89,20 @@ export declare const anchorsSchema: z.ZodArray<z.ZodObject<{
|
|
|
44
89
|
isDefaultHidden?: boolean | undefined;
|
|
45
90
|
version?: string | undefined;
|
|
46
91
|
}>, "many">;
|
|
92
|
+
export declare const topAnchorSchema: z.ZodObject<{
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
95
|
+
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "sharp-solid", "solid", "thin"]>>;
|
|
96
|
+
}, "strict", z.ZodTypeAny, {
|
|
97
|
+
name: string;
|
|
98
|
+
icon?: string | undefined;
|
|
99
|
+
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
name: string;
|
|
102
|
+
icon?: string | undefined;
|
|
103
|
+
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
export type AnchorType = z.infer<typeof anchorSchema>;
|
|
106
|
+
export type AnchorsType = z.infer<typeof anchorsSchema>;
|
|
107
|
+
export type TopAnchorType = z.infer<typeof topAnchorSchema>;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const openApiSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
3
|
+
export type OpenApiType = z.infer<typeof openApiSchema>;
|
|
4
|
+
export declare const apiSchema: z.ZodObject<{
|
|
5
|
+
baseUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
method: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key"]>>;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
inputPrefix: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
inputPrefix?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
inputPrefix?: string | undefined;
|
|
18
|
+
}>>;
|
|
19
|
+
playground: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "simple", "hide"]>>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
mode: "show" | "simple" | "hide";
|
|
23
|
+
}, {
|
|
24
|
+
mode?: "show" | "simple" | "hide" | undefined;
|
|
25
|
+
}>>;
|
|
26
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
example: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
showOptionalParams: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
showOptionalParams: boolean;
|
|
31
|
+
}, {
|
|
32
|
+
showOptionalParams?: boolean | undefined;
|
|
33
|
+
}>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
example?: {
|
|
36
|
+
showOptionalParams: boolean;
|
|
37
|
+
} | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
example?: {
|
|
40
|
+
showOptionalParams?: boolean | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}>>;
|
|
43
|
+
maintainOrder: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
baseUrl?: string | string[] | undefined;
|
|
46
|
+
auth?: {
|
|
47
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
inputPrefix?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
playground?: {
|
|
52
|
+
mode: "show" | "simple" | "hide";
|
|
53
|
+
} | undefined;
|
|
54
|
+
request?: {
|
|
55
|
+
example?: {
|
|
56
|
+
showOptionalParams: boolean;
|
|
57
|
+
} | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
maintainOrder?: boolean | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
baseUrl?: string | string[] | undefined;
|
|
62
|
+
auth?: {
|
|
63
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
inputPrefix?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
playground?: {
|
|
68
|
+
mode?: "show" | "simple" | "hide" | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
request?: {
|
|
71
|
+
example?: {
|
|
72
|
+
showOptionalParams?: boolean | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
maintainOrder?: boolean | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
export type ApiConfigType = z.infer<typeof apiSchema>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NavbarLinkType } from '../types/enums';
|
|
3
|
+
export declare const nameSchema: z.ZodString;
|
|
4
|
+
export declare const logoSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5
|
+
light: z.ZodString;
|
|
6
|
+
dark: z.ZodString;
|
|
7
|
+
href: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
light: string;
|
|
10
|
+
dark: string;
|
|
11
|
+
href?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
light: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
href?: string | undefined;
|
|
16
|
+
}>]>;
|
|
17
|
+
export declare const modeToggleSchema: z.ZodObject<{
|
|
18
|
+
default: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
19
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
default?: "light" | "dark" | undefined;
|
|
22
|
+
isHidden?: boolean | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
default?: "light" | "dark" | undefined;
|
|
25
|
+
isHidden?: boolean | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const isWhiteLabeledSchema: z.ZodBoolean;
|
|
28
|
+
export declare const metadataSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
29
|
+
export declare const footerSocialsSchema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
30
|
+
type: z.ZodString;
|
|
31
|
+
url: z.ZodString;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
type: string;
|
|
34
|
+
url: string;
|
|
35
|
+
}, {
|
|
36
|
+
type: string;
|
|
37
|
+
url: string;
|
|
38
|
+
}>, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
39
|
+
export declare const feedbackSchema: z.ZodObject<{
|
|
40
|
+
suggestEdit: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
raiseIssue: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
suggestEdit?: boolean | undefined;
|
|
44
|
+
raiseIssue?: boolean | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
suggestEdit?: boolean | undefined;
|
|
47
|
+
raiseIssue?: boolean | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const createCtaButtonSchema: (ctaButtonName: string) => z.ZodUnion<[z.ZodObject<{
|
|
50
|
+
type: z.ZodOptional<z.ZodLiteral<"link">>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
url: z.ZodString;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
name: string;
|
|
55
|
+
url: string;
|
|
56
|
+
type?: "link" | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
name: string;
|
|
59
|
+
url: string;
|
|
60
|
+
type?: "link" | undefined;
|
|
61
|
+
}>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"github">;
|
|
63
|
+
url: z.ZodString;
|
|
64
|
+
}, "strict", z.ZodTypeAny, {
|
|
65
|
+
type: "github";
|
|
66
|
+
url: string;
|
|
67
|
+
}, {
|
|
68
|
+
type: "github";
|
|
69
|
+
url: string;
|
|
70
|
+
}>]>;
|
|
71
|
+
export type LogoType = z.infer<typeof logoSchema>;
|
|
72
|
+
export type FeedbackType = z.infer<typeof feedbackSchema>;
|
|
73
|
+
export type FooterSocialsType = z.infer<typeof footerSocialsSchema>;
|
|
74
|
+
export type NavbarLink = {
|
|
75
|
+
url: string;
|
|
76
|
+
type?: NavbarLinkType;
|
|
77
|
+
name?: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const iconTypes: readonly ["brands", "duotone", "light", "regular", "sharp-solid", "solid", "thin"];
|
|
80
|
+
export type IconType = (typeof iconTypes)[number];
|
|
@@ -1,77 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const apiSchema: z.ZodObject<{
|
|
3
|
-
baseUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
5
|
-
method: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key"]>>;
|
|
6
|
-
name: z.ZodOptional<z.ZodString>;
|
|
7
|
-
inputPrefix: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
method?: "bearer" | "basic" | "key" | undefined;
|
|
10
|
-
name?: string | undefined;
|
|
11
|
-
inputPrefix?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
method?: "bearer" | "basic" | "key" | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
inputPrefix?: string | undefined;
|
|
16
|
-
}>>;
|
|
17
|
-
playground: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "simple", "hide"]>>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
mode: "show" | "simple" | "hide";
|
|
21
|
-
}, {
|
|
22
|
-
mode?: "show" | "simple" | "hide" | undefined;
|
|
23
|
-
}>>;
|
|
24
|
-
request: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
example: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
showOptionalParams: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
showOptionalParams: boolean;
|
|
29
|
-
}, {
|
|
30
|
-
showOptionalParams?: boolean | undefined;
|
|
31
|
-
}>>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
example?: {
|
|
34
|
-
showOptionalParams: boolean;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
example?: {
|
|
38
|
-
showOptionalParams?: boolean | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
}>>;
|
|
41
|
-
maintainOrder: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
-
}, "strict", z.ZodTypeAny, {
|
|
43
|
-
baseUrl?: string | string[] | undefined;
|
|
44
|
-
auth?: {
|
|
45
|
-
method?: "bearer" | "basic" | "key" | undefined;
|
|
46
|
-
name?: string | undefined;
|
|
47
|
-
inputPrefix?: string | undefined;
|
|
48
|
-
} | undefined;
|
|
49
|
-
playground?: {
|
|
50
|
-
mode: "show" | "simple" | "hide";
|
|
51
|
-
} | undefined;
|
|
52
|
-
request?: {
|
|
53
|
-
example?: {
|
|
54
|
-
showOptionalParams: boolean;
|
|
55
|
-
} | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
maintainOrder?: boolean | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
baseUrl?: string | string[] | undefined;
|
|
60
|
-
auth?: {
|
|
61
|
-
method?: "bearer" | "basic" | "key" | undefined;
|
|
62
|
-
name?: string | undefined;
|
|
63
|
-
inputPrefix?: string | undefined;
|
|
64
|
-
} | undefined;
|
|
65
|
-
playground?: {
|
|
66
|
-
mode?: "show" | "simple" | "hide" | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
request?: {
|
|
69
|
-
example?: {
|
|
70
|
-
showOptionalParams?: boolean | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
maintainOrder?: boolean | undefined;
|
|
74
|
-
}>;
|
|
75
2
|
export declare const configSchema: z.ZodObject<{
|
|
76
3
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
77
4
|
mintlify: z.ZodOptional<z.ZodString>;
|
|
@@ -289,7 +216,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
289
216
|
type: "github";
|
|
290
217
|
url: string;
|
|
291
218
|
}>]>, "many">>;
|
|
292
|
-
navigation: z.ZodArray<z.ZodType<import("
|
|
219
|
+
navigation: z.ZodArray<z.ZodType<import("../types").MintNavigationGroup, z.ZodTypeDef, import("../types").MintNavigationGroup>, "many">;
|
|
293
220
|
primaryTab: z.ZodOptional<z.ZodObject<{
|
|
294
221
|
name: z.ZodString;
|
|
295
222
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -299,17 +226,14 @@ export declare const configSchema: z.ZodObject<{
|
|
|
299
226
|
}>>;
|
|
300
227
|
topAnchor: z.ZodOptional<z.ZodObject<{
|
|
301
228
|
name: z.ZodString;
|
|
302
|
-
color: z.ZodOptional<z.ZodString>;
|
|
303
229
|
icon: z.ZodOptional<z.ZodString>;
|
|
304
230
|
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "sharp-solid", "solid", "thin"]>>;
|
|
305
231
|
}, "strict", z.ZodTypeAny, {
|
|
306
232
|
name: string;
|
|
307
|
-
color?: string | undefined;
|
|
308
233
|
icon?: string | undefined;
|
|
309
234
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
310
235
|
}, {
|
|
311
236
|
name: string;
|
|
312
|
-
color?: string | undefined;
|
|
313
237
|
icon?: string | undefined;
|
|
314
238
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
315
239
|
}>>;
|
|
@@ -583,7 +507,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
583
507
|
} | undefined;
|
|
584
508
|
}>>;
|
|
585
509
|
isWhiteLabeled: z.ZodOptional<z.ZodBoolean>;
|
|
586
|
-
__injected: z.ZodUndefined;
|
|
587
510
|
}, "strip", z.ZodTypeAny, {
|
|
588
511
|
$schema: string;
|
|
589
512
|
name: string;
|
|
@@ -604,7 +527,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
604
527
|
ultraLight?: any;
|
|
605
528
|
ultraDark?: any;
|
|
606
529
|
};
|
|
607
|
-
navigation: import("
|
|
530
|
+
navigation: import("../types").MintNavigationGroup[];
|
|
608
531
|
mintlify?: string | undefined;
|
|
609
532
|
logo?: string | {
|
|
610
533
|
light: string;
|
|
@@ -659,7 +582,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
659
582
|
} | undefined;
|
|
660
583
|
topAnchor?: {
|
|
661
584
|
name: string;
|
|
662
|
-
color?: string | undefined;
|
|
663
585
|
icon?: string | undefined;
|
|
664
586
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
665
587
|
} | undefined;
|
|
@@ -737,7 +659,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
737
659
|
} | undefined;
|
|
738
660
|
} | undefined;
|
|
739
661
|
isWhiteLabeled?: boolean | undefined;
|
|
740
|
-
__injected?: undefined;
|
|
741
662
|
}, {
|
|
742
663
|
name: string;
|
|
743
664
|
favicon: string;
|
|
@@ -757,7 +678,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
757
678
|
ultraLight?: any;
|
|
758
679
|
ultraDark?: any;
|
|
759
680
|
};
|
|
760
|
-
navigation: import("
|
|
681
|
+
navigation: import("../types").MintNavigationGroup[];
|
|
761
682
|
$schema?: string | undefined;
|
|
762
683
|
mintlify?: string | undefined;
|
|
763
684
|
logo?: string | {
|
|
@@ -813,7 +734,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
813
734
|
} | undefined;
|
|
814
735
|
topAnchor?: {
|
|
815
736
|
name: string;
|
|
816
|
-
color?: string | undefined;
|
|
817
737
|
icon?: string | undefined;
|
|
818
738
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
819
739
|
} | undefined;
|
|
@@ -891,5 +811,5 @@ export declare const configSchema: z.ZodObject<{
|
|
|
891
811
|
} | undefined;
|
|
892
812
|
} | undefined;
|
|
893
813
|
isWhiteLabeled?: boolean | undefined;
|
|
894
|
-
__injected?: undefined;
|
|
895
814
|
}>;
|
|
815
|
+
export type ConfigType = z.infer<typeof configSchema>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const intercomSchema: z.ZodString;
|
|
3
|
+
declare const frontchatSchema: z.ZodString;
|
|
4
|
+
declare const inkeepSchema: z.ZodObject<{
|
|
5
|
+
integrationApiKey: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
integrationApiKey: string;
|
|
8
|
+
}, {
|
|
9
|
+
integrationApiKey: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const integrationsSchema: z.ZodObject<{
|
|
12
|
+
intercom: z.ZodOptional<z.ZodString>;
|
|
13
|
+
frontchat: z.ZodOptional<z.ZodString>;
|
|
14
|
+
inkeep: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
integrationApiKey: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
integrationApiKey: string;
|
|
18
|
+
}, {
|
|
19
|
+
integrationApiKey: string;
|
|
20
|
+
}>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
intercom?: string | undefined;
|
|
23
|
+
frontchat?: string | undefined;
|
|
24
|
+
inkeep?: {
|
|
25
|
+
integrationApiKey: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
intercom?: string | undefined;
|
|
29
|
+
frontchat?: string | undefined;
|
|
30
|
+
inkeep?: {
|
|
31
|
+
integrationApiKey: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export type IntercomType = z.infer<typeof intercomSchema>;
|
|
35
|
+
export type FrontchatType = z.infer<typeof frontchatSchema>;
|
|
36
|
+
export type InkeepType = z.infer<typeof inkeepSchema>;
|
|
37
|
+
export type IntegrationsType = z.infer<typeof integrationsSchema>;
|
|
38
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export declare const navigationConfigSchema: z.ZodArray<z.ZodType<
|
|
2
|
+
import { MintNavigationGroup } from '../types/navigation';
|
|
3
|
+
export declare const navigationConfigSchema: z.ZodArray<z.ZodType<MintNavigationGroup, z.ZodTypeDef, MintNavigationGroup>, "many">;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
declare const tabSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type TabType = z.infer<typeof tabSchema>;
|
|
2
13
|
export declare const tabsSchema: z.ZodArray<z.ZodObject<{
|
|
3
14
|
name: z.ZodString;
|
|
4
15
|
url: z.ZodString;
|
|
@@ -9,3 +20,12 @@ export declare const tabsSchema: z.ZodArray<z.ZodObject<{
|
|
|
9
20
|
name: string;
|
|
10
21
|
url: string;
|
|
11
22
|
}>, "many">;
|
|
23
|
+
export declare const primaryTabSchema: z.ZodObject<{
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
name: string;
|
|
27
|
+
}, {
|
|
28
|
+
name: string;
|
|
29
|
+
}>;
|
|
30
|
+
export type PrimaryTabType = z.infer<typeof primaryTabSchema>;
|
|
31
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
declare const versionSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}>]>;
|
|
2
12
|
export declare const versionsSchema: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3
13
|
name: z.ZodString;
|
|
4
14
|
url: z.ZodString;
|
|
@@ -9,3 +19,6 @@ export declare const versionsSchema: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodOb
|
|
|
9
19
|
name: string;
|
|
10
20
|
url: string;
|
|
11
21
|
}>]>, "many">;
|
|
22
|
+
export type VersionType = z.infer<typeof versionSchema>;
|
|
23
|
+
export type VersionsType = z.infer<typeof versionsSchema>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type ModeToggleType = 'dark' | 'light' | (string & {});
|
|
2
|
+
export type NavbarLinkType = 'github' | 'link' | (string & {});
|
|
3
|
+
export type ApiAuthMethodType = 'key' | 'bearer' | 'basic' | (string & {});
|
|
4
|
+
export type ApiPlaygroundModeType = 'show' | 'simple' | 'hide' | (string & {});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type { ConfigType } from '../schemas/config';
|
|
2
|
+
export type { AnalyticsType, AmplitudeConfigInterface, ClearbitConfigInterface, FathomConfigInterface, GoogleAnalyticsConfigInterface, GoogleTagManagerConfigInterface, HotjarConfigInterface, KoalaConfigInterface, LogrocketConfigInterface, MixpanelConfigInterface, PirschConfigInterface, PostHogConfigInterface, PlausibleConfigInterface, } from '../schemas/analytics';
|
|
3
|
+
export type { AnchorsType, AnchorType, TopAnchorType } from '../schemas/anchors';
|
|
4
|
+
export type { ApiConfigType } from '../schemas/apiReference';
|
|
5
|
+
export type { FeedbackType, FooterSocialsType, IconType, LogoType, NavbarLink, } from '../schemas/basics';
|
|
6
|
+
export type { ColorsType } from '../schemas/colors';
|
|
7
|
+
export type { GradientType } from '../schemas/anchorColors';
|
|
8
|
+
export type { IntegrationsType, IntercomType, FrontchatType, InkeepType, } from '../schemas/integrations';
|
|
9
|
+
export type { TabType, PrimaryTabType } from '../schemas/tabs';
|
|
10
|
+
export type { VersionsType, VersionType } from '../schemas/versions';
|
|
11
|
+
export type { ModeToggleType, NavbarLinkType, ApiAuthMethodType, ApiPlaygroundModeType, } from './enums';
|
|
12
|
+
export type { MintNavigation, MintNavigationGroup, MintNavigationGroupChild, NavigationEntry, NavigationType, } from './navigation';
|
|
@@ -4,3 +4,10 @@ export type NavigationType = {
|
|
|
4
4
|
pages: NavigationEntry[];
|
|
5
5
|
version?: string;
|
|
6
6
|
};
|
|
7
|
+
export type MintNavigation = MintNavigationGroup[];
|
|
8
|
+
export type MintNavigationGroup = {
|
|
9
|
+
group: string;
|
|
10
|
+
version?: string;
|
|
11
|
+
pages: MintNavigationGroupChild[];
|
|
12
|
+
};
|
|
13
|
+
export type MintNavigationGroupChild = string | MintNavigationGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MintValidationResults } from './common';
|
|
2
|
-
import { AnchorsType } from './
|
|
3
|
-
import {
|
|
4
|
-
export declare function validateAnchorsWarnings(anchors: AnchorsType | undefined, navigation:
|
|
2
|
+
import { AnchorsType } from './schemas/anchors';
|
|
3
|
+
import { MintNavigation } from './types/navigation';
|
|
4
|
+
export declare function validateAnchorsWarnings(anchors: AnchorsType | undefined, navigation: MintNavigation | undefined): MintValidationResults;
|