zudoku 0.0.0-fb7d300 → 0.0.0-fc5c03b

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 (267) hide show
  1. package/client.d.ts +7 -0
  2. package/dist/app/entry.client.d.ts +1 -0
  3. package/dist/app/entry.client.js +13 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.d.ts +1 -0
  6. package/dist/app/entry.server.js +1 -0
  7. package/dist/app/entry.server.js.map +1 -1
  8. package/dist/app/main.js +2 -1
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/sentry.d.ts +3 -0
  11. package/dist/app/sentry.js +19 -0
  12. package/dist/app/sentry.js.map +1 -0
  13. package/dist/app/tailwind.d.ts +2 -1
  14. package/dist/app/tailwind.js +64 -52
  15. package/dist/app/tailwind.js.map +1 -1
  16. package/dist/cli/cli.js +0 -2
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/common/logger.js +9 -0
  19. package/dist/cli/common/logger.js.map +1 -1
  20. package/dist/cli/common/outdated.js +2 -1
  21. package/dist/cli/common/outdated.js.map +1 -1
  22. package/dist/config/common.d.ts +8 -0
  23. package/dist/config/common.js +2 -0
  24. package/dist/config/common.js.map +1 -0
  25. package/dist/config/config.d.ts +3 -2
  26. package/dist/config/loader.d.ts +20 -0
  27. package/dist/config/loader.js +154 -0
  28. package/dist/config/loader.js.map +1 -0
  29. package/dist/config/validators/InputSidebarSchema.d.ts +14 -13
  30. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  31. package/dist/config/validators/common.d.ts +4911 -0
  32. package/dist/config/validators/common.js +276 -0
  33. package/dist/config/validators/common.js.map +1 -0
  34. package/dist/config/validators/icon-types.d.ts +1 -0
  35. package/dist/config/validators/icon-types.js +2 -0
  36. package/dist/config/validators/icon-types.js.map +1 -0
  37. package/dist/config/validators/validate.d.ts +777 -521
  38. package/dist/config/validators/validate.js +9 -228
  39. package/dist/config/validators/validate.js.map +1 -1
  40. package/dist/lib/authentication/providers/openid.js +7 -2
  41. package/dist/lib/authentication/providers/openid.js.map +1 -1
  42. package/dist/lib/components/Heading.d.ts +4 -4
  43. package/dist/lib/components/Heading.js +1 -1
  44. package/dist/lib/components/Heading.js.map +1 -1
  45. package/dist/lib/components/Layout.js +3 -2
  46. package/dist/lib/components/Layout.js.map +1 -1
  47. package/dist/lib/components/Markdown.js +1 -1
  48. package/dist/lib/components/Markdown.js.map +1 -1
  49. package/dist/lib/components/MobileTopNavigation.js +1 -1
  50. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  51. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  52. package/dist/lib/components/ReactMarkdown.js +182 -0
  53. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  54. package/dist/lib/components/Search.d.ts +3 -1
  55. package/dist/lib/components/Search.js +3 -3
  56. package/dist/lib/components/Search.js.map +1 -1
  57. package/dist/lib/components/SyntaxHighlight.js +0 -4
  58. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  59. package/dist/lib/components/TopNavigation.d.ts +1 -1
  60. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  61. package/dist/lib/components/navigation/Sidebar.js +2 -2
  62. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  63. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  64. package/dist/lib/components/navigation/SidebarCategory.js +3 -4
  65. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  66. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  67. package/dist/lib/components/navigation/SidebarItem.js +5 -10
  68. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  69. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  70. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  71. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  72. package/dist/lib/oas/graphql/index.js +4 -1
  73. package/dist/lib/oas/graphql/index.js.map +1 -1
  74. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  75. package/dist/lib/oas/parser/upgrade/index.js +3 -20
  76. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  77. package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
  78. package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
  79. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  80. package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
  81. package/dist/lib/plugins/api-catalog/index.js +15 -0
  82. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  83. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  84. package/dist/lib/plugins/markdown/MdxPage.js +15 -2
  85. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  86. package/dist/lib/plugins/markdown/index.d.ts +2 -1
  87. package/dist/lib/plugins/markdown/index.js +1 -1
  88. package/dist/lib/plugins/markdown/index.js.map +1 -1
  89. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  90. package/dist/lib/plugins/openapi/OperationList.js +47 -2
  91. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  92. package/dist/lib/plugins/openapi/client/GraphQLClient.js +12 -0
  93. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  94. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
  95. package/dist/lib/plugins/openapi/client/useCreateQuery.js +4 -2
  96. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  97. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  98. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  99. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  100. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
  101. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  102. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  103. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  104. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  105. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  106. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
  107. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
  108. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  109. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  110. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
  111. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  112. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  113. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  114. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  115. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  116. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  117. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  118. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  119. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  120. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  121. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  122. package/dist/lib/ui/Button.d.ts +1 -1
  123. package/dist/lib/ui/Command.d.ts +1 -1
  124. package/dist/lib/util/MdxComponents.d.ts +2 -3
  125. package/dist/lib/util/MdxComponents.js.map +1 -1
  126. package/dist/lib/util/traverse.d.ts +2 -0
  127. package/dist/lib/util/traverse.js +18 -0
  128. package/dist/lib/util/traverse.js.map +1 -0
  129. package/dist/vite/build.js +15 -3
  130. package/dist/vite/build.js.map +1 -1
  131. package/dist/vite/config.d.ts +6 -4
  132. package/dist/vite/config.js +54 -15
  133. package/dist/vite/config.js.map +1 -1
  134. package/dist/vite/config.test.js +7 -5
  135. package/dist/vite/config.test.js.map +1 -1
  136. package/dist/vite/dev-server.js +12 -3
  137. package/dist/vite/dev-server.js.map +1 -1
  138. package/dist/vite/output.d.ts +1 -1
  139. package/dist/vite/output.js +39 -10
  140. package/dist/vite/output.js.map +1 -1
  141. package/dist/vite/plugin-api.js +67 -20
  142. package/dist/vite/plugin-api.js.map +1 -1
  143. package/dist/vite/plugin-component.js +15 -19
  144. package/dist/vite/plugin-component.js.map +1 -1
  145. package/dist/vite/plugin-config-reload.d.ts +1 -2
  146. package/dist/vite/plugin-config-reload.js.map +1 -1
  147. package/dist/vite/plugin-config.js +20 -0
  148. package/dist/vite/plugin-config.js.map +1 -1
  149. package/dist/vite/plugin-docs.test.js +15 -23
  150. package/dist/vite/plugin-docs.test.js.map +1 -1
  151. package/dist/vite/plugin-mdx.js +58 -4
  152. package/dist/vite/plugin-mdx.js.map +1 -1
  153. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  154. package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
  155. package/dist/vite/plugin-theme-css.js.map +1 -0
  156. package/dist/vite/plugin.d.ts +1 -2
  157. package/dist/vite/plugin.js +2 -2
  158. package/dist/vite/plugin.js.map +1 -1
  159. package/dist/vite/prerender.d.ts +2 -1
  160. package/dist/vite/prerender.js +2 -2
  161. package/dist/vite/prerender.js.map +1 -1
  162. package/dist/vite/sitemap.d.ts +1 -1
  163. package/dist/zuplo/env.d.ts +6 -0
  164. package/dist/zuplo/env.js +9 -0
  165. package/dist/zuplo/env.js.map +1 -0
  166. package/dist/zuplo/with-zuplo.d.ts +3 -0
  167. package/dist/zuplo/with-zuplo.js +28 -0
  168. package/dist/zuplo/with-zuplo.js.map +1 -0
  169. package/lib/AnchorLink-BR0MvI7n.js +35 -0
  170. package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
  171. package/lib/{Markdown-ievDDhFT.js → Markdown-CRsmPPfY.js} +13084 -13096
  172. package/lib/Markdown-CRsmPPfY.js.map +1 -0
  173. package/lib/MdxPage-Wp8QU0-q.js +188 -0
  174. package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
  175. package/lib/{OperationList-BwBl1xrD.js → OperationList-u8xHU9-b.js} +1031 -1016
  176. package/lib/OperationList-u8xHU9-b.js.map +1 -0
  177. package/lib/{SlotletProvider-DyomlzGx.js → SlotletProvider-BgvYIPQe.js} +2 -2
  178. package/lib/{SlotletProvider-DyomlzGx.js.map → SlotletProvider-BgvYIPQe.js.map} +1 -1
  179. package/lib/{SyntaxHighlight-DkLOsjHS.js → SyntaxHighlight-C31iouiO.js} +1 -3
  180. package/lib/{SyntaxHighlight-DkLOsjHS.js.map → SyntaxHighlight-C31iouiO.js.map} +1 -1
  181. package/lib/assets/{worker-CPsGZsve.js → worker-C_2va8B8.js} +8 -9
  182. package/lib/assets/worker-C_2va8B8.js.map +1 -0
  183. package/lib/{createServer-DK-g7kbB.js → createServer-BCAHdrpE.js} +4461 -5248
  184. package/lib/createServer-BCAHdrpE.js.map +1 -0
  185. package/lib/{index-DNxQ_rCt.js → index-CmdLGbbk.js} +53 -47
  186. package/lib/index-CmdLGbbk.js.map +1 -0
  187. package/lib/{AnchorLink-CDlhr8gL.js → index.esm-Bm8pj-bc.js} +223 -254
  188. package/lib/index.esm-Bm8pj-bc.js.map +1 -0
  189. package/lib/object_hash-CvlLgU-M.js +785 -0
  190. package/lib/object_hash-CvlLgU-M.js.map +1 -0
  191. package/lib/post-processors/removeExtensions.js +11 -0
  192. package/lib/post-processors/removeExtensions.js.map +1 -0
  193. package/lib/post-processors/removePaths.js +28 -0
  194. package/lib/post-processors/removePaths.js.map +1 -0
  195. package/lib/post-processors/traverse.js +12 -0
  196. package/lib/post-processors/traverse.js.map +1 -0
  197. package/lib/ui/Drawer.js +79 -79
  198. package/lib/ui/Drawer.js.map +1 -1
  199. package/lib/zudoku.auth-openid.js +42 -37
  200. package/lib/zudoku.auth-openid.js.map +1 -1
  201. package/lib/zudoku.components.js +386 -367
  202. package/lib/zudoku.components.js.map +1 -1
  203. package/lib/zudoku.openapi-worker.js +1 -1
  204. package/lib/zudoku.plugin-api-catalog.js +121 -0
  205. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  206. package/lib/zudoku.plugin-api-keys.js +1 -1
  207. package/lib/zudoku.plugin-custom-pages.js +1 -1
  208. package/lib/zudoku.plugin-markdown.js +15 -14
  209. package/lib/zudoku.plugin-markdown.js.map +1 -1
  210. package/lib/zudoku.plugin-openapi.js +1 -1
  211. package/lib/zudoku.plugin-redirect.js.map +1 -1
  212. package/package.json +32 -9
  213. package/src/app/entry.client.tsx +15 -0
  214. package/src/app/entry.server.tsx +1 -0
  215. package/src/app/main.tsx +5 -1
  216. package/src/app/sentry.ts +24 -0
  217. package/src/app/tailwind.ts +67 -52
  218. package/src/lib/authentication/providers/openid.tsx +7 -2
  219. package/src/lib/components/Heading.tsx +13 -13
  220. package/src/lib/components/Layout.tsx +8 -3
  221. package/src/lib/components/Markdown.tsx +1 -1
  222. package/src/lib/components/MobileTopNavigation.tsx +18 -18
  223. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  224. package/src/lib/components/ReactMarkdown.tsx +264 -0
  225. package/src/lib/components/Search.tsx +3 -3
  226. package/src/lib/components/SyntaxHighlight.tsx +0 -4
  227. package/src/lib/components/TopNavigation.tsx +1 -1
  228. package/src/lib/components/navigation/Sidebar.tsx +18 -8
  229. package/src/lib/components/navigation/SidebarCategory.tsx +10 -9
  230. package/src/lib/components/navigation/SidebarItem.tsx +10 -13
  231. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  232. package/src/lib/core/ZudokuContext.ts +1 -1
  233. package/src/lib/oas/graphql/index.ts +4 -1
  234. package/src/lib/oas/parser/upgrade/index.ts +4 -27
  235. package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
  236. package/src/lib/plugins/api-catalog/index.tsx +50 -0
  237. package/src/lib/plugins/markdown/MdxPage.tsx +27 -1
  238. package/src/lib/plugins/markdown/index.tsx +3 -1
  239. package/src/lib/plugins/markdown/resolver.ts +2 -4
  240. package/src/lib/plugins/openapi/OperationList.tsx +64 -3
  241. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +17 -0
  242. package/src/lib/plugins/openapi/client/useCreateQuery.ts +5 -2
  243. package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
  244. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  245. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  246. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
  247. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
  248. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
  249. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  250. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  251. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  252. package/src/lib/plugins/redirect/index.tsx +1 -1
  253. package/src/lib/util/MdxComponents.tsx +2 -5
  254. package/src/lib/util/traverse.ts +25 -0
  255. package/dist/vite/plugin-custom-css.js.map +0 -1
  256. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  257. package/lib/Markdown-ievDDhFT.js.map +0 -1
  258. package/lib/MdxPage-Bwn-VSsH.js +0 -174
  259. package/lib/MdxPage-Bwn-VSsH.js.map +0 -1
  260. package/lib/OperationList-BwBl1xrD.js.map +0 -1
  261. package/lib/assets/worker-CPsGZsve.js.map +0 -1
  262. package/lib/createServer-DK-g7kbB.js.map +0 -1
  263. package/lib/index-DNxQ_rCt.js.map +0 -1
  264. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  265. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  266. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  267. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
