zudoku 0.0.0-f865d81 → 0.0.0-fb7d300

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 (392) hide show
  1. package/dist/app/demo.js +0 -2
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +14 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +6 -6
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/main.js +2 -2
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/standalone.js +0 -2
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cli.js +1 -2
  13. package/dist/cli/cli.js.map +1 -1
  14. package/dist/codegen.d.ts +3 -0
  15. package/dist/codegen.js +45 -0
  16. package/dist/codegen.js.map +1 -0
  17. package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
  18. package/dist/config/validators/validate.d.ts +125 -114
  19. package/dist/config/validators/validate.js +6 -5
  20. package/dist/config/validators/validate.js.map +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +1 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  25. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  26. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  27. package/dist/lib/authentication/authentication.d.ts +3 -3
  28. package/dist/lib/authentication/hook.d.ts +5 -4
  29. package/dist/lib/authentication/hook.js +1 -3
  30. package/dist/lib/authentication/hook.js.map +1 -1
  31. package/dist/lib/authentication/providers/auth0.js +12 -11
  32. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  33. package/dist/lib/authentication/providers/openid.d.ts +0 -1
  34. package/dist/lib/authentication/providers/openid.js +11 -26
  35. package/dist/lib/authentication/providers/openid.js.map +1 -1
  36. package/dist/lib/authentication/state.d.ts +25 -4
  37. package/dist/lib/authentication/state.js +28 -3
  38. package/dist/lib/authentication/state.js.map +1 -1
  39. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  40. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  41. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  42. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  43. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  44. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  45. package/dist/lib/components/Bootstrap.d.ts +3 -1
  46. package/dist/lib/components/Bootstrap.js +10 -4
  47. package/dist/lib/components/Bootstrap.js.map +1 -1
  48. package/dist/lib/components/ClientOnly.d.ts +4 -2
  49. package/dist/lib/components/ClientOnly.js +1 -1
  50. package/dist/lib/components/ClientOnly.js.map +1 -1
  51. package/dist/lib/components/DeveloperHint.js +2 -1
  52. package/dist/lib/components/DeveloperHint.js.map +1 -1
  53. package/dist/lib/components/Header.js +16 -10
  54. package/dist/lib/components/Header.js.map +1 -1
  55. package/dist/lib/components/Heading.d.ts +1 -1
  56. package/dist/lib/components/Layout.js +12 -4
  57. package/dist/lib/components/Layout.js.map +1 -1
  58. package/dist/lib/components/MobileTopNavigation.js +6 -7
  59. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  60. package/dist/lib/components/SyntaxHighlight.js +16 -12
  61. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  62. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  63. package/dist/lib/components/ThemeSwitch.js +13 -0
  64. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  65. package/dist/lib/components/TopNavigation.d.ts +2 -0
  66. package/dist/lib/components/TopNavigation.js +13 -7
  67. package/dist/lib/components/TopNavigation.js.map +1 -1
  68. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  69. package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
  70. package/dist/lib/components/Zudoku.js.map +1 -0
  71. package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
  72. package/dist/lib/components/context/ZudokuContext.js +8 -13
  73. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  74. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  75. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  76. package/dist/lib/components/index.d.ts +18 -10
  77. package/dist/lib/components/index.js +2 -3
  78. package/dist/lib/components/index.js.map +1 -1
  79. package/dist/lib/components/navigation/Sidebar.js +1 -1
  80. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  81. package/dist/lib/components/navigation/utils.js +2 -2
  82. package/dist/lib/components/navigation/utils.js.map +1 -1
  83. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
  84. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
  85. package/dist/lib/core/ZudokuContext.js.map +1 -0
  86. package/dist/lib/core/plugins.d.ts +18 -12
  87. package/dist/lib/core/plugins.js.map +1 -1
  88. package/dist/lib/errors/ErrorAlert.js +1 -1
  89. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  90. package/dist/lib/oas/graphql/index.js +4 -4
  91. package/dist/lib/oas/graphql/index.js.map +1 -1
  92. package/dist/lib/oas/parser/upgrade/index.js +3 -1
  93. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  94. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  95. package/dist/lib/plugins/api-keys/index.js +3 -0
  96. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  97. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  98. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  99. package/dist/lib/plugins/markdown/index.d.ts +2 -2
  100. package/dist/lib/plugins/markdown/index.js.map +1 -1
  101. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  102. package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
  103. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  104. package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
  105. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  106. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  107. package/dist/lib/plugins/openapi/Endpoint.js +5 -9
  108. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  109. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  110. package/dist/lib/plugins/openapi/OperationList.js +21 -22
  111. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  112. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  113. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  114. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
  115. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  116. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
  117. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  118. package/dist/lib/plugins/openapi/Route.d.ts +4 -4
  119. package/dist/lib/plugins/openapi/Route.js +2 -4
  120. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  121. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  122. package/dist/lib/plugins/openapi/Sidecar.js +35 -33
  123. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  124. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  125. package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
  126. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  127. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  128. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  129. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  130. package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
  131. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  132. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  133. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  134. package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
  135. package/dist/lib/plugins/openapi/client/worker.js +23 -14
  136. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  137. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  138. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  139. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  140. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  141. package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
  142. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  143. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
  144. package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
  145. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  146. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  147. package/dist/lib/plugins/openapi/index.js +40 -53
  148. package/dist/lib/plugins/openapi/index.js.map +1 -1
  149. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  150. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  151. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  152. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
  153. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  154. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  155. package/dist/lib/plugins/openapi-worker.js +7 -1
  156. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  157. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  158. package/dist/lib/plugins/redirect/index.js +1 -1
  159. package/dist/lib/plugins/redirect/index.js.map +1 -1
  160. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  161. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  162. package/dist/lib/ui/ActionButton.d.ts +4 -0
  163. package/dist/lib/ui/ActionButton.js +10 -0
  164. package/dist/lib/ui/ActionButton.js.map +1 -0
  165. package/dist/lib/util/MdxComponents.d.ts +1 -1
  166. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  167. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  168. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  169. package/dist/lib/util/useOnScreen.d.ts +4 -0
  170. package/dist/lib/util/useOnScreen.js +19 -0
  171. package/dist/lib/util/useOnScreen.js.map +1 -0
  172. package/dist/vite/build.js +5 -1
  173. package/dist/vite/build.js.map +1 -1
  174. package/dist/vite/config.d.ts +2 -8
  175. package/dist/vite/config.js +13 -54
  176. package/dist/vite/config.js.map +1 -1
  177. package/dist/vite/html.js +0 -2
  178. package/dist/vite/html.js.map +1 -1
  179. package/dist/vite/output.d.ts +101 -0
  180. package/dist/vite/output.js +33 -0
  181. package/dist/vite/output.js.map +1 -0
  182. package/dist/vite/plugin-component.js +1 -1
  183. package/dist/vite/plugin-component.js.map +1 -1
  184. package/dist/vite/plugin-config.d.ts +2 -3
  185. package/dist/vite/plugin-config.js +2 -3
  186. package/dist/vite/plugin-config.js.map +1 -1
  187. package/dist/vite/plugin-mdx.d.ts +0 -6
  188. package/dist/vite/plugin-mdx.js +3 -2
  189. package/dist/vite/plugin-mdx.js.map +1 -1
  190. package/dist/vite/plugin.js +1 -3
  191. package/dist/vite/plugin.js.map +1 -1
  192. package/dist/vite/prerender.js +3 -2
  193. package/dist/vite/prerender.js.map +1 -1
  194. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  195. package/dist/vite/remarkStaticGeneration.js +125 -0
  196. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  197. package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
  198. package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
  199. package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
  200. package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
  201. package/lib/Button-jK0EsymC.js +48 -0
  202. package/lib/Button-jK0EsymC.js.map +1 -0
  203. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  204. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  205. package/lib/Markdown-ievDDhFT.js +15192 -0
  206. package/lib/Markdown-ievDDhFT.js.map +1 -0
  207. package/lib/{MdxPage-DKMH_t0f.js → MdxPage-Bwn-VSsH.js} +5 -5
  208. package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
  209. package/lib/OperationList-BwBl1xrD.js +4691 -0
  210. package/lib/OperationList-BwBl1xrD.js.map +1 -0
  211. package/lib/Route-DlG_HTMu.js +11 -0
  212. package/lib/Route-DlG_HTMu.js.map +1 -0
  213. package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
  214. package/lib/Select-O9ZM3ZgX.js.map +1 -0
  215. package/lib/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
  216. package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
  217. package/lib/SlotletProvider-DyomlzGx.js +252 -0
  218. package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
  219. package/lib/Spinner-3cQDBVGr.js +7 -0
  220. package/lib/Spinner-3cQDBVGr.js.map +1 -0
  221. package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
  222. package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
  223. package/lib/assets/{worker-Bf8vjASY.js → worker-CPsGZsve.js} +565 -561
  224. package/lib/assets/{worker-Bf8vjASY.js.map → worker-CPsGZsve.js.map} +1 -1
  225. package/lib/context-D1nXWxm7.js +22 -0
  226. package/lib/context-D1nXWxm7.js.map +1 -0
  227. package/lib/createServer-DK-g7kbB.js +16089 -0
  228. package/lib/createServer-DK-g7kbB.js.map +1 -0
  229. package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
  230. package/lib/hook-hEqe7fPB.js.map +1 -0
  231. package/lib/index-Czzd9rjU.js +899 -0
  232. package/lib/index-Czzd9rjU.js.map +1 -0
  233. package/lib/index-DNxQ_rCt.js +1273 -0
  234. package/lib/index-DNxQ_rCt.js.map +1 -0
  235. package/lib/index-Yn8c3UWE.js +921 -0
  236. package/lib/index-Yn8c3UWE.js.map +1 -0
  237. package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
  238. package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
  239. package/lib/state-tsXBLONe.js +203 -0
  240. package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
  241. package/lib/ui/ActionButton.js +25 -0
  242. package/lib/ui/ActionButton.js.map +1 -0
  243. package/lib/useExposedProps-CTPtylCV.js +10 -0
  244. package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
  245. package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
  246. package/lib/utils-DcpDOncX.js.map +1 -0
  247. package/lib/zudoku.auth-auth0.js +24 -18
  248. package/lib/zudoku.auth-auth0.js.map +1 -1
  249. package/lib/zudoku.auth-clerk.js +2 -2
  250. package/lib/zudoku.auth-openid.js +124 -138
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +1291 -1119
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +10 -16336
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-keys.js +41 -39
  257. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  258. package/lib/zudoku.plugin-custom-pages.js +2 -2
  259. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  260. package/lib/zudoku.plugin-markdown.js +1 -1
  261. package/lib/zudoku.plugin-markdown.js.map +1 -1
  262. package/lib/zudoku.plugin-openapi.js +5 -9
  263. package/lib/zudoku.plugin-openapi.js.map +1 -1
  264. package/lib/zudoku.plugin-redirect.js +2 -2
  265. package/lib/zudoku.plugin-redirect.js.map +1 -1
  266. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  268. package/package.json +15 -5
  269. package/src/app/demo.tsx +0 -3
  270. package/src/app/entry.client.tsx +14 -0
  271. package/src/app/entry.server.tsx +59 -53
  272. package/src/app/main.css +1 -1
  273. package/src/app/main.tsx +4 -4
  274. package/src/app/standalone.tsx +0 -3
  275. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  276. package/src/lib/authentication/authentication.ts +3 -3
  277. package/src/lib/authentication/hook.ts +1 -3
  278. package/src/lib/authentication/providers/auth0.tsx +17 -11
  279. package/src/lib/authentication/providers/openid.tsx +12 -30
  280. package/src/lib/authentication/state.ts +50 -9
  281. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  282. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  283. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  284. package/src/lib/components/Bootstrap.tsx +36 -14
  285. package/src/lib/components/ClientOnly.tsx +6 -3
  286. package/src/lib/components/DeveloperHint.tsx +6 -1
  287. package/src/lib/components/Header.tsx +68 -40
  288. package/src/lib/components/Layout.tsx +49 -37
  289. package/src/lib/components/MobileTopNavigation.tsx +15 -18
  290. package/src/lib/components/SyntaxHighlight.tsx +81 -46
  291. package/src/lib/components/ThemeSwitch.tsx +26 -0
  292. package/src/lib/components/TopNavigation.tsx +27 -19
  293. package/src/lib/components/Zudoku.tsx +108 -0
  294. package/src/lib/components/context/ZudokuContext.ts +11 -16
  295. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  296. package/src/lib/components/index.ts +2 -3
  297. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  298. package/src/lib/components/navigation/utils.ts +2 -2
  299. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
  300. package/src/lib/core/plugins.ts +20 -16
  301. package/src/lib/errors/ErrorAlert.tsx +2 -1
  302. package/src/lib/oas/graphql/index.ts +4 -4
  303. package/src/lib/oas/parser/upgrade/index.ts +3 -1
  304. package/src/lib/plugins/api-keys/index.tsx +12 -9
  305. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  306. package/src/lib/plugins/markdown/index.tsx +2 -2
  307. package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
  308. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
  309. package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
  310. package/src/lib/plugins/openapi/OperationList.tsx +20 -40
  311. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  312. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
  313. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
  314. package/src/lib/plugins/openapi/Route.tsx +11 -12
  315. package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
  316. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
  317. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  318. package/src/lib/plugins/openapi/client/createServer.ts +2 -0
  319. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  320. package/src/lib/plugins/openapi/client/worker.ts +38 -24
  321. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  322. package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
  323. package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
  324. package/src/lib/plugins/openapi/index.tsx +42 -67
  325. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  326. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
  327. package/src/lib/plugins/openapi-worker.ts +11 -1
  328. package/src/lib/plugins/redirect/index.tsx +5 -9
  329. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  330. package/src/lib/ui/ActionButton.tsx +28 -0
  331. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  332. package/src/lib/util/useOnScreen.ts +32 -0
  333. package/dist/lib/components/DevPortal.js.map +0 -1
  334. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  335. package/dist/lib/components/context/ThemeContext.js +0 -7
  336. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  337. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  338. package/dist/lib/components/context/ThemeProvider.js +0 -23
  339. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  340. package/dist/lib/core/DevPortalContext.js.map +0 -1
  341. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  342. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  343. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  344. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  345. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  346. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  347. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  348. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  349. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  350. package/dist/lib/themeToggle.d.ts +0 -1
  351. package/dist/lib/themeToggle.js +0 -7
  352. package/dist/lib/themeToggle.js.map +0 -1
  353. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  354. package/dist/lib/util/createWaitForNotify.js +0 -15
  355. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  356. package/dist/vite/plugin-html-transform.d.ts +0 -2
  357. package/dist/vite/plugin-html-transform.js +0 -15
  358. package/dist/vite/plugin-html-transform.js.map +0 -1
  359. package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
  360. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  361. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  362. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  363. package/lib/Markdown-BDcCAWwm.js +0 -18059
  364. package/lib/Markdown-BDcCAWwm.js.map +0 -1
  365. package/lib/OperationList-Tj7ubW_t.js +0 -604
  366. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  367. package/lib/Route-C3DGB6OS.js +0 -13
  368. package/lib/Route-C3DGB6OS.js.map +0 -1
  369. package/lib/Select-Bagt3Bme.js.map +0 -1
  370. package/lib/SlotletProvider-Da7eFgd2.js +0 -241
  371. package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
  372. package/lib/Spinner-C6zroowC.js.map +0 -1
  373. package/lib/StaggeredRender-DDHSzQKE.js +0 -17
  374. package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
  375. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  376. package/lib/hook-sn0zMTkE.js.map +0 -1
  377. package/lib/index-AjWCJNGC.js +0 -5690
  378. package/lib/index-AjWCJNGC.js.map +0 -1
  379. package/lib/index-CRo94sKK.js +0 -1783
  380. package/lib/index-CRo94sKK.js.map +0 -1
  381. package/lib/state-CsuHT8ZO.js +0 -183
  382. package/lib/urql-core-KJnLL26g.js +0 -1455
  383. package/lib/urql-core-KJnLL26g.js.map +0 -1
  384. package/lib/useExposedProps-ChOIUaS4.js +0 -9
  385. package/src/lib/components/DevPortal.tsx +0 -111
  386. package/src/lib/components/context/ThemeContext.tsx +0 -8
  387. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  388. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  389. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  390. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  391. package/src/lib/themeToggle.ts +0 -7
  392. package/src/lib/util/createWaitForNotify.ts +0 -18
