zudoku 0.18.8 → 0.20.0

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.
Files changed (107) hide show
  1. package/dist/app/main.js +2 -1
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/cli/common/outdated.js +2 -1
  4. package/dist/cli/common/outdated.js.map +1 -1
  5. package/dist/config/common.d.ts +8 -0
  6. package/dist/config/common.js +2 -0
  7. package/dist/config/common.js.map +1 -0
  8. package/dist/config/config.d.ts +3 -2
  9. package/dist/config/loader.d.ts +5 -0
  10. package/dist/config/loader.js +110 -0
  11. package/dist/config/loader.js.map +1 -0
  12. package/dist/config/validators/common.d.ts +4651 -0
  13. package/dist/config/validators/common.js +269 -0
  14. package/dist/config/validators/common.js.map +1 -0
  15. package/dist/config/validators/validate.d.ts +669 -533
  16. package/dist/config/validators/validate.js +9 -234
  17. package/dist/config/validators/validate.js.map +1 -1
  18. package/dist/lib/authentication/providers/openid.js +7 -2
  19. package/dist/lib/authentication/providers/openid.js.map +1 -1
  20. package/dist/lib/components/Heading.d.ts +1 -1
  21. package/dist/lib/components/TopNavigation.d.ts +1 -1
  22. package/dist/lib/components/navigation/SidebarCategory.d.ts +1 -2
  23. package/dist/lib/components/navigation/SidebarCategory.js +3 -4
  24. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  25. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -3
  26. package/dist/lib/components/navigation/SidebarItem.js +4 -9
  27. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  28. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  29. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  30. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  31. package/dist/lib/oas/graphql/index.js +0 -1
  32. package/dist/lib/oas/graphql/index.js.map +1 -1
  33. package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
  34. package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
  35. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  36. package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
  37. package/dist/lib/plugins/api-catalog/index.js +15 -0
  38. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  39. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  40. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  41. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  42. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  43. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  44. package/dist/lib/ui/Command.d.ts +1 -1
  45. package/dist/lib/util/MdxComponents.d.ts +2 -3
  46. package/dist/lib/util/MdxComponents.js.map +1 -1
  47. package/dist/vite/build.js +4 -1
  48. package/dist/vite/build.js.map +1 -1
  49. package/dist/vite/config.d.ts +1 -3
  50. package/dist/vite/config.js +2 -4
  51. package/dist/vite/config.js.map +1 -1
  52. package/dist/vite/dev-server.js.map +1 -1
  53. package/dist/vite/output.d.ts +1 -1
  54. package/dist/vite/output.js.map +1 -1
  55. package/dist/vite/plugin-api.js +44 -1
  56. package/dist/vite/plugin-api.js.map +1 -1
  57. package/dist/vite/plugin-component.js +1 -0
  58. package/dist/vite/plugin-component.js.map +1 -1
  59. package/dist/vite/plugin-config-reload.d.ts +1 -2
  60. package/dist/vite/plugin-config-reload.js.map +1 -1
  61. package/dist/vite/plugin.d.ts +1 -2
  62. package/dist/vite/plugin.js.map +1 -1
  63. package/dist/vite/prerender.d.ts +2 -1
  64. package/dist/vite/prerender.js +2 -2
  65. package/dist/vite/prerender.js.map +1 -1
  66. package/dist/vite/sitemap.d.ts +1 -1
  67. package/dist/zuplo/env.d.ts +6 -0
  68. package/dist/zuplo/env.js +9 -0
  69. package/dist/zuplo/env.js.map +1 -0
  70. package/dist/zuplo/with-zuplo.d.ts +2 -2
  71. package/dist/zuplo/with-zuplo.js.map +1 -1
  72. package/lib/Markdown-ievDDhFT.js.map +1 -1
  73. package/lib/{OperationList-DzE32oyS.js → OperationList-DT5Fu9bC.js} +2 -2
  74. package/lib/{OperationList-DzE32oyS.js.map → OperationList-DT5Fu9bC.js.map} +1 -1
  75. package/lib/assets/{worker-CyxLedqF.js → worker-C_2va8B8.js} +1 -2
  76. package/lib/assets/{worker-CyxLedqF.js.map → worker-C_2va8B8.js.map} +1 -1
  77. package/lib/{createServer-DTiCfoql.js → createServer-BCAHdrpE.js} +1 -2
  78. package/lib/{createServer-DTiCfoql.js.map → createServer-BCAHdrpE.js.map} +1 -1
  79. package/lib/{index-NNCc1BSK.js → index-CBctPUfP.js} +4 -3
  80. package/lib/index-CBctPUfP.js.map +1 -0
  81. package/lib/zudoku.auth-openid.js +42 -37
  82. package/lib/zudoku.auth-openid.js.map +1 -1
  83. package/lib/zudoku.components.js +259 -271
  84. package/lib/zudoku.components.js.map +1 -1
  85. package/lib/zudoku.openapi-worker.js +1 -1
  86. package/lib/zudoku.plugin-api-catalog.js +121 -0
  87. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  88. package/lib/zudoku.plugin-markdown.js.map +1 -1
  89. package/lib/zudoku.plugin-openapi.js +1 -1
  90. package/lib/zudoku.plugin-redirect.js.map +1 -1
  91. package/package.json +6 -2
  92. package/src/app/main.tsx +5 -1
  93. package/src/lib/authentication/providers/openid.tsx +7 -2
  94. package/src/lib/components/TopNavigation.tsx +1 -1
  95. package/src/lib/components/navigation/SidebarCategory.tsx +7 -9
  96. package/src/lib/components/navigation/SidebarItem.tsx +3 -16
  97. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  98. package/src/lib/core/ZudokuContext.ts +1 -1
  99. package/src/lib/oas/graphql/index.ts +0 -1
  100. package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
  101. package/src/lib/plugins/api-catalog/index.tsx +50 -0
  102. package/src/lib/plugins/markdown/index.tsx +1 -1
  103. package/src/lib/plugins/markdown/resolver.ts +2 -4
  104. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
  105. package/src/lib/plugins/redirect/index.tsx +1 -1
  106. package/src/lib/util/MdxComponents.tsx +2 -5
  107. package/lib/index-NNCc1BSK.js.map +0 -1
@@ -1,159 +1,9 @@
1
1
  import type { Options } from "@mdx-js/rollup";
2
2
  import type { ComponentType, ReactNode } from "react";