@@ -1,155 +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<{
25
- type: z.ZodLiteral<"file">;
26
- input: z.ZodString;
27
- }, {
28
- server: z.ZodOptional<z.ZodString>;
29
- navigationId: z.ZodOptional<z.ZodString>;
30
- }>, "strip", z.ZodTypeAny, {
31
- type: "file";
32
- input: string;
33
- server?: string | undefined;
34
- navigationId?: string | undefined;
35
- }, {
36
- type: "file";
37
- input: string;
38
- server?: string | undefined;
39
- navigationId?: string | undefined;
40
- }>, z.ZodObject<z.objectUtil.extendShape<{
41
- type: z.ZodLiteral<"raw">;
42
- input: z.ZodString;
43
- }, {
44
- server: z.ZodOptional<z.ZodString>;
45
- navigationId: z.ZodOptional<z.ZodString>;
46
- }>, "strip", z.ZodTypeAny, {
47
- type: "raw";
48
- input: string;
49
- server?: string | undefined;
50
- navigationId?: string | undefined;
51
- }, {
52
- type: "raw";
53
- input: string;
54
- server?: string | undefined;
55
- navigationId?: string | undefined;
56
- }>]>;
57
- declare const SiteMapSchema: z.ZodOptional<z.ZodObject<{
58
- /**
59
- * Base url of your website
60
- */
61
- siteUrl: z.ZodString;
62
- /**
63
- * Change frequency.
64
- * @default 'daily'
65
- */
66
- changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
67
- /**
68
- * Priority
69
- * @default 0.7
70
- */
71
- priority: z.ZodOptional<z.ZodNumber>;
72
- outDir: z.ZodOptional<z.ZodString>;
73
- /**
74
- * Add <lastmod/> property.
75
- * @default true
76
- */
77
- autoLastmod: z.ZodOptional<z.ZodBoolean>;
78
- /**
79
- * Array of relative paths to exclude from listing on sitemap.xml or sitemap-*.xml.
80
- * @example ['/page-0', '/page/example']
81
- */
82
- exclude: z.ZodOptional<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodString, "many">>>, z.ZodArray<z.ZodString, "many">]>>;
83
- }, "strip", z.ZodTypeAny, {
84
- siteUrl: string;
85
- changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
86
- priority?: number | undefined;
87
- outDir?: string | undefined;
88
- autoLastmod?: boolean | undefined;
89
- exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
90
- }, {
91
- siteUrl: string;
92
- changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
93
- priority?: number | undefined;
94
- outDir?: string | undefined;
95
- autoLastmod?: boolean | undefined;
96
- exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
97
- }>>;
98
- declare const DocsConfigSchema: z.ZodObject<{
99
- files: z.ZodString;
100
- defaultOptions: z.ZodOptional<z.ZodObject<{
101
- toc: z.ZodOptional<z.ZodBoolean>;
102
- disablePager: z.ZodOptional<z.ZodBoolean>;
103
- }, "strip", z.ZodTypeAny, {
104
- toc?: boolean | undefined;
105
- disablePager?: boolean | undefined;
106
- }, {
107
- toc?: boolean | undefined;
108
- disablePager?: boolean | undefined;
109
- }>>;
110
- }, "strip", z.ZodTypeAny, {
111
- files: string;
112
- defaultOptions?: {
113
- toc?: boolean | undefined;
114
- disablePager?: boolean | undefined;
115
- } | undefined;
116
- }, {
117
- files: string;
118
- defaultOptions?: {
119
- toc?: boolean | undefined;
120
- disablePager?: boolean | undefined;
121
- } | undefined;
122
- }>;
123
- declare const TopNavigationItemSchema: z.ZodObject<{
124
- label: z.ZodString;
125
- id: z.ZodString;
126
- default: z.ZodOptional<z.ZodString>;
127
- display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
128
- }, "strip", z.ZodTypeAny, {
129
- id: string;
130
- label: string;
131
- default?: string | undefined;
132
- display?: "auth" | "anon" | "always" | undefined;
133
- }, {
134
- id: string;
135
- label: string;
136
- default?: string | undefined;
137
- display?: "auth" | "anon" | "always" | undefined;
138
- }>;
139
- type BannerColorType = ZodOptional<ZodUnion<[
140
- ZodType<"note" | "tip" | "info" | "caution" | "danger" | (string & {}), ZodEnumDef>,
141
- ZodString
142
- ]>>;
143
- declare const Redirect: z.ZodObject<{
144
- from: z.ZodString;
145
- to: z.ZodString;
146
- }, "strip", z.ZodTypeAny, {
147
- from: string;
148
- to: string;
149
- }, {
150
- from: string;
151
- to: string;
152
- }>;
5
+ import type { ZudokuPlugin } from "../../lib/core/plugins.js";
6
+ import { MdxComponentsType } from "../../lib/util/MdxComponents.js";
153
7
  declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
154
8
  basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
155
9
  page: z.ZodOptional<z.ZodObject<{
@@ -160,73 +14,73 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
160
14
  light: z.ZodString;
161
15
  dark: z.ZodString;
162
16
  }, "strip", z.ZodTypeAny, {
163
- light: string;
164
17
  dark: string;
165
- }, {
166
18
  light: string;
19
+ }, {
167
20
  dark: string;
21
+ light: string;
168
22
  }>;
169
23
  alt: z.ZodOptional<z.ZodString>;
170
24
  width: z.ZodOptional<z.ZodString>;
171
25
  }, "strip", z.ZodTypeAny, {
172
26
  src: {
173
- light: string;
174
27
  dark: string;
28
+ light: string;
175
29
  };
176
- alt?: string | undefined;
177
30
  width?: string | undefined;
31
+ alt?: string | undefined;
178
32
  }, {
179
33
  src: {
180
- light: string;
181
34
  dark: string;
35
+ light: string;
182
36
  };
183
- alt?: string | undefined;
184
37
  width?: string | undefined;
38
+ alt?: string | undefined;
185
39
  }>>;
186
- banner: z.ZodOptional<z.ZodOptional<z.ZodObject<{
40
+ banner: z.ZodOptional<z.ZodObject<{
187
41
  message: z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>;
188
- 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]>>;
189
43
  dismissible: z.ZodOptional<z.ZodBoolean>;
190
44
  }, "strip", z.ZodTypeAny, {
191
45
  message: NonNullable<ReactNode>;
192
- 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]>>;
193
47
  dismissible?: boolean | undefined;
194
48
  }, {
195
49
  message: NonNullable<ReactNode>;
196
- 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]>>;
197
51
  dismissible?: boolean | undefined;
198
- }>>>;
52
+ }>>;
199
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;
200
59
  pageTitle?: string | undefined;
201
60
  logoUrl?: string | undefined;
202
61
  logo?: {
203
62
  src: {
204
- light: string;
205
63
  dark: string;
64
+ light: string;
206
65
  };
207
- alt?: string | undefined;
208
66
  width?: string | undefined;
67
+ alt?: string | undefined;
209
68
  } | undefined;
69
+ }, {
210
70
  banner?: {
211
71
  message: NonNullable<ReactNode>;
212
- 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]>>;
213
73
  dismissible?: boolean | undefined;
214
74
  } | undefined;