@@ -1,9 +1,9 @@
1
1
  import type { Options } from "@mdx-js/rollup";
2
2
  import type { ComponentType, ReactNode } from "react";
3
- import type { DevPortalPlugin } from "src/lib/core/plugins.js";
3
+ import type { ZudokuPlugin } from "src/lib/core/plugins.js";
4
4
  import z, { type ZodEnumDef, ZodOptional, ZodString, ZodType, ZodUnion } from "zod";
5
5
  import type { ExposedComponentProps } from "../../lib/components/SlotletProvider.js";
6
- import { DevPortalContext } from "../../lib/core/DevPortalContext.js";
6
+ import { ZudokuContext } from "../../lib/core/ZudokuContext.js";
7
7
  import type { ApiKey } from "../../lib/plugins/api-keys/index.js";
8
8
  declare const ApiSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
9
9
  type: z.ZodLiteral<"url">;
@@ -126,13 +126,13 @@ declare const TopNavigationItemSchema: z.ZodObject<{
126
126
  default: z.ZodOptional<z.ZodString>;
127
127
  display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
128
128
  }, "strip", z.ZodTypeAny, {
129
- label: string;
130
129
  id: string;
130
+ label: string;
131
131
  default?: string | undefined;
132
132
  display?: "auth" | "anon" | "always" | undefined;
133
133
  }, {
134
- label: string;
135
134
  id: string;
135
+ label: string;
136
136
  default?: string | undefined;
137
137
  display?: "auth" | "anon" | "always" | undefined;
138
138
  }>;