3
- import type { ZudokuPlugin } from "src/lib/core/plugins.js";
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 { ZudokuContext } from "../../lib/core/ZudokuContext.js";
7
- import type { ApiKey } from "../../lib/plugins/api-keys/index.js";
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
- navigationId: z.ZodOptional<z.ZodString>;
14
- }>, "strip", z.ZodTypeAny, {
15
- type: "url";
16
- input: string;
17
- server?: string | undefined;
18
- navigationId?: string | undefined;
19
- }, {
20
- type: "url";
21
- input: string;
22
- server?: string | undefined;
23
- navigationId?: string | undefined;
24
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
25
- type: z.ZodLiteral<"file">;
26
- input: z.ZodString;
27
- }, {
28
- server: z.ZodOptional<z.ZodString>;
29
- navigationId: z.ZodOptional<z.ZodString>;
30
- }>, {
31
- 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">>;
32
- }>, "strip", z.ZodTypeAny, {
33
- type: "file";
34
- input: string;
35
- server?: string | undefined;
36
- navigationId?: string | undefined;
37
- postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
38
- }, {
39
- type: "file";
40
- input: string;
41
- server?: string | undefined;
42
- navigationId?: string | undefined;
43
- postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
44
- }>, z.ZodObject<z.objectUtil.extendShape<{
45
- type: z.ZodLiteral<"raw">;
46
- input: z.ZodString;
47
- }, {
48
- server: z.ZodOptional<z.ZodString>;
49
- navigationId: z.ZodOptional<z.ZodString>;
50
- }>, "strip", z.ZodTypeAny, {
51
- type: "raw";
52
- input: string;
53
- server?: string | undefined;
54
- navigationId?: string | undefined;
55
- }, {
56
- type: "raw";
57
- input: string;
58
- server?: string | undefined;
59
- navigationId?: string | undefined;
60
- }>]>;
61
- declare const SiteMapSchema: z.ZodOptional<z.ZodObject<{
62
- /**
63
- * Base url of your website
64
- */
65
- siteUrl: z.ZodString;
66
- /**
67
- * Change frequency.
68
- * @default 'daily'
69
- */
70
- changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
71
- /**
72
- * Priority
73
- * @default 0.7
74
- */
75
- priority: z.ZodOptional<z.ZodNumber>;
76
- outDir: z.ZodOptional<z.ZodString>;
77
- /**
78
- * Add <lastmod/> property.
79
- * @default true
80
- */
81
- autoLastmod: z.ZodOptional<z.ZodBoolean>;
82
- /**
83
- * Array of relative paths to exclude from listing on sitemap.xml or sitemap-*.xml.
84
- * @example ['/page-0', '/page/example']
85
- */
86
- exclude: z.ZodOptional<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodString, "many">>>, z.ZodArray<z.ZodString, "many">]>>;
87
- }, "strip", z.ZodTypeAny, {
88
- siteUrl: string;
89
- changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
90
- priority?: number | undefined;
91
- outDir?: string | undefined;
92
- autoLastmod?: boolean | undefined;
93
- exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
94
- }, {
95
- siteUrl: string;
96
- changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
97
- priority?: number | undefined;
98
- outDir?: string | undefined;
99
- autoLastmod?: boolean | undefined;
100
- exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
101
- }>>;
102
- declare const DocsConfigSchema: z.ZodObject<{
103
- files: z.ZodString;
104
- defaultOptions: z.ZodOptional<z.ZodObject<{
105
- toc: z.ZodOptional<z.ZodBoolean>;
106
- disablePager: z.ZodOptional<z.ZodBoolean>;
107
- }, "strip", z.ZodTypeAny, {
108
- toc?: boolean | undefined;
109
- disablePager?: boolean | undefined;
110
- }, {
111
- toc?: boolean | undefined;
112
- disablePager?: boolean | undefined;
113
- }>>;
114
- }, "strip", z.ZodTypeAny, {
115
- files: string;
116
- defaultOptions?: {
117
- toc?: boolean | undefined;
118
- disablePager?: boolean | undefined;
119
- } | undefined;
120
- }, {
121
- files: string;
122
- defaultOptions?: {
123
- toc?: boolean | undefined;
124
- disablePager?: boolean | undefined;
125
- } | undefined;
126
- }>;
127
- declare const TopNavigationItemSchema: z.ZodObject<{
128
- label: z.ZodString;
129
- id: z.ZodString;
130
- default: z.ZodOptional<z.ZodString>;
131
- display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
132
- }, "strip", z.ZodTypeAny, {
133
- id: string;
134
- label: string;
135
- default?: string | undefined;
136
- display?: "auth" | "anon" | "always" | undefined;
137
- }, {
138
- id: string;
139
- label: string;
140
- default?: string | undefined;
141
- display?: "auth" | "anon" | "always" | undefined;
142
- }>;
143
- type BannerColorType = ZodOptional<ZodUnion<[
144
- ZodType<"note" | "tip" | "info" | "caution" | "danger" | (string & {}), ZodEnumDef>,
145
- ZodString
146
- ]>>;
147
- declare const Redirect: z.ZodObject<{
148
- from: z.ZodString;
149
- to: z.ZodString;
150
- }, "strip", z.ZodTypeAny, {
151
- from: string;
152
- to: string;
153
- }, {
154
- from: string;
155
- to: string;
156
- }>;
5
+ import type { ZudokuPlugin } from "../../lib/core/plugins.js";
6
+ import { MdxComponentsType } from "../../lib/util/MdxComponents.js";
157
7
  declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
158
8
  basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
159
9
  page: z.ZodOptional<z.ZodObject<{
@@ -164,73 +14,73 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
164
14
  light: z.ZodString;
165
15
  dark: z.ZodString;
166
16
  }, "strip", z.ZodTypeAny, {
167
- light: string;
168
17
  dark: string;
169
- }, {
170
18
  light: string;
19
+ }, {
171
20
  dark: string;
21
+ light: string;
172
22
  }>;
173
23
  alt: z.ZodOptional<z.ZodString>;
174
24
  width: z.ZodOptional<z.ZodString>;
175
25
  }, "strip", z.ZodTypeAny, {
176
26
  src: {
177
- light: string;
178
27
  dark: string;
28
+ light: string;
179
29
  };
180
- alt?: string | undefined;
181
30
  width?: string | undefined;
31
+ alt?: string | undefined;
182
32
  }, {
183
33
  src: {
184
- light: string;
185
34
  dark: string;
35
+ light: string;
186
36
  };
187
- alt?: string | undefined;
188
37
  width?: string | undefined;
38
+ alt?: string | undefined;
189
39
  }>>;
190
40
  banner: z.ZodOptional<z.ZodOptional<z.ZodObject<{
191
41
  message: z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>;
192
- color: BannerColorType;
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]>>;
193
43
  dismissible: z.ZodOptional<z.ZodBoolean>;
194
44
  }, "strip", z.ZodTypeAny, {
195
45
  message: NonNullable<ReactNode>;
196
- color?: BannerColorType;
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]>>;
197
47
  dismissible?: boolean | undefined;
198
48
  }, {
199
49
  message: NonNullable<ReactNode>;
200
- color?: BannerColorType;
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]>>;
201
51
  dismissible?: boolean | undefined;
202
52
  }>>>;
203
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;
204
59
  pageTitle?: string | undefined;
205
60
  logoUrl?: string | undefined;
206
61
  logo?: {
207
62
  src: {
208
- light: string;
209
63
  dark: string;
64
+ light: string;
210
65
  };
211
- alt?: string | undefined;
212
66
  width?: string | undefined;
67
+ alt?: string | undefined;
213
68
  } | undefined;
69
+ }, {
214
70
  banner?: {
215
71
  message: NonNullable<ReactNode>;
216
- color?: BannerColorType;
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]>>;
217
73
  dismissible?: boolean | undefined;
218
74
  } | undefined;
219
- }, {
220
75
  pageTitle?: string | undefined;
221
76
  logoUrl?: string | undefined;
222
77
  logo?: {
223
78
  src: {
224
- light: string;
225
79
  dark: string;
80
+ light: string;
226
81
  };
227
- alt?: string | undefined;
228
82
  width?: string | undefined;
229
- } | undefined;
230
- banner?: {
231
- message: NonNullable<ReactNode>;
232
- color?: BannerColorType;
233
- dismissible?: boolean | undefined;
83
+ alt?: string | undefined;
234
84
  } | undefined;
235
85
  }>>;
236
86
  topNavigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -250,7 +100,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
250
100
  display?: "auth" | "anon" | "always" | undefined;
251
101
  }>, "many">>;
252
102
  sidebar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("./InputSidebarSchema.js").InputSidebarItem, z.ZodTypeDef, import("./InputSidebarSchema.js").InputSidebarItem>, "many">>>;
