zudoku 0.0.0-f865d81 → 0.0.0-fa903e7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +14 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +6 -6
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +2 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +1 -2
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
- package/dist/config/validators/validate.d.ts +148 -117
- package/dist/config/validators/validate.js +13 -6
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
- package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -3
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +12 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +11 -26
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +10 -4
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +16 -10
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +12 -4
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +16 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -0
- package/dist/lib/components/TopNavigation.js +13 -7
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
- package/dist/lib/components/context/ZudokuContext.js +8 -13
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +18 -10
- package/dist/lib/components/index.js +2 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +18 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +4 -4
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +2 -17
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js +3 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +14 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -2
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js +24 -0
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +21 -22
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +7 -3
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +9 -2
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +35 -33
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +114 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +15 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
- package/dist/lib/plugins/openapi/graphql/gql.js +4 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +32 -8
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -662
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +25 -36
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +4 -7
- package/dist/lib/plugins/redirect/index.js +1 -1
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/ui/ActionButton.d.ts +4 -0
- package/dist/lib/ui/ActionButton.js +10 -0
- package/dist/lib/ui/ActionButton.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/vite/build.js +5 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -8
- package/dist/vite/config.js +25 -54
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +3 -4
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/output.d.ts +101 -0
- package/dist/vite/output.js +53 -0
- package/dist/vite/output.js.map +1 -0
- package/dist/vite/plugin-api.js +23 -19
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +14 -19
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -3
- package/dist/vite/plugin-config.js +2 -3
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +13 -5
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +1 -3
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.js +3 -2
- package/dist/vite/prerender.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
- package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
- package/lib/AuthenticationPlugin-D0Em0SwR.js +59 -0
- package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-D0Em0SwR.js.map} +1 -1
- package/lib/Button-jK0EsymC.js +48 -0
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Markdown-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/MdxPage-B2FpJ9KC.js +183 -0
- package/lib/MdxPage-B2FpJ9KC.js.map +1 -0
- package/lib/OperationList-BkNQEsNs.js +4693 -0
- package/lib/OperationList-BkNQEsNs.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/{Spinner-C6zroowC.js → SidebarBadge-DxFJcJ6V.js} +28 -17
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
- package/lib/assets/{worker-Bf8vjASY.js → worker-BHClFO3A.js} +156 -156
- package/lib/assets/worker-BHClFO3A.js.map +1 -0
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-CpJlUPtn.js +15299 -0
- package/lib/createServer-CpJlUPtn.js.map +1 -0
- package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-C7SaIME0.js +1277 -0
- package/lib/index-C7SaIME0.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/object_hash-CvlLgU-M.js +785 -0
- package/lib/object_hash-CvlLgU-M.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
- package/lib/ui/ActionButton.js +25 -0
- package/lib/ui/ActionButton.js.map +1 -0
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
- package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1291 -1119
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16336
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +41 -39
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +15 -14
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +2 -2
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +27 -7
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -53
- package/src/app/main.css +1 -1
- package/src/app/main.tsx +4 -4
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +17 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/Bootstrap.tsx +36 -14
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +68 -40
- package/src/lib/components/Layout.tsx +49 -37
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SyntaxHighlight.tsx +81 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +27 -19
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +11 -16
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +2 -3
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
- package/src/lib/core/plugins.ts +20 -16
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/oas/graphql/index.ts +4 -4
- package/src/lib/oas/parser/upgrade/index.ts +3 -24
- package/src/lib/plugins/api-keys/index.tsx +12 -9
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/MdxPage.tsx +25 -1
- package/src/lib/plugins/markdown/index.tsx +3 -2
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +80 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +20 -40
- package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +18 -13
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +17 -12
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +73 -59
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +157 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +21 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +10 -27
- package/src/lib/plugins/openapi/graphql/graphql.ts +233 -665
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/interfaces.ts +1 -1
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +28 -42
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +5 -9
- package/src/lib/plugins/search-inkeep/index.tsx +2 -2
- package/src/lib/ui/ActionButton.tsx +28 -0
- package/src/lib/util/traverse.ts +25 -0
- package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
- package/src/lib/util/useOnScreen.ts +32 -0
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Markdown-BDcCAWwm.js +0 -18059
- package/lib/Markdown-BDcCAWwm.js.map +0 -1
- package/lib/MdxPage-DKMH_t0f.js +0 -174
- package/lib/MdxPage-DKMH_t0f.js.map +0 -1
- package/lib/OperationList-Tj7ubW_t.js +0 -604
- package/lib/OperationList-Tj7ubW_t.js.map +0 -1
- package/lib/Route-C3DGB6OS.js +0 -13
- package/lib/Route-C3DGB6OS.js.map +0 -1
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-C6zroowC.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
- package/lib/assets/worker-Bf8vjASY.js.map +0 -1
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-AjWCJNGC.js +0 -5690
- package/lib/index-AjWCJNGC.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-KJnLL26g.js +0 -1455
- package/lib/urql-core-KJnLL26g.js.map +0 -1
- package/lib/useExposedProps-ChOIUaS4.js +0 -9
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/themeToggle.ts +0 -7
- 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 {
|
|
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 {
|
|
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">;
|
|
@@ -21,22 +21,26 @@ declare const ApiSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
|
21
21
|
input: string;
|
|
22
22
|
server?: string | undefined;
|
|
23
23
|
navigationId?: string | undefined;
|
|
24
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
24
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
25
25
|
type: z.ZodLiteral<"file">;
|
|
26
26
|
input: z.ZodString;
|
|
27
27
|
}, {
|
|
28
28
|
server: z.ZodOptional<z.ZodString>;
|
|
29
29
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}>, {
|
|
31
|
+
postProcessors: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>], z.ZodUnknown>, z.ZodUnion<[z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, z.ZodPromise<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>]>>, "many">>;
|
|
30
32
|
}>, "strip", z.ZodTypeAny, {
|
|
31
33
|
type: "file";
|
|
32
34
|
input: string;
|
|
33
35
|
server?: string | undefined;
|
|
34
36
|
navigationId?: string | undefined;
|
|
37
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
35
38
|
}, {
|
|
36
39
|
type: "file";
|
|
37
40
|
input: string;
|
|
38
41
|
server?: string | undefined;
|
|
39
42
|
navigationId?: string | undefined;
|
|
43
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
40
44
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
41
45
|
type: z.ZodLiteral<"raw">;
|
|
42
46
|
input: z.ZodString;
|
|
@@ -126,13 +130,13 @@ declare const TopNavigationItemSchema: z.ZodObject<{
|
|
|
126
130
|
default: z.ZodOptional<z.ZodString>;
|
|
127
131
|
display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
|
|
128
132
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
label: string;
|
|
130
133
|
id: string;
|
|
134
|
+
label: string;
|
|
131
135
|
default?: string | undefined;
|
|
132
136
|
display?: "auth" | "anon" | "always" | undefined;
|
|
133
137
|
}, {
|
|
134
|
-
label: string;
|
|
135
138
|
id: string;
|
|
139
|
+
label: string;
|
|
136
140
|
default?: string | undefined;
|
|
137
141
|
display?: "auth" | "anon" | "always" | undefined;
|
|
138
142
|
}>;
|
|
@@ -140,6 +144,16 @@ type BannerColorType = ZodOptional<ZodUnion<[
|
|
|
140
144
|
ZodType<"note" | "tip" | "info" | "caution" | "danger" | (string & {}), ZodEnumDef>,
|
|
141
145
|
ZodString
|
|
142
146
|
]>>;
|
|
147
|
+
declare const Redirect: z.ZodObject<{
|
|
148
|
+
from: z.ZodString;
|
|
149
|
+
to: z.ZodString;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
from: string;
|
|
152
|
+
to: string;
|
|
153
|
+
}, {
|
|
154
|
+
from: string;
|
|
155
|
+
to: string;
|
|
156
|
+
}>;
|
|
143
157
|
declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
144
158
|
basePath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
145
159
|
page: z.ZodOptional<z.ZodObject<{
|
|
@@ -179,11 +193,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
179
193
|
dismissible: z.ZodOptional<z.ZodBoolean>;
|
|
180
194
|
}, "strip", z.ZodTypeAny, {
|
|
181
195
|
message: NonNullable<ReactNode>;
|
|
182
|
-
color?:
|
|
196
|
+
color?: BannerColorType;
|
|
183
197
|
dismissible?: boolean | undefined;
|
|
184
198
|
}, {
|
|
185
199
|
message: NonNullable<ReactNode>;
|
|
186
|
-
color?:
|
|
200
|
+
color?: BannerColorType;
|
|
187
201
|
dismissible?: boolean | undefined;
|
|
188
202
|
}>>>;
|
|
189
203
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -199,7 +213,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
199
213
|
} | undefined;
|
|
200
214
|
banner?: {
|
|
201
215
|
message: NonNullable<ReactNode>;
|
|
202
|
-
color?:
|
|
216
|
+
color?: BannerColorType;
|
|
203
217
|
dismissible?: boolean | undefined;
|
|
204
218
|
} | undefined;
|
|
205
219
|
}, {
|
|
@@ -215,7 +229,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
215
229
|
} | undefined;
|
|
216
230
|
banner?: {
|
|
217
231
|
message: NonNullable<ReactNode>;
|
|
218
|
-
color?:
|
|
232
|
+
color?: BannerColorType;
|
|
219
233
|
dismissible?: boolean | undefined;
|
|
220
234
|
} | undefined;
|
|
221
235
|
}>>;
|
|
@@ -225,13 +239,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
225
239
|
default: z.ZodOptional<z.ZodString>;
|
|
226
240
|
display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always"]>>>;
|
|
227
241
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
label: string;
|
|
229
242
|
id: string;
|
|
243
|
+
label: string;
|
|
230
244
|
default?: string | undefined;
|
|
231
245
|
display?: "auth" | "anon" | "always" | undefined;
|
|
232
246
|
}, {
|
|
233
|
-
label: string;
|
|
234
247
|
id: string;
|
|
248
|
+
label: string;
|
|
235
249
|
default?: string | undefined;
|
|
236
250
|
display?: "auth" | "anon" | "always" | undefined;
|
|
237
251
|
}>, "many">>;
|
|
@@ -260,6 +274,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
260
274
|
ring: z.ZodOptional<z.ZodString>;
|
|
261
275
|
radius: z.ZodOptional<z.ZodString>;
|
|
262
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
input?: string | undefined;
|
|
263
278
|
background?: string | undefined;
|
|
264
279
|
foreground?: string | undefined;
|
|
265
280
|
card?: string | undefined;
|
|
@@ -277,10 +292,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
277
292
|
destructive?: string | undefined;
|
|
278
293
|
destructiveForeground?: string | undefined;
|
|
279
294
|
border?: string | undefined;
|
|
280
|
-
input?: string | undefined;
|
|
281
295
|
ring?: string | undefined;
|
|
282
296
|
radius?: string | undefined;
|
|
283
297
|
}, {
|
|
298
|
+
input?: string | undefined;
|
|
284
299
|
background?: string | undefined;
|
|
285
300
|
foreground?: string | undefined;
|
|
286
301
|
card?: string | undefined;
|
|
@@ -298,7 +313,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
298
313
|
destructive?: string | undefined;
|
|
299
314
|
destructiveForeground?: string | undefined;
|
|
300
315
|
border?: string | undefined;
|
|
301
|
-
input?: string | undefined;
|
|
302
316
|
ring?: string | undefined;
|
|
303
317
|
radius?: string | undefined;
|
|
304
318
|
}>>;
|
|
@@ -324,6 +338,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
324
338
|
ring: z.ZodOptional<z.ZodString>;
|
|
325
339
|
radius: z.ZodOptional<z.ZodString>;
|
|
326
340
|
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
input?: string | undefined;
|
|
327
342
|
background?: string | undefined;
|
|
328
343
|
foreground?: string | undefined;
|
|
329
344
|
card?: string | undefined;
|
|
@@ -341,10 +356,10 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
341
356
|
destructive?: string | undefined;
|
|
342
357
|
destructiveForeground?: string | undefined;
|
|
343
358
|
border?: string | undefined;
|
|
344
|
-
input?: string | undefined;
|
|
345
359
|
ring?: string | undefined;
|
|
346
360
|
radius?: string | undefined;
|
|
347
361
|
}, {
|
|
362
|
+
input?: string | undefined;
|
|
348
363
|
background?: string | undefined;
|
|
349
364
|
foreground?: string | undefined;
|
|
350
365
|
card?: string | undefined;
|
|
@@ -362,12 +377,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
362
377
|
destructive?: string | undefined;
|
|
363
378
|
destructiveForeground?: string | undefined;
|
|
364
379
|
border?: string | undefined;
|
|
365
|
-
input?: string | undefined;
|
|
366
380
|
ring?: string | undefined;
|
|
367
381
|
radius?: string | undefined;
|
|
368
382
|
}>>;
|
|
369
383
|
}, "strip", z.ZodTypeAny, {
|
|
370
384
|
light?: {
|
|
385
|
+
input?: string | undefined;
|
|
371
386
|
background?: string | undefined;
|
|
372
387
|
foreground?: string | undefined;
|
|
373
388
|
card?: string | undefined;
|
|
@@ -385,11 +400,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
385
400
|
destructive?: string | undefined;
|
|
386
401
|
destructiveForeground?: string | undefined;
|
|
387
402
|
border?: string | undefined;
|
|
388
|
-
input?: string | undefined;
|
|
389
403
|
ring?: string | undefined;
|
|
390
404
|
radius?: string | undefined;
|
|
391
405
|
} | undefined;
|
|
392
406
|
dark?: {
|
|
407
|
+
input?: string | undefined;
|
|
393
408
|
background?: string | undefined;
|
|
394
409
|
foreground?: string | undefined;
|
|
395
410
|
card?: string | undefined;
|
|
@@ -407,12 +422,12 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
407
422
|
destructive?: string | undefined;
|
|
408
423
|
destructiveForeground?: string | undefined;
|
|
409
424
|
border?: string | undefined;
|
|
410
|
-
input?: string | undefined;
|
|
411
425
|
ring?: string | undefined;
|
|
412
426
|
radius?: string | undefined;
|
|
413
427
|
} | undefined;
|
|
414
428
|
}, {
|
|
415
429
|
light?: {
|
|
430
|
+
input?: string | undefined;
|
|
416
431
|
background?: string | undefined;
|
|
417
432
|
foreground?: string | undefined;
|
|
418
433
|
card?: string | undefined;
|
|
@@ -430,11 +445,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
430
445
|
destructive?: string | undefined;
|
|
431
446
|
destructiveForeground?: string | undefined;
|
|
432
447
|
border?: string | undefined;
|
|
433
|
-
input?: string | undefined;
|
|
434
448
|
ring?: string | undefined;
|
|
435
449
|
radius?: string | undefined;
|
|
436
450
|
} | undefined;
|
|
437
451
|
dark?: {
|
|
452
|
+
input?: string | undefined;
|
|
438
453
|
background?: string | undefined;
|
|
439
454
|
foreground?: string | undefined;
|
|
440
455
|
card?: string | undefined;
|
|
@@ -452,7 +467,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
452
467
|
destructive?: string | undefined;
|
|
453
468
|
destructiveForeground?: string | undefined;
|
|
454
469
|
border?: string | undefined;
|
|
455
|
-
input?: string | undefined;
|
|
456
470
|
ring?: string | undefined;
|
|
457
471
|
radius?: string | undefined;
|
|
458
472
|
} | undefined;
|
|
@@ -471,8 +485,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
471
485
|
publisher: z.ZodOptional<z.ZodString>;
|
|
472
486
|
}, "strip", z.ZodTypeAny, {
|
|
473
487
|
description?: string | undefined;
|
|
474
|
-
logo?: string | undefined;
|
|
475
488
|
title?: string | undefined;
|
|
489
|
+
logo?: string | undefined;
|
|
476
490
|
favicon?: string | undefined;
|
|
477
491
|
generator?: string | undefined;
|
|
478
492
|
applicationName?: string | undefined;
|
|
@@ -483,8 +497,8 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
483
497
|
publisher?: string | undefined;
|
|
484
498
|
}, {
|
|
485
499
|
description?: string | undefined;
|
|
486
|
-
logo?: string | undefined;
|
|
487
500
|
title?: string | undefined;
|
|
501
|
+
logo?: string | undefined;
|
|
488
502
|
favicon?: string | undefined;
|
|
489
503
|
generator?: string | undefined;
|
|
490
504
|
applicationName?: string | undefined;
|
|
@@ -658,22 +672,26 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
658
672
|
input: string;
|
|
659
673
|
server?: string | undefined;
|
|
660
674
|
navigationId?: string | undefined;
|
|
661
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
675
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
662
676
|
type: z.ZodLiteral<"file">;
|
|
663
677
|
input: z.ZodString;
|
|
664
678
|
}, {
|
|
665
679
|
server: z.ZodOptional<z.ZodString>;
|
|
666
680
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
681
|
+
}>, {
|
|
682
|
+
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">>;
|
|
667
683
|
}>, "strip", z.ZodTypeAny, {
|
|
668
684
|
type: "file";
|
|
669
685
|
input: string;
|
|
670
686
|
server?: string | undefined;
|
|
671
687
|
navigationId?: string | undefined;
|
|
688
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
672
689
|
}, {
|
|
673
690
|
type: "file";
|
|
674
691
|
input: string;
|
|
675
692
|
server?: string | undefined;
|
|
676
693
|
navigationId?: string | undefined;
|
|
694
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
677
695
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
678
696
|
type: z.ZodLiteral<"raw">;
|
|
679
697
|
input: z.ZodString;
|
|
@@ -706,22 +724,26 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
706
724
|
input: string;
|
|
707
725
|
server?: string | undefined;
|
|
708
726
|
navigationId?: string | undefined;
|
|
709
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
727
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
710
728
|
type: z.ZodLiteral<"file">;
|
|
711
729
|
input: z.ZodString;
|
|
712
730
|
}, {
|
|
713
731
|
server: z.ZodOptional<z.ZodString>;
|
|
714
732
|
navigationId: z.ZodOptional<z.ZodString>;
|
|
733
|
+
}>, {
|
|
734
|
+
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">>;
|
|
715
735
|
}>, "strip", z.ZodTypeAny, {
|
|
716
736
|
type: "file";
|
|
717
737
|
input: string;
|
|
718
738
|
server?: string | undefined;
|
|
719
739
|
navigationId?: string | undefined;
|
|
740
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
720
741
|
}, {
|
|
721
742
|
type: "file";
|
|
722
743
|
input: string;
|
|
723
744
|
server?: string | undefined;
|
|
724
745
|
navigationId?: string | undefined;
|
|
746
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
725
747
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
726
748
|
type: z.ZodLiteral<"raw">;
|
|
727
749
|
input: z.ZodString;
|
|
@@ -750,49 +772,49 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
750
772
|
endpoint: string;
|
|
751
773
|
}>, z.ZodObject<{
|
|
752
774
|
enabled: z.ZodBoolean;
|
|
753
|
-
getKeys: z.ZodType<(context:
|
|
754
|
-
rollKey: z.ZodOptional<z.ZodType<(id: string, context:
|
|
755
|
-
deleteKey: z.ZodOptional<z.ZodType<(id: string, context:
|
|
775
|
+
getKeys: z.ZodType<(context: ZudokuContext) => Promise<ApiKey[]>, z.ZodTypeDef, (context: ZudokuContext) => Promise<ApiKey[]>>;
|
|
776
|
+
rollKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
|
|
777
|
+
deleteKey: z.ZodOptional<z.ZodType<(id: string, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (id: string, context: ZudokuContext) => Promise<void>>>;
|
|
756
778
|
updateKeyDescription: z.ZodOptional<z.ZodType<(apiKey: {
|
|
757
779
|
id: string;
|
|
758
780
|
description: string;
|
|
759
|
-
}, context:
|
|
781
|
+
}, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
|
|
760
782
|
id: string;
|
|
761
783
|
description: string;
|
|
762
|
-
}, context:
|
|
784
|
+
}, context: ZudokuContext) => Promise<void>>>;
|
|
763
785
|
createKey: z.ZodOptional<z.ZodType<(apiKey: {
|
|
764
786
|
description: string;
|
|
765
787
|
expiresOn?: string;
|
|
766
|
-
}, context:
|
|
788
|
+
}, context: ZudokuContext) => Promise<void>, z.ZodTypeDef, (apiKey: {
|
|
767
789
|
description: string;
|
|
768
790
|
expiresOn?: string;
|
|
769
|
-
}, context:
|
|
791
|
+
}, context: ZudokuContext) => Promise<void>>>;
|
|
770
792
|
}, "strip", z.ZodTypeAny, {
|
|
771
793
|
enabled: boolean;
|
|
772
|
-
getKeys: (context:
|
|
773
|
-
rollKey?: ((id: string, context:
|
|
774
|
-
deleteKey?: ((id: string, context:
|
|
794
|
+
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
795
|
+
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
796
|
+
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
775
797
|
updateKeyDescription?: ((apiKey: {
|
|
776
798
|
id: string;
|
|
777
799
|
description: string;
|
|
778
|
-
}, context:
|
|
800
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
779
801
|
createKey?: ((apiKey: {
|
|
780
802
|
description: string;
|
|
781
803
|
expiresOn?: string;
|
|
782
|
-
}, context:
|
|
804
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
783
805
|
}, {
|
|
784
806
|
enabled: boolean;
|
|
785
|
-
getKeys: (context:
|
|
786
|
-
rollKey?: ((id: string, context:
|
|
787
|
-
deleteKey?: ((id: string, context:
|
|
807
|
+
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
808
|
+
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
809
|
+
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
788
810
|
updateKeyDescription?: ((apiKey: {
|
|
789
811
|
id: string;
|
|
790
812
|
description: string;
|
|
791
|
-
}, context:
|
|
813
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
792
814
|
createKey?: ((apiKey: {
|
|
793
815
|
description: string;
|
|
794
816
|
expiresOn?: string;
|
|
795
|
-
}, context:
|
|
817
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
796
818
|
}>]>>;
|
|
797
819
|
redirects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
798
820
|
from: z.ZodString;
|
|
@@ -820,7 +842,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
820
842
|
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
821
843
|
prose?: boolean | undefined;
|
|
822
844
|
}>, "many">>;
|
|
823
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodType<
|
|
845
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodType<ZudokuPlugin, z.ZodTypeDef, ZudokuPlugin>, "many">>;
|
|
824
846
|
sitemap: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
825
847
|
/**
|
|
826
848
|
* Base url of your website
|
|
@@ -870,6 +892,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
870
892
|
rehypePlugins?: Options["rehypePlugins"];
|
|
871
893
|
}>>;
|
|
872
894
|
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
plugins?: ZudokuPlugin[] | undefined;
|
|
896
|
+
search?: {
|
|
897
|
+
type: "inkeep";
|
|
898
|
+
apiKey: string;
|
|
899
|
+
integrationId: string;
|
|
900
|
+
organizationId: string;
|
|
901
|
+
primaryBrandColor: string;
|
|
902
|
+
organizationDisplayName: string;
|
|
903
|
+
} | undefined;
|
|
873
904
|
basePath?: string | undefined;
|
|
874
905
|
page?: {
|
|
875
906
|
pageTitle?: string | undefined;
|
|
@@ -884,13 +915,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
884
915
|
} | undefined;
|
|
885
916
|
banner?: {
|
|
886
917
|
message: NonNullable<ReactNode>;
|
|
887
|
-
color?:
|
|
918
|
+
color?: BannerColorType;
|
|
888
919
|
dismissible?: boolean | undefined;
|
|
889
920
|
} | undefined;
|
|
890
921
|
} | undefined;
|
|
891
922
|
topNavigation?: {
|
|
892
|
-
label: string;
|
|
893
923
|
id: string;
|
|
924
|
+
label: string;
|
|
894
925
|
default?: string | undefined;
|
|
895
926
|
display?: "auth" | "anon" | "always" | undefined;
|
|
896
927
|
}[] | undefined;
|
|
@@ -898,6 +929,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
898
929
|
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
899
930
|
theme?: {
|
|
900
931
|
light?: {
|
|
932
|
+
input?: string | undefined;
|
|
901
933
|
background?: string | undefined;
|
|
902
934
|
foreground?: string | undefined;
|
|
903
935
|
card?: string | undefined;
|
|
@@ -915,11 +947,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
915
947
|
destructive?: string | undefined;
|
|
916
948
|
destructiveForeground?: string | undefined;
|
|
917
949
|
border?: string | undefined;
|
|
918
|
-
input?: string | undefined;
|
|
919
950
|
ring?: string | undefined;
|
|
920
951
|
radius?: string | undefined;
|
|
921
952
|
} | undefined;
|
|
922
953
|
dark?: {
|
|
954
|
+
input?: string | undefined;
|
|
923
955
|
background?: string | undefined;
|
|
924
956
|
foreground?: string | undefined;
|
|
925
957
|
card?: string | undefined;
|
|
@@ -937,15 +969,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
937
969
|
destructive?: string | undefined;
|
|
938
970
|
destructiveForeground?: string | undefined;
|
|
939
971
|
border?: string | undefined;
|
|
940
|
-
input?: string | undefined;
|
|
941
972
|
ring?: string | undefined;
|
|
942
973
|
radius?: string | undefined;
|
|
943
974
|
} | undefined;
|
|
944
975
|
} | undefined;
|
|
945
976
|
metadata?: {
|
|
946
977
|
description?: string | undefined;
|
|
947
|
-
logo?: string | undefined;
|
|
948
978
|
title?: string | undefined;
|
|
979
|
+
logo?: string | undefined;
|
|
949
980
|
favicon?: string | undefined;
|
|
950
981
|
generator?: string | undefined;
|
|
951
982
|
applicationName?: string | undefined;
|
|
@@ -955,14 +986,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
955
986
|
creator?: string | undefined;
|
|
956
987
|
publisher?: string | undefined;
|
|
957
988
|
} | undefined;
|
|
958
|
-
search?: {
|
|
959
|
-
type: "inkeep";
|
|
960
|
-
apiKey: string;
|
|
961
|
-
integrationId: string;
|
|
962
|
-
organizationId: string;
|
|
963
|
-
primaryBrandColor: string;
|
|
964
|
-
organizationDisplayName: string;
|
|
965
|
-
} | undefined;
|
|
966
989
|
mdx?: {
|
|
967
990
|
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
968
991
|
} | undefined;
|
|
@@ -1013,6 +1036,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1013
1036
|
input: string;
|
|
1014
1037
|
server?: string | undefined;
|
|
1015
1038
|
navigationId?: string | undefined;
|
|
1039
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1016
1040
|
} | {
|
|
1017
1041
|
type: "raw";
|
|
1018
1042
|
input: string;
|
|
@@ -1028,6 +1052,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1028
1052
|
input: string;
|
|
1029
1053
|
server?: string | undefined;
|
|
1030
1054
|
navigationId?: string | undefined;
|
|
1055
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1031
1056
|
} | {
|
|
1032
1057
|
type: "raw";
|
|
1033
1058
|
input: string;
|
|
@@ -1039,17 +1064,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1039
1064
|
endpoint: string;
|
|
1040
1065
|
} | {
|
|
1041
1066
|
enabled: boolean;
|
|
1042
|
-
getKeys: (context:
|
|
1043
|
-
rollKey?: ((id: string, context:
|
|
1044
|
-
deleteKey?: ((id: string, context:
|
|
1067
|
+
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1068
|
+
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1069
|
+
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1045
1070
|
updateKeyDescription?: ((apiKey: {
|
|
1046
1071
|
id: string;
|
|
1047
1072
|
description: string;
|
|
1048
|
-
}, context:
|
|
1073
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1049
1074
|
createKey?: ((apiKey: {
|
|
1050
1075
|
description: string;
|
|
1051
1076
|
expiresOn?: string;
|
|
1052
|
-
}, context:
|
|
1077
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1053
1078
|
} | undefined;
|
|
1054
1079
|
redirects?: {
|
|
1055
1080
|
from: string;
|
|
@@ -1061,7 +1086,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1061
1086
|
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1062
1087
|
prose?: boolean | undefined;
|
|
1063
1088
|
}[] | undefined;
|
|
1064
|
-
plugins?: DevPortalPlugin[] | undefined;
|
|
1065
1089
|
sitemap?: {
|
|
1066
1090
|
siteUrl: string;
|
|
1067
1091
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1075,6 +1099,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1075
1099
|
rehypePlugins?: Options["rehypePlugins"];
|
|
1076
1100
|
} | undefined;
|
|
1077
1101
|
}, {
|
|
1102
|
+
plugins?: ZudokuPlugin[] | undefined;
|
|
1103
|
+
search?: {
|
|
1104
|
+
type: "inkeep";
|
|
1105
|
+
apiKey: string;
|
|
1106
|
+
integrationId: string;
|
|
1107
|
+
organizationId: string;
|
|
1108
|
+
primaryBrandColor: string;
|
|
1109
|
+
organizationDisplayName: string;
|
|
1110
|
+
} | undefined;
|
|
1078
1111
|
basePath?: string | undefined;
|
|
1079
1112
|
page?: {
|
|
1080
1113
|
pageTitle?: string | undefined;
|
|
@@ -1089,13 +1122,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1089
1122
|
} | undefined;
|
|
1090
1123
|
banner?: {
|
|
1091
1124
|
message: NonNullable<ReactNode>;
|
|
1092
|
-
color?:
|
|
1125
|
+
color?: BannerColorType;
|
|
1093
1126
|
dismissible?: boolean | undefined;
|
|
1094
1127
|
} | undefined;
|
|
1095
1128
|
} | undefined;
|
|
1096
1129
|
topNavigation?: {
|
|
1097
|
-
label: string;
|
|
1098
1130
|
id: string;
|
|
1131
|
+
label: string;
|
|
1099
1132
|
default?: string | undefined;
|
|
1100
1133
|
display?: "auth" | "anon" | "always" | undefined;
|
|
1101
1134
|
}[] | undefined;
|
|
@@ -1103,6 +1136,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1103
1136
|
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1104
1137
|
theme?: {
|
|
1105
1138
|
light?: {
|
|
1139
|
+
input?: string | undefined;
|
|
1106
1140
|
background?: string | undefined;
|
|
1107
1141
|
foreground?: string | undefined;
|
|
1108
1142
|
card?: string | undefined;
|
|
@@ -1120,11 +1154,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1120
1154
|
destructive?: string | undefined;
|
|
1121
1155
|
destructiveForeground?: string | undefined;
|
|
1122
1156
|
border?: string | undefined;
|
|
1123
|
-
input?: string | undefined;
|
|
1124
1157
|
ring?: string | undefined;
|
|
1125
1158
|
radius?: string | undefined;
|
|
1126
1159
|
} | undefined;
|
|
1127
1160
|
dark?: {
|
|
1161
|
+
input?: string | undefined;
|
|
1128
1162
|
background?: string | undefined;
|
|
1129
1163
|
foreground?: string | undefined;
|
|
1130
1164
|
card?: string | undefined;
|
|
@@ -1142,15 +1176,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1142
1176
|
destructive?: string | undefined;
|
|
1143
1177
|
destructiveForeground?: string | undefined;
|
|
1144
1178
|
border?: string | undefined;
|
|
1145
|
-
input?: string | undefined;
|
|
1146
1179
|
ring?: string | undefined;
|
|
1147
1180
|
radius?: string | undefined;
|
|
1148
1181
|
} | undefined;
|
|
1149
1182
|
} | undefined;
|
|
1150
1183
|
metadata?: {
|
|
1151
1184
|
description?: string | undefined;
|
|
1152
|
-
logo?: string | undefined;
|
|
1153
1185
|
title?: string | undefined;
|
|
1186
|
+
logo?: string | undefined;
|
|
1154
1187
|
favicon?: string | undefined;
|
|
1155
1188
|
generator?: string | undefined;
|
|
1156
1189
|
applicationName?: string | undefined;
|
|
@@ -1160,14 +1193,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1160
1193
|
creator?: string | undefined;
|
|
1161
1194
|
publisher?: string | undefined;
|
|
1162
1195
|
} | undefined;
|
|
1163
|
-
search?: {
|
|
1164
|
-
type: "inkeep";
|
|
1165
|
-
apiKey: string;
|
|
1166
|
-
integrationId: string;
|
|
1167
|
-
organizationId: string;
|
|
1168
|
-
primaryBrandColor: string;
|
|
1169
|
-
organizationDisplayName: string;
|
|
1170
|
-
} | undefined;
|
|
1171
1196
|
mdx?: {
|
|
1172
1197
|
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
1173
1198
|
} | undefined;
|
|
@@ -1218,6 +1243,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1218
1243
|
input: string;
|
|
1219
1244
|
server?: string | undefined;
|
|
1220
1245
|
navigationId?: string | undefined;
|
|
1246
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1221
1247
|
} | {
|
|
1222
1248
|
type: "raw";
|
|
1223
1249
|
input: string;
|
|
@@ -1233,6 +1259,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1233
1259
|
input: string;
|
|
1234
1260
|
server?: string | undefined;
|
|
1235
1261
|
navigationId?: string | undefined;
|
|
1262
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1236
1263
|
} | {
|
|
1237
1264
|
type: "raw";
|
|
1238
1265
|
input: string;
|
|
@@ -1244,17 +1271,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1244
1271
|
endpoint: string;
|
|
1245
1272
|
} | {
|
|
1246
1273
|
enabled: boolean;
|
|
1247
|
-
getKeys: (context:
|
|
1248
|
-
rollKey?: ((id: string, context:
|
|
1249
|
-
deleteKey?: ((id: string, context:
|
|
1274
|
+
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1275
|
+
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1276
|
+
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1250
1277
|
updateKeyDescription?: ((apiKey: {
|
|
1251
1278
|
id: string;
|
|
1252
1279
|
description: string;
|
|
1253
|
-
}, context:
|
|
1280
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1254
1281
|
createKey?: ((apiKey: {
|
|
1255
1282
|
description: string;
|
|
1256
1283
|
expiresOn?: string;
|
|
1257
|
-
}, context:
|
|
1284
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1258
1285
|
} | undefined;
|
|
1259
1286
|
redirects?: {
|
|
1260
1287
|
from: string;
|
|
@@ -1266,7 +1293,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1266
1293
|
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1267
1294
|
prose?: boolean | undefined;
|
|
1268
1295
|
}[] | undefined;
|
|
1269
|
-
plugins?: DevPortalPlugin[] | undefined;
|
|
1270
1296
|
sitemap?: {
|
|
1271
1297
|
siteUrl: string;
|
|
1272
1298
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1280,6 +1306,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1280
1306
|
rehypePlugins?: Options["rehypePlugins"];
|
|
1281
1307
|
} | undefined;
|
|
1282
1308
|
}>, {
|
|
1309
|
+
plugins?: ZudokuPlugin[] | undefined;
|
|
1310
|
+
search?: {
|
|
1311
|
+
type: "inkeep";
|
|
1312
|
+
apiKey: string;
|
|
1313
|
+
integrationId: string;
|
|
1314
|
+
organizationId: string;
|
|
1315
|
+
primaryBrandColor: string;
|
|
1316
|
+
organizationDisplayName: string;
|
|
1317
|
+
} | undefined;
|
|
1283
1318
|
basePath?: string | undefined;
|
|
1284
1319
|
page?: {
|
|
1285
1320
|
pageTitle?: string | undefined;
|
|
@@ -1294,13 +1329,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1294
1329
|
} | undefined;
|
|
1295
1330
|
banner?: {
|
|
1296
1331
|
message: NonNullable<ReactNode>;
|
|
1297
|
-
color?:
|
|
1332
|
+
color?: BannerColorType;
|
|
1298
1333
|
dismissible?: boolean | undefined;
|
|
1299
1334
|
} | undefined;
|
|
1300
1335
|
} | undefined;
|
|
1301
1336
|
topNavigation?: {
|
|
1302
|
-
label: string;
|
|
1303
1337
|
id: string;
|
|
1338
|
+
label: string;
|
|
1304
1339
|
default?: string | undefined;
|
|
1305
1340
|
display?: "auth" | "anon" | "always" | undefined;
|
|
1306
1341
|
}[] | undefined;
|
|
@@ -1308,6 +1343,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1308
1343
|
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1309
1344
|
theme?: {
|
|
1310
1345
|
light?: {
|
|
1346
|
+
input?: string | undefined;
|
|
1311
1347
|
background?: string | undefined;
|
|
1312
1348
|
foreground?: string | undefined;
|
|
1313
1349
|
card?: string | undefined;
|
|
@@ -1325,11 +1361,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1325
1361
|
destructive?: string | undefined;
|
|
1326
1362
|
destructiveForeground?: string | undefined;
|
|
1327
1363
|
border?: string | undefined;
|
|
1328
|
-
input?: string | undefined;
|
|
1329
1364
|
ring?: string | undefined;
|
|
1330
1365
|
radius?: string | undefined;
|
|
1331
1366
|
} | undefined;
|
|
1332
1367
|
dark?: {
|
|
1368
|
+
input?: string | undefined;
|
|
1333
1369
|
background?: string | undefined;
|
|
1334
1370
|
foreground?: string | undefined;
|
|
1335
1371
|
card?: string | undefined;
|
|
@@ -1347,15 +1383,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1347
1383
|
destructive?: string | undefined;
|
|
1348
1384
|
destructiveForeground?: string | undefined;
|
|
1349
1385
|
border?: string | undefined;
|
|
1350
|
-
input?: string | undefined;
|
|
1351
1386
|
ring?: string | undefined;
|
|
1352
1387
|
radius?: string | undefined;
|
|
1353
1388
|
} | undefined;
|
|
1354
1389
|
} | undefined;
|
|
1355
1390
|
metadata?: {
|
|
1356
1391
|
description?: string | undefined;
|
|
1357
|
-
logo?: string | undefined;
|
|
1358
1392
|
title?: string | undefined;
|
|
1393
|
+
logo?: string | undefined;
|
|
1359
1394
|
favicon?: string | undefined;
|
|
1360
1395
|
generator?: string | undefined;
|
|
1361
1396
|
applicationName?: string | undefined;
|
|
@@ -1365,14 +1400,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1365
1400
|
creator?: string | undefined;
|
|
1366
1401
|
publisher?: string | undefined;
|
|
1367
1402
|
} | undefined;
|
|
1368
|
-
search?: {
|
|
1369
|
-
type: "inkeep";
|
|
1370
|
-
apiKey: string;
|
|
1371
|
-
integrationId: string;
|
|
1372
|
-
organizationId: string;
|
|
1373
|
-
primaryBrandColor: string;
|
|
1374
|
-
organizationDisplayName: string;
|
|
1375
|
-
} | undefined;
|
|
1376
1403
|
mdx?: {
|
|
1377
1404
|
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
1378
1405
|
} | undefined;
|
|
@@ -1423,6 +1450,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1423
1450
|
input: string;
|
|
1424
1451
|
server?: string | undefined;
|
|
1425
1452
|
navigationId?: string | undefined;
|
|
1453
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1426
1454
|
} | {
|
|
1427
1455
|
type: "raw";
|
|
1428
1456
|
input: string;
|
|
@@ -1438,6 +1466,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1438
1466
|
input: string;
|
|
1439
1467
|
server?: string | undefined;
|
|
1440
1468
|
navigationId?: string | undefined;
|
|
1469
|
+
postProcessors?: ((args_0: z.objectInputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectOutputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1441
1470
|
} | {
|
|
1442
1471
|
type: "raw";
|
|
1443
1472
|
input: string;
|
|
@@ -1449,17 +1478,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1449
1478
|
endpoint: string;
|
|
1450
1479
|
} | {
|
|
1451
1480
|
enabled: boolean;
|
|
1452
|
-
getKeys: (context:
|
|
1453
|
-
rollKey?: ((id: string, context:
|
|
1454
|
-
deleteKey?: ((id: string, context:
|
|
1481
|
+
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1482
|
+
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1483
|
+
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1455
1484
|
updateKeyDescription?: ((apiKey: {
|
|
1456
1485
|
id: string;
|
|
1457
1486
|
description: string;
|
|
1458
|
-
}, context:
|
|
1487
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1459
1488
|
createKey?: ((apiKey: {
|
|
1460
1489
|
description: string;
|
|
1461
1490
|
expiresOn?: string;
|
|
1462
|
-
}, context:
|
|
1491
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1463
1492
|
} | undefined;
|
|
1464
1493
|
redirects?: {
|
|
1465
1494
|
from: string;
|
|
@@ -1471,7 +1500,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1471
1500
|
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1472
1501
|
prose?: boolean | undefined;
|
|
1473
1502
|
}[] | undefined;
|
|
1474
|
-
plugins?: DevPortalPlugin[] | undefined;
|
|
1475
1503
|
sitemap?: {
|
|
1476
1504
|
siteUrl: string;
|
|
1477
1505
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1485,6 +1513,15 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1485
1513
|
rehypePlugins?: Options["rehypePlugins"];
|
|
1486
1514
|
} | undefined;
|
|
1487
1515
|
}, {
|
|
1516
|
+
plugins?: ZudokuPlugin[] | undefined;
|
|
1517
|
+
search?: {
|
|
1518
|
+
type: "inkeep";
|
|
1519
|
+
apiKey: string;
|
|
1520
|
+
integrationId: string;
|
|
1521
|
+
organizationId: string;
|
|
1522
|
+
primaryBrandColor: string;
|
|
1523
|
+
organizationDisplayName: string;
|
|
1524
|
+
} | undefined;
|
|
1488
1525
|
basePath?: string | undefined;
|
|
1489
1526
|
page?: {
|
|
1490
1527
|
pageTitle?: string | undefined;
|
|
@@ -1499,13 +1536,13 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1499
1536
|
} | undefined;
|
|
1500
1537
|
banner?: {
|
|
1501
1538
|
message: NonNullable<ReactNode>;
|
|
1502
|
-
color?:
|
|
1539
|
+
color?: BannerColorType;
|
|
1503
1540
|
dismissible?: boolean | undefined;
|
|
1504
1541
|
} | undefined;
|
|
1505
1542
|
} | undefined;
|
|
1506
1543
|
topNavigation?: {
|
|
1507
|
-
label: string;
|
|
1508
1544
|
id: string;
|
|
1545
|
+
label: string;
|
|
1509
1546
|
default?: string | undefined;
|
|
1510
1547
|
display?: "auth" | "anon" | "always" | undefined;
|
|
1511
1548
|
}[] | undefined;
|
|
@@ -1513,6 +1550,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1513
1550
|
UNSAFE_slotlets?: Record<string, ReactNode | ComponentType<ExposedComponentProps>> | undefined;
|
|
1514
1551
|
theme?: {
|
|
1515
1552
|
light?: {
|
|
1553
|
+
input?: string | undefined;
|
|
1516
1554
|
background?: string | undefined;
|
|
1517
1555
|
foreground?: string | undefined;
|
|
1518
1556
|
card?: string | undefined;
|
|
@@ -1530,11 +1568,11 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1530
1568
|
destructive?: string | undefined;
|
|
1531
1569
|
destructiveForeground?: string | undefined;
|
|
1532
1570
|
border?: string | undefined;
|
|
1533
|
-
input?: string | undefined;
|
|
1534
1571
|
ring?: string | undefined;
|
|
1535
1572
|
radius?: string | undefined;
|
|
1536
1573
|
} | undefined;
|
|
1537
1574
|
dark?: {
|
|
1575
|
+
input?: string | undefined;
|
|
1538
1576
|
background?: string | undefined;
|
|
1539
1577
|
foreground?: string | undefined;
|
|
1540
1578
|
card?: string | undefined;
|
|
@@ -1552,15 +1590,14 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1552
1590
|
destructive?: string | undefined;
|
|
1553
1591
|
destructiveForeground?: string | undefined;
|
|
1554
1592
|
border?: string | undefined;
|
|
1555
|
-
input?: string | undefined;
|
|
1556
1593
|
ring?: string | undefined;
|
|
1557
1594
|
radius?: string | undefined;
|
|
1558
1595
|
} | undefined;
|
|
1559
1596
|
} | undefined;
|
|
1560
1597
|
metadata?: {
|
|
1561
1598
|
description?: string | undefined;
|
|
1562
|
-
logo?: string | undefined;
|
|
1563
1599
|
title?: string | undefined;
|
|
1600
|
+
logo?: string | undefined;
|
|
1564
1601
|
favicon?: string | undefined;
|
|
1565
1602
|
generator?: string | undefined;
|
|
1566
1603
|
applicationName?: string | undefined;
|
|
@@ -1570,14 +1607,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1570
1607
|
creator?: string | undefined;
|
|
1571
1608
|
publisher?: string | undefined;
|
|
1572
1609
|
} | undefined;
|
|
1573
|
-
search?: {
|
|
1574
|
-
type: "inkeep";
|
|
1575
|
-
apiKey: string;
|
|
1576
|
-
integrationId: string;
|
|
1577
|
-
organizationId: string;
|
|
1578
|
-
primaryBrandColor: string;
|
|
1579
|
-
organizationDisplayName: string;
|
|
1580
|
-
} | undefined;
|
|
1581
1610
|
mdx?: {
|
|
1582
1611
|
components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
|
|
1583
1612
|
} | undefined;
|
|
@@ -1628,6 +1657,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1628
1657
|
input: string;
|
|
1629
1658
|
server?: string | undefined;
|
|
1630
1659
|
navigationId?: string | undefined;
|
|
1660
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1631
1661
|
} | {
|
|
1632
1662
|
type: "raw";
|
|
1633
1663
|
input: string;
|
|
@@ -1643,6 +1673,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1643
1673
|
input: string;
|
|
1644
1674
|
server?: string | undefined;
|
|
1645
1675
|
navigationId?: string | undefined;
|
|
1676
|
+
postProcessors?: ((args_0: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | Promise<z.objectInputType<{}, z.ZodTypeAny, "passthrough">>)[] | undefined;
|
|
1646
1677
|
} | {
|
|
1647
1678
|
type: "raw";
|
|
1648
1679
|
input: string;
|
|
@@ -1654,17 +1685,17 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1654
1685
|
endpoint: string;
|
|
1655
1686
|
} | {
|
|
1656
1687
|
enabled: boolean;
|
|
1657
|
-
getKeys: (context:
|
|
1658
|
-
rollKey?: ((id: string, context:
|
|
1659
|
-
deleteKey?: ((id: string, context:
|
|
1688
|
+
getKeys: (context: ZudokuContext) => Promise<ApiKey[]>;
|
|
1689
|
+
rollKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1690
|
+
deleteKey?: ((id: string, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1660
1691
|
updateKeyDescription?: ((apiKey: {
|
|
1661
1692
|
id: string;
|
|
1662
1693
|
description: string;
|
|
1663
|
-
}, context:
|
|
1694
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1664
1695
|
createKey?: ((apiKey: {
|
|
1665
1696
|
description: string;
|
|
1666
1697
|
expiresOn?: string;
|
|
1667
|
-
}, context:
|
|
1698
|
+
}, context: ZudokuContext) => Promise<void>) | undefined;
|
|
1668
1699
|
} | undefined;
|
|
1669
1700
|
redirects?: {
|
|
1670
1701
|
from: string;
|
|
@@ -1676,7 +1707,6 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1676
1707
|
render?: ComponentType<ExposedComponentProps> | undefined;
|
|
1677
1708
|
prose?: boolean | undefined;
|
|
1678
1709
|
}[] | undefined;
|
|
1679
|
-
plugins?: DevPortalPlugin[] | undefined;
|
|
1680
1710
|
sitemap?: {
|
|
1681
1711
|
siteUrl: string;
|
|
1682
1712
|
changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
|
|
@@ -1695,5 +1725,6 @@ export type ZudokuConfig = z.infer<typeof ConfigSchema>;
|
|
|
1695
1725
|
export type ZudokuSiteMapConfig = z.infer<typeof SiteMapSchema>;
|
|
1696
1726
|
export type ZudokuDocsConfig = z.infer<typeof DocsConfigSchema>;
|
|
1697
1727
|
export type TopNavigationItem = z.infer<typeof TopNavigationItemSchema>;
|
|
1728
|
+
export type ZudokuRedirect = z.infer<typeof Redirect>;
|
|
1698
1729
|
export declare function validateConfig(config: unknown): void;
|
|
1699
1730
|
export {};
|