@mintlify/validation 0.1.254 → 0.1.255

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.
Files changed (33) hide show
  1. package/dist/mint-config/schemas/v2/index.d.ts +3922 -7432
  2. package/dist/mint-config/schemas/v2/properties/index.d.ts +1 -0
  3. package/dist/mint-config/schemas/v2/properties/index.js +1 -0
  4. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +12 -455
  5. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +28 -11
  6. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +56 -0
  7. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js +5 -0
  8. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +13 -330
  9. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +28 -11
  10. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +22 -646
  11. package/dist/mint-config/schemas/v2/properties/navigation/groups.js +15 -13
  12. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +258 -1495
  13. package/dist/mint-config/schemas/v2/properties/navigation/index.js +23 -13
  14. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +11 -202
  15. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +33 -11
  16. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +2 -3
  17. package/dist/mint-config/schemas/v2/properties/navigation/pages.js +2 -2
  18. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +11 -328
  19. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +28 -11
  20. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +12 -203
  21. package/dist/mint-config/schemas/v2/properties/navigation/version.js +28 -11
  22. package/dist/mint-config/schemas/v2/themes/linden.d.ts +253 -955
  23. package/dist/mint-config/schemas/v2/themes/maple.d.ts +253 -955
  24. package/dist/mint-config/schemas/v2/themes/mint.d.ts +253 -955
  25. package/dist/mint-config/schemas/v2/themes/palm.d.ts +253 -955
  26. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +143 -737
  27. package/dist/mint-config/schemas/v2/themes/willow.d.ts +253 -955
  28. package/dist/mint-config/upgrades/updateNavigationToDocsConfig.js +14 -8
  29. package/dist/mint-config/validateConfig.d.ts +420 -960
  30. package/dist/tsconfig.build.tsbuildinfo +1 -1
  31. package/package.json +2 -2
  32. package/dist/mint-config/schemas/v2/properties/navigation/divisionSchemas.d.ts +0 -7
  33. package/dist/mint-config/schemas/v2/properties/navigation/divisionSchemas.js +0 -26