@@ -140,6 +140,16 @@ type BannerColorType = ZodOptional<ZodUnion<[
140
140
  ZodType<"note" | "tip" | "info" | "caution" | "danger" | (string & {}), ZodEnumDef>,
141
141
  ZodString
142
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
+ }>;
143
153
  declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
144
154
  basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
145
155
  page: z.ZodOptional<z.ZodObject<{
@@ -179,11 +189,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
179
189
  dismissible: z.ZodOptional<z.ZodBoolean>;
180
190
  }, "strip", z.ZodTypeAny, {
181
191
  message: NonNullable<ReactNode>;
182
- color?: string | (string & {}) | undefined;
192
+ color?: BannerColorType;
183
193
  dismissible?: boolean | undefined;
184
194
  }, {
185
195
  message: NonNullable<ReactNode>;
186
- color?: string | (string & {}) | undefined;
196
+ color?: BannerColorType;
187
197
  dismissible?: boolean | undefined;
188
198
  }>>>;
189
199
  }, "strip", z.ZodTypeAny, {
@@ -199,7 +209,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
199
209
  } | undefined;
200
210
  banner?: {
201
211
  message: NonNullable<ReactNode>;
202
- color?: string | (string & {}) | undefined;
212
+ color?: BannerColorType;
203
213
  dismissible?: boolean | undefined;
204
214
  } | undefined;