215
- }, {
216
75
  pageTitle?: string | undefined;
217
76
  logoUrl?: string | undefined;
218
77
  logo?: {
219
78
  src: {
220
- light: string;
221
79
  dark: string;
80
+ light: string;
222
81
  };
223
- alt?: string | undefined;
224
82
  width?: string | undefined;
225
- } | undefined;
226
- banner?: {
227
- message: NonNullable<ReactNode>;
228
- color?: BannerColorType;
229
- dismissible?: boolean | undefined;
83
+ alt?: string | undefined;
230
84
  } | undefined;
231
85
  }>>;
232
86
  topNavigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -246,7 +100,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
246
100
  display?: "auth" | "anon" | "always" | undefined;
247
101
  }>, "many">>;
248
102
  sidebar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("./InputSidebarSchema.js").InputSidebarItem, z.ZodTypeDef, import("./InputSidebarSchema.js").InputSidebarItem>, "many">>>;
249
- UNSAFE_slotlets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ReactNode | ComponentType<ExposedComponentProps>, z.ZodTypeDef, ReactNode | ComponentType<ExposedComponentProps>>>>;
250
103
  theme: z.ZodOptional<z.ZodObject<{
251
104
  light: z.ZodOptional<z.ZodObject<{
252
105
  background: z.ZodOptional<z.ZodString>;
@@ -271,6 +124,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
271
124
  radius: z.ZodOptional<z.ZodString>;
272
125
  }, "strip", z.ZodTypeAny, {
273
126
  input?: string | undefined;
127
+ radius?: string | undefined;
128
+ border?: string | undefined;
274
129
  background?: string | undefined;
275
130
  foreground?: string | undefined;
276
131
  card?: string | undefined;
@@ -287,11 +142,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
287
142
  accentForeground?: string | undefined;
288
143
  destructive?: string | undefined;
289
144
  destructiveForeground?: string | undefined;
290
- border?: string | undefined;
291
145
  ring?: string | undefined;
292
- radius?: string | undefined;
293
146
  }, {
294
147
  input?: string | undefined;
148
+ radius?: string | undefined;
149
+ border?: string | undefined;
295
150
  background?: string | undefined;
296
151
  foreground?: string | undefined;
297
152
  card?: string | undefined;
@@ -308,9 +163,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
308
163
  accentForeground?: string | undefined;
309
164
  destructive?: string | undefined;
310
165
  destructiveForeground?: string | undefined;
311
- border?: string | undefined;
312
166
  ring?: string | undefined;
313
- radius?: string | undefined;
314
167
  }>>;
315
168
  dark: z.ZodOptional<z.ZodObject<{
316
169
  background: z.ZodOptional<z.ZodString>;
@@ -335,6 +188,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
335
188
  radius: z.ZodOptional<z.ZodString>;
336
189
  }, "strip", z.ZodTypeAny, {
337
190
  input?: string | undefined;
191
+ radius?: string | undefined;
192
+ border?: string | undefined;
338
193
  background?: string | undefined;
339
194
  foreground?: string | undefined;
340
195
  card?: string | undefined;
@@ -351,11 +206,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
351
206
  accentForeground?: string | undefined;
352
207
  destructive?: string | undefined;
353
208
  destructiveForeground?: string | undefined;
354
- border?: string | undefined;
355
209
  ring?: string | undefined;
356
- radius?: string | undefined;
357
210
  }, {
358
211
  input?: string | undefined;
212
+ radius?: string | undefined;
213
+ border?: string | undefined;
359
214
  background?: string | undefined;
360
215
  foreground?: string | undefined;
361
216
  card?: string | undefined;
@@ -372,13 +227,53 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
372
227
  accentForeground?: string | undefined;
373
228
  destructive?: string | undefined;
374
229
  destructiveForeground?: string | undefined;
375
- border?: string | undefined;
376
230
  ring?: string | undefined;
377
- radius?: string | undefined;
231
+ }>>;
232
+ fonts: z.ZodOptional<z.ZodObject<{
233
+ sans: z.ZodOptional<z.ZodObject<{
234
+ url: z.ZodString;
235
+ fontFamily: z.ZodString;
236
+ }, "strip", z.ZodTypeAny, {
237
+ url: string;
238
+ fontFamily: string;
239
+ }, {
240
+ url: string;
241
+ fontFamily: string;
242
+ }>>;
243
+ mono: z.ZodOptional<z.ZodObject<{
244
+ url: z.ZodString;
245
+ fontFamily: z.ZodString;
246
+ }, "strip", z.ZodTypeAny, {
247
+ url: string;
248
+ fontFamily: string;
249
+ }, {
250
+ url: string;
251
+ fontFamily: string;
252
+ }>>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ sans?: {
255
+ url: string;
256
+ fontFamily: string;
257
+ } | undefined;
258
+ mono?: {
259
+ url: string;
260
+ fontFamily: string;
261
+ } | undefined;
262
+ }, {
263
+ sans?: {
264
+ url: string;
265
+ fontFamily: string;
266
+ } | undefined;
267
+ mono?: {
268
+ url: string;
269
+ fontFamily: string;
270
+ } | undefined;
378
271
  }>>;
379
272
  }, "strip", z.ZodTypeAny, {
380
- light?: {
273
+ dark?: {
381
274
  input?: string | undefined;
275
+ radius?: string | undefined;
276
+ border?: string | undefined;
382
277
  background?: string | undefined;
383
278
  foreground?: string | undefined;
384
279
  card?: string | undefined;
@@ -395,12 +290,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
395
290
  accentForeground?: string | undefined;
396
291
  destructive?: string | undefined;
397
292
  destructiveForeground?: string | undefined;
398
- border?: string | undefined;
399
293
  ring?: string | undefined;
400
- radius?: string | undefined;
401
294
  } | undefined;
402
- dark?: {
295
+ light?: {
403
296
  input?: string | undefined;
297
+ radius?: string | undefined;
298
+ border?: string | undefined;
404
299
  background?: string | undefined;
405
300
  foreground?: string | undefined;
406
301
  card?: string | undefined;
@@ -417,13 +312,23 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
417
312
  accentForeground?: string | undefined;
418
313
  destructive?: string | undefined;
419
314
  destructiveForeground?: string | undefined;
420
- border?: string | undefined;
421
315
  ring?: string | undefined;
422
- radius?: string | undefined;
316
+ } | undefined;
317
+ fonts?: {
318
+ sans?: {
319
+ url: string;
320
+ fontFamily: string;
321
+ } | undefined;
322
+ mono?: {
323
+ url: string;
324
+ fontFamily: string;
325
+ } | undefined;
423
326
  } | undefined;
424
327
  }, {
425
- light?: {
328
+ dark?: {
426
329
  input?: string | undefined;
330
+ radius?: string | undefined;
331
+ border?: string | undefined;
427
332
  background?: string | undefined;
428
333
  foreground?: string | undefined;
429
334
  card?: string | undefined;
@@ -440,12 +345,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
440
345
  accentForeground?: string | undefined;
441
346
  destructive?: string | undefined;
442
347
  destructiveForeground?: string | undefined;
443
- border?: string | undefined;
444
348
  ring?: string | undefined;
445
- radius?: string | undefined;
446
349
  } | undefined;
447
- dark?: {
350
+ light?: {
448
351
  input?: string | undefined;
352
+ radius?: string | undefined;
353
+ border?: string | undefined;
449
354
  background?: string | undefined;
450
355
  foreground?: string | undefined;
451
356
  card?: string | undefined;
@@ -462,9 +367,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
462
367
  accentForeground?: string | undefined;
463
368
  destructive?: string | undefined;
464
369
  destructiveForeground?: string | undefined;
465
- border?: string | undefined;
466
370
  ring?: string | undefined;
467
- radius?: string | undefined;
371
+ } | undefined;
372
+ fonts?: {
373
+ sans?: {
374
+ url: string;
375
+ fontFamily: string;
376
+ } | undefined;
377
+ mono?: {
378
+ url: string;
379
+ fontFamily: string;
380
+ } | undefined;
468
381
  } | undefined;
469
382
  }>>;
470
383
  metadata: z.ZodOptional<z.ZodObject<{
@@ -504,13 +417,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
504
417
  creator?: string | undefined;
505
418
  publisher?: string | undefined;
506
419
  }>>;
507
- mdx: z.ZodOptional<z.ZodObject<{
508
- 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>>;
509
- }, "strip", z.ZodTypeAny, {
510
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
511
- }, {
512
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
513
- }>>;
514
420
  authentication: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
515
421
  type: z.ZodLiteral<"clerk">;
516
422
  clerkPubKey: z.ZodType<`pk_test_${string}` | `pk_live_${string}`, z.ZodTypeDef, `pk_test_${string}` | `pk_live_${string}`>;
@@ -581,7 +487,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
581
487
  redirectToAfterSignOut?: string | undefined;
582
488
  audience?: string | undefined;
583
489
  }>]>>;
584
- search: z.ZodOptional<z.ZodObject<{
490
+ search: z.ZodOptional<z.ZodOptional<z.ZodObject<{
585
491
  type: z.ZodLiteral<"inkeep">;
586
492
  apiKey: z.ZodString;
587
493
  integrationId: z.ZodString;
@@ -602,7 +508,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
602
508
  organizationId: string;
603
509
  primaryBrandColor: string;
604
510
  organizationDisplayName: string;
605
- }>>;
511
+ }>>>;
606
512
  docs: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
607
513
  files: z.ZodString;
608
514
  defaultOptions: z.ZodOptional<z.ZodObject<{
@@ -656,99 +562,258 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
656
562
  type: z.ZodLiteral<"url">;
657
563
  input: z.ZodString;
658
564
  }, {
565
+ id: z.ZodOptional<z.ZodString>;
659
566
  server: z.ZodOptional<z.ZodString>;
660
567
  navigationId: z.ZodOptional<z.ZodString>;
568
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ label: z.ZodString;
570
+ tags: z.ZodArray<z.ZodString, "many">;
571
+ }, "strip", z.ZodTypeAny, {
572
+ tags: string[];
573
+ label: string;
574
+ }, {
575
+ tags: string[];
576
+ label: string;
577
+ }>, "many">>;
661
578
  }>, "strip", z.ZodTypeAny, {
662
579
  type: "url";
663
580
  input: string;
664
581
  server?: string | undefined;
582
+ id?: string | undefined;
665
583
  navigationId?: string | undefined;
584
+ categories?: {
585
+ tags: string[];
586
+ label: string;
587
+ }[] | undefined;
666
588
  }, {
667
589
  type: "url";
668
590
  input: string;
669
591
  server?: string | undefined;
592
+ id?: string | undefined;
670
593
  navigationId?: string | undefined;
671
- }>, z.ZodObject<z.objectUtil.extendShape<{
594
+ categories?: {
595
+ tags: string[];
596
+ label: string;
597
+ }[] | undefined;
598
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
672
599
  type: z.ZodLiteral<"file">;
673
600
  input: z.ZodString;
674
601
  }, {
602
+ id: z.ZodOptional<z.ZodString>;
675
603
  server: z.ZodOptional<z.ZodString>;
676
604
  navigationId: z.ZodOptional<z.ZodString>;
605
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
606
+ label: z.ZodString;
607
+ tags: z.ZodArray<z.ZodString, "many">;
608
+ }, "strip", z.ZodTypeAny, {
609
+ tags: string[];
610
+ label: string;
611
+ }, {
612
+ tags: string[];
613
+ label: string;
614
+ }>, "many">>;
615
+ }>, {
616
+ 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">>;
677
617
  }>, "strip", z.ZodTypeAny, {
678
618
  type: "file";
679
619
  input: string;
680
620
  server?: string | undefined;
621
+ id?: string | undefined;
681
622
  navigationId?: string | undefined;
623
+ categories?: {
624
+ tags: string[];
625
+ label: string;
626
+ }[] | undefined;
627
+ postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
682
628
  }, {
683
629
  type: "file";
684
630
  input: string;
685
631
  server?: string | undefined;
632
+ id?: string | undefined;
686
633
  navigationId?: string | undefined;
634
+ categories?: {
635
+ tags: string[];
636
+ label: string;
637
+ }[] | undefined;
638
+ postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
687
639
  }>, z.ZodObject<z.objectUtil.extendShape<{
688
640
  type: z.ZodLiteral<"raw">;
689
641
  input: z.ZodString;
690
642
  }, {
643
+ id: z.ZodOptional<z.ZodString>;
691
644
  server: z.ZodOptional<z.ZodString>;
692
645
  navigationId: z.ZodOptional<z.ZodString>;
646
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
647
+ label: z.ZodString;
648
+ tags: z.ZodArray<z.ZodString, "many">;
649
+ }, "strip", z.ZodTypeAny, {
650
+ tags: string[];
651
+ label: string;
652
+ }, {
653
+ tags: string[];
654
+ label: string;
655
+ }>, "many">>;
693
656
  }>, "strip", z.ZodTypeAny, {
694
657
  type: "raw";
695
658
  input: string;
696
659
  server?: string | undefined;
660
+ id?: string | undefined;
697
661
  navigationId?: string | undefined;
662
+ categories?: {
663
+ tags: string[];
664
+ label: string;
665
+ }[] | undefined;
698
666
  }, {
699
667
  type: "raw";
700
668
  input: string;
701
669
  server?: string | undefined;
670
+ id?: string | undefined;
702
671
  navigationId?: string | undefined;
672
+ categories?: {
673
+ tags: string[];
674
+ label: string;
675
+ }[] | undefined;
703
676
  }>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
