@mintlify/validation 0.1.249 → 0.1.251

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 (24) hide show
  1. package/dist/mint-config/schemas/v2/index.d.ts +945 -410
  2. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +232 -19
  3. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +6 -2
  4. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +160 -19
  5. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +6 -2
  6. package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +0 -25
  7. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +364 -110
  8. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +88 -19
  9. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +6 -2
  10. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +160 -19
  11. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +6 -2
  12. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +88 -19
  13. package/dist/mint-config/schemas/v2/properties/navigation/version.js +6 -2
  14. package/dist/mint-config/schemas/v2/themes/linden.d.ts +182 -75
  15. package/dist/mint-config/schemas/v2/themes/maple.d.ts +182 -75
  16. package/dist/mint-config/schemas/v2/themes/mint.d.ts +182 -75
  17. package/dist/mint-config/schemas/v2/themes/palm.d.ts +182 -75
  18. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +182 -55
  19. package/dist/mint-config/schemas/v2/themes/willow.d.ts +182 -75
  20. package/dist/mint-config/upgrades/updateNavigationToDocsConfig.d.ts +2 -2
  21. package/dist/mint-config/upgrades/updateNavigationToDocsConfig.js +9 -7
  22. package/dist/mint-config/upgrades/upgradeToDocsConfig.d.ts +2 -2
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/package.json +3 -3
@@ -12,7 +12,6 @@ export declare const nonRecursiveDropdownSchema: z.ZodIntersection<z.ZodObject<{
12
12
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
13
13
  }>]>>;
14
14
  hidden: z.ZodOptional<z.ZodBoolean>;
15
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
16
15
  }, "strip", z.ZodTypeAny, {
17
16
  dropdown: string;
18
17
  icon?: string | {
@@ -20,7 +19,6 @@ export declare const nonRecursiveDropdownSchema: z.ZodIntersection<z.ZodObject<{
20
19
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
21
20
  } | undefined;
22
21
  hidden?: boolean | undefined;
23
- openapi?: string | string[] | undefined;
24
22
  }, {
25
23
  dropdown: string;
26
24
  icon?: string | {
@@ -28,7 +26,6 @@ export declare const nonRecursiveDropdownSchema: z.ZodIntersection<z.ZodObject<{
28
26
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
29
27
  } | undefined;
30
28
  hidden?: boolean | undefined;
31
- openapi?: string | string[] | undefined;
32
29
  }>, z.ZodObject<{
33
30
  href: z.ZodString;
34
31
  }, "strip", z.ZodTypeAny, {
@@ -49,7 +46,6 @@ export declare const dropdownSchema: z.ZodIntersection<z.ZodObject<{
49
46
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
50
47
  }>]>>;
51
48
  hidden: z.ZodOptional<z.ZodBoolean>;
52
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
53
49
  }, "strip", z.ZodTypeAny, {
54
50
  dropdown: string;
55
51
  icon?: string | {
@@ -57,7 +53,6 @@ export declare const dropdownSchema: z.ZodIntersection<z.ZodObject<{
57
53
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
58
54
  } | undefined;
59
55
  hidden?: boolean | undefined;
60
- openapi?: string | string[] | undefined;
61
56
  }, {
62
57
  dropdown: string;
63
58
  icon?: string | {
@@ -65,15 +60,13 @@ export declare const dropdownSchema: z.ZodIntersection<z.ZodObject<{
65
60
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
66
61
  } | undefined;
67
62
  hidden?: boolean | undefined;
68
- openapi?: string | string[] | undefined;
69
63
  }>, z.ZodUnion<[z.ZodObject<{
70
64
  href: z.ZodString;
71
65
  }, "strip", z.ZodTypeAny, {
72
66
  href: string;
73
67
  }, {
74
68
  href: string;
75
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>;
76
- export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
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<{
77
70
  dropdown: z.ZodString;
78
71
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
79
72
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -86,7 +79,6 @@ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
86
79
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
87
80
  }>]>>;
88
81
  hidden: z.ZodOptional<z.ZodBoolean>;
89
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
90
82
  }, "strip", z.ZodTypeAny, {
91
83
  dropdown: string;
92
84
  icon?: string | {
@@ -94,7 +86,6 @@ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
94
86
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
95
87
  } | undefined;
96
88
  hidden?: boolean | undefined;
97
- openapi?: string | string[] | undefined;
98
89
  }, {
99
90
  dropdown: string;
100
91
  icon?: string | {
@@ -102,15 +93,53 @@ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
102
93
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
103
94
  } | undefined;
104
95
  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">]>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ openapi?: string | string[] | undefined;
106
+ }, {
105
107
  openapi?: string | string[] | undefined;
108
+ }>>;
109
+ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
110
+ dropdown: z.ZodString;
111
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
112
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
113
+ name: z.ZodEffects<z.ZodString, string, string>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ name: string;
116
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
117
+ }, {
118
+ name: string;
119
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
120
+ }>]>>;
121
+ hidden: z.ZodOptional<z.ZodBoolean>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ dropdown: string;
124
+ icon?: string | {
125
+ name: string;
126
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
127
+ } | undefined;
128
+ hidden?: boolean | undefined;
129
+ }, {
130
+ dropdown: string;
131
+ icon?: string | {
132
+ name: string;
133
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
134
+ } | undefined;
135
+ hidden?: boolean | undefined;
106
136
  }>, z.ZodUnion<[z.ZodObject<{
107
137
  href: z.ZodString;
108
138
  }, "strip", z.ZodTypeAny, {
109
139
  href: string;
110
140
  }, {
111
141
  href: string;
112
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>;
113
- export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
142
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
114
143
  dropdown: z.ZodString;
115
144
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
116
145
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -123,7 +152,6 @@ export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
123
152
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
124
153
  }>]>>;
