@mintlify/validation 0.1.227 → 0.1.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/dist/index.js +4 -11
  3. package/dist/mint-config/schemas/{anchors.d.ts → v1/anchors.d.ts} +4 -4
  4. package/dist/mint-config/schemas/{config.d.ts → v1/config.d.ts} +8 -8
  5. package/dist/mint-config/schemas/{navigation.d.ts → v1/navigation.d.ts} +2 -2
  6. package/dist/mint-config/schemas/{navigation.js → v1/navigation.js} +1 -1
  7. package/dist/mint-config/schemas/{openapiString.js → v1/openapiString.js} +1 -1
  8. package/dist/mint-config/schemas/v2/index.d.ts +6123 -0
  9. package/dist/mint-config/schemas/v2/index.js +11 -0
  10. package/dist/mint-config/schemas/v2/properties/$schema.d.ts +2 -0
  11. package/dist/mint-config/schemas/v2/properties/$schema.js +7 -0
  12. package/dist/mint-config/schemas/v2/properties/api.d.ts +36 -0
  13. package/dist/mint-config/schemas/v2/properties/api.js +29 -0
  14. package/dist/mint-config/schemas/v2/properties/appearance.d.ts +11 -0
  15. package/dist/mint-config/schemas/v2/properties/appearance.js +10 -0
  16. package/dist/mint-config/schemas/v2/properties/background.d.ts +44 -0
  17. package/dist/mint-config/schemas/v2/properties/background.js +21 -0
  18. package/dist/mint-config/schemas/v2/properties/colors.d.ts +14 -0
  19. package/dist/mint-config/schemas/v2/properties/colors.js +10 -0
  20. package/dist/mint-config/schemas/v2/properties/description.d.ts +2 -0
  21. package/dist/mint-config/schemas/v2/properties/description.js +5 -0
  22. package/dist/mint-config/schemas/v2/properties/favicon.d.ts +11 -0
  23. package/dist/mint-config/schemas/v2/properties/favicon.js +16 -0
  24. package/dist/mint-config/schemas/v2/properties/feedback.d.ts +14 -0
  25. package/dist/mint-config/schemas/v2/properties/feedback.js +8 -0
  26. package/dist/mint-config/schemas/v2/properties/font.d.ts +132 -0
  27. package/dist/mint-config/schemas/v2/properties/font.js +33 -0
  28. package/dist/mint-config/schemas/v2/properties/footer.d.ts +83 -0
  29. package/dist/mint-config/schemas/v2/properties/footer.js +32 -0
  30. package/dist/mint-config/schemas/v2/properties/icons.d.ts +8 -0
  31. package/dist/mint-config/schemas/v2/properties/icons.js +6 -0
  32. package/dist/mint-config/schemas/v2/properties/integrations.d.ts +241 -0
  33. package/dist/mint-config/schemas/v2/properties/integrations.js +85 -0
  34. package/dist/mint-config/schemas/v2/properties/legacy.d.ts +11 -0
  35. package/dist/mint-config/schemas/v2/properties/legacy.js +9 -0
  36. package/dist/mint-config/schemas/v2/properties/logo.d.ts +14 -0
  37. package/dist/mint-config/schemas/v2/properties/logo.js +21 -0
  38. package/dist/mint-config/schemas/v2/properties/name.d.ts +2 -0
  39. package/dist/mint-config/schemas/v2/properties/name.js +6 -0
  40. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +2 -0
  41. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +30 -0
  42. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +2 -0
  43. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +28 -0
  44. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +87 -0
  45. package/dist/mint-config/schemas/v2/properties/navigation/groups.js +16 -0
  46. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +295 -0
  47. package/dist/mint-config/schemas/v2/properties/navigation/index.js +19 -0
  48. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +125 -0
  49. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +32 -0
  50. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +14 -0
  51. package/dist/mint-config/schemas/v2/properties/navigation/pages.js +5 -0
  52. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +2 -0
  53. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +28 -0
  54. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +2 -0
  55. package/dist/mint-config/schemas/v2/properties/navigation/version.js +26 -0
  56. package/dist/mint-config/schemas/v2/properties/redirects.d.ts +22 -0
  57. package/dist/mint-config/schemas/v2/properties/redirects.js +16 -0
  58. package/dist/mint-config/schemas/v2/properties/reusable/color.d.ts +12 -0
  59. package/dist/mint-config/schemas/v2/properties/reusable/color.js +11 -0
  60. package/dist/mint-config/schemas/v2/properties/reusable/hidden.d.ts +2 -0
  61. package/dist/mint-config/schemas/v2/properties/reusable/hidden.js +2 -0
  62. package/dist/mint-config/schemas/v2/properties/reusable/href.d.ts +2 -0
  63. package/dist/mint-config/schemas/v2/properties/reusable/href.js +5 -0
  64. package/dist/mint-config/schemas/v2/properties/reusable/icon.d.ts +11 -0
  65. package/dist/mint-config/schemas/v2/properties/reusable/icon.js +22 -0
  66. package/dist/mint-config/schemas/v2/properties/reusable/openapi.d.ts +3 -0
  67. package/dist/mint-config/schemas/v2/properties/reusable/openapi.js +35 -0
  68. package/dist/mint-config/schemas/v2/properties/reusable/page.d.ts +2 -0
  69. package/dist/mint-config/schemas/v2/properties/reusable/page.js +7 -0
  70. package/dist/mint-config/schemas/v2/properties/search.d.ts +8 -0
  71. package/dist/mint-config/schemas/v2/properties/search.js +9 -0
  72. package/dist/mint-config/schemas/v2/properties/seo.d.ts +12 -0
  73. package/dist/mint-config/schemas/v2/properties/seo.js +14 -0
  74. package/dist/mint-config/schemas/v2/properties/styling.d.ts +14 -0
  75. package/dist/mint-config/schemas/v2/properties/styling.js +16 -0
  76. package/dist/mint-config/schemas/v2/properties/topbar.d.ts +61 -0
  77. package/dist/mint-config/schemas/v2/properties/topbar.js +22 -0
  78. package/dist/mint-config/schemas/v2/themes/mint.d.ts +1532 -0
  79. package/dist/mint-config/schemas/v2/themes/mint.js +3 -0
  80. package/dist/mint-config/schemas/v2/themes/prism.d.ts +1532 -0
  81. package/dist/mint-config/schemas/v2/themes/prism.js +3 -0
  82. package/dist/mint-config/schemas/v2/themes/quill.d.ts +1532 -0
  83. package/dist/mint-config/schemas/v2/themes/quill.js +3 -0
  84. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +956 -0
  85. package/dist/mint-config/schemas/v2/themes/reusable/index.js +46 -0
  86. package/dist/mint-config/schemas/v2/themes/venus.d.ts +1532 -0
  87. package/dist/mint-config/schemas/v2/themes/venus.js +3 -0
  88. package/dist/mint-config/validateMintConfig.d.ts +4 -4
  89. package/dist/mint-config/validateMintConfig.js +1 -1
  90. package/dist/mint-config/warnings/aggregateWarnings.d.ts +1 -1
  91. package/dist/tsconfig.build.tsbuildinfo +1 -1
  92. package/package.json +2 -2
  93. /package/dist/mint-config/schemas/{analytics.d.ts → v1/analytics.d.ts} +0 -0
  94. /package/dist/mint-config/schemas/{analytics.js → v1/analytics.js} +0 -0
  95. /package/dist/mint-config/schemas/{anchorColors.d.ts → v1/anchorColors.d.ts} +0 -0
  96. /package/dist/mint-config/schemas/{anchorColors.js → v1/anchorColors.js} +0 -0
  97. /package/dist/mint-config/schemas/{anchors.js → v1/anchors.js} +0 -0
  98. /package/dist/mint-config/schemas/{apiReference.d.ts → v1/apiReference.d.ts} +0 -0
  99. /package/dist/mint-config/schemas/{apiReference.js → v1/apiReference.js} +0 -0
  100. /package/dist/mint-config/schemas/{background.d.ts → v1/background.d.ts} +0 -0
  101. /package/dist/mint-config/schemas/{background.js → v1/background.js} +0 -0
  102. /package/dist/mint-config/schemas/{basics.d.ts → v1/basics.d.ts} +0 -0
  103. /package/dist/mint-config/schemas/{basics.js → v1/basics.js} +0 -0
  104. /package/dist/mint-config/schemas/{colors.d.ts → v1/colors.d.ts} +0 -0
  105. /package/dist/mint-config/schemas/{colors.js → v1/colors.js} +0 -0
  106. /package/dist/mint-config/schemas/{config.js → v1/config.js} +0 -0
  107. /package/dist/mint-config/schemas/{favicon.d.ts → v1/favicon.d.ts} +0 -0
  108. /package/dist/mint-config/schemas/{favicon.js → v1/favicon.js} +0 -0
  109. /package/dist/mint-config/schemas/{font.d.ts → v1/font.d.ts} +0 -0
  110. /package/dist/mint-config/schemas/{font.js → v1/font.js} +0 -0
  111. /package/dist/mint-config/schemas/{footer.d.ts → v1/footer.d.ts} +0 -0
  112. /package/dist/mint-config/schemas/{footer.js → v1/footer.js} +0 -0
  113. /package/dist/mint-config/schemas/{hexColor.d.ts → v1/hexColor.d.ts} +0 -0
  114. /package/dist/mint-config/schemas/{hexColor.js → v1/hexColor.js} +0 -0
  115. /package/dist/mint-config/schemas/{integrations.d.ts → v1/integrations.d.ts} +0 -0
  116. /package/dist/mint-config/schemas/{integrations.js → v1/integrations.js} +0 -0
  117. /package/dist/mint-config/schemas/{openapiAnchorOrTab.d.ts → v1/openapiAnchorOrTab.d.ts} +0 -0
  118. /package/dist/mint-config/schemas/{openapiAnchorOrTab.js → v1/openapiAnchorOrTab.js} +0 -0
  119. /package/dist/mint-config/schemas/{openapiString.d.ts → v1/openapiString.d.ts} +0 -0
  120. /package/dist/mint-config/schemas/{seo.d.ts → v1/seo.d.ts} +0 -0
  121. /package/dist/mint-config/schemas/{seo.js → v1/seo.js} +0 -0
  122. /package/dist/mint-config/schemas/{sidebar.d.ts → v1/sidebar.d.ts} +0 -0
  123. /package/dist/mint-config/schemas/{sidebar.js → v1/sidebar.js} +0 -0
  124. /package/dist/mint-config/schemas/{tabs.d.ts → v1/tabs.d.ts} +0 -0
  125. /package/dist/mint-config/schemas/{tabs.js → v1/tabs.js} +0 -0
  126. /package/dist/mint-config/schemas/{topbar.d.ts → v1/topbar.d.ts} +0 -0
  127. /package/dist/mint-config/schemas/{topbar.js → v1/topbar.js} +0 -0
  128. /package/dist/mint-config/schemas/{versions.d.ts → v1/versions.d.ts} +0 -0
  129. /package/dist/mint-config/schemas/{versions.js → v1/versions.js} +0 -0