704
677
  type: z.ZodLiteral<"url">;
705
678
  input: z.ZodString;
706
679
  }, {
680
+ id: z.ZodOptional<z.ZodString>;
707
681
  server: z.ZodOptional<z.ZodString>;
708
682
  navigationId: z.ZodOptional<z.ZodString>;
683
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
684
+ label: z.ZodString;
685
+ tags: z.ZodArray<z.ZodString, "many">;
686
+ }, "strip", z.ZodTypeAny, {
687
+ tags: string[];
688
+ label: string;
689
+ }, {
690
+ tags: string[];
691
+ label: string;
692
+ }>, "many">>;
709
693
  }>, "strip", z.ZodTypeAny, {
710
694
  type: "url";
711
695
  input: string;
712
696
  server?: string | undefined;
697
+ id?: string | undefined;
713
698
  navigationId?: string | undefined;
699
+ categories?: {
700
+ tags: string[];
701
+ label: string;
702
+ }[] | undefined;
714
703
  }, {
715
704
  type: "url";
716
705
  input: string;
717
706
  server?: string | undefined;
707
+ id?: string | undefined;
718
708
  navigationId?: string | undefined;
719
- }>, z.ZodObject<z.objectUtil.extendShape<{
709
+ categories?: {
710
+ tags: string[];
711
+ label: string;
712
+ }[] | undefined;
713
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
720
714
  type: z.ZodLiteral<"file">;
721
715
  input: z.ZodString;
722
716
  }, {
717
+ id: z.ZodOptional<z.ZodString>;
723
718
  server: z.ZodOptional<z.ZodString>;
724
719
  navigationId: z.ZodOptional<z.ZodString>;
720
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
721
+ label: z.ZodString;
722
+ tags: z.ZodArray<z.ZodString, "many">;
723
+ }, "strip", z.ZodTypeAny, {
724
+ tags: string[];
725
+ label: string;
726
+ }, {
727
+ tags: string[];
728
+ label: string;
729
+ }>, "many">>;
730
+ }>, {
731
+ 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">>;
725
732
  }>, "strip", z.ZodTypeAny, {
726
733
  type: "file";
727
734
  input: string;
728
735
  server?: string | undefined;
736
+ id?: string | undefined;
729
737
  navigationId?: string | undefined;
738
+ categories?: {
739
+ tags: string[];
740
+ label: string;
741
+ }[] | undefined;
742
+ postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
730
743
  }, {
731
744
  type: "file";
732
745
  input: string;
733
746
  server?: string | undefined;
747
+ id?: string | undefined;
734
748
  navigationId?: string | undefined;
749
+ categories?: {
750
+ tags: string[];
751
+ label: string;
752
+ }[] | undefined;
753
+ postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
735
754
  }>, z.ZodObject<z.objectUtil.extendShape<{
736
755
  type: z.ZodLiteral<"raw">;
737
756
  input: z.ZodString;
738
757
  }, {
758
+ id: z.ZodOptional<z.ZodString>;
739
759
  server: z.ZodOptional<z.ZodString>;
740
760
  navigationId: z.ZodOptional<z.ZodString>;
761
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
762
+ label: z.ZodString;
763
+ tags: z.ZodArray<z.ZodString, "many">;
764
+ }, "strip", z.ZodTypeAny, {
765
+ tags: string[];
766
+ label: string;
767
+ }, {
768
+ tags: string[];
769
+ label: string;
770
+ }>, "many">>;
741
771
  }>, "strip", z.ZodTypeAny, {
742
772
  type: "raw";
743
773
  input: string;
744
774
  server?: string | undefined;
775
+ id?: string | undefined;
745
776
  navigationId?: string | undefined;
777
+ categories?: {
778
+ tags: string[];
779
+ label: string;
780
+ }[] | undefined;
746
781
  }, {
747
782
  type: "raw";
748
783
  input: string;
749
784
  server?: string | undefined;
785
+ id?: string | undefined;
750
786
  navigationId?: string | undefined;
787
+ categories?: {
788
+ tags: string[];
789
+ label: string;
790
+ }[] | undefined;
751
791
  }>]>, "many">]>>;
792
+ catalog: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
793
+ navigationId: z.ZodString;
794
+ label: z.ZodString;
795
+ items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ label: string;
798
+ navigationId: string;
799
+ items?: string[] | undefined;
800
+ }, {
801
+ label: string;
802
+ navigationId: string;
803
+ items?: string[] | undefined;
804
+ }>, z.ZodArray<z.ZodObject<{
805
+ navigationId: z.ZodString;
806
+ label: z.ZodString;
807
+ items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ label: string;
810
+ navigationId: string;
811
+ items?: string[] | undefined;
812
+ }, {
813
+ label: string;
814
+ navigationId: string;
815
+ items?: string[] | undefined;
816
+ }>, "many">]>>;
752
817
  apiKeys: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
753
818
  enabled: z.ZodBoolean;
754
819
  endpoint: z.ZodString;
@@ -760,49 +825,49 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
760
825
  endpoint: string;
761
826
  }>, z.ZodObject<{
762
827
  enabled: z.ZodBoolean;
763
- getKeys: z.ZodType<(context: ZudokuContext) => Promise<ApiKey[]>, z.ZodTypeDef, (context: ZudokuContext) => Promise<ApiKey[]>>;
764
- rollKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
765
- deleteKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
828
+ 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[]>>;
829
+ 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>>>;
830
+ 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>>>;
766
831
  updateKeyDescription: z.ZodOptional<z.ZodType<(apiKey: {
767
832
  id: string;
768
833
  description: string;
769
- }, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
834
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
770
835
  id: string;
771
836
  description: string;
772
- }, context: ZudokuContext) => Promise<void>>>;
837
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
773
838
  createKey: z.ZodOptional<z.ZodType<(apiKey: {
774
839
  description: string;
775
840
  expiresOn?: string;
776
- }, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
841
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
777
842
  description: string;
778
843
  expiresOn?: string;
779
- }, context: ZudokuContext) => Promise<void>>>;
844
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>>>;
780
845
  }, "strip", z.ZodTypeAny, {
781
846
  enabled: boolean;
782
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
783
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
784
- deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
847
+ getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
848
+ rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
849
+ deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
785
850
  updateKeyDescription?: ((apiKey: {
786
851
  id: string;
787
852
  description: string;
788
- }, context: ZudokuContext) => Promise<void>) | undefined;
853
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
789
854
  createKey?: ((apiKey: {
790
855
  description: string;
791
856
  expiresOn?: string;
792
- }, context: ZudokuContext) => Promise<void>) | undefined;
857
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
793
858
  }, {
794
859
  enabled: boolean;
795
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
796
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
797
- deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
860
+ getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
861
+ rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
862
+ deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
798
863
  updateKeyDescription?: ((apiKey: {
799
864
  id: string;
800
865
  description: string;
801
- }, context: ZudokuContext) => Promise<void>) | undefined;
866
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
802
867
  createKey?: ((apiKey: {
803
868
  description: string;
804
869
  expiresOn?: string;
805
- }, context: ZudokuContext) => Promise<void>) | undefined;
870
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
806
871
  }>]>>;
807
872
  redirects: z.ZodOptional<z.ZodArray<z.ZodObject<{
808
873
  from: z.ZodString;
@@ -814,48 +879,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
814
879
  from: string;
815
880
  to: string;
816
881
  }>, "many">>;