@@ -1,72 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const nonRecursiveTabSchema: z.ZodIntersection<z.ZodObject<{
3
- tab: z.ZodString;
4
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
5
- style: z.ZodOptional<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" | undefined;
10
- }, {
11
- name: string;
12
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
13
- }>]>>;
14
- hidden: z.ZodOptional<z.ZodBoolean>;
15
- }, "strip", z.ZodTypeAny, {
16
- tab: string;
17
- icon?: string | {
18
- name: string;
19
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
20
- } | undefined;
21
- hidden?: boolean | undefined;
22
- }, {
23
- tab: string;
24
- icon?: string | {
25
- name: string;
26
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
27
- } | undefined;
28
- hidden?: boolean | undefined;
29
- }>, z.ZodObject<{
30
- href: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- href: string;
33
- }, {
34
- href: string;
35
- }>>;
36
- export declare const tabSchema: z.ZodIntersection<z.ZodObject<{
37
- tab: z.ZodString;
38
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
39
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
40
- name: z.ZodEffects<z.ZodString, string, string>;
41
- }, "strip", z.ZodTypeAny, {
42
- name: string;
43
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
44
- }, {
45
- name: string;
46
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
47
- }>]>>;
48
- hidden: z.ZodOptional<z.ZodBoolean>;
49
- }, "strip", z.ZodTypeAny, {
50
- tab: string;
51
- icon?: string | {
52
- name: string;
53
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
54
- } | undefined;
55
- hidden?: boolean | undefined;
56
- }, {
57
- tab: string;
58
- icon?: string | {
59
- name: string;
60
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
61
- } | undefined;
62
- hidden?: boolean | undefined;
63
- }>, z.ZodUnion<[z.ZodObject<{
64
- href: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- href: string;
67
- }, {
68
- href: string;
69
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2
+ import { TabNavigation } from './divisionNav.js';
3
+ declare const baseTabSchema: z.ZodObject<{
70
4
  tab: z.ZodString;
71
5
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
72
6
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -93,68 +27,11 @@ export declare const tabSchema: z.ZodIntersection<z.ZodObject<{
93
27
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
94
28
  } | undefined;
95
29
  hidden?: boolean | undefined;
96
- }>, z.ZodUnion<[z.ZodObject<{
97
- href: z.ZodString;
98
- }, "strip", z.ZodTypeAny, {
99
- href: string;
100
- }, {
101
- href: string;
102
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
103
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
104
- source: z.ZodEffects<z.ZodString, string, string>;
105
- directory: z.ZodOptional<z.ZodString>;
106
- }, "strict", z.ZodTypeAny, {
107
- source: string;
108
- directory?: string | undefined;
109
- }, {
110
- source: string;
111
- directory?: string | undefined;
112
- }>]>>;
113
- }, "strip", z.ZodTypeAny, {
114
- openapi?: string | string[] | {
115
- source: string;
116
- directory?: string | undefined;
117
- } | undefined;
118
- }, {
119
- openapi?: string | string[] | {
120
- source: string;
121
- directory?: string | undefined;
122
- } | undefined;
123
- }>>;
124
- export declare const decoratedTabSchema: z.ZodIntersection<z.ZodObject<{
125
- tab: z.ZodString;
126
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
127
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
128
- name: z.ZodEffects<z.ZodString, string, string>;
129
- }, "strip", z.ZodTypeAny, {
130
- name: string;
131
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
132
- }, {
133
- name: string;
134
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
135
- }>]>>;
136
- hidden: z.ZodOptional<z.ZodBoolean>;
137
- }, "strip", z.ZodTypeAny, {
138
- tab: string;
139
- icon?: string | {
140
- name: string;
141
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
142
- } | undefined;
143
- hidden?: boolean | undefined;
144
- }, {
145
- tab: string;
146
- icon?: string | {
147
- name: string;
148
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
149
- } | undefined;
150
- hidden?: boolean | undefined;
151
- }>, z.ZodUnion<[z.ZodObject<{
152
- href: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- href: string;
155
- }, {
156
- href: string;
157
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
30
+ }>;
31
+ export type BaseTabSchema = z.infer<typeof baseTabSchema>;
32
+ export declare const tabSchema: z.ZodType<TabNavigation<'default'>>;
33
+ export declare const decoratedTabSchema: z.ZodType<TabNavigation<'decorated'>>;
34
+ export declare const nonRecursiveTabSchema: z.ZodIntersection<z.ZodObject<{
158
35
  tab: z.ZodString;
159
36
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
160
37
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -181,211 +58,17 @@ export declare const decoratedTabSchema: z.ZodIntersection<z.ZodObject<{
181
58
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
182
59
  } | undefined;
183
60
  hidden?: boolean | undefined;
184
- }>, z.ZodUnion<[z.ZodObject<{
61
+ }>, z.ZodObject<{
185
62
  href: z.ZodString;
186
63
  }, "strip", z.ZodTypeAny, {
187
64
  href: string;
188
65
  }, {
189
66
  href: string;
190
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
191
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
192
- source: z.ZodEffects<z.ZodString, string, string>;
193
- directory: z.ZodOptional<z.ZodString>;
194
- }, "strict", z.ZodTypeAny, {
195
- source: string;
196
- directory?: string | undefined;
197
- }, {
198
- source: string;
199
- directory?: string | undefined;
200
- }>]>>;
201
- }, "strip", z.ZodTypeAny, {
202
- openapi?: string | string[] | {
203
- source: string;
204
- directory?: string | undefined;
205
- } | undefined;
206
- }, {
207
- openapi?: string | string[] | {
208
- source: string;
209
- directory?: string | undefined;
210
- } | undefined;
211
67
  }>>;