205
215
  }, {
@@ -215,7 +225,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
215
225
  } | undefined;
216
226
  banner?: {
217
227
  message: NonNullable<ReactNode>;
218
- color?: string | (string & {}) | undefined;
228
+ color?: BannerColorType;
219
229
  dismissible?: boolean | undefined;
220
230
  } | undefined;
221
231
  }>>;
@@ -225,13 +235,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
225
235
  default: z.ZodOptional<z.ZodString>;
226
236
  display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
227
237
  }, "strip", z.ZodTypeAny, {
228
- label: string;
229
238
  id: string;
239
+ label: string;
230
240
  default?: string | undefined;
231
241
  display?: "auth" | "anon" | "always" | undefined;
232
242
  }, {
233
- label: string;
234
243
  id: string;
244
+ label: string;
235
245
  default?: string | undefined;
236
246
  display?: "auth" | "anon" | "always" | undefined;
237
247
  }>, "many">>;
@@ -260,6 +270,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
260
270
  ring: z.ZodOptional<z.ZodString>;
261
271
  radius: z.ZodOptional<z.ZodString>;
262
272
  }, "strip", z.ZodTypeAny, {
273
+ input?: string | undefined;
263
274
  background?: string | undefined;
264
275
  foreground?: string | undefined;
265
276
  card?: string | undefined;
@@ -277,10 +288,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
277
288
  destructive?: string | undefined;
278
289
  destructiveForeground?: string | undefined;
279
290
  border?: string | undefined;
280
- input?: string | undefined;
281
291
  ring?: string | undefined;
282
292
  radius?: string | undefined;
283
293
  }, {
294
+ input?: string | undefined;
284
295
  background?: string | undefined;
285
296
  foreground?: string | undefined;
286
297
  card?: string | undefined;
@@ -298,7 +309,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
298
309
  destructive?: string | undefined;
299
310
  destructiveForeground?: string | undefined;
300
311
  border?: string | undefined;
301
- input?: string | undefined;
302
312
  ring?: string | undefined;
303
313
  radius?: string | undefined;
304
314
  }>>;
@@ -324,6 +334,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
324
334
  ring: z.ZodOptional<z.ZodString>;
325
335
  radius: z.ZodOptional<z.ZodString>;
326
336
  }, "strip", z.ZodTypeAny, {
337
+ input?: string | undefined;
327
338
  background?: string | undefined;
328
339
  foreground?: string | undefined;
329
340
  card?: string | undefined;
@@ -341,10 +352,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
341
352
  destructive?: string | undefined;
342
353
  destructiveForeground?: string | undefined;
343
354
  border?: string | undefined;
344
- input?: string | undefined;
345
355
  ring?: string | undefined;
346
356
  radius?: string | undefined;
347
357
  }, {
358
+ input?: string | undefined;
348
359
  background?: string | undefined;
349
360
  foreground?: string | undefined;
350
361
  card?: string | undefined;
@@ -362,12 +373,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
362
373
  destructive?: string | undefined;
363
374
  destructiveForeground?: string | undefined;
364
375
  border?: string | undefined;
365
- input?: string | undefined;
366
376
  ring?: string | undefined;
367
377
  radius?: string | undefined;
368
378
  }>>;
