@mintlify/validation 0.1.797 → 0.1.799
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/editor-navigation/types.d.ts +8 -0
- package/dist/index.js +2 -0
- package/dist/mint-config/schemas/v2/index.d.ts +520 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +7 -0
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +40 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/menu.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/menu.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +4 -0
- package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/products.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +3 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +20 -1
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +2 -1
- package/dist/mint-config/schemas/v2/properties/reusable/index.d.ts +1 -0
- package/dist/mint-config/schemas/v2/properties/reusable/index.js +1 -0
- package/dist/mint-config/schemas/v2/properties/reusable/sdk.d.ts +19 -0
- package/dist/mint-config/schemas/v2/properties/reusable/sdk.js +39 -0
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/luma.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +32 -0
- package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +52 -0
- package/dist/mint-config/validateConfig.d.ts +180 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@ export declare const baseAnchorSchema: z.ZodObject<{
|
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
anchor: z.ZodString;
|
|
6
6
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
7
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
7
8
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
8
9
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
9
10
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -42,6 +43,7 @@ export declare const baseAnchorSchema: z.ZodObject<{
|
|
|
42
43
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
43
44
|
hidden?: boolean | undefined;
|
|
44
45
|
graphql?: undefined;
|
|
46
|
+
sdk?: undefined;
|
|
45
47
|
}, {
|
|
46
48
|
anchor: string;
|
|
47
49
|
icon?: string | {
|
|
@@ -56,12 +58,14 @@ export declare const baseAnchorSchema: z.ZodObject<{
|
|
|
56
58
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
57
59
|
hidden?: boolean | undefined;
|
|
58
60
|
graphql?: undefined;
|
|
61
|
+
sdk?: undefined;
|
|
59
62
|
}>;
|
|
60
63
|
export type BaseAnchorSchema = z.infer<typeof baseAnchorSchema>;
|
|
61
64
|
export declare const nonRecursiveAnchorSchema: z.ZodObject<{
|
|
62
65
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
63
66
|
anchor: z.ZodString;
|
|
64
67
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
68
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
65
69
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
66
70
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
67
71
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -103,6 +107,7 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<{
|
|
|
103
107
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
104
108
|
hidden?: boolean | undefined;
|
|
105
109
|
graphql?: undefined;
|
|
110
|
+
sdk?: undefined;
|
|
106
111
|
}, {
|
|
107
112
|
href: string;
|
|
108
113
|
anchor: string;
|
|
@@ -118,6 +123,7 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<{
|
|
|
118
123
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
119
124
|
hidden?: boolean | undefined;
|
|
120
125
|
graphql?: undefined;
|
|
126
|
+
sdk?: undefined;
|
|
121
127
|
}>;
|
|
122
128
|
export declare const anchorSchema: z.ZodType<AnchorNavigation<'default'>>;
|
|
123
129
|
export declare const decoratedAnchorSchema: z.ZodType<AnchorNavigation<'decorated'>>;
|
|
@@ -6,6 +6,7 @@ import { hiddenSchema } from '../reusable/hidden.js';
|
|
|
6
6
|
import { hrefSchema } from '../reusable/href.js';
|
|
7
7
|
import { iconSchema } from '../reusable/icon.js';
|
|
8
8
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
9
|
+
import { sdkNotSupportedSchema } from '../reusable/sdk.js';
|
|
9
10
|
import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
|
|
10
11
|
import { globalSchema } from './global.js';
|
|
11
12
|
import { decoratedGroupsSchema, directoryField, groupsSchema } from './groups.js';
|
|
@@ -14,7 +15,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
14
15
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
15
16
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
16
17
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
17
|
-
export const baseAnchorSchema = z.object(Object.assign({ anchor: z.string().nonempty().describe('The name of the anchor'), graphql: graphqlNotSupportedSchema, icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), hidden: hiddenSchema.optional() }, directoryField));
|
|
18
|
+
export const baseAnchorSchema = z.object(Object.assign({ anchor: z.string().nonempty().describe('The name of the anchor'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), hidden: hiddenSchema.optional() }, directoryField));
|
|
18
19
|
export const nonRecursiveAnchorSchema = baseAnchorSchema.extend({ href: hrefSchema });
|
|
19
20
|
export const anchorSchema = z.union([
|
|
20
21
|
baseAnchorSchema.extend({
|
|
@@ -4,6 +4,7 @@ export declare const baseDropdownSchema: z.ZodObject<{
|
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
dropdown: z.ZodString;
|
|
6
6
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
7
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
7
8
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
8
9
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
9
10
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -44,6 +45,7 @@ export declare const baseDropdownSchema: z.ZodObject<{
|
|
|
44
45
|
description?: string | undefined;
|
|
45
46
|
hidden?: boolean | undefined;
|
|
46
47
|
graphql?: undefined;
|
|
48
|
+
sdk?: undefined;
|
|
47
49
|
}, {
|
|
48
50
|
dropdown: string;
|
|
49
51
|
icon?: string | {
|
|
@@ -59,12 +61,14 @@ export declare const baseDropdownSchema: z.ZodObject<{
|
|
|
59
61
|
description?: string | undefined;
|
|
60
62
|
hidden?: boolean | undefined;
|
|
61
63
|
graphql?: undefined;
|
|
64
|
+
sdk?: undefined;
|
|
62
65
|
}>;
|
|
63
66
|
export type BaseDropdownSchema = z.infer<typeof baseDropdownSchema>;
|
|
64
67
|
export declare const nonRecursiveDropdownSchema: z.ZodObject<{
|
|
65
68
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
66
69
|
dropdown: z.ZodString;
|
|
67
70
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
71
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
68
72
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
69
73
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
70
74
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -108,6 +112,7 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<{
|
|
|
108
112
|
description?: string | undefined;
|
|
109
113
|
hidden?: boolean | undefined;
|
|
110
114
|
graphql?: undefined;
|
|
115
|
+
sdk?: undefined;
|
|
111
116
|
}, {
|
|
112
117
|
href: string;
|
|
113
118
|
dropdown: string;
|
|
@@ -124,6 +129,7 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<{
|
|
|
124
129
|
description?: string | undefined;
|
|
125
130
|
hidden?: boolean | undefined;
|
|
126
131
|
graphql?: undefined;
|
|
132
|
+
sdk?: undefined;
|
|
127
133
|
}>;
|
|
128
134
|
export declare const dropdownSchema: z.ZodType<DropdownNavigation<'default'>>;
|
|
129
135
|
export declare const decoratedDropdownSchema: z.ZodType<DropdownNavigation<'decorated'>>;
|
|
@@ -6,6 +6,7 @@ import { hiddenSchema } from '../reusable/hidden.js';
|
|
|
6
6
|
import { hrefSchema } from '../reusable/href.js';
|
|
7
7
|
import { iconSchema } from '../reusable/icon.js';
|
|
8
8
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
9
|
+
import { sdkNotSupportedSchema } from '../reusable/sdk.js';
|
|
9
10
|
import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
|
|
10
11
|
import { globalSchema } from './global.js';
|
|
11
12
|
import { decoratedGroupsSchema, directoryField, groupsSchema } from './groups.js';
|
|
@@ -14,7 +15,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
14
15
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
15
16
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
16
17
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
17
|
-
export const baseDropdownSchema = z.object(Object.assign({ dropdown: z.string().nonempty().describe('The name of the dropdown'), graphql: graphqlNotSupportedSchema, icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the dropdown'), hidden: hiddenSchema.optional() }, directoryField));
|
|
18
|
+
export const baseDropdownSchema = z.object(Object.assign({ dropdown: z.string().nonempty().describe('The name of the dropdown'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the dropdown'), hidden: hiddenSchema.optional() }, directoryField));
|
|
18
19
|
export const nonRecursiveDropdownSchema = baseDropdownSchema.extend({ href: hrefSchema });
|
|
19
20
|
export const dropdownSchema = z.union([
|
|
20
21
|
baseDropdownSchema.extend({
|
|
@@ -10,6 +10,7 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
10
10
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
11
11
|
group: z.ZodString;
|
|
12
12
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
13
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
13
14
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
boost: z.ZodOptional<z.ZodNumber>;
|
|
15
16
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
@@ -45,6 +46,7 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
45
46
|
boost?: number | undefined;
|
|
46
47
|
hidden?: boolean | undefined;
|
|
47
48
|
graphql?: undefined;
|
|
49
|
+
sdk?: undefined;
|
|
48
50
|
root?: string | undefined;
|
|
49
51
|
}, {
|
|
50
52
|
group: string;
|
|
@@ -61,6 +63,7 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
61
63
|
boost?: number | undefined;
|
|
62
64
|
hidden?: boolean | undefined;
|
|
63
65
|
graphql?: undefined;
|
|
66
|
+
sdk?: undefined;
|
|
64
67
|
root?: string | undefined;
|
|
65
68
|
}>;
|
|
66
69
|
export type BaseGroupSchema = z.infer<typeof baseGroupSchema>;
|
|
@@ -81,6 +84,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<{
|
|
|
81
84
|
boost?: number | undefined;
|
|
82
85
|
hidden?: boolean | undefined;
|
|
83
86
|
graphql?: undefined;
|
|
87
|
+
sdk?: undefined;
|
|
84
88
|
root?: string | undefined;
|
|
85
89
|
} & {
|
|
86
90
|
openapi?: string | string[] | {
|
|
@@ -108,6 +112,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<{
|
|
|
108
112
|
boost?: number | undefined;
|
|
109
113
|
hidden?: boolean | undefined;
|
|
110
114
|
graphql?: undefined;
|
|
115
|
+
sdk?: undefined;
|
|
111
116
|
root?: string | undefined;
|
|
112
117
|
} & {
|
|
113
118
|
openapi?: string | string[] | {
|
|
@@ -136,6 +141,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
136
141
|
boost?: number | undefined;
|
|
137
142
|
hidden?: boolean | undefined;
|
|
138
143
|
graphql?: undefined;
|
|
144
|
+
sdk?: undefined;
|
|
139
145
|
root?: string | undefined;
|
|
140
146
|
}, "root"> & {
|
|
141
147
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -155,6 +161,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
155
161
|
boost?: number | undefined;
|
|
156
162
|
hidden?: boolean | undefined;
|
|
157
163
|
graphql?: undefined;
|
|
164
|
+
sdk?: undefined;
|
|
158
165
|
root?: string | undefined;
|
|
159
166
|
}, "root"> & {
|
|
160
167
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -5,6 +5,7 @@ import { hiddenSchema } from '../reusable/hidden.js';
|
|
|
5
5
|
import { iconSchema } from '../reusable/icon.js';
|
|
6
6
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
7
7
|
import { decoratedPageSchema, pageSchema } from '../reusable/page.js';
|
|
8
|
+
import { sdkNotSupportedSchema } from '../reusable/sdk.js';
|
|
8
9
|
import { searchableSchema } from '../reusable/searchable.js';
|
|
9
10
|
import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
10
11
|
/** How automatic directory UI is shown for group roots under this navigation node. Inherits through `navigation`. */
|
|
@@ -15,7 +16,7 @@ export const directoryField = {
|
|
|
15
16
|
.optional()
|
|
16
17
|
.describe('Directory layout for this navigation node and its descendants. "accordion" and "card" show automatic directory UI on eligible root pages; "none" disables it. Inherits recursively; descendants can override.'),
|
|
17
18
|
};
|
|
18
|
-
export const baseGroupSchema = z.object(Object.assign({ group: z.string().nonempty().describe('The name of the group'), graphql: graphqlNotSupportedSchema, public: z.boolean().optional().describe('Whether the group is public'), boost: z
|
|
19
|
+
export const baseGroupSchema = z.object(Object.assign({ group: z.string().nonempty().describe('The name of the group'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, public: z.boolean().optional().describe('Whether the group is public'), boost: z
|
|
19
20
|
.number()
|
|
20
21
|
.optional()
|
|
21
22
|
.describe('Search ranking multiplier for pages in this group (e.g. 3 = 3x boost)'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), root: pageSchema.optional(), tag: z.string().optional().describe('Tag for the group'), expanded: z.boolean().optional().describe('Whether the group is expanded by default') }, directoryField));
|
|
@@ -11,102 +11,121 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
11
11
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
12
12
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
13
13
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
14
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
14
15
|
} & {
|
|
15
16
|
products: z.ZodArray<z.ZodType<import("./divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
18
19
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
19
20
|
graphql?: undefined;
|
|
21
|
+
sdk?: undefined;
|
|
20
22
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
23
25
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
24
26
|
graphql?: undefined;
|
|
27
|
+
sdk?: undefined;
|
|
25
28
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
26
29
|
}>, z.ZodObject<{
|
|
27
30
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
28
31
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
29
32
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
33
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
30
34
|
} & {
|
|
31
35
|
languages: z.ZodArray<z.ZodType<import("./divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
32
36
|
}, "strip", z.ZodTypeAny, {
|
|
33
37
|
languages: import("./divisionNav.js").LanguageNavigation<"default">[];
|
|
34
38
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
35
39
|
graphql?: undefined;
|
|
40
|
+
sdk?: undefined;
|
|
36
41
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
37
42
|
}, {
|
|
38
43
|
languages: import("./divisionNav.js").LanguageNavigation<"default">[];
|
|
39
44
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
40
45
|
graphql?: undefined;
|
|
46
|
+
sdk?: undefined;
|
|
41
47
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
42
48
|
}>, z.ZodObject<{
|
|
43
49
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
44
50
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
45
51
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
52
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
46
53
|
} & {
|
|
47
54
|
versions: z.ZodArray<z.ZodType<import("./divisionNav.js").VersionNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").VersionNavigation<"default">>, "many">;
|
|
48
55
|
}, "strip", z.ZodTypeAny, {
|
|
49
56
|
versions: import("./divisionNav.js").VersionNavigation<"default">[];
|
|
50
57
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
51
58
|
graphql?: undefined;
|
|
59
|
+
sdk?: undefined;
|
|
52
60
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
53
61
|
}, {
|
|
54
62
|
versions: import("./divisionNav.js").VersionNavigation<"default">[];
|
|
55
63
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
56
64
|
graphql?: undefined;
|
|
65
|
+
sdk?: undefined;
|
|
57
66
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
58
67
|
}>, z.ZodObject<{
|
|
59
68
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
60
69
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
61
70
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
71
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
62
72
|
} & {
|
|
63
73
|
tabs: z.ZodArray<z.ZodType<import("./divisionNav.js").TabNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").TabNavigation<"default">>, "many">;
|
|
64
74
|
}, "strip", z.ZodTypeAny, {
|
|
65
75
|
tabs: import("./divisionNav.js").TabNavigation<"default">[];
|
|
66
76
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
67
77
|
graphql?: undefined;
|
|
78
|
+
sdk?: undefined;
|
|
68
79
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
69
80
|
}, {
|
|
70
81
|
tabs: import("./divisionNav.js").TabNavigation<"default">[];
|
|
71
82
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
72
83
|
graphql?: undefined;
|
|
84
|
+
sdk?: undefined;
|
|
73
85
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
74
86
|
}>, z.ZodObject<{
|
|
75
87
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
76
88
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
77
89
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
90
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
78
91
|
} & {
|
|
79
92
|
dropdowns: z.ZodArray<z.ZodType<import("./divisionNav.js").DropdownNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").DropdownNavigation<"default">>, "many">;
|
|
80
93
|
}, "strip", z.ZodTypeAny, {
|
|
81
94
|
dropdowns: import("./divisionNav.js").DropdownNavigation<"default">[];
|
|
82
95
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
83
96
|
graphql?: undefined;
|
|
97
|
+
sdk?: undefined;
|
|
84
98
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
85
99
|
}, {
|
|
86
100
|
dropdowns: import("./divisionNav.js").DropdownNavigation<"default">[];
|
|
87
101
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
88
102
|
graphql?: undefined;
|
|
103
|
+
sdk?: undefined;
|
|
89
104
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
90
105
|
}>, z.ZodObject<{
|
|
91
106
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
92
107
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
93
108
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
109
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
94
110
|
} & {
|
|
95
111
|
anchors: z.ZodArray<z.ZodType<import("./divisionNav.js").AnchorNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").AnchorNavigation<"default">>, "many">;
|
|
96
112
|
}, "strip", z.ZodTypeAny, {
|
|
97
113
|
anchors: import("./divisionNav.js").AnchorNavigation<"default">[];
|
|
98
114
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
99
115
|
graphql?: undefined;
|
|
116
|
+
sdk?: undefined;
|
|
100
117
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
101
118
|
}, {
|
|
102
119
|
anchors: import("./divisionNav.js").AnchorNavigation<"default">[];
|
|
103
120
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
104
121
|
graphql?: undefined;
|
|
122
|
+
sdk?: undefined;
|
|
105
123
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
106
124
|
}>, z.ZodObject<{
|
|
107
125
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
108
126
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
109
127
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
128
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
110
129
|
} & {
|
|
111
130
|
groups: z.ZodArray<z.ZodType<{
|
|
112
131
|
group: string;
|
|
@@ -123,6 +142,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
123
142
|
boost?: number | undefined;
|
|
124
143
|
hidden?: boolean | undefined;
|
|
125
144
|
graphql?: undefined;
|
|
145
|
+
sdk?: undefined;
|
|
126
146
|
root?: string | undefined;
|
|
127
147
|
} & {
|
|
128
148
|
openapi?: string | string[] | {
|
|
@@ -150,6 +170,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
150
170
|
boost?: number | undefined;
|
|
151
171
|
hidden?: boolean | undefined;
|
|
152
172
|
graphql?: undefined;
|
|
173
|
+
sdk?: undefined;
|
|
153
174
|
root?: string | undefined;
|
|
154
175
|
} & {
|
|
155
176
|
openapi?: string | string[] | {
|
|
@@ -179,6 +200,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
179
200
|
boost?: number | undefined;
|
|
180
201
|
hidden?: boolean | undefined;
|
|
181
202
|
graphql?: undefined;
|
|
203
|
+
sdk?: undefined;
|
|
182
204
|
root?: string | undefined;
|
|
183
205
|
} & {
|
|
184
206
|
openapi?: string | string[] | {
|
|
@@ -194,6 +216,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
194
216
|
})[];
|
|
195
217
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
196
218
|
graphql?: undefined;
|
|
219
|
+
sdk?: undefined;
|
|
197
220
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
198
221
|
}, {
|
|
199
222
|
groups: ({
|
|
@@ -211,6 +234,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
211
234
|
boost?: number | undefined;
|
|
212
235
|
hidden?: boolean | undefined;
|
|
213
236
|
graphql?: undefined;
|
|
237
|
+
sdk?: undefined;
|
|
214
238
|
root?: string | undefined;
|
|
215
239
|
} & {
|
|
216
240
|
openapi?: string | string[] | {
|
|
@@ -226,11 +250,13 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
226
250
|
})[];
|
|
227
251
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
228
252
|
graphql?: undefined;
|
|
253
|
+
sdk?: undefined;
|
|
229
254
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
230
255
|
}>, z.ZodObject<{
|
|
231
256
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
232
257
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
233
258
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
259
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
234
260
|
} & {
|
|
235
261
|
pages: z.ZodArray<z.ZodType<string | ({
|
|
236
262
|
group: string;
|
|
@@ -247,6 +273,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
247
273
|
boost?: number | undefined;
|
|
248
274
|
hidden?: boolean | undefined;
|
|
249
275
|
graphql?: undefined;
|
|
276
|
+
sdk?: undefined;
|
|
250
277
|
root?: string | undefined;
|
|
251
278
|
} & {
|
|
252
279
|
openapi?: string | string[] | {
|
|
@@ -274,6 +301,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
274
301
|
boost?: number | undefined;
|
|
275
302
|
hidden?: boolean | undefined;
|
|
276
303
|
graphql?: undefined;
|
|
304
|
+
sdk?: undefined;
|
|
277
305
|
root?: string | undefined;
|
|
278
306
|
} & {
|
|
279
307
|
openapi?: string | string[] | {
|
|
@@ -303,6 +331,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
303
331
|
boost?: number | undefined;
|
|
304
332
|
hidden?: boolean | undefined;
|
|
305
333
|
graphql?: undefined;
|
|
334
|
+
sdk?: undefined;
|
|
306
335
|
root?: string | undefined;
|
|
307
336
|
} & {
|
|
308
337
|
openapi?: string | string[] | {
|
|
@@ -318,6 +347,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
318
347
|
}))[];
|
|
319
348
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
320
349
|
graphql?: undefined;
|
|
350
|
+
sdk?: undefined;
|
|
321
351
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
322
352
|
}, {
|
|
323
353
|
pages: (string | ({
|
|
@@ -335,6 +365,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
335
365
|
boost?: number | undefined;
|
|
336
366
|
hidden?: boolean | undefined;
|
|
337
367
|
graphql?: undefined;
|
|
368
|
+
sdk?: undefined;
|
|
338
369
|
root?: string | undefined;
|
|
339
370
|
} & {
|
|
340
371
|
openapi?: string | string[] | {
|
|
@@ -350,6 +381,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
350
381
|
}))[];
|
|
351
382
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
352
383
|
graphql?: undefined;
|
|
384
|
+
sdk?: undefined;
|
|
353
385
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
354
386
|
}>]>;
|
|
355
387
|
export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
@@ -404,6 +436,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
404
436
|
boost?: number | undefined;
|
|
405
437
|
hidden?: boolean | undefined;
|
|
406
438
|
graphql?: undefined;
|
|
439
|
+
sdk?: undefined;
|
|
407
440
|
root?: string | undefined;
|
|
408
441
|
}, "root"> & {
|
|
409
442
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -423,6 +456,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
423
456
|
boost?: number | undefined;
|
|
424
457
|
hidden?: boolean | undefined;
|
|
425
458
|
graphql?: undefined;
|
|
459
|
+
sdk?: undefined;
|
|
426
460
|
root?: string | undefined;
|
|
427
461
|
}, "root"> & {
|
|
428
462
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -444,6 +478,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
444
478
|
boost?: number | undefined;
|
|
445
479
|
hidden?: boolean | undefined;
|
|
446
480
|
graphql?: undefined;
|
|
481
|
+
sdk?: undefined;
|
|
447
482
|
root?: string | undefined;
|
|
448
483
|
}, "root"> & {
|
|
449
484
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -465,6 +500,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
465
500
|
boost?: number | undefined;
|
|
466
501
|
hidden?: boolean | undefined;
|
|
467
502
|
graphql?: undefined;
|
|
503
|
+
sdk?: undefined;
|
|
468
504
|
root?: string | undefined;
|
|
469
505
|
}, "root"> & {
|
|
470
506
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -678,6 +714,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
678
714
|
boost?: number | undefined;
|
|
679
715
|
hidden?: boolean | undefined;
|
|
680
716
|
graphql?: undefined;
|
|
717
|
+
sdk?: undefined;
|
|
681
718
|
root?: string | undefined;
|
|
682
719
|
}, "root"> & {
|
|
683
720
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -889,6 +926,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
889
926
|
boost?: number | undefined;
|
|
890
927
|
hidden?: boolean | undefined;
|
|
891
928
|
graphql?: undefined;
|
|
929
|
+
sdk?: undefined;
|
|
892
930
|
root?: string | undefined;
|
|
893
931
|
}, "root"> & {
|
|
894
932
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1102,6 +1140,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
1102
1140
|
boost?: number | undefined;
|
|
1103
1141
|
hidden?: boolean | undefined;
|
|
1104
1142
|
graphql?: undefined;
|
|
1143
|
+
sdk?: undefined;
|
|
1105
1144
|
root?: string | undefined;
|
|
1106
1145
|
}, "root"> & {
|
|
1107
1146
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1315,6 +1354,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
1315
1354
|
boost?: number | undefined;
|
|
1316
1355
|
hidden?: boolean | undefined;
|
|
1317
1356
|
graphql?: undefined;
|
|
1357
|
+
sdk?: undefined;
|
|
1318
1358
|
root?: string | undefined;
|
|
1319
1359
|
}, "root"> & {
|
|
1320
1360
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
3
|
+
import { sdkNotSupportedSchema } from '../reusable/sdk.js';
|
|
3
4
|
import { anchorsSchema, decoratedAnchorsSchema, } from './anchors.js';
|
|
4
5
|
import { decoratedDropdownsSchema, dropdownsSchema, } from './dropdown.js';
|
|
5
6
|
import { globalSchema } from './global.js';
|
|
@@ -9,7 +10,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
9
10
|
import { decoratedProductsSchema, productsSchema, } from './products.js';
|
|
10
11
|
import { decoratedTabsSchema, tabsSchema, } from './tabs.js';
|
|
11
12
|
import { decoratedVersionsSchema, versionsSchema, } from './version.js';
|
|
12
|
-
const baseNavigationSchema = z.object(Object.assign({ global: globalSchema.optional(), graphql: graphqlNotSupportedSchema }, directoryField));
|
|
13
|
+
const baseNavigationSchema = z.object(Object.assign({ global: globalSchema.optional(), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema }, directoryField));
|
|
13
14
|
export const navigationSchema = z
|
|
14
15
|
.union([
|
|
15
16
|
baseNavigationSchema.extend({ products: productsSchema }),
|
|
@@ -4,6 +4,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
|
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "zh-CN", "zh-TW", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "ja-JP", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "da", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
|
|
6
6
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
7
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
7
8
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
8
9
|
banner: z.ZodOptional<z.ZodObject<{
|
|
9
10
|
content: z.ZodString;
|
|
@@ -331,6 +332,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
|
|
|
331
332
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
332
333
|
hidden?: boolean | undefined;
|
|
333
334
|
graphql?: undefined;
|
|
335
|
+
sdk?: undefined;
|
|
334
336
|
banner?: {
|
|
335
337
|
content: string;
|
|
336
338
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -399,6 +401,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
|
|
|
399
401
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
400
402
|
hidden?: boolean | undefined;
|
|
401
403
|
graphql?: undefined;
|
|
404
|
+
sdk?: undefined;
|
|
402
405
|
banner?: {
|
|
403
406
|
content: string;
|
|
404
407
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -457,6 +460,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
|
|
|
457
460
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
458
461
|
language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "zh-CN", "zh-TW", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "ja-JP", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "da", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
|
|
459
462
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
463
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
460
464
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
461
465
|
banner: z.ZodOptional<z.ZodObject<{
|
|
462
466
|
content: z.ZodString;
|
|
@@ -787,6 +791,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
|
|
|
787
791
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
788
792
|
hidden?: boolean | undefined;
|
|
789
793
|
graphql?: undefined;
|
|
794
|
+
sdk?: undefined;
|
|
790
795
|
banner?: {
|
|
791
796
|
content: string;
|
|
792
797
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -856,6 +861,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
|
|
|
856
861
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
857
862
|
hidden?: boolean | undefined;
|
|
858
863
|
graphql?: undefined;
|
|
864
|
+
sdk?: undefined;
|
|
859
865
|
banner?: {
|
|
860
866
|
content: string;
|
|
861
867
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -8,6 +8,7 @@ import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
|
8
8
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
9
9
|
import { hrefSchema } from '../reusable/href.js';
|
|
10
10
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
11
|
+
import { sdkNotSupportedSchema } from '../reusable/sdk.js';
|
|
11
12
|
import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
|
|
12
13
|
import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
|
|
13
14
|
import { globalSchema } from './global.js';
|
|
@@ -16,7 +17,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
16
17
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
17
18
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
18
19
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
19
|
-
export const baseLanguageSchema = z.object(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), graphql: graphqlNotSupportedSchema, default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField));
|
|
20
|
+
export const baseLanguageSchema = z.object(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField));
|
|
20
21
|
export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
|
|
21
22
|
export const languageSchema = z
|
|
22
23
|
.union([
|
|
@@ -4,6 +4,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
|
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
item: z.ZodString;
|
|
6
6
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
7
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
7
8
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
8
9
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
9
10
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -30,6 +31,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
|
|
|
30
31
|
description?: string | undefined;
|
|
31
32
|
hidden?: boolean | undefined;
|
|
32
33
|
graphql?: undefined;
|
|
34
|
+
sdk?: undefined;
|
|
33
35
|
}, {
|
|
34
36
|
item: string;
|
|
35
37
|
icon?: string | {
|
|
@@ -41,12 +43,14 @@ export declare const baseMenuItemSchema: z.ZodObject<{
|
|
|
41
43
|
description?: string | undefined;
|
|
42
44
|
hidden?: boolean | undefined;
|
|
43
45
|
graphql?: undefined;
|
|
46
|
+
sdk?: undefined;
|
|
44
47
|
}>;
|
|
45
48
|
export type BaseMenuItemSchema = z.infer<typeof baseMenuItemSchema>;
|
|
46
49
|
export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
|
|
47
50
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
48
51
|
item: z.ZodString;
|
|
49
52
|
graphql: z.ZodOptional<z.ZodNever>;
|
|
53
|
+
sdk: z.ZodOptional<z.ZodNever>;
|
|
50
54
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
51
55
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
52
56
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -76,6 +80,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
|
|
|
76
80
|
description?: string | undefined;
|
|
77
81
|
hidden?: boolean | undefined;
|
|
78
82
|
graphql?: undefined;
|
|
83
|
+
sdk?: undefined;
|
|
79
84
|
}, {
|
|
80
85
|
href: string;
|
|
81
86
|
item: string;
|
|
@@ -88,6 +93,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
|
|
|
88
93
|
description?: string | undefined;
|
|
89
94
|
hidden?: boolean | undefined;
|
|
90
95
|
graphql?: undefined;
|
|
96
|
+
sdk?: undefined;
|
|
91
97
|
}>;
|
|
92
98
|
export declare const menuItemSchema: z.ZodType<MenuItemNavigation<'default'>>;
|
|
93
99
|
export declare const decoratedMenuItemSchema: z.ZodType<MenuItemNavigation<'decorated'>>;
|
|
@@ -5,6 +5,7 @@ import { hiddenSchema } from '../reusable/hidden.js';
|
|
|
5
5
|
import { hrefSchema } from '../reusable/href.js';
|
|
6
6
|
import { iconSchema } from '../reusable/icon.js';
|
|
7
7
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
8
|
+
import { sdkNotSupportedSchema } from '../reusable/sdk.js';
|
|
8
9
|
import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
|
|
9
10
|
import { decoratedDropdownsSchema, dropdownsSchema } from './dropdown.js';
|
|
10
11
|
import { globalSchema } from './global.js';
|
|
@@ -14,7 +15,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
14
15
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
15
16
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
16
17
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
17
|
-
export const baseMenuItemSchema = z.object(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField));
|
|
18
|
+
export const baseMenuItemSchema = z.object(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField));
|
|
18
19
|
export const nonRecursiveMenuItemSchema = baseMenuItemSchema.extend({ href: hrefSchema });
|
|
19
20
|
export const menuItemSchema = z.union([
|
|
20
21
|
baseMenuItemSchema.extend({
|