@mintlify/validation 0.1.38 → 0.1.40
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/LICENSE +21 -21
- package/README.md +55 -55
- package/dist/index.d.ts +11 -6
- package/dist/index.js +1 -1
- package/dist/mint-config/common.d.ts +6 -6
- package/dist/mint-config/flattenUnionErrorMessages.d.ts +7 -7
- package/dist/mint-config/hexadecimalPattern.d.ts +1 -1
- package/dist/mint-config/schemas/analytics.d.ts +171 -171
- package/dist/mint-config/schemas/anchorColors.d.ts +14 -14
- package/dist/mint-config/schemas/anchors.d.ts +46 -46
- package/dist/mint-config/schemas/colors.d.ts +61 -61
- package/dist/mint-config/schemas/config.d.ts +816 -798
- package/dist/mint-config/schemas/favicon.d.ts +2 -2
- package/dist/mint-config/schemas/name.d.ts +2 -2
- package/dist/mint-config/schemas/navigation.d.ts +3 -3
- package/dist/mint-config/schemas/tabs.d.ts +11 -11
- package/dist/mint-config/schemas/versions.d.ts +11 -11
- package/dist/mint-config/types/analytics.d.ts +3 -3
- package/dist/mint-config/types/anchors.d.ts +4 -3
- package/dist/mint-config/types/colors.d.ts +3 -3
- package/dist/mint-config/types/config.d.ts +3 -3
- package/dist/mint-config/types/navigation.d.ts +6 -6
- package/dist/mint-config/types/versions.d.ts +3 -3
- package/dist/mint-config/validateAnchorsWarnings.d.ts +4 -4
- package/dist/mint-config/validateVersionsInNavigation.d.ts +5 -5
- package/dist/openapi/convertOpenApi.d.ts +18 -17
- package/dist/openapi/convertParameters.d.ts +9 -8
- package/dist/openapi/convertSchema.d.ts +11 -11
- package/dist/openapi/convertSecurity.d.ts +14 -13
- package/dist/openapi/convertServers.d.ts +8 -8
- package/dist/openapi/types/endpoint.d.ts +128 -128
- package/dist/schemas/analytics.d.ts +171 -0
- package/dist/schemas/anchorColors.d.ts +14 -0
- package/dist/schemas/anchors.d.ts +46 -0
- package/dist/schemas/colors.d.ts +61 -0
- package/dist/schemas/config.d.ts +798 -0
- package/dist/schemas/favicon.d.ts +2 -0
- package/dist/schemas/name.d.ts +2 -0
- package/dist/schemas/navigation.d.ts +3 -0
- package/dist/schemas/tabs.d.ts +11 -0
- package/dist/schemas/versions.d.ts +11 -0
- package/dist/types/analytics.d.ts +3 -0
- package/dist/types/anchors.d.ts +3 -0
- package/dist/types/colors.d.ts +3 -0
- package/dist/types/config.d.ts +3 -0
- package/dist/types/endpoint.d.ts +125 -0
- package/dist/types/navigation.d.ts +6 -0
- package/dist/types/versions.d.ts +3 -0
- package/dist/utils/common.d.ts +6 -0
- package/dist/utils/convertOpenApi.d.ts +43 -0
- package/dist/utils/flattenUnionErrorMessages.d.ts +7 -0
- package/dist/utils/hexadecimalPattern.d.ts +1 -0
- package/dist/utils/validateAnchorsWarnings.d.ts +4 -0
- package/dist/utils/validateVersionsInNavigation.d.ts +5 -0
- package/package.json +74 -72
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const analyticsSchema: z.ZodObject<{
|
|
3
|
+
amplitude: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
apiKey: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
}, {
|
|
8
|
+
apiKey: string;
|
|
9
|
+
}>>;
|
|
10
|
+
clearbit: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
publicApiKey: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
publicApiKey: string;
|
|
14
|
+
}, {
|
|
15
|
+
publicApiKey: string;
|
|
16
|
+
}>>;
|
|
17
|
+
fathom: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
siteId: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
siteId: string;
|
|
21
|
+
}, {
|
|
22
|
+
siteId: string;
|
|
23
|
+
}>>;
|
|
24
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
measurementId: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
measurementId: string;
|
|
28
|
+
}, {
|
|
29
|
+
measurementId: string;
|
|
30
|
+
}>>;
|
|
31
|
+
gtm: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
tagId: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
tagId: string;
|
|
35
|
+
}, {
|
|
36
|
+
tagId: string;
|
|
37
|
+
}>>;
|
|
38
|
+
hotjar: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
hjid: z.ZodString;
|
|
40
|
+
hjsv: z.ZodString;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
hjid: string;
|
|
43
|
+
hjsv: string;
|
|
44
|
+
}, {
|
|
45
|
+
hjid: string;
|
|
46
|
+
hjsv: string;
|
|
47
|
+
}>>;
|
|
48
|
+
koala: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
publicApiKey: z.ZodEffects<z.ZodString, string, string>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
publicApiKey: string;
|
|
52
|
+
}, {
|
|
53
|
+
publicApiKey: string;
|
|
54
|
+
}>>;
|
|
55
|
+
logrocket: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
appId: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
appId: string;
|
|
59
|
+
}, {
|
|
60
|
+
appId: string;
|
|
61
|
+
}>>;
|
|
62
|
+
mixpanel: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
projectToken: z.ZodString;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
projectToken: string;
|
|
66
|
+
}, {
|
|
67
|
+
projectToken: string;
|
|
68
|
+
}>>;
|
|
69
|
+
pirsch: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
id: string;
|
|
73
|
+
}, {
|
|
74
|
+
id: string;
|
|
75
|
+
}>>;
|
|
76
|
+
posthog: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
apiKey: z.ZodString;
|
|
78
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
apiKey: string;
|
|
81
|
+
apiHost?: string | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
apiKey: string;
|
|
84
|
+
apiHost?: string | undefined;
|
|
85
|
+
}>>;
|
|
86
|
+
plausible: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
domain: z.ZodEffects<z.ZodString, string, string>;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
domain: string;
|
|
90
|
+
}, {
|
|
91
|
+
domain: string;
|
|
92
|
+
}>>;
|
|
93
|
+
}, "strict", z.ZodTypeAny, {
|
|
94
|
+
amplitude?: {
|
|
95
|
+
apiKey: string;
|
|
96
|
+
} | undefined;
|
|
97
|
+
clearbit?: {
|
|
98
|
+
publicApiKey: string;
|
|
99
|
+
} | undefined;
|
|
100
|
+
fathom?: {
|
|
101
|
+
siteId: string;
|
|
102
|
+
} | undefined;
|
|
103
|
+
ga4?: {
|
|
104
|
+
measurementId: string;
|
|
105
|
+
} | undefined;
|
|
106
|
+
gtm?: {
|
|
107
|
+
tagId: string;
|
|
108
|
+
} | undefined;
|
|
109
|
+
hotjar?: {
|
|
110
|
+
hjid: string;
|
|
111
|
+
hjsv: string;
|
|
112
|
+
} | undefined;
|
|
113
|
+
koala?: {
|
|
114
|
+
publicApiKey: string;
|
|
115
|
+
} | undefined;
|
|
116
|
+
logrocket?: {
|
|
117
|
+
appId: string;
|
|
118
|
+
} | undefined;
|
|
119
|
+
mixpanel?: {
|
|
120
|
+
projectToken: string;
|
|
121
|
+
} | undefined;
|
|
122
|
+
pirsch?: {
|
|
123
|
+
id: string;
|
|
124
|
+
} | undefined;
|
|
125
|
+
posthog?: {
|
|
126
|
+
apiKey: string;
|
|
127
|
+
apiHost?: string | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
plausible?: {
|
|
130
|
+
domain: string;
|
|
131
|
+
} | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
amplitude?: {
|
|
134
|
+
apiKey: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
clearbit?: {
|
|
137
|
+
publicApiKey: string;
|
|
138
|
+
} | undefined;
|
|
139
|
+
fathom?: {
|
|
140
|
+
siteId: string;
|
|
141
|
+
} | undefined;
|
|
142
|
+
ga4?: {
|
|
143
|
+
measurementId: string;
|
|
144
|
+
} | undefined;
|
|
145
|
+
gtm?: {
|
|
146
|
+
tagId: string;
|
|
147
|
+
} | undefined;
|
|
148
|
+
hotjar?: {
|
|
149
|
+
hjid: string;
|
|
150
|
+
hjsv: string;
|
|
151
|
+
} | undefined;
|
|
152
|
+
koala?: {
|
|
153
|
+
publicApiKey: string;
|
|
154
|
+
} | undefined;
|
|
155
|
+
logrocket?: {
|
|
156
|
+
appId: string;
|
|
157
|
+
} | undefined;
|
|
158
|
+
mixpanel?: {
|
|
159
|
+
projectToken: string;
|
|
160
|
+
} | undefined;
|
|
161
|
+
pirsch?: {
|
|
162
|
+
id: string;
|
|
163
|
+
} | undefined;
|
|
164
|
+
posthog?: {
|
|
165
|
+
apiKey: string;
|
|
166
|
+
apiHost?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
plausible?: {
|
|
169
|
+
domain: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const anchorColorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3
|
+
from: z.ZodString;
|
|
4
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5
|
+
to: z.ZodString;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
via?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
via?: string | undefined;
|
|
14
|
+
}>]>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const anchorsSchema: z.ZodArray<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
|
+
}>, "many">;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const colorsSchema: z.ZodObject<{
|
|
3
|
+
primary: z.ZodString;
|
|
4
|
+
light: z.ZodOptional<z.ZodString>;
|
|
5
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
6
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
light: z.ZodOptional<z.ZodString>;
|
|
8
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
light?: string | undefined;
|
|
11
|
+
dark?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
light?: string | undefined;
|
|
14
|
+
dark?: string | undefined;
|
|
15
|
+
}>>;
|
|
16
|
+
anchors: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
17
|
+
from: z.ZodString;
|
|
18
|
+
via: z.ZodOptional<z.ZodString>;
|
|
19
|
+
to: z.ZodString;
|
|
20
|
+
}, "strict", z.ZodTypeAny, {
|
|
21
|
+
from: string;
|
|
22
|
+
to: string;
|
|
23
|
+
via?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
from: string;
|
|
26
|
+
to: string;
|
|
27
|
+
via?: string | undefined;
|
|
28
|
+
}>]>>;
|
|
29
|
+
ultraLight: z.ZodOptional<z.ZodAny>;
|
|
30
|
+
ultraDark: z.ZodOptional<z.ZodAny>;
|
|
31
|
+
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
primary: string;
|
|
33
|
+
light?: string | undefined;
|
|
34
|
+
dark?: string | undefined;
|
|
35
|
+
background?: {
|
|
36
|
+
light?: string | undefined;
|
|
37
|
+
dark?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
anchors?: string | {
|
|
40
|
+
from: string;
|
|
41
|
+
to: string;
|
|
42
|
+
via?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
ultraLight?: any;
|
|
45
|
+
ultraDark?: any;
|
|
46
|
+
}, {
|
|
47
|
+
primary: string;
|
|
48
|
+
light?: string | undefined;
|
|
49
|
+
dark?: string | undefined;
|
|
50
|
+
background?: {
|
|
51
|
+
light?: string | undefined;
|
|
52
|
+
dark?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
anchors?: string | {
|
|
55
|
+
from: string;
|
|
56
|
+
to: string;
|
|
57
|
+
via?: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
ultraLight?: any;
|
|
60
|
+
ultraDark?: any;
|
|
61
|
+
}>;
|