212
- export declare const tabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
213
- tab: z.ZodString;
214
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
215
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
216
- name: z.ZodEffects<z.ZodString, string, string>;
217
- }, "strip", z.ZodTypeAny, {
218
- name: string;
219
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
220
- }, {
221
- name: string;
222
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
223
- }>]>>;
224
- hidden: z.ZodOptional<z.ZodBoolean>;
225
- }, "strip", z.ZodTypeAny, {
226
- tab: string;
227
- icon?: string | {
228
- name: string;
229
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
230
- } | undefined;
231
- hidden?: boolean | undefined;
232
- }, {
233
- tab: string;
234
- icon?: string | {
235
- name: string;
236
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
237
- } | undefined;
238
- hidden?: boolean | undefined;
239
- }>, z.ZodUnion<[z.ZodObject<{
240
- href: z.ZodString;
241
- }, "strip", z.ZodTypeAny, {
242
- href: string;
243
- }, {
244
- href: string;
245
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
246
- tab: z.ZodString;
247
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
248
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
249
- name: z.ZodEffects<z.ZodString, string, string>;
250
- }, "strip", z.ZodTypeAny, {
251
- name: string;
252
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
253
- }, {
254
- name: string;
255
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
256
- }>]>>;
257
- hidden: z.ZodOptional<z.ZodBoolean>;
258
- }, "strip", z.ZodTypeAny, {
259
- tab: string;
260
- icon?: string | {
261
- name: string;
262
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
263
- } | undefined;
264
- hidden?: boolean | undefined;
265
- }, {
266
- tab: string;
267
- icon?: string | {
268
- name: string;
269
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
270
- } | undefined;
271
- hidden?: boolean | undefined;
272
- }>, z.ZodUnion<[z.ZodObject<{
273
- href: z.ZodString;
274
- }, "strip", z.ZodTypeAny, {
275
- href: string;
276
- }, {
277
- href: string;
278
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
279
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
280
- source: z.ZodEffects<z.ZodString, string, string>;
281
- directory: z.ZodOptional<z.ZodString>;
282
- }, "strict", z.ZodTypeAny, {
283
- source: string;
284
- directory?: string | undefined;
285
- }, {
286
- source: string;
287
- directory?: string | undefined;
288
- }>]>>;
289
- }, "strip", z.ZodTypeAny, {
290
- openapi?: string | string[] | {
291
- source: string;
292
- directory?: string | undefined;
293
- } | undefined;
294
- }, {
295
- openapi?: string | string[] | {
296
- source: string;
297
- directory?: string | undefined;
298
- } | undefined;
299
- }>>, "many">;
300
- export declare const decoratedTabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
301
- tab: z.ZodString;
302
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
303
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
304
- name: z.ZodEffects<z.ZodString, string, string>;
305
- }, "strip", z.ZodTypeAny, {
306
- name: string;
307
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
308
- }, {
309
- name: string;
310
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
311
- }>]>>;
312
- hidden: z.ZodOptional<z.ZodBoolean>;
313
- }, "strip", z.ZodTypeAny, {
314
- tab: string;
315
- icon?: string | {
316
- name: string;
317
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
318
- } | undefined;
319
- hidden?: boolean | undefined;
320
- }, {
321
- tab: string;
322
- icon?: string | {
323
- name: string;
324
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
325
- } | undefined;
326
- hidden?: boolean | undefined;
327
- }>, z.ZodUnion<[z.ZodObject<{
328
- href: z.ZodString;
329
- }, "strip", z.ZodTypeAny, {
330
- href: string;
331
- }, {
332
- href: string;
333
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
334
- tab: z.ZodString;
335
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
336
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
337
- name: z.ZodEffects<z.ZodString, string, string>;
338
- }, "strip", z.ZodTypeAny, {
339
- name: string;
340
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
341
- }, {
342
- name: string;
343
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
344
- }>]>>;
345
- hidden: z.ZodOptional<z.ZodBoolean>;
346
- }, "strip", z.ZodTypeAny, {
347
- tab: string;
348
- icon?: string | {
349
- name: string;
350
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
351
- } | undefined;
352
- hidden?: boolean | undefined;
353
- }, {
354
- tab: string;
355
- icon?: string | {
356
- name: string;
357
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
358
- } | undefined;
359
- hidden?: boolean | undefined;
360
- }>, z.ZodUnion<[z.ZodObject<{
361
- href: z.ZodString;
362
- }, "strip", z.ZodTypeAny, {
363
- href: string;
364
- }, {
365
- href: string;
366
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
367
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
368
- source: z.ZodEffects<z.ZodString, string, string>;
369
- directory: z.ZodOptional<z.ZodString>;
370
- }, "strict", z.ZodTypeAny, {
371
- source: string;
372
- directory?: string | undefined;
373
- }, {
374
- source: string;
375
- directory?: string | undefined;
376
- }>]>>;
377
- }, "strip", z.ZodTypeAny, {
378
- openapi?: string | string[] | {
379
- source: string;
380
- directory?: string | undefined;
381
- } | undefined;
382
- }, {
383
- openapi?: string | string[] | {
384
- source: string;
385
- directory?: string | undefined;
386
- } | undefined;
387
- }>>, "many">;
68
+ export declare const tabsSchema: z.ZodArray<z.ZodType<TabNavigation<"default">, z.ZodTypeDef, TabNavigation<"default">>, "many">;
69
+ export declare const decoratedTabsSchema: z.ZodArray<z.ZodType<TabNavigation<"decorated">, z.ZodTypeDef, TabNavigation<"decorated">>, "many">;
388
70
  export type TabsConfig = z.infer<typeof tabsSchema>;
