@mintlify/validation 0.1.229 → 0.1.231

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.
@@ -20,11 +20,11 @@ const anchorSchema = z
20
20
  .and(z.union([
21
21
  z.object({ href: hrefSchema }),
22
22
  z.object({ openapi: openApiSchema }),
23
- z.object({ languages: languagesSchema }),
24
- z.object({ versions: versionsSchema }),
25
- z.object({ dropdowns: dropdownsSchema }),
26
- z.object({ tabs: tabsSchema }),
27
- z.object({ groups: groupsSchema }),
28
- z.object({ pages: pagesSchema }),
23
+ z.lazy(() => z.object({ languages: languagesSchema })),
24
+ z.lazy(() => z.object({ versions: versionsSchema })),
25
+ z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
26
+ z.lazy(() => z.object({ tabs: tabsSchema })),
27
+ z.lazy(() => z.object({ groups: groupsSchema })),
28
+ z.lazy(() => z.object({ pages: pagesSchema })),
29
29
  ]));
30
30
  export const anchorsSchema = z.array(anchorSchema).describe('Organizing by anchors');
@@ -18,11 +18,11 @@ const dropdownSchema = z
18
18
  .and(z.union([
19
19
  z.object({ href: hrefSchema }),
20
20
  z.object({ openapi: openApiSchema }),
21
- z.object({ languages: languagesSchema }),
22
- z.object({ versions: versionsSchema }),
23
- z.object({ tabs: tabsSchema }),
24
- z.object({ anchors: anchorsSchema }),
25
- z.object({ groups: groupsSchema }),
26
- z.object({ pages: pagesSchema }),
21
+ z.lazy(() => z.object({ languages: languagesSchema })),
22
+ z.lazy(() => z.object({ versions: versionsSchema })),
23
+ z.lazy(() => z.object({ tabs: tabsSchema })),
24
+ z.lazy(() => z.object({ anchors: anchorsSchema })),
25
+ z.lazy(() => z.object({ groups: groupsSchema })),
26
+ z.lazy(() => z.object({ pages: pagesSchema })),
27
27
  ]));
28
28
  export const dropdownsSchema = z.array(dropdownSchema).describe('Organizing by dropdowns');
@@ -35,13 +35,13 @@ export declare const groupSchema: z.ZodIntersection<z.ZodObject<{
35
35
  openapi: (string | string[]) & (string | string[] | undefined);
36
36
  }, {
37
37
  openapi: (string | string[]) & (string | string[] | undefined);
38
- }>, z.ZodObject<{
39
- pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
38
+ }>, z.ZodLazy<z.ZodObject<{
39
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
40
40
  }, "strip", z.ZodTypeAny, {
41
- pages: import("./pages.js").Page[];
41
+ pages: any[];
42
42
  }, {
43
- pages: import("./pages.js").Page[];
44
- }>]>>;
43
+ pages: any[];
44
+ }>>]>>;
45
45
  export declare const groupsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
46
46
  group: z.ZodString;
47
47
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -78,10 +78,10 @@ export declare const groupsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
78
78
  openapi: (string | string[]) & (string | string[] | undefined);
79
79
  }, {
80
80
  openapi: (string | string[]) & (string | string[] | undefined);
81
- }>, z.ZodObject<{
82
- pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
81
+ }>, z.ZodLazy<z.ZodObject<{
82
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
83
83
  }, "strip", z.ZodTypeAny, {
84
- pages: import("./pages.js").Page[];
84
+ pages: any[];
85
85
  }, {
86
- pages: import("./pages.js").Page[];
87
- }>]>>, "many">;
86
+ pages: any[];
87
+ }>>]>>, "many">;
@@ -11,6 +11,6 @@ export const groupSchema = z
11
11
  hidden: hiddenSchema.optional(),
12
12
  root: pageSchema.optional(),
13
13
  })
14
- .and(z.union([z.object({ openapi: openApiSchema }), z.object({ pages: pagesSchema })]))
14
+ .and(z.union([z.object({ openapi: openApiSchema }), z.lazy(() => z.object({ pages: pagesSchema }))]))
15
15
  .describe('Organizing by groups');
16
16
  export const groupsSchema = z.array(groupSchema);
@@ -21,31 +21,31 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
21
21
  href: string;