369
379
  }, "strip", z.ZodTypeAny, {
370
380
  light?: {
381
+ input?: string | undefined;
371
382
  background?: string | undefined;
372
383
  foreground?: string | undefined;
373
384
  card?: string | undefined;
@@ -385,11 +396,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
385
396
  destructive?: string | undefined;
386
397
  destructiveForeground?: string | undefined;
387
398
  border?: string | undefined;
388
- input?: string | undefined;
389
399
  ring?: string | undefined;
390
400
  radius?: string | undefined;
391
401
  } | undefined;
392
402
  dark?: {
403
+ input?: string | undefined;
393
404
  background?: string | undefined;
394
405
  foreground?: string | undefined;
395
406
  card?: string | undefined;
@@ -407,12 +418,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
407
418
  destructive?: string | undefined;
408
419
  destructiveForeground?: string | undefined;
409
420
  border?: string | undefined;
410
- input?: string | undefined;
411
421
  ring?: string | undefined;
412
422
  radius?: string | undefined;
413
423
  } | undefined;
414
424
  }, {
415
425
  light?: {
426
+ input?: string | undefined;
416
427
  background?: string | undefined;
417
428
  foreground?: string | undefined;
418
429
  card?: string | undefined;
@@ -430,11 +441,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
430
441
  destructive?: string | undefined;
431
442
  destructiveForeground?: string | undefined;
432
443
  border?: string | undefined;
433
- input?: string | undefined;
434
444
  ring?: string | undefined;
435
445
  radius?: string | undefined;
436
446
  } | undefined;
437
447
  dark?: {
448
+ input?: string | undefined;
438
449
  background?: string | undefined;
439
450
  foreground?: string | undefined;
440
451
  card?: string | undefined;
@@ -452,7 +463,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
452
463
  destructive?: string | undefined;
453
464
  destructiveForeground?: string | undefined;
454
465
  border?: string | undefined;
455
- input?: string | undefined;
456
466
  ring?: string | undefined;
457
467
  radius?: string | undefined;
458
468
  } | undefined;
@@ -471,8 +481,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
471
481
  publisher: z.ZodOptional<z.ZodString>;
472
482
  }, "strip", z.ZodTypeAny, {
473
483
  description?: string | undefined;
474
- logo?: string | undefined;
475
484
  title?: string | undefined;
485
+ logo?: string | undefined;
476
486
  favicon?: string | undefined;
477
487
  generator?: string | undefined;
478
488
  applicationName?: string | undefined;
@@ -483,8 +493,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
483
493
  publisher?: string | undefined;
484
494
  }, {
485
495
  description?: string | undefined;
486
- logo?: string | undefined;
487
496
  title?: string | undefined;
497
+ logo?: string | undefined;
488
498
  favicon?: string | undefined;
489
499
  generator?: string | undefined;
490
500
  applicationName?: string | undefined;
@@ -750,49 +760,49 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
750
760
  endpoint: string;
751
761
  }>, z.ZodObject<{
752
762
  enabled: z.ZodBoolean;
753
- getKeys: z.ZodType<(context: DevPortalContext) => Promise<ApiKey[]>, z.ZodTypeDef, (context: DevPortalContext) => Promise<ApiKey[]>>;
754
- rollKey: z.ZodOptional<z.ZodType<(id: string, context: DevPortalContext) => Promise<void>, z.ZodTypeDef, (id: string, context: DevPortalContext) => Promise<void>>>;
755
- deleteKey: z.ZodOptional<z.ZodType<(id: string, context: DevPortalContext) => Promise<void>, z.ZodTypeDef, (id: string, context: DevPortalContext) => Promise<void>>>;
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>>>;
756
766
  updateKeyDescription: z.ZodOptional<z.ZodType<(apiKey: {
757
767
  id: string;
758
768
  description: string;
759
- }, context: DevPortalContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
769
+ }, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
760
770
  id: string;
761
771
  description: string;
762
- }, context: DevPortalContext) => Promise<void>>>;
772
+ }, context: ZudokuContext) => Promise<void>>>;
763
773
  createKey: z.ZodOptional<z.ZodType<(apiKey: {
764
774
  description: string;
765
775
  expiresOn?: string;
766
- }, context: DevPortalContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
776
+ }, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
767
777
  description: string;
768
778
  expiresOn?: string;
769
- }, context: DevPortalContext) => Promise<void>>>;
779
+ }, context: ZudokuContext) => Promise<void>>>;
770
780
  }, "strip", z.ZodTypeAny, {
771
781
  enabled: boolean;
772
- getKeys: (context: DevPortalContext) => Promise<ApiKey[]>;
773
- rollKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
774
- deleteKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
782
+ getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
783
+ rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
784
+ deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
775
785
  updateKeyDescription?: ((apiKey: {
776
786
  id: string;
777
787
  description: string;
778
- }, context: DevPortalContext) => Promise<void>) | undefined;
788
+ }, context: ZudokuContext) => Promise<void>) | undefined;
779
789
  createKey?: ((apiKey: {
780
790
  description: string;
781
791
  expiresOn?: string;
782
- }, context: DevPortalContext) => Promise<void>) | undefined;
792
+ }, context: ZudokuContext) => Promise<void>) | undefined;
783
793
  }, {
784
794
  enabled: boolean;
785
- getKeys: (context: DevPortalContext) => Promise<ApiKey[]>;
786
- rollKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
787
- deleteKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
795
+ getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
796
+ rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
797
+ deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
788
798
  updateKeyDescription?: ((apiKey: {
789
799
  id: string;
790
800
  description: string;
791
- }, context: DevPortalContext) => Promise<void>) | undefined;
801
+ }, context: ZudokuContext) => Promise<void>) | undefined;
792
802
  createKey?: ((apiKey: {
793
803
  description: string;
794
804
  expiresOn?: string;
795
- }, context: DevPortalContext) => Promise<void>) | undefined;
805
+ }, context: ZudokuContext) => Promise<void>) | undefined;
796
806
  }>]>>;
797
807
  redirects: z.ZodOptional<z.ZodArray<z.ZodObject<{
798
808
  from: z.ZodString;
@@ -820,7 +830,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
820
830
  render?: ComponentType<ExposedComponentProps> | undefined;
821
831
  prose?: boolean | undefined;
822
832
  }>, "many">>;