125
154
  hidden: z.ZodOptional<z.ZodBoolean>;
126
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
127
155
  }, "strip", z.ZodTypeAny, {
128
156
  dropdown: string;
129
157
  icon?: string | {
@@ -131,7 +159,6 @@ export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
131
159
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
132
160
  } | undefined;
133
161
  hidden?: boolean | undefined;
134
- openapi?: string | string[] | undefined;
135
162
  }, {
136
163
  dropdown: string;
137
164
  icon?: string | {
@@ -139,15 +166,53 @@ export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
139
166
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
140
167
  } | undefined;
141
168
  hidden?: boolean | undefined;
169
+ }>, z.ZodUnion<[z.ZodObject<{
170
+ href: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ href: string;
173
+ }, {
174
+ href: string;
175
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
176
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
177
+ }, "strip", z.ZodTypeAny, {
142
178
  openapi?: string | string[] | undefined;
179
+ }, {
180
+ openapi?: string | string[] | undefined;
181
+ }>>;
182
+ export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
183
+ dropdown: z.ZodString;
184
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
185
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
186
+ name: z.ZodEffects<z.ZodString, string, string>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ name: string;
189
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
190
+ }, {
191
+ name: string;
192
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
193
+ }>]>>;
194
+ hidden: z.ZodOptional<z.ZodBoolean>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ dropdown: string;
197
+ icon?: string | {
198
+ name: string;
199
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
200
+ } | undefined;
201
+ hidden?: boolean | undefined;
202
+ }, {
203
+ dropdown: string;
204
+ icon?: string | {
205
+ name: string;
206
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
207
+ } | undefined;
208
+ hidden?: boolean | undefined;
143
209
  }>, z.ZodUnion<[z.ZodObject<{
144
210
  href: z.ZodString;
145
211
  }, "strip", z.ZodTypeAny, {
146
212
  href: string;
147
213
  }, {
148
214
  href: string;
149
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, "many">;
150
- export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
215
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
151
216
  dropdown: z.ZodString;
152
217
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
153
218
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -160,7 +225,6 @@ export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.Zo
160
225
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
161
226
  }>]>>;