817
- customPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
818
- path: z.ZodString;
819
- element: z.ZodOptional<z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>>;
820
- render: z.ZodOptional<z.ZodType<ComponentType<ExposedComponentProps>, z.ZodTypeDef, ComponentType<ExposedComponentProps>>>;
821
- prose: z.ZodOptional<z.ZodBoolean>;
822
- }, "strip", z.ZodTypeAny, {
823
- path: string;
824
- element?: NonNullable<ReactNode> | undefined;
825
- render?: ComponentType<ExposedComponentProps> | undefined;
826
- prose?: boolean | undefined;
827
- }, {
828
- path: string;
829
- element?: NonNullable<ReactNode> | undefined;
830
- render?: ComponentType<ExposedComponentProps> | undefined;
831
- prose?: boolean | undefined;
832
- }>, "many">>;
833
- plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
834
882
  sitemap: z.ZodOptional<z.ZodOptional<z.ZodObject<{
835
- /**
836
- * Base url of your website
837
- */
838
883
  siteUrl: z.ZodString;
839
- /**
840
- * Change frequency.
841
- * @default 'daily'
842
- */
843
884
  changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
844
- /**
845
- * Priority
846
- * @default 0.7
847
- */
848
885
  priority: z.ZodOptional<z.ZodNumber>;
849
886
  outDir: z.ZodOptional<z.ZodString>;
850
- /**
851
- * Add <lastmod/> property.
852
- * @default true
853
- */
854
887
  autoLastmod: z.ZodOptional<z.ZodBoolean>;
855
- /**
856
- * Array of relative paths to exclude from listing on sitemap.xml or sitemap-*.xml.
857
- * @example ['/page-0', '/page/example']
858
- */
859
888
  exclude: z.ZodOptional<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodString, "many">>>, z.ZodArray<z.ZodString, "many">]>>;
860
889
  }, "strip", z.ZodTypeAny, {
861
890
  siteUrl: string;
@@ -872,6 +901,31 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
872
901
  autoLastmod?: boolean | undefined;
873
902
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
874
903
  }>>>;
904
+ UNSAFE_slotlets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ReactNode | ComponentType<ExposedComponentProps>, z.ZodTypeDef, ReactNode | ComponentType<ExposedComponentProps>>>>;
905
+ mdx: z.ZodOptional<z.ZodObject<{
906
+ components: z.ZodOptional<z.ZodType<MdxComponentsType, z.ZodTypeDef, MdxComponentsType>>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ components?: MdxComponentsType;
909
+ }, {
910
+ components?: MdxComponentsType;
911
+ }>>;
912
+ customPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
913
+ path: z.ZodString;
914
+ element: z.ZodOptional<z.ZodType<NonNullable<ReactNode>, z.ZodTypeDef, NonNullable<ReactNode>>>;
915
+ render: z.ZodOptional<z.ZodType<ComponentType<ExposedComponentProps>, z.ZodTypeDef, ComponentType<ExposedComponentProps>>>;
916
+ prose: z.ZodOptional<z.ZodBoolean>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ path: string;
919
+ element?: NonNullable<ReactNode> | undefined;
920
+ render?: ComponentType<ExposedComponentProps> | undefined;
921
+ prose?: boolean | undefined;
922
+ }, {
923
+ path: string;
924
+ element?: NonNullable<ReactNode> | undefined;
925
+ render?: ComponentType<ExposedComponentProps> | undefined;
926
+ prose?: boolean | undefined;
927
+ }>, "many">>;
928
+ plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
875
929
  build: z.ZodOptional<z.ZodType<{
876
930
  remarkPlugins?: Options["remarkPlugins"];
877
931
  rehypePlugins?: Options["rehypePlugins"];
@@ -889,35 +943,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
889
943
  primaryBrandColor: string;
890
944
  organizationDisplayName: string;
891
945
  } | undefined;
