@mintlify/validation 0.1.313 → 0.1.314
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.
- package/dist/mint-config/schemas/v2/index.d.ts +861 -11
- package/dist/mint-config/schemas/v2/properties/api.d.ts +18 -0
- package/dist/mint-config/schemas/v2/properties/api.js +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +10 -1
- package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +20 -2
- package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js +3 -1
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +10 -1
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +108 -0
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +2 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +84 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +10 -1
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +13 -1
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +10 -1
- package/dist/mint-config/schemas/v2/properties/reusable/asyncapi.d.ts +24 -0
- package/dist/mint-config/schemas/v2/properties/reusable/asyncapi.js +41 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +170 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +170 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +170 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +170 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +102 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +170 -0
- package/dist/mint-config/validateConfig.d.ts +340 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -10,6 +10,16 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
10
10
|
source: string;
|
|
11
11
|
directory?: string | undefined;
|
|
12
12
|
}>]>>;
|
|
13
|
+
asyncapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
14
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
15
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
source: string;
|
|
18
|
+
directory?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
source: string;
|
|
21
|
+
directory?: string | undefined;
|
|
22
|
+
}>]>>;
|
|
13
23
|
playground: z.ZodOptional<z.ZodObject<{
|
|
14
24
|
display: z.ZodOptional<z.ZodEnum<["interactive", "simple", "none"]>>;
|
|
15
25
|
proxy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -57,6 +67,10 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
57
67
|
source: string;
|
|
58
68
|
directory?: string | undefined;
|
|
59
69
|
} | undefined;
|
|
70
|
+
asyncapi?: string | string[] | {
|
|
71
|
+
source: string;
|
|
72
|
+
directory?: string | undefined;
|
|
73
|
+
} | undefined;
|
|
60
74
|
playground?: {
|
|
61
75
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
62
76
|
proxy?: boolean | undefined;
|
|
@@ -76,6 +90,10 @@ export declare const apiSchema: z.ZodObject<{
|
|
|
76
90
|
source: string;
|
|
77
91
|
directory?: string | undefined;
|
|
78
92
|
} | undefined;
|
|
93
|
+
asyncapi?: string | string[] | {
|
|
94
|
+
source: string;
|
|
95
|
+
directory?: string | undefined;
|
|
96
|
+
} | undefined;
|
|
79
97
|
playground?: {
|
|
80
98
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
81
99
|
proxy?: boolean | undefined;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from './reusable/asyncapi.js';
|
|
2
3
|
import { openApiSchema } from './reusable/openapi.js';
|
|
3
4
|
export const apiSchema = z
|
|
4
5
|
.object({
|
|
5
6
|
openapi: openApiSchema.optional(),
|
|
7
|
+
asyncapi: asyncApiSchema.optional(),
|
|
6
8
|
playground: z
|
|
7
9
|
.object({
|
|
8
10
|
display: z
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
2
3
|
import { colorSchemaWithOptionalLightAndDark } from '../reusable/color.js';
|
|
3
4
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
4
5
|
import { hrefSchema } from '../reusable/href.js';
|
|
@@ -22,40 +23,48 @@ export const anchorSchema = z.union([
|
|
|
22
23
|
baseAnchorSchema.extend({
|
|
23
24
|
href: hrefSchema,
|
|
24
25
|
openapi: openApiSchema.optional(),
|
|
26
|
+
asyncapi: asyncApiSchema.optional(),
|
|
25
27
|
global: z.lazy(() => globalSchema.optional()),
|
|
26
28
|
}),
|
|
27
29
|
baseAnchorSchema.extend({
|
|
28
30
|
languages: z.lazy(() => languagesSchema),
|
|
29
31
|
openapi: openApiSchema.optional(),
|
|
32
|
+
asyncapi: asyncApiSchema.optional(),
|
|
30
33
|
global: z.lazy(() => globalSchema).optional(),
|
|
31
34
|
}),
|
|
32
35
|
baseAnchorSchema.extend({
|
|
33
36
|
versions: z.lazy(() => versionsSchema),
|
|
34
37
|
openapi: openApiSchema.optional(),
|
|
38
|
+
asyncapi: asyncApiSchema.optional(),
|
|
35
39
|
global: z.lazy(() => globalSchema).optional(),
|
|
36
40
|
}),
|
|
37
41
|
baseAnchorSchema.extend({
|
|
38
42
|
dropdowns: z.lazy(() => dropdownsSchema),
|
|
39
43
|
openapi: openApiSchema.optional(),
|
|
44
|
+
asyncapi: asyncApiSchema.optional(),
|
|
40
45
|
global: z.lazy(() => globalSchema).optional(),
|
|
41
46
|
}),
|
|
42
47
|
baseAnchorSchema.extend({
|
|
43
48
|
tabs: z.lazy(() => tabsSchema),
|
|
44
49
|
openapi: openApiSchema.optional(),
|
|
50
|
+
asyncapi: asyncApiSchema.optional(),
|
|
45
51
|
global: z.lazy(() => globalSchema).optional(),
|
|
46
52
|
}),
|
|
47
53
|
baseAnchorSchema.extend({
|
|
48
54
|
groups: z.lazy(() => groupsSchema),
|
|
49
55
|
openapi: openApiSchema.optional(),
|
|
56
|
+
asyncapi: asyncApiSchema.optional(),
|
|
50
57
|
global: z.lazy(() => globalSchema).optional(),
|
|
51
58
|
}),
|
|
52
59
|
baseAnchorSchema.extend({
|
|
53
60
|
pages: z.lazy(() => pagesSchema),
|
|
54
61
|
openapi: openApiSchema.optional(),
|
|
62
|
+
asyncapi: asyncApiSchema.optional(),
|
|
55
63
|
global: z.lazy(() => globalSchema).optional(),
|
|
56
64
|
}),
|
|
57
65
|
baseAnchorSchema.extend({
|
|
58
|
-
openapi: openApiSchema,
|
|
66
|
+
openapi: openApiSchema.optional(),
|
|
67
|
+
asyncapi: asyncApiSchema.optional(),
|
|
59
68
|
global: z.lazy(() => globalSchema).optional(),
|
|
60
69
|
}),
|
|
61
70
|
]);
|
|
@@ -8,7 +8,7 @@ import { PagesConfig, DecoratedPagesConfig } from './pages.js';
|
|
|
8
8
|
import { BaseTabSchema } from './tabs.js';
|
|
9
9
|
import { BaseVersionSchema } from './version.js';
|
|
10
10
|
type NavigationType = 'default' | 'decorated';
|
|
11
|
-
declare const
|
|
11
|
+
declare const SomeApiSchema: z.ZodObject<{
|
|
12
12
|
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
13
13
|
source: z.ZodEffects<z.ZodString, string, string>;
|
|
14
14
|
directory: z.ZodOptional<z.ZodString>;
|
|
@@ -19,18 +19,36 @@ declare const OpenApiSchema: z.ZodObject<{
|
|
|
19
19
|
source: string;
|
|
20
20
|
directory?: string | undefined;
|
|
21
21
|
}>]>>;
|
|
22
|
+
asyncapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
23
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
source: string;
|
|
27
|
+
directory?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
source: string;
|
|
30
|
+
directory?: string | undefined;
|
|
31
|
+
}>]>>;
|
|
22
32
|
}, "strip", z.ZodTypeAny, {
|
|
23
33
|
openapi?: string | string[] | {
|
|
24
34
|
source: string;
|
|
25
35
|
directory?: string | undefined;
|
|
26
36
|
} | undefined;
|
|
37
|
+
asyncapi?: string | string[] | {
|
|
38
|
+
source: string;
|
|
39
|
+
directory?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
27
41
|
}, {
|
|
28
42
|
openapi?: string | string[] | {
|
|
29
43
|
source: string;
|
|
30
44
|
directory?: string | undefined;
|
|
31
45
|
} | undefined;
|
|
46
|
+
asyncapi?: string | string[] | {
|
|
47
|
+
source: string;
|
|
48
|
+
directory?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
32
50
|
}>;
|
|
33
|
-
type OtherConfigs<T extends NavigationType> = T extends 'default' ? z.infer<typeof
|
|
51
|
+
type OtherConfigs<T extends NavigationType> = T extends 'default' ? z.infer<typeof SomeApiSchema> & {
|
|
34
52
|
global?: GlobalNavigation;
|
|
35
53
|
} : {
|
|
36
54
|
global?: GlobalNavigation;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
2
3
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
3
|
-
const
|
|
4
|
+
const SomeApiSchema = z.object({
|
|
4
5
|
openapi: openApiSchema.optional(),
|
|
6
|
+
asyncapi: asyncApiSchema.optional(),
|
|
5
7
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
2
3
|
import { colorSchemaWithOptionalLightAndDark } from '../reusable/color.js';
|
|
3
4
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
4
5
|
import { hrefSchema } from '../reusable/href.js';
|
|
@@ -23,40 +24,48 @@ export const dropdownSchema = z.union([
|
|
|
23
24
|
baseDropdownSchema.extend({
|
|
24
25
|
href: hrefSchema,
|
|
25
26
|
openapi: openApiSchema.optional(),
|
|
27
|
+
asyncapi: asyncApiSchema.optional(),
|
|
26
28
|
global: z.lazy(() => globalSchema).optional(),
|
|
27
29
|
}),
|
|
28
30
|
baseDropdownSchema.extend({
|
|
29
31
|
languages: z.lazy(() => languagesSchema),
|
|
30
32
|
openapi: openApiSchema.optional(),
|
|
33
|
+
asyncapi: asyncApiSchema.optional(),
|
|
31
34
|
global: z.lazy(() => globalSchema).optional(),
|
|
32
35
|
}),
|
|
33
36
|
baseDropdownSchema.extend({
|
|
34
37
|
versions: z.lazy(() => versionsSchema),
|
|
35
38
|
openapi: openApiSchema.optional(),
|
|
39
|
+
asyncapi: asyncApiSchema.optional(),
|
|
36
40
|
global: z.lazy(() => globalSchema).optional(),
|
|
37
41
|
}),
|
|
38
42
|
baseDropdownSchema.extend({
|
|
39
43
|
tabs: z.lazy(() => tabsSchema),
|
|
40
44
|
openapi: openApiSchema.optional(),
|
|
45
|
+
asyncapi: asyncApiSchema.optional(),
|
|
41
46
|
global: z.lazy(() => globalSchema).optional(),
|
|
42
47
|
}),
|
|
43
48
|
baseDropdownSchema.extend({
|
|
44
49
|
anchors: z.lazy(() => anchorsSchema),
|
|
45
50
|
openapi: openApiSchema.optional(),
|
|
51
|
+
asyncapi: asyncApiSchema.optional(),
|
|
46
52
|
global: z.lazy(() => globalSchema).optional(),
|
|
47
53
|
}),
|
|
48
54
|
baseDropdownSchema.extend({
|
|
49
55
|
groups: z.lazy(() => groupsSchema),
|
|
50
56
|
openapi: openApiSchema.optional(),
|
|
57
|
+
asyncapi: asyncApiSchema.optional(),
|
|
51
58
|
global: z.lazy(() => globalSchema).optional(),
|
|
52
59
|
}),
|
|
53
60
|
baseDropdownSchema.extend({
|
|
54
61
|
pages: z.lazy(() => pagesSchema),
|
|
55
62
|
openapi: openApiSchema.optional(),
|
|
63
|
+
asyncapi: asyncApiSchema.optional(),
|
|
56
64
|
global: z.lazy(() => globalSchema).optional(),
|
|
57
65
|
}),
|
|
58
66
|
baseDropdownSchema.extend({
|
|
59
|
-
openapi: openApiSchema,
|
|
67
|
+
openapi: openApiSchema.optional(),
|
|
68
|
+
asyncapi: asyncApiSchema.optional(),
|
|
60
69
|
global: z.lazy(() => globalSchema).optional(),
|
|
61
70
|
}),
|
|
62
71
|
]);
|
|
@@ -84,6 +84,60 @@ export declare const groupSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
84
84
|
} | undefined;
|
|
85
85
|
hidden?: boolean | undefined;
|
|
86
86
|
root?: string | undefined;
|
|
87
|
+
}>, z.ZodObject<{
|
|
88
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
89
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
90
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
name: string;
|
|
93
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
name: string;
|
|
96
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
97
|
+
}>]>>;
|
|
98
|
+
group: z.ZodString;
|
|
99
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
101
|
+
asyncapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
102
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
103
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, "strict", z.ZodTypeAny, {
|
|
105
|
+
source: string;
|
|
106
|
+
directory?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
source: string;
|
|
109
|
+
directory?: string | undefined;
|
|
110
|
+
}>]>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
group: string;
|
|
113
|
+
asyncapi: (string | string[] | {
|
|
114
|
+
source: string;
|
|
115
|
+
directory?: string | undefined;
|
|
116
|
+
}) & (string | string[] | {
|
|
117
|
+
source: string;
|
|
118
|
+
directory?: string | undefined;
|
|
119
|
+
} | undefined);
|
|
120
|
+
icon?: string | {
|
|
121
|
+
name: string;
|
|
122
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
hidden?: boolean | undefined;
|
|
125
|
+
root?: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
group: string;
|
|
128
|
+
asyncapi: (string | string[] | {
|
|
129
|
+
source: string;
|
|
130
|
+
directory?: string | undefined;
|
|
131
|
+
}) & (string | string[] | {
|
|
132
|
+
source: string;
|
|
133
|
+
directory?: string | undefined;
|
|
134
|
+
} | undefined);
|
|
135
|
+
icon?: string | {
|
|
136
|
+
name: string;
|
|
137
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
hidden?: boolean | undefined;
|
|
140
|
+
root?: string | undefined;
|
|
87
141
|
}>, z.ZodObject<{
|
|
88
142
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
89
143
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
@@ -206,6 +260,60 @@ export declare const groupsSchema: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
|
206
260
|
} | undefined;
|
|
207
261
|
hidden?: boolean | undefined;
|
|
208
262
|
root?: string | undefined;
|
|
263
|
+
}>, z.ZodObject<{
|
|
264
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
265
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
266
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
name: string;
|
|
269
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
270
|
+
}, {
|
|
271
|
+
name: string;
|
|
272
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
273
|
+
}>]>>;
|
|
274
|
+
group: z.ZodString;
|
|
275
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
277
|
+
asyncapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
278
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
279
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, "strict", z.ZodTypeAny, {
|
|
281
|
+
source: string;
|
|
282
|
+
directory?: string | undefined;
|
|
283
|
+
}, {
|
|
284
|
+
source: string;
|
|
285
|
+
directory?: string | undefined;
|
|
286
|
+
}>]>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
group: string;
|
|
289
|
+
asyncapi: (string | string[] | {
|
|
290
|
+
source: string;
|
|
291
|
+
directory?: string | undefined;
|
|
292
|
+
}) & (string | string[] | {
|
|
293
|
+
source: string;
|
|
294
|
+
directory?: string | undefined;
|
|
295
|
+
} | undefined);
|
|
296
|
+
icon?: string | {
|
|
297
|
+
name: string;
|
|
298
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
hidden?: boolean | undefined;
|
|
301
|
+
root?: string | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
group: string;
|
|
304
|
+
asyncapi: (string | string[] | {
|
|
305
|
+
source: string;
|
|
306
|
+
directory?: string | undefined;
|
|
307
|
+
}) & (string | string[] | {
|
|
308
|
+
source: string;
|
|
309
|
+
directory?: string | undefined;
|
|
310
|
+
} | undefined);
|
|
311
|
+
icon?: string | {
|
|
312
|
+
name: string;
|
|
313
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
hidden?: boolean | undefined;
|
|
316
|
+
root?: string | undefined;
|
|
209
317
|
}>, z.ZodObject<{
|
|
210
318
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
211
319
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
2
3
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
3
4
|
import { iconSchema } from '../reusable/icon.js';
|
|
4
5
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
@@ -13,6 +14,7 @@ export const baseGroupSchema = z.object({
|
|
|
13
14
|
export const groupSchema = z
|
|
14
15
|
.union([
|
|
15
16
|
baseGroupSchema.extend({ openapi: openApiSchema }),
|
|
17
|
+
baseGroupSchema.extend({ asyncapi: asyncApiSchema }),
|
|
16
18
|
baseGroupSchema.extend({ pages: z.lazy(() => pagesSchema) }),
|
|
17
19
|
])
|
|
18
20
|
.describe('Organizing by groups');
|
|
@@ -106,6 +106,60 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
106
106
|
} | undefined;
|
|
107
107
|
hidden?: boolean | undefined;
|
|
108
108
|
root?: string | undefined;
|
|
109
|
+
}>, z.ZodObject<{
|
|
110
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
111
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
112
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
name: string;
|
|
115
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
name: string;
|
|
118
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
119
|
+
}>]>>;
|
|
120
|
+
group: z.ZodString;
|
|
121
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
root: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
123
|
+
asyncapi: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
124
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
125
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, "strict", z.ZodTypeAny, {
|
|
127
|
+
source: string;
|
|
128
|
+
directory?: string | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
source: string;
|
|
131
|
+
directory?: string | undefined;
|
|
132
|
+
}>]>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
group: string;
|
|
135
|
+
asyncapi: (string | string[] | {
|
|
136
|
+
source: string;
|
|
137
|
+
directory?: string | undefined;
|
|
138
|
+
}) & (string | string[] | {
|
|
139
|
+
source: string;
|
|
140
|
+
directory?: string | undefined;
|
|
141
|
+
} | undefined);
|
|
142
|
+
icon?: string | {
|
|
143
|
+
name: string;
|
|
144
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
hidden?: boolean | undefined;
|
|
147
|
+
root?: string | undefined;
|
|
148
|
+
}, {
|
|
149
|
+
group: string;
|
|
150
|
+
asyncapi: (string | string[] | {
|
|
151
|
+
source: string;
|
|
152
|
+
directory?: string | undefined;
|
|
153
|
+
}) & (string | string[] | {
|
|
154
|
+
source: string;
|
|
155
|
+
directory?: string | undefined;
|
|
156
|
+
} | undefined);
|
|
157
|
+
icon?: string | {
|
|
158
|
+
name: string;
|
|
159
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
hidden?: boolean | undefined;
|
|
162
|
+
root?: string | undefined;
|
|
109
163
|
}>, z.ZodObject<{
|
|
110
164
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
111
165
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
@@ -156,6 +210,21 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
156
210
|
} | undefined;
|
|
157
211
|
hidden?: boolean | undefined;
|
|
158
212
|
root?: string | undefined;
|
|
213
|
+
} | {
|
|
214
|
+
group: string;
|
|
215
|
+
asyncapi: (string | string[] | {
|
|
216
|
+
source: string;
|
|
217
|
+
directory?: string | undefined;
|
|
218
|
+
}) & (string | string[] | {
|
|
219
|
+
source: string;
|
|
220
|
+
directory?: string | undefined;
|
|
221
|
+
} | undefined);
|
|
222
|
+
icon?: string | {
|
|
223
|
+
name: string;
|
|
224
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
hidden?: boolean | undefined;
|
|
227
|
+
root?: string | undefined;
|
|
159
228
|
} | {
|
|
160
229
|
group: string;
|
|
161
230
|
pages: any[];
|
|
@@ -183,6 +252,21 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
183
252
|
} | undefined;
|
|
184
253
|
hidden?: boolean | undefined;
|
|
185
254
|
root?: string | undefined;
|
|
255
|
+
} | {
|
|
256
|
+
group: string;
|
|
257
|
+
asyncapi: (string | string[] | {
|
|
258
|
+
source: string;
|
|
259
|
+
directory?: string | undefined;
|
|
260
|
+
}) & (string | string[] | {
|
|
261
|
+
source: string;
|
|
262
|
+
directory?: string | undefined;
|
|
263
|
+
} | undefined);
|
|
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" | undefined;
|
|
267
|
+
} | undefined;
|
|
268
|
+
hidden?: boolean | undefined;
|
|
269
|
+
root?: string | undefined;
|
|
186
270
|
} | {
|
|
187
271
|
group: string;
|
|
188
272
|
pages: any[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { locales } from '../localization.js';
|
|
3
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
3
4
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
4
5
|
import { hrefSchema } from '../reusable/href.js';
|
|
5
6
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
@@ -21,40 +22,48 @@ export const languageSchema = z
|
|
|
21
22
|
baseLanguageSchema.extend({
|
|
22
23
|
href: hrefSchema,
|
|
23
24
|
openapi: openApiSchema.optional(),
|
|
25
|
+
asyncapi: asyncApiSchema.optional(),
|
|
24
26
|
global: z.lazy(() => globalSchema).optional(),
|
|
25
27
|
}),
|
|
26
28
|
baseLanguageSchema.extend({
|
|
27
29
|
versions: z.lazy(() => versionsSchema),
|
|
28
30
|
openapi: openApiSchema.optional(),
|
|
31
|
+
asyncapi: asyncApiSchema.optional(),
|
|
29
32
|
global: z.lazy(() => globalSchema).optional(),
|
|
30
33
|
}),
|
|
31
34
|
baseLanguageSchema.extend({
|
|
32
35
|
tabs: z.lazy(() => tabsSchema),
|
|
33
36
|
openapi: openApiSchema.optional(),
|
|
37
|
+
asyncapi: asyncApiSchema.optional(),
|
|
34
38
|
global: z.lazy(() => globalSchema).optional(),
|
|
35
39
|
}),
|
|
36
40
|
baseLanguageSchema.extend({
|
|
37
41
|
dropdowns: z.lazy(() => dropdownsSchema),
|
|
38
42
|
openapi: openApiSchema.optional(),
|
|
43
|
+
asyncapi: asyncApiSchema.optional(),
|
|
39
44
|
global: z.lazy(() => globalSchema).optional(),
|
|
40
45
|
}),
|
|
41
46
|
baseLanguageSchema.extend({
|
|
42
47
|
anchors: z.lazy(() => anchorsSchema),
|
|
43
48
|
openapi: openApiSchema.optional(),
|
|
49
|
+
asyncapi: asyncApiSchema.optional(),
|
|
44
50
|
global: z.lazy(() => globalSchema).optional(),
|
|
45
51
|
}),
|
|
46
52
|
baseLanguageSchema.extend({
|
|
47
53
|
groups: z.lazy(() => groupsSchema),
|
|
48
54
|
openapi: openApiSchema.optional(),
|
|
55
|
+
asyncapi: asyncApiSchema.optional(),
|
|
49
56
|
global: z.lazy(() => globalSchema).optional(),
|
|
50
57
|
}),
|
|
51
58
|
baseLanguageSchema.extend({
|
|
52
59
|
pages: z.lazy(() => pagesSchema),
|
|
53
60
|
openapi: openApiSchema.optional(),
|
|
61
|
+
asyncapi: asyncApiSchema.optional(),
|
|
54
62
|
global: z.lazy(() => globalSchema).optional(),
|
|
55
63
|
}),
|
|
56
64
|
baseLanguageSchema.extend({
|
|
57
|
-
openapi: openApiSchema,
|
|
65
|
+
openapi: openApiSchema.optional(),
|
|
66
|
+
asyncapi: asyncApiSchema.optional(),
|
|
58
67
|
global: z.lazy(() => globalSchema).optional(),
|
|
59
68
|
}),
|
|
60
69
|
])
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
2
3
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
3
4
|
import { hrefSchema } from '../reusable/href.js';
|
|
4
5
|
import { iconSchema } from '../reusable/icon.js';
|
|
@@ -20,39 +21,50 @@ export const tabSchema = z.union([
|
|
|
20
21
|
baseTabSchema.extend({
|
|
21
22
|
href: hrefSchema,
|
|
22
23
|
openapi: openApiSchema.optional(),
|
|
24
|
+
asyncapi: asyncApiSchema.optional(),
|
|
23
25
|
global: z.lazy(() => globalSchema).optional(),
|
|
24
26
|
}),
|
|
25
27
|
baseTabSchema.extend({
|
|
26
28
|
languages: z.lazy(() => languagesSchema),
|
|
27
29
|
openapi: openApiSchema.optional(),
|
|
30
|
+
asyncapi: asyncApiSchema.optional(),
|
|
28
31
|
global: z.lazy(() => globalSchema).optional(),
|
|
29
32
|
}),
|
|
30
33
|
baseTabSchema.extend({
|
|
31
34
|
versions: z.lazy(() => versionsSchema),
|
|
32
35
|
openapi: openApiSchema.optional(),
|
|
36
|
+
asyncapi: asyncApiSchema.optional(),
|
|
33
37
|
global: z.lazy(() => globalSchema).optional(),
|
|
34
38
|
}),
|
|
35
39
|
baseTabSchema.extend({
|
|
36
40
|
dropdowns: z.lazy(() => dropdownsSchema),
|
|
37
41
|
openapi: openApiSchema.optional(),
|
|
42
|
+
asyncapi: asyncApiSchema.optional(),
|
|
38
43
|
global: z.lazy(() => globalSchema).optional(),
|
|
39
44
|
}),
|
|
40
45
|
baseTabSchema.extend({
|
|
41
46
|
anchors: z.lazy(() => anchorsSchema),
|
|
42
47
|
openapi: openApiSchema.optional(),
|
|
48
|
+
asyncapi: asyncApiSchema.optional(),
|
|
43
49
|
global: z.lazy(() => globalSchema).optional(),
|
|
44
50
|
}),
|
|
45
51
|
baseTabSchema.extend({
|
|
46
52
|
groups: z.lazy(() => groupsSchema),
|
|
47
53
|
openapi: openApiSchema.optional(),
|
|
54
|
+
asyncapi: asyncApiSchema.optional(),
|
|
48
55
|
global: z.lazy(() => globalSchema).optional(),
|
|
49
56
|
}),
|
|
50
57
|
baseTabSchema.extend({
|
|
51
58
|
pages: z.lazy(() => pagesSchema),
|
|
52
59
|
openapi: openApiSchema.optional(),
|
|
60
|
+
asyncapi: asyncApiSchema.optional(),
|
|
61
|
+
global: z.lazy(() => globalSchema).optional(),
|
|
62
|
+
}),
|
|
63
|
+
baseTabSchema.extend({
|
|
64
|
+
openapi: openApiSchema.optional(),
|
|
65
|
+
asyncapi: asyncApiSchema.optional(),
|
|
53
66
|
global: z.lazy(() => globalSchema).optional(),
|
|
54
67
|
}),
|
|
55
|
-
baseTabSchema.extend({ openapi: openApiSchema, global: z.lazy(() => globalSchema).optional() }),
|
|
56
68
|
]);
|
|
57
69
|
export const decoratedTabSchema = baseTabSchema.and(z.union([
|
|
58
70
|
z.object({ href: hrefSchema }),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
2
3
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
3
4
|
import { hrefSchema } from '../reusable/href.js';
|
|
4
5
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
@@ -19,40 +20,48 @@ export const versionSchema = z.union([
|
|
|
19
20
|
baseVersionSchema.extend({
|
|
20
21
|
href: hrefSchema,
|
|
21
22
|
openapi: openApiSchema.optional(),
|
|
23
|
+
asyncapi: asyncApiSchema.optional(),
|
|
22
24
|
global: z.lazy(() => globalSchema).optional(),
|
|
23
25
|
}),
|
|
24
26
|
baseVersionSchema.extend({
|
|
25
27
|
languages: z.lazy(() => languagesSchema),
|
|
26
28
|
openapi: openApiSchema.optional(),
|
|
29
|
+
asyncapi: asyncApiSchema.optional(),
|
|
27
30
|
global: z.lazy(() => globalSchema).optional(),
|
|
28
31
|
}),
|
|
29
32
|
baseVersionSchema.extend({
|
|
30
33
|
tabs: z.lazy(() => tabsSchema),
|
|
31
34
|
openapi: openApiSchema.optional(),
|
|
35
|
+
asyncapi: asyncApiSchema.optional(),
|
|
32
36
|
global: z.lazy(() => globalSchema).optional(),
|
|
33
37
|
}),
|
|
34
38
|
baseVersionSchema.extend({
|
|
35
39
|
dropdowns: z.lazy(() => dropdownsSchema),
|
|
36
40
|
openapi: openApiSchema.optional(),
|
|
41
|
+
asyncapi: asyncApiSchema.optional(),
|
|
37
42
|
global: z.lazy(() => globalSchema).optional(),
|
|
38
43
|
}),
|
|
39
44
|
baseVersionSchema.extend({
|
|
40
45
|
anchors: z.lazy(() => anchorsSchema),
|
|
41
46
|
openapi: openApiSchema.optional(),
|
|
47
|
+
asyncapi: asyncApiSchema.optional(),
|
|
42
48
|
global: z.lazy(() => globalSchema).optional(),
|
|
43
49
|
}),
|
|
44
50
|
baseVersionSchema.extend({
|
|
45
51
|
groups: z.lazy(() => groupsSchema),
|
|
46
52
|
openapi: openApiSchema.optional(),
|
|
53
|
+
asyncapi: asyncApiSchema.optional(),
|
|
47
54
|
global: z.lazy(() => globalSchema).optional(),
|
|
48
55
|
}),
|
|
49
56
|
baseVersionSchema.extend({
|
|
50
57
|
pages: z.lazy(() => pagesSchema),
|
|
51
58
|
openapi: openApiSchema.optional(),
|
|
59
|
+
asyncapi: asyncApiSchema.optional(),
|
|
52
60
|
global: z.lazy(() => globalSchema).optional(),
|
|
53
61
|
}),
|
|
54
62
|
baseVersionSchema.extend({
|
|
55
|
-
openapi: openApiSchema,
|
|
63
|
+
openapi: openApiSchema.optional(),
|
|
64
|
+
asyncapi: asyncApiSchema.optional(),
|
|
56
65
|
global: z.lazy(() => globalSchema).optional(),
|
|
57
66
|
}),
|
|
58
67
|
]);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const asyncapiStringSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
3
|
+
export declare const asyncapiObjSchema: z.ZodObject<{
|
|
4
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
source: string;
|
|
8
|
+
directory?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
source: string;
|
|
11
|
+
directory?: string | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const asyncApiSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
|
|
14
|
+
source: z.ZodEffects<z.ZodString, string, string>;
|
|
15
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
source: string;
|
|
18
|
+
directory?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
source: string;
|
|
21
|
+
directory?: string | undefined;
|
|
22
|
+
}>]>;
|
|
23
|
+
export type AsyncApiObjConfig = z.infer<typeof asyncapiObjSchema>;
|
|
24
|
+
export type AsyncApiConfig = z.infer<typeof asyncApiSchema>;
|