@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.
- package/dist/mint-config/schemas/v2/index.d.ts +945 -410
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +232 -19
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +160 -19
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +0 -25
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +364 -110
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +88 -19
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +160 -19
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +88 -19
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +6 -2
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +182 -55
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +182 -75
- package/dist/mint-config/upgrades/updateNavigationToDocsConfig.d.ts +2 -2
- package/dist/mint-config/upgrades/updateNavigationToDocsConfig.js +9 -7
- package/dist/mint-config/upgrades/upgradeToDocsConfig.d.ts +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -2,15 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const nonRecursiveLanguageSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
3
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
4
4
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
6
5
|
}, "strip", z.ZodTypeAny, {
|
|
7
6
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
8
7
|
hidden?: boolean | undefined;
|
|
9
|
-
openapi?: string | string[] | undefined;
|
|
10
8
|
}, {
|
|
11
9
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
12
10
|
hidden?: boolean | undefined;
|
|
13
|
-
openapi?: string | string[] | undefined;
|
|
14
11
|
}>, z.ZodObject<{
|
|
15
12
|
href: z.ZodString;
|
|
16
13
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21,79 +18,151 @@ export declare const nonRecursiveLanguageSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
21
18
|
export declare const languageSchema: z.ZodIntersection<z.ZodObject<{
|
|
22
19
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
23
20
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
25
21
|
}, "strip", z.ZodTypeAny, {
|
|
26
22
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
27
23
|
hidden?: boolean | undefined;
|
|
28
|
-
openapi?: string | string[] | undefined;
|
|
29
24
|
}, {
|
|
30
25
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
31
26
|
hidden?: boolean | undefined;
|
|
32
|
-
openapi?: string | string[] | undefined;
|
|
33
27
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
34
28
|
href: z.ZodString;
|
|
35
29
|
}, "strip", z.ZodTypeAny, {
|
|
36
30
|
href: string;
|
|
37
31
|
}, {
|
|
38
32
|
href: string;
|
|
39
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
40
|
-
export declare const decoratedLanguageSchema: z.ZodIntersection<z.ZodObject<{
|
|
33
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
41
34
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
42
35
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
44
36
|
}, "strip", z.ZodTypeAny, {
|
|
45
37
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
46
38
|
hidden?: boolean | undefined;
|
|
47
|
-
openapi?: string | string[] | undefined;
|
|
48
39
|
}, {
|
|
49
40
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
50
41
|
hidden?: boolean | undefined;
|
|
42
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
43
|
+
href: z.ZodString;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
href: string;
|
|
46
|
+
}, {
|
|
47
|
+
href: string;
|
|
48
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
49
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
openapi?: string | string[] | undefined;
|
|
52
|
+
}, {
|
|
51
53
|
openapi?: string | string[] | undefined;
|
|
54
|
+
}>>;
|
|
55
|
+
export declare const decoratedLanguageSchema: z.ZodIntersection<z.ZodObject<{
|
|
56
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
57
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
60
|
+
hidden?: boolean | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
63
|
+
hidden?: boolean | undefined;
|
|
52
64
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
53
65
|
href: z.ZodString;
|
|
54
66
|
}, "strip", z.ZodTypeAny, {
|
|
55
67
|
href: string;
|
|
56
68
|
}, {
|
|
57
69
|
href: string;
|
|
58
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
59
|
-
export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
70
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
60
71
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
61
72
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
63
73
|
}, "strip", z.ZodTypeAny, {
|
|
64
74
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
65
75
|
hidden?: boolean | undefined;
|
|
66
|
-
openapi?: string | string[] | undefined;
|
|
67
76
|
}, {
|
|
68
77
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
69
78
|
hidden?: boolean | undefined;
|
|
79
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
80
|
+
href: z.ZodString;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
href: string;
|
|
83
|
+
}, {
|
|
84
|
+
href: string;
|
|
85
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
86
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
openapi?: string | string[] | undefined;
|
|
89
|
+
}, {
|
|
70
90
|
openapi?: string | string[] | undefined;
|
|
91
|
+
}>>;
|
|
92
|
+
export declare const languagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
93
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
94
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
97
|
+
hidden?: boolean | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
100
|
+
hidden?: boolean | undefined;
|
|
71
101
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
72
102
|
href: z.ZodString;
|
|
73
103
|
}, "strip", z.ZodTypeAny, {
|
|
74
104
|
href: string;
|
|
75
105
|
}, {
|
|
76
106
|
href: string;
|
|
77
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
78
|
-
export declare const decoratedLanguagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
107
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
79
108
|
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
80
109
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
82
110
|
}, "strip", z.ZodTypeAny, {
|
|
83
111
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
84
112
|
hidden?: boolean | undefined;
|
|
85
|
-
openapi?: string | string[] | undefined;
|
|
86
113
|
}, {
|
|
87
114
|
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
88
115
|
hidden?: boolean | undefined;
|
|
116
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
117
|
+
href: z.ZodString;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
href: string;
|
|
120
|
+
}, {
|
|
121
|
+
href: string;
|
|
122
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
123
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
openapi?: string | string[] | undefined;
|
|
126
|
+
}, {
|
|
89
127
|
openapi?: string | string[] | undefined;
|
|
128
|
+
}>>, "many">;
|
|
129
|
+
export declare const decoratedLanguagesSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
130
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
131
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
134
|
+
hidden?: boolean | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
137
|
+
hidden?: boolean | undefined;
|
|
90
138
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
91
139
|
href: z.ZodString;
|
|
92
140
|
}, "strip", z.ZodTypeAny, {
|
|
93
141
|
href: string;
|
|
94
142
|
}, {
|
|
95
143
|
href: string;
|
|
96
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
144
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
145
|
+
language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de"]>;
|
|
146
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
149
|
+
hidden?: boolean | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de";
|
|
152
|
+
hidden?: boolean | undefined;
|
|
153
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
154
|
+
href: z.ZodString;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
href: string;
|
|
157
|
+
}, {
|
|
158
|
+
href: string;
|
|
159
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
160
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
openapi?: string | string[] | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
openapi?: string | string[] | undefined;
|
|
165
|
+
}>>, "many">;
|
|
97
166
|
export type LanguagesConfig = z.infer<typeof languagesSchema>;
|
|
98
167
|
export type LanguageConfig = z.infer<typeof languageSchema>;
|
|
99
168
|
export type DecoratedLanguagesConfig = z.infer<typeof decoratedLanguagesSchema>;
|
|
@@ -8,9 +8,13 @@ const baseLanguageSchema = z.object({
|
|
|
8
8
|
.enum(['en', 'cn', 'es', 'fr', 'jp', 'pt', 'pt-BR', 'de'])
|
|
9
9
|
.describe('The name of the language in the ISO 639-1 format'),
|
|
10
10
|
hidden: hiddenSchema.optional(),
|
|
11
|
-
openapi: openApiSchema.optional(),
|
|
12
11
|
});
|
|
13
|
-
const createLanguageSchema = (type) =>
|
|
12
|
+
const createLanguageSchema = (type) => {
|
|
13
|
+
const baseSchema = baseLanguageSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('languages', type)]));
|
|
14
|
+
return type === 'decorated'
|
|
15
|
+
? baseSchema
|
|
16
|
+
: baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
|
|
17
|
+
};
|
|
14
18
|
export const nonRecursiveLanguageSchema = baseLanguageSchema.and(z.object({ href: hrefSchema }));
|
|
15
19
|
export const languageSchema = createLanguageSchema('default');
|
|
16
20
|
export const decoratedLanguageSchema = createLanguageSchema('decorated');
|
|
@@ -12,7 +12,6 @@ export declare const nonRecursiveTabSchema: 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
|
tab: string;
|
|
18
17
|
icon?: string | {
|
|
@@ -20,7 +19,6 @@ export declare const nonRecursiveTabSchema: 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
|
tab: string;
|
|
26
24
|
icon?: string | {
|
|
@@ -28,7 +26,6 @@ export declare const nonRecursiveTabSchema: 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 tabSchema: 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
|
tab: string;
|
|
55
51
|
icon?: string | {
|
|
@@ -57,7 +53,6 @@ export declare const tabSchema: 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
|
tab: string;
|
|
63
58
|
icon?: string | {
|
|
@@ -65,15 +60,13 @@ export declare const tabSchema: 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 decoratedTabSchema: 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
|
tab: 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 decoratedTabSchema: 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
|
tab: string;
|
|
92
84
|
icon?: string | {
|
|
@@ -94,7 +86,6 @@ export declare const decoratedTabSchema: 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
|
tab: string;
|
|
100
91
|
icon?: string | {
|
|
@@ -102,15 +93,53 @@ export declare const decoratedTabSchema: 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 decoratedTabSchema: z.ZodIntersection<z.ZodObject<{
|
|
110
|
+
tab: 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
|
+
tab: 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
|
+
tab: 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 tabsSchema: 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
|
tab: 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 tabsSchema: 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
|
tab: string;
|
|
129
157
|
icon?: string | {
|
|
@@ -131,7 +159,6 @@ export declare const tabsSchema: 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
|
tab: string;
|
|
137
164
|
icon?: string | {
|
|
@@ -139,15 +166,53 @@ export declare const tabsSchema: 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 tabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
183
|
+
tab: 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
|
+
tab: 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
|
+
tab: 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>[]]
|
|
150
|
-
export declare const decoratedTabsSchema: 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
|
tab: 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 decoratedTabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObje
|
|
|
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
|
tab: string;
|
|
166
230
|
icon?: string | {
|
|
@@ -168,7 +232,6 @@ export declare const decoratedTabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObje
|
|
|
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
|
tab: string;
|
|
174
237
|
icon?: string | {
|
|
@@ -176,14 +239,92 @@ export declare const decoratedTabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObje
|
|
|
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 decoratedTabsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
256
|
+
tab: 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
|
+
tab: 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
|
+
tab: 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>[]]
|
|
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
|
+
tab: 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
|
+
tab: 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
|
+
tab: 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 TabsConfig = z.infer<typeof tabsSchema>;
|
|
188
329
|
export type TabConfig = z.infer<typeof tabSchema>;
|
|
189
330
|
export type DecoratedTabsConfig = z.infer<typeof decoratedTabsSchema>;
|
|
@@ -8,9 +8,13 @@ const baseTabSchema = z.object({
|
|
|
8
8
|
tab: z.string().nonempty().describe('The name of the tab'),
|
|
9
9
|
icon: iconSchema.optional(),
|
|
10
10
|
hidden: hiddenSchema.optional(),
|
|
11
|
-
openapi: openApiSchema.optional(),
|
|
12
11
|
});
|
|
13
|
-
const createTabSchema = (type) =>
|
|
12
|
+
const createTabSchema = (type) => {
|
|
13
|
+
const baseSchema = baseTabSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('tabs', type)]));
|
|
14
|
+
return type === 'decorated'
|
|
15
|
+
? baseSchema
|
|
16
|
+
: baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
|
|
17
|
+
};
|
|
14
18
|
export const nonRecursiveTabSchema = baseTabSchema.and(z.object({ href: hrefSchema }));
|
|
15
19
|
export const tabSchema = createTabSchema('default');
|
|
16
20
|
export const decoratedTabSchema = createTabSchema('decorated');
|