253
- UNSAFE_slotlets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ReactNode | ComponentType<ExposedComponentProps>, z.ZodTypeDef, ReactNode | ComponentType<ExposedComponentProps>>>>;
254
103
  theme: z.ZodOptional<z.ZodObject<{
255
104
  light: z.ZodOptional<z.ZodObject<{
256
105
  background: z.ZodOptional<z.ZodString>;
@@ -275,6 +124,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
275
124
  radius: z.ZodOptional<z.ZodString>;
276
125
  }, "strip", z.ZodTypeAny, {
277
126
  input?: string | undefined;
127
+ radius?: string | undefined;
128
+ border?: string | undefined;
278
129
  background?: string | undefined;
279
130
  foreground?: string | undefined;
280
131
  card?: string | undefined;
@@ -291,11 +142,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
291
142
  accentForeground?: string | undefined;
292
143
  destructive?: string | undefined;
293
144
  destructiveForeground?: string | undefined;
294
- border?: string | undefined;
295
145
  ring?: string | undefined;
296
- radius?: string | undefined;
297
146
  }, {
298
147
  input?: string | undefined;
148
+ radius?: string | undefined;
149
+ border?: string | undefined;
299
150
  background?: string | undefined;
300
151
  foreground?: string | undefined;
301
152
  card?: string | undefined;
@@ -312,9 +163,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
312
163
  accentForeground?: string | undefined;
313
164
  destructive?: string | undefined;
314
165
  destructiveForeground?: string | undefined;
315
- border?: string | undefined;
316
166
  ring?: string | undefined;
317
- radius?: string | undefined;
318
167
  }>>;
319
168
  dark: z.ZodOptional<z.ZodObject<{
320
169
  background: z.ZodOptional<z.ZodString>;
@@ -339,6 +188,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
339
188
  radius: z.ZodOptional<z.ZodString>;
340
189
  }, "strip", z.ZodTypeAny, {
341
190
  input?: string | undefined;
191
+ radius?: string | undefined;
192
+ border?: string | undefined;
342
193
  background?: string | undefined;
343
194
  foreground?: string | undefined;
344
195
  card?: string | undefined;
@@ -355,11 +206,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
355
206
  accentForeground?: string | undefined;
356
207
  destructive?: string | undefined;
357
208
  destructiveForeground?: string | undefined;
358
- border?: string | undefined;
359
209
  ring?: string | undefined;
360
- radius?: string | undefined;
361
210
  }, {
362
211
  input?: string | undefined;
212
+ radius?: string | undefined;
213
+ border?: string | undefined;
363
214
  background?: string | undefined;
364
215
  foreground?: string | undefined;
365
216
  card?: string | undefined;
@@ -376,13 +227,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
376
227
  accentForeground?: string | undefined;
377
228
  destructive?: string | undefined;
378
229
  destructiveForeground?: string | undefined;
379
- border?: string | undefined;
380
230
  ring?: string | undefined;
381
- radius?: string | undefined;
382
231
  }>>;
383
232
  }, "strip", z.ZodTypeAny, {
384
- light?: {
233
+ dark?: {
385
234
  input?: string | undefined;
235
+ radius?: string | undefined;
236
+ border?: string | undefined;
386
237
  background?: string | undefined;
387
238
  foreground?: string | undefined;
388
239
  card?: string | undefined;
@@ -399,12 +250,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
399
250
  accentForeground?: string | undefined;
400
251
  destructive?: string | undefined;
401
252
  destructiveForeground?: string | undefined;
402
- border?: string | undefined;
403
253
  ring?: string | undefined;
404
- radius?: string | undefined;
405
254
  } | undefined;
406
- dark?: {
255
+ light?: {
407
256
  input?: string | undefined;
257
+ radius?: string | undefined;
258
+ border?: string | undefined;
408
259
  background?: string | undefined;
409
260
  foreground?: string | undefined;
410
261
  card?: string | undefined;
@@ -421,13 +272,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
421
272
  accentForeground?: string | undefined;
422
273
  destructive?: string | undefined;
423
274
  destructiveForeground?: string | undefined;
424
- border?: string | undefined;
425
275
  ring?: string | undefined;
426
- radius?: string | undefined;
427
276
  } | undefined;
428
277
  }, {
429
- light?: {
278
+ dark?: {
430
279
  input?: string | undefined;
280
+ radius?: string | undefined;
281
+ border?: string | undefined;
431
282
  background?: string | undefined;
432
283
  foreground?: string | undefined;
433
284
  card?: string | undefined;
@@ -444,12 +295,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
444
295
  accentForeground?: string | undefined;
445
296
  destructive?: string | undefined;
446
297
  destructiveForeground?: string | undefined;
447
- border?: string | undefined;
448
298
  ring?: string | undefined;
449
- radius?: string | undefined;
450
299
  } | undefined;
451
- dark?: {
300
+ light?: {
452
301
  input?: string | undefined;
302
+ radius?: string | undefined;
303
+ border?: string | undefined;
453
304
  background?: string | undefined;
454
305
  foreground?: string | undefined;
455
306
  card?: string | undefined;
@@ -466,9 +317,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
466
317
  accentForeground?: string | undefined;
467
318
  destructive?: string | undefined;
468
319
  destructiveForeground?: string | undefined;
469
- border?: string | undefined;
470
320
  ring?: string | undefined;
471
- radius?: string | undefined;
472
321
  } | undefined;
473
322
  }>>;
474
323
  metadata: z.ZodOptional<z.ZodObject<{
@@ -508,13 +357,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
508
357
  creator?: string | undefined;
509
358
  publisher?: string | undefined;
510
359
  }>>;
511
- mdx: z.ZodOptional<z.ZodObject<{
512
- 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>>;
513
- }, "strip", z.ZodTypeAny, {
514
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
515
- }, {
516
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
517
- }>>;
518
360
  authentication: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
519
361
  type: z.ZodLiteral<"clerk">;
520
362
  clerkPubKey: z.ZodType<`pk_test_${string}` | `pk_live_${string}`, z.ZodTypeDef, `pk_test_${string}` | `pk_live_${string}`>;
@@ -585,7 +427,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
585
427
  redirectToAfterSignOut?: string | undefined;
586
428
  audience?: string | undefined;
587
429
  }>]>>;
588
- search: z.ZodOptional<z.ZodObject<{
430
+ search: z.ZodOptional<z.ZodOptional<z.ZodObject<{
589
431
  type: z.ZodLiteral<"inkeep">;
590
432
  apiKey: z.ZodString;
591
433
  integrationId: z.ZodString;
@@ -606,7 +448,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
606
448
  organizationId: string;
607
449
  primaryBrandColor: string;
608
450
  organizationDisplayName: string;
609
- }>>;
451
+ }>>>;
610
452
  docs: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
611
453
  files: z.ZodString;
612
454
  defaultOptions: z.ZodOptional<z.ZodObject<{
@@ -660,107 +502,258 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
660
502
  type: z.ZodLiteral<"url">;
661
503
  input: z.ZodString;
662
504
  }, {
505
+ id: z.ZodOptional<z.ZodString>;
663
506
  server: z.ZodOptional<z.ZodString>;
664
507
  navigationId: z.ZodOptional<z.ZodString>;
508
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
+ label: z.ZodString;
510
+ tags: z.ZodArray<z.ZodString, "many">;
511
+ }, "strip", z.ZodTypeAny, {
512
+ tags: string[];
513
+ label: string;
514
+ }, {
515
+ tags: string[];
516
+ label: string;
517
+ }>, "many">>;
665
518
  }>, "strip", z.ZodTypeAny, {
666
519
  type: "url";
667
520
  input: string;
668
521
  server?: string | undefined;
522
+ id?: string | undefined;
669
523
  navigationId?: string | undefined;
524
+ categories?: {
525
+ tags: string[];
526
+ label: string;
527
+ }[] | undefined;
670
528
  }, {
671
529
  type: "url";
672
530
  input: string;
673
531
  server?: string | undefined;
532
+ id?: string | undefined;
674
533
  navigationId?: string | undefined;
534
+ categories?: {
535
+ tags: string[];
536
+ label: string;
537
+ }[] | undefined;
675
538
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
676
539
  type: z.ZodLiteral<"file">;
677
540
  input: z.ZodString;
678
541
  }, {
542
+ id: z.ZodOptional<z.ZodString>;
679
543
  server: z.ZodOptional<z.ZodString>;
680
544
  navigationId: z.ZodOptional<z.ZodString>;
545
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
546
+ label: z.ZodString;
547
+ tags: z.ZodArray<z.ZodString, "many">;
548
+ }, "strip", z.ZodTypeAny, {
549
+ tags: string[];
550
+ label: string;
551
+ }, {
552
+ tags: string[];
553
+ label: string;
554
+ }>, "many">>;
681
555
  }>, {
682
556
  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">>;
683
557
  }>, "strip", z.ZodTypeAny, {
684
558
  type: "file";
685
559
  input: string;
686
560
  server?: string | undefined;
561
+ id?: string | undefined;
687
562
  navigationId?: string | undefined;
563
+ categories?: {
564
+ tags: string[];
565
+ label: string;
566
+ }[] | undefined;
688
567
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
689
568
  }, {
690
569
  type: "file";
691
570
  input: string;
692
571
  server?: string | undefined;
572
+ id?: string | undefined;
693
573
  navigationId?: string | undefined;
574
+ categories?: {
575
+ tags: string[];
576
+ label: string;
577
+ }[] | undefined;
694
578
  postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
695
579
  }>, z.ZodObject<z.objectUtil.extendShape<{
696
580
  type: z.ZodLiteral<"raw">;
697
581
  input: z.ZodString;
698
582
  }, {
583
+ id: z.ZodOptional<z.ZodString>;
699
584
  server: z.ZodOptional<z.ZodString>;
700
585
  navigationId: z.ZodOptional<z.ZodString>;
586
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
587
+ label: z.ZodString;
588
+ tags: z.ZodArray<z.ZodString, "many">;
589
+ }, "strip", z.ZodTypeAny, {
590
+ tags: string[];
591
+ label: string;
592
+ }, {
593
+ tags: string[];
594
+ label: string;
595
+ }>, "many">>;
701
596
  }>, "strip", z.ZodTypeAny, {
702
597
  type: "raw";
703
598
  input: string;
704
599
  server?: string | undefined;
600
+ id?: string | undefined;
705
601
  navigationId?: string | undefined;
602
+ categories?: {
603
+ tags: string[];
604
+ label: string;
605
+ }[] | undefined;
706
606
  }, {
707
607
  type: "raw";
708
608
  input: string;
709
609
  server?: string | undefined;
610
+ id?: string | undefined;
710
611
  navigationId?: string | undefined;
612
+ categories?: {
613
+ tags: string[];
614
+ label: string;
615
+ }[] | undefined;
711
616
  }>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