162
227
  hidden: z.ZodOptional<z.ZodBoolean>;
163
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
164
228
  }, "strip", z.ZodTypeAny, {
165
229
  dropdown: string;
166
230
  icon?: string | {
@@ -168,7 +232,6 @@ export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.Zo
168
232
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
169
233
  } | undefined;
170
234
  hidden?: boolean | undefined;
171
- openapi?: string | string[] | undefined;
172
235
  }, {
173
236
  dropdown: string;
174
237
  icon?: string | {
@@ -176,14 +239,92 @@ export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.Zo
176
239
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
177
240
  } | undefined;
178
241
  hidden?: boolean | undefined;
242
+ }>, z.ZodUnion<[z.ZodObject<{
243
+ href: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ href: string;
246
+ }, {
247
+ href: string;
248
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
249
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
250
+ }, "strip", z.ZodTypeAny, {
179
251
  openapi?: string | string[] | undefined;
252
+ }, {
253
+ openapi?: string | string[] | undefined;
254
+ }>>, "many">;
255
+ export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
256
+ dropdown: z.ZodString;
257
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
258
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
259
+ name: z.ZodEffects<z.ZodString, string, string>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ name: string;
262
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
263
+ }, {
264
+ name: string;
265
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
266
+ }>]>>;
267
+ hidden: z.ZodOptional<z.ZodBoolean>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ dropdown: string;
270
+ icon?: string | {
271
+ name: string;
272
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
273
+ } | undefined;
274
+ hidden?: boolean | undefined;
275
+ }, {
276
+ dropdown: string;
277
+ icon?: string | {
278
+ name: string;
279
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
280
+ } | undefined;
281
+ hidden?: boolean | undefined;
180
282
  }>, z.ZodUnion<[z.ZodObject<{
181
283
  href: z.ZodString;
182
284
  }, "strip", z.ZodTypeAny, {
183
285
  href: string;
184
286
  }, {
185
287
  href: string;
186
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, "many">;
288
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
289
+ dropdown: z.ZodString;
290
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
291
+ style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
292
+ name: z.ZodEffects<z.ZodString, string, string>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ name: string;
295
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
296
+ }, {
297
+ name: string;
298
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
299
+ }>]>>;
300
+ hidden: z.ZodOptional<z.ZodBoolean>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ dropdown: string;
303
+ icon?: string | {
304
+ name: string;
305
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
306
+ } | undefined;
307
+ hidden?: boolean | undefined;
308
+ }, {
309
+ dropdown: string;
310
+ icon?: string | {
311
+ name: string;
312
+ style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
313
+ } | undefined;
314
+ hidden?: boolean | undefined;
315
+ }>, z.ZodUnion<[z.ZodObject<{
316
+ href: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ href: string;
319
+ }, {
320
+ href: string;
321
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
322
+ openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ openapi?: string | string[] | undefined;
325
+ }, {
326
+ openapi?: string | string[] | undefined;
327
+ }>>, "many">;
187
328
  export type DropdownsConfig = z.infer<typeof dropdownsSchema>;
188
329
  export type DropdownConfig = z.infer<typeof dropdownSchema>;
189
330
  export type DecoratedDropdownsConfig = z.infer<typeof decoratedDropdownsSchema>;
@@ -8,9 +8,13 @@ const baseDropdownSchema = z.object({
8
8
  dropdown: z.string().nonempty().describe('The name of the dropdown'),
9
9
  icon: iconSchema.optional(),
10
10
  hidden: hiddenSchema.optional(),
11
- openapi: openApiSchema.optional(),
12
11
  });
13
- const createDropdownSchema = (type) => baseDropdownSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('dropdowns', type)]));
12
+ const createDropdownSchema = (type) => {
13
+ const baseSchema = baseDropdownSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('dropdowns', type)]));
14
+ return type === 'decorated'
15
+ ? baseSchema
16
+ : baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
17
+ };
14
18
  export const nonRecursiveDropdownSchema = baseDropdownSchema.and(z.object({ href: hrefSchema }));
