@mintlify/validation 0.1.900 → 0.1.901

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 (37) hide show
  1. package/dist/editor-navigation/conversion/common.d.ts +9 -9
  2. package/dist/editor-navigation/conversion/common.js +2 -0
  3. package/dist/editor-navigation/conversion/docsjson-to-tree.js +9 -0
  4. package/dist/mint-config/schemas/v2/index.d.ts +1323 -483
  5. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +144 -0
  6. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +2 -1
  7. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +144 -0
  8. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +2 -1
  9. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +100 -0
  10. package/dist/mint-config/schemas/v2/properties/navigation/groups.js +5 -4
  11. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +112 -0
  12. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +144 -0
  13. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +2 -1
  14. package/dist/mint-config/schemas/v2/properties/navigation/menu.d.ts +144 -0
  15. package/dist/mint-config/schemas/v2/properties/navigation/menu.js +2 -1
  16. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +28 -0
  17. package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +144 -0
  18. package/dist/mint-config/schemas/v2/properties/navigation/products.js +2 -1
  19. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +144 -0
  20. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +2 -1
  21. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +144 -0
  22. package/dist/mint-config/schemas/v2/properties/navigation/version.js +2 -1
  23. package/dist/mint-config/schemas/v2/properties/thumbnails.d.ts +119 -0
  24. package/dist/mint-config/schemas/v2/properties/thumbnails.js +10 -0
  25. package/dist/mint-config/schemas/v2/themes/almond.d.ts +130 -46
  26. package/dist/mint-config/schemas/v2/themes/aspen.d.ts +130 -46
  27. package/dist/mint-config/schemas/v2/themes/linden.d.ts +130 -46
  28. package/dist/mint-config/schemas/v2/themes/luma.d.ts +130 -46
  29. package/dist/mint-config/schemas/v2/themes/maple.d.ts +130 -46
  30. package/dist/mint-config/schemas/v2/themes/mint.d.ts +130 -46
  31. package/dist/mint-config/schemas/v2/themes/palm.d.ts +130 -46
  32. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +56 -0
  33. package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +130 -46
  34. package/dist/mint-config/schemas/v2/themes/willow.d.ts +130 -46
  35. package/dist/mint-config/validateConfig.d.ts +696 -444
  36. package/dist/tsconfig.build.tsbuildinfo +1 -1
  37. package/package.json +2 -2
@@ -144,6 +144,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
144
144
  hidden?: boolean | undefined;
145
145
  sdk?: undefined;
146
146
  root?: string | undefined;
