zudoku 0.19.0 → 0.20.1
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/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/config/common.d.ts +8 -0
- package/dist/config/common.js +2 -0
- package/dist/config/common.js.map +1 -0
- package/dist/config/config.d.ts +3 -2
- package/dist/config/loader.d.ts +12 -0
- package/dist/config/loader.js +117 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/validators/common.d.ts +4651 -0
- package/dist/config/validators/common.js +269 -0
- package/dist/config/validators/common.js.map +1 -0
- package/dist/config/validators/validate.d.ts +350 -584
- package/dist/config/validators/validate.js +9 -246
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +1 -2
- package/dist/lib/components/navigation/SidebarCategory.js +3 -4
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +1 -3
- package/dist/lib/components/navigation/SidebarItem.js +4 -9
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +1 -1
- package/dist/lib/ui/Command.d.ts +1 -1
- package/dist/lib/util/MdxComponents.d.ts +2 -3
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/build.js +4 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +1 -3
- package/dist/vite/config.js +2 -4
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -2
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin.d.ts +1 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +2 -1
- package/dist/vite/prerender.js +2 -2
- package/dist/vite/prerender.js.map +1 -1
- package/dist/vite/sitemap.d.ts +1 -1
- package/dist/zuplo/env.d.ts +6 -0
- package/dist/zuplo/env.js +9 -0
- package/dist/zuplo/env.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +2 -2
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/Markdown-ievDDhFT.js.map +1 -1
- package/lib/zudoku.components.js +259 -271
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +7 -9
- package/src/lib/components/navigation/SidebarItem.tsx +3 -16
- package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
- package/src/lib/core/ZudokuContext.ts +1 -1
- package/src/lib/plugins/markdown/index.tsx +1 -1
- package/src/lib/plugins/markdown/resolver.ts +2 -4
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +2 -5
|
@@ -1,222 +1,9 @@
|
|
|
1
1
|
import type { Options } from "@mdx-js/rollup";
|
|
2
2
|
import type { ComponentType, ReactNode } from "react";
|
|
3
|
-
import
|
|
4
|
-
import z, { type ZodEnumDef, ZodOptional, ZodString, ZodType, ZodUnion } from "zod";
|
|
3
|
+
import z from "zod";
|
|
5
4
|
import type { ExposedComponentProps } from "../../lib/components/SlotletProvider.js";
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
declare const ApiSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
9
|
-
type: z.ZodLiteral<"url">;
|
|
10
|
-
input: z.ZodString;
|
|
11
|
-
}, {
|
|
12
|
-
server: z.ZodOptional<z.ZodString>;
|
|
13
|
-
id: z.ZodOptional<z.ZodString>;
|
|
14
|
-
navigationId: z.ZodOptional<z.ZodString>;
|
|
15
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
-
label: z.ZodString;
|
|
17
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
tags: string[];
|
|
20
|
-
label: string;
|
|
21
|
-
}, {
|
|
22
|
-
tags: string[];
|
|
23
|
-
label: string;
|
|
24
|
-
}>, "many">>;
|
|
25
|
-
}>, "strip", z.ZodTypeAny, {
|
|
26
|
-
type: "url";
|
|
27
|
-
input: string;
|
|
28
|
-
server?: string | undefined;
|
|
29
|
-
id?: string | undefined;
|
|
30
|
-
navigationId?: string | undefined;
|
|
31
|
-
categories?: {
|
|
32
|
-
tags: string[];
|
|
33
|
-
label: string;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
type: "url";
|
|
37
|
-
input: string;
|
|
38
|
-
server?: string | undefined;
|
|
39
|
-
id?: string | undefined;
|
|
40
|
-
navigationId?: string | undefined;
|
|
41
|
-
categories?: {
|
|
42
|
-
tags: string[];
|
|
43
|
-
label: string;
|
|
44
|
-
}[] | undefined;
|
|
45
|
-
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
46
|
-
type: z.ZodLiteral<"file">;
|
|
47
|
-
input: z.ZodString;
|
|
48
|
-
}, {
|
|
49
|
-
server: z.ZodOptional<z.ZodString>;
|
|
50
|
-
id: z.ZodOptional<z.ZodString>;
|
|
51
|
-
navigationId: z.ZodOptional<z.ZodString>;
|
|
52
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
-
label: z.ZodString;
|
|
54
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
55
|
-
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
tags: string[];
|
|
57
|
-
label: string;
|
|
58
|
-
}, {
|
|
59
|
-
tags: string[];
|
|
60
|
-
label: string;
|
|
61
|
-
}>, "many">>;
|
|
62
|
-
}>, {
|
|
63
|
-
postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
|
|
64
|
-
}>, "strip", z.ZodTypeAny, {
|
|
65
|
-
type: "file";
|
|
66
|
-
input: string;
|
|
67
|
-
server?: string | undefined;
|
|
68
|
-
id?: string | undefined;
|
|
69
|
-
navigationId?: string | undefined;
|
|
70
|
-
categories?: {
|
|
71
|
-
tags: string[];
|
|
72
|
-
label: string;
|
|
73
|
-
}[] | undefined;
|
|
74
|
-
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
type: "file";
|
|
77
|
-
input: string;
|
|
78
|
-
server?: string | undefined;
|
|
79
|
-
id?: string | undefined;
|
|
80
|
-
navigationId?: string | undefined;
|
|
81
|
-
categories?: {
|
|
82
|
-
tags: string[];
|
|
83
|
-
label: string;
|
|
84
|
-
}[] | undefined;
|
|
85
|
-
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
86
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
87
|
-
type: z.ZodLiteral<"raw">;
|
|
88
|
-
input: z.ZodString;
|
|
89
|
-
}, {
|
|
90
|
-
server: z.ZodOptional<z.ZodString>;
|
|
91
|
-
id: z.ZodOptional<z.ZodString>;
|
|
92
|
-
navigationId: z.ZodOptional<z.ZodString>;
|
|
93
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
-
label: z.ZodString;
|
|
95
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
96
|
-
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
tags: string[];
|
|
98
|
-
label: string;
|
|
99
|
-
}, {
|
|
100
|
-
tags: string[];
|
|
101
|
-
label: string;
|
|
102
|
-
}>, "many">>;
|
|
103
|
-
}>, "strip", z.ZodTypeAny, {
|
|
104
|
-
type: "raw";
|
|
105
|
-
input: string;
|
|
106
|
-
server?: string | undefined;
|
|
107
|
-
id?: string | undefined;
|
|
108
|
-
navigationId?: string | undefined;
|
|
109
|
-
categories?: {
|
|
110
|
-
tags: string[];
|
|
111
|
-
label: string;
|
|
112
|
-
}[] | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
type: "raw";
|
|
115
|
-
input: string;
|
|
116
|
-
server?: string | undefined;
|
|
117
|
-
id?: string | undefined;
|
|
118
|
-
navigationId?: string | undefined;
|
|
119
|
-
categories?: {
|
|
120
|
-
tags: string[];
|
|
121
|
-
label: string;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
}>]>;
|
|
124
|
-
declare const SiteMapSchema: z.ZodOptional<z.ZodObject<{
|
|
125
|
-
/**
|
|
126
|
-
* Base url of your website
|
|
127
|
-
*/
|
|
128
|
-
siteUrl: z.ZodString;
|
|
129
|
-
/**
|
|
130
|
-
* Change frequency.
|
|
131
|
-
* @default 'daily'
|
|
132
|
-
*/
|
|
133
|
-
changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
|
|
134
|
-
/**
|
|
135
|
-
* Priority
|
|
136
|
-
* @default 0.7
|
|
137
|
-
*/
|
|
138
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
outDir: z.ZodOptional<z.ZodString>;
|
|
140
|
-
/**
|
|
141
|
-
* Add <lastmod/> property.
|
|
142
|
-
* @default true
|
|
143
|
-
*/
|
|
144
|
-
autoLastmod: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
-
/**
|
|
146
|
-
* Array of relative paths to exclude from listing on sitemap.xml or sitemap-*.xml.
|
|
147
|
-
* @example ['/page-0', '/page/example']
|
|
148
|
-
*/
|
|
149
|
-
exclude: z.ZodOptional<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodString, "many">>>, z.ZodArray<z.ZodString, "many">]>>;
|
|
150
|
-
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
siteUrl: string;
|
|
152
|
-
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
153
|
-
priority?: number | undefined;
|
|
154
|
-
outDir?: string | undefined;
|
|
155
|
-
autoLastmod?: boolean | undefined;
|
|
156
|
-
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
siteUrl: string;
|
|
159
|
-
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
160
|
-
priority?: number | undefined;
|
|
161
|
-
outDir?: string | undefined;
|
|
162
|
-
autoLastmod?: boolean | undefined;
|
|
163
|
-
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
164
|
-
}>>;
|
|
165
|
-
declare const DocsConfigSchema: z.ZodObject<{
|
|
166
|
-
files: z.ZodString;
|
|
167
|
-
defaultOptions: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
toc: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
-
disablePager: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
-
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
toc?: boolean | undefined;
|
|
172
|
-
disablePager?: boolean | undefined;
|
|
173
|
-
}, {
|
|
174
|
-
toc?: boolean | undefined;
|
|
175
|
-
disablePager?: boolean | undefined;
|
|
176
|
-
}>>;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
files: string;
|
|
179
|
-
defaultOptions?: {
|
|
180
|
-
toc?: boolean | undefined;
|
|
181
|
-
disablePager?: boolean | undefined;
|
|
182
|
-
} | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
files: string;
|
|
185
|
-
defaultOptions?: {
|
|
186
|
-
toc?: boolean | undefined;
|
|
187
|
-
disablePager?: boolean | undefined;
|
|
188
|
-
} | undefined;
|
|
189
|
-
}>;
|
|
190
|
-
declare const TopNavigationItemSchema: z.ZodObject<{
|
|
191
|
-
label: z.ZodString;
|
|
192
|
-
id: z.ZodString;
|
|
193
|
-
default: z.ZodOptional<z.ZodString>;
|
|
194
|
-
display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
|
|
195
|
-
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
id: string;
|
|
197
|
-
label: string;
|
|
198
|
-
default?: string | undefined;
|
|
199
|
-
display?: "auth" | "anon" | "always" | undefined;
|
|
200
|
-
}, {
|
|
201
|
-
id: string;
|
|
202
|
-
label: string;
|
|
203
|
-
default?: string | undefined;
|
|
204
|
-
display?: "auth" | "anon" | "always" | undefined;
|
|
205
|
-
}>;
|
|
206
|
-
type BannerColorType = ZodOptional<ZodUnion<[
|
|
207
|
-
ZodType<"note" | "tip" | "info" | "caution" | "danger" | (string & {}), ZodEnumDef>,
|
|
208
|
-
ZodString
|
|
209
|
-
]>>;
|
|
210
|
-
declare const Redirect: z.ZodObject<{
|
|
211
|
-
from: z.ZodString;
|
|
212
|
-
to: z.ZodString;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
from: string;
|
|
215
|
-
to: string;
|
|
216
|
-
}, {
|
|
217
|
-
from: string;
|
|
218
|
-
to: string;
|
|
219
|
-
}>;
|
|
5
|
+
import type { ZudokuPlugin } from "../../lib/core/plugins.js";
|
|
6
|
+
import { MdxComponentsType } from "../../lib/util/MdxComponents.js";
|
|
220
7
|
declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
221
8
|
basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
222
9
|
page: z.ZodOptional<z.ZodObject<{
|
|
@@ -227,73 +14,73 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
227
14
|
light: z.ZodString;
|
|
228
15
|
dark: z.ZodString;
|
|
229
16
|
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
light: string;
|
|
231
17
|
dark: string;
|
|
232
|
-
}, {
|
|
233
18
|
light: string;
|
|
19
|
+
}, {
|
|
234
20
|
dark: string;
|
|
21
|
+
light: string;
|
|
235
22
|
}>;
|
|
236
23
|
alt: z.ZodOptional<z.ZodString>;
|
|
237
24
|
width: z.ZodOptional<z.ZodString>;
|
|
238
25
|
}, "strip", z.ZodTypeAny, {
|
|
239
26
|
src: {
|
|
240
|
-
light: string;
|
|
241
27
|
dark: string;
|
|
28
|
+
light: string;
|
|
242
29
|
};
|
|
243
|
-
alt?: string | undefined;
|
|
244
30
|
width?: string | undefined;
|
|
31
|
+
alt?: string | undefined;
|
|
245
32
|
}, {
|
|
246
33
|
src: {
|
|
247
|
-
light: string;
|
|
248
34
|
dark: string;
|
|
35
|
+
light: string;
|
|
249
36
|
};
|
|
250
|
-
alt?: string | undefined;
|
|
251
37
|
width?: string | undefined;
|
|
38
|
+
alt?: string | undefined;
|
|
252
39
|
}>>;
|
|
253
40
|
banner: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
254
41
|
message: z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>;
|
|
255
|
-
color:
|
|
42
|
+
color: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
256
43
|
dismissible: z.ZodOptional<z.ZodBoolean>;
|
|
257
44
|
}, "strip", z.ZodTypeAny, {
|
|
258
45
|
message: NonNullable<ReactNode>;
|
|
259
|
-
color?:
|
|
46
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
260
47
|
dismissible?: boolean | undefined;
|
|
261
48
|
}, {
|
|
262
49
|
message: NonNullable<ReactNode>;
|
|
263
|
-
color?:
|
|
50
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
264
51
|
dismissible?: boolean | undefined;
|
|
265
52
|
}>>>;
|
|
266
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
banner?: {
|
|
55
|
+
message: NonNullable<ReactNode>;
|
|
56
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
57
|
+
dismissible?: boolean | undefined;
|
|
58
|
+
} | undefined;
|
|
267
59
|
pageTitle?: string | undefined;
|
|
268
60
|
logoUrl?: string | undefined;
|
|
269
61
|
logo?: {
|
|
270
62
|
src: {
|
|
271
|
-
light: string;
|
|
272
63
|
dark: string;
|
|
64
|
+
light: string;
|
|
273
65
|
};
|
|
274
|
-
alt?: string | undefined;
|
|
275
66
|
width?: string | undefined;
|
|
67
|
+
alt?: string | undefined;
|
|
276
68
|
} | undefined;
|
|
69
|
+
}, {
|
|
277
70
|
banner?: {
|
|
278
71
|
message: NonNullable<ReactNode>;
|
|
279
|
-
color?:
|
|
72
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
280
73
|
dismissible?: boolean | undefined;
|
|
281
74
|
} | undefined;
|
|
282
|
-
}, {
|
|
283
75
|
pageTitle?: string | undefined;
|
|
284
76
|
logoUrl?: string | undefined;
|
|
285
77
|
logo?: {
|
|
286
78
|
src: {
|
|
287
|
-
light: string;
|
|
288
79
|
dark: string;
|
|
80
|
+
light: string;
|
|
289
81
|
};
|
|
290
|
-
alt?: string | undefined;
|
|
291
82
|
width?: string | undefined;
|
|
292
|
-
|
|
293
|
-
banner?: {
|
|
294
|
-
message: NonNullable<ReactNode>;
|
|
295
|
-
color?: BannerColorType;
|
|
296
|
-
dismissible?: boolean | undefined;
|
|
83
|
+
alt?: string | undefined;
|
|
297
84
|
} | undefined;
|
|
298
85
|
}>>;
|
|
299
86
|
topNavigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -313,7 +100,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
313
100
|
display?: "auth" | "anon" | "always" | undefined;
|
|
314
101
|
}>, "many">>;
|
|
315
102
|
sidebar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("./InputSidebarSchema.js").InputSidebarItem, z.ZodTypeDef, import("./InputSidebarSchema.js").InputSidebarItem>, "many">>>;
|
|
316
|
-
UNSAFE_slotlets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ReactNode | ComponentType<ExposedComponentProps>, z.ZodTypeDef, ReactNode | ComponentType<ExposedComponentProps>>>>;
|
|
317
103
|
theme: z.ZodOptional<z.ZodObject<{
|
|
318
104
|
light: z.ZodOptional<z.ZodObject<{
|
|
319
105
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -338,6 +124,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
338
124
|
radius: z.ZodOptional<z.ZodString>;
|
|
339
125
|
}, "strip", z.ZodTypeAny, {
|
|
340
126
|
input?: string | undefined;
|
|
127
|
+
radius?: string | undefined;
|
|
128
|
+
border?: string | undefined;
|
|
341
129
|
background?: string | undefined;
|
|
342
130
|
foreground?: string | undefined;
|
|
343
131
|
card?: string | undefined;
|
|
@@ -354,11 +142,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
354
142
|
accentForeground?: string | undefined;
|
|
355
143
|
destructive?: string | undefined;
|
|
356
144
|
destructiveForeground?: string | undefined;
|
|
357
|
-
border?: string | undefined;
|
|
358
145
|
ring?: string | undefined;
|
|
359
|
-
radius?: string | undefined;
|
|
360
146
|
}, {
|
|
361
147
|
input?: string | undefined;
|
|
148
|
+
radius?: string | undefined;
|
|
149
|
+
border?: string | undefined;
|
|
362
150
|
background?: string | undefined;
|
|
363
151
|
foreground?: string | undefined;
|
|
364
152
|
card?: string | undefined;
|
|
@@ -375,9 +163,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
375
163
|
accentForeground?: string | undefined;
|
|
376
164
|
destructive?: string | undefined;
|
|
377
165
|
destructiveForeground?: string | undefined;
|
|
378
|
-
border?: string | undefined;
|
|
379
166
|
ring?: string | undefined;
|
|
380
|
-
radius?: string | undefined;
|
|
381
167
|
}>>;
|
|
382
168
|
dark: z.ZodOptional<z.ZodObject<{
|
|
383
169
|
background: z.ZodOptional<z.ZodString>;
|
|
@@ -402,6 +188,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
402
188
|
radius: z.ZodOptional<z.ZodString>;
|
|
403
189
|
}, "strip", z.ZodTypeAny, {
|
|
404
190
|
input?: string | undefined;
|
|
191
|
+
radius?: string | undefined;
|
|
192
|
+
border?: string | undefined;
|
|
405
193
|
background?: string | undefined;
|
|
406
194
|
foreground?: string | undefined;
|
|
407
195
|
card?: string | undefined;
|
|
@@ -418,11 +206,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
418
206
|
accentForeground?: string | undefined;
|
|
419
207
|
destructive?: string | undefined;
|
|
420
208
|
destructiveForeground?: string | undefined;
|
|
421
|
-
border?: string | undefined;
|
|
422
209
|
ring?: string | undefined;
|
|
423
|
-
radius?: string | undefined;
|
|
424
210
|
}, {
|
|
425
211
|
input?: string | undefined;
|
|
212
|
+
radius?: string | undefined;
|
|
213
|
+
border?: string | undefined;
|
|
426
214
|
background?: string | undefined;
|
|
427
215
|
foreground?: string | undefined;
|
|
428
216
|
card?: string | undefined;
|
|
@@ -439,13 +227,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
439
227
|
accentForeground?: string | undefined;
|
|
440
228
|
destructive?: string | undefined;
|
|
441
229
|
destructiveForeground?: string | undefined;
|
|
442
|
-
border?: string | undefined;
|
|
443
230
|
ring?: string | undefined;
|
|
444
|
-
radius?: string | undefined;
|
|
445
231
|
}>>;
|
|
446
232
|
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
|
|
233
|
+
dark?: {
|
|
448
234
|
input?: string | undefined;
|
|
235
|
+
radius?: string | undefined;
|
|
236
|
+
border?: string | undefined;
|
|
449
237
|
background?: string | undefined;
|
|
450
238
|
foreground?: string | undefined;
|
|
451
239
|
card?: string | undefined;
|
|
@@ -462,12 +250,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
462
250
|
accentForeground?: string | undefined;
|
|
463
251
|
destructive?: string | undefined;
|
|
464
252
|
destructiveForeground?: string | undefined;
|
|
465
|
-
border?: string | undefined;
|
|
466
253
|
ring?: string | undefined;
|
|
467
|
-
radius?: string | undefined;
|
|
468
254
|
} | undefined;
|
|
469
|
-
|
|
255
|
+
light?: {
|
|
470
256
|
input?: string | undefined;
|
|
257
|
+
radius?: string | undefined;
|
|
258
|
+
border?: string | undefined;
|
|
471
259
|
background?: string | undefined;
|
|
472
260
|
foreground?: string | undefined;
|
|
473
261
|
card?: string | undefined;
|
|
@@ -484,13 +272,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
484
272
|
accentForeground?: string | undefined;
|
|
485
273
|
destructive?: string | undefined;
|
|
486
274
|
destructiveForeground?: string | undefined;
|
|
487
|
-
border?: string | undefined;
|
|
488
275
|
ring?: string | undefined;
|
|
489
|
-
radius?: string | undefined;
|
|
490
276
|
} | undefined;
|
|
491
277
|
}, {
|
|
492
|
-
|
|
278
|
+
dark?: {
|
|
493
279
|
input?: string | undefined;
|
|
280
|
+
radius?: string | undefined;
|
|
281
|
+
border?: string | undefined;
|
|
494
282
|
background?: string | undefined;
|
|
495
283
|
foreground?: string | undefined;
|
|
496
284
|
card?: string | undefined;
|
|
@@ -507,12 +295,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
507
295
|
accentForeground?: string | undefined;
|
|
508
296
|
destructive?: string | undefined;
|
|
509
297
|
destructiveForeground?: string | undefined;
|
|
510
|
-
border?: string | undefined;
|
|
511
298
|
ring?: string | undefined;
|
|
512
|
-
radius?: string | undefined;
|
|
513
299
|
} | undefined;
|
|
514
|
-
|
|
300
|
+
light?: {
|
|
515
301
|
input?: string | undefined;
|
|
302
|
+
radius?: string | undefined;
|
|
303
|
+
border?: string | undefined;
|
|
516
304
|
background?: string | undefined;
|
|
517
305
|
foreground?: string | undefined;
|
|
518
306
|
card?: string | undefined;
|
|
@@ -529,9 +317,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
529
317
|
accentForeground?: string | undefined;
|
|
530
318
|
destructive?: string | undefined;
|
|
531
319
|
destructiveForeground?: string | undefined;
|
|
532
|
-
border?: string | undefined;
|
|
533
320
|
ring?: string | undefined;
|
|
534
|
-
radius?: string | undefined;
|
|
535
321
|
} | undefined;
|
|
536
322
|
}>>;
|
|
537
323
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -571,13 +357,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
571
357
|
creator?: string | undefined;
|
|
572
358
|
publisher?: string | undefined;
|
|
573
359
|
}>>;
|
|
574
|
-
mdx: z.ZodOptional<z.ZodObject<{
|
|
575
|
-
components: z.ZodOptional<z.ZodType<Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined, z.ZodTypeDef, Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined>>;
|
|
576
|
-
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
578
|
-
}, {
|
|
579
|
-
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
580
|
-
}>>;
|
|
581
360
|
authentication: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
582
361
|
type: z.ZodLiteral<"clerk">;
|
|
583
362
|
clerkPubKey: z.ZodType<`pk_test_${string}` | `pk_live_${string}`, z.ZodTypeDef, `pk_test_${string}` | `pk_live_${string}`>;
|
|
@@ -648,7 +427,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
648
427
|
redirectToAfterSignOut?: string | undefined;
|
|
649
428
|
audience?: string | undefined;
|
|
650
429
|
}>]>>;
|
|
651
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
search: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
652
431
|
type: z.ZodLiteral<"inkeep">;
|
|
653
432
|
apiKey: z.ZodString;
|
|
654
433
|
integrationId: z.ZodString;
|
|
@@ -669,7 +448,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
669
448
|
organizationId: string;
|
|
670
449
|
primaryBrandColor: string;
|
|
671
450
|
organizationDisplayName: string;
|
|
672
|
-
}
|
|
451
|
+
}>>>;
|
|
673
452
|
docs: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
674
453
|
files: z.ZodString;
|
|
675
454
|
defaultOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -723,8 +502,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
723
502
|
type: z.ZodLiteral<"url">;
|
|
724
503
|
input: z.ZodString;
|
|
725
504
|
}, {
|
|
726
|
-
server: z.ZodOptional<z.ZodString>;
|
|
727
505
|
id: z.ZodOptional<z.ZodString>;
|
|
506
|
+
server: z.ZodOptional<z.ZodString>;
|
|
728
507
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
729
508
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
509
|
label: z.ZodString;
|
|
@@ -760,8 +539,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
760
539
|
type: z.ZodLiteral<"file">;
|
|
761
540
|
input: z.ZodString;
|
|
762
541
|
}, {
|
|
763
|
-
server: z.ZodOptional<z.ZodString>;
|
|
764
542
|
id: z.ZodOptional<z.ZodString>;
|
|
543
|
+
server: z.ZodOptional<z.ZodString>;
|
|
765
544
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
766
545
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
767
546
|
label: z.ZodString;
|
|
@@ -801,8 +580,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
801
580
|
type: z.ZodLiteral<"raw">;
|
|
802
581
|
input: z.ZodString;
|
|
803
582
|
}, {
|
|
804
|
-
server: z.ZodOptional<z.ZodString>;
|
|
805
583
|
id: z.ZodOptional<z.ZodString>;
|
|
584
|
+
server: z.ZodOptional<z.ZodString>;
|
|
806
585
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
807
586
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
808
587
|
label: z.ZodString;
|
|
@@ -838,8 +617,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
838
617
|
type: z.ZodLiteral<"url">;
|
|
839
618
|
input: z.ZodString;
|
|
840
619
|
}, {
|
|
841
|
-
server: z.ZodOptional<z.ZodString>;
|
|
842
620
|
id: z.ZodOptional<z.ZodString>;
|
|
621
|
+
server: z.ZodOptional<z.ZodString>;
|
|
843
622
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
844
623
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
845
624
|
label: z.ZodString;
|
|
@@ -875,8 +654,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
875
654
|
type: z.ZodLiteral<"file">;
|
|
876
655
|
input: z.ZodString;
|
|
877
656
|
}, {
|
|
878
|
-
server: z.ZodOptional<z.ZodString>;
|
|
879
657
|
id: z.ZodOptional<z.ZodString>;
|
|
658
|
+
server: z.ZodOptional<z.ZodString>;
|
|
880
659
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
881
660
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
882
661
|
label: z.ZodString;
|
|
@@ -916,8 +695,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
916
695
|
type: z.ZodLiteral<"raw">;
|
|
917
696
|
input: z.ZodString;
|
|
918
697
|
}, {
|
|
919
|
-
server: z.ZodOptional<z.ZodString>;
|
|
920
698
|
id: z.ZodOptional<z.ZodString>;
|
|
699
|
+
server: z.ZodOptional<z.ZodString>;
|
|
921
700
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
922
701
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
923
702
|
label: z.ZodString;
|
|
@@ -986,49 +765,49 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
986
765
|
endpoint: string;
|
|
987
766
|
}>, z.ZodObject<{
|
|
988
767
|
enabled: z.ZodBoolean;
|
|
989
|
-
getKeys: z.ZodType<(context: ZudokuContext) => Promise<ApiKey[]>, z.ZodTypeDef, (context: ZudokuContext) => Promise<ApiKey[]>>;
|
|
990
|
-
rollKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
|
|
991
|
-
deleteKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
|
|
768
|
+
getKeys: z.ZodType<(context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>, z.ZodTypeDef, (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>>;
|
|
769
|
+
rollKey: z.ZodOptional<z.ZodType<(id: string, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
|
|
770
|
+
deleteKey: z.ZodOptional<z.ZodType<(id: string, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
|
|
992
771
|
updateKeyDescription: z.ZodOptional<z.ZodType<(apiKey: {
|
|
993
772
|
id: string;
|
|
994
773
|
description: string;
|
|
995
|
-
}, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
|
|
774
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
|
|
996
775
|
id: string;
|
|
997
776
|
description: string;
|
|
998
|
-
}, context: ZudokuContext) => Promise<void>>>;
|
|
777
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
|
|
999
778
|
createKey: z.ZodOptional<z.ZodType<(apiKey: {
|
|
1000
779
|
description: string;
|
|
1001
780
|
expiresOn?: string;
|
|
1002
|
-
}, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
|
|
781
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
|
|
1003
782
|
description: string;
|
|
1004
783
|
expiresOn?: string;
|
|
1005
|
-
}, context: ZudokuContext) => Promise<void>>>;
|
|
784
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
|
|
1006
785
|
}, "strip", z.ZodTypeAny, {
|
|
1007
786
|
enabled: boolean;
|
|
1008
|
-
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1009
|
-
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1010
|
-
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
787
|
+
getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
|
|
788
|
+
rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
789
|
+
deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1011
790
|
updateKeyDescription?: ((apiKey: {
|
|
1012
791
|
id: string;
|
|
1013
792
|
description: string;
|
|
1014
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
793
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1015
794
|
createKey?: ((apiKey: {
|
|
1016
795
|
description: string;
|
|
1017
796
|
expiresOn?: string;
|
|
1018
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
797
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1019
798
|
}, {
|
|
1020
799
|
enabled: boolean;
|
|
1021
|
-
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1022
|
-
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1023
|
-
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
800
|
+
getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
|
|
801
|
+
rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
802
|
+
deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1024
803
|
updateKeyDescription?: ((apiKey: {
|
|
1025
804
|
id: string;
|
|
1026
805
|
description: string;
|
|
1027
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
806
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1028
807
|
createKey?: ((apiKey: {
|
|
1029
808
|
description: string;
|
|
1030
809
|
expiresOn?: string;
|
|
1031
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
810
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1032
811
|
}>]>>;
|
|
1033
812
|
redirects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1034
813
|
from: z.ZodString;
|
|
@@ -1040,48 +819,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1040
819
|
from: string;
|
|
1041
820
|
to: string;
|
|
1042
821
|
}>, "many">>;
|
|
1043
|
-
customPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1044
|
-
path: z.ZodString;
|
|
1045
|
-
element: z.ZodOptional<z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>>;
|
|
1046
|
-
render: z.ZodOptional<z.ZodType<ComponentType<ExposedComponentProps>, z.ZodTypeDef, ComponentType<ExposedComponentProps>>>;
|
|
1047
|
-
prose: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
-
}, "strip", z.ZodTypeAny, {
|
|
1049
|
-
path: string;
|
|
1050
|
-
element?: NonNullable<ReactNode> | undefined;
|
|
1051
|
-
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1052
|
-
prose?: boolean | undefined;
|
|
1053
|
-
}, {
|
|
1054
|
-
path: string;
|
|
1055
|
-
element?: NonNullable<ReactNode> | undefined;
|
|
1056
|
-
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1057
|
-
prose?: boolean | undefined;
|
|
1058
|
-
}>, "many">>;
|
|
1059
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
|
|
1060
822
|
sitemap: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1061
|
-
/**
|
|
1062
|
-
* Base url of your website
|
|
1063
|
-
*/
|
|
1064
823
|
siteUrl: z.ZodString;
|
|
1065
|
-
/**
|
|
1066
|
-
* Change frequency.
|
|
1067
|
-
* @default 'daily'
|
|
1068
|
-
*/
|
|
1069
824
|
changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
|
|
1070
|
-
/**
|
|
1071
|
-
* Priority
|
|
1072
|
-
* @default 0.7
|
|
1073
|
-
*/
|
|
1074
825
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1075
826
|
outDir: z.ZodOptional<z.ZodString>;
|
|
1076
|
-
/**
|
|
1077
|
-
* Add <lastmod/> property.
|
|
1078
|
-
* @default true
|
|
1079
|
-
*/
|
|
1080
827
|
autoLastmod: z.ZodOptional<z.ZodBoolean>;
|
|
1081
|
-
/**
|
|
1082
|
-
* Array of relative paths to exclude from listing on sitemap.xml or sitemap-*.xml.
|
|
1083
|
-
* @example ['/page-0', '/page/example']
|
|
1084
|
-
*/
|
|
1085
828
|
exclude: z.ZodOptional<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodString, "many">>>, z.ZodArray<z.ZodString, "many">]>>;
|
|
1086
829
|
}, "strip", z.ZodTypeAny, {
|
|
1087
830
|
siteUrl: string;
|
|
@@ -1098,6 +841,31 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1098
841
|
autoLastmod?: boolean | undefined;
|
|
1099
842
|
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
1100
843
|
}>>>;
|
|
844
|
+
UNSAFE_slotlets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ReactNode | ComponentType<ExposedComponentProps>, z.ZodTypeDef, ReactNode | ComponentType<ExposedComponentProps>>>>;
|
|
845
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
846
|
+
components: z.ZodOptional<z.ZodType<MdxComponentsType, z.ZodTypeDef, MdxComponentsType>>;
|
|
847
|
+
}, "strip", z.ZodTypeAny, {
|
|
848
|
+
components?: MdxComponentsType;
|
|
849
|
+
}, {
|
|
850
|
+
components?: MdxComponentsType;
|
|
851
|
+
}>>;
|
|
852
|
+
customPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
853
|
+
path: z.ZodString;
|
|
854
|
+
element: z.ZodOptional<z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>>;
|
|
855
|
+
render: z.ZodOptional<z.ZodType<ComponentType<ExposedComponentProps>, z.ZodTypeDef, ComponentType<ExposedComponentProps>>>;
|
|
856
|
+
prose: z.ZodOptional<z.ZodBoolean>;
|
|
857
|
+
}, "strip", z.ZodTypeAny, {
|
|
858
|
+
path: string;
|
|
859
|
+
element?: NonNullable<ReactNode> | undefined;
|
|
860
|
+
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
861
|
+
prose?: boolean | undefined;
|
|
862
|
+
}, {
|
|
863
|
+
path: string;
|
|
864
|
+
element?: NonNullable<ReactNode> | undefined;
|
|
865
|
+
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
866
|
+
prose?: boolean | undefined;
|
|
867
|
+
}>, "many">>;
|
|
868
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
|
|
1101
869
|
build: z.ZodOptional<z.ZodType<{
|
|
1102
870
|
remarkPlugins?: Options["remarkPlugins"];
|
|
1103
871
|
rehypePlugins?: Options["rehypePlugins"];
|
|
@@ -1115,35 +883,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1115
883
|
primaryBrandColor: string;
|
|
1116
884
|
organizationDisplayName: string;
|
|
1117
885
|
} | undefined;
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
banner?: {
|
|
1131
|
-
message: NonNullable<ReactNode>;
|
|
1132
|
-
color?: BannerColorType;
|
|
1133
|
-
dismissible?: boolean | undefined;
|
|
1134
|
-
} | undefined;
|
|
886
|
+
metadata?: {
|
|
887
|
+
description?: string | undefined;
|
|
888
|
+
title?: string | undefined;
|
|
889
|
+
logo?: string | undefined;
|
|
890
|
+
favicon?: string | undefined;
|
|
891
|
+
generator?: string | undefined;
|
|
892
|
+
applicationName?: string | undefined;
|
|
893
|
+
referrer?: string | undefined;
|
|
894
|
+
keywords?: string[] | undefined;
|
|
895
|
+
authors?: string[] | undefined;
|
|
896
|
+
creator?: string | undefined;
|
|
897
|
+
publisher?: string | undefined;
|
|
1135
898
|
} | undefined;
|
|
1136
|
-
topNavigation?: {
|
|
1137
|
-
id: string;
|
|
1138
|
-
label: string;
|
|
1139
|
-
default?: string | undefined;
|
|
1140
|
-
display?: "auth" | "anon" | "always" | undefined;
|
|
1141
|
-
}[] | undefined;
|
|
1142
|
-
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1143
|
-
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1144
899
|
theme?: {
|
|
1145
|
-
|
|
900
|
+
dark?: {
|
|
1146
901
|
input?: string | undefined;
|
|
902
|
+
radius?: string | undefined;
|
|
903
|
+
border?: string | undefined;
|
|
1147
904
|
background?: string | undefined;
|
|
1148
905
|
foreground?: string | undefined;
|
|
1149
906
|
card?: string | undefined;
|
|
@@ -1160,12 +917,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1160
917
|
accentForeground?: string | undefined;
|
|
1161
918
|
destructive?: string | undefined;
|
|
1162
919
|
destructiveForeground?: string | undefined;
|
|
1163
|
-
border?: string | undefined;
|
|
1164
920
|
ring?: string | undefined;
|
|
1165
|
-
radius?: string | undefined;
|
|
1166
921
|
} | undefined;
|
|
1167
|
-
|
|
922
|
+
light?: {
|
|
1168
923
|
input?: string | undefined;
|
|
924
|
+
radius?: string | undefined;
|
|
925
|
+
border?: string | undefined;
|
|
1169
926
|
background?: string | undefined;
|
|
1170
927
|
foreground?: string | undefined;
|
|
1171
928
|
card?: string | undefined;
|
|
@@ -1182,41 +939,62 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1182
939
|
accentForeground?: string | undefined;
|
|
1183
940
|
destructive?: string | undefined;
|
|
1184
941
|
destructiveForeground?: string | undefined;
|
|
1185
|
-
border?: string | undefined;
|
|
1186
942
|
ring?: string | undefined;
|
|
1187
|
-
radius?: string | undefined;
|
|
1188
943
|
} | undefined;
|
|
1189
944
|
} | undefined;
|
|
1190
|
-
metadata?: {
|
|
1191
|
-
description?: string | undefined;
|
|
1192
|
-
title?: string | undefined;
|
|
1193
|
-
logo?: string | undefined;
|
|
1194
|
-
favicon?: string | undefined;
|
|
1195
|
-
generator?: string | undefined;
|
|
1196
|
-
applicationName?: string | undefined;
|
|
1197
|
-
referrer?: string | undefined;
|
|
1198
|
-
keywords?: string[] | undefined;
|
|
1199
|
-
authors?: string[] | undefined;
|
|
1200
|
-
creator?: string | undefined;
|
|
1201
|
-
publisher?: string | undefined;
|
|
1202
|
-
} | undefined;
|
|
1203
945
|
mdx?: {
|
|
1204
|
-
components?:
|
|
946
|
+
components?: MdxComponentsType;
|
|
1205
947
|
} | undefined;
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
948
|
+
page?: {
|
|
949
|
+
banner?: {
|
|
950
|
+
message: NonNullable<ReactNode>;
|
|
951
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
952
|
+
dismissible?: boolean | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
pageTitle?: string | undefined;
|
|
955
|
+
logoUrl?: string | undefined;
|
|
956
|
+
logo?: {
|
|
957
|
+
src: {
|
|
958
|
+
dark: string;
|
|
959
|
+
light: string;
|
|
960
|
+
};
|
|
961
|
+
width?: string | undefined;
|
|
962
|
+
alt?: string | undefined;
|
|
963
|
+
} | undefined;
|
|
964
|
+
} | undefined;
|
|
965
|
+
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
966
|
+
customPages?: {
|
|
967
|
+
path: string;
|
|
968
|
+
element?: NonNullable<ReactNode> | undefined;
|
|
969
|
+
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
970
|
+
prose?: boolean | undefined;
|
|
971
|
+
}[] | undefined;
|
|
972
|
+
build?: {
|
|
973
|
+
remarkPlugins?: Options["remarkPlugins"];
|
|
974
|
+
rehypePlugins?: Options["rehypePlugins"];
|
|
975
|
+
} | undefined;
|
|
976
|
+
basePath?: string | undefined;
|
|
977
|
+
topNavigation?: {
|
|
978
|
+
id: string;
|
|
979
|
+
label: string;
|
|
980
|
+
default?: string | undefined;
|
|
981
|
+
display?: "auth" | "anon" | "always" | undefined;
|
|
982
|
+
}[] | undefined;
|
|
983
|
+
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
984
|
+
authentication?: {
|
|
985
|
+
type: "clerk";
|
|
986
|
+
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
987
|
+
redirectToAfterSignUp?: string | undefined;
|
|
988
|
+
redirectToAfterSignIn?: string | undefined;
|
|
989
|
+
redirectToAfterSignOut?: string | undefined;
|
|
990
|
+
} | {
|
|
991
|
+
type: "openid";
|
|
992
|
+
clientId: string;
|
|
993
|
+
issuer: string;
|
|
994
|
+
redirectToAfterSignUp?: string | undefined;
|
|
995
|
+
redirectToAfterSignIn?: string | undefined;
|
|
996
|
+
redirectToAfterSignOut?: string | undefined;
|
|
997
|
+
audience?: string | undefined;
|
|
1220
998
|
scopes?: string[] | undefined;
|
|
1221
999
|
} | {
|
|
1222
1000
|
type: "auth0";
|
|
@@ -1317,28 +1095,22 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1317
1095
|
endpoint: string;
|
|
1318
1096
|
} | {
|
|
1319
1097
|
enabled: boolean;
|
|
1320
|
-
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1321
|
-
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1322
|
-
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1098
|
+
getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
|
|
1099
|
+
rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1100
|
+
deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1323
1101
|
updateKeyDescription?: ((apiKey: {
|
|
1324
1102
|
id: string;
|
|
1325
1103
|
description: string;
|
|
1326
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1104
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1327
1105
|
createKey?: ((apiKey: {
|
|
1328
1106
|
description: string;
|
|
1329
1107
|
expiresOn?: string;
|
|
1330
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1108
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1331
1109
|
} | undefined;
|
|
1332
1110
|
redirects?: {
|
|
1333
1111
|
from: string;
|
|
1334
1112
|
to: string;
|
|
1335
1113
|
}[] | undefined;
|
|
1336
|
-
customPages?: {
|
|
1337
|
-
path: string;
|
|
1338
|
-
element?: NonNullable<ReactNode> | undefined;
|
|
1339
|
-
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1340
|
-
prose?: boolean | undefined;
|
|
1341
|
-
}[] | undefined;
|
|
1342
1114
|
sitemap?: {
|
|
1343
1115
|
siteUrl: string;
|
|
1344
1116
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1347,10 +1119,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1347
1119
|
autoLastmod?: boolean | undefined;
|
|
1348
1120
|
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
1349
1121
|
} | undefined;
|
|
1350
|
-
build?: {
|
|
1351
|
-
remarkPlugins?: Options["remarkPlugins"];
|
|
1352
|
-
rehypePlugins?: Options["rehypePlugins"];
|
|
1353
|
-
} | undefined;
|
|
1354
1122
|
}, {
|
|
1355
1123
|
plugins?: ZudokuPlugin[] | undefined;
|
|
1356
1124
|
search?: {
|
|
@@ -1361,35 +1129,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1361
1129
|
primaryBrandColor: string;
|
|
1362
1130
|
organizationDisplayName: string;
|
|
1363
1131
|
} | undefined;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
banner?: {
|
|
1377
|
-
message: NonNullable<ReactNode>;
|
|
1378
|
-
color?: BannerColorType;
|
|
1379
|
-
dismissible?: boolean | undefined;
|
|
1380
|
-
} | undefined;
|
|
1132
|
+
metadata?: {
|
|
1133
|
+
description?: string | undefined;
|
|
1134
|
+
title?: string | undefined;
|
|
1135
|
+
logo?: string | undefined;
|
|
1136
|
+
favicon?: string | undefined;
|
|
1137
|
+
generator?: string | undefined;
|
|
1138
|
+
applicationName?: string | undefined;
|
|
1139
|
+
referrer?: string | undefined;
|
|
1140
|
+
keywords?: string[] | undefined;
|
|
1141
|
+
authors?: string[] | undefined;
|
|
1142
|
+
creator?: string | undefined;
|
|
1143
|
+
publisher?: string | undefined;
|
|
1381
1144
|
} | undefined;
|
|
1382
|
-
topNavigation?: {
|
|
1383
|
-
id: string;
|
|
1384
|
-
label: string;
|
|
1385
|
-
default?: string | undefined;
|
|
1386
|
-
display?: "auth" | "anon" | "always" | undefined;
|
|
1387
|
-
}[] | undefined;
|
|
1388
|
-
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1389
|
-
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1390
1145
|
theme?: {
|
|
1391
|
-
|
|
1146
|
+
dark?: {
|
|
1392
1147
|
input?: string | undefined;
|
|
1148
|
+
radius?: string | undefined;
|
|
1149
|
+
border?: string | undefined;
|
|
1393
1150
|
background?: string | undefined;
|
|
1394
1151
|
foreground?: string | undefined;
|
|
1395
1152
|
card?: string | undefined;
|
|
@@ -1406,12 +1163,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1406
1163
|
accentForeground?: string | undefined;
|
|
1407
1164
|
destructive?: string | undefined;
|
|
1408
1165
|
destructiveForeground?: string | undefined;
|
|
1409
|
-
border?: string | undefined;
|
|
1410
1166
|
ring?: string | undefined;
|
|
1411
|
-
radius?: string | undefined;
|
|
1412
1167
|
} | undefined;
|
|
1413
|
-
|
|
1168
|
+
light?: {
|
|
1414
1169
|
input?: string | undefined;
|
|
1170
|
+
radius?: string | undefined;
|
|
1171
|
+
border?: string | undefined;
|
|
1415
1172
|
background?: string | undefined;
|
|
1416
1173
|
foreground?: string | undefined;
|
|
1417
1174
|
card?: string | undefined;
|
|
@@ -1428,27 +1185,48 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1428
1185
|
accentForeground?: string | undefined;
|
|
1429
1186
|
destructive?: string | undefined;
|
|
1430
1187
|
destructiveForeground?: string | undefined;
|
|
1431
|
-
border?: string | undefined;
|
|
1432
1188
|
ring?: string | undefined;
|
|
1433
|
-
radius?: string | undefined;
|
|
1434
1189
|
} | undefined;
|
|
1435
1190
|
} | undefined;
|
|
1436
|
-
metadata?: {
|
|
1437
|
-
description?: string | undefined;
|
|
1438
|
-
title?: string | undefined;
|
|
1439
|
-
logo?: string | undefined;
|
|
1440
|
-
favicon?: string | undefined;
|
|
1441
|
-
generator?: string | undefined;
|
|
1442
|
-
applicationName?: string | undefined;
|
|
1443
|
-
referrer?: string | undefined;
|
|
1444
|
-
keywords?: string[] | undefined;
|
|
1445
|
-
authors?: string[] | undefined;
|
|
1446
|
-
creator?: string | undefined;
|
|
1447
|
-
publisher?: string | undefined;
|
|
1448
|
-
} | undefined;
|
|
1449
1191
|
mdx?: {
|
|
1450
|
-
components?:
|
|
1192
|
+
components?: MdxComponentsType;
|
|
1193
|
+
} | undefined;
|
|
1194
|
+
page?: {
|
|
1195
|
+
banner?: {
|
|
1196
|
+
message: NonNullable<ReactNode>;
|
|
1197
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
1198
|
+
dismissible?: boolean | undefined;
|
|
1199
|
+
} | undefined;
|
|
1200
|
+
pageTitle?: string | undefined;
|
|
1201
|
+
logoUrl?: string | undefined;
|
|
1202
|
+
logo?: {
|
|
1203
|
+
src: {
|
|
1204
|
+
dark: string;
|
|
1205
|
+
light: string;
|
|
1206
|
+
};
|
|
1207
|
+
width?: string | undefined;
|
|
1208
|
+
alt?: string | undefined;
|
|
1209
|
+
} | undefined;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1212
|
+
customPages?: {
|
|
1213
|
+
path: string;
|
|
1214
|
+
element?: NonNullable<ReactNode> | undefined;
|
|
1215
|
+
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1216
|
+
prose?: boolean | undefined;
|
|
1217
|
+
}[] | undefined;
|
|
1218
|
+
build?: {
|
|
1219
|
+
remarkPlugins?: Options["remarkPlugins"];
|
|
1220
|
+
rehypePlugins?: Options["rehypePlugins"];
|
|
1451
1221
|
} | undefined;
|
|
1222
|
+
basePath?: string | undefined;
|
|
1223
|
+
topNavigation?: {
|
|
1224
|
+
id: string;
|
|
1225
|
+
label: string;
|
|
1226
|
+
default?: string | undefined;
|
|
1227
|
+
display?: "auth" | "anon" | "always" | undefined;
|
|
1228
|
+
}[] | undefined;
|
|
1229
|
+
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1452
1230
|
authentication?: {
|
|
1453
1231
|
type: "clerk";
|
|
1454
1232
|
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
@@ -1563,28 +1341,22 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1563
1341
|
endpoint: string;
|
|
1564
1342
|
} | {
|
|
1565
1343
|
enabled: boolean;
|
|
1566
|
-
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1567
|
-
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1568
|
-
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1344
|
+
getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
|
|
1345
|
+
rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1346
|
+
deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1569
1347
|
updateKeyDescription?: ((apiKey: {
|
|
1570
1348
|
id: string;
|
|
1571
1349
|
description: string;
|
|
1572
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1350
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1573
1351
|
createKey?: ((apiKey: {
|
|
1574
1352
|
description: string;
|
|
1575
1353
|
expiresOn?: string;
|
|
1576
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1354
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1577
1355
|
} | undefined;
|
|
1578
1356
|
redirects?: {
|
|
1579
1357
|
from: string;
|
|
1580
1358
|
to: string;
|
|
1581
1359
|
}[] | undefined;
|
|
1582
|
-
customPages?: {
|
|
1583
|
-
path: string;
|
|
1584
|
-
element?: NonNullable<ReactNode> | undefined;
|
|
1585
|
-
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1586
|
-
prose?: boolean | undefined;
|
|
1587
|
-
}[] | undefined;
|
|
1588
1360
|
sitemap?: {
|
|
1589
1361
|
siteUrl: string;
|
|
1590
1362
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1593,10 +1365,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1593
1365
|
autoLastmod?: boolean | undefined;
|
|
1594
1366
|
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
1595
1367
|
} | undefined;
|
|
1596
|
-
build?: {
|
|
1597
|
-
remarkPlugins?: Options["remarkPlugins"];
|
|
1598
|
-
rehypePlugins?: Options["rehypePlugins"];
|
|
1599
|
-
} | undefined;
|
|
1600
1368
|
}>, {
|
|
1601
1369
|
plugins?: ZudokuPlugin[] | undefined;
|
|
1602
1370
|
search?: {
|
|
@@ -1607,35 +1375,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1607
1375
|
primaryBrandColor: string;
|
|
1608
1376
|
organizationDisplayName: string;
|
|
1609
1377
|
} | undefined;
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
banner?: {
|
|
1623
|
-
message: NonNullable<ReactNode>;
|
|
1624
|
-
color?: BannerColorType;
|
|
1625
|
-
dismissible?: boolean | undefined;
|
|
1626
|
-
} | undefined;
|
|
1378
|
+
metadata?: {
|
|
1379
|
+
description?: string | undefined;
|
|
1380
|
+
title?: string | undefined;
|
|
1381
|
+
logo?: string | undefined;
|
|
1382
|
+
favicon?: string | undefined;
|
|
1383
|
+
generator?: string | undefined;
|
|
1384
|
+
applicationName?: string | undefined;
|
|
1385
|
+
referrer?: string | undefined;
|
|
1386
|
+
keywords?: string[] | undefined;
|
|
1387
|
+
authors?: string[] | undefined;
|
|
1388
|
+
creator?: string | undefined;
|
|
1389
|
+
publisher?: string | undefined;
|
|
1627
1390
|
} | undefined;
|
|
1628
|
-
topNavigation?: {
|
|
1629
|
-
id: string;
|
|
1630
|
-
label: string;
|
|
1631
|
-
default?: string | undefined;
|
|
1632
|
-
display?: "auth" | "anon" | "always" | undefined;
|
|
1633
|
-
}[] | undefined;
|
|
1634
|
-
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1635
|
-
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1636
1391
|
theme?: {
|
|
1637
|
-
|
|
1392
|
+
dark?: {
|
|
1638
1393
|
input?: string | undefined;
|
|
1394
|
+
radius?: string | undefined;
|
|
1395
|
+
border?: string | undefined;
|
|
1639
1396
|
background?: string | undefined;
|
|
1640
1397
|
foreground?: string | undefined;
|
|
1641
1398
|
card?: string | undefined;
|
|
@@ -1652,12 +1409,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1652
1409
|
accentForeground?: string | undefined;
|
|
1653
1410
|
destructive?: string | undefined;
|
|
1654
1411
|
destructiveForeground?: string | undefined;
|
|
1655
|
-
border?: string | undefined;
|
|
1656
1412
|
ring?: string | undefined;
|
|
1657
|
-
radius?: string | undefined;
|
|
1658
1413
|
} | undefined;
|
|
1659
|
-
|
|
1414
|
+
light?: {
|
|
1660
1415
|
input?: string | undefined;
|
|
1416
|
+
radius?: string | undefined;
|
|
1417
|
+
border?: string | undefined;
|
|
1661
1418
|
background?: string | undefined;
|
|
1662
1419
|
foreground?: string | undefined;
|
|
1663
1420
|
card?: string | undefined;
|
|
@@ -1674,27 +1431,48 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1674
1431
|
accentForeground?: string | undefined;
|
|
1675
1432
|
destructive?: string | undefined;
|
|
1676
1433
|
destructiveForeground?: string | undefined;
|
|
1677
|
-
border?: string | undefined;
|
|
1678
1434
|
ring?: string | undefined;
|
|
1679
|
-
radius?: string | undefined;
|
|
1680
1435
|
} | undefined;
|
|
1681
1436
|
} | undefined;
|
|
1682
|
-
metadata?: {
|
|
1683
|
-
description?: string | undefined;
|
|
1684
|
-
title?: string | undefined;
|
|
1685
|
-
logo?: string | undefined;
|
|
1686
|
-
favicon?: string | undefined;
|
|
1687
|
-
generator?: string | undefined;
|
|
1688
|
-
applicationName?: string | undefined;
|
|
1689
|
-
referrer?: string | undefined;
|
|
1690
|
-
keywords?: string[] | undefined;
|
|
1691
|
-
authors?: string[] | undefined;
|
|
1692
|
-
creator?: string | undefined;
|
|
1693
|
-
publisher?: string | undefined;
|
|
1694
|
-
} | undefined;
|
|
1695
1437
|
mdx?: {
|
|
1696
|
-
components?:
|
|
1438
|
+
components?: MdxComponentsType;
|
|
1439
|
+
} | undefined;
|
|
1440
|
+
page?: {
|
|
1441
|
+
banner?: {
|
|
1442
|
+
message: NonNullable<ReactNode>;
|
|
1443
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
1444
|
+
dismissible?: boolean | undefined;
|
|
1445
|
+
} | undefined;
|
|
1446
|
+
pageTitle?: string | undefined;
|
|
1447
|
+
logoUrl?: string | undefined;
|
|
1448
|
+
logo?: {
|
|
1449
|
+
src: {
|
|
1450
|
+
dark: string;
|
|
1451
|
+
light: string;
|
|
1452
|
+
};
|
|
1453
|
+
width?: string | undefined;
|
|
1454
|
+
alt?: string | undefined;
|
|
1455
|
+
} | undefined;
|
|
1456
|
+
} | undefined;
|
|
1457
|
+
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1458
|
+
customPages?: {
|
|
1459
|
+
path: string;
|
|
1460
|
+
element?: NonNullable<ReactNode> | undefined;
|
|
1461
|
+
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1462
|
+
prose?: boolean | undefined;
|
|
1463
|
+
}[] | undefined;
|
|
1464
|
+
build?: {
|
|
1465
|
+
remarkPlugins?: Options["remarkPlugins"];
|
|
1466
|
+
rehypePlugins?: Options["rehypePlugins"];
|
|
1697
1467
|
} | undefined;
|
|
1468
|
+
basePath?: string | undefined;
|
|
1469
|
+
topNavigation?: {
|
|
1470
|
+
id: string;
|
|
1471
|
+
label: string;
|
|
1472
|
+
default?: string | undefined;
|
|
1473
|
+
display?: "auth" | "anon" | "always" | undefined;
|
|
1474
|
+
}[] | undefined;
|
|
1475
|
+
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1698
1476
|
authentication?: {
|
|
1699
1477
|
type: "clerk";
|
|
1700
1478
|
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
@@ -1809,28 +1587,22 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1809
1587
|
endpoint: string;
|
|
1810
1588
|
} | {
|
|
1811
1589
|
enabled: boolean;
|
|
1812
|
-
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1813
|
-
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1814
|
-
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1590
|
+
getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
|
|
1591
|
+
rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1592
|
+
deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1815
1593
|
updateKeyDescription?: ((apiKey: {
|
|
1816
1594
|
id: string;
|
|
1817
1595
|
description: string;
|
|
1818
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1596
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1819
1597
|
createKey?: ((apiKey: {
|
|
1820
1598
|
description: string;
|
|
1821
1599
|
expiresOn?: string;
|
|
1822
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1600
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1823
1601
|
} | undefined;
|
|
1824
1602
|
redirects?: {
|
|
1825
1603
|
from: string;
|
|
1826
1604
|
to: string;
|
|
1827
1605
|
}[] | undefined;
|
|
1828
|
-
customPages?: {
|
|
1829
|
-
path: string;
|
|
1830
|
-
element?: NonNullable<ReactNode> | undefined;
|
|
1831
|
-
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1832
|
-
prose?: boolean | undefined;
|
|
1833
|
-
}[] | undefined;
|
|
1834
1606
|
sitemap?: {
|
|
1835
1607
|
siteUrl: string;
|
|
1836
1608
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1839,10 +1611,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1839
1611
|
autoLastmod?: boolean | undefined;
|
|
1840
1612
|
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
1841
1613
|
} | undefined;
|
|
1842
|
-
build?: {
|
|
1843
|
-
remarkPlugins?: Options["remarkPlugins"];
|
|
1844
|
-
rehypePlugins?: Options["rehypePlugins"];
|
|
1845
|
-
} | undefined;
|
|
1846
1614
|
}, {
|
|
1847
1615
|
plugins?: ZudokuPlugin[] | undefined;
|
|
1848
1616
|
search?: {
|
|
@@ -1853,35 +1621,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1853
1621
|
primaryBrandColor: string;
|
|
1854
1622
|
organizationDisplayName: string;
|
|
1855
1623
|
} | undefined;
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
banner?: {
|
|
1869
|
-
message: NonNullable<ReactNode>;
|
|
1870
|
-
color?: BannerColorType;
|
|
1871
|
-
dismissible?: boolean | undefined;
|
|
1872
|
-
} | undefined;
|
|
1624
|
+
metadata?: {
|
|
1625
|
+
description?: string | undefined;
|
|
1626
|
+
title?: string | undefined;
|
|
1627
|
+
logo?: string | undefined;
|
|
1628
|
+
favicon?: string | undefined;
|
|
1629
|
+
generator?: string | undefined;
|
|
1630
|
+
applicationName?: string | undefined;
|
|
1631
|
+
referrer?: string | undefined;
|
|
1632
|
+
keywords?: string[] | undefined;
|
|
1633
|
+
authors?: string[] | undefined;
|
|
1634
|
+
creator?: string | undefined;
|
|
1635
|
+
publisher?: string | undefined;
|
|
1873
1636
|
} | undefined;
|
|
1874
|
-
topNavigation?: {
|
|
1875
|
-
id: string;
|
|
1876
|
-
label: string;
|
|
1877
|
-
default?: string | undefined;
|
|
1878
|
-
display?: "auth" | "anon" | "always" | undefined;
|
|
1879
|
-
}[] | undefined;
|
|
1880
|
-
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1881
|
-
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1882
1637
|
theme?: {
|
|
1883
|
-
|
|
1638
|
+
dark?: {
|
|
1884
1639
|
input?: string | undefined;
|
|
1640
|
+
radius?: string | undefined;
|
|
1641
|
+
border?: string | undefined;
|
|
1885
1642
|
background?: string | undefined;
|
|
1886
1643
|
foreground?: string | undefined;
|
|
1887
1644
|
card?: string | undefined;
|
|
@@ -1898,12 +1655,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1898
1655
|
accentForeground?: string | undefined;
|
|
1899
1656
|
destructive?: string | undefined;
|
|
1900
1657
|
destructiveForeground?: string | undefined;
|
|
1901
|
-
border?: string | undefined;
|
|
1902
1658
|
ring?: string | undefined;
|
|
1903
|
-
radius?: string | undefined;
|
|
1904
1659
|
} | undefined;
|
|
1905
|
-
|
|
1660
|
+
light?: {
|
|
1906
1661
|
input?: string | undefined;
|
|
1662
|
+
radius?: string | undefined;
|
|
1663
|
+
border?: string | undefined;
|
|
1907
1664
|
background?: string | undefined;
|
|
1908
1665
|
foreground?: string | undefined;
|
|
1909
1666
|
card?: string | undefined;
|
|
@@ -1920,27 +1677,48 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1920
1677
|
accentForeground?: string | undefined;
|
|
1921
1678
|
destructive?: string | undefined;
|
|
1922
1679
|
destructiveForeground?: string | undefined;
|
|
1923
|
-
border?: string | undefined;
|
|
1924
1680
|
ring?: string | undefined;
|
|
1925
|
-
radius?: string | undefined;
|
|
1926
1681
|
} | undefined;
|
|
1927
1682
|
} | undefined;
|
|
1928
|
-
metadata?: {
|
|
1929
|
-
description?: string | undefined;
|
|
1930
|
-
title?: string | undefined;
|
|
1931
|
-
logo?: string | undefined;
|
|
1932
|
-
favicon?: string | undefined;
|
|
1933
|
-
generator?: string | undefined;
|
|
1934
|
-
applicationName?: string | undefined;
|
|
1935
|
-
referrer?: string | undefined;
|
|
1936
|
-
keywords?: string[] | undefined;
|
|
1937
|
-
authors?: string[] | undefined;
|
|
1938
|
-
creator?: string | undefined;
|
|
1939
|
-
publisher?: string | undefined;
|
|
1940
|
-
} | undefined;
|
|
1941
1683
|
mdx?: {
|
|
1942
|
-
components?:
|
|
1684
|
+
components?: MdxComponentsType;
|
|
1685
|
+
} | undefined;
|
|
1686
|
+
page?: {
|
|
1687
|
+
banner?: {
|
|
1688
|
+
message: NonNullable<ReactNode>;
|
|
1689
|
+
color?: z.ZodOptional<z.ZodUnion<[z.ZodType<"info" | (string & {}) | "note" | "tip" | "caution" | "danger", z.ZodEnumDef<z.EnumValues<string>>, "info" | (string & {}) | "note" | "tip" | "caution" | "danger">, z.ZodString]>>;
|
|
1690
|
+
dismissible?: boolean | undefined;
|
|
1691
|
+
} | undefined;
|
|
1692
|
+
pageTitle?: string | undefined;
|
|
1693
|
+
logoUrl?: string | undefined;
|
|
1694
|
+
logo?: {
|
|
1695
|
+
src: {
|
|
1696
|
+
dark: string;
|
|
1697
|
+
light: string;
|
|
1698
|
+
};
|
|
1699
|
+
width?: string | undefined;
|
|
1700
|
+
alt?: string | undefined;
|
|
1701
|
+
} | undefined;
|
|
1943
1702
|
} | undefined;
|
|
1703
|
+
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1704
|
+
customPages?: {
|
|
1705
|
+
path: string;
|
|
1706
|
+
element?: NonNullable<ReactNode> | undefined;
|
|
1707
|
+
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1708
|
+
prose?: boolean | undefined;
|
|
1709
|
+
}[] | undefined;
|
|
1710
|
+
build?: {
|
|
1711
|
+
remarkPlugins?: Options["remarkPlugins"];
|
|
1712
|
+
rehypePlugins?: Options["rehypePlugins"];
|
|
1713
|
+
} | undefined;
|
|
1714
|
+
basePath?: string | undefined;
|
|
1715
|
+
topNavigation?: {
|
|
1716
|
+
id: string;
|
|
1717
|
+
label: string;
|
|
1718
|
+
default?: string | undefined;
|
|
1719
|
+
display?: "auth" | "anon" | "always" | undefined;
|
|
1720
|
+
}[] | undefined;
|
|
1721
|
+
sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
|
|
1944
1722
|
authentication?: {
|
|
1945
1723
|
type: "clerk";
|
|
1946
1724
|
clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
|
|
@@ -2055,28 +1833,22 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2055
1833
|
endpoint: string;
|
|
2056
1834
|
} | {
|
|
2057
1835
|
enabled: boolean;
|
|
2058
|
-
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
2059
|
-
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
2060
|
-
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1836
|
+
getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
|
|
1837
|
+
rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
1838
|
+
deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
2061
1839
|
updateKeyDescription?: ((apiKey: {
|
|
2062
1840
|
id: string;
|
|
2063
1841
|
description: string;
|
|
2064
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1842
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
2065
1843
|
createKey?: ((apiKey: {
|
|
2066
1844
|
description: string;
|
|
2067
1845
|
expiresOn?: string;
|
|
2068
|
-
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1846
|
+
}, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
|
|
2069
1847
|
} | undefined;
|
|
2070
1848
|
redirects?: {
|
|
2071
1849
|
from: string;
|
|
2072
1850
|
to: string;
|
|
2073
1851
|
}[] | undefined;
|
|
2074
|
-
customPages?: {
|
|
2075
|
-
path: string;
|
|
2076
|
-
element?: NonNullable<ReactNode> | undefined;
|
|
2077
|
-
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
2078
|
-
prose?: boolean | undefined;
|
|
2079
|
-
}[] | undefined;
|
|
2080
1852
|
sitemap?: {
|
|
2081
1853
|
siteUrl: string;
|
|
2082
1854
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -2085,16 +1857,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2085
1857
|
autoLastmod?: boolean | undefined;
|
|
2086
1858
|
exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
|
|
2087
1859
|
} | undefined;
|
|
2088
|
-
build?: {
|
|
2089
|
-
remarkPlugins?: Options["remarkPlugins"];
|
|
2090
|
-
rehypePlugins?: Options["rehypePlugins"];
|
|
2091
|
-
} | undefined;
|
|
2092
1860
|
}>;
|
|
2093
|
-
|
|
1861
|
+
/**
|
|
1862
|
+
* Type for the zudoku.config.{js,ts,tsx,jsx} files
|
|
1863
|
+
*/
|
|
2094
1864
|
export type ZudokuConfig = z.infer<typeof ConfigSchema>;
|
|
2095
|
-
export type ZudokuSiteMapConfig = z.infer<typeof SiteMapSchema>;
|
|
2096
|
-
export type ZudokuDocsConfig = z.infer<typeof DocsConfigSchema>;
|
|
2097
|
-
export type TopNavigationItem = z.infer<typeof TopNavigationItemSchema>;
|
|
2098
|
-
export type ZudokuRedirect = z.infer<typeof Redirect>;
|
|
2099
1865
|
export declare function validateConfig(config: unknown): void;
|
|
2100
1866
|
export {};
|