712
617
  type: z.ZodLiteral<"url">;
713
618
  input: z.ZodString;
714
619
  }, {
620
+ id: z.ZodOptional<z.ZodString>;
715
621
  server: z.ZodOptional<z.ZodString>;
716
622
  navigationId: z.ZodOptional<z.ZodString>;
623
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
624
+ label: z.ZodString;
625
+ tags: z.ZodArray<z.ZodString, "many">;
626
+ }, "strip", z.ZodTypeAny, {
627
+ tags: string[];
628
+ label: string;
629
+ }, {
630
+ tags: string[];
631
+ label: string;
632
+ }>, "many">>;
717
633
  }>, "strip", z.ZodTypeAny, {
718
634
  type: "url";
719
635
  input: string;
720
636
  server?: string | undefined;
637
+ id?: string | undefined;
721
638
  navigationId?: string | undefined;
639
+ categories?: {
640
+ tags: string[];
641
+ label: string;
642
+ }[] | undefined;
722
643
  }, {
723
644
  type: "url";
724
645
  input: string;
725
646
  server?: string | undefined;
647
+ id?: string | undefined;
726
648
  navigationId?: string | undefined;
649
+ categories?: {
650
+ tags: string[];
651
+ label: string;
652
+ }[] | undefined;
727
653
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
728
654
  type: z.ZodLiteral<"file">;
729
655
  input: z.ZodString;
730
656
  }, {
657
+ id: z.ZodOptional<z.ZodString>;
731
658
  server: z.ZodOptional<z.ZodString>;
732
659
  navigationId: z.ZodOptional<z.ZodString>;
660
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
+ label: z.ZodString;
662
+ tags: z.ZodArray<z.ZodString, "many">;
663
+ }, "strip", z.ZodTypeAny, {
664
+ tags: string[];
665
+ label: string;
666
+ }, {
667
+ tags: string[];
668
+ label: string;
669
+ }>, "many">>;
733
670
  }>, {
734
671
  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">>;
735
672
  }>, "strip", z.ZodTypeAny, {
736
673
  type: "file";
737
674
  input: string;
738
675
  server?: string | undefined;
676
+ id?: string | undefined;
739
677
  navigationId?: string | undefined;
678
+ categories?: {
679
+ tags: string[];
680
+ label: string;
681
+ }[] | undefined;
740
682
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
741
683
  }, {
742
684
  type: "file";
743
685
  input: string;
744
686
  server?: string | undefined;
687
+ id?: string | undefined;
745
688
  navigationId?: string | undefined;
689
+ categories?: {
690
+ tags: string[];
691
+ label: string;
692
+ }[] | undefined;
746
693
  postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
747
694
  }>, z.ZodObject<z.objectUtil.extendShape<{
748
695
  type: z.ZodLiteral<"raw">;
749
696
  input: z.ZodString;
750
697
  }, {
698
+ id: z.ZodOptional<z.ZodString>;
751
699
  server: z.ZodOptional<z.ZodString>;
752
700
  navigationId: z.ZodOptional<z.ZodString>;
701
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
702
+ label: z.ZodString;
703
+ tags: z.ZodArray<z.ZodString, "many">;
704
+ }, "strip", z.ZodTypeAny, {
705
+ tags: string[];
706
+ label: string;
707
+ }, {
708
+ tags: string[];
709
+ label: string;
710
+ }>, "many">>;
753
711
  }>, "strip", z.ZodTypeAny, {
754
712
  type: "raw";
755
713
  input: string;
756
714
  server?: string | undefined;
715
+ id?: string | undefined;
757
716
  navigationId?: string | undefined;
717
+ categories?: {
718
+ tags: string[];
719
+ label: string;
720
+ }[] | undefined;
758
721
  }, {
759
722
  type: "raw";
760
723
  input: string;
761
724
  server?: string | undefined;
725
+ id?: string | undefined;
762
726
  navigationId?: string | undefined;
727
+ categories?: {
728
+ tags: string[];
729
+ label: string;
730
+ }[] | undefined;
763
731
  }>]>, "many">]>>;
732
+ catalog: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
733
+ navigationId: z.ZodString;
734
+ label: z.ZodString;
735
+ items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ label: string;
738
+ navigationId: string;
739
+ items?: string[] | undefined;
740
+ }, {
741
+ label: string;
742
+ navigationId: string;
743
+ items?: string[] | undefined;
744
+ }>, z.ZodArray<z.ZodObject<{
745
+ navigationId: z.ZodString;
746
+ label: z.ZodString;
747
+ items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ label: string;
750
+ navigationId: string;
751
+ items?: string[] | undefined;
752
+ }, {
753
+ label: string;
754
+ navigationId: string;
755
+ items?: string[] | undefined;
756
+ }>, "many">]>>;
764
757
  apiKeys: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
765
758
  enabled: z.ZodBoolean;
766
759
  endpoint: z.ZodString;
@@ -772,49 +765,49 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
772
765
  endpoint: string;
773
766
  }>, z.ZodObject<{
774
767
  enabled: z.ZodBoolean;
775
- getKeys: z.ZodType<(context: ZudokuContext) => Promise<ApiKey[]>, z.ZodTypeDef, (context: ZudokuContext) => Promise<ApiKey[]>>;
776
- rollKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
777
- 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>>>;
778
771
  updateKeyDescription: z.ZodOptional<z.ZodType<(apiKey: {
779
772
  id: string;
780
773
  description: string;
781
- }, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
774
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
782
775
  id: string;
783
776
  description: string;
784
- }, context: ZudokuContext) => Promise<void>>>;
777
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
785
778
  createKey: z.ZodOptional<z.ZodType<(apiKey: {
786
779
  description: string;
787
780
  expiresOn?: string;
788
- }, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
781
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
789
782
  description: string;
790
783
  expiresOn?: string;
791
- }, context: ZudokuContext) => Promise<void>>>;
784
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
792
785
  }, "strip", z.ZodTypeAny, {
793
786
  enabled: boolean;
794
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
795
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
796
- 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;
797
790
  updateKeyDescription?: ((apiKey: {
798
791
  id: string;
799
792
  description: string;
800
- }, context: ZudokuContext) => Promise<void>) | undefined;
793
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
801
794
  createKey?: ((apiKey: {
802
795
  description: string;
803
796
  expiresOn?: string;
804
- }, context: ZudokuContext) => Promise<void>) | undefined;
797
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
805
798
  }, {
806
799
  enabled: boolean;
807
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
808
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
809
- 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;
810
803
  updateKeyDescription?: ((apiKey: {
811
804
  id: string;
812
805
  description: string;
813
- }, context: ZudokuContext) => Promise<void>) | undefined;
806
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
814
807
  createKey?: ((apiKey: {
815
808
  description: string;
816
809
  expiresOn?: string;
817
- }, context: ZudokuContext) => Promise<void>) | undefined;
810
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
818
811
  }>]>>;