389
71
  export type TabConfig = z.infer<typeof tabSchema>;
390
72
  export type DecoratedTabsConfig = z.infer<typeof decoratedTabsSchema>;
391
73
  export type DecoratedTabConfig = z.infer<typeof decoratedTabSchema>;
74
+ export {};
@@ -3,22 +3,39 @@ import { hiddenSchema } from '../reusable/hidden.js';
3
3
  import { hrefSchema } from '../reusable/href.js';
4
4
  import { iconSchema } from '../reusable/icon.js';
5
5
  import { openApiSchema } from '../reusable/openapi.js';
6
- import { getDivisionSchemasExcluding, registerDivisionSchema } from './divisionSchemas.js';
6
+ import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
7
+ import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
8
+ import { decoratedGroupsSchema, groupsSchema } from './groups.js';
9
+ import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
10
+ import { decoratedPagesSchema, pagesSchema } from './pages.js';
11
+ import { decoratedVersionsSchema, versionsSchema } from './version.js';
7
12
  const baseTabSchema = z.object({
8
13
  tab: z.string().nonempty().describe('The name of the tab'),
9
14
  icon: iconSchema.optional(),
10
15
  hidden: hiddenSchema.optional(),
11
16
  });
12
- const createTabSchema = (type) => {
13
- const baseSchema = baseTabSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('tabs', type)]));
14
- return type === 'decorated'
15
- ? baseSchema
16
- : baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
17
- };
17
+ export const tabSchema = baseTabSchema.and(z
18
+ .object({ openapi: openApiSchema })
19
+ .or(z
20
+ .union([
21
+ z.object({ href: hrefSchema }),
22
+ z.lazy(() => z.object({ languages: languagesSchema })),
23
+ z.lazy(() => z.object({ versions: versionsSchema })),
24
+ z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
25
+ z.lazy(() => z.object({ anchors: anchorsSchema })),
26
+ z.lazy(() => z.object({ groups: groupsSchema })),
27
+ z.lazy(() => z.object({ pages: pagesSchema })),
28
+ ])
29
+ .and(z.object({ openapi: openApiSchema.optional() }))));
30
+ export const decoratedTabSchema = baseTabSchema.and(z.union([
31
+ z.object({ href: hrefSchema }),
32
+ z.lazy(() => z.object({ languages: decoratedLanguagesSchema })),
33
+ z.lazy(() => z.object({ versions: decoratedVersionsSchema })),
34
+ z.lazy(() => z.object({ dropdowns: decoratedDropdownsSchema })),
35
+ z.lazy(() => z.object({ anchors: decoratedAnchorsSchema })),
36
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
37
+ z.lazy(() => z.object({ pages: decoratedPagesSchema })),
38
+ ]));
18
39
  export const nonRecursiveTabSchema = baseTabSchema.and(z.object({ href: hrefSchema }));
19
- export const tabSchema = createTabSchema('default');
20
- export const decoratedTabSchema = createTabSchema('decorated');
21
40
  export const tabsSchema = z.array(tabSchema).describe('Organizing by tabs');
22
41
  export const decoratedTabsSchema = z.array(decoratedTabSchema).describe('Organizing by tabs');
