@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
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const integrationsSchema: 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
|
+
frontchat: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
snippetId: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
snippetId: string;
|
|
28
|
+
}, {
|
|
29
|
+
snippetId: string;
|
|
30
|
+
}>>;
|
|
31
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
measurementId: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
measurementId: string;
|
|
35
|
+
}, {
|
|
36
|
+
measurementId: string;
|
|
37
|
+
}>>;
|
|
38
|
+
gtm: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
tagId: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
tagId: string;
|
|
42
|
+
}, {
|
|
43
|
+
tagId: string;
|
|
44
|
+
}>>;
|
|
45
|
+
heap: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
appId: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
appId: string;
|
|
49
|
+
}, {
|
|
50
|
+
appId: string;
|
|
51
|
+
}>>;
|
|
52
|
+
hotjar: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
hjid: z.ZodString;
|
|
54
|
+
hjsv: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
hjid: string;
|
|
57
|
+
hjsv: string;
|
|
58
|
+
}, {
|
|
59
|
+
hjid: string;
|
|
60
|
+
hjsv: string;
|
|
61
|
+
}>>;
|
|
62
|
+
intercom: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
appId: z.ZodString;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
appId: string;
|
|
66
|
+
}, {
|
|
67
|
+
appId: string;
|
|
68
|
+
}>>;
|
|
69
|
+
koala: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
publicApiKey: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
publicApiKey: string;
|
|
73
|
+
}, {
|
|
74
|
+
publicApiKey: string;
|
|
75
|
+
}>>;
|
|
76
|
+
logrocket: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
appId: z.ZodString;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
appId: string;
|
|
80
|
+
}, {
|
|
81
|
+
appId: string;
|
|
82
|
+
}>>;
|
|
83
|
+
mixpanel: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
projectToken: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
projectToken: string;
|
|
87
|
+
}, {
|
|
88
|
+
projectToken: string;
|
|
89
|
+
}>>;
|
|
90
|
+
osano: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
scriptSource: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
scriptSource: string;
|
|
94
|
+
}, {
|
|
95
|
+
scriptSource: string;
|
|
96
|
+
}>>;
|
|
97
|
+
pirsch: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
id: string;
|
|
101
|
+
}, {
|
|
102
|
+
id: string;
|
|
103
|
+
}>>;
|
|
104
|
+
posthog: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
apiKey: z.ZodString;
|
|
106
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
apiKey: string;
|
|
109
|
+
apiHost?: string | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
apiKey: string;
|
|
112
|
+
apiHost?: string | undefined;
|
|
113
|
+
}>>;
|
|
114
|
+
plausible: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
domain: z.ZodEffects<z.ZodString, string, string>;
|
|
116
|
+
server: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
domain: string;
|
|
119
|
+
server?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
domain: string;
|
|
122
|
+
server?: string | undefined;
|
|
123
|
+
}>>;
|
|
124
|
+
segment: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
key: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
key: string;
|
|
128
|
+
}, {
|
|
129
|
+
key: string;
|
|
130
|
+
}>>;
|
|
131
|
+
}, "strict", z.ZodTypeAny, {
|
|
132
|
+
amplitude?: {
|
|
133
|
+
apiKey: string;
|
|
134
|
+
} | undefined;
|
|
135
|
+
clearbit?: {
|
|
136
|
+
publicApiKey: string;
|
|
137
|
+
} | undefined;
|
|
138
|
+
fathom?: {
|
|
139
|
+
siteId: string;
|
|
140
|
+
} | undefined;
|
|
141
|
+
frontchat?: {
|
|
142
|
+
snippetId: string;
|
|
143
|
+
} | undefined;
|
|
144
|
+
ga4?: {
|
|
145
|
+
measurementId: string;
|
|
146
|
+
} | undefined;
|
|
147
|
+
gtm?: {
|
|
148
|
+
tagId: string;
|
|
149
|
+
} | undefined;
|
|
150
|
+
heap?: {
|
|
151
|
+
appId: string;
|
|
152
|
+
} | undefined;
|
|
153
|
+
hotjar?: {
|
|
154
|
+
hjid: string;
|
|
155
|
+
hjsv: string;
|
|
156
|
+
} | undefined;
|
|
157
|
+
intercom?: {
|
|
158
|
+
appId: string;
|
|
159
|
+
} | undefined;
|
|
160
|
+
koala?: {
|
|
161
|
+
publicApiKey: string;
|
|
162
|
+
} | undefined;
|
|
163
|
+
logrocket?: {
|
|
164
|
+
appId: string;
|
|
165
|
+
} | undefined;
|
|
166
|
+
mixpanel?: {
|
|
167
|
+
projectToken: string;
|
|
168
|
+
} | undefined;
|
|
169
|
+
osano?: {
|
|
170
|
+
scriptSource: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
pirsch?: {
|
|
173
|
+
id: string;
|
|
174
|
+
} | undefined;
|
|
175
|
+
posthog?: {
|
|
176
|
+
apiKey: string;
|
|
177
|
+
apiHost?: string | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
plausible?: {
|
|
180
|
+
domain: string;
|
|
181
|
+
server?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
segment?: {
|
|
184
|
+
key: string;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
amplitude?: {
|
|
188
|
+
apiKey: string;
|
|
189
|
+
} | undefined;
|
|
190
|
+
clearbit?: {
|
|
191
|
+
publicApiKey: string;
|
|
192
|
+
} | undefined;
|
|
193
|
+
fathom?: {
|
|
194
|
+
siteId: string;
|
|
195
|
+
} | undefined;
|
|
196
|
+
frontchat?: {
|
|
197
|
+
snippetId: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
ga4?: {
|
|
200
|
+
measurementId: string;
|
|
201
|
+
} | undefined;
|
|
202
|
+
gtm?: {
|
|
203
|
+
tagId: string;
|
|
204
|
+
} | undefined;
|
|
205
|
+
heap?: {
|
|
206
|
+
appId: string;
|
|
207
|
+
} | undefined;
|
|
208
|
+
hotjar?: {
|
|
209
|
+
hjid: string;
|
|
210
|
+
hjsv: string;
|
|
211
|
+
} | undefined;
|
|
212
|
+
intercom?: {
|
|
213
|
+
appId: string;
|
|
214
|
+
} | undefined;
|
|
215
|
+
koala?: {
|
|
216
|
+
publicApiKey: string;
|
|
217
|
+
} | undefined;
|
|
218
|
+
logrocket?: {
|
|
219
|
+
appId: string;
|
|
220
|
+
} | undefined;
|
|
221
|
+
mixpanel?: {
|
|
222
|
+
projectToken: string;
|
|
223
|
+
} | undefined;
|
|
224
|
+
osano?: {
|
|
225
|
+
scriptSource: string;
|
|
226
|
+
} | undefined;
|
|
227
|
+
pirsch?: {
|
|
228
|
+
id: string;
|
|
229
|
+
} | undefined;
|
|
230
|
+
posthog?: {
|
|
231
|
+
apiKey: string;
|
|
232
|
+
apiHost?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
plausible?: {
|
|
235
|
+
domain: string;
|
|
236
|
+
server?: string | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
segment?: {
|
|
239
|
+
key: string;
|
|
240
|
+
} | undefined;
|
|
241
|
+
}>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const amplitudeConfigSchema = z.object({
|
|
3
|
+
apiKey: z.string(),
|
|
4
|
+
});
|
|
5
|
+
const clearbitConfigSchema = z.object({
|
|
6
|
+
publicApiKey: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const fathomConfigSchema = z.object({
|
|
9
|
+
siteId: z.string(),
|
|
10
|
+
});
|
|
11
|
+
const googleAnalyticsConfigSchema = z.object({
|
|
12
|
+
measurementId: z.string().startsWith('G', 'Must start with G'),
|
|
13
|
+
});
|
|
14
|
+
const googleTagManagerConfigSchema = z.object({
|
|
15
|
+
tagId: z.string().startsWith('G', 'Must start with G'),
|
|
16
|
+
});
|
|
17
|
+
const hotjarConfigSchema = z.object({
|
|
18
|
+
hjid: z.string(),
|
|
19
|
+
hjsv: z.string(),
|
|
20
|
+
});
|
|
21
|
+
const koalaConfigSchema = z.object({
|
|
22
|
+
publicApiKey: z.string().min(2),
|
|
23
|
+
});
|
|
24
|
+
const logrocketConfigSchema = z.object({
|
|
25
|
+
appId: z.string(),
|
|
26
|
+
});
|
|
27
|
+
const mixpanelConfigSchema = z.object({
|
|
28
|
+
projectToken: z.string(),
|
|
29
|
+
});
|
|
30
|
+
const pirschConfigSchema = z.object({
|
|
31
|
+
id: z.string(),
|
|
32
|
+
});
|
|
33
|
+
const postHogConfigSchema = z.object({
|
|
34
|
+
apiKey: z.string().startsWith('phc_', 'Must start with phc_'),
|
|
35
|
+
apiHost: z.string().url('Must be a valid URL').optional(),
|
|
36
|
+
});
|
|
37
|
+
const plausibleConfigSchema = z.object({
|
|
38
|
+
domain: z
|
|
39
|
+
.string()
|
|
40
|
+
.refine((domain) => !domain.startsWith('https://'), 'Must not start with https://'),
|
|
41
|
+
server: z
|
|
42
|
+
.string()
|
|
43
|
+
.refine((server) => !server.startsWith('https://'), 'Must not start with https://')
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
46
|
+
const heapConfigSchema = z.object({
|
|
47
|
+
appId: z.string(),
|
|
48
|
+
});
|
|
49
|
+
const segmentConfigSchema = z.object({
|
|
50
|
+
key: z.string(),
|
|
51
|
+
});
|
|
52
|
+
const intercomSchema = z.object({
|
|
53
|
+
appId: z.string().min(6, 'Must be a valid Intercom app ID'),
|
|
54
|
+
});
|
|
55
|
+
const frontchatSchema = z.object({
|
|
56
|
+
snippetId: z.string().min(6, 'Must be a valid Front chat snippet id'),
|
|
57
|
+
});
|
|
58
|
+
const osanoSchema = z.object({
|
|
59
|
+
scriptSource: z
|
|
60
|
+
.string()
|
|
61
|
+
.startsWith('https://cmp.osano.com/', 'A valid Osano script source must start with https://cmp.osano.com/')
|
|
62
|
+
.endsWith('/osano.js', 'A valid Osano script source must end with /osano.js'),
|
|
63
|
+
});
|
|
64
|
+
export const integrationsSchema = z
|
|
65
|
+
.object({
|
|
66
|
+
amplitude: amplitudeConfigSchema.optional(),
|
|
67
|
+
clearbit: clearbitConfigSchema.optional(),
|
|
68
|
+
fathom: fathomConfigSchema.optional(),
|
|
69
|
+
frontchat: frontchatSchema.optional(),
|
|
70
|
+
ga4: googleAnalyticsConfigSchema.optional(),
|
|
71
|
+
gtm: googleTagManagerConfigSchema.optional(),
|
|
72
|
+
heap: heapConfigSchema.optional(),
|
|
73
|
+
hotjar: hotjarConfigSchema.optional(),
|
|
74
|
+
intercom: intercomSchema.optional(),
|
|
75
|
+
koala: koalaConfigSchema.optional(),
|
|
76
|
+
logrocket: logrocketConfigSchema.optional(),
|
|
77
|
+
mixpanel: mixpanelConfigSchema.optional(),
|
|
78
|
+
osano: osanoSchema.optional(),
|
|
79
|
+
pirsch: pirschConfigSchema.optional(),
|
|
80
|
+
posthog: postHogConfigSchema.optional(),
|
|
81
|
+
plausible: plausibleConfigSchema.optional(),
|
|
82
|
+
segment: segmentConfigSchema.optional(),
|
|
83
|
+
})
|
|
84
|
+
.strict()
|
|
85
|
+
.describe('Configurations for official integrations');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const legacySchema: z.ZodObject<{
|
|
3
|
+
baseurl: z.ZodString;
|
|
4
|
+
auth: z.ZodEnum<["basic", "bearer", "cobo", "key"]>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
auth: "key" | "bearer" | "basic" | "cobo";
|
|
7
|
+
baseurl: string;
|
|
8
|
+
}, {
|
|
9
|
+
auth: "key" | "bearer" | "basic" | "cobo";
|
|
10
|
+
baseurl: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const legacySchema = z
|
|
3
|
+
.object({
|
|
4
|
+
baseurl: z.string().describe('The base URL for legacy API calls'),
|
|
5
|
+
auth: z
|
|
6
|
+
.enum(['basic', 'bearer', 'cobo', 'key'])
|
|
7
|
+
.describe('The authentication type for legacy API calls'),
|
|
8
|
+
})
|
|
9
|
+
.describe('Legacy API configuration');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const logoSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3
|
+
light: z.ZodString;
|
|
4
|
+
dark: z.ZodString;
|
|
5
|
+
href: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
light: string;
|
|
8
|
+
dark: string;
|
|
9
|
+
href?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
light: string;
|
|
12
|
+
dark: string;
|
|
13
|
+
href?: string | undefined;
|
|
14
|
+
}>]>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { hrefSchema } from './reusable/href.js';
|
|
3
|
+
export const logoSchema = z
|
|
4
|
+
.union([
|
|
5
|
+
z
|
|
6
|
+
.string()
|
|
7
|
+
.min(3, 'Must be a path to your logo file including the file extension')
|
|
8
|
+
.describe('The logo (for both light and dark mode)'),
|
|
9
|
+
z.object({
|
|
10
|
+
light: z
|
|
11
|
+
.string()
|
|
12
|
+
.describe('Path pointing to the light logo file to use in dark mode, including the file extension. Example: `/logo.png`'),
|
|
13
|
+
dark: z
|
|
14
|
+
.string()
|
|
15
|
+
.describe('Path pointing to the dark logo file to use in light mode, including the file extension. Example: `/logo-dark.png`'),
|
|
16
|
+
href: hrefSchema
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('The URL to redirect to when clicking the logo. If not provided, the logo will link to the homepage. Example: `https://example.com`'),
|
|
19
|
+
}),
|
|
20
|
+
])
|
|
21
|
+
.describe('The logo configuration. Can be a single image path for both light and dark mode, or separate paths for each mode with an optional click target URL');
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { colorSchema } from '../reusable/color.js';
|
|
3
|
+
import { hiddenSchema } from '../reusable/hidden.js';
|
|
4
|
+
import { hrefSchema } from '../reusable/href.js';
|
|
5
|
+
import { iconSchema } from '../reusable/icon.js';
|
|
6
|
+
import { openApiSchema } from '../reusable/openapi.js';
|
|
7
|
+
import { dropdownsSchema } from './dropdown.js';
|
|
8
|
+
import { groupsSchema } from './groups.js';
|
|
9
|
+
import { languagesSchema } from './languages.js';
|
|
10
|
+
import { pagesSchema } from './pages.js';
|
|
11
|
+
import { tabsSchema } from './tabs.js';
|
|
12
|
+
import { versionsSchema } from './version.js';
|
|
13
|
+
const anchorSchema = z
|
|
14
|
+
.object({
|
|
15
|
+
anchor: z.string().nonempty().describe('The name of the anchor'),
|
|
16
|
+
icon: iconSchema.optional(),
|
|
17
|
+
color: colorSchema.optional(),
|
|
18
|
+
hidden: hiddenSchema.optional(),
|
|
19
|
+
})
|
|
20
|
+
.and(z.union([
|
|
21
|
+
z.object({ href: hrefSchema }),
|
|
22
|
+
z.object({ openapi: openApiSchema }),
|
|
23
|
+
z.object({ languages: languagesSchema }),
|
|
24
|
+
z.object({ versions: versionsSchema }),
|
|
25
|
+
z.object({ dropdowns: dropdownsSchema }),
|
|
26
|
+
z.object({ tabs: tabsSchema }),
|
|
27
|
+
z.object({ groups: groupsSchema }),
|
|
28
|
+
z.object({ pages: pagesSchema }),
|
|
29
|
+
]));
|
|
30
|
+
export const anchorsSchema = z.array(anchorSchema).describe('Organizing by anchors');
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { hiddenSchema } from '../reusable/hidden.js';
|
|
3
|
+
import { hrefSchema } from '../reusable/href.js';
|
|
4
|
+
import { iconSchema } from '../reusable/icon.js';
|
|
5
|
+
import { openApiSchema } from '../reusable/openapi.js';
|
|
6
|
+
import { anchorsSchema } from './anchors.js';
|
|
7
|
+
import { groupsSchema } from './groups.js';
|
|
8
|
+
import { languagesSchema } from './languages.js';
|
|
9
|
+
import { pagesSchema } from './pages.js';
|
|
10
|
+
import { tabsSchema } from './tabs.js';
|
|
11
|
+
import { versionsSchema } from './version.js';
|
|
12
|
+
const dropdownSchema = z
|
|
13
|
+
.object({
|
|
14
|
+
dropdown: z.string().nonempty().describe('The name of the dropdown'),
|
|
15
|
+
icon: iconSchema.optional(),
|
|
16
|
+
hidden: hiddenSchema.optional(),
|
|
17
|
+
})
|
|
18
|
+
.and(z.union([
|
|
19
|
+
z.object({ href: hrefSchema }),
|
|
20
|
+
z.object({ openapi: openApiSchema }),
|
|
21
|
+
z.object({ languages: languagesSchema }),
|
|
22
|
+
z.object({ versions: versionsSchema }),
|
|
23
|
+
z.object({ tabs: tabsSchema }),
|
|
24
|
+
z.object({ anchors: anchorsSchema }),
|
|
25
|
+
z.object({ groups: groupsSchema }),
|
|
26
|
+
z.object({ pages: pagesSchema }),
|
|
27
|
+
]));
|
|
28
|
+
export const dropdownsSchema = z.array(dropdownSchema).describe('Organizing by dropdowns');
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const groupSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
|
+
group: z.ZodString;
|
|
4
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
5
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
6
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
13
|
+
}>]>>;
|
|
14
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
group: string;
|
|
18
|
+
icon?: string | {
|
|
19
|
+
name: string;
|
|
20
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
21
|
+
} | undefined;
|
|
22
|
+
hidden?: boolean | undefined;
|
|
23
|
+
root?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
group: string;
|
|
26
|
+
icon?: string | {
|
|
27
|
+
name: string;
|
|
28
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
29
|
+
} | undefined;
|
|
30
|
+
hidden?: boolean | undefined;
|
|
31
|
+
root?: string | undefined;
|
|
32
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
33
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
36
|
+
}, {
|
|
37
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
pages: import("./pages.js").Page[];
|
|
42
|
+
}, {
|
|
43
|
+
pages: import("./pages.js").Page[];
|
|
44
|
+
}>]>>;
|
|
45
|
+
export declare const groupsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
46
|
+
group: z.ZodString;
|
|
47
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
48
|
+
style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
|
|
49
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
name: string;
|
|
52
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
53
|
+
}, {
|
|
54
|
+
name: string;
|
|
55
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
56
|
+
}>]>>;
|
|
57
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
group: string;
|
|
61
|
+
icon?: string | {
|
|
62
|
+
name: string;
|
|
63
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
64
|
+
} | undefined;
|
|
65
|
+
hidden?: boolean | undefined;
|
|
66
|
+
root?: string | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
group: string;
|
|
69
|
+
icon?: string | {
|
|
70
|
+
name: string;
|
|
71
|
+
style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
|
|
72
|
+
} | undefined;
|
|
73
|
+
hidden?: boolean | undefined;
|
|
74
|
+
root?: string | undefined;
|
|
75
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
76
|
+
openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
79
|
+
}, {
|
|
80
|
+
openapi: (string | string[]) & (string | string[] | undefined);
|
|
81
|
+
}>, z.ZodObject<{
|
|
82
|
+
pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
pages: import("./pages.js").Page[];
|
|
85
|
+
}, {
|
|
86
|
+
pages: import("./pages.js").Page[];
|
|
87
|
+
}>]>>, "many">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { hiddenSchema } from '../reusable/hidden.js';
|
|
3
|
+
import { iconSchema } from '../reusable/icon.js';
|
|
4
|
+
import { openApiSchema } from '../reusable/openapi.js';
|
|
5
|
+
import { pageSchema } from '../reusable/page.js';
|
|
6
|
+
import { pagesSchema } from './pages.js';
|
|
7
|
+
export const groupSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
group: z.string().nonempty().describe('The name of the group'),
|
|
10
|
+
icon: iconSchema.optional(),
|
|
11
|
+
hidden: hiddenSchema.optional(),
|
|
12
|
+
root: pageSchema.optional(),
|
|
13
|
+
})
|
|
14
|
+
.and(z.union([z.object({ openapi: openApiSchema }), z.object({ pages: pagesSchema })]))
|
|
15
|
+
.describe('Organizing by groups');
|
|
16
|
+
export const groupsSchema = z.array(groupSchema);
|