147
+ thumbnail?: {
148
+ background?: string | undefined;
149
+ eyebrow?: string | undefined;
150
+ preset?: "classic" | "headline" | "minimal" | undefined;
151
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
152
+ surface?: "neutral" | "brand" | undefined;
153
+ } | undefined;
147
154
  }, "graphql" | "sdk"> & {
148
155
  openapi?: string | {
149
156
  source: string;
@@ -179,6 +186,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
179
186
  hidden?: boolean | undefined;
180
187
  sdk?: undefined;
181
188
  root?: string | undefined;
189
+ thumbnail?: {
190
+ background?: string | undefined;
191
+ eyebrow?: string | undefined;
192
+ preset?: "classic" | "headline" | "minimal" | undefined;
193
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
194
+ surface?: "neutral" | "brand" | undefined;
195
+ } | undefined;
182
196
  }, "graphql" | "sdk"> & {
183
197
  openapi?: string | {
184
198
  source: string;
@@ -216,6 +230,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
216
230
  hidden?: boolean | undefined;
217
231
  sdk?: undefined;
218
232
  root?: string | undefined;
233
+ thumbnail?: {
234
+ background?: string | undefined;
235
+ eyebrow?: string | undefined;
236
+ preset?: "classic" | "headline" | "minimal" | undefined;
237
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
238
+ surface?: "neutral" | "brand" | undefined;
239
+ } | undefined;
219
240
  }, "graphql" | "sdk"> & {
220
241
  openapi?: string | {
221
242
  source: string;
@@ -257,6 +278,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
257
278
  hidden?: boolean | undefined;
258
279
  sdk?: undefined;
259
280
  root?: string | undefined;
281
+ thumbnail?: {
282
+ background?: string | undefined;
283
+ eyebrow?: string | undefined;
284
+ preset?: "classic" | "headline" | "minimal" | undefined;
285
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
286
+ surface?: "neutral" | "brand" | undefined;
287
+ } | undefined;
260
288
  }, "graphql" | "sdk"> & {
261
289
  openapi?: string | {
262
290
  source: string;
@@ -303,6 +331,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
303
331
  hidden?: boolean | undefined;
304
332
  sdk?: undefined;
305
333
  root?: string | undefined;
334
+ thumbnail?: {
335
+ background?: string | undefined;
336
+ eyebrow?: string | undefined;
337
+ preset?: "classic" | "headline" | "minimal" | undefined;
338
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
339
+ surface?: "neutral" | "brand" | undefined;
340
+ } | undefined;
306
341
  }, "graphql" | "sdk"> & {
307
342
  openapi?: string | {
308
343
  source: string;
@@ -338,6 +373,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
338
373
  hidden?: boolean | undefined;
339
374
  sdk?: undefined;
340
375
  root?: string | undefined;
376
+ thumbnail?: {
377
+ background?: string | undefined;
378
+ eyebrow?: string | undefined;
379
+ preset?: "classic" | "headline" | "minimal" | undefined;
380
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
381
+ surface?: "neutral" | "brand" | undefined;
382
+ } | undefined;
341
383
  }, "graphql" | "sdk"> & {
342
384
  openapi?: string | {
343
385
  source: string;
@@ -375,6 +417,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
375
417
  hidden?: boolean | undefined;
376
418
  sdk?: undefined;
377
419
  root?: string | undefined;
420
+ thumbnail?: {
421
+ background?: string | undefined;
422
+ eyebrow?: string | undefined;
423
+ preset?: "classic" | "headline" | "minimal" | undefined;
424
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
425
+ surface?: "neutral" | "brand" | undefined;
426
+ } | undefined;
378
427
  }, "graphql" | "sdk"> & {
379
428
  openapi?: string | {
380
429
  source: string;
@@ -416,6 +465,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
416
465
  hidden?: boolean | undefined;
417
466
  sdk?: undefined;
418
467
  root?: string | undefined;
468
+ thumbnail?: {
469
+ background?: string | undefined;
470
+ eyebrow?: string | undefined;
471
+ preset?: "classic" | "headline" | "minimal" | undefined;
472
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
473
+ surface?: "neutral" | "brand" | undefined;
474
+ } | undefined;
419
475
  }, "graphql" | "sdk"> & {
420
476
  openapi?: string | {
421
477
  source: string;
@@ -494,6 +550,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
494
550
  hidden?: boolean | undefined;
495
551
  sdk?: undefined;
496
552
  root?: string | undefined;
553
+ thumbnail?: {
554
+ background?: string | undefined;
555
+ eyebrow?: string | undefined;
556
+ preset?: "classic" | "headline" | "minimal" | undefined;
557
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
558
+ surface?: "neutral" | "brand" | undefined;
559
+ } | undefined;
497
560
  }, "sdk" | "root"> & {
498
561
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
499
562
  root?: import("../index.js").DecoratedPageConfig;
@@ -514,6 +577,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
514
577
  hidden?: boolean | undefined;
515
578
  sdk?: undefined;
516
579
  root?: string | undefined;
580
+ thumbnail?: {
581
+ background?: string | undefined;
582
+ eyebrow?: string | undefined;
583
+ preset?: "classic" | "headline" | "minimal" | undefined;
584
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
585
+ surface?: "neutral" | "brand" | undefined;
586
+ } | undefined;
517
587
  }, "sdk" | "root"> & {
518
588
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
519
589
  root?: import("../index.js").DecoratedPageConfig;
@@ -536,6 +606,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
536
606
  hidden?: boolean | undefined;
537
607
  sdk?: undefined;
538
608
  root?: string | undefined;
609
+ thumbnail?: {
610
+ background?: string | undefined;
611
+ eyebrow?: string | undefined;
612
+ preset?: "classic" | "headline" | "minimal" | undefined;
613
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
614
+ surface?: "neutral" | "brand" | undefined;
615
+ } | undefined;
539
616
  }, "sdk" | "root"> & {
540
617
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
541
618
  root?: import("../index.js").DecoratedPageConfig;
@@ -558,6 +635,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
558
635
  hidden?: boolean | undefined;
559
636
  sdk?: undefined;
560
637
  root?: string | undefined;
638
+ thumbnail?: {
639
+ background?: string | undefined;
640
+ eyebrow?: string | undefined;
641
+ preset?: "classic" | "headline" | "minimal" | undefined;
642
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
643
+ surface?: "neutral" | "brand" | undefined;
644
+ } | undefined;
561
645
  }, "sdk" | "root"> & {
562
646
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
563
647
  root?: import("../index.js").DecoratedPageConfig;
@@ -794,6 +878,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
794
878
  hidden?: boolean | undefined;
795
879
  sdk?: undefined;
796
880
  root?: string | undefined;
881
+ thumbnail?: {
882
+ background?: string | undefined;
883
+ eyebrow?: string | undefined;
884
+ preset?: "classic" | "headline" | "minimal" | undefined;
885
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
886
+ surface?: "neutral" | "brand" | undefined;
887
+ } | undefined;
797
888
  }, "sdk" | "root"> & {
798
889
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
799
890
  root?: import("../index.js").DecoratedPageConfig;
@@ -1028,6 +1119,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
1028
1119
  hidden?: boolean | undefined;
1029
1120
  sdk?: undefined;
1030
1121
  root?: string | undefined;
1122
+ thumbnail?: {
1123
+ background?: string | undefined;
1124
+ eyebrow?: string | undefined;
1125
+ preset?: "classic" | "headline" | "minimal" | undefined;
1126
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
1127
+ surface?: "neutral" | "brand" | undefined;
1128
+ } | undefined;
1031
1129
  }, "sdk" | "root"> & {
1032
1130
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
1033
1131
  root?: import("../index.js").DecoratedPageConfig;
@@ -1264,6 +1362,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
1264
1362
  hidden?: boolean | undefined;
1265
1363
  sdk?: undefined;
1266
1364
  root?: string | undefined;
1365
+ thumbnail?: {
1366
+ background?: string | undefined;
1367
+ eyebrow?: string | undefined;
1368
+ preset?: "classic" | "headline" | "minimal" | undefined;
1369
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
1370
+ surface?: "neutral" | "brand" | undefined;
1371
+ } | undefined;
1267
1372
  }, "sdk" | "root"> & {
1268
1373
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
1269
1374
  root?: import("../index.js").DecoratedPageConfig;
@@ -1500,6 +1605,13 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
1500
1605
  hidden?: boolean | undefined;
1501
1606
  sdk?: undefined;
1502
1607
  root?: string | undefined;
1608
+ thumbnail?: {
1609
+ background?: string | undefined;
1610
+ eyebrow?: string | undefined;
1611
+ preset?: "classic" | "headline" | "minimal" | undefined;
1612
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
1613
+ surface?: "neutral" | "brand" | undefined;
1614
+ } | undefined;
1503
1615
  }, "sdk" | "root"> & {
1504
1616
  pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
1505
1617
  root?: import("../index.js").DecoratedPageConfig;
@@ -1,6 +1,64 @@
1
1
  import { z } from 'zod';
2
2
  import { LanguageNavigation } from './divisionNav.js';
3
3
  export declare const baseLanguageSchema: z.ZodObject<{
4
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
5
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
6
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
7
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
8
+ background: z.ZodOptional<z.ZodString>;
9
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
10
+ family: z.ZodString;
11
+ weight: z.ZodOptional<z.ZodNumber>;
12
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
13
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
14
+ }, "family"> & {
15
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ family: string;
19
+ source?: string | undefined;
20
+ format?: "woff" | "ttf" | "otf" | undefined;
21
+ }, {
22
+ family: string;
23
+ source?: string | undefined;
24
+ format?: "woff" | "ttf" | "otf" | undefined;
25
+ }>, {
26
+ family: string;
27
+ source?: string | undefined;
28
+ format?: "woff" | "ttf" | "otf" | undefined;
29
+ }, {
30
+ family: string;
31
+ source?: string | undefined;
32
+ format?: "woff" | "ttf" | "otf" | undefined;
33
+ }>>;
34
+ eyebrow: z.ZodOptional<z.ZodObject<{
35
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
36
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
37
+ color: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ color?: string | undefined;
40
+ style?: "pill" | "plain" | "bar" | undefined;
41
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
42
+ }, {
43
+ color?: string | undefined;
44
+ style?: "pill" | "plain" | "bar" | undefined;
45
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
46
+ }>>;
47
+ }, "background" | "preset" | "appearance" | "surface"> & {
48
+ eyebrow: z.ZodOptional<z.ZodString>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ background?: string | undefined;
51
+ eyebrow?: string | undefined;
52
+ preset?: "classic" | "headline" | "minimal" | undefined;
53
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
54
+ surface?: "neutral" | "brand" | undefined;
55
+ }, {
56
+ background?: string | undefined;
57
+ eyebrow?: string | undefined;
58
+ preset?: "classic" | "headline" | "minimal" | undefined;
59
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
60
+ surface?: "neutral" | "brand" | undefined;
61
+ }>>;
4
62
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
5
63
  language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "zh-CN", "zh-TW", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "ja-JP", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "da", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
6
64
  graphql: z.ZodOptional<z.ZodNever>;
@@ -333,6 +391,13 @@ export declare const baseLanguageSchema: z.ZodObject<{
333
391
  graphql?: undefined;
334
392
  hidden?: boolean | undefined;
335
393
  sdk?: undefined;
394
+ thumbnail?: {
395
+ background?: string | undefined;
396
+ eyebrow?: string | undefined;
397
+ preset?: "classic" | "headline" | "minimal" | undefined;
398
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
399
+ surface?: "neutral" | "brand" | undefined;
400
+ } | undefined;
336
401
  banner?: {
337
402
  content: string;
338
403
  type?: "info" | "warning" | "critical" | undefined;
@@ -402,6 +467,13 @@ export declare const baseLanguageSchema: z.ZodObject<{
402
467
  graphql?: undefined;
403
468
  hidden?: boolean | undefined;
404
469
  sdk?: undefined;
470
+ thumbnail?: {
471
+ background?: string | undefined;
472
+ eyebrow?: string | undefined;
473
+ preset?: "classic" | "headline" | "minimal" | undefined;
474
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
475
+ surface?: "neutral" | "brand" | undefined;
476
+ } | undefined;
405
477
  banner?: {
406
478
  content: string;
407
479
  type?: "info" | "warning" | "critical" | undefined;
@@ -457,6 +529,64 @@ export declare const baseLanguageSchema: z.ZodObject<{
457
529
  }>;
458
530
  export type BaseLanguageSchema = z.infer<typeof baseLanguageSchema>;
459
531
  export declare const nonRecursiveLanguageSchema: z.ZodObject<{
532
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
533
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
534
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
535
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
536
+ background: z.ZodOptional<z.ZodString>;
537
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
538
+ family: z.ZodString;
539
+ weight: z.ZodOptional<z.ZodNumber>;
540
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
541
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
542
+ }, "family"> & {
543
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
544
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ family: string;
547
+ source?: string | undefined;
548
+ format?: "woff" | "ttf" | "otf" | undefined;
549
+ }, {
550
+ family: string;
551
+ source?: string | undefined;
552
+ format?: "woff" | "ttf" | "otf" | undefined;
553
+ }>, {
554
+ family: string;
555
+ source?: string | undefined;
556
+ format?: "woff" | "ttf" | "otf" | undefined;
557
+ }, {
558
+ family: string;
559
+ source?: string | undefined;
560
+ format?: "woff" | "ttf" | "otf" | undefined;
561
+ }>>;
562
+ eyebrow: z.ZodOptional<z.ZodObject<{
563
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
564
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
565
+ color: z.ZodOptional<z.ZodString>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ color?: string | undefined;
568
+ style?: "pill" | "plain" | "bar" | undefined;
569
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
570
+ }, {
571
+ color?: string | undefined;
572
+ style?: "pill" | "plain" | "bar" | undefined;
573
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
574
+ }>>;
575
+ }, "background" | "preset" | "appearance" | "surface"> & {
576
+ eyebrow: z.ZodOptional<z.ZodString>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ background?: string | undefined;
579
+ eyebrow?: string | undefined;
580
+ preset?: "classic" | "headline" | "minimal" | undefined;
581
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
582
+ surface?: "neutral" | "brand" | undefined;
583
+ }, {
584
+ background?: string | undefined;
585
+ eyebrow?: string | undefined;
586
+ preset?: "classic" | "headline" | "minimal" | undefined;
587
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
588
+ surface?: "neutral" | "brand" | undefined;
589
+ }>>;
460
590
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
461
591
  language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "zh-CN", "zh-TW", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "ja-JP", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "da", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
462
592
  graphql: z.ZodOptional<z.ZodNever>;
@@ -792,6 +922,13 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
792
922
  graphql?: undefined;
793
923
  hidden?: boolean | undefined;
794
924
  sdk?: undefined;
925
+ thumbnail?: {
926
+ background?: string | undefined;
927
+ eyebrow?: string | undefined;
928
+ preset?: "classic" | "headline" | "minimal" | undefined;
929
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
930
+ surface?: "neutral" | "brand" | undefined;
931
+ } | undefined;
795
932
  banner?: {
796
933
  content: string;
797
934
  type?: "info" | "warning" | "critical" | undefined;
@@ -862,6 +999,13 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
862
999
  graphql?: undefined;
863
1000
  hidden?: boolean | undefined;
864
1001
  sdk?: undefined;
1002
+ thumbnail?: {
1003
+ background?: string | undefined;
1004
+ eyebrow?: string | undefined;
1005
+ preset?: "classic" | "headline" | "minimal" | undefined;
1006
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
1007
+ surface?: "neutral" | "brand" | undefined;
1008
+ } | undefined;
865
1009
  banner?: {
866
1010
  content: string;
867
1011
  type?: "info" | "warning" | "critical" | undefined;
@@ -9,6 +9,7 @@ import { hiddenSchema } from '../reusable/hidden.js';
9
9
  import { hrefSchema } from '../reusable/href.js';
10
10
  import { openApiSchema } from '../reusable/openapi.js';
11
11
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
12
+ import { thumbnailField } from '../thumbnails.js';
12
13
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
13
14
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
14
15
  import { globalSchema } from './global.js';
@@ -17,7 +18,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
17
18
  import { decoratedProductsSchema, productsSchema } from './products.js';
18
19
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
19
20
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
20
- export const baseLanguageSchema = z.object(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField));
21
+ export const baseLanguageSchema = z.object(Object.assign(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
21
22
  export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
22
23
  export const languageSchema = z
23
24
  .union([
@@ -1,6 +1,64 @@
1
1
  import { z } from 'zod';
2
2
  import { MenuItemNavigation } from './divisionNav.js';
3
3
  export declare const baseMenuItemSchema: z.ZodObject<{
4
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
5
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
6
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
7
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
8
+ background: z.ZodOptional<z.ZodString>;
9
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
10
+ family: z.ZodString;
11
+ weight: z.ZodOptional<z.ZodNumber>;
12
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
13
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
14
+ }, "family"> & {
15
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ family: string;
19
+ source?: string | undefined;
20
+ format?: "woff" | "ttf" | "otf" | undefined;
21
+ }, {
22
+ family: string;
23
+ source?: string | undefined;
24
+ format?: "woff" | "ttf" | "otf" | undefined;
25
+ }>, {
26
+ family: string;
27
+ source?: string | undefined;
28
+ format?: "woff" | "ttf" | "otf" | undefined;
29
+ }, {
30
+ family: string;
31
+ source?: string | undefined;
32
+ format?: "woff" | "ttf" | "otf" | undefined;
33
+ }>>;
34
+ eyebrow: z.ZodOptional<z.ZodObject<{
35
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
36
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
37
+ color: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ color?: string | undefined;
40
+ style?: "pill" | "plain" | "bar" | undefined;
41
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
42
+ }, {
43
+ color?: string | undefined;
44
+ style?: "pill" | "plain" | "bar" | undefined;
45
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
46
+ }>>;
47
+ }, "background" | "preset" | "appearance" | "surface"> & {
48
+ eyebrow: z.ZodOptional<z.ZodString>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ background?: string | undefined;
51
+ eyebrow?: string | undefined;
52
+ preset?: "classic" | "headline" | "minimal" | undefined;
53
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
54
+ surface?: "neutral" | "brand" | undefined;
55
+ }, {
56
+ background?: string | undefined;
57
+ eyebrow?: string | undefined;
58
+ preset?: "classic" | "headline" | "minimal" | undefined;
59
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
60
+ surface?: "neutral" | "brand" | undefined;
61
+ }>>;
4
62
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
5
63
  item: z.ZodString;
6
64
  graphql: z.ZodOptional<z.ZodNever>;
@@ -32,6 +90,13 @@ export declare const baseMenuItemSchema: z.ZodObject<{
32
90
  graphql?: undefined;
33
91
  hidden?: boolean | undefined;
34
92
  sdk?: undefined;
93
+ thumbnail?: {
94
+ background?: string | undefined;
95
+ eyebrow?: string | undefined;
96
+ preset?: "classic" | "headline" | "minimal" | undefined;
97
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
98
+ surface?: "neutral" | "brand" | undefined;
99
+ } | undefined;
35
100
  }, {
36
101
  item: string;
37
102
  icon?: string | {
@@ -44,9 +109,74 @@ export declare const baseMenuItemSchema: z.ZodObject<{
44
109
  graphql?: undefined;
45
110
  hidden?: boolean | undefined;
46
111
  sdk?: undefined;
112
+ thumbnail?: {
113
+ background?: string | undefined;
114
+ eyebrow?: string | undefined;
115
+ preset?: "classic" | "headline" | "minimal" | undefined;
116
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
117
+ surface?: "neutral" | "brand" | undefined;
118
+ } | undefined;
47
119
  }>;
48
120
  export type BaseMenuItemSchema = z.infer<typeof baseMenuItemSchema>;
49
121
  export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
122
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
123
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
124
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
125
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
126
+ background: z.ZodOptional<z.ZodString>;
127
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
128
+ family: z.ZodString;
129
+ weight: z.ZodOptional<z.ZodNumber>;
130
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
131
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
132
+ }, "family"> & {
133
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
134
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ family: string;
137
+ source?: string | undefined;
138
+ format?: "woff" | "ttf" | "otf" | undefined;
139
+ }, {
140
+ family: string;
141
+ source?: string | undefined;
142
+ format?: "woff" | "ttf" | "otf" | undefined;
143
+ }>, {
144
+ family: string;
145
+ source?: string | undefined;
146
+ format?: "woff" | "ttf" | "otf" | undefined;
147
+ }, {
148
+ family: string;
149
+ source?: string | undefined;
150
+ format?: "woff" | "ttf" | "otf" | undefined;
151
+ }>>;
152
+ eyebrow: z.ZodOptional<z.ZodObject<{
153
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
154
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
155
+ color: z.ZodOptional<z.ZodString>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ color?: string | undefined;
158
+ style?: "pill" | "plain" | "bar" | undefined;
159
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
160
+ }, {
161
+ color?: string | undefined;
162
+ style?: "pill" | "plain" | "bar" | undefined;
163
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
164
+ }>>;
165
+ }, "background" | "preset" | "appearance" | "surface"> & {
166
+ eyebrow: z.ZodOptional<z.ZodString>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ background?: string | undefined;
169
+ eyebrow?: string | undefined;
170
+ preset?: "classic" | "headline" | "minimal" | undefined;
171
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
172
+ surface?: "neutral" | "brand" | undefined;
173
+ }, {
174
+ background?: string | undefined;
175
+ eyebrow?: string | undefined;
176
+ preset?: "classic" | "headline" | "minimal" | undefined;
177
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
178
+ surface?: "neutral" | "brand" | undefined;
179
+ }>>;
50
180
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
51
181
  item: z.ZodString;
52
182
  graphql: z.ZodOptional<z.ZodNever>;
@@ -81,6 +211,13 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
81
211
  graphql?: undefined;
82
212
  hidden?: boolean | undefined;
83
213
  sdk?: undefined;
214
+ thumbnail?: {
215
+ background?: string | undefined;
216
+ eyebrow?: string | undefined;
217
+ preset?: "classic" | "headline" | "minimal" | undefined;
218
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
219
+ surface?: "neutral" | "brand" | undefined;
220
+ } | undefined;
84
221
  }, {
85
222
  href: string;
86
223
  item: string;
@@ -94,6 +231,13 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
94
231
  graphql?: undefined;
95
232
  hidden?: boolean | undefined;
96
233
  sdk?: undefined;
234
+ thumbnail?: {
235
+ background?: string | undefined;
236
+ eyebrow?: string | undefined;
237
+ preset?: "classic" | "headline" | "minimal" | undefined;
238
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
239
+ surface?: "neutral" | "brand" | undefined;
240
+ } | undefined;
97
241
  }>;
98
242
  export declare const menuItemSchema: z.ZodType<MenuItemNavigation<'default'>>;
99
243
  export declare const decoratedMenuItemSchema: z.ZodType<MenuItemNavigation<'decorated'>>;
@@ -6,6 +6,7 @@ import { hrefSchema } from '../reusable/href.js';
6
6
  import { iconSchema } from '../reusable/icon.js';
7
7
  import { openApiSchema } from '../reusable/openapi.js';
8
8
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
9
+ import { thumbnailField } from '../thumbnails.js';
9
10
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
10
11
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
11
12
  import { globalSchema } from './global.js';
@@ -15,7 +16,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
15
16
  import { decoratedProductsSchema, productsSchema } from './products.js';
16
17
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
17
18
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
18
- export const baseMenuItemSchema = z.object(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField));
19
+ export const baseMenuItemSchema = z.object(Object.assign(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
19
20
  export const nonRecursiveMenuItemSchema = baseMenuItemSchema.extend({ href: hrefSchema });
20
21
  export const menuItemSchema = z.union([
21
22
  baseMenuItemSchema.extend({