23
- registerDivisionSchema('tabs', tabsSchema, 'default');
24
- registerDivisionSchema('tabs', decoratedTabsSchema, 'decorated');
@@ -1,73 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
3
- version: z.ZodString;
4
- hidden: z.ZodOptional<z.ZodBoolean>;
5
- }, "strip", z.ZodTypeAny, {
6
- version: string;
7
- hidden?: boolean | undefined;
8
- }, {
9
- version: string;
10
- hidden?: boolean | undefined;
11
- }>, z.ZodObject<{
12
- href: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- href: string;
15
- }, {
16
- href: string;
17
- }>>;
18
- export declare const versionSchema: z.ZodIntersection<z.ZodObject<{
19
- version: z.ZodString;
20
- hidden: z.ZodOptional<z.ZodBoolean>;
21
- }, "strip", z.ZodTypeAny, {
22
- version: string;
23
- hidden?: boolean | undefined;
24
- }, {
25
- version: string;
26
- hidden?: boolean | undefined;
27
- }>, z.ZodUnion<[z.ZodObject<{
28
- href: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- href: string;
31
- }, {
32
- href: string;
33
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
34
- version: z.ZodString;
35
- hidden: z.ZodOptional<z.ZodBoolean>;
36
- }, "strip", z.ZodTypeAny, {
37
- version: string;
38
- hidden?: boolean | undefined;
39
- }, {
40
- version: string;
41
- hidden?: boolean | undefined;
42
- }>, z.ZodUnion<[z.ZodObject<{
43
- href: z.ZodString;
44
- }, "strip", z.ZodTypeAny, {
45
- href: string;
46
- }, {
47
- href: string;
48
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
49
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
50
- source: z.ZodEffects<z.ZodString, string, string>;
51
- directory: z.ZodOptional<z.ZodString>;
52
- }, "strict", z.ZodTypeAny, {
53
- source: string;
54
- directory?: string | undefined;
55
- }, {
56
- source: string;
57
- directory?: string | undefined;
58
- }>]>>;
59
- }, "strip", z.ZodTypeAny, {
60
- openapi?: string | string[] | {
61
- source: string;
62
- directory?: string | undefined;
63
- } | undefined;
64
- }, {
65
- openapi?: string | string[] | {
66
- source: string;
67
- directory?: string | undefined;
68
- } | undefined;
69
- }>>;
70
- export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{
2
+ import { VersionNavigation } from './divisionNav.js';
3
+ declare const baseVersionSchema: z.ZodObject<{
71
4
  version: z.ZodString;
72
5
  hidden: z.ZodOptional<z.ZodBoolean>;
73
6
  }, "strip", z.ZodTypeAny, {
@@ -76,13 +9,11 @@ export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{
76
9
  }, {
77
10
  version: string;
78
11
  hidden?: boolean | undefined;
79
- }>, z.ZodUnion<[z.ZodObject<{
80
- href: z.ZodString;
81
- }, "strip", z.ZodTypeAny, {
82
- href: string;
83
- }, {
84
- href: string;
85
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
12
+ }>;
13
+ export type BaseVersionSchema = z.infer<typeof baseVersionSchema>;
14
+ export declare const versionSchema: z.ZodType<VersionNavigation<'default'>>;
15
+ export declare const decoratedVersionSchema: z.ZodType<VersionNavigation<'decorated'>>;
16
+ export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
86
17
  version: z.ZodString;
87
18
  hidden: z.ZodOptional<z.ZodBoolean>;
88
19
  }, "strip", z.ZodTypeAny, {
@@ -91,139 +22,17 @@ export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{
91
22
  }, {
92
23
  version: string;
93
24
  hidden?: boolean | undefined;
94
- }>, z.ZodUnion<[z.ZodObject<{
25
+ }>, z.ZodObject<{
95
26
  href: z.ZodString;
96
27
  }, "strip", z.ZodTypeAny, {
97
28
  href: string;
98
29
  }, {
99
30
  href: string;
100
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
101
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
102
- source: z.ZodEffects<z.ZodString, string, string>;
103
- directory: z.ZodOptional<z.ZodString>;
104
- }, "strict", z.ZodTypeAny, {
105
- source: string;
106
- directory?: string | undefined;
107
- }, {
108
- source: string;
109
- directory?: string | undefined;
110
- }>]>>;
111
- }, "strip", z.ZodTypeAny, {
112
- openapi?: string | string[] | {
113
- source: string;
114
- directory?: string | undefined;
115
- } | undefined;
116
- }, {
117
- openapi?: string | string[] | {
118
- source: string;
119
- directory?: string | undefined;
120
- } | undefined;
121
31
  }>>;
122
- export declare const versionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
123
- version: z.ZodString;
124
- hidden: z.ZodOptional<z.ZodBoolean>;
125
- }, "strip", z.ZodTypeAny, {
126
- version: string;
127
- hidden?: boolean | undefined;
128
- }, {
129
- version: string;
130
- hidden?: boolean | undefined;
131
- }>, z.ZodUnion<[z.ZodObject<{
132
- href: z.ZodString;
133
- }, "strip", z.ZodTypeAny, {
134
- href: string;
135
- }, {
136
- href: string;
137
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
138
- version: z.ZodString;
139
- hidden: z.ZodOptional<z.ZodBoolean>;
140
- }, "strip", z.ZodTypeAny, {
141
- version: string;
142
- hidden?: boolean | undefined;
143
- }, {
144
- version: string;
145
- hidden?: boolean | undefined;
146
- }>, z.ZodUnion<[z.ZodObject<{
147
- href: z.ZodString;
148
- }, "strip", z.ZodTypeAny, {
149
- href: string;
150
- }, {
151
- href: string;
152
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
153
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
154
- source: z.ZodEffects<z.ZodString, string, string>;
155
- directory: z.ZodOptional<z.ZodString>;
156
- }, "strict", z.ZodTypeAny, {
157
- source: string;
158
- directory?: string | undefined;
159
- }, {
160
- source: string;
161
- directory?: string | undefined;
162
- }>]>>;
163
- }, "strip", z.ZodTypeAny, {
164
- openapi?: string | string[] | {
165
- source: string;
166
- directory?: string | undefined;
167
- } | undefined;
168
- }, {
169
- openapi?: string | string[] | {
170
- source: string;
171
- directory?: string | undefined;
172
- } | undefined;
173
- }>>, "many">;
174
- export declare const decoratedVersionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
175
- version: z.ZodString;
176
- hidden: z.ZodOptional<z.ZodBoolean>;
177
- }, "strip", z.ZodTypeAny, {
178
- version: string;
179
- hidden?: boolean | undefined;
180
- }, {
181
- version: string;
182
- hidden?: boolean | undefined;
183
- }>, z.ZodUnion<[z.ZodObject<{
184
- href: z.ZodString;
185
- }, "strip", z.ZodTypeAny, {
186
- href: string;
187
- }, {
188
- href: string;
189
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
190
- version: z.ZodString;
191
- hidden: z.ZodOptional<z.ZodBoolean>;
192
- }, "strip", z.ZodTypeAny, {
193
- version: string;
194
- hidden?: boolean | undefined;
195
- }, {
196
- version: string;
197
- hidden?: boolean | undefined;
198
- }>, z.ZodUnion<[z.ZodObject<{
199
- href: z.ZodString;
200
- }, "strip", z.ZodTypeAny, {
201
- href: string;
202
- }, {
203
- href: string;
204
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
205
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
206
- source: z.ZodEffects<z.ZodString, string, string>;
207
- directory: z.ZodOptional<z.ZodString>;
208
- }, "strict", z.ZodTypeAny, {
209
- source: string;
210
- directory?: string | undefined;
211
- }, {
212
- source: string;
213
- directory?: string | undefined;
214
- }>]>>;
215
- }, "strip", z.ZodTypeAny, {
216
- openapi?: string | string[] | {
217
- source: string;
218
- directory?: string | undefined;
219
- } | undefined;
220
- }, {
221
- openapi?: string | string[] | {
222
- source: string;
223
- directory?: string | undefined;
224
- } | undefined;
225
- }>>, "many">;
32
+ export declare const versionsSchema: z.ZodArray<z.ZodType<VersionNavigation<"default">, z.ZodTypeDef, VersionNavigation<"default">>, "many">;
33
+ export declare const decoratedVersionsSchema: z.ZodArray<z.ZodType<VersionNavigation<"decorated">, z.ZodTypeDef, VersionNavigation<"decorated">>, "many">;
226
34
  export type VersionsConfig = z.infer<typeof versionsSchema>;
227
35
  export type VersionConfig = z.infer<typeof versionSchema>;
228
- export type DecoratedVersionsConfig = z.infer<typeof decoratedVersionsSchema>;
229
36
  export type DecoratedVersionConfig = z.infer<typeof decoratedVersionSchema>;
37
+ export type DecoratedVersionsConfig = z.infer<typeof decoratedVersionsSchema>;
38
+ export {};