819
812
  redirects: z.ZodOptional<z.ZodArray<z.ZodObject<{
820
813
  from: z.ZodString;
@@ -826,48 +819,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
826
819
  from: string;
827
820
  to: string;
828
821
  }>, "many">>;
829
- customPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
830
- path: z.ZodString;
831
- element: z.ZodOptional<z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>>;
832
- render: z.ZodOptional<z.ZodType<ComponentType<ExposedComponentProps>, z.ZodTypeDef, ComponentType<ExposedComponentProps>>>;
833
- prose: z.ZodOptional<z.ZodBoolean>;
834
- }, "strip", z.ZodTypeAny, {
835
- path: string;
836
- element?: NonNullable<ReactNode> | undefined;
837
- render?: ComponentType<ExposedComponentProps> | undefined;
838
- prose?: boolean | undefined;
839
- }, {
840
- path: string;
841
- element?: NonNullable<ReactNode> | undefined;
842
- render?: ComponentType<ExposedComponentProps> | undefined;
843
- prose?: boolean | undefined;
844
- }>, "many">>;
845
- plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
846
822
  sitemap: z.ZodOptional<z.ZodOptional<z.ZodObject<{
847
- /**
848
- * Base url of your website
849
- */
850
823
  siteUrl: z.ZodString;
851
- /**
852
- * Change frequency.
853
- * @default 'daily'
854
- */
855
824
  changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
856
- /**
857
- * Priority
858
- * @default 0.7
859
- */
860
825
  priority: z.ZodOptional<z.ZodNumber>;
861
826
  outDir: z.ZodOptional<z.ZodString>;
862
- /**
863
- * Add <lastmod/> property.
864
- * @default true
865
- */
866
827
  autoLastmod: z.ZodOptional<z.ZodBoolean>;
867
- /**
868
- * Array of relative paths to exclude from listing on sitemap.xml or sitemap-*.xml.
869
- * @example ['/page-0', '/page/example']
870
- */
871
828
  exclude: z.ZodOptional<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodString, "many">>>, z.ZodArray<z.ZodString, "many">]>>;
