@mintlify/validation 0.1.899 → 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 +1413 -573
  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 +126 -7
  24. package/dist/mint-config/schemas/v2/properties/thumbnails.js +14 -4
  25. package/dist/mint-config/schemas/v2/themes/almond.d.ts +139 -55
  26. package/dist/mint-config/schemas/v2/themes/aspen.d.ts +139 -55
  27. package/dist/mint-config/schemas/v2/themes/linden.d.ts +139 -55
  28. package/dist/mint-config/schemas/v2/themes/luma.d.ts +139 -55
  29. package/dist/mint-config/schemas/v2/themes/maple.d.ts +139 -55
  30. package/dist/mint-config/schemas/v2/themes/mint.d.ts +139 -55
  31. package/dist/mint-config/schemas/v2/themes/palm.d.ts +139 -55
  32. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +63 -7
  33. package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +139 -55
  34. package/dist/mint-config/schemas/v2/themes/willow.d.ts +139 -55
  35. package/dist/mint-config/validateConfig.d.ts +714 -462
  36. package/dist/tsconfig.build.tsbuildinfo +1 -1
  37. package/package.json +2 -2
@@ -20,6 +20,13 @@ export declare const pagesSchema: z.ZodArray<z.ZodType<string | (Omit<{
20
20
  hidden?: boolean | undefined;
21
21
  sdk?: undefined;
22
22
  root?: string | undefined;
23
+ thumbnail?: {
24
+ background?: string | undefined;
25
+ eyebrow?: string | undefined;
26
+ preset?: "classic" | "headline" | "minimal" | undefined;
27
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
28
+ surface?: "neutral" | "brand" | undefined;
29
+ } | undefined;
23
30
  }, "graphql" | "sdk"> & {
24
31
  openapi?: string | {
25
32
  source: string;
@@ -55,6 +62,13 @@ export declare const pagesSchema: z.ZodArray<z.ZodType<string | (Omit<{
55
62
  hidden?: boolean | undefined;
56
63
  sdk?: undefined;
57
64
  root?: string | undefined;
65
+ thumbnail?: {
66
+ background?: string | undefined;
67
+ eyebrow?: string | undefined;
68
+ preset?: "classic" | "headline" | "minimal" | undefined;
69
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
70
+ surface?: "neutral" | "brand" | undefined;
71
+ } | undefined;
58
72
  }, "graphql" | "sdk"> & {
59
73
  openapi?: string | {
60
74
  source: string;
@@ -305,6 +319,13 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
305
319
  hidden?: boolean | undefined;
306
320
  sdk?: undefined;
307
321
  root?: string | undefined;
322
+ thumbnail?: {
323
+ background?: string | undefined;
324
+ eyebrow?: string | undefined;
325
+ preset?: "classic" | "headline" | "minimal" | undefined;
326
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
327
+ surface?: "neutral" | "brand" | undefined;
328
+ } | undefined;
308
329
  }, "sdk" | "root"> & {
309
330
  pages: PageOrGroupNavigation<"decorated">[];
310
331
  root?: import("../reusable/page.js").DecoratedPageConfig;
@@ -539,6 +560,13 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
539
560
  hidden?: boolean | undefined;
540
561
  sdk?: undefined;
541
562
  root?: string | undefined;
563
+ thumbnail?: {
564
+ background?: string | undefined;
565
+ eyebrow?: string | undefined;
566
+ preset?: "classic" | "headline" | "minimal" | undefined;
567
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
568
+ surface?: "neutral" | "brand" | undefined;
569
+ } | undefined;
542
570
  }, "sdk" | "root"> & {
543
571
  pages: PageOrGroupNavigation<"decorated">[];
544
572
  root?: import("../reusable/page.js").DecoratedPageConfig;
@@ -1,6 +1,64 @@
1
1
  import { z } from 'zod';
2
2
  import { ProductNavigation } from './divisionNav.js';
3
3
  export declare const baseProductSchema: 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
  product: z.ZodString;
6
64
  graphql: z.ZodOptional<z.ZodNever>;
@@ -48,6 +106,13 @@ export declare const baseProductSchema: z.ZodObject<{
48
106
  graphql?: undefined;
49
107
  hidden?: boolean | undefined;
50
108
  sdk?: undefined;
109
+ thumbnail?: {
110
+ background?: string | undefined;
111
+ eyebrow?: string | undefined;
112
+ preset?: "classic" | "headline" | "minimal" | undefined;
113
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
114
+ surface?: "neutral" | "brand" | undefined;
115
+ } | undefined;
51
116
  }, {
52
117
  product: string;
53
118
  name?: string | undefined;
@@ -65,6 +130,13 @@ export declare const baseProductSchema: z.ZodObject<{
65
130
  graphql?: undefined;
66
131
  hidden?: boolean | undefined;
67
132
  sdk?: undefined;
133
+ thumbnail?: {
134
+ background?: string | undefined;
135
+ eyebrow?: string | undefined;
136
+ preset?: "classic" | "headline" | "minimal" | undefined;
137
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
138
+ surface?: "neutral" | "brand" | undefined;
139
+ } | undefined;
68
140
  }>;
69
141
  export declare const productSchema: z.ZodType<ProductNavigation<'default'>>;
70
142
  export declare const decoratedProductSchema: z.ZodType<ProductNavigation<'decorated'>>;
@@ -72,6 +144,64 @@ export declare const productsSchema: z.ZodArray<z.ZodType<ProductNavigation<"def
72
144
  export declare const decoratedProductsSchema: z.ZodArray<z.ZodType<ProductNavigation<"decorated">, z.ZodTypeDef, ProductNavigation<"decorated">>, "many">;
73
145
  export type BaseProductSchema = z.infer<typeof baseProductSchema>;
74
146
  export declare const nonRecursiveProductSchema: z.ZodObject<{
147
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
148
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
149
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
150
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
151
+ background: z.ZodOptional<z.ZodString>;
152
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
153
+ family: z.ZodString;
154
+ weight: z.ZodOptional<z.ZodNumber>;
155
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
156
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
157
+ }, "family"> & {
158
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
159
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ family: string;
162
+ source?: string | undefined;
163
+ format?: "woff" | "ttf" | "otf" | undefined;
164
+ }, {
165
+ family: string;
166
+ source?: string | undefined;
167
+ format?: "woff" | "ttf" | "otf" | undefined;
168
+ }>, {
169
+ family: string;
170
+ source?: string | undefined;
171
+ format?: "woff" | "ttf" | "otf" | undefined;
172
+ }, {
173
+ family: string;
174
+ source?: string | undefined;
175
+ format?: "woff" | "ttf" | "otf" | undefined;
176
+ }>>;
177
+ eyebrow: z.ZodOptional<z.ZodObject<{
178
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
179
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
180
+ color: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ color?: string | undefined;
183
+ style?: "pill" | "plain" | "bar" | undefined;
184
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
185
+ }, {
186
+ color?: string | undefined;
187
+ style?: "pill" | "plain" | "bar" | undefined;
188
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
189
+ }>>;
190
+ }, "background" | "preset" | "appearance" | "surface"> & {
191
+ eyebrow: z.ZodOptional<z.ZodString>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ background?: string | undefined;
194
+ eyebrow?: string | undefined;
195
+ preset?: "classic" | "headline" | "minimal" | undefined;
196
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
197
+ surface?: "neutral" | "brand" | undefined;
198
+ }, {
199
+ background?: string | undefined;
200
+ eyebrow?: string | undefined;
201
+ preset?: "classic" | "headline" | "minimal" | undefined;
202
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
203
+ surface?: "neutral" | "brand" | undefined;
204
+ }>>;
75
205
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
76
206
  product: z.ZodString;
77
207
  graphql: z.ZodOptional<z.ZodNever>;
@@ -122,6 +252,13 @@ export declare const nonRecursiveProductSchema: z.ZodObject<{
122
252
  graphql?: undefined;
123
253
  hidden?: boolean | undefined;
124
254
  sdk?: undefined;
255
+ thumbnail?: {
256
+ background?: string | undefined;
257
+ eyebrow?: string | undefined;
258
+ preset?: "classic" | "headline" | "minimal" | undefined;
259
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
260
+ surface?: "neutral" | "brand" | undefined;
261
+ } | undefined;
125
262
  }, {
126
263
  href: string;
127
264
  product: string;
@@ -140,6 +277,13 @@ export declare const nonRecursiveProductSchema: z.ZodObject<{
140
277
  graphql?: undefined;
141
278
  hidden?: boolean | undefined;
142
279
  sdk?: undefined;
280
+ thumbnail?: {
281
+ background?: string | undefined;
282
+ eyebrow?: string | undefined;
283
+ preset?: "classic" | "headline" | "minimal" | undefined;
284
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
285
+ surface?: "neutral" | "brand" | undefined;
286
+ } | undefined;
143
287
  }>;
144
288
  export type ProductConfig = z.infer<typeof productSchema>;
145
289
  export type ProductsConfig = z.infer<typeof productsSchema>;
@@ -7,6 +7,7 @@ import { hrefSchema } from '../reusable/href.js';
7
7
  import { iconSchema } from '../reusable/icon.js';
8
8
  import { openApiSchema } from '../reusable/openapi.js';
9
9
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
10
+ import { thumbnailField } from '../thumbnails.js';
10
11
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
11
12
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
12
13
  import { globalSchema } from './global.js';
@@ -16,7 +17,7 @@ import { decoratedMenuSchema, menuSchema } from './menu.js';
16
17
  import { pagesSchema, decoratedPagesSchema } from './pages.js';
17
18
  import { tabsSchema, decoratedTabsSchema } from './tabs.js';
18
19
  import { versionsSchema, decoratedVersionsSchema } from './version.js';
19
- export const baseProductSchema = z.object(Object.assign({ product: z.string().nonempty().describe('The name of the product'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, name: z.string().optional().describe('Display name for the product'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the product'), hidden: hiddenSchema.optional() }, directoryField));
20
+ export const baseProductSchema = z.object(Object.assign(Object.assign({ product: z.string().nonempty().describe('The name of the product'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, name: z.string().optional().describe('Display name for the product'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the product'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
20
21
  export const productSchema = z.union([
21
22
  baseProductSchema.extend({
22
23
  href: hrefSchema,
@@ -3,6 +3,64 @@ import { TabNavigation } from './divisionNav.js';
3
3
  export declare const tabAlignSchema: z.ZodEnum<["start", "end"]>;
4
4
  export type TabAlign = z.infer<typeof tabAlignSchema>;
5
5
  export declare const baseTabSchema: z.ZodObject<{
6
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
7
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
8
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
9
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
10
+ background: z.ZodOptional<z.ZodString>;
11
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
12
+ family: z.ZodString;
13
+ weight: z.ZodOptional<z.ZodNumber>;
14
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
15
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
16
+ }, "family"> & {
17
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
18
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ family: string;
21
+ source?: string | undefined;
22
+ format?: "woff" | "ttf" | "otf" | undefined;
23
+ }, {
24
+ family: string;
25
+ source?: string | undefined;
26
+ format?: "woff" | "ttf" | "otf" | undefined;
27
+ }>, {
28
+ family: string;
29
+ source?: string | undefined;
30
+ format?: "woff" | "ttf" | "otf" | undefined;
31
+ }, {
32
+ family: string;
33
+ source?: string | undefined;
34
+ format?: "woff" | "ttf" | "otf" | undefined;
35
+ }>>;
36
+ eyebrow: z.ZodOptional<z.ZodObject<{
37
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
38
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
39
+ color: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ color?: string | undefined;
42
+ style?: "pill" | "plain" | "bar" | undefined;
43
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
44
+ }, {
45
+ color?: string | undefined;
46
+ style?: "pill" | "plain" | "bar" | undefined;
47
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
48
+ }>>;
49
+ }, "background" | "preset" | "appearance" | "surface"> & {
50
+ eyebrow: z.ZodOptional<z.ZodString>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ background?: string | undefined;
53
+ eyebrow?: string | undefined;
54
+ preset?: "classic" | "headline" | "minimal" | undefined;
55
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
56
+ surface?: "neutral" | "brand" | undefined;
57
+ }, {
58
+ background?: string | undefined;
59
+ eyebrow?: string | undefined;
60
+ preset?: "classic" | "headline" | "minimal" | undefined;
61
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
62
+ surface?: "neutral" | "brand" | undefined;
63
+ }>>;
6
64
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
7
65
  tab: z.ZodString;
8
66
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -31,6 +89,13 @@ export declare const baseTabSchema: z.ZodObject<{
31
89
  directory?: "none" | "card" | "accordion" | undefined;
32
90
  searchable?: boolean | undefined;
33
91
  hidden?: boolean | undefined;
92
+ thumbnail?: {
93
+ background?: string | undefined;
94
+ eyebrow?: string | undefined;
95
+ preset?: "classic" | "headline" | "minimal" | undefined;
96
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
97
+ surface?: "neutral" | "brand" | undefined;
98
+ } | undefined;
34
99
  align?: "start" | "end" | undefined;
35
100
  }, {
36
101
  tab: string;
@@ -42,10 +107,75 @@ export declare const baseTabSchema: z.ZodObject<{
42
107
  directory?: "none" | "card" | "accordion" | undefined;
43
108
  searchable?: boolean | undefined;
44
109
  hidden?: boolean | undefined;
110
+ thumbnail?: {
111
+ background?: string | undefined;
112
+ eyebrow?: string | undefined;
113
+ preset?: "classic" | "headline" | "minimal" | undefined;
114
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
115
+ surface?: "neutral" | "brand" | undefined;
116
+ } | undefined;
45
117
  align?: "start" | "end" | undefined;
46
118
  }>;
47
119
  export type BaseTabSchema = z.infer<typeof baseTabSchema>;
48
120
  export declare const nonRecursiveTabSchema: z.ZodObject<{
121
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
122
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
123
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
124
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
125
+ background: z.ZodOptional<z.ZodString>;
126
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
127
+ family: z.ZodString;
128
+ weight: z.ZodOptional<z.ZodNumber>;
129
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
130
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
131
+ }, "family"> & {
132
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
133
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ family: string;
136
+ source?: string | undefined;
137
+ format?: "woff" | "ttf" | "otf" | undefined;
138
+ }, {
139
+ family: string;
140
+ source?: string | undefined;
141
+ format?: "woff" | "ttf" | "otf" | undefined;
142
+ }>, {
143
+ family: string;
144
+ source?: string | undefined;
145
+ format?: "woff" | "ttf" | "otf" | undefined;
146
+ }, {
147
+ family: string;
148
+ source?: string | undefined;
149
+ format?: "woff" | "ttf" | "otf" | undefined;
150
+ }>>;
151
+ eyebrow: z.ZodOptional<z.ZodObject<{
152
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
153
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
154
+ color: z.ZodOptional<z.ZodString>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ color?: string | undefined;
157
+ style?: "pill" | "plain" | "bar" | undefined;
158
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
159
+ }, {
160
+ color?: string | undefined;
161
+ style?: "pill" | "plain" | "bar" | undefined;
162
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
163
+ }>>;
164
+ }, "background" | "preset" | "appearance" | "surface"> & {
165
+ eyebrow: z.ZodOptional<z.ZodString>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ background?: string | undefined;
168
+ eyebrow?: string | undefined;
169
+ preset?: "classic" | "headline" | "minimal" | undefined;
170
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
171
+ surface?: "neutral" | "brand" | undefined;
172
+ }, {
173
+ background?: string | undefined;
174
+ eyebrow?: string | undefined;
175
+ preset?: "classic" | "headline" | "minimal" | undefined;
176
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
177
+ surface?: "neutral" | "brand" | undefined;
178
+ }>>;
49
179
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
50
180
  tab: z.ZodString;
51
181
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -81,6 +211,13 @@ export declare const nonRecursiveTabSchema: z.ZodObject<{
81
211
  searchable?: boolean | 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
  align?: "start" | "end" | undefined;
85
222
  }, {
86
223
  href: string;
@@ -95,6 +232,13 @@ export declare const nonRecursiveTabSchema: z.ZodObject<{
95
232
  searchable?: boolean | undefined;
96
233
  hidden?: boolean | undefined;
97
234
  sdk?: undefined;
235
+ thumbnail?: {
236
+ background?: string | undefined;
237
+ eyebrow?: string | undefined;
238
+ preset?: "classic" | "headline" | "minimal" | undefined;
239
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
240
+ surface?: "neutral" | "brand" | undefined;
241
+ } | undefined;
98
242
  align?: "start" | "end" | undefined;
99
243
  }>;
100
244
  export declare const tabSchema: z.ZodType<TabNavigation<'default'>>;
@@ -7,6 +7,7 @@ import { iconSchema } from '../reusable/icon.js';
7
7
  import { openApiSchema } from '../reusable/openapi.js';
8
8
  import { sdkNotSupportedSchema, sdkSchema } from '../reusable/sdk.js';
9
9
  import { searchableSchema } from '../reusable/searchable.js';
10
+ import { thumbnailField } from '../thumbnails.js';
10
11
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
11
12
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
12
13
  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 { decoratedVersionsSchema, versionsSchema } from './version.js';
19
20
  export const tabAlignSchema = z.enum(['start', 'end']).describe('Tab alignment in the navigation');
20
- export const baseTabSchema = z.object(Object.assign({ tab: z.string().nonempty().describe('The name of the tab'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), align: tabAlignSchema.optional() }, directoryField));
21
+ export const baseTabSchema = z.object(Object.assign(Object.assign({ tab: z.string().nonempty().describe('The name of the tab'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), align: tabAlignSchema.optional() }, directoryField), thumbnailField));
21
22
  export const nonRecursiveTabSchema = baseTabSchema.extend({
22
23
  href: hrefSchema,
23
24
  graphql: graphqlNotSupportedSchema,
@@ -1,6 +1,64 @@
1
1
  import { z } from 'zod';
2
2
  import { VersionNavigation } from './divisionNav.js';
3
3
  export declare const baseVersionSchema: 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
  version: z.ZodString;
6
64
  graphql: z.ZodOptional<z.ZodNever>;
@@ -16,6 +74,13 @@ export declare const baseVersionSchema: z.ZodObject<{
16
74
  tag?: string | undefined;
17
75
  hidden?: boolean | undefined;
18
76
  sdk?: undefined;
77
+ thumbnail?: {
78
+ background?: string | undefined;
79
+ eyebrow?: string | undefined;
80
+ preset?: "classic" | "headline" | "minimal" | undefined;
81
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
82
+ surface?: "neutral" | "brand" | undefined;
83
+ } | undefined;
19
84
  }, {
20
85
  version: string;
21
86
  default?: boolean | undefined;
@@ -24,9 +89,74 @@ export declare const baseVersionSchema: z.ZodObject<{
24
89
  tag?: string | undefined;
25
90
  hidden?: boolean | undefined;
26
91
  sdk?: undefined;
92
+ thumbnail?: {
93
+ background?: string | undefined;
94
+ eyebrow?: string | undefined;
95
+ preset?: "classic" | "headline" | "minimal" | undefined;
96
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
97
+ surface?: "neutral" | "brand" | undefined;
98
+ } | undefined;
27
99
  }>;
28
100
  export type BaseVersionSchema = z.infer<typeof baseVersionSchema>;
29
101
  export declare const nonRecursiveVersionSchema: z.ZodObject<{
102
+ thumbnail: z.ZodOptional<z.ZodObject<Pick<{
103
+ preset: z.ZodOptional<z.ZodEnum<["classic", "headline", "minimal"]>>;
104
+ appearance: z.ZodOptional<z.ZodEnum<[import("../thumbnails.js").ThumbnailAppearance.Light, import("../thumbnails.js").ThumbnailAppearance.Dark]>>;
105
+ surface: z.ZodOptional<z.ZodEnum<["neutral", "brand"]>>;
106
+ background: z.ZodOptional<z.ZodString>;
107
+ fonts: z.ZodOptional<z.ZodEffects<z.ZodObject<Pick<{
108
+ family: z.ZodString;
109
+ weight: z.ZodOptional<z.ZodNumber>;
110
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
111
+ format: z.ZodOptional<z.ZodEnum<["woff", "woff2"]>>;
112
+ }, "family"> & {
113
+ source: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
114
+ format: z.ZodOptional<z.ZodEnum<["woff", "ttf", "otf"]>>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ family: string;
117
+ source?: string | undefined;
118
+ format?: "woff" | "ttf" | "otf" | undefined;
119
+ }, {
120
+ family: string;
121
+ source?: string | undefined;
122
+ format?: "woff" | "ttf" | "otf" | undefined;
123
+ }>, {
124
+ family: string;
125
+ source?: string | undefined;
126
+ format?: "woff" | "ttf" | "otf" | undefined;
127
+ }, {
128
+ family: string;
129
+ source?: string | undefined;
130
+ format?: "woff" | "ttf" | "otf" | undefined;
131
+ }>>;
132
+ eyebrow: z.ZodOptional<z.ZodObject<{
133
+ source: z.ZodOptional<z.ZodEnum<["group", "tab", "dropdown", "anchor", "language", "product", "version", "item", "none"]>>;
134
+ style: z.ZodOptional<z.ZodEnum<["plain", "bar", "pill"]>>;
135
+ color: z.ZodOptional<z.ZodString>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ color?: string | undefined;
138
+ style?: "pill" | "plain" | "bar" | undefined;
139
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
140
+ }, {
141
+ color?: string | undefined;
142
+ style?: "pill" | "plain" | "bar" | undefined;
143
+ source?: "version" | "none" | "group" | "tab" | "dropdown" | "anchor" | "language" | "product" | "item" | undefined;
144
+ }>>;
145
+ }, "background" | "preset" | "appearance" | "surface"> & {
146
+ eyebrow: z.ZodOptional<z.ZodString>;
147
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
154
+ background?: string | undefined;
155
+ eyebrow?: string | undefined;
156
+ preset?: "classic" | "headline" | "minimal" | undefined;
157
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
158
+ surface?: "neutral" | "brand" | undefined;
159
+ }>>;
30
160
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
31
161
  version: z.ZodString;
32
162
  graphql: z.ZodOptional<z.ZodNever>;
@@ -45,6 +175,13 @@ export declare const nonRecursiveVersionSchema: z.ZodObject<{
45
175
  tag?: string | undefined;
46
176
  hidden?: boolean | undefined;
47
177
  sdk?: undefined;
178
+ thumbnail?: {
179
+ background?: string | undefined;
180
+ eyebrow?: string | undefined;
181
+ preset?: "classic" | "headline" | "minimal" | undefined;
182
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
183
+ surface?: "neutral" | "brand" | undefined;
184
+ } | undefined;
48
185
  }, {
49
186
  version: string;
50
187
  href: string;
@@ -54,6 +191,13 @@ export declare const nonRecursiveVersionSchema: z.ZodObject<{
54
191
  tag?: string | undefined;
55
192
  hidden?: boolean | undefined;
56
193
  sdk?: undefined;
194
+ thumbnail?: {
195
+ background?: string | undefined;
196
+ eyebrow?: string | undefined;
197
+ preset?: "classic" | "headline" | "minimal" | undefined;
198
+ appearance?: import("../thumbnails.js").ThumbnailAppearance | undefined;
199
+ surface?: "neutral" | "brand" | undefined;
200
+ } | undefined;
57
201
  }>;
58
202
  export declare const versionSchema: z.ZodType<VersionNavigation<'default'>>;
59
203
  export declare const decoratedVersionSchema: z.ZodType<VersionNavigation<'decorated'>>;
@@ -5,6 +5,7 @@ import { hiddenSchema } from '../reusable/hidden.js';
5
5
  import { hrefSchema } from '../reusable/href.js';
6
6
  import { openApiSchema } from '../reusable/openapi.js';
7
7
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
8
+ import { thumbnailField } from '../thumbnails.js';
8
9
  import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
9
10
  import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
10
11
  import { globalSchema } from './global.js';
@@ -13,7 +14,7 @@ import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
13
14
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
14
15
  import { decoratedProductsSchema, productsSchema } from './products.js';
15
16
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
16
- export const baseVersionSchema = z.object(Object.assign({ version: z.string().nonempty().describe('The name of the version'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this version is the default version'), tag: z.string().optional().describe('Tag for the version'), hidden: hiddenSchema.optional() }, directoryField));
17
+ export const baseVersionSchema = z.object(Object.assign(Object.assign({ version: z.string().nonempty().describe('The name of the version'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this version is the default version'), tag: z.string().optional().describe('Tag for the version'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
17
18
  export const nonRecursiveVersionSchema = baseVersionSchema.extend({ href: hrefSchema });
18
19
  export const versionSchema = z.union([
19
20
  baseVersionSchema.extend({