823
- plugins: z.ZodOptional<z.ZodArray<z.ZodType<DevPortalPlugin, z.ZodTypeDef, DevPortalPlugin>, "many">>;
833
+ plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
824
834
  sitemap: z.ZodOptional<z.ZodOptional<z.ZodObject<{
825
835
  /**
826
836
  * Base url of your website
@@ -870,6 +880,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
870
880
  rehypePlugins?: Options["rehypePlugins"];
871
881
  }>>;
872
882
  }, "strip", z.ZodTypeAny, {
883
+ plugins?: ZudokuPlugin[] | undefined;
884
+ search?: {
885
+ type: "inkeep";
886
+ apiKey: string;
887
+ integrationId: string;
888
+ organizationId: string;
889
+ primaryBrandColor: string;
890
+ organizationDisplayName: string;
891
+ } | undefined;
873
892
  basePath?: string | undefined;
874
893
  page?: {
875
894
  pageTitle?: string | undefined;
@@ -884,13 +903,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
884
903
  } | undefined;
885
904
  banner?: {
886
905
  message: NonNullable<ReactNode>;
887
- color?: string | (string & {}) | undefined;
906
+ color?: BannerColorType;
888
907
  dismissible?: boolean | undefined;
889
908
  } | undefined;
890
909
  } | undefined;
891
910
  topNavigation?: {
892
- label: string;
893
911
  id: string;
912
+ label: string;
894
913
  default?: string | undefined;
895
914
  display?: "auth" | "anon" | "always" | undefined;
896
915
  }[] | undefined;
@@ -898,6 +917,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
898
917
  UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
899
918
  theme?: {
900
919
  light?: {
920
+ input?: string | undefined;
901
921
  background?: string | undefined;
902
922
  foreground?: string | undefined;
903
923
  card?: string | undefined;
@@ -915,11 +935,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
915
935
  destructive?: string | undefined;
916
936
  destructiveForeground?: string | undefined;
917
937
  border?: string | undefined;
918
- input?: string | undefined;
919
938
  ring?: string | undefined;
920
939
  radius?: string | undefined;
921
940
  } | undefined;
922
941
  dark?: {
942
+ input?: string | undefined;
923
943
  background?: string | undefined;
924
944
  foreground?: string | undefined;
925
945
  card?: string | undefined;
@@ -937,15 +957,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
937
957
  destructive?: string | undefined;
938
958
  destructiveForeground?: string | undefined;
939
959
  border?: string | undefined;
940
- input?: string | undefined;
941
960
  ring?: string | undefined;
942
961
  radius?: string | undefined;
943
962
  } | undefined;
944
963
  } | undefined;
945
964
  metadata?: {
946
965
  description?: string | undefined;
947
- logo?: string | undefined;
948
966
  title?: string | undefined;
967
+ logo?: string | undefined;
949
968
  favicon?: string | undefined;
950
969
  generator?: string | undefined;
951
970
  applicationName?: string | undefined;
@@ -955,14 +974,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
955
974
  creator?: string | undefined;
956
975
  publisher?: string | undefined;
957
976
  } | undefined;
958
- search?: {
959
- type: "inkeep";
960
- apiKey: string;
961
- integrationId: string;
962
- organizationId: string;
963
- primaryBrandColor: string;
964
- organizationDisplayName: string;
965
- } | undefined;
966
977
  mdx?: {
967
978
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
968
979
  } | undefined;
@@ -1039,17 +1050,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1039
1050
  endpoint: string;
1040
1051
  } | {
1041
1052
  enabled: boolean;
1042
- getKeys: (context: DevPortalContext) => Promise<ApiKey[]>;
1043
- rollKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1044
- deleteKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1053
+ getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1054
+ rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1055
+ deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1045
1056
  updateKeyDescription?: ((apiKey: {
1046
1057
  id: string;
1047
1058
  description: string;
1048
- }, context: DevPortalContext) => Promise<void>) | undefined;
1059
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1049
1060
  createKey?: ((apiKey: {
1050
1061
  description: string;
1051
1062
  expiresOn?: string;
1052
- }, context: DevPortalContext) => Promise<void>) | undefined;
1063
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1053
1064
  } | undefined;
1054
1065
  redirects?: {
1055
1066
  from: string;
@@ -1061,7 +1072,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1061
1072
  render?: ComponentType<ExposedComponentProps> | undefined;
1062
1073
  prose?: boolean | undefined;
1063
1074
  }[] | undefined;
1064
- plugins?: DevPortalPlugin[] | undefined;
1065
1075
  sitemap?: {
1066
1076
  siteUrl: string;
1067
1077
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1075,6 +1085,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1075
1085
  rehypePlugins?: Options["rehypePlugins"];
1076
1086
  } | undefined;
1077
1087
  }, {
1088
+ plugins?: ZudokuPlugin[] | undefined;
1089
+ search?: {
1090
+ type: "inkeep";
1091
+ apiKey: string;
1092
+ integrationId: string;
1093
+ organizationId: string;
1094
+ primaryBrandColor: string;
1095
+ organizationDisplayName: string;
1096
+ } | undefined;
1078
1097
  basePath?: string | undefined;
1079
1098
  page?: {
1080
1099
  pageTitle?: string | undefined;
@@ -1089,13 +1108,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1089
1108
  } | undefined;
1090
1109
  banner?: {
1091
1110
  message: NonNullable<ReactNode>;
1092
- color?: string | (string & {}) | undefined;
1111
+ color?: BannerColorType;
1093
1112
  dismissible?: boolean | undefined;
1094
1113
  } | undefined;
1095
1114
  } | undefined;
1096
1115
  topNavigation?: {
1097
- label: string;
1098
1116
  id: string;
1117
+ label: string;
1099
1118
  default?: string | undefined;
1100
1119
  display?: "auth" | "anon" | "always" | undefined;
1101
1120
  }[] | undefined;
@@ -1103,6 +1122,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1103
1122
  UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1104
1123
  theme?: {
1105
1124
  light?: {
1125
+ input?: string | undefined;
1106
1126
  background?: string | undefined;
1107
1127
  foreground?: string | undefined;
1108
1128
  card?: string | undefined;
@@ -1120,11 +1140,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1120
1140
  destructive?: string | undefined;
1121
1141
  destructiveForeground?: string | undefined;
1122
1142
  border?: string | undefined;
1123
- input?: string | undefined;
1124
1143
  ring?: string | undefined;
1125
1144
  radius?: string | undefined;
1126
1145
  } | undefined;
1127
1146
  dark?: {
1147
+ input?: string | undefined;
1128
1148
  background?: string | undefined;
1129
1149
  foreground?: string | undefined;
1130
1150
  card?: string | undefined;
@@ -1142,15 +1162,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1142
1162
  destructive?: string | undefined;
1143
1163
  destructiveForeground?: string | undefined;
1144
1164
  border?: string | undefined;
1145
- input?: string | undefined;
1146
1165
  ring?: string | undefined;
1147
1166
  radius?: string | undefined;
1148
1167
  } | undefined;
1149
1168
  } | undefined;
1150
1169
  metadata?: {
1151
1170
  description?: string | undefined;
1152
- logo?: string | undefined;
1153
1171
  title?: string | undefined;
1172
+ logo?: string | undefined;
1154
1173
  favicon?: string | undefined;
1155
1174
  generator?: string | undefined;
1156
1175
  applicationName?: string | undefined;
@@ -1160,14 +1179,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1160
1179
  creator?: string | undefined;
1161
1180
  publisher?: string | undefined;
1162
1181
  } | undefined;
1163
- search?: {
1164
- type: "inkeep";
1165
- apiKey: string;
1166
- integrationId: string;
1167
- organizationId: string;
1168
- primaryBrandColor: string;
1169
- organizationDisplayName: string;
1170
- } | undefined;
1171
1182
  mdx?: {
1172
1183
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1173
1184
  } | undefined;
@@ -1244,17 +1255,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1244
1255
  endpoint: string;
1245
1256
  } | {
1246
1257
  enabled: boolean;
1247
- getKeys: (context: DevPortalContext) => Promise<ApiKey[]>;
1248
- rollKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1249
- deleteKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1258
+ getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1259
+ rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1260
+ deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1250
1261
  updateKeyDescription?: ((apiKey: {
1251
1262
  id: string;
1252
1263
  description: string;
1253
- }, context: DevPortalContext) => Promise<void>) | undefined;
1264
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1254
1265
  createKey?: ((apiKey: {
1255
1266
  description: string;
1256
1267
  expiresOn?: string;
1257
- }, context: DevPortalContext) => Promise<void>) | undefined;
1268
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1258
1269
  } | undefined;
1259
1270
  redirects?: {
1260
1271
  from: string;
@@ -1266,7 +1277,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1266
1277
  render?: ComponentType<ExposedComponentProps> | undefined;
1267
1278
  prose?: boolean | undefined;
1268
1279
  }[] | undefined;
1269
- plugins?: DevPortalPlugin[] | undefined;
1270
1280
  sitemap?: {
1271
1281
  siteUrl: string;
1272
1282
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1280,6 +1290,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1280
1290
  rehypePlugins?: Options["rehypePlugins"];
1281
1291
  } | undefined;
1282
1292
  }>, {
1293
+ plugins?: ZudokuPlugin[] | undefined;
1294
+ search?: {
1295
+ type: "inkeep";
1296
+ apiKey: string;
1297
+ integrationId: string;
1298
+ organizationId: string;
1299
+ primaryBrandColor: string;
1300
+ organizationDisplayName: string;
1301
+ } | undefined;
1283
1302
  basePath?: string | undefined;
1284
1303
  page?: {
1285
1304
  pageTitle?: string | undefined;
@@ -1294,13 +1313,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1294
1313
  } | undefined;
1295
1314
  banner?: {
1296
1315
  message: NonNullable<ReactNode>;
1297
- color?: string | (string & {}) | undefined;
1316
+ color?: BannerColorType;
1298
1317
  dismissible?: boolean | undefined;
1299
1318
  } | undefined;
1300
1319
  } | undefined;
1301
1320
  topNavigation?: {
1302
- label: string;
1303
1321
  id: string;
1322
+ label: string;
1304
1323
  default?: string | undefined;
1305
1324
  display?: "auth" | "anon" | "always" | undefined;
1306
1325
  }[] | undefined;
@@ -1308,6 +1327,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1308
1327
  UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1309
1328
  theme?: {
1310
1329
  light?: {
1330
+ input?: string | undefined;
1311
1331
  background?: string | undefined;
1312
1332
  foreground?: string | undefined;
1313
1333
  card?: string | undefined;
@@ -1325,11 +1345,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1325
1345
  destructive?: string | undefined;
1326
1346
  destructiveForeground?: string | undefined;
1327
1347
  border?: string | undefined;
1328
- input?: string | undefined;
1329
1348
  ring?: string | undefined;
1330
1349
  radius?: string | undefined;
1331
1350
  } | undefined;
1332
1351
  dark?: {
1352
+ input?: string | undefined;
1333
1353
  background?: string | undefined;
1334
1354
  foreground?: string | undefined;
1335
1355
  card?: string | undefined;
@@ -1347,15 +1367,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1347
1367
  destructive?: string | undefined;
1348
1368
  destructiveForeground?: string | undefined;
1349
1369
  border?: string | undefined;
1350
- input?: string | undefined;
1351
1370
  ring?: string | undefined;
1352
1371
  radius?: string | undefined;
1353
1372
  } | undefined;
1354
1373
  } | undefined;
1355
1374
  metadata?: {
1356
1375
  description?: string | undefined;
1357
- logo?: string | undefined;
1358
1376
  title?: string | undefined;
1377
+ logo?: string | undefined;
1359
1378
  favicon?: string | undefined;
1360
1379
  generator?: string | undefined;
1361
1380
  applicationName?: string | undefined;
@@ -1365,14 +1384,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1365
1384
  creator?: string | undefined;
1366
1385
  publisher?: string | undefined;
1367
1386
  } | undefined;
1368
- search?: {
1369
- type: "inkeep";
1370
- apiKey: string;
1371
- integrationId: string;
1372
- organizationId: string;
1373
- primaryBrandColor: string;
1374
- organizationDisplayName: string;
1375
- } | undefined;
1376
1387
  mdx?: {
1377
1388
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1378
1389
  } | undefined;
@@ -1449,17 +1460,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1449
1460
  endpoint: string;
1450
1461
  } | {
1451
1462
  enabled: boolean;
1452
- getKeys: (context: DevPortalContext) => Promise<ApiKey[]>;
1453
- rollKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1454
- deleteKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1463
+ getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1464
+ rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1465
+ deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1455
1466
  updateKeyDescription?: ((apiKey: {
1456
1467
  id: string;
1457
1468
  description: string;
1458
- }, context: DevPortalContext) => Promise<void>) | undefined;
1469
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1459
1470
  createKey?: ((apiKey: {
1460
1471
  description: string;
1461
1472
  expiresOn?: string;
1462
- }, context: DevPortalContext) => Promise<void>) | undefined;
1473
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1463
1474
  } | undefined;
1464
1475
  redirects?: {
1465
1476
  from: string;
@@ -1471,7 +1482,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1471
1482
  render?: ComponentType<ExposedComponentProps> | undefined;
1472
1483
  prose?: boolean | undefined;
1473
1484
  }[] | undefined;
1474
- plugins?: DevPortalPlugin[] | undefined;
1475
1485
  sitemap?: {
1476
1486
  siteUrl: string;
1477
1487
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1485,6 +1495,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1485
1495
  rehypePlugins?: Options["rehypePlugins"];
1486
1496
  } | undefined;
1487
1497
  }, {
1498
+ plugins?: ZudokuPlugin[] | undefined;
1499
+ search?: {
1500
+ type: "inkeep";
1501
+ apiKey: string;
1502
+ integrationId: string;
1503
+ organizationId: string;
1504
+ primaryBrandColor: string;
1505
+ organizationDisplayName: string;
1506
+ } | undefined;
1488
1507
  basePath?: string | undefined;
1489
1508
  page?: {
1490
1509
  pageTitle?: string | undefined;
@@ -1499,13 +1518,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1499
1518
  } | undefined;
1500
1519
  banner?: {
1501
1520
  message: NonNullable<ReactNode>;
1502
- color?: string | (string & {}) | undefined;
1521
+ color?: BannerColorType;
1503
1522
  dismissible?: boolean | undefined;
1504
1523
  } | undefined;
1505
1524
  } | undefined;
1506
1525
  topNavigation?: {
1507
- label: string;
1508
1526
  id: string;
1527
+ label: string;
1509
1528
  default?: string | undefined;
1510
1529
  display?: "auth" | "anon" | "always" | undefined;
1511
1530
  }[] | undefined;
@@ -1513,6 +1532,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1513
1532
  UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
1514
1533
  theme?: {
1515
1534
  light?: {
1535
+ input?: string | undefined;
1516
1536
  background?: string | undefined;
1517
1537
  foreground?: string | undefined;
1518
1538
  card?: string | undefined;
@@ -1530,11 +1550,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1530
1550
  destructive?: string | undefined;
1531
1551
  destructiveForeground?: string | undefined;
1532
1552
  border?: string | undefined;
1533
- input?: string | undefined;
1534
1553
  ring?: string | undefined;
1535
1554
  radius?: string | undefined;
1536
1555
  } | undefined;
1537
1556
  dark?: {
1557
+ input?: string | undefined;
1538
1558
  background?: string | undefined;
1539
1559
  foreground?: string | undefined;
1540
1560
  card?: string | undefined;
@@ -1552,15 +1572,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1552
1572
  destructive?: string | undefined;
1553
1573
  destructiveForeground?: string | undefined;
1554
1574
  border?: string | undefined;
1555
- input?: string | undefined;
1556
1575
  ring?: string | undefined;
1557
1576
  radius?: string | undefined;
1558
1577
  } | undefined;
1559
1578
  } | undefined;
1560
1579
  metadata?: {
1561
1580
  description?: string | undefined;
1562
- logo?: string | undefined;
1563
1581
  title?: string | undefined;
1582
+ logo?: string | undefined;
1564
1583
  favicon?: string | undefined;
1565
1584
  generator?: string | undefined;
1566
1585
  applicationName?: string | undefined;
@@ -1570,14 +1589,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1570
1589
  creator?: string | undefined;
1571
1590
  publisher?: string | undefined;
1572
1591
  } | undefined;
1573
- search?: {
1574
- type: "inkeep";
1575
- apiKey: string;
1576
- integrationId: string;
1577
- organizationId: string;
1578
- primaryBrandColor: string;
1579
- organizationDisplayName: string;
1580
- } | undefined;
1581
1592
  mdx?: {
1582
1593
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1583
1594
  } | undefined;
@@ -1654,17 +1665,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1654
1665
  endpoint: string;
1655
1666
  } | {
1656
1667
  enabled: boolean;
1657
- getKeys: (context: DevPortalContext) => Promise<ApiKey[]>;
1658
- rollKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1659
- deleteKey?: ((id: string, context: DevPortalContext) => Promise<void>) | undefined;
1668
+ getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
1669
+ rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1670
+ deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
1660
1671
  updateKeyDescription?: ((apiKey: {
1661
1672
  id: string;
1662
1673
  description: string;
1663
- }, context: DevPortalContext) => Promise<void>) | undefined;
1674
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1664
1675
  createKey?: ((apiKey: {
1665
1676
  description: string;
1666
1677
  expiresOn?: string;
1667
- }, context: DevPortalContext) => Promise<void>) | undefined;
1678
+ }, context: ZudokuContext) => Promise<void>) | undefined;
1668
1679
  } | undefined;
1669
1680
  redirects?: {
1670
1681
  from: string;
@@ -1676,7 +1687,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1676
1687
  render?: ComponentType<ExposedComponentProps> | undefined;
1677
1688
  prose?: boolean | undefined;
1678
1689
  }[] | undefined;
1679
- plugins?: DevPortalPlugin[] | undefined;
1680
1690
  sitemap?: {
1681
1691
  siteUrl: string;
1682
1692
  changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
@@ -1695,5 +1705,6 @@ export type ZudokuConfig = z.infer<typeof ConfigSchema>;
1695
1705
  export type ZudokuSiteMapConfig = z.infer<typeof SiteMapSchema>;
1696
1706
  export type ZudokuDocsConfig = z.infer<typeof DocsConfigSchema>;
1697
1707
  export type TopNavigationItem = z.infer<typeof TopNavigationItemSchema>;
1708
+ export type ZudokuRedirect = z.infer<typeof Redirect>;
1698
1709
  export declare function validateConfig(config: unknown): void;
1699
1710
  export {};