892
- basePath?: string | undefined;
893
- page?: {
894
- pageTitle?: string | undefined;
895
- logoUrl?: string | undefined;
896
- logo?: {
897
- src: {
898
- light: string;
899
- dark: string;
900
- };
901
- alt?: string | undefined;
902
- width?: string | undefined;
903
- } | undefined;
904
- banner?: {
905
- message: NonNullable<ReactNode>;
906
- color?: BannerColorType;
907
- dismissible?: boolean | undefined;
908
- } | undefined;
946
+ metadata?: {
947
+ description?: string | undefined;
948
+ title?: string | undefined;
949
+ logo?: string | undefined;
950
+ favicon?: string | undefined;
951
+ generator?: string | undefined;
952
+ applicationName?: string | undefined;
953
+ referrer?: string | undefined;
954
+ keywords?: string[] | undefined;
955
+ authors?: string[] | undefined;
956
+ creator?: string | undefined;
957
+ publisher?: string | undefined;
909
958
  } | undefined;
910
- topNavigation?: {
911
- id: string;
912
- label: string;
913
- default?: string | undefined;
914
- display?: "auth" | "anon" | "always" | undefined;
915
- }[] | undefined;
916
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
917
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
918
959
  theme?: {
919
- light?: {
960
+ dark?: {
920
961
  input?: string | undefined;
962
+ radius?: string | undefined;
963
+ border?: string | undefined;
921
964
  background?: string | undefined;
922
965
  foreground?: string | undefined;
923
966
  card?: string | undefined;
@@ -934,12 +977,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
934
977
  accentForeground?: string | undefined;
935
978
  destructive?: string | undefined;
936
979
  destructiveForeground?: string | undefined;
937
- border?: string | undefined;
938
980
  ring?: string | undefined;
939
- radius?: string | undefined;
940
981
  } | undefined;
941
- dark?: {
982
+ light?: {
942
983
  input?: string | undefined;
984
+ radius?: string | undefined;
985
+ border?: string | undefined;
943
986
  background?: string | undefined;
944
987
  foreground?: string | undefined;
945
988
  card?: string | undefined;
@@ -956,47 +999,78 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
956
999
  accentForeground?: string | undefined;
957
1000
  destructive?: string | undefined;
958
1001
  destructiveForeground?: string | undefined;
959
- border?: string | undefined;
960
1002
  ring?: string | undefined;
961
- radius?: string | undefined;
962
1003
  } | undefined;
963
- } | undefined;
964
- metadata?: {
965
- description?: string | undefined;
966
- title?: string | undefined;
967
- logo?: string | undefined;
968
- favicon?: string | undefined;
969
- generator?: string | undefined;
970
- applicationName?: string | undefined;
971
- referrer?: string | undefined;
972
- keywords?: string[] | undefined;
973
- authors?: string[] | undefined;
974
- creator?: string | undefined;
975
- publisher?: string | undefined;
1004
+ fonts?: {
1005
+ sans?: {
1006
+ url: string;
1007
+ fontFamily: string;
1008
+ } | undefined;
1009
+ mono?: {
1010
+ url: string;
1011
+ fontFamily: string;
1012
+ } | undefined;
1013
+ } | undefined;
976
1014
  } | undefined;
977
1015
  mdx?: {
978
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1016
+ components?: MdxComponentsType;
979
1017
  } | undefined;
980
- authentication?: {
981
- type: "clerk";
982
- clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
983
- redirectToAfterSignUp?: string | undefined;
984
- redirectToAfterSignIn?: string | undefined;
985
- redirectToAfterSignOut?: string | undefined;
986
- } | {
987
- type: "openid";
988
- clientId: string;
989
- issuer: string;
990
- redirectToAfterSignUp?: string | undefined;
991
- redirectToAfterSignIn?: string | undefined;
992
- redirectToAfterSignOut?: string | undefined;
993
- audience?: string | undefined;
994
- scopes?: string[] | undefined;
995
- } | {
996
- type: "auth0";
997
- clientId: string;
998
- domain: string;
999
- redirectToAfterSignUp?: string | undefined;
1018
+ page?: {
1019
+ banner?: {
1020
+ message: NonNullable<ReactNode>;
1021
+ 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]>>;
1022
+ dismissible?: boolean | undefined;
1023
+ } | undefined;
1024
+ pageTitle?: string | undefined;
1025
+ logoUrl?: string | undefined;
1026
+ logo?: {
1027
+ src: {
1028
+ dark: string;
1029
+ light: string;
1030
+ };
1031
+ width?: string | undefined;
1032
+ alt?: string | undefined;
1033
+ } | undefined;
1034
+ } | undefined;
1035
+ UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1036
+ customPages?: {
1037
+ path: string;
1038
+ element?: NonNullable<ReactNode> | undefined;
1039
+ render?: ComponentType<ExposedComponentProps> | undefined;
1040
+ prose?: boolean | undefined;
1041
+ }[] | undefined;
1042
+ build?: {
1043
+ remarkPlugins?: Options["remarkPlugins"];
1044
+ rehypePlugins?: Options["rehypePlugins"];
1045
+ } | undefined;
1046
+ basePath?: string | undefined;
1047
+ topNavigation?: {
1048
+ id: string;
1049
+ label: string;
1050
+ default?: string | undefined;
1051
+ display?: "auth" | "anon" | "always" | undefined;
1052
+ }[] | undefined;
1053
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1054
+ authentication?: {
1055
+ type: "clerk";
1056
+ clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
1057
+ redirectToAfterSignUp?: string | undefined;
1058
+ redirectToAfterSignIn?: string | undefined;
1059
+ redirectToAfterSignOut?: string | undefined;
1060
+ } | {
1061
+ type: "openid";
1062
+ clientId: string;
1063
+ issuer: string;
1064
+ redirectToAfterSignUp?: string | undefined;
1065
+ redirectToAfterSignIn?: string | undefined;
1066
+ redirectToAfterSignOut?: string | undefined;
1067
+ audience?: string | undefined;
1068
+ scopes?: string[] | undefined;
1069
+ } | {
1070
+ type: "auth0";
1071
+ clientId: string;
1072
+ domain: string;
1073
+ redirectToAfterSignUp?: string | undefined;
1000
1074
  redirectToAfterSignIn?: string | undefined;
1001
1075
  redirectToAfterSignOut?: string | undefined;
1002
1076
  audience?: string | undefined;
@@ -1018,60 +1092,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1018
1092
  type: "url";
1019
1093
  input: string;
1020
1094
  server?: string | undefined;
1095
+ id?: string | undefined;
1021
1096
  navigationId?: string | undefined;
1097
+ categories?: {
1098
+ tags: string[];
1099
+ label: string;
1100
+ }[] | undefined;
1022
1101
  } | {
1023
1102
  type: "file";
1024
1103
  input: string;
1025
1104
  server?: string | undefined;
1105
+ id?: string | undefined;
1026
1106
  navigationId?: string | undefined;
1107
+ categories?: {
1108
+ tags: string[];
1109
+ label: string;
1110
+ }[] | undefined;
1111
+ postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1027
1112
  } | {
1028
1113
  type: "raw";
1029
1114
  input: string;
1030
1115
  server?: string | undefined;
1116
+ id?: string | undefined;
1031
1117
  navigationId?: string | undefined;
1118
+ categories?: {
1119
+ tags: string[];
1120
+ label: string;
1121
+ }[] | undefined;
1032
1122
  } | ({
1033
1123
  type: "url";
1034
1124
  input: string;
1035
1125
  server?: string | undefined;
1126
+ id?: string | undefined;
1036
1127
  navigationId?: string | undefined;
1128
+ categories?: {
1129
+ tags: string[];
1130
+ label: string;
1131
+ }[] | undefined;
1037
1132
  } | {
1038
1133
  type: "file";
1039
1134
  input: string;
1040
1135
  server?: string | undefined;
1136
+ id?: string | undefined;
1041
1137
  navigationId?: string | undefined;
1138
+ categories?: {
1139
+ tags: string[];
1140
+ label: string;
1141
+ }[] | undefined;
1142
+ postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1042
1143
  } | {
1043
1144
  type: "raw";
1044
1145
  input: string;
1045
1146
  server?: string | undefined;
1147
+ id?: string | undefined;
1046
1148
  navigationId?: string | undefined;
1149
+ categories?: {
1150
+ tags: string[];
1151
+ label: string;
1152
+ }[] | undefined;
1047
1153
  })[] | undefined;
1154
+ catalog?: {
1155
+ label: string;
1156
+ navigationId: string;
1157
+ items?: string[] | undefined;
1158
+ } | {
1159
+ label: string;
1160
+ navigationId: string;
1161
+ items?: string[] | undefined;
1162
+ }[] | undefined;
1048
1163
  apiKeys?: {
1049
1164
  enabled: boolean;
1050
1165
  endpoint: string;
1051
1166
  } | {
1052
1167
  enabled: boolean;
1053
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1054
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1055
- deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1168
+ getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
1169
+ rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1170
+ deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1056
1171
  updateKeyDescription?: ((apiKey: {
1057
1172
  id: string;
1058
1173
  description: string;
1059
- }, context: ZudokuContext) => Promise<void>) | undefined;
1174
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1060
1175
  createKey?: ((apiKey: {
1061
1176
  description: string;
1062
1177
  expiresOn?: string;
1063
- }, context: ZudokuContext) => Promise<void>) | undefined;
1178
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1064
1179
  } | undefined;
1065
1180
  redirects?: {
1066
1181
  from: string;
1067
1182
  to: string;
1068
1183
  }[] | undefined;
1069
- customPages?: {
1070
- path: string;
1071
- element?: NonNullable<ReactNode> | undefined;
1072
- render?: ComponentType<ExposedComponentProps> | undefined;
1073
- prose?: boolean | undefined;
1074
- }[] | undefined;
1075
1184
  sitemap?: {
1076
1185
  siteUrl: string;
1077
1186
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1080,10 +1189,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1080
1189
  autoLastmod?: boolean | undefined;
1081
1190
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1082
1191
  } | undefined;
1083
- build?: {
1084
- remarkPlugins?: Options["remarkPlugins"];
1085
- rehypePlugins?: Options["rehypePlugins"];
1086
- } | undefined;
1087
1192
  }, {
1088
1193
  plugins?: ZudokuPlugin[] | undefined;
1089
1194
  search?: {
@@ -1094,35 +1199,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1094
1199
  primaryBrandColor: string;
1095
1200
  organizationDisplayName: string;
1096
1201
  } | undefined;
1097
- basePath?: string | undefined;
1098
- page?: {
1099
- pageTitle?: string | undefined;
1100
- logoUrl?: string | undefined;
1101
- logo?: {
1102
- src: {
1103
- light: string;
1104
- dark: string;
1105
- };
1106
- alt?: string | undefined;
1107
- width?: string | undefined;
1108
- } | undefined;
1109
- banner?: {
1110
- message: NonNullable<ReactNode>;
1111
- color?: BannerColorType;
1112
- dismissible?: boolean | undefined;
1113
- } | undefined;
1202
+ metadata?: {
1203
+ description?: string | undefined;
1204
+ title?: string | undefined;
1205
+ logo?: string | undefined;
1206
+ favicon?: string | undefined;
1207
+ generator?: string | undefined;
1208
+ applicationName?: string | undefined;
1209
+ referrer?: string | undefined;
1210
+ keywords?: string[] | undefined;
1211
+ authors?: string[] | undefined;
1212
+ creator?: string | undefined;
1213
+ publisher?: string | undefined;
1114
1214
  } | undefined;
1115
- topNavigation?: {
1116
- id: string;
1117
- label: string;
1118
- default?: string | undefined;
1119
- display?: "auth" | "anon" | "always" | undefined;
1120
- }[] | undefined;
1121
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1122
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1123
1215
  theme?: {
1124
- light?: {
1216
+ dark?: {
1125
1217
  input?: string | undefined;
1218
+ radius?: string | undefined;
1219
+ border?: string | undefined;
1126
1220
  background?: string | undefined;
1127
1221
  foreground?: string | undefined;
1128
1222
  card?: string | undefined;
@@ -1139,12 +1233,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1139
1233
  accentForeground?: string | undefined;
1140
1234
  destructive?: string | undefined;
1141
1235
  destructiveForeground?: string | undefined;
1142
- border?: string | undefined;
1143
1236
  ring?: string | undefined;
1144
- radius?: string | undefined;
1145
1237
  } | undefined;
1146
- dark?: {
1238
+ light?: {
1147
1239
  input?: string | undefined;
1240
+ radius?: string | undefined;
1241
+ border?: string | undefined;
1148
1242
  background?: string | undefined;
1149
1243
  foreground?: string | undefined;
1150
1244
  card?: string | undefined;
@@ -1161,27 +1255,58 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1161
1255
  accentForeground?: string | undefined;
1162
1256
  destructive?: string | undefined;
1163
1257
  destructiveForeground?: string | undefined;
1164
- border?: string | undefined;
1165
1258
  ring?: string | undefined;
1166
- radius?: string | undefined;
1167
1259
  } | undefined;
1168
- } | undefined;
1169
- metadata?: {
1170
- description?: string | undefined;
1171
- title?: string | undefined;
1172
- logo?: string | undefined;
1173
- favicon?: string | undefined;
1174
- generator?: string | undefined;
1175
- applicationName?: string | undefined;
1176
- referrer?: string | undefined;
1177
- keywords?: string[] | undefined;
1178
- authors?: string[] | undefined;
1179
- creator?: string | undefined;
1180
- publisher?: string | undefined;
1260
+ fonts?: {
1261
+ sans?: {
1262
+ url: string;
1263
+ fontFamily: string;
1264
+ } | undefined;
1265
+ mono?: {
1266
+ url: string;
1267
+ fontFamily: string;
1268
+ } | undefined;
1269
+ } | undefined;
1181
1270
  } | undefined;
1182
1271
  mdx?: {
1183
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1272
+ components?: MdxComponentsType;
1273
+ } | undefined;
1274
+ page?: {
1275
+ banner?: {
1276
+ message: NonNullable<ReactNode>;
1277
+ 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]>>;
1278
+ dismissible?: boolean | undefined;
1279
+ } | undefined;
1280
+ pageTitle?: string | undefined;
1281
+ logoUrl?: string | undefined;
1282
+ logo?: {
1283
+ src: {
1284
+ dark: string;
1285
+ light: string;
1286
+ };
1287
+ width?: string | undefined;
1288
+ alt?: string | undefined;
1289
+ } | undefined;
1290
+ } | undefined;
1291
+ UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1292
+ customPages?: {
1293
+ path: string;
1294
+ element?: NonNullable<ReactNode> | undefined;
1295
+ render?: ComponentType<ExposedComponentProps> | undefined;
1296
+ prose?: boolean | undefined;
1297
+ }[] | undefined;
1298
+ build?: {
1299
+ remarkPlugins?: Options["remarkPlugins"];
1300
+ rehypePlugins?: Options["rehypePlugins"];
1184
1301
  } | undefined;
1302
+ basePath?: string | undefined;
1303
+ topNavigation?: {
1304
+ id: string;
1305
+ label: string;
1306
+ default?: string | undefined;
1307
+ display?: "auth" | "anon" | "always" | undefined;
1308
+ }[] | undefined;
1309
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1185
1310
  authentication?: {
1186
1311
  type: "clerk";
1187
1312
  clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
@@ -1223,60 +1348,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1223
1348
  type: "url";
1224
1349
  input: string;
1225
1350
  server?: string | undefined;
1351
+ id?: string | undefined;
1226
1352
  navigationId?: string | undefined;
1353
+ categories?: {
1354
+ tags: string[];
1355
+ label: string;
1356
+ }[] | undefined;
1227
1357
  } | {
1228
1358
  type: "file";
1229
1359
  input: string;
1230
1360
  server?: string | undefined;
1361
+ id?: string | undefined;
1231
1362
  navigationId?: string | undefined;
1363
+ categories?: {
1364
+ tags: string[];
1365
+ label: string;
1366
+ }[] | undefined;
1367
+ postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1232
1368
  } | {
1233
1369
  type: "raw";
1234
1370
  input: string;
1235
1371
  server?: string | undefined;
1372
+ id?: string | undefined;
1236
1373
  navigationId?: string | undefined;
1374
+ categories?: {
1375
+ tags: string[];
1376
+ label: string;
1377
+ }[] | undefined;
1237
1378
  } | ({
1238
1379
  type: "url";
1239
1380
  input: string;
1240
1381
  server?: string | undefined;
1382
+ id?: string | undefined;
1241
1383
  navigationId?: string | undefined;
1384
+ categories?: {
1385
+ tags: string[];
1386
+ label: string;
1387
+ }[] | undefined;
1242
1388
  } | {
1243
1389
  type: "file";
1244
1390
  input: string;
1245
1391
  server?: string | undefined;
1392
+ id?: string | undefined;
1246
1393
  navigationId?: string | undefined;
1394
+ categories?: {
1395
+ tags: string[];
1396
+ label: string;
1397
+ }[] | undefined;
1398
+ postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1247
1399
  } | {
1248
1400
  type: "raw";
1249
1401
  input: string;
1250
1402
  server?: string | undefined;
1403
+ id?: string | undefined;
1251
1404
  navigationId?: string | undefined;
1405
+ categories?: {
1406
+ tags: string[];
1407
+ label: string;
1408
+ }[] | undefined;
1252
1409
  })[] | undefined;
1410
+ catalog?: {
1411
+ label: string;
1412
+ navigationId: string;
1413
+ items?: string[] | undefined;
1414
+ } | {
1415
+ label: string;
1416
+ navigationId: string;
1417
+ items?: string[] | undefined;
1418
+ }[] | undefined;
1253
1419
  apiKeys?: {
1254
1420
  enabled: boolean;
1255
1421
  endpoint: string;
1256
1422
  } | {
1257
1423
  enabled: boolean;
1258
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1259
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1260
- deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1424
+ getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
1425
+ rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1426
+ deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1261
1427
  updateKeyDescription?: ((apiKey: {
1262
1428
  id: string;
1263
1429
  description: string;
1264
- }, context: ZudokuContext) => Promise<void>) | undefined;
1430
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1265
1431
  createKey?: ((apiKey: {
1266
1432
  description: string;
1267
1433
  expiresOn?: string;
1268
- }, context: ZudokuContext) => Promise<void>) | undefined;
1434
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1269
1435
  } | undefined;
1270
1436
  redirects?: {
1271
1437
  from: string;
1272
1438
  to: string;
1273
1439
  }[] | undefined;
1274
- customPages?: {
1275
- path: string;
1276
- element?: NonNullable<ReactNode> | undefined;
1277
- render?: ComponentType<ExposedComponentProps> | undefined;
1278
- prose?: boolean | undefined;
1279
- }[] | undefined;
1280
1440
  sitemap?: {
1281
1441
  siteUrl: string;
1282
1442
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1285,10 +1445,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1285
1445
  autoLastmod?: boolean | undefined;
1286
1446
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1287
1447
  } | undefined;
1288
- build?: {
1289
- remarkPlugins?: Options["remarkPlugins"];
1290
- rehypePlugins?: Options["rehypePlugins"];
1291
- } | undefined;
1292
1448
  }>, {
1293
1449
  plugins?: ZudokuPlugin[] | undefined;
1294
1450
  search?: {
@@ -1299,35 +1455,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1299
1455
  primaryBrandColor: string;
1300
1456
  organizationDisplayName: string;
1301
1457
  } | undefined;
1302
- basePath?: string | undefined;
1303
- page?: {
1304
- pageTitle?: string | undefined;
1305
- logoUrl?: string | undefined;
1306
- logo?: {
1307
- src: {
1308
- light: string;
1309
- dark: string;
1310
- };
1311
- alt?: string | undefined;
1312
- width?: string | undefined;
1313
- } | undefined;
1314
- banner?: {
1315
- message: NonNullable<ReactNode>;
1316
- color?: BannerColorType;
1317
- dismissible?: boolean | undefined;
1318
- } | undefined;
1458
+ metadata?: {
1459
+ description?: string | undefined;
1460
+ title?: string | undefined;
1461
+ logo?: string | undefined;
1462
+ favicon?: string | undefined;
1463
+ generator?: string | undefined;
1464
+ applicationName?: string | undefined;
1465
+ referrer?: string | undefined;
1466
+ keywords?: string[] | undefined;
1467
+ authors?: string[] | undefined;
1468
+ creator?: string | undefined;
1469
+ publisher?: string | undefined;
1319
1470
  } | undefined;
1320
- topNavigation?: {
1321
- id: string;
1322
- label: string;
1323
- default?: string | undefined;
1324
- display?: "auth" | "anon" | "always" | undefined;
1325
- }[] | undefined;
1326
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1327
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1328
1471
  theme?: {
1329
- light?: {
1472
+ dark?: {
1330
1473
  input?: string | undefined;
1474
+ radius?: string | undefined;
1475
+ border?: string | undefined;
1331
1476
  background?: string | undefined;
1332
1477
  foreground?: string | undefined;
1333
1478
  card?: string | undefined;
@@ -1344,12 +1489,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1344
1489
  accentForeground?: string | undefined;
1345
1490
  destructive?: string | undefined;
1346
1491
  destructiveForeground?: string | undefined;
1347
- border?: string | undefined;
1348
1492
  ring?: string | undefined;
1349
- radius?: string | undefined;
1350
1493
  } | undefined;
1351
- dark?: {
1494
+ light?: {
1352
1495
  input?: string | undefined;
1496
+ radius?: string | undefined;
1497
+ border?: string | undefined;
1353
1498
  background?: string | undefined;
1354
1499
  foreground?: string | undefined;
1355
1500
  card?: string | undefined;
@@ -1366,27 +1511,58 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1366
1511
  accentForeground?: string | undefined;
1367
1512
  destructive?: string | undefined;
1368
1513
  destructiveForeground?: string | undefined;
1369
- border?: string | undefined;
1370
1514
  ring?: string | undefined;
1371
- radius?: string | undefined;
1372
1515
  } | undefined;
1373
- } | undefined;
1374
- metadata?: {
1375
- description?: string | undefined;
1376
- title?: string | undefined;
1377
- logo?: string | undefined;
1378
- favicon?: string | undefined;
1379
- generator?: string | undefined;
1380
- applicationName?: string | undefined;
1381
- referrer?: string | undefined;
1382
- keywords?: string[] | undefined;
1383
- authors?: string[] | undefined;
1384
- creator?: string | undefined;
1385
- publisher?: string | undefined;
1516
+ fonts?: {
1517
+ sans?: {
1518
+ url: string;
1519
+ fontFamily: string;
1520
+ } | undefined;
1521
+ mono?: {
1522
+ url: string;
1523
+ fontFamily: string;
1524
+ } | undefined;
1525
+ } | undefined;
1386
1526
  } | undefined;
1387
1527
  mdx?: {
1388
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1528
+ components?: MdxComponentsType;
1389
1529
  } | undefined;
1530
+ page?: {
1531
+ banner?: {
1532
+ message: NonNullable<ReactNode>;
1533
+ 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]>>;
1534
+ dismissible?: boolean | undefined;
1535
+ } | undefined;
1536
+ pageTitle?: string | undefined;
1537
+ logoUrl?: string | undefined;
1538
+ logo?: {
1539
+ src: {
1540
+ dark: string;
1541
+ light: string;
1542
+ };
1543
+ width?: string | undefined;
1544
+ alt?: string | undefined;
1545
+ } | undefined;
1546
+ } | undefined;
1547
+ UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1548
+ customPages?: {
1549
+ path: string;
1550
+ element?: NonNullable<ReactNode> | undefined;
1551
+ render?: ComponentType<ExposedComponentProps> | undefined;
1552
+ prose?: boolean | undefined;
1553
+ }[] | undefined;
1554
+ build?: {
1555
+ remarkPlugins?: Options["remarkPlugins"];
1556
+ rehypePlugins?: Options["rehypePlugins"];
1557
+ } | undefined;
1558
+ basePath?: string | undefined;
1559
+ topNavigation?: {
1560
+ id: string;
1561
+ label: string;
1562
+ default?: string | undefined;
1563
+ display?: "auth" | "anon" | "always" | undefined;
1564
+ }[] | undefined;
1565
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1390
1566
  authentication?: {
1391
1567
  type: "clerk";
1392
1568
  clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
@@ -1428,60 +1604,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1428
1604
  type: "url";
1429
1605
  input: string;
1430
1606
  server?: string | undefined;
1607
+ id?: string | undefined;
1431
1608
  navigationId?: string | undefined;
1609
+ categories?: {
1610
+ tags: string[];
1611
+ label: string;
1612
+ }[] | undefined;
1432
1613
  } | {
1433
1614
  type: "file";
1434
1615
  input: string;
1435
1616
  server?: string | undefined;
1617
+ id?: string | undefined;
1436
1618
  navigationId?: string | undefined;
1619
+ categories?: {
1620
+ tags: string[];
1621
+ label: string;
1622
+ }[] | undefined;
1623
+ postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1437
1624
  } | {
1438
1625
  type: "raw";
1439
1626
  input: string;
1440
1627
  server?: string | undefined;
1628
+ id?: string | undefined;
1441
1629
  navigationId?: string | undefined;
1630
+ categories?: {
1631
+ tags: string[];
1632
+ label: string;
1633
+ }[] | undefined;
1442
1634
  } | ({
1443
1635
  type: "url";
1444
1636
  input: string;
1445
1637
  server?: string | undefined;
1638
+ id?: string | undefined;
1446
1639
  navigationId?: string | undefined;
1640
+ categories?: {
1641
+ tags: string[];
1642
+ label: string;
1643
+ }[] | undefined;
1447
1644
  } | {
1448
1645
  type: "file";
1449
1646
  input: string;
1450
1647
  server?: string | undefined;
1648
+ id?: string | undefined;
1451
1649
  navigationId?: string | undefined;
1650
+ categories?: {
1651
+ tags: string[];
1652
+ label: string;
1653
+ }[] | undefined;
1654
+ postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1452
1655
  } | {
1453
1656
  type: "raw";
1454
1657
  input: string;
1455
1658
  server?: string | undefined;
1659
+ id?: string | undefined;
1456
1660
  navigationId?: string | undefined;
1661
+ categories?: {
1662
+ tags: string[];
1663
+ label: string;
1664
+ }[] | undefined;
1457
1665
  })[] | undefined;
1666
+ catalog?: {
1667
+ label: string;
1668
+ navigationId: string;
1669
+ items?: string[] | undefined;
1670
+ } | {
1671
+ label: string;
1672
+ navigationId: string;
1673
+ items?: string[] | undefined;
1674
+ }[] | undefined;
1458
1675
  apiKeys?: {
1459
1676
  enabled: boolean;
1460
1677
  endpoint: string;
1461
1678
  } | {
1462
1679
  enabled: boolean;
1463
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1464
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1465
- deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1680
+ getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
1681
+ rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1682
+ deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1466
1683
  updateKeyDescription?: ((apiKey: {
1467
1684
  id: string;
1468
1685
  description: string;
1469
- }, context: ZudokuContext) => Promise<void>) | undefined;
1686
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1470
1687
  createKey?: ((apiKey: {
1471
1688
  description: string;
1472
1689
  expiresOn?: string;
1473
- }, context: ZudokuContext) => Promise<void>) | undefined;
1690
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1474
1691
  } | undefined;
1475
1692
  redirects?: {
1476
1693
  from: string;
1477
1694
  to: string;
1478
1695
  }[] | undefined;
1479
- customPages?: {
1480
- path: string;
1481
- element?: NonNullable<ReactNode> | undefined;
1482
- render?: ComponentType<ExposedComponentProps> | undefined;
1483
- prose?: boolean | undefined;
1484
- }[] | undefined;
1485
1696
  sitemap?: {
1486
1697
  siteUrl: string;
1487
1698
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1490,10 +1701,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1490
1701
  autoLastmod?: boolean | undefined;
1491
1702
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1492
1703
  } | undefined;
1493
- build?: {
1494
- remarkPlugins?: Options["remarkPlugins"];
1495
- rehypePlugins?: Options["rehypePlugins"];
1496
- } | undefined;
1497
1704
  }, {
1498
1705
  plugins?: ZudokuPlugin[] | undefined;
1499
1706
  search?: {
@@ -1504,35 +1711,24 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1504
1711
  primaryBrandColor: string;
1505
1712
  organizationDisplayName: string;
1506
1713
  } | undefined;
1507
- basePath?: string | undefined;
1508
- page?: {
1509
- pageTitle?: string | undefined;
1510
- logoUrl?: string | undefined;
1511
- logo?: {
1512
- src: {
1513
- light: string;
1514
- dark: string;
1515
- };
1516
- alt?: string | undefined;
1517
- width?: string | undefined;
1518
- } | undefined;
1519
- banner?: {
1520
- message: NonNullable<ReactNode>;
1521
- color?: BannerColorType;
1522
- dismissible?: boolean | undefined;
1523
- } | undefined;
1714
+ metadata?: {
1715
+ description?: string | undefined;
1716
+ title?: string | undefined;
1717
+ logo?: string | undefined;
1718
+ favicon?: string | undefined;
1719
+ generator?: string | undefined;
1720
+ applicationName?: string | undefined;
1721
+ referrer?: string | undefined;
1722
+ keywords?: string[] | undefined;
1723
+ authors?: string[] | undefined;
1724
+ creator?: string | undefined;
1725
+ publisher?: string | undefined;
1524
1726
  } | undefined;
1525
- topNavigation?: {
1526
- id: string;
1527
- label: string;
1528
- default?: string | undefined;
1529
- display?: "auth" | "anon" | "always" | undefined;
1530
- }[] | undefined;
1531
- sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1532
- UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1533
1727
  theme?: {
1534
- light?: {
1728
+ dark?: {
1535
1729
  input?: string | undefined;
1730
+ radius?: string | undefined;
1731
+ border?: string | undefined;
1536
1732
  background?: string | undefined;
1537
1733
  foreground?: string | undefined;
1538
1734
  card?: string | undefined;
@@ -1549,12 +1745,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1549
1745
  accentForeground?: string | undefined;
1550
1746
  destructive?: string | undefined;
1551
1747
  destructiveForeground?: string | undefined;
1552
- border?: string | undefined;
1553
1748
  ring?: string | undefined;
1554
- radius?: string | undefined;
1555
1749
  } | undefined;
1556
- dark?: {
1750
+ light?: {
1557
1751
  input?: string | undefined;
1752
+ radius?: string | undefined;
1753
+ border?: string | undefined;
1558
1754
  background?: string | undefined;
1559
1755
  foreground?: string | undefined;
1560
1756
  card?: string | undefined;
@@ -1571,27 +1767,58 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1571
1767
  accentForeground?: string | undefined;
1572
1768
  destructive?: string | undefined;
1573
1769
  destructiveForeground?: string | undefined;
1574
- border?: string | undefined;
1575
1770
  ring?: string | undefined;
1576
- radius?: string | undefined;
1577
1771
  } | undefined;
1578
- } | undefined;
1579
- metadata?: {
1580
- description?: string | undefined;
1581
- title?: string | undefined;
1582
- logo?: string | undefined;
1583
- favicon?: string | undefined;
1584
- generator?: string | undefined;
1585
- applicationName?: string | undefined;
1586
- referrer?: string | undefined;
1587
- keywords?: string[] | undefined;
1588
- authors?: string[] | undefined;
1589
- creator?: string | undefined;
1590
- publisher?: string | undefined;
1772
+ fonts?: {
1773
+ sans?: {
1774
+ url: string;
1775
+ fontFamily: string;
1776
+ } | undefined;
1777
+ mono?: {
1778
+ url: string;
1779
+ fontFamily: string;
1780
+ } | undefined;
1781
+ } | undefined;
1591
1782
  } | undefined;
1592
1783
  mdx?: {
1593
- components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1784
+ components?: MdxComponentsType;
1785
+ } | undefined;
1786
+ page?: {
1787
+ banner?: {
1788
+ message: NonNullable<ReactNode>;
1789
+ 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]>>;
1790
+ dismissible?: boolean | undefined;
1791
+ } | undefined;
1792
+ pageTitle?: string | undefined;
1793
+ logoUrl?: string | undefined;
1794
+ logo?: {
1795
+ src: {
1796
+ dark: string;
1797
+ light: string;
1798
+ };
1799
+ width?: string | undefined;
1800
+ alt?: string | undefined;
1801
+ } | undefined;
1802
+ } | undefined;
1803
+ UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1804
+ customPages?: {
1805
+ path: string;
1806
+ element?: NonNullable<ReactNode> | undefined;
1807
+ render?: ComponentType<ExposedComponentProps> | undefined;
1808
+ prose?: boolean | undefined;
1809
+ }[] | undefined;
1810
+ build?: {
1811
+ remarkPlugins?: Options["remarkPlugins"];
1812
+ rehypePlugins?: Options["rehypePlugins"];
1594
1813
  } | undefined;
1814
+ basePath?: string | undefined;
1815
+ topNavigation?: {
1816
+ id: string;
1817
+ label: string;
1818
+ default?: string | undefined;
1819
+ display?: "auth" | "anon" | "always" | undefined;
1820
+ }[] | undefined;
1821
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1595
1822
  authentication?: {
1596
1823
  type: "clerk";
1597
1824
  clerkPubKey: `pk_test_${string}` | `pk_live_${string}`;
@@ -1633,60 +1860,95 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1633
1860
  type: "url";
1634
1861
  input: string;
1635
1862
  server?: string | undefined;
1863
+ id?: string | undefined;
1636
1864
  navigationId?: string | undefined;
1865
+ categories?: {
1866
+ tags: string[];
1867
+ label: string;
1868
+ }[] | undefined;
1637
1869
  } | {
1638
1870
  type: "file";
1639
1871
  input: string;
1640
1872
  server?: string | undefined;
1873
+ id?: string | undefined;
1641
1874
  navigationId?: string | undefined;
1875
+ categories?: {
1876
+ tags: string[];
1877
+ label: string;
1878
+ }[] | undefined;
1879
+ postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1642
1880
  } | {
1643
1881
  type: "raw";
1644
1882
  input: string;
1645
1883
  server?: string | undefined;
1884
+ id?: string | undefined;
1646
1885
  navigationId?: string | undefined;
1886
+ categories?: {
1887
+ tags: string[];
1888
+ label: string;
1889
+ }[] | undefined;
1647
1890
  } | ({
1648
1891
  type: "url";
1649
1892
  input: string;
1650
1893
  server?: string | undefined;
1894
+ id?: string | undefined;
1651
1895
  navigationId?: string | undefined;
1896
+ categories?: {
1897
+ tags: string[];
1898
+ label: string;
1899
+ }[] | undefined;
1652
1900
  } | {
1653
1901
  type: "file";
1654
1902
  input: string;
1655
1903
  server?: string | undefined;
1904
+ id?: string | undefined;
1656
1905
  navigationId?: string | undefined;
1906
+ categories?: {
1907
+ tags: string[];
1908
+ label: string;
1909
+ }[] | undefined;
1910
+ postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
1657
1911
  } | {
1658
1912
  type: "raw";
1659
1913
  input: string;
1660
1914
  server?: string | undefined;
1915
+ id?: string | undefined;
1661
1916
  navigationId?: string | undefined;
1917
+ categories?: {
1918
+ tags: string[];
1919
+ label: string;
1920
+ }[] | undefined;
1662
1921
  })[] | undefined;
1922
+ catalog?: {
1923
+ label: string;
1924
+ navigationId: string;
1925
+ items?: string[] | undefined;
1926
+ } | {
1927
+ label: string;
1928
+ navigationId: string;
1929
+ items?: string[] | undefined;
1930
+ }[] | undefined;
1663
1931
  apiKeys?: {
1664
1932
  enabled: boolean;
1665
1933
  endpoint: string;
1666
1934
  } | {
1667
1935
  enabled: boolean;
1668
- getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1669
- rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1670
- deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1936
+ getKeys: (context: import("../../index.js").ZudokuContext) => Promise<import("../../lib/plugins/api-keys/index.js").ApiKey[]>;
1937
+ rollKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1938
+ deleteKey?: ((id: string, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1671
1939
  updateKeyDescription?: ((apiKey: {
1672
1940
  id: string;
1673
1941
  description: string;
1674
- }, context: ZudokuContext) => Promise<void>) | undefined;
1942
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1675
1943
  createKey?: ((apiKey: {
1676
1944
  description: string;
1677
1945
  expiresOn?: string;
1678
- }, context: ZudokuContext) => Promise<void>) | undefined;
1946
+ }, context: import("../../index.js").ZudokuContext) => Promise<void>) | undefined;
1679
1947
  } | undefined;
1680
1948
  redirects?: {
1681
1949
  from: string;
1682
1950
  to: string;
1683
1951
  }[] | undefined;
1684
- customPages?: {
1685
- path: string;
1686
- element?: NonNullable<ReactNode> | undefined;
1687
- render?: ComponentType<ExposedComponentProps> | undefined;
1688
- prose?: boolean | undefined;
1689
- }[] | undefined;
1690
1952
  sitemap?: {
1691
1953
  siteUrl: string;
1692
1954
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1695,16 +1957,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1695
1957
  autoLastmod?: boolean | undefined;
1696
1958
  exclude?: string[] | ((...args: unknown[]) => Promise<string[]>) | undefined;
1697
1959
  } | undefined;
1698
- build?: {
1699
- remarkPlugins?: Options["remarkPlugins"];
1700
- rehypePlugins?: Options["rehypePlugins"];
1701
- } | undefined;
1702
1960
  }>;
1703
- export type ZudokuApiConfig = z.infer<typeof ApiSchema>;
1961
+ /**
1962
+ * Type for the zudoku.config.{js,ts,tsx,jsx} files
1963
+ */
1704
1964
  export type ZudokuConfig = z.infer<typeof ConfigSchema>;
1705
- export type ZudokuSiteMapConfig = z.infer<typeof SiteMapSchema>;
1706
- export type ZudokuDocsConfig = z.infer<typeof DocsConfigSchema>;
1707
- export type TopNavigationItem = z.infer<typeof TopNavigationItemSchema>;
1708
- export type ZudokuRedirect = z.infer<typeof Redirect>;
1709
1965
  export declare function validateConfig(config: unknown): void;
1710
1966
  export {};