872
829
  }, "strip", z.ZodTypeAny, {
873
830
  siteUrl: string;
@@ -884,6 +841,31 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
884
841
  autoLastmod?: boolean | undefined;
885
842
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
886
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">>;
887
869
  build: z.ZodOptional<z.ZodType<{
888
870
  remarkPlugins?: Options["remarkPlugins"];
889
871
  rehypePlugins?: Options["rehypePlugins"];
@@ -901,35 +883,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
901
883
  primaryBrandColor: string;
902
884
  organizationDisplayName: string;
903
885
  } | undefined;
904
- basePath?: string | undefined;
905
- page?: {
906
- pageTitle?: string | undefined;
907
- logoUrl?: string | undefined;
908
- logo?: {
909
- src: {
910
- light: string;
911
- dark: string;
912
- };
913
- alt?: string | undefined;
914
- width?: string | undefined;
915
- } | undefined;
916
- banner?: {
917
- message: NonNullable<ReactNode>;
918
- color?: BannerColorType;
919
- dismissible?: boolean | undefined;
920
- } | 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;
921
898
  } | undefined;
922
- topNavigation?: {
923
- id: string;
924
- label: string;
925
- default?: string | undefined;
926
- display?: "auth" | "anon" | "always" | undefined;
927
- }[] | undefined;
928
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
929
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
930
899
  theme?: {
931
- light?: {
900
+ dark?: {
932
901
  input?: string | undefined;
902
+ radius?: string | undefined;
903
+ border?: string | undefined;
933
904
  background?: string | undefined;
934
905
  foreground?: string | undefined;
935
906
  card?: string | undefined;
@@ -946,12 +917,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
946
917
  accentForeground?: string | undefined;
947
918
  destructive?: string | undefined;
948
919
  destructiveForeground?: string | undefined;
949
- border?: string | undefined;
950
920
  ring?: string | undefined;
951
- radius?: string | undefined;
952
921
  } | undefined;
953
- dark?: {
922
+ light?: {
954
923
  input?: string | undefined;
924
+ radius?: string | undefined;
925
+ border?: string | undefined;
955
926
  background?: string | undefined;
956
927
  foreground?: string | undefined;
957
928
  card?: string | undefined;
@@ -968,59 +939,80 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
968
939
  accentForeground?: string | undefined;
969
940
  destructive?: string | undefined;
970
941
  destructiveForeground?: string | undefined;
971
- border?: string | undefined;
972
942
  ring?: string | undefined;
973
- radius?: string | undefined;
974
943
  } | undefined;
975
944
  } | undefined;
976
- metadata?: {
977
- description?: string | undefined;
978
- title?: string | undefined;
979
- logo?: string | undefined;
980
- favicon?: string | undefined;
981
- generator?: string | undefined;
982
- applicationName?: string | undefined;
983
- referrer?: string | undefined;
984
- keywords?: string[] | undefined;
985
- authors?: string[] | undefined;
986
- creator?: string | undefined;
987
- publisher?: string | undefined;
988
- } | undefined;
989
945
  mdx?: {
990
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
946
+ components?: MdxComponentsType;
991
947
  } | undefined;
992
- authentication?: {
993
- type: "clerk";
994
- clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
995
- redirectToAfterSignUp?: string | undefined;
996
- redirectToAfterSignIn?: string | undefined;
997
- redirectToAfterSignOut?: string | undefined;
998
- } | {
999
- type: "openid";
1000
- clientId: string;
1001
- issuer: string;
1002
- redirectToAfterSignUp?: string | undefined;
1003
- redirectToAfterSignIn?: string | undefined;
1004
- redirectToAfterSignOut?: string | undefined;
1005
- audience?: string | undefined;
1006
- scopes?: string[] | undefined;
1007
- } | {
1008
- type: "auth0";
1009
- clientId: string;
1010
- domain: string;
1011
- redirectToAfterSignUp?: string | undefined;
1012
- redirectToAfterSignIn?: string | undefined;
1013
- redirectToAfterSignOut?: string | undefined;
1014
- audience?: string | undefined;
1015
- } | undefined;
1016
- docs?: {
1017
- files: string;
1018
- defaultOptions?: {
1019
- toc?: boolean | undefined;
1020
- disablePager?: boolean | undefined;
1021
- } | undefined;
1022
- } | {
1023
- files: string;
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;
998
+ scopes?: string[] | undefined;
999
+ } | {
1000
+ type: "auth0";
1001
+ clientId: string;
1002
+ domain: string;
1003
+ redirectToAfterSignUp?: string | undefined;
1004
+ redirectToAfterSignIn?: string | undefined;
1005
+ redirectToAfterSignOut?: string | undefined;
1006
+ audience?: string | undefined;
1007
+ } | undefined;
1008
+ docs?: {
1009
+ files: string;
1010
+ defaultOptions?: {
1011
+ toc?: boolean | undefined;
1012
+ disablePager?: boolean | undefined;
1013
+ } | undefined;
1014
+ } | {
1015
+ files: string;
1024
1016
  defaultOptions?: {
1025
1017
  toc?: boolean | undefined;
1026
1018
  disablePager?: boolean | undefined;
@@ -1030,62 +1022,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1030
1022
  type: "url";
1031
1023
  input: string;
1032
1024
  server?: string | undefined;
1025
+ id?: string | undefined;
1033
1026
  navigationId?: string | undefined;
1027
+ categories?: {
1028
+ tags: string[];
1029
+ label: string;
1030
+ }[] | undefined;
1034
1031
  } | {
1035
1032
  type: "file";
1036
1033
  input: string;
1037
1034
  server?: string | undefined;
1035
+ id?: string | undefined;
1038
1036
  navigationId?: string | undefined;
1037
+ categories?: {
1038
+ tags: string[];
1039
+ label: string;
1040
+ }[] | undefined;
1039
1041
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1040
1042
  } | {
1041
1043
  type: "raw";
1042
1044
  input: string;
1043
1045
  server?: string | undefined;
1046
+ id?: string | undefined;
1044
1047
  navigationId?: string | undefined;
1048
+ categories?: {
1049
+ tags: string[];
1050
+ label: string;
1051
+ }[] | undefined;
1045
1052
  } | ({
1046
1053
  type: "url";
1047
1054
  input: string;
1048
1055
  server?: string | undefined;
1056
+ id?: string | undefined;
1049
1057
  navigationId?: string | undefined;
1058
+ categories?: {
1059
+ tags: string[];
1060
+ label: string;
1061
+ }[] | undefined;
1050
1062
  } | {
1051
1063
  type: "file";
1052
1064
  input: string;
1053
1065
  server?: string | undefined;
1066
+ id?: string | undefined;
1054
1067
  navigationId?: string | undefined;
1068
+ categories?: {
1069
+ tags: string[];
1070
+ label: string;
1071
+ }[] | undefined;
1055
1072
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1056
1073
  } | {
1057
1074
  type: "raw";
1058
1075
  input: string;
1059
1076
  server?: string | undefined;
1077
+ id?: string | undefined;
1060
1078
  navigationId?: string | undefined;
1079
+ categories?: {
1080
+ tags: string[];
1081
+ label: string;
1082
+ }[] | undefined;
1061
1083
  })[] | undefined;
1084
+ catalog?: {
1085
+ label: string;
1086
+ navigationId: string;
1087
+ items?: string[] | undefined;
1088
+ } | {
1089
+ label: string;
1090
+ navigationId: string;
1091
+ items?: string[] | undefined;
1092
+ }[] | undefined;
1062
1093
  apiKeys?: {
1063
1094
  enabled: boolean;
1064
1095
  endpoint: string;
1065
1096
  } | {
1066
1097
  enabled: boolean;
1067
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1068
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1069
- 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;
1070
1101
  updateKeyDescription?: ((apiKey: {
1071
1102
  id: string;
1072
1103
  description: string;
1073
- }, context: ZudokuContext) => Promise<void>) | undefined;
1104
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1074
1105
  createKey?: ((apiKey: {
1075
1106
  description: string;
1076
1107
  expiresOn?: string;
1077
- }, context: ZudokuContext) => Promise<void>) | undefined;
1108
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1078
1109
  } | undefined;
1079
1110
  redirects?: {
1080
1111
  from: string;
1081
1112
  to: string;
1082
1113
  }[] | undefined;
1083
- customPages?: {
1084
- path: string;
1085
- element?: NonNullable<ReactNode> | undefined;
1086
- render?: ComponentType<ExposedComponentProps> | undefined;
1087
- prose?: boolean | undefined;
1088
- }[] | undefined;
1089
1114
  sitemap?: {
1090
1115
  siteUrl: string;
1091
1116
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1094,10 +1119,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1094
1119
  autoLastmod?: boolean | undefined;
1095
1120
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1096
1121
  } | undefined;
1097
- build?: {
1098
- remarkPlugins?: Options["remarkPlugins"];
1099
- rehypePlugins?: Options["rehypePlugins"];
1100
- } | undefined;
1101
1122
  }, {
1102
1123
  plugins?: ZudokuPlugin[] | undefined;
1103
1124
  search?: {
@@ -1108,35 +1129,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1108
1129
  primaryBrandColor: string;
1109
1130
  organizationDisplayName: string;
1110
1131
  } | undefined;
1111
- basePath?: string | undefined;
1112
- page?: {
1113
- pageTitle?: string | undefined;
1114
- logoUrl?: string | undefined;
1115
- logo?: {
1116
- src: {
1117
- light: string;
1118
- dark: string;
1119
- };
1120
- alt?: string | undefined;
1121
- width?: string | undefined;
1122
- } | undefined;
1123
- banner?: {
1124
- message: NonNullable<ReactNode>;
1125
- color?: BannerColorType;
1126
- dismissible?: boolean | undefined;
1127
- } | 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;
1128
1144
  } | undefined;
1129
- topNavigation?: {
1130
- id: string;
1131
- label: string;
1132
- default?: string | undefined;
1133
- display?: "auth" | "anon" | "always" | undefined;
1134
- }[] | undefined;
1135
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1136
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1137
1145
  theme?: {
1138
- light?: {
1146
+ dark?: {
1139
1147
  input?: string | undefined;
1148
+ radius?: string | undefined;
1149
+ border?: string | undefined;
1140
1150
  background?: string | undefined;
1141
1151
  foreground?: string | undefined;
1142
1152
  card?: string | undefined;
@@ -1153,12 +1163,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1153
1163
  accentForeground?: string | undefined;
1154
1164
  destructive?: string | undefined;
1155
1165
  destructiveForeground?: string | undefined;
1156
- border?: string | undefined;
1157
1166
  ring?: string | undefined;
1158
- radius?: string | undefined;
1159
1167
  } | undefined;
1160
- dark?: {
1168
+ light?: {
1161
1169
  input?: string | undefined;
1170
+ radius?: string | undefined;
1171
+ border?: string | undefined;
1162
1172
  background?: string | undefined;
1163
1173
  foreground?: string | undefined;
1164
1174
  card?: string | undefined;
@@ -1175,27 +1185,48 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1175
1185
  accentForeground?: string | undefined;
1176
1186
  destructive?: string | undefined;
1177
1187
  destructiveForeground?: string | undefined;
1178
- border?: string | undefined;
1179
1188
  ring?: string | undefined;
1180
- radius?: string | undefined;
1181
1189
  } | undefined;
1182
1190
  } | undefined;
1183
- metadata?: {
1184
- description?: string | undefined;
1185
- title?: string | undefined;
1186
- logo?: string | undefined;
1187
- favicon?: string | undefined;
1188
- generator?: string | undefined;
1189
- applicationName?: string | undefined;
1190
- referrer?: string | undefined;
1191
- keywords?: string[] | undefined;
1192
- authors?: string[] | undefined;
1193
- creator?: string | undefined;
1194
- publisher?: string | undefined;
1195
- } | undefined;
1196
1191
  mdx?: {
1197
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1192
+ components?: MdxComponentsType;
1198
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"];
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;
1199
1230
  authentication?: {
1200
1231
  type: "clerk";
1201
1232
  clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
@@ -1237,62 +1268,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1237
1268
  type: "url";
1238
1269
  input: string;
1239
1270
  server?: string | undefined;
1271
+ id?: string | undefined;
1240
1272
  navigationId?: string | undefined;
1273
+ categories?: {
1274
+ tags: string[];
1275
+ label: string;
1276
+ }[] | undefined;
1241
1277
  } | {
1242
1278
  type: "file";
1243
1279
  input: string;
1244
1280
  server?: string | undefined;
1281
+ id?: string | undefined;
1245
1282
  navigationId?: string | undefined;
1283
+ categories?: {
1284
+ tags: string[];
1285
+ label: string;
1286
+ }[] | undefined;
1246
1287
  postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1247
1288
  } | {
1248
1289
  type: "raw";
1249
1290
  input: string;
1250
1291
  server?: string | undefined;
1292
+ id?: string | undefined;
1251
1293
  navigationId?: string | undefined;
1294
+ categories?: {
1295
+ tags: string[];
1296
+ label: string;
1297
+ }[] | undefined;
1252
1298
  } | ({
1253
1299
  type: "url";
1254
1300
  input: string;
1255
1301
  server?: string | undefined;
1302
+ id?: string | undefined;
1256
1303
  navigationId?: string | undefined;
1304
+ categories?: {
1305
+ tags: string[];
1306
+ label: string;
1307
+ }[] | undefined;
1257
1308
  } | {
1258
1309
  type: "file";
1259
1310
  input: string;
1260
1311
  server?: string | undefined;
1312
+ id?: string | undefined;
1261
1313
  navigationId?: string | undefined;
1314
+ categories?: {
1315
+ tags: string[];
1316
+ label: string;
1317
+ }[] | undefined;
1262
1318
  postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1263
1319
  } | {
1264
1320
  type: "raw";
1265
1321
  input: string;
1266
1322
  server?: string | undefined;
1323
+ id?: string | undefined;
1267
1324
  navigationId?: string | undefined;
1325
+ categories?: {
1326
+ tags: string[];
1327
+ label: string;
1328
+ }[] | undefined;
1268
1329
  })[] | undefined;
1330
+ catalog?: {
1331
+ label: string;
1332
+ navigationId: string;
1333
+ items?: string[] | undefined;
1334
+ } | {
1335
+ label: string;
1336
+ navigationId: string;
1337
+ items?: string[] | undefined;
1338
+ }[] | undefined;
1269
1339
  apiKeys?: {
1270
1340
  enabled: boolean;
1271
1341
  endpoint: string;
1272
1342
  } | {
1273
1343
  enabled: boolean;
1274
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1275
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1276
- 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;
1277
1347
  updateKeyDescription?: ((apiKey: {
1278
1348
  id: string;
1279
1349
  description: string;
1280
- }, context: ZudokuContext) => Promise<void>) | undefined;
1350
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1281
1351
  createKey?: ((apiKey: {
1282
1352
  description: string;
1283
1353
  expiresOn?: string;
1284
- }, context: ZudokuContext) => Promise<void>) | undefined;
1354
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1285
1355
  } | undefined;
1286
1356
  redirects?: {
1287
1357
  from: string;
1288
1358
  to: string;
1289
1359
  }[] | undefined;
1290
- customPages?: {
1291
- path: string;
1292
- element?: NonNullable<ReactNode> | undefined;
1293
- render?: ComponentType<ExposedComponentProps> | undefined;
1294
- prose?: boolean | undefined;
1295
- }[] | undefined;
1296
1360
  sitemap?: {
1297
1361
  siteUrl: string;
1298
1362
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1301,10 +1365,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1301
1365
  autoLastmod?: boolean | undefined;
1302
1366
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1303
1367
  } | undefined;
1304
- build?: {
1305
- remarkPlugins?: Options["remarkPlugins"];
1306
- rehypePlugins?: Options["rehypePlugins"];
1307
- } | undefined;
1308
1368
  }>, {
1309
1369
  plugins?: ZudokuPlugin[] | undefined;
1310
1370
  search?: {
@@ -1315,35 +1375,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1315
1375
  primaryBrandColor: string;
1316
1376
  organizationDisplayName: string;
1317
1377
  } | undefined;
1318
- basePath?: string | undefined;
1319
- page?: {
1320
- pageTitle?: string | undefined;
1321
- logoUrl?: string | undefined;
1322
- logo?: {
1323
- src: {
1324
- light: string;
1325
- dark: string;
1326
- };
1327
- alt?: string | undefined;
1328
- width?: string | undefined;
1329
- } | undefined;
1330
- banner?: {
1331
- message: NonNullable<ReactNode>;
1332
- color?: BannerColorType;
1333
- dismissible?: boolean | undefined;
1334
- } | 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;
1335
1390
  } | undefined;
1336
- topNavigation?: {
1337
- id: string;
1338
- label: string;
1339
- default?: string | undefined;
1340
- display?: "auth" | "anon" | "always" | undefined;
1341
- }[] | undefined;
1342
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1343
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1344
1391
  theme?: {
1345
- light?: {
1392
+ dark?: {
1346
1393
  input?: string | undefined;
1394
+ radius?: string | undefined;
1395
+ border?: string | undefined;
1347
1396
  background?: string | undefined;
1348
1397
  foreground?: string | undefined;
1349
1398
  card?: string | undefined;
@@ -1360,12 +1409,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1360
1409
  accentForeground?: string | undefined;
1361
1410
  destructive?: string | undefined;
1362
1411
  destructiveForeground?: string | undefined;
1363
- border?: string | undefined;
1364
1412
  ring?: string | undefined;
1365
- radius?: string | undefined;
1366
1413
  } | undefined;
1367
- dark?: {
1414
+ light?: {
1368
1415
  input?: string | undefined;
1416
+ radius?: string | undefined;
1417
+ border?: string | undefined;
1369
1418
  background?: string | undefined;
1370
1419
  foreground?: string | undefined;
1371
1420
  card?: string | undefined;
@@ -1382,27 +1431,48 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1382
1431
  accentForeground?: string | undefined;
1383
1432
  destructive?: string | undefined;
1384
1433
  destructiveForeground?: string | undefined;
1385
- border?: string | undefined;
1386
1434
  ring?: string | undefined;
1387
- radius?: string | undefined;
1388
1435
  } | undefined;
1389
1436
  } | undefined;
1390
- metadata?: {
1391
- description?: string | undefined;
1392
- title?: string | undefined;
1393
- logo?: string | undefined;
1394
- favicon?: string | undefined;
1395
- generator?: string | undefined;
1396
- applicationName?: string | undefined;
1397
- referrer?: string | undefined;
1398
- keywords?: string[] | undefined;
1399
- authors?: string[] | undefined;
1400
- creator?: string | undefined;
1401
- publisher?: string | undefined;
1402
- } | undefined;
1403
1437
  mdx?: {
1404
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1438
+ components?: MdxComponentsType;
1405
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"];
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;
1406
1476
  authentication?: {
1407
1477
  type: "clerk";
1408
1478
  clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
@@ -1444,62 +1514,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1444
1514
  type: "url";
1445
1515
  input: string;
1446
1516
  server?: string | undefined;
1517
+ id?: string | undefined;
1447
1518
  navigationId?: string | undefined;
1519
+ categories?: {
1520
+ tags: string[];
1521
+ label: string;
1522
+ }[] | undefined;
1448
1523
  } | {
1449
1524
  type: "file";
1450
1525
  input: string;
1451
1526
  server?: string | undefined;
1527
+ id?: string | undefined;
1452
1528
  navigationId?: string | undefined;
1529
+ categories?: {
1530
+ tags: string[];
1531
+ label: string;
1532
+ }[] | undefined;
1453
1533
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1454
1534
  } | {
1455
1535
  type: "raw";
1456
1536
  input: string;
1457
1537
  server?: string | undefined;
1538
+ id?: string | undefined;
1458
1539
  navigationId?: string | undefined;
1540
+ categories?: {
1541
+ tags: string[];
1542
+ label: string;
1543
+ }[] | undefined;
1459
1544
  } | ({
1460
1545
  type: "url";
1461
1546
  input: string;
1462
1547
  server?: string | undefined;
1548
+ id?: string | undefined;
1463
1549
  navigationId?: string | undefined;
1550
+ categories?: {
1551
+ tags: string[];
1552
+ label: string;
1553
+ }[] | undefined;
1464
1554
  } | {
1465
1555
  type: "file";
1466
1556
  input: string;
1467
1557
  server?: string | undefined;
1558
+ id?: string | undefined;
1468
1559
  navigationId?: string | undefined;
1560
+ categories?: {
1561
+ tags: string[];
1562
+ label: string;
1563
+ }[] | undefined;
1469
1564
  postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1470
1565
  } | {
1471
1566
  type: "raw";
1472
1567
  input: string;
1473
1568
  server?: string | undefined;
1569
+ id?: string | undefined;
1474
1570
  navigationId?: string | undefined;
1571
+ categories?: {
1572
+ tags: string[];
1573
+ label: string;
1574
+ }[] | undefined;
1475
1575
  })[] | undefined;
1576
+ catalog?: {
1577
+ label: string;
1578
+ navigationId: string;
1579
+ items?: string[] | undefined;
1580
+ } | {
1581
+ label: string;
1582
+ navigationId: string;
1583
+ items?: string[] | undefined;
1584
+ }[] | undefined;
1476
1585
  apiKeys?: {
1477
1586
  enabled: boolean;
1478
1587
  endpoint: string;
1479
1588
  } | {
1480
1589
  enabled: boolean;
1481
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1482
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1483
- 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;
1484
1593
  updateKeyDescription?: ((apiKey: {
1485
1594
  id: string;
1486
1595
  description: string;
1487
- }, context: ZudokuContext) => Promise<void>) | undefined;
1596
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1488
1597
  createKey?: ((apiKey: {
1489
1598
  description: string;
1490
1599
  expiresOn?: string;
1491
- }, context: ZudokuContext) => Promise<void>) | undefined;
1600
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1492
1601
  } | undefined;
1493
1602
  redirects?: {
1494
1603
  from: string;
1495
1604
  to: string;
1496
1605
  }[] | undefined;
1497
- customPages?: {
1498
- path: string;
1499
- element?: NonNullable<ReactNode> | undefined;
1500
- render?: ComponentType<ExposedComponentProps> | undefined;
1501
- prose?: boolean | undefined;
1502
- }[] | undefined;
1503
1606
  sitemap?: {
1504
1607
  siteUrl: string;
1505
1608
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1508,10 +1611,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1508
1611
  autoLastmod?: boolean | undefined;
1509
1612
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1510
1613
  } | undefined;
1511
- build?: {
1512
- remarkPlugins?: Options["remarkPlugins"];
1513
- rehypePlugins?: Options["rehypePlugins"];
1514
- } | undefined;
1515
1614
  }, {
1516
1615
  plugins?: ZudokuPlugin[] | undefined;
1517
1616
  search?: {
@@ -1522,35 +1621,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1522
1621
  primaryBrandColor: string;
1523
1622
  organizationDisplayName: string;
1524
1623
  } | undefined;
1525
- basePath?: string | undefined;
1526
- page?: {
1527
- pageTitle?: string | undefined;
1528
- logoUrl?: string | undefined;
1529
- logo?: {
1530
- src: {
1531
- light: string;
1532
- dark: string;
1533
- };
1534
- alt?: string | undefined;
1535
- width?: string | undefined;
1536
- } | undefined;
1537
- banner?: {
1538
- message: NonNullable<ReactNode>;
1539
- color?: BannerColorType;
1540
- dismissible?: boolean | undefined;
1541
- } | 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;
1542
1636
  } | undefined;
1543
- topNavigation?: {
1544
- id: string;
1545
- label: string;
1546
- default?: string | undefined;
1547
- display?: "auth" | "anon" | "always" | undefined;
1548
- }[] | undefined;
1549
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1550
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1551
1637
  theme?: {
1552
- light?: {
1638
+ dark?: {
1553
1639
  input?: string | undefined;
1640
+ radius?: string | undefined;
1641
+ border?: string | undefined;
1554
1642
  background?: string | undefined;
1555
1643
  foreground?: string | undefined;
1556
1644
  card?: string | undefined;
@@ -1567,12 +1655,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1567
1655
  accentForeground?: string | undefined;
1568
1656
  destructive?: string | undefined;
1569
1657
  destructiveForeground?: string | undefined;
1570
- border?: string | undefined;
1571
1658
  ring?: string | undefined;
1572
- radius?: string | undefined;
1573
1659
  } | undefined;
1574
- dark?: {
1660
+ light?: {
1575
1661
  input?: string | undefined;
1662
+ radius?: string | undefined;
1663
+ border?: string | undefined;
1576
1664
  background?: string | undefined;
1577
1665
  foreground?: string | undefined;
1578
1666
  card?: string | undefined;
@@ -1589,27 +1677,48 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1589
1677
  accentForeground?: string | undefined;
1590
1678
  destructive?: string | undefined;
1591
1679
  destructiveForeground?: string | undefined;
1592
- border?: string | undefined;
1593
1680
  ring?: string | undefined;
1594
- radius?: string | undefined;
1595
1681
  } | undefined;
1596
1682
  } | undefined;
1597
- metadata?: {
1598
- description?: string | undefined;
1599
- title?: string | undefined;
1600
- logo?: string | undefined;
1601
- favicon?: string | undefined;
1602
- generator?: string | undefined;
1603
- applicationName?: string | undefined;
1604
- referrer?: string | undefined;
1605
- keywords?: string[] | undefined;
1606
- authors?: string[] | undefined;
1607
- creator?: string | undefined;
1608
- publisher?: string | undefined;
1609
- } | undefined;
1610
1683
  mdx?: {
1611
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
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;
1612
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;
1613
1722
  authentication?: {
1614
1723
  type: "clerk";
1615
1724
  clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
@@ -1651,62 +1760,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1651
1760
  type: "url";
1652
1761
  input: string;
1653
1762
  server?: string | undefined;
1763
+ id?: string | undefined;
1654
1764
  navigationId?: string | undefined;
1765
+ categories?: {
1766
+ tags: string[];
1767
+ label: string;
1768
+ }[] | undefined;
1655
1769
  } | {
1656
1770
  type: "file";
1657
1771
  input: string;
1658
1772
  server?: string | undefined;
1773
+ id?: string | undefined;
1659
1774
  navigationId?: string | undefined;
1775
+ categories?: {
1776
+ tags: string[];
1777
+ label: string;
1778
+ }[] | undefined;
1660
1779
  postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1661
1780
  } | {
1662
1781
  type: "raw";
1663
1782
  input: string;
1664
1783
  server?: string | undefined;
1784
+ id?: string | undefined;
1665
1785
  navigationId?: string | undefined;
1786
+ categories?: {
1787
+ tags: string[];
1788
+ label: string;
1789
+ }[] | undefined;
1666
1790
  } | ({
1667
1791
  type: "url";
1668
1792
  input: string;
1669
1793
  server?: string | undefined;
1794
+ id?: string | undefined;
1670
1795
  navigationId?: string | undefined;
1796
+ categories?: {
1797
+ tags: string[];
1798
+ label: string;
1799
+ }[] | undefined;
1671
1800
  } | {
1672
1801
  type: "file";
1673
1802
  input: string;
1674
1803
  server?: string | undefined;
1804
+ id?: string | undefined;
1675
1805
  navigationId?: string | undefined;
1806
+ categories?: {
1807
+ tags: string[];
1808
+ label: string;
1809
+ }[] | undefined;
1676
1810
  postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1677
1811
  } | {
1678
1812
  type: "raw";
1679
1813
  input: string;
1680
1814
  server?: string | undefined;
1815
+ id?: string | undefined;
1681
1816
  navigationId?: string | undefined;
1817
+ categories?: {
1818
+ tags: string[];
1819
+ label: string;
1820
+ }[] | undefined;
1682
1821
  })[] | undefined;
1822
+ catalog?: {
1823
+ label: string;
1824
+ navigationId: string;
1825
+ items?: string[] | undefined;
1826
+ } | {
1827
+ label: string;
1828
+ navigationId: string;
1829
+ items?: string[] | undefined;
1830
+ }[] | undefined;
1683
1831
  apiKeys?: {
1684
1832
  enabled: boolean;
1685
1833
  endpoint: string;
1686
1834
  } | {
1687
1835
  enabled: boolean;
1688
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1689
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1690
- 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;
1691
1839
  updateKeyDescription?: ((apiKey: {
1692
1840
  id: string;
1693
1841
  description: string;
1694
- }, context: ZudokuContext) => Promise<void>) | undefined;
1842
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1695
1843
  createKey?: ((apiKey: {
1696
1844
  description: string;
1697
1845
  expiresOn?: string;
1698
- }, context: ZudokuContext) => Promise<void>) | undefined;
1846
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1699
1847
  } | undefined;
1700
1848
  redirects?: {
1701
1849
  from: string;
1702
1850
  to: string;
1703
1851
  }[] | undefined;
1704
- customPages?: {
1705
- path: string;
1706
- element?: NonNullable<ReactNode> | undefined;
1707
- render?: ComponentType<ExposedComponentProps> | undefined;
1708
- prose?: boolean | undefined;
1709
- }[] | undefined;
1710
1852
  sitemap?: {
1711
1853
  siteUrl: string;
1712
1854
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1715,16 +1857,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1715
1857
  autoLastmod?: boolean | undefined;
1716
1858
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1717
1859
  } | undefined;
1718
- build?: {
1719
- remarkPlugins?: Options["remarkPlugins"];
1720
- rehypePlugins?: Options["rehypePlugins"];
1721
- } | undefined;
1722
1860
  }>;
1723
- export type ZudokuApiConfig = z.infer<typeof ApiSchema>;
1861
+ /**
1862
+ * Type for the zudoku.config.{js,ts,tsx,jsx} files
1863
+ */
1724
1864
  export type ZudokuConfig = z.infer<typeof ConfigSchema>;
1725
- export type ZudokuSiteMapConfig = z.infer<typeof SiteMapSchema>;
1726
- export type ZudokuDocsConfig = z.infer<typeof DocsConfigSchema>;
1727
- export type TopNavigationItem = z.infer<typeof TopNavigationItemSchema>;
1728
- export type ZudokuRedirect = z.infer<typeof Redirect>;
1729
1865
  export declare function validateConfig(config: unknown): void;
1730
1866
  export {};