22
22
  }, {
23
23
  href: string;
24
- }>, z.ZodObject<{
24
+ }>, z.ZodLazy<z.ZodObject<{
25
25
  versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  versions: any[];
28
28
  }, {
29
29
  versions: any[];
30
- }>, z.ZodObject<{
30
+ }>>, z.ZodLazy<z.ZodObject<{
31
31
  tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  tabs: any[];
34
34
  }, {
35
35
  tabs: any[];
36
- }>, z.ZodObject<{
36
+ }>>, z.ZodLazy<z.ZodObject<{
37
37
  dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  dropdowns: any[];
40
40
  }, {
41
41
  dropdowns: any[];
42
- }>, z.ZodObject<{
42
+ }>>, z.ZodLazy<z.ZodObject<{
43
43
  anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  anchors: any[];
46
46
  }, {
47
47
  anchors: any[];
48
- }>, z.ZodObject<{
48
+ }>>, z.ZodLazy<z.ZodObject<{
49
49
  groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
50
50
  group: z.ZodString;
51
51
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -82,13 +82,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
82
82
  openapi: (string | string[]) & (string | string[] | undefined);
83
83
  }, {
84
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">;
85
+ }>, z.ZodLazy<z.ZodObject<{
86
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
87
87
  }, "strip", z.ZodTypeAny, {
88
- pages: import("./pages.js").Page[];
88
+ pages: any[];
89
89
  }, {
90
- pages: import("./pages.js").Page[];
91
- }>]>>, "many">;
90
+ pages: any[];
91
+ }>>]>>, "many">;
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  groups: ({
94
94
  group: string;
@@ -101,7 +101,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
101
101
  } & ({
102
102
  openapi: (string | string[]) & (string | string[] | undefined);
103
103
  } | {
104
- pages: import("./pages.js").Page[];
104
+ pages: any[];
105
105
  }))[];
106
106
  }, {
107
107
  groups: ({
@@ -115,15 +115,15 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
115
115
  } & ({
116
116
  openapi: (string | string[]) & (string | string[] | undefined);
117
117
  } | {
118
- pages: import("./pages.js").Page[];
118
+ pages: any[];
119
119
  }))[];
120
- }>, z.ZodObject<{
121
- pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
120
+ }>>, z.ZodLazy<z.ZodObject<{
121
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
122
122
  }, "strip", z.ZodTypeAny, {
123
- pages: import("./pages.js").Page[];
123
+ pages: any[];
124
124
  }, {
125
- pages: import("./pages.js").Page[];
126
- }>]>>, "many">;
125
+ pages: any[];
126
+ }>>]>>, "many">;
127
127
  }, "strip", z.ZodTypeAny, {
128
128
  languages: ({
129
129
  language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
@@ -152,10 +152,10 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
152
152
  } & ({
153
153
  openapi: (string | string[]) & (string | string[] | undefined);
154
154
  } | {
155
- pages: import("./pages.js").Page[];
155
+ pages: any[];
156
156
  }))[];
157
157
  } | {
158
- pages: import("./pages.js").Page[];
158
+ pages: any[];
159
159
  }))[];
160
160
  }, {
161
161
  languages: ({
@@ -185,10 +185,10 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
185
185
  } & ({
186
186
  openapi: (string | string[]) & (string | string[] | undefined);
187
187
  } | {
188
- pages: import("./pages.js").Page[];
188
+ pages: any[];
189
189
  }))[];
190
190
  } | {
191
- pages: import("./pages.js").Page[];
191
+ pages: any[];
192
192
  }))[];
193
193
  }>, z.ZodObject<{
194
194
  versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -251,13 +251,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
251
251
  openapi: (string | string[]) & (string | string[] | undefined);
252
252
  }, {
253
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">;
254
+ }>, z.ZodLazy<z.ZodObject<{
255
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
256
256
  }, "strip", z.ZodTypeAny, {
257
- pages: import("./pages.js").Page[];
257
+ pages: any[];
258
258
  }, {
259
- pages: import("./pages.js").Page[];
260
- }>]>>, "many">;
259
+ pages: any[];
260
+ }>>]>>, "many">;
261
261
  }, "strip", z.ZodTypeAny, {
262
262
  groups: ({
263
263
  group: string;
@@ -270,7 +270,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
270
270
  } & ({
271
271
  openapi: (string | string[]) & (string | string[] | undefined);
272
272
  } | {
273
- pages: import("./pages.js").Page[];
273
+ pages: any[];
274
274
  }))[];
275
275
  }, {
276
276
  groups: ({
@@ -284,12 +284,12 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
284
284
  } & ({
285
285
  openapi: (string | string[]) & (string | string[] | undefined);
286
286
  } | {
287
- pages: import("./pages.js").Page[];
287
+ pages: any[];
288
288
  }))[];
289
289
  }>, z.ZodObject<{
290
- pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
290
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
291
291
  }, "strip", z.ZodTypeAny, {
292
- pages: import("./pages.js").Page[];
292
+ pages: any[];
293
293
  }, {
294
- pages: import("./pages.js").Page[];
294
+ pages: any[];
295
295
  }>]>;
@@ -20,31 +20,31 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
20
20
  href: string;