@@ -0,0 +1,295 @@
1
+ import { z } from 'zod';
2
+ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
3
+ languages: z.ZodArray<z.ZodIntersection<z.ZodObject<{
4
+ language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
5
+ hidden: z.ZodOptional<z.ZodBoolean>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
8
+ hidden?: boolean | undefined;
9
+ }, {
10
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
11
+ hidden?: boolean | undefined;
12
+ }>, z.ZodUnion<[z.ZodObject<{
13
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ openapi: (string | string[]) & (string | string[] | undefined);
16
+ }, {
17
+ openapi: (string | string[]) & (string | string[] | undefined);
18
+ }>, z.ZodObject<{
19
+ href: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ href: string;
22
+ }, {
23
+ href: string;
24
+ }>, z.ZodObject<{
25
+ versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ versions: any[];
28
+ }, {
29
+ versions: any[];
30
+ }>, z.ZodObject<{
31
+ tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ tabs: any[];
34
+ }, {
35
+ tabs: any[];
36
+ }>, z.ZodObject<{
37
+ dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
38
+ }, "strip", z.ZodTypeAny, {
39
+ dropdowns: any[];
40
+ }, {
41
+ dropdowns: any[];
42
+ }>, z.ZodObject<{
43
+ anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
44
+ }, "strip", z.ZodTypeAny, {
45
+ anchors: any[];
46
+ }, {
47
+ anchors: any[];
48
+ }>, z.ZodObject<{
49
+ groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
50
+ group: z.ZodString;
51
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
52
+ style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
53
+ name: z.ZodEffects<z.ZodString, string, string>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ name: string;
56
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
57
+ }, {
58
+ name: string;
59
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
60
+ }>]>>;
61
+ hidden: z.ZodOptional<z.ZodBoolean>;
62
+ root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ group: string;
65
+ icon?: string | {
66
+ name: string;
67
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
68
+ } | undefined;
69
+ hidden?: boolean | undefined;
70
+ root?: string | undefined;
71
+ }, {
72
+ group: string;
73
+ icon?: string | {
74
+ name: string;
75
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
76
+ } | undefined;
77
+ hidden?: boolean | undefined;
78
+ root?: string | undefined;
79
+ }>, z.ZodUnion<[z.ZodObject<{
80
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ openapi: (string | string[]) & (string | string[] | undefined);
83
+ }, {
84
+ openapi: (string | string[]) & (string | string[] | undefined);
85
+ }>, z.ZodObject<{
86
+ pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
87
+ }, "strip", z.ZodTypeAny, {
88
+ pages: import("./pages.js").Page[];
89
+ }, {
90
+ pages: import("./pages.js").Page[];
91
+ }>]>>, "many">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ groups: ({
94
+ group: string;
95
+ icon?: string | {
96
+ name: string;
97
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
98
+ } | undefined;
99
+ hidden?: boolean | undefined;
100
+ root?: string | undefined;
101
+ } & ({
102
+ openapi: (string | string[]) & (string | string[] | undefined);
103
+ } | {
104
+ pages: import("./pages.js").Page[];
105
+ }))[];
106
+ }, {
107
+ groups: ({
108
+ group: string;
109
+ icon?: string | {
110
+ name: string;
111
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
112
+ } | undefined;
113
+ hidden?: boolean | undefined;
114
+ root?: string | undefined;
115
+ } & ({
116
+ openapi: (string | string[]) & (string | string[] | undefined);
117
+ } | {
118
+ pages: import("./pages.js").Page[];
119
+ }))[];
120
+ }>, z.ZodObject<{
121
+ pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
122
+ }, "strip", z.ZodTypeAny, {
123
+ pages: import("./pages.js").Page[];
124
+ }, {
125
+ pages: import("./pages.js").Page[];
126
+ }>]>>, "many">;
127
+ }, "strip", z.ZodTypeAny, {
128
+ languages: ({
129
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
130
+ hidden?: boolean | undefined;
131
+ } & ({
132
+ openapi: (string | string[]) & (string | string[] | undefined);
133
+ } | {
134
+ href: string;
135
+ } | {
136
+ versions: any[];
137
+ } | {
138
+ tabs: any[];
139
+ } | {
140
+ dropdowns: any[];
141
+ } | {
142
+ anchors: any[];
143
+ } | {
144
+ groups: ({
145
+ group: string;
146
+ icon?: string | {
147
+ name: string;
148
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
149
+ } | undefined;
150
+ hidden?: boolean | undefined;
151
+ root?: string | undefined;
152
+ } & ({
153
+ openapi: (string | string[]) & (string | string[] | undefined);
154
+ } | {
155
+ pages: import("./pages.js").Page[];
156
+ }))[];
157
+ } | {
158
+ pages: import("./pages.js").Page[];
159
+ }))[];
160
+ }, {
161
+ languages: ({
162
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
163
+ hidden?: boolean | undefined;
164
+ } & ({
165
+ openapi: (string | string[]) & (string | string[] | undefined);
166
+ } | {
167
+ href: string;
168
+ } | {
169
+ versions: any[];
170
+ } | {
171
+ tabs: any[];
172
+ } | {
173
+ dropdowns: any[];
174
+ } | {
175
+ anchors: any[];
176
+ } | {
177
+ groups: ({
178
+ group: string;
179
+ icon?: string | {
180
+ name: string;
181
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
182
+ } | undefined;
183
+ hidden?: boolean | undefined;
184
+ root?: string | undefined;
185
+ } & ({
186
+ openapi: (string | string[]) & (string | string[] | undefined);
187
+ } | {
188
+ pages: import("./pages.js").Page[];
189
+ }))[];
190
+ } | {
191
+ pages: import("./pages.js").Page[];
192
+ }))[];
193
+ }>, z.ZodObject<{
194
+ versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
195
+ }, "strip", z.ZodTypeAny, {
196
+ versions: any[];
197
+ }, {
198
+ versions: any[];
199
+ }>, z.ZodObject<{
200
+ tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
201
+ }, "strip", z.ZodTypeAny, {
202
+ tabs: any[];
203
+ }, {
204
+ tabs: any[];
205
+ }>, z.ZodObject<{
206
+ dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
207
+ }, "strip", z.ZodTypeAny, {
208
+ dropdowns: any[];
209
+ }, {
210
+ dropdowns: any[];
211
+ }>, z.ZodObject<{
212
+ anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
213
+ }, "strip", z.ZodTypeAny, {
214
+ anchors: any[];
215
+ }, {
216
+ anchors: any[];
217
+ }>, z.ZodObject<{
218
+ groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
219
+ group: z.ZodString;
220
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
221
+ style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
222
+ name: z.ZodEffects<z.ZodString, string, string>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ name: string;
225
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
226
+ }, {
227
+ name: string;
228
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
229
+ }>]>>;
230
+ hidden: z.ZodOptional<z.ZodBoolean>;
231
+ root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ group: string;
234
+ icon?: string | {
235
+ name: string;
236
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
237
+ } | undefined;
238
+ hidden?: boolean | undefined;
239
+ root?: string | undefined;
240
+ }, {
241
+ group: string;
242
+ icon?: string | {
243
+ name: string;
244
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
245
+ } | undefined;
246
+ hidden?: boolean | undefined;
247
+ root?: string | undefined;
248
+ }>, z.ZodUnion<[z.ZodObject<{
249
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ openapi: (string | string[]) & (string | string[] | undefined);
252
+ }, {
253
+ openapi: (string | string[]) & (string | string[] | undefined);
254
+ }>, z.ZodObject<{
255
+ pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
256
+ }, "strip", z.ZodTypeAny, {
257
+ pages: import("./pages.js").Page[];
258
+ }, {
259
+ pages: import("./pages.js").Page[];
260
+ }>]>>, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ groups: ({
263
+ group: string;
264
+ icon?: string | {
265
+ name: string;
266
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
267
+ } | undefined;
268
+ hidden?: boolean | undefined;
269
+ root?: string | undefined;
270
+ } & ({
271
+ openapi: (string | string[]) & (string | string[] | undefined);
272
+ } | {
273
+ pages: import("./pages.js").Page[];
274
+ }))[];
275
+ }, {
276
+ groups: ({
277
+ group: string;
278
+ icon?: string | {
279
+ name: string;
280
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
281
+ } | undefined;
282
+ hidden?: boolean | undefined;
283
+ root?: string | undefined;
284
+ } & ({
285
+ openapi: (string | string[]) & (string | string[] | undefined);
286
+ } | {
287
+ pages: import("./pages.js").Page[];
288
+ }))[];
289
+ }>, z.ZodObject<{
290
+ pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
291
+ }, "strip", z.ZodTypeAny, {
292
+ pages: import("./pages.js").Page[];
293
+ }, {
294
+ pages: import("./pages.js").Page[];
295
+ }>]>;
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { anchorsSchema } from './anchors.js';
3
+ import { dropdownsSchema } from './dropdown.js';
4
+ import { groupsSchema } from './groups.js';
5
+ import { languagesSchema } from './languages.js';
6
+ import { pagesSchema } from './pages.js';
7
+ import { tabsSchema } from './tabs.js';
8
+ import { versionsSchema } from './version.js';
9
+ export const navigationSchema = z
10
+ .union([
11
+ z.object({ languages: languagesSchema }),
12
+ z.object({ versions: versionsSchema }),
13
+ z.object({ tabs: tabsSchema }),
14
+ z.object({ dropdowns: dropdownsSchema }),
15
+ z.object({ anchors: anchorsSchema }),
16
+ z.object({ groups: groupsSchema }),
17
+ z.object({ pages: pagesSchema }),
18
+ ])
19
+ .describe('The navigation structure of the content');
@@ -0,0 +1,125 @@
1
+ import { z } from 'zod';
2
+ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
3
+ language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
4
+ hidden: z.ZodOptional<z.ZodBoolean>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
7
+ hidden?: boolean | undefined;
8
+ }, {
9
+ language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
10
+ hidden?: boolean | undefined;
11
+ }>, z.ZodUnion<[z.ZodObject<{
12
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ openapi: (string | string[]) & (string | string[] | undefined);
15
+ }, {
16
+ openapi: (string | string[]) & (string | string[] | undefined);
17
+ }>, z.ZodObject<{
18
+ href: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ href: string;
21
+ }, {
22
+ href: string;
23
+ }>, z.ZodObject<{
24
+ versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ versions: any[];
27
+ }, {
28
+ versions: any[];
29
+ }>, z.ZodObject<{
30
+ tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ tabs: any[];
33
+ }, {
34
+ tabs: any[];
35
+ }>, z.ZodObject<{
36
+ dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
37
+ }, "strip", z.ZodTypeAny, {
38
+ dropdowns: any[];
39
+ }, {
40
+ dropdowns: any[];
41
+ }>, z.ZodObject<{
42
+ anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
43
+ }, "strip", z.ZodTypeAny, {
44
+ anchors: any[];
45
+ }, {
46
+ anchors: any[];
47
+ }>, z.ZodObject<{
48
+ groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
49
+ group: z.ZodString;
50
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
51
+ style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
52
+ name: z.ZodEffects<z.ZodString, string, string>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ name: string;
55
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
56
+ }, {
57
+ name: string;
58
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
59
+ }>]>>;
60
+ hidden: z.ZodOptional<z.ZodBoolean>;
61
+ root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ group: string;
64
+ icon?: string | {
65
+ name: string;
66
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
67
+ } | undefined;
68
+ hidden?: boolean | undefined;
69
+ root?: string | undefined;
70
+ }, {
71
+ group: string;
72
+ icon?: string | {
73
+ name: string;
74
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
75
+ } | undefined;
76
+ hidden?: boolean | undefined;
77
+ root?: string | undefined;
78
+ }>, z.ZodUnion<[z.ZodObject<{
79
+ openapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ openapi: (string | string[]) & (string | string[] | undefined);
82
+ }, {
83
+ openapi: (string | string[]) & (string | string[] | undefined);
84
+ }>, z.ZodObject<{
85
+ pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ pages: import("./pages.js").Page[];
88
+ }, {
89
+ pages: import("./pages.js").Page[];
90
+ }>]>>, "many">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ groups: ({
93
+ group: string;
94
+ icon?: string | {
95
+ name: string;
96
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
97
+ } | undefined;
98
+ hidden?: boolean | undefined;
99
+ root?: string | undefined;
100
+ } & ({
101
+ openapi: (string | string[]) & (string | string[] | undefined);
102
+ } | {
103
+ pages: import("./pages.js").Page[];
104
+ }))[];
105
+ }, {
106
+ groups: ({
107
+ group: string;
108
+ icon?: string | {
109
+ name: string;
110
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
111
+ } | undefined;
112
+ hidden?: boolean | undefined;
113
+ root?: string | undefined;
114
+ } & ({
115
+ openapi: (string | string[]) & (string | string[] | undefined);
116
+ } | {
117
+ pages: import("./pages.js").Page[];
118
+ }))[];
119
+ }>, z.ZodObject<{
120
+ pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ pages: import("./pages.js").Page[];
123
+ }, {
124
+ pages: import("./pages.js").Page[];
125
+ }>]>>, "many">;
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ import { hiddenSchema } from '../reusable/hidden.js';
3
+ import { hrefSchema } from '../reusable/href.js';
4
+ import { openApiSchema } from '../reusable/openapi.js';
5
+ import { anchorsSchema } from './anchors.js';
6
+ import { dropdownsSchema } from './dropdown.js';
7
+ import { groupsSchema } from './groups.js';
8
+ import { pagesSchema } from './pages.js';
9
+ import { tabsSchema } from './tabs.js';
10
+ import { versionsSchema } from './version.js';
11
+ const languageSchema = z
12
+ .object({
13
+ language: z
14
+ .enum(['en', 'cn', 'es', 'fr', 'jp', 'pt', 'pt-BR', 'de'])
15
+ .describe('The name of the language in the ISO 639-1 format'),
16
+ hidden: hiddenSchema.optional(),
17
+ })
18
+ .and(z.union([
19
+ z.object({ openapi: openApiSchema }),
20
+ z.object({ href: hrefSchema }),
21
+ z.object({ versions: versionsSchema }),
22
+ z.object({ tabs: tabsSchema }),
23
+ z.object({ dropdowns: dropdownsSchema }),
24
+ z.object({ anchors: anchorsSchema }),
25
+ z.object({ groups: groupsSchema }),
26
+ z.object({ pages: pagesSchema }),
27
+ ]))
28
+ .describe('Organizing by languages');
29
+ export const languagesSchema = z
30
+ .array(languageSchema)
31
+ .min(1, 'At least one language must be specified')
32
+ .describe('Organizing by languages');
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export type Page = string | Group;
3
+ export type Group = {
4
+ group: string;
5
+ openapi?: string | string[];
6
+ hidden?: boolean;
7
+ homepage?: string;
8
+ pages?: Page[];
9
+ } & ({
10
+ openapi: string | string[];
11
+ } | {
12
+ pages: Page[];
13
+ });
14
+ export declare const pagesSchema: z.ZodArray<z.ZodType<Page, z.ZodTypeDef, Page>, "many">;
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ import { pageSchema } from '../reusable/page.js';
3
+ import { groupSchema } from './groups.js';
4
+ const pageOrGroupSchema = z.lazy(() => z.union([pageSchema, groupSchema]));
5
+ export const pagesSchema = z.array(pageOrGroupSchema).describe('An array of page paths or groups');
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const tabsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { hiddenSchema } from '../reusable/hidden.js';
3
+ import { hrefSchema } from '../reusable/href.js';
4
+ import { iconSchema } from '../reusable/icon.js';
5
+ import { openApiSchema } from '../reusable/openapi.js';
6
+ import { anchorsSchema } from './anchors.js';
7
+ import { dropdownsSchema } from './dropdown.js';
8
+ import { groupsSchema } from './groups.js';
9
+ import { languagesSchema } from './languages.js';
10
+ import { pagesSchema } from './pages.js';
11
+ import { versionsSchema } from './version.js';
12
+ const tabSchema = z
13
+ .object({
14
+ tab: z.string().nonempty().describe('The name of the tab'),
15
+ icon: iconSchema.optional(),
16
+ hidden: hiddenSchema.optional(),
17
+ })
18
+ .and(z.union([
19
+ z.object({ openapi: openApiSchema }),
20
+ z.object({ href: hrefSchema }),
21
+ z.object({ languages: languagesSchema }),
22
+ z.object({ versions: versionsSchema }),
23
+ z.object({ dropdowns: dropdownsSchema }),
24
+ z.object({ anchors: anchorsSchema }),
25
+ z.object({ groups: groupsSchema }),
26
+ z.object({ pages: pagesSchema }),
27
+ ]));
28
+ export const tabsSchema = z.array(tabSchema).describe('Organizing by tabs');
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const versionsSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { hiddenSchema } from '../reusable/hidden.js';
3
+ import { hrefSchema } from '../reusable/href.js';
4
+ import { openApiSchema } from '../reusable/openapi.js';
5
+ import { anchorsSchema } from './anchors.js';
6
+ import { dropdownsSchema } from './dropdown.js';
7
+ import { groupsSchema } from './groups.js';
8
+ import { languagesSchema } from './languages.js';
9
+ import { pagesSchema } from './pages.js';
10
+ import { tabsSchema } from './tabs.js';
11
+ const versionSchema = z
12
+ .object({
13
+ version: z.string().nonempty().describe('The name of the version'),
14
+ hidden: hiddenSchema.optional(),
15
+ })
16
+ .and(z.union([
17
+ z.object({ openapi: openApiSchema }),
18
+ z.object({ href: hrefSchema }),
19
+ z.object({ languages: languagesSchema }),
20
+ z.object({ tabs: tabsSchema }),
21
+ z.object({ dropdowns: dropdownsSchema }),
22
+ z.object({ anchors: anchorsSchema }),
23
+ z.object({ groups: groupsSchema }),
24
+ z.object({ pages: pagesSchema }),
25
+ ]));
26
+ export const versionsSchema = z.array(versionSchema).describe('Organizing by versions');
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export declare const redirectsSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
3
+ source: z.ZodString;
4
+ destination: z.ZodString;
5
+ permanent: z.ZodOptional<z.ZodBoolean>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ source: string;
8
+ destination: string;
9
+ permanent?: boolean | undefined;
10
+ }, {
11
+ source: string;
12
+ destination: string;
13
+ permanent?: boolean | undefined;
14
+ }>, "many">, {
15
+ source: string;
16
+ destination: string;
17
+ permanent?: boolean | undefined;
18
+ }[], {
19
+ source: string;
20
+ destination: string;
21
+ permanent?: boolean | undefined;
22
+ }[]>;
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ const redirectSchema = z.object({
3
+ source: z.string().describe('The source path to redirect from'),
4
+ destination: z.string().describe('The destination path to redirect to. Supports wildcards.'),
5
+ permanent: z
6
+ .boolean()
7
+ .optional()
8
+ .describe('Whether the redirect is a 308 permanent redirect. Otherwise, it is a 307 temporary redirect.'),
9
+ });
10
+ export const redirectsSchema = z
11
+ .array(redirectSchema)
12
+ .refine((value) => {
13
+ const keys = value.map((obj) => obj.source);
14
+ return new Set(keys).size === keys.length;
15
+ }, 'Sources in the array must be unique')
16
+ .describe('URL redirect rules');
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export declare const hexColor: z.ZodString;
3
+ export declare const colorSchema: z.ZodObject<{
4
+ light: z.ZodString;
5
+ dark: z.ZodString;
6
+ }, "strict", z.ZodTypeAny, {
7
+ light: string;
8
+ dark: string;
9
+ }, {
10
+ light: string;
11
+ dark: string;
12
+ }>;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ const hexColorRegex = /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/;
3
+ export const hexColor = z
4
+ .string()
5
+ .regex(hexColorRegex, 'Must be a hex color string, with a leading #');
6
+ export const colorSchema = z
7
+ .object({
8
+ light: hexColor.describe('The color in hex format to use in light mode'),
9
+ dark: hexColor.describe('The color in hex format to use in dark mode'),
10
+ })
11
+ .strict();
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const hiddenSchema: z.ZodBoolean;
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export const hiddenSchema = z.boolean().describe('Whether the current option is default hidden');
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const hrefSchema: z.ZodString;
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ export const hrefSchema = z
3
+ .string()
4
+ .url('Must be a valid url')
5
+ .describe('A valid path or external link');
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const iconSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
3
+ style: z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>;
4
+ name: z.ZodEffects<z.ZodString, string, string>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ name: string;
7
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
8
+ }, {
9
+ name: string;
10
+ style: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin";
11
+ }>]>;