15
19
  export const dropdownSchema = createDropdownSchema('default');
16
20
  export const decoratedDropdownSchema = createDropdownSchema('decorated');
@@ -3,15 +3,12 @@ export declare const globalSchema: z.ZodObject<{
3
3
  languages: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
4
4
  language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
5
5
  hidden: z.ZodOptional<z.ZodBoolean>;
6
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
7
6
  }, "strip", z.ZodTypeAny, {
8
7
  language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
9
8
  hidden?: boolean | undefined;
10
- openapi?: string | string[] | undefined;
11
9
  }, {
12
10
  language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
13
11
  hidden?: boolean | undefined;
14
- openapi?: string | string[] | undefined;
15
12
  }>, z.ZodObject<{
16
13
  href: z.ZodString;
17
14
  }, "strip", z.ZodTypeAny, {
@@ -22,15 +19,12 @@ export declare const globalSchema: z.ZodObject<{
22
19
  versions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
23
20
  version: z.ZodString;
24
21
  hidden: z.ZodOptional<z.ZodBoolean>;
25
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
26
22
  }, "strip", z.ZodTypeAny, {
27
23
  version: string;
28
24
  hidden?: boolean | undefined;
29
- openapi?: string | string[] | undefined;
30
25
  }, {
31
26
  version: string;
32
27
  hidden?: boolean | undefined;
33
- openapi?: string | string[] | undefined;
34
28
  }>, z.ZodObject<{
35
29
  href: z.ZodString;
36
30
  }, "strip", z.ZodTypeAny, {
@@ -51,7 +45,6 @@ export declare const globalSchema: z.ZodObject<{
51
45
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
52
46
  }>]>>;
53
47
  hidden: z.ZodOptional<z.ZodBoolean>;
54
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
55
48
  }, "strip", z.ZodTypeAny, {
56
49
  tab: string;
57
50
  icon?: string | {
@@ -59,7 +52,6 @@ export declare const globalSchema: z.ZodObject<{
59
52
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
60
53
  } | undefined;
61
54
  hidden?: boolean | undefined;
62
- openapi?: string | string[] | undefined;
63
55
  }, {
64
56
  tab: string;
65
57
  icon?: string | {
@@ -67,7 +59,6 @@ export declare const globalSchema: z.ZodObject<{
67
59
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
68
60
  } | undefined;
69
61
  hidden?: boolean | undefined;
70
- openapi?: string | string[] | undefined;
71
62
  }>, z.ZodObject<{
72
63
  href: z.ZodString;
73
64
  }, "strip", z.ZodTypeAny, {
@@ -88,7 +79,6 @@ export declare const globalSchema: z.ZodObject<{
88
79
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
89
80
  }>]>>;
90
81
  hidden: z.ZodOptional<z.ZodBoolean>;
91
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
92
82
  }, "strip", z.ZodTypeAny, {
93
83
  dropdown: string;
94
84
  icon?: string | {
@@ -96,7 +86,6 @@ export declare const globalSchema: z.ZodObject<{
96
86
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
97
87
  } | undefined;
98
88
  hidden?: boolean | undefined;
99
- openapi?: string | string[] | undefined;
100
89
  }, {
101
90
  dropdown: string;
102
91
  icon?: string | {
@@ -104,7 +93,6 @@ export declare const globalSchema: z.ZodObject<{
104
93
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
105
94
  } | undefined;
106
95
  hidden?: boolean | undefined;
107
- openapi?: string | string[] | undefined;
108
96
  }>, z.ZodObject<{
109
97
  href: z.ZodString;
110
98
  }, "strip", z.ZodTypeAny, {
@@ -135,7 +123,6 @@ export declare const globalSchema: z.ZodObject<{
135
123
  dark?: string | undefined;
136
124
  }>>;
137
125
  hidden: z.ZodOptional<z.ZodBoolean>;
138
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
139
126
  }, "strip", z.ZodTypeAny, {
140
127
  anchor: string;
141
128
  icon?: string | {
@@ -147,7 +134,6 @@ export declare const globalSchema: z.ZodObject<{
147
134
  dark?: string | undefined;
148
135
  } | undefined;
149
136
  hidden?: boolean | undefined;
150
- openapi?: string | string[] | undefined;
151
137
  }, {
152
138
  anchor: string;
153
139
  icon?: string | {
@@ -159,7 +145,6 @@ export declare const globalSchema: z.ZodObject<{
159
145
  dark?: string | undefined;
160
146
  } | undefined;
161
147
  hidden?: boolean | undefined;
162
- openapi?: string | string[] | undefined;
163
148
  }>, z.ZodObject<{
164
149
  href: z.ZodString;
165
150
  }, "strip", z.ZodTypeAny, {
@@ -171,14 +156,12 @@ export declare const globalSchema: z.ZodObject<{
171
156
  languages?: ({
172
157
  language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
173
158
  hidden?: boolean | undefined;
174
- openapi?: string | string[] | undefined;
175
159
  } & {
176
160
  href: string;
177
161
  })[] | undefined;
178
162
  versions?: ({
179
163
  version: string;
180
164
  hidden?: boolean | undefined;
181
- openapi?: string | string[] | undefined;
182
165
  } & {
183
166
  href: string;
184
167
  })[] | undefined;
@@ -189,7 +172,6 @@ export declare const globalSchema: z.ZodObject<{
189
172
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
190
173
  } | undefined;
191
174
  hidden?: boolean | undefined;
192
- openapi?: string | string[] | undefined;
193
175
  } & {
194
176
  href: string;
195
177
  })[] | undefined;
@@ -200,7 +182,6 @@ export declare const globalSchema: z.ZodObject<{
200
182
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
201
183
  } | undefined;
202
184
  hidden?: boolean | undefined;
203
- openapi?: string | string[] | undefined;
204
185
  } & {
205
186
  href: string;
206
187
  })[] | undefined;
@@ -215,7 +196,6 @@ export declare const globalSchema: z.ZodObject<{
215
196
  dark?: string | undefined;
216
197
  } | undefined;
217
198
  hidden?: boolean | undefined;
218
- openapi?: string | string[] | undefined;
219
199
  } & {
220
200
  href: string;
221
201
  })[] | undefined;
@@ -223,14 +203,12 @@ export declare const globalSchema: z.ZodObject<{
223
203
  languages?: ({
224
204
  language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
225
205
  hidden?: boolean | undefined;
226
- openapi?: string | string[] | undefined;
227
206
  } & {
228
207
  href: string;
229
208
  })[] | undefined;
230
209
  versions?: ({
231
210
  version: string;
232
211
  hidden?: boolean | undefined;
233
- openapi?: string | string[] | undefined;
234
212
  } & {
235
213
  href: string;
236
214
  })[] | undefined;
@@ -241,7 +219,6 @@ export declare const globalSchema: z.ZodObject<{
241
219
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
242
220
  } | undefined;
243
221
  hidden?: boolean | undefined;
244
- openapi?: string | string[] | undefined;
245
222
  } & {
246
223
  href: string;
247
224
  })[] | undefined;
@@ -252,7 +229,6 @@ export declare const globalSchema: z.ZodObject<{
252
229
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
253
230
  } | undefined;
254
231
  hidden?: boolean | undefined;
255
- openapi?: string | string[] | undefined;
256
232
  } & {
257
233
  href: string;
258
234
  })[] | undefined;
@@ -267,7 +243,6 @@ export declare const globalSchema: z.ZodObject<{
267
243
  dark?: string | undefined;
268
244
  } | undefined;
269
245
  hidden?: boolean | undefined;
270
- openapi?: string | string[] | undefined;
271
246
  } & {
272
247
  href: string;
273
248
  })[] | undefined;