21
21
  }, {
22
22
  href: string;
23
- }>, z.ZodObject<{
23
+ }>, z.ZodLazy<z.ZodObject<{
24
24
  versions: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  versions: any[];
27
27
  }, {
28
28
  versions: any[];
29
- }>, z.ZodObject<{
29
+ }>>, z.ZodLazy<z.ZodObject<{
30
30
  tabs: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  tabs: any[];
33
33
  }, {
34
34
  tabs: any[];
35
- }>, z.ZodObject<{
35
+ }>>, z.ZodLazy<z.ZodObject<{
36
36
  dropdowns: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
37
37
  }, "strip", z.ZodTypeAny, {
38
38
  dropdowns: any[];
39
39
  }, {
40
40
  dropdowns: any[];
41
- }>, z.ZodObject<{
41
+ }>>, z.ZodLazy<z.ZodObject<{
42
42
  anchors: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  anchors: any[];
45
45
  }, {
46
46
  anchors: any[];
47
- }>, z.ZodObject<{
47
+ }>>, z.ZodLazy<z.ZodObject<{
48
48
  groups: z.ZodArray<z.ZodIntersection<z.ZodObject<{
49
49
  group: z.ZodString;
50
50
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -81,13 +81,13 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
81
81
  openapi: (string | string[]) & (string | string[] | undefined);
82
82
  }, {
83
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">;
84
+ }>, z.ZodLazy<z.ZodObject<{
85
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
86
86
  }, "strip", z.ZodTypeAny, {
87
- pages: import("./pages.js").Page[];
87
+ pages: any[];
88
88
  }, {
89
- pages: import("./pages.js").Page[];
90
- }>]>>, "many">;
89
+ pages: any[];
90
+ }>>]>>, "many">;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  groups: ({
93
93
  group: string;
@@ -100,7 +100,7 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
100
100
  } & ({
101
101
  openapi: (string | string[]) & (string | string[] | undefined);
102
102
  } | {
103
- pages: import("./pages.js").Page[];
103
+ pages: any[];
104
104
  }))[];
105
105
  }, {
106
106
  groups: ({
@@ -114,12 +114,12 @@ export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
114
114
  } & ({
115
115
  openapi: (string | string[]) & (string | string[] | undefined);
116
116
  } | {
117
- pages: import("./pages.js").Page[];
117
+ pages: any[];
118
118
  }))[];
119
- }>, z.ZodObject<{
120
- pages: z.ZodArray<z.ZodType<import("./pages.js").Page, z.ZodTypeDef, import("./pages.js").Page>, "many">;
119
+ }>>, z.ZodLazy<z.ZodObject<{
120
+ pages: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
121
121
  }, "strip", z.ZodTypeAny, {
122
- pages: import("./pages.js").Page[];
122
+ pages: any[];
123
123
  }, {
124
- pages: import("./pages.js").Page[];
125
- }>]>>, "many">;
124
+ pages: any[];
125
+ }>>]>>, "many">;
@@ -18,12 +18,12 @@ const languageSchema = z
18
18
  .and(z.union([
19
19
  z.object({ openapi: openApiSchema }),
20
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 }),
21
+ z.lazy(() => z.object({ versions: versionsSchema })),
22
+ z.lazy(() => z.object({ tabs: tabsSchema })),
23
+ z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
24
+ z.lazy(() => z.object({ anchors: anchorsSchema })),
25
+ z.lazy(() => z.object({ groups: groupsSchema })),
26
+ z.lazy(() => z.object({ pages: pagesSchema })),
27
27
  ]))
28
28
  .describe('Organizing by languages');
29
29
  export const languagesSchema = z
@@ -1,14 +1,2 @@
1
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">;
2
+ export declare const pagesSchema: z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">;
@@ -18,11 +18,11 @@ const tabSchema = z
18
18
  .and(z.union([
19
19
  z.object({ openapi: openApiSchema }),
20
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 }),
21
+ z.lazy(() => z.object({ languages: languagesSchema })),
22
+ z.lazy(() => z.object({ versions: versionsSchema })),
23
+ z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
24
+ z.lazy(() => z.object({ anchors: anchorsSchema })),
25
+ z.lazy(() => z.object({ groups: groupsSchema })),
26
+ z.lazy(() => z.object({ pages: pagesSchema })),
27
27
  ]));
28
28
  export const tabsSchema = z.array(tabSchema).describe('Organizing by tabs');
@@ -16,11 +16,11 @@ const versionSchema = z
16
16
  .and(z.union([
17
17
  z.object({ openapi: openApiSchema }),
18
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 }),
19
+ z.lazy(() => z.object({ languages: languagesSchema })),
20
+ z.lazy(() => z.object({ tabs: tabsSchema })),
21
+ z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
22
+ z.lazy(() => z.object({ anchors: anchorsSchema })),
23
+ z.lazy(() => z.object({ groups: groupsSchema })),
24
+ z.lazy(() => z.object({ pages: pagesSchema })),
25
25
  ]));
26
26
  export const versionsSchema = z.array(versionSchema).describe('Organizing by versions');